diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..efdad81 --- /dev/null +++ b/.gitignore @@ -0,0 +1,130 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,c++,cmake +# Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,c++,cmake + +### C++ ### +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +### CMake ### +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps + +### CMake Patch ### +# External projects +*-prefix/ + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/windows,linux,macos,c++,cmake + +.vscode +bin +build \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 860a279..385379a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.15) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") project(cis565_project4_vulkan_grass_rendering) @@ -8,15 +8,16 @@ OPTION(USE_D2D_WSI "Build the project using Direct to Display swapchain" OFF) find_package(Vulkan REQUIRED) IF(WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_WIN32_KHR") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_WIN32_KHR") ELSE(WIN32) - find_package(Threads REQUIRED) + find_package(Threads REQUIRED) IF(USE_D2D_WSI) - MESSAGE("Using direct to display extension...") - add_definitions(-D_DIRECT2DISPLAY) + MESSAGE(STATUS "Vulkan: Using direct to display extension -D_DIRECT2DISPLAY...") + add_definitions(-D_DIRECT2DISPLAY) ELSE(USE_D2D_WSI) - find_package(XCB REQUIRED) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_XCB_KHR") + message(STATUS "Vulkan: Using default WSI -DVK_USE_PLATFORM_XCB_KHR...") + find_package(XCB REQUIRED) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_XCB_KHR") ENDIF(USE_D2D_WSI) # Todo : android? ENDIF(WIN32) @@ -49,18 +50,18 @@ function(InternalTarget folder target) endif() endfunction(InternalTarget) -# Compiler specific stuff -IF(MSVC) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") -ENDIF(MSVC) - IF(WIN32) # Nothing here (yet) ELSE(WIN32) link_libraries(${XCB_LIBRARIES} ${VULKAN_LIB}) ENDIF(WIN32) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/") +if(WIN32) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) +else(WIN32) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +endif(WIN32) + add_subdirectory(external) add_subdirectory(src) diff --git a/README.md b/README.md index 20ee451..96809a4 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,59 @@ Vulkan Grass Rendering **University of Pennsylvania, CIS 565: GPU Programming and Architecture, Project 5** -* (TODO) YOUR NAME HERE -* Tested on: (TODO) Windows 22, i7-2222 @ 2.22GHz 22GB, GTX 222 222MB (Moore 2222 Lab) +* Zhihao Ruan +* Tested on: Windows 10 Home 21H1 Build 19043.1288, Ryzen 7 3700X @ 3.59GHz 48GB, RTX 2060 Super 8GB -### (TODO: Your README) +![](img/overall.gif) -*DO NOT* leave the README to the last minute! It is a crucial part of the -project, and we will not be able to grade you without a good README. +## Highlights +This project implements physically-based grass rendering & culling with Vulkan compute shaders: +- Physically-based real-time rendering of grass blades; +- 3 different culling tests: orientation culling, view-frustum culling, distance culling; +- Tessellating Bezier curves into grass blades with GLSL tessellation shader + +A detailed instruction of this project can be found [here](INSTRUCTION.md). + +## Vulkan +[Vulkan](https://vulkan-tutorial.com/) is considered as the next-generation graphics API developed by [Khronos group](https://www.khronos.org/), in replacement for the old OpenGL. It is fast, high-performance, and cross-platform. However, the downside of this API is that it exposes all details of GPU hardware to users for possible customization, so that it generally takes a significantly large amount of code for users to set up the rendering pipeline than OpenGL. + +This project sets up a standard Vulkan graphics pipeline with compute shaders & tessellation shaders. The goal of this project is to implement the paper [Responsive Real-Time Grass Rendering for General 3D Scenes](https://www.cg.tuwien.ac.at/research/publications/2017/JAHRMANN-2017-RRTG/JAHRMANN-2017-RRTG-draft.pdf) for effective grass simulation in 3D rendering. + +## [Responsive Real-Time Grass Rendering for General 3D Scenes](https://www.cg.tuwien.ac.at/research/publications/2017/JAHRMANN-2017-RRTG/JAHRMANN-2017-RRTG-draft.pdf) +Grass is a critical component in 3D graphics. Almost every modern video games have some scenes that involve the rendering of grass. It is also a typical example of massive parallelization, as with the power of GPU one can easily think of ways to render every grass blade with a single GPU thread for photorealistic effects. However, approximations are still needed, and the paper chooses Bezier curves. Bezier curves are a special family of curve that produces smooth splines geometry in 3D space. The generation of Bezier curve requires pre-defining multiple control points, and the curve would then be generated following a fixed function that interpolates between adjacent control points (for more details, see [Wikipedia](https://en.wikipedia.org/wiki/B%C3%A9zier_curve)). + +![](img/blade_model.jpg) + +### Basic Geometry +From the paper, a single grass blade can be defined as a Bezier curve with 3 control points: `v0`, `v1`, `v2`. `v0` is the base point specifying the 3D position of the base of the grass blade, `v1` is the guide for the curve that is always "above" `v0` and defines the blade's up direction, and `v2` is the control points where we execute all kinds of simulation forces. The paper provides a very detailed usage for tweaking basic 3D geometry shapes for rendering with Bezier curves (see Section 6.3 of paper). + +### Physics Simulation +As for physical simulation, we define the following basic forces: +- **Gravity force** that pulls `v2` to the ground, creating bends on the blade; +- **Recovery force** that tends to recover the up-straight pose of the blade; +- **Wind force** that produces random displacement on the tip of the blade (specifically, on `v2`). + +### Blade Culling +Blade culling is an optimization technique that the paper mentions to improve FPS in real-time rendering. By culling we do not wish to render the grass blades that: +- are too far away; +- are outside the camera's view frustum; +- are not facing towards the camera. + +Culling tests are conducted in the compute shader so that the number of grass blades that need rendering varies with the position and orientation of the camera. + +## Visual Effects +The following images demonstrates effects due to different culling operations: +| Orientation Culling | View-Frustum Culling | Distance Culling | +| :------------------------------: | :-------------------------------: | :---------------------------: | +| ![](img/orientation_culling.gif) | ![](img/view_frustum_culling.gif) | ![](img/distance_culling.gif) | + +The following image demonstrates the up-straight pose of the blade (no physics forces, no culling): + +![](img/blade_upstraight.png) + +## Performance Analysis +The following FPS tests on different culling options is conducted with `NUM_BLADES = 1 << 18`: + +![](img/performance_analysis.png) + +We can see that orientation culling improves the rendering FPS the most, while all the others also have some improvements on the FPS. diff --git a/bin/Release/vulkan_grass_rendering.exe b/bin/Release/vulkan_grass_rendering.exe deleted file mode 100644 index f68db3a..0000000 Binary files a/bin/Release/vulkan_grass_rendering.exe and /dev/null differ diff --git a/cmake/FindXCB.cmake b/cmake/FindXCB.cmake index 89ed904..12f94cd 100644 --- a/cmake/FindXCB.cmake +++ b/cmake/FindXCB.cmake @@ -35,15 +35,15 @@ foreach(comp ${XCB_FIND_COMPONENTS}) ${PC_${comp}_LIBRARY_DIRS} ) - find_package_handle_standard_args(${comp} - FOUND_VAR ${comp}_FOUND + find_package_handle_standard_args(${compname} + FOUND_VAR ${compname}_FOUND REQUIRED_VARS ${compname}_INCLUDE_DIR ${compname}_LIBRARY) mark_as_advanced(${compname}_INCLUDE_DIR ${compname}_LIBRARY) list(APPEND XCB_INCLUDE_DIRS ${${compname}_INCLUDE_DIR}) list(APPEND XCB_LIBRARIES ${${compname}_LIBRARY}) - if(NOT ${comp}_FOUND) + if(NOT ${compname}_FOUND) set(XCB_FOUND false) endif() endforeach() diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index de305bb..dd8165c 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -3,7 +3,8 @@ set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "Build the GLFW example programs") set(GLFW_BUILD_TESTS OFF CACHE BOOL "Build the GLFW test programs") set(GLFW_BUILD_DOCS OFF CACHE BOOL "Build the GLFW documentation") set(GLFW_INSTALL OFF CACHE BOOL "Generate installation target") -add_subdirectory(GLFW) +add_subdirectory(glfw-3.3.4) +add_subdirectory(spdlog-1.9.2) -set(GLM_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/glm PARENT_SCOPE) +set(GLM_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/glm-0.9.9.8 PARENT_SCOPE) set(STB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/stb PARENT_SCOPE) diff --git a/external/GLFW/.appveyor.yml b/external/GLFW/.appveyor.yml deleted file mode 100644 index 4a00250..0000000 --- a/external/GLFW/.appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ -branches: - only: - - ci - - master -skip_tags: true -environment: - CFLAGS: /WX - matrix: - - BUILD_SHARED_LIBS: ON - - BUILD_SHARED_LIBS: OFF -matrix: - fast_finish: true -build_script: - - mkdir build - - cd build - - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% .. - - cmake --build . -notifications: - - provider: Email - to: - - ci@glfw.org - on_build_failure: true - on_build_success: false diff --git a/external/GLFW/.gitattributes b/external/GLFW/.gitattributes deleted file mode 100644 index 64a3446..0000000 --- a/external/GLFW/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.m linguist-language=Objective-C diff --git a/external/GLFW/.gitignore b/external/GLFW/.gitignore deleted file mode 100644 index dd88e65..0000000 --- a/external/GLFW/.gitignore +++ /dev/null @@ -1,84 +0,0 @@ -# External junk -.DS_Store -_ReSharper* -*.opensdf -*.sdf -*.suo -*.dir -*.vcxproj* -*.sln -Win32 -x64 -Debug -Release -MinSizeRel -RelWithDebInfo -*.xcodeproj - -# CMake files -Makefile -CMakeCache.txt -CMakeFiles -CMakeScripts -cmake_install.cmake -cmake_uninstall.cmake - -# Generated files -docs/Doxyfile -docs/html -docs/warnings.txt -docs/doxygen_sqlite3.db -src/glfw_config.h -src/glfw3.pc -src/glfw3Config.cmake -src/glfw3ConfigVersion.cmake -src/wayland-pointer-constraints-unstable-v1-client-protocol.h -src/wayland-pointer-constraints-unstable-v1-protocol.c -src/wayland-relative-pointer-unstable-v1-client-protocol.h -src/wayland-relative-pointer-unstable-v1-protocol.c - -# Compiled binaries -src/libglfw.so -src/libglfw.so.3 -src/libglfw.so.3.3 -src/libglfw.dylib -src/libglfw.dylib -src/libglfw.3.dylib -src/libglfw.3.3.dylib -src/libglfw3.a -src/glfw3.lib -src/glfw3.dll -src/glfw3dll.lib -src/libglfw3dll.a -examples/*.app -examples/*.exe -examples/boing -examples/gears -examples/heightmap -examples/offscreen -examples/particles -examples/splitview -examples/simple -examples/wave -tests/*.app -tests/*.exe -tests/clipboard -tests/cursor -tests/empty -tests/events -tests/gamma -tests/glfwinfo -tests/icon -tests/iconify -tests/joysticks -tests/monitors -tests/msaa -tests/reopen -tests/sharing -tests/tearing -tests/threads -tests/timeout -tests/title -tests/vulkan -tests/windows - diff --git a/external/GLFW/.travis.yml b/external/GLFW/.travis.yml deleted file mode 100644 index ef11ea1..0000000 --- a/external/GLFW/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: c -compiler: clang -branches: - only: - - ci - - master -os: - - linux - - osx -sudo: false -dist: trusty -addons: - apt: - sources: - - kubuntu-backports - packages: - - cmake - - libxrandr-dev - - libxinerama-dev - - libxcursor-dev - - libxi-dev -env: - global: - - CFLAGS=-Werror - matrix: - - BUILD_SHARED_LIBS=ON - - BUILD_SHARED_LIBS=OFF -script: - - mkdir build - - cd build - - cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} .. - - cmake --build . -notifications: - email: - recipients: - - ci@glfw.org - on_success: never - on_failure: always diff --git a/external/GLFW/CMake/amd64-mingw32msvc.cmake b/external/GLFW/CMake/amd64-mingw32msvc.cmake deleted file mode 100644 index 705e251..0000000 --- a/external/GLFW/CMake/amd64-mingw32msvc.cmake +++ /dev/null @@ -1,13 +0,0 @@ -# Define the environment for cross compiling from Linux to Win64 -SET(CMAKE_SYSTEM_NAME Windows) -SET(CMAKE_SYSTEM_VERSION 1) -SET(CMAKE_C_COMPILER "amd64-mingw32msvc-gcc") -SET(CMAKE_CXX_COMPILER "amd64-mingw32msvc-g++") -SET(CMAKE_RC_COMPILER "amd64-mingw32msvc-windres") -SET(CMAKE_RANLIB "amd64-mingw32msvc-ranlib") - -# Configure the behaviour of the find commands -SET(CMAKE_FIND_ROOT_PATH "/usr/amd64-mingw32msvc") -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/external/GLFW/CMake/i586-mingw32msvc.cmake b/external/GLFW/CMake/i586-mingw32msvc.cmake deleted file mode 100644 index 393ddbd..0000000 --- a/external/GLFW/CMake/i586-mingw32msvc.cmake +++ /dev/null @@ -1,13 +0,0 @@ -# Define the environment for cross compiling from Linux to Win32 -SET(CMAKE_SYSTEM_NAME Windows) -SET(CMAKE_SYSTEM_VERSION 1) -SET(CMAKE_C_COMPILER "i586-mingw32msvc-gcc") -SET(CMAKE_CXX_COMPILER "i586-mingw32msvc-g++") -SET(CMAKE_RC_COMPILER "i586-mingw32msvc-windres") -SET(CMAKE_RANLIB "i586-mingw32msvc-ranlib") - -# Configure the behaviour of the find commands -SET(CMAKE_FIND_ROOT_PATH "/usr/i586-mingw32msvc") -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/external/GLFW/CMake/i686-pc-mingw32.cmake b/external/GLFW/CMake/i686-pc-mingw32.cmake deleted file mode 100644 index 9a46aef..0000000 --- a/external/GLFW/CMake/i686-pc-mingw32.cmake +++ /dev/null @@ -1,13 +0,0 @@ -# Define the environment for cross compiling from Linux to Win32 -SET(CMAKE_SYSTEM_NAME Windows) # Target system name -SET(CMAKE_SYSTEM_VERSION 1) -SET(CMAKE_C_COMPILER "i686-pc-mingw32-gcc") -SET(CMAKE_CXX_COMPILER "i686-pc-mingw32-g++") -SET(CMAKE_RC_COMPILER "i686-pc-mingw32-windres") -SET(CMAKE_RANLIB "i686-pc-mingw32-ranlib") - -#Configure the behaviour of the find commands -SET(CMAKE_FIND_ROOT_PATH "/opt/mingw/usr/i686-pc-mingw32") -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/external/GLFW/CMake/modules/FindMir.cmake b/external/GLFW/CMake/modules/FindMir.cmake deleted file mode 100644 index 2104df8..0000000 --- a/external/GLFW/CMake/modules/FindMir.cmake +++ /dev/null @@ -1,34 +0,0 @@ -# FindMir -# ------- -# Finds the Mir library -# -# This will will define the following variables:: -# -# MIR_FOUND - the system has Mir -# MIR_INCLUDE_DIRS - the Mir include directory -# MIR_LIBRARIES - the Mir libraries -# MIR_DEFINITIONS - the Mir definitions - - -find_package (PkgConfig) -if(PKG_CONFIG_FOUND) - pkg_check_modules (PC_MIR mirclient>=0.26.2 QUIET) - - find_path(MIR_INCLUDE_DIR NAMES mir_toolkit/mir_client_library.h - PATHS ${PC_MIR_INCLUDE_DIRS}) - - find_library(MIR_LIBRARY NAMES mirclient - PATHS ${PC_MIR_LIBRARIES} ${PC_MIR_LIBRARY_DIRS}) - - include (FindPackageHandleStandardArgs) - find_package_handle_standard_args (MIR - REQUIRED_VARS MIR_LIBRARY MIR_INCLUDE_DIR) - - if (MIR_FOUND) - set(MIR_LIBRARIES ${MIR_LIBRARY}) - set(MIR_INCLUDE_DIRS ${PC_MIR_INCLUDE_DIRS}) - set(MIR_DEFINITIONS -DHAVE_MIR=1) - endif() - - mark_as_advanced (MIR_LIBRARY MIR_INCLUDE_DIR) -endif() diff --git a/external/GLFW/CMake/modules/FindVulkan.cmake b/external/GLFW/CMake/modules/FindVulkan.cmake deleted file mode 100644 index 5bdb556..0000000 --- a/external/GLFW/CMake/modules/FindVulkan.cmake +++ /dev/null @@ -1,48 +0,0 @@ -# Find Vulkan -# -# VULKAN_INCLUDE_DIR -# VULKAN_LIBRARY -# VULKAN_FOUND - -if (WIN32) - find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS - "$ENV{VULKAN_SDK}/Include" - "$ENV{VK_SDK_PATH}/Include") - if (CMAKE_SIZEOF_VOID_P EQUAL 8) - find_library(VULKAN_LIBRARY NAMES vulkan-1 HINTS - "$ENV{VULKAN_SDK}/Lib" - "$ENV{VULKAN_SDK}/Bin" - "$ENV{VK_SDK_PATH}/Bin") - find_library(VULKAN_STATIC_LIBRARY NAMES vkstatic.1 HINTS - "$ENV{VULKAN_SDK}/Lib" - "$ENV{VULKAN_SDK}/Bin" - "$ENV{VK_SDK_PATH}/Bin") - else() - find_library(VULKAN_LIBRARY NAMES vulkan-1 HINTS - "$ENV{VULKAN_SDK}/Lib32" - "$ENV{VULKAN_SDK}/Bin32" - "$ENV{VK_SDK_PATH}/Bin32") - find_library(VULKAN_STATIC_LIBRARY NAMES vkstatic.1 HINTS - "$ENV{VULKAN_SDK}/Lib32" - "$ENV{VULKAN_SDK}/Bin32" - "$ENV{VK_SDK_PATH}/Bin32") - endif() -elseif (APPLE) - set(CMAKE_FIND_FRAMEWORK NEVER) - find_library(VULKAN_LIBRARY MoltenVK) - set(CMAKE_FIND_FRAMEWORK ONLY) - find_library(VULKAN_STATIC_LIBRARY MoltenVK) - find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS - "${VULKAN_LIBRARY}/Headers") -else() - find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS - "$ENV{VULKAN_SDK}/include") - find_library(VULKAN_LIBRARY NAMES vulkan HINTS - "$ENV{VULKAN_SDK}/lib") -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Vulkan DEFAULT_MSG VULKAN_LIBRARY VULKAN_INCLUDE_DIR) - -mark_as_advanced(VULKAN_INCLUDE_DIR VULKAN_LIBRARY VULKAN_STATIC_LIBRARY) - diff --git a/external/GLFW/CMakeLists.txt b/external/GLFW/CMakeLists.txt deleted file mode 100644 index 56c1f38..0000000 --- a/external/GLFW/CMakeLists.txt +++ /dev/null @@ -1,408 +0,0 @@ -cmake_minimum_required(VERSION 2.8.12) - -project(GLFW C) - -set(CMAKE_LEGACY_CYGWIN_WIN32 OFF) - -if (NOT CMAKE_VERSION VERSION_LESS "3.0") - # Until all major package systems have moved to CMake 3, - # we stick with the older INSTALL_NAME_DIR mechanism - cmake_policy(SET CMP0042 OLD) -endif() - -if (NOT CMAKE_VERSION VERSION_LESS "3.1") - cmake_policy(SET CMP0054 NEW) -endif() - -set(GLFW_VERSION_MAJOR "3") -set(GLFW_VERSION_MINOR "3") -set(GLFW_VERSION_PATCH "0") -set(GLFW_VERSION_EXTRA "") -set(GLFW_VERSION "${GLFW_VERSION_MAJOR}.${GLFW_VERSION_MINOR}") -set(GLFW_VERSION_FULL "${GLFW_VERSION}.${GLFW_VERSION_PATCH}${GLFW_VERSION_EXTRA}") -set(LIB_SUFFIX "" CACHE STRING "Takes an empty string or 64. Directory where lib will be installed: lib or lib64") - -set_property(GLOBAL PROPERTY USE_FOLDERS ON) - -option(BUILD_SHARED_LIBS "Build shared libraries" OFF) -option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ON) -option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON) -option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON) -option(GLFW_INSTALL "Generate installation target" ON) -option(GLFW_VULKAN_STATIC "Use the Vulkan loader statically linked into application" OFF) -option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF) - -if (UNIX) - option(GLFW_USE_OSMESA "Use OSMesa for offscreen context creation" OFF) -endif() - -if (WIN32) - option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF) -endif() - -if (UNIX AND NOT APPLE) - option(GLFW_USE_WAYLAND "Use Wayland for window creation" OFF) - option(GLFW_USE_MIR "Use Mir for window creation" OFF) -endif() - -if (MSVC) - option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON) -endif() - -if (BUILD_SHARED_LIBS) - set(_GLFW_BUILD_DLL 1) -endif() - -if (BUILD_SHARED_LIBS AND UNIX) - # On Unix-like systems, shared libraries can use the soname system. - set(GLFW_LIB_NAME glfw) -else() - set(GLFW_LIB_NAME glfw3) -endif() - -if (GLFW_VULKAN_STATIC) - set(_GLFW_VULKAN_STATIC 1) -endif() - -list(APPEND CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules") - -find_package(Threads REQUIRED) -find_package(Vulkan) - -if (GLFW_BUILD_DOCS) - set(DOXYGEN_SKIP_DOT TRUE) - find_package(Doxygen) -endif() - -#-------------------------------------------------------------------- -# Set compiler specific flags -#-------------------------------------------------------------------- -if (MSVC) - if (MSVC90) - # Workaround for VS 2008 not shipping with the DirectX 9 SDK - include(CheckIncludeFile) - check_include_file(dinput.h DINPUT_H_FOUND) - if (NOT DINPUT_H_FOUND) - message(FATAL_ERROR "DirectX 9 SDK not found") - endif() - # Workaround for VS 2008 not shipping with stdint.h - list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/vs2008") - endif() - - if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL) - foreach (flag CMAKE_C_FLAGS - CMAKE_C_FLAGS_DEBUG - CMAKE_C_FLAGS_RELEASE - CMAKE_C_FLAGS_MINSIZEREL - CMAKE_C_FLAGS_RELWITHDEBINFO) - - if (${flag} MATCHES "/MD") - string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}") - endif() - if (${flag} MATCHES "/MDd") - string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}") - endif() - - endforeach() - endif() -endif() - -if (MINGW) - # Workaround for legacy MinGW not providing XInput and DirectInput - include(CheckIncludeFile) - - check_include_file(dinput.h DINPUT_H_FOUND) - check_include_file(xinput.h XINPUT_H_FOUND) - if (NOT DINPUT_H_FOUND OR NOT XINPUT_H_FOUND) - list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/mingw") - endif() - - # Enable link-time exploit mitigation features enabled by default on MSVC - include(CheckCCompilerFlag) - - # Compatibility with data execution prevention (DEP) - set(CMAKE_REQUIRED_FLAGS "-Wl,--nxcompat") - check_c_compiler_flag("" _GLFW_HAS_DEP) - if (_GLFW_HAS_DEP) - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--nxcompat ${CMAKE_SHARED_LINKER_FLAGS}") - endif() - - # Compatibility with address space layout randomization (ASLR) - set(CMAKE_REQUIRED_FLAGS "-Wl,--dynamicbase") - check_c_compiler_flag("" _GLFW_HAS_ASLR) - if (_GLFW_HAS_ASLR) - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--dynamicbase ${CMAKE_SHARED_LINKER_FLAGS}") - endif() - - # Compatibility with 64-bit address space layout randomization (ASLR) - set(CMAKE_REQUIRED_FLAGS "-Wl,--high-entropy-va") - check_c_compiler_flag("" _GLFW_HAS_64ASLR) - if (_GLFW_HAS_64ASLR) - set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--high-entropy-va ${CMAKE_SHARED_LINKER_FLAGS}") - endif() -endif() - -if (APPLE) - # Dependencies required by the MoltenVK static library - set(GLFW_VULKAN_DEPS - "-lc++" - "-framework Cocoa" - "-framework Metal" - "-framework QuartzCore") -endif() - -#-------------------------------------------------------------------- -# Detect and select backend APIs -#-------------------------------------------------------------------- -if (GLFW_USE_WAYLAND) - set(_GLFW_WAYLAND 1) - message(STATUS "Using Wayland for window creation") -elseif (GLFW_USE_MIR) - set(_GLFW_MIR 1) - message(STATUS "Using Mir for window creation") -elseif (GLFW_USE_OSMESA) - set(_GLFW_OSMESA 1) - message(STATUS "Using OSMesa for headless context creation") -elseif (WIN32) - set(_GLFW_WIN32 1) - message(STATUS "Using Win32 for window creation") -elseif (APPLE) - set(_GLFW_COCOA 1) - message(STATUS "Using Cocoa for window creation") -elseif (UNIX) - set(_GLFW_X11 1) - message(STATUS "Using X11 for window creation") -else() - message(FATAL_ERROR "No supported platform was detected") -endif() - -#-------------------------------------------------------------------- -# Add Vulkan static library if requested -#-------------------------------------------------------------------- -if (GLFW_VULKAN_STATIC) - if (VULKAN_FOUND AND VULKAN_STATIC_LIBRARY) - list(APPEND glfw_LIBRARIES "${VULKAN_STATIC_LIBRARY}" ${GLFW_VULKAN_DEPS}) - if (BUILD_SHARED_LIBS) - message(WARNING "Linking Vulkan loader static library into GLFW") - endif() - else() - if (BUILD_SHARED_LIBS OR GLFW_BUILD_EXAMPLES OR GLFW_BUILD_TESTS) - message(FATAL_ERROR "Vulkan loader static library not found") - else() - message(WARNING "Vulkan loader static library not found") - endif() - endif() -endif() - -#-------------------------------------------------------------------- -# Find and add Unix math and time libraries -#-------------------------------------------------------------------- -if (UNIX AND NOT APPLE) - find_library(RT_LIBRARY rt) - mark_as_advanced(RT_LIBRARY) - if (RT_LIBRARY) - list(APPEND glfw_LIBRARIES "${RT_LIBRARY}") - list(APPEND glfw_PKG_LIBS "-lrt") - endif() - - find_library(MATH_LIBRARY m) - mark_as_advanced(MATH_LIBRARY) - if (MATH_LIBRARY) - list(APPEND glfw_LIBRARIES "${MATH_LIBRARY}") - list(APPEND glfw_PKG_LIBS "-lm") - endif() - - if (CMAKE_DL_LIBS) - list(APPEND glfw_LIBRARIES "${CMAKE_DL_LIBS}") - list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}") - endif() -endif() - -#-------------------------------------------------------------------- -# Use Win32 for window creation -#-------------------------------------------------------------------- -if (_GLFW_WIN32) - - list(APPEND glfw_PKG_LIBS "-lgdi32") - - if (GLFW_USE_HYBRID_HPG) - set(_GLFW_USE_HYBRID_HPG 1) - endif() -endif() - -#-------------------------------------------------------------------- -# Use X11 for window creation -#-------------------------------------------------------------------- -if (_GLFW_X11) - - find_package(X11 REQUIRED) - - list(APPEND glfw_PKG_DEPS "x11") - - # Set up library and include paths - list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}") - list(APPEND glfw_LIBRARIES "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}") - - # Check for XRandR (modern resolution switching and gamma control) - if (NOT X11_Xrandr_FOUND) - message(FATAL_ERROR "The RandR headers were not found") - endif() - - # Check for Xinerama (legacy multi-monitor support) - if (NOT X11_Xinerama_FOUND) - message(FATAL_ERROR "The Xinerama headers were not found") - endif() - - # Check for Xkb (X keyboard extension) - if (NOT X11_Xkb_FOUND) - message(FATAL_ERROR "The X keyboard extension headers were not found") - endif() - - # Check for Xcursor (cursor creation from RGBA images) - if (NOT X11_Xcursor_FOUND) - message(FATAL_ERROR "The Xcursor headers were not found") - endif() - - list(APPEND glfw_INCLUDE_DIRS "${X11_Xrandr_INCLUDE_PATH}" - "${X11_Xinerama_INCLUDE_PATH}" - "${X11_Xkb_INCLUDE_PATH}" - "${X11_Xcursor_INCLUDE_PATH}") -endif() - -#-------------------------------------------------------------------- -# Use Wayland for window creation -#-------------------------------------------------------------------- -if (_GLFW_WAYLAND) - find_package(ECM REQUIRED NO_MODULE) - list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}") - - find_package(Wayland REQUIRED) - find_package(WaylandScanner REQUIRED) - find_package(WaylandProtocols 1.1 REQUIRED) - - list(APPEND glfw_PKG_DEPS "wayland-egl") - - list(APPEND glfw_INCLUDE_DIRS "${Wayland_INCLUDE_DIR}") - list(APPEND glfw_LIBRARIES "${Wayland_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}") - - find_package(XKBCommon REQUIRED) - list(APPEND glfw_PKG_DEPS "xkbcommon") - list(APPEND glfw_INCLUDE_DIRS "${XKBCOMMON_INCLUDE_DIRS}") - list(APPEND glfw_LIBRARIES "${XKBCOMMON_LIBRARY}") -endif() - -#-------------------------------------------------------------------- -# Use Mir for window creation -#-------------------------------------------------------------------- -if (_GLFW_MIR) - find_package(Mir REQUIRED) - list(APPEND glfw_PKG_DEPS "mirclient") - - list(APPEND glfw_INCLUDE_DIRS "${MIR_INCLUDE_DIRS}") - list(APPEND glfw_LIBRARIES "${MIR_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}") - - find_package(XKBCommon REQUIRED) - list(APPEND glfw_PKG_DEPS "xkbcommon") - list(APPEND glfw_INCLUDE_DIRS "${XKBCOMMON_INCLUDE_DIRS}") - list(APPEND glfw_LIBRARIES "${XKBCOMMON_LIBRARY}") -endif() - -#-------------------------------------------------------------------- -# Use OSMesa for offscreen context creation -#-------------------------------------------------------------------- -if (_GLFW_OSMESA) - find_package(OSMesa REQUIRED) - list(APPEND glfw_LIBRARIES "${CMAKE_THREAD_LIBS_INIT}") -endif() - -#-------------------------------------------------------------------- -# Use Cocoa for window creation and NSOpenGL for context creation -#-------------------------------------------------------------------- -if (_GLFW_COCOA) - - list(APPEND glfw_LIBRARIES - "-framework Cocoa" - "-framework IOKit" - "-framework CoreFoundation" - "-framework CoreVideo") - - set(glfw_PKG_DEPS "") - set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo") -endif() - -#-------------------------------------------------------------------- -# Export GLFW library dependencies -#-------------------------------------------------------------------- -foreach(arg ${glfw_PKG_DEPS}) - set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} ${arg}") -endforeach() -foreach(arg ${glfw_PKG_LIBS}) - set(GLFW_PKG_LIBS "${GLFW_PKG_LIBS} ${arg}") -endforeach() - -#-------------------------------------------------------------------- -# Create generated files -#-------------------------------------------------------------------- -include(CMakePackageConfigHelpers) - -set(GLFW_CONFIG_PATH "lib${LIB_SUFFIX}/cmake/glfw3") - -configure_package_config_file(src/glfw3Config.cmake.in - src/glfw3Config.cmake - INSTALL_DESTINATION "${GLFW_CONFIG_PATH}" - NO_CHECK_REQUIRED_COMPONENTS_MACRO) - -write_basic_package_version_file(src/glfw3ConfigVersion.cmake - VERSION ${GLFW_VERSION_FULL} - COMPATIBILITY SameMajorVersion) - -configure_file(src/glfw_config.h.in src/glfw_config.h @ONLY) - -configure_file(src/glfw3.pc.in src/glfw3.pc @ONLY) - -#-------------------------------------------------------------------- -# Add subdirectories -#-------------------------------------------------------------------- -add_subdirectory(src) - -if (GLFW_BUILD_EXAMPLES) - add_subdirectory(examples) -endif() - -if (GLFW_BUILD_TESTS) - add_subdirectory(tests) -endif() - -if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) - add_subdirectory(docs) -endif() - -#-------------------------------------------------------------------- -# Install files other than the library -# The library is installed by src/CMakeLists.txt -#-------------------------------------------------------------------- -if (GLFW_INSTALL) - install(DIRECTORY include/GLFW DESTINATION include - FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h) - - install(FILES "${GLFW_BINARY_DIR}/src/glfw3Config.cmake" - "${GLFW_BINARY_DIR}/src/glfw3ConfigVersion.cmake" - DESTINATION "${GLFW_CONFIG_PATH}") - - install(EXPORT glfwTargets FILE glfw3Targets.cmake - EXPORT_LINK_INTERFACE_LIBRARIES - DESTINATION "${GLFW_CONFIG_PATH}") - install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" - DESTINATION "lib${LIB_SUFFIX}/pkgconfig") - - # Only generate this target if no higher-level project already has - if (NOT TARGET uninstall) - configure_file(cmake_uninstall.cmake.in - cmake_uninstall.cmake IMMEDIATE @ONLY) - - add_custom_target(uninstall - "${CMAKE_COMMAND}" -P - "${GLFW_BINARY_DIR}/cmake_uninstall.cmake") - endif() -endif() - diff --git a/external/GLFW/README.md b/external/GLFW/README.md deleted file mode 100644 index 01b159c..0000000 --- a/external/GLFW/README.md +++ /dev/null @@ -1,432 +0,0 @@ -# GLFW - -[![Build status](https://travis-ci.org/glfw/glfw.svg?branch=master)](https://travis-ci.org/glfw/glfw) -[![Build status](https://ci.appveyor.com/api/projects/status/0kf0ct9831i5l6sp/branch/master?svg=true)](https://ci.appveyor.com/project/elmindreda/glfw) -[![Coverity Scan](https://scan.coverity.com/projects/4884/badge.svg)](https://scan.coverity.com/projects/glfw-glfw) - -## Introduction - -GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan -application development. It provides a simple, platform-independent API for -creating windows, contexts and surfaces, reading input, handling events, etc. - -GLFW natively supports Windows, macOS and Linux and other Unix-like systems. -Experimental implementations for the Wayland protocol and the Mir display server -are available but not yet officially supported. - -GLFW is licensed under the [zlib/libpng -license](http://www.glfw.org/license.html). - -The latest stable release is version 3.2.1. - -See the [downloads](http://www.glfw.org/download.html) page for details and -files, or fetch the `latest` branch, which always points to the latest stable -release. Each release starting with 3.0 also has a corresponding [annotated -tag](https://github.com/glfw/glfw/releases) with source and binary archives. -The [version history](http://www.glfw.org/changelog.html) lists all user-visible -changes for every release. - -This is a development branch for version 3.3, which is _not yet described_. -Pre-release documentation is available [here](http://www.glfw.org/docs/3.3/). - -The `master` branch is the stable integration branch and _should_ always compile -and run on all supported platforms, although details of newly added features may -change until they have been included in a release. New features and many bug -fixes live in [other branches](https://github.com/glfw/glfw/branches/all) until -they are stable enough to merge. - -If you are new to GLFW, you may find the -[tutorial](http://www.glfw.org/docs/latest/quick.html) for GLFW 3 useful. If -you have used GLFW 2 in the past, there is a [transition -guide](http://www.glfw.org/docs/latest/moving.html) for moving to the GLFW -3 API. - - -## Compiling GLFW - -GLFW itself requires only the headers and libraries for your window system. It -does not need the headers for any context creation API (WGL, GLX, EGL, NSGL, -OSMesa) or rendering API (OpenGL, OpenGL ES, Vulkan) to enable support for them. - -GLFW supports compilation on Windows with Visual C++ 2010 and later, MinGW and -MinGW-w64, on macOS with Clang and on Linux and other Unix-like systems with GCC -and Clang. It will likely compile in other environments as well, but this is -not regularly tested. - -There are [pre-compiled Windows binaries](http://www.glfw.org/download.html) -available for all supported compilers. - -See the [compilation guide](http://www.glfw.org/docs/latest/compile.html) for -more information about how to compile GLFW yourself. - - -## Using GLFW - -See the [documentation](http://www.glfw.org/docs/latest/) for tutorials, guides -and the API reference. - - -## Contributing to GLFW - -See the [contribution -guide](https://github.com/glfw/glfw/blob/master/.github/CONTRIBUTING.md) for -more information. - - -## System requirements - -GLFW supports Windows XP and later and macOS 10.7 and later. Linux and other -Unix-like systems running the X Window System are supported even without -a desktop environment or modern extensions, although some features require -a running window or clipboard manager. The OSMesa backend requires Mesa 6.3. - -See the [compatibility guide](http://www.glfw.org/docs/latest/compat.html) -in the documentation for more information. - - -## Dependencies - -GLFW itself depends only on the headers and libraries for your window system. - -The (experimental) Wayland backend also depends on the `extra-cmake-modules` -package, which is used to generated Wayland protocol headers. - -The examples and test programs depend on a number of tiny libraries. These are -located in the `deps/` directory. - - - [getopt\_port](https://github.com/kimgr/getopt_port/) for examples - with command-line options - - [TinyCThread](https://github.com/tinycthread/tinycthread) for threaded - examples - - An OpenGL 3.2 core loader generated by - [glad](https://github.com/Dav1dde/glad) for examples using modern OpenGL - - [linmath.h](https://github.com/datenwolf/linmath.h) for linear algebra in - examples - - [Nuklear](https://github.com/vurtun/nuklear) for test and example UI - - [stb\_image\_write](https://github.com/nothings/stb) for writing images to disk - - [Vulkan headers](https://www.khronos.org/registry/vulkan/) for Vulkan tests - -The Vulkan example additionally requires the Vulkan SDK to be installed, or it -will not be included in the build. On macOS you need to provide the path to the -MoltenVK SDK manually as it has no standard installation location. - -The documentation is generated with [Doxygen](http://doxygen.org/) if CMake can -find that tool. - - -## Reporting bugs - -Bugs are reported to our [issue tracker](https://github.com/glfw/glfw/issues). -Please check the [contribution -guide](https://github.com/glfw/glfw/blob/master/.github/CONTRIBUTING.md) for -information on what to include when reporting a bug. - - -## Changelog - -- Added `glfwGetError` function for querying the last error code and its - description (#970) -- Added `glfwUpdateGamepadMappings` function for importing gamepad mappings in - SDL\_GameControllerDB format (#900) -- Added `glfwJoystickIsGamepad` function for querying whether a joystick has - a gamepad mapping (#900) -- Added `glfwGetJoystickGUID` function for querying the SDL compatible GUID of - a joystick (#900) -- Added `glfwGetGamepadName` function for querying the name provided by the - gamepad mapping (#900) -- Added `glfwGetGamepadState` function, `GLFW_GAMEPAD_*` and `GLFWgamepadstate` - for retrieving gamepad input state (#900) -- Added `glfwRequestWindowAttention` function for requesting attention from the - user (#732,#988) -- Added `glfwGetKeyScancode` function that allows retrieving platform dependent - scancodes for keys (#830) -- Added `glfwSetWindowMaximizeCallback` and `GLFWwindowmaximizefun` for - receiving window maximization events (#778) -- Added `glfwSetWindowAttrib` function for changing window attributes (#537) -- Added `glfwGetJoystickHats` function for querying joystick hats - (#889,#906,#934) -- Added `glfwInitHint` and `glfwInitHintString` for setting initialization hints -- Added `glfwGetX11SelectionString` and `glfwSetX11SelectionString` - functions for accessing X11 primary selection (#894,#1056) -- Added headless [OSMesa](http://mesa3d.org/osmesa.html) backend (#850) -- Added definition of `GLAPIENTRY` to public header -- Added `GLFW_TRANSPARENT` window hint for enabling window framebuffer - transparency (#197,#663,#715,#723,#1078) -- Added `GLFW_CENTER_CURSOR` window hint for controlling cursor centering - (#749,#842) -- Added `GLFW_JOYSTICK_HAT_BUTTONS` init hint (#889) -- Added macOS specific `GLFW_COCOA_RETINA_FRAMEBUFFER` window hint -- Added macOS specific `GLFW_COCOA_FRAME_AUTOSAVE` window hint (#195) -- Added macOS specific `GLFW_COCOA_GRAPHICS_SWITCHING` window hint (#377,#935) -- Added macOS specific `GLFW_COCOA_CHDIR_RESOURCES` init hint -- Added macOS specific `GLFW_COCOA_MENUBAR` init hint -- Added X11 specific `GLFW_X11_WM_CLASS_NAME` and `GLFW_X11_WM_CLASS_CLASS` init - hints (#893) -- Added `GLFW_INCLUDE_ES32` for including the OpenGL ES 3.2 header -- Added `GLFW_OSMESA_CONTEXT_API` for creating OpenGL contexts with - [OSMesa](https://www.mesa3d.org/osmesa.html) (#281) -- Added `GenerateMappings.cmake` script for updating gamepad mappings -- Removed `GLFW_USE_RETINA` compile-time option -- Removed `GLFW_USE_CHDIR` compile-time option -- Removed `GLFW_USE_MENUBAR` compile-time option -- Bugfix: Calling `glfwMaximizeWindow` on a full screen window was not ignored -- Bugfix: `GLFW_INCLUDE_VULKAN` could not be combined with the corresponding - OpenGL and OpenGL ES header macros -- Bugfix: `glfwGetInstanceProcAddress` returned `NULL` for - `vkGetInstanceProcAddr` when `_GLFW_VULKAN_STATIC` was enabled -- Bugfix: Invalid library paths were used in test and example CMake files (#930) -- Bugfix: The scancode for synthetic key release events was always zero -- Bugfix: The generated Doxyfile did not handle paths with spaces (#1081) -- [Win32] Added system error strings to relevant GLFW error descriptions (#733) -- [Win32] Moved to `WM_INPUT` for disabled cursor mode motion input (#125) -- [Win32] Removed XInput circular deadzone from joystick axis data (#1045) -- [Win32] Bugfix: Undecorated windows could not be iconified by the user (#861) -- [Win32] Bugfix: Deadzone logic could underflow with some controllers (#910) -- [Win32] Bugfix: Bitness test in `FindVulkan.cmake` was VS specific (#928) -- [Win32] Bugfix: `glfwVulkanSupported` emitted an error on systems with - a loader but no ICD (#916) -- [Win32] Bugfix: Non-iconified full sreeen windows did not prevent screen - blanking or password enabled screensavers (#851) -- [Win32] Bugfix: Mouse capture logic lost secondary release messages (#954) -- [Win32] Bugfix: The 32-bit Vulkan loader library static was not searched for -- [Win32] Bugfix: Vulkan libraries have a new path as of SDK 1.0.42.0 (#956) -- [Win32] Bugfix: Monitors with no display devices were not enumerated (#960) -- [Win32] Bugfix: Monitor events were not emitted (#784) -- [Win32] Bugfix: The Cygwin DLL was installed to the wrong directory (#1035) -- [Win32] Bugfix: Normalization of axis data via XInput was incorrect (#1045) -- [Win32] Bugfix: `glfw3native.h` would undefine a foreign `APIENTRY` (#1062) -- [Win32] Bugfix: Disabled cursor mode prevented use of caption buttons - (#650,#1071) -- [Win32] Bugfix: Returned key names did not match other platforms (#943) -- [X11] Moved to XI2 `XI_RawMotion` for disable cursor mode motion input (#125) -- [X11] Replaced `_GLFW_HAS_XF86VM` compile-time option with dynamic loading -- [X11] Bugfix: `glfwGetVideoMode` would segfault on Cygwin/X -- [X11] Bugfix: Dynamic X11 library loading did not use full sonames (#941) -- [X11] Bugfix: Window creation on 64-bit would read past top of stack (#951) -- [X11] Bugfix: XDND support had multiple non-conformance issues (#968) -- [X11] Bugfix: The RandR monitor path was disabled despite working RandR (#972) -- [X11] Bugfix: IM-duplicated key events would leak at low polling rates (#747) -- [X11] Bugfix: Gamma ramp setting via RandR did not validate ramp size -- [X11] Bugfix: Key name string encoding depended on current locale (#981,#983) -- [X11] Bugfix: Incremental reading of selections was not supported (#275) -- [X11] Bugfix: Selection I/O reported but did not support `COMPOUND_TEXT` -- [X11] Bugfix: Latin-1 text read from selections was not converted to UTF-8 -- [Linux] Moved to evdev for joystick input (#906,#1005) -- [Linux] Bugfix: Event processing did not detect joystick disconnection (#932) -- [Linux] Bugfix: The joystick device path could be truncated (#1025) -- [Linux] Bugfix: `glfwInit` would fail if inotify creation failed (#833) -- [Linux] Bugfix: `strdup` was used without any required feature macro (#1055) -- [Cocoa] Added support for Vulkan window surface creation via - [MoltenVK](https://moltengl.com/moltenvk/) (#870) -- [Cocoa] Added support for loading a `MainMenu.nib` when available -- [Cocoa] Bugfix: Disabling window aspect ratio would assert (#852) -- [Cocoa] Bugfix: Window creation failed to set first responder (#876,#883) -- [Cocoa] Bugfix: Removed use of deprecated `CGDisplayIOServicePort` function - (#165,#192,#508,#511) -- [Cocoa] Bugfix: Disabled use of deprecated `CGDisplayModeCopyPixelEncoding` - function on macOS 10.12+ -- [Cocoa] Bugfix: Running in AppSandbox would emit warnings (#816,#882) -- [Cocoa] Bugfix: Windows created after the first were not cascaded (#195) -- [Cocoa] Bugfix: Leaving video mode with `glfwSetWindowMonitor` would set - incorrect position and size (#748) -- [Cocoa] Bugfix: Iconified full screen windows could not be restored (#848) -- [Cocoa] Bugfix: Value range was ignored for joystick hats and buttons (#888) -- [Cocoa] Bugfix: Full screen framebuffer was incorrectly sized for some video - modes (#682) -- [Cocoa] Bugfix: A string object for IME was updated non-idiomatically (#1050) -- [Cocoa] Bugfix: A hidden or disabled cursor would become visible when a user - notification was shown (#971,#1028) -- [Cocoa] Bugfix: Some characters did not repeat due to Press and Hold (#1010) -- [Cocoa] Bugfix: Window title was lost when full screen or undecorated (#1082) -- [WGL] Added support for `WGL_EXT_colorspace` for OpenGL ES contexts -- [WGL] Added support for `WGL_ARB_create_context_no_error` -- [GLX] Added support for `GLX_ARB_create_context_no_error` -- [GLX] Bugfix: Context creation could segfault if no GLXFBConfigs were - available (#1040) -- [EGL] Added support for `EGL_KHR_get_all_proc_addresses` (#871) -- [EGL] Added support for `EGL_KHR_context_flush_control` -- [EGL] Bugfix: The test for `EGL_RGB_BUFFER` was invalid - - -## Contact - -On [glfw.org](http://www.glfw.org/) you can find the latest version of GLFW, as -well as news, documentation and other information about the project. - -If you have questions related to the use of GLFW, we have a -[forum](http://discourse.glfw.org/), and the `#glfw` IRC channel on -[Freenode](http://freenode.net/). - -If you have a bug to report, a patch to submit or a feature you'd like to -request, please file it in the -[issue tracker](https://github.com/glfw/glfw/issues) on GitHub. - -Finally, if you're interested in helping out with the development of GLFW or -porting it to your favorite platform, join us on the forum, GitHub or IRC. - - -## Acknowledgements - -GLFW exists because people around the world donated their time and lent their -skills. - - - Bobyshev Alexander - - Matt Arsenault - - David Avedissian - - Keith Bauer - - John Bartholomew - - Niklas Behrens - - Niklas Bergström - - Denis Bernard - - Doug Binks - - blanco - - Kyle Brenneman - - Rok Breulj - - Martin Capitanio - - David Carlier - - Arturo Castro - - Chi-kwan Chan - - Ian Clarkson - - Michał Cichoń - - Lambert Clara - - Yaron Cohen-Tal - - Omar Cornut - - Andrew Corrigan - - Bailey Cosier - - Noel Cower - - Jason Daly - - Jarrod Davis - - Olivier Delannoy - - Paul R. Deppe - - Michael Dickens - - Роман Донченко - - Mario Dorn - - Wolfgang Draxinger - - Jonathan Dummer - - Ralph Eastwood - - Fredrik Ehnbom - - Robin Eklind - - Siavash Eliasi - - Felipe Ferreira - - Michael Fogleman - - Gerald Franz - - Mário Freitas - - GeO4d - - Marcus Geelnard - - Eloi Marín Gratacós - - Stefan Gustavson - - Jonathan Hale - - Sylvain Hellegouarch - - Matthew Henry - - heromyth - - Lucas Hinderberger - - Paul Holden - - Warren Hu - - IntellectualKitty - - Aaron Jacobs - - Erik S. V. Jansson - - Toni Jovanoski - - Arseny Kapoulkine - - Cem Karan - - Osman Keskin - - Josh Kilmer - - Cameron King - - Peter Knut - - Christoph Kubisch - - Yuri Kunde Schlesner - - Konstantin Käfer - - Eric Larson - - Robin Leffmann - - Glenn Lewis - - Shane Liesegang - - Eyal Lotem - - Tristam MacDonald - - Hans Mackowiak - - Дмитри Малышев - - Zbigniew Mandziejewicz - - Célestin Marot - - Kyle McDonald - - David Medlock - - Bryce Mehring - - Jonathan Mercier - - Marcel Metz - - Liam Middlebrook - - Jonathan Miller - - Kenneth Miller - - Bruce Mitchener - - Jack Moffitt - - Jeff Molofee - - Pierre Morel - - Jon Morton - - Pierre Moulon - - Martins Mozeiko - - Julian Møller - - ndogxj - - Kristian Nielsen - - Kamil Nowakowski - - Denis Ovod - - Ozzy - - Andri Pálsson - - Peoro - - Braden Pellett - - Christopher Pelloux - - Arturo J. Pérez - - Anthony Pesch - - Orson Peters - - Emmanuel Gil Peyrot - - Cyril Pichard - - Keith Pitt - - Stanislav Podgorskiy - - Alexandre Pretyman - - Philip Rideout - - Eddie Ringle - - Jorge Rodriguez - - Ed Ropple - - Aleksey Rybalkin - - Riku Salminen - - Brandon Schaefer - - Sebastian Schuberth - - Christian Sdunek - - Matt Sealey - - Steve Sexton - - Arkady Shapkin - - Yoshiki Shibukawa - - Dmitri Shuralyov - - Daniel Skorupski - - Bradley Smith - - Patrick Snape - - Erlend Sogge Heggen - - Julian Squires - - Johannes Stein - - Pontus Stenetorp - - Michael Stocker - - Justin Stoecker - - Elviss Strazdins - - Paul Sultana - - Nathan Sweet - - TTK-Bandit - - Sergey Tikhomirov - - Arthur Tombs - - Ioannis Tsakpinis - - Samuli Tuomola - - Matthew Turner - - urraka - - Elias Vanderstuyft - - Stef Velzel - - Jari Vetoniemi - - Ricardo Vieira - - Nicholas Vitovitch - - Simon Voordouw - - Torsten Walluhn - - Patrick Walton - - Xo Wang - - Jay Weisskopf - - Frank Wille - - Ryogo Yoshimura - - Andrey Zholos - - Santi Zupancic - - Jonas Ådahl - - Lasse Öörni - - All the unmentioned and anonymous contributors in the GLFW community, for bug - reports, patches, feedback, testing and encouragement - diff --git a/external/GLFW/deps/glad.c b/external/GLFW/deps/glad.c deleted file mode 100644 index 10b0a00..0000000 --- a/external/GLFW/deps/glad.c +++ /dev/null @@ -1,1678 +0,0 @@ -/* - - OpenGL loader generated by glad 0.1.12a0 on Fri Sep 23 13:36:15 2016. - - Language/Generator: C/C++ - Specification: gl - APIs: gl=3.2 - Profile: compatibility - Extensions: - GL_ARB_multisample, - GL_ARB_robustness, - GL_KHR_debug - Loader: False - Local files: False - Omit khrplatform: False - - Commandline: - --profile="compatibility" --api="gl=3.2" --generator="c" --spec="gl" --no-loader --extensions="GL_ARB_multisample,GL_ARB_robustness,GL_KHR_debug" - Online: - http://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&api=gl%3D3.2&extensions=GL_ARB_multisample&extensions=GL_ARB_robustness&extensions=GL_KHR_debug -*/ - -#include -#include -#include -#include - -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 const 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 { - int index; - - num_exts_i = 0; - glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i); - if (num_exts_i > 0) { - exts_i = (const char **)realloc((void *)exts_i, num_exts_i * sizeof *exts_i); - } - - if (exts_i == NULL) { - return 0; - } - - for(index = 0; index < num_exts_i; index++) { - exts_i[index] = (const char*)glGetStringi(GL_EXTENSIONS, index); - } - } -#endif - return 1; -} - -static void free_exts(void) { - if (exts_i != NULL) { - free((char **)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; - - for(index = 0; index < num_exts_i; index++) { - const char *e = exts_i[index]; - - if(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; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLWINDOWPOS2SPROC glad_glWindowPos2s; -PFNGLWINDOWPOS2IPROC glad_glWindowPos2i; -PFNGLWINDOWPOS2FPROC glad_glWindowPos2f; -PFNGLWINDOWPOS2DPROC glad_glWindowPos2d; -PFNGLVERTEX2FVPROC glad_glVertex2fv; -PFNGLINDEXIPROC glad_glIndexi; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLRECTDVPROC glad_glRectdv; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLEVALCOORD2DPROC glad_glEvalCoord2d; -PFNGLEVALCOORD2FPROC glad_glEvalCoord2f; -PFNGLINDEXDPROC glad_glIndexd; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLINDEXFPROC glad_glIndexf; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLGETMAPFVPROC glad_glGetMapfv; -PFNGLINDEXSPROC glad_glIndexs; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv; -PFNGLINDEXFVPROC glad_glIndexfv; -PFNGLFOGIVPROC glad_glFogiv; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv; -PFNGLLIGHTMODELIVPROC glad_glLightModeliv; -PFNGLCOLOR4UIPROC glad_glColor4ui; -PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv; -PFNGLFOGFVPROC glad_glFogfv; -PFNGLENABLEIPROC glad_glEnablei; -PFNGLVERTEX4IVPROC glad_glVertex4iv; -PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv; -PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv; -PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLVERTEX4FVPROC glad_glVertex4fv; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLCOLOR4BVPROC glad_glColor4bv; -PFNGLRASTERPOS2FPROC glad_glRasterPos2f; -PFNGLRASTERPOS2DPROC glad_glRasterPos2d; -PFNGLLOADIDENTITYPROC glad_glLoadIdentity; -PFNGLRASTERPOS2IPROC glad_glRasterPos2i; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLCOLOR3BPROC glad_glColor3b; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -PFNGLEDGEFLAGPROC glad_glEdgeFlag; -PFNGLVERTEX3DPROC glad_glVertex3d; -PFNGLVERTEX3FPROC glad_glVertex3f; -PFNGLVERTEX3IPROC glad_glVertex3i; -PFNGLCOLOR3IPROC glad_glColor3i; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -PFNGLCOLOR3SPROC glad_glColor3s; -PFNGLVERTEX3SPROC glad_glVertex3s; -PFNGLCOLORMASKIPROC glad_glColorMaski; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -PFNGLVERTEX2IVPROC glad_glVertex2iv; -PFNGLCOLOR3SVPROC glad_glColor3sv; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLNORMALPOINTERPROC glad_glNormalPointer; -PFNGLVERTEX4SVPROC glad_glVertex4sv; -PFNGLPASSTHROUGHPROC glad_glPassThrough; -PFNGLFOGIPROC glad_glFogi; -PFNGLBEGINPROC glad_glBegin; -PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv; -PFNGLCOLOR3UBVPROC glad_glColor3ubv; -PFNGLVERTEXPOINTERPROC glad_glVertexPointer; -PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv; -PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d; -PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f; -PFNGLLIGHTFVPROC glad_glLightfv; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLCLEARPROC glad_glClear; -PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i; -PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLTRANSLATEFPROC glad_glTranslatef; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLTRANSLATEDPROC glad_glTranslated; -PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv; -PFNGLGETMATERIALFVPROC glad_glGetMaterialfv; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -PFNGLFOGCOORDFVPROC glad_glFogCoordfv; -PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLINDEXSVPROC glad_glIndexsv; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLVERTEX3IVPROC glad_glVertex3iv; -PFNGLBITMAPPROC glad_glBitmap; -PFNGLMATERIALIPROC glad_glMateriali; -PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLTEXCOORD4FPROC glad_glTexCoord4f; -PFNGLTEXCOORD4DPROC glad_glTexCoord4d; -PFNGLTEXCOORD4IPROC glad_glTexCoord4i; -PFNGLMATERIALFPROC glad_glMaterialf; -PFNGLTEXCOORD4SPROC glad_glTexCoord4s; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLVERTEX3DVPROC glad_glVertex3dv; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLENABLEPROC glad_glEnable; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLCOLOR4FVPROC glad_glColor4fv; -PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv; -PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv; -PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i; -PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv; -PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv; -PFNGLTEXGENFPROC glad_glTexGenf; -PFNGLGETPOINTERVPROC glad_glGetPointerv; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -PFNGLNORMAL3FVPROC glad_glNormal3fv; -PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLFRUSTUMPROC glad_glFrustum; -PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLPUSHMATRIXPROC glad_glPushMatrix; -PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv; -PFNGLORTHOPROC glad_glOrtho; -PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv; -PFNGLCLEARINDEXPROC glad_glClearIndex; -PFNGLMAP1DPROC glad_glMap1d; -PFNGLMAP1FPROC glad_glMap1f; -PFNGLFLUSHPROC glad_glFlush; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLINDEXIVPROC glad_glIndexiv; -PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLPIXELZOOMPROC glad_glPixelZoom; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLLIGHTIPROC glad_glLighti; -PFNGLLIGHTFPROC glad_glLightf; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv; -PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv; -PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv; -PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -PFNGLINDEXPOINTERPROC glad_glIndexPointer; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLISSYNCPROC glad_glIsSync; -PFNGLVERTEX2FPROC glad_glVertex2f; -PFNGLVERTEX2DPROC glad_glVertex2d; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLMAPGRID2DPROC glad_glMapGrid2d; -PFNGLMAPGRID2FPROC glad_glMapGrid2f; -PFNGLVERTEX2IPROC glad_glVertex2i; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLVERTEX2SPROC glad_glVertex2s; -PFNGLNORMAL3BVPROC glad_glNormal3bv; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv; -PFNGLVERTEX3SVPROC glad_glVertex3sv; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv; -PFNGLTEXENVFPROC glad_glTexEnvf; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLFOGCOORDDPROC glad_glFogCoordd; -PFNGLFOGCOORDFPROC glad_glFogCoordf; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLTEXENVIPROC glad_glTexEnvi; -PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLMATRIXMODEPROC glad_glMatrixMode; -PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer; -PFNGLGETMAPIVPROC glad_glGetMapiv; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d; -PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures; -PFNGLCALLLISTPROC glad_glCallList; -PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLLIGHTMODELFPROC glad_glLightModelf; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLVERTEX2SVPROC glad_glVertex2sv; -PFNGLLIGHTMODELIPROC glad_glLightModeli; -PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLCALLLISTSPROC glad_glCallLists; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d; -PFNGLTEXCOORD3IPROC glad_glTexCoord3i; -PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv; -PFNGLRASTERPOS3IPROC glad_glRasterPos3i; -PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b; -PFNGLRASTERPOS3DPROC glad_glRasterPos3d; -PFNGLRASTERPOS3FPROC glad_glRasterPos3f; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLTEXCOORD3FPROC glad_glTexCoord3f; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLTEXCOORD3SPROC glad_glTexCoord3s; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLRASTERPOS3SPROC glad_glRasterPos3s; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident; -PFNGLISLISTPROC glad_glIsList; -PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv; -PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv; -PFNGLCOLOR4SPROC glad_glColor4s; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLLINESTIPPLEPROC glad_glLineStipple; -PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv; -PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLCOLOR4BPROC glad_glColor4b; -PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f; -PFNGLCOLOR4FPROC glad_glColor4f; -PFNGLCOLOR4DPROC glad_glColor4d; -PFNGLCOLOR4IPROC glad_glColor4i; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv; -PFNGLVERTEX2DVPROC glad_glVertex2dv; -PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLFINISHPROC glad_glFinish; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLRASTERPOS2SPROC glad_glRasterPos2s; -PFNGLGETMAPDVPROC glad_glGetMapdv; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLMATERIALFVPROC glad_glMaterialfv; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLINDEXDVPROC glad_glIndexdv; -PFNGLTEXCOORD3DPROC glad_glTexCoord3d; -PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLCLEARDEPTHPROC glad_glClearDepth; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -PFNGLTEXBUFFERPROC glad_glTexBuffer; -PFNGLPOPNAMEPROC glad_glPopName; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv; -PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv; -PFNGLRECTIPROC glad_glRecti; -PFNGLCOLOR4UBPROC glad_glColor4ub; -PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf; -PFNGLRECTFPROC glad_glRectf; -PFNGLRECTDPROC glad_glRectd; -PFNGLNORMAL3SVPROC glad_glNormal3sv; -PFNGLNEWLISTPROC glad_glNewList; -PFNGLCOLOR4USPROC glad_glColor4us; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLHINTPROC glad_glHint; -PFNGLRECTSPROC glad_glRects; -PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv; -PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLEDGEFLAGVPROC glad_glEdgeFlagv; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLSCALEFPROC glad_glScalef; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLSCALEDPROC glad_glScaled; -PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer; -PFNGLCOPYPIXELSPROC glad_glCopyPixels; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLPOPATTRIBPROC glad_glPopAttrib; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -PFNGLINITNAMESPROC glad_glInitNames; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -PFNGLCOLOR3DVPROC glad_glColor3dv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLCOLORMATERIALPROC glad_glColorMaterial; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLRENDERMODEPROC glad_glRenderMode; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi; -PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -PFNGLDISABLEPROC glad_glDisable; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLEVALPOINT2PROC glad_glEvalPoint2; -PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf; -PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLCOLOR3FPROC glad_glColor3f; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv; -PFNGLRECTFVPROC glad_glRectfv; -PFNGLCULLFACEPROC glad_glCullFace; -PFNGLGETLIGHTFVPROC glad_glGetLightfv; -PFNGLCOLOR3DPROC glad_glColor3d; -PFNGLTEXGENDPROC glad_glTexGend; -PFNGLTEXGENIPROC glad_glTexGeni; -PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i; -PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f; -PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d; -PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLFOGCOORDDVPROC glad_glFogCoorddv; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLGETTEXGENFVPROC glad_glGetTexGenfv; -PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLTEXGENIVPROC glad_glTexGeniv; -PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv; -PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv; -PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us; -PFNGLTEXENVFVPROC glad_glTexEnvfv; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv; -PFNGLLIGHTMODELFVPROC glad_glLightModelfv; -PFNGLDELETELISTSPROC glad_glDeleteLists; -PFNGLGETCLIPPLANEPROC glad_glGetClipPlane; -PFNGLVERTEX4DVPROC glad_glVertex4dv; -PFNGLTEXCOORD2DPROC glad_glTexCoord2d; -PFNGLPOPMATRIXPROC glad_glPopMatrix; -PFNGLTEXCOORD2FPROC glad_glTexCoord2f; -PFNGLCOLOR4IVPROC glad_glColor4iv; -PFNGLINDEXUBVPROC glad_glIndexubv; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLTEXCOORD2IPROC glad_glTexCoord2i; -PFNGLRASTERPOS4DPROC glad_glRasterPos4d; -PFNGLRASTERPOS4FPROC glad_glRasterPos4f; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLTEXCOORD2SPROC glad_glTexCoord2s; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLVERTEX3FVPROC glad_glVertex3fv; -PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv; -PFNGLMATERIALIVPROC glad_glMaterialiv; -PFNGLISPROGRAMPROC glad_glIsProgram; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLVERTEX4SPROC glad_glVertex4s; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -PFNGLNORMAL3DVPROC glad_glNormal3dv; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -PFNGLROTATEDPROC glad_glRotated; -PFNGLROTATEFPROC glad_glRotatef; -PFNGLVERTEX4IPROC glad_glVertex4i; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLLOADNAMEPROC glad_glLoadName; -PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLSHADEMODELPROC glad_glShadeModel; -PFNGLMAPGRID1DPROC glad_glMapGrid1d; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLMAPGRID1FPROC glad_glMapGrid1f; -PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState; -PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer; -PFNGLALPHAFUNCPROC glad_glAlphaFunc; -PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLSTENCILFUNCPROC glad_glStencilFunc; -PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLCOLOR4UIVPROC glad_glColor4uiv; -PFNGLRECTIVPROC glad_glRectiv; -PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv; -PFNGLEVALMESH2PROC glad_glEvalMesh2; -PFNGLEVALMESH1PROC glad_glEvalMesh1; -PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer; -PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv; -PFNGLCOLOR4UBVPROC glad_glColor4ubv; -PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd; -PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv; -PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLTEXENVIVPROC glad_glTexEnviv; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLSELECTBUFFERPROC glad_glSelectBuffer; -PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLPUSHATTRIBPROC glad_glPushAttrib; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLLIGHTIVPROC glad_glLightiv; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLTEXGENFVPROC glad_glTexGenfv; -PFNGLENDPROC glad_glEnd; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLSCISSORPROC glad_glScissor; -PFNGLCLIPPLANEPROC glad_glClipPlane; -PFNGLPUSHNAMEPROC glad_glPushName; -PFNGLTEXGENDVPROC glad_glTexGendv; -PFNGLINDEXUBPROC glad_glIndexub; -PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv; -PFNGLRASTERPOS4IPROC glad_glRasterPos4i; -PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLNORMAL3SPROC glad_glNormal3s; -PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLWINDOWPOS3DPROC glad_glWindowPos3d; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; -PFNGLCOLOR4DVPROC glad_glColor4dv; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub; -PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui; -PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLNORMAL3IVPROC glad_glNormal3iv; -PFNGLWINDOWPOS3SPROC glad_glWindowPos3s; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLWINDOWPOS3IPROC glad_glWindowPos3i; -PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s; -PFNGLWINDOWPOS3FPROC glad_glWindowPos3f; -PFNGLCOLOR3USPROC glad_glColor3us; -PFNGLCOLOR3UIVPROC glad_glColor3uiv; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLGETLIGHTIVPROC glad_glGetLightiv; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLLISTBASEPROC glad_glListBase; -PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f; -PFNGLCOLOR3UBPROC glad_glColor3ub; -PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLCOLOR3UIPROC glad_glColor3ui; -PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i; -PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv; -PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLRASTERPOS4SPROC glad_glRasterPos4s; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv; -PFNGLCOLOR4SVPROC glad_glColor4sv; -PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLFOGFPROC glad_glFogf; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLCOLOR3IVPROC glad_glColor3iv; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -PFNGLTEXCOORD1IPROC glad_glTexCoord1i; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLTEXCOORD1DPROC glad_glTexCoord1d; -PFNGLTEXCOORD1FPROC glad_glTexCoord1f; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv; -PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLTEXCOORD1SPROC glad_glTexCoord1s; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -PFNGLGENLISTSPROC glad_glGenLists; -PFNGLCOLOR3BVPROC glad_glColor3bv; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLGETTEXGENDVPROC glad_glGetTexGendv; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLENDLISTPROC glad_glEndList; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLCOLOR3USVPROC glad_glColor3usv; -PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv; -PFNGLDISABLEIPROC glad_glDisablei; -PFNGLINDEXMASKPROC glad_glIndexMask; -PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLCLEARACCUMPROC glad_glClearAccum; -PFNGLGETSYNCIVPROC glad_glGetSynciv; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLMAP2DPROC glad_glMap2d; -PFNGLMAP2FPROC glad_glMap2f; -PFNGLVERTEX4DPROC glad_glVertex4d; -PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLEVALPOINT1PROC glad_glEvalPoint1; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv; -PFNGLGETERRORPROC glad_glGetError; -PFNGLGETTEXENVIVPROC glad_glGetTexEnviv; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLEVALCOORD1DPROC glad_glEvalCoord1d; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -PFNGLEVALCOORD1FPROC glad_glEvalCoord1f; -PFNGLPIXELMAPFVPROC glad_glPixelMapfv; -PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLACCUMPROC glad_glAccum; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv; -PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv; -PFNGLISQUERYPROC glad_glIsQuery; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLDRAWPIXELSPROC glad_glDrawPixels; -PFNGLMULTMATRIXDPROC glad_glMultMatrixd; -PFNGLMULTMATRIXFPROC glad_glMultMatrixf; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLGETMATERIALIVPROC glad_glGetMaterialiv; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLLOADMATRIXFPROC glad_glLoadMatrixf; -PFNGLLOADMATRIXDPROC glad_glLoadMatrixd; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLVERTEX4FPROC glad_glVertex4f; -PFNGLRECTSVPROC glad_glRectsv; -PFNGLCOLOR4USVPROC glad_glColor4usv; -PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple; -PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; -PFNGLNORMAL3IPROC glad_glNormal3i; -PFNGLNORMAL3FPROC glad_glNormal3f; -PFNGLNORMAL3DPROC glad_glNormal3d; -PFNGLNORMAL3BPROC glad_glNormal3b; -PFNGLPIXELMAPUSVPROC glad_glPixelMapusv; -PFNGLGETTEXGENIVPROC glad_glGetTexGeniv; -PFNGLARRAYELEMENTPROC glad_glArrayElement; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLCOLOR3FVPROC glad_glColor3fv; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLCOLORPOINTERPROC glad_glColorPointer; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -int GLAD_GL_KHR_debug; -int GLAD_GL_ARB_robustness; -int GLAD_GL_ARB_multisample; -PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; -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; -PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; -PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; -PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; -PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog; -PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup; -PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup; -PFNGLOBJECTLABELPROC glad_glObjectLabel; -PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel; -PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel; -PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel; -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; -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"); - glad_glNewList = (PFNGLNEWLISTPROC)load("glNewList"); - glad_glEndList = (PFNGLENDLISTPROC)load("glEndList"); - glad_glCallList = (PFNGLCALLLISTPROC)load("glCallList"); - glad_glCallLists = (PFNGLCALLLISTSPROC)load("glCallLists"); - glad_glDeleteLists = (PFNGLDELETELISTSPROC)load("glDeleteLists"); - glad_glGenLists = (PFNGLGENLISTSPROC)load("glGenLists"); - glad_glListBase = (PFNGLLISTBASEPROC)load("glListBase"); - glad_glBegin = (PFNGLBEGINPROC)load("glBegin"); - glad_glBitmap = (PFNGLBITMAPPROC)load("glBitmap"); - glad_glColor3b = (PFNGLCOLOR3BPROC)load("glColor3b"); - glad_glColor3bv = (PFNGLCOLOR3BVPROC)load("glColor3bv"); - glad_glColor3d = (PFNGLCOLOR3DPROC)load("glColor3d"); - glad_glColor3dv = (PFNGLCOLOR3DVPROC)load("glColor3dv"); - glad_glColor3f = (PFNGLCOLOR3FPROC)load("glColor3f"); - glad_glColor3fv = (PFNGLCOLOR3FVPROC)load("glColor3fv"); - glad_glColor3i = (PFNGLCOLOR3IPROC)load("glColor3i"); - glad_glColor3iv = (PFNGLCOLOR3IVPROC)load("glColor3iv"); - glad_glColor3s = (PFNGLCOLOR3SPROC)load("glColor3s"); - glad_glColor3sv = (PFNGLCOLOR3SVPROC)load("glColor3sv"); - glad_glColor3ub = (PFNGLCOLOR3UBPROC)load("glColor3ub"); - glad_glColor3ubv = (PFNGLCOLOR3UBVPROC)load("glColor3ubv"); - glad_glColor3ui = (PFNGLCOLOR3UIPROC)load("glColor3ui"); - glad_glColor3uiv = (PFNGLCOLOR3UIVPROC)load("glColor3uiv"); - glad_glColor3us = (PFNGLCOLOR3USPROC)load("glColor3us"); - glad_glColor3usv = (PFNGLCOLOR3USVPROC)load("glColor3usv"); - glad_glColor4b = (PFNGLCOLOR4BPROC)load("glColor4b"); - glad_glColor4bv = (PFNGLCOLOR4BVPROC)load("glColor4bv"); - glad_glColor4d = (PFNGLCOLOR4DPROC)load("glColor4d"); - glad_glColor4dv = (PFNGLCOLOR4DVPROC)load("glColor4dv"); - glad_glColor4f = (PFNGLCOLOR4FPROC)load("glColor4f"); - glad_glColor4fv = (PFNGLCOLOR4FVPROC)load("glColor4fv"); - glad_glColor4i = (PFNGLCOLOR4IPROC)load("glColor4i"); - glad_glColor4iv = (PFNGLCOLOR4IVPROC)load("glColor4iv"); - glad_glColor4s = (PFNGLCOLOR4SPROC)load("glColor4s"); - glad_glColor4sv = (PFNGLCOLOR4SVPROC)load("glColor4sv"); - glad_glColor4ub = (PFNGLCOLOR4UBPROC)load("glColor4ub"); - glad_glColor4ubv = (PFNGLCOLOR4UBVPROC)load("glColor4ubv"); - glad_glColor4ui = (PFNGLCOLOR4UIPROC)load("glColor4ui"); - glad_glColor4uiv = (PFNGLCOLOR4UIVPROC)load("glColor4uiv"); - glad_glColor4us = (PFNGLCOLOR4USPROC)load("glColor4us"); - glad_glColor4usv = (PFNGLCOLOR4USVPROC)load("glColor4usv"); - glad_glEdgeFlag = (PFNGLEDGEFLAGPROC)load("glEdgeFlag"); - glad_glEdgeFlagv = (PFNGLEDGEFLAGVPROC)load("glEdgeFlagv"); - glad_glEnd = (PFNGLENDPROC)load("glEnd"); - glad_glIndexd = (PFNGLINDEXDPROC)load("glIndexd"); - glad_glIndexdv = (PFNGLINDEXDVPROC)load("glIndexdv"); - glad_glIndexf = (PFNGLINDEXFPROC)load("glIndexf"); - glad_glIndexfv = (PFNGLINDEXFVPROC)load("glIndexfv"); - glad_glIndexi = (PFNGLINDEXIPROC)load("glIndexi"); - glad_glIndexiv = (PFNGLINDEXIVPROC)load("glIndexiv"); - glad_glIndexs = (PFNGLINDEXSPROC)load("glIndexs"); - glad_glIndexsv = (PFNGLINDEXSVPROC)load("glIndexsv"); - glad_glNormal3b = (PFNGLNORMAL3BPROC)load("glNormal3b"); - glad_glNormal3bv = (PFNGLNORMAL3BVPROC)load("glNormal3bv"); - glad_glNormal3d = (PFNGLNORMAL3DPROC)load("glNormal3d"); - glad_glNormal3dv = (PFNGLNORMAL3DVPROC)load("glNormal3dv"); - glad_glNormal3f = (PFNGLNORMAL3FPROC)load("glNormal3f"); - glad_glNormal3fv = (PFNGLNORMAL3FVPROC)load("glNormal3fv"); - glad_glNormal3i = (PFNGLNORMAL3IPROC)load("glNormal3i"); - glad_glNormal3iv = (PFNGLNORMAL3IVPROC)load("glNormal3iv"); - glad_glNormal3s = (PFNGLNORMAL3SPROC)load("glNormal3s"); - glad_glNormal3sv = (PFNGLNORMAL3SVPROC)load("glNormal3sv"); - glad_glRasterPos2d = (PFNGLRASTERPOS2DPROC)load("glRasterPos2d"); - glad_glRasterPos2dv = (PFNGLRASTERPOS2DVPROC)load("glRasterPos2dv"); - glad_glRasterPos2f = (PFNGLRASTERPOS2FPROC)load("glRasterPos2f"); - glad_glRasterPos2fv = (PFNGLRASTERPOS2FVPROC)load("glRasterPos2fv"); - glad_glRasterPos2i = (PFNGLRASTERPOS2IPROC)load("glRasterPos2i"); - glad_glRasterPos2iv = (PFNGLRASTERPOS2IVPROC)load("glRasterPos2iv"); - glad_glRasterPos2s = (PFNGLRASTERPOS2SPROC)load("glRasterPos2s"); - glad_glRasterPos2sv = (PFNGLRASTERPOS2SVPROC)load("glRasterPos2sv"); - glad_glRasterPos3d = (PFNGLRASTERPOS3DPROC)load("glRasterPos3d"); - glad_glRasterPos3dv = (PFNGLRASTERPOS3DVPROC)load("glRasterPos3dv"); - glad_glRasterPos3f = (PFNGLRASTERPOS3FPROC)load("glRasterPos3f"); - glad_glRasterPos3fv = (PFNGLRASTERPOS3FVPROC)load("glRasterPos3fv"); - glad_glRasterPos3i = (PFNGLRASTERPOS3IPROC)load("glRasterPos3i"); - glad_glRasterPos3iv = (PFNGLRASTERPOS3IVPROC)load("glRasterPos3iv"); - glad_glRasterPos3s = (PFNGLRASTERPOS3SPROC)load("glRasterPos3s"); - glad_glRasterPos3sv = (PFNGLRASTERPOS3SVPROC)load("glRasterPos3sv"); - glad_glRasterPos4d = (PFNGLRASTERPOS4DPROC)load("glRasterPos4d"); - glad_glRasterPos4dv = (PFNGLRASTERPOS4DVPROC)load("glRasterPos4dv"); - glad_glRasterPos4f = (PFNGLRASTERPOS4FPROC)load("glRasterPos4f"); - glad_glRasterPos4fv = (PFNGLRASTERPOS4FVPROC)load("glRasterPos4fv"); - glad_glRasterPos4i = (PFNGLRASTERPOS4IPROC)load("glRasterPos4i"); - glad_glRasterPos4iv = (PFNGLRASTERPOS4IVPROC)load("glRasterPos4iv"); - glad_glRasterPos4s = (PFNGLRASTERPOS4SPROC)load("glRasterPos4s"); - glad_glRasterPos4sv = (PFNGLRASTERPOS4SVPROC)load("glRasterPos4sv"); - glad_glRectd = (PFNGLRECTDPROC)load("glRectd"); - glad_glRectdv = (PFNGLRECTDVPROC)load("glRectdv"); - glad_glRectf = (PFNGLRECTFPROC)load("glRectf"); - glad_glRectfv = (PFNGLRECTFVPROC)load("glRectfv"); - glad_glRecti = (PFNGLRECTIPROC)load("glRecti"); - glad_glRectiv = (PFNGLRECTIVPROC)load("glRectiv"); - glad_glRects = (PFNGLRECTSPROC)load("glRects"); - glad_glRectsv = (PFNGLRECTSVPROC)load("glRectsv"); - glad_glTexCoord1d = (PFNGLTEXCOORD1DPROC)load("glTexCoord1d"); - glad_glTexCoord1dv = (PFNGLTEXCOORD1DVPROC)load("glTexCoord1dv"); - glad_glTexCoord1f = (PFNGLTEXCOORD1FPROC)load("glTexCoord1f"); - glad_glTexCoord1fv = (PFNGLTEXCOORD1FVPROC)load("glTexCoord1fv"); - glad_glTexCoord1i = (PFNGLTEXCOORD1IPROC)load("glTexCoord1i"); - glad_glTexCoord1iv = (PFNGLTEXCOORD1IVPROC)load("glTexCoord1iv"); - glad_glTexCoord1s = (PFNGLTEXCOORD1SPROC)load("glTexCoord1s"); - glad_glTexCoord1sv = (PFNGLTEXCOORD1SVPROC)load("glTexCoord1sv"); - glad_glTexCoord2d = (PFNGLTEXCOORD2DPROC)load("glTexCoord2d"); - glad_glTexCoord2dv = (PFNGLTEXCOORD2DVPROC)load("glTexCoord2dv"); - glad_glTexCoord2f = (PFNGLTEXCOORD2FPROC)load("glTexCoord2f"); - glad_glTexCoord2fv = (PFNGLTEXCOORD2FVPROC)load("glTexCoord2fv"); - glad_glTexCoord2i = (PFNGLTEXCOORD2IPROC)load("glTexCoord2i"); - glad_glTexCoord2iv = (PFNGLTEXCOORD2IVPROC)load("glTexCoord2iv"); - glad_glTexCoord2s = (PFNGLTEXCOORD2SPROC)load("glTexCoord2s"); - glad_glTexCoord2sv = (PFNGLTEXCOORD2SVPROC)load("glTexCoord2sv"); - glad_glTexCoord3d = (PFNGLTEXCOORD3DPROC)load("glTexCoord3d"); - glad_glTexCoord3dv = (PFNGLTEXCOORD3DVPROC)load("glTexCoord3dv"); - glad_glTexCoord3f = (PFNGLTEXCOORD3FPROC)load("glTexCoord3f"); - glad_glTexCoord3fv = (PFNGLTEXCOORD3FVPROC)load("glTexCoord3fv"); - glad_glTexCoord3i = (PFNGLTEXCOORD3IPROC)load("glTexCoord3i"); - glad_glTexCoord3iv = (PFNGLTEXCOORD3IVPROC)load("glTexCoord3iv"); - glad_glTexCoord3s = (PFNGLTEXCOORD3SPROC)load("glTexCoord3s"); - glad_glTexCoord3sv = (PFNGLTEXCOORD3SVPROC)load("glTexCoord3sv"); - glad_glTexCoord4d = (PFNGLTEXCOORD4DPROC)load("glTexCoord4d"); - glad_glTexCoord4dv = (PFNGLTEXCOORD4DVPROC)load("glTexCoord4dv"); - glad_glTexCoord4f = (PFNGLTEXCOORD4FPROC)load("glTexCoord4f"); - glad_glTexCoord4fv = (PFNGLTEXCOORD4FVPROC)load("glTexCoord4fv"); - glad_glTexCoord4i = (PFNGLTEXCOORD4IPROC)load("glTexCoord4i"); - glad_glTexCoord4iv = (PFNGLTEXCOORD4IVPROC)load("glTexCoord4iv"); - glad_glTexCoord4s = (PFNGLTEXCOORD4SPROC)load("glTexCoord4s"); - glad_glTexCoord4sv = (PFNGLTEXCOORD4SVPROC)load("glTexCoord4sv"); - glad_glVertex2d = (PFNGLVERTEX2DPROC)load("glVertex2d"); - glad_glVertex2dv = (PFNGLVERTEX2DVPROC)load("glVertex2dv"); - glad_glVertex2f = (PFNGLVERTEX2FPROC)load("glVertex2f"); - glad_glVertex2fv = (PFNGLVERTEX2FVPROC)load("glVertex2fv"); - glad_glVertex2i = (PFNGLVERTEX2IPROC)load("glVertex2i"); - glad_glVertex2iv = (PFNGLVERTEX2IVPROC)load("glVertex2iv"); - glad_glVertex2s = (PFNGLVERTEX2SPROC)load("glVertex2s"); - glad_glVertex2sv = (PFNGLVERTEX2SVPROC)load("glVertex2sv"); - glad_glVertex3d = (PFNGLVERTEX3DPROC)load("glVertex3d"); - glad_glVertex3dv = (PFNGLVERTEX3DVPROC)load("glVertex3dv"); - glad_glVertex3f = (PFNGLVERTEX3FPROC)load("glVertex3f"); - glad_glVertex3fv = (PFNGLVERTEX3FVPROC)load("glVertex3fv"); - glad_glVertex3i = (PFNGLVERTEX3IPROC)load("glVertex3i"); - glad_glVertex3iv = (PFNGLVERTEX3IVPROC)load("glVertex3iv"); - glad_glVertex3s = (PFNGLVERTEX3SPROC)load("glVertex3s"); - glad_glVertex3sv = (PFNGLVERTEX3SVPROC)load("glVertex3sv"); - glad_glVertex4d = (PFNGLVERTEX4DPROC)load("glVertex4d"); - glad_glVertex4dv = (PFNGLVERTEX4DVPROC)load("glVertex4dv"); - glad_glVertex4f = (PFNGLVERTEX4FPROC)load("glVertex4f"); - glad_glVertex4fv = (PFNGLVERTEX4FVPROC)load("glVertex4fv"); - glad_glVertex4i = (PFNGLVERTEX4IPROC)load("glVertex4i"); - glad_glVertex4iv = (PFNGLVERTEX4IVPROC)load("glVertex4iv"); - glad_glVertex4s = (PFNGLVERTEX4SPROC)load("glVertex4s"); - glad_glVertex4sv = (PFNGLVERTEX4SVPROC)load("glVertex4sv"); - glad_glClipPlane = (PFNGLCLIPPLANEPROC)load("glClipPlane"); - glad_glColorMaterial = (PFNGLCOLORMATERIALPROC)load("glColorMaterial"); - glad_glFogf = (PFNGLFOGFPROC)load("glFogf"); - glad_glFogfv = (PFNGLFOGFVPROC)load("glFogfv"); - glad_glFogi = (PFNGLFOGIPROC)load("glFogi"); - glad_glFogiv = (PFNGLFOGIVPROC)load("glFogiv"); - glad_glLightf = (PFNGLLIGHTFPROC)load("glLightf"); - glad_glLightfv = (PFNGLLIGHTFVPROC)load("glLightfv"); - glad_glLighti = (PFNGLLIGHTIPROC)load("glLighti"); - glad_glLightiv = (PFNGLLIGHTIVPROC)load("glLightiv"); - glad_glLightModelf = (PFNGLLIGHTMODELFPROC)load("glLightModelf"); - glad_glLightModelfv = (PFNGLLIGHTMODELFVPROC)load("glLightModelfv"); - glad_glLightModeli = (PFNGLLIGHTMODELIPROC)load("glLightModeli"); - glad_glLightModeliv = (PFNGLLIGHTMODELIVPROC)load("glLightModeliv"); - glad_glLineStipple = (PFNGLLINESTIPPLEPROC)load("glLineStipple"); - glad_glMaterialf = (PFNGLMATERIALFPROC)load("glMaterialf"); - glad_glMaterialfv = (PFNGLMATERIALFVPROC)load("glMaterialfv"); - glad_glMateriali = (PFNGLMATERIALIPROC)load("glMateriali"); - glad_glMaterialiv = (PFNGLMATERIALIVPROC)load("glMaterialiv"); - glad_glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC)load("glPolygonStipple"); - glad_glShadeModel = (PFNGLSHADEMODELPROC)load("glShadeModel"); - glad_glTexEnvf = (PFNGLTEXENVFPROC)load("glTexEnvf"); - glad_glTexEnvfv = (PFNGLTEXENVFVPROC)load("glTexEnvfv"); - glad_glTexEnvi = (PFNGLTEXENVIPROC)load("glTexEnvi"); - glad_glTexEnviv = (PFNGLTEXENVIVPROC)load("glTexEnviv"); - glad_glTexGend = (PFNGLTEXGENDPROC)load("glTexGend"); - glad_glTexGendv = (PFNGLTEXGENDVPROC)load("glTexGendv"); - glad_glTexGenf = (PFNGLTEXGENFPROC)load("glTexGenf"); - glad_glTexGenfv = (PFNGLTEXGENFVPROC)load("glTexGenfv"); - glad_glTexGeni = (PFNGLTEXGENIPROC)load("glTexGeni"); - glad_glTexGeniv = (PFNGLTEXGENIVPROC)load("glTexGeniv"); - glad_glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC)load("glFeedbackBuffer"); - glad_glSelectBuffer = (PFNGLSELECTBUFFERPROC)load("glSelectBuffer"); - glad_glRenderMode = (PFNGLRENDERMODEPROC)load("glRenderMode"); - glad_glInitNames = (PFNGLINITNAMESPROC)load("glInitNames"); - glad_glLoadName = (PFNGLLOADNAMEPROC)load("glLoadName"); - glad_glPassThrough = (PFNGLPASSTHROUGHPROC)load("glPassThrough"); - glad_glPopName = (PFNGLPOPNAMEPROC)load("glPopName"); - glad_glPushName = (PFNGLPUSHNAMEPROC)load("glPushName"); - glad_glClearAccum = (PFNGLCLEARACCUMPROC)load("glClearAccum"); - glad_glClearIndex = (PFNGLCLEARINDEXPROC)load("glClearIndex"); - glad_glIndexMask = (PFNGLINDEXMASKPROC)load("glIndexMask"); - glad_glAccum = (PFNGLACCUMPROC)load("glAccum"); - glad_glPopAttrib = (PFNGLPOPATTRIBPROC)load("glPopAttrib"); - glad_glPushAttrib = (PFNGLPUSHATTRIBPROC)load("glPushAttrib"); - glad_glMap1d = (PFNGLMAP1DPROC)load("glMap1d"); - glad_glMap1f = (PFNGLMAP1FPROC)load("glMap1f"); - glad_glMap2d = (PFNGLMAP2DPROC)load("glMap2d"); - glad_glMap2f = (PFNGLMAP2FPROC)load("glMap2f"); - glad_glMapGrid1d = (PFNGLMAPGRID1DPROC)load("glMapGrid1d"); - glad_glMapGrid1f = (PFNGLMAPGRID1FPROC)load("glMapGrid1f"); - glad_glMapGrid2d = (PFNGLMAPGRID2DPROC)load("glMapGrid2d"); - glad_glMapGrid2f = (PFNGLMAPGRID2FPROC)load("glMapGrid2f"); - glad_glEvalCoord1d = (PFNGLEVALCOORD1DPROC)load("glEvalCoord1d"); - glad_glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC)load("glEvalCoord1dv"); - glad_glEvalCoord1f = (PFNGLEVALCOORD1FPROC)load("glEvalCoord1f"); - glad_glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC)load("glEvalCoord1fv"); - glad_glEvalCoord2d = (PFNGLEVALCOORD2DPROC)load("glEvalCoord2d"); - glad_glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC)load("glEvalCoord2dv"); - glad_glEvalCoord2f = (PFNGLEVALCOORD2FPROC)load("glEvalCoord2f"); - glad_glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC)load("glEvalCoord2fv"); - glad_glEvalMesh1 = (PFNGLEVALMESH1PROC)load("glEvalMesh1"); - glad_glEvalPoint1 = (PFNGLEVALPOINT1PROC)load("glEvalPoint1"); - glad_glEvalMesh2 = (PFNGLEVALMESH2PROC)load("glEvalMesh2"); - glad_glEvalPoint2 = (PFNGLEVALPOINT2PROC)load("glEvalPoint2"); - glad_glAlphaFunc = (PFNGLALPHAFUNCPROC)load("glAlphaFunc"); - glad_glPixelZoom = (PFNGLPIXELZOOMPROC)load("glPixelZoom"); - glad_glPixelTransferf = (PFNGLPIXELTRANSFERFPROC)load("glPixelTransferf"); - glad_glPixelTransferi = (PFNGLPIXELTRANSFERIPROC)load("glPixelTransferi"); - glad_glPixelMapfv = (PFNGLPIXELMAPFVPROC)load("glPixelMapfv"); - glad_glPixelMapuiv = (PFNGLPIXELMAPUIVPROC)load("glPixelMapuiv"); - glad_glPixelMapusv = (PFNGLPIXELMAPUSVPROC)load("glPixelMapusv"); - glad_glCopyPixels = (PFNGLCOPYPIXELSPROC)load("glCopyPixels"); - glad_glDrawPixels = (PFNGLDRAWPIXELSPROC)load("glDrawPixels"); - glad_glGetClipPlane = (PFNGLGETCLIPPLANEPROC)load("glGetClipPlane"); - glad_glGetLightfv = (PFNGLGETLIGHTFVPROC)load("glGetLightfv"); - glad_glGetLightiv = (PFNGLGETLIGHTIVPROC)load("glGetLightiv"); - glad_glGetMapdv = (PFNGLGETMAPDVPROC)load("glGetMapdv"); - glad_glGetMapfv = (PFNGLGETMAPFVPROC)load("glGetMapfv"); - glad_glGetMapiv = (PFNGLGETMAPIVPROC)load("glGetMapiv"); - glad_glGetMaterialfv = (PFNGLGETMATERIALFVPROC)load("glGetMaterialfv"); - glad_glGetMaterialiv = (PFNGLGETMATERIALIVPROC)load("glGetMaterialiv"); - glad_glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC)load("glGetPixelMapfv"); - glad_glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC)load("glGetPixelMapuiv"); - glad_glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC)load("glGetPixelMapusv"); - glad_glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC)load("glGetPolygonStipple"); - glad_glGetTexEnvfv = (PFNGLGETTEXENVFVPROC)load("glGetTexEnvfv"); - glad_glGetTexEnviv = (PFNGLGETTEXENVIVPROC)load("glGetTexEnviv"); - glad_glGetTexGendv = (PFNGLGETTEXGENDVPROC)load("glGetTexGendv"); - glad_glGetTexGenfv = (PFNGLGETTEXGENFVPROC)load("glGetTexGenfv"); - glad_glGetTexGeniv = (PFNGLGETTEXGENIVPROC)load("glGetTexGeniv"); - glad_glIsList = (PFNGLISLISTPROC)load("glIsList"); - glad_glFrustum = (PFNGLFRUSTUMPROC)load("glFrustum"); - glad_glLoadIdentity = (PFNGLLOADIDENTITYPROC)load("glLoadIdentity"); - glad_glLoadMatrixf = (PFNGLLOADMATRIXFPROC)load("glLoadMatrixf"); - glad_glLoadMatrixd = (PFNGLLOADMATRIXDPROC)load("glLoadMatrixd"); - glad_glMatrixMode = (PFNGLMATRIXMODEPROC)load("glMatrixMode"); - glad_glMultMatrixf = (PFNGLMULTMATRIXFPROC)load("glMultMatrixf"); - glad_glMultMatrixd = (PFNGLMULTMATRIXDPROC)load("glMultMatrixd"); - glad_glOrtho = (PFNGLORTHOPROC)load("glOrtho"); - glad_glPopMatrix = (PFNGLPOPMATRIXPROC)load("glPopMatrix"); - glad_glPushMatrix = (PFNGLPUSHMATRIXPROC)load("glPushMatrix"); - glad_glRotated = (PFNGLROTATEDPROC)load("glRotated"); - glad_glRotatef = (PFNGLROTATEFPROC)load("glRotatef"); - glad_glScaled = (PFNGLSCALEDPROC)load("glScaled"); - glad_glScalef = (PFNGLSCALEFPROC)load("glScalef"); - glad_glTranslated = (PFNGLTRANSLATEDPROC)load("glTranslated"); - glad_glTranslatef = (PFNGLTRANSLATEFPROC)load("glTranslatef"); -} -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_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv"); - 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"); - glad_glArrayElement = (PFNGLARRAYELEMENTPROC)load("glArrayElement"); - glad_glColorPointer = (PFNGLCOLORPOINTERPROC)load("glColorPointer"); - glad_glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC)load("glDisableClientState"); - glad_glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC)load("glEdgeFlagPointer"); - glad_glEnableClientState = (PFNGLENABLECLIENTSTATEPROC)load("glEnableClientState"); - glad_glIndexPointer = (PFNGLINDEXPOINTERPROC)load("glIndexPointer"); - glad_glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC)load("glInterleavedArrays"); - glad_glNormalPointer = (PFNGLNORMALPOINTERPROC)load("glNormalPointer"); - glad_glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC)load("glTexCoordPointer"); - glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC)load("glVertexPointer"); - glad_glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC)load("glAreTexturesResident"); - glad_glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC)load("glPrioritizeTextures"); - glad_glIndexub = (PFNGLINDEXUBPROC)load("glIndexub"); - glad_glIndexubv = (PFNGLINDEXUBVPROC)load("glIndexubv"); - glad_glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC)load("glPopClientAttrib"); - glad_glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC)load("glPushClientAttrib"); -} -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"); - glad_glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC)load("glClientActiveTexture"); - glad_glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC)load("glMultiTexCoord1d"); - glad_glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC)load("glMultiTexCoord1dv"); - glad_glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC)load("glMultiTexCoord1f"); - glad_glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC)load("glMultiTexCoord1fv"); - glad_glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC)load("glMultiTexCoord1i"); - glad_glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC)load("glMultiTexCoord1iv"); - glad_glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC)load("glMultiTexCoord1s"); - glad_glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC)load("glMultiTexCoord1sv"); - glad_glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC)load("glMultiTexCoord2d"); - glad_glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC)load("glMultiTexCoord2dv"); - glad_glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC)load("glMultiTexCoord2f"); - glad_glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC)load("glMultiTexCoord2fv"); - glad_glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC)load("glMultiTexCoord2i"); - glad_glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC)load("glMultiTexCoord2iv"); - glad_glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC)load("glMultiTexCoord2s"); - glad_glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC)load("glMultiTexCoord2sv"); - glad_glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC)load("glMultiTexCoord3d"); - glad_glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC)load("glMultiTexCoord3dv"); - glad_glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC)load("glMultiTexCoord3f"); - glad_glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC)load("glMultiTexCoord3fv"); - glad_glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC)load("glMultiTexCoord3i"); - glad_glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC)load("glMultiTexCoord3iv"); - glad_glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC)load("glMultiTexCoord3s"); - glad_glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC)load("glMultiTexCoord3sv"); - glad_glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC)load("glMultiTexCoord4d"); - glad_glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC)load("glMultiTexCoord4dv"); - glad_glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC)load("glMultiTexCoord4f"); - glad_glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC)load("glMultiTexCoord4fv"); - glad_glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC)load("glMultiTexCoord4i"); - glad_glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC)load("glMultiTexCoord4iv"); - glad_glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC)load("glMultiTexCoord4s"); - glad_glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC)load("glMultiTexCoord4sv"); - glad_glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC)load("glLoadTransposeMatrixf"); - glad_glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC)load("glLoadTransposeMatrixd"); - glad_glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC)load("glMultTransposeMatrixf"); - glad_glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC)load("glMultTransposeMatrixd"); -} -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_glFogCoordf = (PFNGLFOGCOORDFPROC)load("glFogCoordf"); - glad_glFogCoordfv = (PFNGLFOGCOORDFVPROC)load("glFogCoordfv"); - glad_glFogCoordd = (PFNGLFOGCOORDDPROC)load("glFogCoordd"); - glad_glFogCoorddv = (PFNGLFOGCOORDDVPROC)load("glFogCoorddv"); - glad_glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC)load("glFogCoordPointer"); - glad_glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC)load("glSecondaryColor3b"); - glad_glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC)load("glSecondaryColor3bv"); - glad_glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC)load("glSecondaryColor3d"); - glad_glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC)load("glSecondaryColor3dv"); - glad_glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC)load("glSecondaryColor3f"); - glad_glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC)load("glSecondaryColor3fv"); - glad_glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC)load("glSecondaryColor3i"); - glad_glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC)load("glSecondaryColor3iv"); - glad_glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC)load("glSecondaryColor3s"); - glad_glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC)load("glSecondaryColor3sv"); - glad_glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC)load("glSecondaryColor3ub"); - glad_glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC)load("glSecondaryColor3ubv"); - glad_glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC)load("glSecondaryColor3ui"); - glad_glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC)load("glSecondaryColor3uiv"); - glad_glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC)load("glSecondaryColor3us"); - glad_glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC)load("glSecondaryColor3usv"); - glad_glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC)load("glSecondaryColorPointer"); - glad_glWindowPos2d = (PFNGLWINDOWPOS2DPROC)load("glWindowPos2d"); - glad_glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC)load("glWindowPos2dv"); - glad_glWindowPos2f = (PFNGLWINDOWPOS2FPROC)load("glWindowPos2f"); - glad_glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC)load("glWindowPos2fv"); - glad_glWindowPos2i = (PFNGLWINDOWPOS2IPROC)load("glWindowPos2i"); - glad_glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC)load("glWindowPos2iv"); - glad_glWindowPos2s = (PFNGLWINDOWPOS2SPROC)load("glWindowPos2s"); - glad_glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC)load("glWindowPos2sv"); - glad_glWindowPos3d = (PFNGLWINDOWPOS3DPROC)load("glWindowPos3d"); - glad_glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC)load("glWindowPos3dv"); - glad_glWindowPos3f = (PFNGLWINDOWPOS3FPROC)load("glWindowPos3f"); - glad_glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC)load("glWindowPos3fv"); - glad_glWindowPos3i = (PFNGLWINDOWPOS3IPROC)load("glWindowPos3i"); - glad_glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC)load("glWindowPos3iv"); - glad_glWindowPos3s = (PFNGLWINDOWPOS3SPROC)load("glWindowPos3s"); - glad_glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC)load("glWindowPos3sv"); - 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_ARB_multisample(GLADloadproc load) { - if(!GLAD_GL_ARB_multisample) return; - glad_glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC)load("glSampleCoverageARB"); -} -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_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 int find_extensionsGL(void) { - if (!get_exts()) return 0; - GLAD_GL_ARB_multisample = has_ext("GL_ARB_multisample"); - GLAD_GL_ARB_robustness = has_ext("GL_ARB_robustness"); - GLAD_GL_KHR_debug = has_ext("GL_KHR_debug"); - 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; - if (GLVersion.major > 3 || (GLVersion.major >= 3 && GLVersion.minor >= 2)) { - max_loaded_major = 3; - max_loaded_minor = 2; - } -} - -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); - - if (!find_extensionsGL()) return 0; - load_GL_ARB_multisample(load); - load_GL_ARB_robustness(load); - load_GL_KHR_debug(load); - return GLVersion.major != 0 || GLVersion.minor != 0; -} - diff --git a/external/GLFW/deps/glad/glad.h b/external/GLFW/deps/glad/glad.h deleted file mode 100644 index 7d81e98..0000000 --- a/external/GLFW/deps/glad/glad.h +++ /dev/null @@ -1,3680 +0,0 @@ -/* - - OpenGL loader generated by glad 0.1.12a0 on Fri Sep 23 13:36:15 2016. - - Language/Generator: C/C++ - Specification: gl - APIs: gl=3.2 - Profile: compatibility - Extensions: - GL_ARB_multisample, - GL_ARB_robustness, - GL_KHR_debug - Loader: False - Local files: False - Omit khrplatform: False - - Commandline: - --profile="compatibility" --api="gl=3.2" --generator="c" --spec="gl" --no-loader --extensions="GL_ARB_multisample,GL_ARB_robustness,GL_KHR_debug" - Online: - http://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&api=gl%3D3.2&extensions=GL_ARB_multisample&extensions=GL_ARB_robustness&extensions=GL_KHR_debug -*/ - - -#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_ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 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 gladLoadGLLoader(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 *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 ptrdiff_t GLintptr; -typedef ptrdiff_t GLsizeiptr; -typedef int64_t GLint64; -typedef uint64_t GLuint64; -typedef ptrdiff_t GLintptrARB; -typedef ptrdiff_t GLsizeiptrARB; -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; -#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_QUADS 0x0007 -#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_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 -#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 -#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_DOUBLE 0x140A -#define GL_STACK_OVERFLOW 0x0503 -#define GL_STACK_UNDERFLOW 0x0504 -#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_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_REPEAT 0x2901 -#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_CURRENT_BIT 0x00000001 -#define GL_POINT_BIT 0x00000002 -#define GL_LINE_BIT 0x00000004 -#define GL_POLYGON_BIT 0x00000008 -#define GL_POLYGON_STIPPLE_BIT 0x00000010 -#define GL_PIXEL_MODE_BIT 0x00000020 -#define GL_LIGHTING_BIT 0x00000040 -#define GL_FOG_BIT 0x00000080 -#define GL_ACCUM_BUFFER_BIT 0x00000200 -#define GL_VIEWPORT_BIT 0x00000800 -#define GL_TRANSFORM_BIT 0x00001000 -#define GL_ENABLE_BIT 0x00002000 -#define GL_HINT_BIT 0x00008000 -#define GL_EVAL_BIT 0x00010000 -#define GL_LIST_BIT 0x00020000 -#define GL_TEXTURE_BIT 0x00040000 -#define GL_SCISSOR_BIT 0x00080000 -#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF -#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 -#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 -#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF -#define GL_QUAD_STRIP 0x0008 -#define GL_POLYGON 0x0009 -#define GL_ACCUM 0x0100 -#define GL_LOAD 0x0101 -#define GL_RETURN 0x0102 -#define GL_MULT 0x0103 -#define GL_ADD 0x0104 -#define GL_AUX0 0x0409 -#define GL_AUX1 0x040A -#define GL_AUX2 0x040B -#define GL_AUX3 0x040C -#define GL_2D 0x0600 -#define GL_3D 0x0601 -#define GL_3D_COLOR 0x0602 -#define GL_3D_COLOR_TEXTURE 0x0603 -#define GL_4D_COLOR_TEXTURE 0x0604 -#define GL_PASS_THROUGH_TOKEN 0x0700 -#define GL_POINT_TOKEN 0x0701 -#define GL_LINE_TOKEN 0x0702 -#define GL_POLYGON_TOKEN 0x0703 -#define GL_BITMAP_TOKEN 0x0704 -#define GL_DRAW_PIXEL_TOKEN 0x0705 -#define GL_COPY_PIXEL_TOKEN 0x0706 -#define GL_LINE_RESET_TOKEN 0x0707 -#define GL_EXP 0x0800 -#define GL_EXP2 0x0801 -#define GL_COEFF 0x0A00 -#define GL_ORDER 0x0A01 -#define GL_DOMAIN 0x0A02 -#define GL_PIXEL_MAP_I_TO_I 0x0C70 -#define GL_PIXEL_MAP_S_TO_S 0x0C71 -#define GL_PIXEL_MAP_I_TO_R 0x0C72 -#define GL_PIXEL_MAP_I_TO_G 0x0C73 -#define GL_PIXEL_MAP_I_TO_B 0x0C74 -#define GL_PIXEL_MAP_I_TO_A 0x0C75 -#define GL_PIXEL_MAP_R_TO_R 0x0C76 -#define GL_PIXEL_MAP_G_TO_G 0x0C77 -#define GL_PIXEL_MAP_B_TO_B 0x0C78 -#define GL_PIXEL_MAP_A_TO_A 0x0C79 -#define GL_VERTEX_ARRAY_POINTER 0x808E -#define GL_NORMAL_ARRAY_POINTER 0x808F -#define GL_COLOR_ARRAY_POINTER 0x8090 -#define GL_INDEX_ARRAY_POINTER 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 -#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 -#define GL_SELECTION_BUFFER_POINTER 0x0DF3 -#define GL_CURRENT_COLOR 0x0B00 -#define GL_CURRENT_INDEX 0x0B01 -#define GL_CURRENT_NORMAL 0x0B02 -#define GL_CURRENT_TEXTURE_COORDS 0x0B03 -#define GL_CURRENT_RASTER_COLOR 0x0B04 -#define GL_CURRENT_RASTER_INDEX 0x0B05 -#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 -#define GL_CURRENT_RASTER_POSITION 0x0B07 -#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 -#define GL_CURRENT_RASTER_DISTANCE 0x0B09 -#define GL_POINT_SMOOTH 0x0B10 -#define GL_LINE_STIPPLE 0x0B24 -#define GL_LINE_STIPPLE_PATTERN 0x0B25 -#define GL_LINE_STIPPLE_REPEAT 0x0B26 -#define GL_LIST_MODE 0x0B30 -#define GL_MAX_LIST_NESTING 0x0B31 -#define GL_LIST_BASE 0x0B32 -#define GL_LIST_INDEX 0x0B33 -#define GL_POLYGON_STIPPLE 0x0B42 -#define GL_EDGE_FLAG 0x0B43 -#define GL_LIGHTING 0x0B50 -#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 -#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 -#define GL_LIGHT_MODEL_AMBIENT 0x0B53 -#define GL_SHADE_MODEL 0x0B54 -#define GL_COLOR_MATERIAL_FACE 0x0B55 -#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 -#define GL_COLOR_MATERIAL 0x0B57 -#define GL_FOG 0x0B60 -#define GL_FOG_INDEX 0x0B61 -#define GL_FOG_DENSITY 0x0B62 -#define GL_FOG_START 0x0B63 -#define GL_FOG_END 0x0B64 -#define GL_FOG_MODE 0x0B65 -#define GL_FOG_COLOR 0x0B66 -#define GL_ACCUM_CLEAR_VALUE 0x0B80 -#define GL_MATRIX_MODE 0x0BA0 -#define GL_NORMALIZE 0x0BA1 -#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 -#define GL_PROJECTION_STACK_DEPTH 0x0BA4 -#define GL_TEXTURE_STACK_DEPTH 0x0BA5 -#define GL_MODELVIEW_MATRIX 0x0BA6 -#define GL_PROJECTION_MATRIX 0x0BA7 -#define GL_TEXTURE_MATRIX 0x0BA8 -#define GL_ATTRIB_STACK_DEPTH 0x0BB0 -#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 -#define GL_ALPHA_TEST 0x0BC0 -#define GL_ALPHA_TEST_FUNC 0x0BC1 -#define GL_ALPHA_TEST_REF 0x0BC2 -#define GL_INDEX_LOGIC_OP 0x0BF1 -#define GL_LOGIC_OP 0x0BF1 -#define GL_AUX_BUFFERS 0x0C00 -#define GL_INDEX_CLEAR_VALUE 0x0C20 -#define GL_INDEX_WRITEMASK 0x0C21 -#define GL_INDEX_MODE 0x0C30 -#define GL_RGBA_MODE 0x0C31 -#define GL_RENDER_MODE 0x0C40 -#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 -#define GL_POINT_SMOOTH_HINT 0x0C51 -#define GL_FOG_HINT 0x0C54 -#define GL_TEXTURE_GEN_S 0x0C60 -#define GL_TEXTURE_GEN_T 0x0C61 -#define GL_TEXTURE_GEN_R 0x0C62 -#define GL_TEXTURE_GEN_Q 0x0C63 -#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 -#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 -#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 -#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 -#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 -#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 -#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 -#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 -#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 -#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 -#define GL_MAP_COLOR 0x0D10 -#define GL_MAP_STENCIL 0x0D11 -#define GL_INDEX_SHIFT 0x0D12 -#define GL_INDEX_OFFSET 0x0D13 -#define GL_RED_SCALE 0x0D14 -#define GL_RED_BIAS 0x0D15 -#define GL_ZOOM_X 0x0D16 -#define GL_ZOOM_Y 0x0D17 -#define GL_GREEN_SCALE 0x0D18 -#define GL_GREEN_BIAS 0x0D19 -#define GL_BLUE_SCALE 0x0D1A -#define GL_BLUE_BIAS 0x0D1B -#define GL_ALPHA_SCALE 0x0D1C -#define GL_ALPHA_BIAS 0x0D1D -#define GL_DEPTH_SCALE 0x0D1E -#define GL_DEPTH_BIAS 0x0D1F -#define GL_MAX_EVAL_ORDER 0x0D30 -#define GL_MAX_LIGHTS 0x0D31 -#define GL_MAX_CLIP_PLANES 0x0D32 -#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 -#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 -#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 -#define GL_MAX_NAME_STACK_DEPTH 0x0D37 -#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 -#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 -#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B -#define GL_INDEX_BITS 0x0D51 -#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_ACCUM_RED_BITS 0x0D58 -#define GL_ACCUM_GREEN_BITS 0x0D59 -#define GL_ACCUM_BLUE_BITS 0x0D5A -#define GL_ACCUM_ALPHA_BITS 0x0D5B -#define GL_NAME_STACK_DEPTH 0x0D70 -#define GL_AUTO_NORMAL 0x0D80 -#define GL_MAP1_COLOR_4 0x0D90 -#define GL_MAP1_INDEX 0x0D91 -#define GL_MAP1_NORMAL 0x0D92 -#define GL_MAP1_TEXTURE_COORD_1 0x0D93 -#define GL_MAP1_TEXTURE_COORD_2 0x0D94 -#define GL_MAP1_TEXTURE_COORD_3 0x0D95 -#define GL_MAP1_TEXTURE_COORD_4 0x0D96 -#define GL_MAP1_VERTEX_3 0x0D97 -#define GL_MAP1_VERTEX_4 0x0D98 -#define GL_MAP2_COLOR_4 0x0DB0 -#define GL_MAP2_INDEX 0x0DB1 -#define GL_MAP2_NORMAL 0x0DB2 -#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 -#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 -#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 -#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 -#define GL_MAP2_VERTEX_3 0x0DB7 -#define GL_MAP2_VERTEX_4 0x0DB8 -#define GL_MAP1_GRID_DOMAIN 0x0DD0 -#define GL_MAP1_GRID_SEGMENTS 0x0DD1 -#define GL_MAP2_GRID_DOMAIN 0x0DD2 -#define GL_MAP2_GRID_SEGMENTS 0x0DD3 -#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 -#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 -#define GL_SELECTION_BUFFER_SIZE 0x0DF4 -#define GL_VERTEX_ARRAY 0x8074 -#define GL_NORMAL_ARRAY 0x8075 -#define GL_COLOR_ARRAY 0x8076 -#define GL_INDEX_ARRAY 0x8077 -#define GL_TEXTURE_COORD_ARRAY 0x8078 -#define GL_EDGE_FLAG_ARRAY 0x8079 -#define GL_VERTEX_ARRAY_SIZE 0x807A -#define GL_VERTEX_ARRAY_TYPE 0x807B -#define GL_VERTEX_ARRAY_STRIDE 0x807C -#define GL_NORMAL_ARRAY_TYPE 0x807E -#define GL_NORMAL_ARRAY_STRIDE 0x807F -#define GL_COLOR_ARRAY_SIZE 0x8081 -#define GL_COLOR_ARRAY_TYPE 0x8082 -#define GL_COLOR_ARRAY_STRIDE 0x8083 -#define GL_INDEX_ARRAY_TYPE 0x8085 -#define GL_INDEX_ARRAY_STRIDE 0x8086 -#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A -#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C -#define GL_TEXTURE_COMPONENTS 0x1003 -#define GL_TEXTURE_BORDER 0x1005 -#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE 0x8061 -#define GL_TEXTURE_PRIORITY 0x8066 -#define GL_TEXTURE_RESIDENT 0x8067 -#define GL_AMBIENT 0x1200 -#define GL_DIFFUSE 0x1201 -#define GL_SPECULAR 0x1202 -#define GL_POSITION 0x1203 -#define GL_SPOT_DIRECTION 0x1204 -#define GL_SPOT_EXPONENT 0x1205 -#define GL_SPOT_CUTOFF 0x1206 -#define GL_CONSTANT_ATTENUATION 0x1207 -#define GL_LINEAR_ATTENUATION 0x1208 -#define GL_QUADRATIC_ATTENUATION 0x1209 -#define GL_COMPILE 0x1300 -#define GL_COMPILE_AND_EXECUTE 0x1301 -#define GL_2_BYTES 0x1407 -#define GL_3_BYTES 0x1408 -#define GL_4_BYTES 0x1409 -#define GL_EMISSION 0x1600 -#define GL_SHININESS 0x1601 -#define GL_AMBIENT_AND_DIFFUSE 0x1602 -#define GL_COLOR_INDEXES 0x1603 -#define GL_MODELVIEW 0x1700 -#define GL_PROJECTION 0x1701 -#define GL_COLOR_INDEX 0x1900 -#define GL_LUMINANCE 0x1909 -#define GL_LUMINANCE_ALPHA 0x190A -#define GL_BITMAP 0x1A00 -#define GL_RENDER 0x1C00 -#define GL_FEEDBACK 0x1C01 -#define GL_SELECT 0x1C02 -#define GL_FLAT 0x1D00 -#define GL_SMOOTH 0x1D01 -#define GL_S 0x2000 -#define GL_T 0x2001 -#define GL_R 0x2002 -#define GL_Q 0x2003 -#define GL_MODULATE 0x2100 -#define GL_DECAL 0x2101 -#define GL_TEXTURE_ENV_MODE 0x2200 -#define GL_TEXTURE_ENV_COLOR 0x2201 -#define GL_TEXTURE_ENV 0x2300 -#define GL_EYE_LINEAR 0x2400 -#define GL_OBJECT_LINEAR 0x2401 -#define GL_SPHERE_MAP 0x2402 -#define GL_TEXTURE_GEN_MODE 0x2500 -#define GL_OBJECT_PLANE 0x2501 -#define GL_EYE_PLANE 0x2502 -#define GL_CLAMP 0x2900 -#define GL_ALPHA4 0x803B -#define GL_ALPHA8 0x803C -#define GL_ALPHA12 0x803D -#define GL_ALPHA16 0x803E -#define GL_LUMINANCE4 0x803F -#define GL_LUMINANCE8 0x8040 -#define GL_LUMINANCE12 0x8041 -#define GL_LUMINANCE16 0x8042 -#define GL_LUMINANCE4_ALPHA4 0x8043 -#define GL_LUMINANCE6_ALPHA2 0x8044 -#define GL_LUMINANCE8_ALPHA8 0x8045 -#define GL_LUMINANCE12_ALPHA4 0x8046 -#define GL_LUMINANCE12_ALPHA12 0x8047 -#define GL_LUMINANCE16_ALPHA16 0x8048 -#define GL_INTENSITY 0x8049 -#define GL_INTENSITY4 0x804A -#define GL_INTENSITY8 0x804B -#define GL_INTENSITY12 0x804C -#define GL_INTENSITY16 0x804D -#define GL_V2F 0x2A20 -#define GL_V3F 0x2A21 -#define GL_C4UB_V2F 0x2A22 -#define GL_C4UB_V3F 0x2A23 -#define GL_C3F_V3F 0x2A24 -#define GL_N3F_V3F 0x2A25 -#define GL_C4F_N3F_V3F 0x2A26 -#define GL_T2F_V3F 0x2A27 -#define GL_T4F_V4F 0x2A28 -#define GL_T2F_C4UB_V3F 0x2A29 -#define GL_T2F_C3F_V3F 0x2A2A -#define GL_T2F_N3F_V3F 0x2A2B -#define GL_T2F_C4F_N3F_V3F 0x2A2C -#define GL_T4F_C4F_N3F_V4F 0x2A2D -#define GL_CLIP_PLANE0 0x3000 -#define GL_CLIP_PLANE1 0x3001 -#define GL_CLIP_PLANE2 0x3002 -#define GL_CLIP_PLANE3 0x3003 -#define GL_CLIP_PLANE4 0x3004 -#define GL_CLIP_PLANE5 0x3005 -#define GL_LIGHT0 0x4000 -#define GL_LIGHT1 0x4001 -#define GL_LIGHT2 0x4002 -#define GL_LIGHT3 0x4003 -#define GL_LIGHT4 0x4004 -#define GL_LIGHT5 0x4005 -#define GL_LIGHT6 0x4006 -#define GL_LIGHT7 0x4007 -#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_RESCALE_NORMAL 0x803A -#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 -#define GL_SINGLE_COLOR 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR 0x81FA -#define GL_ALIASED_POINT_SIZE_RANGE 0x846D -#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_CLIENT_ACTIVE_TEXTURE 0x84E1 -#define GL_MAX_TEXTURE_UNITS 0x84E2 -#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 -#define GL_MULTISAMPLE_BIT 0x20000000 -#define GL_NORMAL_MAP 0x8511 -#define GL_REFLECTION_MAP 0x8512 -#define GL_COMPRESSED_ALPHA 0x84E9 -#define GL_COMPRESSED_LUMINANCE 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB -#define GL_COMPRESSED_INTENSITY 0x84EC -#define GL_COMBINE 0x8570 -#define GL_COMBINE_RGB 0x8571 -#define GL_COMBINE_ALPHA 0x8572 -#define GL_SOURCE0_RGB 0x8580 -#define GL_SOURCE1_RGB 0x8581 -#define GL_SOURCE2_RGB 0x8582 -#define GL_SOURCE0_ALPHA 0x8588 -#define GL_SOURCE1_ALPHA 0x8589 -#define GL_SOURCE2_ALPHA 0x858A -#define GL_OPERAND0_RGB 0x8590 -#define GL_OPERAND1_RGB 0x8591 -#define GL_OPERAND2_RGB 0x8592 -#define GL_OPERAND0_ALPHA 0x8598 -#define GL_OPERAND1_ALPHA 0x8599 -#define GL_OPERAND2_ALPHA 0x859A -#define GL_RGB_SCALE 0x8573 -#define GL_ADD_SIGNED 0x8574 -#define GL_INTERPOLATE 0x8575 -#define GL_SUBTRACT 0x84E7 -#define GL_CONSTANT 0x8576 -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PREVIOUS 0x8578 -#define GL_DOT3_RGB 0x86AE -#define GL_DOT3_RGBA 0x86AF -#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_POINT_SIZE_MIN 0x8126 -#define GL_POINT_SIZE_MAX 0x8127 -#define GL_POINT_DISTANCE_ATTENUATION 0x8129 -#define GL_GENERATE_MIPMAP 0x8191 -#define GL_GENERATE_MIPMAP_HINT 0x8192 -#define GL_FOG_COORDINATE_SOURCE 0x8450 -#define GL_FOG_COORDINATE 0x8451 -#define GL_FRAGMENT_DEPTH 0x8452 -#define GL_CURRENT_FOG_COORDINATE 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 -#define GL_FOG_COORDINATE_ARRAY 0x8457 -#define GL_COLOR_SUM 0x8458 -#define GL_CURRENT_SECONDARY_COLOR 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D -#define GL_SECONDARY_COLOR_ARRAY 0x845E -#define GL_TEXTURE_FILTER_CONTROL 0x8500 -#define GL_DEPTH_TEXTURE_MODE 0x884B -#define GL_COMPARE_R_TO_TEXTURE 0x884E -#define GL_FUNC_ADD 0x8006 -#define GL_FUNC_SUBTRACT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#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_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_VERTEX_ARRAY_BUFFER_BINDING 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E -#define GL_FOG_COORD_SRC 0x8450 -#define GL_FOG_COORD 0x8451 -#define GL_CURRENT_FOG_COORD 0x8453 -#define GL_FOG_COORD_ARRAY_TYPE 0x8454 -#define GL_FOG_COORD_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORD_ARRAY_POINTER 0x8456 -#define GL_FOG_COORD_ARRAY 0x8457 -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D -#define GL_SRC0_RGB 0x8580 -#define GL_SRC1_RGB 0x8581 -#define GL_SRC2_RGB 0x8582 -#define GL_SRC0_ALPHA 0x8588 -#define GL_SRC2_ALPHA 0x858A -#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_VERTEX_PROGRAM_TWO_SIDE 0x8643 -#define GL_POINT_SPRITE 0x8861 -#define GL_COORD_REPLACE 0x8862 -#define GL_MAX_TEXTURE_COORDS 0x8871 -#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_CURRENT_RASTER_SECONDARY_COLOR 0x845F -#define GL_SLUMINANCE_ALPHA 0x8C44 -#define GL_SLUMINANCE8_ALPHA8 0x8C45 -#define GL_SLUMINANCE 0x8C46 -#define GL_SLUMINANCE8 0x8C47 -#define GL_COMPRESSED_SLUMINANCE 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B -#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_TEXTURE_LUMINANCE_TYPE 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 -#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_CLAMP_VERTEX_COLOR 0x891A -#define GL_CLAMP_FRAGMENT_COLOR 0x891B -#define GL_ALPHA_INTEGER 0x8D97 -#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 -#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)(); -GLAPI PFNGLFINISHPROC glad_glFinish; -#define glFinish glad_glFinish -typedef void (APIENTRYP PFNGLFLUSHPROC)(); -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)(); -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 near, GLdouble far); -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 -typedef void (APIENTRYP PFNGLNEWLISTPROC)(GLuint list, GLenum mode); -GLAPI PFNGLNEWLISTPROC glad_glNewList; -#define glNewList glad_glNewList -typedef void (APIENTRYP PFNGLENDLISTPROC)(); -GLAPI PFNGLENDLISTPROC glad_glEndList; -#define glEndList glad_glEndList -typedef void (APIENTRYP PFNGLCALLLISTPROC)(GLuint list); -GLAPI PFNGLCALLLISTPROC glad_glCallList; -#define glCallList glad_glCallList -typedef void (APIENTRYP PFNGLCALLLISTSPROC)(GLsizei n, GLenum type, const void *lists); -GLAPI PFNGLCALLLISTSPROC glad_glCallLists; -#define glCallLists glad_glCallLists -typedef void (APIENTRYP PFNGLDELETELISTSPROC)(GLuint list, GLsizei range); -GLAPI PFNGLDELETELISTSPROC glad_glDeleteLists; -#define glDeleteLists glad_glDeleteLists -typedef GLuint (APIENTRYP PFNGLGENLISTSPROC)(GLsizei range); -GLAPI PFNGLGENLISTSPROC glad_glGenLists; -#define glGenLists glad_glGenLists -typedef void (APIENTRYP PFNGLLISTBASEPROC)(GLuint base); -GLAPI PFNGLLISTBASEPROC glad_glListBase; -#define glListBase glad_glListBase -typedef void (APIENTRYP PFNGLBEGINPROC)(GLenum mode); -GLAPI PFNGLBEGINPROC glad_glBegin; -#define glBegin glad_glBegin -typedef void (APIENTRYP PFNGLBITMAPPROC)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); -GLAPI PFNGLBITMAPPROC glad_glBitmap; -#define glBitmap glad_glBitmap -typedef void (APIENTRYP PFNGLCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); -GLAPI PFNGLCOLOR3BPROC glad_glColor3b; -#define glColor3b glad_glColor3b -typedef void (APIENTRYP PFNGLCOLOR3BVPROC)(const GLbyte *v); -GLAPI PFNGLCOLOR3BVPROC glad_glColor3bv; -#define glColor3bv glad_glColor3bv -typedef void (APIENTRYP PFNGLCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); -GLAPI PFNGLCOLOR3DPROC glad_glColor3d; -#define glColor3d glad_glColor3d -typedef void (APIENTRYP PFNGLCOLOR3DVPROC)(const GLdouble *v); -GLAPI PFNGLCOLOR3DVPROC glad_glColor3dv; -#define glColor3dv glad_glColor3dv -typedef void (APIENTRYP PFNGLCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); -GLAPI PFNGLCOLOR3FPROC glad_glColor3f; -#define glColor3f glad_glColor3f -typedef void (APIENTRYP PFNGLCOLOR3FVPROC)(const GLfloat *v); -GLAPI PFNGLCOLOR3FVPROC glad_glColor3fv; -#define glColor3fv glad_glColor3fv -typedef void (APIENTRYP PFNGLCOLOR3IPROC)(GLint red, GLint green, GLint blue); -GLAPI PFNGLCOLOR3IPROC glad_glColor3i; -#define glColor3i glad_glColor3i -typedef void (APIENTRYP PFNGLCOLOR3IVPROC)(const GLint *v); -GLAPI PFNGLCOLOR3IVPROC glad_glColor3iv; -#define glColor3iv glad_glColor3iv -typedef void (APIENTRYP PFNGLCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); -GLAPI PFNGLCOLOR3SPROC glad_glColor3s; -#define glColor3s glad_glColor3s -typedef void (APIENTRYP PFNGLCOLOR3SVPROC)(const GLshort *v); -GLAPI PFNGLCOLOR3SVPROC glad_glColor3sv; -#define glColor3sv glad_glColor3sv -typedef void (APIENTRYP PFNGLCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); -GLAPI PFNGLCOLOR3UBPROC glad_glColor3ub; -#define glColor3ub glad_glColor3ub -typedef void (APIENTRYP PFNGLCOLOR3UBVPROC)(const GLubyte *v); -GLAPI PFNGLCOLOR3UBVPROC glad_glColor3ubv; -#define glColor3ubv glad_glColor3ubv -typedef void (APIENTRYP PFNGLCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); -GLAPI PFNGLCOLOR3UIPROC glad_glColor3ui; -#define glColor3ui glad_glColor3ui -typedef void (APIENTRYP PFNGLCOLOR3UIVPROC)(const GLuint *v); -GLAPI PFNGLCOLOR3UIVPROC glad_glColor3uiv; -#define glColor3uiv glad_glColor3uiv -typedef void (APIENTRYP PFNGLCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); -GLAPI PFNGLCOLOR3USPROC glad_glColor3us; -#define glColor3us glad_glColor3us -typedef void (APIENTRYP PFNGLCOLOR3USVPROC)(const GLushort *v); -GLAPI PFNGLCOLOR3USVPROC glad_glColor3usv; -#define glColor3usv glad_glColor3usv -typedef void (APIENTRYP PFNGLCOLOR4BPROC)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -GLAPI PFNGLCOLOR4BPROC glad_glColor4b; -#define glColor4b glad_glColor4b -typedef void (APIENTRYP PFNGLCOLOR4BVPROC)(const GLbyte *v); -GLAPI PFNGLCOLOR4BVPROC glad_glColor4bv; -#define glColor4bv glad_glColor4bv -typedef void (APIENTRYP PFNGLCOLOR4DPROC)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -GLAPI PFNGLCOLOR4DPROC glad_glColor4d; -#define glColor4d glad_glColor4d -typedef void (APIENTRYP PFNGLCOLOR4DVPROC)(const GLdouble *v); -GLAPI PFNGLCOLOR4DVPROC glad_glColor4dv; -#define glColor4dv glad_glColor4dv -typedef void (APIENTRYP PFNGLCOLOR4FPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCOLOR4FPROC glad_glColor4f; -#define glColor4f glad_glColor4f -typedef void (APIENTRYP PFNGLCOLOR4FVPROC)(const GLfloat *v); -GLAPI PFNGLCOLOR4FVPROC glad_glColor4fv; -#define glColor4fv glad_glColor4fv -typedef void (APIENTRYP PFNGLCOLOR4IPROC)(GLint red, GLint green, GLint blue, GLint alpha); -GLAPI PFNGLCOLOR4IPROC glad_glColor4i; -#define glColor4i glad_glColor4i -typedef void (APIENTRYP PFNGLCOLOR4IVPROC)(const GLint *v); -GLAPI PFNGLCOLOR4IVPROC glad_glColor4iv; -#define glColor4iv glad_glColor4iv -typedef void (APIENTRYP PFNGLCOLOR4SPROC)(GLshort red, GLshort green, GLshort blue, GLshort alpha); -GLAPI PFNGLCOLOR4SPROC glad_glColor4s; -#define glColor4s glad_glColor4s -typedef void (APIENTRYP PFNGLCOLOR4SVPROC)(const GLshort *v); -GLAPI PFNGLCOLOR4SVPROC glad_glColor4sv; -#define glColor4sv glad_glColor4sv -typedef void (APIENTRYP PFNGLCOLOR4UBPROC)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -GLAPI PFNGLCOLOR4UBPROC glad_glColor4ub; -#define glColor4ub glad_glColor4ub -typedef void (APIENTRYP PFNGLCOLOR4UBVPROC)(const GLubyte *v); -GLAPI PFNGLCOLOR4UBVPROC glad_glColor4ubv; -#define glColor4ubv glad_glColor4ubv -typedef void (APIENTRYP PFNGLCOLOR4UIPROC)(GLuint red, GLuint green, GLuint blue, GLuint alpha); -GLAPI PFNGLCOLOR4UIPROC glad_glColor4ui; -#define glColor4ui glad_glColor4ui -typedef void (APIENTRYP PFNGLCOLOR4UIVPROC)(const GLuint *v); -GLAPI PFNGLCOLOR4UIVPROC glad_glColor4uiv; -#define glColor4uiv glad_glColor4uiv -typedef void (APIENTRYP PFNGLCOLOR4USPROC)(GLushort red, GLushort green, GLushort blue, GLushort alpha); -GLAPI PFNGLCOLOR4USPROC glad_glColor4us; -#define glColor4us glad_glColor4us -typedef void (APIENTRYP PFNGLCOLOR4USVPROC)(const GLushort *v); -GLAPI PFNGLCOLOR4USVPROC glad_glColor4usv; -#define glColor4usv glad_glColor4usv -typedef void (APIENTRYP PFNGLEDGEFLAGPROC)(GLboolean flag); -GLAPI PFNGLEDGEFLAGPROC glad_glEdgeFlag; -#define glEdgeFlag glad_glEdgeFlag -typedef void (APIENTRYP PFNGLEDGEFLAGVPROC)(const GLboolean *flag); -GLAPI PFNGLEDGEFLAGVPROC glad_glEdgeFlagv; -#define glEdgeFlagv glad_glEdgeFlagv -typedef void (APIENTRYP PFNGLENDPROC)(); -GLAPI PFNGLENDPROC glad_glEnd; -#define glEnd glad_glEnd -typedef void (APIENTRYP PFNGLINDEXDPROC)(GLdouble c); -GLAPI PFNGLINDEXDPROC glad_glIndexd; -#define glIndexd glad_glIndexd -typedef void (APIENTRYP PFNGLINDEXDVPROC)(const GLdouble *c); -GLAPI PFNGLINDEXDVPROC glad_glIndexdv; -#define glIndexdv glad_glIndexdv -typedef void (APIENTRYP PFNGLINDEXFPROC)(GLfloat c); -GLAPI PFNGLINDEXFPROC glad_glIndexf; -#define glIndexf glad_glIndexf -typedef void (APIENTRYP PFNGLINDEXFVPROC)(const GLfloat *c); -GLAPI PFNGLINDEXFVPROC glad_glIndexfv; -#define glIndexfv glad_glIndexfv -typedef void (APIENTRYP PFNGLINDEXIPROC)(GLint c); -GLAPI PFNGLINDEXIPROC glad_glIndexi; -#define glIndexi glad_glIndexi -typedef void (APIENTRYP PFNGLINDEXIVPROC)(const GLint *c); -GLAPI PFNGLINDEXIVPROC glad_glIndexiv; -#define glIndexiv glad_glIndexiv -typedef void (APIENTRYP PFNGLINDEXSPROC)(GLshort c); -GLAPI PFNGLINDEXSPROC glad_glIndexs; -#define glIndexs glad_glIndexs -typedef void (APIENTRYP PFNGLINDEXSVPROC)(const GLshort *c); -GLAPI PFNGLINDEXSVPROC glad_glIndexsv; -#define glIndexsv glad_glIndexsv -typedef void (APIENTRYP PFNGLNORMAL3BPROC)(GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI PFNGLNORMAL3BPROC glad_glNormal3b; -#define glNormal3b glad_glNormal3b -typedef void (APIENTRYP PFNGLNORMAL3BVPROC)(const GLbyte *v); -GLAPI PFNGLNORMAL3BVPROC glad_glNormal3bv; -#define glNormal3bv glad_glNormal3bv -typedef void (APIENTRYP PFNGLNORMAL3DPROC)(GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI PFNGLNORMAL3DPROC glad_glNormal3d; -#define glNormal3d glad_glNormal3d -typedef void (APIENTRYP PFNGLNORMAL3DVPROC)(const GLdouble *v); -GLAPI PFNGLNORMAL3DVPROC glad_glNormal3dv; -#define glNormal3dv glad_glNormal3dv -typedef void (APIENTRYP PFNGLNORMAL3FPROC)(GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI PFNGLNORMAL3FPROC glad_glNormal3f; -#define glNormal3f glad_glNormal3f -typedef void (APIENTRYP PFNGLNORMAL3FVPROC)(const GLfloat *v); -GLAPI PFNGLNORMAL3FVPROC glad_glNormal3fv; -#define glNormal3fv glad_glNormal3fv -typedef void (APIENTRYP PFNGLNORMAL3IPROC)(GLint nx, GLint ny, GLint nz); -GLAPI PFNGLNORMAL3IPROC glad_glNormal3i; -#define glNormal3i glad_glNormal3i -typedef void (APIENTRYP PFNGLNORMAL3IVPROC)(const GLint *v); -GLAPI PFNGLNORMAL3IVPROC glad_glNormal3iv; -#define glNormal3iv glad_glNormal3iv -typedef void (APIENTRYP PFNGLNORMAL3SPROC)(GLshort nx, GLshort ny, GLshort nz); -GLAPI PFNGLNORMAL3SPROC glad_glNormal3s; -#define glNormal3s glad_glNormal3s -typedef void (APIENTRYP PFNGLNORMAL3SVPROC)(const GLshort *v); -GLAPI PFNGLNORMAL3SVPROC glad_glNormal3sv; -#define glNormal3sv glad_glNormal3sv -typedef void (APIENTRYP PFNGLRASTERPOS2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLRASTERPOS2DPROC glad_glRasterPos2d; -#define glRasterPos2d glad_glRasterPos2d -typedef void (APIENTRYP PFNGLRASTERPOS2DVPROC)(const GLdouble *v); -GLAPI PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv; -#define glRasterPos2dv glad_glRasterPos2dv -typedef void (APIENTRYP PFNGLRASTERPOS2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLRASTERPOS2FPROC glad_glRasterPos2f; -#define glRasterPos2f glad_glRasterPos2f -typedef void (APIENTRYP PFNGLRASTERPOS2FVPROC)(const GLfloat *v); -GLAPI PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv; -#define glRasterPos2fv glad_glRasterPos2fv -typedef void (APIENTRYP PFNGLRASTERPOS2IPROC)(GLint x, GLint y); -GLAPI PFNGLRASTERPOS2IPROC glad_glRasterPos2i; -#define glRasterPos2i glad_glRasterPos2i -typedef void (APIENTRYP PFNGLRASTERPOS2IVPROC)(const GLint *v); -GLAPI PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv; -#define glRasterPos2iv glad_glRasterPos2iv -typedef void (APIENTRYP PFNGLRASTERPOS2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLRASTERPOS2SPROC glad_glRasterPos2s; -#define glRasterPos2s glad_glRasterPos2s -typedef void (APIENTRYP PFNGLRASTERPOS2SVPROC)(const GLshort *v); -GLAPI PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv; -#define glRasterPos2sv glad_glRasterPos2sv -typedef void (APIENTRYP PFNGLRASTERPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLRASTERPOS3DPROC glad_glRasterPos3d; -#define glRasterPos3d glad_glRasterPos3d -typedef void (APIENTRYP PFNGLRASTERPOS3DVPROC)(const GLdouble *v); -GLAPI PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv; -#define glRasterPos3dv glad_glRasterPos3dv -typedef void (APIENTRYP PFNGLRASTERPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLRASTERPOS3FPROC glad_glRasterPos3f; -#define glRasterPos3f glad_glRasterPos3f -typedef void (APIENTRYP PFNGLRASTERPOS3FVPROC)(const GLfloat *v); -GLAPI PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv; -#define glRasterPos3fv glad_glRasterPos3fv -typedef void (APIENTRYP PFNGLRASTERPOS3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLRASTERPOS3IPROC glad_glRasterPos3i; -#define glRasterPos3i glad_glRasterPos3i -typedef void (APIENTRYP PFNGLRASTERPOS3IVPROC)(const GLint *v); -GLAPI PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv; -#define glRasterPos3iv glad_glRasterPos3iv -typedef void (APIENTRYP PFNGLRASTERPOS3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLRASTERPOS3SPROC glad_glRasterPos3s; -#define glRasterPos3s glad_glRasterPos3s -typedef void (APIENTRYP PFNGLRASTERPOS3SVPROC)(const GLshort *v); -GLAPI PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv; -#define glRasterPos3sv glad_glRasterPos3sv -typedef void (APIENTRYP PFNGLRASTERPOS4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLRASTERPOS4DPROC glad_glRasterPos4d; -#define glRasterPos4d glad_glRasterPos4d -typedef void (APIENTRYP PFNGLRASTERPOS4DVPROC)(const GLdouble *v); -GLAPI PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv; -#define glRasterPos4dv glad_glRasterPos4dv -typedef void (APIENTRYP PFNGLRASTERPOS4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLRASTERPOS4FPROC glad_glRasterPos4f; -#define glRasterPos4f glad_glRasterPos4f -typedef void (APIENTRYP PFNGLRASTERPOS4FVPROC)(const GLfloat *v); -GLAPI PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv; -#define glRasterPos4fv glad_glRasterPos4fv -typedef void (APIENTRYP PFNGLRASTERPOS4IPROC)(GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLRASTERPOS4IPROC glad_glRasterPos4i; -#define glRasterPos4i glad_glRasterPos4i -typedef void (APIENTRYP PFNGLRASTERPOS4IVPROC)(const GLint *v); -GLAPI PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv; -#define glRasterPos4iv glad_glRasterPos4iv -typedef void (APIENTRYP PFNGLRASTERPOS4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLRASTERPOS4SPROC glad_glRasterPos4s; -#define glRasterPos4s glad_glRasterPos4s -typedef void (APIENTRYP PFNGLRASTERPOS4SVPROC)(const GLshort *v); -GLAPI PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv; -#define glRasterPos4sv glad_glRasterPos4sv -typedef void (APIENTRYP PFNGLRECTDPROC)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -GLAPI PFNGLRECTDPROC glad_glRectd; -#define glRectd glad_glRectd -typedef void (APIENTRYP PFNGLRECTDVPROC)(const GLdouble *v1, const GLdouble *v2); -GLAPI PFNGLRECTDVPROC glad_glRectdv; -#define glRectdv glad_glRectdv -typedef void (APIENTRYP PFNGLRECTFPROC)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -GLAPI PFNGLRECTFPROC glad_glRectf; -#define glRectf glad_glRectf -typedef void (APIENTRYP PFNGLRECTFVPROC)(const GLfloat *v1, const GLfloat *v2); -GLAPI PFNGLRECTFVPROC glad_glRectfv; -#define glRectfv glad_glRectfv -typedef void (APIENTRYP PFNGLRECTIPROC)(GLint x1, GLint y1, GLint x2, GLint y2); -GLAPI PFNGLRECTIPROC glad_glRecti; -#define glRecti glad_glRecti -typedef void (APIENTRYP PFNGLRECTIVPROC)(const GLint *v1, const GLint *v2); -GLAPI PFNGLRECTIVPROC glad_glRectiv; -#define glRectiv glad_glRectiv -typedef void (APIENTRYP PFNGLRECTSPROC)(GLshort x1, GLshort y1, GLshort x2, GLshort y2); -GLAPI PFNGLRECTSPROC glad_glRects; -#define glRects glad_glRects -typedef void (APIENTRYP PFNGLRECTSVPROC)(const GLshort *v1, const GLshort *v2); -GLAPI PFNGLRECTSVPROC glad_glRectsv; -#define glRectsv glad_glRectsv -typedef void (APIENTRYP PFNGLTEXCOORD1DPROC)(GLdouble s); -GLAPI PFNGLTEXCOORD1DPROC glad_glTexCoord1d; -#define glTexCoord1d glad_glTexCoord1d -typedef void (APIENTRYP PFNGLTEXCOORD1DVPROC)(const GLdouble *v); -GLAPI PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv; -#define glTexCoord1dv glad_glTexCoord1dv -typedef void (APIENTRYP PFNGLTEXCOORD1FPROC)(GLfloat s); -GLAPI PFNGLTEXCOORD1FPROC glad_glTexCoord1f; -#define glTexCoord1f glad_glTexCoord1f -typedef void (APIENTRYP PFNGLTEXCOORD1FVPROC)(const GLfloat *v); -GLAPI PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv; -#define glTexCoord1fv glad_glTexCoord1fv -typedef void (APIENTRYP PFNGLTEXCOORD1IPROC)(GLint s); -GLAPI PFNGLTEXCOORD1IPROC glad_glTexCoord1i; -#define glTexCoord1i glad_glTexCoord1i -typedef void (APIENTRYP PFNGLTEXCOORD1IVPROC)(const GLint *v); -GLAPI PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv; -#define glTexCoord1iv glad_glTexCoord1iv -typedef void (APIENTRYP PFNGLTEXCOORD1SPROC)(GLshort s); -GLAPI PFNGLTEXCOORD1SPROC glad_glTexCoord1s; -#define glTexCoord1s glad_glTexCoord1s -typedef void (APIENTRYP PFNGLTEXCOORD1SVPROC)(const GLshort *v); -GLAPI PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv; -#define glTexCoord1sv glad_glTexCoord1sv -typedef void (APIENTRYP PFNGLTEXCOORD2DPROC)(GLdouble s, GLdouble t); -GLAPI PFNGLTEXCOORD2DPROC glad_glTexCoord2d; -#define glTexCoord2d glad_glTexCoord2d -typedef void (APIENTRYP PFNGLTEXCOORD2DVPROC)(const GLdouble *v); -GLAPI PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv; -#define glTexCoord2dv glad_glTexCoord2dv -typedef void (APIENTRYP PFNGLTEXCOORD2FPROC)(GLfloat s, GLfloat t); -GLAPI PFNGLTEXCOORD2FPROC glad_glTexCoord2f; -#define glTexCoord2f glad_glTexCoord2f -typedef void (APIENTRYP PFNGLTEXCOORD2FVPROC)(const GLfloat *v); -GLAPI PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv; -#define glTexCoord2fv glad_glTexCoord2fv -typedef void (APIENTRYP PFNGLTEXCOORD2IPROC)(GLint s, GLint t); -GLAPI PFNGLTEXCOORD2IPROC glad_glTexCoord2i; -#define glTexCoord2i glad_glTexCoord2i -typedef void (APIENTRYP PFNGLTEXCOORD2IVPROC)(const GLint *v); -GLAPI PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv; -#define glTexCoord2iv glad_glTexCoord2iv -typedef void (APIENTRYP PFNGLTEXCOORD2SPROC)(GLshort s, GLshort t); -GLAPI PFNGLTEXCOORD2SPROC glad_glTexCoord2s; -#define glTexCoord2s glad_glTexCoord2s -typedef void (APIENTRYP PFNGLTEXCOORD2SVPROC)(const GLshort *v); -GLAPI PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv; -#define glTexCoord2sv glad_glTexCoord2sv -typedef void (APIENTRYP PFNGLTEXCOORD3DPROC)(GLdouble s, GLdouble t, GLdouble r); -GLAPI PFNGLTEXCOORD3DPROC glad_glTexCoord3d; -#define glTexCoord3d glad_glTexCoord3d -typedef void (APIENTRYP PFNGLTEXCOORD3DVPROC)(const GLdouble *v); -GLAPI PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv; -#define glTexCoord3dv glad_glTexCoord3dv -typedef void (APIENTRYP PFNGLTEXCOORD3FPROC)(GLfloat s, GLfloat t, GLfloat r); -GLAPI PFNGLTEXCOORD3FPROC glad_glTexCoord3f; -#define glTexCoord3f glad_glTexCoord3f -typedef void (APIENTRYP PFNGLTEXCOORD3FVPROC)(const GLfloat *v); -GLAPI PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv; -#define glTexCoord3fv glad_glTexCoord3fv -typedef void (APIENTRYP PFNGLTEXCOORD3IPROC)(GLint s, GLint t, GLint r); -GLAPI PFNGLTEXCOORD3IPROC glad_glTexCoord3i; -#define glTexCoord3i glad_glTexCoord3i -typedef void (APIENTRYP PFNGLTEXCOORD3IVPROC)(const GLint *v); -GLAPI PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv; -#define glTexCoord3iv glad_glTexCoord3iv -typedef void (APIENTRYP PFNGLTEXCOORD3SPROC)(GLshort s, GLshort t, GLshort r); -GLAPI PFNGLTEXCOORD3SPROC glad_glTexCoord3s; -#define glTexCoord3s glad_glTexCoord3s -typedef void (APIENTRYP PFNGLTEXCOORD3SVPROC)(const GLshort *v); -GLAPI PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv; -#define glTexCoord3sv glad_glTexCoord3sv -typedef void (APIENTRYP PFNGLTEXCOORD4DPROC)(GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI PFNGLTEXCOORD4DPROC glad_glTexCoord4d; -#define glTexCoord4d glad_glTexCoord4d -typedef void (APIENTRYP PFNGLTEXCOORD4DVPROC)(const GLdouble *v); -GLAPI PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv; -#define glTexCoord4dv glad_glTexCoord4dv -typedef void (APIENTRYP PFNGLTEXCOORD4FPROC)(GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI PFNGLTEXCOORD4FPROC glad_glTexCoord4f; -#define glTexCoord4f glad_glTexCoord4f -typedef void (APIENTRYP PFNGLTEXCOORD4FVPROC)(const GLfloat *v); -GLAPI PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv; -#define glTexCoord4fv glad_glTexCoord4fv -typedef void (APIENTRYP PFNGLTEXCOORD4IPROC)(GLint s, GLint t, GLint r, GLint q); -GLAPI PFNGLTEXCOORD4IPROC glad_glTexCoord4i; -#define glTexCoord4i glad_glTexCoord4i -typedef void (APIENTRYP PFNGLTEXCOORD4IVPROC)(const GLint *v); -GLAPI PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv; -#define glTexCoord4iv glad_glTexCoord4iv -typedef void (APIENTRYP PFNGLTEXCOORD4SPROC)(GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI PFNGLTEXCOORD4SPROC glad_glTexCoord4s; -#define glTexCoord4s glad_glTexCoord4s -typedef void (APIENTRYP PFNGLTEXCOORD4SVPROC)(const GLshort *v); -GLAPI PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv; -#define glTexCoord4sv glad_glTexCoord4sv -typedef void (APIENTRYP PFNGLVERTEX2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLVERTEX2DPROC glad_glVertex2d; -#define glVertex2d glad_glVertex2d -typedef void (APIENTRYP PFNGLVERTEX2DVPROC)(const GLdouble *v); -GLAPI PFNGLVERTEX2DVPROC glad_glVertex2dv; -#define glVertex2dv glad_glVertex2dv -typedef void (APIENTRYP PFNGLVERTEX2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLVERTEX2FPROC glad_glVertex2f; -#define glVertex2f glad_glVertex2f -typedef void (APIENTRYP PFNGLVERTEX2FVPROC)(const GLfloat *v); -GLAPI PFNGLVERTEX2FVPROC glad_glVertex2fv; -#define glVertex2fv glad_glVertex2fv -typedef void (APIENTRYP PFNGLVERTEX2IPROC)(GLint x, GLint y); -GLAPI PFNGLVERTEX2IPROC glad_glVertex2i; -#define glVertex2i glad_glVertex2i -typedef void (APIENTRYP PFNGLVERTEX2IVPROC)(const GLint *v); -GLAPI PFNGLVERTEX2IVPROC glad_glVertex2iv; -#define glVertex2iv glad_glVertex2iv -typedef void (APIENTRYP PFNGLVERTEX2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLVERTEX2SPROC glad_glVertex2s; -#define glVertex2s glad_glVertex2s -typedef void (APIENTRYP PFNGLVERTEX2SVPROC)(const GLshort *v); -GLAPI PFNGLVERTEX2SVPROC glad_glVertex2sv; -#define glVertex2sv glad_glVertex2sv -typedef void (APIENTRYP PFNGLVERTEX3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEX3DPROC glad_glVertex3d; -#define glVertex3d glad_glVertex3d -typedef void (APIENTRYP PFNGLVERTEX3DVPROC)(const GLdouble *v); -GLAPI PFNGLVERTEX3DVPROC glad_glVertex3dv; -#define glVertex3dv glad_glVertex3dv -typedef void (APIENTRYP PFNGLVERTEX3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEX3FPROC glad_glVertex3f; -#define glVertex3f glad_glVertex3f -typedef void (APIENTRYP PFNGLVERTEX3FVPROC)(const GLfloat *v); -GLAPI PFNGLVERTEX3FVPROC glad_glVertex3fv; -#define glVertex3fv glad_glVertex3fv -typedef void (APIENTRYP PFNGLVERTEX3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEX3IPROC glad_glVertex3i; -#define glVertex3i glad_glVertex3i -typedef void (APIENTRYP PFNGLVERTEX3IVPROC)(const GLint *v); -GLAPI PFNGLVERTEX3IVPROC glad_glVertex3iv; -#define glVertex3iv glad_glVertex3iv -typedef void (APIENTRYP PFNGLVERTEX3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEX3SPROC glad_glVertex3s; -#define glVertex3s glad_glVertex3s -typedef void (APIENTRYP PFNGLVERTEX3SVPROC)(const GLshort *v); -GLAPI PFNGLVERTEX3SVPROC glad_glVertex3sv; -#define glVertex3sv glad_glVertex3sv -typedef void (APIENTRYP PFNGLVERTEX4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEX4DPROC glad_glVertex4d; -#define glVertex4d glad_glVertex4d -typedef void (APIENTRYP PFNGLVERTEX4DVPROC)(const GLdouble *v); -GLAPI PFNGLVERTEX4DVPROC glad_glVertex4dv; -#define glVertex4dv glad_glVertex4dv -typedef void (APIENTRYP PFNGLVERTEX4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEX4FPROC glad_glVertex4f; -#define glVertex4f glad_glVertex4f -typedef void (APIENTRYP PFNGLVERTEX4FVPROC)(const GLfloat *v); -GLAPI PFNGLVERTEX4FVPROC glad_glVertex4fv; -#define glVertex4fv glad_glVertex4fv -typedef void (APIENTRYP PFNGLVERTEX4IPROC)(GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEX4IPROC glad_glVertex4i; -#define glVertex4i glad_glVertex4i -typedef void (APIENTRYP PFNGLVERTEX4IVPROC)(const GLint *v); -GLAPI PFNGLVERTEX4IVPROC glad_glVertex4iv; -#define glVertex4iv glad_glVertex4iv -typedef void (APIENTRYP PFNGLVERTEX4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEX4SPROC glad_glVertex4s; -#define glVertex4s glad_glVertex4s -typedef void (APIENTRYP PFNGLVERTEX4SVPROC)(const GLshort *v); -GLAPI PFNGLVERTEX4SVPROC glad_glVertex4sv; -#define glVertex4sv glad_glVertex4sv -typedef void (APIENTRYP PFNGLCLIPPLANEPROC)(GLenum plane, const GLdouble *equation); -GLAPI PFNGLCLIPPLANEPROC glad_glClipPlane; -#define glClipPlane glad_glClipPlane -typedef void (APIENTRYP PFNGLCOLORMATERIALPROC)(GLenum face, GLenum mode); -GLAPI PFNGLCOLORMATERIALPROC glad_glColorMaterial; -#define glColorMaterial glad_glColorMaterial -typedef void (APIENTRYP PFNGLFOGFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLFOGFPROC glad_glFogf; -#define glFogf glad_glFogf -typedef void (APIENTRYP PFNGLFOGFVPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLFOGFVPROC glad_glFogfv; -#define glFogfv glad_glFogfv -typedef void (APIENTRYP PFNGLFOGIPROC)(GLenum pname, GLint param); -GLAPI PFNGLFOGIPROC glad_glFogi; -#define glFogi glad_glFogi -typedef void (APIENTRYP PFNGLFOGIVPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLFOGIVPROC glad_glFogiv; -#define glFogiv glad_glFogiv -typedef void (APIENTRYP PFNGLLIGHTFPROC)(GLenum light, GLenum pname, GLfloat param); -GLAPI PFNGLLIGHTFPROC glad_glLightf; -#define glLightf glad_glLightf -typedef void (APIENTRYP PFNGLLIGHTFVPROC)(GLenum light, GLenum pname, const GLfloat *params); -GLAPI PFNGLLIGHTFVPROC glad_glLightfv; -#define glLightfv glad_glLightfv -typedef void (APIENTRYP PFNGLLIGHTIPROC)(GLenum light, GLenum pname, GLint param); -GLAPI PFNGLLIGHTIPROC glad_glLighti; -#define glLighti glad_glLighti -typedef void (APIENTRYP PFNGLLIGHTIVPROC)(GLenum light, GLenum pname, const GLint *params); -GLAPI PFNGLLIGHTIVPROC glad_glLightiv; -#define glLightiv glad_glLightiv -typedef void (APIENTRYP PFNGLLIGHTMODELFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLLIGHTMODELFPROC glad_glLightModelf; -#define glLightModelf glad_glLightModelf -typedef void (APIENTRYP PFNGLLIGHTMODELFVPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLLIGHTMODELFVPROC glad_glLightModelfv; -#define glLightModelfv glad_glLightModelfv -typedef void (APIENTRYP PFNGLLIGHTMODELIPROC)(GLenum pname, GLint param); -GLAPI PFNGLLIGHTMODELIPROC glad_glLightModeli; -#define glLightModeli glad_glLightModeli -typedef void (APIENTRYP PFNGLLIGHTMODELIVPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLLIGHTMODELIVPROC glad_glLightModeliv; -#define glLightModeliv glad_glLightModeliv -typedef void (APIENTRYP PFNGLLINESTIPPLEPROC)(GLint factor, GLushort pattern); -GLAPI PFNGLLINESTIPPLEPROC glad_glLineStipple; -#define glLineStipple glad_glLineStipple -typedef void (APIENTRYP PFNGLMATERIALFPROC)(GLenum face, GLenum pname, GLfloat param); -GLAPI PFNGLMATERIALFPROC glad_glMaterialf; -#define glMaterialf glad_glMaterialf -typedef void (APIENTRYP PFNGLMATERIALFVPROC)(GLenum face, GLenum pname, const GLfloat *params); -GLAPI PFNGLMATERIALFVPROC glad_glMaterialfv; -#define glMaterialfv glad_glMaterialfv -typedef void (APIENTRYP PFNGLMATERIALIPROC)(GLenum face, GLenum pname, GLint param); -GLAPI PFNGLMATERIALIPROC glad_glMateriali; -#define glMateriali glad_glMateriali -typedef void (APIENTRYP PFNGLMATERIALIVPROC)(GLenum face, GLenum pname, const GLint *params); -GLAPI PFNGLMATERIALIVPROC glad_glMaterialiv; -#define glMaterialiv glad_glMaterialiv -typedef void (APIENTRYP PFNGLPOLYGONSTIPPLEPROC)(const GLubyte *mask); -GLAPI PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple; -#define glPolygonStipple glad_glPolygonStipple -typedef void (APIENTRYP PFNGLSHADEMODELPROC)(GLenum mode); -GLAPI PFNGLSHADEMODELPROC glad_glShadeModel; -#define glShadeModel glad_glShadeModel -typedef void (APIENTRYP PFNGLTEXENVFPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLTEXENVFPROC glad_glTexEnvf; -#define glTexEnvf glad_glTexEnvf -typedef void (APIENTRYP PFNGLTEXENVFVPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLTEXENVFVPROC glad_glTexEnvfv; -#define glTexEnvfv glad_glTexEnvfv -typedef void (APIENTRYP PFNGLTEXENVIPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLTEXENVIPROC glad_glTexEnvi; -#define glTexEnvi glad_glTexEnvi -typedef void (APIENTRYP PFNGLTEXENVIVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXENVIVPROC glad_glTexEnviv; -#define glTexEnviv glad_glTexEnviv -typedef void (APIENTRYP PFNGLTEXGENDPROC)(GLenum coord, GLenum pname, GLdouble param); -GLAPI PFNGLTEXGENDPROC glad_glTexGend; -#define glTexGend glad_glTexGend -typedef void (APIENTRYP PFNGLTEXGENDVPROC)(GLenum coord, GLenum pname, const GLdouble *params); -GLAPI PFNGLTEXGENDVPROC glad_glTexGendv; -#define glTexGendv glad_glTexGendv -typedef void (APIENTRYP PFNGLTEXGENFPROC)(GLenum coord, GLenum pname, GLfloat param); -GLAPI PFNGLTEXGENFPROC glad_glTexGenf; -#define glTexGenf glad_glTexGenf -typedef void (APIENTRYP PFNGLTEXGENFVPROC)(GLenum coord, GLenum pname, const GLfloat *params); -GLAPI PFNGLTEXGENFVPROC glad_glTexGenfv; -#define glTexGenfv glad_glTexGenfv -typedef void (APIENTRYP PFNGLTEXGENIPROC)(GLenum coord, GLenum pname, GLint param); -GLAPI PFNGLTEXGENIPROC glad_glTexGeni; -#define glTexGeni glad_glTexGeni -typedef void (APIENTRYP PFNGLTEXGENIVPROC)(GLenum coord, GLenum pname, const GLint *params); -GLAPI PFNGLTEXGENIVPROC glad_glTexGeniv; -#define glTexGeniv glad_glTexGeniv -typedef void (APIENTRYP PFNGLFEEDBACKBUFFERPROC)(GLsizei size, GLenum type, GLfloat *buffer); -GLAPI PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer; -#define glFeedbackBuffer glad_glFeedbackBuffer -typedef void (APIENTRYP PFNGLSELECTBUFFERPROC)(GLsizei size, GLuint *buffer); -GLAPI PFNGLSELECTBUFFERPROC glad_glSelectBuffer; -#define glSelectBuffer glad_glSelectBuffer -typedef GLint (APIENTRYP PFNGLRENDERMODEPROC)(GLenum mode); -GLAPI PFNGLRENDERMODEPROC glad_glRenderMode; -#define glRenderMode glad_glRenderMode -typedef void (APIENTRYP PFNGLINITNAMESPROC)(); -GLAPI PFNGLINITNAMESPROC glad_glInitNames; -#define glInitNames glad_glInitNames -typedef void (APIENTRYP PFNGLLOADNAMEPROC)(GLuint name); -GLAPI PFNGLLOADNAMEPROC glad_glLoadName; -#define glLoadName glad_glLoadName -typedef void (APIENTRYP PFNGLPASSTHROUGHPROC)(GLfloat token); -GLAPI PFNGLPASSTHROUGHPROC glad_glPassThrough; -#define glPassThrough glad_glPassThrough -typedef void (APIENTRYP PFNGLPOPNAMEPROC)(); -GLAPI PFNGLPOPNAMEPROC glad_glPopName; -#define glPopName glad_glPopName -typedef void (APIENTRYP PFNGLPUSHNAMEPROC)(GLuint name); -GLAPI PFNGLPUSHNAMEPROC glad_glPushName; -#define glPushName glad_glPushName -typedef void (APIENTRYP PFNGLCLEARACCUMPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCLEARACCUMPROC glad_glClearAccum; -#define glClearAccum glad_glClearAccum -typedef void (APIENTRYP PFNGLCLEARINDEXPROC)(GLfloat c); -GLAPI PFNGLCLEARINDEXPROC glad_glClearIndex; -#define glClearIndex glad_glClearIndex -typedef void (APIENTRYP PFNGLINDEXMASKPROC)(GLuint mask); -GLAPI PFNGLINDEXMASKPROC glad_glIndexMask; -#define glIndexMask glad_glIndexMask -typedef void (APIENTRYP PFNGLACCUMPROC)(GLenum op, GLfloat value); -GLAPI PFNGLACCUMPROC glad_glAccum; -#define glAccum glad_glAccum -typedef void (APIENTRYP PFNGLPOPATTRIBPROC)(); -GLAPI PFNGLPOPATTRIBPROC glad_glPopAttrib; -#define glPopAttrib glad_glPopAttrib -typedef void (APIENTRYP PFNGLPUSHATTRIBPROC)(GLbitfield mask); -GLAPI PFNGLPUSHATTRIBPROC glad_glPushAttrib; -#define glPushAttrib glad_glPushAttrib -typedef void (APIENTRYP PFNGLMAP1DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -GLAPI PFNGLMAP1DPROC glad_glMap1d; -#define glMap1d glad_glMap1d -typedef void (APIENTRYP PFNGLMAP1FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -GLAPI PFNGLMAP1FPROC glad_glMap1f; -#define glMap1f glad_glMap1f -typedef void (APIENTRYP PFNGLMAP2DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -GLAPI PFNGLMAP2DPROC glad_glMap2d; -#define glMap2d glad_glMap2d -typedef void (APIENTRYP PFNGLMAP2FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -GLAPI PFNGLMAP2FPROC glad_glMap2f; -#define glMap2f glad_glMap2f -typedef void (APIENTRYP PFNGLMAPGRID1DPROC)(GLint un, GLdouble u1, GLdouble u2); -GLAPI PFNGLMAPGRID1DPROC glad_glMapGrid1d; -#define glMapGrid1d glad_glMapGrid1d -typedef void (APIENTRYP PFNGLMAPGRID1FPROC)(GLint un, GLfloat u1, GLfloat u2); -GLAPI PFNGLMAPGRID1FPROC glad_glMapGrid1f; -#define glMapGrid1f glad_glMapGrid1f -typedef void (APIENTRYP PFNGLMAPGRID2DPROC)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); -GLAPI PFNGLMAPGRID2DPROC glad_glMapGrid2d; -#define glMapGrid2d glad_glMapGrid2d -typedef void (APIENTRYP PFNGLMAPGRID2FPROC)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); -GLAPI PFNGLMAPGRID2FPROC glad_glMapGrid2f; -#define glMapGrid2f glad_glMapGrid2f -typedef void (APIENTRYP PFNGLEVALCOORD1DPROC)(GLdouble u); -GLAPI PFNGLEVALCOORD1DPROC glad_glEvalCoord1d; -#define glEvalCoord1d glad_glEvalCoord1d -typedef void (APIENTRYP PFNGLEVALCOORD1DVPROC)(const GLdouble *u); -GLAPI PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv; -#define glEvalCoord1dv glad_glEvalCoord1dv -typedef void (APIENTRYP PFNGLEVALCOORD1FPROC)(GLfloat u); -GLAPI PFNGLEVALCOORD1FPROC glad_glEvalCoord1f; -#define glEvalCoord1f glad_glEvalCoord1f -typedef void (APIENTRYP PFNGLEVALCOORD1FVPROC)(const GLfloat *u); -GLAPI PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv; -#define glEvalCoord1fv glad_glEvalCoord1fv -typedef void (APIENTRYP PFNGLEVALCOORD2DPROC)(GLdouble u, GLdouble v); -GLAPI PFNGLEVALCOORD2DPROC glad_glEvalCoord2d; -#define glEvalCoord2d glad_glEvalCoord2d -typedef void (APIENTRYP PFNGLEVALCOORD2DVPROC)(const GLdouble *u); -GLAPI PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv; -#define glEvalCoord2dv glad_glEvalCoord2dv -typedef void (APIENTRYP PFNGLEVALCOORD2FPROC)(GLfloat u, GLfloat v); -GLAPI PFNGLEVALCOORD2FPROC glad_glEvalCoord2f; -#define glEvalCoord2f glad_glEvalCoord2f -typedef void (APIENTRYP PFNGLEVALCOORD2FVPROC)(const GLfloat *u); -GLAPI PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv; -#define glEvalCoord2fv glad_glEvalCoord2fv -typedef void (APIENTRYP PFNGLEVALMESH1PROC)(GLenum mode, GLint i1, GLint i2); -GLAPI PFNGLEVALMESH1PROC glad_glEvalMesh1; -#define glEvalMesh1 glad_glEvalMesh1 -typedef void (APIENTRYP PFNGLEVALPOINT1PROC)(GLint i); -GLAPI PFNGLEVALPOINT1PROC glad_glEvalPoint1; -#define glEvalPoint1 glad_glEvalPoint1 -typedef void (APIENTRYP PFNGLEVALMESH2PROC)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); -GLAPI PFNGLEVALMESH2PROC glad_glEvalMesh2; -#define glEvalMesh2 glad_glEvalMesh2 -typedef void (APIENTRYP PFNGLEVALPOINT2PROC)(GLint i, GLint j); -GLAPI PFNGLEVALPOINT2PROC glad_glEvalPoint2; -#define glEvalPoint2 glad_glEvalPoint2 -typedef void (APIENTRYP PFNGLALPHAFUNCPROC)(GLenum func, GLfloat ref); -GLAPI PFNGLALPHAFUNCPROC glad_glAlphaFunc; -#define glAlphaFunc glad_glAlphaFunc -typedef void (APIENTRYP PFNGLPIXELZOOMPROC)(GLfloat xfactor, GLfloat yfactor); -GLAPI PFNGLPIXELZOOMPROC glad_glPixelZoom; -#define glPixelZoom glad_glPixelZoom -typedef void (APIENTRYP PFNGLPIXELTRANSFERFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf; -#define glPixelTransferf glad_glPixelTransferf -typedef void (APIENTRYP PFNGLPIXELTRANSFERIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi; -#define glPixelTransferi glad_glPixelTransferi -typedef void (APIENTRYP PFNGLPIXELMAPFVPROC)(GLenum map, GLsizei mapsize, const GLfloat *values); -GLAPI PFNGLPIXELMAPFVPROC glad_glPixelMapfv; -#define glPixelMapfv glad_glPixelMapfv -typedef void (APIENTRYP PFNGLPIXELMAPUIVPROC)(GLenum map, GLsizei mapsize, const GLuint *values); -GLAPI PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv; -#define glPixelMapuiv glad_glPixelMapuiv -typedef void (APIENTRYP PFNGLPIXELMAPUSVPROC)(GLenum map, GLsizei mapsize, const GLushort *values); -GLAPI PFNGLPIXELMAPUSVPROC glad_glPixelMapusv; -#define glPixelMapusv glad_glPixelMapusv -typedef void (APIENTRYP PFNGLCOPYPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); -GLAPI PFNGLCOPYPIXELSPROC glad_glCopyPixels; -#define glCopyPixels glad_glCopyPixels -typedef void (APIENTRYP PFNGLDRAWPIXELSPROC)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLDRAWPIXELSPROC glad_glDrawPixels; -#define glDrawPixels glad_glDrawPixels -typedef void (APIENTRYP PFNGLGETCLIPPLANEPROC)(GLenum plane, GLdouble *equation); -GLAPI PFNGLGETCLIPPLANEPROC glad_glGetClipPlane; -#define glGetClipPlane glad_glGetClipPlane -typedef void (APIENTRYP PFNGLGETLIGHTFVPROC)(GLenum light, GLenum pname, GLfloat *params); -GLAPI PFNGLGETLIGHTFVPROC glad_glGetLightfv; -#define glGetLightfv glad_glGetLightfv -typedef void (APIENTRYP PFNGLGETLIGHTIVPROC)(GLenum light, GLenum pname, GLint *params); -GLAPI PFNGLGETLIGHTIVPROC glad_glGetLightiv; -#define glGetLightiv glad_glGetLightiv -typedef void (APIENTRYP PFNGLGETMAPDVPROC)(GLenum target, GLenum query, GLdouble *v); -GLAPI PFNGLGETMAPDVPROC glad_glGetMapdv; -#define glGetMapdv glad_glGetMapdv -typedef void (APIENTRYP PFNGLGETMAPFVPROC)(GLenum target, GLenum query, GLfloat *v); -GLAPI PFNGLGETMAPFVPROC glad_glGetMapfv; -#define glGetMapfv glad_glGetMapfv -typedef void (APIENTRYP PFNGLGETMAPIVPROC)(GLenum target, GLenum query, GLint *v); -GLAPI PFNGLGETMAPIVPROC glad_glGetMapiv; -#define glGetMapiv glad_glGetMapiv -typedef void (APIENTRYP PFNGLGETMATERIALFVPROC)(GLenum face, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMATERIALFVPROC glad_glGetMaterialfv; -#define glGetMaterialfv glad_glGetMaterialfv -typedef void (APIENTRYP PFNGLGETMATERIALIVPROC)(GLenum face, GLenum pname, GLint *params); -GLAPI PFNGLGETMATERIALIVPROC glad_glGetMaterialiv; -#define glGetMaterialiv glad_glGetMaterialiv -typedef void (APIENTRYP PFNGLGETPIXELMAPFVPROC)(GLenum map, GLfloat *values); -GLAPI PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv; -#define glGetPixelMapfv glad_glGetPixelMapfv -typedef void (APIENTRYP PFNGLGETPIXELMAPUIVPROC)(GLenum map, GLuint *values); -GLAPI PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv; -#define glGetPixelMapuiv glad_glGetPixelMapuiv -typedef void (APIENTRYP PFNGLGETPIXELMAPUSVPROC)(GLenum map, GLushort *values); -GLAPI PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv; -#define glGetPixelMapusv glad_glGetPixelMapusv -typedef void (APIENTRYP PFNGLGETPOLYGONSTIPPLEPROC)(GLubyte *mask); -GLAPI PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple; -#define glGetPolygonStipple glad_glGetPolygonStipple -typedef void (APIENTRYP PFNGLGETTEXENVFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv; -#define glGetTexEnvfv glad_glGetTexEnvfv -typedef void (APIENTRYP PFNGLGETTEXENVIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXENVIVPROC glad_glGetTexEnviv; -#define glGetTexEnviv glad_glGetTexEnviv -typedef void (APIENTRYP PFNGLGETTEXGENDVPROC)(GLenum coord, GLenum pname, GLdouble *params); -GLAPI PFNGLGETTEXGENDVPROC glad_glGetTexGendv; -#define glGetTexGendv glad_glGetTexGendv -typedef void (APIENTRYP PFNGLGETTEXGENFVPROC)(GLenum coord, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXGENFVPROC glad_glGetTexGenfv; -#define glGetTexGenfv glad_glGetTexGenfv -typedef void (APIENTRYP PFNGLGETTEXGENIVPROC)(GLenum coord, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXGENIVPROC glad_glGetTexGeniv; -#define glGetTexGeniv glad_glGetTexGeniv -typedef GLboolean (APIENTRYP PFNGLISLISTPROC)(GLuint list); -GLAPI PFNGLISLISTPROC glad_glIsList; -#define glIsList glad_glIsList -typedef void (APIENTRYP PFNGLFRUSTUMPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLFRUSTUMPROC glad_glFrustum; -#define glFrustum glad_glFrustum -typedef void (APIENTRYP PFNGLLOADIDENTITYPROC)(); -GLAPI PFNGLLOADIDENTITYPROC glad_glLoadIdentity; -#define glLoadIdentity glad_glLoadIdentity -typedef void (APIENTRYP PFNGLLOADMATRIXFPROC)(const GLfloat *m); -GLAPI PFNGLLOADMATRIXFPROC glad_glLoadMatrixf; -#define glLoadMatrixf glad_glLoadMatrixf -typedef void (APIENTRYP PFNGLLOADMATRIXDPROC)(const GLdouble *m); -GLAPI PFNGLLOADMATRIXDPROC glad_glLoadMatrixd; -#define glLoadMatrixd glad_glLoadMatrixd -typedef void (APIENTRYP PFNGLMATRIXMODEPROC)(GLenum mode); -GLAPI PFNGLMATRIXMODEPROC glad_glMatrixMode; -#define glMatrixMode glad_glMatrixMode -typedef void (APIENTRYP PFNGLMULTMATRIXFPROC)(const GLfloat *m); -GLAPI PFNGLMULTMATRIXFPROC glad_glMultMatrixf; -#define glMultMatrixf glad_glMultMatrixf -typedef void (APIENTRYP PFNGLMULTMATRIXDPROC)(const GLdouble *m); -GLAPI PFNGLMULTMATRIXDPROC glad_glMultMatrixd; -#define glMultMatrixd glad_glMultMatrixd -typedef void (APIENTRYP PFNGLORTHOPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLORTHOPROC glad_glOrtho; -#define glOrtho glad_glOrtho -typedef void (APIENTRYP PFNGLPOPMATRIXPROC)(); -GLAPI PFNGLPOPMATRIXPROC glad_glPopMatrix; -#define glPopMatrix glad_glPopMatrix -typedef void (APIENTRYP PFNGLPUSHMATRIXPROC)(); -GLAPI PFNGLPUSHMATRIXPROC glad_glPushMatrix; -#define glPushMatrix glad_glPushMatrix -typedef void (APIENTRYP PFNGLROTATEDPROC)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLROTATEDPROC glad_glRotated; -#define glRotated glad_glRotated -typedef void (APIENTRYP PFNGLROTATEFPROC)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLROTATEFPROC glad_glRotatef; -#define glRotatef glad_glRotatef -typedef void (APIENTRYP PFNGLSCALEDPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLSCALEDPROC glad_glScaled; -#define glScaled glad_glScaled -typedef void (APIENTRYP PFNGLSCALEFPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLSCALEFPROC glad_glScalef; -#define glScalef glad_glScalef -typedef void (APIENTRYP PFNGLTRANSLATEDPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLTRANSLATEDPROC glad_glTranslated; -#define glTranslated glad_glTranslated -typedef void (APIENTRYP PFNGLTRANSLATEFPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTRANSLATEFPROC glad_glTranslatef; -#define glTranslatef glad_glTranslatef -#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 PFNGLGETPOINTERVPROC)(GLenum pname, void **params); -GLAPI PFNGLGETPOINTERVPROC glad_glGetPointerv; -#define glGetPointerv glad_glGetPointerv -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 -typedef void (APIENTRYP PFNGLARRAYELEMENTPROC)(GLint i); -GLAPI PFNGLARRAYELEMENTPROC glad_glArrayElement; -#define glArrayElement glad_glArrayElement -typedef void (APIENTRYP PFNGLCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLCOLORPOINTERPROC glad_glColorPointer; -#define glColorPointer glad_glColorPointer -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEPROC)(GLenum array); -GLAPI PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState; -#define glDisableClientState glad_glDisableClientState -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERPROC)(GLsizei stride, const void *pointer); -GLAPI PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer; -#define glEdgeFlagPointer glad_glEdgeFlagPointer -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEPROC)(GLenum array); -GLAPI PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState; -#define glEnableClientState glad_glEnableClientState -typedef void (APIENTRYP PFNGLINDEXPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLINDEXPOINTERPROC glad_glIndexPointer; -#define glIndexPointer glad_glIndexPointer -typedef void (APIENTRYP PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void *pointer); -GLAPI PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; -#define glInterleavedArrays glad_glInterleavedArrays -typedef void (APIENTRYP PFNGLNORMALPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLNORMALPOINTERPROC glad_glNormalPointer; -#define glNormalPointer glad_glNormalPointer -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer; -#define glTexCoordPointer glad_glTexCoordPointer -typedef void (APIENTRYP PFNGLVERTEXPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXPOINTERPROC glad_glVertexPointer; -#define glVertexPointer glad_glVertexPointer -typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTPROC)(GLsizei n, const GLuint *textures, GLboolean *residences); -GLAPI PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident; -#define glAreTexturesResident glad_glAreTexturesResident -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESPROC)(GLsizei n, const GLuint *textures, const GLfloat *priorities); -GLAPI PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures; -#define glPrioritizeTextures glad_glPrioritizeTextures -typedef void (APIENTRYP PFNGLINDEXUBPROC)(GLubyte c); -GLAPI PFNGLINDEXUBPROC glad_glIndexub; -#define glIndexub glad_glIndexub -typedef void (APIENTRYP PFNGLINDEXUBVPROC)(const GLubyte *c); -GLAPI PFNGLINDEXUBVPROC glad_glIndexubv; -#define glIndexubv glad_glIndexubv -typedef void (APIENTRYP PFNGLPOPCLIENTATTRIBPROC)(); -GLAPI PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib; -#define glPopClientAttrib glad_glPopClientAttrib -typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBPROC)(GLbitfield mask); -GLAPI PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib; -#define glPushClientAttrib glad_glPushClientAttrib -#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 -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC)(GLenum texture); -GLAPI PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture; -#define glClientActiveTexture glad_glClientActiveTexture -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC)(GLenum target, GLdouble s); -GLAPI PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d; -#define glMultiTexCoord1d glad_glMultiTexCoord1d -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv; -#define glMultiTexCoord1dv glad_glMultiTexCoord1dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC)(GLenum target, GLfloat s); -GLAPI PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f; -#define glMultiTexCoord1f glad_glMultiTexCoord1f -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv; -#define glMultiTexCoord1fv glad_glMultiTexCoord1fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC)(GLenum target, GLint s); -GLAPI PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i; -#define glMultiTexCoord1i glad_glMultiTexCoord1i -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv; -#define glMultiTexCoord1iv glad_glMultiTexCoord1iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC)(GLenum target, GLshort s); -GLAPI PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s; -#define glMultiTexCoord1s glad_glMultiTexCoord1s -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv; -#define glMultiTexCoord1sv glad_glMultiTexCoord1sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC)(GLenum target, GLdouble s, GLdouble t); -GLAPI PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d; -#define glMultiTexCoord2d glad_glMultiTexCoord2d -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv; -#define glMultiTexCoord2dv glad_glMultiTexCoord2dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC)(GLenum target, GLfloat s, GLfloat t); -GLAPI PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f; -#define glMultiTexCoord2f glad_glMultiTexCoord2f -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv; -#define glMultiTexCoord2fv glad_glMultiTexCoord2fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC)(GLenum target, GLint s, GLint t); -GLAPI PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i; -#define glMultiTexCoord2i glad_glMultiTexCoord2i -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv; -#define glMultiTexCoord2iv glad_glMultiTexCoord2iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC)(GLenum target, GLshort s, GLshort t); -GLAPI PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s; -#define glMultiTexCoord2s glad_glMultiTexCoord2s -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv; -#define glMultiTexCoord2sv glad_glMultiTexCoord2sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r); -GLAPI PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d; -#define glMultiTexCoord3d glad_glMultiTexCoord3d -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv; -#define glMultiTexCoord3dv glad_glMultiTexCoord3dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r); -GLAPI PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f; -#define glMultiTexCoord3f glad_glMultiTexCoord3f -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv; -#define glMultiTexCoord3fv glad_glMultiTexCoord3fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC)(GLenum target, GLint s, GLint t, GLint r); -GLAPI PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i; -#define glMultiTexCoord3i glad_glMultiTexCoord3i -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv; -#define glMultiTexCoord3iv glad_glMultiTexCoord3iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC)(GLenum target, GLshort s, GLshort t, GLshort r); -GLAPI PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s; -#define glMultiTexCoord3s glad_glMultiTexCoord3s -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv; -#define glMultiTexCoord3sv glad_glMultiTexCoord3sv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d; -#define glMultiTexCoord4d glad_glMultiTexCoord4d -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv; -#define glMultiTexCoord4dv glad_glMultiTexCoord4dv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f; -#define glMultiTexCoord4f glad_glMultiTexCoord4f -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv; -#define glMultiTexCoord4fv glad_glMultiTexCoord4fv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC)(GLenum target, GLint s, GLint t, GLint r, GLint q); -GLAPI PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i; -#define glMultiTexCoord4i glad_glMultiTexCoord4i -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv; -#define glMultiTexCoord4iv glad_glMultiTexCoord4iv -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s; -#define glMultiTexCoord4s glad_glMultiTexCoord4s -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv; -#define glMultiTexCoord4sv glad_glMultiTexCoord4sv -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC)(const GLfloat *m); -GLAPI PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf; -#define glLoadTransposeMatrixf glad_glLoadTransposeMatrixf -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC)(const GLdouble *m); -GLAPI PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd; -#define glLoadTransposeMatrixd glad_glLoadTransposeMatrixd -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC)(const GLfloat *m); -GLAPI PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf; -#define glMultTransposeMatrixf glad_glMultTransposeMatrixf -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC)(const GLdouble *m); -GLAPI PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd; -#define glMultTransposeMatrixd glad_glMultTransposeMatrixd -#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 PFNGLFOGCOORDFPROC)(GLfloat coord); -GLAPI PFNGLFOGCOORDFPROC glad_glFogCoordf; -#define glFogCoordf glad_glFogCoordf -typedef void (APIENTRYP PFNGLFOGCOORDFVPROC)(const GLfloat *coord); -GLAPI PFNGLFOGCOORDFVPROC glad_glFogCoordfv; -#define glFogCoordfv glad_glFogCoordfv -typedef void (APIENTRYP PFNGLFOGCOORDDPROC)(GLdouble coord); -GLAPI PFNGLFOGCOORDDPROC glad_glFogCoordd; -#define glFogCoordd glad_glFogCoordd -typedef void (APIENTRYP PFNGLFOGCOORDDVPROC)(const GLdouble *coord); -GLAPI PFNGLFOGCOORDDVPROC glad_glFogCoorddv; -#define glFogCoorddv glad_glFogCoorddv -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer; -#define glFogCoordPointer glad_glFogCoordPointer -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); -GLAPI PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b; -#define glSecondaryColor3b glad_glSecondaryColor3b -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC)(const GLbyte *v); -GLAPI PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv; -#define glSecondaryColor3bv glad_glSecondaryColor3bv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); -GLAPI PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d; -#define glSecondaryColor3d glad_glSecondaryColor3d -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC)(const GLdouble *v); -GLAPI PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv; -#define glSecondaryColor3dv glad_glSecondaryColor3dv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); -GLAPI PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f; -#define glSecondaryColor3f glad_glSecondaryColor3f -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC)(const GLfloat *v); -GLAPI PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv; -#define glSecondaryColor3fv glad_glSecondaryColor3fv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC)(GLint red, GLint green, GLint blue); -GLAPI PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i; -#define glSecondaryColor3i glad_glSecondaryColor3i -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC)(const GLint *v); -GLAPI PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv; -#define glSecondaryColor3iv glad_glSecondaryColor3iv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); -GLAPI PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s; -#define glSecondaryColor3s glad_glSecondaryColor3s -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC)(const GLshort *v); -GLAPI PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv; -#define glSecondaryColor3sv glad_glSecondaryColor3sv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); -GLAPI PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub; -#define glSecondaryColor3ub glad_glSecondaryColor3ub -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC)(const GLubyte *v); -GLAPI PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv; -#define glSecondaryColor3ubv glad_glSecondaryColor3ubv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); -GLAPI PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui; -#define glSecondaryColor3ui glad_glSecondaryColor3ui -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC)(const GLuint *v); -GLAPI PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv; -#define glSecondaryColor3uiv glad_glSecondaryColor3uiv -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); -GLAPI PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us; -#define glSecondaryColor3us glad_glSecondaryColor3us -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC)(const GLushort *v); -GLAPI PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv; -#define glSecondaryColor3usv glad_glSecondaryColor3usv -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer; -#define glSecondaryColorPointer glad_glSecondaryColorPointer -typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLWINDOWPOS2DPROC glad_glWindowPos2d; -#define glWindowPos2d glad_glWindowPos2d -typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv; -#define glWindowPos2dv glad_glWindowPos2dv -typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLWINDOWPOS2FPROC glad_glWindowPos2f; -#define glWindowPos2f glad_glWindowPos2f -typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv; -#define glWindowPos2fv glad_glWindowPos2fv -typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC)(GLint x, GLint y); -GLAPI PFNGLWINDOWPOS2IPROC glad_glWindowPos2i; -#define glWindowPos2i glad_glWindowPos2i -typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv; -#define glWindowPos2iv glad_glWindowPos2iv -typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC)(GLshort x, GLshort y); -GLAPI PFNGLWINDOWPOS2SPROC glad_glWindowPos2s; -#define glWindowPos2s glad_glWindowPos2s -typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv; -#define glWindowPos2sv glad_glWindowPos2sv -typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLWINDOWPOS3DPROC glad_glWindowPos3d; -#define glWindowPos3d glad_glWindowPos3d -typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv; -#define glWindowPos3dv glad_glWindowPos3dv -typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLWINDOWPOS3FPROC glad_glWindowPos3f; -#define glWindowPos3f glad_glWindowPos3f -typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv; -#define glWindowPos3fv glad_glWindowPos3fv -typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLWINDOWPOS3IPROC glad_glWindowPos3i; -#define glWindowPos3i glad_glWindowPos3i -typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv; -#define glWindowPos3iv glad_glWindowPos3iv -typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLWINDOWPOS3SPROC glad_glWindowPos3s; -#define glWindowPos3s glad_glWindowPos3s -typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv; -#define glWindowPos3sv glad_glWindowPos3sv -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)(); -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)(); -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)(); -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 -#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_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_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_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 -#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_DISPLAY_LIST 0x82E7 -#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_robustness -#define GL_ARB_robustness 1 -GLAPI int GLAD_GL_ARB_robustness; -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC)(); -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_KHR_debug -#define GL_KHR_debug 1 -GLAPI int GLAD_GL_KHR_debug; -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)(); -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 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)(); -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 - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/external/GLFW/deps/vulkan/vk_platform.h b/external/GLFW/deps/vulkan/vk_platform.h deleted file mode 100644 index 0fa62ee..0000000 --- a/external/GLFW/deps/vulkan/vk_platform.h +++ /dev/null @@ -1,120 +0,0 @@ -// -// File: vk_platform.h -// -/* -** Copyright (c) 2014-2015 The Khronos Group Inc. -** -** 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. -*/ - - -#ifndef VK_PLATFORM_H_ -#define VK_PLATFORM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // __cplusplus - -/* -*************************************************************************************************** -* Platform-specific directives and type declarations -*************************************************************************************************** -*/ - -/* Platform-specific calling convention macros. - * - * Platforms should define these so that Vulkan clients call Vulkan commands - * with the same calling conventions that the Vulkan implementation expects. - * - * VKAPI_ATTR - Placed before the return type in function declarations. - * Useful for C++11 and GCC/Clang-style function attribute syntax. - * VKAPI_CALL - Placed after the return type in function declarations. - * Useful for MSVC-style calling convention syntax. - * VKAPI_PTR - Placed between the '(' and '*' in function pointer types. - * - * Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void); - * Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void); - */ -#if defined(_WIN32) - // On Windows, Vulkan commands use the stdcall convention - #define VKAPI_ATTR - #define VKAPI_CALL __stdcall - #define VKAPI_PTR VKAPI_CALL -#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7 - #error "Vulkan isn't supported for the 'armeabi' NDK ABI" -#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE) - // On Android 32-bit ARM targets, Vulkan functions use the "hardfloat" - // calling convention, i.e. float parameters are passed in registers. This - // is true even if the rest of the application passes floats on the stack, - // as it does by default when compiling for the armeabi-v7a NDK ABI. - #define VKAPI_ATTR __attribute__((pcs("aapcs-vfp"))) - #define VKAPI_CALL - #define VKAPI_PTR VKAPI_ATTR -#else - // On other platforms, use the default calling convention - #define VKAPI_ATTR - #define VKAPI_CALL - #define VKAPI_PTR -#endif - -#include - -#if !defined(VK_NO_STDINT_H) - #if defined(_MSC_VER) && (_MSC_VER < 1600) - typedef signed __int8 int8_t; - typedef unsigned __int8 uint8_t; - typedef signed __int16 int16_t; - typedef unsigned __int16 uint16_t; - typedef signed __int32 int32_t; - typedef unsigned __int32 uint32_t; - typedef signed __int64 int64_t; - typedef unsigned __int64 uint64_t; - #else - #include - #endif -#endif // !defined(VK_NO_STDINT_H) - -#ifdef __cplusplus -} // extern "C" -#endif // __cplusplus - -// Platform-specific headers required by platform window system extensions. -// These are enabled prior to #including "vulkan.h". The same enable then -// controls inclusion of the extension interfaces in vulkan.h. - -#ifdef VK_USE_PLATFORM_ANDROID_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_MIR_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_WAYLAND_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_XLIB_KHR -#include -#endif - -#ifdef VK_USE_PLATFORM_XCB_KHR -#include -#endif - -#endif diff --git a/external/GLFW/deps/vulkan/vulkan.h b/external/GLFW/deps/vulkan/vulkan.h deleted file mode 100644 index 81dedf7..0000000 --- a/external/GLFW/deps/vulkan/vulkan.h +++ /dev/null @@ -1,4763 +0,0 @@ -#ifndef VULKAN_H_ -#define VULKAN_H_ 1 - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2015-2017 The Khronos Group Inc. -** -** 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. -*/ - -/* -** This header is generated from the Khronos Vulkan XML API Registry. -** -*/ - - -#define VK_VERSION_1_0 1 -#include "vk_platform.h" - -#define VK_MAKE_VERSION(major, minor, patch) \ - (((major) << 22) | ((minor) << 12) | (patch)) - -// DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead. -//#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0) - -// Vulkan 1.0 version number -#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0) - -#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22) -#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) -#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) -// Version of this file -#define VK_HEADER_VERSION 39 - - -#define VK_NULL_HANDLE 0 - - - -#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; - - -#if !defined(VK_DEFINE_NON_DISPATCHABLE_HANDLE) -#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) - #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; -#else - #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; -#endif -#endif - - - -typedef uint32_t VkFlags; -typedef uint32_t VkBool32; -typedef uint64_t VkDeviceSize; -typedef uint32_t VkSampleMask; - -VK_DEFINE_HANDLE(VkInstance) -VK_DEFINE_HANDLE(VkPhysicalDevice) -VK_DEFINE_HANDLE(VkDevice) -VK_DEFINE_HANDLE(VkQueue) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore) -VK_DEFINE_HANDLE(VkCommandBuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool) - -#define VK_LOD_CLAMP_NONE 1000.0f -#define VK_REMAINING_MIP_LEVELS (~0U) -#define VK_REMAINING_ARRAY_LAYERS (~0U) -#define VK_WHOLE_SIZE (~0ULL) -#define VK_ATTACHMENT_UNUSED (~0U) -#define VK_TRUE 1 -#define VK_FALSE 0 -#define VK_QUEUE_FAMILY_IGNORED (~0U) -#define VK_SUBPASS_EXTERNAL (~0U) -#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256 -#define VK_UUID_SIZE 16 -#define VK_MAX_MEMORY_TYPES 32 -#define VK_MAX_MEMORY_HEAPS 16 -#define VK_MAX_EXTENSION_NAME_SIZE 256 -#define VK_MAX_DESCRIPTION_SIZE 256 - - -typedef enum VkPipelineCacheHeaderVersion { - VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1, - VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, - VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, - VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1), - VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF -} VkPipelineCacheHeaderVersion; - -typedef enum VkResult { - VK_SUCCESS = 0, - VK_NOT_READY = 1, - VK_TIMEOUT = 2, - VK_EVENT_SET = 3, - VK_EVENT_RESET = 4, - VK_INCOMPLETE = 5, - VK_ERROR_OUT_OF_HOST_MEMORY = -1, - VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, - VK_ERROR_INITIALIZATION_FAILED = -3, - VK_ERROR_DEVICE_LOST = -4, - VK_ERROR_MEMORY_MAP_FAILED = -5, - VK_ERROR_LAYER_NOT_PRESENT = -6, - VK_ERROR_EXTENSION_NOT_PRESENT = -7, - VK_ERROR_FEATURE_NOT_PRESENT = -8, - VK_ERROR_INCOMPATIBLE_DRIVER = -9, - VK_ERROR_TOO_MANY_OBJECTS = -10, - VK_ERROR_FORMAT_NOT_SUPPORTED = -11, - VK_ERROR_FRAGMENTED_POOL = -12, - VK_ERROR_SURFACE_LOST_KHR = -1000000000, - VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, - VK_SUBOPTIMAL_KHR = 1000001003, - VK_ERROR_OUT_OF_DATE_KHR = -1000001004, - VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, - VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, - VK_ERROR_INVALID_SHADER_NV = -1000012000, - VK_ERROR_OUT_OF_POOL_MEMORY_KHR = -1000069000, - VK_RESULT_BEGIN_RANGE = VK_ERROR_FRAGMENTED_POOL, - VK_RESULT_END_RANGE = VK_INCOMPLETE, - VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FRAGMENTED_POOL + 1), - VK_RESULT_MAX_ENUM = 0x7FFFFFFF -} VkResult; - -typedef enum VkStructureType { - VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, - VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1, - VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2, - VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3, - VK_STRUCTURE_TYPE_SUBMIT_INFO = 4, - VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5, - VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6, - VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7, - VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8, - VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9, - VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, - VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11, - VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12, - VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13, - VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14, - VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15, - VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16, - VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17, - VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18, - VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19, - VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20, - VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21, - VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22, - VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23, - VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24, - VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25, - VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26, - VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27, - VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28, - VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29, - VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30, - VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31, - VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32, - VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, - VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34, - VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35, - VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36, - VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37, - VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38, - VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41, - VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42, - VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, - VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44, - VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45, - VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46, - VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47, - VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48, - VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000, - VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001, - VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000, - VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001, - VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000, - VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, - VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, - VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, - VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, - VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000, - VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, - VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000, - VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000, - VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = 1000022000, - VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = 1000022001, - VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = 1000022002, - VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000, - VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001, - VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002, - VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000, - VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001, - VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057000, - VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057001, - VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000, - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR = 1000059000, - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR = 1000059001, - VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR = 1000059002, - VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059003, - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR = 1000059004, - VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR = 1000059005, - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR = 1000059006, - VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059007, - VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR = 1000059008, - VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000, - VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN = 1000062000, - VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX = 1000086000, - VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NVX = 1000086001, - VK_STRUCTURE_TYPE_CMD_PROCESS_COMMANDS_INFO_NVX = 1000086002, - VK_STRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX = 1000086003, - VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_LIMITS_NVX = 1000086004, - VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_FEATURES_NVX = 1000086005, - VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES2_EXT = 1000090000, - VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT = 1000091000, - VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT = 1000091001, - VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT = 1000091002, - VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT = 1000091003, - VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, - VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO, - VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1), - VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkStructureType; - -typedef enum VkSystemAllocationScope { - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0, - VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1, - VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2, - VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3, - VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4, - VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND, - VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE, - VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1), - VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF -} VkSystemAllocationScope; - -typedef enum VkInternalAllocationType { - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0, - VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, - VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, - VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1), - VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkInternalAllocationType; - -typedef enum VkFormat { - VK_FORMAT_UNDEFINED = 0, - VK_FORMAT_R4G4_UNORM_PACK8 = 1, - VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2, - VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3, - VK_FORMAT_R5G6B5_UNORM_PACK16 = 4, - VK_FORMAT_B5G6R5_UNORM_PACK16 = 5, - VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6, - VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7, - VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8, - VK_FORMAT_R8_UNORM = 9, - VK_FORMAT_R8_SNORM = 10, - VK_FORMAT_R8_USCALED = 11, - VK_FORMAT_R8_SSCALED = 12, - VK_FORMAT_R8_UINT = 13, - VK_FORMAT_R8_SINT = 14, - VK_FORMAT_R8_SRGB = 15, - VK_FORMAT_R8G8_UNORM = 16, - VK_FORMAT_R8G8_SNORM = 17, - VK_FORMAT_R8G8_USCALED = 18, - VK_FORMAT_R8G8_SSCALED = 19, - VK_FORMAT_R8G8_UINT = 20, - VK_FORMAT_R8G8_SINT = 21, - VK_FORMAT_R8G8_SRGB = 22, - VK_FORMAT_R8G8B8_UNORM = 23, - VK_FORMAT_R8G8B8_SNORM = 24, - VK_FORMAT_R8G8B8_USCALED = 25, - VK_FORMAT_R8G8B8_SSCALED = 26, - VK_FORMAT_R8G8B8_UINT = 27, - VK_FORMAT_R8G8B8_SINT = 28, - VK_FORMAT_R8G8B8_SRGB = 29, - VK_FORMAT_B8G8R8_UNORM = 30, - VK_FORMAT_B8G8R8_SNORM = 31, - VK_FORMAT_B8G8R8_USCALED = 32, - VK_FORMAT_B8G8R8_SSCALED = 33, - VK_FORMAT_B8G8R8_UINT = 34, - VK_FORMAT_B8G8R8_SINT = 35, - VK_FORMAT_B8G8R8_SRGB = 36, - VK_FORMAT_R8G8B8A8_UNORM = 37, - VK_FORMAT_R8G8B8A8_SNORM = 38, - VK_FORMAT_R8G8B8A8_USCALED = 39, - VK_FORMAT_R8G8B8A8_SSCALED = 40, - VK_FORMAT_R8G8B8A8_UINT = 41, - VK_FORMAT_R8G8B8A8_SINT = 42, - VK_FORMAT_R8G8B8A8_SRGB = 43, - VK_FORMAT_B8G8R8A8_UNORM = 44, - VK_FORMAT_B8G8R8A8_SNORM = 45, - VK_FORMAT_B8G8R8A8_USCALED = 46, - VK_FORMAT_B8G8R8A8_SSCALED = 47, - VK_FORMAT_B8G8R8A8_UINT = 48, - VK_FORMAT_B8G8R8A8_SINT = 49, - VK_FORMAT_B8G8R8A8_SRGB = 50, - VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51, - VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52, - VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53, - VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54, - VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55, - VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56, - VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57, - VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58, - VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59, - VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60, - VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61, - VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62, - VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63, - VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64, - VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65, - VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66, - VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67, - VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68, - VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69, - VK_FORMAT_R16_UNORM = 70, - VK_FORMAT_R16_SNORM = 71, - VK_FORMAT_R16_USCALED = 72, - VK_FORMAT_R16_SSCALED = 73, - VK_FORMAT_R16_UINT = 74, - VK_FORMAT_R16_SINT = 75, - VK_FORMAT_R16_SFLOAT = 76, - VK_FORMAT_R16G16_UNORM = 77, - VK_FORMAT_R16G16_SNORM = 78, - VK_FORMAT_R16G16_USCALED = 79, - VK_FORMAT_R16G16_SSCALED = 80, - VK_FORMAT_R16G16_UINT = 81, - VK_FORMAT_R16G16_SINT = 82, - VK_FORMAT_R16G16_SFLOAT = 83, - VK_FORMAT_R16G16B16_UNORM = 84, - VK_FORMAT_R16G16B16_SNORM = 85, - VK_FORMAT_R16G16B16_USCALED = 86, - VK_FORMAT_R16G16B16_SSCALED = 87, - VK_FORMAT_R16G16B16_UINT = 88, - VK_FORMAT_R16G16B16_SINT = 89, - VK_FORMAT_R16G16B16_SFLOAT = 90, - VK_FORMAT_R16G16B16A16_UNORM = 91, - VK_FORMAT_R16G16B16A16_SNORM = 92, - VK_FORMAT_R16G16B16A16_USCALED = 93, - VK_FORMAT_R16G16B16A16_SSCALED = 94, - VK_FORMAT_R16G16B16A16_UINT = 95, - VK_FORMAT_R16G16B16A16_SINT = 96, - VK_FORMAT_R16G16B16A16_SFLOAT = 97, - VK_FORMAT_R32_UINT = 98, - VK_FORMAT_R32_SINT = 99, - VK_FORMAT_R32_SFLOAT = 100, - VK_FORMAT_R32G32_UINT = 101, - VK_FORMAT_R32G32_SINT = 102, - VK_FORMAT_R32G32_SFLOAT = 103, - VK_FORMAT_R32G32B32_UINT = 104, - VK_FORMAT_R32G32B32_SINT = 105, - VK_FORMAT_R32G32B32_SFLOAT = 106, - VK_FORMAT_R32G32B32A32_UINT = 107, - VK_FORMAT_R32G32B32A32_SINT = 108, - VK_FORMAT_R32G32B32A32_SFLOAT = 109, - VK_FORMAT_R64_UINT = 110, - VK_FORMAT_R64_SINT = 111, - VK_FORMAT_R64_SFLOAT = 112, - VK_FORMAT_R64G64_UINT = 113, - VK_FORMAT_R64G64_SINT = 114, - VK_FORMAT_R64G64_SFLOAT = 115, - VK_FORMAT_R64G64B64_UINT = 116, - VK_FORMAT_R64G64B64_SINT = 117, - VK_FORMAT_R64G64B64_SFLOAT = 118, - VK_FORMAT_R64G64B64A64_UINT = 119, - VK_FORMAT_R64G64B64A64_SINT = 120, - VK_FORMAT_R64G64B64A64_SFLOAT = 121, - VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122, - VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123, - VK_FORMAT_D16_UNORM = 124, - VK_FORMAT_X8_D24_UNORM_PACK32 = 125, - VK_FORMAT_D32_SFLOAT = 126, - VK_FORMAT_S8_UINT = 127, - VK_FORMAT_D16_UNORM_S8_UINT = 128, - VK_FORMAT_D24_UNORM_S8_UINT = 129, - VK_FORMAT_D32_SFLOAT_S8_UINT = 130, - VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131, - VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132, - VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133, - VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134, - VK_FORMAT_BC2_UNORM_BLOCK = 135, - VK_FORMAT_BC2_SRGB_BLOCK = 136, - VK_FORMAT_BC3_UNORM_BLOCK = 137, - VK_FORMAT_BC3_SRGB_BLOCK = 138, - VK_FORMAT_BC4_UNORM_BLOCK = 139, - VK_FORMAT_BC4_SNORM_BLOCK = 140, - VK_FORMAT_BC5_UNORM_BLOCK = 141, - VK_FORMAT_BC5_SNORM_BLOCK = 142, - VK_FORMAT_BC6H_UFLOAT_BLOCK = 143, - VK_FORMAT_BC6H_SFLOAT_BLOCK = 144, - VK_FORMAT_BC7_UNORM_BLOCK = 145, - VK_FORMAT_BC7_SRGB_BLOCK = 146, - VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147, - VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148, - VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149, - VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150, - VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151, - VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152, - VK_FORMAT_EAC_R11_UNORM_BLOCK = 153, - VK_FORMAT_EAC_R11_SNORM_BLOCK = 154, - VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155, - VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156, - VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157, - VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158, - VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159, - VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160, - VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161, - VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162, - VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163, - VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164, - VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165, - VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166, - VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167, - VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168, - VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169, - VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170, - VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171, - VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172, - VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173, - VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174, - VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175, - VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176, - VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177, - VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178, - VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179, - VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180, - VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181, - VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182, - VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183, - VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184, - VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000, - VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001, - VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002, - VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = 1000054003, - VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = 1000054004, - VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005, - VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006, - VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007, - VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED, - VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK, - VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1), - VK_FORMAT_MAX_ENUM = 0x7FFFFFFF -} VkFormat; - -typedef enum VkImageType { - VK_IMAGE_TYPE_1D = 0, - VK_IMAGE_TYPE_2D = 1, - VK_IMAGE_TYPE_3D = 2, - VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D, - VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D, - VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1), - VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkImageType; - -typedef enum VkImageTiling { - VK_IMAGE_TILING_OPTIMAL = 0, - VK_IMAGE_TILING_LINEAR = 1, - VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL, - VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR, - VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1), - VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF -} VkImageTiling; - -typedef enum VkPhysicalDeviceType { - VK_PHYSICAL_DEVICE_TYPE_OTHER = 0, - VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1, - VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2, - VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3, - VK_PHYSICAL_DEVICE_TYPE_CPU = 4, - VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER, - VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU, - VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1), - VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkPhysicalDeviceType; - -typedef enum VkQueryType { - VK_QUERY_TYPE_OCCLUSION = 0, - VK_QUERY_TYPE_PIPELINE_STATISTICS = 1, - VK_QUERY_TYPE_TIMESTAMP = 2, - VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION, - VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP, - VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1), - VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkQueryType; - -typedef enum VkSharingMode { - VK_SHARING_MODE_EXCLUSIVE = 0, - VK_SHARING_MODE_CONCURRENT = 1, - VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE, - VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT, - VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1), - VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSharingMode; - -typedef enum VkImageLayout { - VK_IMAGE_LAYOUT_UNDEFINED = 0, - VK_IMAGE_LAYOUT_GENERAL = 1, - VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2, - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3, - VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4, - VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5, - VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7, - VK_IMAGE_LAYOUT_PREINITIALIZED = 8, - VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002, - VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED, - VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED, - VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1), - VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF -} VkImageLayout; - -typedef enum VkImageViewType { - VK_IMAGE_VIEW_TYPE_1D = 0, - VK_IMAGE_VIEW_TYPE_2D = 1, - VK_IMAGE_VIEW_TYPE_3D = 2, - VK_IMAGE_VIEW_TYPE_CUBE = 3, - VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4, - VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5, - VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6, - VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D, - VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY, - VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1), - VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkImageViewType; - -typedef enum VkComponentSwizzle { - VK_COMPONENT_SWIZZLE_IDENTITY = 0, - VK_COMPONENT_SWIZZLE_ZERO = 1, - VK_COMPONENT_SWIZZLE_ONE = 2, - VK_COMPONENT_SWIZZLE_R = 3, - VK_COMPONENT_SWIZZLE_G = 4, - VK_COMPONENT_SWIZZLE_B = 5, - VK_COMPONENT_SWIZZLE_A = 6, - VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY, - VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A, - VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1), - VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF -} VkComponentSwizzle; - -typedef enum VkVertexInputRate { - VK_VERTEX_INPUT_RATE_VERTEX = 0, - VK_VERTEX_INPUT_RATE_INSTANCE = 1, - VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX, - VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE, - VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1), - VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF -} VkVertexInputRate; - -typedef enum VkPrimitiveTopology { - VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0, - VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1, - VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5, - VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6, - VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8, - VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9, - VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10, - VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST, - VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST, - VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1), - VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF -} VkPrimitiveTopology; - -typedef enum VkPolygonMode { - VK_POLYGON_MODE_FILL = 0, - VK_POLYGON_MODE_LINE = 1, - VK_POLYGON_MODE_POINT = 2, - VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL, - VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT, - VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1), - VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF -} VkPolygonMode; - -typedef enum VkFrontFace { - VK_FRONT_FACE_COUNTER_CLOCKWISE = 0, - VK_FRONT_FACE_CLOCKWISE = 1, - VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE, - VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE, - VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1), - VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF -} VkFrontFace; - -typedef enum VkCompareOp { - VK_COMPARE_OP_NEVER = 0, - VK_COMPARE_OP_LESS = 1, - VK_COMPARE_OP_EQUAL = 2, - VK_COMPARE_OP_LESS_OR_EQUAL = 3, - VK_COMPARE_OP_GREATER = 4, - VK_COMPARE_OP_NOT_EQUAL = 5, - VK_COMPARE_OP_GREATER_OR_EQUAL = 6, - VK_COMPARE_OP_ALWAYS = 7, - VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER, - VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS, - VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1), - VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF -} VkCompareOp; - -typedef enum VkStencilOp { - VK_STENCIL_OP_KEEP = 0, - VK_STENCIL_OP_ZERO = 1, - VK_STENCIL_OP_REPLACE = 2, - VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3, - VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4, - VK_STENCIL_OP_INVERT = 5, - VK_STENCIL_OP_INCREMENT_AND_WRAP = 6, - VK_STENCIL_OP_DECREMENT_AND_WRAP = 7, - VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP, - VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP, - VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1), - VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF -} VkStencilOp; - -typedef enum VkLogicOp { - VK_LOGIC_OP_CLEAR = 0, - VK_LOGIC_OP_AND = 1, - VK_LOGIC_OP_AND_REVERSE = 2, - VK_LOGIC_OP_COPY = 3, - VK_LOGIC_OP_AND_INVERTED = 4, - VK_LOGIC_OP_NO_OP = 5, - VK_LOGIC_OP_XOR = 6, - VK_LOGIC_OP_OR = 7, - VK_LOGIC_OP_NOR = 8, - VK_LOGIC_OP_EQUIVALENT = 9, - VK_LOGIC_OP_INVERT = 10, - VK_LOGIC_OP_OR_REVERSE = 11, - VK_LOGIC_OP_COPY_INVERTED = 12, - VK_LOGIC_OP_OR_INVERTED = 13, - VK_LOGIC_OP_NAND = 14, - VK_LOGIC_OP_SET = 15, - VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR, - VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET, - VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1), - VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF -} VkLogicOp; - -typedef enum VkBlendFactor { - VK_BLEND_FACTOR_ZERO = 0, - VK_BLEND_FACTOR_ONE = 1, - VK_BLEND_FACTOR_SRC_COLOR = 2, - VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3, - VK_BLEND_FACTOR_DST_COLOR = 4, - VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5, - VK_BLEND_FACTOR_SRC_ALPHA = 6, - VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7, - VK_BLEND_FACTOR_DST_ALPHA = 8, - VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9, - VK_BLEND_FACTOR_CONSTANT_COLOR = 10, - VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11, - VK_BLEND_FACTOR_CONSTANT_ALPHA = 12, - VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13, - VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14, - VK_BLEND_FACTOR_SRC1_COLOR = 15, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16, - VK_BLEND_FACTOR_SRC1_ALPHA = 17, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18, - VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO, - VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA, - VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1), - VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF -} VkBlendFactor; - -typedef enum VkBlendOp { - VK_BLEND_OP_ADD = 0, - VK_BLEND_OP_SUBTRACT = 1, - VK_BLEND_OP_REVERSE_SUBTRACT = 2, - VK_BLEND_OP_MIN = 3, - VK_BLEND_OP_MAX = 4, - VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD, - VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX, - VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1), - VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF -} VkBlendOp; - -typedef enum VkDynamicState { - VK_DYNAMIC_STATE_VIEWPORT = 0, - VK_DYNAMIC_STATE_SCISSOR = 1, - VK_DYNAMIC_STATE_LINE_WIDTH = 2, - VK_DYNAMIC_STATE_DEPTH_BIAS = 3, - VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4, - VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5, - VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6, - VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7, - VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8, - VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT, - VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE, - VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1), - VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF -} VkDynamicState; - -typedef enum VkFilter { - VK_FILTER_NEAREST = 0, - VK_FILTER_LINEAR = 1, - VK_FILTER_CUBIC_IMG = 1000015000, - VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST, - VK_FILTER_END_RANGE = VK_FILTER_LINEAR, - VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1), - VK_FILTER_MAX_ENUM = 0x7FFFFFFF -} VkFilter; - -typedef enum VkSamplerMipmapMode { - VK_SAMPLER_MIPMAP_MODE_NEAREST = 0, - VK_SAMPLER_MIPMAP_MODE_LINEAR = 1, - VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST, - VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR, - VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1), - VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSamplerMipmapMode; - -typedef enum VkSamplerAddressMode { - VK_SAMPLER_ADDRESS_MODE_REPEAT = 0, - VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1, - VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2, - VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3, - VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4, - VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT, - VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, - VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1), - VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF -} VkSamplerAddressMode; - -typedef enum VkBorderColor { - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0, - VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1, - VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2, - VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3, - VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4, - VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5, - VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, - VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE, - VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1), - VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF -} VkBorderColor; - -typedef enum VkDescriptorType { - VK_DESCRIPTOR_TYPE_SAMPLER = 0, - VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, - VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, - VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, - VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, - VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, - VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, - VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, - VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, - VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, - VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10, - VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER, - VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, - VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1), - VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkDescriptorType; - -typedef enum VkAttachmentLoadOp { - VK_ATTACHMENT_LOAD_OP_LOAD = 0, - VK_ATTACHMENT_LOAD_OP_CLEAR = 1, - VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2, - VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD, - VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE, - VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1), - VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentLoadOp; - -typedef enum VkAttachmentStoreOp { - VK_ATTACHMENT_STORE_OP_STORE = 0, - VK_ATTACHMENT_STORE_OP_DONT_CARE = 1, - VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE, - VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE, - VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1), - VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentStoreOp; - -typedef enum VkPipelineBindPoint { - VK_PIPELINE_BIND_POINT_GRAPHICS = 0, - VK_PIPELINE_BIND_POINT_COMPUTE = 1, - VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS, - VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE, - VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1), - VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF -} VkPipelineBindPoint; - -typedef enum VkCommandBufferLevel { - VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0, - VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1, - VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY, - VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY, - VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1), - VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferLevel; - -typedef enum VkIndexType { - VK_INDEX_TYPE_UINT16 = 0, - VK_INDEX_TYPE_UINT32 = 1, - VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16, - VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32, - VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1), - VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkIndexType; - -typedef enum VkSubpassContents { - VK_SUBPASS_CONTENTS_INLINE = 0, - VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1, - VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE, - VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS, - VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1), - VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF -} VkSubpassContents; - -typedef VkFlags VkInstanceCreateFlags; - -typedef enum VkFormatFeatureFlagBits { - VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001, - VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002, - VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, - VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, - VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, - VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, - VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040, - VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080, - VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, - VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, - VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400, - VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800, - VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000, - VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000, - VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR = 0x00004000, - VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR = 0x00008000, - VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkFormatFeatureFlagBits; -typedef VkFlags VkFormatFeatureFlags; - -typedef enum VkImageUsageFlagBits { - VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001, - VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002, - VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, - VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, - VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, - VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, - VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, - VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, - VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageUsageFlagBits; -typedef VkFlags VkImageUsageFlags; - -typedef enum VkImageCreateFlagBits { - VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001, - VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, - VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004, - VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008, - VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010, - VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR = 0x00000020, - VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageCreateFlagBits; -typedef VkFlags VkImageCreateFlags; - -typedef enum VkSampleCountFlagBits { - VK_SAMPLE_COUNT_1_BIT = 0x00000001, - VK_SAMPLE_COUNT_2_BIT = 0x00000002, - VK_SAMPLE_COUNT_4_BIT = 0x00000004, - VK_SAMPLE_COUNT_8_BIT = 0x00000008, - VK_SAMPLE_COUNT_16_BIT = 0x00000010, - VK_SAMPLE_COUNT_32_BIT = 0x00000020, - VK_SAMPLE_COUNT_64_BIT = 0x00000040, - VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSampleCountFlagBits; -typedef VkFlags VkSampleCountFlags; - -typedef enum VkQueueFlagBits { - VK_QUEUE_GRAPHICS_BIT = 0x00000001, - VK_QUEUE_COMPUTE_BIT = 0x00000002, - VK_QUEUE_TRANSFER_BIT = 0x00000004, - VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008, - VK_QUEUE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueueFlagBits; -typedef VkFlags VkQueueFlags; - -typedef enum VkMemoryPropertyFlagBits { - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002, - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004, - VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008, - VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010, - VK_MEMORY_PROPERTY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkMemoryPropertyFlagBits; -typedef VkFlags VkMemoryPropertyFlags; - -typedef enum VkMemoryHeapFlagBits { - VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001, - VK_MEMORY_HEAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkMemoryHeapFlagBits; -typedef VkFlags VkMemoryHeapFlags; -typedef VkFlags VkDeviceCreateFlags; -typedef VkFlags VkDeviceQueueCreateFlags; - -typedef enum VkPipelineStageFlagBits { - VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001, - VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002, - VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004, - VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008, - VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010, - VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020, - VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040, - VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080, - VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100, - VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200, - VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400, - VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800, - VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000, - VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000, - VK_PIPELINE_STAGE_HOST_BIT = 0x00004000, - VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000, - VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000, - VK_PIPELINE_STAGE_COMMAND_PROCESS_BIT_NVX = 0x00020000, - VK_PIPELINE_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkPipelineStageFlagBits; -typedef VkFlags VkPipelineStageFlags; -typedef VkFlags VkMemoryMapFlags; - -typedef enum VkImageAspectFlagBits { - VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001, - VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002, - VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004, - VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008, - VK_IMAGE_ASPECT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkImageAspectFlagBits; -typedef VkFlags VkImageAspectFlags; - -typedef enum VkSparseImageFormatFlagBits { - VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001, - VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002, - VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004, - VK_SPARSE_IMAGE_FORMAT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSparseImageFormatFlagBits; -typedef VkFlags VkSparseImageFormatFlags; - -typedef enum VkSparseMemoryBindFlagBits { - VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001, - VK_SPARSE_MEMORY_BIND_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkSparseMemoryBindFlagBits; -typedef VkFlags VkSparseMemoryBindFlags; - -typedef enum VkFenceCreateFlagBits { - VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, - VK_FENCE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkFenceCreateFlagBits; -typedef VkFlags VkFenceCreateFlags; -typedef VkFlags VkSemaphoreCreateFlags; -typedef VkFlags VkEventCreateFlags; -typedef VkFlags VkQueryPoolCreateFlags; - -typedef enum VkQueryPipelineStatisticFlagBits { - VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001, - VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002, - VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004, - VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008, - VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010, - VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020, - VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040, - VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080, - VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100, - VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200, - VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400, - VK_QUERY_PIPELINE_STATISTIC_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryPipelineStatisticFlagBits; -typedef VkFlags VkQueryPipelineStatisticFlags; - -typedef enum VkQueryResultFlagBits { - VK_QUERY_RESULT_64_BIT = 0x00000001, - VK_QUERY_RESULT_WAIT_BIT = 0x00000002, - VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, - VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008, - VK_QUERY_RESULT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryResultFlagBits; -typedef VkFlags VkQueryResultFlags; - -typedef enum VkBufferCreateFlagBits { - VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001, - VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, - VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004, - VK_BUFFER_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkBufferCreateFlagBits; -typedef VkFlags VkBufferCreateFlags; - -typedef enum VkBufferUsageFlagBits { - VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001, - VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002, - VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, - VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, - VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, - VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, - VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, - VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, - VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, - VK_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkBufferUsageFlagBits; -typedef VkFlags VkBufferUsageFlags; -typedef VkFlags VkBufferViewCreateFlags; -typedef VkFlags VkImageViewCreateFlags; -typedef VkFlags VkShaderModuleCreateFlags; -typedef VkFlags VkPipelineCacheCreateFlags; - -typedef enum VkPipelineCreateFlagBits { - VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, - VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, - VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004, - VK_PIPELINE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkPipelineCreateFlagBits; -typedef VkFlags VkPipelineCreateFlags; -typedef VkFlags VkPipelineShaderStageCreateFlags; - -typedef enum VkShaderStageFlagBits { - VK_SHADER_STAGE_VERTEX_BIT = 0x00000001, - VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, - VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, - VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, - VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, - VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020, - VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F, - VK_SHADER_STAGE_ALL = 0x7FFFFFFF, - VK_SHADER_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkShaderStageFlagBits; -typedef VkFlags VkPipelineVertexInputStateCreateFlags; -typedef VkFlags VkPipelineInputAssemblyStateCreateFlags; -typedef VkFlags VkPipelineTessellationStateCreateFlags; -typedef VkFlags VkPipelineViewportStateCreateFlags; -typedef VkFlags VkPipelineRasterizationStateCreateFlags; - -typedef enum VkCullModeFlagBits { - VK_CULL_MODE_NONE = 0, - VK_CULL_MODE_FRONT_BIT = 0x00000001, - VK_CULL_MODE_BACK_BIT = 0x00000002, - VK_CULL_MODE_FRONT_AND_BACK = 0x00000003, - VK_CULL_MODE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCullModeFlagBits; -typedef VkFlags VkCullModeFlags; -typedef VkFlags VkPipelineMultisampleStateCreateFlags; -typedef VkFlags VkPipelineDepthStencilStateCreateFlags; -typedef VkFlags VkPipelineColorBlendStateCreateFlags; - -typedef enum VkColorComponentFlagBits { - VK_COLOR_COMPONENT_R_BIT = 0x00000001, - VK_COLOR_COMPONENT_G_BIT = 0x00000002, - VK_COLOR_COMPONENT_B_BIT = 0x00000004, - VK_COLOR_COMPONENT_A_BIT = 0x00000008, - VK_COLOR_COMPONENT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkColorComponentFlagBits; -typedef VkFlags VkColorComponentFlags; -typedef VkFlags VkPipelineDynamicStateCreateFlags; -typedef VkFlags VkPipelineLayoutCreateFlags; -typedef VkFlags VkShaderStageFlags; -typedef VkFlags VkSamplerCreateFlags; -typedef VkFlags VkDescriptorSetLayoutCreateFlags; - -typedef enum VkDescriptorPoolCreateFlagBits { - VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001, - VK_DESCRIPTOR_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkDescriptorPoolCreateFlagBits; -typedef VkFlags VkDescriptorPoolCreateFlags; -typedef VkFlags VkDescriptorPoolResetFlags; -typedef VkFlags VkFramebufferCreateFlags; -typedef VkFlags VkRenderPassCreateFlags; - -typedef enum VkAttachmentDescriptionFlagBits { - VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001, - VK_ATTACHMENT_DESCRIPTION_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkAttachmentDescriptionFlagBits; -typedef VkFlags VkAttachmentDescriptionFlags; -typedef VkFlags VkSubpassDescriptionFlags; - -typedef enum VkAccessFlagBits { - VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001, - VK_ACCESS_INDEX_READ_BIT = 0x00000002, - VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004, - VK_ACCESS_UNIFORM_READ_BIT = 0x00000008, - VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010, - VK_ACCESS_SHADER_READ_BIT = 0x00000020, - VK_ACCESS_SHADER_WRITE_BIT = 0x00000040, - VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080, - VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100, - VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200, - VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400, - VK_ACCESS_TRANSFER_READ_BIT = 0x00000800, - VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000, - VK_ACCESS_HOST_READ_BIT = 0x00002000, - VK_ACCESS_HOST_WRITE_BIT = 0x00004000, - VK_ACCESS_MEMORY_READ_BIT = 0x00008000, - VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000, - VK_ACCESS_COMMAND_PROCESS_READ_BIT_NVX = 0x00020000, - VK_ACCESS_COMMAND_PROCESS_WRITE_BIT_NVX = 0x00040000, - VK_ACCESS_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkAccessFlagBits; -typedef VkFlags VkAccessFlags; - -typedef enum VkDependencyFlagBits { - VK_DEPENDENCY_BY_REGION_BIT = 0x00000001, - VK_DEPENDENCY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkDependencyFlagBits; -typedef VkFlags VkDependencyFlags; - -typedef enum VkCommandPoolCreateFlagBits { - VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001, - VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002, - VK_COMMAND_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandPoolCreateFlagBits; -typedef VkFlags VkCommandPoolCreateFlags; - -typedef enum VkCommandPoolResetFlagBits { - VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001, - VK_COMMAND_POOL_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandPoolResetFlagBits; -typedef VkFlags VkCommandPoolResetFlags; - -typedef enum VkCommandBufferUsageFlagBits { - VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001, - VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002, - VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004, - VK_COMMAND_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferUsageFlagBits; -typedef VkFlags VkCommandBufferUsageFlags; - -typedef enum VkQueryControlFlagBits { - VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001, - VK_QUERY_CONTROL_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkQueryControlFlagBits; -typedef VkFlags VkQueryControlFlags; - -typedef enum VkCommandBufferResetFlagBits { - VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001, - VK_COMMAND_BUFFER_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkCommandBufferResetFlagBits; -typedef VkFlags VkCommandBufferResetFlags; - -typedef enum VkStencilFaceFlagBits { - VK_STENCIL_FACE_FRONT_BIT = 0x00000001, - VK_STENCIL_FACE_BACK_BIT = 0x00000002, - VK_STENCIL_FRONT_AND_BACK = 0x00000003, - VK_STENCIL_FACE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF -} VkStencilFaceFlagBits; -typedef VkFlags VkStencilFaceFlags; - -typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)( - void* pUserData, - size_t size, - size_t alignment, - VkSystemAllocationScope allocationScope); - -typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)( - void* pUserData, - void* pOriginal, - size_t size, - size_t alignment, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkFreeFunction)( - void* pUserData, - void* pMemory); - -typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)( - void* pUserData, - size_t size, - VkInternalAllocationType allocationType, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)( - void* pUserData, - size_t size, - VkInternalAllocationType allocationType, - VkSystemAllocationScope allocationScope); - -typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void); - -typedef struct VkApplicationInfo { - VkStructureType sType; - const void* pNext; - const char* pApplicationName; - uint32_t applicationVersion; - const char* pEngineName; - uint32_t engineVersion; - uint32_t apiVersion; -} VkApplicationInfo; - -typedef struct VkInstanceCreateInfo { - VkStructureType sType; - const void* pNext; - VkInstanceCreateFlags flags; - const VkApplicationInfo* pApplicationInfo; - uint32_t enabledLayerCount; - const char* const* ppEnabledLayerNames; - uint32_t enabledExtensionCount; - const char* const* ppEnabledExtensionNames; -} VkInstanceCreateInfo; - -typedef struct VkAllocationCallbacks { - void* pUserData; - PFN_vkAllocationFunction pfnAllocation; - PFN_vkReallocationFunction pfnReallocation; - PFN_vkFreeFunction pfnFree; - PFN_vkInternalAllocationNotification pfnInternalAllocation; - PFN_vkInternalFreeNotification pfnInternalFree; -} VkAllocationCallbacks; - -typedef struct VkPhysicalDeviceFeatures { - VkBool32 robustBufferAccess; - VkBool32 fullDrawIndexUint32; - VkBool32 imageCubeArray; - VkBool32 independentBlend; - VkBool32 geometryShader; - VkBool32 tessellationShader; - VkBool32 sampleRateShading; - VkBool32 dualSrcBlend; - VkBool32 logicOp; - VkBool32 multiDrawIndirect; - VkBool32 drawIndirectFirstInstance; - VkBool32 depthClamp; - VkBool32 depthBiasClamp; - VkBool32 fillModeNonSolid; - VkBool32 depthBounds; - VkBool32 wideLines; - VkBool32 largePoints; - VkBool32 alphaToOne; - VkBool32 multiViewport; - VkBool32 samplerAnisotropy; - VkBool32 textureCompressionETC2; - VkBool32 textureCompressionASTC_LDR; - VkBool32 textureCompressionBC; - VkBool32 occlusionQueryPrecise; - VkBool32 pipelineStatisticsQuery; - VkBool32 vertexPipelineStoresAndAtomics; - VkBool32 fragmentStoresAndAtomics; - VkBool32 shaderTessellationAndGeometryPointSize; - VkBool32 shaderImageGatherExtended; - VkBool32 shaderStorageImageExtendedFormats; - VkBool32 shaderStorageImageMultisample; - VkBool32 shaderStorageImageReadWithoutFormat; - VkBool32 shaderStorageImageWriteWithoutFormat; - VkBool32 shaderUniformBufferArrayDynamicIndexing; - VkBool32 shaderSampledImageArrayDynamicIndexing; - VkBool32 shaderStorageBufferArrayDynamicIndexing; - VkBool32 shaderStorageImageArrayDynamicIndexing; - VkBool32 shaderClipDistance; - VkBool32 shaderCullDistance; - VkBool32 shaderFloat64; - VkBool32 shaderInt64; - VkBool32 shaderInt16; - VkBool32 shaderResourceResidency; - VkBool32 shaderResourceMinLod; - VkBool32 sparseBinding; - VkBool32 sparseResidencyBuffer; - VkBool32 sparseResidencyImage2D; - VkBool32 sparseResidencyImage3D; - VkBool32 sparseResidency2Samples; - VkBool32 sparseResidency4Samples; - VkBool32 sparseResidency8Samples; - VkBool32 sparseResidency16Samples; - VkBool32 sparseResidencyAliased; - VkBool32 variableMultisampleRate; - VkBool32 inheritedQueries; -} VkPhysicalDeviceFeatures; - -typedef struct VkFormatProperties { - VkFormatFeatureFlags linearTilingFeatures; - VkFormatFeatureFlags optimalTilingFeatures; - VkFormatFeatureFlags bufferFeatures; -} VkFormatProperties; - -typedef struct VkExtent3D { - uint32_t width; - uint32_t height; - uint32_t depth; -} VkExtent3D; - -typedef struct VkImageFormatProperties { - VkExtent3D maxExtent; - uint32_t maxMipLevels; - uint32_t maxArrayLayers; - VkSampleCountFlags sampleCounts; - VkDeviceSize maxResourceSize; -} VkImageFormatProperties; - -typedef struct VkPhysicalDeviceLimits { - uint32_t maxImageDimension1D; - uint32_t maxImageDimension2D; - uint32_t maxImageDimension3D; - uint32_t maxImageDimensionCube; - uint32_t maxImageArrayLayers; - uint32_t maxTexelBufferElements; - uint32_t maxUniformBufferRange; - uint32_t maxStorageBufferRange; - uint32_t maxPushConstantsSize; - uint32_t maxMemoryAllocationCount; - uint32_t maxSamplerAllocationCount; - VkDeviceSize bufferImageGranularity; - VkDeviceSize sparseAddressSpaceSize; - uint32_t maxBoundDescriptorSets; - uint32_t maxPerStageDescriptorSamplers; - uint32_t maxPerStageDescriptorUniformBuffers; - uint32_t maxPerStageDescriptorStorageBuffers; - uint32_t maxPerStageDescriptorSampledImages; - uint32_t maxPerStageDescriptorStorageImages; - uint32_t maxPerStageDescriptorInputAttachments; - uint32_t maxPerStageResources; - uint32_t maxDescriptorSetSamplers; - uint32_t maxDescriptorSetUniformBuffers; - uint32_t maxDescriptorSetUniformBuffersDynamic; - uint32_t maxDescriptorSetStorageBuffers; - uint32_t maxDescriptorSetStorageBuffersDynamic; - uint32_t maxDescriptorSetSampledImages; - uint32_t maxDescriptorSetStorageImages; - uint32_t maxDescriptorSetInputAttachments; - uint32_t maxVertexInputAttributes; - uint32_t maxVertexInputBindings; - uint32_t maxVertexInputAttributeOffset; - uint32_t maxVertexInputBindingStride; - uint32_t maxVertexOutputComponents; - uint32_t maxTessellationGenerationLevel; - uint32_t maxTessellationPatchSize; - uint32_t maxTessellationControlPerVertexInputComponents; - uint32_t maxTessellationControlPerVertexOutputComponents; - uint32_t maxTessellationControlPerPatchOutputComponents; - uint32_t maxTessellationControlTotalOutputComponents; - uint32_t maxTessellationEvaluationInputComponents; - uint32_t maxTessellationEvaluationOutputComponents; - uint32_t maxGeometryShaderInvocations; - uint32_t maxGeometryInputComponents; - uint32_t maxGeometryOutputComponents; - uint32_t maxGeometryOutputVertices; - uint32_t maxGeometryTotalOutputComponents; - uint32_t maxFragmentInputComponents; - uint32_t maxFragmentOutputAttachments; - uint32_t maxFragmentDualSrcAttachments; - uint32_t maxFragmentCombinedOutputResources; - uint32_t maxComputeSharedMemorySize; - uint32_t maxComputeWorkGroupCount[3]; - uint32_t maxComputeWorkGroupInvocations; - uint32_t maxComputeWorkGroupSize[3]; - uint32_t subPixelPrecisionBits; - uint32_t subTexelPrecisionBits; - uint32_t mipmapPrecisionBits; - uint32_t maxDrawIndexedIndexValue; - uint32_t maxDrawIndirectCount; - float maxSamplerLodBias; - float maxSamplerAnisotropy; - uint32_t maxViewports; - uint32_t maxViewportDimensions[2]; - float viewportBoundsRange[2]; - uint32_t viewportSubPixelBits; - size_t minMemoryMapAlignment; - VkDeviceSize minTexelBufferOffsetAlignment; - VkDeviceSize minUniformBufferOffsetAlignment; - VkDeviceSize minStorageBufferOffsetAlignment; - int32_t minTexelOffset; - uint32_t maxTexelOffset; - int32_t minTexelGatherOffset; - uint32_t maxTexelGatherOffset; - float minInterpolationOffset; - float maxInterpolationOffset; - uint32_t subPixelInterpolationOffsetBits; - uint32_t maxFramebufferWidth; - uint32_t maxFramebufferHeight; - uint32_t maxFramebufferLayers; - VkSampleCountFlags framebufferColorSampleCounts; - VkSampleCountFlags framebufferDepthSampleCounts; - VkSampleCountFlags framebufferStencilSampleCounts; - VkSampleCountFlags framebufferNoAttachmentsSampleCounts; - uint32_t maxColorAttachments; - VkSampleCountFlags sampledImageColorSampleCounts; - VkSampleCountFlags sampledImageIntegerSampleCounts; - VkSampleCountFlags sampledImageDepthSampleCounts; - VkSampleCountFlags sampledImageStencilSampleCounts; - VkSampleCountFlags storageImageSampleCounts; - uint32_t maxSampleMaskWords; - VkBool32 timestampComputeAndGraphics; - float timestampPeriod; - uint32_t maxClipDistances; - uint32_t maxCullDistances; - uint32_t maxCombinedClipAndCullDistances; - uint32_t discreteQueuePriorities; - float pointSizeRange[2]; - float lineWidthRange[2]; - float pointSizeGranularity; - float lineWidthGranularity; - VkBool32 strictLines; - VkBool32 standardSampleLocations; - VkDeviceSize optimalBufferCopyOffsetAlignment; - VkDeviceSize optimalBufferCopyRowPitchAlignment; - VkDeviceSize nonCoherentAtomSize; -} VkPhysicalDeviceLimits; - -typedef struct VkPhysicalDeviceSparseProperties { - VkBool32 residencyStandard2DBlockShape; - VkBool32 residencyStandard2DMultisampleBlockShape; - VkBool32 residencyStandard3DBlockShape; - VkBool32 residencyAlignedMipSize; - VkBool32 residencyNonResidentStrict; -} VkPhysicalDeviceSparseProperties; - -typedef struct VkPhysicalDeviceProperties { - uint32_t apiVersion; - uint32_t driverVersion; - uint32_t vendorID; - uint32_t deviceID; - VkPhysicalDeviceType deviceType; - char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]; - uint8_t pipelineCacheUUID[VK_UUID_SIZE]; - VkPhysicalDeviceLimits limits; - VkPhysicalDeviceSparseProperties sparseProperties; -} VkPhysicalDeviceProperties; - -typedef struct VkQueueFamilyProperties { - VkQueueFlags queueFlags; - uint32_t queueCount; - uint32_t timestampValidBits; - VkExtent3D minImageTransferGranularity; -} VkQueueFamilyProperties; - -typedef struct VkMemoryType { - VkMemoryPropertyFlags propertyFlags; - uint32_t heapIndex; -} VkMemoryType; - -typedef struct VkMemoryHeap { - VkDeviceSize size; - VkMemoryHeapFlags flags; -} VkMemoryHeap; - -typedef struct VkPhysicalDeviceMemoryProperties { - uint32_t memoryTypeCount; - VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES]; - uint32_t memoryHeapCount; - VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS]; -} VkPhysicalDeviceMemoryProperties; - -typedef struct VkDeviceQueueCreateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceQueueCreateFlags flags; - uint32_t queueFamilyIndex; - uint32_t queueCount; - const float* pQueuePriorities; -} VkDeviceQueueCreateInfo; - -typedef struct VkDeviceCreateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceCreateFlags flags; - uint32_t queueCreateInfoCount; - const VkDeviceQueueCreateInfo* pQueueCreateInfos; - uint32_t enabledLayerCount; - const char* const* ppEnabledLayerNames; - uint32_t enabledExtensionCount; - const char* const* ppEnabledExtensionNames; - const VkPhysicalDeviceFeatures* pEnabledFeatures; -} VkDeviceCreateInfo; - -typedef struct VkExtensionProperties { - char extensionName[VK_MAX_EXTENSION_NAME_SIZE]; - uint32_t specVersion; -} VkExtensionProperties; - -typedef struct VkLayerProperties { - char layerName[VK_MAX_EXTENSION_NAME_SIZE]; - uint32_t specVersion; - uint32_t implementationVersion; - char description[VK_MAX_DESCRIPTION_SIZE]; -} VkLayerProperties; - -typedef struct VkSubmitInfo { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - const VkPipelineStageFlags* pWaitDstStageMask; - uint32_t commandBufferCount; - const VkCommandBuffer* pCommandBuffers; - uint32_t signalSemaphoreCount; - const VkSemaphore* pSignalSemaphores; -} VkSubmitInfo; - -typedef struct VkMemoryAllocateInfo { - VkStructureType sType; - const void* pNext; - VkDeviceSize allocationSize; - uint32_t memoryTypeIndex; -} VkMemoryAllocateInfo; - -typedef struct VkMappedMemoryRange { - VkStructureType sType; - const void* pNext; - VkDeviceMemory memory; - VkDeviceSize offset; - VkDeviceSize size; -} VkMappedMemoryRange; - -typedef struct VkMemoryRequirements { - VkDeviceSize size; - VkDeviceSize alignment; - uint32_t memoryTypeBits; -} VkMemoryRequirements; - -typedef struct VkSparseImageFormatProperties { - VkImageAspectFlags aspectMask; - VkExtent3D imageGranularity; - VkSparseImageFormatFlags flags; -} VkSparseImageFormatProperties; - -typedef struct VkSparseImageMemoryRequirements { - VkSparseImageFormatProperties formatProperties; - uint32_t imageMipTailFirstLod; - VkDeviceSize imageMipTailSize; - VkDeviceSize imageMipTailOffset; - VkDeviceSize imageMipTailStride; -} VkSparseImageMemoryRequirements; - -typedef struct VkSparseMemoryBind { - VkDeviceSize resourceOffset; - VkDeviceSize size; - VkDeviceMemory memory; - VkDeviceSize memoryOffset; - VkSparseMemoryBindFlags flags; -} VkSparseMemoryBind; - -typedef struct VkSparseBufferMemoryBindInfo { - VkBuffer buffer; - uint32_t bindCount; - const VkSparseMemoryBind* pBinds; -} VkSparseBufferMemoryBindInfo; - -typedef struct VkSparseImageOpaqueMemoryBindInfo { - VkImage image; - uint32_t bindCount; - const VkSparseMemoryBind* pBinds; -} VkSparseImageOpaqueMemoryBindInfo; - -typedef struct VkImageSubresource { - VkImageAspectFlags aspectMask; - uint32_t mipLevel; - uint32_t arrayLayer; -} VkImageSubresource; - -typedef struct VkOffset3D { - int32_t x; - int32_t y; - int32_t z; -} VkOffset3D; - -typedef struct VkSparseImageMemoryBind { - VkImageSubresource subresource; - VkOffset3D offset; - VkExtent3D extent; - VkDeviceMemory memory; - VkDeviceSize memoryOffset; - VkSparseMemoryBindFlags flags; -} VkSparseImageMemoryBind; - -typedef struct VkSparseImageMemoryBindInfo { - VkImage image; - uint32_t bindCount; - const VkSparseImageMemoryBind* pBinds; -} VkSparseImageMemoryBindInfo; - -typedef struct VkBindSparseInfo { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - uint32_t bufferBindCount; - const VkSparseBufferMemoryBindInfo* pBufferBinds; - uint32_t imageOpaqueBindCount; - const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds; - uint32_t imageBindCount; - const VkSparseImageMemoryBindInfo* pImageBinds; - uint32_t signalSemaphoreCount; - const VkSemaphore* pSignalSemaphores; -} VkBindSparseInfo; - -typedef struct VkFenceCreateInfo { - VkStructureType sType; - const void* pNext; - VkFenceCreateFlags flags; -} VkFenceCreateInfo; - -typedef struct VkSemaphoreCreateInfo { - VkStructureType sType; - const void* pNext; - VkSemaphoreCreateFlags flags; -} VkSemaphoreCreateInfo; - -typedef struct VkEventCreateInfo { - VkStructureType sType; - const void* pNext; - VkEventCreateFlags flags; -} VkEventCreateInfo; - -typedef struct VkQueryPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkQueryPoolCreateFlags flags; - VkQueryType queryType; - uint32_t queryCount; - VkQueryPipelineStatisticFlags pipelineStatistics; -} VkQueryPoolCreateInfo; - -typedef struct VkBufferCreateInfo { - VkStructureType sType; - const void* pNext; - VkBufferCreateFlags flags; - VkDeviceSize size; - VkBufferUsageFlags usage; - VkSharingMode sharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; -} VkBufferCreateInfo; - -typedef struct VkBufferViewCreateInfo { - VkStructureType sType; - const void* pNext; - VkBufferViewCreateFlags flags; - VkBuffer buffer; - VkFormat format; - VkDeviceSize offset; - VkDeviceSize range; -} VkBufferViewCreateInfo; - -typedef struct VkImageCreateInfo { - VkStructureType sType; - const void* pNext; - VkImageCreateFlags flags; - VkImageType imageType; - VkFormat format; - VkExtent3D extent; - uint32_t mipLevels; - uint32_t arrayLayers; - VkSampleCountFlagBits samples; - VkImageTiling tiling; - VkImageUsageFlags usage; - VkSharingMode sharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; - VkImageLayout initialLayout; -} VkImageCreateInfo; - -typedef struct VkSubresourceLayout { - VkDeviceSize offset; - VkDeviceSize size; - VkDeviceSize rowPitch; - VkDeviceSize arrayPitch; - VkDeviceSize depthPitch; -} VkSubresourceLayout; - -typedef struct VkComponentMapping { - VkComponentSwizzle r; - VkComponentSwizzle g; - VkComponentSwizzle b; - VkComponentSwizzle a; -} VkComponentMapping; - -typedef struct VkImageSubresourceRange { - VkImageAspectFlags aspectMask; - uint32_t baseMipLevel; - uint32_t levelCount; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkImageSubresourceRange; - -typedef struct VkImageViewCreateInfo { - VkStructureType sType; - const void* pNext; - VkImageViewCreateFlags flags; - VkImage image; - VkImageViewType viewType; - VkFormat format; - VkComponentMapping components; - VkImageSubresourceRange subresourceRange; -} VkImageViewCreateInfo; - -typedef struct VkShaderModuleCreateInfo { - VkStructureType sType; - const void* pNext; - VkShaderModuleCreateFlags flags; - size_t codeSize; - const uint32_t* pCode; -} VkShaderModuleCreateInfo; - -typedef struct VkPipelineCacheCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCacheCreateFlags flags; - size_t initialDataSize; - const void* pInitialData; -} VkPipelineCacheCreateInfo; - -typedef struct VkSpecializationMapEntry { - uint32_t constantID; - uint32_t offset; - size_t size; -} VkSpecializationMapEntry; - -typedef struct VkSpecializationInfo { - uint32_t mapEntryCount; - const VkSpecializationMapEntry* pMapEntries; - size_t dataSize; - const void* pData; -} VkSpecializationInfo; - -typedef struct VkPipelineShaderStageCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineShaderStageCreateFlags flags; - VkShaderStageFlagBits stage; - VkShaderModule module; - const char* pName; - const VkSpecializationInfo* pSpecializationInfo; -} VkPipelineShaderStageCreateInfo; - -typedef struct VkVertexInputBindingDescription { - uint32_t binding; - uint32_t stride; - VkVertexInputRate inputRate; -} VkVertexInputBindingDescription; - -typedef struct VkVertexInputAttributeDescription { - uint32_t location; - uint32_t binding; - VkFormat format; - uint32_t offset; -} VkVertexInputAttributeDescription; - -typedef struct VkPipelineVertexInputStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineVertexInputStateCreateFlags flags; - uint32_t vertexBindingDescriptionCount; - const VkVertexInputBindingDescription* pVertexBindingDescriptions; - uint32_t vertexAttributeDescriptionCount; - const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; -} VkPipelineVertexInputStateCreateInfo; - -typedef struct VkPipelineInputAssemblyStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineInputAssemblyStateCreateFlags flags; - VkPrimitiveTopology topology; - VkBool32 primitiveRestartEnable; -} VkPipelineInputAssemblyStateCreateInfo; - -typedef struct VkPipelineTessellationStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineTessellationStateCreateFlags flags; - uint32_t patchControlPoints; -} VkPipelineTessellationStateCreateInfo; - -typedef struct VkViewport { - float x; - float y; - float width; - float height; - float minDepth; - float maxDepth; -} VkViewport; - -typedef struct VkOffset2D { - int32_t x; - int32_t y; -} VkOffset2D; - -typedef struct VkExtent2D { - uint32_t width; - uint32_t height; -} VkExtent2D; - -typedef struct VkRect2D { - VkOffset2D offset; - VkExtent2D extent; -} VkRect2D; - -typedef struct VkPipelineViewportStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineViewportStateCreateFlags flags; - uint32_t viewportCount; - const VkViewport* pViewports; - uint32_t scissorCount; - const VkRect2D* pScissors; -} VkPipelineViewportStateCreateInfo; - -typedef struct VkPipelineRasterizationStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineRasterizationStateCreateFlags flags; - VkBool32 depthClampEnable; - VkBool32 rasterizerDiscardEnable; - VkPolygonMode polygonMode; - VkCullModeFlags cullMode; - VkFrontFace frontFace; - VkBool32 depthBiasEnable; - float depthBiasConstantFactor; - float depthBiasClamp; - float depthBiasSlopeFactor; - float lineWidth; -} VkPipelineRasterizationStateCreateInfo; - -typedef struct VkPipelineMultisampleStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineMultisampleStateCreateFlags flags; - VkSampleCountFlagBits rasterizationSamples; - VkBool32 sampleShadingEnable; - float minSampleShading; - const VkSampleMask* pSampleMask; - VkBool32 alphaToCoverageEnable; - VkBool32 alphaToOneEnable; -} VkPipelineMultisampleStateCreateInfo; - -typedef struct VkStencilOpState { - VkStencilOp failOp; - VkStencilOp passOp; - VkStencilOp depthFailOp; - VkCompareOp compareOp; - uint32_t compareMask; - uint32_t writeMask; - uint32_t reference; -} VkStencilOpState; - -typedef struct VkPipelineDepthStencilStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineDepthStencilStateCreateFlags flags; - VkBool32 depthTestEnable; - VkBool32 depthWriteEnable; - VkCompareOp depthCompareOp; - VkBool32 depthBoundsTestEnable; - VkBool32 stencilTestEnable; - VkStencilOpState front; - VkStencilOpState back; - float minDepthBounds; - float maxDepthBounds; -} VkPipelineDepthStencilStateCreateInfo; - -typedef struct VkPipelineColorBlendAttachmentState { - VkBool32 blendEnable; - VkBlendFactor srcColorBlendFactor; - VkBlendFactor dstColorBlendFactor; - VkBlendOp colorBlendOp; - VkBlendFactor srcAlphaBlendFactor; - VkBlendFactor dstAlphaBlendFactor; - VkBlendOp alphaBlendOp; - VkColorComponentFlags colorWriteMask; -} VkPipelineColorBlendAttachmentState; - -typedef struct VkPipelineColorBlendStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineColorBlendStateCreateFlags flags; - VkBool32 logicOpEnable; - VkLogicOp logicOp; - uint32_t attachmentCount; - const VkPipelineColorBlendAttachmentState* pAttachments; - float blendConstants[4]; -} VkPipelineColorBlendStateCreateInfo; - -typedef struct VkPipelineDynamicStateCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineDynamicStateCreateFlags flags; - uint32_t dynamicStateCount; - const VkDynamicState* pDynamicStates; -} VkPipelineDynamicStateCreateInfo; - -typedef struct VkGraphicsPipelineCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCreateFlags flags; - uint32_t stageCount; - const VkPipelineShaderStageCreateInfo* pStages; - const VkPipelineVertexInputStateCreateInfo* pVertexInputState; - const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState; - const VkPipelineTessellationStateCreateInfo* pTessellationState; - const VkPipelineViewportStateCreateInfo* pViewportState; - const VkPipelineRasterizationStateCreateInfo* pRasterizationState; - const VkPipelineMultisampleStateCreateInfo* pMultisampleState; - const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState; - const VkPipelineColorBlendStateCreateInfo* pColorBlendState; - const VkPipelineDynamicStateCreateInfo* pDynamicState; - VkPipelineLayout layout; - VkRenderPass renderPass; - uint32_t subpass; - VkPipeline basePipelineHandle; - int32_t basePipelineIndex; -} VkGraphicsPipelineCreateInfo; - -typedef struct VkComputePipelineCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineCreateFlags flags; - VkPipelineShaderStageCreateInfo stage; - VkPipelineLayout layout; - VkPipeline basePipelineHandle; - int32_t basePipelineIndex; -} VkComputePipelineCreateInfo; - -typedef struct VkPushConstantRange { - VkShaderStageFlags stageFlags; - uint32_t offset; - uint32_t size; -} VkPushConstantRange; - -typedef struct VkPipelineLayoutCreateInfo { - VkStructureType sType; - const void* pNext; - VkPipelineLayoutCreateFlags flags; - uint32_t setLayoutCount; - const VkDescriptorSetLayout* pSetLayouts; - uint32_t pushConstantRangeCount; - const VkPushConstantRange* pPushConstantRanges; -} VkPipelineLayoutCreateInfo; - -typedef struct VkSamplerCreateInfo { - VkStructureType sType; - const void* pNext; - VkSamplerCreateFlags flags; - VkFilter magFilter; - VkFilter minFilter; - VkSamplerMipmapMode mipmapMode; - VkSamplerAddressMode addressModeU; - VkSamplerAddressMode addressModeV; - VkSamplerAddressMode addressModeW; - float mipLodBias; - VkBool32 anisotropyEnable; - float maxAnisotropy; - VkBool32 compareEnable; - VkCompareOp compareOp; - float minLod; - float maxLod; - VkBorderColor borderColor; - VkBool32 unnormalizedCoordinates; -} VkSamplerCreateInfo; - -typedef struct VkDescriptorSetLayoutBinding { - uint32_t binding; - VkDescriptorType descriptorType; - uint32_t descriptorCount; - VkShaderStageFlags stageFlags; - const VkSampler* pImmutableSamplers; -} VkDescriptorSetLayoutBinding; - -typedef struct VkDescriptorSetLayoutCreateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorSetLayoutCreateFlags flags; - uint32_t bindingCount; - const VkDescriptorSetLayoutBinding* pBindings; -} VkDescriptorSetLayoutCreateInfo; - -typedef struct VkDescriptorPoolSize { - VkDescriptorType type; - uint32_t descriptorCount; -} VkDescriptorPoolSize; - -typedef struct VkDescriptorPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorPoolCreateFlags flags; - uint32_t maxSets; - uint32_t poolSizeCount; - const VkDescriptorPoolSize* pPoolSizes; -} VkDescriptorPoolCreateInfo; - -typedef struct VkDescriptorSetAllocateInfo { - VkStructureType sType; - const void* pNext; - VkDescriptorPool descriptorPool; - uint32_t descriptorSetCount; - const VkDescriptorSetLayout* pSetLayouts; -} VkDescriptorSetAllocateInfo; - -typedef struct VkDescriptorImageInfo { - VkSampler sampler; - VkImageView imageView; - VkImageLayout imageLayout; -} VkDescriptorImageInfo; - -typedef struct VkDescriptorBufferInfo { - VkBuffer buffer; - VkDeviceSize offset; - VkDeviceSize range; -} VkDescriptorBufferInfo; - -typedef struct VkWriteDescriptorSet { - VkStructureType sType; - const void* pNext; - VkDescriptorSet dstSet; - uint32_t dstBinding; - uint32_t dstArrayElement; - uint32_t descriptorCount; - VkDescriptorType descriptorType; - const VkDescriptorImageInfo* pImageInfo; - const VkDescriptorBufferInfo* pBufferInfo; - const VkBufferView* pTexelBufferView; -} VkWriteDescriptorSet; - -typedef struct VkCopyDescriptorSet { - VkStructureType sType; - const void* pNext; - VkDescriptorSet srcSet; - uint32_t srcBinding; - uint32_t srcArrayElement; - VkDescriptorSet dstSet; - uint32_t dstBinding; - uint32_t dstArrayElement; - uint32_t descriptorCount; -} VkCopyDescriptorSet; - -typedef struct VkFramebufferCreateInfo { - VkStructureType sType; - const void* pNext; - VkFramebufferCreateFlags flags; - VkRenderPass renderPass; - uint32_t attachmentCount; - const VkImageView* pAttachments; - uint32_t width; - uint32_t height; - uint32_t layers; -} VkFramebufferCreateInfo; - -typedef struct VkAttachmentDescription { - VkAttachmentDescriptionFlags flags; - VkFormat format; - VkSampleCountFlagBits samples; - VkAttachmentLoadOp loadOp; - VkAttachmentStoreOp storeOp; - VkAttachmentLoadOp stencilLoadOp; - VkAttachmentStoreOp stencilStoreOp; - VkImageLayout initialLayout; - VkImageLayout finalLayout; -} VkAttachmentDescription; - -typedef struct VkAttachmentReference { - uint32_t attachment; - VkImageLayout layout; -} VkAttachmentReference; - -typedef struct VkSubpassDescription { - VkSubpassDescriptionFlags flags; - VkPipelineBindPoint pipelineBindPoint; - uint32_t inputAttachmentCount; - const VkAttachmentReference* pInputAttachments; - uint32_t colorAttachmentCount; - const VkAttachmentReference* pColorAttachments; - const VkAttachmentReference* pResolveAttachments; - const VkAttachmentReference* pDepthStencilAttachment; - uint32_t preserveAttachmentCount; - const uint32_t* pPreserveAttachments; -} VkSubpassDescription; - -typedef struct VkSubpassDependency { - uint32_t srcSubpass; - uint32_t dstSubpass; - VkPipelineStageFlags srcStageMask; - VkPipelineStageFlags dstStageMask; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - VkDependencyFlags dependencyFlags; -} VkSubpassDependency; - -typedef struct VkRenderPassCreateInfo { - VkStructureType sType; - const void* pNext; - VkRenderPassCreateFlags flags; - uint32_t attachmentCount; - const VkAttachmentDescription* pAttachments; - uint32_t subpassCount; - const VkSubpassDescription* pSubpasses; - uint32_t dependencyCount; - const VkSubpassDependency* pDependencies; -} VkRenderPassCreateInfo; - -typedef struct VkCommandPoolCreateInfo { - VkStructureType sType; - const void* pNext; - VkCommandPoolCreateFlags flags; - uint32_t queueFamilyIndex; -} VkCommandPoolCreateInfo; - -typedef struct VkCommandBufferAllocateInfo { - VkStructureType sType; - const void* pNext; - VkCommandPool commandPool; - VkCommandBufferLevel level; - uint32_t commandBufferCount; -} VkCommandBufferAllocateInfo; - -typedef struct VkCommandBufferInheritanceInfo { - VkStructureType sType; - const void* pNext; - VkRenderPass renderPass; - uint32_t subpass; - VkFramebuffer framebuffer; - VkBool32 occlusionQueryEnable; - VkQueryControlFlags queryFlags; - VkQueryPipelineStatisticFlags pipelineStatistics; -} VkCommandBufferInheritanceInfo; - -typedef struct VkCommandBufferBeginInfo { - VkStructureType sType; - const void* pNext; - VkCommandBufferUsageFlags flags; - const VkCommandBufferInheritanceInfo* pInheritanceInfo; -} VkCommandBufferBeginInfo; - -typedef struct VkBufferCopy { - VkDeviceSize srcOffset; - VkDeviceSize dstOffset; - VkDeviceSize size; -} VkBufferCopy; - -typedef struct VkImageSubresourceLayers { - VkImageAspectFlags aspectMask; - uint32_t mipLevel; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkImageSubresourceLayers; - -typedef struct VkImageCopy { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffset; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffset; - VkExtent3D extent; -} VkImageCopy; - -typedef struct VkImageBlit { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffsets[2]; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffsets[2]; -} VkImageBlit; - -typedef struct VkBufferImageCopy { - VkDeviceSize bufferOffset; - uint32_t bufferRowLength; - uint32_t bufferImageHeight; - VkImageSubresourceLayers imageSubresource; - VkOffset3D imageOffset; - VkExtent3D imageExtent; -} VkBufferImageCopy; - -typedef union VkClearColorValue { - float float32[4]; - int32_t int32[4]; - uint32_t uint32[4]; -} VkClearColorValue; - -typedef struct VkClearDepthStencilValue { - float depth; - uint32_t stencil; -} VkClearDepthStencilValue; - -typedef union VkClearValue { - VkClearColorValue color; - VkClearDepthStencilValue depthStencil; -} VkClearValue; - -typedef struct VkClearAttachment { - VkImageAspectFlags aspectMask; - uint32_t colorAttachment; - VkClearValue clearValue; -} VkClearAttachment; - -typedef struct VkClearRect { - VkRect2D rect; - uint32_t baseArrayLayer; - uint32_t layerCount; -} VkClearRect; - -typedef struct VkImageResolve { - VkImageSubresourceLayers srcSubresource; - VkOffset3D srcOffset; - VkImageSubresourceLayers dstSubresource; - VkOffset3D dstOffset; - VkExtent3D extent; -} VkImageResolve; - -typedef struct VkMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; -} VkMemoryBarrier; - -typedef struct VkBufferMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - uint32_t srcQueueFamilyIndex; - uint32_t dstQueueFamilyIndex; - VkBuffer buffer; - VkDeviceSize offset; - VkDeviceSize size; -} VkBufferMemoryBarrier; - -typedef struct VkImageMemoryBarrier { - VkStructureType sType; - const void* pNext; - VkAccessFlags srcAccessMask; - VkAccessFlags dstAccessMask; - VkImageLayout oldLayout; - VkImageLayout newLayout; - uint32_t srcQueueFamilyIndex; - uint32_t dstQueueFamilyIndex; - VkImage image; - VkImageSubresourceRange subresourceRange; -} VkImageMemoryBarrier; - -typedef struct VkRenderPassBeginInfo { - VkStructureType sType; - const void* pNext; - VkRenderPass renderPass; - VkFramebuffer framebuffer; - VkRect2D renderArea; - uint32_t clearValueCount; - const VkClearValue* pClearValues; -} VkRenderPassBeginInfo; - -typedef struct VkDispatchIndirectCommand { - uint32_t x; - uint32_t y; - uint32_t z; -} VkDispatchIndirectCommand; - -typedef struct VkDrawIndexedIndirectCommand { - uint32_t indexCount; - uint32_t instanceCount; - uint32_t firstIndex; - int32_t vertexOffset; - uint32_t firstInstance; -} VkDrawIndexedIndirectCommand; - -typedef struct VkDrawIndirectCommand { - uint32_t vertexCount; - uint32_t instanceCount; - uint32_t firstVertex; - uint32_t firstInstance; -} VkDrawIndirectCommand; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance); -typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties); -typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName); -typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice); -typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties); -typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue); -typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue); -typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); -typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); -typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory); -typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); -typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); -typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes); -typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset); -typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset); -typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); -typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); -typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); -typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout); -typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore); -typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent); -typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event); -typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool); -typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer); -typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView); -typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage); -typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); -typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView); -typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule); -typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache); -typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData); -typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches); -typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); -typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); -typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout); -typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler); -typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout); -typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool); -typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets); -typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets); -typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies); -typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer); -typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass); -typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity); -typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool); -typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags); -typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers); -typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); -typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo); -typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer); -typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); -typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports); -typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors); -typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth); -typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); -typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]); -typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask); -typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference); -typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); -typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); -typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); -typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); -typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z); -typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset); -typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter); -typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData); -typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data); -typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); -typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); -typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects); -typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); -typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); -typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); -typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); -typedef void (VKAPI_PTR *PFN_vkCmdPipelineBarrier)(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); -typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query); -typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount); -typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query); -typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags); -typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues); -typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents); -typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents); -typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer); -typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance( - const VkInstanceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkInstance* pInstance); - -VKAPI_ATTR void VKAPI_CALL vkDestroyInstance( - VkInstance instance, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices( - VkInstance instance, - uint32_t* pPhysicalDeviceCount, - VkPhysicalDevice* pPhysicalDevices); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceFeatures* pFeatures); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkFormatProperties* pFormatProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkImageType type, - VkImageTiling tiling, - VkImageUsageFlags usage, - VkImageCreateFlags flags, - VkImageFormatProperties* pImageFormatProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceProperties* pProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties( - VkPhysicalDevice physicalDevice, - uint32_t* pQueueFamilyPropertyCount, - VkQueueFamilyProperties* pQueueFamilyProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceMemoryProperties* pMemoryProperties); - -VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr( - VkInstance instance, - const char* pName); - -VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr( - VkDevice device, - const char* pName); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice( - VkPhysicalDevice physicalDevice, - const VkDeviceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDevice* pDevice); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDevice( - VkDevice device, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties( - const char* pLayerName, - uint32_t* pPropertyCount, - VkExtensionProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties( - VkPhysicalDevice physicalDevice, - const char* pLayerName, - uint32_t* pPropertyCount, - VkExtensionProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties( - uint32_t* pPropertyCount, - VkLayerProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkLayerProperties* pProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue( - VkDevice device, - uint32_t queueFamilyIndex, - uint32_t queueIndex, - VkQueue* pQueue); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit( - VkQueue queue, - uint32_t submitCount, - const VkSubmitInfo* pSubmits, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle( - VkQueue queue); - -VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle( - VkDevice device); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory( - VkDevice device, - const VkMemoryAllocateInfo* pAllocateInfo, - const VkAllocationCallbacks* pAllocator, - VkDeviceMemory* pMemory); - -VKAPI_ATTR void VKAPI_CALL vkFreeMemory( - VkDevice device, - VkDeviceMemory memory, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory( - VkDevice device, - VkDeviceMemory memory, - VkDeviceSize offset, - VkDeviceSize size, - VkMemoryMapFlags flags, - void** ppData); - -VKAPI_ATTR void VKAPI_CALL vkUnmapMemory( - VkDevice device, - VkDeviceMemory memory); - -VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges( - VkDevice device, - uint32_t memoryRangeCount, - const VkMappedMemoryRange* pMemoryRanges); - -VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges( - VkDevice device, - uint32_t memoryRangeCount, - const VkMappedMemoryRange* pMemoryRanges); - -VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment( - VkDevice device, - VkDeviceMemory memory, - VkDeviceSize* pCommittedMemoryInBytes); - -VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory( - VkDevice device, - VkBuffer buffer, - VkDeviceMemory memory, - VkDeviceSize memoryOffset); - -VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory( - VkDevice device, - VkImage image, - VkDeviceMemory memory, - VkDeviceSize memoryOffset); - -VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements( - VkDevice device, - VkBuffer buffer, - VkMemoryRequirements* pMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements( - VkDevice device, - VkImage image, - VkMemoryRequirements* pMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements( - VkDevice device, - VkImage image, - uint32_t* pSparseMemoryRequirementCount, - VkSparseImageMemoryRequirements* pSparseMemoryRequirements); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkImageType type, - VkSampleCountFlagBits samples, - VkImageUsageFlags usage, - VkImageTiling tiling, - uint32_t* pPropertyCount, - VkSparseImageFormatProperties* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse( - VkQueue queue, - uint32_t bindInfoCount, - const VkBindSparseInfo* pBindInfo, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence( - VkDevice device, - const VkFenceCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkFence* pFence); - -VKAPI_ATTR void VKAPI_CALL vkDestroyFence( - VkDevice device, - VkFence fence, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetFences( - VkDevice device, - uint32_t fenceCount, - const VkFence* pFences); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus( - VkDevice device, - VkFence fence); - -VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences( - VkDevice device, - uint32_t fenceCount, - const VkFence* pFences, - VkBool32 waitAll, - uint64_t timeout); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore( - VkDevice device, - const VkSemaphoreCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSemaphore* pSemaphore); - -VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore( - VkDevice device, - VkSemaphore semaphore, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent( - VkDevice device, - const VkEventCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkEvent* pEvent); - -VKAPI_ATTR void VKAPI_CALL vkDestroyEvent( - VkDevice device, - VkEvent event, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent( - VkDevice device, - VkEvent event); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool( - VkDevice device, - const VkQueryPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkQueryPool* pQueryPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool( - VkDevice device, - VkQueryPool queryPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults( - VkDevice device, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount, - size_t dataSize, - void* pData, - VkDeviceSize stride, - VkQueryResultFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer( - VkDevice device, - const VkBufferCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkBuffer* pBuffer); - -VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer( - VkDevice device, - VkBuffer buffer, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView( - VkDevice device, - const VkBufferViewCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkBufferView* pView); - -VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView( - VkDevice device, - VkBufferView bufferView, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage( - VkDevice device, - const VkImageCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkImage* pImage); - -VKAPI_ATTR void VKAPI_CALL vkDestroyImage( - VkDevice device, - VkImage image, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout( - VkDevice device, - VkImage image, - const VkImageSubresource* pSubresource, - VkSubresourceLayout* pLayout); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView( - VkDevice device, - const VkImageViewCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkImageView* pView); - -VKAPI_ATTR void VKAPI_CALL vkDestroyImageView( - VkDevice device, - VkImageView imageView, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule( - VkDevice device, - const VkShaderModuleCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkShaderModule* pShaderModule); - -VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule( - VkDevice device, - VkShaderModule shaderModule, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache( - VkDevice device, - const VkPipelineCacheCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkPipelineCache* pPipelineCache); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache( - VkDevice device, - VkPipelineCache pipelineCache, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData( - VkDevice device, - VkPipelineCache pipelineCache, - size_t* pDataSize, - void* pData); - -VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches( - VkDevice device, - VkPipelineCache dstCache, - uint32_t srcCacheCount, - const VkPipelineCache* pSrcCaches); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines( - VkDevice device, - VkPipelineCache pipelineCache, - uint32_t createInfoCount, - const VkGraphicsPipelineCreateInfo* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkPipeline* pPipelines); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines( - VkDevice device, - VkPipelineCache pipelineCache, - uint32_t createInfoCount, - const VkComputePipelineCreateInfo* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkPipeline* pPipelines); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline( - VkDevice device, - VkPipeline pipeline, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout( - VkDevice device, - const VkPipelineLayoutCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkPipelineLayout* pPipelineLayout); - -VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout( - VkDevice device, - VkPipelineLayout pipelineLayout, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler( - VkDevice device, - const VkSamplerCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSampler* pSampler); - -VKAPI_ATTR void VKAPI_CALL vkDestroySampler( - VkDevice device, - VkSampler sampler, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout( - VkDevice device, - const VkDescriptorSetLayoutCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDescriptorSetLayout* pSetLayout); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout( - VkDevice device, - VkDescriptorSetLayout descriptorSetLayout, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool( - VkDevice device, - const VkDescriptorPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDescriptorPool* pDescriptorPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool( - VkDevice device, - VkDescriptorPool descriptorPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool( - VkDevice device, - VkDescriptorPool descriptorPool, - VkDescriptorPoolResetFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets( - VkDevice device, - const VkDescriptorSetAllocateInfo* pAllocateInfo, - VkDescriptorSet* pDescriptorSets); - -VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets( - VkDevice device, - VkDescriptorPool descriptorPool, - uint32_t descriptorSetCount, - const VkDescriptorSet* pDescriptorSets); - -VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets( - VkDevice device, - uint32_t descriptorWriteCount, - const VkWriteDescriptorSet* pDescriptorWrites, - uint32_t descriptorCopyCount, - const VkCopyDescriptorSet* pDescriptorCopies); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer( - VkDevice device, - const VkFramebufferCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkFramebuffer* pFramebuffer); - -VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer( - VkDevice device, - VkFramebuffer framebuffer, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass( - VkDevice device, - const VkRenderPassCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkRenderPass* pRenderPass); - -VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass( - VkDevice device, - VkRenderPass renderPass, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity( - VkDevice device, - VkRenderPass renderPass, - VkExtent2D* pGranularity); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool( - VkDevice device, - const VkCommandPoolCreateInfo* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkCommandPool* pCommandPool); - -VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool( - VkDevice device, - VkCommandPool commandPool, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool( - VkDevice device, - VkCommandPool commandPool, - VkCommandPoolResetFlags flags); - -VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers( - VkDevice device, - const VkCommandBufferAllocateInfo* pAllocateInfo, - VkCommandBuffer* pCommandBuffers); - -VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers( - VkDevice device, - VkCommandPool commandPool, - uint32_t commandBufferCount, - const VkCommandBuffer* pCommandBuffers); - -VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer( - VkCommandBuffer commandBuffer, - const VkCommandBufferBeginInfo* pBeginInfo); - -VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer( - VkCommandBuffer commandBuffer); - -VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer( - VkCommandBuffer commandBuffer, - VkCommandBufferResetFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline( - VkCommandBuffer commandBuffer, - VkPipelineBindPoint pipelineBindPoint, - VkPipeline pipeline); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport( - VkCommandBuffer commandBuffer, - uint32_t firstViewport, - uint32_t viewportCount, - const VkViewport* pViewports); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor( - VkCommandBuffer commandBuffer, - uint32_t firstScissor, - uint32_t scissorCount, - const VkRect2D* pScissors); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth( - VkCommandBuffer commandBuffer, - float lineWidth); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias( - VkCommandBuffer commandBuffer, - float depthBiasConstantFactor, - float depthBiasClamp, - float depthBiasSlopeFactor); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants( - VkCommandBuffer commandBuffer, - const float blendConstants[4]); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds( - VkCommandBuffer commandBuffer, - float minDepthBounds, - float maxDepthBounds); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t compareMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t writeMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference( - VkCommandBuffer commandBuffer, - VkStencilFaceFlags faceMask, - uint32_t reference); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets( - VkCommandBuffer commandBuffer, - VkPipelineBindPoint pipelineBindPoint, - VkPipelineLayout layout, - uint32_t firstSet, - uint32_t descriptorSetCount, - const VkDescriptorSet* pDescriptorSets, - uint32_t dynamicOffsetCount, - const uint32_t* pDynamicOffsets); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - VkIndexType indexType); - -VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers( - VkCommandBuffer commandBuffer, - uint32_t firstBinding, - uint32_t bindingCount, - const VkBuffer* pBuffers, - const VkDeviceSize* pOffsets); - -VKAPI_ATTR void VKAPI_CALL vkCmdDraw( - VkCommandBuffer commandBuffer, - uint32_t vertexCount, - uint32_t instanceCount, - uint32_t firstVertex, - uint32_t firstInstance); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed( - VkCommandBuffer commandBuffer, - uint32_t indexCount, - uint32_t instanceCount, - uint32_t firstIndex, - int32_t vertexOffset, - uint32_t firstInstance); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - uint32_t drawCount, - uint32_t stride); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - uint32_t drawCount, - uint32_t stride); - -VKAPI_ATTR void VKAPI_CALL vkCmdDispatch( - VkCommandBuffer commandBuffer, - uint32_t x, - uint32_t y, - uint32_t z); - -VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer( - VkCommandBuffer commandBuffer, - VkBuffer srcBuffer, - VkBuffer dstBuffer, - uint32_t regionCount, - const VkBufferCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageBlit* pRegions, - VkFilter filter); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage( - VkCommandBuffer commandBuffer, - VkBuffer srcBuffer, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkBufferImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkBuffer dstBuffer, - uint32_t regionCount, - const VkBufferImageCopy* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer( - VkCommandBuffer commandBuffer, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize dataSize, - const void* pData); - -VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer( - VkCommandBuffer commandBuffer, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize size, - uint32_t data); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage( - VkCommandBuffer commandBuffer, - VkImage image, - VkImageLayout imageLayout, - const VkClearColorValue* pColor, - uint32_t rangeCount, - const VkImageSubresourceRange* pRanges); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage( - VkCommandBuffer commandBuffer, - VkImage image, - VkImageLayout imageLayout, - const VkClearDepthStencilValue* pDepthStencil, - uint32_t rangeCount, - const VkImageSubresourceRange* pRanges); - -VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments( - VkCommandBuffer commandBuffer, - uint32_t attachmentCount, - const VkClearAttachment* pAttachments, - uint32_t rectCount, - const VkClearRect* pRects); - -VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage( - VkCommandBuffer commandBuffer, - VkImage srcImage, - VkImageLayout srcImageLayout, - VkImage dstImage, - VkImageLayout dstImageLayout, - uint32_t regionCount, - const VkImageResolve* pRegions); - -VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent( - VkCommandBuffer commandBuffer, - VkEvent event, - VkPipelineStageFlags stageMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent( - VkCommandBuffer commandBuffer, - VkEvent event, - VkPipelineStageFlags stageMask); - -VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents( - VkCommandBuffer commandBuffer, - uint32_t eventCount, - const VkEvent* pEvents, - VkPipelineStageFlags srcStageMask, - VkPipelineStageFlags dstStageMask, - uint32_t memoryBarrierCount, - const VkMemoryBarrier* pMemoryBarriers, - uint32_t bufferMemoryBarrierCount, - const VkBufferMemoryBarrier* pBufferMemoryBarriers, - uint32_t imageMemoryBarrierCount, - const VkImageMemoryBarrier* pImageMemoryBarriers); - -VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier( - VkCommandBuffer commandBuffer, - VkPipelineStageFlags srcStageMask, - VkPipelineStageFlags dstStageMask, - VkDependencyFlags dependencyFlags, - uint32_t memoryBarrierCount, - const VkMemoryBarrier* pMemoryBarriers, - uint32_t bufferMemoryBarrierCount, - const VkBufferMemoryBarrier* pBufferMemoryBarriers, - uint32_t imageMemoryBarrierCount, - const VkImageMemoryBarrier* pImageMemoryBarriers); - -VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t query, - VkQueryControlFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t query); - -VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount); - -VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp( - VkCommandBuffer commandBuffer, - VkPipelineStageFlagBits pipelineStage, - VkQueryPool queryPool, - uint32_t query); - -VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults( - VkCommandBuffer commandBuffer, - VkQueryPool queryPool, - uint32_t firstQuery, - uint32_t queryCount, - VkBuffer dstBuffer, - VkDeviceSize dstOffset, - VkDeviceSize stride, - VkQueryResultFlags flags); - -VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants( - VkCommandBuffer commandBuffer, - VkPipelineLayout layout, - VkShaderStageFlags stageFlags, - uint32_t offset, - uint32_t size, - const void* pValues); - -VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass( - VkCommandBuffer commandBuffer, - const VkRenderPassBeginInfo* pRenderPassBegin, - VkSubpassContents contents); - -VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass( - VkCommandBuffer commandBuffer, - VkSubpassContents contents); - -VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass( - VkCommandBuffer commandBuffer); - -VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands( - VkCommandBuffer commandBuffer, - uint32_t commandBufferCount, - const VkCommandBuffer* pCommandBuffers); -#endif - -#define VK_KHR_surface 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) - -#define VK_KHR_SURFACE_SPEC_VERSION 25 -#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface" -#define VK_COLORSPACE_SRGB_NONLINEAR_KHR VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - - -typedef enum VkColorSpaceKHR { - VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0, - VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT = 1000104001, - VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104002, - VK_COLOR_SPACE_SCRGB_LINEAR_EXT = 1000104003, - VK_COLOR_SPACE_SCRGB_NONLINEAR_EXT = 1000104004, - VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = 1000104005, - VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104006, - VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104007, - VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104008, - VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104009, - VK_COLOR_SPACE_BT2020_NONLINEAR_EXT = 1000104010, - VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011, - VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012, - VK_COLOR_SPACE_BEGIN_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, - VK_COLOR_SPACE_END_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, - VK_COLOR_SPACE_RANGE_SIZE_KHR = (VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - VK_COLOR_SPACE_SRGB_NONLINEAR_KHR + 1), - VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF -} VkColorSpaceKHR; - -typedef enum VkPresentModeKHR { - VK_PRESENT_MODE_IMMEDIATE_KHR = 0, - VK_PRESENT_MODE_MAILBOX_KHR = 1, - VK_PRESENT_MODE_FIFO_KHR = 2, - VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3, - VK_PRESENT_MODE_BEGIN_RANGE_KHR = VK_PRESENT_MODE_IMMEDIATE_KHR, - VK_PRESENT_MODE_END_RANGE_KHR = VK_PRESENT_MODE_FIFO_RELAXED_KHR, - VK_PRESENT_MODE_RANGE_SIZE_KHR = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1), - VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF -} VkPresentModeKHR; - - -typedef enum VkSurfaceTransformFlagBitsKHR { - VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001, - VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002, - VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004, - VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040, - VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080, - VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100, - VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkSurfaceTransformFlagBitsKHR; -typedef VkFlags VkSurfaceTransformFlagsKHR; - -typedef enum VkCompositeAlphaFlagBitsKHR { - VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, - VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002, - VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004, - VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008, - VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkCompositeAlphaFlagBitsKHR; -typedef VkFlags VkCompositeAlphaFlagsKHR; - -typedef struct VkSurfaceCapabilitiesKHR { - uint32_t minImageCount; - uint32_t maxImageCount; - VkExtent2D currentExtent; - VkExtent2D minImageExtent; - VkExtent2D maxImageExtent; - uint32_t maxImageArrayLayers; - VkSurfaceTransformFlagsKHR supportedTransforms; - VkSurfaceTransformFlagBitsKHR currentTransform; - VkCompositeAlphaFlagsKHR supportedCompositeAlpha; - VkImageUsageFlags supportedUsageFlags; -} VkSurfaceCapabilitiesKHR; - -typedef struct VkSurfaceFormatKHR { - VkFormat format; - VkColorSpaceKHR colorSpace; -} VkSurfaceFormatKHR; - - -typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR( - VkInstance instance, - VkSurfaceKHR surface, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - VkSurfaceKHR surface, - VkBool32* pSupported); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - uint32_t* pSurfaceFormatCount, - VkSurfaceFormatKHR* pSurfaceFormats); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - uint32_t* pPresentModeCount, - VkPresentModeKHR* pPresentModes); -#endif - -#define VK_KHR_swapchain 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR) - -#define VK_KHR_SWAPCHAIN_SPEC_VERSION 68 -#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain" - -typedef VkFlags VkSwapchainCreateFlagsKHR; - -typedef struct VkSwapchainCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkSwapchainCreateFlagsKHR flags; - VkSurfaceKHR surface; - uint32_t minImageCount; - VkFormat imageFormat; - VkColorSpaceKHR imageColorSpace; - VkExtent2D imageExtent; - uint32_t imageArrayLayers; - VkImageUsageFlags imageUsage; - VkSharingMode imageSharingMode; - uint32_t queueFamilyIndexCount; - const uint32_t* pQueueFamilyIndices; - VkSurfaceTransformFlagBitsKHR preTransform; - VkCompositeAlphaFlagBitsKHR compositeAlpha; - VkPresentModeKHR presentMode; - VkBool32 clipped; - VkSwapchainKHR oldSwapchain; -} VkSwapchainCreateInfoKHR; - -typedef struct VkPresentInfoKHR { - VkStructureType sType; - const void* pNext; - uint32_t waitSemaphoreCount; - const VkSemaphore* pWaitSemaphores; - uint32_t swapchainCount; - const VkSwapchainKHR* pSwapchains; - const uint32_t* pImageIndices; - VkResult* pResults; -} VkPresentInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain); -typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages); -typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex); -typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR( - VkDevice device, - const VkSwapchainCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSwapchainKHR* pSwapchain); - -VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR( - VkDevice device, - VkSwapchainKHR swapchain, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR( - VkDevice device, - VkSwapchainKHR swapchain, - uint32_t* pSwapchainImageCount, - VkImage* pSwapchainImages); - -VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR( - VkDevice device, - VkSwapchainKHR swapchain, - uint64_t timeout, - VkSemaphore semaphore, - VkFence fence, - uint32_t* pImageIndex); - -VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR( - VkQueue queue, - const VkPresentInfoKHR* pPresentInfo); -#endif - -#define VK_KHR_display 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR) - -#define VK_KHR_DISPLAY_SPEC_VERSION 21 -#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display" - - -typedef enum VkDisplayPlaneAlphaFlagBitsKHR { - VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, - VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002, - VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004, - VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008, - VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF -} VkDisplayPlaneAlphaFlagBitsKHR; -typedef VkFlags VkDisplayPlaneAlphaFlagsKHR; -typedef VkFlags VkDisplayModeCreateFlagsKHR; -typedef VkFlags VkDisplaySurfaceCreateFlagsKHR; - -typedef struct VkDisplayPropertiesKHR { - VkDisplayKHR display; - const char* displayName; - VkExtent2D physicalDimensions; - VkExtent2D physicalResolution; - VkSurfaceTransformFlagsKHR supportedTransforms; - VkBool32 planeReorderPossible; - VkBool32 persistentContent; -} VkDisplayPropertiesKHR; - -typedef struct VkDisplayModeParametersKHR { - VkExtent2D visibleRegion; - uint32_t refreshRate; -} VkDisplayModeParametersKHR; - -typedef struct VkDisplayModePropertiesKHR { - VkDisplayModeKHR displayMode; - VkDisplayModeParametersKHR parameters; -} VkDisplayModePropertiesKHR; - -typedef struct VkDisplayModeCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkDisplayModeCreateFlagsKHR flags; - VkDisplayModeParametersKHR parameters; -} VkDisplayModeCreateInfoKHR; - -typedef struct VkDisplayPlaneCapabilitiesKHR { - VkDisplayPlaneAlphaFlagsKHR supportedAlpha; - VkOffset2D minSrcPosition; - VkOffset2D maxSrcPosition; - VkExtent2D minSrcExtent; - VkExtent2D maxSrcExtent; - VkOffset2D minDstPosition; - VkOffset2D maxDstPosition; - VkExtent2D minDstExtent; - VkExtent2D maxDstExtent; -} VkDisplayPlaneCapabilitiesKHR; - -typedef struct VkDisplayPlanePropertiesKHR { - VkDisplayKHR currentDisplay; - uint32_t currentStackIndex; -} VkDisplayPlanePropertiesKHR; - -typedef struct VkDisplaySurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkDisplaySurfaceCreateFlagsKHR flags; - VkDisplayModeKHR displayMode; - uint32_t planeIndex; - uint32_t planeStackIndex; - VkSurfaceTransformFlagBitsKHR transform; - float globalAlpha; - VkDisplayPlaneAlphaFlagBitsKHR alphaMode; - VkExtent2D imageExtent; -} VkDisplaySurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode); -typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities); -typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkDisplayPropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR( - VkPhysicalDevice physicalDevice, - uint32_t* pPropertyCount, - VkDisplayPlanePropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR( - VkPhysicalDevice physicalDevice, - uint32_t planeIndex, - uint32_t* pDisplayCount, - VkDisplayKHR* pDisplays); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR( - VkPhysicalDevice physicalDevice, - VkDisplayKHR display, - uint32_t* pPropertyCount, - VkDisplayModePropertiesKHR* pProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR( - VkPhysicalDevice physicalDevice, - VkDisplayKHR display, - const VkDisplayModeCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDisplayModeKHR* pMode); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR( - VkPhysicalDevice physicalDevice, - VkDisplayModeKHR mode, - uint32_t planeIndex, - VkDisplayPlaneCapabilitiesKHR* pCapabilities); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR( - VkInstance instance, - const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); -#endif - -#define VK_KHR_display_swapchain 1 -#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9 -#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain" - -typedef struct VkDisplayPresentInfoKHR { - VkStructureType sType; - const void* pNext; - VkRect2D srcRect; - VkRect2D dstRect; - VkBool32 persistent; -} VkDisplayPresentInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR( - VkDevice device, - uint32_t swapchainCount, - const VkSwapchainCreateInfoKHR* pCreateInfos, - const VkAllocationCallbacks* pAllocator, - VkSwapchainKHR* pSwapchains); -#endif - -#ifdef VK_USE_PLATFORM_XLIB_KHR -#define VK_KHR_xlib_surface 1 -#include - -#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6 -#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface" - -typedef VkFlags VkXlibSurfaceCreateFlagsKHR; - -typedef struct VkXlibSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkXlibSurfaceCreateFlagsKHR flags; - Display* dpy; - Window window; -} VkXlibSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR( - VkInstance instance, - const VkXlibSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - Display* dpy, - VisualID visualID); -#endif -#endif /* VK_USE_PLATFORM_XLIB_KHR */ - -#ifdef VK_USE_PLATFORM_XCB_KHR -#define VK_KHR_xcb_surface 1 -#include - -#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6 -#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface" - -typedef VkFlags VkXcbSurfaceCreateFlagsKHR; - -typedef struct VkXcbSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkXcbSurfaceCreateFlagsKHR flags; - xcb_connection_t* connection; - xcb_window_t window; -} VkXcbSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR( - VkInstance instance, - const VkXcbSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - xcb_connection_t* connection, - xcb_visualid_t visual_id); -#endif -#endif /* VK_USE_PLATFORM_XCB_KHR */ - -#ifdef VK_USE_PLATFORM_WAYLAND_KHR -#define VK_KHR_wayland_surface 1 -#include - -#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 5 -#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface" - -typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; - -typedef struct VkWaylandSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkWaylandSurfaceCreateFlagsKHR flags; - struct wl_display* display; - struct wl_surface* surface; -} VkWaylandSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR( - VkInstance instance, - const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - struct wl_display* display); -#endif -#endif /* VK_USE_PLATFORM_WAYLAND_KHR */ - -#ifdef VK_USE_PLATFORM_MIR_KHR -#define VK_KHR_mir_surface 1 -#include - -#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4 -#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface" - -typedef VkFlags VkMirSurfaceCreateFlagsKHR; - -typedef struct VkMirSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkMirSurfaceCreateFlagsKHR flags; - MirConnection* connection; - MirSurface* mirSurface; -} VkMirSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR( - VkInstance instance, - const VkMirSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex, - MirConnection* connection); -#endif -#endif /* VK_USE_PLATFORM_MIR_KHR */ - -#ifdef VK_USE_PLATFORM_ANDROID_KHR -#define VK_KHR_android_surface 1 -#include - -#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6 -#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface" - -typedef VkFlags VkAndroidSurfaceCreateFlagsKHR; - -typedef struct VkAndroidSurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkAndroidSurfaceCreateFlagsKHR flags; - ANativeWindow* window; -} VkAndroidSurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR( - VkInstance instance, - const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); -#endif -#endif /* VK_USE_PLATFORM_ANDROID_KHR */ - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#define VK_KHR_win32_surface 1 -#include - -#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 5 -#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface" - -typedef VkFlags VkWin32SurfaceCreateFlagsKHR; - -typedef struct VkWin32SurfaceCreateInfoKHR { - VkStructureType sType; - const void* pNext; - VkWin32SurfaceCreateFlagsKHR flags; - HINSTANCE hinstance; - HWND hwnd; -} VkWin32SurfaceCreateInfoKHR; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); -typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR( - VkInstance instance, - const VkWin32SurfaceCreateInfoKHR* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); - -VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR( - VkPhysicalDevice physicalDevice, - uint32_t queueFamilyIndex); -#endif -#endif /* VK_USE_PLATFORM_WIN32_KHR */ - -#define VK_KHR_sampler_mirror_clamp_to_edge 1 -#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1 -#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge" - - -#define VK_KHR_get_physical_device_properties2 1 -#define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_SPEC_VERSION 1 -#define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME "VK_KHR_get_physical_device_properties2" - -typedef struct VkPhysicalDeviceFeatures2KHR { - VkStructureType sType; - void* pNext; - VkPhysicalDeviceFeatures features; -} VkPhysicalDeviceFeatures2KHR; - -typedef struct VkPhysicalDeviceProperties2KHR { - VkStructureType sType; - void* pNext; - VkPhysicalDeviceProperties properties; -} VkPhysicalDeviceProperties2KHR; - -typedef struct VkFormatProperties2KHR { - VkStructureType sType; - void* pNext; - VkFormatProperties formatProperties; -} VkFormatProperties2KHR; - -typedef struct VkImageFormatProperties2KHR { - VkStructureType sType; - void* pNext; - VkImageFormatProperties imageFormatProperties; -} VkImageFormatProperties2KHR; - -typedef struct VkPhysicalDeviceImageFormatInfo2KHR { - VkStructureType sType; - const void* pNext; - VkFormat format; - VkImageType type; - VkImageTiling tiling; - VkImageUsageFlags usage; - VkImageCreateFlags flags; -} VkPhysicalDeviceImageFormatInfo2KHR; - -typedef struct VkQueueFamilyProperties2KHR { - VkStructureType sType; - void* pNext; - VkQueueFamilyProperties queueFamilyProperties; -} VkQueueFamilyProperties2KHR; - -typedef struct VkPhysicalDeviceMemoryProperties2KHR { - VkStructureType sType; - void* pNext; - VkPhysicalDeviceMemoryProperties memoryProperties; -} VkPhysicalDeviceMemoryProperties2KHR; - -typedef struct VkSparseImageFormatProperties2KHR { - VkStructureType sType; - void* pNext; - VkSparseImageFormatProperties properties; -} VkSparseImageFormatProperties2KHR; - -typedef struct VkPhysicalDeviceSparseImageFormatInfo2KHR { - VkStructureType sType; - const void* pNext; - VkFormat format; - VkImageType type; - VkSampleCountFlagBits samples; - VkImageUsageFlags usage; - VkImageTiling tiling; -} VkPhysicalDeviceSparseImageFormatInfo2KHR; - - -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2KHR* pFeatures); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2KHR* pProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties2KHR)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2KHR* pFormatProperties); -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo, VkImageFormatProperties2KHR* pImageFormatProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties2KHR* pQueueFamilyProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties2KHR)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, uint32_t* pPropertyCount, VkSparseImageFormatProperties2KHR* pProperties); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures2KHR( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceFeatures2KHR* pFeatures); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties2KHR( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceProperties2KHR* pProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties2KHR( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkFormatProperties2KHR* pFormatProperties); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties2KHR( - VkPhysicalDevice physicalDevice, - const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo, - VkImageFormatProperties2KHR* pImageFormatProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties2KHR( - VkPhysicalDevice physicalDevice, - uint32_t* pQueueFamilyPropertyCount, - VkQueueFamilyProperties2KHR* pQueueFamilyProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties2KHR( - VkPhysicalDevice physicalDevice, - VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties2KHR( - VkPhysicalDevice physicalDevice, - const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, - uint32_t* pPropertyCount, - VkSparseImageFormatProperties2KHR* pProperties); -#endif - -#define VK_KHR_shader_draw_parameters 1 -#define VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION 1 -#define VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME "VK_KHR_shader_draw_parameters" - - -#define VK_KHR_maintenance1 1 -#define VK_KHR_MAINTENANCE1_SPEC_VERSION 1 -#define VK_KHR_MAINTENANCE1_EXTENSION_NAME "VK_KHR_maintenance1" - -typedef VkFlags VkCommandPoolTrimFlagsKHR; - -typedef void (VKAPI_PTR *PFN_vkTrimCommandPoolKHR)(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlagsKHR flags); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkTrimCommandPoolKHR( - VkDevice device, - VkCommandPool commandPool, - VkCommandPoolTrimFlagsKHR flags); -#endif - -#define VK_EXT_debug_report 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT) - -#define VK_EXT_DEBUG_REPORT_SPEC_VERSION 4 -#define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report" -#define VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT - - -typedef enum VkDebugReportObjectTypeEXT { - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0, - VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1, - VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2, - VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3, - VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4, - VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5, - VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6, - VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7, - VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8, - VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9, - VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10, - VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11, - VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12, - VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13, - VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14, - VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17, - VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18, - VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20, - VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22, - VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23, - VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24, - VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25, - VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26, - VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27, - VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = 28, - VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT = 29, - VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT = 30, - VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT = 31, - VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT = 32, - VK_DEBUG_REPORT_OBJECT_TYPE_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_END_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT, - VK_DEBUG_REPORT_OBJECT_TYPE_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT + 1), - VK_DEBUG_REPORT_OBJECT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportObjectTypeEXT; - -typedef enum VkDebugReportErrorEXT { - VK_DEBUG_REPORT_ERROR_NONE_EXT = 0, - VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = 1, - VK_DEBUG_REPORT_ERROR_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_ERROR_NONE_EXT, - VK_DEBUG_REPORT_ERROR_END_RANGE_EXT = VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT, - VK_DEBUG_REPORT_ERROR_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT - VK_DEBUG_REPORT_ERROR_NONE_EXT + 1), - VK_DEBUG_REPORT_ERROR_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportErrorEXT; - - -typedef enum VkDebugReportFlagBitsEXT { - VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001, - VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002, - VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004, - VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008, - VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010, - VK_DEBUG_REPORT_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDebugReportFlagBitsEXT; -typedef VkFlags VkDebugReportFlagsEXT; - -typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)( - VkDebugReportFlagsEXT flags, - VkDebugReportObjectTypeEXT objectType, - uint64_t object, - size_t location, - int32_t messageCode, - const char* pLayerPrefix, - const char* pMessage, - void* pUserData); - - -typedef struct VkDebugReportCallbackCreateInfoEXT { - VkStructureType sType; - const void* pNext; - VkDebugReportFlagsEXT flags; - PFN_vkDebugReportCallbackEXT pfnCallback; - void* pUserData; -} VkDebugReportCallbackCreateInfoEXT; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback); -typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator); -typedef void (VKAPI_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT( - VkInstance instance, - const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkDebugReportCallbackEXT* pCallback); - -VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT( - VkInstance instance, - VkDebugReportCallbackEXT callback, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT( - VkInstance instance, - VkDebugReportFlagsEXT flags, - VkDebugReportObjectTypeEXT objectType, - uint64_t object, - size_t location, - int32_t messageCode, - const char* pLayerPrefix, - const char* pMessage); -#endif - -#define VK_NV_glsl_shader 1 -#define VK_NV_GLSL_SHADER_SPEC_VERSION 1 -#define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader" - - -#define VK_IMG_filter_cubic 1 -#define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1 -#define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic" - - -#define VK_AMD_rasterization_order 1 -#define VK_AMD_RASTERIZATION_ORDER_SPEC_VERSION 1 -#define VK_AMD_RASTERIZATION_ORDER_EXTENSION_NAME "VK_AMD_rasterization_order" - - -typedef enum VkRasterizationOrderAMD { - VK_RASTERIZATION_ORDER_STRICT_AMD = 0, - VK_RASTERIZATION_ORDER_RELAXED_AMD = 1, - VK_RASTERIZATION_ORDER_BEGIN_RANGE_AMD = VK_RASTERIZATION_ORDER_STRICT_AMD, - VK_RASTERIZATION_ORDER_END_RANGE_AMD = VK_RASTERIZATION_ORDER_RELAXED_AMD, - VK_RASTERIZATION_ORDER_RANGE_SIZE_AMD = (VK_RASTERIZATION_ORDER_RELAXED_AMD - VK_RASTERIZATION_ORDER_STRICT_AMD + 1), - VK_RASTERIZATION_ORDER_MAX_ENUM_AMD = 0x7FFFFFFF -} VkRasterizationOrderAMD; - -typedef struct VkPipelineRasterizationStateRasterizationOrderAMD { - VkStructureType sType; - const void* pNext; - VkRasterizationOrderAMD rasterizationOrder; -} VkPipelineRasterizationStateRasterizationOrderAMD; - - - -#define VK_AMD_shader_trinary_minmax 1 -#define VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION 1 -#define VK_AMD_SHADER_TRINARY_MINMAX_EXTENSION_NAME "VK_AMD_shader_trinary_minmax" - - -#define VK_AMD_shader_explicit_vertex_parameter 1 -#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION 1 -#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME "VK_AMD_shader_explicit_vertex_parameter" - - -#define VK_EXT_debug_marker 1 -#define VK_EXT_DEBUG_MARKER_SPEC_VERSION 3 -#define VK_EXT_DEBUG_MARKER_EXTENSION_NAME "VK_EXT_debug_marker" - -typedef struct VkDebugMarkerObjectNameInfoEXT { - VkStructureType sType; - const void* pNext; - VkDebugReportObjectTypeEXT objectType; - uint64_t object; - const char* pObjectName; -} VkDebugMarkerObjectNameInfoEXT; - -typedef struct VkDebugMarkerObjectTagInfoEXT { - VkStructureType sType; - const void* pNext; - VkDebugReportObjectTypeEXT objectType; - uint64_t object; - uint64_t tagName; - size_t tagSize; - const void* pTag; -} VkDebugMarkerObjectTagInfoEXT; - -typedef struct VkDebugMarkerMarkerInfoEXT { - VkStructureType sType; - const void* pNext; - const char* pMarkerName; - float color[4]; -} VkDebugMarkerMarkerInfoEXT; - - -typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectTagEXT)(VkDevice device, VkDebugMarkerObjectTagInfoEXT* pTagInfo); -typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectNameEXT)(VkDevice device, VkDebugMarkerObjectNameInfoEXT* pNameInfo); -typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerBeginEXT)(VkCommandBuffer commandBuffer, VkDebugMarkerMarkerInfoEXT* pMarkerInfo); -typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerEndEXT)(VkCommandBuffer commandBuffer); -typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerInsertEXT)(VkCommandBuffer commandBuffer, VkDebugMarkerMarkerInfoEXT* pMarkerInfo); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectTagEXT( - VkDevice device, - VkDebugMarkerObjectTagInfoEXT* pTagInfo); - -VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectNameEXT( - VkDevice device, - VkDebugMarkerObjectNameInfoEXT* pNameInfo); - -VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerBeginEXT( - VkCommandBuffer commandBuffer, - VkDebugMarkerMarkerInfoEXT* pMarkerInfo); - -VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerEndEXT( - VkCommandBuffer commandBuffer); - -VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerInsertEXT( - VkCommandBuffer commandBuffer, - VkDebugMarkerMarkerInfoEXT* pMarkerInfo); -#endif - -#define VK_AMD_gcn_shader 1 -#define VK_AMD_GCN_SHADER_SPEC_VERSION 1 -#define VK_AMD_GCN_SHADER_EXTENSION_NAME "VK_AMD_gcn_shader" - - -#define VK_NV_dedicated_allocation 1 -#define VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION 1 -#define VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_NV_dedicated_allocation" - -typedef struct VkDedicatedAllocationImageCreateInfoNV { - VkStructureType sType; - const void* pNext; - VkBool32 dedicatedAllocation; -} VkDedicatedAllocationImageCreateInfoNV; - -typedef struct VkDedicatedAllocationBufferCreateInfoNV { - VkStructureType sType; - const void* pNext; - VkBool32 dedicatedAllocation; -} VkDedicatedAllocationBufferCreateInfoNV; - -typedef struct VkDedicatedAllocationMemoryAllocateInfoNV { - VkStructureType sType; - const void* pNext; - VkImage image; - VkBuffer buffer; -} VkDedicatedAllocationMemoryAllocateInfoNV; - - - -#define VK_AMD_draw_indirect_count 1 -#define VK_AMD_DRAW_INDIRECT_COUNT_SPEC_VERSION 1 -#define VK_AMD_DRAW_INDIRECT_COUNT_EXTENSION_NAME "VK_AMD_draw_indirect_count" - -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride); -typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirectCountAMD( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - VkBuffer countBuffer, - VkDeviceSize countBufferOffset, - uint32_t maxDrawCount, - uint32_t stride); - -VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirectCountAMD( - VkCommandBuffer commandBuffer, - VkBuffer buffer, - VkDeviceSize offset, - VkBuffer countBuffer, - VkDeviceSize countBufferOffset, - uint32_t maxDrawCount, - uint32_t stride); -#endif - -#define VK_AMD_negative_viewport_height 1 -#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION 1 -#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_EXTENSION_NAME "VK_AMD_negative_viewport_height" - - -#define VK_AMD_gpu_shader_half_float 1 -#define VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION 1 -#define VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME "VK_AMD_gpu_shader_half_float" - - -#define VK_AMD_shader_ballot 1 -#define VK_AMD_SHADER_BALLOT_SPEC_VERSION 1 -#define VK_AMD_SHADER_BALLOT_EXTENSION_NAME "VK_AMD_shader_ballot" - - -#define VK_IMG_format_pvrtc 1 -#define VK_IMG_FORMAT_PVRTC_SPEC_VERSION 1 -#define VK_IMG_FORMAT_PVRTC_EXTENSION_NAME "VK_IMG_format_pvrtc" - - -#define VK_NV_external_memory_capabilities 1 -#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1 -#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_NV_external_memory_capabilities" - - -typedef enum VkExternalMemoryHandleTypeFlagBitsNV { - VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV = 0x00000001, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV = 0x00000002, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV = 0x00000004, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV = 0x00000008, - VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF -} VkExternalMemoryHandleTypeFlagBitsNV; -typedef VkFlags VkExternalMemoryHandleTypeFlagsNV; - -typedef enum VkExternalMemoryFeatureFlagBitsNV { - VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_NV = 0x00000001, - VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_NV = 0x00000002, - VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_NV = 0x00000004, - VK_EXTERNAL_MEMORY_FEATURE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF -} VkExternalMemoryFeatureFlagBitsNV; -typedef VkFlags VkExternalMemoryFeatureFlagsNV; - -typedef struct VkExternalImageFormatPropertiesNV { - VkImageFormatProperties imageFormatProperties; - VkExternalMemoryFeatureFlagsNV externalMemoryFeatures; - VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes; - VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes; -} VkExternalImageFormatPropertiesNV; - - -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkExternalMemoryHandleTypeFlagsNV externalHandleType, VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceExternalImageFormatPropertiesNV( - VkPhysicalDevice physicalDevice, - VkFormat format, - VkImageType type, - VkImageTiling tiling, - VkImageUsageFlags usage, - VkImageCreateFlags flags, - VkExternalMemoryHandleTypeFlagsNV externalHandleType, - VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties); -#endif - -#define VK_NV_external_memory 1 -#define VK_NV_EXTERNAL_MEMORY_SPEC_VERSION 1 -#define VK_NV_EXTERNAL_MEMORY_EXTENSION_NAME "VK_NV_external_memory" - -typedef struct VkExternalMemoryImageCreateInfoNV { - VkStructureType sType; - const void* pNext; - VkExternalMemoryHandleTypeFlagsNV handleTypes; -} VkExternalMemoryImageCreateInfoNV; - -typedef struct VkExportMemoryAllocateInfoNV { - VkStructureType sType; - const void* pNext; - VkExternalMemoryHandleTypeFlagsNV handleTypes; -} VkExportMemoryAllocateInfoNV; - - - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#define VK_NV_external_memory_win32 1 -#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1 -#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32" - -typedef struct VkImportMemoryWin32HandleInfoNV { - VkStructureType sType; - const void* pNext; - VkExternalMemoryHandleTypeFlagsNV handleType; - HANDLE handle; -} VkImportMemoryWin32HandleInfoNV; - -typedef struct VkExportMemoryWin32HandleInfoNV { - VkStructureType sType; - const void* pNext; - const SECURITY_ATTRIBUTES* pAttributes; - DWORD dwAccess; -} VkExportMemoryWin32HandleInfoNV; - - -typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleNV)(VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV( - VkDevice device, - VkDeviceMemory memory, - VkExternalMemoryHandleTypeFlagsNV handleType, - HANDLE* pHandle); -#endif -#endif /* VK_USE_PLATFORM_WIN32_KHR */ - -#ifdef VK_USE_PLATFORM_WIN32_KHR -#define VK_NV_win32_keyed_mutex 1 -#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 1 -#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex" - -typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV { - VkStructureType sType; - const void* pNext; - uint32_t acquireCount; - const VkDeviceMemory* pAcquireSyncs; - const uint64_t* pAcquireKeys; - const uint32_t* pAcquireTimeoutMilliseconds; - uint32_t releaseCount; - const VkDeviceMemory* pReleaseSyncs; - const uint64_t* pReleaseKeys; -} VkWin32KeyedMutexAcquireReleaseInfoNV; - - -#endif /* VK_USE_PLATFORM_WIN32_KHR */ - -#define VK_EXT_validation_flags 1 -#define VK_EXT_VALIDATION_FLAGS_SPEC_VERSION 1 -#define VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME "VK_EXT_validation_flags" - - -typedef enum VkValidationCheckEXT { - VK_VALIDATION_CHECK_ALL_EXT = 0, - VK_VALIDATION_CHECK_BEGIN_RANGE_EXT = VK_VALIDATION_CHECK_ALL_EXT, - VK_VALIDATION_CHECK_END_RANGE_EXT = VK_VALIDATION_CHECK_ALL_EXT, - VK_VALIDATION_CHECK_RANGE_SIZE_EXT = (VK_VALIDATION_CHECK_ALL_EXT - VK_VALIDATION_CHECK_ALL_EXT + 1), - VK_VALIDATION_CHECK_MAX_ENUM_EXT = 0x7FFFFFFF -} VkValidationCheckEXT; - -typedef struct VkValidationFlagsEXT { - VkStructureType sType; - const void* pNext; - uint32_t disabledValidationCheckCount; - VkValidationCheckEXT* pDisabledValidationChecks; -} VkValidationFlagsEXT; - - - -#ifdef VK_USE_PLATFORM_VI_NN -#define VK_NN_vi_surface 1 -#define VK_NN_VI_SURFACE_SPEC_VERSION 1 -#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface" - -typedef VkFlags VkViSurfaceCreateFlagsNN; - -typedef struct VkViSurfaceCreateInfoNN { - VkStructureType sType; - const void* pNext; - VkViSurfaceCreateFlagsNN flags; - void* window; -} VkViSurfaceCreateInfoNN; - - -typedef VkResult (VKAPI_PTR *PFN_vkCreateViSurfaceNN)(VkInstance instance, const VkViSurfaceCreateInfoNN* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkCreateViSurfaceNN( - VkInstance instance, - const VkViSurfaceCreateInfoNN* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkSurfaceKHR* pSurface); -#endif -#endif /* VK_USE_PLATFORM_VI_NN */ - -#define VK_EXT_shader_subgroup_ballot 1 -#define VK_EXT_SHADER_SUBGROUP_BALLOT_SPEC_VERSION 1 -#define VK_EXT_SHADER_SUBGROUP_BALLOT_EXTENSION_NAME "VK_EXT_shader_subgroup_ballot" - - -#define VK_EXT_shader_subgroup_vote 1 -#define VK_EXT_SHADER_SUBGROUP_VOTE_SPEC_VERSION 1 -#define VK_EXT_SHADER_SUBGROUP_VOTE_EXTENSION_NAME "VK_EXT_shader_subgroup_vote" - - -#define VK_NVX_device_generated_commands 1 -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkObjectTableNVX) -VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutNVX) - -#define VK_NVX_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 1 -#define VK_NVX_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NVX_device_generated_commands" - - -typedef enum VkIndirectCommandsTokenTypeNVX { - VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX = 0, - VK_INDIRECT_COMMANDS_TOKEN_DESCRIPTOR_SET_NVX = 1, - VK_INDIRECT_COMMANDS_TOKEN_INDEX_BUFFER_NVX = 2, - VK_INDIRECT_COMMANDS_TOKEN_VERTEX_BUFFER_NVX = 3, - VK_INDIRECT_COMMANDS_TOKEN_PUSH_CONSTANT_NVX = 4, - VK_INDIRECT_COMMANDS_TOKEN_DRAW_INDEXED_NVX = 5, - VK_INDIRECT_COMMANDS_TOKEN_DRAW_NVX = 6, - VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX = 7, - VK_INDIRECT_COMMANDS_TOKEN_TYPE_BEGIN_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX, - VK_INDIRECT_COMMANDS_TOKEN_TYPE_END_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX, - VK_INDIRECT_COMMANDS_TOKEN_TYPE_RANGE_SIZE_NVX = (VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX - VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX + 1), - VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF -} VkIndirectCommandsTokenTypeNVX; - -typedef enum VkObjectEntryTypeNVX { - VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX = 0, - VK_OBJECT_ENTRY_PIPELINE_NVX = 1, - VK_OBJECT_ENTRY_INDEX_BUFFER_NVX = 2, - VK_OBJECT_ENTRY_VERTEX_BUFFER_NVX = 3, - VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX = 4, - VK_OBJECT_ENTRY_TYPE_BEGIN_RANGE_NVX = VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX, - VK_OBJECT_ENTRY_TYPE_END_RANGE_NVX = VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX, - VK_OBJECT_ENTRY_TYPE_RANGE_SIZE_NVX = (VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX - VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX + 1), - VK_OBJECT_ENTRY_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF -} VkObjectEntryTypeNVX; - - -typedef enum VkIndirectCommandsLayoutUsageFlagBitsNVX { - VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NVX = 0x00000001, - VK_INDIRECT_COMMANDS_LAYOUT_USAGE_SPARSE_SEQUENCES_BIT_NVX = 0x00000002, - VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EMPTY_EXECUTIONS_BIT_NVX = 0x00000004, - VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NVX = 0x00000008, - VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF -} VkIndirectCommandsLayoutUsageFlagBitsNVX; -typedef VkFlags VkIndirectCommandsLayoutUsageFlagsNVX; - -typedef enum VkObjectEntryUsageFlagBitsNVX { - VK_OBJECT_ENTRY_USAGE_GRAPHICS_BIT_NVX = 0x00000001, - VK_OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX = 0x00000002, - VK_OBJECT_ENTRY_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF -} VkObjectEntryUsageFlagBitsNVX; -typedef VkFlags VkObjectEntryUsageFlagsNVX; - -typedef struct VkDeviceGeneratedCommandsFeaturesNVX { - VkStructureType sType; - const void* pNext; - VkBool32 computeBindingPointSupport; -} VkDeviceGeneratedCommandsFeaturesNVX; - -typedef struct VkDeviceGeneratedCommandsLimitsNVX { - VkStructureType sType; - const void* pNext; - uint32_t maxIndirectCommandsLayoutTokenCount; - uint32_t maxObjectEntryCounts; - uint32_t minSequenceCountBufferOffsetAlignment; - uint32_t minSequenceIndexBufferOffsetAlignment; - uint32_t minCommandsTokenBufferOffsetAlignment; -} VkDeviceGeneratedCommandsLimitsNVX; - -typedef struct VkIndirectCommandsTokenNVX { - VkIndirectCommandsTokenTypeNVX tokenType; - VkBuffer buffer; - VkDeviceSize offset; -} VkIndirectCommandsTokenNVX; - -typedef struct VkIndirectCommandsLayoutTokenNVX { - VkIndirectCommandsTokenTypeNVX tokenType; - uint32_t bindingUnit; - uint32_t dynamicCount; - uint32_t divisor; -} VkIndirectCommandsLayoutTokenNVX; - -typedef struct VkIndirectCommandsLayoutCreateInfoNVX { - VkStructureType sType; - const void* pNext; - VkPipelineBindPoint pipelineBindPoint; - VkIndirectCommandsLayoutUsageFlagsNVX flags; - uint32_t tokenCount; - const VkIndirectCommandsLayoutTokenNVX* pTokens; -} VkIndirectCommandsLayoutCreateInfoNVX; - -typedef struct VkCmdProcessCommandsInfoNVX { - VkStructureType sType; - const void* pNext; - VkObjectTableNVX objectTable; - VkIndirectCommandsLayoutNVX indirectCommandsLayout; - uint32_t indirectCommandsTokenCount; - const VkIndirectCommandsTokenNVX* pIndirectCommandsTokens; - uint32_t maxSequencesCount; - VkCommandBuffer targetCommandBuffer; - VkBuffer sequencesCountBuffer; - VkDeviceSize sequencesCountOffset; - VkBuffer sequencesIndexBuffer; - VkDeviceSize sequencesIndexOffset; -} VkCmdProcessCommandsInfoNVX; - -typedef struct VkCmdReserveSpaceForCommandsInfoNVX { - VkStructureType sType; - const void* pNext; - VkObjectTableNVX objectTable; - VkIndirectCommandsLayoutNVX indirectCommandsLayout; - uint32_t maxSequencesCount; -} VkCmdReserveSpaceForCommandsInfoNVX; - -typedef struct VkObjectTableCreateInfoNVX { - VkStructureType sType; - const void* pNext; - uint32_t objectCount; - const VkObjectEntryTypeNVX* pObjectEntryTypes; - const uint32_t* pObjectEntryCounts; - const VkObjectEntryUsageFlagsNVX* pObjectEntryUsageFlags; - uint32_t maxUniformBuffersPerDescriptor; - uint32_t maxStorageBuffersPerDescriptor; - uint32_t maxStorageImagesPerDescriptor; - uint32_t maxSampledImagesPerDescriptor; - uint32_t maxPipelineLayouts; -} VkObjectTableCreateInfoNVX; - -typedef struct VkObjectTableEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; -} VkObjectTableEntryNVX; - -typedef struct VkObjectTablePipelineEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; - VkPipeline pipeline; -} VkObjectTablePipelineEntryNVX; - -typedef struct VkObjectTableDescriptorSetEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; - VkPipelineLayout pipelineLayout; - VkDescriptorSet descriptorSet; -} VkObjectTableDescriptorSetEntryNVX; - -typedef struct VkObjectTableVertexBufferEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; - VkBuffer buffer; -} VkObjectTableVertexBufferEntryNVX; - -typedef struct VkObjectTableIndexBufferEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; - VkBuffer buffer; - VkIndexType indexType; -} VkObjectTableIndexBufferEntryNVX; - -typedef struct VkObjectTablePushConstantEntryNVX { - VkObjectEntryTypeNVX type; - VkObjectEntryUsageFlagsNVX flags; - VkPipelineLayout pipelineLayout; - VkShaderStageFlags stageFlags; -} VkObjectTablePushConstantEntryNVX; - - -typedef void (VKAPI_PTR *PFN_vkCmdProcessCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo); -typedef void (VKAPI_PTR *PFN_vkCmdReserveSpaceForCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo); -typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutNVX)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout); -typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutNVX)(VkDevice device, VkIndirectCommandsLayoutNVX indirectCommandsLayout, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkCreateObjectTableNVX)(VkDevice device, const VkObjectTableCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkObjectTableNVX* pObjectTable); -typedef void (VKAPI_PTR *PFN_vkDestroyObjectTableNVX)(VkDevice device, VkObjectTableNVX objectTable, const VkAllocationCallbacks* pAllocator); -typedef VkResult (VKAPI_PTR *PFN_vkRegisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectTableEntryNVX* const* ppObjectTableEntries, const uint32_t* pObjectIndices); -typedef VkResult (VKAPI_PTR *PFN_vkUnregisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectEntryTypeNVX* pObjectEntryTypes, const uint32_t* pObjectIndices); -typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX)(VkPhysicalDevice physicalDevice, VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, VkDeviceGeneratedCommandsLimitsNVX* pLimits); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR void VKAPI_CALL vkCmdProcessCommandsNVX( - VkCommandBuffer commandBuffer, - const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo); - -VKAPI_ATTR void VKAPI_CALL vkCmdReserveSpaceForCommandsNVX( - VkCommandBuffer commandBuffer, - const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutNVX( - VkDevice device, - const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout); - -VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutNVX( - VkDevice device, - VkIndirectCommandsLayoutNVX indirectCommandsLayout, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkCreateObjectTableNVX( - VkDevice device, - const VkObjectTableCreateInfoNVX* pCreateInfo, - const VkAllocationCallbacks* pAllocator, - VkObjectTableNVX* pObjectTable); - -VKAPI_ATTR void VKAPI_CALL vkDestroyObjectTableNVX( - VkDevice device, - VkObjectTableNVX objectTable, - const VkAllocationCallbacks* pAllocator); - -VKAPI_ATTR VkResult VKAPI_CALL vkRegisterObjectsNVX( - VkDevice device, - VkObjectTableNVX objectTable, - uint32_t objectCount, - const VkObjectTableEntryNVX* const* ppObjectTableEntries, - const uint32_t* pObjectIndices); - -VKAPI_ATTR VkResult VKAPI_CALL vkUnregisterObjectsNVX( - VkDevice device, - VkObjectTableNVX objectTable, - uint32_t objectCount, - const VkObjectEntryTypeNVX* pObjectEntryTypes, - const uint32_t* pObjectIndices); - -VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX( - VkPhysicalDevice physicalDevice, - VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, - VkDeviceGeneratedCommandsLimitsNVX* pLimits); -#endif - -#define VK_EXT_direct_mode_display 1 -#define VK_EXT_DIRECT_MODE_DISPLAY_SPEC_VERSION 1 -#define VK_EXT_DIRECT_MODE_DISPLAY_EXTENSION_NAME "VK_EXT_direct_mode_display" - -typedef VkResult (VKAPI_PTR *PFN_vkReleaseDisplayEXT)(VkPhysicalDevice physicalDevice, VkDisplayKHR display); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkReleaseDisplayEXT( - VkPhysicalDevice physicalDevice, - VkDisplayKHR display); -#endif - -#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT -#define VK_EXT_acquire_xlib_display 1 -#include - -#define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1 -#define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display" - -typedef VkResult (VKAPI_PTR *PFN_vkAcquireXlibDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display); -typedef VkResult (VKAPI_PTR *PFN_vkGetRandROutputDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput, VkDisplayKHR* pDisplay); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkAcquireXlibDisplayEXT( - VkPhysicalDevice physicalDevice, - Display* dpy, - VkDisplayKHR display); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetRandROutputDisplayEXT( - VkPhysicalDevice physicalDevice, - Display* dpy, - RROutput rrOutput, - VkDisplayKHR* pDisplay); -#endif -#endif /* VK_USE_PLATFORM_XLIB_XRANDR_EXT */ - -#define VK_EXT_display_surface_counter 1 -#define VK_EXT_DISPLAY_SURFACE_COUNTER_SPEC_VERSION 1 -#define VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME "VK_EXT_display_surface_counter" - - -typedef enum VkSurfaceCounterFlagBitsEXT { - VK_SURFACE_COUNTER_VBLANK_EXT = 0x00000001, - VK_SURFACE_COUNTER_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF -} VkSurfaceCounterFlagBitsEXT; -typedef VkFlags VkSurfaceCounterFlagsEXT; - -typedef struct VkSurfaceCapabilities2EXT { - VkStructureType sType; - void* pNext; - uint32_t minImageCount; - uint32_t maxImageCount; - VkExtent2D currentExtent; - VkExtent2D minImageExtent; - VkExtent2D maxImageExtent; - uint32_t maxImageArrayLayers; - VkSurfaceTransformFlagsKHR supportedTransforms; - VkSurfaceTransformFlagBitsKHR currentTransform; - VkCompositeAlphaFlagsKHR supportedCompositeAlpha; - VkImageUsageFlags supportedUsageFlags; - VkSurfaceCounterFlagsEXT supportedSurfaceCounters; -} VkSurfaceCapabilities2EXT; - - -typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilities2EXT* pSurfaceCapabilities); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilities2EXT( - VkPhysicalDevice physicalDevice, - VkSurfaceKHR surface, - VkSurfaceCapabilities2EXT* pSurfaceCapabilities); -#endif - -#define VK_EXT_display_control 1 -#define VK_EXT_DISPLAY_CONTROL_SPEC_VERSION 1 -#define VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME "VK_EXT_display_control" - - -typedef enum VkDisplayPowerStateEXT { - VK_DISPLAY_POWER_STATE_OFF_EXT = 0, - VK_DISPLAY_POWER_STATE_SUSPEND_EXT = 1, - VK_DISPLAY_POWER_STATE_ON_EXT = 2, - VK_DISPLAY_POWER_STATE_BEGIN_RANGE_EXT = VK_DISPLAY_POWER_STATE_OFF_EXT, - VK_DISPLAY_POWER_STATE_END_RANGE_EXT = VK_DISPLAY_POWER_STATE_ON_EXT, - VK_DISPLAY_POWER_STATE_RANGE_SIZE_EXT = (VK_DISPLAY_POWER_STATE_ON_EXT - VK_DISPLAY_POWER_STATE_OFF_EXT + 1), - VK_DISPLAY_POWER_STATE_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDisplayPowerStateEXT; - -typedef enum VkDeviceEventTypeEXT { - VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT = 0, - VK_DEVICE_EVENT_TYPE_BEGIN_RANGE_EXT = VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT, - VK_DEVICE_EVENT_TYPE_END_RANGE_EXT = VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT, - VK_DEVICE_EVENT_TYPE_RANGE_SIZE_EXT = (VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT - VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT + 1), - VK_DEVICE_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDeviceEventTypeEXT; - -typedef enum VkDisplayEventTypeEXT { - VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT = 0, - VK_DISPLAY_EVENT_TYPE_BEGIN_RANGE_EXT = VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT, - VK_DISPLAY_EVENT_TYPE_END_RANGE_EXT = VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT, - VK_DISPLAY_EVENT_TYPE_RANGE_SIZE_EXT = (VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT - VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT + 1), - VK_DISPLAY_EVENT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF -} VkDisplayEventTypeEXT; - -typedef struct VkDisplayPowerInfoEXT { - VkStructureType sType; - const void* pNext; - VkDisplayPowerStateEXT powerState; -} VkDisplayPowerInfoEXT; - -typedef struct VkDeviceEventInfoEXT { - VkStructureType sType; - const void* pNext; - VkDeviceEventTypeEXT deviceEvent; -} VkDeviceEventInfoEXT; - -typedef struct VkDisplayEventInfoEXT { - VkStructureType sType; - const void* pNext; - VkDisplayEventTypeEXT displayEvent; -} VkDisplayEventInfoEXT; - -typedef struct VkSwapchainCounterCreateInfoEXT { - VkStructureType sType; - const void* pNext; - VkSurfaceCounterFlagsEXT surfaceCounters; -} VkSwapchainCounterCreateInfoEXT; - - -typedef VkResult (VKAPI_PTR *PFN_vkDisplayPowerControlEXT)(VkDevice device, VkDisplayKHR display, const VkDisplayPowerInfoEXT* pDisplayPowerInfo); -typedef VkResult (VKAPI_PTR *PFN_vkRegisterDeviceEventEXT)(VkDevice device, const VkDeviceEventInfoEXT* pDeviceEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); -typedef VkResult (VKAPI_PTR *PFN_vkRegisterDisplayEventEXT)(VkDevice device, VkDisplayKHR display, const VkDisplayEventInfoEXT* pDisplayEventInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); -typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainCounterEXT)(VkDevice device, VkSwapchainKHR swapchain, VkSurfaceCounterFlagBitsEXT counter, uint64_t* pCounterValue); - -#ifndef VK_NO_PROTOTYPES -VKAPI_ATTR VkResult VKAPI_CALL vkDisplayPowerControlEXT( - VkDevice device, - VkDisplayKHR display, - const VkDisplayPowerInfoEXT* pDisplayPowerInfo); - -VKAPI_ATTR VkResult VKAPI_CALL vkRegisterDeviceEventEXT( - VkDevice device, - const VkDeviceEventInfoEXT* pDeviceEventInfo, - const VkAllocationCallbacks* pAllocator, - VkFence* pFence); - -VKAPI_ATTR VkResult VKAPI_CALL vkRegisterDisplayEventEXT( - VkDevice device, - VkDisplayKHR display, - const VkDisplayEventInfoEXT* pDisplayEventInfo, - const VkAllocationCallbacks* pAllocator, - VkFence* pFence); - -VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainCounterEXT( - VkDevice device, - VkSwapchainKHR swapchain, - VkSurfaceCounterFlagBitsEXT counter, - uint64_t* pCounterValue); -#endif - -#define VK_EXT_swapchain_colorspace 1 -#define VK_SWAPCHAIN_COLOR_SPACE_SPEC_VERSION 1 -#define VK_SWAPCHAIN_COLOR_SPACE_EXTENSION_NAME "VK_EXT_swapchain_colorspace" - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/external/GLFW/docs/CMakeLists.txt b/external/GLFW/docs/CMakeLists.txt deleted file mode 100644 index 20d85ae..0000000 --- a/external/GLFW/docs/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ - -set(glfw_DOCS_SOURCES - "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" - "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h" - "${GLFW_SOURCE_DIR}/docs/main.dox" - "${GLFW_SOURCE_DIR}/docs/news.dox" - "${GLFW_SOURCE_DIR}/docs/moving.dox" - "${GLFW_SOURCE_DIR}/docs/quick.dox" - "${GLFW_SOURCE_DIR}/docs/compile.dox" - "${GLFW_SOURCE_DIR}/docs/build.dox" - "${GLFW_SOURCE_DIR}/docs/intro.dox" - "${GLFW_SOURCE_DIR}/docs/context.dox" - "${GLFW_SOURCE_DIR}/docs/monitor.dox" - "${GLFW_SOURCE_DIR}/docs/window.dox" - "${GLFW_SOURCE_DIR}/docs/input.dox" - "${GLFW_SOURCE_DIR}/docs/vulkan.dox" - "${GLFW_SOURCE_DIR}/docs/compat.dox") - -if (GLFW_DOCUMENT_INTERNALS) - list(APPEND glfw_DOCS_SOURCES - "${GLFW_SOURCE_DIR}/docs/internal.dox" - "${GLFW_SOURCE_DIR}/src/internal.h") -endif() - -foreach(arg ${glfw_DOCS_SOURCES}) - set(GLFW_DOCS_SOURCES "${GLFW_DOCS_SOURCES} \\\n\"${arg}\"") -endforeach() - -configure_file(Doxyfile.in Doxyfile @ONLY) - -add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}" - WORKING_DIRECTORY "${GLFW_BINARY_DIR}/docs" - COMMENT "Generating HTML documentation" VERBATIM) - diff --git a/external/GLFW/docs/DoxygenLayout.xml b/external/GLFW/docs/DoxygenLayout.xml deleted file mode 100644 index 7917f91..0000000 --- a/external/GLFW/docs/DoxygenLayout.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/external/GLFW/docs/build.dox b/external/GLFW/docs/build.dox deleted file mode 100644 index 18ce13c..0000000 --- a/external/GLFW/docs/build.dox +++ /dev/null @@ -1,386 +0,0 @@ -/*! - -@page build_guide Building applications - -@tableofcontents - -This is about compiling and linking applications that use GLFW. For information on -how to write such applications, start with the -[introductory tutorial](@ref quick_guide). For information on how to compile -the GLFW library itself, see @ref compile_guide. - -This is not a tutorial on compilation or linking. It assumes basic -understanding of how to compile and link a C program as well as how to use the -specific compiler of your chosen development environment. The compilation -and linking process should be explained in your C programming material and in -the documentation for your development environment. - - -@section build_include Including the GLFW header file - -You should include the GLFW header in the source files where you use OpenGL or -GLFW. - -@code -#include -@endcode - -This header declares the GLFW API and by default also includes the OpenGL header -from your development environment. See below for how to control this. - -The GLFW header also defines any platform-specific macros needed by your OpenGL -header, so it can be included without needing any window system headers. - -For example, under Windows you are normally required to include `windows.h` -before the OpenGL header, which would bring in the whole Win32 API. The GLFW -header duplicates the small number of macros needed. - -It does this only when needed, so if `windows.h` _is_ included, the GLFW header -does not try to redefine those symbols. The reverse is not true, i.e. -`windows.h` cannot cope if any of its symbols have already been defined. - -In other words: - - - Do _not_ include the OpenGL headers yourself, as GLFW does this for you - - Do _not_ include `windows.h` or other platform-specific headers unless you - plan on using those APIs directly - - If you _do_ need to include such headers, do it _before_ including - the GLFW header and it will handle this - -If you are using an OpenGL extension loading library such as -[glad](https://github.com/Dav1dde/glad), the extension loader header should -be included _before_ the GLFW one. - -@code -#include -#include -@endcode - -Alternatively the @ref GLFW_INCLUDE_NONE macro (described below) can be used to -prevent the GLFW header from including the OpenGL header. - -@code -#define GLFW_INCLUDE_NONE -#include -#include -@endcode - - -@subsection build_macros GLFW header option macros - -These macros may be defined before the inclusion of the GLFW header and affect -its behavior. - -@anchor GLFW_DLL -__GLFW_DLL__ is required on Windows when using the GLFW DLL, to tell the -compiler that the GLFW functions are defined in a DLL. - -The following macros control which OpenGL or OpenGL ES API header is included. -Only one of these may be defined at a time. - -@anchor GLFW_INCLUDE_GLCOREARB -__GLFW_INCLUDE_GLCOREARB__ makes the GLFW header include the modern -`GL/glcorearb.h` header (`OpenGL/gl3.h` on macOS) instead of the regular OpenGL -header. - -@anchor GLFW_INCLUDE_ES1 -__GLFW_INCLUDE_ES1__ makes the GLFW header include the OpenGL ES 1.x `GLES/gl.h` -header instead of the regular OpenGL header. - -@anchor GLFW_INCLUDE_ES2 -__GLFW_INCLUDE_ES2__ makes the GLFW header include the OpenGL ES 2.0 -`GLES2/gl2.h` header instead of the regular OpenGL header. - -@anchor GLFW_INCLUDE_ES3 -__GLFW_INCLUDE_ES3__ makes the GLFW header include the OpenGL ES 3.0 -`GLES3/gl3.h` header instead of the regular OpenGL header. - -@anchor GLFW_INCLUDE_ES31 -__GLFW_INCLUDE_ES31__ makes the GLFW header include the OpenGL ES 3.1 -`GLES3/gl31.h` header instead of the regular OpenGL header. - -@anchor GLFW_INCLUDE_ES32 -__GLFW_INCLUDE_ES31__ makes the GLFW header include the OpenGL ES 3.2 -`GLES3/gl32.h` header instead of the regular OpenGL header. - -@anchor GLFW_INCLUDE_NONE -__GLFW_INCLUDE_NONE__ makes the GLFW header not include any OpenGL or OpenGL ES -API header. This is useful in combination with an extension loading library. - -If none of the above inclusion macros are defined, the standard OpenGL `GL/gl.h` -header (`OpenGL/gl.h` on macOS) is included. - -The following macros control the inclusion of additional API headers. Any -number of these may be defined simultaneously, and/or together with one of the -above macros. - -@anchor GLFW_INCLUDE_VULKAN -__GLFW_INCLUDE_VULKAN__ makes the GLFW header include the Vulkan -`vulkan/vulkan.h` header in addition to any selected OpenGL or OpenGL ES header. - -@anchor GLFW_INCLUDE_GLEXT -__GLFW_INCLUDE_GLEXT__ makes the GLFW header include the appropriate extension -header for the OpenGL or OpenGL ES header selected above after and in addition -to that header. - -@anchor GLFW_INCLUDE_GLU -__GLFW_INCLUDE_GLU__ makes the header include the GLU header in addition to the -header selected above. This should only be used with the standard OpenGL header -and only for compatibility with legacy code. GLU has been deprecated and should -not be used in new code. - -@note GLFW does not provide any of the API headers mentioned above. They must -be provided by your development environment or your OpenGL, OpenGL ES or Vulkan -SDK. - -@note None of these macros may be defined during the compilation of GLFW itself. -If your build includes GLFW and you define any these in your build files, make -sure they are not applied to the GLFW sources. - - -@section build_link Link with the right libraries - -GLFW is essentially a wrapper of various platform-specific APIs and therefore -needs to link against many different system libraries. If you are using GLFW as -a shared library / dynamic library / DLL then it takes care of these links. -However, if you are using GLFW as a static library then your executable will -need to link against these libraries. - -On Windows and macOS, the list of system libraries is static and can be -hard-coded into your build environment. See the section for your development -environment below. On Linux and other Unix-like operating systems, the list -varies but can be retrieved in various ways as described below. - -A good general introduction to linking is -[Beginner's Guide to Linkers](http://www.lurklurk.org/linkers/linkers.html) by -David Drysdale. - - -@subsection build_link_win32 With MinGW or Visual C++ on Windows - -The static version of the GLFW library is named `glfw3`. When using this -version, it is also necessary to link with some libraries that GLFW uses. - -When linking an application under Windows that uses the static version of GLFW, -you must link with `opengl32`. On some versions of MinGW, you must also -explicitly link with `gdi32`, while other versions of MinGW include it in the -set of default libraries along with other dependencies like `user32` and -`kernel32`. If you are using GLU, you must also link with `glu32`. - -The link library for the GLFW DLL is named `glfw3dll`. When compiling an -application that uses the DLL version of GLFW, you need to define the @ref -GLFW_DLL macro _before_ any inclusion of the GLFW header. This can be done -either with a compiler switch or by defining it in your source code. - -An application using the GLFW DLL does not need to link against any of its -dependencies, but you still have to link against `opengl32` if your application -uses OpenGL and `glu32` if it uses GLU. - - -@subsection build_link_cmake_source With CMake and GLFW source - -This section is about using CMake to compile and link GLFW along with your -application. If you want to use an installed binary instead, see @ref -build_link_cmake_package. - -With a few changes to your `CMakeLists.txt` you can have the GLFW source tree -built along with your application. - -When including GLFW as part of your build, you probably don't want to build the -GLFW tests, examples and documentation. To disable these, set the corresponding -cache variables before adding the GLFW source tree. - -@code -set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) -set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) -set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) -@endcode - -Then add the root directory of the GLFW source tree to your project. This -will add the `glfw` target and the necessary cache variables to your project. - -@code{.cmake} -add_subdirectory(path/to/glfw) -@endcode - -Once GLFW has been added to the project, link against it with the `glfw` target. -This adds all link-time dependencies of GLFW as it is currently configured, -the include directory for the GLFW header and, when applicable, the @ref -GLFW_DLL macro. - -@code{.cmake} -target_link_libraries(myapp glfw) -@endcode - -Note that the dependencies do not include OpenGL or GLU, as GLFW loads any -OpenGL, OpenGL ES or Vulkan libraries it needs at runtime and does not use GLU. -If your application calls OpenGL directly, instead of using a modern -[extension loader library](@ref context_glext_auto) you can find it by requiring -the OpenGL package. - -@code{.cmake} -find_package(OpenGL REQUIRED) -@endcode - -If OpenGL is found, the `OPENGL_FOUND` variable is true and the -`OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. - -@code{.cmake} -target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) -target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) -@endcode - -The OpenGL CMake package also looks for GLU. If GLU is found, the -`OPENGL_GLU_FOUND` variable is true and the `OPENGL_INCLUDE_DIR` and -`OPENGL_glu_LIBRARY` cache variables can be used. - -@code{.cmake} -target_link_libraries(myapp ${OPENGL_glu_LIBRARY}) -@endcode - -@note GLU has been deprecated and should not be used in new code, but some -legacy code requires it. See the [section on GLU](@ref moving_glu) in the -transition guide for suggested replacements. - - -@subsection build_link_cmake_package With CMake and installed GLFW binaries - -This section is about using CMake to link GLFW after it has been built and -installed. If you want to build it along with your application instead, see -@ref build_link_cmake_source. - -With a few changes to your `CMakeLists.txt` you can locate the package and -target files generated when GLFW is installed. - -@code{.cmake} -find_package(glfw3 3.3 REQUIRED) -@endcode - -Once GLFW has been added to the project, link against it with the `glfw` target. -This adds all link-time dependencies of GLFW as it is currently configured, -the include directory for the GLFW header and, when applicable, the @ref -GLFW_DLL macro. - -@code{.cmake} -target_link_libraries(myapp glfw) -@endcode - -Note that the dependencies do not include OpenGL or GLU, as GLFW loads any -OpenGL, OpenGL ES or Vulkan libraries it needs at runtime and does not use GLU. -If your application calls OpenGL directly, instead of using a modern -[extension loader library](@ref context_glext_auto) you can find it by requiring -the OpenGL package. - -@code{.cmake} -find_package(OpenGL REQUIRED) -@endcode - -If OpenGL is found, the `OPENGL_FOUND` variable is true and the -`OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. - -@code{.cmake} -target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) -target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) -@endcode - -The OpenGL CMake package also looks for GLU. If GLU is found, the -`OPENGL_GLU_FOUND` variable is true and the `OPENGL_INCLUDE_DIR` and -`OPENGL_glu_LIBRARY` cache variables can be used. - -@code{.cmake} -target_link_libraries(myapp ${OPENGL_glu_LIBRARY}) -@endcode - -@note GLU has been deprecated and should not be used in new code, but some -legacy code requires it. See the [section on GLU](@ref moving_glu) in the -transition guide for suggested replacements. - - -@subsection build_link_pkgconfig With makefiles and pkg-config on Unix - -GLFW supports [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/), -and the `glfw3.pc` pkg-config file is generated when the GLFW library is built -and is installed along with it. A pkg-config file describes all necessary -compile-time and link-time flags and dependencies needed to use a library. When -they are updated or if they differ between systems, you will get the correct -ones automatically. - -A typical compile and link command-line when using the static version of the -GLFW library may look like this: - -@code{.sh} -cc `pkg-config --cflags glfw3` -o myprog myprog.c `pkg-config --static --libs glfw3` -@endcode - -If you are using the shared version of the GLFW library, omit the `--static` -flag. - -@code{.sh} -cc `pkg-config --cflags glfw3` -o myprog myprog.c `pkg-config --libs glfw3` -@endcode - -You can also use the `glfw3.pc` file without installing it first, by using the -`PKG_CONFIG_PATH` environment variable. - -@code{.sh} -env PKG_CONFIG_PATH=path/to/glfw/src cc `pkg-config --cflags glfw3` -o myprog myprog.c `pkg-config --libs glfw3` -@endcode - -The dependencies do not include OpenGL or GLU, as GLFW loads any OpenGL, OpenGL -ES or Vulkan libraries it needs at runtime and does not use GLU. On macOS, GLU -is built into the OpenGL framework, so if you need GLU you don't need to do -anything extra. If you need GLU and are using Linux or BSD, you should add the -`glu` pkg-config package. - -@code{.sh} -cc `pkg-config --cflags glfw3 glu` -o myprog myprog.c `pkg-config --libs glfw3 glu` -@endcode - -@note GLU has been deprecated and should not be used in new code, but some -legacy code requires it. See the [section on GLU](@ref moving_glu) in the -transition guide for suggested replacements. - -If you are using the static version of the GLFW library, make sure you don't -link statically against GLU. - -@code{.sh} -cc `pkg-config --cflags glfw3 glu` -o myprog myprog.c `pkg-config --static --libs glfw3` `pkg-config --libs glu` -@endcode - - -@subsection build_link_xcode With Xcode on macOS - -If you are using the dynamic library version of GLFW, add it to the project -dependencies. - -If you are using the static library version of GLFW, add it and the Cocoa, -OpenGL, IOKit and CoreVideo frameworks to the project as dependencies. They can -all be found in `/System/Library/Frameworks`. - - -@subsection build_link_osx With command-line on macOS - -It is recommended that you use [pkg-config](@ref build_link_pkgconfig) when -building from the command line on macOS. That way you will get any new -dependencies added automatically. If you still wish to build manually, you need -to add the required frameworks and libraries to your command-line yourself using -the `-l` and `-framework` switches. - -If you are using the dynamic GLFW library, which is named `libglfw.3.dylib`, do: - -@code{.sh} -cc -o myprog myprog.c -lglfw -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -@endcode - -If you are using the static library, named `libglfw3.a`, substitute `-lglfw3` -for `-lglfw`. - -Note that you do not add the `.framework` extension to a framework when linking -against it from the command-line. - -The OpenGL framework contains both the OpenGL and GLU APIs, so there is nothing -special to do when using GLU. Also note that even though your machine may have -`libGL`-style OpenGL libraries, they are for use with the X Window System and -will _not_ work with the macOS native version of GLFW. - -*/ diff --git a/external/GLFW/docs/compat.dox b/external/GLFW/docs/compat.dox deleted file mode 100644 index a27f58f..0000000 --- a/external/GLFW/docs/compat.dox +++ /dev/null @@ -1,236 +0,0 @@ -/*! - -@page compat_guide Standards conformance - -@tableofcontents - -This guide describes the various API extensions used by this version of GLFW. -It lists what are essentially implementation details, but which are nonetheless -vital knowledge for developers intending to deploy their applications on a wide -range of machines. - -The information in this guide is not a part of GLFW API, but merely -preconditions for some parts of the library to function on a given machine. Any -part of this information may change in future versions of GLFW and that will not -be considered a breaking API change. - - -@section compat_x11 X11 extensions, protocols and IPC standards - -As GLFW uses Xlib directly, without any intervening toolkit -library, it has sole responsibility for interacting well with the many and -varied window managers in use on Unix-like systems. In order for applications -and window managers to work well together, a number of standards and -conventions have been developed that regulate behavior outside the scope of the -X11 API; most importantly the -[Inter-Client Communication Conventions Manual](http://www.tronche.com/gui/x/icccm/) -(ICCCM) and -[Extended Window Manager Hints](http://standards.freedesktop.org/wm-spec/wm-spec-latest.html) -(EWMH) standards. - -GLFW uses the `_MOTIF_WM_HINTS` window property to support borderless windows. -If the running window manager does not support this property, the -`GLFW_DECORATED` hint will have no effect. - -GLFW uses the ICCCM `WM_DELETE_WINDOW` protocol to intercept the user -attempting to close the GLFW window. If the running window manager does not -support this protocol, the close callback will never be called. - -GLFW uses the EWMH `_NET_WM_PING` protocol, allowing the window manager notify -the user when the application has stopped responding, i.e. when it has ceased to -process events. If the running window manager does not support this protocol, -the user will not be notified if the application locks up. - -GLFW uses the EWMH `_NET_WM_STATE_FULLSCREEN` window state to tell the window -manager to make the GLFW window full screen. If the running window manager does -not support this state, full screen windows may not work properly. GLFW has -a fallback code path in case this state is unavailable, but every window manager -behaves slightly differently in this regard. - -GLFW uses the EWMH `_NET_WM_BYPASS_COMPOSITOR` window property to tell a -compositing window manager to un-redirect full screen GLFW windows. If the -running window manager uses compositing but does not support this property then -additional copying may be performed for each buffer swap of full screen windows. - -GLFW uses the -[clipboard manager protocol](http://www.freedesktop.org/wiki/ClipboardManager/) -to push a clipboard string (i.e. selection) owned by a GLFW window about to be -destroyed to the clipboard manager. If there is no running clipboard manager, -the clipboard string will be unavailable once the window has been destroyed. - -GLFW uses the -[X drag-and-drop protocol](http://www.freedesktop.org/wiki/Specifications/XDND/) -to provide file drop events. If the application originating the drag does not -support this protocol, drag and drop will not work. - -GLFW uses the XRandR 1.3 extension to provide multi-monitor support. If the -running X server does not support this version of this extension, multi-monitor -support will not function and only a single, desktop-spanning monitor will be -reported. - -GLFW uses the XRandR 1.3 and Xf86vidmode extensions to provide gamma ramp -support. If the running X server does not support either or both of these -extensions, gamma ramp support will not function. - -GLFW uses the Xkb extension and detectable auto-repeat to provide keyboard -input. If the running X server does not support this extension, a non-Xkb -fallback path is used. - -GLFW uses the XInput2 extension to provide raw, non-accelerated mouse motion -when the cursor is disabled. If the running X server does not support this -extension, regular accelerated mouse motion will be used. - -GLFW uses both the XRender extension and the compositing manager to support -transparent window framebuffers. If the running X server does not support this -extension or there is no running compositing manager, the `GLFW_TRANSPARENT` -framebuffer hint will have no effect. - - -@section compat_glx GLX extensions - -The GLX API is the default API used to create OpenGL contexts on Unix-like -systems using the X Window System. - -GLFW uses the GLX 1.3 `GLXFBConfig` functions to enumerate and select framebuffer pixel -formats. If GLX 1.3 is not supported, @ref glfwInit will fail. - -GLFW uses the `GLX_MESA_swap_control,` `GLX_EXT_swap_control` and -`GLX_SGI_swap_control` extensions to provide vertical retrace synchronization -(or _vsync_), in that order of preference. Where none of these extension are -available, calling @ref glfwSwapInterval will have no effect. - -GLFW uses the `GLX_ARB_multisample` extension to create contexts with -multisampling anti-aliasing. Where this extension is unavailable, the -`GLFW_SAMPLES` hint will have no effect. - -GLFW uses the `GLX_ARB_create_context` extension when available, even when -creating OpenGL contexts of version 2.1 and below. Where this extension is -unavailable, the `GLFW_CONTEXT_VERSION_MAJOR` and `GLFW_CONTEXT_VERSION_MINOR` -hints will only be partially supported, the `GLFW_OPENGL_DEBUG_CONTEXT` hint -will have no effect, and setting the `GLFW_OPENGL_PROFILE` or -`GLFW_OPENGL_FORWARD_COMPAT` hints to `GLFW_TRUE` will cause @ref -glfwCreateWindow to fail. - -GLFW uses the `GLX_ARB_create_context_profile` extension to provide support for -context profiles. Where this extension is unavailable, setting the -`GLFW_OPENGL_PROFILE` hint to anything but `GLFW_OPENGL_ANY_PROFILE`, or setting -`GLFW_CLIENT_API` to anything but `GLFW_OPENGL_API` or `GLFW_NO_API` will cause -@ref glfwCreateWindow to fail. - -GLFW uses the `GLX_ARB_context_flush_control` extension to provide control over -whether a context is flushed when it is released (made non-current). Where this -extension is unavailable, the `GLFW_CONTEXT_RELEASE_BEHAVIOR` hint will have no -effect and the context will always be flushed when released. - -GLFW uses the `GLX_ARB_framebuffer_sRGB` and `GLX_EXT_framebuffer_sRGB` -extensions to provide support for sRGB framebuffers. Where both of these -extensions are unavailable, the `GLFW_SRGB_CAPABLE` hint will have no effect. - - -@section compat_wgl WGL extensions - -The WGL API is used to create OpenGL contexts on Microsoft Windows and other -implementations of the Win32 API, such as Wine. - -GLFW uses either the `WGL_EXT_extension_string` or the -`WGL_ARB_extension_string` extension to check for the presence of all other WGL -extensions listed below. If both are available, the EXT one is preferred. If -neither is available, no other extensions are used and many GLFW features -related to context creation will have no effect or cause errors when used. - -GLFW uses the `WGL_EXT_swap_control` extension to provide vertical retrace -synchronization (or _vsync_). Where this extension is unavailable, calling @ref -glfwSwapInterval will have no effect. - -GLFW uses the `WGL_ARB_pixel_format` and `WGL_ARB_multisample` extensions to -create contexts with multisampling anti-aliasing. Where these extensions are -unavailable, the `GLFW_SAMPLES` hint will have no effect. - -GLFW uses the `WGL_ARB_create_context` extension when available, even when -creating OpenGL contexts of version 2.1 and below. Where this extension is -unavailable, the `GLFW_CONTEXT_VERSION_MAJOR` and `GLFW_CONTEXT_VERSION_MINOR` -hints will only be partially supported, the `GLFW_OPENGL_DEBUG_CONTEXT` hint -will have no effect, and setting the `GLFW_OPENGL_PROFILE` or -`GLFW_OPENGL_FORWARD_COMPAT` hints to `GLFW_TRUE` will cause @ref -glfwCreateWindow to fail. - -GLFW uses the `WGL_ARB_create_context_profile` extension to provide support for -context profiles. Where this extension is unavailable, setting the -`GLFW_OPENGL_PROFILE` hint to anything but `GLFW_OPENGL_ANY_PROFILE` will cause -@ref glfwCreateWindow to fail. - -GLFW uses the `WGL_ARB_context_flush_control` extension to provide control over -whether a context is flushed when it is released (made non-current). Where this -extension is unavailable, the `GLFW_CONTEXT_RELEASE_BEHAVIOR` hint will have no -effect and the context will always be flushed when released. - -GLFW uses the `WGL_ARB_framebuffer_sRGB` and `WGL_EXT_framebuffer_sRGB` -extensions to provide support for sRGB framebuffers. Where both of these -extension are unavailable, the `GLFW_SRGB_CAPABLE` hint will have no effect. - - -@section compat_osx OpenGL on macOS - -Support for OpenGL 3.2 and above was introduced with OS X 10.7 and even then -only forward-compatible, core profile contexts are supported. Support for -OpenGL 4.1 was introduced with OS X 10.9, also limited to forward-compatible, -core profile contexts. There is also still no mechanism for requesting debug -contexts or no-error contexts. Versions of Mac OS X earlier than 10.7 support -at most OpenGL version 2.1. - -Because of this, on OS X 10.7 and later, the `GLFW_CONTEXT_VERSION_MAJOR` and -`GLFW_CONTEXT_VERSION_MINOR` hints will cause @ref glfwCreateWindow to fail if -given version 3.0 or 3.1. The `GLFW_OPENGL_FORWARD_COMPAT` hint must be set to -`GLFW_TRUE` and the `GLFW_OPENGL_PROFILE` hint must be set to -`GLFW_OPENGL_CORE_PROFILE` when creating OpenGL 3.2 and later contexts. The -`GLFW_OPENGL_DEBUG_CONTEXT` and `GLFW_CONTEXT_NO_ERROR` hints are ignored. - -Also, on Mac OS X 10.6 and below, the `GLFW_CONTEXT_VERSION_MAJOR` and -`GLFW_CONTEXT_VERSION_MINOR` hints will fail if given a version above 2.1, -setting the `GLFW_OPENGL_PROFILE` or `GLFW_OPENGL_FORWARD_COMPAT` hints to -a non-default value will cause @ref glfwCreateWindow to fail and the -`GLFW_OPENGL_DEBUG_CONTEXT` hint is ignored. - - -@section compat_vulkan Vulkan loader and API - -By default, GLFW uses the standard system-wide Vulkan loader to access the -Vulkan API on all platforms except macOS. This is installed by both graphics -drivers and Vulkan SDKs. If either the loader or at least one minimally -functional ICD is missing, @ref glfwVulkanSupported will return `GLFW_FALSE` and -all other Vulkan-related functions will fail with an @ref GLFW_API_UNAVAILABLE -error. - - -@section compat_wsi Vulkan WSI extensions - -The Vulkan WSI extensions are used to create Vulkan surfaces for GLFW windows on -all supported platforms. - -GLFW uses the `VK_KHR_surface` and `VK_KHR_win32_surface` extensions to create -surfaces on Microsoft Windows. If any of these extensions are not available, -@ref glfwGetRequiredInstanceExtensions will return an empty list and window -surface creation will fail. - -GLFW uses the `VK_KHR_surface` and `VK_MVK_macos_surface` extensions to create -surfaces on macOS. If any of these extensions are not available, @ref -glfwGetRequiredInstanceExtensions will return an empty list and window surface -creation will fail. - -GLFW uses the `VK_KHR_surface` and either the `VK_KHR_xlib_surface` or -`VK_KHR_xcb_surface` extensions to create surfaces on X11. If `VK_KHR_surface` -or both `VK_KHR_xlib_surface` and `VK_KHR_xcb_surface` are not available, @ref -glfwGetRequiredInstanceExtensions will return an empty list and window surface -creation will fail. - -GLFW uses the `VK_KHR_surface` and `VK_KHR_wayland_surface` extensions to create -surfaces on Wayland. If any of these extensions are not available, @ref -glfwGetRequiredInstanceExtensions will return an empty list and window surface -creation will fail. - -GLFW uses the `VK_KHR_surface` and `VK_KHR_mir_surface` extensions to create -surfaces on Mir. If any of these extensions are not available, @ref -glfwGetRequiredInstanceExtensions will return an empty list and window surface -creation will fail. - -*/ diff --git a/external/GLFW/docs/extra.css b/external/GLFW/docs/extra.css deleted file mode 100644 index 42091cd..0000000 --- a/external/GLFW/docs/extra.css +++ /dev/null @@ -1 +0,0 @@ -.sm-dox,.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted,.sm-dox ul a:hover{background:none;text-shadow:none}.sm-dox a span.sub-arrow{border-color:#f2f2f2 transparent transparent transparent}.sm-dox a span.sub-arrow:active,.sm-dox a span.sub-arrow:focus,.sm-dox a span.sub-arrow:hover,.sm-dox a:hover span.sub-arrow{border-color:#f60 transparent transparent transparent}.sm-dox ul a span.sub-arrow:active,.sm-dox ul a span.sub-arrow:focus,.sm-dox ul a span.sub-arrow:hover,.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent #f60}.sm-dox ul a:hover{background:#666;text-shadow:none}.sm-dox ul.sm-nowrap a{color:#4d4d4d;text-shadow:none}#main-nav,#main-menu,#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.memdoc,dl.reflist dd,div.toc li,.ah,span.lineno,span.lineno a,span.lineno a:hover,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,.doxtable code{background:none}#titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,hr,.memSeparator{border:none}#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.reflist dt a.el,.levels span,.directory .levels span{text-shadow:none}.memdoc,dl.reflist dd{box-shadow:none}div.headertitle,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,table.doxtable code{padding:0}#nav-path,.directory .levels,span.lineno{display:none}html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code{background:#f2f2f2}body{color:#4d4d4d}h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em{color:#1a1a1a;border-bottom:none}h1{padding-top:.5em;font-size:180%}h2{padding-top:.5em;margin-bottom:0;font-size:140%}h3{padding-top:.5em;margin-bottom:0;font-size:110%}.glfwheader{font-size:16px;height:64px;max-width:920px;min-width:800px;padding:0 32px;margin:0 auto}#glfwhome{line-height:64px;padding-right:48px;color:#666;font-size:2.5em;background:url("http://www.glfw.org/css/arrow.png") no-repeat right}.glfwnavbar{list-style-type:none;margin:0 auto;float:right}#glfwhome,.glfwnavbar li{float:left}.glfwnavbar a,.glfwnavbar a:visited{line-height:64px;margin-left:2em;display:block;color:#666}#glfwhome,.glfwnavbar a,.glfwnavbar a:visited{transition:.35s ease}#titlearea,.footer{color:#666}address.footer{text-align:center;padding:2em;margin-top:3em}#top{background:#666}#main-nav{max-width:960px;min-width:800px;margin:0 auto;font-size:13px}#main-menu{max-width:920px;min-width:800px;margin:0 auto;font-size:13px}.memtitle{display:none}.memproto,.memname{font-weight:bold;text-shadow:none}#main-menu{height:36px;display:block;position:relative}#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li{color:#f2f2f2}#main-menu li ul.sm-nowrap li a{color:#4d4d4d}#main-menu li ul.sm-nowrap li a:hover{color:#f60}.contents{min-height:590px}div.contents,div.header{max-width:920px;margin:0 auto;padding:0 32px;background:#fff none}table.doxtable th,dl.reflist dt{background:linear-gradient(to bottom, #ffa733 0, #f60 100%);box-shadow:inset 0 0 32px #f60;text-shadow:0 -1px 1px #b34700;text-align:left;color:#fff}dl.reflist dt a.el{color:#f60;padding:.2em;border-radius:4px;background-color:#ffe0cc}div.toc{float:none;width:auto}div.toc h3{font-size:1.17em}div.toc ul{padding-left:1.5em}div.toc li{font-size:1em;padding-left:0;list-style-type:disc}div.toc,.memproto,div.qindex,div.ah{background:linear-gradient(to bottom, #f2f2f2 0, #e6e6e6 100%);box-shadow:inset 0 0 32px #e6e6e6;text-shadow:0 1px 1px #fff;color:#1a1a1a;border:2px solid #e6e6e6;border-radius:4px}.paramname{color:#803300}dl.reflist dt{border:2px solid #f60;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:none}dl.reflist dd{border:2px solid #f60;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top:none}table.doxtable{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,#main-menu a:hover,span.lineno a:hover{color:#f60;text-decoration:none}div.directory{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}hr,.memSeparator{height:2px;background:linear-gradient(to right, #f2f2f2 0, #d9d9d9 50%, #f2f2f2 100%)}dl.note,dl.pre,dl.post,dl.invariant{background:linear-gradient(to bottom, #ddfad1 0, #cbf7ba 100%);box-shadow:inset 0 0 32px #baf5a3;color:#1e5309;border:2px solid #afe599}dl.warning,dl.attention{background:linear-gradient(to bottom, #fae8d1 0, #f7ddba 100%);box-shadow:inset 0 0 32px #f5d1a3;color:#533309;border:2px solid #e5c499}dl.deprecated,dl.bug{background:linear-gradient(to bottom, #fad1e3 0, #f7bad6 100%);box-shadow:inset 0 0 32px #f5a3c8;color:#53092a;border:2px solid #e599bb}dl.todo,dl.test{background:linear-gradient(to bottom, #d1ecfa 0, #bae3f7 100%);box-shadow:inset 0 0 32px #a3daf5;color:#093a53;border:2px solid #99cce5}dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test{border-radius:4px;padding:1em;text-shadow:0 1px 1px #fff;margin:1em 0}.note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited{color:inherit}div.line{line-height:inherit}div.fragment,pre.fragment{background:#f2f2f2;border-radius:4px;border:none;padding:1em;overflow:auto;border-left:4px solid #ccc;margin:1em 0}.lineno a,.lineno a:visited,.line,pre.fragment{color:#4d4d4d}span.preprocessor,span.comment{color:#007899}a.code,a.code:visited{color:#e64500}span.keyword,span.keywordtype,span.keywordflow{color:#404040;font-weight:bold}span.stringliteral{color:#360099}code{padding:.1em;border-radius:4px} diff --git a/external/GLFW/docs/extra.less b/external/GLFW/docs/extra.less deleted file mode 100644 index 53e94f7..0000000 --- a/external/GLFW/docs/extra.less +++ /dev/null @@ -1,414 +0,0 @@ -// NOTE: Please use this file to perform modifications on default style sheets. -// -// You need to install a few Ruby gems to generate extra.css from this file: -// gem install less therubyracer -// -// Run this command to regenerate extra.css after you're finished with changes: -// lessc --compress extra.less > extra.css -// -// Alternatively you can use online services to regenerate extra.css. - - -// Default text color for page contents -@default-text-color: hsl(0,0%,30%); - -// Page header, footer, table rows, inline codes and definition lists -@header-footer-background-color: hsl(0,0%,95%); - -// Page header, footer links and navigation bar background -@header-footer-link-color: hsl(0,0%,40%); - -// Doxygen navigation bar links -@navbar-link-color: @header-footer-background-color; - -// Page content background color -@content-background-color: hsl(0,0%,100%); - -// Bold, italic, h1, h2, ... and table of contents -@heading-color: hsl(0,0%,10%); - -// Function, enum and macro definition separator -@def-separator-color: @header-footer-background-color; - -// Base color hue -@base-hue: 24; - -// Default color used for links -@default-link-color: hsl(@base-hue,100%,50%); - -// Doxygen navigation bar active tab -@tab-text-color: hsl(0,0%,100%); -@tab-background-color1: @default-link-color; -@tab-background-color2: lighten(spin(@tab-background-color1, 10), 10%); - -// Table borders -@default-border-color: @default-link-color; - -// Table header -@table-text-color: @tab-text-color; -@table-background-color1: @tab-background-color1; -@table-background-color2: @tab-background-color2; - -// Table of contents, data structure index and prototypes -@toc-background-color1: hsl(0,0%,90%); -@toc-background-color2: lighten(@toc-background-color1, 5%); - -// Function prototype parameters color -@prototype-param-color: darken(@default-link-color, 25%); - -// Message box color: note, pre, post and invariant -@box-note-color: hsl(103,80%,85%); - -// Message box color: warning and attention -@box-warning-color: hsl(34,80%,85%); - -// Message box color: deprecated and bug -@box-bug-color: hsl(333,80%,85%); - -// Message box color: todo and test -@box-todo-color: hsl(200,80%,85%); - -// Message box helper function -.message-box(@base-color) { - background:linear-gradient(to bottom,lighten(@base-color, 5%) 0%,@base-color 100%); - box-shadow:inset 0 0 32px darken(@base-color, 5%); - color:darken(@base-color, 67%); - border:2px solid desaturate(darken(@base-color, 10%), 20%); -} - -.sm-dox,.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted,.sm-dox ul a:hover { - background:none; - text-shadow:none; -} - -.sm-dox a span.sub-arrow { - border-color:@navbar-link-color transparent transparent transparent; -} - -.sm-dox a span.sub-arrow:active,.sm-dox a span.sub-arrow:focus,.sm-dox a span.sub-arrow:hover,.sm-dox a:hover span.sub-arrow { - border-color:@default-link-color transparent transparent transparent; -} - -.sm-dox ul a span.sub-arrow:active,.sm-dox ul a span.sub-arrow:focus,.sm-dox ul a span.sub-arrow:hover,.sm-dox ul a:hover span.sub-arrow { - border-color:transparent transparent transparent @default-link-color; -} - -.sm-dox ul a:hover { - background:@header-footer-link-color; - text-shadow:none; -} - -.sm-dox ul.sm-nowrap a { - color:@default-text-color; - text-shadow:none; -} - -#main-nav,#main-menu,#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.memdoc,dl.reflist dd,div.toc li,.ah,span.lineno,span.lineno a,span.lineno a:hover,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,.doxtable code { - background:none; -} - -#titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,hr,.memSeparator { - border:none; -} - -#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.reflist dt a.el,.levels span,.directory .levels span { - text-shadow:none; -} - -.memdoc,dl.reflist dd { - box-shadow:none; -} - -div.headertitle,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,table.doxtable code { - padding:0; -} - -#nav-path,.directory .levels,span.lineno { - display:none; -} - -html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code { - background:@header-footer-background-color; -} - -body { - color:@default-text-color; -} - -h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em { - color:@heading-color; - border-bottom:none; -} - -h1 { - padding-top:0.5em; - font-size:180%; -} - -h2 { - padding-top:0.5em; - margin-bottom:0; - font-size:140%; -} - -h3 { - padding-top:0.5em; - margin-bottom:0; - font-size:110%; -} - -.glfwheader { - font-size:16px; - height:64px; - max-width:920px; - min-width:800px; - padding:0 32px; - margin:0 auto; -} - -#glfwhome { - line-height:64px; - padding-right:48px; - color:@header-footer-link-color; - font-size:2.5em; - background:url("http://www.glfw.org/css/arrow.png") no-repeat right; -} - -.glfwnavbar { - list-style-type:none; - margin:0 auto; - float:right; -} - -#glfwhome,.glfwnavbar li { - float:left; -} - -.glfwnavbar a,.glfwnavbar a:visited { - line-height:64px; - margin-left:2em; - display:block; - color:@header-footer-link-color; -} - -#glfwhome,.glfwnavbar a,.glfwnavbar a:visited { - transition:.35s ease; -} - -#titlearea,.footer { - color:@header-footer-link-color; -} - -address.footer { - text-align:center; - padding:2em; - margin-top:3em; -} - -#top { - background:@header-footer-link-color; -} - -#main-nav { - max-width:960px; - min-width:800px; - margin:0 auto; - font-size:13px; -} - -#main-menu { - max-width:920px; - min-width:800px; - margin:0 auto; - font-size:13px; -} - -.memtitle { - display:none; -} - -.memproto,.memname { - font-weight:bold; - text-shadow:none; -} - -#main-menu { - height:36px; - display:block; - position:relative; -} - -#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li { - color:@navbar-link-color; -} - -#main-menu li ul.sm-nowrap li a { - color:@default-text-color; -} - -#main-menu li ul.sm-nowrap li a:hover { - color:@default-link-color; -} - -.contents { - min-height:590px; -} - -div.contents,div.header { - max-width:920px; - margin:0 auto; - padding:0 32px; - background:@content-background-color none; -} - -table.doxtable th,dl.reflist dt { - background:linear-gradient(to bottom,@table-background-color2 0%,@table-background-color1 100%); - box-shadow:inset 0 0 32px @table-background-color1; - text-shadow:0 -1px 1px darken(@table-background-color1, 15%); - text-align:left; - color:@table-text-color; -} - -dl.reflist dt a.el { - color:@default-link-color; - padding:.2em; - border-radius:4px; - background-color:lighten(@default-link-color, 40%); -} - -div.toc { - float:none; - width:auto; -} - -div.toc h3 { - font-size:1.17em; -} - -div.toc ul { - padding-left:1.5em; -} - -div.toc li { - font-size:1em; - padding-left:0; - list-style-type:disc; -} - -div.toc,.memproto,div.qindex,div.ah { - background:linear-gradient(to bottom,@toc-background-color2 0%,@toc-background-color1 100%); - box-shadow:inset 0 0 32px @toc-background-color1; - text-shadow:0 1px 1px lighten(@toc-background-color2, 10%); - color:@heading-color; - border:2px solid @toc-background-color1; - border-radius:4px; -} - -.paramname { - color:@prototype-param-color; -} - -dl.reflist dt { - border:2px solid @default-border-color; - border-top-left-radius:4px; - border-top-right-radius:4px; - border-bottom:none; -} - -dl.reflist dd { - border:2px solid @default-border-color; - border-bottom-right-radius:4px; - border-bottom-left-radius:4px; - border-top:none; -} - -table.doxtable { - border-collapse:inherit; - border-spacing:0; - border:2px solid @default-border-color; - border-radius:4px; -} - -a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,#main-menu a:hover,span.lineno a:hover { - color:@default-link-color; - text-decoration:none; -} - -div.directory { - border-collapse:inherit; - border-spacing:0; - border:2px solid @default-border-color; - border-radius:4px; -} - -hr,.memSeparator { - height:2px; - background:linear-gradient(to right,@def-separator-color 0%,darken(@def-separator-color, 10%) 50%,@def-separator-color 100%); -} - -dl.note,dl.pre,dl.post,dl.invariant { - .message-box(@box-note-color); -} - -dl.warning,dl.attention { - .message-box(@box-warning-color); -} - -dl.deprecated,dl.bug { - .message-box(@box-bug-color); -} - -dl.todo,dl.test { - .message-box(@box-todo-color); -} - -dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test { - border-radius:4px; - padding:1em; - text-shadow:0 1px 1px hsl(0,0%,100%); - margin:1em 0; -} - -.note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited { - color:inherit; -} - -div.line { - line-height:inherit; -} - -div.fragment,pre.fragment { - background:hsl(0,0%,95%); - border-radius:4px; - border:none; - padding:1em; - overflow:auto; - border-left:4px solid hsl(0,0%,80%); - margin:1em 0; -} - -.lineno a,.lineno a:visited,.line,pre.fragment { - color:@default-text-color; -} - -span.preprocessor,span.comment { - color:hsl(193,100%,30%); -} - -a.code,a.code:visited { - color:hsl(18,100%,45%); -} - -span.keyword,span.keywordtype,span.keywordflow { - color:darken(@default-text-color, 5%); - font-weight:bold; -} - -span.stringliteral { - color:hsl(261,100%,30%); -} - -code { - padding:.1em; - border-radius:4px; -} diff --git a/external/GLFW/docs/header.html b/external/GLFW/docs/header.html deleted file mode 100644 index 16b09a7..0000000 --- a/external/GLFW/docs/header.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -$projectname: $title -$title - - - -$treeview -$search -$mathjax - -$extrastylesheet - - -
- - - - - diff --git a/external/GLFW/docs/monitor.dox b/external/GLFW/docs/monitor.dox deleted file mode 100644 index 708461f..0000000 --- a/external/GLFW/docs/monitor.dox +++ /dev/null @@ -1,224 +0,0 @@ -/*! - -@page monitor_guide Monitor guide - -@tableofcontents - -This guide introduces the monitor related functions of GLFW. For details on -a specific function in this category, see the @ref monitor. There are also -guides for the other areas of GLFW. - - - @ref intro_guide - - @ref window_guide - - @ref context_guide - - @ref vulkan_guide - - @ref input_guide - - -@section monitor_object Monitor objects - -A monitor object represents a currently connected monitor and is represented as -a pointer to the [opaque](https://en.wikipedia.org/wiki/Opaque_data_type) type -@ref GLFWmonitor. Monitor objects cannot be created or destroyed by the -application and retain their addresses until the monitors they represent are -disconnected or until the library is [terminated](@ref intro_init_terminate). - -Each monitor has a current video mode, a list of supported video modes, -a virtual position, a human-readable name, an estimated physical size and -a gamma ramp. One of the monitors is the primary monitor. - -The virtual position of a monitor is in -[screen coordinates](@ref coordinate_systems) and, together with the current -video mode, describes the viewports that the connected monitors provide into the -virtual desktop that spans them. - -To see how GLFW views your monitor setup and its available video modes, run the -`monitors` test program. - - -@subsection monitor_monitors Retrieving monitors - -The primary monitor is returned by @ref glfwGetPrimaryMonitor. It is the user's -preferred monitor and is usually the one with global UI elements like task bar -or menu bar. - -@code -GLFWmonitor* primary = glfwGetPrimaryMonitor(); -@endcode - -You can retrieve all currently connected monitors with @ref glfwGetMonitors. -See the reference documentation for the lifetime of the returned array. - -@code -int count; -GLFWmonitor** monitors = glfwGetMonitors(&count); -@endcode - -The primary monitor is always the first monitor in the returned array, but other -monitors may be moved to a different index when a monitor is connected or -disconnected. - - -@subsection monitor_event Monitor configuration changes - -If you wish to be notified when a monitor is connected or disconnected, set -a monitor callback. - -@code -glfwSetMonitorCallback(monitor_callback); -@endcode - -The callback function receives the handle for the monitor that has been -connected or disconnected and the event that occurred. - -@code -void monitor_callback(GLFWmonitor* monitor, int event) -{ - if (event == GLFW_CONNECTED) - { - // The monitor was connected - } - else if (event == GLFW_DISCONNECTED) - { - // The monitor was disconnected - } -} -@endcode - -If a monitor is disconnected, any windows that are full screen on it get forced -into windowed mode. - - -@section monitor_properties Monitor properties - -Each monitor has a current video mode, a list of supported video modes, -a virtual position, a human-readable name, an estimated physical size and -a gamma ramp. - - -@subsection monitor_modes Video modes - -GLFW generally does a good job selecting a suitable video mode when you create -a full screen window, change its video mode or or make a windowed one full -screen, but it is sometimes useful to know exactly which video modes are -supported. - -Video modes are represented as @ref GLFWvidmode structures. You can get an -array of the video modes supported by a monitor with @ref glfwGetVideoModes. -See the reference documentation for the lifetime of the returned array. - -@code -int count; -GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); -@endcode - -To get the current video mode of a monitor call @ref glfwGetVideoMode. See the -reference documentation for the lifetime of the returned pointer. - -@code -const GLFWvidmode* mode = glfwGetVideoMode(monitor); -@endcode - -The resolution of a video mode is specified in -[screen coordinates](@ref coordinate_systems), not pixels. - - -@subsection monitor_size Physical size - -The physical size of a monitor in millimetres, or an estimation of it, can be -retrieved with @ref glfwGetMonitorPhysicalSize. This has no relation to its -current _resolution_, i.e. the width and height of its current -[video mode](@ref monitor_modes). - -@code -int widthMM, heightMM; -glfwGetMonitorPhysicalSize(monitor, &widthMM, &heightMM); -@endcode - -This can, for example, be used together with the current video mode to calculate -the DPI of a monitor. - -@code -const double dpi = mode->width / (widthMM / 25.4); -@endcode - - -@subsection monitor_pos Virtual position - -The position of the monitor on the virtual desktop, in -[screen coordinates](@ref coordinate_systems), can be retrieved with @ref -glfwGetMonitorPos. - -@code -int xpos, ypos; -glfwGetMonitorPos(monitor, &xpos, &ypos); -@endcode - - -@subsection monitor_name Human-readable name - -The human-readable, UTF-8 encoded name of a monitor is returned by @ref -glfwGetMonitorName. See the reference documentation for the lifetime of the -returned string. - -@code -const char* name = glfwGetMonitorName(monitor); -@endcode - -Monitor names are not guaranteed to be unique. Two monitors of the same model -and make may have the same name. Only the monitor handle is guaranteed to be -unique, and only until that monitor is disconnected. - - -@subsection monitor_gamma Gamma ramp - -The gamma ramp of a monitor can be set with @ref glfwSetGammaRamp, which accepts -a monitor handle and a pointer to a @ref GLFWgammaramp structure. - -@code -GLFWgammaramp ramp; -unsigned short red[256], green[256], blue[256]; - -ramp.size = 256; -ramp.red = red; -ramp.green = green; -ramp.blue = blue; - -for (i = 0; i < ramp.size; i++) -{ - // Fill out gamma ramp arrays as desired -} - -glfwSetGammaRamp(monitor, &ramp); -@endcode - -The gamma ramp data is copied before the function returns, so there is no need -to keep it around once the ramp has been set. - -It is recommended that your gamma ramp have the same size as the current gamma -ramp for that monitor. - -The current gamma ramp for a monitor is returned by @ref glfwGetGammaRamp. See -the reference documentation for the lifetime of the returned structure. - -@code -const GLFWgammaramp* ramp = glfwGetGammaRamp(monitor); -@endcode - -If you wish to set a regular gamma ramp, you can have GLFW calculate it for you -from the desired exponent with @ref glfwSetGamma, which in turn calls @ref -glfwSetGammaRamp with the resulting ramp. - -@code -glfwSetGamma(monitor, 1.0); -@endcode - -To experiment with gamma correction via the @ref glfwSetGamma function, run the -`gamma` test program. - -@note The software controlled gamma ramp is applied _in addition_ to the -hardware gamma correction, which today is usually an approximation of sRGB -gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will -produce the default (usually sRGB-like) behavior. - -*/ diff --git a/external/GLFW/docs/news.dox b/external/GLFW/docs/news.dox deleted file mode 100644 index 86b68c4..0000000 --- a/external/GLFW/docs/news.dox +++ /dev/null @@ -1,508 +0,0 @@ -/*! - -@page news Release notes - -@section news_33 Release notes for 3.3 - - -@subsection news_33_geterror Error query - -GLFW now supports querying the last error code for the calling thread and its -human-readable description with @ref glfwGetError. - -@see @ref error_handling - - -@subsection news_33_gamepad SDL_GameControllerDB support and gamepad input - -GLFW now supports remapping of gamepads and controllers to a 360-like controller -layout with @ref glfwJoystickIsGamepad, @ref glfwGetJoystickGUID, @ref -glfwGetGamepadName, @ref glfwGetGamepadState and @ref glfwUpdateGamepadMappings, -and the input state struct @ref GLFWgamepadstate. - -@sa @ref gamepad - - -@subsection news_33_attention User attention request - -GLFW now supports requesting user attention to a specific window (on macOS to -the application as a whole) with @ref glfwRequestWindowAttention. - -@see @ref window_attention - - -@subsection news_33_maximize Window maximization callback - -GLFW now supports notifying the application that the window has been maximized -@ref glfwSetWindowMaximizeCallback. - -@see @ref window_maximize - - -@subsection news_33_keyscancode Platform-specific key scancode query - -GLFW now supports querying the platform dependent scancode of any physical key -with @ref glfwGetKeyScancode. - -@see @ref input_key - - -@subsection news_33_setwindowattrib Support for updating window attributes - -GLFW now supports changing the [GLFW_DECORATED](@ref GLFW_DECORATED_attrib), -[GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib), -[GLFW_FLOATING](@ref GLFW_FLOATING_attrib) and -[GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) attributes for existing -windows with @ref glfwSetWindowAttrib. - -@see @ref window_attribs - - -@subsection news_33_inithint Support for initialization hints - -GLFW now supports setting library initialization hints with @ref glfwInitHint -or @ref glfwInitHintString. These must be set before initialization to take -effect. - -@see @ref init_hints - - -@subsection news_33_platformhints Support for platform specific hints - -GLFW now supports platform specific init and window hints to control system -features that are only available on a single platform. - -@see @ref init_hints_osx -@see @ref window_hints_osx - - -@subsection news_33_joyhats Support for joystick hats - -GLFW now supports querying the hats (or POVs or D-pads) of a joystick with @ref -glfwGetJoystickHats. Hats are by default also exposed as buttons, but this can -be disabled with the @ref GLFW_JOYSTICK_HAT_BUTTONS init hint. - -@see @ref joystick_hat - - -@subsection news_33_transparent Support for transparent window framebuffer - -GLFW now supports the creation of windows with transparent framebuffers on -systems with desktop compositing enabled with the @ref GLFW_TRANSPARENT window -hint and attribute. Any window decorations will still be opaque. - - -@subsection news_33_centercursor Cursor centering window hint - -GLFW now supports controlling whether the cursor is centered over newly created -full screen windows with the [GLFW_CENTER_CURSOR](@ref GLFW_CENTER_CURSOR_hint) -window hint. It is enabled by default. - - -@subsection news_33_rawmotion Support for raw mouse motion - -GLFW now uses raw (unscaled and unaccelerated) mouse motion in disabled cursor -mode on platforms where this is available, specifically Windows and X11. - - -@subsection news_33_moltenvk Support for Vulkan on macOS via MoltenVK - -GLFW now supports the `VK_MVK_macos_surface` window surface creation extension -provided by [MoltenVK](https://moltengl.com/moltenvk/). - -@see @ref vulkan_guide - - -@subsection news_33_osmesa OSMesa backend for headless software rendering - -GLFW now supports creating offscreen OpenGL contexts using -[OSMesa](https://www.mesa3d.org/osmesa.html) by setting -[GLFW_CONTEXT_CREATION_API](@ref GLFW_CONTEXT_CREATION_API_hint) to -`GLFW_OSMESA_CONTEXT_API`. - -There is also a new null backend that uses OSMesa as its native context -creation API, intended for automated testing. This backend does not provide -input. - - -@subsection news_33_primary X11 primary selection access - -GLFW now supports querying and setting the X11 primary selection via the native -access functions @ref glfwGetX11SelectionString and @ref -glfwSetX11SelectionString. - - -@section news_32 Release notes for 3.2 - - -@subsection news_32_vulkan Support for Vulkan - -GLFW now supports basic integration with Vulkan with @ref glfwVulkanSupported, -@ref glfwGetRequiredInstanceExtensions, @ref glfwGetInstanceProcAddress, @ref -glfwGetPhysicalDevicePresentationSupport and @ref glfwCreateWindowSurface. -Vulkan header inclusion can be selected with -@ref GLFW_INCLUDE_VULKAN. - - -@subsection news_32_setwindowmonitor Window mode switching - -GLFW now supports switching between windowed and full screen modes and updating -the monitor and desired resolution and refresh rate of full screen windows with -@ref glfwSetWindowMonitor. - - -@subsection news_32_maximize Window maxmimization support - -GLFW now supports window maximization with @ref glfwMaximizeWindow and the -@ref GLFW_MAXIMIZED window hint and attribute. - - -@subsection news_32_focus Window input focus control - -GLFW now supports giving windows input focus with @ref glfwFocusWindow. - - -@subsection news_32_sizelimits Window size limit support - -GLFW now supports setting both absolute and relative window size limits with -@ref glfwSetWindowSizeLimits and @ref glfwSetWindowAspectRatio. - - -@subsection news_32_keyname Localized key names - -GLFW now supports querying the localized name of printable keys with @ref -glfwGetKeyName, either by key token or by scancode. - - -@subsection news_32_waittimeout Wait for events with timeout - -GLFW now supports waiting for events for a set amount of time with @ref -glfwWaitEventsTimeout. - - -@subsection news_32_icon Window icon support - -GLFW now supports setting the icon of windows with @ref glfwSetWindowIcon. - - -@subsection news_32_timer Raw timer access - -GLFW now supports raw timer values with @ref glfwGetTimerValue and @ref -glfwGetTimerFrequency. - - -@subsection news_32_joystick Joystick connection callback - -GLFW now supports notifying when a joystick has been connected or disconnected -with @ref glfwSetJoystickCallback. - - -@subsection news_32_noapi Context-less windows - -GLFW now supports creating windows without a OpenGL or OpenGL ES context by -setting the [GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_NO_API`. - - -@subsection news_32_contextapi Run-time context creation API selection - -GLFW now supports selecting and querying the context creation API at run-time -with the @ref GLFW_CONTEXT_CREATION_API hint and attribute. - - -@subsection news_32_noerror Error-free context creation - -GLFW now supports creating and querying OpenGL and OpenGL ES contexts that do -not emit errors with the @ref GLFW_CONTEXT_NO_ERROR hint, provided the machine -supports the `GL_KHR_no_error` extension. - - -@subsection news_32_cmake CMake config-file package support - -GLFW now supports being used as a -[config-file package](@ref build_link_cmake_package) from other projects for -easy linking with the library and its dependencies. - - -@section news_31 Release notes for 3.1 - -These are the release highlights. For a full list of changes see the -[version history](http://www.glfw.org/changelog.html). - - -@subsection news_31_cursor Custom mouse cursor images - -GLFW now supports creating and setting both custom cursor images and standard -cursor shapes. They are created with @ref glfwCreateCursor or @ref -glfwCreateStandardCursor, set with @ref glfwSetCursor and destroyed with @ref -glfwDestroyCursor. - -@see @ref cursor_object - - -@subsection news_31_drop Path drop event - -GLFW now provides a callback for receiving the paths of files and directories -dropped onto GLFW windows. The callback is set with @ref glfwSetDropCallback. - -@see @ref path_drop - - -@subsection news_31_emptyevent Main thread wake-up - -GLFW now provides the @ref glfwPostEmptyEvent function for posting an empty -event from another thread to the main thread event queue, causing @ref -glfwWaitEvents to return. - -@see @ref events - - -@subsection news_31_framesize Window frame size query - -GLFW now supports querying the size, on each side, of the frame around the -client area of a window, with @ref glfwGetWindowFrameSize. - -@see [Window size](@ref window_size) - - -@subsection news_31_autoiconify Simultaneous multi-monitor rendering - -GLFW now supports disabling auto-iconification of full screen windows with -the [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_hint) window hint. This is -intended for people building multi-monitor installations, where you need windows -to stay in full screen despite losing input focus. - - -@subsection news_31_floating Floating windows - -GLFW now supports floating windows, also called topmost or always on top, for -easier debugging with the @ref GLFW_FLOATING window hint and attribute. - - -@subsection news_31_focused Initially unfocused windows - -GLFW now supports preventing a windowed mode window from gaining input focus on -creation, with the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) window hint. - - -@subsection news_31_direct Direct access for window attributes and cursor position - -GLFW now queries the window input focus, visibility and iconification attributes -and the cursor position directly instead of returning cached data. - - -@subsection news_31_charmods Character with modifiers callback - -GLFW now provides a callback for character events with modifier key bits. The -callback is set with @ref glfwSetCharModsCallback. Unlike the regular character -callback, this will report character events that will not result in a character -being input, for example if the Control key is held down. - -@see @ref input_char - - -@subsection news_31_single Single buffered framebuffers - -GLFW now supports the creation of single buffered windows, with the @ref -GLFW_DOUBLEBUFFER hint. - - -@subsection news_31_glext Macro for including extension header - -GLFW now includes the extension header appropriate for the chosen OpenGL or -OpenGL ES header when @ref GLFW_INCLUDE_GLEXT is defined. GLFW does not provide -these headers. They must be provided by your development environment or your -OpenGL or OpenGL ES SDK. - - -@subsection news_31_release Context release behaviors - -GLFW now supports controlling and querying whether the pipeline is flushed when -a context is made non-current, with the @ref GLFW_CONTEXT_RELEASE_BEHAVIOR hint -and attribute, provided the machine supports the `GL_KHR_context_flush_control` -extension. - - -@subsection news_31_wayland (Experimental) Wayland support - -GLFW now has an _experimental_ Wayland display protocol backend that can be -selected on Linux with a CMake option. - - -@subsection news_31_mir (Experimental) Mir support - -GLFW now has an _experimental_ Mir display server backend that can be selected -on Linux with a CMake option. - - -@section news_30 Release notes for 3.0 - -These are the release highlights. For a full list of changes see the -[version history](http://www.glfw.org/changelog.html). - - -@subsection news_30_cmake CMake build system - -GLFW now uses the CMake build system instead of the various makefiles and -project files used by earlier versions. CMake is available for all platforms -supported by GLFW, is present in most package systems and can generate -makefiles and/or project files for most popular development environments. - -For more information on how to use CMake, see the -[CMake manual](http://cmake.org/cmake/help/documentation.html). - - -@subsection news_30_multiwnd Multi-window support - -GLFW now supports the creation of multiple windows, each with their own OpenGL -or OpenGL ES context, and all window functions now take a window handle. Event -callbacks are now per-window and are provided with the handle of the window that -received the event. The @ref glfwMakeContextCurrent function has been added to -select which context is current on a given thread. - - -@subsection news_30_multimon Multi-monitor support - -GLFW now explicitly supports multiple monitors. They can be enumerated with -@ref glfwGetMonitors, queried with @ref glfwGetVideoModes, @ref -glfwGetMonitorPos, @ref glfwGetMonitorName and @ref glfwGetMonitorPhysicalSize, -and specified at window creation to make the newly created window full screen on -that specific monitor. - - -@subsection news_30_unicode Unicode support - -All string arguments to GLFW functions and all strings returned by GLFW now use -the UTF-8 encoding. This includes the window title, error string, clipboard -text, monitor and joystick names as well as the extension function arguments (as -ASCII is a subset of UTF-8). - - -@subsection news_30_clipboard Clipboard text I/O - -GLFW now supports reading and writing plain text to and from the system -clipboard, with the @ref glfwGetClipboardString and @ref glfwSetClipboardString -functions. - - -@subsection news_30_gamma Gamma ramp support - -GLFW now supports setting and reading back the gamma ramp of monitors, with the -@ref glfwGetGammaRamp and @ref glfwSetGammaRamp functions. There is also @ref -glfwSetGamma, which generates a ramp from a gamma value and then sets it. - - -@subsection news_30_gles OpenGL ES support - -GLFW now supports the creation of OpenGL ES contexts, by setting the -[GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_OPENGL_ES_API`, where -creation of such contexts are supported. Note that GLFW _does not implement_ -OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern -Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and -WGL APIs, while AMD provides an EGL implementation instead. - - -@subsection news_30_egl (Experimental) EGL support - -GLFW now has an experimental EGL context creation back end that can be selected -through CMake options. - - -@subsection news_30_hidpi High-DPI support - -GLFW now supports high-DPI monitors on both Windows and macOS, giving windows -full resolution framebuffers where other UI elements are scaled up. To achieve -this, @ref glfwGetFramebufferSize and @ref glfwSetFramebufferSizeCallback have -been added. These work with pixels, while the rest of the GLFW API works with -screen coordinates. This is important as OpenGL uses pixels, not screen -coordinates. - - -@subsection news_30_error Error callback - -GLFW now has an error callback, which can provide your application with much -more detailed diagnostics than was previously possible. The callback is passed -an error code and a description string. - - -@subsection news_30_wndptr Per-window user pointer - -Each window now has a user-defined pointer, retrieved with @ref -glfwGetWindowUserPointer and set with @ref glfwSetWindowUserPointer, to make it -easier to integrate GLFW into C++ code. - - -@subsection news_30_iconifyfun Window iconification callback - -Each window now has a callback for iconification and restoration events, -which is set with @ref glfwSetWindowIconifyCallback. - - -@subsection news_30_wndposfun Window position callback - -Each window now has a callback for position events, which is set with @ref -glfwSetWindowPosCallback. - - -@subsection news_30_wndpos Window position query - -The position of a window can now be retrieved using @ref glfwGetWindowPos. - - -@subsection news_30_focusfun Window focus callback - -Each windows now has a callback for focus events, which is set with @ref -glfwSetWindowFocusCallback. - - -@subsection news_30_enterleave Cursor enter/leave callback - -Each window now has a callback for when the mouse cursor enters or leaves its -client area, which is set with @ref glfwSetCursorEnterCallback. - - -@subsection news_30_wndtitle Initial window title - -The title of a window is now specified at creation time, as one of the arguments -to @ref glfwCreateWindow. - - -@subsection news_30_hidden Hidden windows - -Windows can now be hidden with @ref glfwHideWindow, shown using @ref -glfwShowWindow and created initially hidden with the @ref GLFW_VISIBLE window -hint and attribute. This allows for off-screen rendering in a way compatible -with most drivers, as well as moving a window to a specific position before -showing it. - - -@subsection news_30_undecorated Undecorated windows - -Windowed mode windows can now be created without decorations, e.g. things like -a frame, a title bar, with the @ref GLFW_DECORATED window hint and attribute. -This allows for the creation of things like splash screens. - - -@subsection news_30_keymods Modifier key bit masks - -[Modifier key bit mask](@ref mods) parameters have been added to the -[mouse button](@ref GLFWmousebuttonfun) and [key](@ref GLFWkeyfun) callbacks. - - -@subsection news_30_scancode Platform-specific scancodes - -A scancode parameter has been added to the [key callback](@ref GLFWkeyfun). Keys -that don't have a [key token](@ref keys) still get passed on with the key -parameter set to `GLFW_KEY_UNKNOWN`. These scancodes will vary between machines -and are intended to be used for key bindings. - - -@subsection news_30_jsname Joystick names - -The name of a joystick can now be retrieved using @ref glfwGetJoystickName. - - -@subsection news_30_doxygen Doxygen documentation - -You are reading it. - -*/ diff --git a/external/GLFW/docs/spaces.svg b/external/GLFW/docs/spaces.svg deleted file mode 100644 index 562fa8b..0000000 --- a/external/GLFW/docs/spaces.svg +++ /dev/null @@ -1,872 +0,0 @@ - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/external/GLFW/examples/CMakeLists.txt b/external/GLFW/examples/CMakeLists.txt deleted file mode 100644 index f7a2ebe..0000000 --- a/external/GLFW/examples/CMakeLists.txt +++ /dev/null @@ -1,75 +0,0 @@ - -link_libraries(glfw) - -include_directories(${glfw_INCLUDE_DIRS} "${GLFW_SOURCE_DIR}/deps") - -if (MATH_LIBRARY) - link_libraries("${MATH_LIBRARY}") -endif() - -if (MSVC) - add_definitions(-D_CRT_SECURE_NO_WARNINGS) -endif() - -if (GLFW_USE_OSMESA) - add_definitions(-DUSE_NATIVE_OSMESA) -endif() - -if (WIN32) - set(ICON glfw.rc) -elseif (APPLE) - set(ICON glfw.icns) - set_source_files_properties(glfw.icns PROPERTIES - MACOSX_PACKAGE_LOCATION "Resources") -endif() - -set(GLAD "${GLFW_SOURCE_DIR}/deps/glad/glad.h" - "${GLFW_SOURCE_DIR}/deps/glad.c") -set(GETOPT "${GLFW_SOURCE_DIR}/deps/getopt.h" - "${GLFW_SOURCE_DIR}/deps/getopt.c") -set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h" - "${GLFW_SOURCE_DIR}/deps/tinycthread.c") - -add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD}) -add_executable(gears WIN32 MACOSX_BUNDLE gears.c ${ICON} ${GLAD}) -add_executable(heightmap WIN32 MACOSX_BUNDLE heightmap.c ${ICON} ${GLAD}) -add_executable(offscreen offscreen.c ${ICON} ${GLAD}) -add_executable(particles WIN32 MACOSX_BUNDLE particles.c ${ICON} ${TINYCTHREAD} ${GETOPT} ${GLAD}) -add_executable(simple WIN32 MACOSX_BUNDLE simple.c ${ICON} ${GLAD}) -add_executable(splitview WIN32 MACOSX_BUNDLE splitview.c ${ICON} ${GLAD}) -add_executable(wave WIN32 MACOSX_BUNDLE wave.c ${ICON} ${GLAD}) - -target_link_libraries(particles "${CMAKE_THREAD_LIBS_INIT}") -if (RT_LIBRARY) - target_link_libraries(particles "${RT_LIBRARY}") -endif() - -set(WINDOWS_BINARIES boing gears heightmap particles simple splitview wave) -set(CONSOLE_BINARIES offscreen) - -set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES - FOLDER "GLFW3/Examples") - -if (MSVC) - # Tell MSVC to use main instead of WinMain for Windows subsystem executables - set_target_properties(${WINDOWS_BINARIES} PROPERTIES - LINK_FLAGS "/ENTRY:mainCRTStartup") -endif() - -if (APPLE) - set_target_properties(boing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Boing") - set_target_properties(gears PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Gears") - set_target_properties(heightmap PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Heightmap") - set_target_properties(particles PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Particles") - set_target_properties(simple PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Simple") - set_target_properties(splitview PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "SplitView") - set_target_properties(wave PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Wave") - - set_target_properties(${WINDOWS_BINARIES} PROPERTIES - RESOURCE glfw.icns - MACOSX_BUNDLE_SHORT_VERSION_STRING ${GLFW_VERSION} - MACOSX_BUNDLE_LONG_VERSION_STRING ${GLFW_VERSION_FULL} - MACOSX_BUNDLE_ICON_FILE glfw.icns - MACOSX_BUNDLE_INFO_PLIST "${GLFW_SOURCE_DIR}/CMake/MacOSXBundleInfo.plist.in") -endif() - diff --git a/external/GLFW/src/CMakeLists.txt b/external/GLFW/src/CMakeLists.txt deleted file mode 100644 index b14512c..0000000 --- a/external/GLFW/src/CMakeLists.txt +++ /dev/null @@ -1,152 +0,0 @@ - -set(common_HEADERS internal.h mappings.h - "${GLFW_BINARY_DIR}/src/glfw_config.h" - "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" - "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h") -set(common_SOURCES context.c init.c input.c monitor.c vulkan.c window.c) - -if (_GLFW_COCOA) - set(glfw_HEADERS ${common_HEADERS} cocoa_platform.h cocoa_joystick.h - posix_thread.h nsgl_context.h egl_context.h osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} cocoa_init.m cocoa_joystick.m - cocoa_monitor.m cocoa_window.m cocoa_time.c posix_thread.c - nsgl_context.m egl_context.c osmesa_context.c) -elseif (_GLFW_WIN32) - set(glfw_HEADERS ${common_HEADERS} win32_platform.h win32_joystick.h - wgl_context.h egl_context.h osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} win32_init.c win32_joystick.c - win32_monitor.c win32_time.c win32_thread.c win32_window.c - wgl_context.c egl_context.c osmesa_context.c) -elseif (_GLFW_X11) - set(glfw_HEADERS ${common_HEADERS} x11_platform.h xkb_unicode.h posix_time.h - posix_thread.h glx_context.h egl_context.h osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} x11_init.c x11_monitor.c x11_window.c - xkb_unicode.c posix_time.c posix_thread.c glx_context.c - egl_context.c osmesa_context.c) - - if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") - set(glfw_HEADERS ${glfw_HEADERS} linux_joystick.h) - set(glfw_SOURCES ${glfw_SOURCES} linux_joystick.c) - else() - set(glfw_HEADERS ${glfw_HEADERS} null_joystick.h) - set(glfw_SOURCES ${glfw_SOURCES} null_joystick.c) - endif() -elseif (_GLFW_WAYLAND) - set(glfw_HEADERS ${common_HEADERS} wl_platform.h linux_joystick.h - posix_time.h posix_thread.h xkb_unicode.h egl_context.h - osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} wl_init.c wl_monitor.c wl_window.c - linux_joystick.c posix_time.c posix_thread.c xkb_unicode.c - egl_context.c osmesa_context.c) - - ecm_add_wayland_client_protocol(glfw_SOURCES - PROTOCOL - "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/relative-pointer/relative-pointer-unstable-v1.xml" - BASENAME relative-pointer-unstable-v1) - ecm_add_wayland_client_protocol(glfw_SOURCES - PROTOCOL - "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml" - BASENAME pointer-constraints-unstable-v1) -elseif (_GLFW_MIR) - set(glfw_HEADERS ${common_HEADERS} mir_platform.h linux_joystick.h - posix_time.h posix_thread.h xkb_unicode.h egl_context.h - osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} mir_init.c mir_monitor.c mir_window.c - linux_joystick.c posix_time.c posix_thread.c xkb_unicode.c - egl_context.c osmesa_context.c) -elseif (_GLFW_OSMESA) - set(glfw_HEADERS ${common_HEADERS} null_platform.h null_joystick.h - posix_time.h posix_thread.h osmesa_context.h) - set(glfw_SOURCES ${common_SOURCES} null_init.c null_monitor.c null_window.c - null_joystick.c posix_time.c posix_thread.c osmesa_context.c) -endif() - -if (APPLE) - # For some reason, CMake doesn't know about .m - set_source_files_properties(${glfw_SOURCES} PROPERTIES LANGUAGE C) -endif() - -# Make GCC and Clang warn about declarations that VS 2010 and 2012 won't accept -# for all source files that VS will build -if (${CMAKE_C_COMPILER_ID} STREQUAL GNU OR ${CMAKE_C_COMPILER_ID} STREQUAL Clang) - if (WIN32) - set(windows_SOURCES ${glfw_SOURCES}) - else() - set(windows_SOURCES ${common_SOURCES}) - endif() - set_source_files_properties(${windows_SOURCES} PROPERTIES - COMPILE_FLAGS -Wdeclaration-after-statement) -endif() - -add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS}) -set_target_properties(glfw PROPERTIES - OUTPUT_NAME ${GLFW_LIB_NAME} - VERSION ${GLFW_VERSION} - SOVERSION ${GLFW_VERSION_MAJOR} - POSITION_INDEPENDENT_CODE ON - FOLDER "GLFW3") - -target_compile_definitions(glfw PRIVATE - _GLFW_USE_CONFIG_H - $<$:_XOPEN_SOURCE=600>) -target_include_directories(glfw PUBLIC - "$" - "$/include>") -target_include_directories(glfw PRIVATE - "${GLFW_SOURCE_DIR}/src" - "${GLFW_BINARY_DIR}/src" - ${glfw_INCLUDE_DIRS}) - -# HACK: When building on MinGW, WINVER and UNICODE need to be defined before -# the inclusion of stddef.h (by glfw3.h), which is itself included before -# win32_platform.h. We define them here until a saner solution can be found -# NOTE: MinGW-w64 and Visual C++ do /not/ need this hack. -target_compile_definitions(glfw PRIVATE - "$<$:UNICODE;WINVER=0x0501>") - -# Enable a reasonable set of warnings (no, -Wextra is not reasonable) -target_compile_options(glfw PRIVATE - "$<$:-Wall>" - "$<$:-Wall>") - -if (BUILD_SHARED_LIBS) - if (WIN32) - if (MINGW) - # Remove the lib prefix on the DLL (but not the import library - set_target_properties(glfw PROPERTIES PREFIX "") - - # Add a suffix to the import library to avoid naming conflicts - set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.a") - else() - # Add a suffix to the import library to avoid naming conflicts - set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.lib") - endif() - elseif (APPLE) - # Add -fno-common to work around a bug in Apple's GCC - target_compile_options(glfw PRIVATE "-fno-common") - - set_target_properties(glfw PROPERTIES - INSTALL_NAME_DIR "lib${LIB_SUFFIX}") - elseif (UNIX) - # Hide symbols not explicitly tagged for export from the shared library - target_compile_options(glfw PRIVATE "-fvisibility=hidden") - endif() - - target_compile_definitions(glfw INTERFACE GLFW_DLL) - target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES}) -else() - target_link_libraries(glfw INTERFACE ${glfw_LIBRARIES}) -endif() - -if (MSVC) - target_compile_definitions(glfw PRIVATE _CRT_SECURE_NO_WARNINGS) -endif() - -if (GLFW_INSTALL) - install(TARGETS glfw - EXPORT glfwTargets - RUNTIME DESTINATION "bin" - ARCHIVE DESTINATION "lib${LIB_SUFFIX}" - LIBRARY DESTINATION "lib${LIB_SUFFIX}") -endif() - diff --git a/external/GLFW/src/cocoa_init.m b/external/GLFW/src/cocoa_init.m deleted file mode 100644 index 01a746b..0000000 --- a/external/GLFW/src/cocoa_init.m +++ /dev/null @@ -1,374 +0,0 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy -// -// 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 "internal.h" -#include // For MAXPATHLEN - - -// Change to our application bundle's resources directory, if present -// -static void changeToResourcesDirectory(void) -{ - char resourcesPath[MAXPATHLEN]; - - CFBundleRef bundle = CFBundleGetMainBundle(); - if (!bundle) - return; - - CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(bundle); - - CFStringRef last = CFURLCopyLastPathComponent(resourcesURL); - if (CFStringCompare(CFSTR("Resources"), last, 0) != kCFCompareEqualTo) - { - CFRelease(last); - CFRelease(resourcesURL); - return; - } - - CFRelease(last); - - if (!CFURLGetFileSystemRepresentation(resourcesURL, - true, - (UInt8*) resourcesPath, - MAXPATHLEN)) - { - CFRelease(resourcesURL); - return; - } - - CFRelease(resourcesURL); - - chdir(resourcesPath); -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode; - - memset(_glfw.ns.keycodes, -1, sizeof(_glfw.ns.keycodes)); - memset(_glfw.ns.scancodes, -1, sizeof(_glfw.ns.scancodes)); - - _glfw.ns.keycodes[0x1D] = GLFW_KEY_0; - _glfw.ns.keycodes[0x12] = GLFW_KEY_1; - _glfw.ns.keycodes[0x13] = GLFW_KEY_2; - _glfw.ns.keycodes[0x14] = GLFW_KEY_3; - _glfw.ns.keycodes[0x15] = GLFW_KEY_4; - _glfw.ns.keycodes[0x17] = GLFW_KEY_5; - _glfw.ns.keycodes[0x16] = GLFW_KEY_6; - _glfw.ns.keycodes[0x1A] = GLFW_KEY_7; - _glfw.ns.keycodes[0x1C] = GLFW_KEY_8; - _glfw.ns.keycodes[0x19] = GLFW_KEY_9; - _glfw.ns.keycodes[0x00] = GLFW_KEY_A; - _glfw.ns.keycodes[0x0B] = GLFW_KEY_B; - _glfw.ns.keycodes[0x08] = GLFW_KEY_C; - _glfw.ns.keycodes[0x02] = GLFW_KEY_D; - _glfw.ns.keycodes[0x0E] = GLFW_KEY_E; - _glfw.ns.keycodes[0x03] = GLFW_KEY_F; - _glfw.ns.keycodes[0x05] = GLFW_KEY_G; - _glfw.ns.keycodes[0x04] = GLFW_KEY_H; - _glfw.ns.keycodes[0x22] = GLFW_KEY_I; - _glfw.ns.keycodes[0x26] = GLFW_KEY_J; - _glfw.ns.keycodes[0x28] = GLFW_KEY_K; - _glfw.ns.keycodes[0x25] = GLFW_KEY_L; - _glfw.ns.keycodes[0x2E] = GLFW_KEY_M; - _glfw.ns.keycodes[0x2D] = GLFW_KEY_N; - _glfw.ns.keycodes[0x1F] = GLFW_KEY_O; - _glfw.ns.keycodes[0x23] = GLFW_KEY_P; - _glfw.ns.keycodes[0x0C] = GLFW_KEY_Q; - _glfw.ns.keycodes[0x0F] = GLFW_KEY_R; - _glfw.ns.keycodes[0x01] = GLFW_KEY_S; - _glfw.ns.keycodes[0x11] = GLFW_KEY_T; - _glfw.ns.keycodes[0x20] = GLFW_KEY_U; - _glfw.ns.keycodes[0x09] = GLFW_KEY_V; - _glfw.ns.keycodes[0x0D] = GLFW_KEY_W; - _glfw.ns.keycodes[0x07] = GLFW_KEY_X; - _glfw.ns.keycodes[0x10] = GLFW_KEY_Y; - _glfw.ns.keycodes[0x06] = GLFW_KEY_Z; - - _glfw.ns.keycodes[0x27] = GLFW_KEY_APOSTROPHE; - _glfw.ns.keycodes[0x2A] = GLFW_KEY_BACKSLASH; - _glfw.ns.keycodes[0x2B] = GLFW_KEY_COMMA; - _glfw.ns.keycodes[0x18] = GLFW_KEY_EQUAL; - _glfw.ns.keycodes[0x32] = GLFW_KEY_GRAVE_ACCENT; - _glfw.ns.keycodes[0x21] = GLFW_KEY_LEFT_BRACKET; - _glfw.ns.keycodes[0x1B] = GLFW_KEY_MINUS; - _glfw.ns.keycodes[0x2F] = GLFW_KEY_PERIOD; - _glfw.ns.keycodes[0x1E] = GLFW_KEY_RIGHT_BRACKET; - _glfw.ns.keycodes[0x29] = GLFW_KEY_SEMICOLON; - _glfw.ns.keycodes[0x2C] = GLFW_KEY_SLASH; - _glfw.ns.keycodes[0x0A] = GLFW_KEY_WORLD_1; - - _glfw.ns.keycodes[0x33] = GLFW_KEY_BACKSPACE; - _glfw.ns.keycodes[0x39] = GLFW_KEY_CAPS_LOCK; - _glfw.ns.keycodes[0x75] = GLFW_KEY_DELETE; - _glfw.ns.keycodes[0x7D] = GLFW_KEY_DOWN; - _glfw.ns.keycodes[0x77] = GLFW_KEY_END; - _glfw.ns.keycodes[0x24] = GLFW_KEY_ENTER; - _glfw.ns.keycodes[0x35] = GLFW_KEY_ESCAPE; - _glfw.ns.keycodes[0x7A] = GLFW_KEY_F1; - _glfw.ns.keycodes[0x78] = GLFW_KEY_F2; - _glfw.ns.keycodes[0x63] = GLFW_KEY_F3; - _glfw.ns.keycodes[0x76] = GLFW_KEY_F4; - _glfw.ns.keycodes[0x60] = GLFW_KEY_F5; - _glfw.ns.keycodes[0x61] = GLFW_KEY_F6; - _glfw.ns.keycodes[0x62] = GLFW_KEY_F7; - _glfw.ns.keycodes[0x64] = GLFW_KEY_F8; - _glfw.ns.keycodes[0x65] = GLFW_KEY_F9; - _glfw.ns.keycodes[0x6D] = GLFW_KEY_F10; - _glfw.ns.keycodes[0x67] = GLFW_KEY_F11; - _glfw.ns.keycodes[0x6F] = GLFW_KEY_F12; - _glfw.ns.keycodes[0x69] = GLFW_KEY_F13; - _glfw.ns.keycodes[0x6B] = GLFW_KEY_F14; - _glfw.ns.keycodes[0x71] = GLFW_KEY_F15; - _glfw.ns.keycodes[0x6A] = GLFW_KEY_F16; - _glfw.ns.keycodes[0x40] = GLFW_KEY_F17; - _glfw.ns.keycodes[0x4F] = GLFW_KEY_F18; - _glfw.ns.keycodes[0x50] = GLFW_KEY_F19; - _glfw.ns.keycodes[0x5A] = GLFW_KEY_F20; - _glfw.ns.keycodes[0x73] = GLFW_KEY_HOME; - _glfw.ns.keycodes[0x72] = GLFW_KEY_INSERT; - _glfw.ns.keycodes[0x7B] = GLFW_KEY_LEFT; - _glfw.ns.keycodes[0x3A] = GLFW_KEY_LEFT_ALT; - _glfw.ns.keycodes[0x3B] = GLFW_KEY_LEFT_CONTROL; - _glfw.ns.keycodes[0x38] = GLFW_KEY_LEFT_SHIFT; - _glfw.ns.keycodes[0x37] = GLFW_KEY_LEFT_SUPER; - _glfw.ns.keycodes[0x6E] = GLFW_KEY_MENU; - _glfw.ns.keycodes[0x47] = GLFW_KEY_NUM_LOCK; - _glfw.ns.keycodes[0x79] = GLFW_KEY_PAGE_DOWN; - _glfw.ns.keycodes[0x74] = GLFW_KEY_PAGE_UP; - _glfw.ns.keycodes[0x7C] = GLFW_KEY_RIGHT; - _glfw.ns.keycodes[0x3D] = GLFW_KEY_RIGHT_ALT; - _glfw.ns.keycodes[0x3E] = GLFW_KEY_RIGHT_CONTROL; - _glfw.ns.keycodes[0x3C] = GLFW_KEY_RIGHT_SHIFT; - _glfw.ns.keycodes[0x36] = GLFW_KEY_RIGHT_SUPER; - _glfw.ns.keycodes[0x31] = GLFW_KEY_SPACE; - _glfw.ns.keycodes[0x30] = GLFW_KEY_TAB; - _glfw.ns.keycodes[0x7E] = GLFW_KEY_UP; - - _glfw.ns.keycodes[0x52] = GLFW_KEY_KP_0; - _glfw.ns.keycodes[0x53] = GLFW_KEY_KP_1; - _glfw.ns.keycodes[0x54] = GLFW_KEY_KP_2; - _glfw.ns.keycodes[0x55] = GLFW_KEY_KP_3; - _glfw.ns.keycodes[0x56] = GLFW_KEY_KP_4; - _glfw.ns.keycodes[0x57] = GLFW_KEY_KP_5; - _glfw.ns.keycodes[0x58] = GLFW_KEY_KP_6; - _glfw.ns.keycodes[0x59] = GLFW_KEY_KP_7; - _glfw.ns.keycodes[0x5B] = GLFW_KEY_KP_8; - _glfw.ns.keycodes[0x5C] = GLFW_KEY_KP_9; - _glfw.ns.keycodes[0x45] = GLFW_KEY_KP_ADD; - _glfw.ns.keycodes[0x41] = GLFW_KEY_KP_DECIMAL; - _glfw.ns.keycodes[0x4B] = GLFW_KEY_KP_DIVIDE; - _glfw.ns.keycodes[0x4C] = GLFW_KEY_KP_ENTER; - _glfw.ns.keycodes[0x51] = GLFW_KEY_KP_EQUAL; - _glfw.ns.keycodes[0x43] = GLFW_KEY_KP_MULTIPLY; - _glfw.ns.keycodes[0x4E] = GLFW_KEY_KP_SUBTRACT; - - for (scancode = 0; scancode < 256; scancode++) - { - // Store the reverse translation for faster key name lookup - if (_glfw.ns.keycodes[scancode] >= 0) - _glfw.ns.scancodes[_glfw.ns.keycodes[scancode]] = scancode; - } -} - -// Retrieve Unicode data for the current keyboard layout -// -static GLFWbool updateUnicodeDataNS(void) -{ - if (_glfw.ns.inputSource) - { - CFRelease(_glfw.ns.inputSource); - _glfw.ns.inputSource = NULL; - _glfw.ns.unicodeData = nil; - } - - _glfw.ns.inputSource = TISCopyCurrentKeyboardLayoutInputSource(); - if (!_glfw.ns.inputSource) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve keyboard layout input source"); - return GLFW_FALSE; - } - - _glfw.ns.unicodeData = - TISGetInputSourceProperty(_glfw.ns.inputSource, - kTISPropertyUnicodeKeyLayoutData); - if (!_glfw.ns.unicodeData) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve keyboard layout Unicode data"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Load HIToolbox.framework and the TIS symbols we need from it -// -static GLFWbool initializeTIS(void) -{ - // This works only because Cocoa has already loaded it properly - _glfw.ns.tis.bundle = - CFBundleGetBundleWithIdentifier(CFSTR("com.apple.HIToolbox")); - if (!_glfw.ns.tis.bundle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to load HIToolbox.framework"); - return GLFW_FALSE; - } - - CFStringRef* kPropertyUnicodeKeyLayoutData = - CFBundleGetDataPointerForName(_glfw.ns.tis.bundle, - CFSTR("kTISPropertyUnicodeKeyLayoutData")); - _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("TISCopyCurrentKeyboardLayoutInputSource")); - _glfw.ns.tis.GetInputSourceProperty = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("TISGetInputSourceProperty")); - _glfw.ns.tis.GetKbdType = - CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, - CFSTR("LMGetKbdType")); - - if (!kPropertyUnicodeKeyLayoutData || - !TISCopyCurrentKeyboardLayoutInputSource || - !TISGetInputSourceProperty || - !LMGetKbdType) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to load TIS API symbols"); - return GLFW_FALSE; - } - - _glfw.ns.tis.kPropertyUnicodeKeyLayoutData = - *kPropertyUnicodeKeyLayoutData; - - return updateUnicodeDataNS(); -} - -@interface GLFWLayoutListener : NSObject -@end - -@implementation GLFWLayoutListener - -- (void)selectedKeyboardInputSourceChanged:(NSObject* )object -{ - updateUnicodeDataNS(); -} - -@end - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; - - if (_glfw.hints.init.ns.chdir) - changeToResourcesDirectory(); - - _glfw.ns.listener = [[GLFWLayoutListener alloc] init]; - [[NSNotificationCenter defaultCenter] - addObserver:_glfw.ns.listener - selector:@selector(selectedKeyboardInputSourceChanged:) - name:NSTextInputContextKeyboardSelectionDidChangeNotification - object:nil]; - - createKeyTables(); - - _glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); - if (!_glfw.ns.eventSource) - return GLFW_FALSE; - - CGEventSourceSetLocalEventsSuppressionInterval(_glfw.ns.eventSource, 0.0); - - if (!initializeTIS()) - return GLFW_FALSE; - - _glfwInitTimerNS(); - _glfwInitJoysticksNS(); - - _glfwPollMonitorsNS(); - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.ns.inputSource) - { - CFRelease(_glfw.ns.inputSource); - _glfw.ns.inputSource = NULL; - _glfw.ns.unicodeData = nil; - } - - if (_glfw.ns.eventSource) - { - CFRelease(_glfw.ns.eventSource); - _glfw.ns.eventSource = NULL; - } - - if (_glfw.ns.delegate) - { - [NSApp setDelegate:nil]; - [_glfw.ns.delegate release]; - _glfw.ns.delegate = nil; - } - - if (_glfw.ns.listener) - { - [[NSNotificationCenter defaultCenter] - removeObserver:_glfw.ns.listener - name:NSTextInputContextKeyboardSelectionDidChangeNotification - object:nil]; - [[NSNotificationCenter defaultCenter] - removeObserver:_glfw.ns.listener]; - [_glfw.ns.listener release]; - _glfw.ns.listener = nil; - } - - free(_glfw.ns.clipboardString); - - _glfwTerminateNSGL(); - _glfwTerminateJoysticksNS(); - - [_glfw.ns.autoreleasePool release]; - _glfw.ns.autoreleasePool = nil; -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Cocoa NSGL" -#if defined(_GLFW_BUILD_DLL) - " dynamic" -#endif - ; -} - diff --git a/external/GLFW/src/cocoa_monitor.m b/external/GLFW/src/cocoa_monitor.m deleted file mode 100644 index 6020599..0000000 --- a/external/GLFW/src/cocoa_monitor.m +++ /dev/null @@ -1,486 +0,0 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include - -#include -#include -#include -#include - - -// Get the name of the specified display, or NULL -// -static char* getDisplayName(CGDirectDisplayID displayID) -{ - io_iterator_t it; - io_service_t service; - CFDictionaryRef info; - - if (IOServiceGetMatchingServices(kIOMasterPortDefault, - IOServiceMatching("IODisplayConnect"), - &it) != 0) - { - // This may happen if a desktop Mac is running headless - return NULL; - } - - while ((service = IOIteratorNext(it)) != 0) - { - info = IODisplayCreateInfoDictionary(service, - kIODisplayOnlyPreferredName); - - CFNumberRef vendorIDRef = - CFDictionaryGetValue(info, CFSTR(kDisplayVendorID)); - CFNumberRef productIDRef = - CFDictionaryGetValue(info, CFSTR(kDisplayProductID)); - if (!vendorIDRef || !productIDRef) - { - CFRelease(info); - continue; - } - - unsigned int vendorID, productID; - CFNumberGetValue(vendorIDRef, kCFNumberIntType, &vendorID); - CFNumberGetValue(productIDRef, kCFNumberIntType, &productID); - - if (CGDisplayVendorNumber(displayID) == vendorID && - CGDisplayModelNumber(displayID) == productID) - { - // Info dictionary is used and freed below - break; - } - - CFRelease(info); - } - - IOObjectRelease(it); - - if (!service) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to find service port for display"); - return NULL; - } - - CFDictionaryRef names = - CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); - - CFStringRef nameRef; - - if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), - (const void**) &nameRef)) - { - // This may happen if a desktop Mac is running headless - CFRelease(info); - return NULL; - } - - const CFIndex size = - CFStringGetMaximumSizeForEncoding(CFStringGetLength(nameRef), - kCFStringEncodingUTF8); - char* name = calloc(size + 1, 1); - CFStringGetCString(nameRef, name, size, kCFStringEncodingUTF8); - - CFRelease(info); - return name; -} - -// Check whether the display mode should be included in enumeration -// -static GLFWbool modeIsGood(CGDisplayModeRef mode) -{ - uint32_t flags = CGDisplayModeGetIOFlags(mode); - - if (!(flags & kDisplayModeValidFlag) || !(flags & kDisplayModeSafeFlag)) - return GLFW_FALSE; - if (flags & kDisplayModeInterlacedFlag) - return GLFW_FALSE; - if (flags & kDisplayModeStretchedFlag) - return GLFW_FALSE; - -#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) && - CFStringCompare(format, CFSTR(IO32BitDirectPixels), 0)) - { - CFRelease(format); - return GLFW_FALSE; - } - - CFRelease(format); -#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ - return GLFW_TRUE; -} - -// Convert Core Graphics display mode to GLFW video mode -// -static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode, - CVDisplayLinkRef link) -{ - GLFWvidmode result; - result.width = (int) CGDisplayModeGetWidth(mode); - result.height = (int) CGDisplayModeGetHeight(mode); - result.refreshRate = (int) CGDisplayModeGetRefreshRate(mode); - - if (result.refreshRate == 0) - { - const CVTime time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link); - if (!(time.flags & kCVTimeIsIndefinite)) - result.refreshRate = (int) (time.timeScale / (double) time.timeValue); - } - -#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 - CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); - if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) == 0) - { - result.redBits = 5; - result.greenBits = 5; - result.blueBits = 5; - } - else -#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ - { - result.redBits = 8; - result.greenBits = 8; - result.blueBits = 8; - } - -#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 - CFRelease(format); -#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ - return result; -} - -// Starts reservation for display fading -// -static CGDisplayFadeReservationToken beginFadeReservation(void) -{ - CGDisplayFadeReservationToken token = kCGDisplayFadeReservationInvalidToken; - - if (CGAcquireDisplayFadeReservation(5, &token) == kCGErrorSuccess) - { - CGDisplayFade(token, 0.3, - kCGDisplayBlendNormal, - kCGDisplayBlendSolidColor, - 0.0, 0.0, 0.0, - TRUE); - } - - return token; -} - -// Ends reservation for display fading -// -static void endFadeReservation(CGDisplayFadeReservationToken token) -{ - if (token != kCGDisplayFadeReservationInvalidToken) - { - CGDisplayFade(token, 0.5, - kCGDisplayBlendSolidColor, - kCGDisplayBlendNormal, - 0.0, 0.0, 0.0, - FALSE); - CGReleaseDisplayFadeReservation(token); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Poll for changes in the set of connected monitors -// -void _glfwPollMonitorsNS(void) -{ - uint32_t i, j, displayCount, disconnectedCount; - CGDirectDisplayID* displays; - _GLFWmonitor** disconnected = NULL; - - CGGetOnlineDisplayList(0, NULL, &displayCount); - displays = calloc(displayCount, sizeof(CGDirectDisplayID)); - CGGetOnlineDisplayList(displayCount, displays, &displayCount); - - disconnectedCount = _glfw.monitorCount; - if (disconnectedCount) - { - disconnected = calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); - memcpy(disconnected, - _glfw.monitors, - _glfw.monitorCount * sizeof(_GLFWmonitor*)); - } - - for (i = 0; i < displayCount; i++) - { - _GLFWmonitor* monitor; - const uint32_t unitNumber = CGDisplayUnitNumber(displays[i]); - - if (CGDisplayIsAsleep(displays[i])) - continue; - - for (j = 0; j < disconnectedCount; j++) - { - // HACK: Compare unit numbers instead of display IDs to work around - // display replacement on machines with automatic graphics - // switching - if (disconnected[j] && disconnected[j]->ns.unitNumber == unitNumber) - { - disconnected[j] = NULL; - break; - } - } - - const CGSize size = CGDisplayScreenSize(displays[i]); - char* name = getDisplayName(displays[i]); - if (!name) - name = strdup("Unknown"); - - monitor = _glfwAllocMonitor(name, size.width, size.height); - monitor->ns.displayID = displays[i]; - monitor->ns.unitNumber = unitNumber; - - free(name); - - _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); - } - - for (i = 0; i < disconnectedCount; i++) - { - if (disconnected[i]) - _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); - } - - free(disconnected); - free(displays); -} - -// Change the current video mode -// -GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - CFArrayRef modes; - CFIndex count, i; - CVDisplayLinkRef link; - CGDisplayModeRef native = NULL; - GLFWvidmode current; - const GLFWvidmode* best; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - count = CFArrayGetCount(modes); - - for (i = 0; i < count; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = dm; - break; - } - } - - if (native) - { - if (monitor->ns.previousMode == NULL) - monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); - endFadeReservation(token); - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Monitor mode list changed"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Restore the previously saved (original) video mode -// -void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor) -{ - if (monitor->ns.previousMode) - { - CGDisplayFadeReservationToken token = beginFadeReservation(); - CGDisplaySetDisplayMode(monitor->ns.displayID, - monitor->ns.previousMode, NULL); - endFadeReservation(token); - - CGDisplayModeRelease(monitor->ns.previousMode); - monitor->ns.previousMode = NULL; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - const CGRect bounds = CGDisplayBounds(monitor->ns.displayID); - - if (xpos) - *xpos = (int) bounds.origin.x; - if (ypos) - *ypos = (int) bounds.origin.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - CFArrayRef modes; - CFIndex found, i, j; - GLFWvidmode* result; - CVDisplayLinkRef link; - - *count = 0; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); - found = CFArrayGetCount(modes); - result = calloc(found, sizeof(GLFWvidmode)); - - for (i = 0; i < found; i++) - { - CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); - if (!modeIsGood(dm)) - continue; - - const GLFWvidmode mode = vidmodeFromCGDisplayMode(dm, link); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (i < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - CFRelease(modes); - CVDisplayLinkRelease(link); - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode *mode) -{ - CGDisplayModeRef displayMode; - CVDisplayLinkRef link; - - CVDisplayLinkCreateWithCGDisplay(monitor->ns.displayID, &link); - - displayMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); - *mode = vidmodeFromCGDisplayMode(displayMode, link); - CGDisplayModeRelease(displayMode); - - CVDisplayLinkRelease(link); -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - uint32_t i, size = CGDisplayGammaTableCapacity(monitor->ns.displayID); - CGGammaValue* values = calloc(size * 3, sizeof(CGGammaValue)); - - CGGetDisplayTransferByTable(monitor->ns.displayID, - size, - values, - values + size, - values + size * 2, - &size); - - _glfwAllocGammaArrays(ramp, size); - - for (i = 0; i < size; i++) - { - ramp->red[i] = (unsigned short) (values[i] * 65535); - ramp->green[i] = (unsigned short) (values[i + size] * 65535); - ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535); - } - - free(values); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - int i; - CGGammaValue* values = calloc(ramp->size * 3, sizeof(CGGammaValue)); - - for (i = 0; i < ramp->size; i++) - { - values[i] = ramp->red[i] / 65535.f; - values[i + ramp->size] = ramp->green[i] / 65535.f; - values[i + ramp->size * 2] = ramp->blue[i] / 65535.f; - } - - CGSetDisplayTransferByTable(monitor->ns.displayID, - ramp->size, - values, - values + ramp->size, - values + ramp->size * 2); - - free(values); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); - return monitor->ns.displayID; -} - diff --git a/external/GLFW/src/cocoa_platform.h b/external/GLFW/src/cocoa_platform.h deleted file mode 100644 index f0ba4e8..0000000 --- a/external/GLFW/src/cocoa_platform.h +++ /dev/null @@ -1,163 +0,0 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy -// -// 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 -#include - -#if defined(__OBJC__) -#import -#import -#else -#include -#include -typedef void* id; -#endif - -typedef VkFlags VkMacOSSurfaceCreateFlagsMVK; - -typedef struct VkMacOSSurfaceCreateInfoMVK -{ - VkStructureType sType; - const void* pNext; - VkMacOSSurfaceCreateFlagsMVK flags; - const void* pView; -} VkMacOSSurfaceCreateInfoMVK; - -typedef VkResult (APIENTRY *PFN_vkCreateMacOSSurfaceMVK)(VkInstance,const VkMacOSSurfaceCreateInfoMVK*,const VkAllocationCallbacks*,VkSurfaceKHR*); - -#include "posix_thread.h" -#include "cocoa_joystick.h" -#include "nsgl_context.h" -#include "egl_context.h" -#include "osmesa_context.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->ns.view) -#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns -#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerNS ns -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorNS ns -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorNS ns - -// HIToolbox.framework pointer typedefs -#define kTISPropertyUnicodeKeyLayoutData _glfw.ns.tis.kPropertyUnicodeKeyLayoutData -typedef TISInputSourceRef (*PFN_TISCopyCurrentKeyboardLayoutInputSource)(void); -#define TISCopyCurrentKeyboardLayoutInputSource _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource -typedef void* (*PFN_TISGetInputSourceProperty)(TISInputSourceRef,CFStringRef); -#define TISGetInputSourceProperty _glfw.ns.tis.GetInputSourceProperty -typedef UInt8 (*PFN_LMGetKbdType)(void); -#define LMGetKbdType _glfw.ns.tis.GetKbdType - - -// Cocoa-specific per-window data -// -typedef struct _GLFWwindowNS -{ - id object; - id delegate; - id view; - id layer; - - GLFWbool maximized; - - // The total sum of the distances the cursor has been warped - // since the last cursor motion event was processed - // This is kept to counteract Cocoa doing the same internally - double cursorWarpDeltaX, cursorWarpDeltaY; - -} _GLFWwindowNS; - -// Cocoa-specific global data -// -typedef struct _GLFWlibraryNS -{ - CGEventSourceRef eventSource; - id delegate; - id autoreleasePool; - GLFWbool cursorHidden; - TISInputSourceRef inputSource; - IOHIDManagerRef hidManager; - id unicodeData; - id listener; - - char keyName[64]; - short int keycodes[256]; - short int scancodes[GLFW_KEY_LAST + 1]; - char* clipboardString; - CGPoint cascadePoint; - // Where to place the cursor when re-enabled - double restoreCursorPosX, restoreCursorPosY; - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - - struct { - CFBundleRef bundle; - PFN_TISCopyCurrentKeyboardLayoutInputSource CopyCurrentKeyboardLayoutInputSource; - PFN_TISGetInputSourceProperty GetInputSourceProperty; - PFN_LMGetKbdType GetKbdType; - CFStringRef kPropertyUnicodeKeyLayoutData; - } tis; - -} _GLFWlibraryNS; - -// Cocoa-specific per-monitor data -// -typedef struct _GLFWmonitorNS -{ - CGDirectDisplayID displayID; - CGDisplayModeRef previousMode; - uint32_t unitNumber; - -} _GLFWmonitorNS; - -// Cocoa-specific per-cursor data -// -typedef struct _GLFWcursorNS -{ - id object; - -} _GLFWcursorNS; - -// Cocoa-specific global timer data -// -typedef struct _GLFWtimerNS -{ - uint64_t frequency; - -} _GLFWtimerNS; - - -void _glfwInitTimerNS(void); - -void _glfwPollMonitorsNS(void); -GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor); - diff --git a/external/GLFW/src/cocoa_window.m b/external/GLFW/src/cocoa_window.m deleted file mode 100644 index 0a3bcd5..0000000 --- a/external/GLFW/src/cocoa_window.m +++ /dev/null @@ -1,1851 +0,0 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include - -// Needed for _NSGetProgname -#include - -// HACK: The 10.12 SDK adds new symbols and immediately deprecates the old ones -#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 - #define NSWindowStyleMaskBorderless NSBorderlessWindowMask - #define NSWindowStyleMaskClosable NSClosableWindowMask - #define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask - #define NSWindowStyleMaskResizable NSResizableWindowMask - #define NSWindowStyleMaskTitled NSTitledWindowMask - #define NSEventModifierFlagCommand NSCommandKeyMask - #define NSEventModifierFlagControl NSControlKeyMask - #define NSEventModifierFlagOption NSAlternateKeyMask - #define NSEventModifierFlagShift NSShiftKeyMask - #define NSEventModifierFlagDeviceIndependentFlagsMask NSDeviceIndependentModifierFlagsMask - #define NSEventMaskAny NSAnyEventMask - #define NSEventTypeApplicationDefined NSApplicationDefined - #define NSEventTypeKeyUp NSKeyUp -#endif - - -// Returns the style mask corresponding to the window settings -// -static NSUInteger getStyleMask(_GLFWwindow* window) -{ - NSUInteger styleMask = 0; - - if (window->monitor || !window->decorated) - styleMask |= NSWindowStyleMaskBorderless; - else - { - styleMask |= NSWindowStyleMaskTitled | - NSWindowStyleMaskClosable | - NSWindowStyleMaskMiniaturizable; - - if (window->resizable) - styleMask |= NSWindowStyleMaskResizable; - } - - return styleMask; -} - -// Center the cursor in the view of the window -// -static void centerCursor(_GLFWwindow *window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Returns whether the cursor is in the client area of the specified window -// -static GLFWbool cursorInClientArea(_GLFWwindow* window) -{ - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - return [window->ns.view mouse:pos inRect:[window->ns.view frame]]; -} - -// Hides the cursor if not already hidden -// -static void hideCursor(_GLFWwindow* window) -{ - if (!_glfw.ns.cursorHidden) - { - [NSCursor hide]; - _glfw.ns.cursorHidden = GLFW_TRUE; - } -} - -// Shows the cursor if not already shown -// -static void showCursor(_GLFWwindow* window) -{ - if (_glfw.ns.cursorHidden) - { - [NSCursor unhide]; - _glfw.ns.cursorHidden = GLFW_FALSE; - } -} - -// Updates the cursor image according to its cursor mode -// -static void updateCursorImage(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - showCursor(window); - - if (window->cursor) - [(NSCursor*) window->cursor->ns.object set]; - else - [[NSCursor arrowCursor] set]; - } - else - hideCursor(window); -} - -// Transforms the specified y-coordinate between the CG display and NS screen -// coordinate systems -// -static float transformY(float y) -{ - return CGDisplayBounds(CGMainDisplayID()).size.height - y; -} - -// Make the specified window and its video mode active on its monitor -// -static GLFWbool acquireMonitor(_GLFWwindow* window) -{ - const GLFWbool status = _glfwSetVideoModeNS(window->monitor, &window->videoMode); - const CGRect bounds = CGDisplayBounds(window->monitor->ns.displayID); - const NSRect frame = NSMakeRect(bounds.origin.x, - transformY(bounds.origin.y + bounds.size.height), - bounds.size.width, - bounds.size.height); - - [window->ns.object setFrame:frame display:YES]; - - _glfwInputMonitorWindow(window->monitor, window); - return status; -} - -// Remove the window and restore the original video mode -// -static void releaseMonitor(_GLFWwindow* window) -{ - if (window->monitor->window != window) - return; - - _glfwInputMonitorWindow(window->monitor, NULL); - _glfwRestoreVideoModeNS(window->monitor); -} - -// Translates macOS key modifiers into GLFW ones -// -static int translateFlags(NSUInteger flags) -{ - int mods = 0; - - if (flags & NSEventModifierFlagShift) - mods |= GLFW_MOD_SHIFT; - if (flags & NSEventModifierFlagControl) - mods |= GLFW_MOD_CONTROL; - if (flags & NSEventModifierFlagOption) - mods |= GLFW_MOD_ALT; - if (flags & NSEventModifierFlagCommand) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a macOS keycode to a GLFW keycode -// -static int translateKey(unsigned int key) -{ - if (key >= sizeof(_glfw.ns.keycodes) / sizeof(_glfw.ns.keycodes[0])) - return GLFW_KEY_UNKNOWN; - - return _glfw.ns.keycodes[key]; -} - -// Translate a GLFW keycode to a Cocoa modifier flag -// -static NSUInteger translateKeyToModifierFlag(int key) -{ - switch (key) - { - case GLFW_KEY_LEFT_SHIFT: - case GLFW_KEY_RIGHT_SHIFT: - return NSEventModifierFlagShift; - case GLFW_KEY_LEFT_CONTROL: - case GLFW_KEY_RIGHT_CONTROL: - return NSEventModifierFlagControl; - case GLFW_KEY_LEFT_ALT: - case GLFW_KEY_RIGHT_ALT: - return NSEventModifierFlagOption; - case GLFW_KEY_LEFT_SUPER: - case GLFW_KEY_RIGHT_SUPER: - return NSEventModifierFlagCommand; - } - - return 0; -} - -// Defines a constant for empty ranges in NSTextInputClient -// -static const NSRange kEmptyRange = { NSNotFound, 0 }; - - -//------------------------------------------------------------------------ -// Delegate for window related notifications -//------------------------------------------------------------------------ - -@interface GLFWWindowDelegate : NSObject -{ - _GLFWwindow* window; -} - -- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWWindowDelegate - -- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - window = initWindow; - - return self; -} - -- (BOOL)windowShouldClose:(id)sender -{ - _glfwInputWindowCloseRequest(window); - return NO; -} - -- (void)windowDidResize:(NSNotification *)notification -{ - if (window->context.client != GLFW_NO_API) - [window->context.nsgl.object update]; - - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - const int maximized = [window->ns.object isZoomed]; - if (window->ns.maximized != maximized) - { - window->ns.maximized = maximized; - _glfwInputWindowMaximize(window, maximized); - } - - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); - _glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height); -} - -- (void)windowDidMove:(NSNotification *)notification -{ - if (window->context.client != GLFW_NO_API) - [window->context.nsgl.object update]; - - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - int x, y; - _glfwPlatformGetWindowPos(window, &x, &y); - _glfwInputWindowPos(window, x, y); -} - -- (void)windowDidMiniaturize:(NSNotification *)notification -{ - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowIconify(window, GLFW_TRUE); -} - -- (void)windowDidDeminiaturize:(NSNotification *)notification -{ - if (window->monitor) - acquireMonitor(window); - - _glfwInputWindowIconify(window, GLFW_FALSE); -} - -- (void)windowDidBecomeKey:(NSNotification *)notification -{ - if (_glfw.ns.disabledCursorWindow == window) - centerCursor(window); - - _glfwInputWindowFocus(window, GLFW_TRUE); - _glfwPlatformSetCursorMode(window, window->cursorMode); -} - -- (void)windowDidResignKey:(NSNotification *)notification -{ - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GLFW_FALSE); -} - -@end - - -//------------------------------------------------------------------------ -// Delegate for application related notifications -//------------------------------------------------------------------------ - -@interface GLFWApplicationDelegate : NSObject -@end - -@implementation GLFWApplicationDelegate - -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender -{ - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - _glfwInputWindowCloseRequest(window); - - return NSTerminateCancel; -} - -- (void)applicationDidChangeScreenParameters:(NSNotification *) notification -{ - _GLFWwindow* window; - - for (window = _glfw.windowListHead; window; window = window->next) - { - if (window->context.client != GLFW_NO_API) - [window->context.nsgl.object update]; - } - - _glfwPollMonitorsNS(); -} - -- (void)applicationDidFinishLaunching:(NSNotification *)notification -{ - [NSApp stop:nil]; - - _glfwPlatformPostEmptyEvent(); -} - -- (void)applicationDidHide:(NSNotification *)notification -{ - int i; - - for (i = 0; i < _glfw.monitorCount; i++) - _glfwRestoreVideoModeNS(_glfw.monitors[i]); -} - -@end - - -//------------------------------------------------------------------------ -// Content view class for the GLFW window -//------------------------------------------------------------------------ - -@interface GLFWContentView : NSView -{ - _GLFWwindow* window; - NSTrackingArea* trackingArea; - NSMutableAttributedString* markedText; -} - -- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; - -@end - -@implementation GLFWContentView - -- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow -{ - self = [super init]; - if (self != nil) - { - window = initWindow; - trackingArea = nil; - markedText = [[NSMutableAttributedString alloc] init]; - - [self updateTrackingAreas]; - [self registerForDraggedTypes:[NSArray arrayWithObjects: - NSFilenamesPboardType, nil]]; - } - - return self; -} - -- (void)dealloc -{ - [trackingArea release]; - [markedText release]; - [super dealloc]; -} - -- (BOOL)isOpaque -{ - return [window->ns.object isOpaque]; -} - -- (BOOL)canBecomeKeyView -{ - return YES; -} - -- (BOOL)acceptsFirstResponder -{ - return YES; -} - -- (BOOL)wantsUpdateLayer -{ - return YES; -} - -- (id)makeBackingLayer -{ - if (window->ns.layer) - return window->ns.layer; - - return [super makeBackingLayer]; -} - -- (void)cursorUpdate:(NSEvent *)event -{ - updateCursorImage(window); -} - -- (void)mouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)mouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)mouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_LEFT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseMoved:(NSEvent *)event -{ - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - const double dx = [event deltaX] - window->ns.cursorWarpDeltaX; - const double dy = [event deltaY] - window->ns.cursorWarpDeltaY; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + dx, - window->virtualCursorPosY + dy); - } - else - { - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [event locationInWindow]; - - _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); - } - - window->ns.cursorWarpDeltaX = 0; - window->ns.cursorWarpDeltaY = 0; -} - -- (void)rightMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)rightMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)rightMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - GLFW_MOUSE_BUTTON_RIGHT, - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDown:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_PRESS, - translateFlags([event modifierFlags])); -} - -- (void)otherMouseDragged:(NSEvent *)event -{ - [self mouseMoved:event]; -} - -- (void)otherMouseUp:(NSEvent *)event -{ - _glfwInputMouseClick(window, - (int) [event buttonNumber], - GLFW_RELEASE, - translateFlags([event modifierFlags])); -} - -- (void)mouseExited:(NSEvent *)event -{ - if (window->cursorMode == GLFW_CURSOR_HIDDEN) - showCursor(window); - - _glfwInputCursorEnter(window, GLFW_FALSE); -} - -- (void)mouseEntered:(NSEvent *)event -{ - if (window->cursorMode == GLFW_CURSOR_HIDDEN) - hideCursor(window); - - _glfwInputCursorEnter(window, GLFW_TRUE); -} - -- (void)viewDidChangeBackingProperties -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); -} - -- (void)drawRect:(NSRect)rect -{ - _glfwInputWindowDamage(window); -} - -- (void)updateTrackingAreas -{ - if (trackingArea != nil) - { - [self removeTrackingArea:trackingArea]; - [trackingArea release]; - } - - const NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | - NSTrackingActiveInKeyWindow | - NSTrackingEnabledDuringMouseDrag | - NSTrackingCursorUpdate | - NSTrackingInVisibleRect | - NSTrackingAssumeInside; - - trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] - options:options - owner:self - userInfo:nil]; - - [self addTrackingArea:trackingArea]; - [super updateTrackingAreas]; -} - -- (void)keyDown:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - - _glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods); - - [self interpretKeyEvents:[NSArray arrayWithObject:event]]; -} - -- (void)flagsChanged:(NSEvent *)event -{ - int action; - const unsigned int modifierFlags = - [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask; - const int key = translateKey([event keyCode]); - const int mods = translateFlags(modifierFlags); - const NSUInteger keyFlag = translateKeyToModifierFlag(key); - - if (keyFlag & modifierFlags) - { - if (window->keys[key] == GLFW_PRESS) - action = GLFW_RELEASE; - else - action = GLFW_PRESS; - } - else - action = GLFW_RELEASE; - - _glfwInputKey(window, key, [event keyCode], action, mods); -} - -- (void)keyUp:(NSEvent *)event -{ - const int key = translateKey([event keyCode]); - const int mods = translateFlags([event modifierFlags]); - _glfwInputKey(window, key, [event keyCode], GLFW_RELEASE, mods); -} - -- (void)scrollWheel:(NSEvent *)event -{ - double deltaX, deltaY; - - deltaX = [event scrollingDeltaX]; - deltaY = [event scrollingDeltaY]; - - if ([event hasPreciseScrollingDeltas]) - { - deltaX *= 0.1; - deltaY *= 0.1; - } - - if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) - _glfwInputScroll(window, deltaX, deltaY); -} - -- (NSDragOperation)draggingEntered:(id )sender -{ - if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) - == NSDragOperationGeneric) - { - [self setNeedsDisplay:YES]; - return NSDragOperationGeneric; - } - - return NSDragOperationNone; -} - -- (BOOL)prepareForDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; - return YES; -} - -- (BOOL)performDragOperation:(id )sender -{ - NSPasteboard* pasteboard = [sender draggingPasteboard]; - NSArray* files = [pasteboard propertyListForType:NSFilenamesPboardType]; - - const NSRect contentRect = [window->ns.view frame]; - _glfwInputCursorPos(window, - [sender draggingLocation].x, - contentRect.size.height - [sender draggingLocation].y); - - const int count = [files count]; - if (count) - { - NSEnumerator* e = [files objectEnumerator]; - char** paths = calloc(count, sizeof(char*)); - int i; - - for (i = 0; i < count; i++) - paths[i] = strdup([[e nextObject] UTF8String]); - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - } - - return YES; -} - -- (void)concludeDragOperation:(id )sender -{ - [self setNeedsDisplay:YES]; -} - -- (BOOL)hasMarkedText -{ - return [markedText length] > 0; -} - -- (NSRange)markedRange -{ - if ([markedText length] > 0) - return NSMakeRange(0, [markedText length] - 1); - else - return kEmptyRange; -} - -- (NSRange)selectedRange -{ - return kEmptyRange; -} - -- (void)setMarkedText:(id)string - selectedRange:(NSRange)selectedRange - replacementRange:(NSRange)replacementRange -{ - [markedText release]; - if ([string isKindOfClass:[NSAttributedString class]]) - markedText = [[NSMutableAttributedString alloc] initWithAttributedString:string]; - else - markedText = [[NSMutableAttributedString alloc] initWithString:string]; -} - -- (void)unmarkText -{ - [[markedText mutableString] setString:@""]; -} - -- (NSArray*)validAttributesForMarkedText -{ - return [NSArray array]; -} - -- (NSAttributedString*)attributedSubstringForProposedRange:(NSRange)range - actualRange:(NSRangePointer)actualRange -{ - return nil; -} - -- (NSUInteger)characterIndexForPoint:(NSPoint)point -{ - return 0; -} - -- (NSRect)firstRectForCharacterRange:(NSRange)range - actualRange:(NSRangePointer)actualRange -{ - int xpos, ypos; - _glfwPlatformGetWindowPos(window, &xpos, &ypos); - const NSRect contentRect = [window->ns.view frame]; - return NSMakeRect(xpos, transformY(ypos + contentRect.size.height), 0.0, 0.0); -} - -- (void)insertText:(id)string replacementRange:(NSRange)replacementRange -{ - NSString* characters; - NSEvent* event = [NSApp currentEvent]; - const int mods = translateFlags([event modifierFlags]); - const int plain = !(mods & GLFW_MOD_SUPER); - - if ([string isKindOfClass:[NSAttributedString class]]) - characters = [string string]; - else - characters = (NSString*) string; - - NSUInteger i, length = [characters length]; - - for (i = 0; i < length; i++) - { - const unichar codepoint = [characters characterAtIndex:i]; - if ((codepoint & 0xff00) == 0xf700) - continue; - - _glfwInputChar(window, codepoint, mods, plain); - } -} - -- (void)doCommandBySelector:(SEL)selector -{ -} - -@end - - -//------------------------------------------------------------------------ -// GLFW window class -//------------------------------------------------------------------------ - -@interface GLFWWindow : NSWindow {} -@end - -@implementation GLFWWindow - -- (BOOL)canBecomeKeyWindow -{ - // Required for NSWindowStyleMaskBorderless windows - return YES; -} - -- (BOOL)canBecomeMainWindow -{ - return YES; -} - -@end - - -//------------------------------------------------------------------------ -// GLFW application class -//------------------------------------------------------------------------ - -@interface GLFWApplication : NSApplication -{ - NSArray* nibObjects; -} - -@end - -@implementation GLFWApplication - -// From http://cocoadev.com/index.pl?GameKeyboardHandlingAlmost -// This works around an AppKit bug, where key up events while holding -// down the command key don't get sent to the key window. -- (void)sendEvent:(NSEvent *)event -{ - if ([event type] == NSEventTypeKeyUp && - ([event modifierFlags] & NSEventModifierFlagCommand)) - { - [[self keyWindow] sendEvent:event]; - } - else - [super sendEvent:event]; -} - - -// No-op thread entry point -// -- (void)doNothing:(id)object -{ -} - -- (void)loadMainMenu -{ -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 100800 - [[NSBundle mainBundle] loadNibNamed:@"MainMenu" - owner:NSApp - topLevelObjects:&nibObjects]; -#else - [[NSBundle mainBundle] loadNibNamed:@"MainMenu" owner:NSApp]; -#endif -} -@end - -// Set up the menu bar (manually) -// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that -// could go away at any moment, lots of stuff that really should be -// localize(d|able), etc. Add a nib to save us this horror. -// -static void createMenuBar(void) -{ - size_t i; - NSString* appName = nil; - NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; - NSString* nameKeys[] = - { - @"CFBundleDisplayName", - @"CFBundleName", - @"CFBundleExecutable", - }; - - // Try to figure out what the calling application is called - - for (i = 0; i < sizeof(nameKeys) / sizeof(nameKeys[0]); i++) - { - id name = [bundleInfo objectForKey:nameKeys[i]]; - if (name && - [name isKindOfClass:[NSString class]] && - ![name isEqualToString:@""]) - { - appName = name; - break; - } - } - - if (!appName) - { - char** progname = _NSGetProgname(); - if (progname && *progname) - appName = [NSString stringWithUTF8String:*progname]; - else - appName = @"GLFW Application"; - } - - NSMenu* bar = [[NSMenu alloc] init]; - [NSApp setMainMenu:bar]; - - NSMenuItem* appMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - NSMenu* appMenu = [[NSMenu alloc] init]; - [appMenuItem setSubmenu:appMenu]; - - [appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName] - action:@selector(orderFrontStandardAboutPanel:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - NSMenu* servicesMenu = [[NSMenu alloc] init]; - [NSApp setServicesMenu:servicesMenu]; - [[appMenu addItemWithTitle:@"Services" - action:NULL - keyEquivalent:@""] setSubmenu:servicesMenu]; - [servicesMenu release]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", appName] - action:@selector(hide:) - keyEquivalent:@"h"]; - [[appMenu addItemWithTitle:@"Hide Others" - action:@selector(hideOtherApplications:) - keyEquivalent:@"h"] - setKeyEquivalentModifierMask:NSEventModifierFlagOption | NSEventModifierFlagCommand]; - [appMenu addItemWithTitle:@"Show All" - action:@selector(unhideAllApplications:) - keyEquivalent:@""]; - [appMenu addItem:[NSMenuItem separatorItem]]; - [appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", appName] - action:@selector(terminate:) - keyEquivalent:@"q"]; - - NSMenuItem* windowMenuItem = - [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; - [bar release]; - NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; - [NSApp setWindowsMenu:windowMenu]; - [windowMenuItem setSubmenu:windowMenu]; - - [windowMenu addItemWithTitle:@"Minimize" - action:@selector(performMiniaturize:) - keyEquivalent:@"m"]; - [windowMenu addItemWithTitle:@"Zoom" - action:@selector(performZoom:) - keyEquivalent:@""]; - [windowMenu addItem:[NSMenuItem separatorItem]]; - [windowMenu addItemWithTitle:@"Bring All to Front" - action:@selector(arrangeInFront:) - keyEquivalent:@""]; - - // TODO: Make this appear at the bottom of the menu (for consistency) - [windowMenu addItem:[NSMenuItem separatorItem]]; - [[windowMenu addItemWithTitle:@"Enter Full Screen" - action:@selector(toggleFullScreen:) - keyEquivalent:@"f"] - setKeyEquivalentModifierMask:NSEventModifierFlagControl | NSEventModifierFlagCommand]; - - // Prior to Snow Leopard, we need to use this oddly-named semi-private API - // to get the application menu working properly. - SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:"); - [NSApp performSelector:setAppleMenuSelector withObject:appMenu]; -} - -// Initialize the Cocoa Application Kit -// -static GLFWbool initializeAppKit(void) -{ - if (NSApp) - return GLFW_TRUE; - - // Implicitly create shared NSApplication instance - [GLFWApplication sharedApplication]; - - // Make Cocoa enter multi-threaded mode - [NSThread detachNewThreadSelector:@selector(doNothing:) - toTarget:NSApp - withObject:nil]; - - if (_glfw.hints.init.ns.menubar) - { - // In case we are unbundled, make us a proper UI application - [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; - - // Menu bar setup must go between sharedApplication above and - // finishLaunching below, in order to properly emulate the behavior - // of NSApplicationMain - - if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"]) - [NSApp loadMainMenu]; - else - createMenuBar(); - } - - // There can only be one application delegate, but we allocate it the - // first time a window is created to keep all window code in this file - _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init]; - if (_glfw.ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create application delegate"); - return GLFW_FALSE; - } - - [NSApp setDelegate:_glfw.ns.delegate]; - [NSApp run]; - - // Press and Hold prevents some keys from emitting repeated characters - NSDictionary* defaults = - [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO], - @"ApplePressAndHoldEnabled", - nil]; - [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; - - return GLFW_TRUE; -} - -// Create the Cocoa window -// -static GLFWbool createNativeWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig) -{ - window->ns.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window]; - if (window->ns.delegate == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create window delegate"); - return GLFW_FALSE; - } - - NSRect contentRect; - - if (window->monitor) - { - GLFWvidmode mode; - int xpos, ypos; - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - contentRect = NSMakeRect(xpos, ypos, mode.width, mode.height); - } - else - contentRect = NSMakeRect(0, 0, wndconfig->width, wndconfig->height); - - window->ns.object = [[GLFWWindow alloc] - initWithContentRect:contentRect - styleMask:getStyleMask(window) - backing:NSBackingStoreBuffered - defer:NO]; - - if (window->ns.object == nil) - { - _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create window"); - return GLFW_FALSE; - } - - if (window->monitor) - [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; - else - { - [window->ns.object center]; - _glfw.ns.cascadePoint = - NSPointToCGPoint([window->ns.object cascadeTopLeftFromPoint: - NSPointFromCGPoint(_glfw.ns.cascadePoint)]); - - if (wndconfig->resizable) - { - const NSWindowCollectionBehavior behavior = - NSWindowCollectionBehaviorFullScreenPrimary | - NSWindowCollectionBehaviorManaged; - [window->ns.object setCollectionBehavior:behavior]; - } - - if (wndconfig->floating) - [window->ns.object setLevel:NSFloatingWindowLevel]; - - if (wndconfig->maximized) - [window->ns.object zoom:nil]; - } - - if (wndconfig->ns.frame) - [window->ns.object setFrameAutosaveName:[NSString stringWithUTF8String:wndconfig->title]]; - - window->ns.view = [[GLFWContentView alloc] initWithGlfwWindow:window]; - - if (wndconfig->ns.retina) - [window->ns.view setWantsBestResolutionOpenGLSurface:YES]; - - if (fbconfig->transparent) - { - [window->ns.object setOpaque:NO]; - [window->ns.object setBackgroundColor:[NSColor clearColor]]; - } - - [window->ns.object setContentView:window->ns.view]; - [window->ns.object makeFirstResponder:window->ns.view]; - [window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]]; - [window->ns.object setDelegate:window->ns.delegate]; - [window->ns.object setAcceptsMouseMovedEvents:YES]; - [window->ns.object setRestorable:NO]; - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!initializeAppKit()) - return GLFW_FALSE; - - if (!createNativeWindow(window, wndconfig, fbconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitNSGL()) - return GLFW_FALSE; - if (!_glfwCreateContextNSGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) - { - if (!_glfwInitOSMesa()) - return GLFW_FALSE; - if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - if (wndconfig->centerCursor) - centerCursor(window); - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (_glfw.ns.disabledCursorWindow == window) - _glfw.ns.disabledCursorWindow = NULL; - - [window->ns.object orderOut:nil]; - - if (window->monitor) - releaseMonitor(window); - - if (window->context.destroy) - window->context.destroy(window); - - [window->ns.object setDelegate:nil]; - [window->ns.delegate release]; - window->ns.delegate = nil; - - [window->ns.view release]; - window->ns.view = nil; - - [window->ns.object close]; - window->ns.object = nil; - - [_glfw.ns.autoreleasePool drain]; - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title) -{ - NSString* string = [NSString stringWithUTF8String:title]; - [window->ns.object setTitle:string]; - // HACK: Set the miniwindow title explicitly as setTitle: doesn't update it - // if the window lacks NSWindowStyleMaskTitled - [window->ns.object setMiniwindowTitle:string]; -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - // Regular windows do not have icons -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - const NSRect contentRect = - [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; - - if (xpos) - *xpos = contentRect.origin.x; - if (ypos) - *ypos = transformY(contentRect.origin.y + contentRect.size.height); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect dummyRect = NSMakeRect(x, transformY(y + contentRect.size.height), 0, 0); - const NSRect frameRect = [window->ns.object frameRectForContentRect:dummyRect]; - [window->ns.object setFrameOrigin:frameRect.origin]; -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - - if (width) - *width = contentRect.size.width; - if (height) - *height = contentRect.size.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - if (window->monitor->window == window) - acquireMonitor(window); - } - else - [window->ns.object setContentSize:NSMakeSize(width, height)]; -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) - [window->ns.object setContentMinSize:NSMakeSize(0, 0)]; - else - [window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)]; - - if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) - [window->ns.object setContentMaxSize:NSMakeSize(DBL_MAX, DBL_MAX)]; - else - [window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)]; -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) - [window->ns.object setResizeIncrements:NSMakeSize(1.0, 1.0)]; - else - [window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)]; -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; - - if (width) - *width = (int) fbRect.size.width; - if (height) - *height = (int) fbRect.size.height; -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect]; - - if (left) - *left = contentRect.origin.x - frameRect.origin.x; - if (top) - *top = frameRect.origin.y + frameRect.size.height - - contentRect.origin.y - contentRect.size.height; - if (right) - *right = frameRect.origin.x + frameRect.size.width - - contentRect.origin.x - contentRect.size.width; - if (bottom) - *bottom = contentRect.origin.y - frameRect.origin.y; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - [window->ns.object miniaturize:nil]; -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - if ([window->ns.object isMiniaturized]) - [window->ns.object deminiaturize:nil]; - else if ([window->ns.object isZoomed]) - [window->ns.object zoom:nil]; -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - if (![window->ns.object isZoomed]) - [window->ns.object zoom:nil]; -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - [window->ns.object orderFront:nil]; -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - [window->ns.object orderOut:nil]; -} - -void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) -{ - [NSApp requestUserAttention:NSInformationalRequest]; -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - // Make us the active application - // HACK: This has been moved here from initializeAppKit to prevent - // applications using only hidden windows from being activated, but - // should probably not be done every time any window is shown - [NSApp activateIgnoringOtherApps:YES]; - - [window->ns.object makeKeyAndOrderFront:nil]; -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (window->monitor == monitor) - { - if (monitor) - { - if (monitor->window == window) - acquireMonitor(window); - } - else - { - const NSRect contentRect = - NSMakeRect(xpos, transformY(ypos + height), width, height); - const NSRect frameRect = - [window->ns.object frameRectForContentRect:contentRect - styleMask:getStyleMask(window)]; - - [window->ns.object setFrame:frameRect display:YES]; - } - - return; - } - - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowMonitorChange(window, monitor); - - // HACK: Allow the state cached in Cocoa to catch up to reality - // TODO: Solve this in a less terrible way - _glfwPlatformPollEvents(); - - const NSUInteger styleMask = getStyleMask(window); - [window->ns.object setStyleMask:styleMask]; - [window->ns.object makeFirstResponder:window->ns.view]; - - NSRect contentRect; - - if (monitor) - { - GLFWvidmode mode; - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - contentRect = NSMakeRect(xpos, transformY(ypos + mode.height), - mode.width, mode.height); - } - else - { - contentRect = NSMakeRect(xpos, transformY(ypos + height), - width, height); - } - - NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect - styleMask:styleMask]; - [window->ns.object setFrame:frameRect display:YES]; - - if (monitor) - { - [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; - [window->ns.object setHasShadow:NO]; - - acquireMonitor(window); - } - else - { - if (window->numer != GLFW_DONT_CARE && - window->denom != GLFW_DONT_CARE) - { - [window->ns.object setContentAspectRatio:NSMakeSize(window->numer, - window->denom)]; - } - - if (window->minwidth != GLFW_DONT_CARE && - window->minheight != GLFW_DONT_CARE) - { - [window->ns.object setContentMinSize:NSMakeSize(window->minwidth, - window->minheight)]; - } - - if (window->maxwidth != GLFW_DONT_CARE && - window->maxheight != GLFW_DONT_CARE) - { - [window->ns.object setContentMaxSize:NSMakeSize(window->maxwidth, - window->maxheight)]; - } - - if (window->floating) - [window->ns.object setLevel:NSFloatingWindowLevel]; - else - [window->ns.object setLevel:NSNormalWindowLevel]; - - [window->ns.object setHasShadow:YES]; - // HACK: Clearing NSWindowStyleMaskTitled resets and disables the window - // title property but the miniwindow title property is unaffected - [window->ns.object setTitle:[window->ns.object miniwindowTitle]]; - } -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return [window->ns.object isKeyWindow]; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return [window->ns.object isMiniaturized]; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return [window->ns.object isVisible]; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return [window->ns.object isZoomed]; -} - -int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) -{ - return ![window->ns.object isOpaque] && ![window->ns.view isOpaque]; -} - -void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) -{ - [window->ns.object setStyleMask:getStyleMask(window)]; -} - -void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) -{ - [window->ns.object setStyleMask:getStyleMask(window)]; - [window->ns.object makeFirstResponder:window->ns.view]; -} - -void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) -{ - if (enabled) - [window->ns.object setLevel:NSFloatingWindowLevel]; - else - [window->ns.object setLevel:NSNormalWindowLevel]; -} - -void _glfwPlatformPollEvents(void) -{ - for (;;) - { - NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny - untilDate:[NSDate distantPast] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - if (event == nil) - break; - - [NSApp sendEvent:event]; - } - - [_glfw.ns.autoreleasePool drain]; - _glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init]; -} - -void _glfwPlatformWaitEvents(void) -{ - // I wanted to pass NO to dequeue:, and rely on PollEvents to - // dequeue and send. For reasons not at all clear to me, passing - // NO to dequeue: causes this method never to return. - NSEvent *event = [NSApp nextEventMatchingMask:NSEventMaskAny - untilDate:[NSDate distantFuture] - inMode:NSDefaultRunLoopMode - dequeue:YES]; - [NSApp sendEvent:event]; - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - NSDate* date = [NSDate dateWithTimeIntervalSinceNow:timeout]; - NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny - untilDate:date - inMode:NSDefaultRunLoopMode - dequeue:YES]; - if (event) - [NSApp sendEvent:event]; - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSEvent* event = [NSEvent otherEventWithType:NSEventTypeApplicationDefined - location:NSMakePoint(0, 0) - modifierFlags:0 - timestamp:0 - windowNumber:0 - context:nil - subtype:0 - data1:0 - data2:0]; - [NSApp postEvent:event atStart:YES]; - [pool drain]; -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = contentRect.size.height - pos.y - 1; -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - updateCursorImage(window); - - const NSRect contentRect = [window->ns.view frame]; - const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; - - window->ns.cursorWarpDeltaX += x - pos.x; - window->ns.cursorWarpDeltaY += y - contentRect.size.height + pos.y; - - if (window->monitor) - { - CGDisplayMoveCursorToPoint(window->monitor->ns.displayID, - CGPointMake(x, y)); - } - else - { - const NSRect localRect = NSMakeRect(x, contentRect.size.height - y - 1, 0, 0); - const NSRect globalRect = [window->ns.object convertRectToScreen:localRect]; - const NSPoint globalPoint = globalRect.origin; - - CGWarpMouseCursorPosition(CGPointMake(globalPoint.x, - transformY(globalPoint.y))); - } -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - _glfw.ns.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.ns.restoreCursorPosX, - &_glfw.ns.restoreCursorPosY); - centerCursor(window); - CGAssociateMouseAndMouseCursorPosition(false); - } - else if (_glfw.ns.disabledCursorWindow == window) - { - _glfw.ns.disabledCursorWindow = NULL; - CGAssociateMouseAndMouseCursorPosition(true); - _glfwPlatformSetCursorPos(window, - _glfw.ns.restoreCursorPosX, - _glfw.ns.restoreCursorPosY); - } - - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -const char* _glfwPlatformGetScancodeName(int scancode) -{ - UInt32 deadKeyState = 0; - UniChar characters[8]; - UniCharCount characterCount = 0; - - if (UCKeyTranslate([(NSData*) _glfw.ns.unicodeData bytes], - scancode, - kUCKeyActionDisplay, - 0, - LMGetKbdType(), - kUCKeyTranslateNoDeadKeysBit, - &deadKeyState, - sizeof(characters) / sizeof(characters[0]), - &characterCount, - characters) != noErr) - { - return NULL; - } - - if (!characterCount) - return NULL; - - CFStringRef string = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, - characters, - characterCount, - kCFAllocatorNull); - CFStringGetCString(string, - _glfw.ns.keyName, - sizeof(_glfw.ns.keyName), - kCFStringEncodingUTF8); - CFRelease(string); - - return _glfw.ns.keyName; -} - -int _glfwPlatformGetKeyScancode(int key) -{ - return _glfw.ns.scancodes[key]; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - NSImage* native; - NSBitmapImageRep* rep; - - if (!initializeAppKit()) - return GLFW_FALSE; - - rep = [[NSBitmapImageRep alloc] - initWithBitmapDataPlanes:NULL - pixelsWide:image->width - pixelsHigh:image->height - bitsPerSample:8 - samplesPerPixel:4 - hasAlpha:YES - isPlanar:NO - colorSpaceName:NSCalibratedRGBColorSpace - bitmapFormat:NSAlphaNonpremultipliedBitmapFormat - bytesPerRow:image->width * 4 - bitsPerPixel:32]; - - if (rep == nil) - return GLFW_FALSE; - - memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); - - native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; - [native addRepresentation:rep]; - - cursor->ns.object = [[NSCursor alloc] initWithImage:native - hotSpot:NSMakePoint(xhot, yhot)]; - - [native release]; - [rep release]; - - if (cursor->ns.object == nil) - return GLFW_FALSE; - - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - if (!initializeAppKit()) - return GLFW_FALSE; - - if (shape == GLFW_ARROW_CURSOR) - cursor->ns.object = [NSCursor arrowCursor]; - else if (shape == GLFW_IBEAM_CURSOR) - cursor->ns.object = [NSCursor IBeamCursor]; - else if (shape == GLFW_CROSSHAIR_CURSOR) - cursor->ns.object = [NSCursor crosshairCursor]; - else if (shape == GLFW_HAND_CURSOR) - cursor->ns.object = [NSCursor pointingHandCursor]; - else if (shape == GLFW_HRESIZE_CURSOR) - cursor->ns.object = [NSCursor resizeLeftRightCursor]; - else if (shape == GLFW_VRESIZE_CURSOR) - cursor->ns.object = [NSCursor resizeUpDownCursor]; - - if (!cursor->ns.object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve standard cursor"); - return GLFW_FALSE; - } - - [cursor->ns.object retain]; - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->ns.object) - [(NSCursor*) cursor->ns.object release]; -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - NSArray* types = [NSArray arrayWithObjects:NSStringPboardType, nil]; - - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - [pasteboard declareTypes:types owner:nil]; - [pasteboard setString:[NSString stringWithUTF8String:string] - forType:NSStringPboardType]; -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - - if (![[pasteboard types] containsObject:NSStringPboardType]) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "Cocoa: Failed to retrieve string from pasteboard"); - return NULL; - } - - NSString* object = [pasteboard stringForType:NSStringPboardType]; - if (!object) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to retrieve object from pasteboard"); - return NULL; - } - - free(_glfw.ns.clipboardString); - _glfw.ns.clipboardString = strdup([object UTF8String]); - - return _glfw.ns.clipboardString; -} - -void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) -{ - if (!_glfw.vk.KHR_surface || !_glfw.vk.MVK_macos_surface) - return; - - extensions[0] = "VK_KHR_surface"; - extensions[1] = "VK_MVK_macos_surface"; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - return GLFW_TRUE; -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 - VkResult err; - VkMacOSSurfaceCreateInfoMVK sci; - PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK; - - vkCreateMacOSSurfaceMVK = (PFN_vkCreateMacOSSurfaceMVK) - vkGetInstanceProcAddr(instance, "vkCreateMacOSSurfaceMVK"); - if (!vkCreateMacOSSurfaceMVK) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Cocoa: Vulkan instance missing VK_MVK_macos_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - // HACK: Dynamically load Core Animation to avoid adding an extra - // dependency for the majority who don't use MoltenVK - NSBundle* bundle = [NSBundle bundleWithPath:@"/System/Library/Frameworks/QuartzCore.framework"]; - if (!bundle) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to find QuartzCore.framework"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - // NOTE: Create the layer here as makeBackingLayer should not return nil - window->ns.layer = [[bundle classNamed:@"CAMetalLayer"] layer]; - if (!window->ns.layer) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create layer for view"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - [window->ns.view setWantsLayer:YES]; - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK; - sci.pView = window->ns.view; - - err = vkCreateMacOSSurfaceMVK(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Cocoa: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -#else - return VK_ERROR_EXTENSION_NOT_PRESENT; -#endif -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(nil); - return window->ns.object; -} - diff --git a/external/GLFW/src/glfw3.pc.in b/external/GLFW/src/glfw3.pc.in deleted file mode 100644 index f2e4d97..0000000 --- a/external/GLFW/src/glfw3.pc.in +++ /dev/null @@ -1,13 +0,0 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=${prefix} -includedir=${prefix}/include -libdir=${exec_prefix}/lib@LIB_SUFFIX@ - -Name: GLFW -Description: A multi-platform library for OpenGL, window and input -Version: @GLFW_VERSION_FULL@ -URL: http://www.glfw.org/ -Requires.private: @GLFW_PKG_DEPS@ -Libs: -L${libdir} -l@GLFW_LIB_NAME@ -Libs.private: @GLFW_PKG_LIBS@ -Cflags: -I${includedir} diff --git a/external/GLFW/src/init.c b/external/GLFW/src/init.c deleted file mode 100644 index 19a13e0..0000000 --- a/external/GLFW/src/init.c +++ /dev/null @@ -1,317 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" -#include "mappings.h" - -#include -#include -#include -#include -#include - - -// The global variables below comprise all global data in GLFW. -// Any other global variable is a bug. - -// Global state shared between compilation units of GLFW -// -_GLFWlibrary _glfw = { GLFW_FALSE }; - -// These are outside of _glfw so they can be used before initialization and -// after termination -// -static _GLFWerror _glfwMainThreadError; -static GLFWerrorfun _glfwErrorCallback; -static _GLFWinitconfig _glfwInitHints = -{ - GLFW_TRUE, // hat buttons - { - GLFW_TRUE, // macOS menu bar - GLFW_TRUE // macOS bundle chdir - }, - { - "", // X11 WM_CLASS name - "" // X11 WM_CLASS class - } -}; - -// Returns a generic string representation of the specified error -// -static const char* getErrorString(int code) -{ - switch (code) - { - case GLFW_NOT_INITIALIZED: - return "The GLFW library is not initialized"; - case GLFW_NO_CURRENT_CONTEXT: - return "There is no current context"; - case GLFW_INVALID_ENUM: - return "Invalid argument for enum parameter"; - case GLFW_INVALID_VALUE: - return "Invalid value for parameter"; - case GLFW_OUT_OF_MEMORY: - return "Out of memory"; - case GLFW_API_UNAVAILABLE: - return "The requested API is unavailable"; - case GLFW_VERSION_UNAVAILABLE: - return "The requested API version is unavailable"; - case GLFW_PLATFORM_ERROR: - return "An undocumented platform-specific error occurred"; - case GLFW_FORMAT_UNAVAILABLE: - return "The requested format is unavailable"; - case GLFW_NO_WINDOW_CONTEXT: - return "The specified window has no context"; - default: - return "ERROR: UNKNOWN GLFW ERROR"; - } -} - -// Terminate the library -// -static void terminate(void) -{ - int i; - - memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); - - while (_glfw.windowListHead) - glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); - - while (_glfw.cursorListHead) - glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); - - for (i = 0; i < _glfw.monitorCount; i++) - { - _GLFWmonitor* monitor = _glfw.monitors[i]; - if (monitor->originalRamp.size) - _glfwPlatformSetGammaRamp(monitor, &monitor->originalRamp); - _glfwFreeMonitor(monitor); - } - - free(_glfw.monitors); - _glfw.monitors = NULL; - _glfw.monitorCount = 0; - - free(_glfw.mappings); - _glfw.mappings = NULL; - _glfw.mappingCount = 0; - - _glfwTerminateVulkan(); - _glfwPlatformTerminate(); - - _glfw.initialized = GLFW_FALSE; - - while (_glfw.errorListHead) - { - _GLFWerror* error = _glfw.errorListHead; - _glfw.errorListHead = error->next; - free(error); - } - - _glfwPlatformDestroyTls(&_glfw.contextSlot); - _glfwPlatformDestroyTls(&_glfw.errorSlot); - _glfwPlatformDestroyMutex(&_glfw.errorLock); - - memset(&_glfw, 0, sizeof(_glfw)); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputError(int code, const char* format, ...) -{ - _GLFWerror* error; - char description[_GLFW_MESSAGE_SIZE]; - - if (format) - { - va_list vl; - - va_start(vl, format); - vsnprintf(description, sizeof(description), format, vl); - va_end(vl); - - description[sizeof(description) - 1] = '\0'; - } - else - strcpy(description, getErrorString(code)); - - if (_glfw.initialized) - { - error = _glfwPlatformGetTls(&_glfw.errorSlot); - if (!error) - { - error = calloc(1, sizeof(_GLFWerror)); - _glfwPlatformSetTls(&_glfw.errorSlot, error); - _glfwPlatformLockMutex(&_glfw.errorLock); - error->next = _glfw.errorListHead; - _glfw.errorListHead = error; - _glfwPlatformUnlockMutex(&_glfw.errorLock); - } - } - else - error = &_glfwMainThreadError; - - error->code = code; - strcpy(error->description, description); - - if (_glfwErrorCallback) - _glfwErrorCallback(code, description); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwInit(void) -{ - if (_glfw.initialized) - return GLFW_TRUE; - - memset(&_glfw, 0, sizeof(_glfw)); - _glfw.hints.init = _glfwInitHints; - - if (!_glfwPlatformInit()) - { - terminate(); - return GLFW_FALSE; - } - - if (!_glfwPlatformCreateMutex(&_glfw.errorLock)) - return GLFW_FALSE; - if (!_glfwPlatformCreateTls(&_glfw.errorSlot)) - return GLFW_FALSE; - if (!_glfwPlatformCreateTls(&_glfw.contextSlot)) - return GLFW_FALSE; - - _glfwPlatformSetTls(&_glfw.errorSlot, &_glfwMainThreadError); - - _glfw.initialized = GLFW_TRUE; - _glfw.timer.offset = _glfwPlatformGetTimerValue(); - - glfwDefaultWindowHints(); - glfwUpdateGamepadMappings(_glfwDefaultMappings); - - return GLFW_TRUE; -} - -GLFWAPI void glfwTerminate(void) -{ - if (!_glfw.initialized) - return; - - terminate(); -} - -GLFWAPI void glfwInitHint(int hint, int value) -{ - switch (hint) - { - case GLFW_JOYSTICK_HAT_BUTTONS: - _glfwInitHints.hatButtons = value; - return; - case GLFW_COCOA_CHDIR_RESOURCES: - _glfwInitHints.ns.chdir = value; - return; - case GLFW_COCOA_MENUBAR: - _glfwInitHints.ns.menubar = value; - return; - } - - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid integer type init hint 0x%08X", hint); -} - -GLFWAPI void glfwInitHintString(int hint, const char* value) -{ - assert(value != NULL); - - switch (hint) - { - case GLFW_X11_WM_CLASS_NAME: - strncpy(_glfwInitHints.x11.className, value, - sizeof(_glfwInitHints.x11.className) - 1); - break; - case GLFW_X11_WM_CLASS_CLASS: - strncpy(_glfwInitHints.x11.classClass, value, - sizeof(_glfwInitHints.x11.classClass) - 1); - break; - } - - _glfwInputError(GLFW_INVALID_ENUM, - "Invalid string type init hint 0x%08X", hint); -} - -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) -{ - if (major != NULL) - *major = GLFW_VERSION_MAJOR; - if (minor != NULL) - *minor = GLFW_VERSION_MINOR; - if (rev != NULL) - *rev = GLFW_VERSION_REVISION; -} - -GLFWAPI const char* glfwGetVersionString(void) -{ - return _glfwPlatformGetVersionString(); -} - -GLFWAPI int glfwGetError(const char** description) -{ - _GLFWerror* error; - int code = GLFW_NO_ERROR; - - if (description) - *description = NULL; - - if (_glfw.initialized) - error = _glfwPlatformGetTls(&_glfw.errorSlot); - else - error = &_glfwMainThreadError; - - if (error) - { - code = error->code; - error->code = GLFW_NO_ERROR; - if (description && code) - *description = error->description; - } - - return code; -} - -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun) -{ - _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun); - return cbfun; -} - diff --git a/external/GLFW/src/internal.h b/external/GLFW/src/internal.h deleted file mode 100644 index b9f55da..0000000 --- a/external/GLFW/src/internal.h +++ /dev/null @@ -1,1012 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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. -// -//======================================================================== - -#if defined(_GLFW_USE_CONFIG_H) - #include "glfw_config.h" -#endif - -#if defined(GLFW_INCLUDE_GLCOREARB) || \ - defined(GLFW_INCLUDE_ES1) || \ - defined(GLFW_INCLUDE_ES2) || \ - defined(GLFW_INCLUDE_ES3) || \ - defined(GLFW_INCLUDE_ES31) || \ - defined(GLFW_INCLUDE_ES32) || \ - defined(GLFW_INCLUDE_NONE) || \ - defined(GLFW_INCLUDE_GLEXT) || \ - defined(GLFW_INCLUDE_GLU) || \ - defined(GLFW_INCLUDE_VULKAN) || \ - defined(GLFW_DLL) - #error "You must not define any header option macros when compiling GLFW" -#endif - -#define GLFW_INCLUDE_NONE -#include "../include/GLFW/glfw3.h" - -#define _GLFW_INSERT_FIRST 0 -#define _GLFW_INSERT_LAST 1 - -#define _GLFW_POLL_PRESENCE 0 -#define _GLFW_POLL_AXES 1 -#define _GLFW_POLL_BUTTONS 2 -#define _GLFW_POLL_ALL (_GLFW_POLL_AXES | _GLFW_POLL_BUTTONS) - -#define _GLFW_MESSAGE_SIZE 1024 - -typedef int GLFWbool; - -typedef struct _GLFWerror _GLFWerror; -typedef struct _GLFWinitconfig _GLFWinitconfig; -typedef struct _GLFWwndconfig _GLFWwndconfig; -typedef struct _GLFWctxconfig _GLFWctxconfig; -typedef struct _GLFWfbconfig _GLFWfbconfig; -typedef struct _GLFWcontext _GLFWcontext; -typedef struct _GLFWwindow _GLFWwindow; -typedef struct _GLFWlibrary _GLFWlibrary; -typedef struct _GLFWmonitor _GLFWmonitor; -typedef struct _GLFWcursor _GLFWcursor; -typedef struct _GLFWmapelement _GLFWmapelement; -typedef struct _GLFWmapping _GLFWmapping; -typedef struct _GLFWjoystick _GLFWjoystick; -typedef struct _GLFWtls _GLFWtls; -typedef struct _GLFWmutex _GLFWmutex; - -typedef void (* _GLFWmakecontextcurrentfun)(_GLFWwindow*); -typedef void (* _GLFWswapbuffersfun)(_GLFWwindow*); -typedef void (* _GLFWswapintervalfun)(int); -typedef int (* _GLFWextensionsupportedfun)(const char*); -typedef GLFWglproc (* _GLFWgetprocaddressfun)(const char*); -typedef void (* _GLFWdestroycontextfun)(_GLFWwindow*); - -#define GL_VERSION 0x1f02 -#define GL_NONE 0 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_EXTENSIONS 0x1f03 -#define GL_NUM_EXTENSIONS 0x821d -#define GL_CONTEXT_FLAGS 0x821e -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb -#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc -#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 - -typedef int GLint; -typedef unsigned int GLuint; -typedef unsigned int GLenum; -typedef unsigned int GLbitfield; -typedef unsigned char GLubyte; - -typedef void (APIENTRY * PFNGLCLEARPROC)(GLbitfield); -typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGPROC)(GLenum); -typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*); -typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint); - -#define VK_NULL_HANDLE 0 - -typedef void* VkInstance; -typedef void* VkPhysicalDevice; -typedef uint64_t VkSurfaceKHR; -typedef uint32_t VkFlags; -typedef uint32_t VkBool32; - -typedef enum VkStructureType -{ - VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, - VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, - VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, - VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, - VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, - VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000053000, - VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF -} VkStructureType; - -typedef enum VkResult -{ - VK_SUCCESS = 0, - VK_NOT_READY = 1, - VK_TIMEOUT = 2, - VK_EVENT_SET = 3, - VK_EVENT_RESET = 4, - VK_INCOMPLETE = 5, - VK_ERROR_OUT_OF_HOST_MEMORY = -1, - VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, - VK_ERROR_INITIALIZATION_FAILED = -3, - VK_ERROR_DEVICE_LOST = -4, - VK_ERROR_MEMORY_MAP_FAILED = -5, - VK_ERROR_LAYER_NOT_PRESENT = -6, - VK_ERROR_EXTENSION_NOT_PRESENT = -7, - VK_ERROR_FEATURE_NOT_PRESENT = -8, - VK_ERROR_INCOMPATIBLE_DRIVER = -9, - VK_ERROR_TOO_MANY_OBJECTS = -10, - VK_ERROR_FORMAT_NOT_SUPPORTED = -11, - VK_ERROR_SURFACE_LOST_KHR = -1000000000, - VK_SUBOPTIMAL_KHR = 1000001003, - VK_ERROR_OUT_OF_DATE_KHR = -1000001004, - VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, - VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, - VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, - VK_RESULT_MAX_ENUM = 0x7FFFFFFF -} VkResult; - -typedef struct VkAllocationCallbacks VkAllocationCallbacks; - -typedef struct VkExtensionProperties -{ - char extensionName[256]; - uint32_t specVersion; -} VkExtensionProperties; - -typedef void (APIENTRY * PFN_vkVoidFunction)(void); - -#if defined(_GLFW_VULKAN_STATIC) - PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance,const char*); - VkResult vkEnumerateInstanceExtensionProperties(const char*,uint32_t*,VkExtensionProperties*); -#else - typedef PFN_vkVoidFunction (APIENTRY * PFN_vkGetInstanceProcAddr)(VkInstance,const char*); - typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const char*,uint32_t*,VkExtensionProperties*); - #define vkEnumerateInstanceExtensionProperties _glfw.vk.EnumerateInstanceExtensionProperties - #define vkGetInstanceProcAddr _glfw.vk.GetInstanceProcAddr -#endif - -#if defined(_GLFW_COCOA) - #include "cocoa_platform.h" -#elif defined(_GLFW_WIN32) - #include "win32_platform.h" -#elif defined(_GLFW_X11) - #include "x11_platform.h" -#elif defined(_GLFW_WAYLAND) - #include "wl_platform.h" -#elif defined(_GLFW_MIR) - #include "mir_platform.h" -#elif defined(_GLFW_OSMESA) - #include "null_platform.h" -#else - #error "No supported window creation API selected" -#endif - - -//======================================================================== -// Doxygen group definitions -//======================================================================== - -/*! @defgroup platform Platform interface - * @brief The interface implemented by the platform-specific code. - * - * The platform API is the interface exposed by the platform-specific code for - * each platform and is called by the shared code of the public API It mirrors - * the public API except it uses objects instead of handles. - */ -/*! @defgroup event Event interface - * @brief The interface used by the platform-specific code to report events. - * - * The event API is used by the platform-specific code to notify the shared - * code of events that can be translated into state changes and/or callback - * calls. - */ -/*! @defgroup utility Utility functions - * @brief Various utility functions for internal use. - * - * These functions are shared code and may be used by any part of GLFW - * Each platform may add its own utility functions, but those must only be - * called by the platform-specific code - */ - - -//======================================================================== -// Helper macros -//======================================================================== - -// Constructs a version number string from the public header macros -#define _GLFW_CONCAT_VERSION(m, n, r) #m "." #n "." #r -#define _GLFW_MAKE_VERSION(m, n, r) _GLFW_CONCAT_VERSION(m, n, r) -#define _GLFW_VERSION_NUMBER _GLFW_MAKE_VERSION(GLFW_VERSION_MAJOR, \ - GLFW_VERSION_MINOR, \ - GLFW_VERSION_REVISION) - -// Checks for whether the library has been initialized -#define _GLFW_REQUIRE_INIT() \ - if (!_glfw.initialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return; \ - } -#define _GLFW_REQUIRE_INIT_OR_RETURN(x) \ - if (!_glfw.initialized) \ - { \ - _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ - return x; \ - } - -// Swaps the provided pointers -#define _GLFW_SWAP_POINTERS(x, y) \ - { \ - void* t; \ - t = x; \ - x = y; \ - y = t; \ - } - - -//======================================================================== -// Platform-independent structures -//======================================================================== - -struct _GLFWerror -{ - _GLFWerror* next; - int code; - char description[_GLFW_MESSAGE_SIZE]; -}; - -/*! @brief Initialization configuration. - * - * Parameters relating to the initialization of the library. - */ -struct _GLFWinitconfig -{ - GLFWbool hatButtons; - struct { - GLFWbool menubar; - GLFWbool chdir; - } ns; - struct { - char className[256]; - char classClass[256]; - } x11; -}; - -/*! @brief Window configuration. - * - * Parameters relating to the creation of the window but not directly related - * to the framebuffer. This is used to pass window creation parameters from - * shared code to the platform API. - */ -struct _GLFWwndconfig -{ - int width; - int height; - const char* title; - GLFWbool resizable; - GLFWbool visible; - GLFWbool decorated; - GLFWbool focused; - GLFWbool autoIconify; - GLFWbool floating; - GLFWbool maximized; - GLFWbool centerCursor; - struct { - GLFWbool retina; - GLFWbool frame; - } ns; -}; - -/*! @brief Context configuration. - * - * Parameters relating to the creation of the context but not directly related - * to the framebuffer. This is used to pass context creation parameters from - * shared code to the platform API. - */ -struct _GLFWctxconfig -{ - int client; - int source; - int major; - int minor; - GLFWbool forward; - GLFWbool debug; - GLFWbool noerror; - int profile; - int robustness; - int release; - _GLFWwindow* share; - struct { - GLFWbool offline; - } nsgl; -}; - -/*! @brief Framebuffer configuration. - * - * This describes buffers and their sizes. It also contains - * a platform-specific ID used to map back to the backend API object. - * - * It is used to pass framebuffer parameters from shared code to the platform - * API and also to enumerate and select available framebuffer configs. - */ -struct _GLFWfbconfig -{ - int redBits; - int greenBits; - int blueBits; - int alphaBits; - int depthBits; - int stencilBits; - int accumRedBits; - int accumGreenBits; - int accumBlueBits; - int accumAlphaBits; - int auxBuffers; - GLFWbool stereo; - int samples; - GLFWbool sRGB; - GLFWbool doublebuffer; - GLFWbool transparent; - uintptr_t handle; -}; - -/*! @brief Context structure. - */ -struct _GLFWcontext -{ - int client; - int source; - int major, minor, revision; - GLFWbool forward, debug, noerror; - int profile; - int robustness; - int release; - - PFNGLGETSTRINGIPROC GetStringi; - PFNGLGETINTEGERVPROC GetIntegerv; - PFNGLGETSTRINGPROC GetString; - - _GLFWmakecontextcurrentfun makeCurrent; - _GLFWswapbuffersfun swapBuffers; - _GLFWswapintervalfun swapInterval; - _GLFWextensionsupportedfun extensionSupported; - _GLFWgetprocaddressfun getProcAddress; - _GLFWdestroycontextfun destroy; - - // This is defined in the context API's context.h - _GLFW_PLATFORM_CONTEXT_STATE; - // This is defined in egl_context.h - _GLFW_EGL_CONTEXT_STATE; - // This is defined in osmesa_context.h - _GLFW_OSMESA_CONTEXT_STATE; -}; - -/*! @brief Window and context structure. - */ -struct _GLFWwindow -{ - struct _GLFWwindow* next; - - // Window settings and state - GLFWbool resizable; - GLFWbool decorated; - GLFWbool autoIconify; - GLFWbool floating; - GLFWbool shouldClose; - void* userPointer; - GLFWvidmode videoMode; - _GLFWmonitor* monitor; - _GLFWcursor* cursor; - - int minwidth, minheight; - int maxwidth, maxheight; - int numer, denom; - - GLFWbool stickyKeys; - GLFWbool stickyMouseButtons; - int cursorMode; - char mouseButtons[GLFW_MOUSE_BUTTON_LAST + 1]; - char keys[GLFW_KEY_LAST + 1]; - // Virtual cursor position when cursor is disabled - double virtualCursorPosX, virtualCursorPosY; - - _GLFWcontext context; - - struct { - GLFWwindowposfun pos; - GLFWwindowsizefun size; - GLFWwindowclosefun close; - GLFWwindowrefreshfun refresh; - GLFWwindowfocusfun focus; - GLFWwindowiconifyfun iconify; - GLFWwindowmaximizefun maximize; - GLFWframebuffersizefun fbsize; - GLFWmousebuttonfun mouseButton; - GLFWcursorposfun cursorPos; - GLFWcursorenterfun cursorEnter; - GLFWscrollfun scroll; - GLFWkeyfun key; - GLFWcharfun character; - GLFWcharmodsfun charmods; - GLFWdropfun drop; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_WINDOW_STATE; -}; - -/*! @brief Monitor structure. - */ -struct _GLFWmonitor -{ - char* name; - - // Physical dimensions in millimeters. - int widthMM, heightMM; - - // The window whose video mode is current on this monitor - _GLFWwindow* window; - - GLFWvidmode* modes; - int modeCount; - GLFWvidmode currentMode; - - GLFWgammaramp originalRamp; - GLFWgammaramp currentRamp; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_MONITOR_STATE; -}; - -/*! @brief Cursor structure - */ -struct _GLFWcursor -{ - _GLFWcursor* next; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_CURSOR_STATE; -}; - -/*! @brief Gamepad mapping element structure - */ -struct _GLFWmapelement -{ - uint8_t type; - uint8_t value; -}; - -/*! @brief Gamepad mapping structure - */ -struct _GLFWmapping -{ - char name[128]; - char guid[33]; - _GLFWmapelement buttons[15]; - _GLFWmapelement axes[6]; -}; - -/*! @brief Joystick structure - */ -struct _GLFWjoystick -{ - GLFWbool present; - float* axes; - int axisCount; - unsigned char* buttons; - int buttonCount; - unsigned char* hats; - int hatCount; - char* name; - char guid[33]; - _GLFWmapping* mapping; - - // This is defined in the joystick API's joystick.h - _GLFW_PLATFORM_JOYSTICK_STATE; -}; - -/*! @brief Thread local storage structure. - */ -struct _GLFWtls -{ - // This is defined in the platform's thread.h - _GLFW_PLATFORM_TLS_STATE; -}; - -/*! @brief Mutex structure. - */ -struct _GLFWmutex -{ - // This is defined in the platform's thread.h - _GLFW_PLATFORM_MUTEX_STATE; -}; - -/*! @brief Library global data. - */ -struct _GLFWlibrary -{ - GLFWbool initialized; - - struct { - _GLFWinitconfig init; - _GLFWfbconfig framebuffer; - _GLFWwndconfig window; - _GLFWctxconfig context; - int refreshRate; - } hints; - - _GLFWerror* errorListHead; - _GLFWcursor* cursorListHead; - _GLFWwindow* windowListHead; - - _GLFWmonitor** monitors; - int monitorCount; - - _GLFWjoystick joysticks[GLFW_JOYSTICK_LAST + 1]; - _GLFWmapping* mappings; - int mappingCount; - - _GLFWtls errorSlot; - _GLFWtls contextSlot; - _GLFWmutex errorLock; - - struct { - uint64_t offset; - // This is defined in the platform's time.h - _GLFW_PLATFORM_LIBRARY_TIMER_STATE; - } timer; - - struct { - GLFWbool available; - void* handle; - char* extensions[2]; -#if !defined(_GLFW_VULKAN_STATIC) - PFN_vkEnumerateInstanceExtensionProperties EnumerateInstanceExtensionProperties; - PFN_vkGetInstanceProcAddr GetInstanceProcAddr; -#endif - GLFWbool KHR_surface; -#if defined(_GLFW_WIN32) - GLFWbool KHR_win32_surface; -#elif defined(_GLFW_COCOA) - GLFWbool MVK_macos_surface; -#elif defined(_GLFW_X11) - GLFWbool KHR_xlib_surface; - GLFWbool KHR_xcb_surface; -#elif defined(_GLFW_WAYLAND) - GLFWbool KHR_wayland_surface; -#elif defined(_GLFW_MIR) - GLFWbool KHR_mir_surface; -#endif - } vk; - - struct { - GLFWmonitorfun monitor; - GLFWjoystickfun joystick; - } callbacks; - - // This is defined in the window API's platform.h - _GLFW_PLATFORM_LIBRARY_WINDOW_STATE; - // This is defined in the context API's context.h - _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE; - // This is defined in the platform's joystick.h - _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE; - // This is defined in egl_context.h - _GLFW_EGL_LIBRARY_CONTEXT_STATE; - // This is defined in osmesa_context.h - _GLFW_OSMESA_LIBRARY_CONTEXT_STATE; -}; - - -//======================================================================== -// Global state shared between compilation units of GLFW -//======================================================================== - -/*! @brief All global data shared between compilation units. - */ -extern _GLFWlibrary _glfw; - - -//======================================================================== -// Platform API functions -//======================================================================== - -/*! @addtogroup platform @{ */ - -int _glfwPlatformInit(void); -void _glfwPlatformTerminate(void); -const char* _glfwPlatformGetVersionString(void); - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos); -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos); -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode); -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape); -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor); -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor); - -const char* _glfwPlatformGetScancodeName(int scancode); -int _glfwPlatformGetKeyScancode(int key); - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos); -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count); -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode); -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp); -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string); -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window); - -int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode); -void _glfwPlatformUpdateGamepadGUID(char* guid); - -uint64_t _glfwPlatformGetTimerValue(void); -uint64_t _glfwPlatformGetTimerFrequency(void); - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig); -void _glfwPlatformDestroyWindow(_GLFWwindow* window); -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title); -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, int count, const GLFWimage* images); -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos); -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos); -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height); -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height); -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom); -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height); -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); -void _glfwPlatformIconifyWindow(_GLFWwindow* window); -void _glfwPlatformRestoreWindow(_GLFWwindow* window); -void _glfwPlatformMaximizeWindow(_GLFWwindow* window); -void _glfwPlatformShowWindow(_GLFWwindow* window); -void _glfwPlatformHideWindow(_GLFWwindow* window); -void _glfwPlatformRequestWindowAttention(_GLFWwindow* window); -void _glfwPlatformFocusWindow(_GLFWwindow* window); -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); -int _glfwPlatformWindowFocused(_GLFWwindow* window); -int _glfwPlatformWindowIconified(_GLFWwindow* window); -int _glfwPlatformWindowVisible(_GLFWwindow* window); -int _glfwPlatformWindowMaximized(_GLFWwindow* window); -int _glfwPlatformFramebufferTransparent(_GLFWwindow* window); -void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled); -void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled); -void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled); - -void _glfwPlatformPollEvents(void); -void _glfwPlatformWaitEvents(void); -void _glfwPlatformWaitEventsTimeout(double timeout); -void _glfwPlatformPostEmptyEvent(void); - -void _glfwPlatformGetRequiredInstanceExtensions(char** extensions); -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); - -GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls); -void _glfwPlatformDestroyTls(_GLFWtls* tls); -void* _glfwPlatformGetTls(_GLFWtls* tls); -void _glfwPlatformSetTls(_GLFWtls* tls, void* value); - -GLFWbool _glfwPlatformCreateMutex(_GLFWmutex* mutex); -void _glfwPlatformDestroyMutex(_GLFWmutex* mutex); -void _glfwPlatformLockMutex(_GLFWmutex* mutex); -void _glfwPlatformUnlockMutex(_GLFWmutex* mutex); - -/*! @} */ - - -//======================================================================== -// Event API functions -//======================================================================== - -/*! @brief Notifies shared code that a window has lost or received input focus. - * @param[in] window The window that received the event. - * @param[in] focused `GLFW_TRUE` if the window received focus, or `GLFW_FALSE` - * if it lost focus. - * @ingroup event - */ -void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused); - -/*! @brief Notifies shared code that a window has moved. - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate of the client area of the window. - * @param[in] ypos The new y-coordinate of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowPos(_GLFWwindow* window, int xpos, int ypos); - -/*! @brief Notifies shared code that a window has been resized. - * @param[in] window The window that received the event. - * @param[in] width The new width of the client area of the window. - * @param[in] height The new height of the client area of the window. - * @ingroup event - */ -void _glfwInputWindowSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code that a window framebuffer has been resized. - * @param[in] window The window that received the event. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * @ingroup event - */ -void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height); - -/*! @brief Notifies shared code that a window has been iconified or restored. - * @param[in] window The window that received the event. - * @param[in] iconified `GLFW_TRUE` if the window was iconified, or - * `GLFW_FALSE` if it was restored. - * @ingroup event - */ -void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified); - -/*! @brief Notifies shared code that a window has been maximized or restored. - * @param[in] window The window that received the event. - * @param[in] maximized `GLFW_TRUE` if the window was maximized, or - * `GLFW_FALSE` if it was restored. - * @ingroup event - */ -void _glfwInputWindowMaximize(_GLFWwindow* window, GLFWbool maximized); - -/*! @brief Notifies shared code that a window's contents needs updating. - * @param[in] window The window that received the event. - */ -void _glfwInputWindowDamage(_GLFWwindow* window); - -/*! @brief Notifies shared code that the user wishes to close a window. - * @param[in] window The window that received the event. - * @ingroup event - */ -void _glfwInputWindowCloseRequest(_GLFWwindow* window); - -/*! @brief Notifies shared code that a window has changed its desired monitor. - * @param[in] window The window that received the event. - * @param[in] monitor The new desired monitor, or `NULL`. - * @ingroup event - */ -void _glfwInputWindowMonitorChange(_GLFWwindow* window, _GLFWmonitor* monitor); - -/*! @brief Notifies shared code of a physical key event. - * @param[in] window The window that received the event. - * @param[in] key The key that was pressed or released. - * @param[in] scancode The system-specific scan code of the key. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @param[in] mods The modifiers pressed when the event was generated. - * @ingroup event - */ -void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods); - -/*! @brief Notifies shared code of a Unicode character input event. - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the input character. - * @param[in] mods Bit field describing which modifier keys were held down. - * @param[in] plain `GLFW_TRUE` if the character is regular text input, or - * `GLFW_FALSE` otherwise. - * @ingroup event - */ -void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain); - -/*! @brief Notifies shared code of a scroll event. - * @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. - * @ingroup event - */ -void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset); - -/*! @brief Notifies shared code of a mouse button click event. - * @param[in] window The window that received the event. - * @param[in] button The button that was pressed or released. - * @param[in] action @ref GLFW_PRESS or @ref GLFW_RELEASE. - * @param[in] mods The modifiers pressed when the event was generated. - * @ingroup event - */ -void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods); - -/*! @brief Notifies shared code of a cursor motion event. - * @param[in] window The window that received the event. - * @param[in] xpos The new x-coordinate of the cursor, relative to the left - * edge of the client area of the window. - * @param[in] ypos The new y-coordinate of the cursor, relative to the top edge - * of the client area of the window. - * @ingroup event - */ -void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos); - -/*! @brief Notifies shared code of a cursor enter/leave event. - * @param[in] window The window that received the event. - * @param[in] entered `GLFW_TRUE` if the cursor entered the client area of the - * window, or `GLFW_FALSE` if it left it. - * @ingroup event - */ -void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered); - -/*! @brief Notifies shared code of a monitor connection or disconnection. - * @param[in] monitor The monitor that was connected or disconnected. - * @param[in] action One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * @param[in] placement `_GLFW_INSERT_FIRST` or `_GLFW_INSERT_LAST`. - * @ingroup event - */ -void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement); - -/*! @brief Notifies shared code that a full screen window has acquired or - * released a monitor. - * @param[in] monitor The monitor that was acquired or released. - * @param[in] window The window that acquired the monitor, or `NULL`. - * @ingroup event - */ -void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window); - -/*! @brief Notifies shared code of an error. - * @param[in] code The error code most suitable for the error. - * @param[in] format The `printf` style format string of the error - * description. - * @ingroup event - */ -#if defined(__GNUC__) -void _glfwInputError(int code, const char* format, ...) __attribute__((format(printf, 2, 3))); -#else -void _glfwInputError(int code, const char* format, ...); -#endif - -/*! @brief Notifies shared code of files or directories dropped on a window. - * @param[in] window The window that received the event. - * @param[in] count The number of dropped objects. - * @param[in] names The names of the dropped objects. - * @ingroup event - */ -void _glfwInputDrop(_GLFWwindow* window, int count, const char** names); - -/*! @brief Notifies shared code of a joystick connection or disconnection. - * @param[in] js The joystick that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * @ingroup event - */ -void _glfwInputJoystick(_GLFWjoystick* js, int event); - -/*! @brief Notifies shared code of the new value of a joystick axis. - * @param[in] js The joystick whose axis to update. - * @param[in] axis The index of the axis to update. - * @param[in] value The new value of the axis. - */ -void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value); - -/*! @brief Notifies shared code of the new value of a joystick button. - * @param[in] js The joystick whose button to update. - * @param[in] button The index of the button to update. - * @param[in] value The new value of the button. - */ -void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value); - -/*! @brief Notifies shared code of the new value of a joystick hat. - * @param[in] js The joystick whose hat to update. - * @param[in] button The index of the hat to update. - * @param[in] value The new value of the hat. - */ -void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value); - - -//======================================================================== -// Utility functions -//======================================================================== - -/*! @brief Chooses the video mode most closely matching the desired one. - * @ingroup utility - */ -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired); - -/*! @brief Performs lexical comparison between two @ref GLFWvidmode structures. - * @ingroup utility - */ -int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second); - -/*! @brief Splits a color depth into red, green and blue bit depths. - * @ingroup utility - */ -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue); - -/*! @brief Searches an extension string for the specified extension. - * @param[in] string The extension string to search. - * @param[in] extensions The extension to search for. - * @return `GLFW_TRUE` if the extension was found, or `GLFW_FALSE` otherwise. - * @ingroup utility - */ -GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions); - -/*! @brief Chooses the framebuffer config that best matches the desired one. - * @param[in] desired The desired framebuffer config. - * @param[in] alternatives The framebuffer configs supported by the system. - * @param[in] count The number of entries in the alternatives array. - * @return The framebuffer config most closely matching the desired one, or @c - * NULL if none fulfilled the hard constraints of the desired values. - * @ingroup utility - */ -const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, - const _GLFWfbconfig* alternatives, - unsigned int count); - -/*! @brief Retrieves the attributes of the current context. - * @param[in] ctxconfig The desired context attributes. - * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if the context is - * unusable. - * @ingroup utility - */ -GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig); - -/*! @brief Checks whether the desired context attributes are valid. - * @param[in] ctxconfig The context attributes to check. - * @return `GLFW_TRUE` if the context attributes are valid, or `GLFW_FALSE` - * otherwise. - * @ingroup utility - * - * This function checks things like whether the specified client API version - * exists and whether all relevant options have supported and non-conflicting - * values. - */ -GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig); - -/*! @brief Allocates red, green and blue value arrays of the specified size. - * @ingroup utility - */ -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size); - -/*! @brief Frees the red, green and blue value arrays and clears the struct. - * @ingroup utility - */ -void _glfwFreeGammaArrays(GLFWgammaramp* ramp); - -/*! @brief Allocates and returns a monitor object with the specified name - * and dimensions. - * @param[in] name The name of the monitor. - * @param[in] widthMM The width, in mm, of the monitor's display area. - * @param[in] heightMM The height, in mm, of the monitor's display area. - * @return The newly created object. - * @ingroup utility - */ -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM); - -/*! @brief Frees a monitor object and any data associated with it. - * @ingroup utility - */ -void _glfwFreeMonitor(_GLFWmonitor* monitor); - -/*! @brief Returns an available joystick object with arrays and name allocated. - * @ingroup utility - */ -_GLFWjoystick* _glfwAllocJoystick(const char* name, - const char* guid, - int axisCount, - int buttonCount, - int hatCount); - -/*! @brief Frees arrays and name and flags the joystick object as unused. - * @ingroup utility - */ -void _glfwFreeJoystick(_GLFWjoystick* js); - -/*! @ingroup utility - */ -GLFWbool _glfwInitVulkan(int mode); - -/*! @ingroup utility - */ -void _glfwTerminateVulkan(void); - -/*! @ingroup utility - */ -const char* _glfwGetVulkanResultString(VkResult result); - diff --git a/external/GLFW/src/mappings.h b/external/GLFW/src/mappings.h deleted file mode 100644 index 6c1b800..0000000 --- a/external/GLFW/src/mappings.h +++ /dev/null @@ -1,241 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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. -// -//======================================================================== -// As mappings.h.in, this file is used by CMake to produce the mappings.h -// header file. If you are adding a GLFW specific gamepad mapping, this is -// where to put it. -//======================================================================== -// As mappings.h, this provides all pre-defined gamepad mappings, including -// all available in SDL_GameControllerDB. Do not edit this file. Any gamepad -// mappings not specific to GLFW should be submitted to SDL_GameControllerDB. -// This file can be re-generated from mappings.h.in and the upstream -// gamecontrollerdb.txt with the GenerateMappings.cmake script. -//======================================================================== - -// All gamepad mappings not labeled GLFW are copied from the -// SDL_GameControllerDB project under the following license: -// -// Simple DirectMedia Layer -// Copyright (C) 1997-2013 Sam Lantinga -// -// 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. - -const char* _glfwDefaultMappings = -"8f0e1200000000000000504944564944,Acme,platform:Windows,x:b2,a:b0,b:b1,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b5,rightshoulder:b6,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,\n" -"341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,\n" -"ffff0000000000000000504944564944,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,\n" -"6d0416c2000000000000504944564944,Generic DirectInput Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,\n" -"0d0f6e00000000000000504944564944,HORIPAD 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"6d0419c2000000000000504944564944,Logitech F710 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,\n" -"88880803000000000000504944564944,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b9,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b0,y:b3,platform:Windows,\n" -"4c056802000000000000504944564944,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Windows,\n" -"25090500000000000000504944564944,PS3 DualShock,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,platform:Windows,\n" -"4c05c405000000000000504944564944,Sony DualShock 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Windows,\n" -"4c05cc09000000000000504944564944,Sony DualShock 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Windows,\n" -"4c05a00b000000000000504944564944,Sony DualShock 4 Wireless Adaptor,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Windows,\n" -"6d0418c2000000000000504944564944,Logitech RumblePad 2 USB,platform:Windows,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"36280100000000000000504944564944,OUYA Controller,platform:Windows,a:b0,b:b3,y:b2,x:b1,start:b14,guide:b15,leftstick:b6,rightstick:b7,leftshoulder:b4,rightshoulder:b5,dpup:b8,dpleft:b10,dpdown:b9,dpright:b11,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:b12,righttrigger:b13,\n" -"4f0400b3000000000000504944564944,Thrustmaster Firestorm Dual Power,a:b0,b:b2,y:b3,x:b1,start:b10,guide:b8,back:b9,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,platform:Windows,\n" -"00f00300000000000000504944564944,RetroUSB.com RetroPad,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Windows,\n" -"00f0f100000000000000504944564944,RetroUSB.com Super RetroPort,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Windows,\n" -"28040140000000000000504944564944,GamePad Pro USB,platform:Windows,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,lefttrigger:b6,righttrigger:b7,\n" -"ff113133000000000000504944564944,SVEN X-PAD,platform:Windows,a:b2,b:b3,y:b1,x:b0,start:b5,back:b4,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a4,lefttrigger:b8,righttrigger:b9,\n" -"8f0e0300000000000000504944564944,Piranha xtreme,platform:Windows,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b4,rightshoulder:b7,righttrigger:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,\n" -"8f0e0d31000000000000504944564944,Multilaser JS071 USB,platform:Windows,a:b1,b:b2,y:b3,x:b0,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,\n" -"10080300000000000000504944564944,PS2 USB,platform:Windows,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a4,righty:a2,lefttrigger:b4,righttrigger:b5,\n" -"79000600000000000000504944564944,G-Shark GS-GP702,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a4,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"4b12014d000000000000504944564944,NYKO AIRFLO,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b10,start:b9,leftstick:a0,rightstick:a2,leftshoulder:a3,rightshoulder:b5,dpup:h0.1,dpdown:h0.0,dpleft:h0.8,dpright:h0.2,leftx:h0.6,lefty:h0.12,rightx:h0.9,righty:h0.4,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"d6206dca000000000000504944564944,PowerA Pro Ex,a:b1,b:b2,x:b0,y:b3,back:b8,guide:b12,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.0,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"a3060cff000000000000504944564944,Saitek P2500,a:b2,b:b3,y:b1,x:b0,start:b4,guide:b10,back:b5,leftstick:b8,rightstick:b9,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,platform:Windows,\n" -"4f0415b3000000000000504944564944,Thrustmaster Dual Analog 3.2,platform:Windows,x:b1,a:b0,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b5,rightshoulder:b6,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"6f0e1e01000000000000504944564944,Rock Candy Gamepad for PS3,platform:Windows,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,guide:b12,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,\n" -"83056020000000000000504944564944,iBuffalo USB 2-axis 8-button Gamepad,a:b1,b:b0,y:b2,x:b3,start:b7,back:b6,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Windows,\n" -"10080100000000000000504944564944,PS1 USB,platform:Windows,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftshoulder:b6,rightshoulder:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,\n" -"49190204000000000000504944564944,Ipega PG-9023,a:b0,b:b1,x:b3,y:b4,back:b10,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:b8,righttrigger:b9,platform:Windows,\n" -"4f0423b3000000000000504944564944,Dual Trigger 3-in-1,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"0d0f4900000000000000504944564944,Hatsune Miku Sho Controller,a:b1,b:b2,x:b0,y:b3,back:b8,guide:b12,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"79004318000000000000504944564944,Mayflash GameCube Controller Adapter,platform:Windows,a:b1,b:b2,x:b0,y:b3,back:b0,start:b9,guide:b0,leftshoulder:b4,rightshoulder:b7,leftstick:b0,rightstick:b0,leftx:a0,lefty:a1,rightx:a5,righty:a2,lefttrigger:a3,righttrigger:a4,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,\n" -"79000018000000000000504944564944,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"2509e803000000000000504944564944,Mayflash Wii Classic Controller,a:b1,b:b0,x:b3,y:b2,back:b8,guide:b10,start:b9,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:b11,dpdown:b13,dpleft:b12,dpright:b14,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"300f1001000000000000504944564944,Saitek P480 Rumble Pad,a:b2,b:b3,x:b0,y:b1,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b5,righttrigger:b7,platform:Windows,\n" -"10280900000000000000504944564944,8Bitdo SFC30 GamePad,a:b1,b:b0,y:b3,x:b4,start:b11,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,platform:Windows,\n" -"63252305000000000000504944564944,USB Vibration Joystick (BM),platform:Windows,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"20380900000000000000504944564944,8Bitdo NES30 PRO Wireless,platform:Windows,a:b0,b:b1,x:b3,y:b4,leftshoulder:b6,rightshoulder:b7,lefttrigger:b8,righttrigger:b9,back:b10,start:b11,leftstick:b13,rightstick:b14,leftx:a0,lefty:a1,rightx:a3,righty:a4,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"02200090000000000000504944564944,8Bitdo NES30 PRO USB,platform:Windows,a:b0,b:b1,x:b3,y:b4,leftshoulder:b6,rightshoulder:b7,lefttrigger:b8,righttrigger:b9,back:b10,start:b11,leftstick:b13,rightstick:b14,leftx:a0,lefty:a1,rightx:a3,righty:a4,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"ff113133000000000000504944564944,Gembird JPD-DualForce,platform:Windows,a:b2,b:b3,x:b0,y:b1,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a4,lefttrigger:b6,righttrigger:b7,leftstick:b10,rightstick:b11,\n" -"341a0108000000000000504944564944,EXEQ RF USB Gamepad 8206,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,leftstick:b8,rightstick:b7,back:b8,start:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftx:a0,lefty:a1,rightx:a2,righty:a3,platform:Windows,\n" -"c0111352000000000000504944564944,Battalife Joystick,platform:Windows,x:b4,a:b6,b:b7,y:b5,back:b2,start:b3,leftshoulder:b0,rightshoulder:b1,leftx:a0,lefty:a1,\n" -"100801e5000000000000504944564944,NEXT Classic USB Game Controller,a:b0,b:b1,back:b8,start:b9,rightx:a2,righty:a3,leftx:a0,lefty:a1,platform:Windows,\n" -"79000600000000000000504944564944,NGS Phantom,a:b2,b:b3,y:b1,x:b0,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a4,lefttrigger:b6,righttrigger:b7,platform:Windows,\n" -"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,\n" -"6d0400000000000016c2000000000000,Logitech F310 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,\n" -"6d0400000000000018c2000000000000,Logitech F510 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,\n" -"6d040000000000001fc2000000000000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,\n" -"6d0400000000000019c2000000000000,Logitech Wireless Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,\n" -"4c050000000000006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Mac OS X,\n" -"4c05000000000000c405000000000000,Sony DualShock 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Mac OS X,\n" -"4c05000000000000cc09000000000000,Sony DualShock 4 V2,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Mac OS X,\n" -"5e040000000000008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,\n" -"891600000000000000fd000000000000,Razer Onza Tournament,a:b0,b:b1,y:b3,x:b2,start:b8,guide:b10,back:b9,leftstick:b6,rightstick:b7,leftshoulder:b4,rightshoulder:b5,dpup:b11,dpleft:b13,dpdown:b12,dpright:b14,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,platform:Mac OS X,\n" -"4f0400000000000000b3000000000000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,y:b3,x:b1,start:b10,guide:b8,back:b9,leftstick:b11,rightstick:,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,platform:Mac OS X,\n" -"8f0e0000000000000300000000000000,Piranha xtreme,platform:Mac OS X,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b4,rightshoulder:b7,righttrigger:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,\n" -"0d0f0000000000004d00000000000000,HORI Gem Pad 3,platform:Mac OS X,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,\n" -"79000000000000000600000000000000,G-Shark GP-702,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:b6,righttrigger:b7,platform:Mac OS X,\n" -"4f0400000000000015b3000000000000,Thrustmaster Dual Analog 3.2,platform:Mac OS X,x:b1,a:b0,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b5,rightshoulder:b6,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"AD1B00000000000001F9000000000000,Gamestop BB-070 X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,\n" -"050000005769696d6f74652028303000,Wii Remote,a:b4,b:b5,y:b9,x:b10,start:b6,guide:b8,back:b7,dpup:b2,dpleft:b0,dpdown:b3,dpright:b1,leftx:a0,lefty:a1,lefttrigger:b12,righttrigger:,leftshoulder:b11,platform:Mac OS X,\n" -"83050000000000006020000000000000,iBuffalo USB 2-axis 8-button Gamepad,a:b1,b:b0,x:b3,y:b2,back:b6,start:b7,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Mac OS X,\n" -"bd1200000000000015d0000000000000,Tomee SNES USB Controller,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Mac OS X,\n" -"79000000000000001100000000000000,Retrolink Classic Controller,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a3,lefty:a4,platform:Mac OS X,\n" -"5e04000000000000dd02000000000000,Xbox One Wired Controller,platform:Mac OS X,x:b2,a:b0,b:b1,y:b3,back:b9,guide:b10,start:b8,dpleft:b13,dpdown:b12,dpright:b14,dpup:b11,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b6,rightstick:b7,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"5e04000000000000ea02000000000000,Xbox Wireless Controller,platform:Mac OS X,x:b2,a:b0,b:b1,y:b3,back:b9,guide:b10,start:b8,dpleft:b13,dpdown:b12,dpright:b14,dpup:b11,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b6,rightstick:b7,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"5e04000000000000e002000000000000,Xbox Wireless Controller,platform:Mac OS X,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b10,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"050000005769696d6f74652028313800,Wii U Pro Controller,a:b16,b:b15,x:b18,y:b17,back:b7,guide:b8,start:b6,leftstick:b23,rightstick:b24,leftshoulder:b19,rightshoulder:b20,dpup:b11,dpdown:b12,dpleft:b13,dpright:b14,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b21,righttrigger:b22,platform:Mac OS X,\n" -"79000000000000000018000000000000,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b4,b:b8,x:b0,y:b12,back:b32,start:b36,leftstick:b40,rightstick:b44,leftshoulder:b16,rightshoulder:b20,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a4,rightx:a8,righty:a12,lefttrigger:b24,righttrigger:b28,platform:Mac OS X,\n" -"2509000000000000e803000000000000,Mayflash Wii Classic Controller,a:b1,b:b0,x:b3,y:b2,back:b8,guide:b10,start:b9,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:b11,dpdown:b13,dpleft:b12,dpright:b14,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Mac OS X,\n" -"351200000000000021ab000000000000,SFC30 Joystick,a:b1,b:b0,x:b4,y:b3,back:b10,start:b11,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Mac OS X,\n" -"b4040000000000000a01000000000000,Sega Saturn USB Gamepad,a:b0,b:b1,x:b3,y:b4,back:b5,guide:b2,start:b8,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Mac OS X,\n" -"81170000000000007e05000000000000,Sega Saturn,x:b0,a:b2,b:b4,y:b6,start:b13,dpleft:b15,dpdown:b16,dpright:b14,dpup:b17,leftshoulder:b8,lefttrigger:a5,lefttrigger:b10,rightshoulder:b9,righttrigger:a4,righttrigger:b11,leftx:a0,lefty:a2,platform:Mac OS X,\n" -"10280000000000000900000000000000,8Bitdo SFC30 GamePad,a:b1,b:b0,x:b4,y:b3,back:b10,start:b11,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Mac OS X,\n" -"d814000000000000cecf000000000000,MC Cthulhu,platform:Mac OS X,leftx:,lefty:,rightx:,righty:,lefttrigger:b6,a:b1,b:b2,y:b3,x:b0,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,righttrigger:b7,\n" -"0d0f0000000000006600000000000000,HORIPAD FPS PLUS 4,platform:Mac OS X,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:b6,righttrigger:a4,\n" -"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,\n" -"03000000ba2200002010000001010000,Jess Technology USB Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,\n" -"030000006d04000019c2000010010000,Logitech Cordless RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,\n" -"030000006d0400001dc2000014400000,Logitech F310 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000006d04000016c2000011010000,Logitech F310 Gamepad (DInput),x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,platform:Linux,\n" -"030000006d0400001ec2000020200000,Logitech F510 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000006d04000019c2000011010000,Logitech F710 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,\n" -"030000006d0400001fc2000005030000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000004c0500006802000011010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,\n" -"030000004c050000c405000011010000,Sony DualShock 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Linux,\n" -"050000004c050000c405000000010000,Sony DualShock 4 BT,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,\n" -"030000004c050000cc09000011010000,Sony DualShock 4 V2,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Linux,\n" -"050000004c050000cc09000000010000,Sony DualShock 4 V2 BT,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Linux,\n" -"030000004c050000a00b000011010000,Sony DualShock 4 Wireless Adaptor,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Linux,\n" -"030000006f0e00003001000001010000,EA Sports PS3 Controller,platform:Linux,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,\n" -"03000000de280000ff11000001000000,Valve Streaming Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000005e0400008e02000014010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000005e0400008e02000010010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"030000005e0400001907000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,\n" -"03000000100800000100000010010000,Twin USB PS2 Adapter,a:b2,b:b1,y:b0,x:b3,start:b9,guide:,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,platform:Linux,\n" -"03000000a306000023f6000011010000,Saitek Cyborg V.1 Game Pad,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a4,lefttrigger:b6,righttrigger:b7,platform:Linux,\n" -"030000004f04000020b3000010010000,Thrustmaster 2 in 1 DT,a:b0,b:b2,y:b3,x:b1,start:b9,guide:,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,platform:Linux,\n" -"030000004f04000023b3000000010000,Thrustmaster Dual Trigger 3-in-1,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a5,\n" -"030000008f0e00000300000010010000,GreenAsia Inc. USB Joystick ,platform:Linux,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b6,lefttrigger:b4,rightshoulder:b7,righttrigger:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,\n" -"030000008f0e00001200000010010000,GreenAsia Inc. USB Joystick ,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b5,rightshoulder:b6,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a2,\n" -"030000005e0400009102000007010000,X360 Wireless Controller,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:b13,dpleft:b11,dpdown:b14,dpright:b12,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,platform:Linux,\n" -"030000006d04000016c2000010010000,Logitech Logitech Dual Action,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"03000000260900008888000000010000,GameCube {WiseGroup USB box},a:b0,b:b2,y:b3,x:b1,start:b7,leftshoulder:,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,rightstick:,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,platform:Linux,\n" -"030000006d04000011c2000010010000,Logitech WingMan Cordless RumblePad,a:b0,b:b1,y:b4,x:b3,start:b8,guide:b5,back:b2,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:b9,righttrigger:b10,platform:Linux,\n" -"030000006d04000018c2000010010000,Logitech Logitech RumblePad 2 USB,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"05000000d6200000ad0d000001000000,Moga Pro,platform:Linux,a:b0,b:b1,y:b3,x:b2,start:b6,leftstick:b7,rightstick:b8,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a5,righttrigger:a4,\n" -"030000004f04000009d0000000010000,Thrustmaster Run N Drive Wireless PS3,platform:Linux,a:b1,b:b2,x:b0,y:b3,start:b9,guide:b12,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,\n" -"030000004f04000008d0000000010000,Thrustmaster Run N Drive Wireless,platform:Linux,a:b1,b:b2,x:b0,y:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:b6,righttrigger:b7,\n" -"0300000000f000000300000000010000,RetroUSB.com RetroPad,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Linux,\n" -"0300000000f00000f100000000010000,RetroUSB.com Super RetroPort,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,platform:Linux,\n" -"030000006f0e00001f01000000010000,Generic X-Box pad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000280400000140000000010000,Gravis GamePad Pro USB ,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftx:a0,lefty:a1,\n" -"030000005e0400008902000021010000,Microsoft X-Box pad v2 (US),platform:Linux,x:b3,a:b0,b:b1,y:b4,back:b6,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b5,lefttrigger:a2,rightshoulder:b2,righttrigger:a5,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000005e0400008502000000010000,Microsoft X-Box pad (Japan),platform:Linux,x:b3,a:b0,b:b1,y:b4,back:b6,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b5,lefttrigger:a2,rightshoulder:b2,righttrigger:a5,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000006f0e00001e01000011010000,Rock Candy Gamepad for PS3,platform:Linux,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,guide:b12,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,\n" -"03000000250900000500000000010000,Sony PS2 pad with SmartJoy adapter,platform:Linux,a:b2,b:b1,y:b0,x:b3,start:b8,back:b9,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b4,righttrigger:b5,\n" -"030000008916000000fd000024010000,Razer Onza Tournament,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:b13,dpleft:b11,dpdown:b14,dpright:b12,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,platform:Linux,\n" -"030000004f04000000b3000010010000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,y:b3,x:b1,start:b10,guide:b8,back:b9,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,platform:Linux,\n" -"03000000ad1b000001f5000033050000,Hori Pad EX Turbo 2,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,platform:Linux,\n" -"060000004c0500006802000000010000,PS3 Controller (Bluetooth),a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,platform:Linux,\n" -"050000004c0500006802000000010000,PS3 Controller (Bluetooth),a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,platform:Linux,\n" -"03000000790000000600000010010000,DragonRise Inc. Generic USB Joystick ,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a3,rightx:a1,righty:a4,\n" -"03000000666600000488000000010000,Super Joy Box 5 Pro,platform:Linux,a:b2,b:b1,x:b3,y:b0,back:b9,start:b8,leftshoulder:b6,rightshoulder:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b4,righttrigger:b5,dpup:b12,dpleft:b15,dpdown:b14,dpright:b13,\n" -"05000000362800000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,platform:Linux,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,\n" -"05000000362800000100000003010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,platform:Linux,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,\n" -"030000008916000001fd000024010000,Razer Onza Classic Edition,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:b11,dpdown:b14,dpright:b12,dpup:b13,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000005e040000d102000001010000,Microsoft X-Box One pad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000005e040000dd02000003020000,Microsoft X-Box One pad v2,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,platform:Linux,\n" -"03000000790000001100000010010000,RetroLink Saturn Classic Controller,platform:Linux,x:b3,a:b0,b:b1,y:b4,back:b5,guide:b2,start:b8,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,\n" -"050000007e0500003003000001000000,Nintendo Wii U Pro Controller,platform:Linux,a:b0,b:b1,x:b3,y:b2,back:b8,start:b9,guide:b10,leftshoulder:b4,rightshoulder:b5,leftstick:b11,rightstick:b12,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,dpup:b13,dpleft:b15,dpdown:b14,dpright:b16,\n" -"030000005e0400008e02000004010000,Microsoft X-Box 360 pad,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b6,start:b7,guide:b8,leftshoulder:b4,rightshoulder:b5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,\n" -"030000000d0f00002200000011010000,HORI CO. LTD. REAL ARCADE Pro.V3,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,guide:b12,start:b9,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,\n" -"030000000d0f00001000000011010000,HORI CO. LTD. FIGHTING STICK 3,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,guide:b12,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7\n" -"03000000f0250000c183000010010000,Goodbetterbest Ltd USB Controller,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,guide:b12,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"0000000058626f782047616d65706100,Xbox Gamepad (userspace driver),platform:Linux,a:b0,b:b1,x:b2,y:b3,start:b7,back:b6,guide:b8,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,lefttrigger:a5,righttrigger:a4,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"03000000ff1100003133000010010000,PC Game Controller,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Linux,\n" -"030000005e0400008e02000020200000,SpeedLink XEOX Pro Analog Gamepad pad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000006f0e00001304000000010000,Generic X-Box pad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:a0,rightstick:a3,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000a306000018f5000010010000,Saitek PLC Saitek P3200 Rumble Pad,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000830500006020000010010000,iBuffalo USB 2-axis 8-button Gamepad,a:b1,b:b0,x:b3,y:b2,back:b6,start:b7,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Linux,\n" -"03000000bd12000015d0000010010000,Tomee SNES USB Controller,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Linux,\n" -"03000000790000001100000010010000,Retrolink Classic Controller,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,platform:Linux,\n" -"03000000c9110000f055000011010000,HJC Game GAMEPAD,leftx:a0,lefty:a1,dpdown:h0.4,rightstick:b11,rightshoulder:b5,rightx:a2,start:b9,righty:a3,dpleft:h0.8,lefttrigger:b6,x:b2,dpup:h0.1,back:b8,leftstick:b10,leftshoulder:b4,y:b3,a:b0,dpright:h0.2,righttrigger:b7,b:b1,platform:Linux,\n" -"03000000a30600000c04000011010000,Saitek P2900 Wireless Pad,a:b1,b:b2,y:b3,x:b0,start:b12,guide:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,platform:Linux,\n" -"03000000341a000005f7000010010000,GameCube {HuiJia USB box},a:b1,b:b2,y:b3,x:b0,start:b9,guide:,back:,leftstick:,rightstick:,leftshoulder:,dpleft:b15,dpdown:b14,dpright:b13,leftx:a0,lefty:a1,rightx:a5,righty:a2,lefttrigger:a3,righttrigger:a4,rightshoulder:b7,dpup:b12,platform:Linux,\n" -"030000006e0500000320000010010000,JC-U3613M - DirectInput Mode,platform:Linux,x:b0,a:b2,b:b3,y:b1,back:b10,guide:b12,start:b11,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"030000006f0e00004601000001010000,Rock Candy Wired Controller for Xbox One,platform:Linux,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,guide:b8,leftstick:b9,rightstick:b10,lefttrigger:a2,righttrigger:a5,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000380700001647000010040000,Mad Catz Wired Xbox 360 Controller,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"030000006f0e00003901000020060000,Afterglow Wired Controller for Xbox One,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,platform:Linux,\n" -"030000004f04000015b3000010010000,Thrustmaster Dual Analog 4,platform:Linux,a:b0,b:b2,x:b1,y:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b5,righttrigger:b7,\n" -"05000000102800000900000000010000,8Bitdo SFC30 GamePad,platform:Linux,x:b4,a:b1,b:b0,y:b3,back:b10,start:b11,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,\n" -"03000000d81400000862000011010000,HitBox (PS3/PC) Analog Mode,platform:Linux,a:b1,b:b2,y:b3,x:b0,start:b12,guide:b9,back:b8,leftshoulder:b4,rightshoulder:b5,lefttrigger:b6,righttrigger:b7,leftx:a0,lefty:a1,\n" -"030000000d0f00000d00000000010000,hori,platform:Linux,a:b0,b:b6,y:b2,x:b1,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,start:b9,guide:b10,back:b8,leftshoulder:b3,rightshoulder:b7,leftx:b4,lefty:b5,\n" -"03000000ad1b000016f0000090040000,Mad Catz Xbox 360 Controller,platform:Linux,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,\n" -"03000000d814000007cd000011010000,Toodles 2008 Chimp PC/PS3,platform:Linux,a:b0,b:b1,y:b2,x:b3,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,lefttrigger:b6,righttrigger:b7,\n" -"03000000fd0500000030000000010000,InterAct GoPad I-73000 (Fighting Game Layout),platform:Linux,a:b3,b:b4,y:b1,x:b0,start:b7,back:b6,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:b5,\n" -"05000000010000000100000003000000,Nintendo Wiimote,platform:Linux,a:b0,b:b1,y:b3,x:b2,start:b9,guide:b10,back:b8,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,\n" -"030000005e0400008e02000062230000,Microsoft X-Box 360 pad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000a30600000901000000010000,Saitek P880,a:b2,b:b3,y:b1,x:b0,leftstick:b8,rightstick:b9,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b6,righttrigger:b7,platform:Linux,\n" -"030000006f0e00000103000000020000,Logic3 Controller,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"05000000380700006652000025010000,Mad Catz C.T.R.L.R ,platform:Linux,x:b0,a:b1,b:b2,y:b3,back:b8,guide:b12,start:b9,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,\n" -"030000005e0400008e02000073050000,Speedlink TORID Wireless Gamepad,platform:Linux,x:b2,a:b0,b:b1,y:b3,back:b6,guide:b8,start:b7,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,\n" -"03000000ad1b00002ef0000090040000,Mad Catz Fightpad SFxT,platform:Linux,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,lefttrigger:a2,righttrigger:a5,\n" -"05000000a00500003232000001000000,8Bitdo Zero GamePad,platform:Linux,a:b0,b:b1,x:b3,y:b4,back:b10,start:b11,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,\n" -"030000001008000001e5000010010000,NEXT Classic USB Game Controller,a:b0,b:b1,back:b8,start:b9,rightx:a2,righty:a3,leftx:a0,lefty:a1,platform:Linux,\n" -"03000000100800000300000010010000,USB Gamepad,platform:Linux,a:b2,b:b1,x:b3,y:b0,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,\n" -"05000000ac0500003232000001000000,VR-BOX,platform:Linux,a:b0,b:b1,x:b2,y:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,\n" -"03000000780000000600000010010000,Microntek USB Joystick,platform:Linux,x:b3,a:b2,b:b1,y:b0,back:b8,start:b9,leftshoulder:b6,lefttrigger:b4,rightshoulder:b7,righttrigger:b5,leftx:a0,lefty:a1,\n" - -"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n"; - diff --git a/external/GLFW/src/mir_init.c b/external/GLFW/src/mir_init.c deleted file mode 100644 index 5f9ed37..0000000 --- a/external/GLFW/src/mir_init.c +++ /dev/null @@ -1,240 +0,0 @@ -//======================================================================== -// GLFW 3.3 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2017 Brandon Schaefer -// -// 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 "internal.h" - -#include -#include -#include - - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode; - - memset(_glfw.mir.keycodes, -1, sizeof(_glfw.mir.keycodes)); - memset(_glfw.mir.scancodes, -1, sizeof(_glfw.mir.scancodes)); - - _glfw.mir.keycodes[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; - _glfw.mir.keycodes[KEY_1] = GLFW_KEY_1; - _glfw.mir.keycodes[KEY_2] = GLFW_KEY_2; - _glfw.mir.keycodes[KEY_3] = GLFW_KEY_3; - _glfw.mir.keycodes[KEY_4] = GLFW_KEY_4; - _glfw.mir.keycodes[KEY_5] = GLFW_KEY_5; - _glfw.mir.keycodes[KEY_6] = GLFW_KEY_6; - _glfw.mir.keycodes[KEY_7] = GLFW_KEY_7; - _glfw.mir.keycodes[KEY_8] = GLFW_KEY_8; - _glfw.mir.keycodes[KEY_9] = GLFW_KEY_9; - _glfw.mir.keycodes[KEY_0] = GLFW_KEY_0; - _glfw.mir.keycodes[KEY_SPACE] = GLFW_KEY_SPACE; - _glfw.mir.keycodes[KEY_MINUS] = GLFW_KEY_MINUS; - _glfw.mir.keycodes[KEY_EQUAL] = GLFW_KEY_EQUAL; - _glfw.mir.keycodes[KEY_Q] = GLFW_KEY_Q; - _glfw.mir.keycodes[KEY_W] = GLFW_KEY_W; - _glfw.mir.keycodes[KEY_E] = GLFW_KEY_E; - _glfw.mir.keycodes[KEY_R] = GLFW_KEY_R; - _glfw.mir.keycodes[KEY_T] = GLFW_KEY_T; - _glfw.mir.keycodes[KEY_Y] = GLFW_KEY_Y; - _glfw.mir.keycodes[KEY_U] = GLFW_KEY_U; - _glfw.mir.keycodes[KEY_I] = GLFW_KEY_I; - _glfw.mir.keycodes[KEY_O] = GLFW_KEY_O; - _glfw.mir.keycodes[KEY_P] = GLFW_KEY_P; - _glfw.mir.keycodes[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; - _glfw.mir.keycodes[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; - _glfw.mir.keycodes[KEY_A] = GLFW_KEY_A; - _glfw.mir.keycodes[KEY_S] = GLFW_KEY_S; - _glfw.mir.keycodes[KEY_D] = GLFW_KEY_D; - _glfw.mir.keycodes[KEY_F] = GLFW_KEY_F; - _glfw.mir.keycodes[KEY_G] = GLFW_KEY_G; - _glfw.mir.keycodes[KEY_H] = GLFW_KEY_H; - _glfw.mir.keycodes[KEY_J] = GLFW_KEY_J; - _glfw.mir.keycodes[KEY_K] = GLFW_KEY_K; - _glfw.mir.keycodes[KEY_L] = GLFW_KEY_L; - _glfw.mir.keycodes[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; - _glfw.mir.keycodes[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; - _glfw.mir.keycodes[KEY_Z] = GLFW_KEY_Z; - _glfw.mir.keycodes[KEY_X] = GLFW_KEY_X; - _glfw.mir.keycodes[KEY_C] = GLFW_KEY_C; - _glfw.mir.keycodes[KEY_V] = GLFW_KEY_V; - _glfw.mir.keycodes[KEY_B] = GLFW_KEY_B; - _glfw.mir.keycodes[KEY_N] = GLFW_KEY_N; - _glfw.mir.keycodes[KEY_M] = GLFW_KEY_M; - _glfw.mir.keycodes[KEY_COMMA] = GLFW_KEY_COMMA; - _glfw.mir.keycodes[KEY_DOT] = GLFW_KEY_PERIOD; - _glfw.mir.keycodes[KEY_SLASH] = GLFW_KEY_SLASH; - _glfw.mir.keycodes[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; - _glfw.mir.keycodes[KEY_ESC] = GLFW_KEY_ESCAPE; - _glfw.mir.keycodes[KEY_TAB] = GLFW_KEY_TAB; - _glfw.mir.keycodes[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; - _glfw.mir.keycodes[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; - _glfw.mir.keycodes[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; - _glfw.mir.keycodes[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; - _glfw.mir.keycodes[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; - _glfw.mir.keycodes[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; - _glfw.mir.keycodes[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; - _glfw.mir.keycodes[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; - _glfw.mir.keycodes[KEY_MENU] = GLFW_KEY_MENU; - _glfw.mir.keycodes[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; - _glfw.mir.keycodes[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; - _glfw.mir.keycodes[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; - _glfw.mir.keycodes[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; - _glfw.mir.keycodes[KEY_PAUSE] = GLFW_KEY_PAUSE; - _glfw.mir.keycodes[KEY_DELETE] = GLFW_KEY_DELETE; - _glfw.mir.keycodes[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; - _glfw.mir.keycodes[KEY_ENTER] = GLFW_KEY_ENTER; - _glfw.mir.keycodes[KEY_HOME] = GLFW_KEY_HOME; - _glfw.mir.keycodes[KEY_END] = GLFW_KEY_END; - _glfw.mir.keycodes[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; - _glfw.mir.keycodes[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; - _glfw.mir.keycodes[KEY_INSERT] = GLFW_KEY_INSERT; - _glfw.mir.keycodes[KEY_LEFT] = GLFW_KEY_LEFT; - _glfw.mir.keycodes[KEY_RIGHT] = GLFW_KEY_RIGHT; - _glfw.mir.keycodes[KEY_DOWN] = GLFW_KEY_DOWN; - _glfw.mir.keycodes[KEY_UP] = GLFW_KEY_UP; - _glfw.mir.keycodes[KEY_F1] = GLFW_KEY_F1; - _glfw.mir.keycodes[KEY_F2] = GLFW_KEY_F2; - _glfw.mir.keycodes[KEY_F3] = GLFW_KEY_F3; - _glfw.mir.keycodes[KEY_F4] = GLFW_KEY_F4; - _glfw.mir.keycodes[KEY_F5] = GLFW_KEY_F5; - _glfw.mir.keycodes[KEY_F6] = GLFW_KEY_F6; - _glfw.mir.keycodes[KEY_F7] = GLFW_KEY_F7; - _glfw.mir.keycodes[KEY_F8] = GLFW_KEY_F8; - _glfw.mir.keycodes[KEY_F9] = GLFW_KEY_F9; - _glfw.mir.keycodes[KEY_F10] = GLFW_KEY_F10; - _glfw.mir.keycodes[KEY_F11] = GLFW_KEY_F11; - _glfw.mir.keycodes[KEY_F12] = GLFW_KEY_F12; - _glfw.mir.keycodes[KEY_F13] = GLFW_KEY_F13; - _glfw.mir.keycodes[KEY_F14] = GLFW_KEY_F14; - _glfw.mir.keycodes[KEY_F15] = GLFW_KEY_F15; - _glfw.mir.keycodes[KEY_F16] = GLFW_KEY_F16; - _glfw.mir.keycodes[KEY_F17] = GLFW_KEY_F17; - _glfw.mir.keycodes[KEY_F18] = GLFW_KEY_F18; - _glfw.mir.keycodes[KEY_F19] = GLFW_KEY_F19; - _glfw.mir.keycodes[KEY_F20] = GLFW_KEY_F20; - _glfw.mir.keycodes[KEY_F21] = GLFW_KEY_F21; - _glfw.mir.keycodes[KEY_F22] = GLFW_KEY_F22; - _glfw.mir.keycodes[KEY_F23] = GLFW_KEY_F23; - _glfw.mir.keycodes[KEY_F24] = GLFW_KEY_F24; - _glfw.mir.keycodes[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; - _glfw.mir.keycodes[KEY_KPDOT] = GLFW_KEY_KP_MULTIPLY; - _glfw.mir.keycodes[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; - _glfw.mir.keycodes[KEY_KPPLUS] = GLFW_KEY_KP_ADD; - _glfw.mir.keycodes[KEY_KP0] = GLFW_KEY_KP_0; - _glfw.mir.keycodes[KEY_KP1] = GLFW_KEY_KP_1; - _glfw.mir.keycodes[KEY_KP2] = GLFW_KEY_KP_2; - _glfw.mir.keycodes[KEY_KP3] = GLFW_KEY_KP_3; - _glfw.mir.keycodes[KEY_KP4] = GLFW_KEY_KP_4; - _glfw.mir.keycodes[KEY_KP5] = GLFW_KEY_KP_5; - _glfw.mir.keycodes[KEY_KP6] = GLFW_KEY_KP_6; - _glfw.mir.keycodes[KEY_KP7] = GLFW_KEY_KP_7; - _glfw.mir.keycodes[KEY_KP8] = GLFW_KEY_KP_8; - _glfw.mir.keycodes[KEY_KP9] = GLFW_KEY_KP_9; - _glfw.mir.keycodes[KEY_KPCOMMA] = GLFW_KEY_KP_DECIMAL; - _glfw.mir.keycodes[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; - _glfw.mir.keycodes[KEY_KPENTER] = GLFW_KEY_KP_ENTER; - - for (scancode = 0; scancode < 256; scancode++) - { - if (_glfw.mir.keycodes[scancode] > 0) - _glfw.mir.scancodes[_glfw.mir.keycodes[scancode]] = scancode; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - int error; - - _glfw.mir.connection = mir_connect_sync(NULL, __PRETTY_FUNCTION__); - - if (!mir_connection_is_valid(_glfw.mir.connection)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to connect to server: %s", - mir_connection_get_error_message(_glfw.mir.connection)); - - return GLFW_FALSE; - } - - _glfw.mir.display = - mir_connection_get_egl_native_display(_glfw.mir.connection); - - createKeyTables(); - - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; - - _glfwInitTimerPOSIX(); - - _glfw.mir.eventQueue = calloc(1, sizeof(EventQueue)); - _glfwInitEventQueueMir(_glfw.mir.eventQueue); - - error = pthread_mutex_init(&_glfw.mir.eventMutex, NULL); - if (error) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Failed to create event mutex: %s", - strerror(error)); - return GLFW_FALSE; - } - - _glfwPollMonitorsMir(); - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateEGL(); - _glfwTerminateJoysticksLinux(); - - _glfwDeleteEventQueueMir(_glfw.mir.eventQueue); - - pthread_mutex_destroy(&_glfw.mir.eventMutex); - - mir_connection_release(_glfw.mir.connection); -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Mir EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif - " evdev" -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/external/GLFW/src/mir_monitor.c b/external/GLFW/src/mir_monitor.c deleted file mode 100644 index 2684850..0000000 --- a/external/GLFW/src/mir_monitor.c +++ /dev/null @@ -1,205 +0,0 @@ -//======================================================================== -// GLFW 3.3 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2017 Brandon Schaefer -// -// 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 "internal.h" - -#include - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Poll for changes in the set of connected monitors -// -void _glfwPollMonitorsMir(void) -{ - int i; - MirDisplayConfig* displayConfig = - mir_connection_create_display_configuration(_glfw.mir.connection); - - int numOutputs = mir_display_config_get_num_outputs(displayConfig); - - for (i = 0; i < numOutputs; i++) - { - const MirOutput* output = mir_display_config_get_output(displayConfig, i); - MirOutputConnectionState state = mir_output_get_connection_state(output); - bool enabled = mir_output_is_enabled(output); - - if (enabled && state == mir_output_connection_state_connected) - { - int widthMM = mir_output_get_physical_width_mm(output); - int heightMM = mir_output_get_physical_height_mm(output); - int x = mir_output_get_position_x(output); - int y = mir_output_get_position_y(output); - int id = mir_output_get_id(output); - size_t currentMode = mir_output_get_current_mode_index(output); - const char* name = mir_output_type_name(mir_output_get_type(output)); - - _GLFWmonitor* monitor = _glfwAllocMonitor(name, - widthMM, - heightMM); - monitor->mir.x = x; - monitor->mir.y = y; - monitor->mir.outputId = id; - monitor->mir.curMode = currentMode; - monitor->modes = _glfwPlatformGetVideoModes(monitor, &monitor->modeCount); - - _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); - } - } - - mir_display_config_release(displayConfig); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->mir.x; - if (ypos) - *ypos = monitor->mir.y; -} - -static void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, const MirPixelFormat pf) -{ - switch (pf) - { - case mir_pixel_format_rgb_565: - mode->redBits = 5; - mode->greenBits = 6; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_5551: - mode->redBits = 5; - mode->greenBits = 5; - mode->blueBits = 5; - break; - case mir_pixel_format_rgba_4444: - mode->redBits = 4; - mode->greenBits = 4; - mode->blueBits = 4; - break; - case mir_pixel_format_abgr_8888: - case mir_pixel_format_xbgr_8888: - case mir_pixel_format_argb_8888: - case mir_pixel_format_xrgb_8888: - case mir_pixel_format_bgr_888: - case mir_pixel_format_rgb_888: - default: - mode->redBits = 8; - mode->greenBits = 8; - mode->blueBits = 8; - break; - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - int i; - GLFWvidmode* modes = NULL; - MirDisplayConfig* displayConfig = - mir_connection_create_display_configuration(_glfw.mir.connection); - - int numOutputs = mir_display_config_get_num_outputs(displayConfig); - - for (i = 0; i < numOutputs; i++) - { - const MirOutput* output = mir_display_config_get_output(displayConfig, i); - int id = mir_output_get_id(output); - - if (id != monitor->mir.outputId) - continue; - - MirOutputConnectionState state = mir_output_get_connection_state(output); - bool enabled = mir_output_is_enabled(output); - - // We must have been disconnected - if (!enabled || state != mir_output_connection_state_connected) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Monitor no longer connected"); - return NULL; - } - - int numModes = mir_output_get_num_modes(output); - modes = calloc(numModes, sizeof(GLFWvidmode)); - - for (*found = 0; *found < numModes; (*found)++) - { - const MirOutputMode* mode = mir_output_get_mode(output, *found); - int width = mir_output_mode_get_width(mode); - int height = mir_output_mode_get_height(mode); - double refreshRate = mir_output_mode_get_refresh_rate(mode); - MirPixelFormat currentFormat = mir_output_get_current_pixel_format(output); - - modes[*found].width = width; - modes[*found].height = height; - modes[*found].refreshRate = refreshRate; - - FillInRGBBitsFromPixelFormat(&modes[*found], currentFormat); - } - - break; - } - - mir_display_config_release(displayConfig); - - return modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - *mode = monitor->modes[monitor->mir.curMode]; -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwGetMirMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(0); - return monitor->mir.outputId; -} diff --git a/external/GLFW/src/mir_platform.h b/external/GLFW/src/mir_platform.h deleted file mode 100644 index da00a32..0000000 --- a/external/GLFW/src/mir_platform.h +++ /dev/null @@ -1,133 +0,0 @@ -//======================================================================== -// GLFW 3.3 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2017 Brandon Schaefer -// -// 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 -#include -#include - -#include - -typedef VkFlags VkMirWindowCreateFlagsKHR; - -typedef struct VkMirWindowCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkMirWindowCreateFlagsKHR flags; - MirConnection* connection; - MirWindow* mirWindow; -} VkMirWindowCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateMirWindowKHR)(VkInstance,const VkMirWindowCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice,uint32_t,MirConnection*); - -#include "posix_thread.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" -#include "egl_context.h" -#include "osmesa_context.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->mir.nativeWindow) -#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.mir.display) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowMir mir -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorMir mir -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryMir mir -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorMir mir - -#define _GLFW_PLATFORM_CONTEXT_STATE -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE - - -// Mir-specific Event Queue -// -typedef struct EventQueue -{ - TAILQ_HEAD(, EventNode) head; -} EventQueue; - -// Mir-specific per-window data -// -typedef struct _GLFWwindowMir -{ - MirWindow* window; - int width; - int height; - MirEGLNativeWindowType nativeWindow; - _GLFWcursor* currentCursor; - -} _GLFWwindowMir; - -// Mir-specific per-monitor data -// -typedef struct _GLFWmonitorMir -{ - int curMode; - int outputId; - int x; - int y; - -} _GLFWmonitorMir; - -// Mir-specific global data -// -typedef struct _GLFWlibraryMir -{ - MirConnection* connection; - MirEGLNativeDisplayType display; - EventQueue* eventQueue; - - short int keycodes[256]; - short int scancodes[GLFW_KEY_LAST + 1]; - - pthread_mutex_t eventMutex; - pthread_cond_t eventCond; - - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - -} _GLFWlibraryMir; - -// Mir-specific per-cursor data -// TODO: Only system cursors are implemented in Mir atm. Need to wait for support. -// -typedef struct _GLFWcursorMir -{ - MirCursorConfiguration* conf; - MirBufferStream* customCursor; - char const* cursorName; // only needed for system cursors -} _GLFWcursorMir; - - -extern void _glfwPollMonitorsMir(void); -extern void _glfwInitEventQueueMir(EventQueue* queue); -extern void _glfwDeleteEventQueueMir(EventQueue* queue); - diff --git a/external/GLFW/src/mir_window.c b/external/GLFW/src/mir_window.c deleted file mode 100644 index 8b763de..0000000 --- a/external/GLFW/src/mir_window.c +++ /dev/null @@ -1,946 +0,0 @@ -//======================================================================== -// GLFW 3.3 Mir - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014-2017 Brandon Schaefer -// -// 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 "internal.h" - -#include -#include -#include - - -typedef struct EventNode -{ - TAILQ_ENTRY(EventNode) entries; - const MirEvent* event; - _GLFWwindow* window; -} EventNode; - -static void deleteNode(EventQueue* queue, EventNode* node) -{ - mir_event_unref(node->event); - free(node); -} - -static GLFWbool emptyEventQueue(EventQueue* queue) -{ - return queue->head.tqh_first == NULL; -} - -// TODO The mir_event_ref is not supposed to be used but ... its needed -// in this case. Need to wait until we can read from an FD set up by mir -// for single threaded event handling. -static EventNode* newEventNode(const MirEvent* event, _GLFWwindow* context) -{ - EventNode* newNode = calloc(1, sizeof(EventNode)); - newNode->event = mir_event_ref(event); - newNode->window = context; - - return newNode; -} - -static void enqueueEvent(const MirEvent* event, _GLFWwindow* context) -{ - pthread_mutex_lock(&_glfw.mir.eventMutex); - - EventNode* newNode = newEventNode(event, context); - TAILQ_INSERT_TAIL(&_glfw.mir.eventQueue->head, newNode, entries); - - pthread_cond_signal(&_glfw.mir.eventCond); - - pthread_mutex_unlock(&_glfw.mir.eventMutex); -} - -static EventNode* dequeueEvent(EventQueue* queue) -{ - EventNode* node = NULL; - - pthread_mutex_lock(&_glfw.mir.eventMutex); - - node = queue->head.tqh_first; - - if (node) - TAILQ_REMOVE(&queue->head, node, entries); - - pthread_mutex_unlock(&_glfw.mir.eventMutex); - - return node; -} - -static MirPixelFormat findValidPixelFormat(void) -{ - unsigned int i, validFormats, mirPixelFormats = 32; - MirPixelFormat formats[mir_pixel_formats]; - - mir_connection_get_available_surface_formats(_glfw.mir.connection, formats, - mirPixelFormats, &validFormats); - - for (i = 0; i < validFormats; i++) - { - if (formats[i] == mir_pixel_format_abgr_8888 || - formats[i] == mir_pixel_format_xbgr_8888 || - formats[i] == mir_pixel_format_argb_8888 || - formats[i] == mir_pixel_format_xrgb_8888) - { - return formats[i]; - } - } - - return mir_pixel_format_invalid; -} - -static int mirModToGLFWMod(uint32_t mods) -{ - int publicMods = 0x0; - - if (mods & mir_input_event_modifier_alt) - publicMods |= GLFW_MOD_ALT; - else if (mods & mir_input_event_modifier_shift) - publicMods |= GLFW_MOD_SHIFT; - else if (mods & mir_input_event_modifier_ctrl) - publicMods |= GLFW_MOD_CONTROL; - else if (mods & mir_input_event_modifier_meta) - publicMods |= GLFW_MOD_SUPER; - - return publicMods; -} - -static int toGLFWKeyCode(uint32_t key) -{ - if (key < sizeof(_glfw.mir.keycodes) / sizeof(_glfw.mir.keycodes[0])) - return _glfw.mir.keycodes[key]; - - return GLFW_KEY_UNKNOWN; -} - -static void handleKeyEvent(const MirKeyboardEvent* key_event, _GLFWwindow* window) -{ - const int action = mir_keyboard_event_action (key_event); - const int scan_code = mir_keyboard_event_scan_code(key_event); - const int key_code = mir_keyboard_event_key_code (key_event); - const int modifiers = mir_keyboard_event_modifiers(key_event); - - const int pressed = action == mir_keyboard_action_up ? GLFW_RELEASE : GLFW_PRESS; - const int mods = mirModToGLFWMod(modifiers); - const long text = _glfwKeySym2Unicode(key_code); - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - - _glfwInputKey(window, toGLFWKeyCode(scan_code), scan_code, pressed, mods); - - if (text != -1) - _glfwInputChar(window, text, mods, plain); -} - -static void handlePointerButton(_GLFWwindow* window, - int pressed, - const MirPointerEvent* pointer_event) -{ - int mods = mir_pointer_event_modifiers(pointer_event); - const int publicMods = mirModToGLFWMod(mods); - MirPointerButton button = mir_pointer_button_primary; - static uint32_t oldButtonStates = 0; - uint32_t newButtonStates = mir_pointer_event_buttons(pointer_event); - int publicButton = GLFW_MOUSE_BUTTON_LEFT; - - // XOR our old button states our new states to figure out what was added or removed - button = newButtonStates ^ oldButtonStates; - - switch (button) - { - case mir_pointer_button_primary: - publicButton = GLFW_MOUSE_BUTTON_LEFT; - break; - case mir_pointer_button_secondary: - publicButton = GLFW_MOUSE_BUTTON_RIGHT; - break; - case mir_pointer_button_tertiary: - publicButton = GLFW_MOUSE_BUTTON_MIDDLE; - break; - case mir_pointer_button_forward: - // FIXME What is the forward button? - publicButton = GLFW_MOUSE_BUTTON_4; - break; - case mir_pointer_button_back: - // FIXME What is the back button? - publicButton = GLFW_MOUSE_BUTTON_5; - break; - default: - break; - } - - oldButtonStates = newButtonStates; - - _glfwInputMouseClick(window, publicButton, pressed, publicMods); -} - -static void handlePointerMotion(_GLFWwindow* window, - const MirPointerEvent* pointer_event) -{ - const int hscroll = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_hscroll); - const int vscroll = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_vscroll); - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (_glfw.mir.disabledCursorWindow != window) - return; - - const int dx = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_relative_x); - const int dy = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_relative_y); - const int current_x = window->virtualCursorPosX; - const int current_y = window->virtualCursorPosY; - - _glfwInputCursorPos(window, dx + current_x, dy + current_y); - } - else - { - const int x = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_x); - const int y = mir_pointer_event_axis_value(pointer_event, mir_pointer_axis_y); - - _glfwInputCursorPos(window, x, y); - } - - if (hscroll != 0 || vscroll != 0) - _glfwInputScroll(window, hscroll, vscroll); -} - -static void handlePointerEvent(const MirPointerEvent* pointer_event, - _GLFWwindow* window) -{ - int action = mir_pointer_event_action(pointer_event); - - switch (action) - { - case mir_pointer_action_button_down: - handlePointerButton(window, GLFW_PRESS, pointer_event); - break; - case mir_pointer_action_button_up: - handlePointerButton(window, GLFW_RELEASE, pointer_event); - break; - case mir_pointer_action_motion: - handlePointerMotion(window, pointer_event); - break; - case mir_pointer_action_enter: - case mir_pointer_action_leave: - break; - default: - break; - } -} - -static void handleInput(const MirInputEvent* input_event, _GLFWwindow* window) -{ - int type = mir_input_event_get_type(input_event); - - switch (type) - { - case mir_input_event_type_key: - handleKeyEvent(mir_input_event_get_keyboard_event(input_event), window); - break; - case mir_input_event_type_pointer: - handlePointerEvent(mir_input_event_get_pointer_event(input_event), window); - break; - default: - break; - } -} - -static void handleEvent(const MirEvent* event, _GLFWwindow* window) -{ - int type = mir_event_get_type(event); - - switch (type) - { - case mir_event_type_input: - handleInput(mir_event_get_input_event(event), window); - break; - default: - break; - } -} - -static void addNewEvent(MirWindow* window, const MirEvent* event, void* context) -{ - enqueueEvent(event, context); -} - -static GLFWbool createWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - MirBufferUsage buffer_usage = mir_buffer_usage_hardware; - MirPixelFormat pixel_format = findValidPixelFormat(); - - if (pixel_format == mir_pixel_format_invalid) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to find a correct pixel format"); - return GLFW_FALSE; - } - - spec = mir_create_normal_window_spec(_glfw.mir.connection, - window->mir.width, - window->mir.height); - - mir_window_spec_set_pixel_format(spec, pixel_format); - mir_window_spec_set_buffer_usage(spec, buffer_usage); - - window->mir.window = mir_create_window_sync(spec); - mir_window_spec_release(spec); - - if (!mir_window_is_valid(window->mir.window)) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unable to create window: %s", - mir_window_get_error_message(window->mir.window)); - - return GLFW_FALSE; - } - - mir_window_set_event_handler(window->mir.window, addNewEvent, window); - - return GLFW_TRUE; -} - -static void setWindowConfinement(_GLFWwindow* window, MirPointerConfinementState state) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_pointer_confinement(spec, state); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInitEventQueueMir(EventQueue* queue) -{ - TAILQ_INIT(&queue->head); -} - -void _glfwDeleteEventQueueMir(EventQueue* queue) -{ - if (queue) - { - EventNode* node, *node_next; - node = queue->head.tqh_first; - - while (node != NULL) - { - node_next = node->entries.tqe_next; - - TAILQ_REMOVE(&queue->head, node, entries); - deleteNode(queue, node); - - node = node_next; - } - - free(queue); - } -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (window->monitor) - { - GLFWvidmode mode; - _glfwPlatformGetVideoMode(window->monitor, &mode); - - mir_window_set_state(window->mir.window, mir_window_state_fullscreen); - - if (wndconfig->width > mode.width || wndconfig->height > mode.height) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Requested window size too large: %ix%i", - wndconfig->width, wndconfig->height); - - return GLFW_FALSE; - } - } - - window->mir.width = wndconfig->width; - window->mir.height = wndconfig->height; - window->mir.currentCursor = NULL; - - if (!createWindow(window)) - return GLFW_FALSE; - - window->mir.nativeWindow = mir_buffer_stream_get_egl_native_window( - mir_window_get_buffer_stream(window->mir.window)); - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_EGL_CONTEXT_API || - ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) - { - if (!_glfwInitOSMesa()) - return GLFW_FALSE; - if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (_glfw.mir.disabledCursorWindow == window) - _glfw.mir.disabledCursorWindow = NULL; - - if (mir_window_is_valid(window->mir.window)) - { - mir_window_release_sync(window->mir.window); - window->mir.window= NULL; - } - - if (window->context.destroy) - window->context.destroy(window); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_name(spec, title); - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_width (spec, width); - mir_window_spec_set_height(spec, height); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_max_width (spec, maxwidth); - mir_window_spec_set_max_height(spec, maxheight); - mir_window_spec_set_min_width (spec, minwidth); - mir_window_spec_set_min_height(spec, minheight); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_state(spec, mir_window_state_minimized); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_state(spec, mir_window_state_restored); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_state(spec, mir_window_state_maximized); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_state(spec, mir_window_state_hidden); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - MirWindowSpec* spec; - - spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_state(spec, mir_window_state_restored); - - mir_window_apply_spec(window->mir.window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return mir_window_get_focus_state(window->mir.window) == mir_window_focus_state_focused; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GLFW_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return mir_window_get_visibility(window->mir.window) == mir_window_visibility_exposed; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return mir_window_get_state(window->mir.window) == mir_window_state_maximized; -} - -int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return GLFW_FALSE; -} - -void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformPollEvents(void) -{ - EventNode* node = NULL; - - while ((node = dequeueEvent(_glfw.mir.eventQueue))) - { - handleEvent(node->event, node->window); - deleteNode(_glfw.mir.eventQueue, node); - } -} - -void _glfwPlatformWaitEvents(void) -{ - pthread_mutex_lock(&_glfw.mir.eventMutex); - - while (emptyEventQueue(_glfw.mir.eventQueue)) - pthread_cond_wait(&_glfw.mir.eventCond, &_glfw.mir.eventMutex); - - pthread_mutex_unlock(&_glfw.mir.eventMutex); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - pthread_mutex_lock(&_glfw.mir.eventMutex); - - if (emptyEventQueue(_glfw.mir.eventQueue)) - { - struct timespec time; - clock_gettime(CLOCK_REALTIME, &time); - time.tv_sec += (long) timeout; - time.tv_nsec += (long) ((timeout - (long) timeout) * 1e9); - pthread_cond_timedwait(&_glfw.mir.eventCond, &_glfw.mir.eventMutex, &time); - } - - pthread_mutex_unlock(&_glfw.mir.eventMutex); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->mir.width; - if (height) - *height = window->mir.height; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - MirBufferStream* stream; - - int i_w = image->width; - int i_h = image->height; - - stream = mir_connection_create_buffer_stream_sync(_glfw.mir.connection, - i_w, i_h, - mir_pixel_format_argb_8888, - mir_buffer_usage_software); - - cursor->mir.conf = mir_cursor_configuration_from_buffer_stream(stream, xhot, yhot); - - MirGraphicsRegion region; - mir_buffer_stream_get_graphics_region(stream, ®ion); - - unsigned char* pixels = image->pixels; - char* dest = region.vaddr; - int i; - - for (i = 0; i < i_w * i_h; i++, pixels += 4) - { - unsigned int alpha = pixels[3]; - *dest++ = (char)(pixels[2] * alpha / 255); - *dest++ = (char)(pixels[1] * alpha / 255); - *dest++ = (char)(pixels[0] * alpha / 255); - *dest++ = (char)alpha; - } - - mir_buffer_stream_swap_buffers_sync(stream); - cursor->mir.customCursor = stream; - - return GLFW_TRUE; -} - -static const char* getSystemCursorName(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return mir_arrow_cursor_name; - case GLFW_IBEAM_CURSOR: - return mir_caret_cursor_name; - case GLFW_CROSSHAIR_CURSOR: - return mir_crosshair_cursor_name; - case GLFW_HAND_CURSOR: - return mir_open_hand_cursor_name; - case GLFW_HRESIZE_CURSOR: - return mir_horizontal_resize_cursor_name; - case GLFW_VRESIZE_CURSOR: - return mir_vertical_resize_cursor_name; - } - - return NULL; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->mir.conf = NULL; - cursor->mir.customCursor = NULL; - cursor->mir.cursorName = getSystemCursorName(shape); - - return cursor->mir.cursorName != NULL; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->mir.conf) - mir_cursor_configuration_destroy(cursor->mir.conf); - if (cursor->mir.customCursor) - mir_buffer_stream_release_sync(cursor->mir.customCursor); -} - -static void setCursorNameForWindow(MirWindow* window, char const* name) -{ - MirWindowSpec* spec = mir_create_window_spec(_glfw.mir.connection); - mir_window_spec_set_cursor_name(spec, name); - mir_window_apply_spec(window, spec); - mir_window_spec_release(spec); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursor) - { - window->mir.currentCursor = cursor; - - if (cursor->mir.cursorName) - { - setCursorNameForWindow(window->mir.window, cursor->mir.cursorName); - } - else if (cursor->mir.conf) - { - mir_window_configure_cursor(window->mir.window, cursor->mir.conf); - } - } - else - { - setCursorNameForWindow(window->mir.window, mir_default_cursor_name); - } -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - _glfw.mir.disabledCursorWindow = window; - setWindowConfinement(window, mir_pointer_confined_to_window); - setCursorNameForWindow(window->mir.window, mir_disabled_cursor_name); - } - else - { - // If we were disabled before lets undo that! - if (_glfw.mir.disabledCursorWindow == window) - { - _glfw.mir.disabledCursorWindow = NULL; - setWindowConfinement(window, mir_pointer_unconfined); - } - - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - _glfwPlatformSetCursor(window, window->mir.currentCursor); - } - else if (window->cursorMode == GLFW_CURSOR_HIDDEN) - { - setCursorNameForWindow(window->mir.window, mir_disabled_cursor_name); - } - } -} - -const char* _glfwPlatformGetScancodeName(int scancode) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - return NULL; -} - -int _glfwPlatformGetKeyScancode(int key) -{ - return _glfw.mir.scancodes[key]; -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Unsupported function %s", __PRETTY_FUNCTION__); - - return NULL; -} - -void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) -{ - if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_mir_surface) - return; - - extensions[0] = "VK_KHR_surface"; - extensions[1] = "VK_KHR_mir_surface"; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceMirPresentationSupportKHR - vkGetPhysicalDeviceMirPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceMirPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceMirPresentationSupportKHR"); - if (!vkGetPhysicalDeviceMirPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Mir: Vulkan instance missing VK_KHR_mir_surface extension"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceMirPresentationSupportKHR(device, - queuefamily, - _glfw.mir.connection); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkMirWindowCreateInfoKHR sci; - PFN_vkCreateMirWindowKHR vkCreateMirWindowKHR; - - vkCreateMirWindowKHR = (PFN_vkCreateMirWindowKHR) - vkGetInstanceProcAddr(instance, "vkCreateMirWindowKHR"); - if (!vkCreateMirWindowKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Mir: Vulkan instance missing VK_KHR_mir_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR; - sci.connection = _glfw.mir.connection; - sci.mirWindow = window->mir.window; - - err = vkCreateMirWindowKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Mir: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI MirConnection* glfwGetMirDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.mir.connection; -} - -GLFWAPI MirWindow* glfwGetMirWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->mir.window; -} - diff --git a/external/GLFW/src/monitor.c b/external/GLFW/src/monitor.c deleted file mode 100644 index 4acecd5..0000000 --- a/external/GLFW/src/monitor.c +++ /dev/null @@ -1,441 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include -#include -#include -#include -#include - - -// Lexically compare video modes, used by qsort -// -static int compareVideoModes(const void* fp, const void* sp) -{ - const GLFWvidmode* fm = fp; - const GLFWvidmode* sm = sp; - const int fbpp = fm->redBits + fm->greenBits + fm->blueBits; - const int sbpp = sm->redBits + sm->greenBits + sm->blueBits; - const int farea = fm->width * fm->height; - const int sarea = sm->width * sm->height; - - // First sort on color bits per pixel - if (fbpp != sbpp) - return fbpp - sbpp; - - // Then sort on screen area - if (farea != sarea) - return farea - sarea; - - // Lastly sort on refresh rate - return fm->refreshRate - sm->refreshRate; -} - -// Retrieves the available modes for the specified monitor -// -static GLFWbool refreshVideoModes(_GLFWmonitor* monitor) -{ - int modeCount; - GLFWvidmode* modes; - - if (monitor->modes) - return GLFW_TRUE; - - modes = _glfwPlatformGetVideoModes(monitor, &modeCount); - if (!modes) - return GLFW_FALSE; - - qsort(modes, modeCount, sizeof(GLFWvidmode), compareVideoModes); - - free(monitor->modes); - monitor->modes = modes; - monitor->modeCount = modeCount; - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW event API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement) -{ - if (action == GLFW_CONNECTED) - { - _glfw.monitorCount++; - _glfw.monitors = - realloc(_glfw.monitors, sizeof(_GLFWmonitor*) * _glfw.monitorCount); - - if (placement == _GLFW_INSERT_FIRST) - { - memmove(_glfw.monitors + 1, - _glfw.monitors, - (_glfw.monitorCount - 1) * sizeof(_GLFWmonitor*)); - _glfw.monitors[0] = monitor; - } - else - _glfw.monitors[_glfw.monitorCount - 1] = monitor; - } - else if (action == GLFW_DISCONNECTED) - { - int i; - - for (i = 0; i < _glfw.monitorCount; i++) - { - if (_glfw.monitors[i] == monitor) - { - _glfw.monitorCount--; - memmove(_glfw.monitors + i, - _glfw.monitors + i + 1, - (_glfw.monitorCount - i) * sizeof(_GLFWmonitor*)); - break; - } - } - } - - if (_glfw.callbacks.monitor) - _glfw.callbacks.monitor((GLFWmonitor*) monitor, action); - - if (action == GLFW_DISCONNECTED) - _glfwFreeMonitor(monitor); -} - -void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window) -{ - monitor->window = window; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM) -{ - _GLFWmonitor* monitor = calloc(1, sizeof(_GLFWmonitor)); - monitor->widthMM = widthMM; - monitor->heightMM = heightMM; - - if (name) - monitor->name = strdup(name); - - return monitor; -} - -void _glfwFreeMonitor(_GLFWmonitor* monitor) -{ - if (monitor == NULL) - return; - - _glfwFreeGammaArrays(&monitor->originalRamp); - _glfwFreeGammaArrays(&monitor->currentRamp); - - free(monitor->modes); - free(monitor->name); - free(monitor); -} - -void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) -{ - ramp->red = calloc(size, sizeof(unsigned short)); - ramp->green = calloc(size, sizeof(unsigned short)); - ramp->blue = calloc(size, sizeof(unsigned short)); - ramp->size = size; -} - -void _glfwFreeGammaArrays(GLFWgammaramp* ramp) -{ - free(ramp->red); - free(ramp->green); - free(ramp->blue); - - memset(ramp, 0, sizeof(GLFWgammaramp)); -} - -const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, - const GLFWvidmode* desired) -{ - int i; - unsigned int sizeDiff, leastSizeDiff = UINT_MAX; - unsigned int rateDiff, leastRateDiff = UINT_MAX; - unsigned int colorDiff, leastColorDiff = UINT_MAX; - const GLFWvidmode* current; - const GLFWvidmode* closest = NULL; - - if (!refreshVideoModes(monitor)) - return NULL; - - for (i = 0; i < monitor->modeCount; i++) - { - current = monitor->modes + i; - - colorDiff = 0; - - if (desired->redBits != GLFW_DONT_CARE) - colorDiff += abs(current->redBits - desired->redBits); - if (desired->greenBits != GLFW_DONT_CARE) - colorDiff += abs(current->greenBits - desired->greenBits); - if (desired->blueBits != GLFW_DONT_CARE) - colorDiff += abs(current->blueBits - desired->blueBits); - - sizeDiff = abs((current->width - desired->width) * - (current->width - desired->width) + - (current->height - desired->height) * - (current->height - desired->height)); - - if (desired->refreshRate != GLFW_DONT_CARE) - rateDiff = abs(current->refreshRate - desired->refreshRate); - else - rateDiff = UINT_MAX - current->refreshRate; - - if ((colorDiff < leastColorDiff) || - (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || - (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) - { - closest = current; - leastSizeDiff = sizeDiff; - leastRateDiff = rateDiff; - leastColorDiff = colorDiff; - } - } - - return closest; -} - -int _glfwCompareVideoModes(const GLFWvidmode* fm, const GLFWvidmode* sm) -{ - return compareVideoModes(fm, sm); -} - -void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) -{ - int delta; - - // We assume that by 32 the user really meant 24 - if (bpp == 32) - bpp = 24; - - // Convert "bits per pixel" to red, green & blue sizes - - *red = *green = *blue = bpp / 3; - delta = bpp - (*red * 3); - if (delta >= 1) - *green = *green + 1; - - if (delta == 2) - *red = *red + 1; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) -{ - assert(count != NULL); - - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - *count = _glfw.monitorCount; - return (GLFWmonitor**) _glfw.monitors; -} - -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfw.monitorCount) - return NULL; - - return (GLFWmonitor*) _glfw.monitors[0]; -} - -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - if (xpos) - *xpos = 0; - if (ypos) - *ypos = 0; - - _GLFW_REQUIRE_INIT(); - - _glfwPlatformGetMonitorPos(monitor, xpos, ypos); -} - -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - if (widthMM) - *widthMM = 0; - if (heightMM) - *heightMM = 0; - - _GLFW_REQUIRE_INIT(); - - if (widthMM) - *widthMM = monitor->widthMM; - if (heightMM) - *heightMM = monitor->heightMM; -} - -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->name; -} - -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun); - return cbfun; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - assert(count != NULL); - - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!refreshVideoModes(monitor)) - return NULL; - - *count = monitor->modeCount; - return monitor->modes; -} - -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwPlatformGetVideoMode(monitor, &monitor->currentMode); - return &monitor->currentMode; -} - -GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) -{ - int i; - unsigned short values[256]; - GLFWgammaramp ramp; - assert(handle != NULL); - assert(gamma == gamma); - assert(gamma >= 0.f); - assert(gamma <= FLT_MAX); - - _GLFW_REQUIRE_INIT(); - - if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) - { - _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value %f", gamma); - return; - } - - for (i = 0; i < 256; i++) - { - double value; - - // Calculate intensity - value = i / 255.0; - // Apply gamma curve - value = pow(value, 1.0 / gamma) * 65535.0 + 0.5; - - // Clamp to value range - if (value > 65535.0) - value = 65535.0; - - values[i] = (unsigned short) value; - } - - ramp.red = values; - ramp.green = values; - ramp.blue = values; - ramp.size = 256; - - glfwSetGammaRamp(handle, &ramp); -} - -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - _glfwFreeGammaArrays(&monitor->currentRamp); - _glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp); - - return &monitor->currentRamp; -} - -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - assert(monitor != NULL); - assert(ramp != NULL); - assert(ramp->size > 0); - assert(ramp->red != NULL); - assert(ramp->green != NULL); - assert(ramp->blue != NULL); - - if (ramp->size <= 0) - { - _glfwInputError(GLFW_INVALID_VALUE, - "Invalid gamma ramp size %i", - ramp->size); - return; - } - - _GLFW_REQUIRE_INIT(); - - if (!monitor->originalRamp.size) - _glfwPlatformGetGammaRamp(monitor, &monitor->originalRamp); - - _glfwPlatformSetGammaRamp(monitor, ramp); -} - diff --git a/external/GLFW/src/null_monitor.c b/external/GLFW/src/null_monitor.c deleted file mode 100644 index f5678bb..0000000 --- a/external/GLFW/src/null_monitor.c +++ /dev/null @@ -1,55 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - return NULL; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ -} - diff --git a/external/GLFW/src/vulkan.c b/external/GLFW/src/vulkan.c deleted file mode 100644 index 1fd15fa..0000000 --- a/external/GLFW/src/vulkan.c +++ /dev/null @@ -1,322 +0,0 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include -#include - -#define _GLFW_FIND_LOADER 1 -#define _GLFW_REQUIRE_LOADER 2 - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWbool _glfwInitVulkan(int mode) -{ - VkResult err; - VkExtensionProperties* ep; - uint32_t i, count; - - if (_glfw.vk.available) - return GLFW_TRUE; - -#if !defined(_GLFW_VULKAN_STATIC) -#if defined(_GLFW_VULKAN_LIBRARY) - _glfw.vk.handle = _glfw_dlopen(_GLFW_VULKAN_LIBRARY); -#elif defined(_GLFW_WIN32) - _glfw.vk.handle = _glfw_dlopen("vulkan-1.dll"); -#elif defined(_GLFW_COCOA) - _glfw.vk.handle = _glfw_dlopen("libMoltenVK.dylib"); -#else - _glfw.vk.handle = _glfw_dlopen("libvulkan.so.1"); -#endif - if (!_glfw.vk.handle) - { - if (mode == _GLFW_REQUIRE_LOADER) - _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Loader not found"); - - return GLFW_FALSE; - } - - _glfw.vk.GetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) - _glfw_dlsym(_glfw.vk.handle, "vkGetInstanceProcAddr"); - if (!_glfw.vk.GetInstanceProcAddr) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Loader does not export vkGetInstanceProcAddr"); - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - _glfw.vk.EnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties) - vkGetInstanceProcAddr(NULL, "vkEnumerateInstanceExtensionProperties"); - if (!_glfw.vk.EnumerateInstanceExtensionProperties) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Failed to retrieve vkEnumerateInstanceExtensionProperties"); - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } -#endif // _GLFW_VULKAN_STATIC - - err = vkEnumerateInstanceExtensionProperties(NULL, &count, NULL); - if (err) - { - // NOTE: This happens on systems with a loader but without any Vulkan ICD - if (mode == _GLFW_REQUIRE_LOADER) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Failed to query instance extension count: %s", - _glfwGetVulkanResultString(err)); - } - - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - ep = calloc(count, sizeof(VkExtensionProperties)); - - err = vkEnumerateInstanceExtensionProperties(NULL, &count, ep); - if (err) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Failed to query instance extensions: %s", - _glfwGetVulkanResultString(err)); - - free(ep); - _glfwTerminateVulkan(); - return GLFW_FALSE; - } - - for (i = 0; i < count; i++) - { - if (strcmp(ep[i].extensionName, "VK_KHR_surface") == 0) - _glfw.vk.KHR_surface = GLFW_TRUE; -#if defined(_GLFW_WIN32) - else if (strcmp(ep[i].extensionName, "VK_KHR_win32_surface") == 0) - _glfw.vk.KHR_win32_surface = GLFW_TRUE; -#elif defined(_GLFW_COCOA) - else if (strcmp(ep[i].extensionName, "VK_MVK_macos_surface") == 0) - _glfw.vk.MVK_macos_surface = GLFW_TRUE; -#elif defined(_GLFW_X11) - else if (strcmp(ep[i].extensionName, "VK_KHR_xlib_surface") == 0) - _glfw.vk.KHR_xlib_surface = GLFW_TRUE; - else if (strcmp(ep[i].extensionName, "VK_KHR_xcb_surface") == 0) - _glfw.vk.KHR_xcb_surface = GLFW_TRUE; -#elif defined(_GLFW_WAYLAND) - else if (strcmp(ep[i].extensionName, "VK_KHR_wayland_surface") == 0) - _glfw.vk.KHR_wayland_surface = GLFW_TRUE; -#elif defined(_GLFW_MIR) - else if (strcmp(ep[i].extensionName, "VK_KHR_mir_surface") == 0) - _glfw.vk.KHR_mir_surface = GLFW_TRUE; -#endif - } - - free(ep); - - _glfw.vk.available = GLFW_TRUE; - - _glfwPlatformGetRequiredInstanceExtensions(_glfw.vk.extensions); - - return GLFW_TRUE; -} - -void _glfwTerminateVulkan(void) -{ -#if !defined(_GLFW_VULKAN_STATIC) - if (_glfw.vk.handle) - _glfw_dlclose(_glfw.vk.handle); -#endif -} - -const char* _glfwGetVulkanResultString(VkResult result) -{ - switch (result) - { - case VK_SUCCESS: - return "Success"; - case VK_NOT_READY: - return "A fence or query has not yet completed"; - case VK_TIMEOUT: - return "A wait operation has not completed in the specified time"; - case VK_EVENT_SET: - return "An event is signaled"; - case VK_EVENT_RESET: - return "An event is unsignaled"; - case VK_INCOMPLETE: - return "A return array was too small for the result"; - case VK_ERROR_OUT_OF_HOST_MEMORY: - return "A host memory allocation has failed"; - case VK_ERROR_OUT_OF_DEVICE_MEMORY: - return "A device memory allocation has failed"; - case VK_ERROR_INITIALIZATION_FAILED: - return "Initialization of an object could not be completed for implementation-specific reasons"; - case VK_ERROR_DEVICE_LOST: - return "The logical or physical device has been lost"; - case VK_ERROR_MEMORY_MAP_FAILED: - return "Mapping of a memory object has failed"; - case VK_ERROR_LAYER_NOT_PRESENT: - return "A requested layer is not present or could not be loaded"; - case VK_ERROR_EXTENSION_NOT_PRESENT: - return "A requested extension is not supported"; - case VK_ERROR_FEATURE_NOT_PRESENT: - return "A requested feature is not supported"; - case VK_ERROR_INCOMPATIBLE_DRIVER: - return "The requested version of Vulkan is not supported by the driver or is otherwise incompatible"; - case VK_ERROR_TOO_MANY_OBJECTS: - return "Too many objects of the type have already been created"; - case VK_ERROR_FORMAT_NOT_SUPPORTED: - return "A requested format is not supported on this device"; - case VK_ERROR_SURFACE_LOST_KHR: - return "A surface is no longer available"; - case VK_SUBOPTIMAL_KHR: - return "A swapchain no longer matches the surface properties exactly, but can still be used"; - case VK_ERROR_OUT_OF_DATE_KHR: - return "A surface has changed in such a way that it is no longer compatible with the swapchain"; - case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: - return "The display used by a swapchain does not use the same presentable image layout"; - case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: - return "The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API"; - case VK_ERROR_VALIDATION_FAILED_EXT: - return "A validation layer found an error"; - default: - return "ERROR: UNKNOWN VULKAN ERROR"; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW public API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI int glfwVulkanSupported(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); - return _glfwInitVulkan(_GLFW_FIND_LOADER); -} - -GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count) -{ - assert(count != NULL); - - *count = 0; - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) - return NULL; - - if (!_glfw.vk.extensions[0]) - return NULL; - - *count = 2; - return (const char**) _glfw.vk.extensions; -} - -GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, - const char* procname) -{ - GLFWvkproc proc; - assert(procname != NULL); - - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) - return NULL; - - proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname); -#if defined(_GLFW_VULKAN_STATIC) - if (!proc) - { - if (strcmp(procname, "vkGetInstanceProcAddr") == 0) - return (GLFWvkproc) vkGetInstanceProcAddr; - } -#else - if (!proc) - proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname); -#endif - - return proc; -} - -GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - assert(instance != VK_NULL_HANDLE); - assert(device != VK_NULL_HANDLE); - - _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); - - if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) - return GLFW_FALSE; - - if (!_glfw.vk.extensions[0]) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Window surface creation extensions not found"); - return GLFW_FALSE; - } - - return _glfwPlatformGetPhysicalDevicePresentationSupport(instance, - device, - queuefamily); -} - -GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, - GLFWwindow* handle, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(instance != VK_NULL_HANDLE); - assert(window != NULL); - assert(surface != NULL); - - *surface = VK_NULL_HANDLE; - - _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED); - - if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) - return VK_ERROR_INITIALIZATION_FAILED; - - if (!_glfw.vk.extensions[0]) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Vulkan: Window surface creation extensions not found"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - return _glfwPlatformCreateWindowSurface(instance, window, allocator, surface); -} - diff --git a/external/GLFW/src/wgl_context.c b/external/GLFW/src/wgl_context.c deleted file mode 100644 index d864a47..0000000 --- a/external/GLFW/src/wgl_context.c +++ /dev/null @@ -1,731 +0,0 @@ -//======================================================================== -// GLFW 3.3 WGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include -#include - - -// Returns the specified attribute of the specified pixel format -// -static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) -{ - int value = 0; - - assert(_glfw.wgl.ARB_pixel_format); - - if (!_glfw.wgl.GetPixelFormatAttribivARB(window->context.wgl.dc, - pixelFormat, - 0, 1, &attrib, &value)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve pixel format attribute"); - return 0; - } - - return value; -} - -// Return a list of available and usable framebuffer configs -// -static int choosePixelFormat(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - _GLFWfbconfig* usableConfigs; - const _GLFWfbconfig* closest; - int i, pixelFormat, nativeCount, usableCount; - - if (_glfw.wgl.ARB_pixel_format) - { - nativeCount = getPixelFormatAttrib(window, - 1, - WGL_NUMBER_PIXEL_FORMATS_ARB); - } - else - { - nativeCount = DescribePixelFormat(window->context.wgl.dc, - 1, - sizeof(PIXELFORMATDESCRIPTOR), - NULL); - } - - usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; - - for (i = 0; i < nativeCount; i++) - { - const int n = i + 1; - _GLFWfbconfig* u = usableConfigs + usableCount; - - if (_glfw.wgl.ARB_pixel_format) - { - // Get pixel format attributes through "modern" extension - - if (!getPixelFormatAttrib(window, n, WGL_SUPPORT_OPENGL_ARB) || - !getPixelFormatAttrib(window, n, WGL_DRAW_TO_WINDOW_ARB)) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_PIXEL_TYPE_ARB) != - WGL_TYPE_RGBA_ARB) - { - continue; - } - - if (getPixelFormatAttrib(window, n, WGL_ACCELERATION_ARB) == - WGL_NO_ACCELERATION_ARB) - { - continue; - } - - u->redBits = getPixelFormatAttrib(window, n, WGL_RED_BITS_ARB); - u->greenBits = getPixelFormatAttrib(window, n, WGL_GREEN_BITS_ARB); - u->blueBits = getPixelFormatAttrib(window, n, WGL_BLUE_BITS_ARB); - u->alphaBits = getPixelFormatAttrib(window, n, WGL_ALPHA_BITS_ARB); - - u->depthBits = getPixelFormatAttrib(window, n, WGL_DEPTH_BITS_ARB); - u->stencilBits = getPixelFormatAttrib(window, n, WGL_STENCIL_BITS_ARB); - - u->accumRedBits = getPixelFormatAttrib(window, n, WGL_ACCUM_RED_BITS_ARB); - u->accumGreenBits = getPixelFormatAttrib(window, n, WGL_ACCUM_GREEN_BITS_ARB); - u->accumBlueBits = getPixelFormatAttrib(window, n, WGL_ACCUM_BLUE_BITS_ARB); - u->accumAlphaBits = getPixelFormatAttrib(window, n, WGL_ACCUM_ALPHA_BITS_ARB); - - u->auxBuffers = getPixelFormatAttrib(window, n, WGL_AUX_BUFFERS_ARB); - - if (getPixelFormatAttrib(window, n, WGL_STEREO_ARB)) - u->stereo = GLFW_TRUE; - if (getPixelFormatAttrib(window, n, WGL_DOUBLE_BUFFER_ARB)) - u->doublebuffer = GLFW_TRUE; - - if (_glfw.wgl.ARB_multisample) - u->samples = getPixelFormatAttrib(window, n, WGL_SAMPLES_ARB); - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (_glfw.wgl.ARB_framebuffer_sRGB || - _glfw.wgl.EXT_framebuffer_sRGB) - { - if (getPixelFormatAttrib(window, n, WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB)) - u->sRGB = GLFW_TRUE; - } - } - else - { - if (_glfw.wgl.EXT_colorspace) - { - if (getPixelFormatAttrib(window, n, WGL_COLORSPACE_EXT) == - WGL_COLORSPACE_SRGB_EXT) - { - u->sRGB = GLFW_TRUE; - } - } - } - } - else - { - // Get pixel format attributes through legacy PFDs - - PIXELFORMATDESCRIPTOR pfd; - - if (!DescribePixelFormat(window->context.wgl.dc, - n, - sizeof(PIXELFORMATDESCRIPTOR), - &pfd)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || - !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) - { - continue; - } - - if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && - (pfd.dwFlags & PFD_GENERIC_FORMAT)) - { - continue; - } - - if (pfd.iPixelType != PFD_TYPE_RGBA) - continue; - - u->redBits = pfd.cRedBits; - u->greenBits = pfd.cGreenBits; - u->blueBits = pfd.cBlueBits; - u->alphaBits = pfd.cAlphaBits; - - u->depthBits = pfd.cDepthBits; - u->stencilBits = pfd.cStencilBits; - - u->accumRedBits = pfd.cAccumRedBits; - u->accumGreenBits = pfd.cAccumGreenBits; - u->accumBlueBits = pfd.cAccumBlueBits; - u->accumAlphaBits = pfd.cAccumAlphaBits; - - u->auxBuffers = pfd.cAuxBuffers; - - if (pfd.dwFlags & PFD_STEREO) - u->stereo = GLFW_TRUE; - if (pfd.dwFlags & PFD_DOUBLEBUFFER) - u->doublebuffer = GLFW_TRUE; - } - - u->handle = n; - usableCount++; - } - - if (!usableCount) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: The driver does not appear to support OpenGL"); - - free(usableConfigs); - return 0; - } - - closest = _glfwChooseFBConfig(fbconfig, usableConfigs, usableCount); - if (!closest) - { - _glfwInputError(GLFW_FORMAT_UNAVAILABLE, - "WGL: Failed to find a suitable pixel format"); - - free(usableConfigs); - return 0; - } - - pixelFormat = (int) closest->handle; - free(usableConfigs); - - return pixelFormat; -} - -static void makeContextCurrentWGL(_GLFWwindow* window) -{ - if (window) - { - if (wglMakeCurrent(window->context.wgl.dc, window->context.wgl.handle)) - _glfwPlatformSetTls(&_glfw.contextSlot, window); - else - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to make context current"); - _glfwPlatformSetTls(&_glfw.contextSlot, NULL); - } - } - else - { - if (!wglMakeCurrent(NULL, NULL)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to clear current context"); - } - - _glfwPlatformSetTls(&_glfw.contextSlot, NULL); - } -} - -static void swapBuffersWGL(_GLFWwindow* window) -{ - // HACK: Use DwmFlush when desktop composition is enabled - if (_glfwIsCompositionEnabledWin32() && !window->monitor) - { - int count = abs(window->context.wgl.interval); - while (count--) - DwmFlush(); - } - - SwapBuffers(window->context.wgl.dc); -} - -static void swapIntervalWGL(int interval) -{ - _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); - - window->context.wgl.interval = interval; - - // HACK: Disable WGL swap interval when desktop composition is enabled to - // avoid interfering with DWM vsync - if (_glfwIsCompositionEnabledWin32() && !window->monitor) - interval = 0; - - if (_glfw.wgl.EXT_swap_control) - _glfw.wgl.SwapIntervalEXT(interval); -} - -static int extensionSupportedWGL(const char* extension) -{ - const char* extensions; - - if (_glfw.wgl.GetExtensionsStringEXT) - { - extensions = _glfw.wgl.GetExtensionsStringEXT(); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - } - - if (_glfw.wgl.GetExtensionsStringARB) - { - extensions = _glfw.wgl.GetExtensionsStringARB(wglGetCurrentDC()); - if (extensions) - { - if (_glfwStringInExtensionString(extension, extensions)) - return GLFW_TRUE; - } - } - - return GLFW_FALSE; -} - -static GLFWglproc getProcAddressWGL(const char* procname) -{ - const GLFWglproc proc = (GLFWglproc) wglGetProcAddress(procname); - if (proc) - return proc; - - return (GLFWglproc) GetProcAddress(_glfw.wgl.instance, procname); -} - -// Destroy the OpenGL context -// -static void destroyContextWGL(_GLFWwindow* window) -{ - if (window->context.wgl.handle) - { - wglDeleteContext(window->context.wgl.handle); - window->context.wgl.handle = NULL; - } -} - -// Initialize WGL-specific extensions -// -static void loadWGLExtensions(void) -{ - PIXELFORMATDESCRIPTOR pfd; - HGLRC rc; - HDC dc = GetDC(_glfw.win32.helperWindowHandle);; - - _glfw.wgl.extensionsLoaded = GLFW_TRUE; - - // NOTE: A dummy context has to be created for opengl32.dll to load the - // OpenGL ICD, from which we can then query WGL extensions - // NOTE: This code will accept the Microsoft GDI ICD; accelerated context - // creation failure occurs during manual pixel format enumeration - - ZeroMemory(&pfd, sizeof(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.cColorBits = 24; - - if (!SetPixelFormat(dc, ChoosePixelFormat(dc, &pfd), &pfd)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to set pixel format for dummy context"); - return; - } - - rc = wglCreateContext(dc); - if (!rc) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to create dummy context"); - return; - } - - if (!wglMakeCurrent(dc, rc)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to make dummy context current"); - wglDeleteContext(rc); - return; - } - - // NOTE: Functions must be loaded first as they're needed to retrieve the - // extension string that tells us whether the functions are supported - _glfw.wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) - wglGetProcAddress("wglGetExtensionsStringEXT"); - _glfw.wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) - wglGetProcAddress("wglGetExtensionsStringARB"); - _glfw.wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) - wglGetProcAddress("wglCreateContextAttribsARB"); - _glfw.wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) - wglGetProcAddress("wglSwapIntervalEXT"); - _glfw.wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) - wglGetProcAddress("wglGetPixelFormatAttribivARB"); - - // NOTE: WGL_ARB_extensions_string and WGL_EXT_extensions_string are not - // checked below as we are already using them - _glfw.wgl.ARB_multisample = - extensionSupportedWGL("WGL_ARB_multisample"); - _glfw.wgl.ARB_framebuffer_sRGB = - extensionSupportedWGL("WGL_ARB_framebuffer_sRGB"); - _glfw.wgl.EXT_framebuffer_sRGB = - extensionSupportedWGL("WGL_EXT_framebuffer_sRGB"); - _glfw.wgl.ARB_create_context = - extensionSupportedWGL("WGL_ARB_create_context"); - _glfw.wgl.ARB_create_context_profile = - extensionSupportedWGL("WGL_ARB_create_context_profile"); - _glfw.wgl.EXT_create_context_es2_profile = - extensionSupportedWGL("WGL_EXT_create_context_es2_profile"); - _glfw.wgl.ARB_create_context_robustness = - extensionSupportedWGL("WGL_ARB_create_context_robustness"); - _glfw.wgl.ARB_create_context_no_error = - extensionSupportedWGL("WGL_ARB_create_context_no_error"); - _glfw.wgl.EXT_swap_control = - extensionSupportedWGL("WGL_EXT_swap_control"); - _glfw.wgl.EXT_colorspace = - extensionSupportedWGL("WGL_EXT_colorspace"); - _glfw.wgl.ARB_pixel_format = - extensionSupportedWGL("WGL_ARB_pixel_format"); - _glfw.wgl.ARB_context_flush_control = - extensionSupportedWGL("WGL_ARB_context_flush_control"); - - wglMakeCurrent(dc, NULL); - wglDeleteContext(rc); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Initialize WGL -// -GLFWbool _glfwInitWGL(void) -{ - if (_glfw.wgl.instance) - return GLFW_TRUE; - - _glfw.wgl.instance = LoadLibraryA("opengl32.dll"); - if (!_glfw.wgl.instance) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to load opengl32.dll"); - return GLFW_FALSE; - } - - _glfw.wgl.CreateContext = (PFN_wglCreateContext) - GetProcAddress(_glfw.wgl.instance, "wglCreateContext"); - _glfw.wgl.DeleteContext = (PFN_wglDeleteContext) - GetProcAddress(_glfw.wgl.instance, "wglDeleteContext"); - _glfw.wgl.GetProcAddress = (PFN_wglGetProcAddress) - GetProcAddress(_glfw.wgl.instance, "wglGetProcAddress"); - _glfw.wgl.GetCurrentDC = (PFN_wglGetCurrentDC) - GetProcAddress(_glfw.wgl.instance, "wglGetCurrentDC"); - _glfw.wgl.MakeCurrent = (PFN_wglMakeCurrent) - GetProcAddress(_glfw.wgl.instance, "wglMakeCurrent"); - _glfw.wgl.ShareLists = (PFN_wglShareLists) - GetProcAddress(_glfw.wgl.instance, "wglShareLists"); - - return GLFW_TRUE; -} - -// Terminate WGL -// -void _glfwTerminateWGL(void) -{ - if (_glfw.wgl.instance) - FreeLibrary(_glfw.wgl.instance); -} - -#define setAttrib(a, v) \ -{ \ - assert((size_t) (index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ - attribs[index++] = a; \ - attribs[index++] = v; \ -} - -// Create the OpenGL or OpenGL ES context -// -GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - int attribs[40]; - int pixelFormat; - PIXELFORMATDESCRIPTOR pfd; - HGLRC share = NULL; - - if (!_glfw.wgl.extensionsLoaded) - loadWGLExtensions(); - - if (ctxconfig->share) - share = ctxconfig->share->context.wgl.handle; - - window->context.wgl.dc = GetDC(window->win32.handle); - if (!window->context.wgl.dc) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve DC for window"); - return GLFW_FALSE; - } - - pixelFormat = choosePixelFormat(window, ctxconfig, fbconfig); - if (!pixelFormat) - return GLFW_FALSE; - - if (!DescribePixelFormat(window->context.wgl.dc, - pixelFormat, sizeof(pfd), &pfd)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to retrieve PFD for selected pixel format"); - return GLFW_FALSE; - } - - if (!SetPixelFormat(window->context.wgl.dc, pixelFormat, &pfd)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to set selected pixel format"); - return GLFW_FALSE; - } - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - { - if (!_glfw.wgl.ARB_create_context) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable"); - return GLFW_FALSE; - } - } - - if (ctxconfig->profile) - { - if (!_glfw.wgl.ARB_create_context_profile) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable"); - return GLFW_FALSE; - } - } - } - else - { - if (!_glfw.wgl.ARB_create_context || - !_glfw.wgl.ARB_create_context_profile || - !_glfw.wgl.EXT_create_context_es2_profile) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable"); - return GLFW_FALSE; - } - } - - if (_glfw.wgl.ARB_create_context) - { - int index = 0, mask = 0, flags = 0; - - if (ctxconfig->client == GLFW_OPENGL_API) - { - if (ctxconfig->forward) - flags |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; - - if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) - mask |= WGL_CONTEXT_CORE_PROFILE_BIT_ARB; - else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) - mask |= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; - } - else - mask |= WGL_CONTEXT_ES2_PROFILE_BIT_EXT; - - if (ctxconfig->debug) - flags |= WGL_CONTEXT_DEBUG_BIT_ARB; - - if (ctxconfig->robustness) - { - if (_glfw.wgl.ARB_create_context_robustness) - { - if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) - { - setAttrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_NO_RESET_NOTIFICATION_ARB); - } - else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) - { - setAttrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, - WGL_LOSE_CONTEXT_ON_RESET_ARB); - } - - flags |= WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB; - } - } - - if (ctxconfig->release) - { - if (_glfw.wgl.ARB_context_flush_control) - { - if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) - { - setAttrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); - } - else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) - { - setAttrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, - WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); - } - } - } - - if (ctxconfig->noerror) - { - if (_glfw.wgl.ARB_create_context_no_error) - setAttrib(WGL_CONTEXT_OPENGL_NO_ERROR_ARB, GLFW_TRUE); - } - - // NOTE: Only request an explicitly versioned context when necessary, as - // explicitly requesting version 1.0 does not always return the - // highest version supported by the driver - if (ctxconfig->major != 1 || ctxconfig->minor != 0) - { - setAttrib(WGL_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); - setAttrib(WGL_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); - } - - if (flags) - setAttrib(WGL_CONTEXT_FLAGS_ARB, flags); - - if (mask) - setAttrib(WGL_CONTEXT_PROFILE_MASK_ARB, mask); - - setAttrib(0, 0); - - window->context.wgl.handle = - _glfw.wgl.CreateContextAttribsARB(window->context.wgl.dc, - share, attribs); - if (!window->context.wgl.handle) - { - const DWORD error = GetLastError(); - - if (error == (0xc0070000 | ERROR_INVALID_VERSION_ARB)) - { - if (ctxconfig->client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support OpenGL version %i.%i", - ctxconfig->major, - ctxconfig->minor); - } - else - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support OpenGL ES version %i.%i", - ctxconfig->major, - ctxconfig->minor); - } - } - else if (error == (0xc0070000 | ERROR_INVALID_PROFILE_ARB)) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Driver does not support the requested OpenGL profile"); - } - else if (error == (0xc0070000 | ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB)) - { - _glfwInputError(GLFW_INVALID_VALUE, - "WGL: The share context is not compatible with the requested context"); - } - else - { - if (ctxconfig->client == GLFW_OPENGL_API) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - } - else - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL ES context"); - } - } - - return GLFW_FALSE; - } - } - else - { - window->context.wgl.handle = wglCreateContext(window->context.wgl.dc); - if (!window->context.wgl.handle) - { - _glfwInputErrorWin32(GLFW_VERSION_UNAVAILABLE, - "WGL: Failed to create OpenGL context"); - return GLFW_FALSE; - } - - if (share) - { - if (!wglShareLists(share, window->context.wgl.handle)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "WGL: Failed to enable sharing with specified OpenGL context"); - return GLFW_FALSE; - } - } - } - - window->context.makeCurrent = makeContextCurrentWGL; - window->context.swapBuffers = swapBuffersWGL; - window->context.swapInterval = swapIntervalWGL; - window->context.extensionSupported = extensionSupportedWGL; - window->context.getProcAddress = getProcAddressWGL; - window->context.destroy = destroyContextWGL; - - return GLFW_TRUE; -} - -#undef setAttrib - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - - if (window->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - - return window->context.wgl.handle; -} - diff --git a/external/GLFW/src/win32_platform.h b/external/GLFW/src/win32_platform.h deleted file mode 100644 index acbb5ca..0000000 --- a/external/GLFW/src/win32_platform.h +++ /dev/null @@ -1,398 +0,0 @@ -//======================================================================== -// GLFW 3.3 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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. -// -//======================================================================== - -// We don't need all the fancy stuff -#ifndef NOMINMAX - #define NOMINMAX -#endif - -#ifndef VC_EXTRALEAN - #define VC_EXTRALEAN -#endif - -#ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN -#endif - -// 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 - -// GLFW on Windows is Unicode only and does not work in MBCS mode -#ifndef UNICODE - #define UNICODE -#endif - -// GLFW requires Windows XP or later -#if WINVER < 0x0501 - #undef WINVER - #define WINVER 0x0501 -#endif -#if _WIN32_WINNT < 0x0501 - #undef _WIN32_WINNT - #define _WIN32_WINNT 0x0501 -#endif - -// GLFW uses DirectInput8 interfaces -#define DIRECTINPUT_VERSION 0x0800 - -#include -#include -#include -#include -#include - -#if defined(_MSC_VER) - #include - #define strdup _strdup -#endif - -// HACK: Define macros that some windows.h variants don't -#ifndef WM_MOUSEHWHEEL - #define WM_MOUSEHWHEEL 0x020E -#endif -#ifndef WM_DWMCOMPOSITIONCHANGED - #define WM_DWMCOMPOSITIONCHANGED 0x031E -#endif -#ifndef WM_COPYGLOBALDATA - #define WM_COPYGLOBALDATA 0x0049 -#endif -#ifndef WM_UNICHAR - #define WM_UNICHAR 0x0109 -#endif -#ifndef UNICODE_NOCHAR - #define UNICODE_NOCHAR 0xFFFF -#endif -#ifndef WM_DPICHANGED - #define WM_DPICHANGED 0x02E0 -#endif -#ifndef GET_XBUTTON_WPARAM - #define GET_XBUTTON_WPARAM(w) (HIWORD(w)) -#endif -#ifndef EDS_ROTATEDMODE - #define EDS_ROTATEDMODE 0x00000004 -#endif -#ifndef DISPLAY_DEVICE_ACTIVE - #define DISPLAY_DEVICE_ACTIVE 0x00000001 -#endif -#ifndef _WIN32_WINNT_WINBLUE - #define _WIN32_WINNT_WINBLUE 0x0602 -#endif - -#if WINVER < 0x0601 -typedef struct tagCHANGEFILTERSTRUCT -{ - DWORD cbSize; - DWORD ExtStatus; - -} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; -#ifndef MSGFLT_ALLOW - #define MSGFLT_ALLOW 1 -#endif -#endif /*Windows 7*/ - -#if WINVER < 0x0600 -#define DWM_BB_ENABLE 0x00000001 -#define DWM_BB_BLURREGION 0x00000002 -typedef struct -{ - DWORD dwFlags; - BOOL fEnable; - HRGN hRgnBlur; - BOOL fTransitionOnMaximized; -} DWM_BLURBEHIND; -#endif /*Windows Vista*/ - -#ifndef DPI_ENUMS_DECLARED -typedef enum PROCESS_DPI_AWARENESS -{ - PROCESS_DPI_UNAWARE = 0, - PROCESS_SYSTEM_DPI_AWARE = 1, - PROCESS_PER_MONITOR_DPI_AWARE = 2 -} PROCESS_DPI_AWARENESS; -#endif /*DPI_ENUMS_DECLARED*/ - -// HACK: Define versionhelpers.h functions manually as MinGW lacks the header -BOOL IsWindowsVersionOrGreater(WORD major, WORD minor, WORD sp); -#define IsWindowsVistaOrGreater() \ - IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_VISTA), \ - LOBYTE(_WIN32_WINNT_VISTA), 0) -#define IsWindows7OrGreater() \ - IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), \ - LOBYTE(_WIN32_WINNT_WIN7), 0) -#define IsWindows8OrGreater() \ - IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN8), \ - LOBYTE(_WIN32_WINNT_WIN8), 0) -#define IsWindows8Point1OrGreater() \ - IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINBLUE), \ - LOBYTE(_WIN32_WINNT_WINBLUE), 0) - -// HACK: Define macros that some xinput.h variants don't -#ifndef XINPUT_CAPS_WIRELESS - #define XINPUT_CAPS_WIRELESS 0x0002 -#endif -#ifndef XINPUT_DEVSUBTYPE_WHEEL - #define XINPUT_DEVSUBTYPE_WHEEL 0x02 -#endif -#ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK - #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 -#endif -#ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK - #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 -#endif -#ifndef XINPUT_DEVSUBTYPE_DANCE_PAD - #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 -#endif -#ifndef XINPUT_DEVSUBTYPE_GUITAR - #define XINPUT_DEVSUBTYPE_GUITAR 0x06 -#endif -#ifndef XINPUT_DEVSUBTYPE_DRUM_KIT - #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 -#endif -#ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD - #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 -#endif -#ifndef XUSER_MAX_COUNT - #define XUSER_MAX_COUNT 4 -#endif - -// HACK: Define macros that some dinput.h variants don't -#ifndef DIDFT_OPTIONAL - #define DIDFT_OPTIONAL 0x80000000 -#endif - -// winmm.dll function pointer typedefs -typedef DWORD (WINAPI * PFN_timeGetTime)(void); -#define timeGetTime _glfw.win32.winmm.GetTime - -// xinput.dll function pointer typedefs -typedef DWORD (WINAPI * PFN_XInputGetCapabilities)(DWORD,DWORD,XINPUT_CAPABILITIES*); -typedef DWORD (WINAPI * PFN_XInputGetState)(DWORD,XINPUT_STATE*); -#define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities -#define XInputGetState _glfw.win32.xinput.GetState - -// dinput8.dll function pointer typedefs -typedef HRESULT (WINAPI * PFN_DirectInput8Create)(HINSTANCE,DWORD,REFIID,LPVOID*,LPUNKNOWN); -#define DirectInput8Create _glfw.win32.dinput8.Create - -// user32.dll function pointer typedefs -typedef BOOL (WINAPI * PFN_SetProcessDPIAware)(void); -typedef BOOL (WINAPI * PFN_ChangeWindowMessageFilterEx)(HWND,UINT,DWORD,PCHANGEFILTERSTRUCT); -#define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ -#define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ - -// dwmapi.dll function pointer typedefs -typedef HRESULT (WINAPI * PFN_DwmIsCompositionEnabled)(BOOL*); -typedef HRESULT (WINAPI * PFN_DwmFlush)(VOID); -typedef HRESULT(WINAPI * PFN_DwmEnableBlurBehindWindow)(HWND,const DWM_BLURBEHIND*); -#define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled -#define DwmFlush _glfw.win32.dwmapi.Flush -#define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow - -// shcore.dll function pointer typedefs -typedef HRESULT (WINAPI * PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); -#define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ - -typedef VkFlags VkWin32SurfaceCreateFlagsKHR; - -typedef struct VkWin32SurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkWin32SurfaceCreateFlagsKHR flags; - HINSTANCE hinstance; - HWND hwnd; -} VkWin32SurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateWin32SurfaceKHR)(VkInstance,const VkWin32SurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice,uint32_t); - -#include "win32_joystick.h" -#include "wgl_context.h" -#include "egl_context.h" -#include "osmesa_context.h" - -#define _GLFW_WNDCLASSNAME L"GLFW30" - -#define _glfw_dlopen(name) LoadLibraryA(name) -#define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) -#define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle) -#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 -#define _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 -#define _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 - - -// Win32-specific per-window data -// -typedef struct _GLFWwindowWin32 -{ - HWND handle; - HICON bigIcon; - HICON smallIcon; - - GLFWbool cursorTracked; - GLFWbool frameAction; - GLFWbool iconified; - GLFWbool maximized; - // Whether to enable framebuffer transparency on DWM - GLFWbool transparent; - - // The last received cursor position, regardless of source - int lastCursorPosX, lastCursorPosY; - -} _GLFWwindowWin32; - -// Win32-specific global data -// -typedef struct _GLFWlibraryWin32 -{ - HWND helperWindowHandle; - DWORD foregroundLockTimeout; - int acquiredMonitorCount; - char* clipboardString; - short int keycodes[512]; - short int scancodes[GLFW_KEY_LAST + 1]; - char keynames[GLFW_KEY_LAST + 1][5]; - // Where to place the cursor when re-enabled - double restoreCursorPosX, restoreCursorPosY; - // The window whose disabled cursor mode is active - _GLFWwindow* disabledCursorWindow; - RAWINPUT* rawInput; - int rawInputSize; - - struct { - HINSTANCE instance; - PFN_timeGetTime GetTime; - } winmm; - - struct { - HINSTANCE instance; - PFN_DirectInput8Create Create; - IDirectInput8W* api; - } dinput8; - - struct { - HINSTANCE instance; - PFN_XInputGetCapabilities GetCapabilities; - PFN_XInputGetState GetState; - } xinput; - - struct { - HINSTANCE instance; - PFN_SetProcessDPIAware SetProcessDPIAware_; - PFN_ChangeWindowMessageFilterEx ChangeWindowMessageFilterEx_; - } user32; - - struct { - HINSTANCE instance; - PFN_DwmIsCompositionEnabled IsCompositionEnabled; - PFN_DwmFlush Flush; - PFN_DwmEnableBlurBehindWindow EnableBlurBehindWindow; - } dwmapi; - - struct { - HINSTANCE instance; - PFN_SetProcessDpiAwareness SetProcessDpiAwareness_; - } shcore; - -} _GLFWlibraryWin32; - -// Win32-specific per-monitor data -// -typedef struct _GLFWmonitorWin32 -{ - HMONITOR handle; - // This size matches the static size of DISPLAY_DEVICE.DeviceName - WCHAR adapterName[32]; - WCHAR displayName[32]; - char publicAdapterName[64]; - char publicDisplayName[64]; - GLFWbool modesPruned; - GLFWbool modeChanged; - -} _GLFWmonitorWin32; - -// Win32-specific per-cursor data -// -typedef struct _GLFWcursorWin32 -{ - HCURSOR handle; - -} _GLFWcursorWin32; - -// Win32-specific global timer data -// -typedef struct _GLFWtimerWin32 -{ - GLFWbool hasPC; - uint64_t frequency; - -} _GLFWtimerWin32; - -// Win32-specific thread local storage data -// -typedef struct _GLFWtlsWin32 -{ - GLFWbool allocated; - DWORD index; - -} _GLFWtlsWin32; - -// Win32-specific mutex data -// -typedef struct _GLFWmutexWin32 -{ - GLFWbool allocated; - CRITICAL_SECTION section; - -} _GLFWmutexWin32; - - -GLFWbool _glfwRegisterWindowClassWin32(void); -void _glfwUnregisterWindowClassWin32(void); -GLFWbool _glfwIsCompositionEnabledWin32(void); - -WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source); -char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source); -void _glfwInputErrorWin32(int error, const char* description); -void _glfwUpdateKeyNamesWin32(void); - -void _glfwInitTimerWin32(void); - -void _glfwPollMonitorsWin32(void); -GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired); -void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor); - diff --git a/external/GLFW/src/win32_window.c b/external/GLFW/src/win32_window.c deleted file mode 100644 index 490a75d..0000000 --- a/external/GLFW/src/win32_window.c +++ /dev/null @@ -1,1942 +0,0 @@ -//======================================================================== -// GLFW 3.3 Win32 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include -#include -#include -#include -#include - -#define _GLFW_KEY_INVALID -2 - -// Returns the window style for the specified window -// -static DWORD getWindowStyle(const _GLFWwindow* window) -{ - DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN; - - if (window->monitor) - style |= WS_POPUP; - else - { - style |= WS_SYSMENU | WS_MINIMIZEBOX; - - if (window->decorated) - { - style |= WS_CAPTION; - - if (window->resizable) - style |= WS_MAXIMIZEBOX | WS_THICKFRAME; - } - else - style |= WS_POPUP; - } - - return style; -} - -// Returns the extended window style for the specified window -// -static DWORD getWindowExStyle(const _GLFWwindow* window) -{ - DWORD style = WS_EX_APPWINDOW; - - if (window->monitor || window->floating) - style |= WS_EX_TOPMOST; - - return style; -} - -// Returns the image whose area most closely matches the desired one -// -static const GLFWimage* chooseImage(int count, const GLFWimage* images, - int width, int height) -{ - int i, leastDiff = INT_MAX; - const GLFWimage* closest = NULL; - - for (i = 0; i < count; i++) - { - const int currDiff = abs(images[i].width * images[i].height - - width * height); - if (currDiff < leastDiff) - { - closest = images + i; - leastDiff = currDiff; - } - } - - return closest; -} - -// Creates an RGBA icon or cursor -// -static HICON createIcon(const GLFWimage* image, - int xhot, int yhot, GLFWbool icon) -{ - int i; - HDC dc; - HICON handle; - HBITMAP color, mask; - BITMAPV5HEADER bi; - ICONINFO ii; - unsigned char* target = NULL; - unsigned char* source = image->pixels; - - ZeroMemory(&bi, sizeof(bi)); - bi.bV5Size = sizeof(bi); - bi.bV5Width = image->width; - bi.bV5Height = -image->height; - bi.bV5Planes = 1; - bi.bV5BitCount = 32; - bi.bV5Compression = BI_BITFIELDS; - bi.bV5RedMask = 0x00ff0000; - bi.bV5GreenMask = 0x0000ff00; - bi.bV5BlueMask = 0x000000ff; - bi.bV5AlphaMask = 0xff000000; - - dc = GetDC(NULL); - color = CreateDIBSection(dc, - (BITMAPINFO*) &bi, - DIB_RGB_COLORS, - (void**) &target, - NULL, - (DWORD) 0); - ReleaseDC(NULL, dc); - - if (!color) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create RGBA bitmap"); - return NULL; - } - - mask = CreateBitmap(image->width, image->height, 1, 1, NULL); - if (!mask) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create mask bitmap"); - DeleteObject(color); - return NULL; - } - - for (i = 0; i < image->width * image->height; i++) - { - target[0] = source[2]; - target[1] = source[1]; - target[2] = source[0]; - target[3] = source[3]; - target += 4; - source += 4; - } - - ZeroMemory(&ii, sizeof(ii)); - ii.fIcon = icon; - ii.xHotspot = xhot; - ii.yHotspot = yhot; - ii.hbmMask = mask; - ii.hbmColor = color; - - handle = CreateIconIndirect(&ii); - - DeleteObject(color); - DeleteObject(mask); - - if (!handle) - { - if (icon) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create icon"); - } - else - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create cursor"); - } - } - - return handle; -} - -// Translate client window size to full window size according to styles -// -static void getFullWindowSize(DWORD style, DWORD exStyle, - int clientWidth, int clientHeight, - int* fullWidth, int* fullHeight) -{ - RECT rect = { 0, 0, clientWidth, clientHeight }; - AdjustWindowRectEx(&rect, style, FALSE, exStyle); - *fullWidth = rect.right - rect.left; - *fullHeight = rect.bottom - rect.top; -} - -// Enforce the client rect aspect ratio based on which edge is being dragged -// -static void applyAspectRatio(_GLFWwindow* window, int edge, RECT* area) -{ - int xoff, yoff; - const float ratio = (float) window->numer / (float) window->denom; - - getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), - 0, 0, &xoff, &yoff); - - if (edge == WMSZ_LEFT || edge == WMSZ_BOTTOMLEFT || - edge == WMSZ_RIGHT || edge == WMSZ_BOTTOMRIGHT) - { - area->bottom = area->top + yoff + - (int) ((area->right - area->left - xoff) / ratio); - } - else if (edge == WMSZ_TOPLEFT || edge == WMSZ_TOPRIGHT) - { - area->top = area->bottom - yoff - - (int) ((area->right - area->left - xoff) / ratio); - } - else if (edge == WMSZ_TOP || edge == WMSZ_BOTTOM) - { - area->right = area->left + xoff + - (int) ((area->bottom - area->top - yoff) * ratio); - } -} - -// Centers the cursor over the window client area -// -static void centerCursor(_GLFWwindow* window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - -// Returns whether the cursor is in the client area of the specified window -// -static GLFWbool cursorInClientArea(_GLFWwindow* window) -{ - RECT area; - POINT pos; - - if (!GetCursorPos(&pos)) - return GLFW_FALSE; - - if (WindowFromPoint(pos) != window->win32.handle) - return GLFW_FALSE; - - GetClientRect(window->win32.handle, &area); - ClientToScreen(window->win32.handle, (POINT*) &area.left); - ClientToScreen(window->win32.handle, (POINT*) &area.right); - - return PtInRect(&area, pos); -} - -// Updates the cursor image according to its cursor mode -// -static void updateCursorImage(_GLFWwindow* window) -{ - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (window->cursor) - SetCursor(window->cursor->win32.handle); - else - SetCursor(LoadCursorW(NULL, IDC_ARROW)); - } - else - SetCursor(NULL); -} - -// Updates the cursor clip rect -// -static void updateClipRect(_GLFWwindow* window) -{ - if (window) - { - RECT clipRect; - GetClientRect(window->win32.handle, &clipRect); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.left); - ClientToScreen(window->win32.handle, (POINT*) &clipRect.right); - ClipCursor(&clipRect); - } - else - ClipCursor(NULL); -} - -// Update native window styles to match attributes -// -static void updateWindowStyles(const _GLFWwindow* window) -{ - RECT rect; - DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); - style &= ~(WS_OVERLAPPEDWINDOW | WS_POPUP); - style |= getWindowStyle(window); - - GetClientRect(window->win32.handle, &rect); - AdjustWindowRectEx(&rect, style, FALSE, getWindowExStyle(window)); - ClientToScreen(window->win32.handle, (POINT*) &rect.left); - ClientToScreen(window->win32.handle, (POINT*) &rect.right); - SetWindowLongW(window->win32.handle, GWL_STYLE, style); - SetWindowPos(window->win32.handle, HWND_TOP, - rect.left, rect.top, - rect.right - rect.left, rect.bottom - rect.top, - SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOZORDER); -} - -// Update window framebuffer transparency -// -static void updateFramebufferTransparency(const _GLFWwindow* window) -{ - if (!IsWindowsVistaOrGreater()) - return; - - if (_glfwIsCompositionEnabledWin32()) - { - HRGN region = CreateRectRgn(0, 0, -1, -1); - DWM_BLURBEHIND bb = {0}; - bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION; - bb.hRgnBlur = region; - bb.fEnable = TRUE; - - if (SUCCEEDED(DwmEnableBlurBehindWindow(window->win32.handle, &bb))) - { - // Decorated windows don't repaint the transparent background - // leaving a trail behind animations - // HACK: Making the window layered with a transparency color key - // seems to fix this. Normally, when specifying - // a transparency color key to be used when composing the - // layered window, all pixels painted by the window in this - // color will be transparent. That doesn't seem to be the - // case anymore, at least when used with blur behind window - // plus negative region. - LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); - exStyle |= WS_EX_LAYERED; - SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); - - // Using a color key not equal to black to fix the trailing - // issue. When set to black, something is making the hit test - // not resize with the window frame. - SetLayeredWindowAttributes(window->win32.handle, - RGB(0, 193, 48), 255, LWA_COLORKEY); - } - - DeleteObject(region); - } - else - { - LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); - exStyle &= ~WS_EX_LAYERED; - SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); - RedrawWindow(window->win32.handle, NULL, NULL, - RDW_ERASE | RDW_INVALIDATE | RDW_FRAME); - } -} - -// Translates a GLFW standard cursor to a resource ID -// -static LPWSTR translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return IDC_ARROW; - case GLFW_IBEAM_CURSOR: - return IDC_IBEAM; - case GLFW_CROSSHAIR_CURSOR: - return IDC_CROSS; - case GLFW_HAND_CURSOR: - return IDC_HAND; - case GLFW_HRESIZE_CURSOR: - return IDC_SIZEWE; - case GLFW_VRESIZE_CURSOR: - return IDC_SIZENS; - } - - return NULL; -} - -// Retrieves and translates modifier keys -// -static int getKeyMods(void) -{ - int mods = 0; - - if (GetKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Retrieves and translates modifier keys -// -static int getAsyncKeyMods(void) -{ - int mods = 0; - - if (GetAsyncKeyState(VK_SHIFT) & (1 << 31)) - mods |= GLFW_MOD_SHIFT; - if (GetAsyncKeyState(VK_CONTROL) & (1 << 31)) - mods |= GLFW_MOD_CONTROL; - if (GetAsyncKeyState(VK_MENU) & (1 << 31)) - mods |= GLFW_MOD_ALT; - if ((GetAsyncKeyState(VK_LWIN) | GetAsyncKeyState(VK_RWIN)) & (1 << 31)) - mods |= GLFW_MOD_SUPER; - - return mods; -} - -// Translates a Windows key to the corresponding GLFW key -// -static int translateKey(WPARAM wParam, LPARAM lParam) -{ - // The Ctrl keys require special handling - if (wParam == VK_CONTROL) - { - MSG next; - DWORD time; - - // Right side keys have the extended key bit set - if (lParam & 0x01000000) - return GLFW_KEY_RIGHT_CONTROL; - - // HACK: Alt Gr sends Left Ctrl and then Right Alt in close sequence - // We only want the Right Alt message, so if the next message is - // Right Alt we ignore this (synthetic) Left Ctrl message - time = GetMessageTime(); - - if (PeekMessageW(&next, NULL, 0, 0, PM_NOREMOVE)) - { - if (next.message == WM_KEYDOWN || - next.message == WM_SYSKEYDOWN || - next.message == WM_KEYUP || - next.message == WM_SYSKEYUP) - { - if (next.wParam == VK_MENU && - (next.lParam & 0x01000000) && - next.time == time) - { - // Next message is Right Alt down so discard this - return _GLFW_KEY_INVALID; - } - } - } - - return GLFW_KEY_LEFT_CONTROL; - } - - if (wParam == VK_PROCESSKEY) - { - // IME notifies that keys have been filtered by setting the virtual - // key-code to VK_PROCESSKEY - return _GLFW_KEY_INVALID; - } - - return _glfw.win32.keycodes[HIWORD(lParam) & 0x1FF]; -} - -// Make the specified window and its video mode active on its monitor -// -static GLFWbool acquireMonitor(_GLFWwindow* window) -{ - GLFWvidmode mode; - GLFWbool status; - int xpos, ypos; - - if (!_glfw.win32.acquiredMonitorCount) - SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED); - if (!window->monitor->window) - _glfw.win32.acquiredMonitorCount++; - - status = _glfwSetVideoModeWin32(window->monitor, &window->videoMode); - - _glfwPlatformGetVideoMode(window->monitor, &mode); - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - - SetWindowPos(window->win32.handle, HWND_TOPMOST, - xpos, ypos, mode.width, mode.height, - SWP_NOACTIVATE | SWP_NOCOPYBITS); - - _glfwInputMonitorWindow(window->monitor, window); - return status; -} - -// Remove the window and restore the original video mode -// -static void releaseMonitor(_GLFWwindow* window) -{ - if (window->monitor->window != window) - return; - - _glfw.win32.acquiredMonitorCount--; - if (!_glfw.win32.acquiredMonitorCount) - SetThreadExecutionState(ES_CONTINUOUS); - - _glfwInputMonitorWindow(window->monitor, NULL); - _glfwRestoreVideoModeWin32(window->monitor); -} - -// Window callback function (handles window messages) -// -static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, - WPARAM wParam, LPARAM lParam) -{ - _GLFWwindow* window = GetPropW(hWnd, L"GLFW"); - if (!window) - { - // This is the message handling for the hidden helper window - - switch (uMsg) - { - case WM_DISPLAYCHANGE: - _glfwPollMonitorsWin32(); - break; - - case WM_DEVICECHANGE: - { - if (wParam == DBT_DEVICEARRIVAL) - { - DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; - if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) - _glfwDetectJoystickConnectionWin32(); - } - else if (wParam == DBT_DEVICEREMOVECOMPLETE) - { - DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; - if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) - _glfwDetectJoystickDisconnectionWin32(); - } - - break; - } - } - - return DefWindowProcW(hWnd, uMsg, wParam, lParam); - } - - switch (uMsg) - { - case WM_MOUSEACTIVATE: - { - // HACK: Postpone cursor disabling when the window was activated by - // clicking a caption button - if (HIWORD(lParam) == WM_LBUTTONDOWN) - { - if (LOWORD(lParam) == HTCLOSE || - LOWORD(lParam) == HTMINBUTTON || - LOWORD(lParam) == HTMAXBUTTON) - { - window->win32.frameAction = GLFW_TRUE; - } - } - - break; - } - - case WM_CAPTURECHANGED: - { - // HACK: Disable the cursor once the caption button action has been - // completed or cancelled - if (lParam == 0 && window->win32.frameAction) - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - window->win32.frameAction = GLFW_FALSE; - } - - break; - } - - case WM_SETFOCUS: - { - _glfwInputWindowFocus(window, GLFW_TRUE); - - // HACK: Do not disable cursor while the user is interacting with - // a caption button - if (window->win32.frameAction) - break; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - return 0; - } - - case WM_KILLFOCUS: - { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - - if (window->monitor && window->autoIconify) - _glfwPlatformIconifyWindow(window); - - _glfwInputWindowFocus(window, GLFW_FALSE); - return 0; - } - - case WM_SYSCOMMAND: - { - switch (wParam & 0xfff0) - { - case SC_SCREENSAVE: - case SC_MONITORPOWER: - { - if (window->monitor) - { - // We are running in full screen mode, so disallow - // screen saver and screen blanking - return 0; - } - else - break; - } - - // User trying to access application menu using ALT? - case SC_KEYMENU: - return 0; - } - break; - } - - case WM_CLOSE: - { - _glfwInputWindowCloseRequest(window); - return 0; - } - - case WM_INPUTLANGCHANGE: - { - _glfwUpdateKeyNamesWin32(); - break; - } - - case WM_CHAR: - case WM_SYSCHAR: - case WM_UNICHAR: - { - const GLFWbool plain = (uMsg != WM_SYSCHAR); - - if (uMsg == WM_UNICHAR && wParam == UNICODE_NOCHAR) - { - // WM_UNICHAR is not sent by Windows, but is sent by some - // third-party input method engine - // Returning TRUE here announces support for this message - return TRUE; - } - - _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), plain); - return 0; - } - - case WM_KEYDOWN: - case WM_SYSKEYDOWN: - case WM_KEYUP: - case WM_SYSKEYUP: - { - const int key = translateKey(wParam, lParam); - const int scancode = (lParam >> 16) & 0x1ff; - const int action = ((lParam >> 31) & 1) ? GLFW_RELEASE : GLFW_PRESS; - const int mods = getKeyMods(); - - if (key == _GLFW_KEY_INVALID) - break; - - if (action == GLFW_RELEASE && wParam == VK_SHIFT) - { - // HACK: Release both Shift keys on Shift up event, as when both - // are pressed the first release does not emit any event - // NOTE: The other half of this is in _glfwPlatformPollEvents - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods); - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods); - } - else if (wParam == VK_SNAPSHOT) - { - // HACK: Key down is not reported for the Print Screen key - _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); - _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); - } - else - _glfwInputKey(window, key, scancode, action, mods); - - break; - } - - case WM_LBUTTONDOWN: - case WM_RBUTTONDOWN: - case WM_MBUTTONDOWN: - case WM_XBUTTONDOWN: - case WM_LBUTTONUP: - case WM_RBUTTONUP: - case WM_MBUTTONUP: - case WM_XBUTTONUP: - { - int i, button, action; - - if (uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONUP) - button = GLFW_MOUSE_BUTTON_LEFT; - else if (uMsg == WM_RBUTTONDOWN || uMsg == WM_RBUTTONUP) - button = GLFW_MOUSE_BUTTON_RIGHT; - else if (uMsg == WM_MBUTTONDOWN || uMsg == WM_MBUTTONUP) - button = GLFW_MOUSE_BUTTON_MIDDLE; - else if (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) - button = GLFW_MOUSE_BUTTON_4; - else - button = GLFW_MOUSE_BUTTON_5; - - if (uMsg == WM_LBUTTONDOWN || uMsg == WM_RBUTTONDOWN || - uMsg == WM_MBUTTONDOWN || uMsg == WM_XBUTTONDOWN) - { - action = GLFW_PRESS; - } - else - action = GLFW_RELEASE; - - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == GLFW_PRESS) - break; - } - - if (i > GLFW_MOUSE_BUTTON_LAST) - SetCapture(hWnd); - - _glfwInputMouseClick(window, button, action, getKeyMods()); - - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - { - if (window->mouseButtons[i] == GLFW_PRESS) - break; - } - - if (i > GLFW_MOUSE_BUTTON_LAST) - ReleaseCapture(); - - if (uMsg == WM_XBUTTONDOWN || uMsg == WM_XBUTTONUP) - return TRUE; - - return 0; - } - - case WM_MOUSEMOVE: - { - const int x = GET_X_LPARAM(lParam); - const int y = GET_Y_LPARAM(lParam); - - // Disabled cursor motion input is provided by WM_INPUT - if (window->cursorMode == GLFW_CURSOR_DISABLED) - break; - - _glfwInputCursorPos(window, x, y); - - window->win32.lastCursorPosX = x; - window->win32.lastCursorPosY = y; - - if (!window->win32.cursorTracked) - { - TRACKMOUSEEVENT tme; - ZeroMemory(&tme, sizeof(tme)); - tme.cbSize = sizeof(tme); - tme.dwFlags = TME_LEAVE; - tme.hwndTrack = window->win32.handle; - TrackMouseEvent(&tme); - - window->win32.cursorTracked = GLFW_TRUE; - _glfwInputCursorEnter(window, GLFW_TRUE); - } - - return 0; - } - - case WM_INPUT: - { - UINT size; - HRAWINPUT ri = (HRAWINPUT) lParam; - RAWINPUT* data; - int dx, dy; - - // Only process input when disabled cursor mode is applied - if (_glfw.win32.disabledCursorWindow != window) - break; - - GetRawInputData(ri, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER)); - if (size > (UINT) _glfw.win32.rawInputSize) - { - free(_glfw.win32.rawInput); - _glfw.win32.rawInput = calloc(size, 1); - _glfw.win32.rawInputSize = size; - } - - size = _glfw.win32.rawInputSize; - if (GetRawInputData(ri, RID_INPUT, - _glfw.win32.rawInput, &size, - sizeof(RAWINPUTHEADER)) == (UINT) -1) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to retrieve raw input data"); - break; - } - - data = _glfw.win32.rawInput; - if (data->data.mouse.usFlags & MOUSE_MOVE_ABSOLUTE) - { - dx = data->data.mouse.lLastX - window->win32.lastCursorPosX; - dy = data->data.mouse.lLastY - window->win32.lastCursorPosY; - } - else - { - dx = data->data.mouse.lLastX; - dy = data->data.mouse.lLastY; - } - - _glfwInputCursorPos(window, - window->virtualCursorPosX + dx, - window->virtualCursorPosY + dy); - - window->win32.lastCursorPosX += dx; - window->win32.lastCursorPosY += dy; - break; - } - - case WM_MOUSELEAVE: - { - window->win32.cursorTracked = GLFW_FALSE; - _glfwInputCursorEnter(window, GLFW_FALSE); - return 0; - } - - case WM_MOUSEWHEEL: - { - _glfwInputScroll(window, 0.0, (SHORT) HIWORD(wParam) / (double) WHEEL_DELTA); - return 0; - } - - case WM_MOUSEHWHEEL: - { - // This message is only sent on Windows Vista and later - // NOTE: The X-axis is inverted for consistency with macOS and X11 - _glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0); - return 0; - } - - case WM_ENTERSIZEMOVE: - case WM_ENTERMENULOOP: - { - // HACK: Postpone cursor disabling while the user is moving or - // resizing the window or using the menu - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - - break; - } - - case WM_EXITSIZEMOVE: - case WM_EXITMENULOOP: - { - // HACK: Disable the cursor once the user is done moving or - // resizing the window or using the menu - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - - break; - } - - case WM_SIZE: - { - const GLFWbool iconified = wParam == SIZE_MINIMIZED; - const GLFWbool maximized = wParam == SIZE_MAXIMIZED || - (window->win32.maximized && - wParam != SIZE_RESTORED); - - if (_glfw.win32.disabledCursorWindow == window) - updateClipRect(window); - - if (window->win32.iconified != iconified) - _glfwInputWindowIconify(window, iconified); - - if (window->win32.maximized != maximized) - _glfwInputWindowMaximize(window, maximized); - - _glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam)); - _glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam)); - - if (window->monitor && window->win32.iconified != iconified) - { - if (iconified) - releaseMonitor(window); - else - acquireMonitor(window); - } - - window->win32.iconified = iconified; - window->win32.maximized = maximized; - return 0; - } - - case WM_MOVE: - { - if (_glfw.win32.disabledCursorWindow == window) - updateClipRect(window); - - // NOTE: This cannot use LOWORD/HIWORD recommended by MSDN, as - // those macros do not handle negative window positions correctly - _glfwInputWindowPos(window, - GET_X_LPARAM(lParam), - GET_Y_LPARAM(lParam)); - return 0; - } - - case WM_SIZING: - { - if (window->numer == GLFW_DONT_CARE || - window->denom == GLFW_DONT_CARE) - { - break; - } - - applyAspectRatio(window, (int) wParam, (RECT*) lParam); - return TRUE; - } - - case WM_GETMINMAXINFO: - { - int xoff, yoff; - MINMAXINFO* mmi = (MINMAXINFO*) lParam; - - if (window->monitor) - break; - - getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), - 0, 0, &xoff, &yoff); - - if (window->minwidth != GLFW_DONT_CARE && - window->minheight != GLFW_DONT_CARE) - { - mmi->ptMinTrackSize.x = window->minwidth + xoff; - mmi->ptMinTrackSize.y = window->minheight + yoff; - } - - if (window->maxwidth != GLFW_DONT_CARE && - window->maxheight != GLFW_DONT_CARE) - { - mmi->ptMaxTrackSize.x = window->maxwidth + xoff; - mmi->ptMaxTrackSize.y = window->maxheight + yoff; - } - - return 0; - } - - case WM_PAINT: - { - _glfwInputWindowDamage(window); - break; - } - - case WM_ERASEBKGND: - { - return TRUE; - } - - case WM_DWMCOMPOSITIONCHANGED: - { - if (window->win32.transparent) - updateFramebufferTransparency(window); - return 0; - } - - case WM_SETCURSOR: - { - if (LOWORD(lParam) == HTCLIENT) - { - updateCursorImage(window); - return TRUE; - } - - break; - } - - case WM_DPICHANGED: - { - RECT* rect = (RECT*) lParam; - SetWindowPos(window->win32.handle, - HWND_TOP, - rect->left, - rect->top, - rect->right - rect->left, - rect->bottom - rect->top, - SWP_NOACTIVATE | SWP_NOZORDER); - break; - } - - case WM_DROPFILES: - { - HDROP drop = (HDROP) wParam; - POINT pt; - int i; - - const int count = DragQueryFileW(drop, 0xffffffff, NULL, 0); - char** paths = calloc(count, sizeof(char*)); - - // Move the mouse to the position of the drop - DragQueryPoint(drop, &pt); - _glfwInputCursorPos(window, pt.x, pt.y); - - for (i = 0; i < count; i++) - { - const UINT length = DragQueryFileW(drop, i, NULL, 0); - WCHAR* buffer = calloc(length + 1, sizeof(WCHAR)); - - DragQueryFileW(drop, i, buffer, length + 1); - paths[i] = _glfwCreateUTF8FromWideStringWin32(buffer); - - free(buffer); - } - - _glfwInputDrop(window, count, (const char**) paths); - - for (i = 0; i < count; i++) - free(paths[i]); - free(paths); - - DragFinish(drop); - return 0; - } - } - - return DefWindowProcW(hWnd, uMsg, wParam, lParam); -} - -// Creates the GLFW window -// -static int createNativeWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWfbconfig* fbconfig) -{ - int xpos, ypos, fullWidth, fullHeight; - WCHAR* wideTitle; - DWORD style = getWindowStyle(window); - DWORD exStyle = getWindowExStyle(window); - - if (window->monitor) - { - GLFWvidmode mode; - - // NOTE: This window placement is temporary and approximate, as the - // correct position and size cannot be known until the monitor - // video mode has been picked in _glfwSetVideoModeWin32 - _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); - _glfwPlatformGetVideoMode(window->monitor, &mode); - fullWidth = mode.width; - fullHeight = mode.height; - } - else - { - xpos = CW_USEDEFAULT; - ypos = CW_USEDEFAULT; - - if (wndconfig->maximized) - style |= WS_MAXIMIZE; - - getFullWindowSize(style, exStyle, - wndconfig->width, wndconfig->height, - &fullWidth, &fullHeight); - } - - wideTitle = _glfwCreateWideStringFromUTF8Win32(wndconfig->title); - if (!wideTitle) - return GLFW_FALSE; - - window->win32.handle = CreateWindowExW(exStyle, - _GLFW_WNDCLASSNAME, - wideTitle, - style, - xpos, ypos, - fullWidth, fullHeight, - NULL, // No parent window - NULL, // No window menu - GetModuleHandleW(NULL), - NULL); - - free(wideTitle); - - if (!window->win32.handle) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create window"); - return GLFW_FALSE; - } - - SetPropW(window->win32.handle, L"GLFW", window); - - if (IsWindows7OrGreater()) - { - ChangeWindowMessageFilterEx(window->win32.handle, - WM_DROPFILES, MSGFLT_ALLOW, NULL); - ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYDATA, MSGFLT_ALLOW, NULL); - ChangeWindowMessageFilterEx(window->win32.handle, - WM_COPYGLOBALDATA, MSGFLT_ALLOW, NULL); - } - - DragAcceptFiles(window->win32.handle, TRUE); - - if (fbconfig->transparent) - { - updateFramebufferTransparency(window); - window->win32.transparent = GLFW_TRUE; - } - - return GLFW_TRUE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Registers the GLFW window class -// -GLFWbool _glfwRegisterWindowClassWin32(void) -{ - WNDCLASSEXW wc; - - ZeroMemory(&wc, sizeof(wc)); - wc.cbSize = sizeof(wc); - wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; - wc.lpfnWndProc = (WNDPROC) windowProc; - wc.hInstance = GetModuleHandleW(NULL); - wc.hCursor = LoadCursorW(NULL, IDC_ARROW); - wc.lpszClassName = _GLFW_WNDCLASSNAME; - - // Load user-provided icon if available - wc.hIcon = LoadImageW(GetModuleHandleW(NULL), - L"GLFW_ICON", IMAGE_ICON, - 0, 0, LR_DEFAULTSIZE | LR_SHARED); - if (!wc.hIcon) - { - // No user-provided icon found, load default icon - wc.hIcon = LoadImageW(NULL, - IDI_APPLICATION, IMAGE_ICON, - 0, 0, LR_DEFAULTSIZE | LR_SHARED); - } - - if (!RegisterClassExW(&wc)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to register window class"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -// Unregisters the GLFW window class -// -void _glfwUnregisterWindowClassWin32(void) -{ - UnregisterClassW(_GLFW_WNDCLASSNAME, GetModuleHandleW(NULL)); -} - -// Returns whether desktop compositing is enabled -// -GLFWbool _glfwIsCompositionEnabledWin32(void) -{ - if (IsWindowsVistaOrGreater()) - { - BOOL enabled; - if (SUCCEEDED(DwmIsCompositionEnabled(&enabled))) - return enabled; - } - - return FALSE; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - if (!createNativeWindow(window, wndconfig, fbconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitWGL()) - return GLFW_FALSE; - if (!_glfwCreateContextWGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) - { - if (!_glfwInitOSMesa()) - return GLFW_FALSE; - if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - if (window->monitor) - { - _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - if (wndconfig->centerCursor) - centerCursor(window); - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window->monitor) - releaseMonitor(window); - - if (window->context.destroy) - window->context.destroy(window); - - if (_glfw.win32.disabledCursorWindow == window) - _glfw.win32.disabledCursorWindow = NULL; - - if (window->win32.handle) - { - RemovePropW(window->win32.handle, L"GLFW"); - DestroyWindow(window->win32.handle); - window->win32.handle = NULL; - } - - if (window->win32.bigIcon) - DestroyIcon(window->win32.bigIcon); - - if (window->win32.smallIcon) - DestroyIcon(window->win32.smallIcon); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - WCHAR* wideTitle = _glfwCreateWideStringFromUTF8Win32(title); - if (!wideTitle) - return; - - SetWindowTextW(window->win32.handle, wideTitle); - free(wideTitle); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - HICON bigIcon = NULL, smallIcon = NULL; - - if (count) - { - const GLFWimage* bigImage = chooseImage(count, images, - GetSystemMetrics(SM_CXICON), - GetSystemMetrics(SM_CYICON)); - const GLFWimage* smallImage = chooseImage(count, images, - GetSystemMetrics(SM_CXSMICON), - GetSystemMetrics(SM_CYSMICON)); - - bigIcon = createIcon(bigImage, 0, 0, GLFW_TRUE); - smallIcon = createIcon(smallImage, 0, 0, GLFW_TRUE); - } - else - { - bigIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICON); - smallIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICONSM); - } - - SendMessage(window->win32.handle, WM_SETICON, ICON_BIG, (LPARAM) bigIcon); - SendMessage(window->win32.handle, WM_SETICON, ICON_SMALL, (LPARAM) smallIcon); - - if (window->win32.bigIcon) - DestroyIcon(window->win32.bigIcon); - - if (window->win32.smallIcon) - DestroyIcon(window->win32.smallIcon); - - if (count) - { - window->win32.bigIcon = bigIcon; - window->win32.smallIcon = smallIcon; - } -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - POINT pos = { 0, 0 }; - ClientToScreen(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - RECT rect = { xpos, ypos, xpos, ypos }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0, - SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - RECT area; - GetClientRect(window->win32.handle, &area); - - if (width) - *width = area.right; - if (height) - *height = area.bottom; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - if (window->monitor) - { - if (window->monitor->window == window) - acquireMonitor(window); - } - else - { - RECT rect = { 0, 0, width, height }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, HWND_TOP, - 0, 0, rect.right - rect.left, rect.bottom - rect.top, - SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); - } -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - RECT area; - - if ((minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) && - (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)) - { - return; - } - - GetWindowRect(window->win32.handle, &area); - MoveWindow(window->win32.handle, - area.left, area.top, - area.right - area.left, - area.bottom - area.top, TRUE); -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - RECT area; - - if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) - return; - - GetWindowRect(window->win32.handle, &area); - applyAspectRatio(window, WMSZ_BOTTOMRIGHT, &area); - MoveWindow(window->win32.handle, - area.left, area.top, - area.right - area.left, - area.bottom - area.top, TRUE); -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - RECT rect; - int width, height; - - _glfwPlatformGetWindowSize(window, &width, &height); - SetRect(&rect, 0, 0, width, height); - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - - if (left) - *left = -rect.left; - if (top) - *top = -rect.top; - if (right) - *right = rect.right - width; - if (bottom) - *bottom = rect.bottom - height; -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_MINIMIZE); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_RESTORE); -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_MAXIMIZE); -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_SHOW); -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - ShowWindow(window->win32.handle, SW_HIDE); -} - -void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) -{ - FlashWindow(window->win32.handle, TRUE); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - BringWindowToTop(window->win32.handle); - SetForegroundWindow(window->win32.handle); - SetFocus(window->win32.handle); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (window->monitor == monitor) - { - if (monitor) - { - if (monitor->window == window) - acquireMonitor(window); - } - else - { - RECT rect = { xpos, ypos, xpos + width, ypos + height }; - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, HWND_TOP, - rect.left, rect.top, - rect.right - rect.left, rect.bottom - rect.top, - SWP_NOCOPYBITS | SWP_NOACTIVATE | SWP_NOZORDER); - } - - return; - } - - if (window->monitor) - releaseMonitor(window); - - _glfwInputWindowMonitorChange(window, monitor); - - if (monitor) - { - GLFWvidmode mode; - DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); - UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS; - - if (window->decorated) - { - style &= ~WS_OVERLAPPEDWINDOW; - style |= getWindowStyle(window); - SetWindowLongW(window->win32.handle, GWL_STYLE, style); - - flags |= SWP_FRAMECHANGED; - } - - _glfwPlatformGetVideoMode(monitor, &mode); - _glfwPlatformGetMonitorPos(monitor, &xpos, &ypos); - - SetWindowPos(window->win32.handle, HWND_TOPMOST, - xpos, ypos, mode.width, mode.height, - flags); - - acquireMonitor(window); - } - else - { - HWND after; - RECT rect = { xpos, ypos, xpos + width, ypos + height }; - DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); - UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS; - - if (window->decorated) - { - style &= ~WS_POPUP; - style |= getWindowStyle(window); - SetWindowLongW(window->win32.handle, GWL_STYLE, style); - - flags |= SWP_FRAMECHANGED; - } - - if (window->floating) - after = HWND_TOPMOST; - else - after = HWND_NOTOPMOST; - - AdjustWindowRectEx(&rect, getWindowStyle(window), - FALSE, getWindowExStyle(window)); - SetWindowPos(window->win32.handle, after, - rect.left, rect.top, - rect.right - rect.left, rect.bottom - rect.top, - flags); - } -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return window->win32.handle == GetActiveWindow(); -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - return IsIconic(window->win32.handle); -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return IsWindowVisible(window->win32.handle); -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return IsZoomed(window->win32.handle); -} - -int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) -{ - return window->win32.transparent && _glfwIsCompositionEnabledWin32(); -} - -void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) -{ - updateWindowStyles(window); -} - -void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) -{ - updateWindowStyles(window); -} - -void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) -{ - const HWND after = enabled ? HWND_TOPMOST : HWND_NOTOPMOST; - SetWindowPos(window->win32.handle, after, 0, 0, 0, 0, - SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); -} - -void _glfwPlatformPollEvents(void) -{ - MSG msg; - HWND handle; - _GLFWwindow* window; - - while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) - { - if (msg.message == WM_QUIT) - { - // NOTE: While GLFW does not itself post WM_QUIT, other processes - // may post it to this one, for example Task Manager - // HACK: Treat WM_QUIT as a close on all windows - - window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - } - else - { - TranslateMessage(&msg); - DispatchMessageW(&msg); - } - } - - handle = GetActiveWindow(); - if (handle) - { - // NOTE: Shift keys on Windows tend to "stick" when both are pressed as - // no key up message is generated by the first key release - // The other half of this is in the handling of WM_KEYUP - // HACK: Query actual key state and synthesize release events as needed - window = GetPropW(handle, L"GLFW"); - if (window) - { - const GLFWbool lshift = (GetAsyncKeyState(VK_LSHIFT) >> 15) & 1; - const GLFWbool rshift = (GetAsyncKeyState(VK_RSHIFT) >> 15) & 1; - - if (!lshift && window->keys[GLFW_KEY_LEFT_SHIFT] == GLFW_PRESS) - { - const int mods = getAsyncKeyMods(); - const int scancode = _glfw.win32.scancodes[GLFW_KEY_LEFT_SHIFT]; - _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, GLFW_RELEASE, mods); - } - else if (!rshift && window->keys[GLFW_KEY_RIGHT_SHIFT] == GLFW_PRESS) - { - const int mods = getAsyncKeyMods(); - const int scancode = _glfw.win32.scancodes[GLFW_KEY_RIGHT_SHIFT]; - _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, GLFW_RELEASE, mods); - } - } - } - - window = _glfw.win32.disabledCursorWindow; - if (window) - { - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - - // NOTE: Re-center the cursor only if it has moved since the last call, - // to avoid breaking glfwWaitEvents with WM_MOUSEMOVE - if (window->win32.lastCursorPosX != width / 2 || - window->win32.lastCursorPosY != height / 2) - { - _glfwPlatformSetCursorPos(window, width / 2, height / 2); - } - } -} - -void _glfwPlatformWaitEvents(void) -{ - WaitMessage(); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS); - - _glfwPlatformPollEvents(); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - PostMessage(_glfw.win32.helperWindowHandle, WM_NULL, 0, 0); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - POINT pos; - - if (GetCursorPos(&pos)) - { - ScreenToClient(window->win32.handle, &pos); - - if (xpos) - *xpos = pos.x; - if (ypos) - *ypos = pos.y; - } -} - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) -{ - POINT pos = { (int) xpos, (int) ypos }; - - // Store the new position so it can be recognized later - window->win32.lastCursorPosX = pos.x; - window->win32.lastCursorPosY = pos.y; - - ClientToScreen(window->win32.handle, &pos); - SetCursorPos(pos.x, pos.y); -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - if (mode == GLFW_CURSOR_DISABLED) - { - const RAWINPUTDEVICE rid = { 0x01, 0x02, 0, window->win32.handle }; - - _glfw.win32.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.win32.restoreCursorPosX, - &_glfw.win32.restoreCursorPosY); - centerCursor(window); - updateClipRect(window); - - if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to register raw input device"); - } - } - else if (_glfw.win32.disabledCursorWindow == window) - { - const RAWINPUTDEVICE rid = { 0x01, 0x02, RIDEV_REMOVE, NULL }; - - _glfw.win32.disabledCursorWindow = NULL; - updateClipRect(NULL); - _glfwPlatformSetCursorPos(window, - _glfw.win32.restoreCursorPosX, - _glfw.win32.restoreCursorPosY); - - if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to remove raw input device"); - } - } - - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -const char* _glfwPlatformGetScancodeName(int scancode) -{ - return _glfw.win32.keynames[_glfw.win32.keycodes[scancode]]; -} - -int _glfwPlatformGetKeyScancode(int key) -{ - return _glfw.win32.scancodes[key]; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - cursor->win32.handle = (HCURSOR) createIcon(image, xhot, yhot, GLFW_FALSE); - if (!cursor->win32.handle) - return GLFW_FALSE; - - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - cursor->win32.handle = - CopyCursor(LoadCursorW(NULL, translateCursorShape(shape))); - if (!cursor->win32.handle) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to create standard cursor"); - return GLFW_FALSE; - } - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - if (cursor->win32.handle) - DestroyIcon((HICON) cursor->win32.handle); -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - if (cursorInClientArea(window)) - updateCursorImage(window); -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - int characterCount; - HANDLE object; - WCHAR* buffer; - - characterCount = MultiByteToWideChar(CP_UTF8, 0, string, -1, NULL, 0); - if (!characterCount) - return; - - object = GlobalAlloc(GMEM_MOVEABLE, characterCount * sizeof(WCHAR)); - if (!object) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to allocate global handle for clipboard"); - return; - } - - buffer = GlobalLock(object); - if (!buffer) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to lock global handle"); - GlobalFree(object); - return; - } - - MultiByteToWideChar(CP_UTF8, 0, string, -1, buffer, characterCount); - GlobalUnlock(object); - - if (!OpenClipboard(_glfw.win32.helperWindowHandle)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to open clipboard"); - GlobalFree(object); - return; - } - - EmptyClipboard(); - SetClipboardData(CF_UNICODETEXT, object); - CloseClipboard(); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - HANDLE object; - WCHAR* buffer; - - if (!OpenClipboard(_glfw.win32.helperWindowHandle)) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to open clipboard"); - return NULL; - } - - object = GetClipboardData(CF_UNICODETEXT); - if (!object) - { - _glfwInputErrorWin32(GLFW_FORMAT_UNAVAILABLE, - "Win32: Failed to convert clipboard to string"); - CloseClipboard(); - return NULL; - } - - buffer = GlobalLock(object); - if (!buffer) - { - _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, - "Win32: Failed to lock global handle"); - CloseClipboard(); - return NULL; - } - - free(_glfw.win32.clipboardString); - _glfw.win32.clipboardString = _glfwCreateUTF8FromWideStringWin32(buffer); - - GlobalUnlock(object); - CloseClipboard(); - - return _glfw.win32.clipboardString; -} - -void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) -{ - if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_win32_surface) - return; - - extensions[0] = "VK_KHR_surface"; - extensions[1] = "VK_KHR_win32_surface"; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR - vkGetPhysicalDeviceWin32PresentationSupportKHR = - (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR"); - if (!vkGetPhysicalDeviceWin32PresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); - return GLFW_FALSE; - } - - return vkGetPhysicalDeviceWin32PresentationSupportKHR(device, queuefamily); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkWin32SurfaceCreateInfoKHR sci; - PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; - - vkCreateWin32SurfaceKHR = (PFN_vkCreateWin32SurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateWin32SurfaceKHR"); - if (!vkCreateWin32SurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; - sci.hinstance = GetModuleHandle(NULL); - sci.hwnd = window->win32.handle; - - err = vkCreateWin32SurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Win32: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->win32.handle; -} - diff --git a/external/GLFW/src/wl_init.c b/external/GLFW/src/wl_init.c deleted file mode 100644 index 8e42ce6..0000000 --- a/external/GLFW/src/wl_init.c +++ /dev/null @@ -1,746 +0,0 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// 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 "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - - -static inline int min(int n1, int n2) -{ - return n1 < n2 ? n1 : n2; -} - -static void pointerHandleEnter(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = window; - - _glfwPlatformSetCursor(window, window->wl.currentCursor); - _glfwInputCursorEnter(window, GLFW_TRUE); -} - -static void pointerHandleLeave(void* data, - struct wl_pointer* pointer, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - _glfw.wl.pointerSerial = serial; - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GLFW_FALSE); -} - -static void pointerHandleMotion(void* data, - struct wl_pointer* pointer, - uint32_t time, - wl_fixed_t sx, - wl_fixed_t sy) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - - if (!window) - return; - - if (window->cursorMode == GLFW_CURSOR_DISABLED) - return; - else - { - window->wl.cursorPosX = wl_fixed_to_double(sx); - window->wl.cursorPosY = wl_fixed_to_double(sy); - } - - _glfwInputCursorPos(window, - wl_fixed_to_double(sx), - wl_fixed_to_double(sy)); -} - -static void pointerHandleButton(void* data, - struct wl_pointer* wl_pointer, - uint32_t serial, - uint32_t time, - uint32_t button, - uint32_t state) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - int glfwButton; - - if (!window) - return; - - _glfw.wl.pointerSerial = serial; - - /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev - * codes. */ - glfwButton = button - BTN_LEFT; - - _glfwInputMouseClick(window, - glfwButton, - state == WL_POINTER_BUTTON_STATE_PRESSED - ? GLFW_PRESS - : GLFW_RELEASE, - _glfw.wl.xkb.modifiers); -} - -static void pointerHandleAxis(void* data, - struct wl_pointer* wl_pointer, - uint32_t time, - uint32_t axis, - wl_fixed_t value) -{ - _GLFWwindow* window = _glfw.wl.pointerFocus; - double scrollFactor; - double x, y; - - if (!window) - return; - - /* Wayland scroll events are in pointer motion coordinate space (think - * two finger scroll). The factor 10 is commonly used to convert to - * "scroll step means 1.0. */ - scrollFactor = 1.0/10.0; - - switch (axis) - { - case WL_POINTER_AXIS_HORIZONTAL_SCROLL: - x = wl_fixed_to_double(value) * scrollFactor; - y = 0.0; - break; - case WL_POINTER_AXIS_VERTICAL_SCROLL: - x = 0.0; - y = wl_fixed_to_double(value) * scrollFactor; - break; - default: - break; - } - - _glfwInputScroll(window, x, y); -} - -static const struct wl_pointer_listener pointerListener = { - pointerHandleEnter, - pointerHandleLeave, - pointerHandleMotion, - pointerHandleButton, - pointerHandleAxis, -}; - -static void keyboardHandleKeymap(void* data, - struct wl_keyboard* keyboard, - uint32_t format, - int fd, - uint32_t size) -{ - struct xkb_keymap* keymap; - struct xkb_state* state; - struct xkb_compose_table* composeTable; - struct xkb_compose_state* composeState; - char* mapStr; - const char* locale; - - if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) - { - close(fd); - return; - } - - mapStr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); - if (mapStr == MAP_FAILED) { - close(fd); - return; - } - - keymap = xkb_keymap_new_from_string(_glfw.wl.xkb.context, - mapStr, - XKB_KEYMAP_FORMAT_TEXT_V1, - 0); - munmap(mapStr, size); - close(fd); - - if (!keymap) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to compile keymap"); - return; - } - - state = xkb_state_new(keymap); - if (!state) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create XKB state"); - xkb_keymap_unref(keymap); - return; - } - - // Look up the preferred locale, falling back to "C" as default. - locale = getenv("LC_ALL"); - if (!locale) - locale = getenv("LC_CTYPE"); - if (!locale) - locale = getenv("LANG"); - if (!locale) - locale = "C"; - - composeTable = - xkb_compose_table_new_from_locale(_glfw.wl.xkb.context, locale, - XKB_COMPOSE_COMPILE_NO_FLAGS); - if (composeTable) - { - composeState = - xkb_compose_state_new(composeTable, XKB_COMPOSE_STATE_NO_FLAGS); - xkb_compose_table_unref(composeTable); - if (composeState) - _glfw.wl.xkb.composeState = composeState; - else - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create XKB compose state"); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create XKB compose table"); - } - - xkb_keymap_unref(_glfw.wl.xkb.keymap); - xkb_state_unref(_glfw.wl.xkb.state); - _glfw.wl.xkb.keymap = keymap; - _glfw.wl.xkb.state = state; - - _glfw.wl.xkb.controlMask = - 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Control"); - _glfw.wl.xkb.altMask = - 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod1"); - _glfw.wl.xkb.shiftMask = - 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Shift"); - _glfw.wl.xkb.superMask = - 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod4"); -} - -static void keyboardHandleEnter(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface, - struct wl_array* keys) -{ - _GLFWwindow* window = wl_surface_get_user_data(surface); - - _glfw.wl.keyboardFocus = window; - _glfwInputWindowFocus(window, GLFW_TRUE); -} - -static void keyboardHandleLeave(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - struct wl_surface* surface) -{ - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GLFW_FALSE); -} - -static int toGLFWKeyCode(uint32_t key) -{ - if (key < sizeof(_glfw.wl.keycodes) / sizeof(_glfw.wl.keycodes[0])) - return _glfw.wl.keycodes[key]; - - return GLFW_KEY_UNKNOWN; -} - -static xkb_keysym_t composeSymbol(xkb_keysym_t sym) -{ - if (sym == XKB_KEY_NoSymbol || !_glfw.wl.xkb.composeState) - return sym; - if (xkb_compose_state_feed(_glfw.wl.xkb.composeState, sym) - != XKB_COMPOSE_FEED_ACCEPTED) - return sym; - switch (xkb_compose_state_get_status(_glfw.wl.xkb.composeState)) - { - case XKB_COMPOSE_COMPOSED: - return xkb_compose_state_get_one_sym(_glfw.wl.xkb.composeState); - case XKB_COMPOSE_COMPOSING: - case XKB_COMPOSE_CANCELLED: - return XKB_KEY_NoSymbol; - case XKB_COMPOSE_NOTHING: - default: - return sym; - } -} - -static void inputChar(_GLFWwindow* window, uint32_t key) -{ - uint32_t code, numSyms; - long cp; - const xkb_keysym_t *syms; - xkb_keysym_t sym; - - code = key + 8; - numSyms = xkb_state_key_get_syms(_glfw.wl.xkb.state, code, &syms); - - if (numSyms == 1) - { - sym = composeSymbol(syms[0]); - cp = _glfwKeySym2Unicode(sym); - if (cp != -1) - { - const int mods = _glfw.wl.xkb.modifiers; - const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); - _glfwInputChar(window, cp, mods, plain); - } - } -} - -static void keyboardHandleKey(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t time, - uint32_t key, - uint32_t state) -{ - int keyCode; - int action; - _GLFWwindow* window = _glfw.wl.keyboardFocus; - - if (!window) - return; - - keyCode = toGLFWKeyCode(key); - action = state == WL_KEYBOARD_KEY_STATE_PRESSED - ? GLFW_PRESS : GLFW_RELEASE; - - _glfwInputKey(window, keyCode, key, action, - _glfw.wl.xkb.modifiers); - - if (action == GLFW_PRESS) - inputChar(window, key); -} - -static void keyboardHandleModifiers(void* data, - struct wl_keyboard* keyboard, - uint32_t serial, - uint32_t modsDepressed, - uint32_t modsLatched, - uint32_t modsLocked, - uint32_t group) -{ - xkb_mod_mask_t mask; - unsigned int modifiers = 0; - - if (!_glfw.wl.xkb.keymap) - return; - - xkb_state_update_mask(_glfw.wl.xkb.state, - modsDepressed, - modsLatched, - modsLocked, - 0, - 0, - group); - - mask = xkb_state_serialize_mods(_glfw.wl.xkb.state, - XKB_STATE_MODS_DEPRESSED | - XKB_STATE_LAYOUT_DEPRESSED | - XKB_STATE_MODS_LATCHED | - XKB_STATE_LAYOUT_LATCHED); - if (mask & _glfw.wl.xkb.controlMask) - modifiers |= GLFW_MOD_CONTROL; - if (mask & _glfw.wl.xkb.altMask) - modifiers |= GLFW_MOD_ALT; - if (mask & _glfw.wl.xkb.shiftMask) - modifiers |= GLFW_MOD_SHIFT; - if (mask & _glfw.wl.xkb.superMask) - modifiers |= GLFW_MOD_SUPER; - _glfw.wl.xkb.modifiers = modifiers; -} - -static const struct wl_keyboard_listener keyboardListener = { - keyboardHandleKeymap, - keyboardHandleEnter, - keyboardHandleLeave, - keyboardHandleKey, - keyboardHandleModifiers, -}; - -static void seatHandleCapabilities(void* data, - struct wl_seat* seat, - enum wl_seat_capability caps) -{ - if ((caps & WL_SEAT_CAPABILITY_POINTER) && !_glfw.wl.pointer) - { - _glfw.wl.pointer = wl_seat_get_pointer(seat); - wl_pointer_add_listener(_glfw.wl.pointer, &pointerListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && _glfw.wl.pointer) - { - wl_pointer_destroy(_glfw.wl.pointer); - _glfw.wl.pointer = NULL; - } - - if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard) - { - _glfw.wl.keyboard = wl_seat_get_keyboard(seat); - wl_keyboard_add_listener(_glfw.wl.keyboard, &keyboardListener, NULL); - } - else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && _glfw.wl.keyboard) - { - wl_keyboard_destroy(_glfw.wl.keyboard); - _glfw.wl.keyboard = NULL; - } -} - -static const struct wl_seat_listener seatListener = { - seatHandleCapabilities -}; - -static void registryHandleGlobal(void* data, - struct wl_registry* registry, - uint32_t name, - const char* interface, - uint32_t version) -{ - if (strcmp(interface, "wl_compositor") == 0) - { - _glfw.wl.compositorVersion = min(3, version); - _glfw.wl.compositor = - wl_registry_bind(registry, name, &wl_compositor_interface, - _glfw.wl.compositorVersion); - } - else if (strcmp(interface, "wl_shm") == 0) - { - _glfw.wl.shm = - wl_registry_bind(registry, name, &wl_shm_interface, 1); - } - else if (strcmp(interface, "wl_shell") == 0) - { - _glfw.wl.shell = - wl_registry_bind(registry, name, &wl_shell_interface, 1); - } - else if (strcmp(interface, "wl_output") == 0) - { - _glfwAddOutputWayland(name, version); - } - else if (strcmp(interface, "wl_seat") == 0) - { - if (!_glfw.wl.seat) - { - _glfw.wl.seat = - wl_registry_bind(registry, name, &wl_seat_interface, 1); - wl_seat_add_listener(_glfw.wl.seat, &seatListener, NULL); - } - } - else if (strcmp(interface, "zwp_relative_pointer_manager_v1") == 0) - { - _glfw.wl.relativePointerManager = - wl_registry_bind(registry, name, - &zwp_relative_pointer_manager_v1_interface, - 1); - } - else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) - { - _glfw.wl.pointerConstraints = - wl_registry_bind(registry, name, - &zwp_pointer_constraints_v1_interface, - 1); - } -} - -static void registryHandleGlobalRemove(void *data, - struct wl_registry *registry, - uint32_t name) -{ -} - - -static const struct wl_registry_listener registryListener = { - registryHandleGlobal, - registryHandleGlobalRemove -}; - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode; - - memset(_glfw.wl.keycodes, -1, sizeof(_glfw.wl.keycodes)); - memset(_glfw.wl.scancodes, -1, sizeof(_glfw.wl.scancodes)); - - _glfw.wl.keycodes[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; - _glfw.wl.keycodes[KEY_1] = GLFW_KEY_1; - _glfw.wl.keycodes[KEY_2] = GLFW_KEY_2; - _glfw.wl.keycodes[KEY_3] = GLFW_KEY_3; - _glfw.wl.keycodes[KEY_4] = GLFW_KEY_4; - _glfw.wl.keycodes[KEY_5] = GLFW_KEY_5; - _glfw.wl.keycodes[KEY_6] = GLFW_KEY_6; - _glfw.wl.keycodes[KEY_7] = GLFW_KEY_7; - _glfw.wl.keycodes[KEY_8] = GLFW_KEY_8; - _glfw.wl.keycodes[KEY_9] = GLFW_KEY_9; - _glfw.wl.keycodes[KEY_0] = GLFW_KEY_0; - _glfw.wl.keycodes[KEY_SPACE] = GLFW_KEY_SPACE; - _glfw.wl.keycodes[KEY_MINUS] = GLFW_KEY_MINUS; - _glfw.wl.keycodes[KEY_EQUAL] = GLFW_KEY_EQUAL; - _glfw.wl.keycodes[KEY_Q] = GLFW_KEY_Q; - _glfw.wl.keycodes[KEY_W] = GLFW_KEY_W; - _glfw.wl.keycodes[KEY_E] = GLFW_KEY_E; - _glfw.wl.keycodes[KEY_R] = GLFW_KEY_R; - _glfw.wl.keycodes[KEY_T] = GLFW_KEY_T; - _glfw.wl.keycodes[KEY_Y] = GLFW_KEY_Y; - _glfw.wl.keycodes[KEY_U] = GLFW_KEY_U; - _glfw.wl.keycodes[KEY_I] = GLFW_KEY_I; - _glfw.wl.keycodes[KEY_O] = GLFW_KEY_O; - _glfw.wl.keycodes[KEY_P] = GLFW_KEY_P; - _glfw.wl.keycodes[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; - _glfw.wl.keycodes[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; - _glfw.wl.keycodes[KEY_A] = GLFW_KEY_A; - _glfw.wl.keycodes[KEY_S] = GLFW_KEY_S; - _glfw.wl.keycodes[KEY_D] = GLFW_KEY_D; - _glfw.wl.keycodes[KEY_F] = GLFW_KEY_F; - _glfw.wl.keycodes[KEY_G] = GLFW_KEY_G; - _glfw.wl.keycodes[KEY_H] = GLFW_KEY_H; - _glfw.wl.keycodes[KEY_J] = GLFW_KEY_J; - _glfw.wl.keycodes[KEY_K] = GLFW_KEY_K; - _glfw.wl.keycodes[KEY_L] = GLFW_KEY_L; - _glfw.wl.keycodes[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; - _glfw.wl.keycodes[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; - _glfw.wl.keycodes[KEY_Z] = GLFW_KEY_Z; - _glfw.wl.keycodes[KEY_X] = GLFW_KEY_X; - _glfw.wl.keycodes[KEY_C] = GLFW_KEY_C; - _glfw.wl.keycodes[KEY_V] = GLFW_KEY_V; - _glfw.wl.keycodes[KEY_B] = GLFW_KEY_B; - _glfw.wl.keycodes[KEY_N] = GLFW_KEY_N; - _glfw.wl.keycodes[KEY_M] = GLFW_KEY_M; - _glfw.wl.keycodes[KEY_COMMA] = GLFW_KEY_COMMA; - _glfw.wl.keycodes[KEY_DOT] = GLFW_KEY_PERIOD; - _glfw.wl.keycodes[KEY_SLASH] = GLFW_KEY_SLASH; - _glfw.wl.keycodes[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; - _glfw.wl.keycodes[KEY_ESC] = GLFW_KEY_ESCAPE; - _glfw.wl.keycodes[KEY_TAB] = GLFW_KEY_TAB; - _glfw.wl.keycodes[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; - _glfw.wl.keycodes[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; - _glfw.wl.keycodes[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; - _glfw.wl.keycodes[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; - _glfw.wl.keycodes[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; - _glfw.wl.keycodes[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; - _glfw.wl.keycodes[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; - _glfw.wl.keycodes[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; - _glfw.wl.keycodes[KEY_MENU] = GLFW_KEY_MENU; - _glfw.wl.keycodes[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; - _glfw.wl.keycodes[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; - _glfw.wl.keycodes[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; - _glfw.wl.keycodes[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; - _glfw.wl.keycodes[KEY_PAUSE] = GLFW_KEY_PAUSE; - _glfw.wl.keycodes[KEY_DELETE] = GLFW_KEY_DELETE; - _glfw.wl.keycodes[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; - _glfw.wl.keycodes[KEY_ENTER] = GLFW_KEY_ENTER; - _glfw.wl.keycodes[KEY_HOME] = GLFW_KEY_HOME; - _glfw.wl.keycodes[KEY_END] = GLFW_KEY_END; - _glfw.wl.keycodes[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; - _glfw.wl.keycodes[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; - _glfw.wl.keycodes[KEY_INSERT] = GLFW_KEY_INSERT; - _glfw.wl.keycodes[KEY_LEFT] = GLFW_KEY_LEFT; - _glfw.wl.keycodes[KEY_RIGHT] = GLFW_KEY_RIGHT; - _glfw.wl.keycodes[KEY_DOWN] = GLFW_KEY_DOWN; - _glfw.wl.keycodes[KEY_UP] = GLFW_KEY_UP; - _glfw.wl.keycodes[KEY_F1] = GLFW_KEY_F1; - _glfw.wl.keycodes[KEY_F2] = GLFW_KEY_F2; - _glfw.wl.keycodes[KEY_F3] = GLFW_KEY_F3; - _glfw.wl.keycodes[KEY_F4] = GLFW_KEY_F4; - _glfw.wl.keycodes[KEY_F5] = GLFW_KEY_F5; - _glfw.wl.keycodes[KEY_F6] = GLFW_KEY_F6; - _glfw.wl.keycodes[KEY_F7] = GLFW_KEY_F7; - _glfw.wl.keycodes[KEY_F8] = GLFW_KEY_F8; - _glfw.wl.keycodes[KEY_F9] = GLFW_KEY_F9; - _glfw.wl.keycodes[KEY_F10] = GLFW_KEY_F10; - _glfw.wl.keycodes[KEY_F11] = GLFW_KEY_F11; - _glfw.wl.keycodes[KEY_F12] = GLFW_KEY_F12; - _glfw.wl.keycodes[KEY_F13] = GLFW_KEY_F13; - _glfw.wl.keycodes[KEY_F14] = GLFW_KEY_F14; - _glfw.wl.keycodes[KEY_F15] = GLFW_KEY_F15; - _glfw.wl.keycodes[KEY_F16] = GLFW_KEY_F16; - _glfw.wl.keycodes[KEY_F17] = GLFW_KEY_F17; - _glfw.wl.keycodes[KEY_F18] = GLFW_KEY_F18; - _glfw.wl.keycodes[KEY_F19] = GLFW_KEY_F19; - _glfw.wl.keycodes[KEY_F20] = GLFW_KEY_F20; - _glfw.wl.keycodes[KEY_F21] = GLFW_KEY_F21; - _glfw.wl.keycodes[KEY_F22] = GLFW_KEY_F22; - _glfw.wl.keycodes[KEY_F23] = GLFW_KEY_F23; - _glfw.wl.keycodes[KEY_F24] = GLFW_KEY_F24; - _glfw.wl.keycodes[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; - _glfw.wl.keycodes[KEY_KPDOT] = GLFW_KEY_KP_MULTIPLY; - _glfw.wl.keycodes[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; - _glfw.wl.keycodes[KEY_KPPLUS] = GLFW_KEY_KP_ADD; - _glfw.wl.keycodes[KEY_KP0] = GLFW_KEY_KP_0; - _glfw.wl.keycodes[KEY_KP1] = GLFW_KEY_KP_1; - _glfw.wl.keycodes[KEY_KP2] = GLFW_KEY_KP_2; - _glfw.wl.keycodes[KEY_KP3] = GLFW_KEY_KP_3; - _glfw.wl.keycodes[KEY_KP4] = GLFW_KEY_KP_4; - _glfw.wl.keycodes[KEY_KP5] = GLFW_KEY_KP_5; - _glfw.wl.keycodes[KEY_KP6] = GLFW_KEY_KP_6; - _glfw.wl.keycodes[KEY_KP7] = GLFW_KEY_KP_7; - _glfw.wl.keycodes[KEY_KP8] = GLFW_KEY_KP_8; - _glfw.wl.keycodes[KEY_KP9] = GLFW_KEY_KP_9; - _glfw.wl.keycodes[KEY_KPCOMMA] = GLFW_KEY_KP_DECIMAL; - _glfw.wl.keycodes[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; - _glfw.wl.keycodes[KEY_KPENTER] = GLFW_KEY_KP_ENTER; - - for (scancode = 0; scancode < 256; scancode++) - { - if (_glfw.wl.keycodes[scancode] > 0) - _glfw.wl.scancodes[_glfw.wl.keycodes[scancode]] = scancode; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ - _glfw.wl.display = wl_display_connect(NULL); - if (!_glfw.wl.display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to connect to display"); - return GLFW_FALSE; - } - - _glfw.wl.registry = wl_display_get_registry(_glfw.wl.display); - wl_registry_add_listener(_glfw.wl.registry, ®istryListener, NULL); - - createKeyTables(); - - _glfw.wl.xkb.context = xkb_context_new(0); - if (!_glfw.wl.xkb.context) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to initialize xkb context"); - return GLFW_FALSE; - } - - // Sync so we got all registry objects - wl_display_roundtrip(_glfw.wl.display); - - // Sync so we got all initial output events - wl_display_roundtrip(_glfw.wl.display); - - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; - - _glfwInitTimerPOSIX(); - - if (_glfw.wl.pointer && _glfw.wl.shm) - { - _glfw.wl.cursorTheme = wl_cursor_theme_load(NULL, 32, _glfw.wl.shm); - if (!_glfw.wl.cursorTheme) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unable to load default cursor theme\n"); - return GLFW_FALSE; - } - _glfw.wl.cursorSurface = - wl_compositor_create_surface(_glfw.wl.compositor); - } - - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - _glfwTerminateEGL(); - _glfwTerminateJoysticksLinux(); - - xkb_compose_state_unref(_glfw.wl.xkb.composeState); - xkb_keymap_unref(_glfw.wl.xkb.keymap); - xkb_state_unref(_glfw.wl.xkb.state); - xkb_context_unref(_glfw.wl.xkb.context); - - if (_glfw.wl.cursorTheme) - wl_cursor_theme_destroy(_glfw.wl.cursorTheme); - if (_glfw.wl.cursorSurface) - wl_surface_destroy(_glfw.wl.cursorSurface); - if (_glfw.wl.compositor) - wl_compositor_destroy(_glfw.wl.compositor); - if (_glfw.wl.shm) - wl_shm_destroy(_glfw.wl.shm); - if (_glfw.wl.shell) - wl_shell_destroy(_glfw.wl.shell); - if (_glfw.wl.pointer) - wl_pointer_destroy(_glfw.wl.pointer); - if (_glfw.wl.keyboard) - wl_keyboard_destroy(_glfw.wl.keyboard); - if (_glfw.wl.seat) - wl_seat_destroy(_glfw.wl.seat); - if (_glfw.wl.relativePointerManager) - zwp_relative_pointer_manager_v1_destroy(_glfw.wl.relativePointerManager); - if (_glfw.wl.pointerConstraints) - zwp_pointer_constraints_v1_destroy(_glfw.wl.pointerConstraints); - if (_glfw.wl.registry) - wl_registry_destroy(_glfw.wl.registry); - if (_glfw.wl.display) - { - wl_display_flush(_glfw.wl.display); - wl_display_disconnect(_glfw.wl.display); - } -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " Wayland EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif - " evdev" -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/external/GLFW/src/wl_monitor.c b/external/GLFW/src/wl_monitor.c deleted file mode 100644 index 24b0b39..0000000 --- a/external/GLFW/src/wl_monitor.c +++ /dev/null @@ -1,192 +0,0 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// 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 "internal.h" - -#include -#include -#include -#include - - -static void geometry(void* data, - struct wl_output* output, - int32_t x, - int32_t y, - int32_t physicalWidth, - int32_t physicalHeight, - int32_t subpixel, - const char* make, - const char* model, - int32_t transform) -{ - struct _GLFWmonitor *monitor = data; - char name[1024]; - - monitor->wl.x = x; - monitor->wl.y = y; - monitor->widthMM = physicalWidth; - monitor->heightMM = physicalHeight; - - snprintf(name, sizeof(name), "%s %s", make, model); - monitor->name = strdup(name); -} - -static void mode(void* data, - struct wl_output* output, - uint32_t flags, - int32_t width, - int32_t height, - int32_t refresh) -{ - struct _GLFWmonitor *monitor = data; - GLFWvidmode mode; - - mode.width = width; - mode.height = height; - mode.redBits = 8; - mode.greenBits = 8; - mode.blueBits = 8; - mode.refreshRate = refresh / 1000; - - monitor->modeCount++; - monitor->modes = - realloc(monitor->modes, monitor->modeCount * sizeof(GLFWvidmode)); - monitor->modes[monitor->modeCount - 1] = mode; - - if (flags & WL_OUTPUT_MODE_CURRENT) - monitor->wl.currentMode = monitor->modeCount - 1; -} - -static void done(void* data, struct wl_output* output) -{ - struct _GLFWmonitor *monitor = data; - - _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); -} - -static void scale(void* data, - struct wl_output* output, - int32_t factor) -{ - struct _GLFWmonitor *monitor = data; - - monitor->wl.scale = factor; -} - -static const struct wl_output_listener outputListener = { - geometry, - mode, - done, - scale, -}; - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwAddOutputWayland(uint32_t name, uint32_t version) -{ - _GLFWmonitor *monitor; - struct wl_output *output; - - if (version < 2) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Unsupported output interface version"); - return; - } - - // The actual name of this output will be set in the geometry handler. - monitor = _glfwAllocMonitor(NULL, 0, 0); - - output = wl_registry_bind(_glfw.wl.registry, - name, - &wl_output_interface, - 2); - if (!output) - { - _glfwFreeMonitor(monitor); - return; - } - - monitor->wl.scale = 1; - monitor->wl.output = output; - - wl_output_add_listener(output, &outputListener, monitor); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (xpos) - *xpos = monitor->wl.x; - if (ypos) - *ypos = monitor->wl.y; -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) -{ - *found = monitor->modeCount; - return monitor->modes; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - *mode = monitor->modes[monitor->wl.currentMode]; -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Gamma ramp getting not supported yet"); -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Gamma ramp setting not supported yet"); -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return monitor->wl.output; -} - diff --git a/external/GLFW/src/wl_platform.h b/external/GLFW/src/wl_platform.h deleted file mode 100644 index 656f0ef..0000000 --- a/external/GLFW/src/wl_platform.h +++ /dev/null @@ -1,169 +0,0 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// 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 -#include -#include -#include - -typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; - -typedef struct VkWaylandSurfaceCreateInfoKHR -{ - VkStructureType sType; - const void* pNext; - VkWaylandSurfaceCreateFlagsKHR flags; - struct wl_display* display; - struct wl_surface* surface; -} VkWaylandSurfaceCreateInfoKHR; - -typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); -typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*); - -#include "posix_thread.h" -#include "posix_time.h" -#include "linux_joystick.h" -#include "xkb_unicode.h" -#include "egl_context.h" -#include "osmesa_context.h" - -#include "wayland-relative-pointer-unstable-v1-client-protocol.h" -#include "wayland-pointer-constraints-unstable-v1-client-protocol.h" - -#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) -#define _glfw_dlclose(handle) dlclose(handle) -#define _glfw_dlsym(handle, name) dlsym(handle, name) - -#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->wl.native) -#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.wl.display) - -#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl -#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl -#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl - -#define _GLFW_PLATFORM_CONTEXT_STATE -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE - - -// Wayland-specific per-window data -// -typedef struct _GLFWwindowWayland -{ - int width, height; - GLFWbool visible; - GLFWbool maximized; - GLFWbool transparent; - struct wl_surface* surface; - struct wl_egl_window* native; - struct wl_shell_surface* shellSurface; - struct wl_callback* callback; - - _GLFWcursor* currentCursor; - double cursorPosX, cursorPosY; - - char* title; - - // We need to track the monitors the window spans on to calculate the - // optimal scaling factor. - int scale; - _GLFWmonitor** monitors; - int monitorsCount; - int monitorsSize; - - struct { - struct zwp_relative_pointer_v1* relativePointer; - struct zwp_locked_pointer_v1* lockedPointer; - } pointerLock; -} _GLFWwindowWayland; - -// Wayland-specific global data -// -typedef struct _GLFWlibraryWayland -{ - struct wl_display* display; - struct wl_registry* registry; - struct wl_compositor* compositor; - struct wl_shell* shell; - struct wl_shm* shm; - struct wl_seat* seat; - struct wl_pointer* pointer; - struct wl_keyboard* keyboard; - struct zwp_relative_pointer_manager_v1* relativePointerManager; - struct zwp_pointer_constraints_v1* pointerConstraints; - - int compositorVersion; - - struct wl_cursor_theme* cursorTheme; - struct wl_surface* cursorSurface; - uint32_t pointerSerial; - - short int keycodes[256]; - short int scancodes[GLFW_KEY_LAST + 1]; - - struct { - struct xkb_context* context; - struct xkb_keymap* keymap; - struct xkb_state* state; - struct xkb_compose_state* composeState; - xkb_mod_mask_t controlMask; - xkb_mod_mask_t altMask; - xkb_mod_mask_t shiftMask; - xkb_mod_mask_t superMask; - unsigned int modifiers; - } xkb; - - _GLFWwindow* pointerFocus; - _GLFWwindow* keyboardFocus; - -} _GLFWlibraryWayland; - -// Wayland-specific per-monitor data -// -typedef struct _GLFWmonitorWayland -{ - struct wl_output* output; - int currentMode; - - int x; - int y; - int scale; - -} _GLFWmonitorWayland; - -// Wayland-specific per-cursor data -// -typedef struct _GLFWcursorWayland -{ - struct wl_cursor_image* image; - struct wl_buffer* buffer; - int width, height; - int xhot, yhot; -} _GLFWcursorWayland; - - -void _glfwAddOutputWayland(uint32_t name, uint32_t version); - diff --git a/external/GLFW/src/wl_window.c b/external/GLFW/src/wl_window.c deleted file mode 100644 index 32d5f40..0000000 --- a/external/GLFW/src/wl_window.c +++ /dev/null @@ -1,1097 +0,0 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// 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. -// -//======================================================================== - -#define _GNU_SOURCE - -#include "internal.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - - -static void handlePing(void* data, - struct wl_shell_surface* shellSurface, - uint32_t serial) -{ - wl_shell_surface_pong(shellSurface, serial); -} - -static void handleConfigure(void* data, - struct wl_shell_surface* shellSurface, - uint32_t edges, - int32_t width, - int32_t height) -{ - _GLFWwindow* window = data; - float aspectRatio; - float targetRatio; - - if (!window->monitor) - { - if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) - { - aspectRatio = (float)width / (float)height; - targetRatio = (float)window->numer / (float)window->denom; - if (aspectRatio < targetRatio) - height = width / targetRatio; - else if (aspectRatio > targetRatio) - width = height * targetRatio; - } - - if (window->minwidth != GLFW_DONT_CARE && width < window->minwidth) - width = window->minwidth; - else if (window->maxwidth != GLFW_DONT_CARE && width > window->maxwidth) - width = window->maxwidth; - - if (window->minheight != GLFW_DONT_CARE && height < window->minheight) - height = window->minheight; - else if (window->maxheight != GLFW_DONT_CARE && height > window->maxheight) - height = window->maxheight; - } - - _glfwInputWindowSize(window, width, height); - _glfwPlatformSetWindowSize(window, width, height); - _glfwInputWindowDamage(window); -} - -static void handlePopupDone(void* data, - struct wl_shell_surface* shellSurface) -{ -} - -static const struct wl_shell_surface_listener shellSurfaceListener = { - handlePing, - handleConfigure, - handlePopupDone -}; - -static void checkScaleChange(_GLFWwindow* window) -{ - int scaledWidth, scaledHeight; - int scale = 1; - int i; - int monitorScale; - - // Check if we will be able to set the buffer scale or not. - if (_glfw.wl.compositorVersion < 3) - return; - - // Get the scale factor from the highest scale monitor. - for (i = 0; i < window->wl.monitorsCount; ++i) - { - monitorScale = window->wl.monitors[i]->wl.scale; - if (scale < monitorScale) - scale = monitorScale; - } - - // Only change the framebuffer size if the scale changed. - if (scale != window->wl.scale) - { - window->wl.scale = scale; - scaledWidth = window->wl.width * scale; - scaledHeight = window->wl.height * scale; - wl_surface_set_buffer_scale(window->wl.surface, scale); - wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0); - _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); - } -} - -static void handleEnter(void *data, - struct wl_surface *surface, - struct wl_output *output) -{ - _GLFWwindow* window = data; - _GLFWmonitor* monitor = wl_output_get_user_data(output); - - if (window->wl.monitorsCount + 1 > window->wl.monitorsSize) - { - ++window->wl.monitorsSize; - window->wl.monitors = - realloc(window->wl.monitors, - window->wl.monitorsSize * sizeof(_GLFWmonitor*)); - } - - window->wl.monitors[window->wl.monitorsCount++] = monitor; - - checkScaleChange(window); -} - -static void handleLeave(void *data, - struct wl_surface *surface, - struct wl_output *output) -{ - _GLFWwindow* window = data; - _GLFWmonitor* monitor = wl_output_get_user_data(output); - GLFWbool found; - int i; - - for (i = 0, found = GLFW_FALSE; i < window->wl.monitorsCount - 1; ++i) - { - if (monitor == window->wl.monitors[i]) - found = GLFW_TRUE; - if (found) - window->wl.monitors[i] = window->wl.monitors[i + 1]; - } - window->wl.monitors[--window->wl.monitorsCount] = NULL; - - checkScaleChange(window); -} - -static const struct wl_surface_listener surfaceListener = { - handleEnter, - handleLeave -}; - -// Makes the surface considered as XRGB instead of ARGB. -static void setOpaqueRegion(_GLFWwindow* window) -{ - struct wl_region* region; - - region = wl_compositor_create_region(_glfw.wl.compositor); - if (!region) - return; - - wl_region_add(region, 0, 0, window->wl.width, window->wl.height); - wl_surface_set_opaque_region(window->wl.surface, region); - wl_surface_commit(window->wl.surface); - wl_region_destroy(region); -} - -static GLFWbool createSurface(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig) -{ - window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor); - if (!window->wl.surface) - return GLFW_FALSE; - - wl_surface_add_listener(window->wl.surface, - &surfaceListener, - window); - - wl_surface_set_user_data(window->wl.surface, window); - - window->wl.native = wl_egl_window_create(window->wl.surface, - wndconfig->width, - wndconfig->height); - if (!window->wl.native) - return GLFW_FALSE; - - window->wl.width = wndconfig->width; - window->wl.height = wndconfig->height; - window->wl.scale = 1; - - if (!window->wl.transparent) - setOpaqueRegion(window); - - return GLFW_TRUE; -} - -static GLFWbool createShellSurface(_GLFWwindow* window) -{ - window->wl.shellSurface = wl_shell_get_shell_surface(_glfw.wl.shell, - window->wl.surface); - if (!window->wl.shellSurface) - return GLFW_FALSE; - - wl_shell_surface_add_listener(window->wl.shellSurface, - &shellSurfaceListener, - window); - - if (window->wl.title) - wl_shell_surface_set_title(window->wl.shellSurface, window->wl.title); - - if (window->monitor) - { - wl_shell_surface_set_fullscreen( - window->wl.shellSurface, - WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - 0, - window->monitor->wl.output); - } - else if (window->wl.maximized) - { - wl_shell_surface_set_maximized(window->wl.shellSurface, NULL); - } - else - { - wl_shell_surface_set_toplevel(window->wl.shellSurface); - } - - wl_surface_commit(window->wl.surface); - - return GLFW_TRUE; -} - -static int -createTmpfileCloexec(char* tmpname) -{ - int fd; - - fd = mkostemp(tmpname, O_CLOEXEC); - if (fd >= 0) - unlink(tmpname); - - return fd; -} - -static void -handleEvents(int timeout) -{ - struct wl_display* display = _glfw.wl.display; - struct pollfd fds[] = { - { wl_display_get_fd(display), POLLIN }, - }; - - while (wl_display_prepare_read(display) != 0) - wl_display_dispatch_pending(display); - - // If an error different from EAGAIN happens, we have likely been - // disconnected from the Wayland session, try to handle that the best we - // can. - if (wl_display_flush(display) < 0 && errno != EAGAIN) - { - _GLFWwindow* window = _glfw.windowListHead; - while (window) - { - _glfwInputWindowCloseRequest(window); - window = window->next; - } - wl_display_cancel_read(display); - return; - } - - if (poll(fds, 1, timeout) > 0) - { - wl_display_read_events(display); - wl_display_dispatch_pending(display); - } - else - { - wl_display_cancel_read(display); - } -} - -/* - * Create a new, unique, anonymous file of the given size, and - * return the file descriptor for it. The file descriptor is set - * CLOEXEC. The file is immediately suitable for mmap()'ing - * the given size at offset zero. - * - * The file should not have a permanent backing store like a disk, - * but may have if XDG_RUNTIME_DIR is not properly implemented in OS. - * - * The file name is deleted from the file system. - * - * The file is suitable for buffer sharing between processes by - * transmitting the file descriptor over Unix sockets using the - * SCM_RIGHTS methods. - * - * posix_fallocate() is used to guarantee that disk space is available - * for the file at the given size. If disk space is insufficent, errno - * is set to ENOSPC. If posix_fallocate() is not supported, program may - * receive SIGBUS on accessing mmap()'ed file contents instead. - */ -int -createAnonymousFile(off_t size) -{ - static const char template[] = "/glfw-shared-XXXXXX"; - const char* path; - char* name; - int fd; - int ret; - - path = getenv("XDG_RUNTIME_DIR"); - if (!path) - { - errno = ENOENT; - return -1; - } - - name = calloc(strlen(path) + sizeof(template), 1); - strcpy(name, path); - strcat(name, template); - - fd = createTmpfileCloexec(name); - - free(name); - - if (fd < 0) - return -1; - ret = posix_fallocate(fd, 0, size); - if (ret != 0) - { - close(fd); - errno = ret; - return -1; - } - return fd; -} - -// Translates a GLFW standard cursor to a theme cursor name -// -static char *translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return "left_ptr"; - case GLFW_IBEAM_CURSOR: - return "xterm"; - case GLFW_CROSSHAIR_CURSOR: - return "crosshair"; - case GLFW_HAND_CURSOR: - return "grabbing"; - case GLFW_HRESIZE_CURSOR: - return "sb_h_double_arrow"; - case GLFW_VRESIZE_CURSOR: - return "sb_v_double_arrow"; - } - return NULL; -} - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformCreateWindow(_GLFWwindow* window, - const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, - const _GLFWfbconfig* fbconfig) -{ - window->wl.transparent = fbconfig->transparent; - - if (!createSurface(window, wndconfig)) - return GLFW_FALSE; - - if (ctxconfig->client != GLFW_NO_API) - { - if (ctxconfig->source == GLFW_EGL_CONTEXT_API || - ctxconfig->source == GLFW_NATIVE_CONTEXT_API) - { - if (!_glfwInitEGL()) - return GLFW_FALSE; - if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) - { - if (!_glfwInitOSMesa()) - return GLFW_FALSE; - if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) - return GLFW_FALSE; - } - } - - if (wndconfig->title) - window->wl.title = strdup(wndconfig->title); - - if (wndconfig->visible) - { - if (!createShellSurface(window)) - return GLFW_FALSE; - - window->wl.visible = GLFW_TRUE; - } - else - { - window->wl.shellSurface = NULL; - window->wl.visible = GLFW_FALSE; - } - - window->wl.currentCursor = NULL; - - window->wl.monitors = calloc(1, sizeof(_GLFWmonitor*)); - window->wl.monitorsCount = 0; - window->wl.monitorsSize = 1; - - return GLFW_TRUE; -} - -void _glfwPlatformDestroyWindow(_GLFWwindow* window) -{ - if (window == _glfw.wl.pointerFocus) - { - _glfw.wl.pointerFocus = NULL; - _glfwInputCursorEnter(window, GLFW_FALSE); - } - if (window == _glfw.wl.keyboardFocus) - { - _glfw.wl.keyboardFocus = NULL; - _glfwInputWindowFocus(window, GLFW_FALSE); - } - - if (window->context.destroy) - window->context.destroy(window); - - if (window->wl.native) - wl_egl_window_destroy(window->wl.native); - - if (window->wl.shellSurface) - wl_shell_surface_destroy(window->wl.shellSurface); - - if (window->wl.surface) - wl_surface_destroy(window->wl.surface); - - free(window->wl.title); - free(window->wl.monitors); -} - -void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) -{ - if (window->wl.title) - free(window->wl.title); - window->wl.title = strdup(title); - if (window->wl.shellSurface) - wl_shell_surface_set_title(window->wl.shellSurface, title); -} - -void _glfwPlatformSetWindowIcon(_GLFWwindow* window, - int count, const GLFWimage* images) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Setting window icon not supported"); -} - -void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) -{ - // A Wayland client is not aware of its position, so just warn and leave it - // as (0, 0) - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position retrieval not supported"); -} - -void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) -{ - // A Wayland client can not set its position, so just warn - - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window position setting not supported"); -} - -void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) -{ - if (width) - *width = window->wl.width; - if (height) - *height = window->wl.height; -} - -void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) -{ - int scaledWidth = width * window->wl.scale; - int scaledHeight = height * window->wl.scale; - window->wl.width = width; - window->wl.height = height; - wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0); - if (!window->wl.transparent) - setOpaqueRegion(window); - _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); -} - -void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, - int minwidth, int minheight, - int maxwidth, int maxheight) -{ - // TODO: find out how to trigger a resize. - // The actual limits are checked in the wl_shell_surface::configure handler. -} - -void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) -{ - // TODO: find out how to trigger a resize. - // The actual limits are checked in the wl_shell_surface::configure handler. -} - -void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) -{ - _glfwPlatformGetWindowSize(window, width, height); - *width *= window->wl.scale; - *height *= window->wl.scale; -} - -void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, - int* left, int* top, - int* right, int* bottom) -{ - // TODO: will need a proper implementation once decorations are - // implemented, but for now just leave everything as 0. -} - -void _glfwPlatformIconifyWindow(_GLFWwindow* window) -{ - // TODO: move to xdg_shell instead of wl_shell. - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Iconify window not supported"); -} - -void _glfwPlatformRestoreWindow(_GLFWwindow* window) -{ - // TODO: also do the same for iconified. - if (window->monitor || window->wl.maximized) - { - if (window->wl.shellSurface) - wl_shell_surface_set_toplevel(window->wl.shellSurface); - - window->wl.maximized = GLFW_FALSE; - } -} - -void _glfwPlatformMaximizeWindow(_GLFWwindow* window) -{ - if (!window->monitor && !window->wl.maximized) - { - if (window->wl.shellSurface) - { - // Let the compositor select the best output. - wl_shell_surface_set_maximized(window->wl.shellSurface, NULL); - } - window->wl.maximized = GLFW_TRUE; - } -} - -void _glfwPlatformShowWindow(_GLFWwindow* window) -{ - if (!window->monitor) - { - if (!window->wl.shellSurface) - createShellSurface(window); - window->wl.visible = GLFW_TRUE; - } -} - -void _glfwPlatformHideWindow(_GLFWwindow* window) -{ - if (!window->monitor) - { - if (window->wl.shellSurface) - wl_shell_surface_destroy(window->wl.shellSurface); - window->wl.visible = GLFW_FALSE; - } -} - -void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window attention request not implemented yet"); -} - -void _glfwPlatformFocusWindow(_GLFWwindow* window) -{ - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Focusing a window requires user interaction"); -} - -void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, - _GLFWmonitor* monitor, - int xpos, int ypos, - int width, int height, - int refreshRate) -{ - if (monitor) - { - wl_shell_surface_set_fullscreen( - window->wl.shellSurface, - WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - refreshRate * 1000, // Convert Hz to mHz. - monitor->wl.output); - } - else - { - wl_shell_surface_set_toplevel(window->wl.shellSurface); - } - _glfwInputWindowMonitorChange(window, monitor); -} - -int _glfwPlatformWindowFocused(_GLFWwindow* window) -{ - return _glfw.wl.keyboardFocus == window; -} - -int _glfwPlatformWindowIconified(_GLFWwindow* window) -{ - // TODO: move to xdg_shell, wl_shell doesn't have any iconified concept. - return GLFW_FALSE; -} - -int _glfwPlatformWindowVisible(_GLFWwindow* window) -{ - return window->wl.visible; -} - -int _glfwPlatformWindowMaximized(_GLFWwindow* window) -{ - return window->wl.maximized; -} - -int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) -{ - return window->wl.transparent; -} - -void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window attribute setting not implemented yet"); -} - -void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window attribute setting not implemented yet"); -} - -void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Window attribute setting not implemented yet"); -} - -void _glfwPlatformPollEvents(void) -{ - handleEvents(0); -} - -void _glfwPlatformWaitEvents(void) -{ - handleEvents(-1); -} - -void _glfwPlatformWaitEventsTimeout(double timeout) -{ - handleEvents((int) (timeout * 1e3)); -} - -void _glfwPlatformPostEmptyEvent(void) -{ - wl_display_sync(_glfw.wl.display); -} - -void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) -{ - if (xpos) - *xpos = window->wl.cursorPosX; - if (ypos) - *ypos = window->wl.cursorPosY; -} - -static GLFWbool isPointerLocked(_GLFWwindow* window); - -void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) -{ - if (isPointerLocked(window)) - { - zwp_locked_pointer_v1_set_cursor_position_hint( - window->wl.pointerLock.lockedPointer, - wl_fixed_from_double(x), wl_fixed_from_double(y)); - wl_surface_commit(window->wl.surface); - } -} - -void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) -{ - _glfwPlatformSetCursor(window, window->wl.currentCursor); -} - -const char* _glfwPlatformGetScancodeName(int scancode) -{ - // TODO - return NULL; -} - -int _glfwPlatformGetKeyScancode(int key) -{ - return _glfw.wl.scancodes[key]; -} - -int _glfwPlatformCreateCursor(_GLFWcursor* cursor, - const GLFWimage* image, - int xhot, int yhot) -{ - struct wl_shm_pool* pool; - int stride = image->width * 4; - int length = image->width * image->height * 4; - void* data; - int fd, i; - - fd = createAnonymousFile(length); - if (fd < 0) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Creating a buffer file for %d B failed: %m", - length); - return GLFW_FALSE; - } - - data = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); - if (data == MAP_FAILED) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Cursor mmap failed: %m"); - close(fd); - return GLFW_FALSE; - } - - pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); - - close(fd); - unsigned char* source = (unsigned char*) image->pixels; - unsigned char* target = data; - for (i = 0; i < image->width * image->height; i++, source += 4) - { - unsigned int alpha = source[3]; - - *target++ = (unsigned char) ((source[2] * alpha) / 255); - *target++ = (unsigned char) ((source[1] * alpha) / 255); - *target++ = (unsigned char) ((source[0] * alpha) / 255); - *target++ = (unsigned char) alpha; - } - - cursor->wl.buffer = - wl_shm_pool_create_buffer(pool, 0, - image->width, - image->height, - stride, WL_SHM_FORMAT_ARGB8888); - munmap(data, length); - wl_shm_pool_destroy(pool); - - cursor->wl.width = image->width; - cursor->wl.height = image->height; - cursor->wl.xhot = xhot; - cursor->wl.yhot = yhot; - return GLFW_TRUE; -} - -int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) -{ - struct wl_cursor* standardCursor; - - standardCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, - translateCursorShape(shape)); - if (!standardCursor) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Standard cursor \"%s\" not found", - translateCursorShape(shape)); - return GLFW_FALSE; - } - - cursor->wl.image = standardCursor->images[0]; - return GLFW_TRUE; -} - -void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) -{ - // If it's a standard cursor we don't need to do anything here - if (cursor->wl.image) - return; - - if (cursor->wl.buffer) - wl_buffer_destroy(cursor->wl.buffer); -} - -static void handleRelativeMotion(void* data, - struct zwp_relative_pointer_v1* pointer, - uint32_t timeHi, - uint32_t timeLo, - wl_fixed_t dx, - wl_fixed_t dy, - wl_fixed_t dxUnaccel, - wl_fixed_t dyUnaccel) -{ - _GLFWwindow* window = data; - - if (window->cursorMode != GLFW_CURSOR_DISABLED) - return; - - _glfwInputCursorPos(window, - window->virtualCursorPosX + wl_fixed_to_double(dxUnaccel), - window->virtualCursorPosY + wl_fixed_to_double(dyUnaccel)); -} - -static const struct zwp_relative_pointer_v1_listener relativePointerListener = { - handleRelativeMotion -}; - -static void handleLocked(void* data, - struct zwp_locked_pointer_v1* lockedPointer) -{ -} - -static void unlockPointer(_GLFWwindow* window) -{ - struct zwp_relative_pointer_v1* relativePointer = - window->wl.pointerLock.relativePointer; - struct zwp_locked_pointer_v1* lockedPointer = - window->wl.pointerLock.lockedPointer; - - zwp_relative_pointer_v1_destroy(relativePointer); - zwp_locked_pointer_v1_destroy(lockedPointer); - - window->wl.pointerLock.relativePointer = NULL; - window->wl.pointerLock.lockedPointer = NULL; -} - -static void lockPointer(_GLFWwindow* window); - -static void handleUnlocked(void* data, - struct zwp_locked_pointer_v1* lockedPointer) -{ -} - -static const struct zwp_locked_pointer_v1_listener lockedPointerListener = { - handleLocked, - handleUnlocked -}; - -static void lockPointer(_GLFWwindow* window) -{ - struct zwp_relative_pointer_v1* relativePointer; - struct zwp_locked_pointer_v1* lockedPointer; - - if (!_glfw.wl.relativePointerManager) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: no relative pointer manager"); - return; - } - - relativePointer = - zwp_relative_pointer_manager_v1_get_relative_pointer( - _glfw.wl.relativePointerManager, - _glfw.wl.pointer); - zwp_relative_pointer_v1_add_listener(relativePointer, - &relativePointerListener, - window); - - lockedPointer = - zwp_pointer_constraints_v1_lock_pointer( - _glfw.wl.pointerConstraints, - window->wl.surface, - _glfw.wl.pointer, - NULL, - ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT); - zwp_locked_pointer_v1_add_listener(lockedPointer, - &lockedPointerListener, - window); - - window->wl.pointerLock.relativePointer = relativePointer; - window->wl.pointerLock.lockedPointer = lockedPointer; - - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - NULL, 0, 0); -} - -static GLFWbool isPointerLocked(_GLFWwindow* window) -{ - return window->wl.pointerLock.lockedPointer != NULL; -} - -void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) -{ - struct wl_buffer* buffer; - struct wl_cursor* defaultCursor; - struct wl_cursor_image* image; - struct wl_surface* surface = _glfw.wl.cursorSurface; - - if (!_glfw.wl.pointer) - return; - - window->wl.currentCursor = cursor; - - // If we're not in the correct window just save the cursor - // the next time the pointer enters the window the cursor will change - if (window != _glfw.wl.pointerFocus) - return; - - // Unlock possible pointer lock if no longer disabled. - if (window->cursorMode != GLFW_CURSOR_DISABLED && isPointerLocked(window)) - unlockPointer(window); - - if (window->cursorMode == GLFW_CURSOR_NORMAL) - { - if (cursor) - image = cursor->wl.image; - else - { - defaultCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, - "left_ptr"); - if (!defaultCursor) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Standard cursor not found"); - return; - } - image = defaultCursor->images[0]; - } - - if (image) - { - buffer = wl_cursor_image_get_buffer(image); - if (!buffer) - return; - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - image->hotspot_x, - image->hotspot_y); - wl_surface_attach(surface, buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - image->width, image->height); - wl_surface_commit(surface); - } - else - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - surface, - cursor->wl.xhot, - cursor->wl.yhot); - wl_surface_attach(surface, cursor->wl.buffer, 0, 0); - wl_surface_damage(surface, 0, 0, - cursor->wl.width, cursor->wl.height); - wl_surface_commit(surface); - } - } - else if (window->cursorMode == GLFW_CURSOR_DISABLED) - { - if (!isPointerLocked(window)) - lockPointer(window); - } - else if (window->cursorMode == GLFW_CURSOR_HIDDEN) - { - wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerSerial, - NULL, 0, 0); - } -} - -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Clipboard setting not implemented yet"); -} - -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) -{ - // TODO - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Clipboard getting not implemented yet"); - return NULL; -} - -void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) -{ - if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_wayland_surface) - return; - - extensions[0] = "VK_KHR_surface"; - extensions[1] = "VK_KHR_wayland_surface"; -} - -int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, - VkPhysicalDevice device, - uint32_t queuefamily) -{ - PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR - vkGetPhysicalDeviceWaylandPresentationSupportKHR = - (PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR) - vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR"); - if (!vkGetPhysicalDeviceWaylandPresentationSupportKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); - return VK_NULL_HANDLE; - } - - return vkGetPhysicalDeviceWaylandPresentationSupportKHR(device, - queuefamily, - _glfw.wl.display); -} - -VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, - _GLFWwindow* window, - const VkAllocationCallbacks* allocator, - VkSurfaceKHR* surface) -{ - VkResult err; - VkWaylandSurfaceCreateInfoKHR sci; - PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR; - - vkCreateWaylandSurfaceKHR = (PFN_vkCreateWaylandSurfaceKHR) - vkGetInstanceProcAddr(instance, "vkCreateWaylandSurfaceKHR"); - if (!vkCreateWaylandSurfaceKHR) - { - _glfwInputError(GLFW_API_UNAVAILABLE, - "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); - return VK_ERROR_EXTENSION_NOT_PRESENT; - } - - memset(&sci, 0, sizeof(sci)); - sci.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR; - sci.display = _glfw.wl.display; - sci.surface = window->wl.surface; - - err = vkCreateWaylandSurfaceKHR(instance, &sci, allocator, surface); - if (err) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "Wayland: Failed to create Vulkan surface: %s", - _glfwGetVulkanResultString(err)); - } - - return err; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI struct wl_display* glfwGetWaylandDisplay(void) -{ - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfw.wl.display; -} - -GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* handle) -{ - _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return window->wl.surface; -} - diff --git a/external/GLFW/src/x11_init.c b/external/GLFW/src/x11_init.c deleted file mode 100644 index 526d9ca..0000000 --- a/external/GLFW/src/x11_init.c +++ /dev/null @@ -1,1005 +0,0 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include - -#include -#include -#include -#include -#include - - -// Translate an X11 key code to a GLFW key code. -// -static int translateKeyCode(int scancode) -{ - int keySym; - - // Valid key code range is [8,255], according to the Xlib manual - if (scancode < 8 || scancode > 255) - return GLFW_KEY_UNKNOWN; - - if (_glfw.x11.xkb.available) - { - // Try secondary keysym, for numeric keypad keys - // Note: This way we always force "NumLock = ON", which is intentional - // since the returned key code should correspond to a physical - // location. - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 1); - switch (keySym) - { - case XK_KP_0: return GLFW_KEY_KP_0; - case XK_KP_1: return GLFW_KEY_KP_1; - case XK_KP_2: return GLFW_KEY_KP_2; - case XK_KP_3: return GLFW_KEY_KP_3; - case XK_KP_4: return GLFW_KEY_KP_4; - case XK_KP_5: return GLFW_KEY_KP_5; - case XK_KP_6: return GLFW_KEY_KP_6; - case XK_KP_7: return GLFW_KEY_KP_7; - case XK_KP_8: return GLFW_KEY_KP_8; - case XK_KP_9: return GLFW_KEY_KP_9; - case XK_KP_Separator: - case XK_KP_Decimal: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - default: break; - } - - // Now try primary keysym for function keys (non-printable keys) - // These should not depend on the current keyboard layout - keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); - } - else - { - int dummy; - KeySym* keySyms; - - keySyms = XGetKeyboardMapping(_glfw.x11.display, scancode, 1, &dummy); - keySym = keySyms[0]; - XFree(keySyms); - } - - switch (keySym) - { - case XK_Escape: return GLFW_KEY_ESCAPE; - case XK_Tab: return GLFW_KEY_TAB; - case XK_Shift_L: return GLFW_KEY_LEFT_SHIFT; - case XK_Shift_R: return GLFW_KEY_RIGHT_SHIFT; - case XK_Control_L: return GLFW_KEY_LEFT_CONTROL; - case XK_Control_R: return GLFW_KEY_RIGHT_CONTROL; - case XK_Meta_L: - case XK_Alt_L: return GLFW_KEY_LEFT_ALT; - case XK_Mode_switch: // Mapped to Alt_R on many keyboards - case XK_ISO_Level3_Shift: // AltGr on at least some machines - case XK_Meta_R: - case XK_Alt_R: return GLFW_KEY_RIGHT_ALT; - case XK_Super_L: return GLFW_KEY_LEFT_SUPER; - case XK_Super_R: return GLFW_KEY_RIGHT_SUPER; - case XK_Menu: return GLFW_KEY_MENU; - case XK_Num_Lock: return GLFW_KEY_NUM_LOCK; - case XK_Caps_Lock: return GLFW_KEY_CAPS_LOCK; - case XK_Print: return GLFW_KEY_PRINT_SCREEN; - case XK_Scroll_Lock: return GLFW_KEY_SCROLL_LOCK; - case XK_Pause: return GLFW_KEY_PAUSE; - case XK_Delete: return GLFW_KEY_DELETE; - case XK_BackSpace: return GLFW_KEY_BACKSPACE; - case XK_Return: return GLFW_KEY_ENTER; - case XK_Home: return GLFW_KEY_HOME; - case XK_End: return GLFW_KEY_END; - case XK_Page_Up: return GLFW_KEY_PAGE_UP; - case XK_Page_Down: return GLFW_KEY_PAGE_DOWN; - case XK_Insert: return GLFW_KEY_INSERT; - case XK_Left: return GLFW_KEY_LEFT; - case XK_Right: return GLFW_KEY_RIGHT; - case XK_Down: return GLFW_KEY_DOWN; - case XK_Up: return GLFW_KEY_UP; - case XK_F1: return GLFW_KEY_F1; - case XK_F2: return GLFW_KEY_F2; - case XK_F3: return GLFW_KEY_F3; - case XK_F4: return GLFW_KEY_F4; - case XK_F5: return GLFW_KEY_F5; - case XK_F6: return GLFW_KEY_F6; - case XK_F7: return GLFW_KEY_F7; - case XK_F8: return GLFW_KEY_F8; - case XK_F9: return GLFW_KEY_F9; - case XK_F10: return GLFW_KEY_F10; - case XK_F11: return GLFW_KEY_F11; - case XK_F12: return GLFW_KEY_F12; - case XK_F13: return GLFW_KEY_F13; - case XK_F14: return GLFW_KEY_F14; - case XK_F15: return GLFW_KEY_F15; - case XK_F16: return GLFW_KEY_F16; - case XK_F17: return GLFW_KEY_F17; - case XK_F18: return GLFW_KEY_F18; - case XK_F19: return GLFW_KEY_F19; - case XK_F20: return GLFW_KEY_F20; - case XK_F21: return GLFW_KEY_F21; - case XK_F22: return GLFW_KEY_F22; - case XK_F23: return GLFW_KEY_F23; - case XK_F24: return GLFW_KEY_F24; - case XK_F25: return GLFW_KEY_F25; - - // Numeric keypad - case XK_KP_Divide: return GLFW_KEY_KP_DIVIDE; - case XK_KP_Multiply: return GLFW_KEY_KP_MULTIPLY; - case XK_KP_Subtract: return GLFW_KEY_KP_SUBTRACT; - case XK_KP_Add: return GLFW_KEY_KP_ADD; - - // These should have been detected in secondary keysym test above! - case XK_KP_Insert: return GLFW_KEY_KP_0; - case XK_KP_End: return GLFW_KEY_KP_1; - case XK_KP_Down: return GLFW_KEY_KP_2; - case XK_KP_Page_Down: return GLFW_KEY_KP_3; - case XK_KP_Left: return GLFW_KEY_KP_4; - case XK_KP_Right: return GLFW_KEY_KP_6; - case XK_KP_Home: return GLFW_KEY_KP_7; - case XK_KP_Up: return GLFW_KEY_KP_8; - case XK_KP_Page_Up: return GLFW_KEY_KP_9; - case XK_KP_Delete: return GLFW_KEY_KP_DECIMAL; - case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; - case XK_KP_Enter: return GLFW_KEY_KP_ENTER; - - // Last resort: Check for printable keys (should not happen if the XKB - // extension is available). This will give a layout dependent mapping - // (which is wrong, and we may miss some keys, especially on non-US - // keyboards), but it's better than nothing... - case XK_a: return GLFW_KEY_A; - case XK_b: return GLFW_KEY_B; - case XK_c: return GLFW_KEY_C; - case XK_d: return GLFW_KEY_D; - case XK_e: return GLFW_KEY_E; - case XK_f: return GLFW_KEY_F; - case XK_g: return GLFW_KEY_G; - case XK_h: return GLFW_KEY_H; - case XK_i: return GLFW_KEY_I; - case XK_j: return GLFW_KEY_J; - case XK_k: return GLFW_KEY_K; - case XK_l: return GLFW_KEY_L; - case XK_m: return GLFW_KEY_M; - case XK_n: return GLFW_KEY_N; - case XK_o: return GLFW_KEY_O; - case XK_p: return GLFW_KEY_P; - case XK_q: return GLFW_KEY_Q; - case XK_r: return GLFW_KEY_R; - case XK_s: return GLFW_KEY_S; - case XK_t: return GLFW_KEY_T; - case XK_u: return GLFW_KEY_U; - case XK_v: return GLFW_KEY_V; - case XK_w: return GLFW_KEY_W; - case XK_x: return GLFW_KEY_X; - case XK_y: return GLFW_KEY_Y; - case XK_z: return GLFW_KEY_Z; - case XK_1: return GLFW_KEY_1; - case XK_2: return GLFW_KEY_2; - case XK_3: return GLFW_KEY_3; - case XK_4: return GLFW_KEY_4; - case XK_5: return GLFW_KEY_5; - case XK_6: return GLFW_KEY_6; - case XK_7: return GLFW_KEY_7; - case XK_8: return GLFW_KEY_8; - case XK_9: return GLFW_KEY_9; - case XK_0: return GLFW_KEY_0; - case XK_space: return GLFW_KEY_SPACE; - case XK_minus: return GLFW_KEY_MINUS; - case XK_equal: return GLFW_KEY_EQUAL; - case XK_bracketleft: return GLFW_KEY_LEFT_BRACKET; - case XK_bracketright: return GLFW_KEY_RIGHT_BRACKET; - case XK_backslash: return GLFW_KEY_BACKSLASH; - case XK_semicolon: return GLFW_KEY_SEMICOLON; - case XK_apostrophe: return GLFW_KEY_APOSTROPHE; - case XK_grave: return GLFW_KEY_GRAVE_ACCENT; - case XK_comma: return GLFW_KEY_COMMA; - case XK_period: return GLFW_KEY_PERIOD; - case XK_slash: return GLFW_KEY_SLASH; - case XK_less: return GLFW_KEY_WORLD_1; // At least in some layouts... - default: break; - } - - // No matching translation was found - return GLFW_KEY_UNKNOWN; -} - -// Create key code translation tables -// -static void createKeyTables(void) -{ - int scancode, key; - - memset(_glfw.x11.keycodes, -1, sizeof(_glfw.x11.keycodes)); - memset(_glfw.x11.scancodes, -1, sizeof(_glfw.x11.scancodes)); - - if (_glfw.x11.xkb.available) - { - // Use XKB to determine physical key locations independently of the - // current keyboard layout - - char name[XkbKeyNameLength + 1]; - XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); - XkbGetNames(_glfw.x11.display, XkbKeyNamesMask, desc); - - // Find the X11 key code -> GLFW key code mapping - for (scancode = desc->min_key_code; scancode <= desc->max_key_code; scancode++) - { - memcpy(name, desc->names->keys[scancode].name, XkbKeyNameLength); - name[XkbKeyNameLength] = '\0'; - - // Map the key name to a GLFW key code. Note: We only map printable - // keys here, and we use the US keyboard layout. The rest of the - // keys (function keys) are mapped using traditional KeySym - // translations. - if (strcmp(name, "TLDE") == 0) key = GLFW_KEY_GRAVE_ACCENT; - else if (strcmp(name, "AE01") == 0) key = GLFW_KEY_1; - else if (strcmp(name, "AE02") == 0) key = GLFW_KEY_2; - else if (strcmp(name, "AE03") == 0) key = GLFW_KEY_3; - else if (strcmp(name, "AE04") == 0) key = GLFW_KEY_4; - else if (strcmp(name, "AE05") == 0) key = GLFW_KEY_5; - else if (strcmp(name, "AE06") == 0) key = GLFW_KEY_6; - else if (strcmp(name, "AE07") == 0) key = GLFW_KEY_7; - else if (strcmp(name, "AE08") == 0) key = GLFW_KEY_8; - else if (strcmp(name, "AE09") == 0) key = GLFW_KEY_9; - else if (strcmp(name, "AE10") == 0) key = GLFW_KEY_0; - else if (strcmp(name, "AE11") == 0) key = GLFW_KEY_MINUS; - else if (strcmp(name, "AE12") == 0) key = GLFW_KEY_EQUAL; - else if (strcmp(name, "AD01") == 0) key = GLFW_KEY_Q; - else if (strcmp(name, "AD02") == 0) key = GLFW_KEY_W; - else if (strcmp(name, "AD03") == 0) key = GLFW_KEY_E; - else if (strcmp(name, "AD04") == 0) key = GLFW_KEY_R; - else if (strcmp(name, "AD05") == 0) key = GLFW_KEY_T; - else if (strcmp(name, "AD06") == 0) key = GLFW_KEY_Y; - else if (strcmp(name, "AD07") == 0) key = GLFW_KEY_U; - else if (strcmp(name, "AD08") == 0) key = GLFW_KEY_I; - else if (strcmp(name, "AD09") == 0) key = GLFW_KEY_O; - else if (strcmp(name, "AD10") == 0) key = GLFW_KEY_P; - else if (strcmp(name, "AD11") == 0) key = GLFW_KEY_LEFT_BRACKET; - else if (strcmp(name, "AD12") == 0) key = GLFW_KEY_RIGHT_BRACKET; - else if (strcmp(name, "AC01") == 0) key = GLFW_KEY_A; - else if (strcmp(name, "AC02") == 0) key = GLFW_KEY_S; - else if (strcmp(name, "AC03") == 0) key = GLFW_KEY_D; - else if (strcmp(name, "AC04") == 0) key = GLFW_KEY_F; - else if (strcmp(name, "AC05") == 0) key = GLFW_KEY_G; - else if (strcmp(name, "AC06") == 0) key = GLFW_KEY_H; - else if (strcmp(name, "AC07") == 0) key = GLFW_KEY_J; - else if (strcmp(name, "AC08") == 0) key = GLFW_KEY_K; - else if (strcmp(name, "AC09") == 0) key = GLFW_KEY_L; - else if (strcmp(name, "AC10") == 0) key = GLFW_KEY_SEMICOLON; - else if (strcmp(name, "AC11") == 0) key = GLFW_KEY_APOSTROPHE; - else if (strcmp(name, "AB01") == 0) key = GLFW_KEY_Z; - else if (strcmp(name, "AB02") == 0) key = GLFW_KEY_X; - else if (strcmp(name, "AB03") == 0) key = GLFW_KEY_C; - else if (strcmp(name, "AB04") == 0) key = GLFW_KEY_V; - else if (strcmp(name, "AB05") == 0) key = GLFW_KEY_B; - else if (strcmp(name, "AB06") == 0) key = GLFW_KEY_N; - else if (strcmp(name, "AB07") == 0) key = GLFW_KEY_M; - else if (strcmp(name, "AB08") == 0) key = GLFW_KEY_COMMA; - else if (strcmp(name, "AB09") == 0) key = GLFW_KEY_PERIOD; - else if (strcmp(name, "AB10") == 0) key = GLFW_KEY_SLASH; - else if (strcmp(name, "BKSL") == 0) key = GLFW_KEY_BACKSLASH; - else if (strcmp(name, "LSGT") == 0) key = GLFW_KEY_WORLD_1; - else key = GLFW_KEY_UNKNOWN; - - if ((scancode >= 0) && (scancode < 256)) - _glfw.x11.keycodes[scancode] = key; - } - - XkbFreeNames(desc, XkbKeyNamesMask, True); - XkbFreeKeyboard(desc, 0, True); - } - - for (scancode = 0; scancode < 256; scancode++) - { - // Translate the un-translated key codes using traditional X11 KeySym - // lookups - if (_glfw.x11.keycodes[scancode] < 0) - _glfw.x11.keycodes[scancode] = translateKeyCode(scancode); - - // Store the reverse translation for faster key name lookup - if (_glfw.x11.keycodes[scancode] > 0) - _glfw.x11.scancodes[_glfw.x11.keycodes[scancode]] = scancode; - } -} - -// Check whether the IM has a usable style -// -static GLFWbool hasUsableInputMethodStyle(void) -{ - unsigned int i; - GLFWbool found = GLFW_FALSE; - XIMStyles* styles = NULL; - - if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) - return GLFW_FALSE; - - for (i = 0; i < styles->count_styles; i++) - { - if (styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) - { - found = GLFW_TRUE; - break; - } - } - - XFree(styles); - return found; -} - -// Check whether the specified atom is supported -// -static Atom getSupportedAtom(Atom* supportedAtoms, - unsigned long atomCount, - const char* atomName) -{ - unsigned long i; - const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); - - for (i = 0; i < atomCount; i++) - { - if (supportedAtoms[i] == atom) - return atom; - } - - return None; -} - -// Check whether the running window manager is EWMH-compliant -// -static void detectEWMH(void) -{ - Window* windowFromRoot = NULL; - Window* windowFromChild = NULL; - - // First we need a couple of atoms - const Atom supportingWmCheck = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", False); - const Atom wmSupported = - XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", False); - - // Then we look for the _NET_SUPPORTING_WM_CHECK property of the root window - if (!_glfwGetWindowPropertyX11(_glfw.x11.root, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromRoot)) - { - return; - } - - _glfwGrabErrorHandlerX11(); - - // It should be the ID of a child window (of the root) - // Then we look for the same property on the child window - if (!_glfwGetWindowPropertyX11(*windowFromRoot, - supportingWmCheck, - XA_WINDOW, - (unsigned char**) &windowFromChild)) - { - XFree(windowFromRoot); - return; - } - - _glfwReleaseErrorHandlerX11(); - - // It should be the ID of that same child window - if (*windowFromRoot != *windowFromChild) - { - XFree(windowFromRoot); - XFree(windowFromChild); - return; - } - - XFree(windowFromRoot); - XFree(windowFromChild); - - // We are now fairly sure that an EWMH-compliant window manager is running - - Atom* supportedAtoms; - unsigned long atomCount; - - // Now we need to check the _NET_SUPPORTED property of the root window - // It should be a list of supported WM protocol and state atoms - atomCount = _glfwGetWindowPropertyX11(_glfw.x11.root, - wmSupported, - XA_ATOM, - (unsigned char**) &supportedAtoms); - - // See which of the atoms we support that are supported by the WM - _glfw.x11.NET_WM_STATE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE"); - _glfw.x11.NET_WM_STATE_ABOVE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE"); - _glfw.x11.NET_WM_STATE_FULLSCREEN = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN"); - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_VERT"); - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_HORZ"); - _glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_STATE_DEMANDS_ATTENTION"); - _glfw.x11.NET_WM_FULLSCREEN_MONITORS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_FULLSCREEN_MONITORS"); - _glfw.x11.NET_WM_WINDOW_TYPE = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE"); - _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL = - getSupportedAtom(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE_NORMAL"); - _glfw.x11.NET_ACTIVE_WINDOW = - getSupportedAtom(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW"); - _glfw.x11.NET_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_FRAME_EXTENTS"); - _glfw.x11.NET_REQUEST_FRAME_EXTENTS = - getSupportedAtom(supportedAtoms, atomCount, "_NET_REQUEST_FRAME_EXTENTS"); - - if (supportedAtoms) - XFree(supportedAtoms); -} - -// Look for and initialize supported X11 extensions -// -static GLFWbool initExtensions(void) -{ - _glfw.x11.vidmode.handle = dlopen("libXxf86vm.so.1", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.vidmode.handle) - { - _glfw.x11.vidmode.QueryExtension = (PFN_XF86VidModeQueryExtension) - dlsym(_glfw.x11.vidmode.handle, "XF86VidModeQueryExtension"); - _glfw.x11.vidmode.GetGammaRamp = (PFN_XF86VidModeGetGammaRamp) - dlsym(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRamp"); - _glfw.x11.vidmode.SetGammaRamp = (PFN_XF86VidModeSetGammaRamp) - dlsym(_glfw.x11.vidmode.handle, "XF86VidModeSetGammaRamp"); - _glfw.x11.vidmode.GetGammaRampSize = (PFN_XF86VidModeGetGammaRampSize) - dlsym(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRampSize"); - - _glfw.x11.vidmode.available = - XF86VidModeQueryExtension(_glfw.x11.display, - &_glfw.x11.vidmode.eventBase, - &_glfw.x11.vidmode.errorBase); - } - - _glfw.x11.xi.handle = dlopen("libXi.so.6", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.xi.handle) - { - _glfw.x11.xi.QueryVersion = (PFN_XIQueryVersion) - dlsym(_glfw.x11.xi.handle, "XIQueryVersion"); - _glfw.x11.xi.SelectEvents = (PFN_XISelectEvents) - dlsym(_glfw.x11.xi.handle, "XISelectEvents"); - - if (XQueryExtension(_glfw.x11.display, - "XInputExtension", - &_glfw.x11.xi.majorOpcode, - &_glfw.x11.xi.eventBase, - &_glfw.x11.xi.errorBase)) - { - _glfw.x11.xi.major = 2; - _glfw.x11.xi.minor = 0; - - if (XIQueryVersion(_glfw.x11.display, - &_glfw.x11.xi.major, - &_glfw.x11.xi.minor) == Success) - { - _glfw.x11.xi.available = GLFW_TRUE; - } - } - } - - _glfw.x11.randr.handle = dlopen("libXrandr.so.2", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.randr.handle) - { - _glfw.x11.randr.AllocGamma = (PFN_XRRAllocGamma) - dlsym(_glfw.x11.randr.handle, "XRRAllocGamma"); - _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) - dlsym(_glfw.x11.randr.handle, "XRRFreeGamma"); - _glfw.x11.randr.FreeCrtcInfo = (PFN_XRRFreeCrtcInfo) - dlsym(_glfw.x11.randr.handle, "XRRFreeCrtcInfo"); - _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) - dlsym(_glfw.x11.randr.handle, "XRRFreeGamma"); - _glfw.x11.randr.FreeOutputInfo = (PFN_XRRFreeOutputInfo) - dlsym(_glfw.x11.randr.handle, "XRRFreeOutputInfo"); - _glfw.x11.randr.FreeScreenResources = (PFN_XRRFreeScreenResources) - dlsym(_glfw.x11.randr.handle, "XRRFreeScreenResources"); - _glfw.x11.randr.GetCrtcGamma = (PFN_XRRGetCrtcGamma) - dlsym(_glfw.x11.randr.handle, "XRRGetCrtcGamma"); - _glfw.x11.randr.GetCrtcGammaSize = (PFN_XRRGetCrtcGammaSize) - dlsym(_glfw.x11.randr.handle, "XRRGetCrtcGammaSize"); - _glfw.x11.randr.GetCrtcInfo = (PFN_XRRGetCrtcInfo) - dlsym(_glfw.x11.randr.handle, "XRRGetCrtcInfo"); - _glfw.x11.randr.GetOutputInfo = (PFN_XRRGetOutputInfo) - dlsym(_glfw.x11.randr.handle, "XRRGetOutputInfo"); - _glfw.x11.randr.GetOutputPrimary = (PFN_XRRGetOutputPrimary) - dlsym(_glfw.x11.randr.handle, "XRRGetOutputPrimary"); - _glfw.x11.randr.GetScreenResourcesCurrent = (PFN_XRRGetScreenResourcesCurrent) - dlsym(_glfw.x11.randr.handle, "XRRGetScreenResourcesCurrent"); - _glfw.x11.randr.QueryExtension = (PFN_XRRQueryExtension) - dlsym(_glfw.x11.randr.handle, "XRRQueryExtension"); - _glfw.x11.randr.QueryVersion = (PFN_XRRQueryVersion) - dlsym(_glfw.x11.randr.handle, "XRRQueryVersion"); - _glfw.x11.randr.SelectInput = (PFN_XRRSelectInput) - dlsym(_glfw.x11.randr.handle, "XRRSelectInput"); - _glfw.x11.randr.SetCrtcConfig = (PFN_XRRSetCrtcConfig) - dlsym(_glfw.x11.randr.handle, "XRRSetCrtcConfig"); - _glfw.x11.randr.SetCrtcGamma = (PFN_XRRSetCrtcGamma) - dlsym(_glfw.x11.randr.handle, "XRRSetCrtcGamma"); - _glfw.x11.randr.UpdateConfiguration = (PFN_XRRUpdateConfiguration) - dlsym(_glfw.x11.randr.handle, "XRRUpdateConfiguration"); - - if (XRRQueryExtension(_glfw.x11.display, - &_glfw.x11.randr.eventBase, - &_glfw.x11.randr.errorBase)) - { - if (XRRQueryVersion(_glfw.x11.display, - &_glfw.x11.randr.major, - &_glfw.x11.randr.minor)) - { - // The GLFW RandR path requires at least version 1.3 - if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) - _glfw.x11.randr.available = GLFW_TRUE; - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to query RandR version"); - } - } - } - - if (_glfw.x11.randr.available) - { - XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, - _glfw.x11.root); - - if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) - { - // This is likely an older Nvidia driver with broken gamma support - // Flag it as useless and fall back to xf86vm gamma, if available - _glfw.x11.randr.gammaBroken = GLFW_TRUE; - } - - if (!sr->ncrtc) - { - // A system without CRTCs is likely a system with broken RandR - // Disable the RandR monitor path and fall back to core functions - _glfw.x11.randr.monitorBroken = GLFW_TRUE; - } - - XRRFreeScreenResources(sr); - } - - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRSelectInput(_glfw.x11.display, _glfw.x11.root, - RROutputChangeNotifyMask); - } - - _glfw.x11.xcursor.handle = dlopen("libXcursor.so.1", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.xcursor.handle) - { - _glfw.x11.xcursor.ImageCreate = (PFN_XcursorImageCreate) - dlsym(_glfw.x11.xcursor.handle, "XcursorImageCreate"); - _glfw.x11.xcursor.ImageDestroy = (PFN_XcursorImageDestroy) - dlsym(_glfw.x11.xcursor.handle, "XcursorImageDestroy"); - _glfw.x11.xcursor.ImageLoadCursor = (PFN_XcursorImageLoadCursor) - dlsym(_glfw.x11.xcursor.handle, "XcursorImageLoadCursor"); - } - - _glfw.x11.xinerama.handle = dlopen("libXinerama.so.1", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.xinerama.handle) - { - _glfw.x11.xinerama.IsActive = (PFN_XineramaIsActive) - dlsym(_glfw.x11.xinerama.handle, "XineramaIsActive"); - _glfw.x11.xinerama.QueryExtension = (PFN_XineramaQueryExtension) - dlsym(_glfw.x11.xinerama.handle, "XineramaQueryExtension"); - _glfw.x11.xinerama.QueryScreens = (PFN_XineramaQueryScreens) - dlsym(_glfw.x11.xinerama.handle, "XineramaQueryScreens"); - - if (XineramaQueryExtension(_glfw.x11.display, - &_glfw.x11.xinerama.major, - &_glfw.x11.xinerama.minor)) - { - if (XineramaIsActive(_glfw.x11.display)) - _glfw.x11.xinerama.available = GLFW_TRUE; - } - } - - _glfw.x11.xkb.major = 1; - _glfw.x11.xkb.minor = 0; - _glfw.x11.xkb.available = - XkbQueryExtension(_glfw.x11.display, - &_glfw.x11.xkb.majorOpcode, - &_glfw.x11.xkb.eventBase, - &_glfw.x11.xkb.errorBase, - &_glfw.x11.xkb.major, - &_glfw.x11.xkb.minor); - - if (_glfw.x11.xkb.available) - { - Bool supported; - - if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) - { - if (supported) - _glfw.x11.xkb.detectable = GLFW_TRUE; - } - } - - _glfw.x11.x11xcb.handle = dlopen("libX11-xcb.so.1", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.x11xcb.handle) - { - _glfw.x11.x11xcb.GetXCBConnection = (PFN_XGetXCBConnection) - dlsym(_glfw.x11.x11xcb.handle, "XGetXCBConnection"); - } - - _glfw.x11.xrender.handle = dlopen("libXrender.so.1", RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.x11.xrender.handle) - { - _glfw.x11.xrender.QueryExtension = (PFN_XRenderQueryExtension) - dlsym(_glfw.x11.xrender.handle, "XRenderQueryExtension"); - _glfw.x11.xrender.QueryVersion = (PFN_XRenderQueryVersion) - dlsym(_glfw.x11.xrender.handle, "XRenderQueryVersion"); - _glfw.x11.xrender.FindVisualFormat = (PFN_XRenderFindVisualFormat) - dlsym(_glfw.x11.xrender.handle, "XRenderFindVisualFormat"); - - if (XRenderQueryExtension(_glfw.x11.display, - &_glfw.x11.xrender.errorBase, - &_glfw.x11.xrender.eventBase)) - { - if (XRenderQueryVersion(_glfw.x11.display, - &_glfw.x11.xrender.major, - &_glfw.x11.xrender.minor)) - { - _glfw.x11.xrender.available = GLFW_TRUE; - } - } - } - - // Update the key code LUT - // FIXME: We should listen to XkbMapNotify events to track changes to - // the keyboard mapping. - createKeyTables(); - - // Detect whether an EWMH-conformant window manager is running - detectEWMH(); - - // String format atoms - _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); - _glfw.x11.UTF8_STRING = XInternAtom(_glfw.x11.display, "UTF8_STRING", False); - _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); - - // Custom selection property atom - _glfw.x11.GLFW_SELECTION = - XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); - - // ICCCM standard clipboard atoms - _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); - _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); - _glfw.x11.PRIMARY = XInternAtom(_glfw.x11.display, "PRIMARY", False); - _glfw.x11.INCR = XInternAtom(_glfw.x11.display, "INCR", False); - _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); - - // Clipboard manager atoms - _glfw.x11.CLIPBOARD_MANAGER = - XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); - _glfw.x11.SAVE_TARGETS = - XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); - - // Xdnd (drag and drop) atoms - _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", False); - _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", False); - _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", False); - _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", False); - _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", False); - _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", False); - _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", False); - _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", False); - _glfw.x11.XdndTypeList = XInternAtom(_glfw.x11.display, "XdndTypeList", False); - _glfw.x11.text_uri_list = XInternAtom(_glfw.x11.display, "text/uri-list", False); - - // ICCCM, EWMH and Motif window property atoms - // These can be set safely even without WM support - // The EWMH atoms that require WM support are handled in detectEWMH - _glfw.x11.WM_PROTOCOLS = - XInternAtom(_glfw.x11.display, "WM_PROTOCOLS", False); - _glfw.x11.WM_STATE = - XInternAtom(_glfw.x11.display, "WM_STATE", False); - _glfw.x11.WM_DELETE_WINDOW = - XInternAtom(_glfw.x11.display, "WM_DELETE_WINDOW", False); - _glfw.x11.NET_WM_ICON = - XInternAtom(_glfw.x11.display, "_NET_WM_ICON", False); - _glfw.x11.NET_WM_PING = - XInternAtom(_glfw.x11.display, "_NET_WM_PING", False); - _glfw.x11.NET_WM_PID = - XInternAtom(_glfw.x11.display, "_NET_WM_PID", False); - _glfw.x11.NET_WM_NAME = - XInternAtom(_glfw.x11.display, "_NET_WM_NAME", False); - _glfw.x11.NET_WM_ICON_NAME = - XInternAtom(_glfw.x11.display, "_NET_WM_ICON_NAME", False); - _glfw.x11.NET_WM_BYPASS_COMPOSITOR = - XInternAtom(_glfw.x11.display, "_NET_WM_BYPASS_COMPOSITOR", False); - _glfw.x11.MOTIF_WM_HINTS = - XInternAtom(_glfw.x11.display, "_MOTIF_WM_HINTS", False); - - return GLFW_TRUE; -} - -// Create a blank cursor for hidden and disabled cursor modes -// -static Cursor createHiddenCursor(void) -{ - unsigned char pixels[16 * 16 * 4] = { 0 }; - GLFWimage image = { 16, 16, pixels }; - return _glfwCreateCursorX11(&image, 0, 0); -} - -// Create a helper window for IPC -// -static Window createHelperWindow(void) -{ - XSetWindowAttributes wa; - wa.event_mask = PropertyChangeMask; - - return XCreateWindow(_glfw.x11.display, _glfw.x11.root, - 0, 0, 1, 1, 0, 0, - InputOnly, - DefaultVisual(_glfw.x11.display, _glfw.x11.screen), - CWEventMask, &wa); -} - -// X error handler -// -static int errorHandler(Display *display, XErrorEvent* event) -{ - _glfw.x11.errorCode = event->error_code; - return 0; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Sets the X error handler callback -// -void _glfwGrabErrorHandlerX11(void) -{ - _glfw.x11.errorCode = Success; - XSetErrorHandler(errorHandler); -} - -// Clears the X error handler callback -// -void _glfwReleaseErrorHandlerX11(void) -{ - // Synchronize to make sure all commands are processed - XSync(_glfw.x11.display, False); - XSetErrorHandler(NULL); -} - -// Reports the specified error, appending information about the last X error -// -void _glfwInputErrorX11(int error, const char* message) -{ - char buffer[_GLFW_MESSAGE_SIZE]; - XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, - buffer, sizeof(buffer)); - - _glfwInputError(error, "%s: %s", message, buffer); -} - -// Creates a native cursor object from the specified image and hotspot -// -Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot) -{ - int i; - Cursor cursor; - - if (!_glfw.x11.xcursor.handle) - return None; - - XcursorImage* native = XcursorImageCreate(image->width, image->height); - if (native == NULL) - return None; - - native->xhot = xhot; - native->yhot = yhot; - - unsigned char* source = (unsigned char*) image->pixels; - XcursorPixel* target = native->pixels; - - for (i = 0; i < image->width * image->height; i++, target++, source += 4) - { - unsigned int alpha = source[3]; - - *target = (alpha << 24) | - ((unsigned char) ((source[0] * alpha) / 255) << 16) | - ((unsigned char) ((source[1] * alpha) / 255) << 8) | - ((unsigned char) ((source[2] * alpha) / 255) << 0); - } - - cursor = XcursorImageLoadCursor(_glfw.x11.display, native); - XcursorImageDestroy(native); - - return cursor; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -int _glfwPlatformInit(void) -{ -#if !defined(X_HAVE_UTF8_STRING) - // HACK: If the current locale is "C" and the Xlib UTF-8 functions are - // unavailable, apply the environment's locale in the hope that it's - // both available and not "C" - // This is done because the "C" locale breaks wide character input, - // which is what we fall back on when UTF-8 support is missing - if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) - setlocale(LC_CTYPE, ""); -#endif - - XInitThreads(); - - _glfw.x11.display = XOpenDisplay(NULL); - if (!_glfw.x11.display) - { - const char* display = getenv("DISPLAY"); - if (display) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Failed to open display %s", display); - } - else - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: The DISPLAY environment variable is missing"); - } - - return GLFW_FALSE; - } - - _glfw.x11.screen = DefaultScreen(_glfw.x11.display); - _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); - _glfw.x11.context = XUniqueContext(); - - if (!initExtensions()) - return GLFW_FALSE; - - _glfw.x11.helperWindowHandle = createHelperWindow(); - _glfw.x11.hiddenCursorHandle = createHiddenCursor(); - - if (XSupportsLocale()) - { - XSetLocaleModifiers(""); - - _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); - if (_glfw.x11.im) - { - if (!hasUsableInputMethodStyle()) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - } - } - -#if defined(__linux__) - if (!_glfwInitJoysticksLinux()) - return GLFW_FALSE; -#endif - - _glfwInitTimerPOSIX(); - - _glfwPollMonitorsX11(); - return GLFW_TRUE; -} - -void _glfwPlatformTerminate(void) -{ - if (_glfw.x11.helperWindowHandle) - { - if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == - _glfw.x11.helperWindowHandle) - { - _glfwPushSelectionToManagerX11(); - } - - XDestroyWindow(_glfw.x11.display, _glfw.x11.helperWindowHandle); - _glfw.x11.helperWindowHandle = None; - } - - if (_glfw.x11.hiddenCursorHandle) - { - XFreeCursor(_glfw.x11.display, _glfw.x11.hiddenCursorHandle); - _glfw.x11.hiddenCursorHandle = (Cursor) 0; - } - - free(_glfw.x11.primarySelectionString); - free(_glfw.x11.clipboardString); - - if (_glfw.x11.im) - { - XCloseIM(_glfw.x11.im); - _glfw.x11.im = NULL; - } - - _glfwTerminateEGL(); - - if (_glfw.x11.display) - { - XCloseDisplay(_glfw.x11.display); - _glfw.x11.display = NULL; - } - - if (_glfw.x11.x11xcb.handle) - { - dlclose(_glfw.x11.x11xcb.handle); - _glfw.x11.x11xcb.handle = NULL; - } - - if (_glfw.x11.xcursor.handle) - { - dlclose(_glfw.x11.xcursor.handle); - _glfw.x11.xcursor.handle = NULL; - } - - if (_glfw.x11.randr.handle) - { - dlclose(_glfw.x11.randr.handle); - _glfw.x11.randr.handle = NULL; - } - - if (_glfw.x11.xinerama.handle) - { - dlclose(_glfw.x11.xinerama.handle); - _glfw.x11.xinerama.handle = NULL; - } - - // NOTE: This needs to be done after XCloseDisplay, as libGL registers - // cleanup callbacks that get called by it - _glfwTerminateGLX(); - -#if defined(__linux__) - _glfwTerminateJoysticksLinux(); -#endif -} - -const char* _glfwPlatformGetVersionString(void) -{ - return _GLFW_VERSION_NUMBER " X11 GLX EGL" -#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) - " clock_gettime" -#else - " gettimeofday" -#endif -#if defined(__linux__) - " evdev" -#endif -#if defined(_GLFW_BUILD_DLL) - " shared" -#endif - ; -} - diff --git a/external/GLFW/src/x11_monitor.c b/external/GLFW/src/x11_monitor.c deleted file mode 100644 index 5c0516e..0000000 --- a/external/GLFW/src/x11_monitor.c +++ /dev/null @@ -1,501 +0,0 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// 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 "internal.h" - -#include -#include -#include - - -// Check whether the display mode should be included in enumeration -// -static GLFWbool modeIsGood(const XRRModeInfo* mi) -{ - return (mi->modeFlags & RR_Interlace) == 0; -} - -// Calculates the refresh rate, in Hz, from the specified RandR mode info -// -static int calculateRefreshRate(const XRRModeInfo* mi) -{ - if (mi->hTotal && mi->vTotal) - return (int) ((double) mi->dotClock / ((double) mi->hTotal * (double) mi->vTotal)); - else - return 0; -} - -// Returns the mode info for a RandR mode XID -// -static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) -{ - int i; - - for (i = 0; i < sr->nmode; i++) - { - if (sr->modes[i].id == id) - return sr->modes + i; - } - - return NULL; -} - -// Convert RandR mode info to GLFW video mode -// -static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, - const XRRCrtcInfo* ci) -{ - GLFWvidmode mode; - - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - mode.width = mi->height; - mode.height = mi->width; - } - else - { - mode.width = mi->width; - mode.height = mi->height; - } - - mode.refreshRate = calculateRefreshRate(mi); - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode.redBits, &mode.greenBits, &mode.blueBits); - - return mode; -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW internal API ////// -////////////////////////////////////////////////////////////////////////// - -// Poll for changes in the set of connected monitors -// -void _glfwPollMonitorsX11(void) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - int i, j, disconnectedCount, screenCount = 0; - _GLFWmonitor** disconnected = NULL; - XineramaScreenInfo* screens = NULL; - XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, - _glfw.x11.root); - RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, - _glfw.x11.root); - - if (_glfw.x11.xinerama.available) - screens = XineramaQueryScreens(_glfw.x11.display, &screenCount); - - disconnectedCount = _glfw.monitorCount; - if (disconnectedCount) - { - disconnected = calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); - memcpy(disconnected, - _glfw.monitors, - _glfw.monitorCount * sizeof(_GLFWmonitor*)); - } - - for (i = 0; i < sr->noutput; i++) - { - int type, widthMM, heightMM; - XRROutputInfo* oi; - XRRCrtcInfo* ci; - _GLFWmonitor* monitor; - - oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]); - if (oi->connection != RR_Connected || oi->crtc == None) - { - XRRFreeOutputInfo(oi); - continue; - } - - for (j = 0; j < disconnectedCount; j++) - { - if (disconnected[j] && - disconnected[j]->x11.output == sr->outputs[i]) - { - disconnected[j] = NULL; - break; - } - } - - if (j < disconnectedCount) - { - XRRFreeOutputInfo(oi); - continue; - } - - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc); - if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) - { - widthMM = oi->mm_height; - heightMM = oi->mm_width; - } - else - { - widthMM = oi->mm_width; - heightMM = oi->mm_height; - } - - monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM); - monitor->x11.output = sr->outputs[i]; - monitor->x11.crtc = oi->crtc; - - for (j = 0; j < screenCount; j++) - { - if (screens[j].x_org == ci->x && - screens[j].y_org == ci->y && - screens[j].width == ci->width && - screens[j].height == ci->height) - { - monitor->x11.index = j; - break; - } - } - - if (monitor->x11.output == primary) - type = _GLFW_INSERT_FIRST; - else - type = _GLFW_INSERT_LAST; - - _glfwInputMonitor(monitor, GLFW_CONNECTED, type); - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - } - - XRRFreeScreenResources(sr); - - if (screens) - XFree(screens); - - for (i = 0; i < disconnectedCount; i++) - { - if (disconnected[i]) - _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); - } - - free(disconnected); - } - - if (!_glfw.monitorCount) - { - const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen); - const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen); - - _glfwInputMonitor(_glfwAllocMonitor("Display", widthMM, heightMM), - GLFW_CONNECTED, - _GLFW_INSERT_FIRST); - } -} - -// Set the current video mode for the specified monitor -// -GLFWbool _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - GLFWvidmode current; - const GLFWvidmode* best; - RRMode native = None; - int i; - - best = _glfwChooseVideoMode(monitor, desired); - _glfwPlatformGetVideoMode(monitor, ¤t); - if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - if (_glfwCompareVideoModes(best, &mode) == 0) - { - native = mi->id; - break; - } - } - - if (native) - { - if (monitor->x11.oldMode == None) - monitor->x11.oldMode = ci->mode; - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - native, - ci->rotation, - ci->outputs, - ci->noutput); - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - if (!native) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Monitor mode list changed"); - return GLFW_FALSE; - } - } - - return GLFW_TRUE; -} - -// Restore the saved (original) video mode for the specified monitor -// -void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - if (monitor->x11.oldMode == None) - return; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - XRRSetCrtcConfig(_glfw.x11.display, - sr, monitor->x11.crtc, - CurrentTime, - ci->x, ci->y, - monitor->x11.oldMode, - ci->rotation, - ci->outputs, - ci->noutput); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - - monitor->x11.oldMode = None; - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW platform API ////// -////////////////////////////////////////////////////////////////////////// - -void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - if (xpos) - *xpos = ci->x; - if (ypos) - *ypos = ci->y; - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } -} - -GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) -{ - GLFWvidmode* result; - - *count = 0; - - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - int i, j; - XRRScreenResources* sr; - XRRCrtcInfo* ci; - XRROutputInfo* oi; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); - - result = calloc(oi->nmode, sizeof(GLFWvidmode)); - - for (i = 0; i < oi->nmode; i++) - { - const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); - if (!modeIsGood(mi)) - continue; - - const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); - - for (j = 0; j < *count; j++) - { - if (_glfwCompareVideoModes(result + j, &mode) == 0) - break; - } - - // Skip duplicate modes - if (j < *count) - continue; - - (*count)++; - result[*count - 1] = mode; - } - - XRRFreeOutputInfo(oi); - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - *count = 1; - result = calloc(1, sizeof(GLFWvidmode)); - _glfwPlatformGetVideoMode(monitor, result); - } - - return result; -} - -void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) - { - XRRScreenResources* sr; - XRRCrtcInfo* ci; - - sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); - ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); - - *mode = vidmodeFromModeInfo(getModeInfo(sr, ci->mode), ci); - - XRRFreeCrtcInfo(ci); - XRRFreeScreenResources(sr); - } - else - { - mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); - mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); - mode->refreshRate = 0; - - _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), - &mode->redBits, &mode->greenBits, &mode->blueBits); - } -} - -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display, - monitor->x11.crtc); - XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display, - monitor->x11.crtc); - - _glfwAllocGammaArrays(ramp, size); - - memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); - memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); - memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); - - XRRFreeGamma(gamma); - } - else if (_glfw.x11.vidmode.available) - { - int size; - XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size); - - _glfwAllocGammaArrays(ramp, size); - - XF86VidModeGetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, ramp->red, ramp->green, ramp->blue); - } -} - -void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) -{ - if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) - { - if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size) - { - _glfwInputError(GLFW_PLATFORM_ERROR, - "X11: Gamma ramp size must match current ramp size"); - return; - } - - XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); - - memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); - memcpy(gamma->green, ramp->green, ramp->size * sizeof(unsigned short)); - memcpy(gamma->blue, ramp->blue, ramp->size * sizeof(unsigned short)); - - XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); - XRRFreeGamma(gamma); - } - else if (_glfw.x11.vidmode.available) - { - XF86VidModeSetGammaRamp(_glfw.x11.display, - _glfw.x11.screen, - ramp->size, - (unsigned short*) ramp->red, - (unsigned short*) ramp->green, - (unsigned short*) ramp->blue); - } -} - - -////////////////////////////////////////////////////////////////////////// -////// GLFW native API ////// -////////////////////////////////////////////////////////////////////////// - -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.crtc; -} - -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* handle) -{ - _GLFWmonitor* monitor = (_GLFWmonitor*) handle; - _GLFW_REQUIRE_INIT_OR_RETURN(None); - return monitor->x11.output; -} - diff --git a/external/GLFW/tests/CMakeLists.txt b/external/GLFW/tests/CMakeLists.txt deleted file mode 100644 index 1a39d59..0000000 --- a/external/GLFW/tests/CMakeLists.txt +++ /dev/null @@ -1,91 +0,0 @@ - -link_libraries(glfw) - -include_directories(${glfw_INCLUDE_DIRS} "${GLFW_SOURCE_DIR}/deps") - -if (MATH_LIBRARY) - link_libraries("${MATH_LIBRARY}") -endif() - -if (MSVC) - add_definitions(-D_CRT_SECURE_NO_WARNINGS) -endif() - -set(GLAD "${GLFW_SOURCE_DIR}/deps/glad/glad.h" - "${GLFW_SOURCE_DIR}/deps/glad.c") -set(GETOPT "${GLFW_SOURCE_DIR}/deps/getopt.h" - "${GLFW_SOURCE_DIR}/deps/getopt.c") -set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h" - "${GLFW_SOURCE_DIR}/deps/tinycthread.c") - -add_executable(clipboard clipboard.c ${GETOPT} ${GLAD}) -add_executable(events events.c ${GETOPT} ${GLAD}) -add_executable(msaa msaa.c ${GETOPT} ${GLAD}) -add_executable(glfwinfo glfwinfo.c ${GETOPT} ${GLAD}) -add_executable(iconify iconify.c ${GETOPT} ${GLAD}) -add_executable(monitors monitors.c ${GETOPT} ${GLAD}) -add_executable(reopen reopen.c ${GLAD}) -add_executable(cursor cursor.c ${GLAD}) - -add_executable(empty WIN32 MACOSX_BUNDLE empty.c ${TINYCTHREAD} ${GLAD}) -add_executable(gamma WIN32 MACOSX_BUNDLE gamma.c ${GLAD}) -add_executable(icon WIN32 MACOSX_BUNDLE icon.c ${GLAD}) -add_executable(inputlag WIN32 MACOSX_BUNDLE inputlag.c ${GETOPT} ${GLAD}) -add_executable(joysticks WIN32 MACOSX_BUNDLE joysticks.c ${GLAD}) -add_executable(sharing WIN32 MACOSX_BUNDLE sharing.c ${GETOPT} ${GLAD}) -add_executable(tearing WIN32 MACOSX_BUNDLE tearing.c ${GETOPT} ${GLAD}) -add_executable(threads WIN32 MACOSX_BUNDLE threads.c ${TINYCTHREAD} ${GLAD}) -add_executable(timeout WIN32 MACOSX_BUNDLE timeout.c ${GLAD}) -add_executable(title WIN32 MACOSX_BUNDLE title.c ${GLAD}) -add_executable(windows WIN32 MACOSX_BUNDLE windows.c ${GETOPT} ${GLAD}) - -target_link_libraries(empty "${CMAKE_THREAD_LIBS_INIT}") -target_link_libraries(threads "${CMAKE_THREAD_LIBS_INIT}") -if (RT_LIBRARY) - target_link_libraries(empty "${RT_LIBRARY}") - target_link_libraries(threads "${RT_LIBRARY}") -endif() - -set(WINDOWS_BINARIES empty gamma icon inputlag joysticks sharing tearing threads - timeout title windows) -set(CONSOLE_BINARIES clipboard events msaa glfwinfo iconify monitors reopen - cursor) - -if (VULKAN_FOUND) - add_executable(vulkan WIN32 vulkan.c ${ICON}) - target_include_directories(vulkan PRIVATE "${VULKAN_INCLUDE_DIR}") - if (GLFW_VULKAN_STATIC) - target_link_libraries(vulkan "${VULKAN_STATIC_LIBRARY}" ${GLFW_VULKAN_DEPS}) - else() - target_link_libraries(vulkan "${VULKAN_LIBRARY}") - endif() - list(APPEND WINDOWS_BINARIES vulkan) -endif() - -set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES - FOLDER "GLFW3/Tests") - -if (MSVC) - # Tell MSVC to use main instead of WinMain for Windows subsystem executables - set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES - LINK_FLAGS "/ENTRY:mainCRTStartup") -endif() - -if (APPLE) - set_target_properties(empty PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Empty Event") - set_target_properties(gamma PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Gamma") - set_target_properties(inputlag PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Input Lag") - set_target_properties(joysticks PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Joysticks") - set_target_properties(sharing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Sharing") - set_target_properties(tearing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Tearing") - set_target_properties(threads PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Threads") - set_target_properties(timeout PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Timeout") - set_target_properties(title PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Title") - set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows") - - set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES - MACOSX_BUNDLE_SHORT_VERSION_STRING ${GLFW_VERSION} - MACOSX_BUNDLE_LONG_VERSION_STRING ${GLFW_VERSION_FULL} - MACOSX_BUNDLE_INFO_PLIST "${GLFW_SOURCE_DIR}/CMake/MacOSXBundleInfo.plist.in") -endif() - diff --git a/external/GLFW/tests/cursor.c b/external/GLFW/tests/cursor.c deleted file mode 100644 index 4cc74ad..0000000 --- a/external/GLFW/tests/cursor.c +++ /dev/null @@ -1,373 +0,0 @@ -//======================================================================== -// Cursor & input mode tests -// Copyright (c) Camilla Löwy -// -// 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. -// -//======================================================================== -// -// This test provides an interface to the cursor image and cursor mode -// parts of the API. -// -// Custom cursor image generation by urraka. -// -//======================================================================== - -#include -#include - -#if defined(_MSC_VER) - // Make MS math.h define M_PI - #define _USE_MATH_DEFINES -#endif - -#include -#include -#include - -#include "linmath.h" - -#define CURSOR_FRAME_COUNT 60 - -static const char* vertex_shader_text = -"#version 110\n" -"uniform mat4 MVP;\n" -"attribute vec2 vPos;\n" -"void main()\n" -"{\n" -" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n" -"}\n"; - -static const char* fragment_shader_text = -"#version 110\n" -"void main()\n" -"{\n" -" gl_FragColor = vec4(1.0);\n" -"}\n"; - -static double cursor_x; -static double cursor_y; -static int swap_interval = 1; -static int wait_events = GLFW_TRUE; -static int animate_cursor = GLFW_FALSE; -static int track_cursor = GLFW_FALSE; -static GLFWcursor* standard_cursors[6]; - -static void error_callback(int error, const char* description) -{ - fprintf(stderr, "Error: %s\n", description); -} - -static float star(int x, int y, float t) -{ - const float c = 64 / 2.f; - - const float i = (0.25f * (float) sin(2.f * M_PI * t) + 0.75f); - const float k = 64 * 0.046875f * i; - - const float dist = (float) sqrt((x - c) * (x - c) + (y - c) * (y - c)); - - const float salpha = 1.f - dist / c; - const float xalpha = (float) x == c ? c : k / (float) fabs(x - c); - const float yalpha = (float) y == c ? c : k / (float) fabs(y - c); - - return (float) fmax(0.f, fmin(1.f, i * salpha * 0.2f + salpha * xalpha * yalpha)); -} - -static GLFWcursor* create_cursor_frame(float t) -{ - int i = 0, x, y; - unsigned char buffer[64 * 64 * 4]; - const GLFWimage image = { 64, 64, buffer }; - - for (y = 0; y < image.width; y++) - { - for (x = 0; x < image.height; x++) - { - buffer[i++] = 255; - buffer[i++] = 255; - buffer[i++] = 255; - buffer[i++] = (unsigned char) (255 * star(x, y, t)); - } - } - - return glfwCreateCursor(&image, image.width / 2, image.height / 2); -} - -static void cursor_position_callback(GLFWwindow* window, double x, double y) -{ - printf("%0.3f: Cursor position: %f %f (%+f %+f)\n", - glfwGetTime(), - x, y, x - cursor_x, y - cursor_y); - - cursor_x = x; - cursor_y = y; -} - -static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) -{ - if (action != GLFW_PRESS) - return; - - switch (key) - { - case GLFW_KEY_A: - { - animate_cursor = !animate_cursor; - if (!animate_cursor) - glfwSetCursor(window, NULL); - - break; - } - - case GLFW_KEY_ESCAPE: - { - if (glfwGetInputMode(window, GLFW_CURSOR) != GLFW_CURSOR_DISABLED) - { - glfwSetWindowShouldClose(window, GLFW_TRUE); - break; - } - - /* FALLTHROUGH */ - } - - case GLFW_KEY_N: - glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); - printf("(( cursor is normal ))\n"); - break; - - case GLFW_KEY_D: - glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); - printf("(( cursor is disabled ))\n"); - break; - - case GLFW_KEY_H: - glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); - printf("(( cursor is hidden ))\n"); - break; - - case GLFW_KEY_SPACE: - swap_interval = 1 - swap_interval; - printf("(( swap interval: %i ))\n", swap_interval); - glfwSwapInterval(swap_interval); - break; - - case GLFW_KEY_W: - wait_events = !wait_events; - printf("(( %sing for events ))\n", wait_events ? "wait" : "poll"); - break; - - case GLFW_KEY_T: - track_cursor = !track_cursor; - break; - - case GLFW_KEY_0: - glfwSetCursor(window, NULL); - break; - - case GLFW_KEY_1: - glfwSetCursor(window, standard_cursors[0]); - break; - - case GLFW_KEY_2: - glfwSetCursor(window, standard_cursors[1]); - break; - - case GLFW_KEY_3: - glfwSetCursor(window, standard_cursors[2]); - break; - - case GLFW_KEY_4: - glfwSetCursor(window, standard_cursors[3]); - break; - - case GLFW_KEY_5: - glfwSetCursor(window, standard_cursors[4]); - break; - - case GLFW_KEY_6: - glfwSetCursor(window, standard_cursors[5]); - break; - } -} - -int main(void) -{ - int i; - GLFWwindow* window; - GLFWcursor* star_cursors[CURSOR_FRAME_COUNT]; - GLFWcursor* current_frame = NULL; - GLuint vertex_buffer, vertex_shader, fragment_shader, program; - GLint mvp_location, vpos_location; - - glfwSetErrorCallback(error_callback); - - if (!glfwInit()) - exit(EXIT_FAILURE); - - for (i = 0; i < CURSOR_FRAME_COUNT; i++) - { - star_cursors[i] = create_cursor_frame(i / (float) CURSOR_FRAME_COUNT); - if (!star_cursors[i]) - { - glfwTerminate(); - exit(EXIT_FAILURE); - } - } - - for (i = 0; i < sizeof(standard_cursors) / sizeof(standard_cursors[0]); i++) - { - const int shapes[] = { - GLFW_ARROW_CURSOR, - GLFW_IBEAM_CURSOR, - GLFW_CROSSHAIR_CURSOR, - GLFW_HAND_CURSOR, - GLFW_HRESIZE_CURSOR, - GLFW_VRESIZE_CURSOR - }; - - standard_cursors[i] = glfwCreateStandardCursor(shapes[i]); - if (!standard_cursors[i]) - { - glfwTerminate(); - exit(EXIT_FAILURE); - } - } - - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); - - window = glfwCreateWindow(640, 480, "Cursor Test", NULL, NULL); - if (!window) - { - glfwTerminate(); - exit(EXIT_FAILURE); - } - - glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); - - glGenBuffers(1, &vertex_buffer); - glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer); - - vertex_shader = glCreateShader(GL_VERTEX_SHADER); - glShaderSource(vertex_shader, 1, &vertex_shader_text, NULL); - glCompileShader(vertex_shader); - - fragment_shader = glCreateShader(GL_FRAGMENT_SHADER); - glShaderSource(fragment_shader, 1, &fragment_shader_text, NULL); - glCompileShader(fragment_shader); - - program = glCreateProgram(); - glAttachShader(program, vertex_shader); - glAttachShader(program, fragment_shader); - glLinkProgram(program); - - mvp_location = glGetUniformLocation(program, "MVP"); - vpos_location = glGetAttribLocation(program, "vPos"); - - glEnableVertexAttribArray(vpos_location); - glVertexAttribPointer(vpos_location, 2, GL_FLOAT, GL_FALSE, - sizeof(vec2), (void*) 0); - glUseProgram(program); - - glfwGetCursorPos(window, &cursor_x, &cursor_y); - printf("Cursor position: %f %f\n", cursor_x, cursor_y); - - glfwSetCursorPosCallback(window, cursor_position_callback); - glfwSetKeyCallback(window, key_callback); - - while (!glfwWindowShouldClose(window)) - { - glClear(GL_COLOR_BUFFER_BIT); - - if (track_cursor) - { - int wnd_width, wnd_height, fb_width, fb_height; - float scale; - vec2 vertices[4]; - mat4x4 mvp; - - glfwGetWindowSize(window, &wnd_width, &wnd_height); - glfwGetFramebufferSize(window, &fb_width, &fb_height); - - glViewport(0, 0, fb_width, fb_height); - - scale = (float) fb_width / (float) wnd_width; - vertices[0][0] = 0.f; - vertices[0][1] = (float) (fb_height - cursor_y * scale); - vertices[1][0] = (float) fb_width; - vertices[1][1] = (float) (fb_height - cursor_y * scale); - vertices[2][0] = (float) (cursor_x * scale); - vertices[2][1] = 0.f; - vertices[3][0] = (float) (cursor_x * scale); - vertices[3][1] = (float) fb_height; - - glBufferData(GL_ARRAY_BUFFER, - sizeof(vertices), - vertices, - GL_STREAM_DRAW); - - mat4x4_ortho(mvp, 0.f, (float) fb_width, 0.f, (float) fb_height, 0.f, 1.f); - glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp); - - glDrawArrays(GL_LINES, 0, 4); - } - - glfwSwapBuffers(window); - - if (animate_cursor) - { - const int i = (int) (glfwGetTime() * 30.0) % CURSOR_FRAME_COUNT; - if (current_frame != star_cursors[i]) - { - glfwSetCursor(window, star_cursors[i]); - current_frame = star_cursors[i]; - } - } - else - current_frame = NULL; - - if (wait_events) - { - if (animate_cursor) - glfwWaitEventsTimeout(1.0 / 30.0); - else - glfwWaitEvents(); - } - else - glfwPollEvents(); - - // Workaround for an issue with msvcrt and mintty - fflush(stdout); - } - - glfwDestroyWindow(window); - - for (i = 0; i < CURSOR_FRAME_COUNT; i++) - glfwDestroyCursor(star_cursors[i]); - - for (i = 0; i < sizeof(standard_cursors) / sizeof(standard_cursors[0]); i++) - glfwDestroyCursor(standard_cursors[i]); - - glfwTerminate(); - exit(EXIT_SUCCESS); -} - diff --git a/external/GLFW/tests/vulkan.c b/external/GLFW/tests/vulkan.c deleted file mode 100644 index d0d4b3e..0000000 --- a/external/GLFW/tests/vulkan.c +++ /dev/null @@ -1,2291 +0,0 @@ -/* - * Copyright (c) 2015-2016 The Khronos Group Inc. - * Copyright (c) 2015-2016 Valve Corporation - * Copyright (c) 2015-2016 LunarG, Inc. - * - * 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. - * - * Author: Chia-I Wu - * Author: Cody Northrop - * Author: Courtney Goeltzenleuchter - * Author: Ian Elliott - * Author: Jon Ashburn - * Author: Piers Daniell - * Author: Gwan-gyeong Mun - * Porter: Camilla Löwy - */ -/* - * Draw a textured triangle with depth testing. This is written against Intel - * ICD. It does not do state transition nor object memory binding like it - * should. It also does no error checking. - */ - -#include -#include -#include -#include -#include -#include - -#ifdef _WIN32 -#include -#endif - -#define GLFW_INCLUDE_NONE -#define GLFW_INCLUDE_VULKAN -#include - -#define DEMO_TEXTURE_COUNT 1 -#define VERTEX_BUFFER_BIND_ID 0 -#define APP_SHORT_NAME "tri" -#define APP_LONG_NAME "The Vulkan Triangle Demo Program" - -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) - -#if defined(NDEBUG) && defined(__GNUC__) -#define U_ASSERT_ONLY __attribute__((unused)) -#else -#define U_ASSERT_ONLY -#endif - -#define ERR_EXIT(err_msg, err_class) \ - do { \ - printf(err_msg); \ - fflush(stdout); \ - exit(1); \ - } while (0) - -#define GET_INSTANCE_PROC_ADDR(inst, entrypoint) \ - { \ - demo->fp##entrypoint = \ - (PFN_vk##entrypoint)vkGetInstanceProcAddr(inst, "vk" #entrypoint); \ - if (demo->fp##entrypoint == NULL) { \ - ERR_EXIT("vkGetInstanceProcAddr failed to find vk" #entrypoint, \ - "vkGetInstanceProcAddr Failure"); \ - } \ - } - -#define GET_DEVICE_PROC_ADDR(dev, entrypoint) \ - { \ - demo->fp##entrypoint = \ - (PFN_vk##entrypoint)vkGetDeviceProcAddr(dev, "vk" #entrypoint); \ - if (demo->fp##entrypoint == NULL) { \ - ERR_EXIT("vkGetDeviceProcAddr failed to find vk" #entrypoint, \ - "vkGetDeviceProcAddr Failure"); \ - } \ - } - -static const char fragShaderCode[] = { - 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x08, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x47, 0x4c, 0x53, 0x4c, 0x2e, 0x73, 0x74, 0x64, 0x2e, 0x34, 0x35, 0x30, - 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x07, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x00, 0x00, - 0x09, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x10, 0x00, 0x03, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0x04, 0x00, 0x09, 0x00, - 0x47, 0x4c, 0x5f, 0x41, 0x52, 0x42, 0x5f, 0x73, 0x65, 0x70, 0x61, 0x72, - 0x61, 0x74, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x00, 0x00, 0x04, 0x00, 0x09, 0x00, - 0x47, 0x4c, 0x5f, 0x41, 0x52, 0x42, 0x5f, 0x73, 0x68, 0x61, 0x64, 0x69, - 0x6e, 0x67, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, - 0x34, 0x32, 0x30, 0x70, 0x61, 0x63, 0x6b, 0x00, 0x05, 0x00, 0x04, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x00, 0x00, - 0x05, 0x00, 0x05, 0x00, 0x09, 0x00, 0x00, 0x00, 0x75, 0x46, 0x72, 0x61, - 0x67, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x00, 0x00, 0x05, 0x00, 0x03, 0x00, - 0x0d, 0x00, 0x00, 0x00, 0x74, 0x65, 0x78, 0x00, 0x05, 0x00, 0x05, 0x00, - 0x11, 0x00, 0x00, 0x00, 0x74, 0x65, 0x78, 0x63, 0x6f, 0x6f, 0x72, 0x64, - 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, 0x09, 0x00, 0x00, 0x00, - 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, - 0x0d, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x47, 0x00, 0x04, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x02, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x21, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x16, 0x00, 0x03, 0x00, 0x06, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x17, 0x00, 0x04, 0x00, 0x07, 0x00, 0x00, 0x00, - 0x06, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, - 0x08, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, - 0x3b, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x19, 0x00, 0x09, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x03, 0x00, 0x0b, 0x00, 0x00, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x17, 0x00, 0x04, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, - 0x10, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x36, 0x00, 0x05, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x02, 0x00, - 0x05, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x04, 0x00, 0x0b, 0x00, 0x00, 0x00, - 0x0e, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x04, 0x00, - 0x0f, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x57, 0x00, 0x05, 0x00, 0x07, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, - 0x0e, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x03, 0x00, - 0x09, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x01, 0x00, - 0x38, 0x00, 0x01, 0x00 -}; - -static const char vertShaderCode[] = { - 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x08, 0x00, - 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x47, 0x4c, 0x53, 0x4c, 0x2e, 0x73, 0x74, 0x64, 0x2e, 0x34, 0x35, 0x30, - 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x00, 0x00, - 0x09, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, - 0x17, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x03, 0x00, 0x02, 0x00, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, - 0x04, 0x00, 0x09, 0x00, 0x47, 0x4c, 0x5f, 0x41, 0x52, 0x42, 0x5f, 0x73, - 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x64, - 0x65, 0x72, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x00, 0x00, - 0x04, 0x00, 0x09, 0x00, 0x47, 0x4c, 0x5f, 0x41, 0x52, 0x42, 0x5f, 0x73, - 0x68, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, - 0x61, 0x67, 0x65, 0x5f, 0x34, 0x32, 0x30, 0x70, 0x61, 0x63, 0x6b, 0x00, - 0x05, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x6d, 0x61, 0x69, 0x6e, - 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x05, 0x00, 0x09, 0x00, 0x00, 0x00, - 0x74, 0x65, 0x78, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x00, 0x00, 0x00, 0x00, - 0x05, 0x00, 0x04, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x61, 0x74, 0x74, 0x72, - 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x06, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x67, 0x6c, 0x5f, 0x50, 0x65, 0x72, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, - 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x06, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x67, 0x6c, 0x5f, 0x50, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x00, 0x06, 0x00, 0x07, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x67, 0x6c, 0x5f, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x53, 0x69, 0x7a, 0x65, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x07, 0x00, - 0x11, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x67, 0x6c, 0x5f, 0x43, - 0x6c, 0x69, 0x70, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x00, - 0x05, 0x00, 0x03, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x05, 0x00, 0x03, 0x00, 0x17, 0x00, 0x00, 0x00, 0x70, 0x6f, 0x73, 0x00, - 0x05, 0x00, 0x05, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x67, 0x6c, 0x5f, 0x56, - 0x65, 0x72, 0x74, 0x65, 0x78, 0x49, 0x44, 0x00, 0x05, 0x00, 0x06, 0x00, - 0x1d, 0x00, 0x00, 0x00, 0x67, 0x6c, 0x5f, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x49, 0x44, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, - 0x09, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x47, 0x00, 0x04, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x48, 0x00, 0x05, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x48, 0x00, 0x05, 0x00, 0x11, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x0b, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x48, 0x00, 0x05, 0x00, - 0x11, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x47, 0x00, 0x03, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, 0x17, 0x00, 0x00, 0x00, - 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x04, 0x00, - 0x1c, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, - 0x47, 0x00, 0x04, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, - 0x06, 0x00, 0x00, 0x00, 0x13, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x21, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x03, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x17, 0x00, 0x04, 0x00, 0x07, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, - 0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x07, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x0b, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x17, 0x00, 0x04, 0x00, - 0x0d, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x15, 0x00, 0x04, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x0e, 0x00, 0x00, 0x00, - 0x0f, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x04, 0x00, - 0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, - 0x1e, 0x00, 0x05, 0x00, 0x11, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, - 0x06, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, - 0x3b, 0x00, 0x04, 0x00, 0x12, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x15, 0x00, 0x04, 0x00, 0x14, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x0d, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x17, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, - 0x19, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x04, 0x00, 0x1b, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, 0x1b, 0x00, 0x00, 0x00, - 0x1c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x04, 0x00, - 0x1b, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x36, 0x00, 0x05, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x02, 0x00, - 0x05, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x04, 0x00, 0x07, 0x00, 0x00, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x03, 0x00, - 0x09, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x04, 0x00, - 0x0d, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, - 0x41, 0x00, 0x05, 0x00, 0x19, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, - 0x13, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x03, 0x00, - 0x1a, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x01, 0x00, - 0x38, 0x00, 0x01, 0x00 -}; - -struct texture_object { - VkSampler sampler; - - VkImage image; - VkImageLayout imageLayout; - - VkDeviceMemory mem; - VkImageView view; - int32_t tex_width, tex_height; -}; - -static int validation_error = 0; - -VKAPI_ATTR VkBool32 VKAPI_CALL -BreakCallback(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, size_t location, int32_t msgCode, - const char *pLayerPrefix, const char *pMsg, - void *pUserData) { -#ifdef _WIN32 - DebugBreak(); -#else - raise(SIGTRAP); -#endif - - return false; -} - -typedef struct { - VkImage image; - VkCommandBuffer cmd; - VkImageView view; -} SwapchainBuffers; - -struct demo { - GLFWwindow* window; - VkSurfaceKHR surface; - bool use_staging_buffer; - - VkInstance inst; - VkPhysicalDevice gpu; - VkDevice device; - VkQueue queue; - VkPhysicalDeviceProperties gpu_props; - VkPhysicalDeviceFeatures gpu_features; - VkQueueFamilyProperties *queue_props; - uint32_t graphics_queue_node_index; - - uint32_t enabled_extension_count; - uint32_t enabled_layer_count; - const char *extension_names[64]; - const char *enabled_layers[64]; - - int width, height; - VkFormat format; - VkColorSpaceKHR color_space; - - PFN_vkGetPhysicalDeviceSurfaceSupportKHR - fpGetPhysicalDeviceSurfaceSupportKHR; - PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR - fpGetPhysicalDeviceSurfaceCapabilitiesKHR; - PFN_vkGetPhysicalDeviceSurfaceFormatsKHR - fpGetPhysicalDeviceSurfaceFormatsKHR; - PFN_vkGetPhysicalDeviceSurfacePresentModesKHR - fpGetPhysicalDeviceSurfacePresentModesKHR; - PFN_vkCreateSwapchainKHR fpCreateSwapchainKHR; - PFN_vkDestroySwapchainKHR fpDestroySwapchainKHR; - PFN_vkGetSwapchainImagesKHR fpGetSwapchainImagesKHR; - PFN_vkAcquireNextImageKHR fpAcquireNextImageKHR; - PFN_vkQueuePresentKHR fpQueuePresentKHR; - uint32_t swapchainImageCount; - VkSwapchainKHR swapchain; - SwapchainBuffers *buffers; - - VkCommandPool cmd_pool; - - struct { - VkFormat format; - - VkImage image; - VkDeviceMemory mem; - VkImageView view; - } depth; - - struct texture_object textures[DEMO_TEXTURE_COUNT]; - - struct { - VkBuffer buf; - VkDeviceMemory mem; - - VkPipelineVertexInputStateCreateInfo vi; - VkVertexInputBindingDescription vi_bindings[1]; - VkVertexInputAttributeDescription vi_attrs[2]; - } vertices; - - VkCommandBuffer setup_cmd; // Command Buffer for initialization commands - VkCommandBuffer draw_cmd; // Command Buffer for drawing commands - VkPipelineLayout pipeline_layout; - VkDescriptorSetLayout desc_layout; - VkPipelineCache pipelineCache; - VkRenderPass render_pass; - VkPipeline pipeline; - - VkShaderModule vert_shader_module; - VkShaderModule frag_shader_module; - - VkDescriptorPool desc_pool; - VkDescriptorSet desc_set; - - VkFramebuffer *framebuffers; - - VkPhysicalDeviceMemoryProperties memory_properties; - - int32_t curFrame; - int32_t frameCount; - bool validate; - bool use_break; - PFN_vkCreateDebugReportCallbackEXT CreateDebugReportCallback; - PFN_vkDestroyDebugReportCallbackEXT DestroyDebugReportCallback; - VkDebugReportCallbackEXT msg_callback; - PFN_vkDebugReportMessageEXT DebugReportMessage; - - float depthStencil; - float depthIncrement; - - uint32_t current_buffer; - uint32_t queue_count; -}; - -VKAPI_ATTR VkBool32 VKAPI_CALL -dbgFunc(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, - uint64_t srcObject, size_t location, int32_t msgCode, - const char *pLayerPrefix, const char *pMsg, void *pUserData) { - char *message = (char *)malloc(strlen(pMsg) + 100); - - assert(message); - - validation_error = 1; - - if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) { - sprintf(message, "ERROR: [%s] Code %d : %s", pLayerPrefix, msgCode, - pMsg); - } else if (msgFlags & VK_DEBUG_REPORT_WARNING_BIT_EXT) { - sprintf(message, "WARNING: [%s] Code %d : %s", pLayerPrefix, msgCode, - pMsg); - } else { - return false; - } - - printf("%s\n", message); - fflush(stdout); - free(message); - - /* - * false indicates that layer should not bail-out of an - * API call that had validation failures. This may mean that the - * app dies inside the driver due to invalid parameter(s). - * That's what would happen without validation layers, so we'll - * keep that behavior here. - */ - return false; -} - -// Forward declaration: -static void demo_resize(struct demo *demo); - -static bool memory_type_from_properties(struct demo *demo, uint32_t typeBits, - VkFlags requirements_mask, - uint32_t *typeIndex) { - uint32_t i; - // Search memtypes to find first index with those properties - for (i = 0; i < VK_MAX_MEMORY_TYPES; i++) { - if ((typeBits & 1) == 1) { - // Type is available, does it match user properties? - if ((demo->memory_properties.memoryTypes[i].propertyFlags & - requirements_mask) == requirements_mask) { - *typeIndex = i; - return true; - } - } - typeBits >>= 1; - } - // No memory types matched, return failure - return false; -} - -static void demo_flush_init_cmd(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - - if (demo->setup_cmd == VK_NULL_HANDLE) - return; - - err = vkEndCommandBuffer(demo->setup_cmd); - assert(!err); - - const VkCommandBuffer cmd_bufs[] = {demo->setup_cmd}; - VkFence nullFence = {VK_NULL_HANDLE}; - VkSubmitInfo submit_info = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, - .pNext = NULL, - .waitSemaphoreCount = 0, - .pWaitSemaphores = NULL, - .pWaitDstStageMask = NULL, - .commandBufferCount = 1, - .pCommandBuffers = cmd_bufs, - .signalSemaphoreCount = 0, - .pSignalSemaphores = NULL}; - - err = vkQueueSubmit(demo->queue, 1, &submit_info, nullFence); - assert(!err); - - err = vkQueueWaitIdle(demo->queue); - assert(!err); - - vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, cmd_bufs); - demo->setup_cmd = VK_NULL_HANDLE; -} - -static void demo_set_image_layout(struct demo *demo, VkImage image, - VkImageAspectFlags aspectMask, - VkImageLayout old_image_layout, - VkImageLayout new_image_layout, - VkAccessFlagBits srcAccessMask) { - - VkResult U_ASSERT_ONLY err; - - if (demo->setup_cmd == VK_NULL_HANDLE) { - const VkCommandBufferAllocateInfo cmd = { - .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, - .pNext = NULL, - .commandPool = demo->cmd_pool, - .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, - .commandBufferCount = 1, - }; - - err = vkAllocateCommandBuffers(demo->device, &cmd, &demo->setup_cmd); - assert(!err); - - VkCommandBufferBeginInfo cmd_buf_info = { - .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, - .pNext = NULL, - .flags = 0, - .pInheritanceInfo = NULL, - }; - err = vkBeginCommandBuffer(demo->setup_cmd, &cmd_buf_info); - assert(!err); - } - - VkImageMemoryBarrier image_memory_barrier = { - .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, - .pNext = NULL, - .srcAccessMask = srcAccessMask, - .dstAccessMask = 0, - .oldLayout = old_image_layout, - .newLayout = new_image_layout, - .image = image, - .subresourceRange = {aspectMask, 0, 1, 0, 1}}; - - if (new_image_layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) { - /* Make sure anything that was copying from this image has completed */ - image_memory_barrier.dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT; - } - - if (new_image_layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL) { - image_memory_barrier.dstAccessMask = - VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; - } - - if (new_image_layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL) { - image_memory_barrier.dstAccessMask = - VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; - } - - if (new_image_layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) { - /* Make sure any Copy or CPU writes to image are flushed */ - image_memory_barrier.dstAccessMask = - VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT; - } - - VkImageMemoryBarrier *pmemory_barrier = &image_memory_barrier; - - VkPipelineStageFlags src_stages = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; - VkPipelineStageFlags dest_stages = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; - - vkCmdPipelineBarrier(demo->setup_cmd, src_stages, dest_stages, 0, 0, NULL, - 0, NULL, 1, pmemory_barrier); -} - -static void demo_draw_build_cmd(struct demo *demo) { - const VkCommandBufferBeginInfo cmd_buf_info = { - .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, - .pNext = NULL, - .flags = 0, - .pInheritanceInfo = NULL, - }; - const VkClearValue clear_values[2] = { - [0] = {.color.float32 = {0.2f, 0.2f, 0.2f, 0.2f}}, - [1] = {.depthStencil = {demo->depthStencil, 0}}, - }; - const VkRenderPassBeginInfo rp_begin = { - .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, - .pNext = NULL, - .renderPass = demo->render_pass, - .framebuffer = demo->framebuffers[demo->current_buffer], - .renderArea.offset.x = 0, - .renderArea.offset.y = 0, - .renderArea.extent.width = demo->width, - .renderArea.extent.height = demo->height, - .clearValueCount = 2, - .pClearValues = clear_values, - }; - VkResult U_ASSERT_ONLY err; - - err = vkBeginCommandBuffer(demo->draw_cmd, &cmd_buf_info); - assert(!err); - - // We can use LAYOUT_UNDEFINED as a wildcard here because we don't care what - // happens to the previous contents of the image - VkImageMemoryBarrier image_memory_barrier = { - .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, - .pNext = NULL, - .srcAccessMask = 0, - .dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, - .oldLayout = VK_IMAGE_LAYOUT_UNDEFINED, - .newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, - .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .image = demo->buffers[demo->current_buffer].image, - .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; - - vkCmdPipelineBarrier(demo->draw_cmd, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, - VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 0, NULL, 0, - NULL, 1, &image_memory_barrier); - vkCmdBeginRenderPass(demo->draw_cmd, &rp_begin, VK_SUBPASS_CONTENTS_INLINE); - vkCmdBindPipeline(demo->draw_cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, - demo->pipeline); - vkCmdBindDescriptorSets(demo->draw_cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, - demo->pipeline_layout, 0, 1, &demo->desc_set, 0, - NULL); - - VkViewport viewport; - memset(&viewport, 0, sizeof(viewport)); - viewport.height = (float)demo->height; - viewport.width = (float)demo->width; - viewport.minDepth = (float)0.0f; - viewport.maxDepth = (float)1.0f; - vkCmdSetViewport(demo->draw_cmd, 0, 1, &viewport); - - VkRect2D scissor; - memset(&scissor, 0, sizeof(scissor)); - scissor.extent.width = demo->width; - scissor.extent.height = demo->height; - scissor.offset.x = 0; - scissor.offset.y = 0; - vkCmdSetScissor(demo->draw_cmd, 0, 1, &scissor); - - VkDeviceSize offsets[1] = {0}; - vkCmdBindVertexBuffers(demo->draw_cmd, VERTEX_BUFFER_BIND_ID, 1, - &demo->vertices.buf, offsets); - - vkCmdDraw(demo->draw_cmd, 3, 1, 0, 0); - vkCmdEndRenderPass(demo->draw_cmd); - - VkImageMemoryBarrier prePresentBarrier = { - .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, - .pNext = NULL, - .srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, - .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, - .oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, - .newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, - .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; - - prePresentBarrier.image = demo->buffers[demo->current_buffer].image; - VkImageMemoryBarrier *pmemory_barrier = &prePresentBarrier; - vkCmdPipelineBarrier(demo->draw_cmd, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, - VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 0, NULL, 0, - NULL, 1, pmemory_barrier); - - err = vkEndCommandBuffer(demo->draw_cmd); - assert(!err); -} - -static void demo_draw(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - VkSemaphore imageAcquiredSemaphore, drawCompleteSemaphore; - VkSemaphoreCreateInfo semaphoreCreateInfo = { - .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, - .pNext = NULL, - .flags = 0, - }; - - err = vkCreateSemaphore(demo->device, &semaphoreCreateInfo, - NULL, &imageAcquiredSemaphore); - assert(!err); - - err = vkCreateSemaphore(demo->device, &semaphoreCreateInfo, - NULL, &drawCompleteSemaphore); - assert(!err); - - // Get the index of the next available swapchain image: - err = demo->fpAcquireNextImageKHR(demo->device, demo->swapchain, UINT64_MAX, - imageAcquiredSemaphore, - (VkFence)0, // TODO: Show use of fence - &demo->current_buffer); - if (err == VK_ERROR_OUT_OF_DATE_KHR) { - // demo->swapchain is out of date (e.g. the window was resized) and - // must be recreated: - demo_resize(demo); - demo_draw(demo); - vkDestroySemaphore(demo->device, imageAcquiredSemaphore, NULL); - vkDestroySemaphore(demo->device, drawCompleteSemaphore, NULL); - return; - } else if (err == VK_SUBOPTIMAL_KHR) { - // demo->swapchain is not as optimal as it could be, but the platform's - // presentation engine will still present the image correctly. - } else { - assert(!err); - } - - demo_flush_init_cmd(demo); - - // Wait for the present complete semaphore to be signaled to ensure - // that the image won't be rendered to until the presentation - // engine has fully released ownership to the application, and it is - // okay to render to the image. - - demo_draw_build_cmd(demo); - VkFence nullFence = VK_NULL_HANDLE; - VkPipelineStageFlags pipe_stage_flags = - VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT; - VkSubmitInfo submit_info = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, - .pNext = NULL, - .waitSemaphoreCount = 1, - .pWaitSemaphores = &imageAcquiredSemaphore, - .pWaitDstStageMask = &pipe_stage_flags, - .commandBufferCount = 1, - .pCommandBuffers = &demo->draw_cmd, - .signalSemaphoreCount = 1, - .pSignalSemaphores = &drawCompleteSemaphore}; - - err = vkQueueSubmit(demo->queue, 1, &submit_info, nullFence); - assert(!err); - - VkPresentInfoKHR present = { - .sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR, - .pNext = NULL, - .waitSemaphoreCount = 1, - .pWaitSemaphores = &drawCompleteSemaphore, - .swapchainCount = 1, - .pSwapchains = &demo->swapchain, - .pImageIndices = &demo->current_buffer, - }; - - err = demo->fpQueuePresentKHR(demo->queue, &present); - if (err == VK_ERROR_OUT_OF_DATE_KHR) { - // demo->swapchain is out of date (e.g. the window was resized) and - // must be recreated: - demo_resize(demo); - } else if (err == VK_SUBOPTIMAL_KHR) { - // demo->swapchain is not as optimal as it could be, but the platform's - // presentation engine will still present the image correctly. - } else { - assert(!err); - } - - err = vkQueueWaitIdle(demo->queue); - assert(err == VK_SUCCESS); - - vkDestroySemaphore(demo->device, imageAcquiredSemaphore, NULL); - vkDestroySemaphore(demo->device, drawCompleteSemaphore, NULL); -} - -static void demo_prepare_buffers(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - VkSwapchainKHR oldSwapchain = demo->swapchain; - - // Check the surface capabilities and formats - VkSurfaceCapabilitiesKHR surfCapabilities; - err = demo->fpGetPhysicalDeviceSurfaceCapabilitiesKHR( - demo->gpu, demo->surface, &surfCapabilities); - assert(!err); - - uint32_t presentModeCount; - err = demo->fpGetPhysicalDeviceSurfacePresentModesKHR( - demo->gpu, demo->surface, &presentModeCount, NULL); - assert(!err); - VkPresentModeKHR *presentModes = - (VkPresentModeKHR *)malloc(presentModeCount * sizeof(VkPresentModeKHR)); - assert(presentModes); - err = demo->fpGetPhysicalDeviceSurfacePresentModesKHR( - demo->gpu, demo->surface, &presentModeCount, presentModes); - assert(!err); - - VkExtent2D swapchainExtent; - // width and height are either both 0xFFFFFFFF, or both not 0xFFFFFFFF. - if (surfCapabilities.currentExtent.width == 0xFFFFFFFF) { - // If the surface size is undefined, the size is set to the size - // of the images requested, which must fit within the minimum and - // maximum values. - swapchainExtent.width = demo->width; - swapchainExtent.height = demo->height; - - if (swapchainExtent.width < surfCapabilities.minImageExtent.width) { - swapchainExtent.width = surfCapabilities.minImageExtent.width; - } else if (swapchainExtent.width > surfCapabilities.maxImageExtent.width) { - swapchainExtent.width = surfCapabilities.maxImageExtent.width; - } - - if (swapchainExtent.height < surfCapabilities.minImageExtent.height) { - swapchainExtent.height = surfCapabilities.minImageExtent.height; - } else if (swapchainExtent.height > surfCapabilities.maxImageExtent.height) { - swapchainExtent.height = surfCapabilities.maxImageExtent.height; - } - } else { - // If the surface size is defined, the swap chain size must match - swapchainExtent = surfCapabilities.currentExtent; - demo->width = surfCapabilities.currentExtent.width; - demo->height = surfCapabilities.currentExtent.height; - } - - VkPresentModeKHR swapchainPresentMode = VK_PRESENT_MODE_FIFO_KHR; - - // Determine the number of VkImage's to use in the swap chain. - // Application desires to only acquire 1 image at a time (which is - // "surfCapabilities.minImageCount"). - uint32_t desiredNumOfSwapchainImages = surfCapabilities.minImageCount; - // If maxImageCount is 0, we can ask for as many images as we want; - // otherwise we're limited to maxImageCount - if ((surfCapabilities.maxImageCount > 0) && - (desiredNumOfSwapchainImages > surfCapabilities.maxImageCount)) { - // Application must settle for fewer images than desired: - desiredNumOfSwapchainImages = surfCapabilities.maxImageCount; - } - - VkSurfaceTransformFlagsKHR preTransform; - if (surfCapabilities.supportedTransforms & - VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR) { - preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; - } else { - preTransform = surfCapabilities.currentTransform; - } - - const VkSwapchainCreateInfoKHR swapchain = { - .sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR, - .pNext = NULL, - .surface = demo->surface, - .minImageCount = desiredNumOfSwapchainImages, - .imageFormat = demo->format, - .imageColorSpace = demo->color_space, - .imageExtent = - { - .width = swapchainExtent.width, .height = swapchainExtent.height, - }, - .imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, - .preTransform = preTransform, - .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR, - .imageArrayLayers = 1, - .imageSharingMode = VK_SHARING_MODE_EXCLUSIVE, - .queueFamilyIndexCount = 0, - .pQueueFamilyIndices = NULL, - .presentMode = swapchainPresentMode, - .oldSwapchain = oldSwapchain, - .clipped = true, - }; - uint32_t i; - - err = demo->fpCreateSwapchainKHR(demo->device, &swapchain, NULL, - &demo->swapchain); - assert(!err); - - // If we just re-created an existing swapchain, we should destroy the old - // swapchain at this point. - // Note: destroying the swapchain also cleans up all its associated - // presentable images once the platform is done with them. - if (oldSwapchain != VK_NULL_HANDLE) { - demo->fpDestroySwapchainKHR(demo->device, oldSwapchain, NULL); - } - - err = demo->fpGetSwapchainImagesKHR(demo->device, demo->swapchain, - &demo->swapchainImageCount, NULL); - assert(!err); - - VkImage *swapchainImages = - (VkImage *)malloc(demo->swapchainImageCount * sizeof(VkImage)); - assert(swapchainImages); - err = demo->fpGetSwapchainImagesKHR(demo->device, demo->swapchain, - &demo->swapchainImageCount, - swapchainImages); - assert(!err); - - demo->buffers = (SwapchainBuffers *)malloc(sizeof(SwapchainBuffers) * - demo->swapchainImageCount); - assert(demo->buffers); - - for (i = 0; i < demo->swapchainImageCount; i++) { - VkImageViewCreateInfo color_attachment_view = { - .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, - .pNext = NULL, - .format = demo->format, - .components = - { - .r = VK_COMPONENT_SWIZZLE_R, - .g = VK_COMPONENT_SWIZZLE_G, - .b = VK_COMPONENT_SWIZZLE_B, - .a = VK_COMPONENT_SWIZZLE_A, - }, - .subresourceRange = {.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = 1}, - .viewType = VK_IMAGE_VIEW_TYPE_2D, - .flags = 0, - }; - - demo->buffers[i].image = swapchainImages[i]; - - color_attachment_view.image = demo->buffers[i].image; - - err = vkCreateImageView(demo->device, &color_attachment_view, NULL, - &demo->buffers[i].view); - assert(!err); - } - - demo->current_buffer = 0; - - if (NULL != presentModes) { - free(presentModes); - } -} - -static void demo_prepare_depth(struct demo *demo) { - const VkFormat depth_format = VK_FORMAT_D16_UNORM; - const VkImageCreateInfo image = { - .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, - .pNext = NULL, - .imageType = VK_IMAGE_TYPE_2D, - .format = depth_format, - .extent = {demo->width, demo->height, 1}, - .mipLevels = 1, - .arrayLayers = 1, - .samples = VK_SAMPLE_COUNT_1_BIT, - .tiling = VK_IMAGE_TILING_OPTIMAL, - .usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, - .flags = 0, - }; - VkMemoryAllocateInfo mem_alloc = { - .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, - .pNext = NULL, - .allocationSize = 0, - .memoryTypeIndex = 0, - }; - VkImageViewCreateInfo view = { - .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, - .pNext = NULL, - .image = VK_NULL_HANDLE, - .format = depth_format, - .subresourceRange = {.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = 1}, - .flags = 0, - .viewType = VK_IMAGE_VIEW_TYPE_2D, - }; - - VkMemoryRequirements mem_reqs; - VkResult U_ASSERT_ONLY err; - bool U_ASSERT_ONLY pass; - - demo->depth.format = depth_format; - - /* create image */ - err = vkCreateImage(demo->device, &image, NULL, &demo->depth.image); - assert(!err); - - /* get memory requirements for this object */ - vkGetImageMemoryRequirements(demo->device, demo->depth.image, &mem_reqs); - - /* select memory size and type */ - mem_alloc.allocationSize = mem_reqs.size; - pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, - 0, /* No requirements */ - &mem_alloc.memoryTypeIndex); - assert(pass); - - /* allocate memory */ - err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &demo->depth.mem); - assert(!err); - - /* bind memory */ - err = - vkBindImageMemory(demo->device, demo->depth.image, demo->depth.mem, 0); - assert(!err); - - demo_set_image_layout(demo, demo->depth.image, VK_IMAGE_ASPECT_DEPTH_BIT, - VK_IMAGE_LAYOUT_UNDEFINED, - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, - 0); - - /* create image view */ - view.image = demo->depth.image; - err = vkCreateImageView(demo->device, &view, NULL, &demo->depth.view); - assert(!err); -} - -static void -demo_prepare_texture_image(struct demo *demo, const uint32_t *tex_colors, - struct texture_object *tex_obj, VkImageTiling tiling, - VkImageUsageFlags usage, VkFlags required_props) { - const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM; - const int32_t tex_width = 2; - const int32_t tex_height = 2; - VkResult U_ASSERT_ONLY err; - bool U_ASSERT_ONLY pass; - - tex_obj->tex_width = tex_width; - tex_obj->tex_height = tex_height; - - const VkImageCreateInfo image_create_info = { - .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, - .pNext = NULL, - .imageType = VK_IMAGE_TYPE_2D, - .format = tex_format, - .extent = {tex_width, tex_height, 1}, - .mipLevels = 1, - .arrayLayers = 1, - .samples = VK_SAMPLE_COUNT_1_BIT, - .tiling = tiling, - .usage = usage, - .flags = 0, - .initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED - }; - VkMemoryAllocateInfo mem_alloc = { - .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, - .pNext = NULL, - .allocationSize = 0, - .memoryTypeIndex = 0, - }; - - VkMemoryRequirements mem_reqs; - - err = - vkCreateImage(demo->device, &image_create_info, NULL, &tex_obj->image); - assert(!err); - - vkGetImageMemoryRequirements(demo->device, tex_obj->image, &mem_reqs); - - mem_alloc.allocationSize = mem_reqs.size; - pass = - memory_type_from_properties(demo, mem_reqs.memoryTypeBits, - required_props, &mem_alloc.memoryTypeIndex); - assert(pass); - - /* allocate memory */ - err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &tex_obj->mem); - assert(!err); - - /* bind memory */ - err = vkBindImageMemory(demo->device, tex_obj->image, tex_obj->mem, 0); - assert(!err); - - if (required_props & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) { - const VkImageSubresource subres = { - .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, - .mipLevel = 0, - .arrayLayer = 0, - }; - VkSubresourceLayout layout; - void *data; - int32_t x, y; - - vkGetImageSubresourceLayout(demo->device, tex_obj->image, &subres, - &layout); - - err = vkMapMemory(demo->device, tex_obj->mem, 0, - mem_alloc.allocationSize, 0, &data); - assert(!err); - - for (y = 0; y < tex_height; y++) { - uint32_t *row = (uint32_t *)((char *)data + layout.rowPitch * y); - for (x = 0; x < tex_width; x++) - row[x] = tex_colors[(x & 1) ^ (y & 1)]; - } - - vkUnmapMemory(demo->device, tex_obj->mem); - } - - tex_obj->imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; - demo_set_image_layout(demo, tex_obj->image, VK_IMAGE_ASPECT_COLOR_BIT, - VK_IMAGE_LAYOUT_PREINITIALIZED, tex_obj->imageLayout, - VK_ACCESS_HOST_WRITE_BIT); - /* setting the image layout does not reference the actual memory so no need - * to add a mem ref */ -} - -static void demo_destroy_texture_image(struct demo *demo, - struct texture_object *tex_obj) { - /* clean up staging resources */ - vkDestroyImage(demo->device, tex_obj->image, NULL); - vkFreeMemory(demo->device, tex_obj->mem, NULL); -} - -static void demo_prepare_textures(struct demo *demo) { - const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM; - VkFormatProperties props; - const uint32_t tex_colors[DEMO_TEXTURE_COUNT][2] = { - {0xffff0000, 0xff00ff00}, - }; - uint32_t i; - VkResult U_ASSERT_ONLY err; - - vkGetPhysicalDeviceFormatProperties(demo->gpu, tex_format, &props); - - for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { - if ((props.linearTilingFeatures & - VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) && - !demo->use_staging_buffer) { - /* Device can texture using linear textures */ - demo_prepare_texture_image( - demo, tex_colors[i], &demo->textures[i], VK_IMAGE_TILING_LINEAR, - VK_IMAGE_USAGE_SAMPLED_BIT, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT); - } else if (props.optimalTilingFeatures & - VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) { - /* Must use staging buffer to copy linear texture to optimized */ - struct texture_object staging_texture; - - memset(&staging_texture, 0, sizeof(staging_texture)); - demo_prepare_texture_image( - demo, tex_colors[i], &staging_texture, VK_IMAGE_TILING_LINEAR, - VK_IMAGE_USAGE_TRANSFER_SRC_BIT, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT); - - demo_prepare_texture_image( - demo, tex_colors[i], &demo->textures[i], - VK_IMAGE_TILING_OPTIMAL, - (VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT), - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); - - demo_set_image_layout(demo, staging_texture.image, - VK_IMAGE_ASPECT_COLOR_BIT, - staging_texture.imageLayout, - VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, - 0); - - demo_set_image_layout(demo, demo->textures[i].image, - VK_IMAGE_ASPECT_COLOR_BIT, - demo->textures[i].imageLayout, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, - 0); - - VkImageCopy copy_region = { - .srcSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, - .srcOffset = {0, 0, 0}, - .dstSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, - .dstOffset = {0, 0, 0}, - .extent = {staging_texture.tex_width, - staging_texture.tex_height, 1}, - }; - vkCmdCopyImage( - demo->setup_cmd, staging_texture.image, - VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, demo->textures[i].image, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ©_region); - - demo_set_image_layout(demo, demo->textures[i].image, - VK_IMAGE_ASPECT_COLOR_BIT, - VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, - demo->textures[i].imageLayout, - 0); - - demo_flush_init_cmd(demo); - - demo_destroy_texture_image(demo, &staging_texture); - } else { - /* Can't support VK_FORMAT_B8G8R8A8_UNORM !? */ - assert(!"No support for B8G8R8A8_UNORM as texture image format"); - } - - const VkSamplerCreateInfo sampler = { - .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, - .pNext = NULL, - .magFilter = VK_FILTER_NEAREST, - .minFilter = VK_FILTER_NEAREST, - .mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST, - .addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT, - .addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT, - .addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT, - .mipLodBias = 0.0f, - .anisotropyEnable = VK_FALSE, - .maxAnisotropy = 1, - .compareOp = VK_COMPARE_OP_NEVER, - .minLod = 0.0f, - .maxLod = 0.0f, - .borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE, - .unnormalizedCoordinates = VK_FALSE, - }; - VkImageViewCreateInfo view = { - .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, - .pNext = NULL, - .image = VK_NULL_HANDLE, - .viewType = VK_IMAGE_VIEW_TYPE_2D, - .format = tex_format, - .components = - { - VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_G, - VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_A, - }, - .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}, - .flags = 0, - }; - - /* create sampler */ - err = vkCreateSampler(demo->device, &sampler, NULL, - &demo->textures[i].sampler); - assert(!err); - - /* create image view */ - view.image = demo->textures[i].image; - err = vkCreateImageView(demo->device, &view, NULL, - &demo->textures[i].view); - assert(!err); - } -} - -static void demo_prepare_vertices(struct demo *demo) { - // clang-format off - const float vb[3][5] = { - /* position texcoord */ - { -1.0f, -1.0f, 0.25f, 0.0f, 0.0f }, - { 1.0f, -1.0f, 0.25f, 1.0f, 0.0f }, - { 0.0f, 1.0f, 1.0f, 0.5f, 1.0f }, - }; - // clang-format on - const VkBufferCreateInfo buf_info = { - .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, - .pNext = NULL, - .size = sizeof(vb), - .usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, - .flags = 0, - }; - VkMemoryAllocateInfo mem_alloc = { - .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, - .pNext = NULL, - .allocationSize = 0, - .memoryTypeIndex = 0, - }; - VkMemoryRequirements mem_reqs; - VkResult U_ASSERT_ONLY err; - bool U_ASSERT_ONLY pass; - void *data; - - memset(&demo->vertices, 0, sizeof(demo->vertices)); - - err = vkCreateBuffer(demo->device, &buf_info, NULL, &demo->vertices.buf); - assert(!err); - - vkGetBufferMemoryRequirements(demo->device, demo->vertices.buf, &mem_reqs); - assert(!err); - - mem_alloc.allocationSize = mem_reqs.size; - pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, - VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, - &mem_alloc.memoryTypeIndex); - assert(pass); - - err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &demo->vertices.mem); - assert(!err); - - err = vkMapMemory(demo->device, demo->vertices.mem, 0, - mem_alloc.allocationSize, 0, &data); - assert(!err); - - memcpy(data, vb, sizeof(vb)); - - vkUnmapMemory(demo->device, demo->vertices.mem); - - err = vkBindBufferMemory(demo->device, demo->vertices.buf, - demo->vertices.mem, 0); - assert(!err); - - demo->vertices.vi.sType = - VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; - demo->vertices.vi.pNext = NULL; - demo->vertices.vi.vertexBindingDescriptionCount = 1; - demo->vertices.vi.pVertexBindingDescriptions = demo->vertices.vi_bindings; - demo->vertices.vi.vertexAttributeDescriptionCount = 2; - demo->vertices.vi.pVertexAttributeDescriptions = demo->vertices.vi_attrs; - - demo->vertices.vi_bindings[0].binding = VERTEX_BUFFER_BIND_ID; - demo->vertices.vi_bindings[0].stride = sizeof(vb[0]); - demo->vertices.vi_bindings[0].inputRate = VK_VERTEX_INPUT_RATE_VERTEX; - - demo->vertices.vi_attrs[0].binding = VERTEX_BUFFER_BIND_ID; - demo->vertices.vi_attrs[0].location = 0; - demo->vertices.vi_attrs[0].format = VK_FORMAT_R32G32B32_SFLOAT; - demo->vertices.vi_attrs[0].offset = 0; - - demo->vertices.vi_attrs[1].binding = VERTEX_BUFFER_BIND_ID; - demo->vertices.vi_attrs[1].location = 1; - demo->vertices.vi_attrs[1].format = VK_FORMAT_R32G32_SFLOAT; - demo->vertices.vi_attrs[1].offset = sizeof(float) * 3; -} - -static void demo_prepare_descriptor_layout(struct demo *demo) { - const VkDescriptorSetLayoutBinding layout_binding = { - .binding = 0, - .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, - .descriptorCount = DEMO_TEXTURE_COUNT, - .stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT, - .pImmutableSamplers = NULL, - }; - const VkDescriptorSetLayoutCreateInfo descriptor_layout = { - .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, - .pNext = NULL, - .bindingCount = 1, - .pBindings = &layout_binding, - }; - VkResult U_ASSERT_ONLY err; - - err = vkCreateDescriptorSetLayout(demo->device, &descriptor_layout, NULL, - &demo->desc_layout); - assert(!err); - - const VkPipelineLayoutCreateInfo pPipelineLayoutCreateInfo = { - .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, - .pNext = NULL, - .setLayoutCount = 1, - .pSetLayouts = &demo->desc_layout, - }; - - err = vkCreatePipelineLayout(demo->device, &pPipelineLayoutCreateInfo, NULL, - &demo->pipeline_layout); - assert(!err); -} - -static void demo_prepare_render_pass(struct demo *demo) { - const VkAttachmentDescription attachments[2] = { - [0] = - { - .format = demo->format, - .samples = VK_SAMPLE_COUNT_1_BIT, - .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR, - .storeOp = VK_ATTACHMENT_STORE_OP_STORE, - .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, - .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, - .initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, - .finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, - }, - [1] = - { - .format = demo->depth.format, - .samples = VK_SAMPLE_COUNT_1_BIT, - .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR, - .storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, - .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, - .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, - .initialLayout = - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, - .finalLayout = - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, - }, - }; - const VkAttachmentReference color_reference = { - .attachment = 0, .layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, - }; - const VkAttachmentReference depth_reference = { - .attachment = 1, - .layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, - }; - const VkSubpassDescription subpass = { - .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS, - .flags = 0, - .inputAttachmentCount = 0, - .pInputAttachments = NULL, - .colorAttachmentCount = 1, - .pColorAttachments = &color_reference, - .pResolveAttachments = NULL, - .pDepthStencilAttachment = &depth_reference, - .preserveAttachmentCount = 0, - .pPreserveAttachments = NULL, - }; - const VkRenderPassCreateInfo rp_info = { - .sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, - .pNext = NULL, - .attachmentCount = 2, - .pAttachments = attachments, - .subpassCount = 1, - .pSubpasses = &subpass, - .dependencyCount = 0, - .pDependencies = NULL, - }; - VkResult U_ASSERT_ONLY err; - - err = vkCreateRenderPass(demo->device, &rp_info, NULL, &demo->render_pass); - assert(!err); -} - -static VkShaderModule -demo_prepare_shader_module(struct demo *demo, const void *code, size_t size) { - VkShaderModuleCreateInfo moduleCreateInfo; - VkShaderModule module; - VkResult U_ASSERT_ONLY err; - - moduleCreateInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; - moduleCreateInfo.pNext = NULL; - - moduleCreateInfo.codeSize = size; - moduleCreateInfo.pCode = code; - moduleCreateInfo.flags = 0; - err = vkCreateShaderModule(demo->device, &moduleCreateInfo, NULL, &module); - assert(!err); - - return module; -} - -static VkShaderModule demo_prepare_vs(struct demo *demo) { - size_t size = sizeof(vertShaderCode); - - demo->vert_shader_module = - demo_prepare_shader_module(demo, vertShaderCode, size); - - return demo->vert_shader_module; -} - -static VkShaderModule demo_prepare_fs(struct demo *demo) { - size_t size = sizeof(fragShaderCode); - - demo->frag_shader_module = - demo_prepare_shader_module(demo, fragShaderCode, size); - - return demo->frag_shader_module; -} - -static void demo_prepare_pipeline(struct demo *demo) { - VkGraphicsPipelineCreateInfo pipeline; - VkPipelineCacheCreateInfo pipelineCache; - - VkPipelineVertexInputStateCreateInfo vi; - VkPipelineInputAssemblyStateCreateInfo ia; - VkPipelineRasterizationStateCreateInfo rs; - VkPipelineColorBlendStateCreateInfo cb; - VkPipelineDepthStencilStateCreateInfo ds; - VkPipelineViewportStateCreateInfo vp; - VkPipelineMultisampleStateCreateInfo ms; - VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE]; - VkPipelineDynamicStateCreateInfo dynamicState; - - VkResult U_ASSERT_ONLY err; - - memset(dynamicStateEnables, 0, sizeof dynamicStateEnables); - memset(&dynamicState, 0, sizeof dynamicState); - dynamicState.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO; - dynamicState.pDynamicStates = dynamicStateEnables; - - memset(&pipeline, 0, sizeof(pipeline)); - pipeline.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; - pipeline.layout = demo->pipeline_layout; - - vi = demo->vertices.vi; - - memset(&ia, 0, sizeof(ia)); - ia.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; - ia.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; - - memset(&rs, 0, sizeof(rs)); - rs.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; - rs.polygonMode = VK_POLYGON_MODE_FILL; - rs.cullMode = VK_CULL_MODE_BACK_BIT; - rs.frontFace = VK_FRONT_FACE_CLOCKWISE; - rs.depthClampEnable = VK_FALSE; - rs.rasterizerDiscardEnable = VK_FALSE; - rs.depthBiasEnable = VK_FALSE; - rs.lineWidth = 1.0f; - - memset(&cb, 0, sizeof(cb)); - cb.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; - VkPipelineColorBlendAttachmentState att_state[1]; - memset(att_state, 0, sizeof(att_state)); - att_state[0].colorWriteMask = 0xf; - att_state[0].blendEnable = VK_FALSE; - cb.attachmentCount = 1; - cb.pAttachments = att_state; - - memset(&vp, 0, sizeof(vp)); - vp.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO; - vp.viewportCount = 1; - dynamicStateEnables[dynamicState.dynamicStateCount++] = - VK_DYNAMIC_STATE_VIEWPORT; - vp.scissorCount = 1; - dynamicStateEnables[dynamicState.dynamicStateCount++] = - VK_DYNAMIC_STATE_SCISSOR; - - memset(&ds, 0, sizeof(ds)); - ds.sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; - ds.depthTestEnable = VK_TRUE; - ds.depthWriteEnable = VK_TRUE; - ds.depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL; - ds.depthBoundsTestEnable = VK_FALSE; - ds.back.failOp = VK_STENCIL_OP_KEEP; - ds.back.passOp = VK_STENCIL_OP_KEEP; - ds.back.compareOp = VK_COMPARE_OP_ALWAYS; - ds.stencilTestEnable = VK_FALSE; - ds.front = ds.back; - - memset(&ms, 0, sizeof(ms)); - ms.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; - ms.pSampleMask = NULL; - ms.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT; - - // Two stages: vs and fs - pipeline.stageCount = 2; - VkPipelineShaderStageCreateInfo shaderStages[2]; - memset(&shaderStages, 0, 2 * sizeof(VkPipelineShaderStageCreateInfo)); - - shaderStages[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; - shaderStages[0].stage = VK_SHADER_STAGE_VERTEX_BIT; - shaderStages[0].module = demo_prepare_vs(demo); - shaderStages[0].pName = "main"; - - shaderStages[1].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; - shaderStages[1].stage = VK_SHADER_STAGE_FRAGMENT_BIT; - shaderStages[1].module = demo_prepare_fs(demo); - shaderStages[1].pName = "main"; - - pipeline.pVertexInputState = &vi; - pipeline.pInputAssemblyState = &ia; - pipeline.pRasterizationState = &rs; - pipeline.pColorBlendState = &cb; - pipeline.pMultisampleState = &ms; - pipeline.pViewportState = &vp; - pipeline.pDepthStencilState = &ds; - pipeline.pStages = shaderStages; - pipeline.renderPass = demo->render_pass; - pipeline.pDynamicState = &dynamicState; - - memset(&pipelineCache, 0, sizeof(pipelineCache)); - pipelineCache.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO; - - err = vkCreatePipelineCache(demo->device, &pipelineCache, NULL, - &demo->pipelineCache); - assert(!err); - err = vkCreateGraphicsPipelines(demo->device, demo->pipelineCache, 1, - &pipeline, NULL, &demo->pipeline); - assert(!err); - - vkDestroyPipelineCache(demo->device, demo->pipelineCache, NULL); - - vkDestroyShaderModule(demo->device, demo->frag_shader_module, NULL); - vkDestroyShaderModule(demo->device, demo->vert_shader_module, NULL); -} - -static void demo_prepare_descriptor_pool(struct demo *demo) { - const VkDescriptorPoolSize type_count = { - .type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, - .descriptorCount = DEMO_TEXTURE_COUNT, - }; - const VkDescriptorPoolCreateInfo descriptor_pool = { - .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, - .pNext = NULL, - .maxSets = 1, - .poolSizeCount = 1, - .pPoolSizes = &type_count, - }; - VkResult U_ASSERT_ONLY err; - - err = vkCreateDescriptorPool(demo->device, &descriptor_pool, NULL, - &demo->desc_pool); - assert(!err); -} - -static void demo_prepare_descriptor_set(struct demo *demo) { - VkDescriptorImageInfo tex_descs[DEMO_TEXTURE_COUNT]; - VkWriteDescriptorSet write; - VkResult U_ASSERT_ONLY err; - uint32_t i; - - VkDescriptorSetAllocateInfo alloc_info = { - .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, - .pNext = NULL, - .descriptorPool = demo->desc_pool, - .descriptorSetCount = 1, - .pSetLayouts = &demo->desc_layout}; - err = vkAllocateDescriptorSets(demo->device, &alloc_info, &demo->desc_set); - assert(!err); - - memset(&tex_descs, 0, sizeof(tex_descs)); - for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { - tex_descs[i].sampler = demo->textures[i].sampler; - tex_descs[i].imageView = demo->textures[i].view; - tex_descs[i].imageLayout = VK_IMAGE_LAYOUT_GENERAL; - } - - memset(&write, 0, sizeof(write)); - write.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; - write.dstSet = demo->desc_set; - write.descriptorCount = DEMO_TEXTURE_COUNT; - write.descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; - write.pImageInfo = tex_descs; - - vkUpdateDescriptorSets(demo->device, 1, &write, 0, NULL); -} - -static void demo_prepare_framebuffers(struct demo *demo) { - VkImageView attachments[2]; - attachments[1] = demo->depth.view; - - const VkFramebufferCreateInfo fb_info = { - .sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, - .pNext = NULL, - .renderPass = demo->render_pass, - .attachmentCount = 2, - .pAttachments = attachments, - .width = demo->width, - .height = demo->height, - .layers = 1, - }; - VkResult U_ASSERT_ONLY err; - uint32_t i; - - demo->framebuffers = (VkFramebuffer *)malloc(demo->swapchainImageCount * - sizeof(VkFramebuffer)); - assert(demo->framebuffers); - - for (i = 0; i < demo->swapchainImageCount; i++) { - attachments[0] = demo->buffers[i].view; - err = vkCreateFramebuffer(demo->device, &fb_info, NULL, - &demo->framebuffers[i]); - assert(!err); - } -} - -static void demo_prepare(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - - const VkCommandPoolCreateInfo cmd_pool_info = { - .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, - .pNext = NULL, - .queueFamilyIndex = demo->graphics_queue_node_index, - .flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, - }; - err = vkCreateCommandPool(demo->device, &cmd_pool_info, NULL, - &demo->cmd_pool); - assert(!err); - - const VkCommandBufferAllocateInfo cmd = { - .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, - .pNext = NULL, - .commandPool = demo->cmd_pool, - .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, - .commandBufferCount = 1, - }; - err = vkAllocateCommandBuffers(demo->device, &cmd, &demo->draw_cmd); - assert(!err); - - demo_prepare_buffers(demo); - demo_prepare_depth(demo); - demo_prepare_textures(demo); - demo_prepare_vertices(demo); - demo_prepare_descriptor_layout(demo); - demo_prepare_render_pass(demo); - demo_prepare_pipeline(demo); - - demo_prepare_descriptor_pool(demo); - demo_prepare_descriptor_set(demo); - - demo_prepare_framebuffers(demo); -} - -static void demo_error_callback(int error, const char* description) { - printf("GLFW error: %s\n", description); - fflush(stdout); -} - -static void demo_key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { - if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) - glfwSetWindowShouldClose(window, GLFW_TRUE); -} - -static void demo_refresh_callback(GLFWwindow* window) { - struct demo* demo = glfwGetWindowUserPointer(window); - demo_draw(demo); -} - -static void demo_resize_callback(GLFWwindow* window, int width, int height) { - struct demo* demo = glfwGetWindowUserPointer(window); - demo->width = width; - demo->height = height; - demo_resize(demo); -} - -static void demo_run(struct demo *demo) { - while (!glfwWindowShouldClose(demo->window)) { - glfwPollEvents(); - - demo_draw(demo); - - if (demo->depthStencil > 0.99f) - demo->depthIncrement = -0.001f; - if (demo->depthStencil < 0.8f) - demo->depthIncrement = 0.001f; - - demo->depthStencil += demo->depthIncrement; - - // Wait for work to finish before updating MVP. - vkDeviceWaitIdle(demo->device); - demo->curFrame++; - if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) - glfwSetWindowShouldClose(demo->window, GLFW_TRUE); - } -} - -static void demo_create_window(struct demo *demo) { - glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); - - demo->window = glfwCreateWindow(demo->width, - demo->height, - APP_LONG_NAME, - NULL, - NULL); - if (!demo->window) { - // It didn't work, so try to give a useful error: - printf("Cannot create a window in which to draw!\n"); - fflush(stdout); - exit(1); - } - - glfwSetWindowUserPointer(demo->window, demo); - glfwSetWindowRefreshCallback(demo->window, demo_refresh_callback); - glfwSetFramebufferSizeCallback(demo->window, demo_resize_callback); - glfwSetKeyCallback(demo->window, demo_key_callback); -} - -/* - * Return 1 (true) if all layer names specified in check_names - * can be found in given layer properties. - */ -static VkBool32 demo_check_layers(uint32_t check_count, const char **check_names, - uint32_t layer_count, - VkLayerProperties *layers) { - uint32_t i, j; - for (i = 0; i < check_count; i++) { - VkBool32 found = 0; - for (j = 0; j < layer_count; j++) { - if (!strcmp(check_names[i], layers[j].layerName)) { - found = 1; - break; - } - } - if (!found) { - fprintf(stderr, "Cannot find layer: %s\n", check_names[i]); - return 0; - } - } - return 1; -} - -static void demo_init_vk(struct demo *demo) { - VkResult err; - uint32_t i = 0; - uint32_t required_extension_count = 0; - uint32_t instance_extension_count = 0; - uint32_t instance_layer_count = 0; - uint32_t validation_layer_count = 0; - const char **required_extensions = NULL; - const char **instance_validation_layers = NULL; - demo->enabled_extension_count = 0; - demo->enabled_layer_count = 0; - - char *instance_validation_layers_alt1[] = { - "VK_LAYER_LUNARG_standard_validation" - }; - - char *instance_validation_layers_alt2[] = { - "VK_LAYER_GOOGLE_threading", "VK_LAYER_LUNARG_parameter_validation", - "VK_LAYER_LUNARG_object_tracker", "VK_LAYER_LUNARG_image", - "VK_LAYER_LUNARG_core_validation", "VK_LAYER_LUNARG_swapchain", - "VK_LAYER_GOOGLE_unique_objects" - }; - - /* Look for validation layers */ - VkBool32 validation_found = 0; - if (demo->validate) { - - err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL); - assert(!err); - - instance_validation_layers = (const char**) instance_validation_layers_alt1; - if (instance_layer_count > 0) { - VkLayerProperties *instance_layers = - malloc(sizeof (VkLayerProperties) * instance_layer_count); - err = vkEnumerateInstanceLayerProperties(&instance_layer_count, - instance_layers); - assert(!err); - - - validation_found = demo_check_layers( - ARRAY_SIZE(instance_validation_layers_alt1), - instance_validation_layers, instance_layer_count, - instance_layers); - if (validation_found) { - demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt1); - demo->enabled_layers[0] = "VK_LAYER_LUNARG_standard_validation"; - validation_layer_count = 1; - } else { - // use alternative set of validation layers - instance_validation_layers = - (const char**) instance_validation_layers_alt2; - demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2); - validation_found = demo_check_layers( - ARRAY_SIZE(instance_validation_layers_alt2), - instance_validation_layers, instance_layer_count, - instance_layers); - validation_layer_count = - ARRAY_SIZE(instance_validation_layers_alt2); - for (i = 0; i < validation_layer_count; i++) { - demo->enabled_layers[i] = instance_validation_layers[i]; - } - } - free(instance_layers); - } - - if (!validation_found) { - ERR_EXIT("vkEnumerateInstanceLayerProperties failed to find " - "required validation layer.\n\n" - "Please look at the Getting Started guide for additional " - "information.\n", - "vkCreateInstance Failure"); - } - } - - /* Look for instance extensions */ - required_extensions = glfwGetRequiredInstanceExtensions(&required_extension_count); - if (!required_extensions) { - ERR_EXIT("glfwGetRequiredInstanceExtensions failed to find the " - "platform surface extensions.\n\nDo you have a compatible " - "Vulkan installable client driver (ICD) installed?\nPlease " - "look at the Getting Started guide for additional " - "information.\n", - "vkCreateInstance Failure"); - } - - for (i = 0; i < required_extension_count; i++) { - demo->extension_names[demo->enabled_extension_count++] = required_extensions[i]; - assert(demo->enabled_extension_count < 64); - } - - err = vkEnumerateInstanceExtensionProperties( - NULL, &instance_extension_count, NULL); - assert(!err); - - if (instance_extension_count > 0) { - VkExtensionProperties *instance_extensions = - malloc(sizeof(VkExtensionProperties) * instance_extension_count); - err = vkEnumerateInstanceExtensionProperties( - NULL, &instance_extension_count, instance_extensions); - assert(!err); - for (i = 0; i < instance_extension_count; i++) { - if (!strcmp(VK_EXT_DEBUG_REPORT_EXTENSION_NAME, - instance_extensions[i].extensionName)) { - if (demo->validate) { - demo->extension_names[demo->enabled_extension_count++] = - VK_EXT_DEBUG_REPORT_EXTENSION_NAME; - } - } - assert(demo->enabled_extension_count < 64); - } - - free(instance_extensions); - } - - const VkApplicationInfo app = { - .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, - .pNext = NULL, - .pApplicationName = APP_SHORT_NAME, - .applicationVersion = 0, - .pEngineName = APP_SHORT_NAME, - .engineVersion = 0, - .apiVersion = VK_API_VERSION_1_0, - }; - VkInstanceCreateInfo inst_info = { - .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, - .pNext = NULL, - .pApplicationInfo = &app, - .enabledLayerCount = demo->enabled_layer_count, - .ppEnabledLayerNames = (const char *const *)instance_validation_layers, - .enabledExtensionCount = demo->enabled_extension_count, - .ppEnabledExtensionNames = (const char *const *)demo->extension_names, - }; - - uint32_t gpu_count; - - err = vkCreateInstance(&inst_info, NULL, &demo->inst); - if (err == VK_ERROR_INCOMPATIBLE_DRIVER) { - ERR_EXIT("Cannot find a compatible Vulkan installable client driver " - "(ICD).\n\nPlease look at the Getting Started guide for " - "additional information.\n", - "vkCreateInstance Failure"); - } else if (err == VK_ERROR_EXTENSION_NOT_PRESENT) { - ERR_EXIT("Cannot find a specified extension library" - ".\nMake sure your layers path is set appropriately\n", - "vkCreateInstance Failure"); - } else if (err) { - ERR_EXIT("vkCreateInstance failed.\n\nDo you have a compatible Vulkan " - "installable client driver (ICD) installed?\nPlease look at " - "the Getting Started guide for additional information.\n", - "vkCreateInstance Failure"); - } - - /* Make initial call to query gpu_count, then second call for gpu info*/ - err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, NULL); - assert(!err && gpu_count > 0); - - if (gpu_count > 0) { - VkPhysicalDevice *physical_devices = - malloc(sizeof(VkPhysicalDevice) * gpu_count); - err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, - physical_devices); - assert(!err); - /* For tri demo we just grab the first physical device */ - demo->gpu = physical_devices[0]; - free(physical_devices); - } else { - ERR_EXIT("vkEnumeratePhysicalDevices reported zero accessible devices." - "\n\nDo you have a compatible Vulkan installable client" - " driver (ICD) installed?\nPlease look at the Getting Started" - " guide for additional information.\n", - "vkEnumeratePhysicalDevices Failure"); - } - - /* Look for device extensions */ - uint32_t device_extension_count = 0; - VkBool32 swapchainExtFound = 0; - demo->enabled_extension_count = 0; - - err = vkEnumerateDeviceExtensionProperties(demo->gpu, NULL, - &device_extension_count, NULL); - assert(!err); - - if (device_extension_count > 0) { - VkExtensionProperties *device_extensions = - malloc(sizeof(VkExtensionProperties) * device_extension_count); - err = vkEnumerateDeviceExtensionProperties( - demo->gpu, NULL, &device_extension_count, device_extensions); - assert(!err); - - for (i = 0; i < device_extension_count; i++) { - if (!strcmp(VK_KHR_SWAPCHAIN_EXTENSION_NAME, - device_extensions[i].extensionName)) { - swapchainExtFound = 1; - demo->extension_names[demo->enabled_extension_count++] = - VK_KHR_SWAPCHAIN_EXTENSION_NAME; - } - assert(demo->enabled_extension_count < 64); - } - - free(device_extensions); - } - - if (!swapchainExtFound) { - ERR_EXIT("vkEnumerateDeviceExtensionProperties failed to find " - "the " VK_KHR_SWAPCHAIN_EXTENSION_NAME - " extension.\n\nDo you have a compatible " - "Vulkan installable client driver (ICD) installed?\nPlease " - "look at the Getting Started guide for additional " - "information.\n", - "vkCreateInstance Failure"); - } - - if (demo->validate) { - demo->CreateDebugReportCallback = - (PFN_vkCreateDebugReportCallbackEXT)vkGetInstanceProcAddr( - demo->inst, "vkCreateDebugReportCallbackEXT"); - demo->DestroyDebugReportCallback = - (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr( - demo->inst, "vkDestroyDebugReportCallbackEXT"); - if (!demo->CreateDebugReportCallback) { - ERR_EXIT( - "GetProcAddr: Unable to find vkCreateDebugReportCallbackEXT\n", - "vkGetProcAddr Failure"); - } - if (!demo->DestroyDebugReportCallback) { - ERR_EXIT( - "GetProcAddr: Unable to find vkDestroyDebugReportCallbackEXT\n", - "vkGetProcAddr Failure"); - } - demo->DebugReportMessage = - (PFN_vkDebugReportMessageEXT)vkGetInstanceProcAddr( - demo->inst, "vkDebugReportMessageEXT"); - if (!demo->DebugReportMessage) { - ERR_EXIT("GetProcAddr: Unable to find vkDebugReportMessageEXT\n", - "vkGetProcAddr Failure"); - } - - VkDebugReportCallbackCreateInfoEXT dbgCreateInfo; - dbgCreateInfo.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT; - dbgCreateInfo.flags = - VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT; - dbgCreateInfo.pfnCallback = demo->use_break ? BreakCallback : dbgFunc; - dbgCreateInfo.pUserData = demo; - dbgCreateInfo.pNext = NULL; - err = demo->CreateDebugReportCallback(demo->inst, &dbgCreateInfo, NULL, - &demo->msg_callback); - switch (err) { - case VK_SUCCESS: - break; - case VK_ERROR_OUT_OF_HOST_MEMORY: - ERR_EXIT("CreateDebugReportCallback: out of host memory\n", - "CreateDebugReportCallback Failure"); - break; - default: - ERR_EXIT("CreateDebugReportCallback: unknown failure\n", - "CreateDebugReportCallback Failure"); - break; - } - } - - // Having these GIPA queries of device extension entry points both - // BEFORE and AFTER vkCreateDevice is a good test for the loader - GET_INSTANCE_PROC_ADDR(demo->inst, GetPhysicalDeviceSurfaceCapabilitiesKHR); - GET_INSTANCE_PROC_ADDR(demo->inst, GetPhysicalDeviceSurfaceFormatsKHR); - GET_INSTANCE_PROC_ADDR(demo->inst, GetPhysicalDeviceSurfacePresentModesKHR); - GET_INSTANCE_PROC_ADDR(demo->inst, GetPhysicalDeviceSurfaceSupportKHR); - - vkGetPhysicalDeviceProperties(demo->gpu, &demo->gpu_props); - - // Query with NULL data to get count - vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, - NULL); - - demo->queue_props = (VkQueueFamilyProperties *)malloc( - demo->queue_count * sizeof(VkQueueFamilyProperties)); - vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, - demo->queue_props); - assert(demo->queue_count >= 1); - - vkGetPhysicalDeviceFeatures(demo->gpu, &demo->gpu_features); - - // Graphics queue and MemMgr queue can be separate. - // TODO: Add support for separate queues, including synchronization, - // and appropriate tracking for QueueSubmit -} - -static void demo_init_device(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - - float queue_priorities[1] = {0.0}; - const VkDeviceQueueCreateInfo queue = { - .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, - .pNext = NULL, - .queueFamilyIndex = demo->graphics_queue_node_index, - .queueCount = 1, - .pQueuePriorities = queue_priorities}; - - - VkPhysicalDeviceFeatures features; - memset(&features, 0, sizeof(features)); - if (demo->gpu_features.shaderClipDistance) { - features.shaderClipDistance = VK_TRUE; - } - - VkDeviceCreateInfo device = { - .sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, - .pNext = NULL, - .queueCreateInfoCount = 1, - .pQueueCreateInfos = &queue, - .enabledLayerCount = 0, - .ppEnabledLayerNames = NULL, - .enabledExtensionCount = demo->enabled_extension_count, - .ppEnabledExtensionNames = (const char *const *)demo->extension_names, - .pEnabledFeatures = &features, - }; - - err = vkCreateDevice(demo->gpu, &device, NULL, &demo->device); - assert(!err); - - GET_DEVICE_PROC_ADDR(demo->device, CreateSwapchainKHR); - GET_DEVICE_PROC_ADDR(demo->device, DestroySwapchainKHR); - GET_DEVICE_PROC_ADDR(demo->device, GetSwapchainImagesKHR); - GET_DEVICE_PROC_ADDR(demo->device, AcquireNextImageKHR); - GET_DEVICE_PROC_ADDR(demo->device, QueuePresentKHR); -} - -static void demo_init_vk_swapchain(struct demo *demo) { - VkResult U_ASSERT_ONLY err; - uint32_t i; - - // Create a WSI surface for the window: - glfwCreateWindowSurface(demo->inst, demo->window, NULL, &demo->surface); - - // Iterate over each queue to learn whether it supports presenting: - VkBool32 *supportsPresent = - (VkBool32 *)malloc(demo->queue_count * sizeof(VkBool32)); - for (i = 0; i < demo->queue_count; i++) { - demo->fpGetPhysicalDeviceSurfaceSupportKHR(demo->gpu, i, demo->surface, - &supportsPresent[i]); - } - - // Search for a graphics and a present queue in the array of queue - // families, try to find one that supports both - uint32_t graphicsQueueNodeIndex = UINT32_MAX; - uint32_t presentQueueNodeIndex = UINT32_MAX; - for (i = 0; i < demo->queue_count; i++) { - if ((demo->queue_props[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) != 0) { - if (graphicsQueueNodeIndex == UINT32_MAX) { - graphicsQueueNodeIndex = i; - } - - if (supportsPresent[i] == VK_TRUE) { - graphicsQueueNodeIndex = i; - presentQueueNodeIndex = i; - break; - } - } - } - if (presentQueueNodeIndex == UINT32_MAX) { - // If didn't find a queue that supports both graphics and present, then - // find a separate present queue. - for (i = 0; i < demo->queue_count; ++i) { - if (supportsPresent[i] == VK_TRUE) { - presentQueueNodeIndex = i; - break; - } - } - } - free(supportsPresent); - - // Generate error if could not find both a graphics and a present queue - if (graphicsQueueNodeIndex == UINT32_MAX || - presentQueueNodeIndex == UINT32_MAX) { - ERR_EXIT("Could not find a graphics and a present queue\n", - "Swapchain Initialization Failure"); - } - - // TODO: Add support for separate queues, including presentation, - // synchronization, and appropriate tracking for QueueSubmit. - // NOTE: While it is possible for an application to use a separate graphics - // and a present queues, this demo program assumes it is only using - // one: - if (graphicsQueueNodeIndex != presentQueueNodeIndex) { - ERR_EXIT("Could not find a common graphics and a present queue\n", - "Swapchain Initialization Failure"); - } - - demo->graphics_queue_node_index = graphicsQueueNodeIndex; - - demo_init_device(demo); - - vkGetDeviceQueue(demo->device, demo->graphics_queue_node_index, 0, - &demo->queue); - - // Get the list of VkFormat's that are supported: - uint32_t formatCount; - err = demo->fpGetPhysicalDeviceSurfaceFormatsKHR(demo->gpu, demo->surface, - &formatCount, NULL); - assert(!err); - VkSurfaceFormatKHR *surfFormats = - (VkSurfaceFormatKHR *)malloc(formatCount * sizeof(VkSurfaceFormatKHR)); - err = demo->fpGetPhysicalDeviceSurfaceFormatsKHR(demo->gpu, demo->surface, - &formatCount, surfFormats); - assert(!err); - // If the format list includes just one entry of VK_FORMAT_UNDEFINED, - // the surface has no preferred format. Otherwise, at least one - // supported format will be returned. - if (formatCount == 1 && surfFormats[0].format == VK_FORMAT_UNDEFINED) { - demo->format = VK_FORMAT_B8G8R8A8_UNORM; - } else { - assert(formatCount >= 1); - demo->format = surfFormats[0].format; - } - demo->color_space = surfFormats[0].colorSpace; - - demo->curFrame = 0; - - // Get Memory information and properties - vkGetPhysicalDeviceMemoryProperties(demo->gpu, &demo->memory_properties); -} - -static void demo_init_connection(struct demo *demo) { - glfwSetErrorCallback(demo_error_callback); - - if (!glfwInit()) { - printf("Cannot initialize GLFW.\nExiting ...\n"); - fflush(stdout); - exit(1); - } - - if (!glfwVulkanSupported()) { - printf("GLFW failed to find the Vulkan loader.\nExiting ...\n"); - fflush(stdout); - exit(1); - } -} - -static void demo_init(struct demo *demo, const int argc, const char *argv[]) -{ - int i; - memset(demo, 0, sizeof(*demo)); - demo->frameCount = INT32_MAX; - - for (i = 1; i < argc; i++) { - if (strcmp(argv[i], "--use_staging") == 0) { - demo->use_staging_buffer = true; - continue; - } - if (strcmp(argv[i], "--break") == 0) { - demo->use_break = true; - continue; - } - if (strcmp(argv[i], "--validate") == 0) { - demo->validate = true; - continue; - } - if (strcmp(argv[i], "--c") == 0 && demo->frameCount == INT32_MAX && - i < argc - 1 && sscanf(argv[i + 1], "%d", &demo->frameCount) == 1 && - demo->frameCount >= 0) { - i++; - continue; - } - - fprintf(stderr, "Usage:\n %s [--use_staging] [--validate] [--break] " - "[--c ]\n", - APP_SHORT_NAME); - fflush(stderr); - exit(1); - } - - demo_init_connection(demo); - demo_init_vk(demo); - - demo->width = 300; - demo->height = 300; - demo->depthStencil = 1.0; - demo->depthIncrement = -0.01f; -} - -static void demo_cleanup(struct demo *demo) { - uint32_t i; - - for (i = 0; i < demo->swapchainImageCount; i++) { - vkDestroyFramebuffer(demo->device, demo->framebuffers[i], NULL); - } - free(demo->framebuffers); - vkDestroyDescriptorPool(demo->device, demo->desc_pool, NULL); - - if (demo->setup_cmd) { - vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd); - } - vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd); - vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL); - - vkDestroyPipeline(demo->device, demo->pipeline, NULL); - vkDestroyRenderPass(demo->device, demo->render_pass, NULL); - vkDestroyPipelineLayout(demo->device, demo->pipeline_layout, NULL); - vkDestroyDescriptorSetLayout(demo->device, demo->desc_layout, NULL); - - vkDestroyBuffer(demo->device, demo->vertices.buf, NULL); - vkFreeMemory(demo->device, demo->vertices.mem, NULL); - - for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { - vkDestroyImageView(demo->device, demo->textures[i].view, NULL); - vkDestroyImage(demo->device, demo->textures[i].image, NULL); - vkFreeMemory(demo->device, demo->textures[i].mem, NULL); - vkDestroySampler(demo->device, demo->textures[i].sampler, NULL); - } - - for (i = 0; i < demo->swapchainImageCount; i++) { - vkDestroyImageView(demo->device, demo->buffers[i].view, NULL); - } - - vkDestroyImageView(demo->device, demo->depth.view, NULL); - vkDestroyImage(demo->device, demo->depth.image, NULL); - vkFreeMemory(demo->device, demo->depth.mem, NULL); - - demo->fpDestroySwapchainKHR(demo->device, demo->swapchain, NULL); - free(demo->buffers); - - vkDestroyDevice(demo->device, NULL); - if (demo->validate) { - demo->DestroyDebugReportCallback(demo->inst, demo->msg_callback, NULL); - } - vkDestroySurfaceKHR(demo->inst, demo->surface, NULL); - vkDestroyInstance(demo->inst, NULL); - - free(demo->queue_props); - - glfwDestroyWindow(demo->window); - glfwTerminate(); -} - -static void demo_resize(struct demo *demo) { - uint32_t i; - - // In order to properly resize the window, we must re-create the swapchain - // AND redo the command buffers, etc. - // - // First, perform part of the demo_cleanup() function: - - for (i = 0; i < demo->swapchainImageCount; i++) { - vkDestroyFramebuffer(demo->device, demo->framebuffers[i], NULL); - } - free(demo->framebuffers); - vkDestroyDescriptorPool(demo->device, demo->desc_pool, NULL); - - if (demo->setup_cmd) { - vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd); - } - vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd); - vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL); - - vkDestroyPipeline(demo->device, demo->pipeline, NULL); - vkDestroyRenderPass(demo->device, demo->render_pass, NULL); - vkDestroyPipelineLayout(demo->device, demo->pipeline_layout, NULL); - vkDestroyDescriptorSetLayout(demo->device, demo->desc_layout, NULL); - - vkDestroyBuffer(demo->device, demo->vertices.buf, NULL); - vkFreeMemory(demo->device, demo->vertices.mem, NULL); - - for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { - vkDestroyImageView(demo->device, demo->textures[i].view, NULL); - vkDestroyImage(demo->device, demo->textures[i].image, NULL); - vkFreeMemory(demo->device, demo->textures[i].mem, NULL); - vkDestroySampler(demo->device, demo->textures[i].sampler, NULL); - } - - for (i = 0; i < demo->swapchainImageCount; i++) { - vkDestroyImageView(demo->device, demo->buffers[i].view, NULL); - } - - vkDestroyImageView(demo->device, demo->depth.view, NULL); - vkDestroyImage(demo->device, demo->depth.image, NULL); - vkFreeMemory(demo->device, demo->depth.mem, NULL); - - free(demo->buffers); - - // Second, re-perform the demo_prepare() function, which will re-create the - // swapchain: - demo_prepare(demo); -} - -int main(const int argc, const char *argv[]) { - struct demo demo; - - demo_init(&demo, argc, argv); - demo_create_window(&demo); - demo_init_vk_swapchain(&demo); - - demo_prepare(&demo); - demo_run(&demo); - - demo_cleanup(&demo); - - return validation_error; -} - diff --git a/external/GLFW/CMake/GenerateMappings.cmake b/external/glfw-3.3.4/CMake/GenerateMappings.cmake similarity index 98% rename from external/GLFW/CMake/GenerateMappings.cmake rename to external/glfw-3.3.4/CMake/GenerateMappings.cmake index 9fb304e..7a88e3d 100644 --- a/external/GLFW/CMake/GenerateMappings.cmake +++ b/external/glfw-3.3.4/CMake/GenerateMappings.cmake @@ -24,7 +24,7 @@ endif() file(STRINGS "${source_path}" lines) foreach(line ${lines}) if ("${line}" MATCHES "^[0-9a-fA-F].*$") - set(GLFW_GAMEPAD_MAPPINGS "${GLFW_GAMEPAD_MAPPINGS}\"${line}\\n\"\n") + set(GLFW_GAMEPAD_MAPPINGS "${GLFW_GAMEPAD_MAPPINGS}\"${line}\",\n") endif() endforeach() diff --git a/external/GLFW/CMake/MacOSXBundleInfo.plist.in b/external/glfw-3.3.4/CMake/MacOSXBundleInfo.plist.in similarity index 100% rename from external/GLFW/CMake/MacOSXBundleInfo.plist.in rename to external/glfw-3.3.4/CMake/MacOSXBundleInfo.plist.in diff --git a/external/glfw-3.3.4/CMake/i686-w64-mingw32-clang.cmake b/external/glfw-3.3.4/CMake/i686-w64-mingw32-clang.cmake new file mode 100644 index 0000000..8726b23 --- /dev/null +++ b/external/glfw-3.3.4/CMake/i686-w64-mingw32-clang.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 32-bit MinGW-w64 Clang +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "i686-w64-mingw32-clang") +SET(CMAKE_CXX_COMPILER "i686-w64-mingw32-clang++") +SET(CMAKE_RC_COMPILER "i686-w64-mingw32-windres") +SET(CMAKE_RANLIB "i686-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/external/GLFW/CMake/i686-w64-mingw32.cmake b/external/glfw-3.3.4/CMake/i686-w64-mingw32.cmake similarity index 79% rename from external/GLFW/CMake/i686-w64-mingw32.cmake rename to external/glfw-3.3.4/CMake/i686-w64-mingw32.cmake index 9bd6093..2ca4dcd 100644 --- a/external/GLFW/CMake/i686-w64-mingw32.cmake +++ b/external/glfw-3.3.4/CMake/i686-w64-mingw32.cmake @@ -1,4 +1,4 @@ -# Define the environment for cross compiling from Linux to Win32 +# Define the environment for cross-compiling with 32-bit MinGW-w64 GCC SET(CMAKE_SYSTEM_NAME Windows) # Target system name SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_C_COMPILER "i686-w64-mingw32-gcc") @@ -6,7 +6,7 @@ SET(CMAKE_CXX_COMPILER "i686-w64-mingw32-g++") SET(CMAKE_RC_COMPILER "i686-w64-mingw32-windres") SET(CMAKE_RANLIB "i686-w64-mingw32-ranlib") -# Configure the behaviour of the find commands +# Configure the behaviour of the find commands SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32") SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) diff --git a/external/glfw-3.3.4/CMake/modules/FindEpollShim.cmake b/external/glfw-3.3.4/CMake/modules/FindEpollShim.cmake new file mode 100644 index 0000000..2facb41 --- /dev/null +++ b/external/glfw-3.3.4/CMake/modules/FindEpollShim.cmake @@ -0,0 +1,17 @@ +# Find EpollShim +# Once done, this will define +# +# EPOLLSHIM_FOUND - System has EpollShim +# EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories +# EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim + +find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim) +find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib) + +if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + set(EPOLLSHIM_FOUND TRUE) +endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(EPOLLSHIM DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS) +mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES) diff --git a/external/GLFW/CMake/modules/FindOSMesa.cmake b/external/glfw-3.3.4/CMake/modules/FindOSMesa.cmake similarity index 100% rename from external/GLFW/CMake/modules/FindOSMesa.cmake rename to external/glfw-3.3.4/CMake/modules/FindOSMesa.cmake diff --git a/external/GLFW/CMake/modules/FindWaylandProtocols.cmake b/external/glfw-3.3.4/CMake/modules/FindWaylandProtocols.cmake similarity index 100% rename from external/GLFW/CMake/modules/FindWaylandProtocols.cmake rename to external/glfw-3.3.4/CMake/modules/FindWaylandProtocols.cmake diff --git a/external/GLFW/CMake/modules/FindXKBCommon.cmake b/external/glfw-3.3.4/CMake/modules/FindXKBCommon.cmake similarity index 100% rename from external/GLFW/CMake/modules/FindXKBCommon.cmake rename to external/glfw-3.3.4/CMake/modules/FindXKBCommon.cmake diff --git a/external/glfw-3.3.4/CMake/x86_64-w64-mingw32-clang.cmake b/external/glfw-3.3.4/CMake/x86_64-w64-mingw32-clang.cmake new file mode 100644 index 0000000..60f7914 --- /dev/null +++ b/external/glfw-3.3.4/CMake/x86_64-w64-mingw32-clang.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 64-bit MinGW-w64 Clang +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-clang") +SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-clang++") +SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres") +SET(CMAKE_RANLIB "x86_64-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/external/GLFW/CMake/x86_64-w64-mingw32.cmake b/external/glfw-3.3.4/CMake/x86_64-w64-mingw32.cmake similarity index 80% rename from external/GLFW/CMake/x86_64-w64-mingw32.cmake rename to external/glfw-3.3.4/CMake/x86_64-w64-mingw32.cmake index 84b2c70..063e845 100644 --- a/external/GLFW/CMake/x86_64-w64-mingw32.cmake +++ b/external/glfw-3.3.4/CMake/x86_64-w64-mingw32.cmake @@ -1,4 +1,4 @@ -# Define the environment for cross compiling from Linux to Win32 +# Define the environment for cross-compiling with 64-bit MinGW-w64 GCC SET(CMAKE_SYSTEM_NAME Windows) # Target system name SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc") @@ -6,7 +6,7 @@ SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++") SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres") SET(CMAKE_RANLIB "x86_64-w64-mingw32-ranlib") -# Configure the behaviour of the find commands +# Configure the behaviour of the find commands SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32") SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) diff --git a/external/glfw-3.3.4/CMakeLists.txt b/external/glfw-3.3.4/CMakeLists.txt new file mode 100644 index 0000000..e2962df --- /dev/null +++ b/external/glfw-3.3.4/CMakeLists.txt @@ -0,0 +1,381 @@ +cmake_minimum_required(VERSION 3.0) + +project(GLFW VERSION 3.3.4 LANGUAGES C) + +set(CMAKE_LEGACY_CYGWIN_WIN32 OFF) + +if (POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() + +if (POLICY CMP0069) + cmake_policy(SET CMP0069 NEW) +endif() + +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + +option(BUILD_SHARED_LIBS "Build shared libraries" OFF) +option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ON) +option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON) +option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON) +option(GLFW_INSTALL "Generate installation target" ON) +option(GLFW_VULKAN_STATIC "Assume the Vulkan loader is linked with the application" OFF) + +include(GNUInstallDirs) +include(CMakeDependentOption) + +cmake_dependent_option(GLFW_USE_OSMESA "Use OSMesa for offscreen context creation" OFF + "UNIX" OFF) +cmake_dependent_option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF + "WIN32" OFF) +cmake_dependent_option(GLFW_USE_WAYLAND "Use Wayland for window creation" OFF + "UNIX;NOT APPLE" OFF) +cmake_dependent_option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON + "MSVC" OFF) + +if (BUILD_SHARED_LIBS) + set(_GLFW_BUILD_DLL 1) +endif() + +if (BUILD_SHARED_LIBS AND UNIX) + # On Unix-like systems, shared libraries can use the soname system. + set(GLFW_LIB_NAME glfw) +else() + set(GLFW_LIB_NAME glfw3) +endif() + +if (GLFW_VULKAN_STATIC) + if (BUILD_SHARED_LIBS) + # If you absolutely must do this, remove this line and add the Vulkan + # loader static library via the CMAKE_SHARED_LINKER_FLAGS + message(FATAL_ERROR "You are trying to link the Vulkan loader static library into the GLFW shared library") + endif() + set(_GLFW_VULKAN_STATIC 1) +endif() + +list(APPEND CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules") + +find_package(Threads REQUIRED) + +if (GLFW_BUILD_DOCS) + set(DOXYGEN_SKIP_DOT TRUE) + find_package(Doxygen) +endif() + +#-------------------------------------------------------------------- +# Set compiler specific flags +#-------------------------------------------------------------------- +if (MSVC) + if (MSVC90) + # Workaround for VS 2008 not shipping with the DirectX 9 SDK + include(CheckIncludeFile) + check_include_file(dinput.h DINPUT_H_FOUND) + if (NOT DINPUT_H_FOUND) + message(FATAL_ERROR "DirectX 9 headers not found; install DirectX 9 SDK") + endif() + # Workaround for VS 2008 not shipping with stdint.h + list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/vs2008") + endif() + + if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL) + foreach (flag CMAKE_C_FLAGS + CMAKE_C_FLAGS_DEBUG + CMAKE_C_FLAGS_RELEASE + CMAKE_C_FLAGS_MINSIZEREL + CMAKE_C_FLAGS_RELWITHDEBINFO) + + if (${flag} MATCHES "/MD") + string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}") + endif() + if (${flag} MATCHES "/MDd") + string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}") + endif() + + endforeach() + endif() +endif() + +if (MINGW) + # Workaround for legacy MinGW not providing XInput and DirectInput + include(CheckIncludeFile) + + check_include_file(dinput.h DINPUT_H_FOUND) + check_include_file(xinput.h XINPUT_H_FOUND) + if (NOT DINPUT_H_FOUND OR NOT XINPUT_H_FOUND) + list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/mingw") + endif() + + # Enable link-time exploit mitigation features enabled by default on MSVC + include(CheckCCompilerFlag) + + # Compatibility with data execution prevention (DEP) + set(CMAKE_REQUIRED_FLAGS "-Wl,--nxcompat") + check_c_compiler_flag("" _GLFW_HAS_DEP) + if (_GLFW_HAS_DEP) + set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--nxcompat ${CMAKE_SHARED_LINKER_FLAGS}") + endif() + + # Compatibility with address space layout randomization (ASLR) + set(CMAKE_REQUIRED_FLAGS "-Wl,--dynamicbase") + check_c_compiler_flag("" _GLFW_HAS_ASLR) + if (_GLFW_HAS_ASLR) + set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--dynamicbase ${CMAKE_SHARED_LINKER_FLAGS}") + endif() + + # Compatibility with 64-bit address space layout randomization (ASLR) + set(CMAKE_REQUIRED_FLAGS "-Wl,--high-entropy-va") + check_c_compiler_flag("" _GLFW_HAS_64ASLR) + if (_GLFW_HAS_64ASLR) + set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--high-entropy-va ${CMAKE_SHARED_LINKER_FLAGS}") + endif() + + # Clear flags again to avoid breaking later tests + set(CMAKE_REQUIRED_FLAGS) +endif() + +#-------------------------------------------------------------------- +# Detect and select backend APIs +#-------------------------------------------------------------------- +if (GLFW_USE_WAYLAND) + set(_GLFW_WAYLAND 1) + message(STATUS "Using Wayland for window creation") +elseif (GLFW_USE_OSMESA) + set(_GLFW_OSMESA 1) + message(STATUS "Using OSMesa for headless context creation") +elseif (WIN32) + set(_GLFW_WIN32 1) + message(STATUS "Using Win32 for window creation") +elseif (APPLE) + set(_GLFW_COCOA 1) + message(STATUS "Using Cocoa for window creation") +elseif (UNIX) + set(_GLFW_X11 1) + message(STATUS "Using X11 for window creation") +else() + message(FATAL_ERROR "No supported platform was detected") +endif() + +#-------------------------------------------------------------------- +# Find and add Unix math and time libraries +#-------------------------------------------------------------------- +if (UNIX AND NOT APPLE) + find_library(RT_LIBRARY rt) + mark_as_advanced(RT_LIBRARY) + if (RT_LIBRARY) + list(APPEND glfw_LIBRARIES "${RT_LIBRARY}") + list(APPEND glfw_PKG_LIBS "-lrt") + endif() + + find_library(MATH_LIBRARY m) + mark_as_advanced(MATH_LIBRARY) + if (MATH_LIBRARY) + list(APPEND glfw_LIBRARIES "${MATH_LIBRARY}") + list(APPEND glfw_PKG_LIBS "-lm") + endif() + + if (CMAKE_DL_LIBS) + list(APPEND glfw_LIBRARIES "${CMAKE_DL_LIBS}") + list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}") + endif() +endif() + +#-------------------------------------------------------------------- +# Use Win32 for window creation +#-------------------------------------------------------------------- +if (_GLFW_WIN32) + + list(APPEND glfw_PKG_LIBS "-lgdi32") + + if (GLFW_USE_HYBRID_HPG) + set(_GLFW_USE_HYBRID_HPG 1) + endif() +endif() + +#-------------------------------------------------------------------- +# Use X11 for window creation +#-------------------------------------------------------------------- +if (_GLFW_X11) + + find_package(X11 REQUIRED) + + list(APPEND glfw_PKG_DEPS "x11") + + # Set up library and include paths + list(APPEND glfw_INCLUDE_DIRS "${X11_X11_INCLUDE_PATH}") + list(APPEND glfw_LIBRARIES "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}") + + # Check for XRandR (modern resolution switching and gamma control) + if (NOT X11_Xrandr_INCLUDE_PATH) + message(FATAL_ERROR "RandR headers not found; install libxrandr development package") + endif() + + # Check for Xinerama (legacy multi-monitor support) + if (NOT X11_Xinerama_INCLUDE_PATH) + message(FATAL_ERROR "Xinerama headers not found; install libxinerama development package") + endif() + + # Check for Xkb (X keyboard extension) + if (NOT X11_Xkb_INCLUDE_PATH) + message(FATAL_ERROR "XKB headers not found; install X11 development package") + endif() + + # Check for Xcursor (cursor creation from RGBA images) + if (NOT X11_Xcursor_INCLUDE_PATH) + message(FATAL_ERROR "Xcursor headers not found; install libxcursor development package") + endif() + + # Check for XInput (modern HID input) + if (NOT X11_Xi_INCLUDE_PATH) + message(FATAL_ERROR "XInput headers not found; install libxi development package") + endif() + + list(APPEND glfw_INCLUDE_DIRS "${X11_Xrandr_INCLUDE_PATH}" + "${X11_Xinerama_INCLUDE_PATH}" + "${X11_Xkb_INCLUDE_PATH}" + "${X11_Xcursor_INCLUDE_PATH}" + "${X11_Xi_INCLUDE_PATH}") +endif() + +#-------------------------------------------------------------------- +# Use Wayland for window creation +#-------------------------------------------------------------------- +if (_GLFW_WAYLAND) + find_package(ECM REQUIRED NO_MODULE) + list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}") + + find_package(Wayland REQUIRED Client Cursor Egl) + find_package(WaylandScanner REQUIRED) + find_package(WaylandProtocols 1.15 REQUIRED) + + list(APPEND glfw_PKG_DEPS "wayland-client") + + list(APPEND glfw_INCLUDE_DIRS "${Wayland_INCLUDE_DIRS}") + list(APPEND glfw_LIBRARIES "${Wayland_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}") + + find_package(XKBCommon REQUIRED) + list(APPEND glfw_INCLUDE_DIRS "${XKBCOMMON_INCLUDE_DIRS}") + + include(CheckIncludeFiles) + include(CheckFunctionExists) + check_include_files(xkbcommon/xkbcommon-compose.h HAVE_XKBCOMMON_COMPOSE_H) + check_function_exists(memfd_create HAVE_MEMFD_CREATE) + + if (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")) + find_package(EpollShim) + if (EPOLLSHIM_FOUND) + list(APPEND glfw_INCLUDE_DIRS "${EPOLLSHIM_INCLUDE_DIRS}") + list(APPEND glfw_LIBRARIES "${EPOLLSHIM_LIBRARIES}") + endif() + endif() +endif() + +#-------------------------------------------------------------------- +# Use OSMesa for offscreen context creation +#-------------------------------------------------------------------- +if (_GLFW_OSMESA) + find_package(OSMesa REQUIRED) + list(APPEND glfw_LIBRARIES "${CMAKE_THREAD_LIBS_INIT}") +endif() + +#-------------------------------------------------------------------- +# Use Cocoa for window creation and NSOpenGL for context creation +#-------------------------------------------------------------------- +if (_GLFW_COCOA) + + list(APPEND glfw_LIBRARIES + "-framework Cocoa" + "-framework IOKit" + "-framework CoreFoundation") + + set(glfw_PKG_DEPS "") + set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation") +endif() + +#-------------------------------------------------------------------- +# Add the Vulkan loader as a dependency if necessary +#-------------------------------------------------------------------- +if (GLFW_VULKAN_STATIC) + list(APPEND glfw_PKG_DEPS "vulkan") +endif() + +#-------------------------------------------------------------------- +# Export GLFW library dependencies +#-------------------------------------------------------------------- +foreach(arg ${glfw_PKG_DEPS}) + set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} ${arg}") +endforeach() +foreach(arg ${glfw_PKG_LIBS}) + set(GLFW_PKG_LIBS "${GLFW_PKG_LIBS} ${arg}") +endforeach() + +#-------------------------------------------------------------------- +# Create generated files +#-------------------------------------------------------------------- +include(CMakePackageConfigHelpers) + +set(GLFW_CONFIG_PATH "${CMAKE_INSTALL_LIBDIR}/cmake/glfw3") + +configure_package_config_file(src/glfw3Config.cmake.in + src/glfw3Config.cmake + INSTALL_DESTINATION "${GLFW_CONFIG_PATH}" + NO_CHECK_REQUIRED_COMPONENTS_MACRO) + +write_basic_package_version_file(src/glfw3ConfigVersion.cmake + VERSION ${GLFW_VERSION} + COMPATIBILITY SameMajorVersion) + +configure_file(src/glfw_config.h.in src/glfw_config.h @ONLY) + +configure_file(src/glfw3.pc.in src/glfw3.pc @ONLY) + +#-------------------------------------------------------------------- +# Add subdirectories +#-------------------------------------------------------------------- +add_subdirectory(src) + +if (GLFW_BUILD_EXAMPLES) + add_subdirectory(examples) +endif() + +if (GLFW_BUILD_TESTS) + add_subdirectory(tests) +endif() + +if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) + add_subdirectory(docs) +endif() + +#-------------------------------------------------------------------- +# Install files other than the library +# The library is installed by src/CMakeLists.txt +#-------------------------------------------------------------------- +if (GLFW_INSTALL) + install(DIRECTORY include/GLFW DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h) + + install(FILES "${GLFW_BINARY_DIR}/src/glfw3Config.cmake" + "${GLFW_BINARY_DIR}/src/glfw3ConfigVersion.cmake" + DESTINATION "${GLFW_CONFIG_PATH}") + + install(EXPORT glfwTargets FILE glfw3Targets.cmake + EXPORT_LINK_INTERFACE_LIBRARIES + DESTINATION "${GLFW_CONFIG_PATH}") + install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + + # Only generate this target if no higher-level project already has + if (NOT TARGET uninstall) + configure_file(cmake_uninstall.cmake.in + cmake_uninstall.cmake IMMEDIATE @ONLY) + + add_custom_target(uninstall + "${CMAKE_COMMAND}" -P + "${GLFW_BINARY_DIR}/cmake_uninstall.cmake") + set_target_properties(uninstall PROPERTIES FOLDER "GLFW3") + endif() +endif() + diff --git a/external/GLFW/LICENSE.md b/external/glfw-3.3.4/LICENSE.md similarity index 88% rename from external/GLFW/LICENSE.md rename to external/glfw-3.3.4/LICENSE.md index e4c6682..7494a3f 100644 --- a/external/GLFW/LICENSE.md +++ b/external/glfw-3.3.4/LICENSE.md @@ -1,5 +1,6 @@ -Copyright (c) 2002-2006 Marcus Geelnard -Copyright (c) 2006-2016 Camilla Löwy +Copyright (c) 2002-2006 Marcus Geelnard + +Copyright (c) 2006-2019 Camilla Löwy This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages diff --git a/external/glfw-3.3.4/README.md b/external/glfw-3.3.4/README.md new file mode 100644 index 0000000..76907a1 --- /dev/null +++ b/external/glfw-3.3.4/README.md @@ -0,0 +1,353 @@ +# GLFW + +[![Build status](https://travis-ci.org/glfw/glfw.svg?branch=master)](https://travis-ci.org/glfw/glfw) +[![Build status](https://ci.appveyor.com/api/projects/status/0kf0ct9831i5l6sp/branch/master?svg=true)](https://ci.appveyor.com/project/elmindreda/glfw) +[![Coverity Scan](https://scan.coverity.com/projects/4884/badge.svg)](https://scan.coverity.com/projects/glfw-glfw) + +## Introduction + +GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan +application development. It provides a simple, platform-independent API for +creating windows, contexts and surfaces, reading input, handling events, etc. + +GLFW natively supports Windows, macOS and Linux and other Unix-like systems. On +Linux both X11 and Wayland are supported. + +GLFW is licensed under the [zlib/libpng +license](http://www.glfw.org/license.html). + +You can [download](http://www.glfw.org/download.html) the latest stable release +as source or Windows binaries, or fetch the `latest` branch from GitHub. Each +release starting with 3.0 also has a corresponding [annotated +tag](https://github.com/glfw/glfw/releases) with source and binary archives. + +The [documentation](http://www.glfw.org/docs/latest/) is available online and is +included in all source and binary archives. See the [release +notes](https://www.glfw.org/docs/latest/news.html) for new features, caveats and +deprecations in the latest release. For more details see the [version +history](http://www.glfw.org/changelog.html). + +The `master` branch is the stable integration branch and _should_ always compile +and run on all supported platforms, although details of newly added features may +change until they have been included in a release. New features and many bug +fixes live in [other branches](https://github.com/glfw/glfw/branches/all) until +they are stable enough to merge. + +If you are new to GLFW, you may find the +[tutorial](http://www.glfw.org/docs/latest/quick.html) for GLFW 3 useful. If +you have used GLFW 2 in the past, there is a [transition +guide](http://www.glfw.org/docs/latest/moving.html) for moving to the GLFW +3 API. + + +## Compiling GLFW + +GLFW itself requires only the headers and libraries for your OS and window +system. It does not need the headers for any context creation API (WGL, GLX, +EGL, NSGL, OSMesa) or rendering API (OpenGL, OpenGL ES, Vulkan) to enable +support for them. + +GLFW supports compilation on Windows with Visual C++ 2010 and later, MinGW and +MinGW-w64, on macOS with Clang and on Linux and other Unix-like systems with GCC +and Clang. It will likely compile in other environments as well, but this is +not regularly tested. + +There are [pre-compiled Windows binaries](http://www.glfw.org/download.html) +available for all supported compilers. + +See the [compilation guide](http://www.glfw.org/docs/latest/compile.html) for +more information about how to compile GLFW yourself. + + +## Using GLFW + +See the [documentation](http://www.glfw.org/docs/latest/) for tutorials, guides +and the API reference. + + +## Contributing to GLFW + +See the [contribution +guide](https://github.com/glfw/glfw/blob/master/docs/CONTRIBUTING.md) for +more information. + + +## System requirements + +GLFW supports Windows XP and later and macOS 10.8 and later. Linux and other +Unix-like systems running the X Window System are supported even without +a desktop environment or modern extensions, although some features require +a running window or clipboard manager. The OSMesa backend requires Mesa 6.3. + +See the [compatibility guide](http://www.glfw.org/docs/latest/compat.html) +in the documentation for more information. + + +## Dependencies + +GLFW itself depends only on the headers and libraries for your window system. + +The (experimental) Wayland backend also depends on the `extra-cmake-modules` +package, which is used to generate Wayland protocol headers. + +The examples and test programs depend on a number of tiny libraries. These are +located in the `deps/` directory. + + - [getopt\_port](https://github.com/kimgr/getopt_port/) for examples + with command-line options + - [TinyCThread](https://github.com/tinycthread/tinycthread) for threaded + examples + - [glad2](https://github.com/Dav1dde/glad) for loading OpenGL and Vulkan + functions + - [linmath.h](https://github.com/datenwolf/linmath.h) for linear algebra in + examples + - [Nuklear](https://github.com/Immediate-Mode-UI/Nuklear) for test and example UI + - [stb\_image\_write](https://github.com/nothings/stb) for writing images to disk + +The documentation is generated with [Doxygen](http://doxygen.org/) if CMake can +find that tool. + + +## Reporting bugs + +Bugs are reported to our [issue tracker](https://github.com/glfw/glfw/issues). +Please check the [contribution +guide](https://github.com/glfw/glfw/blob/master/docs/CONTRIBUTING.md) for +information on what to include when reporting a bug. + + +## Changelog + + - [X11] Bugfix: Some window attributes were not applied on leaving fullscreen + (#1863) + + +## Contact + +On [glfw.org](http://www.glfw.org/) you can find the latest version of GLFW, as +well as news, documentation and other information about the project. + +If you have questions related to the use of GLFW, we have a +[forum](https://discourse.glfw.org/), and the `#glfw` IRC channel on +[Freenode](http://freenode.net/). + +If you have a bug to report, a patch to submit or a feature you'd like to +request, please file it in the +[issue tracker](https://github.com/glfw/glfw/issues) on GitHub. + +Finally, if you're interested in helping out with the development of GLFW or +porting it to your favorite platform, join us on the forum, GitHub or IRC. + + +## Acknowledgements + +GLFW exists because people around the world donated their time and lent their +skills. + + - Bobyshev Alexander + - Laurent Aphecetche + - Matt Arsenault + - ashishgamedev + - David Avedissian + - Keith Bauer + - John Bartholomew + - Coşku Baş + - Niklas Behrens + - Andrew Belt + - Nevyn Bengtsson + - Niklas Bergström + - Denis Bernard + - Doug Binks + - blanco + - Kyle Brenneman + - Rok Breulj + - Kai Burjack + - Martin Capitanio + - Nicolas Caramelli + - David Carlier + - Arturo Castro + - Chi-kwan Chan + - Ian Clarkson + - Michał Cichoń + - Lambert Clara + - Anna Clarke + - Yaron Cohen-Tal + - Omar Cornut + - Andrew Corrigan + - Bailey Cosier + - Noel Cower + - Jason Daly + - Jarrod Davis + - Olivier Delannoy + - Paul R. Deppe + - Michael Dickens + - Роман Донченко + - Mario Dorn + - Wolfgang Draxinger + - Jonathan Dummer + - Ralph Eastwood + - Fredrik Ehnbom + - Robin Eklind + - Siavash Eliasi + - Felipe Ferreira + - Michael Fogleman + - Gerald Franz + - Mário Freitas + - GeO4d + - Marcus Geelnard + - Charles Giessen + - Ryan C. Gordon + - Stephen Gowen + - Kovid Goyal + - Eloi Marín Gratacós + - Stefan Gustavson + - Jonathan Hale + - hdf89shfdfs + - Sylvain Hellegouarch + - Matthew Henry + - heromyth + - Lucas Hinderberger + - Paul Holden + - Warren Hu + - Charles Huber + - IntellectualKitty + - Aaron Jacobs + - Erik S. V. Jansson + - Toni Jovanoski + - Arseny Kapoulkine + - Cem Karan + - Osman Keskin + - Josh Kilmer + - Byunghoon Kim + - Cameron King + - Peter Knut + - Christoph Kubisch + - Yuri Kunde Schlesner + - Rokas Kupstys + - Konstantin Käfer + - Eric Larson + - Francis Lecavalier + - Jong Won Lee + - Robin Leffmann + - Glenn Lewis + - Shane Liesegang + - Anders Lindqvist + - Leon Linhart + - Marco Lizza + - Eyal Lotem + - Aaron Loucks + - Luflosi + - lukect + - Tristam MacDonald + - Hans Mackowiak + - Дмитри Малышев + - Zbigniew Mandziejewicz + - Adam Marcus + - Célestin Marot + - Kyle McDonald + - David Medlock + - Bryce Mehring + - Jonathan Mercier + - Marcel Metz + - Liam Middlebrook + - Ave Milia + - Jonathan Miller + - Kenneth Miller + - Bruce Mitchener + - Jack Moffitt + - Jeff Molofee + - Alexander Monakov + - Pierre Morel + - Jon Morton + - Pierre Moulon + - Martins Mozeiko + - Julian Møller + - ndogxj + - Kristian Nielsen + - Kamil Nowakowski + - onox + - Denis Ovod + - Ozzy + - Andri Pálsson + - Peoro + - Braden Pellett + - Christopher Pelloux + - Arturo J. Pérez + - Vladimir Perminov + - Anthony Pesch + - Orson Peters + - Emmanuel Gil Peyrot + - Cyril Pichard + - Keith Pitt + - Stanislav Podgorskiy + - Konstantin Podsvirov + - Nathan Poirier + - Alexandre Pretyman + - Pablo Prietz + - przemekmirek + - pthom + - Guillaume Racicot + - Philip Rideout + - Eddie Ringle + - Max Risuhin + - Jorge Rodriguez + - Luca Rood + - Ed Ropple + - Aleksey Rybalkin + - Mikko Rytkönen + - Riku Salminen + - Brandon Schaefer + - Sebastian Schuberth + - Christian Sdunek + - Matt Sealey + - Steve Sexton + - Arkady Shapkin + - Ali Sherief + - Yoshiki Shibukawa + - Dmitri Shuralyov + - Daniel Skorupski + - Bradley Smith + - Cliff Smolinsky + - Patrick Snape + - Erlend Sogge Heggen + - Julian Squires + - Johannes Stein + - Pontus Stenetorp + - Michael Stocker + - Justin Stoecker + - Elviss Strazdins + - Paul Sultana + - Nathan Sweet + - TTK-Bandit + - Sergey Tikhomirov + - Arthur Tombs + - Ioannis Tsakpinis + - Samuli Tuomola + - Matthew Turner + - urraka + - Elias Vanderstuyft + - Stef Velzel + - Jari Vetoniemi + - Ricardo Vieira + - Nicholas Vitovitch + - Simon Voordouw + - Corentin Wallez + - Torsten Walluhn + - Patrick Walton + - Xo Wang + - Waris + - Jay Weisskopf + - Frank Wille + - Richard A. Wilkes + - Tatsuya Yatagawa + - Ryogo Yoshimura + - Lukas Zanner + - Andrey Zholos + - Aihui Zhu + - Santi Zupancic + - Jonas Ådahl + - Lasse Öörni + - Leonard König + - All the unmentioned and anonymous contributors in the GLFW community, for bug + reports, patches, feedback, testing and encouragement + diff --git a/external/GLFW/cmake_uninstall.cmake.in b/external/glfw-3.3.4/cmake_uninstall.cmake.in similarity index 100% rename from external/GLFW/cmake_uninstall.cmake.in rename to external/glfw-3.3.4/cmake_uninstall.cmake.in diff --git a/external/GLFW/deps/getopt.c b/external/glfw-3.3.4/deps/getopt.c similarity index 100% rename from external/GLFW/deps/getopt.c rename to external/glfw-3.3.4/deps/getopt.c diff --git a/external/GLFW/deps/getopt.h b/external/glfw-3.3.4/deps/getopt.h similarity index 100% rename from external/GLFW/deps/getopt.h rename to external/glfw-3.3.4/deps/getopt.h diff --git a/external/glfw-3.3.4/deps/glad/gl.h b/external/glfw-3.3.4/deps/glad/gl.h new file mode 100644 index 0000000..5c7879f --- /dev/null +++ b/external/glfw-3.3.4/deps/glad/gl.h @@ -0,0 +1,3840 @@ +/** + * Loader generated by glad 2.0.0-beta on Sun Apr 14 17:03:32 2019 + * + * Generator: C/C++ + * Specification: gl + * Extensions: 3 + * + * APIs: + * - gl:compatibility=3.3 + * + * Options: + * - MX_GLOBAL = False + * - LOADER = False + * - ALIAS = False + * - HEADER_ONLY = False + * - DEBUG = False + * - MX = False + * + * Commandline: + * --api='gl:compatibility=3.3' --extensions='GL_ARB_multisample,GL_ARB_robustness,GL_KHR_debug' c + * + * Online: + * http://glad.sh/#api=gl%3Acompatibility%3D3.3&extensions=GL_ARB_multisample%2CGL_ARB_robustness%2CGL_KHR_debug&generator=c&options= + * + */ + +#ifndef GLAD_GL_H_ +#define GLAD_GL_H_ + +#ifdef __gl_h_ + #error OpenGL header already included (API: gl), remove previous include! +#endif +#define __gl_h_ 1 + + +#define GLAD_GL + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef GLAD_PLATFORM_H_ +#define GLAD_PLATFORM_H_ + +#ifndef GLAD_PLATFORM_WIN32 + #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__) + #define GLAD_PLATFORM_WIN32 1 + #else + #define GLAD_PLATFORM_WIN32 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_APPLE + #ifdef __APPLE__ + #define GLAD_PLATFORM_APPLE 1 + #else + #define GLAD_PLATFORM_APPLE 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_EMSCRIPTEN + #ifdef __EMSCRIPTEN__ + #define GLAD_PLATFORM_EMSCRIPTEN 1 + #else + #define GLAD_PLATFORM_EMSCRIPTEN 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_UWP + #if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY) + #ifdef __has_include + #if __has_include() + #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 + #endif + #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ + #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 + #endif + #endif + + #ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY + #include + #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + #define GLAD_PLATFORM_UWP 1 + #endif + #endif + + #ifndef GLAD_PLATFORM_UWP + #define GLAD_PLATFORM_UWP 0 + #endif +#endif + +#ifdef __GNUC__ + #define GLAD_GNUC_EXTENSION __extension__ +#else + #define GLAD_GNUC_EXTENSION +#endif + +#ifndef GLAD_API_CALL + #if defined(GLAD_API_CALL_EXPORT) + #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__) + #if defined(GLAD_API_CALL_EXPORT_BUILD) + #if defined(__GNUC__) + #define GLAD_API_CALL __attribute__ ((dllexport)) extern + #else + #define GLAD_API_CALL __declspec(dllexport) extern + #endif + #else + #if defined(__GNUC__) + #define GLAD_API_CALL __attribute__ ((dllimport)) extern + #else + #define GLAD_API_CALL __declspec(dllimport) extern + #endif + #endif + #elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD) + #define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern + #else + #define GLAD_API_CALL extern + #endif + #else + #define GLAD_API_CALL extern + #endif +#endif + +#ifdef APIENTRY + #define GLAD_API_PTR APIENTRY +#elif GLAD_PLATFORM_WIN32 + #define GLAD_API_PTR __stdcall +#else + #define GLAD_API_PTR +#endif + +#ifndef GLAPI +#define GLAPI GLAD_API_CALL +#endif + +#ifndef GLAPIENTRY +#define GLAPIENTRY GLAD_API_PTR +#endif + + +#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor) +#define GLAD_VERSION_MAJOR(version) (version / 10000) +#define GLAD_VERSION_MINOR(version) (version % 10000) + +typedef void (*GLADapiproc)(void); + +typedef GLADapiproc (*GLADloadfunc)(const char *name); +typedef GLADapiproc (*GLADuserptrloadfunc)(const char *name, void *userptr); + +typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...); +typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...); + +#endif /* GLAD_PLATFORM_H_ */ + +#define GL_2D 0x0600 +#define GL_2_BYTES 0x1407 +#define GL_3D 0x0601 +#define GL_3D_COLOR 0x0602 +#define GL_3D_COLOR_TEXTURE 0x0603 +#define GL_3_BYTES 0x1408 +#define GL_4D_COLOR_TEXTURE 0x0604 +#define GL_4_BYTES 0x1409 +#define GL_ACCUM 0x0100 +#define GL_ACCUM_ALPHA_BITS 0x0D5B +#define GL_ACCUM_BLUE_BITS 0x0D5A +#define GL_ACCUM_BUFFER_BIT 0x00000200 +#define GL_ACCUM_CLEAR_VALUE 0x0B80 +#define GL_ACCUM_GREEN_BITS 0x0D59 +#define GL_ACCUM_RED_BITS 0x0D58 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_ADD 0x0104 +#define GL_ADD_SIGNED 0x8574 +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D +#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF +#define GL_ALPHA 0x1906 +#define GL_ALPHA12 0x803D +#define GL_ALPHA16 0x803E +#define GL_ALPHA4 0x803B +#define GL_ALPHA8 0x803C +#define GL_ALPHA_BIAS 0x0D1D +#define GL_ALPHA_BITS 0x0D55 +#define GL_ALPHA_INTEGER 0x8D97 +#define GL_ALPHA_SCALE 0x0D1C +#define GL_ALPHA_TEST 0x0BC0 +#define GL_ALPHA_TEST_FUNC 0x0BC1 +#define GL_ALPHA_TEST_REF 0x0BC2 +#define GL_ALREADY_SIGNALED 0x911A +#define GL_ALWAYS 0x0207 +#define GL_AMBIENT 0x1200 +#define GL_AMBIENT_AND_DIFFUSE 0x1602 +#define GL_AND 0x1501 +#define GL_AND_INVERTED 0x1504 +#define GL_AND_REVERSE 0x1502 +#define GL_ANY_SAMPLES_PASSED 0x8C2F +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ATTRIB_STACK_DEPTH 0x0BB0 +#define GL_AUTO_NORMAL 0x0D80 +#define GL_AUX0 0x0409 +#define GL_AUX1 0x040A +#define GL_AUX2 0x040B +#define GL_AUX3 0x040C +#define GL_AUX_BUFFERS 0x0C00 +#define GL_BACK 0x0405 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_BGRA_INTEGER 0x8D9B +#define GL_BGR_INTEGER 0x8D9A +#define GL_BITMAP 0x1A00 +#define GL_BITMAP_TOKEN 0x0704 +#define GL_BLEND 0x0BE2 +#define GL_BLEND_COLOR 0x8005 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_EQUATION 0x8009 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLUE 0x1905 +#define GL_BLUE_BIAS 0x0D1B +#define GL_BLUE_BITS 0x0D54 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_BLUE_SCALE 0x0D1A +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_BUFFER 0x82E0 +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_ACCESS_FLAGS 0x911F +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_LENGTH 0x9120 +#define GL_BUFFER_MAP_OFFSET 0x9121 +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_BYTE 0x1400 +#define GL_C3F_V3F 0x2A24 +#define GL_C4F_N3F_V3F 0x2A26 +#define GL_C4UB_V2F 0x2A22 +#define GL_C4UB_V3F 0x2A23 +#define GL_CCW 0x0901 +#define GL_CLAMP 0x2900 +#define GL_CLAMP_FRAGMENT_COLOR 0x891B +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_CLAMP_TO_BORDER 0x812D +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_CLAMP_VERTEX_COLOR 0x891A +#define GL_CLEAR 0x1500 +#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 +#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF +#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 +#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 +#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 +#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_CLIP_PLANE0 0x3000 +#define GL_CLIP_PLANE1 0x3001 +#define GL_CLIP_PLANE2 0x3002 +#define GL_CLIP_PLANE3 0x3003 +#define GL_CLIP_PLANE4 0x3004 +#define GL_CLIP_PLANE5 0x3005 +#define GL_COEFF 0x0A00 +#define GL_COLOR 0x1800 +#define GL_COLOR_ARRAY 0x8076 +#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 +#define GL_COLOR_ARRAY_POINTER 0x8090 +#define GL_COLOR_ARRAY_SIZE 0x8081 +#define GL_COLOR_ARRAY_STRIDE 0x8083 +#define GL_COLOR_ARRAY_TYPE 0x8082 +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#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_ATTACHMENT2 0x8CE2 +#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_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT30 0x8CFE +#define GL_COLOR_ATTACHMENT31 0x8CFF +#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_BUFFER_BIT 0x00004000 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_INDEX 0x1900 +#define GL_COLOR_INDEXES 0x1603 +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_COLOR_MATERIAL 0x0B57 +#define GL_COLOR_MATERIAL_FACE 0x0B55 +#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 +#define GL_COLOR_SUM 0x8458 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_COMBINE 0x8570 +#define GL_COMBINE_ALPHA 0x8572 +#define GL_COMBINE_RGB 0x8571 +#define GL_COMPARE_REF_TO_TEXTURE 0x884E +#define GL_COMPARE_R_TO_TEXTURE 0x884E +#define GL_COMPILE 0x1300 +#define GL_COMPILE_AND_EXECUTE 0x1301 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_COMPRESSED_ALPHA 0x84E9 +#define GL_COMPRESSED_INTENSITY 0x84EC +#define GL_COMPRESSED_LUMINANCE 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_RG 0x8226 +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE +#define GL_COMPRESSED_SLUMINANCE 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CONDITION_SATISFIED 0x911C +#define GL_CONSTANT 0x8576 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_CONSTANT_ATTENUATION 0x1207 +#define GL_CONSTANT_COLOR 0x8001 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_FLAGS 0x821E +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_COORD_REPLACE 0x8862 +#define GL_COPY 0x1503 +#define GL_COPY_INVERTED 0x150C +#define GL_COPY_PIXEL_TOKEN 0x0706 +#define GL_COPY_READ_BUFFER 0x8F36 +#define GL_COPY_WRITE_BUFFER 0x8F37 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_CURRENT_BIT 0x00000001 +#define GL_CURRENT_COLOR 0x0B00 +#define GL_CURRENT_FOG_COORD 0x8453 +#define GL_CURRENT_FOG_COORDINATE 0x8453 +#define GL_CURRENT_INDEX 0x0B01 +#define GL_CURRENT_NORMAL 0x0B02 +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_CURRENT_QUERY 0x8865 +#define GL_CURRENT_RASTER_COLOR 0x0B04 +#define GL_CURRENT_RASTER_DISTANCE 0x0B09 +#define GL_CURRENT_RASTER_INDEX 0x0B05 +#define GL_CURRENT_RASTER_POSITION 0x0B07 +#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 +#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F +#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 +#define GL_CURRENT_SECONDARY_COLOR 0x8459 +#define GL_CURRENT_TEXTURE_COORDS 0x0B03 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_CW 0x0900 +#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 +#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D +#define GL_DEBUG_LOGGED_MESSAGES 0x9145 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 +#define GL_DEBUG_OUTPUT 0x92E0 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 +#define GL_DEBUG_SEVERITY_HIGH 0x9146 +#define GL_DEBUG_SEVERITY_LOW 0x9148 +#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 +#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B +#define GL_DEBUG_SOURCE_API 0x8246 +#define GL_DEBUG_SOURCE_APPLICATION 0x824A +#define GL_DEBUG_SOURCE_OTHER 0x824B +#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D +#define GL_DEBUG_TYPE_ERROR 0x824C +#define GL_DEBUG_TYPE_MARKER 0x8268 +#define GL_DEBUG_TYPE_OTHER 0x8251 +#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 +#define GL_DEBUG_TYPE_POP_GROUP 0x826A +#define GL_DEBUG_TYPE_PORTABILITY 0x824F +#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E +#define GL_DECAL 0x2101 +#define GL_DECR 0x1E03 +#define GL_DECR_WRAP 0x8508 +#define GL_DELETE_STATUS 0x8B80 +#define GL_DEPTH 0x1801 +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_DEPTH_BIAS 0x0D1F +#define GL_DEPTH_BITS 0x0D56 +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_DEPTH_CLAMP 0x864F +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH_FUNC 0x0B74 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_SCALE 0x0D1E +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_TEXTURE_MODE 0x884B +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DIFFUSE 0x1201 +#define GL_DISPLAY_LIST 0x82E7 +#define GL_DITHER 0x0BD0 +#define GL_DOMAIN 0x0A02 +#define GL_DONT_CARE 0x1100 +#define GL_DOT3_RGB 0x86AE +#define GL_DOT3_RGBA 0x86AF +#define GL_DOUBLE 0x140A +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#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_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_FRAMEBUFFER 0x8CA9 +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_DRAW_PIXEL_TOKEN 0x0705 +#define GL_DST_ALPHA 0x0304 +#define GL_DST_COLOR 0x0306 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_EDGE_FLAG 0x0B43 +#define GL_EDGE_FLAG_ARRAY 0x8079 +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B +#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 +#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_EMISSION 0x1600 +#define GL_ENABLE_BIT 0x00002000 +#define GL_EQUAL 0x0202 +#define GL_EQUIV 0x1509 +#define GL_EVAL_BIT 0x00010000 +#define GL_EXP 0x0800 +#define GL_EXP2 0x0801 +#define GL_EXTENSIONS 0x1F03 +#define GL_EYE_LINEAR 0x2400 +#define GL_EYE_PLANE 0x2502 +#define GL_FALSE 0 +#define GL_FASTEST 0x1101 +#define GL_FEEDBACK 0x1C01 +#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 +#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 +#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 +#define GL_FILL 0x1B02 +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_FIXED_ONLY 0x891D +#define GL_FLAT 0x1D00 +#define GL_FLOAT 0x1406 +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4 0x8B5C +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_FOG 0x0B60 +#define GL_FOG_BIT 0x00000080 +#define GL_FOG_COLOR 0x0B66 +#define GL_FOG_COORD 0x8451 +#define GL_FOG_COORDINATE 0x8451 +#define GL_FOG_COORDINATE_ARRAY 0x8457 +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D +#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 +#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 +#define GL_FOG_COORDINATE_SOURCE 0x8450 +#define GL_FOG_COORD_ARRAY 0x8457 +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D +#define GL_FOG_COORD_ARRAY_POINTER 0x8456 +#define GL_FOG_COORD_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORD_ARRAY_TYPE 0x8454 +#define GL_FOG_COORD_SRC 0x8450 +#define GL_FOG_DENSITY 0x0B62 +#define GL_FOG_END 0x0B64 +#define GL_FOG_HINT 0x0C54 +#define GL_FOG_INDEX 0x0B61 +#define GL_FOG_MODE 0x0B65 +#define GL_FOG_START 0x0B63 +#define GL_FRAGMENT_DEPTH 0x8452 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_FRAMEBUFFER 0x8D40 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_FRONT 0x0404 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_FRONT_FACE 0x0B46 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_FUNC_ADD 0x8006 +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_FUNC_SUBTRACT 0x800A +#define GL_GENERATE_MIPMAP 0x8191 +#define GL_GENERATE_MIPMAP_HINT 0x8192 +#define GL_GEOMETRY_INPUT_TYPE 0x8917 +#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 +#define GL_GEOMETRY_SHADER 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT 0x8916 +#define GL_GEQUAL 0x0206 +#define GL_GREATER 0x0204 +#define GL_GREEN 0x1904 +#define GL_GREEN_BIAS 0x0D19 +#define GL_GREEN_BITS 0x0D53 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_GREEN_SCALE 0x0D18 +#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 +#define GL_HALF_FLOAT 0x140B +#define GL_HINT_BIT 0x00008000 +#define GL_INCR 0x1E02 +#define GL_INCR_WRAP 0x8507 +#define GL_INDEX 0x8222 +#define GL_INDEX_ARRAY 0x8077 +#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 +#define GL_INDEX_ARRAY_POINTER 0x8091 +#define GL_INDEX_ARRAY_STRIDE 0x8086 +#define GL_INDEX_ARRAY_TYPE 0x8085 +#define GL_INDEX_BITS 0x0D51 +#define GL_INDEX_CLEAR_VALUE 0x0C20 +#define GL_INDEX_LOGIC_OP 0x0BF1 +#define GL_INDEX_MODE 0x0C30 +#define GL_INDEX_OFFSET 0x0D13 +#define GL_INDEX_SHIFT 0x0D12 +#define GL_INDEX_WRITEMASK 0x0C21 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 +#define GL_INT 0x1404 +#define GL_INTENSITY 0x8049 +#define GL_INTENSITY12 0x804C +#define GL_INTENSITY16 0x804D +#define GL_INTENSITY4 0x804A +#define GL_INTENSITY8 0x804B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_INTERPOLATE 0x8575 +#define GL_INT_2_10_10_10_REV 0x8D9F +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C +#define GL_INT_SAMPLER_2D_RECT 0x8DCD +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_BUFFER 0x8DD0 +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_INVALID_INDEX 0xFFFFFFFF +#define GL_INVALID_OPERATION 0x0502 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVERT 0x150A +#define GL_KEEP 0x1E00 +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_LEFT 0x0406 +#define GL_LEQUAL 0x0203 +#define GL_LESS 0x0201 +#define GL_LIGHT0 0x4000 +#define GL_LIGHT1 0x4001 +#define GL_LIGHT2 0x4002 +#define GL_LIGHT3 0x4003 +#define GL_LIGHT4 0x4004 +#define GL_LIGHT5 0x4005 +#define GL_LIGHT6 0x4006 +#define GL_LIGHT7 0x4007 +#define GL_LIGHTING 0x0B50 +#define GL_LIGHTING_BIT 0x00000040 +#define GL_LIGHT_MODEL_AMBIENT 0x0B53 +#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 +#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 +#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 +#define GL_LINE 0x1B01 +#define GL_LINEAR 0x2601 +#define GL_LINEAR_ATTENUATION 0x1208 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_LINES 0x0001 +#define GL_LINES_ADJACENCY 0x000A +#define GL_LINE_BIT 0x00000004 +#define GL_LINE_LOOP 0x0002 +#define GL_LINE_RESET_TOKEN 0x0707 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_LINE_STIPPLE 0x0B24 +#define GL_LINE_STIPPLE_PATTERN 0x0B25 +#define GL_LINE_STIPPLE_REPEAT 0x0B26 +#define GL_LINE_STRIP 0x0003 +#define GL_LINE_STRIP_ADJACENCY 0x000B +#define GL_LINE_TOKEN 0x0702 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINK_STATUS 0x8B82 +#define GL_LIST_BASE 0x0B32 +#define GL_LIST_BIT 0x00020000 +#define GL_LIST_INDEX 0x0B33 +#define GL_LIST_MODE 0x0B30 +#define GL_LOAD 0x0101 +#define GL_LOGIC_OP 0x0BF1 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_LUMINANCE 0x1909 +#define GL_LUMINANCE12 0x8041 +#define GL_LUMINANCE12_ALPHA12 0x8047 +#define GL_LUMINANCE12_ALPHA4 0x8046 +#define GL_LUMINANCE16 0x8042 +#define GL_LUMINANCE16_ALPHA16 0x8048 +#define GL_LUMINANCE4 0x803F +#define GL_LUMINANCE4_ALPHA4 0x8043 +#define GL_LUMINANCE6_ALPHA2 0x8044 +#define GL_LUMINANCE8 0x8040 +#define GL_LUMINANCE8_ALPHA8 0x8045 +#define GL_LUMINANCE_ALPHA 0x190A +#define GL_MAJOR_VERSION 0x821B +#define GL_MAP1_COLOR_4 0x0D90 +#define GL_MAP1_GRID_DOMAIN 0x0DD0 +#define GL_MAP1_GRID_SEGMENTS 0x0DD1 +#define GL_MAP1_INDEX 0x0D91 +#define GL_MAP1_NORMAL 0x0D92 +#define GL_MAP1_TEXTURE_COORD_1 0x0D93 +#define GL_MAP1_TEXTURE_COORD_2 0x0D94 +#define GL_MAP1_TEXTURE_COORD_3 0x0D95 +#define GL_MAP1_TEXTURE_COORD_4 0x0D96 +#define GL_MAP1_VERTEX_3 0x0D97 +#define GL_MAP1_VERTEX_4 0x0D98 +#define GL_MAP2_COLOR_4 0x0DB0 +#define GL_MAP2_GRID_DOMAIN 0x0DD2 +#define GL_MAP2_GRID_SEGMENTS 0x0DD3 +#define GL_MAP2_INDEX 0x0DB1 +#define GL_MAP2_NORMAL 0x0DB2 +#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 +#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 +#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 +#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 +#define GL_MAP2_VERTEX_3 0x0DB7 +#define GL_MAP2_VERTEX_4 0x0DB8 +#define GL_MAP_COLOR 0x0D10 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_STENCIL 0x0D11 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MATRIX_MODE 0x0BA0 +#define GL_MAX 0x8008 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 +#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B +#define GL_MAX_CLIP_DISTANCES 0x0D32 +#define GL_MAX_CLIP_PLANES 0x0D32 +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C +#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 +#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 +#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_EVAL_ORDER 0x0D30 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF +#define GL_MAX_INTEGER_SAMPLES 0x9110 +#define GL_MAX_LABEL_LENGTH 0x82E8 +#define GL_MAX_LIGHTS 0x0D31 +#define GL_MAX_LIST_NESTING 0x0B31 +#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 +#define GL_MAX_NAME_STACK_DEPTH 0x0D37 +#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_MAX_SAMPLES 0x8D57 +#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 +#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 +#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B +#define GL_MAX_TEXTURE_COORDS 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 +#define GL_MAX_TEXTURE_UNITS 0x84E2 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 +#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F +#define GL_MAX_VARYING_COMPONENTS 0x8B4B +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_MIN 0x8007 +#define GL_MINOR_VERSION 0x821C +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_MODELVIEW 0x1700 +#define GL_MODELVIEW_MATRIX 0x0BA6 +#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 +#define GL_MODULATE 0x2100 +#define GL_MULT 0x0103 +#define GL_MULTISAMPLE 0x809D +#define GL_MULTISAMPLE_ARB 0x809D +#define GL_MULTISAMPLE_BIT 0x20000000 +#define GL_MULTISAMPLE_BIT_ARB 0x20000000 +#define GL_N3F_V3F 0x2A25 +#define GL_NAME_STACK_DEPTH 0x0D70 +#define GL_NAND 0x150E +#define GL_NEAREST 0x2600 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_NEVER 0x0200 +#define GL_NICEST 0x1102 +#define GL_NONE 0 +#define GL_NOOP 0x1505 +#define GL_NOR 0x1508 +#define GL_NORMALIZE 0x0BA1 +#define GL_NORMAL_ARRAY 0x8075 +#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 +#define GL_NORMAL_ARRAY_POINTER 0x808F +#define GL_NORMAL_ARRAY_STRIDE 0x807F +#define GL_NORMAL_ARRAY_TYPE 0x807E +#define GL_NORMAL_MAP 0x8511 +#define GL_NOTEQUAL 0x0205 +#define GL_NO_ERROR 0 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_NUM_EXTENSIONS 0x821D +#define GL_OBJECT_LINEAR 0x2401 +#define GL_OBJECT_PLANE 0x2501 +#define GL_OBJECT_TYPE 0x9112 +#define GL_ONE 1 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB +#define GL_ONE_MINUS_SRC1_COLOR 0x88FA +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_OPERAND0_ALPHA 0x8598 +#define GL_OPERAND0_RGB 0x8590 +#define GL_OPERAND1_ALPHA 0x8599 +#define GL_OPERAND1_RGB 0x8591 +#define GL_OPERAND2_ALPHA 0x859A +#define GL_OPERAND2_RGB 0x8592 +#define GL_OR 0x1507 +#define GL_ORDER 0x0A01 +#define GL_OR_INVERTED 0x150D +#define GL_OR_REVERSE 0x150B +#define GL_OUT_OF_MEMORY 0x0505 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PASS_THROUGH_TOKEN 0x0700 +#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 +#define GL_PIXEL_MAP_A_TO_A 0x0C79 +#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 +#define GL_PIXEL_MAP_B_TO_B 0x0C78 +#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 +#define GL_PIXEL_MAP_G_TO_G 0x0C77 +#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 +#define GL_PIXEL_MAP_I_TO_A 0x0C75 +#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 +#define GL_PIXEL_MAP_I_TO_B 0x0C74 +#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 +#define GL_PIXEL_MAP_I_TO_G 0x0C73 +#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 +#define GL_PIXEL_MAP_I_TO_I 0x0C70 +#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 +#define GL_PIXEL_MAP_I_TO_R 0x0C72 +#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 +#define GL_PIXEL_MAP_R_TO_R 0x0C76 +#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 +#define GL_PIXEL_MAP_S_TO_S 0x0C71 +#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 +#define GL_PIXEL_MODE_BIT 0x00000020 +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_POINT 0x1B00 +#define GL_POINTS 0x0000 +#define GL_POINT_BIT 0x00000002 +#define GL_POINT_DISTANCE_ATTENUATION 0x8129 +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_POINT_SIZE_MAX 0x8127 +#define GL_POINT_SIZE_MIN 0x8126 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SMOOTH 0x0B10 +#define GL_POINT_SMOOTH_HINT 0x0C51 +#define GL_POINT_SPRITE 0x8861 +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_POINT_TOKEN 0x0701 +#define GL_POLYGON 0x0009 +#define GL_POLYGON_BIT 0x00000008 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_POLYGON_OFFSET_FILL 0x8037 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_POLYGON_STIPPLE 0x0B42 +#define GL_POLYGON_STIPPLE_BIT 0x00000010 +#define GL_POLYGON_TOKEN 0x0703 +#define GL_POSITION 0x1203 +#define GL_PREVIOUS 0x8578 +#define GL_PRIMARY_COLOR 0x8577 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_PRIMITIVE_RESTART 0x8F9D +#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E +#define GL_PROGRAM 0x82E2 +#define GL_PROGRAM_PIPELINE 0x82E4 +#define GL_PROGRAM_POINT_SIZE 0x8642 +#define GL_PROJECTION 0x1701 +#define GL_PROJECTION_MATRIX 0x0BA7 +#define GL_PROJECTION_STACK_DEPTH 0x0BA4 +#define GL_PROVOKING_VERTEX 0x8E4F +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_PROXY_TEXTURE_2D 0x8064 +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 +#define GL_Q 0x2003 +#define GL_QUADRATIC_ATTENUATION 0x1209 +#define GL_QUADS 0x0007 +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C +#define GL_QUAD_STRIP 0x0008 +#define GL_QUERY 0x82E3 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_QUERY_WAIT 0x8E13 +#define GL_R 0x2002 +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_R16 0x822A +#define GL_R16F 0x822D +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R16_SNORM 0x8F98 +#define GL_R32F 0x822E +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_R3_G3_B2 0x2A10 +#define GL_R8 0x8229 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R8_SNORM 0x8F94 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_READ_BUFFER 0x0C02 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_READ_ONLY 0x88B8 +#define GL_READ_WRITE 0x88BA +#define GL_RED 0x1903 +#define GL_RED_BIAS 0x0D15 +#define GL_RED_BITS 0x0D52 +#define GL_RED_INTEGER 0x8D94 +#define GL_RED_SCALE 0x0D14 +#define GL_REFLECTION_MAP 0x8512 +#define GL_RENDER 0x1C00 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERER 0x1F01 +#define GL_RENDER_MODE 0x0C40 +#define GL_REPEAT 0x2901 +#define GL_REPLACE 0x1E01 +#define GL_RESCALE_NORMAL 0x803A +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_RETURN 0x0102 +#define GL_RG 0x8227 +#define GL_RG16 0x822C +#define GL_RG16F 0x822F +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG16_SNORM 0x8F99 +#define GL_RG32F 0x8230 +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C +#define GL_RG8 0x822B +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB 0x1907 +#define GL_RGB10 0x8052 +#define GL_RGB10_A2 0x8059 +#define GL_RGB10_A2UI 0x906F +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGB16F 0x881B +#define GL_RGB16I 0x8D89 +#define GL_RGB16UI 0x8D77 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGB32F 0x8815 +#define GL_RGB32I 0x8D83 +#define GL_RGB32UI 0x8D71 +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB5_A1 0x8057 +#define GL_RGB8 0x8051 +#define GL_RGB8I 0x8D8F +#define GL_RGB8UI 0x8D7D +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGB9_E5 0x8C3D +#define GL_RGBA 0x1908 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_RGBA16F 0x881A +#define GL_RGBA16I 0x8D88 +#define GL_RGBA16UI 0x8D76 +#define GL_RGBA16_SNORM 0x8F9B +#define GL_RGBA2 0x8055 +#define GL_RGBA32F 0x8814 +#define GL_RGBA32I 0x8D82 +#define GL_RGBA32UI 0x8D70 +#define GL_RGBA4 0x8056 +#define GL_RGBA8 0x8058 +#define GL_RGBA8I 0x8D8E +#define GL_RGBA8UI 0x8D7C +#define GL_RGBA8_SNORM 0x8F97 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_RGBA_MODE 0x0C31 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGB_SCALE 0x8573 +#define GL_RG_INTEGER 0x8228 +#define GL_RIGHT 0x0407 +#define GL_S 0x2000 +#define GL_SAMPLER 0x82E6 +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B +#define GL_SAMPLER_2D_RECT 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_BINDING 0x8919 +#define GL_SAMPLER_BUFFER 0x8DC2 +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLES_ARB 0x80A9 +#define GL_SAMPLES_PASSED 0x8914 +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLE_BUFFERS_ARB 0x80A8 +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_COVERAGE_ARB 0x80A0 +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA +#define GL_SAMPLE_MASK 0x8E51 +#define GL_SAMPLE_MASK_VALUE 0x8E52 +#define GL_SAMPLE_POSITION 0x8E50 +#define GL_SCISSOR_BIT 0x00080000 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_SECONDARY_COLOR_ARRAY 0x845E +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C +#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D +#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A +#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C +#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B +#define GL_SELECT 0x1C02 +#define GL_SELECTION_BUFFER_POINTER 0x0DF3 +#define GL_SELECTION_BUFFER_SIZE 0x0DF4 +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_SEPARATE_SPECULAR_COLOR 0x81FA +#define GL_SET 0x150F +#define GL_SHADER 0x82E1 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_SHADER_TYPE 0x8B4F +#define GL_SHADE_MODEL 0x0B54 +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_SHININESS 0x1601 +#define GL_SHORT 0x1402 +#define GL_SIGNALED 0x9119 +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_SINGLE_COLOR 0x81F9 +#define GL_SLUMINANCE 0x8C46 +#define GL_SLUMINANCE8 0x8C47 +#define GL_SLUMINANCE8_ALPHA8 0x8C45 +#define GL_SLUMINANCE_ALPHA 0x8C44 +#define GL_SMOOTH 0x1D01 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SOURCE0_ALPHA 0x8588 +#define GL_SOURCE0_RGB 0x8580 +#define GL_SOURCE1_ALPHA 0x8589 +#define GL_SOURCE1_RGB 0x8581 +#define GL_SOURCE2_ALPHA 0x858A +#define GL_SOURCE2_RGB 0x8582 +#define GL_SPECULAR 0x1202 +#define GL_SPHERE_MAP 0x2402 +#define GL_SPOT_CUTOFF 0x1206 +#define GL_SPOT_DIRECTION 0x1204 +#define GL_SPOT_EXPONENT 0x1205 +#define GL_SRC0_ALPHA 0x8588 +#define GL_SRC0_RGB 0x8580 +#define GL_SRC1_ALPHA 0x8589 +#define GL_SRC1_COLOR 0x88F9 +#define GL_SRC1_RGB 0x8581 +#define GL_SRC2_ALPHA 0x858A +#define GL_SRC2_RGB 0x8582 +#define GL_SRC_ALPHA 0x0302 +#define GL_SRC_ALPHA_SATURATE 0x0308 +#define GL_SRC_COLOR 0x0300 +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_STATIC_COPY 0x88E6 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STENCIL 0x1802 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +#define GL_STENCIL_BITS 0x0D57 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_INDEX 0x1901 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_STEREO 0x0C33 +#define GL_STREAM_COPY 0x88E2 +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_SUBTRACT 0x84E7 +#define GL_SYNC_CONDITION 0x9113 +#define GL_SYNC_FENCE 0x9116 +#define GL_SYNC_FLAGS 0x9115 +#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 +#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 +#define GL_SYNC_STATUS 0x9114 +#define GL_T 0x2001 +#define GL_T2F_C3F_V3F 0x2A2A +#define GL_T2F_C4F_N3F_V3F 0x2A2C +#define GL_T2F_C4UB_V3F 0x2A29 +#define GL_T2F_N3F_V3F 0x2A2B +#define GL_T2F_V3F 0x2A27 +#define GL_T4F_C4F_N3F_V4F 0x2A2D +#define GL_T4F_V4F 0x2A28 +#define GL_TEXTURE 0x1702 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#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_TEXTURE2 0x84C2 +#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_TEXTURE3 0x84C3 +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#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_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 +#define GL_TEXTURE_3D 0x806F +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D 0x8069 +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_TEXTURE_BINDING_BUFFER 0x8C2C +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 +#define GL_TEXTURE_BIT 0x00040000 +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_BORDER 0x1005 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_TEXTURE_BUFFER 0x8C2A +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPONENTS 0x1003 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COORD_ARRAY 0x8078 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A +#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 +#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 +#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A +#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_TEXTURE_ENV 0x2300 +#define GL_TEXTURE_ENV_COLOR 0x2201 +#define GL_TEXTURE_ENV_MODE 0x2200 +#define GL_TEXTURE_FILTER_CONTROL 0x8500 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 +#define GL_TEXTURE_GEN_MODE 0x2500 +#define GL_TEXTURE_GEN_Q 0x0C63 +#define GL_TEXTURE_GEN_R 0x0C62 +#define GL_TEXTURE_GEN_S 0x0C60 +#define GL_TEXTURE_GEN_T 0x0C61 +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_INTENSITY_SIZE 0x8061 +#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 +#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MATRIX 0x0BA8 +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_PRIORITY 0x8066 +#define GL_TEXTURE_RECTANGLE 0x84F5 +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_RESIDENT 0x8067 +#define GL_TEXTURE_SAMPLES 0x9106 +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TEXTURE_STACK_DEPTH 0x0BA5 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +#define GL_TIMEOUT_EXPIRED 0x911B +#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF +#define GL_TIMESTAMP 0x8E28 +#define GL_TIME_ELAPSED 0x88BF +#define GL_TRANSFORM_BIT 0x00001000 +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 +#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLES_ADJACENCY 0x000C +#define GL_TRIANGLE_FAN 0x0006 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D +#define GL_TRUE 1 +#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 +#define GL_UNIFORM_BLOCK_BINDING 0x8A3F +#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 +#define GL_UNIFORM_BLOCK_INDEX 0x8A3A +#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 +#define GL_UNIFORM_BUFFER 0x8A11 +#define GL_UNIFORM_BUFFER_BINDING 0x8A28 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 +#define GL_UNIFORM_BUFFER_SIZE 0x8A2A +#define GL_UNIFORM_BUFFER_START 0x8A29 +#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E +#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D +#define GL_UNIFORM_NAME_LENGTH 0x8A39 +#define GL_UNIFORM_OFFSET 0x8A3B +#define GL_UNIFORM_SIZE 0x8A38 +#define GL_UNIFORM_TYPE 0x8A37 +#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNSIGNALED 0x9118 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_INT 0x1405 +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_V2F 0x2A20 +#define GL_V3F 0x2A21 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_VENDOR 0x1F00 +#define GL_VERSION 0x1F02 +#define GL_VERTEX_ARRAY 0x8074 +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 +#define GL_VERTEX_ARRAY_POINTER 0x808E +#define GL_VERTEX_ARRAY_SIZE 0x807A +#define GL_VERTEX_ARRAY_STRIDE 0x807C +#define GL_VERTEX_ARRAY_TYPE 0x807B +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_VIEWPORT 0x0BA2 +#define GL_VIEWPORT_BIT 0x00000800 +#define GL_WAIT_FAILED 0x911D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E +#define GL_WRITE_ONLY 0x88B9 +#define GL_XOR 0x1506 +#define GL_ZERO 0 +#define GL_ZOOM_X 0x0D16 +#define GL_ZOOM_Y 0x0D17 + + +#include +typedef unsigned int GLenum; +typedef unsigned char GLboolean; +typedef unsigned int GLbitfield; +typedef void GLvoid; +typedef khronos_int8_t GLbyte; +typedef khronos_uint8_t GLubyte; +typedef khronos_int16_t GLshort; +typedef khronos_uint16_t GLushort; +typedef int GLint; +typedef unsigned int GLuint; +typedef khronos_int32_t GLclampx; +typedef int GLsizei; +typedef khronos_float_t GLfloat; +typedef khronos_float_t 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 khronos_uint16_t GLhalf; +typedef khronos_uint16_t GLhalfARB; +typedef khronos_int32_t GLfixed; +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) +typedef khronos_intptr_t GLintptr; +#else +typedef khronos_intptr_t GLintptr; +#endif +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) +typedef khronos_intptr_t GLintptrARB; +#else +typedef khronos_intptr_t GLintptrARB; +#endif +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) +typedef khronos_ssize_t GLsizeiptr; +#else +typedef khronos_ssize_t GLsizeiptr; +#endif +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) +typedef khronos_ssize_t GLsizeiptrARB; +#else +typedef khronos_ssize_t GLsizeiptrARB; +#endif +typedef khronos_int64_t GLint64; +typedef khronos_int64_t GLint64EXT; +typedef khronos_uint64_t GLuint64; +typedef khronos_uint64_t GLuint64EXT; +typedef struct __GLsync *GLsync; +struct _cl_context; +struct _cl_event; +typedef void ( *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +typedef void ( *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +typedef void ( *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +typedef void ( *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); +typedef unsigned short GLhalfNV; +typedef GLintptr GLvdpauSurfaceNV; +typedef void ( *GLVULKANPROCNV)(void); + + +#define GL_VERSION_1_0 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_0; +#define GL_VERSION_1_1 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_1; +#define GL_VERSION_1_2 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_2; +#define GL_VERSION_1_3 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_3; +#define GL_VERSION_1_4 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_4; +#define GL_VERSION_1_5 1 +GLAD_API_CALL int GLAD_GL_VERSION_1_5; +#define GL_VERSION_2_0 1 +GLAD_API_CALL int GLAD_GL_VERSION_2_0; +#define GL_VERSION_2_1 1 +GLAD_API_CALL int GLAD_GL_VERSION_2_1; +#define GL_VERSION_3_0 1 +GLAD_API_CALL int GLAD_GL_VERSION_3_0; +#define GL_VERSION_3_1 1 +GLAD_API_CALL int GLAD_GL_VERSION_3_1; +#define GL_VERSION_3_2 1 +GLAD_API_CALL int GLAD_GL_VERSION_3_2; +#define GL_VERSION_3_3 1 +GLAD_API_CALL int GLAD_GL_VERSION_3_3; +#define GL_ARB_multisample 1 +GLAD_API_CALL int GLAD_GL_ARB_multisample; +#define GL_ARB_robustness 1 +GLAD_API_CALL int GLAD_GL_ARB_robustness; +#define GL_KHR_debug 1 +GLAD_API_CALL int GLAD_GL_KHR_debug; + + +typedef void (GLAD_API_PTR *PFNGLACCUMPROC)(GLenum op, GLfloat value); +typedef void (GLAD_API_PTR *PFNGLACTIVETEXTUREPROC)(GLenum texture); +typedef void (GLAD_API_PTR *PFNGLALPHAFUNCPROC)(GLenum func, GLfloat ref); +typedef GLboolean (GLAD_API_PTR *PFNGLARETEXTURESRESIDENTPROC)(GLsizei n, const GLuint * textures, GLboolean * residences); +typedef void (GLAD_API_PTR *PFNGLARRAYELEMENTPROC)(GLint i); +typedef void (GLAD_API_PTR *PFNGLATTACHSHADERPROC)(GLuint program, GLuint shader); +typedef void (GLAD_API_PTR *PFNGLBEGINPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLBEGINCONDITIONALRENDERPROC)(GLuint id, GLenum mode); +typedef void (GLAD_API_PTR *PFNGLBEGINQUERYPROC)(GLenum target, GLuint id); +typedef void (GLAD_API_PTR *PFNGLBEGINTRANSFORMFEEDBACKPROC)(GLenum primitiveMode); +typedef void (GLAD_API_PTR *PFNGLBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLBINDBUFFERPROC)(GLenum target, GLuint buffer); +typedef void (GLAD_API_PTR *PFNGLBINDBUFFERBASEPROC)(GLenum target, GLuint index, GLuint buffer); +typedef void (GLAD_API_PTR *PFNGLBINDBUFFERRANGEPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (GLAD_API_PTR *PFNGLBINDFRAGDATALOCATIONPROC)(GLuint program, GLuint color, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)(GLuint program, GLuint colorNumber, GLuint index, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer); +typedef void (GLAD_API_PTR *PFNGLBINDRENDERBUFFERPROC)(GLenum target, GLuint renderbuffer); +typedef void (GLAD_API_PTR *PFNGLBINDSAMPLERPROC)(GLuint unit, GLuint sampler); +typedef void (GLAD_API_PTR *PFNGLBINDTEXTUREPROC)(GLenum target, GLuint texture); +typedef void (GLAD_API_PTR *PFNGLBINDVERTEXARRAYPROC)(GLuint array); +typedef void (GLAD_API_PTR *PFNGLBITMAPPROC)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap); +typedef void (GLAD_API_PTR *PFNGLBLENDCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAD_API_PTR *PFNGLBLENDEQUATIONPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLBLENDEQUATIONSEPARATEPROC)(GLenum modeRGB, GLenum modeAlpha); +typedef void (GLAD_API_PTR *PFNGLBLENDFUNCPROC)(GLenum sfactor, GLenum dfactor); +typedef void (GLAD_API_PTR *PFNGLBLENDFUNCSEPARATEPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (GLAD_API_PTR *PFNGLBLITFRAMEBUFFERPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef void (GLAD_API_PTR *PFNGLBUFFERDATAPROC)(GLenum target, GLsizeiptr size, const void * data, GLenum usage); +typedef void (GLAD_API_PTR *PFNGLBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, const void * data); +typedef void (GLAD_API_PTR *PFNGLCALLLISTPROC)(GLuint list); +typedef void (GLAD_API_PTR *PFNGLCALLLISTSPROC)(GLsizei n, GLenum type, const void * lists); +typedef GLenum (GLAD_API_PTR *PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target); +typedef void (GLAD_API_PTR *PFNGLCLAMPCOLORPROC)(GLenum target, GLenum clamp); +typedef void (GLAD_API_PTR *PFNGLCLEARPROC)(GLbitfield mask); +typedef void (GLAD_API_PTR *PFNGLCLEARACCUMPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAD_API_PTR *PFNGLCLEARBUFFERFIPROC)(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +typedef void (GLAD_API_PTR *PFNGLCLEARBUFFERFVPROC)(GLenum buffer, GLint drawbuffer, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLCLEARBUFFERIVPROC)(GLenum buffer, GLint drawbuffer, const GLint * value); +typedef void (GLAD_API_PTR *PFNGLCLEARBUFFERUIVPROC)(GLenum buffer, GLint drawbuffer, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLCLEARCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAD_API_PTR *PFNGLCLEARDEPTHPROC)(GLdouble depth); +typedef void (GLAD_API_PTR *PFNGLCLEARINDEXPROC)(GLfloat c); +typedef void (GLAD_API_PTR *PFNGLCLEARSTENCILPROC)(GLint s); +typedef void (GLAD_API_PTR *PFNGLCLIENTACTIVETEXTUREPROC)(GLenum texture); +typedef GLenum (GLAD_API_PTR *PFNGLCLIENTWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (GLAD_API_PTR *PFNGLCLIPPLANEPROC)(GLenum plane, const GLdouble * equation); +typedef void (GLAD_API_PTR *PFNGLCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3BVPROC)(const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3IPROC)(GLint red, GLint green, GLint blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3UBVPROC)(const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3UIVPROC)(const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); +typedef void (GLAD_API_PTR *PFNGLCOLOR3USVPROC)(const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4BPROC)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4BVPROC)(const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4DPROC)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4FPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4IPROC)(GLint red, GLint green, GLint blue, GLint alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4SPROC)(GLshort red, GLshort green, GLshort blue, GLshort alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4UBPROC)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4UBVPROC)(const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4UIPROC)(GLuint red, GLuint green, GLuint blue, GLuint alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4UIVPROC)(const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLCOLOR4USPROC)(GLushort red, GLushort green, GLushort blue, GLushort alpha); +typedef void (GLAD_API_PTR *PFNGLCOLOR4USVPROC)(const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLCOLORMASKPROC)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +typedef void (GLAD_API_PTR *PFNGLCOLORMASKIPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (GLAD_API_PTR *PFNGLCOLORMATERIALPROC)(GLenum face, GLenum mode); +typedef void (GLAD_API_PTR *PFNGLCOLORP3UIPROC)(GLenum type, GLuint color); +typedef void (GLAD_API_PTR *PFNGLCOLORP3UIVPROC)(GLenum type, const GLuint * color); +typedef void (GLAD_API_PTR *PFNGLCOLORP4UIPROC)(GLenum type, GLuint color); +typedef void (GLAD_API_PTR *PFNGLCOLORP4UIVPROC)(GLenum type, const GLuint * color); +typedef void (GLAD_API_PTR *PFNGLCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLCOMPILESHADERPROC)(GLuint shader); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXIMAGE3DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data); +typedef void (GLAD_API_PTR *PFNGLCOPYBUFFERSUBDATAPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (GLAD_API_PTR *PFNGLCOPYPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +typedef void (GLAD_API_PTR *PFNGLCOPYTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (GLAD_API_PTR *PFNGLCOPYTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (GLAD_API_PTR *PFNGLCOPYTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (GLAD_API_PTR *PFNGLCOPYTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAD_API_PTR *PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef GLuint (GLAD_API_PTR *PFNGLCREATEPROGRAMPROC)(void); +typedef GLuint (GLAD_API_PTR *PFNGLCREATESHADERPROC)(GLenum type); +typedef void (GLAD_API_PTR *PFNGLCULLFACEPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLDEBUGMESSAGECALLBACKPROC)(GLDEBUGPROC callback, const void * userParam); +typedef void (GLAD_API_PTR *PFNGLDEBUGMESSAGECONTROLPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled); +typedef void (GLAD_API_PTR *PFNGLDEBUGMESSAGEINSERTPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * buf); +typedef void (GLAD_API_PTR *PFNGLDELETEBUFFERSPROC)(GLsizei n, const GLuint * buffers); +typedef void (GLAD_API_PTR *PFNGLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint * framebuffers); +typedef void (GLAD_API_PTR *PFNGLDELETELISTSPROC)(GLuint list, GLsizei range); +typedef void (GLAD_API_PTR *PFNGLDELETEPROGRAMPROC)(GLuint program); +typedef void (GLAD_API_PTR *PFNGLDELETEQUERIESPROC)(GLsizei n, const GLuint * ids); +typedef void (GLAD_API_PTR *PFNGLDELETERENDERBUFFERSPROC)(GLsizei n, const GLuint * renderbuffers); +typedef void (GLAD_API_PTR *PFNGLDELETESAMPLERSPROC)(GLsizei count, const GLuint * samplers); +typedef void (GLAD_API_PTR *PFNGLDELETESHADERPROC)(GLuint shader); +typedef void (GLAD_API_PTR *PFNGLDELETESYNCPROC)(GLsync sync); +typedef void (GLAD_API_PTR *PFNGLDELETETEXTURESPROC)(GLsizei n, const GLuint * textures); +typedef void (GLAD_API_PTR *PFNGLDELETEVERTEXARRAYSPROC)(GLsizei n, const GLuint * arrays); +typedef void (GLAD_API_PTR *PFNGLDEPTHFUNCPROC)(GLenum func); +typedef void (GLAD_API_PTR *PFNGLDEPTHMASKPROC)(GLboolean flag); +typedef void (GLAD_API_PTR *PFNGLDEPTHRANGEPROC)(GLdouble n, GLdouble f); +typedef void (GLAD_API_PTR *PFNGLDETACHSHADERPROC)(GLuint program, GLuint shader); +typedef void (GLAD_API_PTR *PFNGLDISABLEPROC)(GLenum cap); +typedef void (GLAD_API_PTR *PFNGLDISABLECLIENTSTATEPROC)(GLenum array); +typedef void (GLAD_API_PTR *PFNGLDISABLEVERTEXATTRIBARRAYPROC)(GLuint index); +typedef void (GLAD_API_PTR *PFNGLDISABLEIPROC)(GLenum target, GLuint index); +typedef void (GLAD_API_PTR *PFNGLDRAWARRAYSPROC)(GLenum mode, GLint first, GLsizei count); +typedef void (GLAD_API_PTR *PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); +typedef void (GLAD_API_PTR *PFNGLDRAWBUFFERPROC)(GLenum buf); +typedef void (GLAD_API_PTR *PFNGLDRAWBUFFERSPROC)(GLsizei n, const GLenum * bufs); +typedef void (GLAD_API_PTR *PFNGLDRAWELEMENTSPROC)(GLenum mode, GLsizei count, GLenum type, const void * indices); +typedef void (GLAD_API_PTR *PFNGLDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLint basevertex); +typedef void (GLAD_API_PTR *PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount); +typedef void (GLAD_API_PTR *PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex); +typedef void (GLAD_API_PTR *PFNGLDRAWPIXELSPROC)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices); +typedef void (GLAD_API_PTR *PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices, GLint basevertex); +typedef void (GLAD_API_PTR *PFNGLEDGEFLAGPROC)(GLboolean flag); +typedef void (GLAD_API_PTR *PFNGLEDGEFLAGPOINTERPROC)(GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLEDGEFLAGVPROC)(const GLboolean * flag); +typedef void (GLAD_API_PTR *PFNGLENABLEPROC)(GLenum cap); +typedef void (GLAD_API_PTR *PFNGLENABLECLIENTSTATEPROC)(GLenum array); +typedef void (GLAD_API_PTR *PFNGLENABLEVERTEXATTRIBARRAYPROC)(GLuint index); +typedef void (GLAD_API_PTR *PFNGLENABLEIPROC)(GLenum target, GLuint index); +typedef void (GLAD_API_PTR *PFNGLENDPROC)(void); +typedef void (GLAD_API_PTR *PFNGLENDCONDITIONALRENDERPROC)(void); +typedef void (GLAD_API_PTR *PFNGLENDLISTPROC)(void); +typedef void (GLAD_API_PTR *PFNGLENDQUERYPROC)(GLenum target); +typedef void (GLAD_API_PTR *PFNGLENDTRANSFORMFEEDBACKPROC)(void); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD1DPROC)(GLdouble u); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD1DVPROC)(const GLdouble * u); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD1FPROC)(GLfloat u); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD1FVPROC)(const GLfloat * u); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD2DPROC)(GLdouble u, GLdouble v); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD2DVPROC)(const GLdouble * u); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD2FPROC)(GLfloat u, GLfloat v); +typedef void (GLAD_API_PTR *PFNGLEVALCOORD2FVPROC)(const GLfloat * u); +typedef void (GLAD_API_PTR *PFNGLEVALMESH1PROC)(GLenum mode, GLint i1, GLint i2); +typedef void (GLAD_API_PTR *PFNGLEVALMESH2PROC)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); +typedef void (GLAD_API_PTR *PFNGLEVALPOINT1PROC)(GLint i); +typedef void (GLAD_API_PTR *PFNGLEVALPOINT2PROC)(GLint i, GLint j); +typedef void (GLAD_API_PTR *PFNGLFEEDBACKBUFFERPROC)(GLsizei size, GLenum type, GLfloat * buffer); +typedef GLsync (GLAD_API_PTR *PFNGLFENCESYNCPROC)(GLenum condition, GLbitfield flags); +typedef void (GLAD_API_PTR *PFNGLFINISHPROC)(void); +typedef void (GLAD_API_PTR *PFNGLFLUSHPROC)(void); +typedef void (GLAD_API_PTR *PFNGLFLUSHMAPPEDBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length); +typedef void (GLAD_API_PTR *PFNGLFOGCOORDPOINTERPROC)(GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLFOGCOORDDPROC)(GLdouble coord); +typedef void (GLAD_API_PTR *PFNGLFOGCOORDDVPROC)(const GLdouble * coord); +typedef void (GLAD_API_PTR *PFNGLFOGCOORDFPROC)(GLfloat coord); +typedef void (GLAD_API_PTR *PFNGLFOGCOORDFVPROC)(const GLfloat * coord); +typedef void (GLAD_API_PTR *PFNGLFOGFPROC)(GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLFOGFVPROC)(GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLFOGIPROC)(GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLFOGIVPROC)(GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERTEXTUREPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (GLAD_API_PTR *PFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (GLAD_API_PTR *PFNGLFRONTFACEPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLFRUSTUMPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (GLAD_API_PTR *PFNGLGENBUFFERSPROC)(GLsizei n, GLuint * buffers); +typedef void (GLAD_API_PTR *PFNGLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint * framebuffers); +typedef GLuint (GLAD_API_PTR *PFNGLGENLISTSPROC)(GLsizei range); +typedef void (GLAD_API_PTR *PFNGLGENQUERIESPROC)(GLsizei n, GLuint * ids); +typedef void (GLAD_API_PTR *PFNGLGENRENDERBUFFERSPROC)(GLsizei n, GLuint * renderbuffers); +typedef void (GLAD_API_PTR *PFNGLGENSAMPLERSPROC)(GLsizei count, GLuint * samplers); +typedef void (GLAD_API_PTR *PFNGLGENTEXTURESPROC)(GLsizei n, GLuint * textures); +typedef void (GLAD_API_PTR *PFNGLGENVERTEXARRAYSPROC)(GLsizei n, GLuint * arrays); +typedef void (GLAD_API_PTR *PFNGLGENERATEMIPMAPPROC)(GLenum target); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEATTRIBPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEUNIFORMPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName); +typedef void (GLAD_API_PTR *PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETATTACHEDSHADERSPROC)(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders); +typedef GLint (GLAD_API_PTR *PFNGLGETATTRIBLOCATIONPROC)(GLuint program, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLGETBOOLEANI_VPROC)(GLenum target, GLuint index, GLboolean * data); +typedef void (GLAD_API_PTR *PFNGLGETBOOLEANVPROC)(GLenum pname, GLboolean * data); +typedef void (GLAD_API_PTR *PFNGLGETBUFFERPARAMETERI64VPROC)(GLenum target, GLenum pname, GLint64 * params); +typedef void (GLAD_API_PTR *PFNGLGETBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETBUFFERPOINTERVPROC)(GLenum target, GLenum pname, void ** params); +typedef void (GLAD_API_PTR *PFNGLGETBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, void * data); +typedef void (GLAD_API_PTR *PFNGLGETCLIPPLANEPROC)(GLenum plane, GLdouble * equation); +typedef void (GLAD_API_PTR *PFNGLGETCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint level, void * img); +typedef GLuint (GLAD_API_PTR *PFNGLGETDEBUGMESSAGELOGPROC)(GLuint count, GLsizei bufSize, GLenum * sources, GLenum * types, GLuint * ids, GLenum * severities, GLsizei * lengths, GLchar * messageLog); +typedef void (GLAD_API_PTR *PFNGLGETDOUBLEVPROC)(GLenum pname, GLdouble * data); +typedef GLenum (GLAD_API_PTR *PFNGLGETERRORPROC)(void); +typedef void (GLAD_API_PTR *PFNGLGETFLOATVPROC)(GLenum pname, GLfloat * data); +typedef GLint (GLAD_API_PTR *PFNGLGETFRAGDATAINDEXPROC)(GLuint program, const GLchar * name); +typedef GLint (GLAD_API_PTR *PFNGLGETFRAGDATALOCATIONPROC)(GLuint program, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum target, GLenum attachment, GLenum pname, GLint * params); +typedef GLenum (GLAD_API_PTR *PFNGLGETGRAPHICSRESETSTATUSARBPROC)(void); +typedef void (GLAD_API_PTR *PFNGLGETINTEGER64I_VPROC)(GLenum target, GLuint index, GLint64 * data); +typedef void (GLAD_API_PTR *PFNGLGETINTEGER64VPROC)(GLenum pname, GLint64 * data); +typedef void (GLAD_API_PTR *PFNGLGETINTEGERI_VPROC)(GLenum target, GLuint index, GLint * data); +typedef void (GLAD_API_PTR *PFNGLGETINTEGERVPROC)(GLenum pname, GLint * data); +typedef void (GLAD_API_PTR *PFNGLGETLIGHTFVPROC)(GLenum light, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETLIGHTIVPROC)(GLenum light, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETMAPDVPROC)(GLenum target, GLenum query, GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLGETMAPFVPROC)(GLenum target, GLenum query, GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLGETMAPIVPROC)(GLenum target, GLenum query, GLint * v); +typedef void (GLAD_API_PTR *PFNGLGETMATERIALFVPROC)(GLenum face, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETMATERIALIVPROC)(GLenum face, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETMULTISAMPLEFVPROC)(GLenum pname, GLuint index, GLfloat * val); +typedef void (GLAD_API_PTR *PFNGLGETOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei * length, GLchar * label); +typedef void (GLAD_API_PTR *PFNGLGETOBJECTPTRLABELPROC)(const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label); +typedef void (GLAD_API_PTR *PFNGLGETPIXELMAPFVPROC)(GLenum map, GLfloat * values); +typedef void (GLAD_API_PTR *PFNGLGETPIXELMAPUIVPROC)(GLenum map, GLuint * values); +typedef void (GLAD_API_PTR *PFNGLGETPIXELMAPUSVPROC)(GLenum map, GLushort * values); +typedef void (GLAD_API_PTR *PFNGLGETPOINTERVPROC)(GLenum pname, void ** params); +typedef void (GLAD_API_PTR *PFNGLGETPOLYGONSTIPPLEPROC)(GLubyte * mask); +typedef void (GLAD_API_PTR *PFNGLGETPROGRAMINFOLOGPROC)(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog); +typedef void (GLAD_API_PTR *PFNGLGETPROGRAMIVPROC)(GLuint program, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETQUERYOBJECTI64VPROC)(GLuint id, GLenum pname, GLint64 * params); +typedef void (GLAD_API_PTR *PFNGLGETQUERYOBJECTIVPROC)(GLuint id, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETQUERYOBJECTUI64VPROC)(GLuint id, GLenum pname, GLuint64 * params); +typedef void (GLAD_API_PTR *PFNGLGETQUERYOBJECTUIVPROC)(GLuint id, GLenum pname, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLGETQUERYIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLGETSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETSHADERINFOLOGPROC)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog); +typedef void (GLAD_API_PTR *PFNGLGETSHADERSOURCEPROC)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source); +typedef void (GLAD_API_PTR *PFNGLGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint * params); +typedef const GLubyte * (GLAD_API_PTR *PFNGLGETSTRINGPROC)(GLenum name); +typedef const GLubyte * (GLAD_API_PTR *PFNGLGETSTRINGIPROC)(GLenum name, GLuint index); +typedef void (GLAD_API_PTR *PFNGLGETSYNCIVPROC)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei * length, GLint * values); +typedef void (GLAD_API_PTR *PFNGLGETTEXENVFVPROC)(GLenum target, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXENVIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXGENDVPROC)(GLenum coord, GLenum pname, GLdouble * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXGENFVPROC)(GLenum coord, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXGENIVPROC)(GLenum coord, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, void * pixels); +typedef void (GLAD_API_PTR *PFNGLGETTEXLEVELPARAMETERFVPROC)(GLenum target, GLint level, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXLEVELPARAMETERIVPROC)(GLenum target, GLint level, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETTEXPARAMETERIVPROC)(GLenum target, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name); +typedef GLuint (GLAD_API_PTR *PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program, const GLchar * uniformBlockName); +typedef void (GLAD_API_PTR *PFNGLGETUNIFORMINDICESPROC)(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices); +typedef GLint (GLAD_API_PTR *PFNGLGETUNIFORMLOCATIONPROC)(GLuint program, const GLchar * name); +typedef void (GLAD_API_PTR *PFNGLGETUNIFORMFVPROC)(GLuint program, GLint location, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETUNIFORMIVPROC)(GLuint program, GLint location, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETUNIFORMUIVPROC)(GLuint program, GLint location, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBIIVPROC)(GLuint index, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBIUIVPROC)(GLuint index, GLenum pname, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint index, GLenum pname, void ** pointer); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBDVPROC)(GLuint index, GLenum pname, GLdouble * params); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBFVPROC)(GLuint index, GLenum pname, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETVERTEXATTRIBIVPROC)(GLuint index, GLenum pname, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETNCOLORTABLEARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void * table); +typedef void (GLAD_API_PTR *PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)(GLenum target, GLint lod, GLsizei bufSize, void * img); +typedef void (GLAD_API_PTR *PFNGLGETNCONVOLUTIONFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void * image); +typedef void (GLAD_API_PTR *PFNGLGETNHISTOGRAMARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void * values); +typedef void (GLAD_API_PTR *PFNGLGETNMAPDVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLGETNMAPFVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLGETNMAPIVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLint * v); +typedef void (GLAD_API_PTR *PFNGLGETNMINMAXARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void * values); +typedef void (GLAD_API_PTR *PFNGLGETNPIXELMAPFVARBPROC)(GLenum map, GLsizei bufSize, GLfloat * values); +typedef void (GLAD_API_PTR *PFNGLGETNPIXELMAPUIVARBPROC)(GLenum map, GLsizei bufSize, GLuint * values); +typedef void (GLAD_API_PTR *PFNGLGETNPIXELMAPUSVARBPROC)(GLenum map, GLsizei bufSize, GLushort * values); +typedef void (GLAD_API_PTR *PFNGLGETNPOLYGONSTIPPLEARBPROC)(GLsizei bufSize, GLubyte * pattern); +typedef void (GLAD_API_PTR *PFNGLGETNSEPARABLEFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void * row, GLsizei columnBufSize, void * column, void * span); +typedef void (GLAD_API_PTR *PFNGLGETNTEXIMAGEARBPROC)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * img); +typedef void (GLAD_API_PTR *PFNGLGETNUNIFORMDVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLdouble * params); +typedef void (GLAD_API_PTR *PFNGLGETNUNIFORMFVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLGETNUNIFORMIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLint * params); +typedef void (GLAD_API_PTR *PFNGLGETNUNIFORMUIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint * params); +typedef void (GLAD_API_PTR *PFNGLHINTPROC)(GLenum target, GLenum mode); +typedef void (GLAD_API_PTR *PFNGLINDEXMASKPROC)(GLuint mask); +typedef void (GLAD_API_PTR *PFNGLINDEXPOINTERPROC)(GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLINDEXDPROC)(GLdouble c); +typedef void (GLAD_API_PTR *PFNGLINDEXDVPROC)(const GLdouble * c); +typedef void (GLAD_API_PTR *PFNGLINDEXFPROC)(GLfloat c); +typedef void (GLAD_API_PTR *PFNGLINDEXFVPROC)(const GLfloat * c); +typedef void (GLAD_API_PTR *PFNGLINDEXIPROC)(GLint c); +typedef void (GLAD_API_PTR *PFNGLINDEXIVPROC)(const GLint * c); +typedef void (GLAD_API_PTR *PFNGLINDEXSPROC)(GLshort c); +typedef void (GLAD_API_PTR *PFNGLINDEXSVPROC)(const GLshort * c); +typedef void (GLAD_API_PTR *PFNGLINDEXUBPROC)(GLubyte c); +typedef void (GLAD_API_PTR *PFNGLINDEXUBVPROC)(const GLubyte * c); +typedef void (GLAD_API_PTR *PFNGLINITNAMESPROC)(void); +typedef void (GLAD_API_PTR *PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void * pointer); +typedef GLboolean (GLAD_API_PTR *PFNGLISBUFFERPROC)(GLuint buffer); +typedef GLboolean (GLAD_API_PTR *PFNGLISENABLEDPROC)(GLenum cap); +typedef GLboolean (GLAD_API_PTR *PFNGLISENABLEDIPROC)(GLenum target, GLuint index); +typedef GLboolean (GLAD_API_PTR *PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer); +typedef GLboolean (GLAD_API_PTR *PFNGLISLISTPROC)(GLuint list); +typedef GLboolean (GLAD_API_PTR *PFNGLISPROGRAMPROC)(GLuint program); +typedef GLboolean (GLAD_API_PTR *PFNGLISQUERYPROC)(GLuint id); +typedef GLboolean (GLAD_API_PTR *PFNGLISRENDERBUFFERPROC)(GLuint renderbuffer); +typedef GLboolean (GLAD_API_PTR *PFNGLISSAMPLERPROC)(GLuint sampler); +typedef GLboolean (GLAD_API_PTR *PFNGLISSHADERPROC)(GLuint shader); +typedef GLboolean (GLAD_API_PTR *PFNGLISSYNCPROC)(GLsync sync); +typedef GLboolean (GLAD_API_PTR *PFNGLISTEXTUREPROC)(GLuint texture); +typedef GLboolean (GLAD_API_PTR *PFNGLISVERTEXARRAYPROC)(GLuint array); +typedef void (GLAD_API_PTR *PFNGLLIGHTMODELFPROC)(GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLLIGHTMODELFVPROC)(GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLLIGHTMODELIPROC)(GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLLIGHTMODELIVPROC)(GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLLIGHTFPROC)(GLenum light, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLLIGHTFVPROC)(GLenum light, GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLLIGHTIPROC)(GLenum light, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLLIGHTIVPROC)(GLenum light, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLLINESTIPPLEPROC)(GLint factor, GLushort pattern); +typedef void (GLAD_API_PTR *PFNGLLINEWIDTHPROC)(GLfloat width); +typedef void (GLAD_API_PTR *PFNGLLINKPROGRAMPROC)(GLuint program); +typedef void (GLAD_API_PTR *PFNGLLISTBASEPROC)(GLuint base); +typedef void (GLAD_API_PTR *PFNGLLOADIDENTITYPROC)(void); +typedef void (GLAD_API_PTR *PFNGLLOADMATRIXDPROC)(const GLdouble * m); +typedef void (GLAD_API_PTR *PFNGLLOADMATRIXFPROC)(const GLfloat * m); +typedef void (GLAD_API_PTR *PFNGLLOADNAMEPROC)(GLuint name); +typedef void (GLAD_API_PTR *PFNGLLOADTRANSPOSEMATRIXDPROC)(const GLdouble * m); +typedef void (GLAD_API_PTR *PFNGLLOADTRANSPOSEMATRIXFPROC)(const GLfloat * m); +typedef void (GLAD_API_PTR *PFNGLLOGICOPPROC)(GLenum opcode); +typedef void (GLAD_API_PTR *PFNGLMAP1DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points); +typedef void (GLAD_API_PTR *PFNGLMAP1FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points); +typedef void (GLAD_API_PTR *PFNGLMAP2DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points); +typedef void (GLAD_API_PTR *PFNGLMAP2FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points); +typedef void * (GLAD_API_PTR *PFNGLMAPBUFFERPROC)(GLenum target, GLenum access); +typedef void * (GLAD_API_PTR *PFNGLMAPBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (GLAD_API_PTR *PFNGLMAPGRID1DPROC)(GLint un, GLdouble u1, GLdouble u2); +typedef void (GLAD_API_PTR *PFNGLMAPGRID1FPROC)(GLint un, GLfloat u1, GLfloat u2); +typedef void (GLAD_API_PTR *PFNGLMAPGRID2DPROC)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); +typedef void (GLAD_API_PTR *PFNGLMAPGRID2FPROC)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); +typedef void (GLAD_API_PTR *PFNGLMATERIALFPROC)(GLenum face, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLMATERIALFVPROC)(GLenum face, GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLMATERIALIPROC)(GLenum face, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLMATERIALIVPROC)(GLenum face, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLMATRIXMODEPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLMULTMATRIXDPROC)(const GLdouble * m); +typedef void (GLAD_API_PTR *PFNGLMULTMATRIXFPROC)(const GLfloat * m); +typedef void (GLAD_API_PTR *PFNGLMULTTRANSPOSEMATRIXDPROC)(const GLdouble * m); +typedef void (GLAD_API_PTR *PFNGLMULTTRANSPOSEMATRIXFPROC)(const GLfloat * m); +typedef void (GLAD_API_PTR *PFNGLMULTIDRAWARRAYSPROC)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount); +typedef void (GLAD_API_PTR *PFNGLMULTIDRAWELEMENTSPROC)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount); +typedef void (GLAD_API_PTR *PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount, const GLint * basevertex); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1DPROC)(GLenum target, GLdouble s); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1DVPROC)(GLenum target, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1FPROC)(GLenum target, GLfloat s); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1FVPROC)(GLenum target, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1IPROC)(GLenum target, GLint s); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1IVPROC)(GLenum target, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1SPROC)(GLenum target, GLshort s); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD1SVPROC)(GLenum target, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2DPROC)(GLenum target, GLdouble s, GLdouble t); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2DVPROC)(GLenum target, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2FPROC)(GLenum target, GLfloat s, GLfloat t); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2FVPROC)(GLenum target, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2IPROC)(GLenum target, GLint s, GLint t); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2IVPROC)(GLenum target, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2SPROC)(GLenum target, GLshort s, GLshort t); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD2SVPROC)(GLenum target, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3DVPROC)(GLenum target, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3FVPROC)(GLenum target, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3IPROC)(GLenum target, GLint s, GLint t, GLint r); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3IVPROC)(GLenum target, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3SPROC)(GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD3SVPROC)(GLenum target, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4DVPROC)(GLenum target, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4FVPROC)(GLenum target, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4IPROC)(GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4IVPROC)(GLenum target, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4SPROC)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORD4SVPROC)(GLenum target, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP1UIPROC)(GLenum texture, GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP1UIVPROC)(GLenum texture, GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP2UIPROC)(GLenum texture, GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP2UIVPROC)(GLenum texture, GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP3UIPROC)(GLenum texture, GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP3UIVPROC)(GLenum texture, GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP4UIPROC)(GLenum texture, GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLMULTITEXCOORDP4UIVPROC)(GLenum texture, GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLNEWLISTPROC)(GLuint list, GLenum mode); +typedef void (GLAD_API_PTR *PFNGLNORMAL3BPROC)(GLbyte nx, GLbyte ny, GLbyte nz); +typedef void (GLAD_API_PTR *PFNGLNORMAL3BVPROC)(const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLNORMAL3DPROC)(GLdouble nx, GLdouble ny, GLdouble nz); +typedef void (GLAD_API_PTR *PFNGLNORMAL3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLNORMAL3FPROC)(GLfloat nx, GLfloat ny, GLfloat nz); +typedef void (GLAD_API_PTR *PFNGLNORMAL3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLNORMAL3IPROC)(GLint nx, GLint ny, GLint nz); +typedef void (GLAD_API_PTR *PFNGLNORMAL3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLNORMAL3SPROC)(GLshort nx, GLshort ny, GLshort nz); +typedef void (GLAD_API_PTR *PFNGLNORMAL3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLNORMALP3UIPROC)(GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLNORMALP3UIVPROC)(GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLNORMALPOINTERPROC)(GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei length, const GLchar * label); +typedef void (GLAD_API_PTR *PFNGLOBJECTPTRLABELPROC)(const void * ptr, GLsizei length, const GLchar * label); +typedef void (GLAD_API_PTR *PFNGLORTHOPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (GLAD_API_PTR *PFNGLPASSTHROUGHPROC)(GLfloat token); +typedef void (GLAD_API_PTR *PFNGLPIXELMAPFVPROC)(GLenum map, GLsizei mapsize, const GLfloat * values); +typedef void (GLAD_API_PTR *PFNGLPIXELMAPUIVPROC)(GLenum map, GLsizei mapsize, const GLuint * values); +typedef void (GLAD_API_PTR *PFNGLPIXELMAPUSVPROC)(GLenum map, GLsizei mapsize, const GLushort * values); +typedef void (GLAD_API_PTR *PFNGLPIXELSTOREFPROC)(GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLPIXELSTOREIPROC)(GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLPIXELTRANSFERFPROC)(GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLPIXELTRANSFERIPROC)(GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLPIXELZOOMPROC)(GLfloat xfactor, GLfloat yfactor); +typedef void (GLAD_API_PTR *PFNGLPOINTPARAMETERFPROC)(GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLPOINTPARAMETERFVPROC)(GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLPOINTPARAMETERIPROC)(GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLPOINTPARAMETERIVPROC)(GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLPOINTSIZEPROC)(GLfloat size); +typedef void (GLAD_API_PTR *PFNGLPOLYGONMODEPROC)(GLenum face, GLenum mode); +typedef void (GLAD_API_PTR *PFNGLPOLYGONOFFSETPROC)(GLfloat factor, GLfloat units); +typedef void (GLAD_API_PTR *PFNGLPOLYGONSTIPPLEPROC)(const GLubyte * mask); +typedef void (GLAD_API_PTR *PFNGLPOPATTRIBPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPOPCLIENTATTRIBPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPOPDEBUGGROUPPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPOPMATRIXPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPOPNAMEPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint index); +typedef void (GLAD_API_PTR *PFNGLPRIORITIZETEXTURESPROC)(GLsizei n, const GLuint * textures, const GLfloat * priorities); +typedef void (GLAD_API_PTR *PFNGLPROVOKINGVERTEXPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLPUSHATTRIBPROC)(GLbitfield mask); +typedef void (GLAD_API_PTR *PFNGLPUSHCLIENTATTRIBPROC)(GLbitfield mask); +typedef void (GLAD_API_PTR *PFNGLPUSHDEBUGGROUPPROC)(GLenum source, GLuint id, GLsizei length, const GLchar * message); +typedef void (GLAD_API_PTR *PFNGLPUSHMATRIXPROC)(void); +typedef void (GLAD_API_PTR *PFNGLPUSHNAMEPROC)(GLuint name); +typedef void (GLAD_API_PTR *PFNGLQUERYCOUNTERPROC)(GLuint id, GLenum target); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2DPROC)(GLdouble x, GLdouble y); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2FPROC)(GLfloat x, GLfloat y); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2IPROC)(GLint x, GLint y); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2SPROC)(GLshort x, GLshort y); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS2SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3IPROC)(GLint x, GLint y, GLint z); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3SPROC)(GLshort x, GLshort y, GLshort z); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4IPROC)(GLint x, GLint y, GLint z, GLint w); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAD_API_PTR *PFNGLRASTERPOS4SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLREADBUFFERPROC)(GLenum src); +typedef void (GLAD_API_PTR *PFNGLREADPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels); +typedef void (GLAD_API_PTR *PFNGLREADNPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); +typedef void (GLAD_API_PTR *PFNGLREADNPIXELSARBPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data); +typedef void (GLAD_API_PTR *PFNGLRECTDPROC)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); +typedef void (GLAD_API_PTR *PFNGLRECTDVPROC)(const GLdouble * v1, const GLdouble * v2); +typedef void (GLAD_API_PTR *PFNGLRECTFPROC)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); +typedef void (GLAD_API_PTR *PFNGLRECTFVPROC)(const GLfloat * v1, const GLfloat * v2); +typedef void (GLAD_API_PTR *PFNGLRECTIPROC)(GLint x1, GLint y1, GLint x2, GLint y2); +typedef void (GLAD_API_PTR *PFNGLRECTIVPROC)(const GLint * v1, const GLint * v2); +typedef void (GLAD_API_PTR *PFNGLRECTSPROC)(GLshort x1, GLshort y1, GLshort x2, GLshort y2); +typedef void (GLAD_API_PTR *PFNGLRECTSVPROC)(const GLshort * v1, const GLshort * v2); +typedef GLint (GLAD_API_PTR *PFNGLRENDERMODEPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLRENDERBUFFERSTORAGEPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAD_API_PTR *PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAD_API_PTR *PFNGLROTATEDPROC)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLROTATEFPROC)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLSAMPLECOVERAGEPROC)(GLfloat value, GLboolean invert); +typedef void (GLAD_API_PTR *PFNGLSAMPLECOVERAGEARBPROC)(GLfloat value, GLboolean invert); +typedef void (GLAD_API_PTR *PFNGLSAMPLEMASKIPROC)(GLuint maskNumber, GLbitfield mask); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, const GLint * param); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, const GLuint * param); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERFPROC)(GLuint sampler, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, const GLfloat * param); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERIPROC)(GLuint sampler, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, const GLint * param); +typedef void (GLAD_API_PTR *PFNGLSCALEDPROC)(GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLSCALEFPROC)(GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLSCISSORPROC)(GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3BVPROC)(const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3IPROC)(GLint red, GLint green, GLint blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3UBVPROC)(const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3UIVPROC)(const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLOR3USVPROC)(const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLORP3UIPROC)(GLenum type, GLuint color); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLORP3UIVPROC)(GLenum type, const GLuint * color); +typedef void (GLAD_API_PTR *PFNGLSECONDARYCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLSELECTBUFFERPROC)(GLsizei size, GLuint * buffer); +typedef void (GLAD_API_PTR *PFNGLSHADEMODELPROC)(GLenum mode); +typedef void (GLAD_API_PTR *PFNGLSHADERSOURCEPROC)(GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length); +typedef void (GLAD_API_PTR *PFNGLSTENCILFUNCPROC)(GLenum func, GLint ref, GLuint mask); +typedef void (GLAD_API_PTR *PFNGLSTENCILFUNCSEPARATEPROC)(GLenum face, GLenum func, GLint ref, GLuint mask); +typedef void (GLAD_API_PTR *PFNGLSTENCILMASKPROC)(GLuint mask); +typedef void (GLAD_API_PTR *PFNGLSTENCILMASKSEPARATEPROC)(GLenum face, GLuint mask); +typedef void (GLAD_API_PTR *PFNGLSTENCILOPPROC)(GLenum fail, GLenum zfail, GLenum zpass); +typedef void (GLAD_API_PTR *PFNGLSTENCILOPSEPARATEPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (GLAD_API_PTR *PFNGLTEXBUFFERPROC)(GLenum target, GLenum internalformat, GLuint buffer); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1DPROC)(GLdouble s); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1FPROC)(GLfloat s); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1IPROC)(GLint s); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1SPROC)(GLshort s); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD1SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2DPROC)(GLdouble s, GLdouble t); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2FPROC)(GLfloat s, GLfloat t); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2IPROC)(GLint s, GLint t); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2SPROC)(GLshort s, GLshort t); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD2SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3DPROC)(GLdouble s, GLdouble t, GLdouble r); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3FPROC)(GLfloat s, GLfloat t, GLfloat r); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3IPROC)(GLint s, GLint t, GLint r); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3SPROC)(GLshort s, GLshort t, GLshort r); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4DPROC)(GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4FPROC)(GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4IPROC)(GLint s, GLint t, GLint r, GLint q); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4SPROC)(GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (GLAD_API_PTR *PFNGLTEXCOORD4SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP1UIPROC)(GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP1UIVPROC)(GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP2UIPROC)(GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP2UIVPROC)(GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP3UIPROC)(GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP3UIVPROC)(GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP4UIPROC)(GLenum type, GLuint coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDP4UIVPROC)(GLenum type, const GLuint * coords); +typedef void (GLAD_API_PTR *PFNGLTEXCOORDPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLTEXENVFPROC)(GLenum target, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLTEXENVFVPROC)(GLenum target, GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLTEXENVIPROC)(GLenum target, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLTEXENVIVPROC)(GLenum target, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLTEXGENDPROC)(GLenum coord, GLenum pname, GLdouble param); +typedef void (GLAD_API_PTR *PFNGLTEXGENDVPROC)(GLenum coord, GLenum pname, const GLdouble * params); +typedef void (GLAD_API_PTR *PFNGLTEXGENFPROC)(GLenum coord, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLTEXGENFVPROC)(GLenum coord, GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLTEXGENIPROC)(GLenum coord, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLTEXGENIVPROC)(GLenum coord, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLTEXIMAGE1DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTEXIMAGE2DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTEXIMAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (GLAD_API_PTR *PFNGLTEXIMAGE3DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTEXIMAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, const GLuint * params); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERFPROC)(GLenum target, GLenum pname, GLfloat param); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat * params); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERIPROC)(GLenum target, GLenum pname, GLint param); +typedef void (GLAD_API_PTR *PFNGLTEXPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint * params); +typedef void (GLAD_API_PTR *PFNGLTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels); +typedef void (GLAD_API_PTR *PFNGLTRANSFORMFEEDBACKVARYINGSPROC)(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode); +typedef void (GLAD_API_PTR *PFNGLTRANSLATEDPROC)(GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLTRANSLATEFPROC)(GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1FPROC)(GLint location, GLfloat v0); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1FVPROC)(GLint location, GLsizei count, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1IPROC)(GLint location, GLint v0); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1IVPROC)(GLint location, GLsizei count, const GLint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1UIPROC)(GLint location, GLuint v0); +typedef void (GLAD_API_PTR *PFNGLUNIFORM1UIVPROC)(GLint location, GLsizei count, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2FPROC)(GLint location, GLfloat v0, GLfloat v1); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2FVPROC)(GLint location, GLsizei count, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2IPROC)(GLint location, GLint v0, GLint v1); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2IVPROC)(GLint location, GLsizei count, const GLint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2UIPROC)(GLint location, GLuint v0, GLuint v1); +typedef void (GLAD_API_PTR *PFNGLUNIFORM2UIVPROC)(GLint location, GLsizei count, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3FVPROC)(GLint location, GLsizei count, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3IPROC)(GLint location, GLint v0, GLint v1, GLint v2); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3IVPROC)(GLint location, GLsizei count, const GLint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (GLAD_API_PTR *PFNGLUNIFORM3UIVPROC)(GLint location, GLsizei count, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4FVPROC)(GLint location, GLsizei count, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4IPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4IVPROC)(GLint location, GLsizei count, const GLint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (GLAD_API_PTR *PFNGLUNIFORM4UIVPROC)(GLint location, GLsizei count, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX2X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX2X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX3X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX3X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX4X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef void (GLAD_API_PTR *PFNGLUNIFORMMATRIX4X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value); +typedef GLboolean (GLAD_API_PTR *PFNGLUNMAPBUFFERPROC)(GLenum target); +typedef void (GLAD_API_PTR *PFNGLUSEPROGRAMPROC)(GLuint program); +typedef void (GLAD_API_PTR *PFNGLVALIDATEPROGRAMPROC)(GLuint program); +typedef void (GLAD_API_PTR *PFNGLVERTEX2DPROC)(GLdouble x, GLdouble y); +typedef void (GLAD_API_PTR *PFNGLVERTEX2DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX2FPROC)(GLfloat x, GLfloat y); +typedef void (GLAD_API_PTR *PFNGLVERTEX2FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX2IPROC)(GLint x, GLint y); +typedef void (GLAD_API_PTR *PFNGLVERTEX2IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX2SPROC)(GLshort x, GLshort y); +typedef void (GLAD_API_PTR *PFNGLVERTEX2SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX3DPROC)(GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLVERTEX3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX3FPROC)(GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLVERTEX3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX3IPROC)(GLint x, GLint y, GLint z); +typedef void (GLAD_API_PTR *PFNGLVERTEX3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX3SPROC)(GLshort x, GLshort y, GLshort z); +typedef void (GLAD_API_PTR *PFNGLVERTEX3SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAD_API_PTR *PFNGLVERTEX4DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAD_API_PTR *PFNGLVERTEX4FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX4IPROC)(GLint x, GLint y, GLint z, GLint w); +typedef void (GLAD_API_PTR *PFNGLVERTEX4IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEX4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAD_API_PTR *PFNGLVERTEX4SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1DPROC)(GLuint index, GLdouble x); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1DVPROC)(GLuint index, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1FPROC)(GLuint index, GLfloat x); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1FVPROC)(GLuint index, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1SPROC)(GLuint index, GLshort x); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB1SVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2DPROC)(GLuint index, GLdouble x, GLdouble y); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2DVPROC)(GLuint index, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2FPROC)(GLuint index, GLfloat x, GLfloat y); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2FVPROC)(GLuint index, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2SPROC)(GLuint index, GLshort x, GLshort y); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB2SVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3DVPROC)(GLuint index, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3FVPROC)(GLuint index, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3SPROC)(GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB3SVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NBVPROC)(GLuint index, const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NIVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NSVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NUBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NUBVPROC)(GLuint index, const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NUIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4NUSVPROC)(GLuint index, const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4BVPROC)(GLuint index, const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4DVPROC)(GLuint index, const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4FVPROC)(GLuint index, const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4IVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4SPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4SVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4UBVPROC)(GLuint index, const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4UIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIB4USVPROC)(GLuint index, const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBDIVISORPROC)(GLuint index, GLuint divisor); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI1IPROC)(GLuint index, GLint x); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI1IVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI1UIPROC)(GLuint index, GLuint x); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI1UIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI2IPROC)(GLuint index, GLint x, GLint y); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI2IVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI2UIPROC)(GLuint index, GLuint x, GLuint y); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI2UIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI3IPROC)(GLuint index, GLint x, GLint y, GLint z); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI3IVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI3UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI3UIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4BVPROC)(GLuint index, const GLbyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4IPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4IVPROC)(GLuint index, const GLint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4SVPROC)(GLuint index, const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4UBVPROC)(GLuint index, const GLubyte * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4UIVPROC)(GLuint index, const GLuint * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBI4USVPROC)(GLuint index, const GLushort * v); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBIPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP1UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP1UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP2UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP2UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP3UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP3UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP4UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBP4UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXATTRIBPOINTERPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLVERTEXP2UIPROC)(GLenum type, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXP2UIVPROC)(GLenum type, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXP3UIPROC)(GLenum type, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXP3UIVPROC)(GLenum type, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXP4UIPROC)(GLenum type, GLuint value); +typedef void (GLAD_API_PTR *PFNGLVERTEXP4UIVPROC)(GLenum type, const GLuint * value); +typedef void (GLAD_API_PTR *PFNGLVERTEXPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void * pointer); +typedef void (GLAD_API_PTR *PFNGLVIEWPORTPROC)(GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAD_API_PTR *PFNGLWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2DPROC)(GLdouble x, GLdouble y); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2FPROC)(GLfloat x, GLfloat y); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2IPROC)(GLint x, GLint y); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2SPROC)(GLshort x, GLshort y); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS2SVPROC)(const GLshort * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3DVPROC)(const GLdouble * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3FVPROC)(const GLfloat * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3IPROC)(GLint x, GLint y, GLint z); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3IVPROC)(const GLint * v); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3SPROC)(GLshort x, GLshort y, GLshort z); +typedef void (GLAD_API_PTR *PFNGLWINDOWPOS3SVPROC)(const GLshort * v); + +GLAD_API_CALL PFNGLACCUMPROC glad_glAccum; +#define glAccum glad_glAccum +GLAD_API_CALL PFNGLACTIVETEXTUREPROC glad_glActiveTexture; +#define glActiveTexture glad_glActiveTexture +GLAD_API_CALL PFNGLALPHAFUNCPROC glad_glAlphaFunc; +#define glAlphaFunc glad_glAlphaFunc +GLAD_API_CALL PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident; +#define glAreTexturesResident glad_glAreTexturesResident +GLAD_API_CALL PFNGLARRAYELEMENTPROC glad_glArrayElement; +#define glArrayElement glad_glArrayElement +GLAD_API_CALL PFNGLATTACHSHADERPROC glad_glAttachShader; +#define glAttachShader glad_glAttachShader +GLAD_API_CALL PFNGLBEGINPROC glad_glBegin; +#define glBegin glad_glBegin +GLAD_API_CALL PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; +#define glBeginConditionalRender glad_glBeginConditionalRender +GLAD_API_CALL PFNGLBEGINQUERYPROC glad_glBeginQuery; +#define glBeginQuery glad_glBeginQuery +GLAD_API_CALL PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; +#define glBeginTransformFeedback glad_glBeginTransformFeedback +GLAD_API_CALL PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; +#define glBindAttribLocation glad_glBindAttribLocation +GLAD_API_CALL PFNGLBINDBUFFERPROC glad_glBindBuffer; +#define glBindBuffer glad_glBindBuffer +GLAD_API_CALL PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; +#define glBindBufferBase glad_glBindBufferBase +GLAD_API_CALL PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; +#define glBindBufferRange glad_glBindBufferRange +GLAD_API_CALL PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; +#define glBindFragDataLocation glad_glBindFragDataLocation +GLAD_API_CALL PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; +#define glBindFragDataLocationIndexed glad_glBindFragDataLocationIndexed +GLAD_API_CALL PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; +#define glBindFramebuffer glad_glBindFramebuffer +GLAD_API_CALL PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; +#define glBindRenderbuffer glad_glBindRenderbuffer +GLAD_API_CALL PFNGLBINDSAMPLERPROC glad_glBindSampler; +#define glBindSampler glad_glBindSampler +GLAD_API_CALL PFNGLBINDTEXTUREPROC glad_glBindTexture; +#define glBindTexture glad_glBindTexture +GLAD_API_CALL PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; +#define glBindVertexArray glad_glBindVertexArray +GLAD_API_CALL PFNGLBITMAPPROC glad_glBitmap; +#define glBitmap glad_glBitmap +GLAD_API_CALL PFNGLBLENDCOLORPROC glad_glBlendColor; +#define glBlendColor glad_glBlendColor +GLAD_API_CALL PFNGLBLENDEQUATIONPROC glad_glBlendEquation; +#define glBlendEquation glad_glBlendEquation +GLAD_API_CALL PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; +#define glBlendEquationSeparate glad_glBlendEquationSeparate +GLAD_API_CALL PFNGLBLENDFUNCPROC glad_glBlendFunc; +#define glBlendFunc glad_glBlendFunc +GLAD_API_CALL PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; +#define glBlendFuncSeparate glad_glBlendFuncSeparate +GLAD_API_CALL PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; +#define glBlitFramebuffer glad_glBlitFramebuffer +GLAD_API_CALL PFNGLBUFFERDATAPROC glad_glBufferData; +#define glBufferData glad_glBufferData +GLAD_API_CALL PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; +#define glBufferSubData glad_glBufferSubData +GLAD_API_CALL PFNGLCALLLISTPROC glad_glCallList; +#define glCallList glad_glCallList +GLAD_API_CALL PFNGLCALLLISTSPROC glad_glCallLists; +#define glCallLists glad_glCallLists +GLAD_API_CALL PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; +#define glCheckFramebufferStatus glad_glCheckFramebufferStatus +GLAD_API_CALL PFNGLCLAMPCOLORPROC glad_glClampColor; +#define glClampColor glad_glClampColor +GLAD_API_CALL PFNGLCLEARPROC glad_glClear; +#define glClear glad_glClear +GLAD_API_CALL PFNGLCLEARACCUMPROC glad_glClearAccum; +#define glClearAccum glad_glClearAccum +GLAD_API_CALL PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; +#define glClearBufferfi glad_glClearBufferfi +GLAD_API_CALL PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; +#define glClearBufferfv glad_glClearBufferfv +GLAD_API_CALL PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; +#define glClearBufferiv glad_glClearBufferiv +GLAD_API_CALL PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; +#define glClearBufferuiv glad_glClearBufferuiv +GLAD_API_CALL PFNGLCLEARCOLORPROC glad_glClearColor; +#define glClearColor glad_glClearColor +GLAD_API_CALL PFNGLCLEARDEPTHPROC glad_glClearDepth; +#define glClearDepth glad_glClearDepth +GLAD_API_CALL PFNGLCLEARINDEXPROC glad_glClearIndex; +#define glClearIndex glad_glClearIndex +GLAD_API_CALL PFNGLCLEARSTENCILPROC glad_glClearStencil; +#define glClearStencil glad_glClearStencil +GLAD_API_CALL PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture; +#define glClientActiveTexture glad_glClientActiveTexture +GLAD_API_CALL PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; +#define glClientWaitSync glad_glClientWaitSync +GLAD_API_CALL PFNGLCLIPPLANEPROC glad_glClipPlane; +#define glClipPlane glad_glClipPlane +GLAD_API_CALL PFNGLCOLOR3BPROC glad_glColor3b; +#define glColor3b glad_glColor3b +GLAD_API_CALL PFNGLCOLOR3BVPROC glad_glColor3bv; +#define glColor3bv glad_glColor3bv +GLAD_API_CALL PFNGLCOLOR3DPROC glad_glColor3d; +#define glColor3d glad_glColor3d +GLAD_API_CALL PFNGLCOLOR3DVPROC glad_glColor3dv; +#define glColor3dv glad_glColor3dv +GLAD_API_CALL PFNGLCOLOR3FPROC glad_glColor3f; +#define glColor3f glad_glColor3f +GLAD_API_CALL PFNGLCOLOR3FVPROC glad_glColor3fv; +#define glColor3fv glad_glColor3fv +GLAD_API_CALL PFNGLCOLOR3IPROC glad_glColor3i; +#define glColor3i glad_glColor3i +GLAD_API_CALL PFNGLCOLOR3IVPROC glad_glColor3iv; +#define glColor3iv glad_glColor3iv +GLAD_API_CALL PFNGLCOLOR3SPROC glad_glColor3s; +#define glColor3s glad_glColor3s +GLAD_API_CALL PFNGLCOLOR3SVPROC glad_glColor3sv; +#define glColor3sv glad_glColor3sv +GLAD_API_CALL PFNGLCOLOR3UBPROC glad_glColor3ub; +#define glColor3ub glad_glColor3ub +GLAD_API_CALL PFNGLCOLOR3UBVPROC glad_glColor3ubv; +#define glColor3ubv glad_glColor3ubv +GLAD_API_CALL PFNGLCOLOR3UIPROC glad_glColor3ui; +#define glColor3ui glad_glColor3ui +GLAD_API_CALL PFNGLCOLOR3UIVPROC glad_glColor3uiv; +#define glColor3uiv glad_glColor3uiv +GLAD_API_CALL PFNGLCOLOR3USPROC glad_glColor3us; +#define glColor3us glad_glColor3us +GLAD_API_CALL PFNGLCOLOR3USVPROC glad_glColor3usv; +#define glColor3usv glad_glColor3usv +GLAD_API_CALL PFNGLCOLOR4BPROC glad_glColor4b; +#define glColor4b glad_glColor4b +GLAD_API_CALL PFNGLCOLOR4BVPROC glad_glColor4bv; +#define glColor4bv glad_glColor4bv +GLAD_API_CALL PFNGLCOLOR4DPROC glad_glColor4d; +#define glColor4d glad_glColor4d +GLAD_API_CALL PFNGLCOLOR4DVPROC glad_glColor4dv; +#define glColor4dv glad_glColor4dv +GLAD_API_CALL PFNGLCOLOR4FPROC glad_glColor4f; +#define glColor4f glad_glColor4f +GLAD_API_CALL PFNGLCOLOR4FVPROC glad_glColor4fv; +#define glColor4fv glad_glColor4fv +GLAD_API_CALL PFNGLCOLOR4IPROC glad_glColor4i; +#define glColor4i glad_glColor4i +GLAD_API_CALL PFNGLCOLOR4IVPROC glad_glColor4iv; +#define glColor4iv glad_glColor4iv +GLAD_API_CALL PFNGLCOLOR4SPROC glad_glColor4s; +#define glColor4s glad_glColor4s +GLAD_API_CALL PFNGLCOLOR4SVPROC glad_glColor4sv; +#define glColor4sv glad_glColor4sv +GLAD_API_CALL PFNGLCOLOR4UBPROC glad_glColor4ub; +#define glColor4ub glad_glColor4ub +GLAD_API_CALL PFNGLCOLOR4UBVPROC glad_glColor4ubv; +#define glColor4ubv glad_glColor4ubv +GLAD_API_CALL PFNGLCOLOR4UIPROC glad_glColor4ui; +#define glColor4ui glad_glColor4ui +GLAD_API_CALL PFNGLCOLOR4UIVPROC glad_glColor4uiv; +#define glColor4uiv glad_glColor4uiv +GLAD_API_CALL PFNGLCOLOR4USPROC glad_glColor4us; +#define glColor4us glad_glColor4us +GLAD_API_CALL PFNGLCOLOR4USVPROC glad_glColor4usv; +#define glColor4usv glad_glColor4usv +GLAD_API_CALL PFNGLCOLORMASKPROC glad_glColorMask; +#define glColorMask glad_glColorMask +GLAD_API_CALL PFNGLCOLORMASKIPROC glad_glColorMaski; +#define glColorMaski glad_glColorMaski +GLAD_API_CALL PFNGLCOLORMATERIALPROC glad_glColorMaterial; +#define glColorMaterial glad_glColorMaterial +GLAD_API_CALL PFNGLCOLORP3UIPROC glad_glColorP3ui; +#define glColorP3ui glad_glColorP3ui +GLAD_API_CALL PFNGLCOLORP3UIVPROC glad_glColorP3uiv; +#define glColorP3uiv glad_glColorP3uiv +GLAD_API_CALL PFNGLCOLORP4UIPROC glad_glColorP4ui; +#define glColorP4ui glad_glColorP4ui +GLAD_API_CALL PFNGLCOLORP4UIVPROC glad_glColorP4uiv; +#define glColorP4uiv glad_glColorP4uiv +GLAD_API_CALL PFNGLCOLORPOINTERPROC glad_glColorPointer; +#define glColorPointer glad_glColorPointer +GLAD_API_CALL PFNGLCOMPILESHADERPROC glad_glCompileShader; +#define glCompileShader glad_glCompileShader +GLAD_API_CALL PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; +#define glCompressedTexImage1D glad_glCompressedTexImage1D +GLAD_API_CALL PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; +#define glCompressedTexImage2D glad_glCompressedTexImage2D +GLAD_API_CALL PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; +#define glCompressedTexImage3D glad_glCompressedTexImage3D +GLAD_API_CALL PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; +#define glCompressedTexSubImage1D glad_glCompressedTexSubImage1D +GLAD_API_CALL PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; +#define glCompressedTexSubImage2D glad_glCompressedTexSubImage2D +GLAD_API_CALL PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; +#define glCompressedTexSubImage3D glad_glCompressedTexSubImage3D +GLAD_API_CALL PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; +#define glCopyBufferSubData glad_glCopyBufferSubData +GLAD_API_CALL PFNGLCOPYPIXELSPROC glad_glCopyPixels; +#define glCopyPixels glad_glCopyPixels +GLAD_API_CALL PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; +#define glCopyTexImage1D glad_glCopyTexImage1D +GLAD_API_CALL PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; +#define glCopyTexImage2D glad_glCopyTexImage2D +GLAD_API_CALL PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; +#define glCopyTexSubImage1D glad_glCopyTexSubImage1D +GLAD_API_CALL PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; +#define glCopyTexSubImage2D glad_glCopyTexSubImage2D +GLAD_API_CALL PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; +#define glCopyTexSubImage3D glad_glCopyTexSubImage3D +GLAD_API_CALL PFNGLCREATEPROGRAMPROC glad_glCreateProgram; +#define glCreateProgram glad_glCreateProgram +GLAD_API_CALL PFNGLCREATESHADERPROC glad_glCreateShader; +#define glCreateShader glad_glCreateShader +GLAD_API_CALL PFNGLCULLFACEPROC glad_glCullFace; +#define glCullFace glad_glCullFace +GLAD_API_CALL PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; +#define glDebugMessageCallback glad_glDebugMessageCallback +GLAD_API_CALL PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; +#define glDebugMessageControl glad_glDebugMessageControl +GLAD_API_CALL PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; +#define glDebugMessageInsert glad_glDebugMessageInsert +GLAD_API_CALL PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; +#define glDeleteBuffers glad_glDeleteBuffers +GLAD_API_CALL PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; +#define glDeleteFramebuffers glad_glDeleteFramebuffers +GLAD_API_CALL PFNGLDELETELISTSPROC glad_glDeleteLists; +#define glDeleteLists glad_glDeleteLists +GLAD_API_CALL PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; +#define glDeleteProgram glad_glDeleteProgram +GLAD_API_CALL PFNGLDELETEQUERIESPROC glad_glDeleteQueries; +#define glDeleteQueries glad_glDeleteQueries +GLAD_API_CALL PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; +#define glDeleteRenderbuffers glad_glDeleteRenderbuffers +GLAD_API_CALL PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; +#define glDeleteSamplers glad_glDeleteSamplers +GLAD_API_CALL PFNGLDELETESHADERPROC glad_glDeleteShader; +#define glDeleteShader glad_glDeleteShader +GLAD_API_CALL PFNGLDELETESYNCPROC glad_glDeleteSync; +#define glDeleteSync glad_glDeleteSync +GLAD_API_CALL PFNGLDELETETEXTURESPROC glad_glDeleteTextures; +#define glDeleteTextures glad_glDeleteTextures +GLAD_API_CALL PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; +#define glDeleteVertexArrays glad_glDeleteVertexArrays +GLAD_API_CALL PFNGLDEPTHFUNCPROC glad_glDepthFunc; +#define glDepthFunc glad_glDepthFunc +GLAD_API_CALL PFNGLDEPTHMASKPROC glad_glDepthMask; +#define glDepthMask glad_glDepthMask +GLAD_API_CALL PFNGLDEPTHRANGEPROC glad_glDepthRange; +#define glDepthRange glad_glDepthRange +GLAD_API_CALL PFNGLDETACHSHADERPROC glad_glDetachShader; +#define glDetachShader glad_glDetachShader +GLAD_API_CALL PFNGLDISABLEPROC glad_glDisable; +#define glDisable glad_glDisable +GLAD_API_CALL PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState; +#define glDisableClientState glad_glDisableClientState +GLAD_API_CALL PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; +#define glDisableVertexAttribArray glad_glDisableVertexAttribArray +GLAD_API_CALL PFNGLDISABLEIPROC glad_glDisablei; +#define glDisablei glad_glDisablei +GLAD_API_CALL PFNGLDRAWARRAYSPROC glad_glDrawArrays; +#define glDrawArrays glad_glDrawArrays +GLAD_API_CALL PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; +#define glDrawArraysInstanced glad_glDrawArraysInstanced +GLAD_API_CALL PFNGLDRAWBUFFERPROC glad_glDrawBuffer; +#define glDrawBuffer glad_glDrawBuffer +GLAD_API_CALL PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; +#define glDrawBuffers glad_glDrawBuffers +GLAD_API_CALL PFNGLDRAWELEMENTSPROC glad_glDrawElements; +#define glDrawElements glad_glDrawElements +GLAD_API_CALL PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; +#define glDrawElementsBaseVertex glad_glDrawElementsBaseVertex +GLAD_API_CALL PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; +#define glDrawElementsInstanced glad_glDrawElementsInstanced +GLAD_API_CALL PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; +#define glDrawElementsInstancedBaseVertex glad_glDrawElementsInstancedBaseVertex +GLAD_API_CALL PFNGLDRAWPIXELSPROC glad_glDrawPixels; +#define glDrawPixels glad_glDrawPixels +GLAD_API_CALL PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; +#define glDrawRangeElements glad_glDrawRangeElements +GLAD_API_CALL PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; +#define glDrawRangeElementsBaseVertex glad_glDrawRangeElementsBaseVertex +GLAD_API_CALL PFNGLEDGEFLAGPROC glad_glEdgeFlag; +#define glEdgeFlag glad_glEdgeFlag +GLAD_API_CALL PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer; +#define glEdgeFlagPointer glad_glEdgeFlagPointer +GLAD_API_CALL PFNGLEDGEFLAGVPROC glad_glEdgeFlagv; +#define glEdgeFlagv glad_glEdgeFlagv +GLAD_API_CALL PFNGLENABLEPROC glad_glEnable; +#define glEnable glad_glEnable +GLAD_API_CALL PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState; +#define glEnableClientState glad_glEnableClientState +GLAD_API_CALL PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; +#define glEnableVertexAttribArray glad_glEnableVertexAttribArray +GLAD_API_CALL PFNGLENABLEIPROC glad_glEnablei; +#define glEnablei glad_glEnablei +GLAD_API_CALL PFNGLENDPROC glad_glEnd; +#define glEnd glad_glEnd +GLAD_API_CALL PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; +#define glEndConditionalRender glad_glEndConditionalRender +GLAD_API_CALL PFNGLENDLISTPROC glad_glEndList; +#define glEndList glad_glEndList +GLAD_API_CALL PFNGLENDQUERYPROC glad_glEndQuery; +#define glEndQuery glad_glEndQuery +GLAD_API_CALL PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; +#define glEndTransformFeedback glad_glEndTransformFeedback +GLAD_API_CALL PFNGLEVALCOORD1DPROC glad_glEvalCoord1d; +#define glEvalCoord1d glad_glEvalCoord1d +GLAD_API_CALL PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv; +#define glEvalCoord1dv glad_glEvalCoord1dv +GLAD_API_CALL PFNGLEVALCOORD1FPROC glad_glEvalCoord1f; +#define glEvalCoord1f glad_glEvalCoord1f +GLAD_API_CALL PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv; +#define glEvalCoord1fv glad_glEvalCoord1fv +GLAD_API_CALL PFNGLEVALCOORD2DPROC glad_glEvalCoord2d; +#define glEvalCoord2d glad_glEvalCoord2d +GLAD_API_CALL PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv; +#define glEvalCoord2dv glad_glEvalCoord2dv +GLAD_API_CALL PFNGLEVALCOORD2FPROC glad_glEvalCoord2f; +#define glEvalCoord2f glad_glEvalCoord2f +GLAD_API_CALL PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv; +#define glEvalCoord2fv glad_glEvalCoord2fv +GLAD_API_CALL PFNGLEVALMESH1PROC glad_glEvalMesh1; +#define glEvalMesh1 glad_glEvalMesh1 +GLAD_API_CALL PFNGLEVALMESH2PROC glad_glEvalMesh2; +#define glEvalMesh2 glad_glEvalMesh2 +GLAD_API_CALL PFNGLEVALPOINT1PROC glad_glEvalPoint1; +#define glEvalPoint1 glad_glEvalPoint1 +GLAD_API_CALL PFNGLEVALPOINT2PROC glad_glEvalPoint2; +#define glEvalPoint2 glad_glEvalPoint2 +GLAD_API_CALL PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer; +#define glFeedbackBuffer glad_glFeedbackBuffer +GLAD_API_CALL PFNGLFENCESYNCPROC glad_glFenceSync; +#define glFenceSync glad_glFenceSync +GLAD_API_CALL PFNGLFINISHPROC glad_glFinish; +#define glFinish glad_glFinish +GLAD_API_CALL PFNGLFLUSHPROC glad_glFlush; +#define glFlush glad_glFlush +GLAD_API_CALL PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; +#define glFlushMappedBufferRange glad_glFlushMappedBufferRange +GLAD_API_CALL PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer; +#define glFogCoordPointer glad_glFogCoordPointer +GLAD_API_CALL PFNGLFOGCOORDDPROC glad_glFogCoordd; +#define glFogCoordd glad_glFogCoordd +GLAD_API_CALL PFNGLFOGCOORDDVPROC glad_glFogCoorddv; +#define glFogCoorddv glad_glFogCoorddv +GLAD_API_CALL PFNGLFOGCOORDFPROC glad_glFogCoordf; +#define glFogCoordf glad_glFogCoordf +GLAD_API_CALL PFNGLFOGCOORDFVPROC glad_glFogCoordfv; +#define glFogCoordfv glad_glFogCoordfv +GLAD_API_CALL PFNGLFOGFPROC glad_glFogf; +#define glFogf glad_glFogf +GLAD_API_CALL PFNGLFOGFVPROC glad_glFogfv; +#define glFogfv glad_glFogfv +GLAD_API_CALL PFNGLFOGIPROC glad_glFogi; +#define glFogi glad_glFogi +GLAD_API_CALL PFNGLFOGIVPROC glad_glFogiv; +#define glFogiv glad_glFogiv +GLAD_API_CALL PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; +#define glFramebufferRenderbuffer glad_glFramebufferRenderbuffer +GLAD_API_CALL PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; +#define glFramebufferTexture glad_glFramebufferTexture +GLAD_API_CALL PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; +#define glFramebufferTexture1D glad_glFramebufferTexture1D +GLAD_API_CALL PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; +#define glFramebufferTexture2D glad_glFramebufferTexture2D +GLAD_API_CALL PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; +#define glFramebufferTexture3D glad_glFramebufferTexture3D +GLAD_API_CALL PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; +#define glFramebufferTextureLayer glad_glFramebufferTextureLayer +GLAD_API_CALL PFNGLFRONTFACEPROC glad_glFrontFace; +#define glFrontFace glad_glFrontFace +GLAD_API_CALL PFNGLFRUSTUMPROC glad_glFrustum; +#define glFrustum glad_glFrustum +GLAD_API_CALL PFNGLGENBUFFERSPROC glad_glGenBuffers; +#define glGenBuffers glad_glGenBuffers +GLAD_API_CALL PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; +#define glGenFramebuffers glad_glGenFramebuffers +GLAD_API_CALL PFNGLGENLISTSPROC glad_glGenLists; +#define glGenLists glad_glGenLists +GLAD_API_CALL PFNGLGENQUERIESPROC glad_glGenQueries; +#define glGenQueries glad_glGenQueries +GLAD_API_CALL PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; +#define glGenRenderbuffers glad_glGenRenderbuffers +GLAD_API_CALL PFNGLGENSAMPLERSPROC glad_glGenSamplers; +#define glGenSamplers glad_glGenSamplers +GLAD_API_CALL PFNGLGENTEXTURESPROC glad_glGenTextures; +#define glGenTextures glad_glGenTextures +GLAD_API_CALL PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; +#define glGenVertexArrays glad_glGenVertexArrays +GLAD_API_CALL PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; +#define glGenerateMipmap glad_glGenerateMipmap +GLAD_API_CALL PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; +#define glGetActiveAttrib glad_glGetActiveAttrib +GLAD_API_CALL PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; +#define glGetActiveUniform glad_glGetActiveUniform +GLAD_API_CALL PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; +#define glGetActiveUniformBlockName glad_glGetActiveUniformBlockName +GLAD_API_CALL PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; +#define glGetActiveUniformBlockiv glad_glGetActiveUniformBlockiv +GLAD_API_CALL PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; +#define glGetActiveUniformName glad_glGetActiveUniformName +GLAD_API_CALL PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; +#define glGetActiveUniformsiv glad_glGetActiveUniformsiv +GLAD_API_CALL PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; +#define glGetAttachedShaders glad_glGetAttachedShaders +GLAD_API_CALL PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; +#define glGetAttribLocation glad_glGetAttribLocation +GLAD_API_CALL PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; +#define glGetBooleani_v glad_glGetBooleani_v +GLAD_API_CALL PFNGLGETBOOLEANVPROC glad_glGetBooleanv; +#define glGetBooleanv glad_glGetBooleanv +GLAD_API_CALL PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; +#define glGetBufferParameteri64v glad_glGetBufferParameteri64v +GLAD_API_CALL PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; +#define glGetBufferParameteriv glad_glGetBufferParameteriv +GLAD_API_CALL PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; +#define glGetBufferPointerv glad_glGetBufferPointerv +GLAD_API_CALL PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; +#define glGetBufferSubData glad_glGetBufferSubData +GLAD_API_CALL PFNGLGETCLIPPLANEPROC glad_glGetClipPlane; +#define glGetClipPlane glad_glGetClipPlane +GLAD_API_CALL PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; +#define glGetCompressedTexImage glad_glGetCompressedTexImage +GLAD_API_CALL PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog; +#define glGetDebugMessageLog glad_glGetDebugMessageLog +GLAD_API_CALL PFNGLGETDOUBLEVPROC glad_glGetDoublev; +#define glGetDoublev glad_glGetDoublev +GLAD_API_CALL PFNGLGETERRORPROC glad_glGetError; +#define glGetError glad_glGetError +GLAD_API_CALL PFNGLGETFLOATVPROC glad_glGetFloatv; +#define glGetFloatv glad_glGetFloatv +GLAD_API_CALL PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; +#define glGetFragDataIndex glad_glGetFragDataIndex +GLAD_API_CALL PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; +#define glGetFragDataLocation glad_glGetFragDataLocation +GLAD_API_CALL PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; +#define glGetFramebufferAttachmentParameteriv glad_glGetFramebufferAttachmentParameteriv +GLAD_API_CALL PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB; +#define glGetGraphicsResetStatusARB glad_glGetGraphicsResetStatusARB +GLAD_API_CALL PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; +#define glGetInteger64i_v glad_glGetInteger64i_v +GLAD_API_CALL PFNGLGETINTEGER64VPROC glad_glGetInteger64v; +#define glGetInteger64v glad_glGetInteger64v +GLAD_API_CALL PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; +#define glGetIntegeri_v glad_glGetIntegeri_v +GLAD_API_CALL PFNGLGETINTEGERVPROC glad_glGetIntegerv; +#define glGetIntegerv glad_glGetIntegerv +GLAD_API_CALL PFNGLGETLIGHTFVPROC glad_glGetLightfv; +#define glGetLightfv glad_glGetLightfv +GLAD_API_CALL PFNGLGETLIGHTIVPROC glad_glGetLightiv; +#define glGetLightiv glad_glGetLightiv +GLAD_API_CALL PFNGLGETMAPDVPROC glad_glGetMapdv; +#define glGetMapdv glad_glGetMapdv +GLAD_API_CALL PFNGLGETMAPFVPROC glad_glGetMapfv; +#define glGetMapfv glad_glGetMapfv +GLAD_API_CALL PFNGLGETMAPIVPROC glad_glGetMapiv; +#define glGetMapiv glad_glGetMapiv +GLAD_API_CALL PFNGLGETMATERIALFVPROC glad_glGetMaterialfv; +#define glGetMaterialfv glad_glGetMaterialfv +GLAD_API_CALL PFNGLGETMATERIALIVPROC glad_glGetMaterialiv; +#define glGetMaterialiv glad_glGetMaterialiv +GLAD_API_CALL PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; +#define glGetMultisamplefv glad_glGetMultisamplefv +GLAD_API_CALL PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel; +#define glGetObjectLabel glad_glGetObjectLabel +GLAD_API_CALL PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel; +#define glGetObjectPtrLabel glad_glGetObjectPtrLabel +GLAD_API_CALL PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv; +#define glGetPixelMapfv glad_glGetPixelMapfv +GLAD_API_CALL PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv; +#define glGetPixelMapuiv glad_glGetPixelMapuiv +GLAD_API_CALL PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv; +#define glGetPixelMapusv glad_glGetPixelMapusv +GLAD_API_CALL PFNGLGETPOINTERVPROC glad_glGetPointerv; +#define glGetPointerv glad_glGetPointerv +GLAD_API_CALL PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple; +#define glGetPolygonStipple glad_glGetPolygonStipple +GLAD_API_CALL PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; +#define glGetProgramInfoLog glad_glGetProgramInfoLog +GLAD_API_CALL PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; +#define glGetProgramiv glad_glGetProgramiv +GLAD_API_CALL PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; +#define glGetQueryObjecti64v glad_glGetQueryObjecti64v +GLAD_API_CALL PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; +#define glGetQueryObjectiv glad_glGetQueryObjectiv +GLAD_API_CALL PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; +#define glGetQueryObjectui64v glad_glGetQueryObjectui64v +GLAD_API_CALL PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; +#define glGetQueryObjectuiv glad_glGetQueryObjectuiv +GLAD_API_CALL PFNGLGETQUERYIVPROC glad_glGetQueryiv; +#define glGetQueryiv glad_glGetQueryiv +GLAD_API_CALL PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; +#define glGetRenderbufferParameteriv glad_glGetRenderbufferParameteriv +GLAD_API_CALL PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; +#define glGetSamplerParameterIiv glad_glGetSamplerParameterIiv +GLAD_API_CALL PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; +#define glGetSamplerParameterIuiv glad_glGetSamplerParameterIuiv +GLAD_API_CALL PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; +#define glGetSamplerParameterfv glad_glGetSamplerParameterfv +GLAD_API_CALL PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; +#define glGetSamplerParameteriv glad_glGetSamplerParameteriv +GLAD_API_CALL PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; +#define glGetShaderInfoLog glad_glGetShaderInfoLog +GLAD_API_CALL PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; +#define glGetShaderSource glad_glGetShaderSource +GLAD_API_CALL PFNGLGETSHADERIVPROC glad_glGetShaderiv; +#define glGetShaderiv glad_glGetShaderiv +GLAD_API_CALL PFNGLGETSTRINGPROC glad_glGetString; +#define glGetString glad_glGetString +GLAD_API_CALL PFNGLGETSTRINGIPROC glad_glGetStringi; +#define glGetStringi glad_glGetStringi +GLAD_API_CALL PFNGLGETSYNCIVPROC glad_glGetSynciv; +#define glGetSynciv glad_glGetSynciv +GLAD_API_CALL PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv; +#define glGetTexEnvfv glad_glGetTexEnvfv +GLAD_API_CALL PFNGLGETTEXENVIVPROC glad_glGetTexEnviv; +#define glGetTexEnviv glad_glGetTexEnviv +GLAD_API_CALL PFNGLGETTEXGENDVPROC glad_glGetTexGendv; +#define glGetTexGendv glad_glGetTexGendv +GLAD_API_CALL PFNGLGETTEXGENFVPROC glad_glGetTexGenfv; +#define glGetTexGenfv glad_glGetTexGenfv +GLAD_API_CALL PFNGLGETTEXGENIVPROC glad_glGetTexGeniv; +#define glGetTexGeniv glad_glGetTexGeniv +GLAD_API_CALL PFNGLGETTEXIMAGEPROC glad_glGetTexImage; +#define glGetTexImage glad_glGetTexImage +GLAD_API_CALL PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; +#define glGetTexLevelParameterfv glad_glGetTexLevelParameterfv +GLAD_API_CALL PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; +#define glGetTexLevelParameteriv glad_glGetTexLevelParameteriv +GLAD_API_CALL PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; +#define glGetTexParameterIiv glad_glGetTexParameterIiv +GLAD_API_CALL PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; +#define glGetTexParameterIuiv glad_glGetTexParameterIuiv +GLAD_API_CALL PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; +#define glGetTexParameterfv glad_glGetTexParameterfv +GLAD_API_CALL PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; +#define glGetTexParameteriv glad_glGetTexParameteriv +GLAD_API_CALL PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; +#define glGetTransformFeedbackVarying glad_glGetTransformFeedbackVarying +GLAD_API_CALL PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; +#define glGetUniformBlockIndex glad_glGetUniformBlockIndex +GLAD_API_CALL PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; +#define glGetUniformIndices glad_glGetUniformIndices +GLAD_API_CALL PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; +#define glGetUniformLocation glad_glGetUniformLocation +GLAD_API_CALL PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; +#define glGetUniformfv glad_glGetUniformfv +GLAD_API_CALL PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; +#define glGetUniformiv glad_glGetUniformiv +GLAD_API_CALL PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; +#define glGetUniformuiv glad_glGetUniformuiv +GLAD_API_CALL PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; +#define glGetVertexAttribIiv glad_glGetVertexAttribIiv +GLAD_API_CALL PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; +#define glGetVertexAttribIuiv glad_glGetVertexAttribIuiv +GLAD_API_CALL PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; +#define glGetVertexAttribPointerv glad_glGetVertexAttribPointerv +GLAD_API_CALL PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; +#define glGetVertexAttribdv glad_glGetVertexAttribdv +GLAD_API_CALL PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; +#define glGetVertexAttribfv glad_glGetVertexAttribfv +GLAD_API_CALL PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; +#define glGetVertexAttribiv glad_glGetVertexAttribiv +GLAD_API_CALL PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB; +#define glGetnColorTableARB glad_glGetnColorTableARB +GLAD_API_CALL PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB; +#define glGetnCompressedTexImageARB glad_glGetnCompressedTexImageARB +GLAD_API_CALL PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB; +#define glGetnConvolutionFilterARB glad_glGetnConvolutionFilterARB +GLAD_API_CALL PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB; +#define glGetnHistogramARB glad_glGetnHistogramARB +GLAD_API_CALL PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB; +#define glGetnMapdvARB glad_glGetnMapdvARB +GLAD_API_CALL PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB; +#define glGetnMapfvARB glad_glGetnMapfvARB +GLAD_API_CALL PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB; +#define glGetnMapivARB glad_glGetnMapivARB +GLAD_API_CALL PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB; +#define glGetnMinmaxARB glad_glGetnMinmaxARB +GLAD_API_CALL PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB; +#define glGetnPixelMapfvARB glad_glGetnPixelMapfvARB +GLAD_API_CALL PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB; +#define glGetnPixelMapuivARB glad_glGetnPixelMapuivARB +GLAD_API_CALL PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB; +#define glGetnPixelMapusvARB glad_glGetnPixelMapusvARB +GLAD_API_CALL PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB; +#define glGetnPolygonStippleARB glad_glGetnPolygonStippleARB +GLAD_API_CALL PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB; +#define glGetnSeparableFilterARB glad_glGetnSeparableFilterARB +GLAD_API_CALL PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB; +#define glGetnTexImageARB glad_glGetnTexImageARB +GLAD_API_CALL PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB; +#define glGetnUniformdvARB glad_glGetnUniformdvARB +GLAD_API_CALL PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB; +#define glGetnUniformfvARB glad_glGetnUniformfvARB +GLAD_API_CALL PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB; +#define glGetnUniformivARB glad_glGetnUniformivARB +GLAD_API_CALL PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB; +#define glGetnUniformuivARB glad_glGetnUniformuivARB +GLAD_API_CALL PFNGLHINTPROC glad_glHint; +#define glHint glad_glHint +GLAD_API_CALL PFNGLINDEXMASKPROC glad_glIndexMask; +#define glIndexMask glad_glIndexMask +GLAD_API_CALL PFNGLINDEXPOINTERPROC glad_glIndexPointer; +#define glIndexPointer glad_glIndexPointer +GLAD_API_CALL PFNGLINDEXDPROC glad_glIndexd; +#define glIndexd glad_glIndexd +GLAD_API_CALL PFNGLINDEXDVPROC glad_glIndexdv; +#define glIndexdv glad_glIndexdv +GLAD_API_CALL PFNGLINDEXFPROC glad_glIndexf; +#define glIndexf glad_glIndexf +GLAD_API_CALL PFNGLINDEXFVPROC glad_glIndexfv; +#define glIndexfv glad_glIndexfv +GLAD_API_CALL PFNGLINDEXIPROC glad_glIndexi; +#define glIndexi glad_glIndexi +GLAD_API_CALL PFNGLINDEXIVPROC glad_glIndexiv; +#define glIndexiv glad_glIndexiv +GLAD_API_CALL PFNGLINDEXSPROC glad_glIndexs; +#define glIndexs glad_glIndexs +GLAD_API_CALL PFNGLINDEXSVPROC glad_glIndexsv; +#define glIndexsv glad_glIndexsv +GLAD_API_CALL PFNGLINDEXUBPROC glad_glIndexub; +#define glIndexub glad_glIndexub +GLAD_API_CALL PFNGLINDEXUBVPROC glad_glIndexubv; +#define glIndexubv glad_glIndexubv +GLAD_API_CALL PFNGLINITNAMESPROC glad_glInitNames; +#define glInitNames glad_glInitNames +GLAD_API_CALL PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays; +#define glInterleavedArrays glad_glInterleavedArrays +GLAD_API_CALL PFNGLISBUFFERPROC glad_glIsBuffer; +#define glIsBuffer glad_glIsBuffer +GLAD_API_CALL PFNGLISENABLEDPROC glad_glIsEnabled; +#define glIsEnabled glad_glIsEnabled +GLAD_API_CALL PFNGLISENABLEDIPROC glad_glIsEnabledi; +#define glIsEnabledi glad_glIsEnabledi +GLAD_API_CALL PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; +#define glIsFramebuffer glad_glIsFramebuffer +GLAD_API_CALL PFNGLISLISTPROC glad_glIsList; +#define glIsList glad_glIsList +GLAD_API_CALL PFNGLISPROGRAMPROC glad_glIsProgram; +#define glIsProgram glad_glIsProgram +GLAD_API_CALL PFNGLISQUERYPROC glad_glIsQuery; +#define glIsQuery glad_glIsQuery +GLAD_API_CALL PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; +#define glIsRenderbuffer glad_glIsRenderbuffer +GLAD_API_CALL PFNGLISSAMPLERPROC glad_glIsSampler; +#define glIsSampler glad_glIsSampler +GLAD_API_CALL PFNGLISSHADERPROC glad_glIsShader; +#define glIsShader glad_glIsShader +GLAD_API_CALL PFNGLISSYNCPROC glad_glIsSync; +#define glIsSync glad_glIsSync +GLAD_API_CALL PFNGLISTEXTUREPROC glad_glIsTexture; +#define glIsTexture glad_glIsTexture +GLAD_API_CALL PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; +#define glIsVertexArray glad_glIsVertexArray +GLAD_API_CALL PFNGLLIGHTMODELFPROC glad_glLightModelf; +#define glLightModelf glad_glLightModelf +GLAD_API_CALL PFNGLLIGHTMODELFVPROC glad_glLightModelfv; +#define glLightModelfv glad_glLightModelfv +GLAD_API_CALL PFNGLLIGHTMODELIPROC glad_glLightModeli; +#define glLightModeli glad_glLightModeli +GLAD_API_CALL PFNGLLIGHTMODELIVPROC glad_glLightModeliv; +#define glLightModeliv glad_glLightModeliv +GLAD_API_CALL PFNGLLIGHTFPROC glad_glLightf; +#define glLightf glad_glLightf +GLAD_API_CALL PFNGLLIGHTFVPROC glad_glLightfv; +#define glLightfv glad_glLightfv +GLAD_API_CALL PFNGLLIGHTIPROC glad_glLighti; +#define glLighti glad_glLighti +GLAD_API_CALL PFNGLLIGHTIVPROC glad_glLightiv; +#define glLightiv glad_glLightiv +GLAD_API_CALL PFNGLLINESTIPPLEPROC glad_glLineStipple; +#define glLineStipple glad_glLineStipple +GLAD_API_CALL PFNGLLINEWIDTHPROC glad_glLineWidth; +#define glLineWidth glad_glLineWidth +GLAD_API_CALL PFNGLLINKPROGRAMPROC glad_glLinkProgram; +#define glLinkProgram glad_glLinkProgram +GLAD_API_CALL PFNGLLISTBASEPROC glad_glListBase; +#define glListBase glad_glListBase +GLAD_API_CALL PFNGLLOADIDENTITYPROC glad_glLoadIdentity; +#define glLoadIdentity glad_glLoadIdentity +GLAD_API_CALL PFNGLLOADMATRIXDPROC glad_glLoadMatrixd; +#define glLoadMatrixd glad_glLoadMatrixd +GLAD_API_CALL PFNGLLOADMATRIXFPROC glad_glLoadMatrixf; +#define glLoadMatrixf glad_glLoadMatrixf +GLAD_API_CALL PFNGLLOADNAMEPROC glad_glLoadName; +#define glLoadName glad_glLoadName +GLAD_API_CALL PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd; +#define glLoadTransposeMatrixd glad_glLoadTransposeMatrixd +GLAD_API_CALL PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf; +#define glLoadTransposeMatrixf glad_glLoadTransposeMatrixf +GLAD_API_CALL PFNGLLOGICOPPROC glad_glLogicOp; +#define glLogicOp glad_glLogicOp +GLAD_API_CALL PFNGLMAP1DPROC glad_glMap1d; +#define glMap1d glad_glMap1d +GLAD_API_CALL PFNGLMAP1FPROC glad_glMap1f; +#define glMap1f glad_glMap1f +GLAD_API_CALL PFNGLMAP2DPROC glad_glMap2d; +#define glMap2d glad_glMap2d +GLAD_API_CALL PFNGLMAP2FPROC glad_glMap2f; +#define glMap2f glad_glMap2f +GLAD_API_CALL PFNGLMAPBUFFERPROC glad_glMapBuffer; +#define glMapBuffer glad_glMapBuffer +GLAD_API_CALL PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; +#define glMapBufferRange glad_glMapBufferRange +GLAD_API_CALL PFNGLMAPGRID1DPROC glad_glMapGrid1d; +#define glMapGrid1d glad_glMapGrid1d +GLAD_API_CALL PFNGLMAPGRID1FPROC glad_glMapGrid1f; +#define glMapGrid1f glad_glMapGrid1f +GLAD_API_CALL PFNGLMAPGRID2DPROC glad_glMapGrid2d; +#define glMapGrid2d glad_glMapGrid2d +GLAD_API_CALL PFNGLMAPGRID2FPROC glad_glMapGrid2f; +#define glMapGrid2f glad_glMapGrid2f +GLAD_API_CALL PFNGLMATERIALFPROC glad_glMaterialf; +#define glMaterialf glad_glMaterialf +GLAD_API_CALL PFNGLMATERIALFVPROC glad_glMaterialfv; +#define glMaterialfv glad_glMaterialfv +GLAD_API_CALL PFNGLMATERIALIPROC glad_glMateriali; +#define glMateriali glad_glMateriali +GLAD_API_CALL PFNGLMATERIALIVPROC glad_glMaterialiv; +#define glMaterialiv glad_glMaterialiv +GLAD_API_CALL PFNGLMATRIXMODEPROC glad_glMatrixMode; +#define glMatrixMode glad_glMatrixMode +GLAD_API_CALL PFNGLMULTMATRIXDPROC glad_glMultMatrixd; +#define glMultMatrixd glad_glMultMatrixd +GLAD_API_CALL PFNGLMULTMATRIXFPROC glad_glMultMatrixf; +#define glMultMatrixf glad_glMultMatrixf +GLAD_API_CALL PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd; +#define glMultTransposeMatrixd glad_glMultTransposeMatrixd +GLAD_API_CALL PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf; +#define glMultTransposeMatrixf glad_glMultTransposeMatrixf +GLAD_API_CALL PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; +#define glMultiDrawArrays glad_glMultiDrawArrays +GLAD_API_CALL PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; +#define glMultiDrawElements glad_glMultiDrawElements +GLAD_API_CALL PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; +#define glMultiDrawElementsBaseVertex glad_glMultiDrawElementsBaseVertex +GLAD_API_CALL PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d; +#define glMultiTexCoord1d glad_glMultiTexCoord1d +GLAD_API_CALL PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv; +#define glMultiTexCoord1dv glad_glMultiTexCoord1dv +GLAD_API_CALL PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f; +#define glMultiTexCoord1f glad_glMultiTexCoord1f +GLAD_API_CALL PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv; +#define glMultiTexCoord1fv glad_glMultiTexCoord1fv +GLAD_API_CALL PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i; +#define glMultiTexCoord1i glad_glMultiTexCoord1i +GLAD_API_CALL PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv; +#define glMultiTexCoord1iv glad_glMultiTexCoord1iv +GLAD_API_CALL PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s; +#define glMultiTexCoord1s glad_glMultiTexCoord1s +GLAD_API_CALL PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv; +#define glMultiTexCoord1sv glad_glMultiTexCoord1sv +GLAD_API_CALL PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d; +#define glMultiTexCoord2d glad_glMultiTexCoord2d +GLAD_API_CALL PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv; +#define glMultiTexCoord2dv glad_glMultiTexCoord2dv +GLAD_API_CALL PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f; +#define glMultiTexCoord2f glad_glMultiTexCoord2f +GLAD_API_CALL PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv; +#define glMultiTexCoord2fv glad_glMultiTexCoord2fv +GLAD_API_CALL PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i; +#define glMultiTexCoord2i glad_glMultiTexCoord2i +GLAD_API_CALL PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv; +#define glMultiTexCoord2iv glad_glMultiTexCoord2iv +GLAD_API_CALL PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s; +#define glMultiTexCoord2s glad_glMultiTexCoord2s +GLAD_API_CALL PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv; +#define glMultiTexCoord2sv glad_glMultiTexCoord2sv +GLAD_API_CALL PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d; +#define glMultiTexCoord3d glad_glMultiTexCoord3d +GLAD_API_CALL PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv; +#define glMultiTexCoord3dv glad_glMultiTexCoord3dv +GLAD_API_CALL PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f; +#define glMultiTexCoord3f glad_glMultiTexCoord3f +GLAD_API_CALL PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv; +#define glMultiTexCoord3fv glad_glMultiTexCoord3fv +GLAD_API_CALL PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i; +#define glMultiTexCoord3i glad_glMultiTexCoord3i +GLAD_API_CALL PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv; +#define glMultiTexCoord3iv glad_glMultiTexCoord3iv +GLAD_API_CALL PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s; +#define glMultiTexCoord3s glad_glMultiTexCoord3s +GLAD_API_CALL PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv; +#define glMultiTexCoord3sv glad_glMultiTexCoord3sv +GLAD_API_CALL PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d; +#define glMultiTexCoord4d glad_glMultiTexCoord4d +GLAD_API_CALL PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv; +#define glMultiTexCoord4dv glad_glMultiTexCoord4dv +GLAD_API_CALL PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f; +#define glMultiTexCoord4f glad_glMultiTexCoord4f +GLAD_API_CALL PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv; +#define glMultiTexCoord4fv glad_glMultiTexCoord4fv +GLAD_API_CALL PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i; +#define glMultiTexCoord4i glad_glMultiTexCoord4i +GLAD_API_CALL PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv; +#define glMultiTexCoord4iv glad_glMultiTexCoord4iv +GLAD_API_CALL PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s; +#define glMultiTexCoord4s glad_glMultiTexCoord4s +GLAD_API_CALL PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv; +#define glMultiTexCoord4sv glad_glMultiTexCoord4sv +GLAD_API_CALL PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; +#define glMultiTexCoordP1ui glad_glMultiTexCoordP1ui +GLAD_API_CALL PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; +#define glMultiTexCoordP1uiv glad_glMultiTexCoordP1uiv +GLAD_API_CALL PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; +#define glMultiTexCoordP2ui glad_glMultiTexCoordP2ui +GLAD_API_CALL PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; +#define glMultiTexCoordP2uiv glad_glMultiTexCoordP2uiv +GLAD_API_CALL PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; +#define glMultiTexCoordP3ui glad_glMultiTexCoordP3ui +GLAD_API_CALL PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; +#define glMultiTexCoordP3uiv glad_glMultiTexCoordP3uiv +GLAD_API_CALL PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; +#define glMultiTexCoordP4ui glad_glMultiTexCoordP4ui +GLAD_API_CALL PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; +#define glMultiTexCoordP4uiv glad_glMultiTexCoordP4uiv +GLAD_API_CALL PFNGLNEWLISTPROC glad_glNewList; +#define glNewList glad_glNewList +GLAD_API_CALL PFNGLNORMAL3BPROC glad_glNormal3b; +#define glNormal3b glad_glNormal3b +GLAD_API_CALL PFNGLNORMAL3BVPROC glad_glNormal3bv; +#define glNormal3bv glad_glNormal3bv +GLAD_API_CALL PFNGLNORMAL3DPROC glad_glNormal3d; +#define glNormal3d glad_glNormal3d +GLAD_API_CALL PFNGLNORMAL3DVPROC glad_glNormal3dv; +#define glNormal3dv glad_glNormal3dv +GLAD_API_CALL PFNGLNORMAL3FPROC glad_glNormal3f; +#define glNormal3f glad_glNormal3f +GLAD_API_CALL PFNGLNORMAL3FVPROC glad_glNormal3fv; +#define glNormal3fv glad_glNormal3fv +GLAD_API_CALL PFNGLNORMAL3IPROC glad_glNormal3i; +#define glNormal3i glad_glNormal3i +GLAD_API_CALL PFNGLNORMAL3IVPROC glad_glNormal3iv; +#define glNormal3iv glad_glNormal3iv +GLAD_API_CALL PFNGLNORMAL3SPROC glad_glNormal3s; +#define glNormal3s glad_glNormal3s +GLAD_API_CALL PFNGLNORMAL3SVPROC glad_glNormal3sv; +#define glNormal3sv glad_glNormal3sv +GLAD_API_CALL PFNGLNORMALP3UIPROC glad_glNormalP3ui; +#define glNormalP3ui glad_glNormalP3ui +GLAD_API_CALL PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; +#define glNormalP3uiv glad_glNormalP3uiv +GLAD_API_CALL PFNGLNORMALPOINTERPROC glad_glNormalPointer; +#define glNormalPointer glad_glNormalPointer +GLAD_API_CALL PFNGLOBJECTLABELPROC glad_glObjectLabel; +#define glObjectLabel glad_glObjectLabel +GLAD_API_CALL PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel; +#define glObjectPtrLabel glad_glObjectPtrLabel +GLAD_API_CALL PFNGLORTHOPROC glad_glOrtho; +#define glOrtho glad_glOrtho +GLAD_API_CALL PFNGLPASSTHROUGHPROC glad_glPassThrough; +#define glPassThrough glad_glPassThrough +GLAD_API_CALL PFNGLPIXELMAPFVPROC glad_glPixelMapfv; +#define glPixelMapfv glad_glPixelMapfv +GLAD_API_CALL PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv; +#define glPixelMapuiv glad_glPixelMapuiv +GLAD_API_CALL PFNGLPIXELMAPUSVPROC glad_glPixelMapusv; +#define glPixelMapusv glad_glPixelMapusv +GLAD_API_CALL PFNGLPIXELSTOREFPROC glad_glPixelStoref; +#define glPixelStoref glad_glPixelStoref +GLAD_API_CALL PFNGLPIXELSTOREIPROC glad_glPixelStorei; +#define glPixelStorei glad_glPixelStorei +GLAD_API_CALL PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf; +#define glPixelTransferf glad_glPixelTransferf +GLAD_API_CALL PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi; +#define glPixelTransferi glad_glPixelTransferi +GLAD_API_CALL PFNGLPIXELZOOMPROC glad_glPixelZoom; +#define glPixelZoom glad_glPixelZoom +GLAD_API_CALL PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; +#define glPointParameterf glad_glPointParameterf +GLAD_API_CALL PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; +#define glPointParameterfv glad_glPointParameterfv +GLAD_API_CALL PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; +#define glPointParameteri glad_glPointParameteri +GLAD_API_CALL PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; +#define glPointParameteriv glad_glPointParameteriv +GLAD_API_CALL PFNGLPOINTSIZEPROC glad_glPointSize; +#define glPointSize glad_glPointSize +GLAD_API_CALL PFNGLPOLYGONMODEPROC glad_glPolygonMode; +#define glPolygonMode glad_glPolygonMode +GLAD_API_CALL PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; +#define glPolygonOffset glad_glPolygonOffset +GLAD_API_CALL PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple; +#define glPolygonStipple glad_glPolygonStipple +GLAD_API_CALL PFNGLPOPATTRIBPROC glad_glPopAttrib; +#define glPopAttrib glad_glPopAttrib +GLAD_API_CALL PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib; +#define glPopClientAttrib glad_glPopClientAttrib +GLAD_API_CALL PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup; +#define glPopDebugGroup glad_glPopDebugGroup +GLAD_API_CALL PFNGLPOPMATRIXPROC glad_glPopMatrix; +#define glPopMatrix glad_glPopMatrix +GLAD_API_CALL PFNGLPOPNAMEPROC glad_glPopName; +#define glPopName glad_glPopName +GLAD_API_CALL PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; +#define glPrimitiveRestartIndex glad_glPrimitiveRestartIndex +GLAD_API_CALL PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures; +#define glPrioritizeTextures glad_glPrioritizeTextures +GLAD_API_CALL PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; +#define glProvokingVertex glad_glProvokingVertex +GLAD_API_CALL PFNGLPUSHATTRIBPROC glad_glPushAttrib; +#define glPushAttrib glad_glPushAttrib +GLAD_API_CALL PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib; +#define glPushClientAttrib glad_glPushClientAttrib +GLAD_API_CALL PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup; +#define glPushDebugGroup glad_glPushDebugGroup +GLAD_API_CALL PFNGLPUSHMATRIXPROC glad_glPushMatrix; +#define glPushMatrix glad_glPushMatrix +GLAD_API_CALL PFNGLPUSHNAMEPROC glad_glPushName; +#define glPushName glad_glPushName +GLAD_API_CALL PFNGLQUERYCOUNTERPROC glad_glQueryCounter; +#define glQueryCounter glad_glQueryCounter +GLAD_API_CALL PFNGLRASTERPOS2DPROC glad_glRasterPos2d; +#define glRasterPos2d glad_glRasterPos2d +GLAD_API_CALL PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv; +#define glRasterPos2dv glad_glRasterPos2dv +GLAD_API_CALL PFNGLRASTERPOS2FPROC glad_glRasterPos2f; +#define glRasterPos2f glad_glRasterPos2f +GLAD_API_CALL PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv; +#define glRasterPos2fv glad_glRasterPos2fv +GLAD_API_CALL PFNGLRASTERPOS2IPROC glad_glRasterPos2i; +#define glRasterPos2i glad_glRasterPos2i +GLAD_API_CALL PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv; +#define glRasterPos2iv glad_glRasterPos2iv +GLAD_API_CALL PFNGLRASTERPOS2SPROC glad_glRasterPos2s; +#define glRasterPos2s glad_glRasterPos2s +GLAD_API_CALL PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv; +#define glRasterPos2sv glad_glRasterPos2sv +GLAD_API_CALL PFNGLRASTERPOS3DPROC glad_glRasterPos3d; +#define glRasterPos3d glad_glRasterPos3d +GLAD_API_CALL PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv; +#define glRasterPos3dv glad_glRasterPos3dv +GLAD_API_CALL PFNGLRASTERPOS3FPROC glad_glRasterPos3f; +#define glRasterPos3f glad_glRasterPos3f +GLAD_API_CALL PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv; +#define glRasterPos3fv glad_glRasterPos3fv +GLAD_API_CALL PFNGLRASTERPOS3IPROC glad_glRasterPos3i; +#define glRasterPos3i glad_glRasterPos3i +GLAD_API_CALL PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv; +#define glRasterPos3iv glad_glRasterPos3iv +GLAD_API_CALL PFNGLRASTERPOS3SPROC glad_glRasterPos3s; +#define glRasterPos3s glad_glRasterPos3s +GLAD_API_CALL PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv; +#define glRasterPos3sv glad_glRasterPos3sv +GLAD_API_CALL PFNGLRASTERPOS4DPROC glad_glRasterPos4d; +#define glRasterPos4d glad_glRasterPos4d +GLAD_API_CALL PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv; +#define glRasterPos4dv glad_glRasterPos4dv +GLAD_API_CALL PFNGLRASTERPOS4FPROC glad_glRasterPos4f; +#define glRasterPos4f glad_glRasterPos4f +GLAD_API_CALL PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv; +#define glRasterPos4fv glad_glRasterPos4fv +GLAD_API_CALL PFNGLRASTERPOS4IPROC glad_glRasterPos4i; +#define glRasterPos4i glad_glRasterPos4i +GLAD_API_CALL PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv; +#define glRasterPos4iv glad_glRasterPos4iv +GLAD_API_CALL PFNGLRASTERPOS4SPROC glad_glRasterPos4s; +#define glRasterPos4s glad_glRasterPos4s +GLAD_API_CALL PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv; +#define glRasterPos4sv glad_glRasterPos4sv +GLAD_API_CALL PFNGLREADBUFFERPROC glad_glReadBuffer; +#define glReadBuffer glad_glReadBuffer +GLAD_API_CALL PFNGLREADPIXELSPROC glad_glReadPixels; +#define glReadPixels glad_glReadPixels +GLAD_API_CALL PFNGLREADNPIXELSPROC glad_glReadnPixels; +#define glReadnPixels glad_glReadnPixels +GLAD_API_CALL PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB; +#define glReadnPixelsARB glad_glReadnPixelsARB +GLAD_API_CALL PFNGLRECTDPROC glad_glRectd; +#define glRectd glad_glRectd +GLAD_API_CALL PFNGLRECTDVPROC glad_glRectdv; +#define glRectdv glad_glRectdv +GLAD_API_CALL PFNGLRECTFPROC glad_glRectf; +#define glRectf glad_glRectf +GLAD_API_CALL PFNGLRECTFVPROC glad_glRectfv; +#define glRectfv glad_glRectfv +GLAD_API_CALL PFNGLRECTIPROC glad_glRecti; +#define glRecti glad_glRecti +GLAD_API_CALL PFNGLRECTIVPROC glad_glRectiv; +#define glRectiv glad_glRectiv +GLAD_API_CALL PFNGLRECTSPROC glad_glRects; +#define glRects glad_glRects +GLAD_API_CALL PFNGLRECTSVPROC glad_glRectsv; +#define glRectsv glad_glRectsv +GLAD_API_CALL PFNGLRENDERMODEPROC glad_glRenderMode; +#define glRenderMode glad_glRenderMode +GLAD_API_CALL PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; +#define glRenderbufferStorage glad_glRenderbufferStorage +GLAD_API_CALL PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; +#define glRenderbufferStorageMultisample glad_glRenderbufferStorageMultisample +GLAD_API_CALL PFNGLROTATEDPROC glad_glRotated; +#define glRotated glad_glRotated +GLAD_API_CALL PFNGLROTATEFPROC glad_glRotatef; +#define glRotatef glad_glRotatef +GLAD_API_CALL PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; +#define glSampleCoverage glad_glSampleCoverage +GLAD_API_CALL PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; +#define glSampleCoverageARB glad_glSampleCoverageARB +GLAD_API_CALL PFNGLSAMPLEMASKIPROC glad_glSampleMaski; +#define glSampleMaski glad_glSampleMaski +GLAD_API_CALL PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; +#define glSamplerParameterIiv glad_glSamplerParameterIiv +GLAD_API_CALL PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; +#define glSamplerParameterIuiv glad_glSamplerParameterIuiv +GLAD_API_CALL PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; +#define glSamplerParameterf glad_glSamplerParameterf +GLAD_API_CALL PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; +#define glSamplerParameterfv glad_glSamplerParameterfv +GLAD_API_CALL PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; +#define glSamplerParameteri glad_glSamplerParameteri +GLAD_API_CALL PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; +#define glSamplerParameteriv glad_glSamplerParameteriv +GLAD_API_CALL PFNGLSCALEDPROC glad_glScaled; +#define glScaled glad_glScaled +GLAD_API_CALL PFNGLSCALEFPROC glad_glScalef; +#define glScalef glad_glScalef +GLAD_API_CALL PFNGLSCISSORPROC glad_glScissor; +#define glScissor glad_glScissor +GLAD_API_CALL PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b; +#define glSecondaryColor3b glad_glSecondaryColor3b +GLAD_API_CALL PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv; +#define glSecondaryColor3bv glad_glSecondaryColor3bv +GLAD_API_CALL PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d; +#define glSecondaryColor3d glad_glSecondaryColor3d +GLAD_API_CALL PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv; +#define glSecondaryColor3dv glad_glSecondaryColor3dv +GLAD_API_CALL PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f; +#define glSecondaryColor3f glad_glSecondaryColor3f +GLAD_API_CALL PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv; +#define glSecondaryColor3fv glad_glSecondaryColor3fv +GLAD_API_CALL PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i; +#define glSecondaryColor3i glad_glSecondaryColor3i +GLAD_API_CALL PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv; +#define glSecondaryColor3iv glad_glSecondaryColor3iv +GLAD_API_CALL PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s; +#define glSecondaryColor3s glad_glSecondaryColor3s +GLAD_API_CALL PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv; +#define glSecondaryColor3sv glad_glSecondaryColor3sv +GLAD_API_CALL PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub; +#define glSecondaryColor3ub glad_glSecondaryColor3ub +GLAD_API_CALL PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv; +#define glSecondaryColor3ubv glad_glSecondaryColor3ubv +GLAD_API_CALL PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui; +#define glSecondaryColor3ui glad_glSecondaryColor3ui +GLAD_API_CALL PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv; +#define glSecondaryColor3uiv glad_glSecondaryColor3uiv +GLAD_API_CALL PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us; +#define glSecondaryColor3us glad_glSecondaryColor3us +GLAD_API_CALL PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv; +#define glSecondaryColor3usv glad_glSecondaryColor3usv +GLAD_API_CALL PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; +#define glSecondaryColorP3ui glad_glSecondaryColorP3ui +GLAD_API_CALL PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; +#define glSecondaryColorP3uiv glad_glSecondaryColorP3uiv +GLAD_API_CALL PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer; +#define glSecondaryColorPointer glad_glSecondaryColorPointer +GLAD_API_CALL PFNGLSELECTBUFFERPROC glad_glSelectBuffer; +#define glSelectBuffer glad_glSelectBuffer +GLAD_API_CALL PFNGLSHADEMODELPROC glad_glShadeModel; +#define glShadeModel glad_glShadeModel +GLAD_API_CALL PFNGLSHADERSOURCEPROC glad_glShaderSource; +#define glShaderSource glad_glShaderSource +GLAD_API_CALL PFNGLSTENCILFUNCPROC glad_glStencilFunc; +#define glStencilFunc glad_glStencilFunc +GLAD_API_CALL PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; +#define glStencilFuncSeparate glad_glStencilFuncSeparate +GLAD_API_CALL PFNGLSTENCILMASKPROC glad_glStencilMask; +#define glStencilMask glad_glStencilMask +GLAD_API_CALL PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; +#define glStencilMaskSeparate glad_glStencilMaskSeparate +GLAD_API_CALL PFNGLSTENCILOPPROC glad_glStencilOp; +#define glStencilOp glad_glStencilOp +GLAD_API_CALL PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; +#define glStencilOpSeparate glad_glStencilOpSeparate +GLAD_API_CALL PFNGLTEXBUFFERPROC glad_glTexBuffer; +#define glTexBuffer glad_glTexBuffer +GLAD_API_CALL PFNGLTEXCOORD1DPROC glad_glTexCoord1d; +#define glTexCoord1d glad_glTexCoord1d +GLAD_API_CALL PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv; +#define glTexCoord1dv glad_glTexCoord1dv +GLAD_API_CALL PFNGLTEXCOORD1FPROC glad_glTexCoord1f; +#define glTexCoord1f glad_glTexCoord1f +GLAD_API_CALL PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv; +#define glTexCoord1fv glad_glTexCoord1fv +GLAD_API_CALL PFNGLTEXCOORD1IPROC glad_glTexCoord1i; +#define glTexCoord1i glad_glTexCoord1i +GLAD_API_CALL PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv; +#define glTexCoord1iv glad_glTexCoord1iv +GLAD_API_CALL PFNGLTEXCOORD1SPROC glad_glTexCoord1s; +#define glTexCoord1s glad_glTexCoord1s +GLAD_API_CALL PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv; +#define glTexCoord1sv glad_glTexCoord1sv +GLAD_API_CALL PFNGLTEXCOORD2DPROC glad_glTexCoord2d; +#define glTexCoord2d glad_glTexCoord2d +GLAD_API_CALL PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv; +#define glTexCoord2dv glad_glTexCoord2dv +GLAD_API_CALL PFNGLTEXCOORD2FPROC glad_glTexCoord2f; +#define glTexCoord2f glad_glTexCoord2f +GLAD_API_CALL PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv; +#define glTexCoord2fv glad_glTexCoord2fv +GLAD_API_CALL PFNGLTEXCOORD2IPROC glad_glTexCoord2i; +#define glTexCoord2i glad_glTexCoord2i +GLAD_API_CALL PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv; +#define glTexCoord2iv glad_glTexCoord2iv +GLAD_API_CALL PFNGLTEXCOORD2SPROC glad_glTexCoord2s; +#define glTexCoord2s glad_glTexCoord2s +GLAD_API_CALL PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv; +#define glTexCoord2sv glad_glTexCoord2sv +GLAD_API_CALL PFNGLTEXCOORD3DPROC glad_glTexCoord3d; +#define glTexCoord3d glad_glTexCoord3d +GLAD_API_CALL PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv; +#define glTexCoord3dv glad_glTexCoord3dv +GLAD_API_CALL PFNGLTEXCOORD3FPROC glad_glTexCoord3f; +#define glTexCoord3f glad_glTexCoord3f +GLAD_API_CALL PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv; +#define glTexCoord3fv glad_glTexCoord3fv +GLAD_API_CALL PFNGLTEXCOORD3IPROC glad_glTexCoord3i; +#define glTexCoord3i glad_glTexCoord3i +GLAD_API_CALL PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv; +#define glTexCoord3iv glad_glTexCoord3iv +GLAD_API_CALL PFNGLTEXCOORD3SPROC glad_glTexCoord3s; +#define glTexCoord3s glad_glTexCoord3s +GLAD_API_CALL PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv; +#define glTexCoord3sv glad_glTexCoord3sv +GLAD_API_CALL PFNGLTEXCOORD4DPROC glad_glTexCoord4d; +#define glTexCoord4d glad_glTexCoord4d +GLAD_API_CALL PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv; +#define glTexCoord4dv glad_glTexCoord4dv +GLAD_API_CALL PFNGLTEXCOORD4FPROC glad_glTexCoord4f; +#define glTexCoord4f glad_glTexCoord4f +GLAD_API_CALL PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv; +#define glTexCoord4fv glad_glTexCoord4fv +GLAD_API_CALL PFNGLTEXCOORD4IPROC glad_glTexCoord4i; +#define glTexCoord4i glad_glTexCoord4i +GLAD_API_CALL PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv; +#define glTexCoord4iv glad_glTexCoord4iv +GLAD_API_CALL PFNGLTEXCOORD4SPROC glad_glTexCoord4s; +#define glTexCoord4s glad_glTexCoord4s +GLAD_API_CALL PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv; +#define glTexCoord4sv glad_glTexCoord4sv +GLAD_API_CALL PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; +#define glTexCoordP1ui glad_glTexCoordP1ui +GLAD_API_CALL PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; +#define glTexCoordP1uiv glad_glTexCoordP1uiv +GLAD_API_CALL PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; +#define glTexCoordP2ui glad_glTexCoordP2ui +GLAD_API_CALL PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; +#define glTexCoordP2uiv glad_glTexCoordP2uiv +GLAD_API_CALL PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; +#define glTexCoordP3ui glad_glTexCoordP3ui +GLAD_API_CALL PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; +#define glTexCoordP3uiv glad_glTexCoordP3uiv +GLAD_API_CALL PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; +#define glTexCoordP4ui glad_glTexCoordP4ui +GLAD_API_CALL PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; +#define glTexCoordP4uiv glad_glTexCoordP4uiv +GLAD_API_CALL PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer; +#define glTexCoordPointer glad_glTexCoordPointer +GLAD_API_CALL PFNGLTEXENVFPROC glad_glTexEnvf; +#define glTexEnvf glad_glTexEnvf +GLAD_API_CALL PFNGLTEXENVFVPROC glad_glTexEnvfv; +#define glTexEnvfv glad_glTexEnvfv +GLAD_API_CALL PFNGLTEXENVIPROC glad_glTexEnvi; +#define glTexEnvi glad_glTexEnvi +GLAD_API_CALL PFNGLTEXENVIVPROC glad_glTexEnviv; +#define glTexEnviv glad_glTexEnviv +GLAD_API_CALL PFNGLTEXGENDPROC glad_glTexGend; +#define glTexGend glad_glTexGend +GLAD_API_CALL PFNGLTEXGENDVPROC glad_glTexGendv; +#define glTexGendv glad_glTexGendv +GLAD_API_CALL PFNGLTEXGENFPROC glad_glTexGenf; +#define glTexGenf glad_glTexGenf +GLAD_API_CALL PFNGLTEXGENFVPROC glad_glTexGenfv; +#define glTexGenfv glad_glTexGenfv +GLAD_API_CALL PFNGLTEXGENIPROC glad_glTexGeni; +#define glTexGeni glad_glTexGeni +GLAD_API_CALL PFNGLTEXGENIVPROC glad_glTexGeniv; +#define glTexGeniv glad_glTexGeniv +GLAD_API_CALL PFNGLTEXIMAGE1DPROC glad_glTexImage1D; +#define glTexImage1D glad_glTexImage1D +GLAD_API_CALL PFNGLTEXIMAGE2DPROC glad_glTexImage2D; +#define glTexImage2D glad_glTexImage2D +GLAD_API_CALL PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; +#define glTexImage2DMultisample glad_glTexImage2DMultisample +GLAD_API_CALL PFNGLTEXIMAGE3DPROC glad_glTexImage3D; +#define glTexImage3D glad_glTexImage3D +GLAD_API_CALL PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; +#define glTexImage3DMultisample glad_glTexImage3DMultisample +GLAD_API_CALL PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; +#define glTexParameterIiv glad_glTexParameterIiv +GLAD_API_CALL PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; +#define glTexParameterIuiv glad_glTexParameterIuiv +GLAD_API_CALL PFNGLTEXPARAMETERFPROC glad_glTexParameterf; +#define glTexParameterf glad_glTexParameterf +GLAD_API_CALL PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; +#define glTexParameterfv glad_glTexParameterfv +GLAD_API_CALL PFNGLTEXPARAMETERIPROC glad_glTexParameteri; +#define glTexParameteri glad_glTexParameteri +GLAD_API_CALL PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; +#define glTexParameteriv glad_glTexParameteriv +GLAD_API_CALL PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; +#define glTexSubImage1D glad_glTexSubImage1D +GLAD_API_CALL PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; +#define glTexSubImage2D glad_glTexSubImage2D +GLAD_API_CALL PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; +#define glTexSubImage3D glad_glTexSubImage3D +GLAD_API_CALL PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; +#define glTransformFeedbackVaryings glad_glTransformFeedbackVaryings +GLAD_API_CALL PFNGLTRANSLATEDPROC glad_glTranslated; +#define glTranslated glad_glTranslated +GLAD_API_CALL PFNGLTRANSLATEFPROC glad_glTranslatef; +#define glTranslatef glad_glTranslatef +GLAD_API_CALL PFNGLUNIFORM1FPROC glad_glUniform1f; +#define glUniform1f glad_glUniform1f +GLAD_API_CALL PFNGLUNIFORM1FVPROC glad_glUniform1fv; +#define glUniform1fv glad_glUniform1fv +GLAD_API_CALL PFNGLUNIFORM1IPROC glad_glUniform1i; +#define glUniform1i glad_glUniform1i +GLAD_API_CALL PFNGLUNIFORM1IVPROC glad_glUniform1iv; +#define glUniform1iv glad_glUniform1iv +GLAD_API_CALL PFNGLUNIFORM1UIPROC glad_glUniform1ui; +#define glUniform1ui glad_glUniform1ui +GLAD_API_CALL PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; +#define glUniform1uiv glad_glUniform1uiv +GLAD_API_CALL PFNGLUNIFORM2FPROC glad_glUniform2f; +#define glUniform2f glad_glUniform2f +GLAD_API_CALL PFNGLUNIFORM2FVPROC glad_glUniform2fv; +#define glUniform2fv glad_glUniform2fv +GLAD_API_CALL PFNGLUNIFORM2IPROC glad_glUniform2i; +#define glUniform2i glad_glUniform2i +GLAD_API_CALL PFNGLUNIFORM2IVPROC glad_glUniform2iv; +#define glUniform2iv glad_glUniform2iv +GLAD_API_CALL PFNGLUNIFORM2UIPROC glad_glUniform2ui; +#define glUniform2ui glad_glUniform2ui +GLAD_API_CALL PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; +#define glUniform2uiv glad_glUniform2uiv +GLAD_API_CALL PFNGLUNIFORM3FPROC glad_glUniform3f; +#define glUniform3f glad_glUniform3f +GLAD_API_CALL PFNGLUNIFORM3FVPROC glad_glUniform3fv; +#define glUniform3fv glad_glUniform3fv +GLAD_API_CALL PFNGLUNIFORM3IPROC glad_glUniform3i; +#define glUniform3i glad_glUniform3i +GLAD_API_CALL PFNGLUNIFORM3IVPROC glad_glUniform3iv; +#define glUniform3iv glad_glUniform3iv +GLAD_API_CALL PFNGLUNIFORM3UIPROC glad_glUniform3ui; +#define glUniform3ui glad_glUniform3ui +GLAD_API_CALL PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; +#define glUniform3uiv glad_glUniform3uiv +GLAD_API_CALL PFNGLUNIFORM4FPROC glad_glUniform4f; +#define glUniform4f glad_glUniform4f +GLAD_API_CALL PFNGLUNIFORM4FVPROC glad_glUniform4fv; +#define glUniform4fv glad_glUniform4fv +GLAD_API_CALL PFNGLUNIFORM4IPROC glad_glUniform4i; +#define glUniform4i glad_glUniform4i +GLAD_API_CALL PFNGLUNIFORM4IVPROC glad_glUniform4iv; +#define glUniform4iv glad_glUniform4iv +GLAD_API_CALL PFNGLUNIFORM4UIPROC glad_glUniform4ui; +#define glUniform4ui glad_glUniform4ui +GLAD_API_CALL PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; +#define glUniform4uiv glad_glUniform4uiv +GLAD_API_CALL PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; +#define glUniformBlockBinding glad_glUniformBlockBinding +GLAD_API_CALL PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; +#define glUniformMatrix2fv glad_glUniformMatrix2fv +GLAD_API_CALL PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; +#define glUniformMatrix2x3fv glad_glUniformMatrix2x3fv +GLAD_API_CALL PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; +#define glUniformMatrix2x4fv glad_glUniformMatrix2x4fv +GLAD_API_CALL PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; +#define glUniformMatrix3fv glad_glUniformMatrix3fv +GLAD_API_CALL PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; +#define glUniformMatrix3x2fv glad_glUniformMatrix3x2fv +GLAD_API_CALL PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; +#define glUniformMatrix3x4fv glad_glUniformMatrix3x4fv +GLAD_API_CALL PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; +#define glUniformMatrix4fv glad_glUniformMatrix4fv +GLAD_API_CALL PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; +#define glUniformMatrix4x2fv glad_glUniformMatrix4x2fv +GLAD_API_CALL PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; +#define glUniformMatrix4x3fv glad_glUniformMatrix4x3fv +GLAD_API_CALL PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; +#define glUnmapBuffer glad_glUnmapBuffer +GLAD_API_CALL PFNGLUSEPROGRAMPROC glad_glUseProgram; +#define glUseProgram glad_glUseProgram +GLAD_API_CALL PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; +#define glValidateProgram glad_glValidateProgram +GLAD_API_CALL PFNGLVERTEX2DPROC glad_glVertex2d; +#define glVertex2d glad_glVertex2d +GLAD_API_CALL PFNGLVERTEX2DVPROC glad_glVertex2dv; +#define glVertex2dv glad_glVertex2dv +GLAD_API_CALL PFNGLVERTEX2FPROC glad_glVertex2f; +#define glVertex2f glad_glVertex2f +GLAD_API_CALL PFNGLVERTEX2FVPROC glad_glVertex2fv; +#define glVertex2fv glad_glVertex2fv +GLAD_API_CALL PFNGLVERTEX2IPROC glad_glVertex2i; +#define glVertex2i glad_glVertex2i +GLAD_API_CALL PFNGLVERTEX2IVPROC glad_glVertex2iv; +#define glVertex2iv glad_glVertex2iv +GLAD_API_CALL PFNGLVERTEX2SPROC glad_glVertex2s; +#define glVertex2s glad_glVertex2s +GLAD_API_CALL PFNGLVERTEX2SVPROC glad_glVertex2sv; +#define glVertex2sv glad_glVertex2sv +GLAD_API_CALL PFNGLVERTEX3DPROC glad_glVertex3d; +#define glVertex3d glad_glVertex3d +GLAD_API_CALL PFNGLVERTEX3DVPROC glad_glVertex3dv; +#define glVertex3dv glad_glVertex3dv +GLAD_API_CALL PFNGLVERTEX3FPROC glad_glVertex3f; +#define glVertex3f glad_glVertex3f +GLAD_API_CALL PFNGLVERTEX3FVPROC glad_glVertex3fv; +#define glVertex3fv glad_glVertex3fv +GLAD_API_CALL PFNGLVERTEX3IPROC glad_glVertex3i; +#define glVertex3i glad_glVertex3i +GLAD_API_CALL PFNGLVERTEX3IVPROC glad_glVertex3iv; +#define glVertex3iv glad_glVertex3iv +GLAD_API_CALL PFNGLVERTEX3SPROC glad_glVertex3s; +#define glVertex3s glad_glVertex3s +GLAD_API_CALL PFNGLVERTEX3SVPROC glad_glVertex3sv; +#define glVertex3sv glad_glVertex3sv +GLAD_API_CALL PFNGLVERTEX4DPROC glad_glVertex4d; +#define glVertex4d glad_glVertex4d +GLAD_API_CALL PFNGLVERTEX4DVPROC glad_glVertex4dv; +#define glVertex4dv glad_glVertex4dv +GLAD_API_CALL PFNGLVERTEX4FPROC glad_glVertex4f; +#define glVertex4f glad_glVertex4f +GLAD_API_CALL PFNGLVERTEX4FVPROC glad_glVertex4fv; +#define glVertex4fv glad_glVertex4fv +GLAD_API_CALL PFNGLVERTEX4IPROC glad_glVertex4i; +#define glVertex4i glad_glVertex4i +GLAD_API_CALL PFNGLVERTEX4IVPROC glad_glVertex4iv; +#define glVertex4iv glad_glVertex4iv +GLAD_API_CALL PFNGLVERTEX4SPROC glad_glVertex4s; +#define glVertex4s glad_glVertex4s +GLAD_API_CALL PFNGLVERTEX4SVPROC glad_glVertex4sv; +#define glVertex4sv glad_glVertex4sv +GLAD_API_CALL PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; +#define glVertexAttrib1d glad_glVertexAttrib1d +GLAD_API_CALL PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; +#define glVertexAttrib1dv glad_glVertexAttrib1dv +GLAD_API_CALL PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; +#define glVertexAttrib1f glad_glVertexAttrib1f +GLAD_API_CALL PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; +#define glVertexAttrib1fv glad_glVertexAttrib1fv +GLAD_API_CALL PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; +#define glVertexAttrib1s glad_glVertexAttrib1s +GLAD_API_CALL PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; +#define glVertexAttrib1sv glad_glVertexAttrib1sv +GLAD_API_CALL PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; +#define glVertexAttrib2d glad_glVertexAttrib2d +GLAD_API_CALL PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; +#define glVertexAttrib2dv glad_glVertexAttrib2dv +GLAD_API_CALL PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; +#define glVertexAttrib2f glad_glVertexAttrib2f +GLAD_API_CALL PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; +#define glVertexAttrib2fv glad_glVertexAttrib2fv +GLAD_API_CALL PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; +#define glVertexAttrib2s glad_glVertexAttrib2s +GLAD_API_CALL PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; +#define glVertexAttrib2sv glad_glVertexAttrib2sv +GLAD_API_CALL PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; +#define glVertexAttrib3d glad_glVertexAttrib3d +GLAD_API_CALL PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; +#define glVertexAttrib3dv glad_glVertexAttrib3dv +GLAD_API_CALL PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; +#define glVertexAttrib3f glad_glVertexAttrib3f +GLAD_API_CALL PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; +#define glVertexAttrib3fv glad_glVertexAttrib3fv +GLAD_API_CALL PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; +#define glVertexAttrib3s glad_glVertexAttrib3s +GLAD_API_CALL PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; +#define glVertexAttrib3sv glad_glVertexAttrib3sv +GLAD_API_CALL PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; +#define glVertexAttrib4Nbv glad_glVertexAttrib4Nbv +GLAD_API_CALL PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; +#define glVertexAttrib4Niv glad_glVertexAttrib4Niv +GLAD_API_CALL PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; +#define glVertexAttrib4Nsv glad_glVertexAttrib4Nsv +GLAD_API_CALL PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; +#define glVertexAttrib4Nub glad_glVertexAttrib4Nub +GLAD_API_CALL PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; +#define glVertexAttrib4Nubv glad_glVertexAttrib4Nubv +GLAD_API_CALL PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; +#define glVertexAttrib4Nuiv glad_glVertexAttrib4Nuiv +GLAD_API_CALL PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; +#define glVertexAttrib4Nusv glad_glVertexAttrib4Nusv +GLAD_API_CALL PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; +#define glVertexAttrib4bv glad_glVertexAttrib4bv +GLAD_API_CALL PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; +#define glVertexAttrib4d glad_glVertexAttrib4d +GLAD_API_CALL PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; +#define glVertexAttrib4dv glad_glVertexAttrib4dv +GLAD_API_CALL PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; +#define glVertexAttrib4f glad_glVertexAttrib4f +GLAD_API_CALL PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; +#define glVertexAttrib4fv glad_glVertexAttrib4fv +GLAD_API_CALL PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; +#define glVertexAttrib4iv glad_glVertexAttrib4iv +GLAD_API_CALL PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; +#define glVertexAttrib4s glad_glVertexAttrib4s +GLAD_API_CALL PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; +#define glVertexAttrib4sv glad_glVertexAttrib4sv +GLAD_API_CALL PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; +#define glVertexAttrib4ubv glad_glVertexAttrib4ubv +GLAD_API_CALL PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; +#define glVertexAttrib4uiv glad_glVertexAttrib4uiv +GLAD_API_CALL PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; +#define glVertexAttrib4usv glad_glVertexAttrib4usv +GLAD_API_CALL PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; +#define glVertexAttribDivisor glad_glVertexAttribDivisor +GLAD_API_CALL PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; +#define glVertexAttribI1i glad_glVertexAttribI1i +GLAD_API_CALL PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; +#define glVertexAttribI1iv glad_glVertexAttribI1iv +GLAD_API_CALL PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; +#define glVertexAttribI1ui glad_glVertexAttribI1ui +GLAD_API_CALL PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; +#define glVertexAttribI1uiv glad_glVertexAttribI1uiv +GLAD_API_CALL PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; +#define glVertexAttribI2i glad_glVertexAttribI2i +GLAD_API_CALL PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; +#define glVertexAttribI2iv glad_glVertexAttribI2iv +GLAD_API_CALL PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; +#define glVertexAttribI2ui glad_glVertexAttribI2ui +GLAD_API_CALL PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; +#define glVertexAttribI2uiv glad_glVertexAttribI2uiv +GLAD_API_CALL PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; +#define glVertexAttribI3i glad_glVertexAttribI3i +GLAD_API_CALL PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; +#define glVertexAttribI3iv glad_glVertexAttribI3iv +GLAD_API_CALL PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; +#define glVertexAttribI3ui glad_glVertexAttribI3ui +GLAD_API_CALL PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; +#define glVertexAttribI3uiv glad_glVertexAttribI3uiv +GLAD_API_CALL PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; +#define glVertexAttribI4bv glad_glVertexAttribI4bv +GLAD_API_CALL PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; +#define glVertexAttribI4i glad_glVertexAttribI4i +GLAD_API_CALL PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; +#define glVertexAttribI4iv glad_glVertexAttribI4iv +GLAD_API_CALL PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; +#define glVertexAttribI4sv glad_glVertexAttribI4sv +GLAD_API_CALL PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; +#define glVertexAttribI4ubv glad_glVertexAttribI4ubv +GLAD_API_CALL PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; +#define glVertexAttribI4ui glad_glVertexAttribI4ui +GLAD_API_CALL PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; +#define glVertexAttribI4uiv glad_glVertexAttribI4uiv +GLAD_API_CALL PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; +#define glVertexAttribI4usv glad_glVertexAttribI4usv +GLAD_API_CALL PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; +#define glVertexAttribIPointer glad_glVertexAttribIPointer +GLAD_API_CALL PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; +#define glVertexAttribP1ui glad_glVertexAttribP1ui +GLAD_API_CALL PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; +#define glVertexAttribP1uiv glad_glVertexAttribP1uiv +GLAD_API_CALL PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; +#define glVertexAttribP2ui glad_glVertexAttribP2ui +GLAD_API_CALL PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; +#define glVertexAttribP2uiv glad_glVertexAttribP2uiv +GLAD_API_CALL PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; +#define glVertexAttribP3ui glad_glVertexAttribP3ui +GLAD_API_CALL PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; +#define glVertexAttribP3uiv glad_glVertexAttribP3uiv +GLAD_API_CALL PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; +#define glVertexAttribP4ui glad_glVertexAttribP4ui +GLAD_API_CALL PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; +#define glVertexAttribP4uiv glad_glVertexAttribP4uiv +GLAD_API_CALL PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; +#define glVertexAttribPointer glad_glVertexAttribPointer +GLAD_API_CALL PFNGLVERTEXP2UIPROC glad_glVertexP2ui; +#define glVertexP2ui glad_glVertexP2ui +GLAD_API_CALL PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; +#define glVertexP2uiv glad_glVertexP2uiv +GLAD_API_CALL PFNGLVERTEXP3UIPROC glad_glVertexP3ui; +#define glVertexP3ui glad_glVertexP3ui +GLAD_API_CALL PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; +#define glVertexP3uiv glad_glVertexP3uiv +GLAD_API_CALL PFNGLVERTEXP4UIPROC glad_glVertexP4ui; +#define glVertexP4ui glad_glVertexP4ui +GLAD_API_CALL PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; +#define glVertexP4uiv glad_glVertexP4uiv +GLAD_API_CALL PFNGLVERTEXPOINTERPROC glad_glVertexPointer; +#define glVertexPointer glad_glVertexPointer +GLAD_API_CALL PFNGLVIEWPORTPROC glad_glViewport; +#define glViewport glad_glViewport +GLAD_API_CALL PFNGLWAITSYNCPROC glad_glWaitSync; +#define glWaitSync glad_glWaitSync +GLAD_API_CALL PFNGLWINDOWPOS2DPROC glad_glWindowPos2d; +#define glWindowPos2d glad_glWindowPos2d +GLAD_API_CALL PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv; +#define glWindowPos2dv glad_glWindowPos2dv +GLAD_API_CALL PFNGLWINDOWPOS2FPROC glad_glWindowPos2f; +#define glWindowPos2f glad_glWindowPos2f +GLAD_API_CALL PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv; +#define glWindowPos2fv glad_glWindowPos2fv +GLAD_API_CALL PFNGLWINDOWPOS2IPROC glad_glWindowPos2i; +#define glWindowPos2i glad_glWindowPos2i +GLAD_API_CALL PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv; +#define glWindowPos2iv glad_glWindowPos2iv +GLAD_API_CALL PFNGLWINDOWPOS2SPROC glad_glWindowPos2s; +#define glWindowPos2s glad_glWindowPos2s +GLAD_API_CALL PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv; +#define glWindowPos2sv glad_glWindowPos2sv +GLAD_API_CALL PFNGLWINDOWPOS3DPROC glad_glWindowPos3d; +#define glWindowPos3d glad_glWindowPos3d +GLAD_API_CALL PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv; +#define glWindowPos3dv glad_glWindowPos3dv +GLAD_API_CALL PFNGLWINDOWPOS3FPROC glad_glWindowPos3f; +#define glWindowPos3f glad_glWindowPos3f +GLAD_API_CALL PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv; +#define glWindowPos3fv glad_glWindowPos3fv +GLAD_API_CALL PFNGLWINDOWPOS3IPROC glad_glWindowPos3i; +#define glWindowPos3i glad_glWindowPos3i +GLAD_API_CALL PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv; +#define glWindowPos3iv glad_glWindowPos3iv +GLAD_API_CALL PFNGLWINDOWPOS3SPROC glad_glWindowPos3s; +#define glWindowPos3s glad_glWindowPos3s +GLAD_API_CALL PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv; +#define glWindowPos3sv glad_glWindowPos3sv + + +GLAD_API_CALL int gladLoadGLUserPtr( GLADuserptrloadfunc load, void *userptr); +GLAD_API_CALL int gladLoadGL( GLADloadfunc load); + + + + + + +#ifdef __cplusplus +} +#endif +#endif diff --git a/external/GLFW/deps/KHR/khrplatform.h b/external/glfw-3.3.4/deps/glad/khrplatform.h similarity index 94% rename from external/GLFW/deps/KHR/khrplatform.h rename to external/glfw-3.3.4/deps/glad/khrplatform.h index c9e6f17..975bbff 100644 --- a/external/GLFW/deps/KHR/khrplatform.h +++ b/external/glfw-3.3.4/deps/glad/khrplatform.h @@ -2,7 +2,7 @@ #define __khrplatform_h_ /* -** Copyright (c) 2008-2009 The Khronos Group Inc. +** 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 @@ -26,18 +26,16 @@ /* Khronos platform-specific types and definitions. * - * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $ + * 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 sending them to the public Khronos Bugzilla - * (http://khronos.org/bugzilla) by filing a bug against product - * "Khronos (general)" component "Registry". - * - * A predefined template which fills in some of the bug fields can be - * reached using http://tinyurl.com/khrplatform-h-bugreport, but you - * must create a Bugzilla login first. + * 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 @@ -101,6 +99,8 @@ # 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 @@ -223,7 +223,7 @@ typedef signed short int khronos_int16_t; typedef unsigned short int khronos_uint16_t; /* - * Types that differ between LLP64 and LP64 architectures - in LLP64, + * 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. */ diff --git a/external/glfw-3.3.4/deps/glad/vk_platform.h b/external/glfw-3.3.4/deps/glad/vk_platform.h new file mode 100644 index 0000000..d7d22e1 --- /dev/null +++ b/external/glfw-3.3.4/deps/glad/vk_platform.h @@ -0,0 +1,92 @@ +/* */ +/* File: vk_platform.h */ +/* */ +/* +** Copyright (c) 2014-2017 The Khronos Group Inc. +** +** 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. +*/ + + +#ifndef VK_PLATFORM_H_ +#define VK_PLATFORM_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +/* +*************************************************************************************************** +* Platform-specific directives and type declarations +*************************************************************************************************** +*/ + +/* Platform-specific calling convention macros. + * + * Platforms should define these so that Vulkan clients call Vulkan commands + * with the same calling conventions that the Vulkan implementation expects. + * + * VKAPI_ATTR - Placed before the return type in function declarations. + * Useful for C++11 and GCC/Clang-style function attribute syntax. + * VKAPI_CALL - Placed after the return type in function declarations. + * Useful for MSVC-style calling convention syntax. + * VKAPI_PTR - Placed between the '(' and '*' in function pointer types. + * + * Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void); + * Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void); + */ +#if defined(_WIN32) + /* On Windows, Vulkan commands use the stdcall convention */ + #define VKAPI_ATTR + #define VKAPI_CALL __stdcall + #define VKAPI_PTR VKAPI_CALL +#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7 + #error "Vulkan isn't supported for the 'armeabi' NDK ABI" +#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE) + /* On Android 32-bit ARM targets, Vulkan functions use the "hardfloat" */ + /* calling convention, i.e. float parameters are passed in registers. This */ + /* is true even if the rest of the application passes floats on the stack, */ + /* as it does by default when compiling for the armeabi-v7a NDK ABI. */ + #define VKAPI_ATTR __attribute__((pcs("aapcs-vfp"))) + #define VKAPI_CALL + #define VKAPI_PTR VKAPI_ATTR +#else + /* On other platforms, use the default calling convention */ + #define VKAPI_ATTR + #define VKAPI_CALL + #define VKAPI_PTR +#endif + +#include + +#if !defined(VK_NO_STDINT_H) + #if defined(_MSC_VER) && (_MSC_VER < 1600) + typedef signed __int8 int8_t; + typedef unsigned __int8 uint8_t; + typedef signed __int16 int16_t; + typedef unsigned __int16 uint16_t; + typedef signed __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef signed __int64 int64_t; + typedef unsigned __int64 uint64_t; + #else + #include + #endif +#endif /* !defined(VK_NO_STDINT_H) */ + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* __cplusplus */ + +#endif diff --git a/external/glfw-3.3.4/deps/glad/vulkan.h b/external/glfw-3.3.4/deps/glad/vulkan.h new file mode 100644 index 0000000..6bace71 --- /dev/null +++ b/external/glfw-3.3.4/deps/glad/vulkan.h @@ -0,0 +1,3480 @@ +/** + * Loader generated by glad 2.0.0-beta on Sun Apr 14 17:03:38 2019 + * + * Generator: C/C++ + * Specification: vk + * Extensions: 3 + * + * APIs: + * - vulkan=1.1 + * + * Options: + * - MX_GLOBAL = False + * - LOADER = False + * - ALIAS = False + * - HEADER_ONLY = False + * - DEBUG = False + * - MX = False + * + * Commandline: + * --api='vulkan=1.1' --extensions='VK_EXT_debug_report,VK_KHR_surface,VK_KHR_swapchain' c + * + * Online: + * http://glad.sh/#api=vulkan%3D1.1&extensions=VK_EXT_debug_report%2CVK_KHR_surface%2CVK_KHR_swapchain&generator=c&options= + * + */ + +#ifndef GLAD_VULKAN_H_ +#define GLAD_VULKAN_H_ + +#ifdef VULKAN_H_ + #error header already included (API: vulkan), remove previous include! +#endif +#define VULKAN_H_ 1 + +#ifdef VULKAN_CORE_H_ + #error header already included (API: vulkan), remove previous include! +#endif +#define VULKAN_CORE_H_ 1 + + +#define GLAD_VULKAN + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef GLAD_PLATFORM_H_ +#define GLAD_PLATFORM_H_ + +#ifndef GLAD_PLATFORM_WIN32 + #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__) + #define GLAD_PLATFORM_WIN32 1 + #else + #define GLAD_PLATFORM_WIN32 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_APPLE + #ifdef __APPLE__ + #define GLAD_PLATFORM_APPLE 1 + #else + #define GLAD_PLATFORM_APPLE 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_EMSCRIPTEN + #ifdef __EMSCRIPTEN__ + #define GLAD_PLATFORM_EMSCRIPTEN 1 + #else + #define GLAD_PLATFORM_EMSCRIPTEN 0 + #endif +#endif + +#ifndef GLAD_PLATFORM_UWP + #if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY) + #ifdef __has_include + #if __has_include() + #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 + #endif + #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ + #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1 + #endif + #endif + + #ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY + #include + #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + #define GLAD_PLATFORM_UWP 1 + #endif + #endif + + #ifndef GLAD_PLATFORM_UWP + #define GLAD_PLATFORM_UWP 0 + #endif +#endif + +#ifdef __GNUC__ + #define GLAD_GNUC_EXTENSION __extension__ +#else + #define GLAD_GNUC_EXTENSION +#endif + +#ifndef GLAD_API_CALL + #if defined(GLAD_API_CALL_EXPORT) + #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__) + #if defined(GLAD_API_CALL_EXPORT_BUILD) + #if defined(__GNUC__) + #define GLAD_API_CALL __attribute__ ((dllexport)) extern + #else + #define GLAD_API_CALL __declspec(dllexport) extern + #endif + #else + #if defined(__GNUC__) + #define GLAD_API_CALL __attribute__ ((dllimport)) extern + #else + #define GLAD_API_CALL __declspec(dllimport) extern + #endif + #endif + #elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD) + #define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern + #else + #define GLAD_API_CALL extern + #endif + #else + #define GLAD_API_CALL extern + #endif +#endif + +#ifdef APIENTRY + #define GLAD_API_PTR APIENTRY +#elif GLAD_PLATFORM_WIN32 + #define GLAD_API_PTR __stdcall +#else + #define GLAD_API_PTR +#endif + +#ifndef GLAPI +#define GLAPI GLAD_API_CALL +#endif + +#ifndef GLAPIENTRY +#define GLAPIENTRY GLAD_API_PTR +#endif + + +#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor) +#define GLAD_VERSION_MAJOR(version) (version / 10000) +#define GLAD_VERSION_MINOR(version) (version % 10000) + +typedef void (*GLADapiproc)(void); + +typedef GLADapiproc (*GLADloadfunc)(const char *name); +typedef GLADapiproc (*GLADuserptrloadfunc)(const char *name, void *userptr); + +typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...); +typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...); + +#endif /* GLAD_PLATFORM_H_ */ + +#define VK_ATTACHMENT_UNUSED (~0U) +#define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report" +#define VK_EXT_DEBUG_REPORT_SPEC_VERSION 9 +#define VK_FALSE 0 +#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface" +#define VK_KHR_SURFACE_SPEC_VERSION 25 +#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain" +#define VK_KHR_SWAPCHAIN_SPEC_VERSION 70 +#define VK_LOD_CLAMP_NONE 1000.0f +#define VK_LUID_SIZE 8 +#define VK_MAX_DESCRIPTION_SIZE 256 +#define VK_MAX_DEVICE_GROUP_SIZE 32 +#define VK_MAX_EXTENSION_NAME_SIZE 256 +#define VK_MAX_MEMORY_HEAPS 16 +#define VK_MAX_MEMORY_TYPES 32 +#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256 +#define VK_QUEUE_FAMILY_EXTERNAL (~0U-1) +#define VK_QUEUE_FAMILY_IGNORED (~0U) +#define VK_REMAINING_ARRAY_LAYERS (~0U) +#define VK_REMAINING_MIP_LEVELS (~0U) +#define VK_SUBPASS_EXTERNAL (~0U) +#define VK_TRUE 1 +#define VK_UUID_SIZE 16 +#define VK_WHOLE_SIZE (~0ULL) + + +#include +#define VK_MAKE_VERSION(major, minor, patch) \ + (((major) << 22) | ((minor) << 12) | (patch)) +#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22) +#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) +#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) +/* DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead. */ +/*#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0) // Patch version should always be set to 0 */ +/* Vulkan 1.0 version number */ +#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0)/* Patch version should always be set to 0 */ +/* Vulkan 1.1 version number */ +#define VK_API_VERSION_1_1 VK_MAKE_VERSION(1, 1, 0)/* Patch version should always be set to 0 */ +/* Version of this file */ +#define VK_HEADER_VERSION 106 +#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; +#if !defined(VK_DEFINE_NON_DISPATCHABLE_HANDLE) +#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) + #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; +#else + #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; +#endif +#endif +#define VK_NULL_HANDLE 0 + + + + + + + + +VK_DEFINE_HANDLE(VkInstance) +VK_DEFINE_HANDLE(VkPhysicalDevice) +VK_DEFINE_HANDLE(VkDevice) +VK_DEFINE_HANDLE(VkQueue) +VK_DEFINE_HANDLE(VkCommandBuffer) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorUpdateTemplate) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSamplerYcbcrConversion) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT) +typedef enum VkAttachmentLoadOp { + VK_ATTACHMENT_LOAD_OP_LOAD = 0, + VK_ATTACHMENT_LOAD_OP_CLEAR = 1, + VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2 +} VkAttachmentLoadOp; +typedef enum VkAttachmentStoreOp { + VK_ATTACHMENT_STORE_OP_STORE = 0, + VK_ATTACHMENT_STORE_OP_DONT_CARE = 1 +} VkAttachmentStoreOp; +typedef enum VkBlendFactor { + VK_BLEND_FACTOR_ZERO = 0, + VK_BLEND_FACTOR_ONE = 1, + VK_BLEND_FACTOR_SRC_COLOR = 2, + VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3, + VK_BLEND_FACTOR_DST_COLOR = 4, + VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5, + VK_BLEND_FACTOR_SRC_ALPHA = 6, + VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7, + VK_BLEND_FACTOR_DST_ALPHA = 8, + VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9, + VK_BLEND_FACTOR_CONSTANT_COLOR = 10, + VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11, + VK_BLEND_FACTOR_CONSTANT_ALPHA = 12, + VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13, + VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14, + VK_BLEND_FACTOR_SRC1_COLOR = 15, + VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16, + VK_BLEND_FACTOR_SRC1_ALPHA = 17, + VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18 +} VkBlendFactor; +typedef enum VkBlendOp { + VK_BLEND_OP_ADD = 0, + VK_BLEND_OP_SUBTRACT = 1, + VK_BLEND_OP_REVERSE_SUBTRACT = 2, + VK_BLEND_OP_MIN = 3, + VK_BLEND_OP_MAX = 4 +} VkBlendOp; +typedef enum VkBorderColor { + VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0, + VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1, + VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2, + VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3, + VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4, + VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5 +} VkBorderColor; + +typedef enum VkPipelineCacheHeaderVersion { + VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1 +} VkPipelineCacheHeaderVersion; + +typedef enum VkDeviceQueueCreateFlagBits { + VK_DEVICE_QUEUE_CREATE_PROTECTED_BIT = 1 +} VkDeviceQueueCreateFlagBits; +typedef enum VkBufferCreateFlagBits { + VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 1, + VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 2, + VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 4, + VK_BUFFER_CREATE_PROTECTED_BIT = 8 +} VkBufferCreateFlagBits; +typedef enum VkBufferUsageFlagBits { + VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 1, + VK_BUFFER_USAGE_TRANSFER_DST_BIT = 2, + VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 4, + VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 8, + VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 16, + VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 32, + VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 64, + VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 128, + VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 256 +} VkBufferUsageFlagBits; +typedef enum VkColorComponentFlagBits { + VK_COLOR_COMPONENT_R_BIT = 1, + VK_COLOR_COMPONENT_G_BIT = 2, + VK_COLOR_COMPONENT_B_BIT = 4, + VK_COLOR_COMPONENT_A_BIT = 8 +} VkColorComponentFlagBits; +typedef enum VkComponentSwizzle { + VK_COMPONENT_SWIZZLE_IDENTITY = 0, + VK_COMPONENT_SWIZZLE_ZERO = 1, + VK_COMPONENT_SWIZZLE_ONE = 2, + VK_COMPONENT_SWIZZLE_R = 3, + VK_COMPONENT_SWIZZLE_G = 4, + VK_COMPONENT_SWIZZLE_B = 5, + VK_COMPONENT_SWIZZLE_A = 6 +} VkComponentSwizzle; +typedef enum VkCommandPoolCreateFlagBits { + VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 1, + VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 2, + VK_COMMAND_POOL_CREATE_PROTECTED_BIT = 4 +} VkCommandPoolCreateFlagBits; +typedef enum VkCommandPoolResetFlagBits { + VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 1 +} VkCommandPoolResetFlagBits; +typedef enum VkCommandBufferResetFlagBits { + VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 1 +} VkCommandBufferResetFlagBits; +typedef enum VkCommandBufferLevel { + VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0, + VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1 +} VkCommandBufferLevel; +typedef enum VkCommandBufferUsageFlagBits { + VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 1, + VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 2, + VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 4 +} VkCommandBufferUsageFlagBits; +typedef enum VkCompareOp { + VK_COMPARE_OP_NEVER = 0, + VK_COMPARE_OP_LESS = 1, + VK_COMPARE_OP_EQUAL = 2, + VK_COMPARE_OP_LESS_OR_EQUAL = 3, + VK_COMPARE_OP_GREATER = 4, + VK_COMPARE_OP_NOT_EQUAL = 5, + VK_COMPARE_OP_GREATER_OR_EQUAL = 6, + VK_COMPARE_OP_ALWAYS = 7 +} VkCompareOp; +typedef enum VkCullModeFlagBits { + VK_CULL_MODE_NONE = 0, + VK_CULL_MODE_FRONT_BIT = 1, + VK_CULL_MODE_BACK_BIT = 2, + VK_CULL_MODE_FRONT_AND_BACK = 0x00000003 +} VkCullModeFlagBits; +typedef enum VkDescriptorType { + VK_DESCRIPTOR_TYPE_SAMPLER = 0, + VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, + VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, + VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, + VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, + VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, + VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, + VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, + VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, + VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, + VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10 +} VkDescriptorType; +typedef enum VkDynamicState { + VK_DYNAMIC_STATE_VIEWPORT = 0, + VK_DYNAMIC_STATE_SCISSOR = 1, + VK_DYNAMIC_STATE_LINE_WIDTH = 2, + VK_DYNAMIC_STATE_DEPTH_BIAS = 3, + VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4, + VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5, + VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6, + VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7, + VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8, + VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1) +} VkDynamicState; +typedef enum VkFenceCreateFlagBits { + VK_FENCE_CREATE_SIGNALED_BIT = 1 +} VkFenceCreateFlagBits; +typedef enum VkPolygonMode { + VK_POLYGON_MODE_FILL = 0, + VK_POLYGON_MODE_LINE = 1, + VK_POLYGON_MODE_POINT = 2 +} VkPolygonMode; +typedef enum VkFormat { + VK_FORMAT_UNDEFINED = 0, + VK_FORMAT_R4G4_UNORM_PACK8 = 1, + VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2, + VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3, + VK_FORMAT_R5G6B5_UNORM_PACK16 = 4, + VK_FORMAT_B5G6R5_UNORM_PACK16 = 5, + VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6, + VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7, + VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8, + VK_FORMAT_R8_UNORM = 9, + VK_FORMAT_R8_SNORM = 10, + VK_FORMAT_R8_USCALED = 11, + VK_FORMAT_R8_SSCALED = 12, + VK_FORMAT_R8_UINT = 13, + VK_FORMAT_R8_SINT = 14, + VK_FORMAT_R8_SRGB = 15, + VK_FORMAT_R8G8_UNORM = 16, + VK_FORMAT_R8G8_SNORM = 17, + VK_FORMAT_R8G8_USCALED = 18, + VK_FORMAT_R8G8_SSCALED = 19, + VK_FORMAT_R8G8_UINT = 20, + VK_FORMAT_R8G8_SINT = 21, + VK_FORMAT_R8G8_SRGB = 22, + VK_FORMAT_R8G8B8_UNORM = 23, + VK_FORMAT_R8G8B8_SNORM = 24, + VK_FORMAT_R8G8B8_USCALED = 25, + VK_FORMAT_R8G8B8_SSCALED = 26, + VK_FORMAT_R8G8B8_UINT = 27, + VK_FORMAT_R8G8B8_SINT = 28, + VK_FORMAT_R8G8B8_SRGB = 29, + VK_FORMAT_B8G8R8_UNORM = 30, + VK_FORMAT_B8G8R8_SNORM = 31, + VK_FORMAT_B8G8R8_USCALED = 32, + VK_FORMAT_B8G8R8_SSCALED = 33, + VK_FORMAT_B8G8R8_UINT = 34, + VK_FORMAT_B8G8R8_SINT = 35, + VK_FORMAT_B8G8R8_SRGB = 36, + VK_FORMAT_R8G8B8A8_UNORM = 37, + VK_FORMAT_R8G8B8A8_SNORM = 38, + VK_FORMAT_R8G8B8A8_USCALED = 39, + VK_FORMAT_R8G8B8A8_SSCALED = 40, + VK_FORMAT_R8G8B8A8_UINT = 41, + VK_FORMAT_R8G8B8A8_SINT = 42, + VK_FORMAT_R8G8B8A8_SRGB = 43, + VK_FORMAT_B8G8R8A8_UNORM = 44, + VK_FORMAT_B8G8R8A8_SNORM = 45, + VK_FORMAT_B8G8R8A8_USCALED = 46, + VK_FORMAT_B8G8R8A8_SSCALED = 47, + VK_FORMAT_B8G8R8A8_UINT = 48, + VK_FORMAT_B8G8R8A8_SINT = 49, + VK_FORMAT_B8G8R8A8_SRGB = 50, + VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51, + VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52, + VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53, + VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54, + VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55, + VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56, + VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57, + VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58, + VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59, + VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60, + VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61, + VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62, + VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63, + VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64, + VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65, + VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66, + VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67, + VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68, + VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69, + VK_FORMAT_R16_UNORM = 70, + VK_FORMAT_R16_SNORM = 71, + VK_FORMAT_R16_USCALED = 72, + VK_FORMAT_R16_SSCALED = 73, + VK_FORMAT_R16_UINT = 74, + VK_FORMAT_R16_SINT = 75, + VK_FORMAT_R16_SFLOAT = 76, + VK_FORMAT_R16G16_UNORM = 77, + VK_FORMAT_R16G16_SNORM = 78, + VK_FORMAT_R16G16_USCALED = 79, + VK_FORMAT_R16G16_SSCALED = 80, + VK_FORMAT_R16G16_UINT = 81, + VK_FORMAT_R16G16_SINT = 82, + VK_FORMAT_R16G16_SFLOAT = 83, + VK_FORMAT_R16G16B16_UNORM = 84, + VK_FORMAT_R16G16B16_SNORM = 85, + VK_FORMAT_R16G16B16_USCALED = 86, + VK_FORMAT_R16G16B16_SSCALED = 87, + VK_FORMAT_R16G16B16_UINT = 88, + VK_FORMAT_R16G16B16_SINT = 89, + VK_FORMAT_R16G16B16_SFLOAT = 90, + VK_FORMAT_R16G16B16A16_UNORM = 91, + VK_FORMAT_R16G16B16A16_SNORM = 92, + VK_FORMAT_R16G16B16A16_USCALED = 93, + VK_FORMAT_R16G16B16A16_SSCALED = 94, + VK_FORMAT_R16G16B16A16_UINT = 95, + VK_FORMAT_R16G16B16A16_SINT = 96, + VK_FORMAT_R16G16B16A16_SFLOAT = 97, + VK_FORMAT_R32_UINT = 98, + VK_FORMAT_R32_SINT = 99, + VK_FORMAT_R32_SFLOAT = 100, + VK_FORMAT_R32G32_UINT = 101, + VK_FORMAT_R32G32_SINT = 102, + VK_FORMAT_R32G32_SFLOAT = 103, + VK_FORMAT_R32G32B32_UINT = 104, + VK_FORMAT_R32G32B32_SINT = 105, + VK_FORMAT_R32G32B32_SFLOAT = 106, + VK_FORMAT_R32G32B32A32_UINT = 107, + VK_FORMAT_R32G32B32A32_SINT = 108, + VK_FORMAT_R32G32B32A32_SFLOAT = 109, + VK_FORMAT_R64_UINT = 110, + VK_FORMAT_R64_SINT = 111, + VK_FORMAT_R64_SFLOAT = 112, + VK_FORMAT_R64G64_UINT = 113, + VK_FORMAT_R64G64_SINT = 114, + VK_FORMAT_R64G64_SFLOAT = 115, + VK_FORMAT_R64G64B64_UINT = 116, + VK_FORMAT_R64G64B64_SINT = 117, + VK_FORMAT_R64G64B64_SFLOAT = 118, + VK_FORMAT_R64G64B64A64_UINT = 119, + VK_FORMAT_R64G64B64A64_SINT = 120, + VK_FORMAT_R64G64B64A64_SFLOAT = 121, + VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122, + VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123, + VK_FORMAT_D16_UNORM = 124, + VK_FORMAT_X8_D24_UNORM_PACK32 = 125, + VK_FORMAT_D32_SFLOAT = 126, + VK_FORMAT_S8_UINT = 127, + VK_FORMAT_D16_UNORM_S8_UINT = 128, + VK_FORMAT_D24_UNORM_S8_UINT = 129, + VK_FORMAT_D32_SFLOAT_S8_UINT = 130, + VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131, + VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132, + VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133, + VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134, + VK_FORMAT_BC2_UNORM_BLOCK = 135, + VK_FORMAT_BC2_SRGB_BLOCK = 136, + VK_FORMAT_BC3_UNORM_BLOCK = 137, + VK_FORMAT_BC3_SRGB_BLOCK = 138, + VK_FORMAT_BC4_UNORM_BLOCK = 139, + VK_FORMAT_BC4_SNORM_BLOCK = 140, + VK_FORMAT_BC5_UNORM_BLOCK = 141, + VK_FORMAT_BC5_SNORM_BLOCK = 142, + VK_FORMAT_BC6H_UFLOAT_BLOCK = 143, + VK_FORMAT_BC6H_SFLOAT_BLOCK = 144, + VK_FORMAT_BC7_UNORM_BLOCK = 145, + VK_FORMAT_BC7_SRGB_BLOCK = 146, + VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147, + VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148, + VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149, + VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150, + VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151, + VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152, + VK_FORMAT_EAC_R11_UNORM_BLOCK = 153, + VK_FORMAT_EAC_R11_SNORM_BLOCK = 154, + VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155, + VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156, + VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157, + VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158, + VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159, + VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160, + VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161, + VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162, + VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163, + VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164, + VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165, + VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166, + VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167, + VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168, + VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169, + VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170, + VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171, + VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172, + VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173, + VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174, + VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175, + VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176, + VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177, + VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178, + VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179, + VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180, + VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181, + VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182, + VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183, + VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184, + VK_FORMAT_G8B8G8R8_422_UNORM = 1000156000, + VK_FORMAT_B8G8R8G8_422_UNORM = 1000156001, + VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM = 1000156002, + VK_FORMAT_G8_B8R8_2PLANE_420_UNORM = 1000156003, + VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM = 1000156004, + VK_FORMAT_G8_B8R8_2PLANE_422_UNORM = 1000156005, + VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM = 1000156006, + VK_FORMAT_R10X6_UNORM_PACK16 = 1000156007, + VK_FORMAT_R10X6G10X6_UNORM_2PACK16 = 1000156008, + VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 = 1000156009, + VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16 = 1000156010, + VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16 = 1000156011, + VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16 = 1000156012, + VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16 = 1000156013, + VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16 = 1000156014, + VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16 = 1000156015, + VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16 = 1000156016, + VK_FORMAT_R12X4_UNORM_PACK16 = 1000156017, + VK_FORMAT_R12X4G12X4_UNORM_2PACK16 = 1000156018, + VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16 = 1000156019, + VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16 = 1000156020, + VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16 = 1000156021, + VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16 = 1000156022, + VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16 = 1000156023, + VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16 = 1000156024, + VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16 = 1000156025, + VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16 = 1000156026, + VK_FORMAT_G16B16G16R16_422_UNORM = 1000156027, + VK_FORMAT_B16G16R16G16_422_UNORM = 1000156028, + VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM = 1000156029, + VK_FORMAT_G16_B16R16_2PLANE_420_UNORM = 1000156030, + VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM = 1000156031, + VK_FORMAT_G16_B16R16_2PLANE_422_UNORM = 1000156032, + VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM = 1000156033 +} VkFormat; +typedef enum VkFormatFeatureFlagBits { + VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 1, + VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 2, + VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 4, + VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 8, + VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 16, + VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 32, + VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 64, + VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 128, + VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 256, + VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 512, + VK_FORMAT_FEATURE_BLIT_SRC_BIT = 1024, + VK_FORMAT_FEATURE_BLIT_DST_BIT = 2048, + VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 4096, + VK_FORMAT_FEATURE_TRANSFER_SRC_BIT = 16384, + VK_FORMAT_FEATURE_TRANSFER_DST_BIT = 32768, + VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT = 131072, + VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT = 262144, + VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT = 524288, + VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT = 1048576, + VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT = 2097152, + VK_FORMAT_FEATURE_DISJOINT_BIT = 4194304, + VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT = 8388608 +} VkFormatFeatureFlagBits; +typedef enum VkFrontFace { + VK_FRONT_FACE_COUNTER_CLOCKWISE = 0, + VK_FRONT_FACE_CLOCKWISE = 1 +} VkFrontFace; +typedef enum VkImageAspectFlagBits { + VK_IMAGE_ASPECT_COLOR_BIT = 1, + VK_IMAGE_ASPECT_DEPTH_BIT = 2, + VK_IMAGE_ASPECT_STENCIL_BIT = 4, + VK_IMAGE_ASPECT_METADATA_BIT = 8, + VK_IMAGE_ASPECT_PLANE_0_BIT = 16, + VK_IMAGE_ASPECT_PLANE_1_BIT = 32, + VK_IMAGE_ASPECT_PLANE_2_BIT = 64 +} VkImageAspectFlagBits; +typedef enum VkImageCreateFlagBits { + VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 1, + VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 2, + VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 4, + VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 8, + VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 16, + VK_IMAGE_CREATE_ALIAS_BIT = 1024, + VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT = 64, + VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT = 32, + VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT = 128, + VK_IMAGE_CREATE_EXTENDED_USAGE_BIT = 256, + VK_IMAGE_CREATE_PROTECTED_BIT = 2048, + VK_IMAGE_CREATE_DISJOINT_BIT = 512 +} VkImageCreateFlagBits; +typedef enum VkImageLayout { + VK_IMAGE_LAYOUT_UNDEFINED = 0, + VK_IMAGE_LAYOUT_GENERAL = 1, + VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2, + VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3, + VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4, + VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5, + VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6, + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7, + VK_IMAGE_LAYOUT_PREINITIALIZED = 8, + VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL = 1000117000, + VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL = 1000117001, + VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002 +} VkImageLayout; +typedef enum VkImageTiling { + VK_IMAGE_TILING_OPTIMAL = 0, + VK_IMAGE_TILING_LINEAR = 1 +} VkImageTiling; +typedef enum VkImageType { + VK_IMAGE_TYPE_1D = 0, + VK_IMAGE_TYPE_2D = 1, + VK_IMAGE_TYPE_3D = 2 +} VkImageType; +typedef enum VkImageUsageFlagBits { + VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 1, + VK_IMAGE_USAGE_TRANSFER_DST_BIT = 2, + VK_IMAGE_USAGE_SAMPLED_BIT = 4, + VK_IMAGE_USAGE_STORAGE_BIT = 8, + VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 16, + VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 32, + VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 64, + VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 128 +} VkImageUsageFlagBits; + +typedef enum VkImageViewType { + VK_IMAGE_VIEW_TYPE_1D = 0, + VK_IMAGE_VIEW_TYPE_2D = 1, + VK_IMAGE_VIEW_TYPE_3D = 2, + VK_IMAGE_VIEW_TYPE_CUBE = 3, + VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4, + VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5, + VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6 +} VkImageViewType; +typedef enum VkSharingMode { + VK_SHARING_MODE_EXCLUSIVE = 0, + VK_SHARING_MODE_CONCURRENT = 1 +} VkSharingMode; +typedef enum VkIndexType { + VK_INDEX_TYPE_UINT16 = 0, + VK_INDEX_TYPE_UINT32 = 1 +} VkIndexType; +typedef enum VkLogicOp { + VK_LOGIC_OP_CLEAR = 0, + VK_LOGIC_OP_AND = 1, + VK_LOGIC_OP_AND_REVERSE = 2, + VK_LOGIC_OP_COPY = 3, + VK_LOGIC_OP_AND_INVERTED = 4, + VK_LOGIC_OP_NO_OP = 5, + VK_LOGIC_OP_XOR = 6, + VK_LOGIC_OP_OR = 7, + VK_LOGIC_OP_NOR = 8, + VK_LOGIC_OP_EQUIVALENT = 9, + VK_LOGIC_OP_INVERT = 10, + VK_LOGIC_OP_OR_REVERSE = 11, + VK_LOGIC_OP_COPY_INVERTED = 12, + VK_LOGIC_OP_OR_INVERTED = 13, + VK_LOGIC_OP_NAND = 14, + VK_LOGIC_OP_SET = 15 +} VkLogicOp; +typedef enum VkMemoryHeapFlagBits { + VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 1, + VK_MEMORY_HEAP_MULTI_INSTANCE_BIT = 2 +} VkMemoryHeapFlagBits; +typedef enum VkAccessFlagBits { + VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 1, + VK_ACCESS_INDEX_READ_BIT = 2, + VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 4, + VK_ACCESS_UNIFORM_READ_BIT = 8, + VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 16, + VK_ACCESS_SHADER_READ_BIT = 32, + VK_ACCESS_SHADER_WRITE_BIT = 64, + VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 128, + VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 256, + VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 512, + VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 1024, + VK_ACCESS_TRANSFER_READ_BIT = 2048, + VK_ACCESS_TRANSFER_WRITE_BIT = 4096, + VK_ACCESS_HOST_READ_BIT = 8192, + VK_ACCESS_HOST_WRITE_BIT = 16384, + VK_ACCESS_MEMORY_READ_BIT = 32768, + VK_ACCESS_MEMORY_WRITE_BIT = 65536 +} VkAccessFlagBits; +typedef enum VkMemoryPropertyFlagBits { + VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 1, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 2, + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 4, + VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 8, + VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 16, + VK_MEMORY_PROPERTY_PROTECTED_BIT = 32 +} VkMemoryPropertyFlagBits; +typedef enum VkPhysicalDeviceType { + VK_PHYSICAL_DEVICE_TYPE_OTHER = 0, + VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1, + VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2, + VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3, + VK_PHYSICAL_DEVICE_TYPE_CPU = 4 +} VkPhysicalDeviceType; +typedef enum VkPipelineBindPoint { + VK_PIPELINE_BIND_POINT_GRAPHICS = 0, + VK_PIPELINE_BIND_POINT_COMPUTE = 1 +} VkPipelineBindPoint; +typedef enum VkPipelineCreateFlagBits { + VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 1, + VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 2, + VK_PIPELINE_CREATE_DERIVATIVE_BIT = 4, + VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT = 8, + VK_PIPELINE_CREATE_DISPATCH_BASE = 16 +} VkPipelineCreateFlagBits; +typedef enum VkPrimitiveTopology { + VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0, + VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1, + VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2, + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3, + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4, + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5, + VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6, + VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7, + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8, + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9, + VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10 +} VkPrimitiveTopology; +typedef enum VkQueryControlFlagBits { + VK_QUERY_CONTROL_PRECISE_BIT = 1 +} VkQueryControlFlagBits; +typedef enum VkQueryPipelineStatisticFlagBits { + VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 1, + VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 2, + VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 4, + VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 8, + VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 16, + VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 32, + VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 64, + VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 128, + VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 256, + VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 512, + VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 1024 +} VkQueryPipelineStatisticFlagBits; +typedef enum VkQueryResultFlagBits { + VK_QUERY_RESULT_64_BIT = 1, + VK_QUERY_RESULT_WAIT_BIT = 2, + VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 4, + VK_QUERY_RESULT_PARTIAL_BIT = 8 +} VkQueryResultFlagBits; +typedef enum VkQueryType { + VK_QUERY_TYPE_OCCLUSION = 0, + VK_QUERY_TYPE_PIPELINE_STATISTICS = 1, + VK_QUERY_TYPE_TIMESTAMP = 2 +} VkQueryType; +typedef enum VkQueueFlagBits { + VK_QUEUE_GRAPHICS_BIT = 1, + VK_QUEUE_COMPUTE_BIT = 2, + VK_QUEUE_TRANSFER_BIT = 4, + VK_QUEUE_SPARSE_BINDING_BIT = 8, + VK_QUEUE_PROTECTED_BIT = 16 +} VkQueueFlagBits; +typedef enum VkSubpassContents { + VK_SUBPASS_CONTENTS_INLINE = 0, + VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1 +} VkSubpassContents; +typedef enum VkResult { + VK_SUCCESS = 0, + VK_NOT_READY = 1, + VK_TIMEOUT = 2, + VK_EVENT_SET = 3, + VK_EVENT_RESET = 4, + VK_INCOMPLETE = 5, + VK_ERROR_OUT_OF_HOST_MEMORY = -1, + VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, + VK_ERROR_INITIALIZATION_FAILED = -3, + VK_ERROR_DEVICE_LOST = -4, + VK_ERROR_MEMORY_MAP_FAILED = -5, + VK_ERROR_LAYER_NOT_PRESENT = -6, + VK_ERROR_EXTENSION_NOT_PRESENT = -7, + VK_ERROR_FEATURE_NOT_PRESENT = -8, + VK_ERROR_INCOMPATIBLE_DRIVER = -9, + VK_ERROR_TOO_MANY_OBJECTS = -10, + VK_ERROR_FORMAT_NOT_SUPPORTED = -11, + VK_ERROR_FRAGMENTED_POOL = -12, + VK_ERROR_OUT_OF_POOL_MEMORY = -1000069000, + VK_ERROR_INVALID_EXTERNAL_HANDLE = -1000072003, + VK_ERROR_SURFACE_LOST_KHR = -1000000000, + VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, + VK_SUBOPTIMAL_KHR = 1000001003, + VK_ERROR_OUT_OF_DATE_KHR = -1000001004, + VK_ERROR_VALIDATION_FAILED_EXT = -1000011001 +} VkResult; +typedef enum VkShaderStageFlagBits { + VK_SHADER_STAGE_VERTEX_BIT = 1, + VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 2, + VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 4, + VK_SHADER_STAGE_GEOMETRY_BIT = 8, + VK_SHADER_STAGE_FRAGMENT_BIT = 16, + VK_SHADER_STAGE_COMPUTE_BIT = 32, + VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F, + VK_SHADER_STAGE_ALL = 0x7FFFFFFF +} VkShaderStageFlagBits; +typedef enum VkSparseMemoryBindFlagBits { + VK_SPARSE_MEMORY_BIND_METADATA_BIT = 1 +} VkSparseMemoryBindFlagBits; +typedef enum VkStencilFaceFlagBits { + VK_STENCIL_FACE_FRONT_BIT = 1, + VK_STENCIL_FACE_BACK_BIT = 2, + VK_STENCIL_FRONT_AND_BACK = 0x00000003 +} VkStencilFaceFlagBits; +typedef enum VkStencilOp { + VK_STENCIL_OP_KEEP = 0, + VK_STENCIL_OP_ZERO = 1, + VK_STENCIL_OP_REPLACE = 2, + VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3, + VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4, + VK_STENCIL_OP_INVERT = 5, + VK_STENCIL_OP_INCREMENT_AND_WRAP = 6, + VK_STENCIL_OP_DECREMENT_AND_WRAP = 7 +} VkStencilOp; +typedef enum VkStructureType { + VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, + VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1, + VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2, + VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3, + VK_STRUCTURE_TYPE_SUBMIT_INFO = 4, + VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5, + VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6, + VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7, + VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8, + VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9, + VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, + VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11, + VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12, + VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13, + VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14, + VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15, + VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16, + VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17, + VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18, + VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19, + VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20, + VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21, + VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22, + VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23, + VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24, + VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25, + VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26, + VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27, + VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28, + VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29, + VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30, + VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31, + VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32, + VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, + VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34, + VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35, + VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36, + VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37, + VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38, + VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39, + VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40, + VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41, + VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42, + VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, + VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44, + VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45, + VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46, + VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47, + VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES = 1000094000, + VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO = 1000157000, + VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO = 1000157001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES = 1000083000, + VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS = 1000127000, + VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO = 1000127001, + VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO = 1000060000, + VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO = 1000060003, + VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO = 1000060004, + VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO = 1000060005, + VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO = 1000060006, + VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO = 1000060013, + VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO = 1000060014, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES = 1000070000, + VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO = 1000070001, + VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2 = 1000146000, + VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2 = 1000146001, + VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2 = 1000146002, + VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2 = 1000146003, + VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2 = 1000146004, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 = 1000059000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2 = 1000059001, + VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2 = 1000059002, + VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2 = 1000059003, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2 = 1000059004, + VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2 = 1000059005, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2 = 1000059006, + VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2 = 1000059007, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2 = 1000059008, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES = 1000117000, + VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO = 1000117001, + VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO = 1000117002, + VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO = 1000117003, + VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO = 1000053000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES = 1000053001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES = 1000053002, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES = 1000120000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES, + VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO = 1000145000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES = 1000145001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES = 1000145002, + VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2 = 1000145003, + VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO = 1000156000, + VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO = 1000156001, + VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO = 1000156002, + VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO = 1000156003, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES = 1000156004, + VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES = 1000156005, + VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO = 1000085000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO = 1000071000, + VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES = 1000071001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO = 1000071002, + VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES = 1000071003, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES = 1000071004, + VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO = 1000072000, + VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO = 1000072001, + VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO = 1000072002, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO = 1000112000, + VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES = 1000112001, + VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO = 1000113000, + VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO = 1000077000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO = 1000076000, + VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES = 1000076001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES = 1000168000, + VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT = 1000168001, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES = 1000063000, + VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES, + VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000, + VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001, + VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHR = 1000060007, + VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR = 1000060008, + VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR = 1000060009, + VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHR = 1000060010, + VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHR = 1000060011, + VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR = 1000060012, + VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000, + VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT +} VkStructureType; +typedef enum VkSystemAllocationScope { + VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0, + VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1, + VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2, + VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3, + VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4 +} VkSystemAllocationScope; +typedef enum VkInternalAllocationType { + VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0 +} VkInternalAllocationType; +typedef enum VkSamplerAddressMode { + VK_SAMPLER_ADDRESS_MODE_REPEAT = 0, + VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1, + VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2, + VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3 +} VkSamplerAddressMode; +typedef enum VkFilter { + VK_FILTER_NEAREST = 0, + VK_FILTER_LINEAR = 1 +} VkFilter; +typedef enum VkSamplerMipmapMode { + VK_SAMPLER_MIPMAP_MODE_NEAREST = 0, + VK_SAMPLER_MIPMAP_MODE_LINEAR = 1 +} VkSamplerMipmapMode; +typedef enum VkVertexInputRate { + VK_VERTEX_INPUT_RATE_VERTEX = 0, + VK_VERTEX_INPUT_RATE_INSTANCE = 1 +} VkVertexInputRate; +typedef enum VkPipelineStageFlagBits { + VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 1, + VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 2, + VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 4, + VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 8, + VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 16, + VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 32, + VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 64, + VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 128, + VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 256, + VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 512, + VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 1024, + VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 2048, + VK_PIPELINE_STAGE_TRANSFER_BIT = 4096, + VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 8192, + VK_PIPELINE_STAGE_HOST_BIT = 16384, + VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 32768, + VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 65536 +} VkPipelineStageFlagBits; +typedef enum VkSparseImageFormatFlagBits { + VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 1, + VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 2, + VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 4 +} VkSparseImageFormatFlagBits; +typedef enum VkSampleCountFlagBits { + VK_SAMPLE_COUNT_1_BIT = 1, + VK_SAMPLE_COUNT_2_BIT = 2, + VK_SAMPLE_COUNT_4_BIT = 4, + VK_SAMPLE_COUNT_8_BIT = 8, + VK_SAMPLE_COUNT_16_BIT = 16, + VK_SAMPLE_COUNT_32_BIT = 32, + VK_SAMPLE_COUNT_64_BIT = 64 +} VkSampleCountFlagBits; +typedef enum VkAttachmentDescriptionFlagBits { + VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 1 +} VkAttachmentDescriptionFlagBits; +typedef enum VkDescriptorPoolCreateFlagBits { + VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 1 +} VkDescriptorPoolCreateFlagBits; +typedef enum VkDependencyFlagBits { + VK_DEPENDENCY_BY_REGION_BIT = 1, + VK_DEPENDENCY_DEVICE_GROUP_BIT = 4, + VK_DEPENDENCY_VIEW_LOCAL_BIT = 2 +} VkDependencyFlagBits; +typedef enum VkObjectType { + VK_OBJECT_TYPE_UNKNOWN = 0, + VK_OBJECT_TYPE_INSTANCE = 1, + VK_OBJECT_TYPE_PHYSICAL_DEVICE = 2, + VK_OBJECT_TYPE_DEVICE = 3, + VK_OBJECT_TYPE_QUEUE = 4, + VK_OBJECT_TYPE_SEMAPHORE = 5, + VK_OBJECT_TYPE_COMMAND_BUFFER = 6, + VK_OBJECT_TYPE_FENCE = 7, + VK_OBJECT_TYPE_DEVICE_MEMORY = 8, + VK_OBJECT_TYPE_BUFFER = 9, + VK_OBJECT_TYPE_IMAGE = 10, + VK_OBJECT_TYPE_EVENT = 11, + VK_OBJECT_TYPE_QUERY_POOL = 12, + VK_OBJECT_TYPE_BUFFER_VIEW = 13, + VK_OBJECT_TYPE_IMAGE_VIEW = 14, + VK_OBJECT_TYPE_SHADER_MODULE = 15, + VK_OBJECT_TYPE_PIPELINE_CACHE = 16, + VK_OBJECT_TYPE_PIPELINE_LAYOUT = 17, + VK_OBJECT_TYPE_RENDER_PASS = 18, + VK_OBJECT_TYPE_PIPELINE = 19, + VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT = 20, + VK_OBJECT_TYPE_SAMPLER = 21, + VK_OBJECT_TYPE_DESCRIPTOR_POOL = 22, + VK_OBJECT_TYPE_DESCRIPTOR_SET = 23, + VK_OBJECT_TYPE_FRAMEBUFFER = 24, + VK_OBJECT_TYPE_COMMAND_POOL = 25, + VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION = 1000156000, + VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE = 1000085000, + VK_OBJECT_TYPE_SURFACE_KHR = 1000000000, + VK_OBJECT_TYPE_SWAPCHAIN_KHR = 1000001000, + VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT = 1000011000 +} VkObjectType; +typedef enum VkDescriptorUpdateTemplateType { + VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET = 0 +} VkDescriptorUpdateTemplateType; + +typedef enum VkPointClippingBehavior { + VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES = 0, + VK_POINT_CLIPPING_BEHAVIOR_USER_CLIP_PLANES_ONLY = 1 +} VkPointClippingBehavior; +typedef enum VkColorSpaceKHR { + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0, + VK_COLORSPACE_SRGB_NONLINEAR_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR +} VkColorSpaceKHR; +typedef enum VkCompositeAlphaFlagBitsKHR { + VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 1, + VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 2, + VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 4, + VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 8 +} VkCompositeAlphaFlagBitsKHR; +typedef enum VkPresentModeKHR { + VK_PRESENT_MODE_IMMEDIATE_KHR = 0, + VK_PRESENT_MODE_MAILBOX_KHR = 1, + VK_PRESENT_MODE_FIFO_KHR = 2, + VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3 +} VkPresentModeKHR; +typedef enum VkSurfaceTransformFlagBitsKHR { + VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 1, + VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 2, + VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 4, + VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 8, + VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 16, + VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 32, + VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 64, + VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 128, + VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 256 +} VkSurfaceTransformFlagBitsKHR; +typedef enum VkDebugReportFlagBitsEXT { + VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 1, + VK_DEBUG_REPORT_WARNING_BIT_EXT = 2, + VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 4, + VK_DEBUG_REPORT_ERROR_BIT_EXT = 8, + VK_DEBUG_REPORT_DEBUG_BIT_EXT = 16 +} VkDebugReportFlagBitsEXT; +typedef enum VkDebugReportObjectTypeEXT { + VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0, + VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1, + VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2, + VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3, + VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4, + VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5, + VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6, + VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7, + VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8, + VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9, + VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10, + VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11, + VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12, + VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13, + VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14, + VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15, + VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16, + VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17, + VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18, + VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19, + VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20, + VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21, + VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22, + VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23, + VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24, + VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25, + VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26, + VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27, + VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT = 28, + VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT, + VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT = 29, + VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT = 30, + VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT = 31, + VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT = 32, + VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT_EXT = 33, + VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT_EXT, + VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_EXT = 1000156000, + VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_EXT = 1000085000 +} VkDebugReportObjectTypeEXT; +typedef enum VkExternalMemoryHandleTypeFlagBits { + VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT = 1, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT = 2, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT = 4, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT = 8, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT = 16, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT = 32, + VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT = 64 +} VkExternalMemoryHandleTypeFlagBits; +typedef enum VkExternalMemoryFeatureFlagBits { + VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT = 1, + VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT = 2, + VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT = 4 +} VkExternalMemoryFeatureFlagBits; +typedef enum VkExternalSemaphoreHandleTypeFlagBits { + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT = 1, + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT = 2, + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT = 4, + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT = 8, + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT = 16 +} VkExternalSemaphoreHandleTypeFlagBits; +typedef enum VkExternalSemaphoreFeatureFlagBits { + VK_EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE_BIT = 1, + VK_EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE_BIT = 2 +} VkExternalSemaphoreFeatureFlagBits; +typedef enum VkSemaphoreImportFlagBits { + VK_SEMAPHORE_IMPORT_TEMPORARY_BIT = 1 +} VkSemaphoreImportFlagBits; +typedef enum VkExternalFenceHandleTypeFlagBits { + VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT = 1, + VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT = 2, + VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT = 4, + VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT = 8 +} VkExternalFenceHandleTypeFlagBits; +typedef enum VkExternalFenceFeatureFlagBits { + VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT = 1, + VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT = 2 +} VkExternalFenceFeatureFlagBits; +typedef enum VkFenceImportFlagBits { + VK_FENCE_IMPORT_TEMPORARY_BIT = 1 +} VkFenceImportFlagBits; +typedef enum VkPeerMemoryFeatureFlagBits { + VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT = 1, + VK_PEER_MEMORY_FEATURE_COPY_DST_BIT = 2, + VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT = 4, + VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT = 8 +} VkPeerMemoryFeatureFlagBits; +typedef enum VkMemoryAllocateFlagBits { + VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT = 1 +} VkMemoryAllocateFlagBits; +typedef enum VkDeviceGroupPresentModeFlagBitsKHR { + VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR = 1, + VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHR = 2, + VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHR = 4, + VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHR = 8 +} VkDeviceGroupPresentModeFlagBitsKHR; +typedef enum VkSwapchainCreateFlagBitsKHR { + VK_SWAPCHAIN_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT_KHR = 1, + VK_SWAPCHAIN_CREATE_PROTECTED_BIT_KHR = 2 +} VkSwapchainCreateFlagBitsKHR; +typedef enum VkSubgroupFeatureFlagBits { + VK_SUBGROUP_FEATURE_BASIC_BIT = 1, + VK_SUBGROUP_FEATURE_VOTE_BIT = 2, + VK_SUBGROUP_FEATURE_ARITHMETIC_BIT = 4, + VK_SUBGROUP_FEATURE_BALLOT_BIT = 8, + VK_SUBGROUP_FEATURE_SHUFFLE_BIT = 16, + VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT = 32, + VK_SUBGROUP_FEATURE_CLUSTERED_BIT = 64, + VK_SUBGROUP_FEATURE_QUAD_BIT = 128 +} VkSubgroupFeatureFlagBits; +typedef enum VkTessellationDomainOrigin { + VK_TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT = 0, + VK_TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT = 1 +} VkTessellationDomainOrigin; +typedef enum VkSamplerYcbcrModelConversion { + VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY = 0, + VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY = 1, + VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709 = 2, + VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601 = 3, + VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020 = 4 +} VkSamplerYcbcrModelConversion; +typedef enum VkSamplerYcbcrRange { + VK_SAMPLER_YCBCR_RANGE_ITU_FULL = 0, + VK_SAMPLER_YCBCR_RANGE_ITU_NARROW = 1 +} VkSamplerYcbcrRange; +typedef enum VkChromaLocation { + VK_CHROMA_LOCATION_COSITED_EVEN = 0, + VK_CHROMA_LOCATION_MIDPOINT = 1 +} VkChromaLocation; +typedef enum VkVendorId { + VK_VENDOR_ID_VIV = 0x10001, + VK_VENDOR_ID_VSI = 0x10002, + VK_VENDOR_ID_KAZAN = 0x10003 +} VkVendorId; +typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)( + void* pUserData, + size_t size, + VkInternalAllocationType allocationType, + VkSystemAllocationScope allocationScope); +typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)( + void* pUserData, + size_t size, + VkInternalAllocationType allocationType, + VkSystemAllocationScope allocationScope); +typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)( + void* pUserData, + void* pOriginal, + size_t size, + size_t alignment, + VkSystemAllocationScope allocationScope); +typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)( + void* pUserData, + size_t size, + size_t alignment, + VkSystemAllocationScope allocationScope); +typedef void (VKAPI_PTR *PFN_vkFreeFunction)( + void* pUserData, + void* pMemory); +typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void); +typedef struct VkBaseOutStructure { + VkStructureType sType; + struct VkBaseOutStructure * pNext; +} VkBaseOutStructure; +typedef struct VkBaseInStructure { + VkStructureType sType; + const struct VkBaseInStructure * pNext; +} VkBaseInStructure; +typedef struct VkOffset2D { + int32_t x; + int32_t y; +} VkOffset2D; +typedef struct VkOffset3D { + int32_t x; + int32_t y; + int32_t z; +} VkOffset3D; +typedef struct VkExtent2D { + uint32_t width; + uint32_t height; +} VkExtent2D; +typedef struct VkExtent3D { + uint32_t width; + uint32_t height; + uint32_t depth; +} VkExtent3D; +typedef struct VkViewport { + float x; + float y; + float width; + float height; + float minDepth; + float maxDepth; +} VkViewport; +typedef struct VkRect2D { + VkOffset2D offset; + VkExtent2D extent; +} VkRect2D; +typedef struct VkClearRect { + VkRect2D rect; + uint32_t baseArrayLayer; + uint32_t layerCount; +} VkClearRect; +typedef struct VkComponentMapping { + VkComponentSwizzle r; + VkComponentSwizzle g; + VkComponentSwizzle b; + VkComponentSwizzle a; +} VkComponentMapping; +typedef struct VkExtensionProperties { + char extensionName [ VK_MAX_EXTENSION_NAME_SIZE ]; + uint32_t specVersion; +} VkExtensionProperties; +typedef struct VkLayerProperties { + char layerName [ VK_MAX_EXTENSION_NAME_SIZE ]; + uint32_t specVersion; + uint32_t implementationVersion; + char description [ VK_MAX_DESCRIPTION_SIZE ]; +} VkLayerProperties; +typedef struct VkApplicationInfo { + VkStructureType sType; + const void * pNext; + const char * pApplicationName; + uint32_t applicationVersion; + const char * pEngineName; + uint32_t engineVersion; + uint32_t apiVersion; +} VkApplicationInfo; +typedef struct VkAllocationCallbacks { + void * pUserData; + PFN_vkAllocationFunction pfnAllocation; + PFN_vkReallocationFunction pfnReallocation; + PFN_vkFreeFunction pfnFree; + PFN_vkInternalAllocationNotification pfnInternalAllocation; + PFN_vkInternalFreeNotification pfnInternalFree; +} VkAllocationCallbacks; +typedef struct VkDescriptorImageInfo { + VkSampler sampler; + VkImageView imageView; + VkImageLayout imageLayout; +} VkDescriptorImageInfo; +typedef struct VkCopyDescriptorSet { + VkStructureType sType; + const void * pNext; + VkDescriptorSet srcSet; + uint32_t srcBinding; + uint32_t srcArrayElement; + VkDescriptorSet dstSet; + uint32_t dstBinding; + uint32_t dstArrayElement; + uint32_t descriptorCount; +} VkCopyDescriptorSet; +typedef struct VkDescriptorPoolSize { + VkDescriptorType type; + uint32_t descriptorCount; +} VkDescriptorPoolSize; +typedef struct VkDescriptorSetAllocateInfo { + VkStructureType sType; + const void * pNext; + VkDescriptorPool descriptorPool; + uint32_t descriptorSetCount; + const VkDescriptorSetLayout * pSetLayouts; +} VkDescriptorSetAllocateInfo; +typedef struct VkSpecializationMapEntry { + uint32_t constantID; + uint32_t offset; + size_t size; +} VkSpecializationMapEntry; +typedef struct VkSpecializationInfo { + uint32_t mapEntryCount; + const VkSpecializationMapEntry * pMapEntries; + size_t dataSize; + const void * pData; +} VkSpecializationInfo; +typedef struct VkVertexInputBindingDescription { + uint32_t binding; + uint32_t stride; + VkVertexInputRate inputRate; +} VkVertexInputBindingDescription; +typedef struct VkVertexInputAttributeDescription { + uint32_t location; + uint32_t binding; + VkFormat format; + uint32_t offset; +} VkVertexInputAttributeDescription; +typedef struct VkStencilOpState { + VkStencilOp failOp; + VkStencilOp passOp; + VkStencilOp depthFailOp; + VkCompareOp compareOp; + uint32_t compareMask; + uint32_t writeMask; + uint32_t reference; +} VkStencilOpState; +typedef struct VkCommandBufferAllocateInfo { + VkStructureType sType; + const void * pNext; + VkCommandPool commandPool; + VkCommandBufferLevel level; + uint32_t commandBufferCount; +} VkCommandBufferAllocateInfo; +typedef union VkClearColorValue { + float float32 [4]; + int32_t int32 [4]; + uint32_t uint32 [4]; +} VkClearColorValue; +typedef struct VkClearDepthStencilValue { + float depth; + uint32_t stencil; +} VkClearDepthStencilValue; +typedef union VkClearValue { + VkClearColorValue color; + VkClearDepthStencilValue depthStencil; +} VkClearValue; +typedef struct VkAttachmentReference { + uint32_t attachment; + VkImageLayout layout; +} VkAttachmentReference; +typedef struct VkDrawIndirectCommand { + uint32_t vertexCount; + uint32_t instanceCount; + uint32_t firstVertex; + uint32_t firstInstance; +} VkDrawIndirectCommand; +typedef struct VkDrawIndexedIndirectCommand { + uint32_t indexCount; + uint32_t instanceCount; + uint32_t firstIndex; + int32_t vertexOffset; + uint32_t firstInstance; +} VkDrawIndexedIndirectCommand; +typedef struct VkDispatchIndirectCommand { + uint32_t x; + uint32_t y; + uint32_t z; +} VkDispatchIndirectCommand; +typedef struct VkSurfaceFormatKHR { + VkFormat format; + VkColorSpaceKHR colorSpace; +} VkSurfaceFormatKHR; +typedef struct VkPresentInfoKHR { + VkStructureType sType; + const void * pNext; + uint32_t waitSemaphoreCount; + const VkSemaphore * pWaitSemaphores; + uint32_t swapchainCount; + const VkSwapchainKHR * pSwapchains; + const uint32_t * pImageIndices; + VkResult * pResults; +} VkPresentInfoKHR; +typedef struct VkPhysicalDeviceExternalImageFormatInfo { + VkStructureType sType; + const void * pNext; + VkExternalMemoryHandleTypeFlagBits handleType; +} VkPhysicalDeviceExternalImageFormatInfo; +typedef struct VkPhysicalDeviceExternalSemaphoreInfo { + VkStructureType sType; + const void * pNext; + VkExternalSemaphoreHandleTypeFlagBits handleType; +} VkPhysicalDeviceExternalSemaphoreInfo; +typedef struct VkPhysicalDeviceExternalFenceInfo { + VkStructureType sType; + const void * pNext; + VkExternalFenceHandleTypeFlagBits handleType; +} VkPhysicalDeviceExternalFenceInfo; +typedef struct VkPhysicalDeviceMultiviewProperties { + VkStructureType sType; + void * pNext; + uint32_t maxMultiviewViewCount; + uint32_t maxMultiviewInstanceIndex; +} VkPhysicalDeviceMultiviewProperties; +typedef struct VkRenderPassMultiviewCreateInfo { + VkStructureType sType; + const void * pNext; + uint32_t subpassCount; + const uint32_t * pViewMasks; + uint32_t dependencyCount; + const int32_t * pViewOffsets; + uint32_t correlationMaskCount; + const uint32_t * pCorrelationMasks; +} VkRenderPassMultiviewCreateInfo; +typedef struct VkBindBufferMemoryDeviceGroupInfo { + VkStructureType sType; + const void * pNext; + uint32_t deviceIndexCount; + const uint32_t * pDeviceIndices; +} VkBindBufferMemoryDeviceGroupInfo; +typedef struct VkBindImageMemoryDeviceGroupInfo { + VkStructureType sType; + const void * pNext; + uint32_t deviceIndexCount; + const uint32_t * pDeviceIndices; + uint32_t splitInstanceBindRegionCount; + const VkRect2D * pSplitInstanceBindRegions; +} VkBindImageMemoryDeviceGroupInfo; +typedef struct VkDeviceGroupRenderPassBeginInfo { + VkStructureType sType; + const void * pNext; + uint32_t deviceMask; + uint32_t deviceRenderAreaCount; + const VkRect2D * pDeviceRenderAreas; +} VkDeviceGroupRenderPassBeginInfo; +typedef struct VkDeviceGroupCommandBufferBeginInfo { + VkStructureType sType; + const void * pNext; + uint32_t deviceMask; +} VkDeviceGroupCommandBufferBeginInfo; +typedef struct VkDeviceGroupSubmitInfo { + VkStructureType sType; + const void * pNext; + uint32_t waitSemaphoreCount; + const uint32_t * pWaitSemaphoreDeviceIndices; + uint32_t commandBufferCount; + const uint32_t * pCommandBufferDeviceMasks; + uint32_t signalSemaphoreCount; + const uint32_t * pSignalSemaphoreDeviceIndices; +} VkDeviceGroupSubmitInfo; +typedef struct VkDeviceGroupBindSparseInfo { + VkStructureType sType; + const void * pNext; + uint32_t resourceDeviceIndex; + uint32_t memoryDeviceIndex; +} VkDeviceGroupBindSparseInfo; +typedef struct VkImageSwapchainCreateInfoKHR { + VkStructureType sType; + const void * pNext; + VkSwapchainKHR swapchain; +} VkImageSwapchainCreateInfoKHR; +typedef struct VkBindImageMemorySwapchainInfoKHR { + VkStructureType sType; + const void * pNext; + VkSwapchainKHR swapchain; + uint32_t imageIndex; +} VkBindImageMemorySwapchainInfoKHR; +typedef struct VkAcquireNextImageInfoKHR { + VkStructureType sType; + const void * pNext; + VkSwapchainKHR swapchain; + uint64_t timeout; + VkSemaphore semaphore; + VkFence fence; + uint32_t deviceMask; +} VkAcquireNextImageInfoKHR; +typedef struct VkDeviceGroupPresentInfoKHR { + VkStructureType sType; + const void * pNext; + uint32_t swapchainCount; + const uint32_t * pDeviceMasks; + VkDeviceGroupPresentModeFlagBitsKHR mode; +} VkDeviceGroupPresentInfoKHR; +typedef struct VkDeviceGroupDeviceCreateInfo { + VkStructureType sType; + const void * pNext; + uint32_t physicalDeviceCount; + const VkPhysicalDevice * pPhysicalDevices; +} VkDeviceGroupDeviceCreateInfo; +typedef struct VkDescriptorUpdateTemplateEntry { + uint32_t dstBinding; + uint32_t dstArrayElement; + uint32_t descriptorCount; + VkDescriptorType descriptorType; + size_t offset; + size_t stride; +} VkDescriptorUpdateTemplateEntry; +typedef struct VkBufferMemoryRequirementsInfo2 { + VkStructureType sType; + const void * pNext; + VkBuffer buffer; +} VkBufferMemoryRequirementsInfo2; +typedef struct VkImageMemoryRequirementsInfo2 { + VkStructureType sType; + const void * pNext; + VkImage image; +} VkImageMemoryRequirementsInfo2; +typedef struct VkImageSparseMemoryRequirementsInfo2 { + VkStructureType sType; + const void * pNext; + VkImage image; +} VkImageSparseMemoryRequirementsInfo2; +typedef struct VkPhysicalDevicePointClippingProperties { + VkStructureType sType; + void * pNext; + VkPointClippingBehavior pointClippingBehavior; +} VkPhysicalDevicePointClippingProperties; +typedef struct VkMemoryDedicatedAllocateInfo { + VkStructureType sType; + const void * pNext; + VkImage image; + VkBuffer buffer; +} VkMemoryDedicatedAllocateInfo; +typedef struct VkPipelineTessellationDomainOriginStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkTessellationDomainOrigin domainOrigin; +} VkPipelineTessellationDomainOriginStateCreateInfo; +typedef struct VkSamplerYcbcrConversionInfo { + VkStructureType sType; + const void * pNext; + VkSamplerYcbcrConversion conversion; +} VkSamplerYcbcrConversionInfo; +typedef struct VkBindImagePlaneMemoryInfo { + VkStructureType sType; + const void * pNext; + VkImageAspectFlagBits planeAspect; +} VkBindImagePlaneMemoryInfo; +typedef struct VkImagePlaneMemoryRequirementsInfo { + VkStructureType sType; + const void * pNext; + VkImageAspectFlagBits planeAspect; +} VkImagePlaneMemoryRequirementsInfo; +typedef struct VkSamplerYcbcrConversionImageFormatProperties { + VkStructureType sType; + void * pNext; + uint32_t combinedImageSamplerDescriptorCount; +} VkSamplerYcbcrConversionImageFormatProperties; +typedef uint32_t VkSampleMask; +typedef uint32_t VkBool32; +typedef uint32_t VkFlags; +typedef uint64_t VkDeviceSize; +typedef VkFlags VkFramebufferCreateFlags; +typedef VkFlags VkQueryPoolCreateFlags; +typedef VkFlags VkRenderPassCreateFlags; +typedef VkFlags VkSamplerCreateFlags; +typedef VkFlags VkPipelineLayoutCreateFlags; +typedef VkFlags VkPipelineCacheCreateFlags; +typedef VkFlags VkPipelineDepthStencilStateCreateFlags; +typedef VkFlags VkPipelineDynamicStateCreateFlags; +typedef VkFlags VkPipelineColorBlendStateCreateFlags; +typedef VkFlags VkPipelineMultisampleStateCreateFlags; +typedef VkFlags VkPipelineRasterizationStateCreateFlags; +typedef VkFlags VkPipelineViewportStateCreateFlags; +typedef VkFlags VkPipelineTessellationStateCreateFlags; +typedef VkFlags VkPipelineInputAssemblyStateCreateFlags; +typedef VkFlags VkPipelineVertexInputStateCreateFlags; +typedef VkFlags VkPipelineShaderStageCreateFlags; +typedef VkFlags VkDescriptorSetLayoutCreateFlags; +typedef VkFlags VkBufferViewCreateFlags; +typedef VkFlags VkInstanceCreateFlags; +typedef VkFlags VkDeviceCreateFlags; +typedef VkFlags VkDeviceQueueCreateFlags; +typedef VkFlags VkQueueFlags; +typedef VkFlags VkMemoryPropertyFlags; +typedef VkFlags VkMemoryHeapFlags; +typedef VkFlags VkAccessFlags; +typedef VkFlags VkBufferUsageFlags; +typedef VkFlags VkBufferCreateFlags; +typedef VkFlags VkShaderStageFlags; +typedef VkFlags VkImageUsageFlags; +typedef VkFlags VkImageCreateFlags; +typedef VkFlags VkImageViewCreateFlags; +typedef VkFlags VkPipelineCreateFlags; +typedef VkFlags VkColorComponentFlags; +typedef VkFlags VkFenceCreateFlags; +typedef VkFlags VkSemaphoreCreateFlags; +typedef VkFlags VkFormatFeatureFlags; +typedef VkFlags VkQueryControlFlags; +typedef VkFlags VkQueryResultFlags; +typedef VkFlags VkShaderModuleCreateFlags; +typedef VkFlags VkEventCreateFlags; +typedef VkFlags VkCommandPoolCreateFlags; +typedef VkFlags VkCommandPoolResetFlags; +typedef VkFlags VkCommandBufferResetFlags; +typedef VkFlags VkCommandBufferUsageFlags; +typedef VkFlags VkQueryPipelineStatisticFlags; +typedef VkFlags VkMemoryMapFlags; +typedef VkFlags VkImageAspectFlags; +typedef VkFlags VkSparseMemoryBindFlags; +typedef VkFlags VkSparseImageFormatFlags; +typedef VkFlags VkSubpassDescriptionFlags; +typedef VkFlags VkPipelineStageFlags; +typedef VkFlags VkSampleCountFlags; +typedef VkFlags VkAttachmentDescriptionFlags; +typedef VkFlags VkStencilFaceFlags; +typedef VkFlags VkCullModeFlags; +typedef VkFlags VkDescriptorPoolCreateFlags; +typedef VkFlags VkDescriptorPoolResetFlags; +typedef VkFlags VkDependencyFlags; +typedef VkFlags VkSubgroupFeatureFlags; +typedef VkFlags VkDescriptorUpdateTemplateCreateFlags; +typedef VkFlags VkCompositeAlphaFlagsKHR; +typedef VkFlags VkSurfaceTransformFlagsKHR; +typedef VkFlags VkSwapchainCreateFlagsKHR; +typedef VkFlags VkPeerMemoryFeatureFlags; +typedef VkFlags VkMemoryAllocateFlags; +typedef VkFlags VkDeviceGroupPresentModeFlagsKHR; +typedef VkFlags VkDebugReportFlagsEXT; +typedef VkFlags VkCommandPoolTrimFlags; +typedef VkFlags VkExternalMemoryHandleTypeFlags; +typedef VkFlags VkExternalMemoryFeatureFlags; +typedef VkFlags VkExternalSemaphoreHandleTypeFlags; +typedef VkFlags VkExternalSemaphoreFeatureFlags; +typedef VkFlags VkSemaphoreImportFlags; +typedef VkFlags VkExternalFenceHandleTypeFlags; +typedef VkFlags VkExternalFenceFeatureFlags; +typedef VkFlags VkFenceImportFlags; +typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)( + VkDebugReportFlagsEXT flags, + VkDebugReportObjectTypeEXT objectType, + uint64_t object, + size_t location, + int32_t messageCode, + const char* pLayerPrefix, + const char* pMessage, + void* pUserData); +typedef struct VkDeviceQueueCreateInfo { + VkStructureType sType; + const void * pNext; + VkDeviceQueueCreateFlags flags; + uint32_t queueFamilyIndex; + uint32_t queueCount; + const float * pQueuePriorities; +} VkDeviceQueueCreateInfo; +typedef struct VkInstanceCreateInfo { + VkStructureType sType; + const void * pNext; + VkInstanceCreateFlags flags; + const VkApplicationInfo * pApplicationInfo; + uint32_t enabledLayerCount; + const char * const* ppEnabledLayerNames; + uint32_t enabledExtensionCount; + const char * const* ppEnabledExtensionNames; +} VkInstanceCreateInfo; +typedef struct VkQueueFamilyProperties { + VkQueueFlags queueFlags; + uint32_t queueCount; + uint32_t timestampValidBits; + VkExtent3D minImageTransferGranularity; +} VkQueueFamilyProperties; +typedef struct VkMemoryAllocateInfo { + VkStructureType sType; + const void * pNext; + VkDeviceSize allocationSize; + uint32_t memoryTypeIndex; +} VkMemoryAllocateInfo; +typedef struct VkMemoryRequirements { + VkDeviceSize size; + VkDeviceSize alignment; + uint32_t memoryTypeBits; +} VkMemoryRequirements; +typedef struct VkSparseImageFormatProperties { + VkImageAspectFlags aspectMask; + VkExtent3D imageGranularity; + VkSparseImageFormatFlags flags; +} VkSparseImageFormatProperties; +typedef struct VkSparseImageMemoryRequirements { + VkSparseImageFormatProperties formatProperties; + uint32_t imageMipTailFirstLod; + VkDeviceSize imageMipTailSize; + VkDeviceSize imageMipTailOffset; + VkDeviceSize imageMipTailStride; +} VkSparseImageMemoryRequirements; +typedef struct VkMemoryType { + VkMemoryPropertyFlags propertyFlags; + uint32_t heapIndex; +} VkMemoryType; +typedef struct VkMemoryHeap { + VkDeviceSize size; + VkMemoryHeapFlags flags; +} VkMemoryHeap; +typedef struct VkMappedMemoryRange { + VkStructureType sType; + const void * pNext; + VkDeviceMemory memory; + VkDeviceSize offset; + VkDeviceSize size; +} VkMappedMemoryRange; +typedef struct VkFormatProperties { + VkFormatFeatureFlags linearTilingFeatures; + VkFormatFeatureFlags optimalTilingFeatures; + VkFormatFeatureFlags bufferFeatures; +} VkFormatProperties; +typedef struct VkImageFormatProperties { + VkExtent3D maxExtent; + uint32_t maxMipLevels; + uint32_t maxArrayLayers; + VkSampleCountFlags sampleCounts; + VkDeviceSize maxResourceSize; +} VkImageFormatProperties; +typedef struct VkDescriptorBufferInfo { + VkBuffer buffer; + VkDeviceSize offset; + VkDeviceSize range; +} VkDescriptorBufferInfo; +typedef struct VkWriteDescriptorSet { + VkStructureType sType; + const void * pNext; + VkDescriptorSet dstSet; + uint32_t dstBinding; + uint32_t dstArrayElement; + uint32_t descriptorCount; + VkDescriptorType descriptorType; + const VkDescriptorImageInfo * pImageInfo; + const VkDescriptorBufferInfo * pBufferInfo; + const VkBufferView * pTexelBufferView; +} VkWriteDescriptorSet; +typedef struct VkBufferCreateInfo { + VkStructureType sType; + const void * pNext; + VkBufferCreateFlags flags; + VkDeviceSize size; + VkBufferUsageFlags usage; + VkSharingMode sharingMode; + uint32_t queueFamilyIndexCount; + const uint32_t * pQueueFamilyIndices; +} VkBufferCreateInfo; +typedef struct VkBufferViewCreateInfo { + VkStructureType sType; + const void * pNext; + VkBufferViewCreateFlags flags; + VkBuffer buffer; + VkFormat format; + VkDeviceSize offset; + VkDeviceSize range; +} VkBufferViewCreateInfo; +typedef struct VkImageSubresource { + VkImageAspectFlags aspectMask; + uint32_t mipLevel; + uint32_t arrayLayer; +} VkImageSubresource; +typedef struct VkImageSubresourceLayers { + VkImageAspectFlags aspectMask; + uint32_t mipLevel; + uint32_t baseArrayLayer; + uint32_t layerCount; +} VkImageSubresourceLayers; +typedef struct VkImageSubresourceRange { + VkImageAspectFlags aspectMask; + uint32_t baseMipLevel; + uint32_t levelCount; + uint32_t baseArrayLayer; + uint32_t layerCount; +} VkImageSubresourceRange; +typedef struct VkMemoryBarrier { + VkStructureType sType; + const void * pNext; + VkAccessFlags srcAccessMask; + VkAccessFlags dstAccessMask; +} VkMemoryBarrier; +typedef struct VkBufferMemoryBarrier { + VkStructureType sType; + const void * pNext; + VkAccessFlags srcAccessMask; + VkAccessFlags dstAccessMask; + uint32_t srcQueueFamilyIndex; + uint32_t dstQueueFamilyIndex; + VkBuffer buffer; + VkDeviceSize offset; + VkDeviceSize size; +} VkBufferMemoryBarrier; +typedef struct VkImageMemoryBarrier { + VkStructureType sType; + const void * pNext; + VkAccessFlags srcAccessMask; + VkAccessFlags dstAccessMask; + VkImageLayout oldLayout; + VkImageLayout newLayout; + uint32_t srcQueueFamilyIndex; + uint32_t dstQueueFamilyIndex; + VkImage image; + VkImageSubresourceRange subresourceRange; +} VkImageMemoryBarrier; +typedef struct VkImageCreateInfo { + VkStructureType sType; + const void * pNext; + VkImageCreateFlags flags; + VkImageType imageType; + VkFormat format; + VkExtent3D extent; + uint32_t mipLevels; + uint32_t arrayLayers; + VkSampleCountFlagBits samples; + VkImageTiling tiling; + VkImageUsageFlags usage; + VkSharingMode sharingMode; + uint32_t queueFamilyIndexCount; + const uint32_t * pQueueFamilyIndices; + VkImageLayout initialLayout; +} VkImageCreateInfo; +typedef struct VkSubresourceLayout { + VkDeviceSize offset; + VkDeviceSize size; + VkDeviceSize rowPitch; + VkDeviceSize arrayPitch; + VkDeviceSize depthPitch; +} VkSubresourceLayout; +typedef struct VkImageViewCreateInfo { + VkStructureType sType; + const void * pNext; + VkImageViewCreateFlags flags; + VkImage image; + VkImageViewType viewType; + VkFormat format; + VkComponentMapping components; + VkImageSubresourceRange subresourceRange; +} VkImageViewCreateInfo; +typedef struct VkBufferCopy { + VkDeviceSize srcOffset; + VkDeviceSize dstOffset; + VkDeviceSize size; +} VkBufferCopy; +typedef struct VkSparseMemoryBind { + VkDeviceSize resourceOffset; + VkDeviceSize size; + VkDeviceMemory memory; + VkDeviceSize memoryOffset; + VkSparseMemoryBindFlags flags; +} VkSparseMemoryBind; +typedef struct VkSparseImageMemoryBind { + VkImageSubresource subresource; + VkOffset3D offset; + VkExtent3D extent; + VkDeviceMemory memory; + VkDeviceSize memoryOffset; + VkSparseMemoryBindFlags flags; +} VkSparseImageMemoryBind; +typedef struct VkSparseBufferMemoryBindInfo { + VkBuffer buffer; + uint32_t bindCount; + const VkSparseMemoryBind * pBinds; +} VkSparseBufferMemoryBindInfo; +typedef struct VkSparseImageOpaqueMemoryBindInfo { + VkImage image; + uint32_t bindCount; + const VkSparseMemoryBind * pBinds; +} VkSparseImageOpaqueMemoryBindInfo; +typedef struct VkSparseImageMemoryBindInfo { + VkImage image; + uint32_t bindCount; + const VkSparseImageMemoryBind * pBinds; +} VkSparseImageMemoryBindInfo; +typedef struct VkBindSparseInfo { + VkStructureType sType; + const void * pNext; + uint32_t waitSemaphoreCount; + const VkSemaphore * pWaitSemaphores; + uint32_t bufferBindCount; + const VkSparseBufferMemoryBindInfo * pBufferBinds; + uint32_t imageOpaqueBindCount; + const VkSparseImageOpaqueMemoryBindInfo * pImageOpaqueBinds; + uint32_t imageBindCount; + const VkSparseImageMemoryBindInfo * pImageBinds; + uint32_t signalSemaphoreCount; + const VkSemaphore * pSignalSemaphores; +} VkBindSparseInfo; +typedef struct VkImageCopy { + VkImageSubresourceLayers srcSubresource; + VkOffset3D srcOffset; + VkImageSubresourceLayers dstSubresource; + VkOffset3D dstOffset; + VkExtent3D extent; +} VkImageCopy; +typedef struct VkImageBlit { + VkImageSubresourceLayers srcSubresource; + VkOffset3D srcOffsets [2]; + VkImageSubresourceLayers dstSubresource; + VkOffset3D dstOffsets [2]; +} VkImageBlit; +typedef struct VkBufferImageCopy { + VkDeviceSize bufferOffset; + uint32_t bufferRowLength; + uint32_t bufferImageHeight; + VkImageSubresourceLayers imageSubresource; + VkOffset3D imageOffset; + VkExtent3D imageExtent; +} VkBufferImageCopy; +typedef struct VkImageResolve { + VkImageSubresourceLayers srcSubresource; + VkOffset3D srcOffset; + VkImageSubresourceLayers dstSubresource; + VkOffset3D dstOffset; + VkExtent3D extent; +} VkImageResolve; +typedef struct VkShaderModuleCreateInfo { + VkStructureType sType; + const void * pNext; + VkShaderModuleCreateFlags flags; + size_t codeSize; + const uint32_t * pCode; +} VkShaderModuleCreateInfo; +typedef struct VkDescriptorSetLayoutBinding { + uint32_t binding; + VkDescriptorType descriptorType; + uint32_t descriptorCount; + VkShaderStageFlags stageFlags; + const VkSampler * pImmutableSamplers; +} VkDescriptorSetLayoutBinding; +typedef struct VkDescriptorSetLayoutCreateInfo { + VkStructureType sType; + const void * pNext; + VkDescriptorSetLayoutCreateFlags flags; + uint32_t bindingCount; + const VkDescriptorSetLayoutBinding * pBindings; +} VkDescriptorSetLayoutCreateInfo; +typedef struct VkDescriptorPoolCreateInfo { + VkStructureType sType; + const void * pNext; + VkDescriptorPoolCreateFlags flags; + uint32_t maxSets; + uint32_t poolSizeCount; + const VkDescriptorPoolSize * pPoolSizes; +} VkDescriptorPoolCreateInfo; +typedef struct VkPipelineShaderStageCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineShaderStageCreateFlags flags; + VkShaderStageFlagBits stage; + VkShaderModule module; + const char * pName; + const VkSpecializationInfo * pSpecializationInfo; +} VkPipelineShaderStageCreateInfo; +typedef struct VkComputePipelineCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineCreateFlags flags; + VkPipelineShaderStageCreateInfo stage; + VkPipelineLayout layout; + VkPipeline basePipelineHandle; + int32_t basePipelineIndex; +} VkComputePipelineCreateInfo; +typedef struct VkPipelineVertexInputStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineVertexInputStateCreateFlags flags; + uint32_t vertexBindingDescriptionCount; + const VkVertexInputBindingDescription * pVertexBindingDescriptions; + uint32_t vertexAttributeDescriptionCount; + const VkVertexInputAttributeDescription * pVertexAttributeDescriptions; +} VkPipelineVertexInputStateCreateInfo; +typedef struct VkPipelineInputAssemblyStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineInputAssemblyStateCreateFlags flags; + VkPrimitiveTopology topology; + VkBool32 primitiveRestartEnable; +} VkPipelineInputAssemblyStateCreateInfo; +typedef struct VkPipelineTessellationStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineTessellationStateCreateFlags flags; + uint32_t patchControlPoints; +} VkPipelineTessellationStateCreateInfo; +typedef struct VkPipelineViewportStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineViewportStateCreateFlags flags; + uint32_t viewportCount; + const VkViewport * pViewports; + uint32_t scissorCount; + const VkRect2D * pScissors; +} VkPipelineViewportStateCreateInfo; +typedef struct VkPipelineRasterizationStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineRasterizationStateCreateFlags flags; + VkBool32 depthClampEnable; + VkBool32 rasterizerDiscardEnable; + VkPolygonMode polygonMode; + VkCullModeFlags cullMode; + VkFrontFace frontFace; + VkBool32 depthBiasEnable; + float depthBiasConstantFactor; + float depthBiasClamp; + float depthBiasSlopeFactor; + float lineWidth; +} VkPipelineRasterizationStateCreateInfo; +typedef struct VkPipelineMultisampleStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineMultisampleStateCreateFlags flags; + VkSampleCountFlagBits rasterizationSamples; + VkBool32 sampleShadingEnable; + float minSampleShading; + const VkSampleMask * pSampleMask; + VkBool32 alphaToCoverageEnable; + VkBool32 alphaToOneEnable; +} VkPipelineMultisampleStateCreateInfo; +typedef struct VkPipelineColorBlendAttachmentState { + VkBool32 blendEnable; + VkBlendFactor srcColorBlendFactor; + VkBlendFactor dstColorBlendFactor; + VkBlendOp colorBlendOp; + VkBlendFactor srcAlphaBlendFactor; + VkBlendFactor dstAlphaBlendFactor; + VkBlendOp alphaBlendOp; + VkColorComponentFlags colorWriteMask; +} VkPipelineColorBlendAttachmentState; +typedef struct VkPipelineColorBlendStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineColorBlendStateCreateFlags flags; + VkBool32 logicOpEnable; + VkLogicOp logicOp; + uint32_t attachmentCount; + const VkPipelineColorBlendAttachmentState * pAttachments; + float blendConstants [4]; +} VkPipelineColorBlendStateCreateInfo; +typedef struct VkPipelineDynamicStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineDynamicStateCreateFlags flags; + uint32_t dynamicStateCount; + const VkDynamicState * pDynamicStates; +} VkPipelineDynamicStateCreateInfo; +typedef struct VkPipelineDepthStencilStateCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineDepthStencilStateCreateFlags flags; + VkBool32 depthTestEnable; + VkBool32 depthWriteEnable; + VkCompareOp depthCompareOp; + VkBool32 depthBoundsTestEnable; + VkBool32 stencilTestEnable; + VkStencilOpState front; + VkStencilOpState back; + float minDepthBounds; + float maxDepthBounds; +} VkPipelineDepthStencilStateCreateInfo; +typedef struct VkGraphicsPipelineCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineCreateFlags flags; + uint32_t stageCount; + const VkPipelineShaderStageCreateInfo * pStages; + const VkPipelineVertexInputStateCreateInfo * pVertexInputState; + const VkPipelineInputAssemblyStateCreateInfo * pInputAssemblyState; + const VkPipelineTessellationStateCreateInfo * pTessellationState; + const VkPipelineViewportStateCreateInfo * pViewportState; + const VkPipelineRasterizationStateCreateInfo * pRasterizationState; + const VkPipelineMultisampleStateCreateInfo * pMultisampleState; + const VkPipelineDepthStencilStateCreateInfo * pDepthStencilState; + const VkPipelineColorBlendStateCreateInfo * pColorBlendState; + const VkPipelineDynamicStateCreateInfo * pDynamicState; + VkPipelineLayout layout; + VkRenderPass renderPass; + uint32_t subpass; + VkPipeline basePipelineHandle; + int32_t basePipelineIndex; +} VkGraphicsPipelineCreateInfo; +typedef struct VkPipelineCacheCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineCacheCreateFlags flags; + size_t initialDataSize; + const void * pInitialData; +} VkPipelineCacheCreateInfo; +typedef struct VkPushConstantRange { + VkShaderStageFlags stageFlags; + uint32_t offset; + uint32_t size; +} VkPushConstantRange; +typedef struct VkPipelineLayoutCreateInfo { + VkStructureType sType; + const void * pNext; + VkPipelineLayoutCreateFlags flags; + uint32_t setLayoutCount; + const VkDescriptorSetLayout * pSetLayouts; + uint32_t pushConstantRangeCount; + const VkPushConstantRange * pPushConstantRanges; +} VkPipelineLayoutCreateInfo; +typedef struct VkSamplerCreateInfo { + VkStructureType sType; + const void * pNext; + VkSamplerCreateFlags flags; + VkFilter magFilter; + VkFilter minFilter; + VkSamplerMipmapMode mipmapMode; + VkSamplerAddressMode addressModeU; + VkSamplerAddressMode addressModeV; + VkSamplerAddressMode addressModeW; + float mipLodBias; + VkBool32 anisotropyEnable; + float maxAnisotropy; + VkBool32 compareEnable; + VkCompareOp compareOp; + float minLod; + float maxLod; + VkBorderColor borderColor; + VkBool32 unnormalizedCoordinates; +} VkSamplerCreateInfo; +typedef struct VkCommandPoolCreateInfo { + VkStructureType sType; + const void * pNext; + VkCommandPoolCreateFlags flags; + uint32_t queueFamilyIndex; +} VkCommandPoolCreateInfo; +typedef struct VkCommandBufferInheritanceInfo { + VkStructureType sType; + const void * pNext; + VkRenderPass renderPass; + uint32_t subpass; + VkFramebuffer framebuffer; + VkBool32 occlusionQueryEnable; + VkQueryControlFlags queryFlags; + VkQueryPipelineStatisticFlags pipelineStatistics; +} VkCommandBufferInheritanceInfo; +typedef struct VkCommandBufferBeginInfo { + VkStructureType sType; + const void * pNext; + VkCommandBufferUsageFlags flags; + const VkCommandBufferInheritanceInfo * pInheritanceInfo; +} VkCommandBufferBeginInfo; +typedef struct VkRenderPassBeginInfo { + VkStructureType sType; + const void * pNext; + VkRenderPass renderPass; + VkFramebuffer framebuffer; + VkRect2D renderArea; + uint32_t clearValueCount; + const VkClearValue * pClearValues; +} VkRenderPassBeginInfo; +typedef struct VkClearAttachment { + VkImageAspectFlags aspectMask; + uint32_t colorAttachment; + VkClearValue clearValue; +} VkClearAttachment; +typedef struct VkAttachmentDescription { + VkAttachmentDescriptionFlags flags; + VkFormat format; + VkSampleCountFlagBits samples; + VkAttachmentLoadOp loadOp; + VkAttachmentStoreOp storeOp; + VkAttachmentLoadOp stencilLoadOp; + VkAttachmentStoreOp stencilStoreOp; + VkImageLayout initialLayout; + VkImageLayout finalLayout; +} VkAttachmentDescription; +typedef struct VkSubpassDescription { + VkSubpassDescriptionFlags flags; + VkPipelineBindPoint pipelineBindPoint; + uint32_t inputAttachmentCount; + const VkAttachmentReference * pInputAttachments; + uint32_t colorAttachmentCount; + const VkAttachmentReference * pColorAttachments; + const VkAttachmentReference * pResolveAttachments; + const VkAttachmentReference * pDepthStencilAttachment; + uint32_t preserveAttachmentCount; + const uint32_t * pPreserveAttachments; +} VkSubpassDescription; +typedef struct VkSubpassDependency { + uint32_t srcSubpass; + uint32_t dstSubpass; + VkPipelineStageFlags srcStageMask; + VkPipelineStageFlags dstStageMask; + VkAccessFlags srcAccessMask; + VkAccessFlags dstAccessMask; + VkDependencyFlags dependencyFlags; +} VkSubpassDependency; +typedef struct VkRenderPassCreateInfo { + VkStructureType sType; + const void * pNext; + VkRenderPassCreateFlags flags; + uint32_t attachmentCount; + const VkAttachmentDescription * pAttachments; + uint32_t subpassCount; + const VkSubpassDescription * pSubpasses; + uint32_t dependencyCount; + const VkSubpassDependency * pDependencies; +} VkRenderPassCreateInfo; +typedef struct VkEventCreateInfo { + VkStructureType sType; + const void * pNext; + VkEventCreateFlags flags; +} VkEventCreateInfo; +typedef struct VkFenceCreateInfo { + VkStructureType sType; + const void * pNext; + VkFenceCreateFlags flags; +} VkFenceCreateInfo; +typedef struct VkPhysicalDeviceFeatures { + VkBool32 robustBufferAccess; + VkBool32 fullDrawIndexUint32; + VkBool32 imageCubeArray; + VkBool32 independentBlend; + VkBool32 geometryShader; + VkBool32 tessellationShader; + VkBool32 sampleRateShading; + VkBool32 dualSrcBlend; + VkBool32 logicOp; + VkBool32 multiDrawIndirect; + VkBool32 drawIndirectFirstInstance; + VkBool32 depthClamp; + VkBool32 depthBiasClamp; + VkBool32 fillModeNonSolid; + VkBool32 depthBounds; + VkBool32 wideLines; + VkBool32 largePoints; + VkBool32 alphaToOne; + VkBool32 multiViewport; + VkBool32 samplerAnisotropy; + VkBool32 textureCompressionETC2; + VkBool32 textureCompressionASTC_LDR; + VkBool32 textureCompressionBC; + VkBool32 occlusionQueryPrecise; + VkBool32 pipelineStatisticsQuery; + VkBool32 vertexPipelineStoresAndAtomics; + VkBool32 fragmentStoresAndAtomics; + VkBool32 shaderTessellationAndGeometryPointSize; + VkBool32 shaderImageGatherExtended; + VkBool32 shaderStorageImageExtendedFormats; + VkBool32 shaderStorageImageMultisample; + VkBool32 shaderStorageImageReadWithoutFormat; + VkBool32 shaderStorageImageWriteWithoutFormat; + VkBool32 shaderUniformBufferArrayDynamicIndexing; + VkBool32 shaderSampledImageArrayDynamicIndexing; + VkBool32 shaderStorageBufferArrayDynamicIndexing; + VkBool32 shaderStorageImageArrayDynamicIndexing; + VkBool32 shaderClipDistance; + VkBool32 shaderCullDistance; + VkBool32 shaderFloat64; + VkBool32 shaderInt64; + VkBool32 shaderInt16; + VkBool32 shaderResourceResidency; + VkBool32 shaderResourceMinLod; + VkBool32 sparseBinding; + VkBool32 sparseResidencyBuffer; + VkBool32 sparseResidencyImage2D; + VkBool32 sparseResidencyImage3D; + VkBool32 sparseResidency2Samples; + VkBool32 sparseResidency4Samples; + VkBool32 sparseResidency8Samples; + VkBool32 sparseResidency16Samples; + VkBool32 sparseResidencyAliased; + VkBool32 variableMultisampleRate; + VkBool32 inheritedQueries; +} VkPhysicalDeviceFeatures; +typedef struct VkPhysicalDeviceSparseProperties { + VkBool32 residencyStandard2DBlockShape; + VkBool32 residencyStandard2DMultisampleBlockShape; + VkBool32 residencyStandard3DBlockShape; + VkBool32 residencyAlignedMipSize; + VkBool32 residencyNonResidentStrict; +} VkPhysicalDeviceSparseProperties; +typedef struct VkPhysicalDeviceLimits { + uint32_t maxImageDimension1D; + uint32_t maxImageDimension2D; + uint32_t maxImageDimension3D; + uint32_t maxImageDimensionCube; + uint32_t maxImageArrayLayers; + uint32_t maxTexelBufferElements; + uint32_t maxUniformBufferRange; + uint32_t maxStorageBufferRange; + uint32_t maxPushConstantsSize; + uint32_t maxMemoryAllocationCount; + uint32_t maxSamplerAllocationCount; + VkDeviceSize bufferImageGranularity; + VkDeviceSize sparseAddressSpaceSize; + uint32_t maxBoundDescriptorSets; + uint32_t maxPerStageDescriptorSamplers; + uint32_t maxPerStageDescriptorUniformBuffers; + uint32_t maxPerStageDescriptorStorageBuffers; + uint32_t maxPerStageDescriptorSampledImages; + uint32_t maxPerStageDescriptorStorageImages; + uint32_t maxPerStageDescriptorInputAttachments; + uint32_t maxPerStageResources; + uint32_t maxDescriptorSetSamplers; + uint32_t maxDescriptorSetUniformBuffers; + uint32_t maxDescriptorSetUniformBuffersDynamic; + uint32_t maxDescriptorSetStorageBuffers; + uint32_t maxDescriptorSetStorageBuffersDynamic; + uint32_t maxDescriptorSetSampledImages; + uint32_t maxDescriptorSetStorageImages; + uint32_t maxDescriptorSetInputAttachments; + uint32_t maxVertexInputAttributes; + uint32_t maxVertexInputBindings; + uint32_t maxVertexInputAttributeOffset; + uint32_t maxVertexInputBindingStride; + uint32_t maxVertexOutputComponents; + uint32_t maxTessellationGenerationLevel; + uint32_t maxTessellationPatchSize; + uint32_t maxTessellationControlPerVertexInputComponents; + uint32_t maxTessellationControlPerVertexOutputComponents; + uint32_t maxTessellationControlPerPatchOutputComponents; + uint32_t maxTessellationControlTotalOutputComponents; + uint32_t maxTessellationEvaluationInputComponents; + uint32_t maxTessellationEvaluationOutputComponents; + uint32_t maxGeometryShaderInvocations; + uint32_t maxGeometryInputComponents; + uint32_t maxGeometryOutputComponents; + uint32_t maxGeometryOutputVertices; + uint32_t maxGeometryTotalOutputComponents; + uint32_t maxFragmentInputComponents; + uint32_t maxFragmentOutputAttachments; + uint32_t maxFragmentDualSrcAttachments; + uint32_t maxFragmentCombinedOutputResources; + uint32_t maxComputeSharedMemorySize; + uint32_t maxComputeWorkGroupCount [3]; + uint32_t maxComputeWorkGroupInvocations; + uint32_t maxComputeWorkGroupSize [3]; + uint32_t subPixelPrecisionBits; + uint32_t subTexelPrecisionBits; + uint32_t mipmapPrecisionBits; + uint32_t maxDrawIndexedIndexValue; + uint32_t maxDrawIndirectCount; + float maxSamplerLodBias; + float maxSamplerAnisotropy; + uint32_t maxViewports; + uint32_t maxViewportDimensions [2]; + float viewportBoundsRange [2]; + uint32_t viewportSubPixelBits; + size_t minMemoryMapAlignment; + VkDeviceSize minTexelBufferOffsetAlignment; + VkDeviceSize minUniformBufferOffsetAlignment; + VkDeviceSize minStorageBufferOffsetAlignment; + int32_t minTexelOffset; + uint32_t maxTexelOffset; + int32_t minTexelGatherOffset; + uint32_t maxTexelGatherOffset; + float minInterpolationOffset; + float maxInterpolationOffset; + uint32_t subPixelInterpolationOffsetBits; + uint32_t maxFramebufferWidth; + uint32_t maxFramebufferHeight; + uint32_t maxFramebufferLayers; + VkSampleCountFlags framebufferColorSampleCounts; + VkSampleCountFlags framebufferDepthSampleCounts; + VkSampleCountFlags framebufferStencilSampleCounts; + VkSampleCountFlags framebufferNoAttachmentsSampleCounts; + uint32_t maxColorAttachments; + VkSampleCountFlags sampledImageColorSampleCounts; + VkSampleCountFlags sampledImageIntegerSampleCounts; + VkSampleCountFlags sampledImageDepthSampleCounts; + VkSampleCountFlags sampledImageStencilSampleCounts; + VkSampleCountFlags storageImageSampleCounts; + uint32_t maxSampleMaskWords; + VkBool32 timestampComputeAndGraphics; + float timestampPeriod; + uint32_t maxClipDistances; + uint32_t maxCullDistances; + uint32_t maxCombinedClipAndCullDistances; + uint32_t discreteQueuePriorities; + float pointSizeRange [2]; + float lineWidthRange [2]; + float pointSizeGranularity; + float lineWidthGranularity; + VkBool32 strictLines; + VkBool32 standardSampleLocations; + VkDeviceSize optimalBufferCopyOffsetAlignment; + VkDeviceSize optimalBufferCopyRowPitchAlignment; + VkDeviceSize nonCoherentAtomSize; +} VkPhysicalDeviceLimits; +typedef struct VkSemaphoreCreateInfo { + VkStructureType sType; + const void * pNext; + VkSemaphoreCreateFlags flags; +} VkSemaphoreCreateInfo; +typedef struct VkQueryPoolCreateInfo { + VkStructureType sType; + const void * pNext; + VkQueryPoolCreateFlags flags; + VkQueryType queryType; + uint32_t queryCount; + VkQueryPipelineStatisticFlags pipelineStatistics; +} VkQueryPoolCreateInfo; +typedef struct VkFramebufferCreateInfo { + VkStructureType sType; + const void * pNext; + VkFramebufferCreateFlags flags; + VkRenderPass renderPass; + uint32_t attachmentCount; + const VkImageView * pAttachments; + uint32_t width; + uint32_t height; + uint32_t layers; +} VkFramebufferCreateInfo; +typedef struct VkSubmitInfo { + VkStructureType sType; + const void * pNext; + uint32_t waitSemaphoreCount; + const VkSemaphore * pWaitSemaphores; + const VkPipelineStageFlags * pWaitDstStageMask; + uint32_t commandBufferCount; + const VkCommandBuffer * pCommandBuffers; + uint32_t signalSemaphoreCount; + const VkSemaphore * pSignalSemaphores; +} VkSubmitInfo; +typedef struct VkSurfaceCapabilitiesKHR { + uint32_t minImageCount; + uint32_t maxImageCount; + VkExtent2D currentExtent; + VkExtent2D minImageExtent; + VkExtent2D maxImageExtent; + uint32_t maxImageArrayLayers; + VkSurfaceTransformFlagsKHR supportedTransforms; + VkSurfaceTransformFlagBitsKHR currentTransform; + VkCompositeAlphaFlagsKHR supportedCompositeAlpha; + VkImageUsageFlags supportedUsageFlags; +} VkSurfaceCapabilitiesKHR; +typedef struct VkSwapchainCreateInfoKHR { + VkStructureType sType; + const void * pNext; + VkSwapchainCreateFlagsKHR flags; + VkSurfaceKHR surface; + uint32_t minImageCount; + VkFormat imageFormat; + VkColorSpaceKHR imageColorSpace; + VkExtent2D imageExtent; + uint32_t imageArrayLayers; + VkImageUsageFlags imageUsage; + VkSharingMode imageSharingMode; + uint32_t queueFamilyIndexCount; + const uint32_t * pQueueFamilyIndices; + VkSurfaceTransformFlagBitsKHR preTransform; + VkCompositeAlphaFlagBitsKHR compositeAlpha; + VkPresentModeKHR presentMode; + VkBool32 clipped; + VkSwapchainKHR oldSwapchain; +} VkSwapchainCreateInfoKHR; +typedef struct VkDebugReportCallbackCreateInfoEXT { + VkStructureType sType; + const void * pNext; + VkDebugReportFlagsEXT flags; + PFN_vkDebugReportCallbackEXT pfnCallback; + void * pUserData; +} VkDebugReportCallbackCreateInfoEXT; +typedef struct VkPhysicalDeviceFeatures2 { + VkStructureType sType; + void * pNext; + VkPhysicalDeviceFeatures features; +} VkPhysicalDeviceFeatures2; +typedef struct VkFormatProperties2 { + VkStructureType sType; + void * pNext; + VkFormatProperties formatProperties; +} VkFormatProperties2; +typedef struct VkImageFormatProperties2 { + VkStructureType sType; + void * pNext; + VkImageFormatProperties imageFormatProperties; +} VkImageFormatProperties2; +typedef struct VkPhysicalDeviceImageFormatInfo2 { + VkStructureType sType; + const void * pNext; + VkFormat format; + VkImageType type; + VkImageTiling tiling; + VkImageUsageFlags usage; + VkImageCreateFlags flags; +} VkPhysicalDeviceImageFormatInfo2; +typedef struct VkQueueFamilyProperties2 { + VkStructureType sType; + void * pNext; + VkQueueFamilyProperties queueFamilyProperties; +} VkQueueFamilyProperties2; +typedef struct VkSparseImageFormatProperties2 { + VkStructureType sType; + void * pNext; + VkSparseImageFormatProperties properties; +} VkSparseImageFormatProperties2; +typedef struct VkPhysicalDeviceSparseImageFormatInfo2 { + VkStructureType sType; + const void * pNext; + VkFormat format; + VkImageType type; + VkSampleCountFlagBits samples; + VkImageUsageFlags usage; + VkImageTiling tiling; +} VkPhysicalDeviceSparseImageFormatInfo2; +typedef struct VkPhysicalDeviceVariablePointersFeatures { + VkStructureType sType; + void * pNext; + VkBool32 variablePointersStorageBuffer; + VkBool32 variablePointers; +} VkPhysicalDeviceVariablePointersFeatures; +typedef struct VkPhysicalDeviceVariablePointerFeatures VkPhysicalDeviceVariablePointerFeatures; +typedef struct VkExternalMemoryProperties { + VkExternalMemoryFeatureFlags externalMemoryFeatures; + VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes; + VkExternalMemoryHandleTypeFlags compatibleHandleTypes; +} VkExternalMemoryProperties; +typedef struct VkExternalImageFormatProperties { + VkStructureType sType; + void * pNext; + VkExternalMemoryProperties externalMemoryProperties; +} VkExternalImageFormatProperties; +typedef struct VkPhysicalDeviceExternalBufferInfo { + VkStructureType sType; + const void * pNext; + VkBufferCreateFlags flags; + VkBufferUsageFlags usage; + VkExternalMemoryHandleTypeFlagBits handleType; +} VkPhysicalDeviceExternalBufferInfo; +typedef struct VkExternalBufferProperties { + VkStructureType sType; + void * pNext; + VkExternalMemoryProperties externalMemoryProperties; +} VkExternalBufferProperties; +typedef struct VkPhysicalDeviceIDProperties { + VkStructureType sType; + void * pNext; + uint8_t deviceUUID [ VK_UUID_SIZE ]; + uint8_t driverUUID [ VK_UUID_SIZE ]; + uint8_t deviceLUID [ VK_LUID_SIZE ]; + uint32_t deviceNodeMask; + VkBool32 deviceLUIDValid; +} VkPhysicalDeviceIDProperties; +typedef struct VkExternalMemoryImageCreateInfo { + VkStructureType sType; + const void * pNext; + VkExternalMemoryHandleTypeFlags handleTypes; +} VkExternalMemoryImageCreateInfo; +typedef struct VkExternalMemoryBufferCreateInfo { + VkStructureType sType; + const void * pNext; + VkExternalMemoryHandleTypeFlags handleTypes; +} VkExternalMemoryBufferCreateInfo; +typedef struct VkExportMemoryAllocateInfo { + VkStructureType sType; + const void * pNext; + VkExternalMemoryHandleTypeFlags handleTypes; +} VkExportMemoryAllocateInfo; +typedef struct VkExternalSemaphoreProperties { + VkStructureType sType; + void * pNext; + VkExternalSemaphoreHandleTypeFlags exportFromImportedHandleTypes; + VkExternalSemaphoreHandleTypeFlags compatibleHandleTypes; + VkExternalSemaphoreFeatureFlags externalSemaphoreFeatures; +} VkExternalSemaphoreProperties; +typedef struct VkExportSemaphoreCreateInfo { + VkStructureType sType; + const void * pNext; + VkExternalSemaphoreHandleTypeFlags handleTypes; +} VkExportSemaphoreCreateInfo; +typedef struct VkExternalFenceProperties { + VkStructureType sType; + void * pNext; + VkExternalFenceHandleTypeFlags exportFromImportedHandleTypes; + VkExternalFenceHandleTypeFlags compatibleHandleTypes; + VkExternalFenceFeatureFlags externalFenceFeatures; +} VkExternalFenceProperties; +typedef struct VkExportFenceCreateInfo { + VkStructureType sType; + const void * pNext; + VkExternalFenceHandleTypeFlags handleTypes; +} VkExportFenceCreateInfo; +typedef struct VkPhysicalDeviceMultiviewFeatures { + VkStructureType sType; + void * pNext; + VkBool32 multiview; + VkBool32 multiviewGeometryShader; + VkBool32 multiviewTessellationShader; +} VkPhysicalDeviceMultiviewFeatures; +typedef struct VkPhysicalDeviceGroupProperties { + VkStructureType sType; + void * pNext; + uint32_t physicalDeviceCount; + VkPhysicalDevice physicalDevices [ VK_MAX_DEVICE_GROUP_SIZE ]; + VkBool32 subsetAllocation; +} VkPhysicalDeviceGroupProperties; +typedef struct VkMemoryAllocateFlagsInfo { + VkStructureType sType; + const void * pNext; + VkMemoryAllocateFlags flags; + uint32_t deviceMask; +} VkMemoryAllocateFlagsInfo; +typedef struct VkBindBufferMemoryInfo { + VkStructureType sType; + const void * pNext; + VkBuffer buffer; + VkDeviceMemory memory; + VkDeviceSize memoryOffset; +} VkBindBufferMemoryInfo; +typedef struct VkBindImageMemoryInfo { + VkStructureType sType; + const void * pNext; + VkImage image; + VkDeviceMemory memory; + VkDeviceSize memoryOffset; +} VkBindImageMemoryInfo; +typedef struct VkDeviceGroupPresentCapabilitiesKHR { + VkStructureType sType; + const void * pNext; + uint32_t presentMask [ VK_MAX_DEVICE_GROUP_SIZE ]; + VkDeviceGroupPresentModeFlagsKHR modes; +} VkDeviceGroupPresentCapabilitiesKHR; +typedef struct VkDeviceGroupSwapchainCreateInfoKHR { + VkStructureType sType; + const void * pNext; + VkDeviceGroupPresentModeFlagsKHR modes; +} VkDeviceGroupSwapchainCreateInfoKHR; +typedef struct VkDescriptorUpdateTemplateCreateInfo { + VkStructureType sType; + const void * pNext; + VkDescriptorUpdateTemplateCreateFlags flags; + uint32_t descriptorUpdateEntryCount; + const VkDescriptorUpdateTemplateEntry * pDescriptorUpdateEntries; + VkDescriptorUpdateTemplateType templateType; + VkDescriptorSetLayout descriptorSetLayout; + VkPipelineBindPoint pipelineBindPoint; + VkPipelineLayout pipelineLayout; + uint32_t set; +} VkDescriptorUpdateTemplateCreateInfo; +typedef struct VkInputAttachmentAspectReference { + uint32_t subpass; + uint32_t inputAttachmentIndex; + VkImageAspectFlags aspectMask; +} VkInputAttachmentAspectReference; +typedef struct VkRenderPassInputAttachmentAspectCreateInfo { + VkStructureType sType; + const void * pNext; + uint32_t aspectReferenceCount; + const VkInputAttachmentAspectReference * pAspectReferences; +} VkRenderPassInputAttachmentAspectCreateInfo; +typedef struct VkPhysicalDevice16BitStorageFeatures { + VkStructureType sType; + void * pNext; + VkBool32 storageBuffer16BitAccess; + VkBool32 uniformAndStorageBuffer16BitAccess; + VkBool32 storagePushConstant16; + VkBool32 storageInputOutput16; +} VkPhysicalDevice16BitStorageFeatures; +typedef struct VkPhysicalDeviceSubgroupProperties { + VkStructureType sType; + void * pNext; + uint32_t subgroupSize; + VkShaderStageFlags supportedStages; + VkSubgroupFeatureFlags supportedOperations; + VkBool32 quadOperationsInAllStages; +} VkPhysicalDeviceSubgroupProperties; +typedef struct VkMemoryRequirements2 { + VkStructureType sType; + void * pNext; + VkMemoryRequirements memoryRequirements; +} VkMemoryRequirements2; +typedef struct VkMemoryRequirements2KHR VkMemoryRequirements2KHR; +typedef struct VkSparseImageMemoryRequirements2 { + VkStructureType sType; + void * pNext; + VkSparseImageMemoryRequirements memoryRequirements; +} VkSparseImageMemoryRequirements2; +typedef struct VkMemoryDedicatedRequirements { + VkStructureType sType; + void * pNext; + VkBool32 prefersDedicatedAllocation; + VkBool32 requiresDedicatedAllocation; +} VkMemoryDedicatedRequirements; +typedef struct VkImageViewUsageCreateInfo { + VkStructureType sType; + const void * pNext; + VkImageUsageFlags usage; +} VkImageViewUsageCreateInfo; +typedef struct VkSamplerYcbcrConversionCreateInfo { + VkStructureType sType; + const void * pNext; + VkFormat format; + VkSamplerYcbcrModelConversion ycbcrModel; + VkSamplerYcbcrRange ycbcrRange; + VkComponentMapping components; + VkChromaLocation xChromaOffset; + VkChromaLocation yChromaOffset; + VkFilter chromaFilter; + VkBool32 forceExplicitReconstruction; +} VkSamplerYcbcrConversionCreateInfo; +typedef struct VkPhysicalDeviceSamplerYcbcrConversionFeatures { + VkStructureType sType; + void * pNext; + VkBool32 samplerYcbcrConversion; +} VkPhysicalDeviceSamplerYcbcrConversionFeatures; +typedef struct VkProtectedSubmitInfo { + VkStructureType sType; + const void * pNext; + VkBool32 protectedSubmit; +} VkProtectedSubmitInfo; +typedef struct VkPhysicalDeviceProtectedMemoryFeatures { + VkStructureType sType; + void * pNext; + VkBool32 protectedMemory; +} VkPhysicalDeviceProtectedMemoryFeatures; +typedef struct VkPhysicalDeviceProtectedMemoryProperties { + VkStructureType sType; + void * pNext; + VkBool32 protectedNoFault; +} VkPhysicalDeviceProtectedMemoryProperties; +typedef struct VkDeviceQueueInfo2 { + VkStructureType sType; + const void * pNext; + VkDeviceQueueCreateFlags flags; + uint32_t queueFamilyIndex; + uint32_t queueIndex; +} VkDeviceQueueInfo2; +typedef struct VkPhysicalDeviceMaintenance3Properties { + VkStructureType sType; + void * pNext; + uint32_t maxPerSetDescriptors; + VkDeviceSize maxMemoryAllocationSize; +} VkPhysicalDeviceMaintenance3Properties; +typedef struct VkDescriptorSetLayoutSupport { + VkStructureType sType; + void * pNext; + VkBool32 supported; +} VkDescriptorSetLayoutSupport; +typedef struct VkPhysicalDeviceShaderDrawParametersFeatures { + VkStructureType sType; + void * pNext; + VkBool32 shaderDrawParameters; +} VkPhysicalDeviceShaderDrawParametersFeatures; +typedef struct VkPhysicalDeviceShaderDrawParameterFeatures VkPhysicalDeviceShaderDrawParameterFeatures; +typedef struct VkPhysicalDeviceProperties { + uint32_t apiVersion; + uint32_t driverVersion; + uint32_t vendorID; + uint32_t deviceID; + VkPhysicalDeviceType deviceType; + char deviceName [ VK_MAX_PHYSICAL_DEVICE_NAME_SIZE ]; + uint8_t pipelineCacheUUID [ VK_UUID_SIZE ]; + VkPhysicalDeviceLimits limits; + VkPhysicalDeviceSparseProperties sparseProperties; +} VkPhysicalDeviceProperties; +typedef struct VkDeviceCreateInfo { + VkStructureType sType; + const void * pNext; + VkDeviceCreateFlags flags; + uint32_t queueCreateInfoCount; + const VkDeviceQueueCreateInfo * pQueueCreateInfos; + uint32_t enabledLayerCount; + const char * const* ppEnabledLayerNames; + uint32_t enabledExtensionCount; + const char * const* ppEnabledExtensionNames; + const VkPhysicalDeviceFeatures * pEnabledFeatures; +} VkDeviceCreateInfo; +typedef struct VkPhysicalDeviceMemoryProperties { + uint32_t memoryTypeCount; + VkMemoryType memoryTypes [ VK_MAX_MEMORY_TYPES ]; + uint32_t memoryHeapCount; + VkMemoryHeap memoryHeaps [ VK_MAX_MEMORY_HEAPS ]; +} VkPhysicalDeviceMemoryProperties; +typedef struct VkPhysicalDeviceProperties2 { + VkStructureType sType; + void * pNext; + VkPhysicalDeviceProperties properties; +} VkPhysicalDeviceProperties2; +typedef struct VkPhysicalDeviceMemoryProperties2 { + VkStructureType sType; + void * pNext; + VkPhysicalDeviceMemoryProperties memoryProperties; +} VkPhysicalDeviceMemoryProperties2; + + +#define VK_VERSION_1_0 1 +GLAD_API_CALL int GLAD_VK_VERSION_1_0; +#define VK_VERSION_1_1 1 +GLAD_API_CALL int GLAD_VK_VERSION_1_1; +#define VK_EXT_debug_report 1 +GLAD_API_CALL int GLAD_VK_EXT_debug_report; +#define VK_KHR_surface 1 +GLAD_API_CALL int GLAD_VK_KHR_surface; +#define VK_KHR_swapchain 1 +GLAD_API_CALL int GLAD_VK_KHR_swapchain; + + +typedef VkResult (GLAD_API_PTR *PFN_vkAcquireNextImage2KHR)(VkDevice device, const VkAcquireNextImageInfoKHR * pAcquireInfo, uint32_t * pImageIndex); +typedef VkResult (GLAD_API_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t * pImageIndex); +typedef VkResult (GLAD_API_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo * pAllocateInfo, VkCommandBuffer * pCommandBuffers); +typedef VkResult (GLAD_API_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo * pAllocateInfo, VkDescriptorSet * pDescriptorSets); +typedef VkResult (GLAD_API_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo * pAllocateInfo, const VkAllocationCallbacks * pAllocator, VkDeviceMemory * pMemory); +typedef VkResult (GLAD_API_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo * pBeginInfo); +typedef VkResult (GLAD_API_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset); +typedef VkResult (GLAD_API_PTR *PFN_vkBindBufferMemory2)(VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo * pBindInfos); +typedef VkResult (GLAD_API_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset); +typedef VkResult (GLAD_API_PTR *PFN_vkBindImageMemory2)(VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfo * pBindInfos); +typedef void (GLAD_API_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags); +typedef void (GLAD_API_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo * pRenderPassBegin, VkSubpassContents contents); +typedef void (GLAD_API_PTR *PFN_vkCmdBindDescriptorSets)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet * pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t * pDynamicOffsets); +typedef void (GLAD_API_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); +typedef void (GLAD_API_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); +typedef void (GLAD_API_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer * pBuffers, const VkDeviceSize * pOffsets); +typedef void (GLAD_API_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit * pRegions, VkFilter filter); +typedef void (GLAD_API_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment * pAttachments, uint32_t rectCount, const VkClearRect * pRects); +typedef void (GLAD_API_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue * pColor, uint32_t rangeCount, const VkImageSubresourceRange * pRanges); +typedef void (GLAD_API_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue * pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange * pRanges); +typedef void (GLAD_API_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy * pRegions); +typedef void (GLAD_API_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy * pRegions); +typedef void (GLAD_API_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy * pRegions); +typedef void (GLAD_API_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy * pRegions); +typedef void (GLAD_API_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags); +typedef void (GLAD_API_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ); +typedef void (GLAD_API_PTR *PFN_vkCmdDispatchBase)(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ); +typedef void (GLAD_API_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset); +typedef void (GLAD_API_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); +typedef void (GLAD_API_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); +typedef void (GLAD_API_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); +typedef void (GLAD_API_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); +typedef void (GLAD_API_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query); +typedef void (GLAD_API_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer); +typedef void (GLAD_API_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer * pCommandBuffers); +typedef void (GLAD_API_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data); +typedef void (GLAD_API_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents); +typedef void (GLAD_API_PTR *PFN_vkCmdPipelineBarrier)(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier * pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier * pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier * pImageMemoryBarriers); +typedef void (GLAD_API_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void * pValues); +typedef void (GLAD_API_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); +typedef void (GLAD_API_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount); +typedef void (GLAD_API_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve * pRegions); +typedef void (GLAD_API_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants [4]); +typedef void (GLAD_API_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); +typedef void (GLAD_API_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds); +typedef void (GLAD_API_PTR *PFN_vkCmdSetDeviceMask)(VkCommandBuffer commandBuffer, uint32_t deviceMask); +typedef void (GLAD_API_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); +typedef void (GLAD_API_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth); +typedef void (GLAD_API_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D * pScissors); +typedef void (GLAD_API_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask); +typedef void (GLAD_API_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference); +typedef void (GLAD_API_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask); +typedef void (GLAD_API_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport * pViewports); +typedef void (GLAD_API_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void * pData); +typedef void (GLAD_API_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent * pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier * pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier * pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier * pImageMemoryBarriers); +typedef void (GLAD_API_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkBuffer * pBuffer); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkBufferView * pView); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkCommandPool * pCommandPool); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDebugReportCallbackEXT * pCallback); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorPool * pDescriptorPool); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorSetLayout * pSetLayout); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateDescriptorUpdateTemplate)(VkDevice device, const VkDescriptorUpdateTemplateCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDescriptorUpdateTemplate * pDescriptorUpdateTemplate); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkDevice * pDevice); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkEvent * pEvent); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkFence * pFence); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkFramebuffer * pFramebuffer); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo * pCreateInfos, const VkAllocationCallbacks * pAllocator, VkPipeline * pPipelines); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkImage * pImage); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkImageView * pView); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkInstance * pInstance); +typedef VkResult (GLAD_API_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPipelineCache * pPipelineCache); +typedef VkResult (GLAD_API_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkPipelineLayout * pPipelineLayout); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkQueryPool * pQueryPool); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkRenderPass * pRenderPass); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSampler * pSampler); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateSamplerYcbcrConversion)(VkDevice device, const VkSamplerYcbcrConversionCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSamplerYcbcrConversion * pYcbcrConversion); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSemaphore * pSemaphore); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkShaderModule * pShaderModule); +typedef VkResult (GLAD_API_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR * pSwapchain); +typedef void (GLAD_API_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char * pLayerPrefix, const char * pMessage); +typedef void (GLAD_API_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyDescriptorUpdateTemplate)(VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroySamplerYcbcrConversion)(VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks * pAllocator); +typedef VkResult (GLAD_API_PTR *PFN_vkDeviceWaitIdle)(VkDevice device); +typedef VkResult (GLAD_API_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char * pLayerName, uint32_t * pPropertyCount, VkExtensionProperties * pProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t * pPropertyCount, VkLayerProperties * pProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char * pLayerName, uint32_t * pPropertyCount, VkExtensionProperties * pProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t * pPropertyCount, VkLayerProperties * pProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumerateInstanceVersion)(uint32_t * pApiVersion); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumeratePhysicalDeviceGroups)(VkInstance instance, uint32_t * pPhysicalDeviceGroupCount, VkPhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t * pPhysicalDeviceCount, VkPhysicalDevice * pPhysicalDevices); +typedef VkResult (GLAD_API_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange * pMemoryRanges); +typedef void (GLAD_API_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer * pCommandBuffers); +typedef VkResult (GLAD_API_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet * pDescriptorSets); +typedef void (GLAD_API_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks * pAllocator); +typedef void (GLAD_API_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements * pMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetBufferMemoryRequirements2)(VkDevice device, const VkBufferMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetDescriptorSetLayoutSupport)(VkDevice device, const VkDescriptorSetLayoutCreateInfo * pCreateInfo, VkDescriptorSetLayoutSupport * pSupport); +typedef void (GLAD_API_PTR *PFN_vkGetDeviceGroupPeerMemoryFeatures)(VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlags * pPeerMemoryFeatures); +typedef VkResult (GLAD_API_PTR *PFN_vkGetDeviceGroupPresentCapabilitiesKHR)(VkDevice device, VkDeviceGroupPresentCapabilitiesKHR * pDeviceGroupPresentCapabilities); +typedef VkResult (GLAD_API_PTR *PFN_vkGetDeviceGroupSurfacePresentModesKHR)(VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHR * pModes); +typedef void (GLAD_API_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize * pCommittedMemoryInBytes); +typedef PFN_vkVoidFunction (GLAD_API_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char * pName); +typedef void (GLAD_API_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue * pQueue); +typedef void (GLAD_API_PTR *PFN_vkGetDeviceQueue2)(VkDevice device, const VkDeviceQueueInfo2 * pQueueInfo, VkQueue * pQueue); +typedef VkResult (GLAD_API_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); +typedef VkResult (GLAD_API_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); +typedef void (GLAD_API_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements * pMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetImageMemoryRequirements2)(VkDevice device, const VkImageMemoryRequirementsInfo2 * pInfo, VkMemoryRequirements2 * pMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements * pSparseMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetImageSparseMemoryRequirements2)(VkDevice device, const VkImageSparseMemoryRequirementsInfo2 * pInfo, uint32_t * pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 * pSparseMemoryRequirements); +typedef void (GLAD_API_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource * pSubresource, VkSubresourceLayout * pLayout); +typedef PFN_vkVoidFunction (GLAD_API_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char * pName); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceExternalBufferProperties)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfo * pExternalBufferInfo, VkExternalBufferProperties * pExternalBufferProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceExternalFenceProperties)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalFenceInfo * pExternalFenceInfo, VkExternalFenceProperties * pExternalFenceProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceExternalSemaphoreProperties)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalSemaphoreInfo * pExternalSemaphoreInfo, VkExternalSemaphoreProperties * pExternalSemaphoreProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures * pFeatures); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceFeatures2)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2 * pFeatures); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties * pFormatProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceFormatProperties2)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2 * pFormatProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties * pImageFormatProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties2)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2 * pImageFormatInfo, VkImageFormatProperties2 * pImageFormatProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties * pMemoryProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceMemoryProperties2)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 * pMemoryProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDevicePresentRectanglesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pRectCount, VkRect2D * pRects); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties * pProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceProperties2)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 * pProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t * pQueueFamilyPropertyCount, VkQueueFamilyProperties * pQueueFamilyProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties2)(VkPhysicalDevice physicalDevice, uint32_t * pQueueFamilyPropertyCount, VkQueueFamilyProperties2 * pQueueFamilyProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t * pPropertyCount, VkSparseImageFormatProperties * pProperties); +typedef void (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties2)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2 * pFormatInfo, uint32_t * pPropertyCount, VkSparseImageFormatProperties2 * pProperties); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR * pSurfaceCapabilities); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pSurfaceFormatCount, VkSurfaceFormatKHR * pSurfaceFormats); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t * pPresentModeCount, VkPresentModeKHR * pPresentModes); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32 * pSupported); +typedef VkResult (GLAD_API_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t * pDataSize, void * pData); +typedef VkResult (GLAD_API_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void * pData, VkDeviceSize stride, VkQueryResultFlags flags); +typedef void (GLAD_API_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D * pGranularity); +typedef VkResult (GLAD_API_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t * pSwapchainImageCount, VkImage * pSwapchainImages); +typedef VkResult (GLAD_API_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange * pMemoryRanges); +typedef VkResult (GLAD_API_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void ** ppData); +typedef VkResult (GLAD_API_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache * pSrcCaches); +typedef VkResult (GLAD_API_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo * pBindInfo, VkFence fence); +typedef VkResult (GLAD_API_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR * pPresentInfo); +typedef VkResult (GLAD_API_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo * pSubmits, VkFence fence); +typedef VkResult (GLAD_API_PTR *PFN_vkQueueWaitIdle)(VkQueue queue); +typedef VkResult (GLAD_API_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags); +typedef VkResult (GLAD_API_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags); +typedef VkResult (GLAD_API_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); +typedef VkResult (GLAD_API_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event); +typedef VkResult (GLAD_API_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence * pFences); +typedef VkResult (GLAD_API_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event); +typedef void (GLAD_API_PTR *PFN_vkTrimCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags); +typedef void (GLAD_API_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory); +typedef void (GLAD_API_PTR *PFN_vkUpdateDescriptorSetWithTemplate)(VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const void * pData); +typedef void (GLAD_API_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet * pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet * pDescriptorCopies); +typedef VkResult (GLAD_API_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence * pFences, VkBool32 waitAll, uint64_t timeout); + +GLAD_API_CALL PFN_vkAcquireNextImage2KHR glad_vkAcquireNextImage2KHR; +#define vkAcquireNextImage2KHR glad_vkAcquireNextImage2KHR +GLAD_API_CALL PFN_vkAcquireNextImageKHR glad_vkAcquireNextImageKHR; +#define vkAcquireNextImageKHR glad_vkAcquireNextImageKHR +GLAD_API_CALL PFN_vkAllocateCommandBuffers glad_vkAllocateCommandBuffers; +#define vkAllocateCommandBuffers glad_vkAllocateCommandBuffers +GLAD_API_CALL PFN_vkAllocateDescriptorSets glad_vkAllocateDescriptorSets; +#define vkAllocateDescriptorSets glad_vkAllocateDescriptorSets +GLAD_API_CALL PFN_vkAllocateMemory glad_vkAllocateMemory; +#define vkAllocateMemory glad_vkAllocateMemory +GLAD_API_CALL PFN_vkBeginCommandBuffer glad_vkBeginCommandBuffer; +#define vkBeginCommandBuffer glad_vkBeginCommandBuffer +GLAD_API_CALL PFN_vkBindBufferMemory glad_vkBindBufferMemory; +#define vkBindBufferMemory glad_vkBindBufferMemory +GLAD_API_CALL PFN_vkBindBufferMemory2 glad_vkBindBufferMemory2; +#define vkBindBufferMemory2 glad_vkBindBufferMemory2 +GLAD_API_CALL PFN_vkBindImageMemory glad_vkBindImageMemory; +#define vkBindImageMemory glad_vkBindImageMemory +GLAD_API_CALL PFN_vkBindImageMemory2 glad_vkBindImageMemory2; +#define vkBindImageMemory2 glad_vkBindImageMemory2 +GLAD_API_CALL PFN_vkCmdBeginQuery glad_vkCmdBeginQuery; +#define vkCmdBeginQuery glad_vkCmdBeginQuery +GLAD_API_CALL PFN_vkCmdBeginRenderPass glad_vkCmdBeginRenderPass; +#define vkCmdBeginRenderPass glad_vkCmdBeginRenderPass +GLAD_API_CALL PFN_vkCmdBindDescriptorSets glad_vkCmdBindDescriptorSets; +#define vkCmdBindDescriptorSets glad_vkCmdBindDescriptorSets +GLAD_API_CALL PFN_vkCmdBindIndexBuffer glad_vkCmdBindIndexBuffer; +#define vkCmdBindIndexBuffer glad_vkCmdBindIndexBuffer +GLAD_API_CALL PFN_vkCmdBindPipeline glad_vkCmdBindPipeline; +#define vkCmdBindPipeline glad_vkCmdBindPipeline +GLAD_API_CALL PFN_vkCmdBindVertexBuffers glad_vkCmdBindVertexBuffers; +#define vkCmdBindVertexBuffers glad_vkCmdBindVertexBuffers +GLAD_API_CALL PFN_vkCmdBlitImage glad_vkCmdBlitImage; +#define vkCmdBlitImage glad_vkCmdBlitImage +GLAD_API_CALL PFN_vkCmdClearAttachments glad_vkCmdClearAttachments; +#define vkCmdClearAttachments glad_vkCmdClearAttachments +GLAD_API_CALL PFN_vkCmdClearColorImage glad_vkCmdClearColorImage; +#define vkCmdClearColorImage glad_vkCmdClearColorImage +GLAD_API_CALL PFN_vkCmdClearDepthStencilImage glad_vkCmdClearDepthStencilImage; +#define vkCmdClearDepthStencilImage glad_vkCmdClearDepthStencilImage +GLAD_API_CALL PFN_vkCmdCopyBuffer glad_vkCmdCopyBuffer; +#define vkCmdCopyBuffer glad_vkCmdCopyBuffer +GLAD_API_CALL PFN_vkCmdCopyBufferToImage glad_vkCmdCopyBufferToImage; +#define vkCmdCopyBufferToImage glad_vkCmdCopyBufferToImage +GLAD_API_CALL PFN_vkCmdCopyImage glad_vkCmdCopyImage; +#define vkCmdCopyImage glad_vkCmdCopyImage +GLAD_API_CALL PFN_vkCmdCopyImageToBuffer glad_vkCmdCopyImageToBuffer; +#define vkCmdCopyImageToBuffer glad_vkCmdCopyImageToBuffer +GLAD_API_CALL PFN_vkCmdCopyQueryPoolResults glad_vkCmdCopyQueryPoolResults; +#define vkCmdCopyQueryPoolResults glad_vkCmdCopyQueryPoolResults +GLAD_API_CALL PFN_vkCmdDispatch glad_vkCmdDispatch; +#define vkCmdDispatch glad_vkCmdDispatch +GLAD_API_CALL PFN_vkCmdDispatchBase glad_vkCmdDispatchBase; +#define vkCmdDispatchBase glad_vkCmdDispatchBase +GLAD_API_CALL PFN_vkCmdDispatchIndirect glad_vkCmdDispatchIndirect; +#define vkCmdDispatchIndirect glad_vkCmdDispatchIndirect +GLAD_API_CALL PFN_vkCmdDraw glad_vkCmdDraw; +#define vkCmdDraw glad_vkCmdDraw +GLAD_API_CALL PFN_vkCmdDrawIndexed glad_vkCmdDrawIndexed; +#define vkCmdDrawIndexed glad_vkCmdDrawIndexed +GLAD_API_CALL PFN_vkCmdDrawIndexedIndirect glad_vkCmdDrawIndexedIndirect; +#define vkCmdDrawIndexedIndirect glad_vkCmdDrawIndexedIndirect +GLAD_API_CALL PFN_vkCmdDrawIndirect glad_vkCmdDrawIndirect; +#define vkCmdDrawIndirect glad_vkCmdDrawIndirect +GLAD_API_CALL PFN_vkCmdEndQuery glad_vkCmdEndQuery; +#define vkCmdEndQuery glad_vkCmdEndQuery +GLAD_API_CALL PFN_vkCmdEndRenderPass glad_vkCmdEndRenderPass; +#define vkCmdEndRenderPass glad_vkCmdEndRenderPass +GLAD_API_CALL PFN_vkCmdExecuteCommands glad_vkCmdExecuteCommands; +#define vkCmdExecuteCommands glad_vkCmdExecuteCommands +GLAD_API_CALL PFN_vkCmdFillBuffer glad_vkCmdFillBuffer; +#define vkCmdFillBuffer glad_vkCmdFillBuffer +GLAD_API_CALL PFN_vkCmdNextSubpass glad_vkCmdNextSubpass; +#define vkCmdNextSubpass glad_vkCmdNextSubpass +GLAD_API_CALL PFN_vkCmdPipelineBarrier glad_vkCmdPipelineBarrier; +#define vkCmdPipelineBarrier glad_vkCmdPipelineBarrier +GLAD_API_CALL PFN_vkCmdPushConstants glad_vkCmdPushConstants; +#define vkCmdPushConstants glad_vkCmdPushConstants +GLAD_API_CALL PFN_vkCmdResetEvent glad_vkCmdResetEvent; +#define vkCmdResetEvent glad_vkCmdResetEvent +GLAD_API_CALL PFN_vkCmdResetQueryPool glad_vkCmdResetQueryPool; +#define vkCmdResetQueryPool glad_vkCmdResetQueryPool +GLAD_API_CALL PFN_vkCmdResolveImage glad_vkCmdResolveImage; +#define vkCmdResolveImage glad_vkCmdResolveImage +GLAD_API_CALL PFN_vkCmdSetBlendConstants glad_vkCmdSetBlendConstants; +#define vkCmdSetBlendConstants glad_vkCmdSetBlendConstants +GLAD_API_CALL PFN_vkCmdSetDepthBias glad_vkCmdSetDepthBias; +#define vkCmdSetDepthBias glad_vkCmdSetDepthBias +GLAD_API_CALL PFN_vkCmdSetDepthBounds glad_vkCmdSetDepthBounds; +#define vkCmdSetDepthBounds glad_vkCmdSetDepthBounds +GLAD_API_CALL PFN_vkCmdSetDeviceMask glad_vkCmdSetDeviceMask; +#define vkCmdSetDeviceMask glad_vkCmdSetDeviceMask +GLAD_API_CALL PFN_vkCmdSetEvent glad_vkCmdSetEvent; +#define vkCmdSetEvent glad_vkCmdSetEvent +GLAD_API_CALL PFN_vkCmdSetLineWidth glad_vkCmdSetLineWidth; +#define vkCmdSetLineWidth glad_vkCmdSetLineWidth +GLAD_API_CALL PFN_vkCmdSetScissor glad_vkCmdSetScissor; +#define vkCmdSetScissor glad_vkCmdSetScissor +GLAD_API_CALL PFN_vkCmdSetStencilCompareMask glad_vkCmdSetStencilCompareMask; +#define vkCmdSetStencilCompareMask glad_vkCmdSetStencilCompareMask +GLAD_API_CALL PFN_vkCmdSetStencilReference glad_vkCmdSetStencilReference; +#define vkCmdSetStencilReference glad_vkCmdSetStencilReference +GLAD_API_CALL PFN_vkCmdSetStencilWriteMask glad_vkCmdSetStencilWriteMask; +#define vkCmdSetStencilWriteMask glad_vkCmdSetStencilWriteMask +GLAD_API_CALL PFN_vkCmdSetViewport glad_vkCmdSetViewport; +#define vkCmdSetViewport glad_vkCmdSetViewport +GLAD_API_CALL PFN_vkCmdUpdateBuffer glad_vkCmdUpdateBuffer; +#define vkCmdUpdateBuffer glad_vkCmdUpdateBuffer +GLAD_API_CALL PFN_vkCmdWaitEvents glad_vkCmdWaitEvents; +#define vkCmdWaitEvents glad_vkCmdWaitEvents +GLAD_API_CALL PFN_vkCmdWriteTimestamp glad_vkCmdWriteTimestamp; +#define vkCmdWriteTimestamp glad_vkCmdWriteTimestamp +GLAD_API_CALL PFN_vkCreateBuffer glad_vkCreateBuffer; +#define vkCreateBuffer glad_vkCreateBuffer +GLAD_API_CALL PFN_vkCreateBufferView glad_vkCreateBufferView; +#define vkCreateBufferView glad_vkCreateBufferView +GLAD_API_CALL PFN_vkCreateCommandPool glad_vkCreateCommandPool; +#define vkCreateCommandPool glad_vkCreateCommandPool +GLAD_API_CALL PFN_vkCreateComputePipelines glad_vkCreateComputePipelines; +#define vkCreateComputePipelines glad_vkCreateComputePipelines +GLAD_API_CALL PFN_vkCreateDebugReportCallbackEXT glad_vkCreateDebugReportCallbackEXT; +#define vkCreateDebugReportCallbackEXT glad_vkCreateDebugReportCallbackEXT +GLAD_API_CALL PFN_vkCreateDescriptorPool glad_vkCreateDescriptorPool; +#define vkCreateDescriptorPool glad_vkCreateDescriptorPool +GLAD_API_CALL PFN_vkCreateDescriptorSetLayout glad_vkCreateDescriptorSetLayout; +#define vkCreateDescriptorSetLayout glad_vkCreateDescriptorSetLayout +GLAD_API_CALL PFN_vkCreateDescriptorUpdateTemplate glad_vkCreateDescriptorUpdateTemplate; +#define vkCreateDescriptorUpdateTemplate glad_vkCreateDescriptorUpdateTemplate +GLAD_API_CALL PFN_vkCreateDevice glad_vkCreateDevice; +#define vkCreateDevice glad_vkCreateDevice +GLAD_API_CALL PFN_vkCreateEvent glad_vkCreateEvent; +#define vkCreateEvent glad_vkCreateEvent +GLAD_API_CALL PFN_vkCreateFence glad_vkCreateFence; +#define vkCreateFence glad_vkCreateFence +GLAD_API_CALL PFN_vkCreateFramebuffer glad_vkCreateFramebuffer; +#define vkCreateFramebuffer glad_vkCreateFramebuffer +GLAD_API_CALL PFN_vkCreateGraphicsPipelines glad_vkCreateGraphicsPipelines; +#define vkCreateGraphicsPipelines glad_vkCreateGraphicsPipelines +GLAD_API_CALL PFN_vkCreateImage glad_vkCreateImage; +#define vkCreateImage glad_vkCreateImage +GLAD_API_CALL PFN_vkCreateImageView glad_vkCreateImageView; +#define vkCreateImageView glad_vkCreateImageView +GLAD_API_CALL PFN_vkCreateInstance glad_vkCreateInstance; +#define vkCreateInstance glad_vkCreateInstance +GLAD_API_CALL PFN_vkCreatePipelineCache glad_vkCreatePipelineCache; +#define vkCreatePipelineCache glad_vkCreatePipelineCache +GLAD_API_CALL PFN_vkCreatePipelineLayout glad_vkCreatePipelineLayout; +#define vkCreatePipelineLayout glad_vkCreatePipelineLayout +GLAD_API_CALL PFN_vkCreateQueryPool glad_vkCreateQueryPool; +#define vkCreateQueryPool glad_vkCreateQueryPool +GLAD_API_CALL PFN_vkCreateRenderPass glad_vkCreateRenderPass; +#define vkCreateRenderPass glad_vkCreateRenderPass +GLAD_API_CALL PFN_vkCreateSampler glad_vkCreateSampler; +#define vkCreateSampler glad_vkCreateSampler +GLAD_API_CALL PFN_vkCreateSamplerYcbcrConversion glad_vkCreateSamplerYcbcrConversion; +#define vkCreateSamplerYcbcrConversion glad_vkCreateSamplerYcbcrConversion +GLAD_API_CALL PFN_vkCreateSemaphore glad_vkCreateSemaphore; +#define vkCreateSemaphore glad_vkCreateSemaphore +GLAD_API_CALL PFN_vkCreateShaderModule glad_vkCreateShaderModule; +#define vkCreateShaderModule glad_vkCreateShaderModule +GLAD_API_CALL PFN_vkCreateSwapchainKHR glad_vkCreateSwapchainKHR; +#define vkCreateSwapchainKHR glad_vkCreateSwapchainKHR +GLAD_API_CALL PFN_vkDebugReportMessageEXT glad_vkDebugReportMessageEXT; +#define vkDebugReportMessageEXT glad_vkDebugReportMessageEXT +GLAD_API_CALL PFN_vkDestroyBuffer glad_vkDestroyBuffer; +#define vkDestroyBuffer glad_vkDestroyBuffer +GLAD_API_CALL PFN_vkDestroyBufferView glad_vkDestroyBufferView; +#define vkDestroyBufferView glad_vkDestroyBufferView +GLAD_API_CALL PFN_vkDestroyCommandPool glad_vkDestroyCommandPool; +#define vkDestroyCommandPool glad_vkDestroyCommandPool +GLAD_API_CALL PFN_vkDestroyDebugReportCallbackEXT glad_vkDestroyDebugReportCallbackEXT; +#define vkDestroyDebugReportCallbackEXT glad_vkDestroyDebugReportCallbackEXT +GLAD_API_CALL PFN_vkDestroyDescriptorPool glad_vkDestroyDescriptorPool; +#define vkDestroyDescriptorPool glad_vkDestroyDescriptorPool +GLAD_API_CALL PFN_vkDestroyDescriptorSetLayout glad_vkDestroyDescriptorSetLayout; +#define vkDestroyDescriptorSetLayout glad_vkDestroyDescriptorSetLayout +GLAD_API_CALL PFN_vkDestroyDescriptorUpdateTemplate glad_vkDestroyDescriptorUpdateTemplate; +#define vkDestroyDescriptorUpdateTemplate glad_vkDestroyDescriptorUpdateTemplate +GLAD_API_CALL PFN_vkDestroyDevice glad_vkDestroyDevice; +#define vkDestroyDevice glad_vkDestroyDevice +GLAD_API_CALL PFN_vkDestroyEvent glad_vkDestroyEvent; +#define vkDestroyEvent glad_vkDestroyEvent +GLAD_API_CALL PFN_vkDestroyFence glad_vkDestroyFence; +#define vkDestroyFence glad_vkDestroyFence +GLAD_API_CALL PFN_vkDestroyFramebuffer glad_vkDestroyFramebuffer; +#define vkDestroyFramebuffer glad_vkDestroyFramebuffer +GLAD_API_CALL PFN_vkDestroyImage glad_vkDestroyImage; +#define vkDestroyImage glad_vkDestroyImage +GLAD_API_CALL PFN_vkDestroyImageView glad_vkDestroyImageView; +#define vkDestroyImageView glad_vkDestroyImageView +GLAD_API_CALL PFN_vkDestroyInstance glad_vkDestroyInstance; +#define vkDestroyInstance glad_vkDestroyInstance +GLAD_API_CALL PFN_vkDestroyPipeline glad_vkDestroyPipeline; +#define vkDestroyPipeline glad_vkDestroyPipeline +GLAD_API_CALL PFN_vkDestroyPipelineCache glad_vkDestroyPipelineCache; +#define vkDestroyPipelineCache glad_vkDestroyPipelineCache +GLAD_API_CALL PFN_vkDestroyPipelineLayout glad_vkDestroyPipelineLayout; +#define vkDestroyPipelineLayout glad_vkDestroyPipelineLayout +GLAD_API_CALL PFN_vkDestroyQueryPool glad_vkDestroyQueryPool; +#define vkDestroyQueryPool glad_vkDestroyQueryPool +GLAD_API_CALL PFN_vkDestroyRenderPass glad_vkDestroyRenderPass; +#define vkDestroyRenderPass glad_vkDestroyRenderPass +GLAD_API_CALL PFN_vkDestroySampler glad_vkDestroySampler; +#define vkDestroySampler glad_vkDestroySampler +GLAD_API_CALL PFN_vkDestroySamplerYcbcrConversion glad_vkDestroySamplerYcbcrConversion; +#define vkDestroySamplerYcbcrConversion glad_vkDestroySamplerYcbcrConversion +GLAD_API_CALL PFN_vkDestroySemaphore glad_vkDestroySemaphore; +#define vkDestroySemaphore glad_vkDestroySemaphore +GLAD_API_CALL PFN_vkDestroyShaderModule glad_vkDestroyShaderModule; +#define vkDestroyShaderModule glad_vkDestroyShaderModule +GLAD_API_CALL PFN_vkDestroySurfaceKHR glad_vkDestroySurfaceKHR; +#define vkDestroySurfaceKHR glad_vkDestroySurfaceKHR +GLAD_API_CALL PFN_vkDestroySwapchainKHR glad_vkDestroySwapchainKHR; +#define vkDestroySwapchainKHR glad_vkDestroySwapchainKHR +GLAD_API_CALL PFN_vkDeviceWaitIdle glad_vkDeviceWaitIdle; +#define vkDeviceWaitIdle glad_vkDeviceWaitIdle +GLAD_API_CALL PFN_vkEndCommandBuffer glad_vkEndCommandBuffer; +#define vkEndCommandBuffer glad_vkEndCommandBuffer +GLAD_API_CALL PFN_vkEnumerateDeviceExtensionProperties glad_vkEnumerateDeviceExtensionProperties; +#define vkEnumerateDeviceExtensionProperties glad_vkEnumerateDeviceExtensionProperties +GLAD_API_CALL PFN_vkEnumerateDeviceLayerProperties glad_vkEnumerateDeviceLayerProperties; +#define vkEnumerateDeviceLayerProperties glad_vkEnumerateDeviceLayerProperties +GLAD_API_CALL PFN_vkEnumerateInstanceExtensionProperties glad_vkEnumerateInstanceExtensionProperties; +#define vkEnumerateInstanceExtensionProperties glad_vkEnumerateInstanceExtensionProperties +GLAD_API_CALL PFN_vkEnumerateInstanceLayerProperties glad_vkEnumerateInstanceLayerProperties; +#define vkEnumerateInstanceLayerProperties glad_vkEnumerateInstanceLayerProperties +GLAD_API_CALL PFN_vkEnumerateInstanceVersion glad_vkEnumerateInstanceVersion; +#define vkEnumerateInstanceVersion glad_vkEnumerateInstanceVersion +GLAD_API_CALL PFN_vkEnumeratePhysicalDeviceGroups glad_vkEnumeratePhysicalDeviceGroups; +#define vkEnumeratePhysicalDeviceGroups glad_vkEnumeratePhysicalDeviceGroups +GLAD_API_CALL PFN_vkEnumeratePhysicalDevices glad_vkEnumeratePhysicalDevices; +#define vkEnumeratePhysicalDevices glad_vkEnumeratePhysicalDevices +GLAD_API_CALL PFN_vkFlushMappedMemoryRanges glad_vkFlushMappedMemoryRanges; +#define vkFlushMappedMemoryRanges glad_vkFlushMappedMemoryRanges +GLAD_API_CALL PFN_vkFreeCommandBuffers glad_vkFreeCommandBuffers; +#define vkFreeCommandBuffers glad_vkFreeCommandBuffers +GLAD_API_CALL PFN_vkFreeDescriptorSets glad_vkFreeDescriptorSets; +#define vkFreeDescriptorSets glad_vkFreeDescriptorSets +GLAD_API_CALL PFN_vkFreeMemory glad_vkFreeMemory; +#define vkFreeMemory glad_vkFreeMemory +GLAD_API_CALL PFN_vkGetBufferMemoryRequirements glad_vkGetBufferMemoryRequirements; +#define vkGetBufferMemoryRequirements glad_vkGetBufferMemoryRequirements +GLAD_API_CALL PFN_vkGetBufferMemoryRequirements2 glad_vkGetBufferMemoryRequirements2; +#define vkGetBufferMemoryRequirements2 glad_vkGetBufferMemoryRequirements2 +GLAD_API_CALL PFN_vkGetDescriptorSetLayoutSupport glad_vkGetDescriptorSetLayoutSupport; +#define vkGetDescriptorSetLayoutSupport glad_vkGetDescriptorSetLayoutSupport +GLAD_API_CALL PFN_vkGetDeviceGroupPeerMemoryFeatures glad_vkGetDeviceGroupPeerMemoryFeatures; +#define vkGetDeviceGroupPeerMemoryFeatures glad_vkGetDeviceGroupPeerMemoryFeatures +GLAD_API_CALL PFN_vkGetDeviceGroupPresentCapabilitiesKHR glad_vkGetDeviceGroupPresentCapabilitiesKHR; +#define vkGetDeviceGroupPresentCapabilitiesKHR glad_vkGetDeviceGroupPresentCapabilitiesKHR +GLAD_API_CALL PFN_vkGetDeviceGroupSurfacePresentModesKHR glad_vkGetDeviceGroupSurfacePresentModesKHR; +#define vkGetDeviceGroupSurfacePresentModesKHR glad_vkGetDeviceGroupSurfacePresentModesKHR +GLAD_API_CALL PFN_vkGetDeviceMemoryCommitment glad_vkGetDeviceMemoryCommitment; +#define vkGetDeviceMemoryCommitment glad_vkGetDeviceMemoryCommitment +GLAD_API_CALL PFN_vkGetDeviceProcAddr glad_vkGetDeviceProcAddr; +#define vkGetDeviceProcAddr glad_vkGetDeviceProcAddr +GLAD_API_CALL PFN_vkGetDeviceQueue glad_vkGetDeviceQueue; +#define vkGetDeviceQueue glad_vkGetDeviceQueue +GLAD_API_CALL PFN_vkGetDeviceQueue2 glad_vkGetDeviceQueue2; +#define vkGetDeviceQueue2 glad_vkGetDeviceQueue2 +GLAD_API_CALL PFN_vkGetEventStatus glad_vkGetEventStatus; +#define vkGetEventStatus glad_vkGetEventStatus +GLAD_API_CALL PFN_vkGetFenceStatus glad_vkGetFenceStatus; +#define vkGetFenceStatus glad_vkGetFenceStatus +GLAD_API_CALL PFN_vkGetImageMemoryRequirements glad_vkGetImageMemoryRequirements; +#define vkGetImageMemoryRequirements glad_vkGetImageMemoryRequirements +GLAD_API_CALL PFN_vkGetImageMemoryRequirements2 glad_vkGetImageMemoryRequirements2; +#define vkGetImageMemoryRequirements2 glad_vkGetImageMemoryRequirements2 +GLAD_API_CALL PFN_vkGetImageSparseMemoryRequirements glad_vkGetImageSparseMemoryRequirements; +#define vkGetImageSparseMemoryRequirements glad_vkGetImageSparseMemoryRequirements +GLAD_API_CALL PFN_vkGetImageSparseMemoryRequirements2 glad_vkGetImageSparseMemoryRequirements2; +#define vkGetImageSparseMemoryRequirements2 glad_vkGetImageSparseMemoryRequirements2 +GLAD_API_CALL PFN_vkGetImageSubresourceLayout glad_vkGetImageSubresourceLayout; +#define vkGetImageSubresourceLayout glad_vkGetImageSubresourceLayout +GLAD_API_CALL PFN_vkGetInstanceProcAddr glad_vkGetInstanceProcAddr; +#define vkGetInstanceProcAddr glad_vkGetInstanceProcAddr +GLAD_API_CALL PFN_vkGetPhysicalDeviceExternalBufferProperties glad_vkGetPhysicalDeviceExternalBufferProperties; +#define vkGetPhysicalDeviceExternalBufferProperties glad_vkGetPhysicalDeviceExternalBufferProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceExternalFenceProperties glad_vkGetPhysicalDeviceExternalFenceProperties; +#define vkGetPhysicalDeviceExternalFenceProperties glad_vkGetPhysicalDeviceExternalFenceProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceExternalSemaphoreProperties glad_vkGetPhysicalDeviceExternalSemaphoreProperties; +#define vkGetPhysicalDeviceExternalSemaphoreProperties glad_vkGetPhysicalDeviceExternalSemaphoreProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceFeatures glad_vkGetPhysicalDeviceFeatures; +#define vkGetPhysicalDeviceFeatures glad_vkGetPhysicalDeviceFeatures +GLAD_API_CALL PFN_vkGetPhysicalDeviceFeatures2 glad_vkGetPhysicalDeviceFeatures2; +#define vkGetPhysicalDeviceFeatures2 glad_vkGetPhysicalDeviceFeatures2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceFormatProperties glad_vkGetPhysicalDeviceFormatProperties; +#define vkGetPhysicalDeviceFormatProperties glad_vkGetPhysicalDeviceFormatProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceFormatProperties2 glad_vkGetPhysicalDeviceFormatProperties2; +#define vkGetPhysicalDeviceFormatProperties2 glad_vkGetPhysicalDeviceFormatProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceImageFormatProperties glad_vkGetPhysicalDeviceImageFormatProperties; +#define vkGetPhysicalDeviceImageFormatProperties glad_vkGetPhysicalDeviceImageFormatProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceImageFormatProperties2 glad_vkGetPhysicalDeviceImageFormatProperties2; +#define vkGetPhysicalDeviceImageFormatProperties2 glad_vkGetPhysicalDeviceImageFormatProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceMemoryProperties glad_vkGetPhysicalDeviceMemoryProperties; +#define vkGetPhysicalDeviceMemoryProperties glad_vkGetPhysicalDeviceMemoryProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceMemoryProperties2 glad_vkGetPhysicalDeviceMemoryProperties2; +#define vkGetPhysicalDeviceMemoryProperties2 glad_vkGetPhysicalDeviceMemoryProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDevicePresentRectanglesKHR glad_vkGetPhysicalDevicePresentRectanglesKHR; +#define vkGetPhysicalDevicePresentRectanglesKHR glad_vkGetPhysicalDevicePresentRectanglesKHR +GLAD_API_CALL PFN_vkGetPhysicalDeviceProperties glad_vkGetPhysicalDeviceProperties; +#define vkGetPhysicalDeviceProperties glad_vkGetPhysicalDeviceProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceProperties2 glad_vkGetPhysicalDeviceProperties2; +#define vkGetPhysicalDeviceProperties2 glad_vkGetPhysicalDeviceProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceQueueFamilyProperties glad_vkGetPhysicalDeviceQueueFamilyProperties; +#define vkGetPhysicalDeviceQueueFamilyProperties glad_vkGetPhysicalDeviceQueueFamilyProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceQueueFamilyProperties2 glad_vkGetPhysicalDeviceQueueFamilyProperties2; +#define vkGetPhysicalDeviceQueueFamilyProperties2 glad_vkGetPhysicalDeviceQueueFamilyProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceSparseImageFormatProperties glad_vkGetPhysicalDeviceSparseImageFormatProperties; +#define vkGetPhysicalDeviceSparseImageFormatProperties glad_vkGetPhysicalDeviceSparseImageFormatProperties +GLAD_API_CALL PFN_vkGetPhysicalDeviceSparseImageFormatProperties2 glad_vkGetPhysicalDeviceSparseImageFormatProperties2; +#define vkGetPhysicalDeviceSparseImageFormatProperties2 glad_vkGetPhysicalDeviceSparseImageFormatProperties2 +GLAD_API_CALL PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR glad_vkGetPhysicalDeviceSurfaceCapabilitiesKHR; +#define vkGetPhysicalDeviceSurfaceCapabilitiesKHR glad_vkGetPhysicalDeviceSurfaceCapabilitiesKHR +GLAD_API_CALL PFN_vkGetPhysicalDeviceSurfaceFormatsKHR glad_vkGetPhysicalDeviceSurfaceFormatsKHR; +#define vkGetPhysicalDeviceSurfaceFormatsKHR glad_vkGetPhysicalDeviceSurfaceFormatsKHR +GLAD_API_CALL PFN_vkGetPhysicalDeviceSurfacePresentModesKHR glad_vkGetPhysicalDeviceSurfacePresentModesKHR; +#define vkGetPhysicalDeviceSurfacePresentModesKHR glad_vkGetPhysicalDeviceSurfacePresentModesKHR +GLAD_API_CALL PFN_vkGetPhysicalDeviceSurfaceSupportKHR glad_vkGetPhysicalDeviceSurfaceSupportKHR; +#define vkGetPhysicalDeviceSurfaceSupportKHR glad_vkGetPhysicalDeviceSurfaceSupportKHR +GLAD_API_CALL PFN_vkGetPipelineCacheData glad_vkGetPipelineCacheData; +#define vkGetPipelineCacheData glad_vkGetPipelineCacheData +GLAD_API_CALL PFN_vkGetQueryPoolResults glad_vkGetQueryPoolResults; +#define vkGetQueryPoolResults glad_vkGetQueryPoolResults +GLAD_API_CALL PFN_vkGetRenderAreaGranularity glad_vkGetRenderAreaGranularity; +#define vkGetRenderAreaGranularity glad_vkGetRenderAreaGranularity +GLAD_API_CALL PFN_vkGetSwapchainImagesKHR glad_vkGetSwapchainImagesKHR; +#define vkGetSwapchainImagesKHR glad_vkGetSwapchainImagesKHR +GLAD_API_CALL PFN_vkInvalidateMappedMemoryRanges glad_vkInvalidateMappedMemoryRanges; +#define vkInvalidateMappedMemoryRanges glad_vkInvalidateMappedMemoryRanges +GLAD_API_CALL PFN_vkMapMemory glad_vkMapMemory; +#define vkMapMemory glad_vkMapMemory +GLAD_API_CALL PFN_vkMergePipelineCaches glad_vkMergePipelineCaches; +#define vkMergePipelineCaches glad_vkMergePipelineCaches +GLAD_API_CALL PFN_vkQueueBindSparse glad_vkQueueBindSparse; +#define vkQueueBindSparse glad_vkQueueBindSparse +GLAD_API_CALL PFN_vkQueuePresentKHR glad_vkQueuePresentKHR; +#define vkQueuePresentKHR glad_vkQueuePresentKHR +GLAD_API_CALL PFN_vkQueueSubmit glad_vkQueueSubmit; +#define vkQueueSubmit glad_vkQueueSubmit +GLAD_API_CALL PFN_vkQueueWaitIdle glad_vkQueueWaitIdle; +#define vkQueueWaitIdle glad_vkQueueWaitIdle +GLAD_API_CALL PFN_vkResetCommandBuffer glad_vkResetCommandBuffer; +#define vkResetCommandBuffer glad_vkResetCommandBuffer +GLAD_API_CALL PFN_vkResetCommandPool glad_vkResetCommandPool; +#define vkResetCommandPool glad_vkResetCommandPool +GLAD_API_CALL PFN_vkResetDescriptorPool glad_vkResetDescriptorPool; +#define vkResetDescriptorPool glad_vkResetDescriptorPool +GLAD_API_CALL PFN_vkResetEvent glad_vkResetEvent; +#define vkResetEvent glad_vkResetEvent +GLAD_API_CALL PFN_vkResetFences glad_vkResetFences; +#define vkResetFences glad_vkResetFences +GLAD_API_CALL PFN_vkSetEvent glad_vkSetEvent; +#define vkSetEvent glad_vkSetEvent +GLAD_API_CALL PFN_vkTrimCommandPool glad_vkTrimCommandPool; +#define vkTrimCommandPool glad_vkTrimCommandPool +GLAD_API_CALL PFN_vkUnmapMemory glad_vkUnmapMemory; +#define vkUnmapMemory glad_vkUnmapMemory +GLAD_API_CALL PFN_vkUpdateDescriptorSetWithTemplate glad_vkUpdateDescriptorSetWithTemplate; +#define vkUpdateDescriptorSetWithTemplate glad_vkUpdateDescriptorSetWithTemplate +GLAD_API_CALL PFN_vkUpdateDescriptorSets glad_vkUpdateDescriptorSets; +#define vkUpdateDescriptorSets glad_vkUpdateDescriptorSets +GLAD_API_CALL PFN_vkWaitForFences glad_vkWaitForFences; +#define vkWaitForFences glad_vkWaitForFences + + +GLAD_API_CALL int gladLoadVulkanUserPtr( VkPhysicalDevice physical_device, GLADuserptrloadfunc load, void *userptr); +GLAD_API_CALL int gladLoadVulkan( VkPhysicalDevice physical_device, GLADloadfunc load); + + + + + + +#ifdef __cplusplus +} +#endif +#endif diff --git a/external/glfw-3.3.4/deps/glad_gl.c b/external/glfw-3.3.4/deps/glad_gl.c new file mode 100644 index 0000000..2d4c87f --- /dev/null +++ b/external/glfw-3.3.4/deps/glad_gl.c @@ -0,0 +1,1791 @@ +#include +#include +#include +#include + +#ifndef GLAD_IMPL_UTIL_C_ +#define GLAD_IMPL_UTIL_C_ + +#ifdef _MSC_VER +#define GLAD_IMPL_UTIL_SSCANF sscanf_s +#else +#define GLAD_IMPL_UTIL_SSCANF sscanf +#endif + +#endif /* GLAD_IMPL_UTIL_C_ */ + + +int GLAD_GL_VERSION_1_0 = 0; +int GLAD_GL_VERSION_1_1 = 0; +int GLAD_GL_VERSION_1_2 = 0; +int GLAD_GL_VERSION_1_3 = 0; +int GLAD_GL_VERSION_1_4 = 0; +int GLAD_GL_VERSION_1_5 = 0; +int GLAD_GL_VERSION_2_0 = 0; +int GLAD_GL_VERSION_2_1 = 0; +int GLAD_GL_VERSION_3_0 = 0; +int GLAD_GL_VERSION_3_1 = 0; +int GLAD_GL_VERSION_3_2 = 0; +int GLAD_GL_VERSION_3_3 = 0; +int GLAD_GL_ARB_multisample = 0; +int GLAD_GL_ARB_robustness = 0; +int GLAD_GL_KHR_debug = 0; + + + +PFNGLACCUMPROC glad_glAccum = NULL; +PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL; +PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL; +PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL; +PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL; +PFNGLATTACHSHADERPROC glad_glAttachShader = NULL; +PFNGLBEGINPROC glad_glBegin = NULL; +PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL; +PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL; +PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL; +PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL; +PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL; +PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL; +PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL; +PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL; +PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL; +PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL; +PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL; +PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL; +PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL; +PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL; +PFNGLBITMAPPROC glad_glBitmap = NULL; +PFNGLBLENDCOLORPROC glad_glBlendColor = NULL; +PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL; +PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL; +PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL; +PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL; +PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL; +PFNGLBUFFERDATAPROC glad_glBufferData = NULL; +PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL; +PFNGLCALLLISTPROC glad_glCallList = NULL; +PFNGLCALLLISTSPROC glad_glCallLists = NULL; +PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL; +PFNGLCLAMPCOLORPROC glad_glClampColor = NULL; +PFNGLCLEARPROC glad_glClear = NULL; +PFNGLCLEARACCUMPROC glad_glClearAccum = NULL; +PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL; +PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL; +PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL; +PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL; +PFNGLCLEARCOLORPROC glad_glClearColor = NULL; +PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL; +PFNGLCLEARINDEXPROC glad_glClearIndex = NULL; +PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL; +PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture = NULL; +PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL; +PFNGLCLIPPLANEPROC glad_glClipPlane = NULL; +PFNGLCOLOR3BPROC glad_glColor3b = NULL; +PFNGLCOLOR3BVPROC glad_glColor3bv = NULL; +PFNGLCOLOR3DPROC glad_glColor3d = NULL; +PFNGLCOLOR3DVPROC glad_glColor3dv = NULL; +PFNGLCOLOR3FPROC glad_glColor3f = NULL; +PFNGLCOLOR3FVPROC glad_glColor3fv = NULL; +PFNGLCOLOR3IPROC glad_glColor3i = NULL; +PFNGLCOLOR3IVPROC glad_glColor3iv = NULL; +PFNGLCOLOR3SPROC glad_glColor3s = NULL; +PFNGLCOLOR3SVPROC glad_glColor3sv = NULL; +PFNGLCOLOR3UBPROC glad_glColor3ub = NULL; +PFNGLCOLOR3UBVPROC glad_glColor3ubv = NULL; +PFNGLCOLOR3UIPROC glad_glColor3ui = NULL; +PFNGLCOLOR3UIVPROC glad_glColor3uiv = NULL; +PFNGLCOLOR3USPROC glad_glColor3us = NULL; +PFNGLCOLOR3USVPROC glad_glColor3usv = NULL; +PFNGLCOLOR4BPROC glad_glColor4b = NULL; +PFNGLCOLOR4BVPROC glad_glColor4bv = NULL; +PFNGLCOLOR4DPROC glad_glColor4d = NULL; +PFNGLCOLOR4DVPROC glad_glColor4dv = NULL; +PFNGLCOLOR4FPROC glad_glColor4f = NULL; +PFNGLCOLOR4FVPROC glad_glColor4fv = NULL; +PFNGLCOLOR4IPROC glad_glColor4i = NULL; +PFNGLCOLOR4IVPROC glad_glColor4iv = NULL; +PFNGLCOLOR4SPROC glad_glColor4s = NULL; +PFNGLCOLOR4SVPROC glad_glColor4sv = NULL; +PFNGLCOLOR4UBPROC glad_glColor4ub = NULL; +PFNGLCOLOR4UBVPROC glad_glColor4ubv = NULL; +PFNGLCOLOR4UIPROC glad_glColor4ui = NULL; +PFNGLCOLOR4UIVPROC glad_glColor4uiv = NULL; +PFNGLCOLOR4USPROC glad_glColor4us = NULL; +PFNGLCOLOR4USVPROC glad_glColor4usv = NULL; +PFNGLCOLORMASKPROC glad_glColorMask = NULL; +PFNGLCOLORMASKIPROC glad_glColorMaski = NULL; +PFNGLCOLORMATERIALPROC glad_glColorMaterial = NULL; +PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL; +PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL; +PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL; +PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL; +PFNGLCOLORPOINTERPROC glad_glColorPointer = NULL; +PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL; +PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL; +PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL; +PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL; +PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL; +PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL; +PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL; +PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL; +PFNGLCOPYPIXELSPROC glad_glCopyPixels = NULL; +PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL; +PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL; +PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL; +PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL; +PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL; +PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL; +PFNGLCREATESHADERPROC glad_glCreateShader = NULL; +PFNGLCULLFACEPROC glad_glCullFace = NULL; +PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL; +PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL; +PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL; +PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL; +PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL; +PFNGLDELETELISTSPROC glad_glDeleteLists = NULL; +PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL; +PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL; +PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL; +PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL; +PFNGLDELETESHADERPROC glad_glDeleteShader = NULL; +PFNGLDELETESYNCPROC glad_glDeleteSync = NULL; +PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL; +PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL; +PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL; +PFNGLDEPTHMASKPROC glad_glDepthMask = NULL; +PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL; +PFNGLDETACHSHADERPROC glad_glDetachShader = NULL; +PFNGLDISABLEPROC glad_glDisable = NULL; +PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState = NULL; +PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL; +PFNGLDISABLEIPROC glad_glDisablei = NULL; +PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL; +PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL; +PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL; +PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL; +PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL; +PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL; +PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL; +PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL; +PFNGLDRAWPIXELSPROC glad_glDrawPixels = NULL; +PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL; +PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL; +PFNGLEDGEFLAGPROC glad_glEdgeFlag = NULL; +PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer = NULL; +PFNGLEDGEFLAGVPROC glad_glEdgeFlagv = NULL; +PFNGLENABLEPROC glad_glEnable = NULL; +PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState = NULL; +PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL; +PFNGLENABLEIPROC glad_glEnablei = NULL; +PFNGLENDPROC glad_glEnd = NULL; +PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL; +PFNGLENDLISTPROC glad_glEndList = NULL; +PFNGLENDQUERYPROC glad_glEndQuery = NULL; +PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL; +PFNGLEVALCOORD1DPROC glad_glEvalCoord1d = NULL; +PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv = NULL; +PFNGLEVALCOORD1FPROC glad_glEvalCoord1f = NULL; +PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv = NULL; +PFNGLEVALCOORD2DPROC glad_glEvalCoord2d = NULL; +PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv = NULL; +PFNGLEVALCOORD2FPROC glad_glEvalCoord2f = NULL; +PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv = NULL; +PFNGLEVALMESH1PROC glad_glEvalMesh1 = NULL; +PFNGLEVALMESH2PROC glad_glEvalMesh2 = NULL; +PFNGLEVALPOINT1PROC glad_glEvalPoint1 = NULL; +PFNGLEVALPOINT2PROC glad_glEvalPoint2 = NULL; +PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer = NULL; +PFNGLFENCESYNCPROC glad_glFenceSync = NULL; +PFNGLFINISHPROC glad_glFinish = NULL; +PFNGLFLUSHPROC glad_glFlush = NULL; +PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL; +PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer = NULL; +PFNGLFOGCOORDDPROC glad_glFogCoordd = NULL; +PFNGLFOGCOORDDVPROC glad_glFogCoorddv = NULL; +PFNGLFOGCOORDFPROC glad_glFogCoordf = NULL; +PFNGLFOGCOORDFVPROC glad_glFogCoordfv = NULL; +PFNGLFOGFPROC glad_glFogf = NULL; +PFNGLFOGFVPROC glad_glFogfv = NULL; +PFNGLFOGIPROC glad_glFogi = NULL; +PFNGLFOGIVPROC glad_glFogiv = NULL; +PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL; +PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL; +PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL; +PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL; +PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL; +PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL; +PFNGLFRONTFACEPROC glad_glFrontFace = NULL; +PFNGLFRUSTUMPROC glad_glFrustum = NULL; +PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL; +PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL; +PFNGLGENLISTSPROC glad_glGenLists = NULL; +PFNGLGENQUERIESPROC glad_glGenQueries = NULL; +PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL; +PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL; +PFNGLGENTEXTURESPROC glad_glGenTextures = NULL; +PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL; +PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL; +PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL; +PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL; +PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL; +PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL; +PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL; +PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL; +PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL; +PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL; +PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL; +PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL; +PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL; +PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL; +PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL; +PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL; +PFNGLGETCLIPPLANEPROC glad_glGetClipPlane = NULL; +PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL; +PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL; +PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL; +PFNGLGETERRORPROC glad_glGetError = NULL; +PFNGLGETFLOATVPROC glad_glGetFloatv = NULL; +PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL; +PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL; +PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL; +PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB = NULL; +PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL; +PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL; +PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL; +PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL; +PFNGLGETLIGHTFVPROC glad_glGetLightfv = NULL; +PFNGLGETLIGHTIVPROC glad_glGetLightiv = NULL; +PFNGLGETMAPDVPROC glad_glGetMapdv = NULL; +PFNGLGETMAPFVPROC glad_glGetMapfv = NULL; +PFNGLGETMAPIVPROC glad_glGetMapiv = NULL; +PFNGLGETMATERIALFVPROC glad_glGetMaterialfv = NULL; +PFNGLGETMATERIALIVPROC glad_glGetMaterialiv = NULL; +PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL; +PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL; +PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL; +PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv = NULL; +PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv = NULL; +PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv = NULL; +PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL; +PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple = NULL; +PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL; +PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL; +PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL; +PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL; +PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL; +PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL; +PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL; +PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL; +PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL; +PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL; +PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL; +PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL; +PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL; +PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL; +PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL; +PFNGLGETSTRINGPROC glad_glGetString = NULL; +PFNGLGETSTRINGIPROC glad_glGetStringi = NULL; +PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL; +PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv = NULL; +PFNGLGETTEXENVIVPROC glad_glGetTexEnviv = NULL; +PFNGLGETTEXGENDVPROC glad_glGetTexGendv = NULL; +PFNGLGETTEXGENFVPROC glad_glGetTexGenfv = NULL; +PFNGLGETTEXGENIVPROC glad_glGetTexGeniv = NULL; +PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL; +PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL; +PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL; +PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL; +PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL; +PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL; +PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL; +PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL; +PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL; +PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL; +PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL; +PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL; +PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL; +PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL; +PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL; +PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL; +PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL; +PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL; +PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL; +PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL; +PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB = NULL; +PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB = NULL; +PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB = NULL; +PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB = NULL; +PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB = NULL; +PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB = NULL; +PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB = NULL; +PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB = NULL; +PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB = NULL; +PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB = NULL; +PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB = NULL; +PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB = NULL; +PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB = NULL; +PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB = NULL; +PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB = NULL; +PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB = NULL; +PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB = NULL; +PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB = NULL; +PFNGLHINTPROC glad_glHint = NULL; +PFNGLINDEXMASKPROC glad_glIndexMask = NULL; +PFNGLINDEXPOINTERPROC glad_glIndexPointer = NULL; +PFNGLINDEXDPROC glad_glIndexd = NULL; +PFNGLINDEXDVPROC glad_glIndexdv = NULL; +PFNGLINDEXFPROC glad_glIndexf = NULL; +PFNGLINDEXFVPROC glad_glIndexfv = NULL; +PFNGLINDEXIPROC glad_glIndexi = NULL; +PFNGLINDEXIVPROC glad_glIndexiv = NULL; +PFNGLINDEXSPROC glad_glIndexs = NULL; +PFNGLINDEXSVPROC glad_glIndexsv = NULL; +PFNGLINDEXUBPROC glad_glIndexub = NULL; +PFNGLINDEXUBVPROC glad_glIndexubv = NULL; +PFNGLINITNAMESPROC glad_glInitNames = NULL; +PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays = NULL; +PFNGLISBUFFERPROC glad_glIsBuffer = NULL; +PFNGLISENABLEDPROC glad_glIsEnabled = NULL; +PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL; +PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL; +PFNGLISLISTPROC glad_glIsList = NULL; +PFNGLISPROGRAMPROC glad_glIsProgram = NULL; +PFNGLISQUERYPROC glad_glIsQuery = NULL; +PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL; +PFNGLISSAMPLERPROC glad_glIsSampler = NULL; +PFNGLISSHADERPROC glad_glIsShader = NULL; +PFNGLISSYNCPROC glad_glIsSync = NULL; +PFNGLISTEXTUREPROC glad_glIsTexture = NULL; +PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL; +PFNGLLIGHTMODELFPROC glad_glLightModelf = NULL; +PFNGLLIGHTMODELFVPROC glad_glLightModelfv = NULL; +PFNGLLIGHTMODELIPROC glad_glLightModeli = NULL; +PFNGLLIGHTMODELIVPROC glad_glLightModeliv = NULL; +PFNGLLIGHTFPROC glad_glLightf = NULL; +PFNGLLIGHTFVPROC glad_glLightfv = NULL; +PFNGLLIGHTIPROC glad_glLighti = NULL; +PFNGLLIGHTIVPROC glad_glLightiv = NULL; +PFNGLLINESTIPPLEPROC glad_glLineStipple = NULL; +PFNGLLINEWIDTHPROC glad_glLineWidth = NULL; +PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL; +PFNGLLISTBASEPROC glad_glListBase = NULL; +PFNGLLOADIDENTITYPROC glad_glLoadIdentity = NULL; +PFNGLLOADMATRIXDPROC glad_glLoadMatrixd = NULL; +PFNGLLOADMATRIXFPROC glad_glLoadMatrixf = NULL; +PFNGLLOADNAMEPROC glad_glLoadName = NULL; +PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd = NULL; +PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf = NULL; +PFNGLLOGICOPPROC glad_glLogicOp = NULL; +PFNGLMAP1DPROC glad_glMap1d = NULL; +PFNGLMAP1FPROC glad_glMap1f = NULL; +PFNGLMAP2DPROC glad_glMap2d = NULL; +PFNGLMAP2FPROC glad_glMap2f = NULL; +PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL; +PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL; +PFNGLMAPGRID1DPROC glad_glMapGrid1d = NULL; +PFNGLMAPGRID1FPROC glad_glMapGrid1f = NULL; +PFNGLMAPGRID2DPROC glad_glMapGrid2d = NULL; +PFNGLMAPGRID2FPROC glad_glMapGrid2f = NULL; +PFNGLMATERIALFPROC glad_glMaterialf = NULL; +PFNGLMATERIALFVPROC glad_glMaterialfv = NULL; +PFNGLMATERIALIPROC glad_glMateriali = NULL; +PFNGLMATERIALIVPROC glad_glMaterialiv = NULL; +PFNGLMATRIXMODEPROC glad_glMatrixMode = NULL; +PFNGLMULTMATRIXDPROC glad_glMultMatrixd = NULL; +PFNGLMULTMATRIXFPROC glad_glMultMatrixf = NULL; +PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd = NULL; +PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf = NULL; +PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL; +PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL; +PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL; +PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d = NULL; +PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv = NULL; +PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f = NULL; +PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv = NULL; +PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i = NULL; +PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv = NULL; +PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s = NULL; +PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv = NULL; +PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d = NULL; +PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv = NULL; +PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f = NULL; +PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv = NULL; +PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i = NULL; +PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv = NULL; +PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s = NULL; +PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv = NULL; +PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d = NULL; +PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv = NULL; +PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f = NULL; +PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv = NULL; +PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i = NULL; +PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv = NULL; +PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s = NULL; +PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv = NULL; +PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d = NULL; +PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv = NULL; +PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f = NULL; +PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv = NULL; +PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i = NULL; +PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv = NULL; +PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s = NULL; +PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv = NULL; +PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL; +PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL; +PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL; +PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL; +PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL; +PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL; +PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL; +PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL; +PFNGLNEWLISTPROC glad_glNewList = NULL; +PFNGLNORMAL3BPROC glad_glNormal3b = NULL; +PFNGLNORMAL3BVPROC glad_glNormal3bv = NULL; +PFNGLNORMAL3DPROC glad_glNormal3d = NULL; +PFNGLNORMAL3DVPROC glad_glNormal3dv = NULL; +PFNGLNORMAL3FPROC glad_glNormal3f = NULL; +PFNGLNORMAL3FVPROC glad_glNormal3fv = NULL; +PFNGLNORMAL3IPROC glad_glNormal3i = NULL; +PFNGLNORMAL3IVPROC glad_glNormal3iv = NULL; +PFNGLNORMAL3SPROC glad_glNormal3s = NULL; +PFNGLNORMAL3SVPROC glad_glNormal3sv = NULL; +PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL; +PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL; +PFNGLNORMALPOINTERPROC glad_glNormalPointer = NULL; +PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL; +PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL; +PFNGLORTHOPROC glad_glOrtho = NULL; +PFNGLPASSTHROUGHPROC glad_glPassThrough = NULL; +PFNGLPIXELMAPFVPROC glad_glPixelMapfv = NULL; +PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv = NULL; +PFNGLPIXELMAPUSVPROC glad_glPixelMapusv = NULL; +PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL; +PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL; +PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf = NULL; +PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi = NULL; +PFNGLPIXELZOOMPROC glad_glPixelZoom = NULL; +PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL; +PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL; +PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL; +PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL; +PFNGLPOINTSIZEPROC glad_glPointSize = NULL; +PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL; +PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL; +PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple = NULL; +PFNGLPOPATTRIBPROC glad_glPopAttrib = NULL; +PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib = NULL; +PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL; +PFNGLPOPMATRIXPROC glad_glPopMatrix = NULL; +PFNGLPOPNAMEPROC glad_glPopName = NULL; +PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL; +PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures = NULL; +PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL; +PFNGLPUSHATTRIBPROC glad_glPushAttrib = NULL; +PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib = NULL; +PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL; +PFNGLPUSHMATRIXPROC glad_glPushMatrix = NULL; +PFNGLPUSHNAMEPROC glad_glPushName = NULL; +PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL; +PFNGLRASTERPOS2DPROC glad_glRasterPos2d = NULL; +PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv = NULL; +PFNGLRASTERPOS2FPROC glad_glRasterPos2f = NULL; +PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv = NULL; +PFNGLRASTERPOS2IPROC glad_glRasterPos2i = NULL; +PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv = NULL; +PFNGLRASTERPOS2SPROC glad_glRasterPos2s = NULL; +PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv = NULL; +PFNGLRASTERPOS3DPROC glad_glRasterPos3d = NULL; +PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv = NULL; +PFNGLRASTERPOS3FPROC glad_glRasterPos3f = NULL; +PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv = NULL; +PFNGLRASTERPOS3IPROC glad_glRasterPos3i = NULL; +PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv = NULL; +PFNGLRASTERPOS3SPROC glad_glRasterPos3s = NULL; +PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv = NULL; +PFNGLRASTERPOS4DPROC glad_glRasterPos4d = NULL; +PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv = NULL; +PFNGLRASTERPOS4FPROC glad_glRasterPos4f = NULL; +PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv = NULL; +PFNGLRASTERPOS4IPROC glad_glRasterPos4i = NULL; +PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv = NULL; +PFNGLRASTERPOS4SPROC glad_glRasterPos4s = NULL; +PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv = NULL; +PFNGLREADBUFFERPROC glad_glReadBuffer = NULL; +PFNGLREADPIXELSPROC glad_glReadPixels = NULL; +PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL; +PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB = NULL; +PFNGLRECTDPROC glad_glRectd = NULL; +PFNGLRECTDVPROC glad_glRectdv = NULL; +PFNGLRECTFPROC glad_glRectf = NULL; +PFNGLRECTFVPROC glad_glRectfv = NULL; +PFNGLRECTIPROC glad_glRecti = NULL; +PFNGLRECTIVPROC glad_glRectiv = NULL; +PFNGLRECTSPROC glad_glRects = NULL; +PFNGLRECTSVPROC glad_glRectsv = NULL; +PFNGLRENDERMODEPROC glad_glRenderMode = NULL; +PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL; +PFNGLROTATEDPROC glad_glRotated = NULL; +PFNGLROTATEFPROC glad_glRotatef = NULL; +PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL; +PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB = NULL; +PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL; +PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL; +PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL; +PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL; +PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL; +PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL; +PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL; +PFNGLSCALEDPROC glad_glScaled = NULL; +PFNGLSCALEFPROC glad_glScalef = NULL; +PFNGLSCISSORPROC glad_glScissor = NULL; +PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b = NULL; +PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv = NULL; +PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d = NULL; +PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv = NULL; +PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f = NULL; +PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv = NULL; +PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i = NULL; +PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv = NULL; +PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s = NULL; +PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv = NULL; +PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub = NULL; +PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv = NULL; +PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui = NULL; +PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv = NULL; +PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us = NULL; +PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv = NULL; +PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL; +PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL; +PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer = NULL; +PFNGLSELECTBUFFERPROC glad_glSelectBuffer = NULL; +PFNGLSHADEMODELPROC glad_glShadeModel = NULL; +PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL; +PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL; +PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL; +PFNGLSTENCILMASKPROC glad_glStencilMask = NULL; +PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL; +PFNGLSTENCILOPPROC glad_glStencilOp = NULL; +PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL; +PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL; +PFNGLTEXCOORD1DPROC glad_glTexCoord1d = NULL; +PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv = NULL; +PFNGLTEXCOORD1FPROC glad_glTexCoord1f = NULL; +PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv = NULL; +PFNGLTEXCOORD1IPROC glad_glTexCoord1i = NULL; +PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv = NULL; +PFNGLTEXCOORD1SPROC glad_glTexCoord1s = NULL; +PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv = NULL; +PFNGLTEXCOORD2DPROC glad_glTexCoord2d = NULL; +PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv = NULL; +PFNGLTEXCOORD2FPROC glad_glTexCoord2f = NULL; +PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv = NULL; +PFNGLTEXCOORD2IPROC glad_glTexCoord2i = NULL; +PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv = NULL; +PFNGLTEXCOORD2SPROC glad_glTexCoord2s = NULL; +PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv = NULL; +PFNGLTEXCOORD3DPROC glad_glTexCoord3d = NULL; +PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv = NULL; +PFNGLTEXCOORD3FPROC glad_glTexCoord3f = NULL; +PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv = NULL; +PFNGLTEXCOORD3IPROC glad_glTexCoord3i = NULL; +PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv = NULL; +PFNGLTEXCOORD3SPROC glad_glTexCoord3s = NULL; +PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv = NULL; +PFNGLTEXCOORD4DPROC glad_glTexCoord4d = NULL; +PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv = NULL; +PFNGLTEXCOORD4FPROC glad_glTexCoord4f = NULL; +PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv = NULL; +PFNGLTEXCOORD4IPROC glad_glTexCoord4i = NULL; +PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv = NULL; +PFNGLTEXCOORD4SPROC glad_glTexCoord4s = NULL; +PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv = NULL; +PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL; +PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL; +PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL; +PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL; +PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL; +PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL; +PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL; +PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL; +PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer = NULL; +PFNGLTEXENVFPROC glad_glTexEnvf = NULL; +PFNGLTEXENVFVPROC glad_glTexEnvfv = NULL; +PFNGLTEXENVIPROC glad_glTexEnvi = NULL; +PFNGLTEXENVIVPROC glad_glTexEnviv = NULL; +PFNGLTEXGENDPROC glad_glTexGend = NULL; +PFNGLTEXGENDVPROC glad_glTexGendv = NULL; +PFNGLTEXGENFPROC glad_glTexGenf = NULL; +PFNGLTEXGENFVPROC glad_glTexGenfv = NULL; +PFNGLTEXGENIPROC glad_glTexGeni = NULL; +PFNGLTEXGENIVPROC glad_glTexGeniv = NULL; +PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL; +PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL; +PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL; +PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL; +PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL; +PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL; +PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL; +PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL; +PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL; +PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL; +PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL; +PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL; +PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL; +PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL; +PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL; +PFNGLTRANSLATEDPROC glad_glTranslated = NULL; +PFNGLTRANSLATEFPROC glad_glTranslatef = NULL; +PFNGLUNIFORM1FPROC glad_glUniform1f = NULL; +PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL; +PFNGLUNIFORM1IPROC glad_glUniform1i = NULL; +PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL; +PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL; +PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL; +PFNGLUNIFORM2FPROC glad_glUniform2f = NULL; +PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL; +PFNGLUNIFORM2IPROC glad_glUniform2i = NULL; +PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL; +PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL; +PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL; +PFNGLUNIFORM3FPROC glad_glUniform3f = NULL; +PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL; +PFNGLUNIFORM3IPROC glad_glUniform3i = NULL; +PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL; +PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL; +PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL; +PFNGLUNIFORM4FPROC glad_glUniform4f = NULL; +PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL; +PFNGLUNIFORM4IPROC glad_glUniform4i = NULL; +PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL; +PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL; +PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL; +PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL; +PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL; +PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL; +PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL; +PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL; +PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL; +PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL; +PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL; +PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL; +PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL; +PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL; +PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL; +PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL; +PFNGLVERTEX2DPROC glad_glVertex2d = NULL; +PFNGLVERTEX2DVPROC glad_glVertex2dv = NULL; +PFNGLVERTEX2FPROC glad_glVertex2f = NULL; +PFNGLVERTEX2FVPROC glad_glVertex2fv = NULL; +PFNGLVERTEX2IPROC glad_glVertex2i = NULL; +PFNGLVERTEX2IVPROC glad_glVertex2iv = NULL; +PFNGLVERTEX2SPROC glad_glVertex2s = NULL; +PFNGLVERTEX2SVPROC glad_glVertex2sv = NULL; +PFNGLVERTEX3DPROC glad_glVertex3d = NULL; +PFNGLVERTEX3DVPROC glad_glVertex3dv = NULL; +PFNGLVERTEX3FPROC glad_glVertex3f = NULL; +PFNGLVERTEX3FVPROC glad_glVertex3fv = NULL; +PFNGLVERTEX3IPROC glad_glVertex3i = NULL; +PFNGLVERTEX3IVPROC glad_glVertex3iv = NULL; +PFNGLVERTEX3SPROC glad_glVertex3s = NULL; +PFNGLVERTEX3SVPROC glad_glVertex3sv = NULL; +PFNGLVERTEX4DPROC glad_glVertex4d = NULL; +PFNGLVERTEX4DVPROC glad_glVertex4dv = NULL; +PFNGLVERTEX4FPROC glad_glVertex4f = NULL; +PFNGLVERTEX4FVPROC glad_glVertex4fv = NULL; +PFNGLVERTEX4IPROC glad_glVertex4i = NULL; +PFNGLVERTEX4IVPROC glad_glVertex4iv = NULL; +PFNGLVERTEX4SPROC glad_glVertex4s = NULL; +PFNGLVERTEX4SVPROC glad_glVertex4sv = NULL; +PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL; +PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL; +PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL; +PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL; +PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL; +PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL; +PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL; +PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL; +PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL; +PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL; +PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL; +PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL; +PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL; +PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL; +PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL; +PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL; +PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL; +PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL; +PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL; +PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL; +PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL; +PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL; +PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL; +PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL; +PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL; +PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL; +PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL; +PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL; +PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL; +PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL; +PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL; +PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL; +PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL; +PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL; +PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL; +PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL; +PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL; +PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL; +PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL; +PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL; +PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL; +PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL; +PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL; +PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL; +PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL; +PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL; +PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL; +PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL; +PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL; +PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL; +PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL; +PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL; +PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL; +PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL; +PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL; +PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL; +PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL; +PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL; +PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL; +PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL; +PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL; +PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL; +PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL; +PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL; +PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL; +PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL; +PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL; +PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL; +PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL; +PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL; +PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL; +PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL; +PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL; +PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL; +PFNGLVIEWPORTPROC glad_glViewport = NULL; +PFNGLWAITSYNCPROC glad_glWaitSync = NULL; +PFNGLWINDOWPOS2DPROC glad_glWindowPos2d = NULL; +PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv = NULL; +PFNGLWINDOWPOS2FPROC glad_glWindowPos2f = NULL; +PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv = NULL; +PFNGLWINDOWPOS2IPROC glad_glWindowPos2i = NULL; +PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv = NULL; +PFNGLWINDOWPOS2SPROC glad_glWindowPos2s = NULL; +PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv = NULL; +PFNGLWINDOWPOS3DPROC glad_glWindowPos3d = NULL; +PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv = NULL; +PFNGLWINDOWPOS3FPROC glad_glWindowPos3f = NULL; +PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv = NULL; +PFNGLWINDOWPOS3IPROC glad_glWindowPos3i = NULL; +PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL; +PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL; +PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL; + + +static void glad_gl_load_GL_VERSION_1_0( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_0) return; + glAccum = (PFNGLACCUMPROC) load("glAccum", userptr); + glAlphaFunc = (PFNGLALPHAFUNCPROC) load("glAlphaFunc", userptr); + glBegin = (PFNGLBEGINPROC) load("glBegin", userptr); + glBitmap = (PFNGLBITMAPPROC) load("glBitmap", userptr); + glBlendFunc = (PFNGLBLENDFUNCPROC) load("glBlendFunc", userptr); + glCallList = (PFNGLCALLLISTPROC) load("glCallList", userptr); + glCallLists = (PFNGLCALLLISTSPROC) load("glCallLists", userptr); + glClear = (PFNGLCLEARPROC) load("glClear", userptr); + glClearAccum = (PFNGLCLEARACCUMPROC) load("glClearAccum", userptr); + glClearColor = (PFNGLCLEARCOLORPROC) load("glClearColor", userptr); + glClearDepth = (PFNGLCLEARDEPTHPROC) load("glClearDepth", userptr); + glClearIndex = (PFNGLCLEARINDEXPROC) load("glClearIndex", userptr); + glClearStencil = (PFNGLCLEARSTENCILPROC) load("glClearStencil", userptr); + glClipPlane = (PFNGLCLIPPLANEPROC) load("glClipPlane", userptr); + glColor3b = (PFNGLCOLOR3BPROC) load("glColor3b", userptr); + glColor3bv = (PFNGLCOLOR3BVPROC) load("glColor3bv", userptr); + glColor3d = (PFNGLCOLOR3DPROC) load("glColor3d", userptr); + glColor3dv = (PFNGLCOLOR3DVPROC) load("glColor3dv", userptr); + glColor3f = (PFNGLCOLOR3FPROC) load("glColor3f", userptr); + glColor3fv = (PFNGLCOLOR3FVPROC) load("glColor3fv", userptr); + glColor3i = (PFNGLCOLOR3IPROC) load("glColor3i", userptr); + glColor3iv = (PFNGLCOLOR3IVPROC) load("glColor3iv", userptr); + glColor3s = (PFNGLCOLOR3SPROC) load("glColor3s", userptr); + glColor3sv = (PFNGLCOLOR3SVPROC) load("glColor3sv", userptr); + glColor3ub = (PFNGLCOLOR3UBPROC) load("glColor3ub", userptr); + glColor3ubv = (PFNGLCOLOR3UBVPROC) load("glColor3ubv", userptr); + glColor3ui = (PFNGLCOLOR3UIPROC) load("glColor3ui", userptr); + glColor3uiv = (PFNGLCOLOR3UIVPROC) load("glColor3uiv", userptr); + glColor3us = (PFNGLCOLOR3USPROC) load("glColor3us", userptr); + glColor3usv = (PFNGLCOLOR3USVPROC) load("glColor3usv", userptr); + glColor4b = (PFNGLCOLOR4BPROC) load("glColor4b", userptr); + glColor4bv = (PFNGLCOLOR4BVPROC) load("glColor4bv", userptr); + glColor4d = (PFNGLCOLOR4DPROC) load("glColor4d", userptr); + glColor4dv = (PFNGLCOLOR4DVPROC) load("glColor4dv", userptr); + glColor4f = (PFNGLCOLOR4FPROC) load("glColor4f", userptr); + glColor4fv = (PFNGLCOLOR4FVPROC) load("glColor4fv", userptr); + glColor4i = (PFNGLCOLOR4IPROC) load("glColor4i", userptr); + glColor4iv = (PFNGLCOLOR4IVPROC) load("glColor4iv", userptr); + glColor4s = (PFNGLCOLOR4SPROC) load("glColor4s", userptr); + glColor4sv = (PFNGLCOLOR4SVPROC) load("glColor4sv", userptr); + glColor4ub = (PFNGLCOLOR4UBPROC) load("glColor4ub", userptr); + glColor4ubv = (PFNGLCOLOR4UBVPROC) load("glColor4ubv", userptr); + glColor4ui = (PFNGLCOLOR4UIPROC) load("glColor4ui", userptr); + glColor4uiv = (PFNGLCOLOR4UIVPROC) load("glColor4uiv", userptr); + glColor4us = (PFNGLCOLOR4USPROC) load("glColor4us", userptr); + glColor4usv = (PFNGLCOLOR4USVPROC) load("glColor4usv", userptr); + glColorMask = (PFNGLCOLORMASKPROC) load("glColorMask", userptr); + glColorMaterial = (PFNGLCOLORMATERIALPROC) load("glColorMaterial", userptr); + glCopyPixels = (PFNGLCOPYPIXELSPROC) load("glCopyPixels", userptr); + glCullFace = (PFNGLCULLFACEPROC) load("glCullFace", userptr); + glDeleteLists = (PFNGLDELETELISTSPROC) load("glDeleteLists", userptr); + glDepthFunc = (PFNGLDEPTHFUNCPROC) load("glDepthFunc", userptr); + glDepthMask = (PFNGLDEPTHMASKPROC) load("glDepthMask", userptr); + glDepthRange = (PFNGLDEPTHRANGEPROC) load("glDepthRange", userptr); + glDisable = (PFNGLDISABLEPROC) load("glDisable", userptr); + glDrawBuffer = (PFNGLDRAWBUFFERPROC) load("glDrawBuffer", userptr); + glDrawPixels = (PFNGLDRAWPIXELSPROC) load("glDrawPixels", userptr); + glEdgeFlag = (PFNGLEDGEFLAGPROC) load("glEdgeFlag", userptr); + glEdgeFlagv = (PFNGLEDGEFLAGVPROC) load("glEdgeFlagv", userptr); + glEnable = (PFNGLENABLEPROC) load("glEnable", userptr); + glEnd = (PFNGLENDPROC) load("glEnd", userptr); + glEndList = (PFNGLENDLISTPROC) load("glEndList", userptr); + glEvalCoord1d = (PFNGLEVALCOORD1DPROC) load("glEvalCoord1d", userptr); + glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC) load("glEvalCoord1dv", userptr); + glEvalCoord1f = (PFNGLEVALCOORD1FPROC) load("glEvalCoord1f", userptr); + glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC) load("glEvalCoord1fv", userptr); + glEvalCoord2d = (PFNGLEVALCOORD2DPROC) load("glEvalCoord2d", userptr); + glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC) load("glEvalCoord2dv", userptr); + glEvalCoord2f = (PFNGLEVALCOORD2FPROC) load("glEvalCoord2f", userptr); + glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC) load("glEvalCoord2fv", userptr); + glEvalMesh1 = (PFNGLEVALMESH1PROC) load("glEvalMesh1", userptr); + glEvalMesh2 = (PFNGLEVALMESH2PROC) load("glEvalMesh2", userptr); + glEvalPoint1 = (PFNGLEVALPOINT1PROC) load("glEvalPoint1", userptr); + glEvalPoint2 = (PFNGLEVALPOINT2PROC) load("glEvalPoint2", userptr); + glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC) load("glFeedbackBuffer", userptr); + glFinish = (PFNGLFINISHPROC) load("glFinish", userptr); + glFlush = (PFNGLFLUSHPROC) load("glFlush", userptr); + glFogf = (PFNGLFOGFPROC) load("glFogf", userptr); + glFogfv = (PFNGLFOGFVPROC) load("glFogfv", userptr); + glFogi = (PFNGLFOGIPROC) load("glFogi", userptr); + glFogiv = (PFNGLFOGIVPROC) load("glFogiv", userptr); + glFrontFace = (PFNGLFRONTFACEPROC) load("glFrontFace", userptr); + glFrustum = (PFNGLFRUSTUMPROC) load("glFrustum", userptr); + glGenLists = (PFNGLGENLISTSPROC) load("glGenLists", userptr); + glGetBooleanv = (PFNGLGETBOOLEANVPROC) load("glGetBooleanv", userptr); + glGetClipPlane = (PFNGLGETCLIPPLANEPROC) load("glGetClipPlane", userptr); + glGetDoublev = (PFNGLGETDOUBLEVPROC) load("glGetDoublev", userptr); + glGetError = (PFNGLGETERRORPROC) load("glGetError", userptr); + glGetFloatv = (PFNGLGETFLOATVPROC) load("glGetFloatv", userptr); + glGetIntegerv = (PFNGLGETINTEGERVPROC) load("glGetIntegerv", userptr); + glGetLightfv = (PFNGLGETLIGHTFVPROC) load("glGetLightfv", userptr); + glGetLightiv = (PFNGLGETLIGHTIVPROC) load("glGetLightiv", userptr); + glGetMapdv = (PFNGLGETMAPDVPROC) load("glGetMapdv", userptr); + glGetMapfv = (PFNGLGETMAPFVPROC) load("glGetMapfv", userptr); + glGetMapiv = (PFNGLGETMAPIVPROC) load("glGetMapiv", userptr); + glGetMaterialfv = (PFNGLGETMATERIALFVPROC) load("glGetMaterialfv", userptr); + glGetMaterialiv = (PFNGLGETMATERIALIVPROC) load("glGetMaterialiv", userptr); + glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC) load("glGetPixelMapfv", userptr); + glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC) load("glGetPixelMapuiv", userptr); + glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC) load("glGetPixelMapusv", userptr); + glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC) load("glGetPolygonStipple", userptr); + glGetString = (PFNGLGETSTRINGPROC) load("glGetString", userptr); + glGetTexEnvfv = (PFNGLGETTEXENVFVPROC) load("glGetTexEnvfv", userptr); + glGetTexEnviv = (PFNGLGETTEXENVIVPROC) load("glGetTexEnviv", userptr); + glGetTexGendv = (PFNGLGETTEXGENDVPROC) load("glGetTexGendv", userptr); + glGetTexGenfv = (PFNGLGETTEXGENFVPROC) load("glGetTexGenfv", userptr); + glGetTexGeniv = (PFNGLGETTEXGENIVPROC) load("glGetTexGeniv", userptr); + glGetTexImage = (PFNGLGETTEXIMAGEPROC) load("glGetTexImage", userptr); + glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC) load("glGetTexLevelParameterfv", userptr); + glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC) load("glGetTexLevelParameteriv", userptr); + glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC) load("glGetTexParameterfv", userptr); + glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC) load("glGetTexParameteriv", userptr); + glHint = (PFNGLHINTPROC) load("glHint", userptr); + glIndexMask = (PFNGLINDEXMASKPROC) load("glIndexMask", userptr); + glIndexd = (PFNGLINDEXDPROC) load("glIndexd", userptr); + glIndexdv = (PFNGLINDEXDVPROC) load("glIndexdv", userptr); + glIndexf = (PFNGLINDEXFPROC) load("glIndexf", userptr); + glIndexfv = (PFNGLINDEXFVPROC) load("glIndexfv", userptr); + glIndexi = (PFNGLINDEXIPROC) load("glIndexi", userptr); + glIndexiv = (PFNGLINDEXIVPROC) load("glIndexiv", userptr); + glIndexs = (PFNGLINDEXSPROC) load("glIndexs", userptr); + glIndexsv = (PFNGLINDEXSVPROC) load("glIndexsv", userptr); + glInitNames = (PFNGLINITNAMESPROC) load("glInitNames", userptr); + glIsEnabled = (PFNGLISENABLEDPROC) load("glIsEnabled", userptr); + glIsList = (PFNGLISLISTPROC) load("glIsList", userptr); + glLightModelf = (PFNGLLIGHTMODELFPROC) load("glLightModelf", userptr); + glLightModelfv = (PFNGLLIGHTMODELFVPROC) load("glLightModelfv", userptr); + glLightModeli = (PFNGLLIGHTMODELIPROC) load("glLightModeli", userptr); + glLightModeliv = (PFNGLLIGHTMODELIVPROC) load("glLightModeliv", userptr); + glLightf = (PFNGLLIGHTFPROC) load("glLightf", userptr); + glLightfv = (PFNGLLIGHTFVPROC) load("glLightfv", userptr); + glLighti = (PFNGLLIGHTIPROC) load("glLighti", userptr); + glLightiv = (PFNGLLIGHTIVPROC) load("glLightiv", userptr); + glLineStipple = (PFNGLLINESTIPPLEPROC) load("glLineStipple", userptr); + glLineWidth = (PFNGLLINEWIDTHPROC) load("glLineWidth", userptr); + glListBase = (PFNGLLISTBASEPROC) load("glListBase", userptr); + glLoadIdentity = (PFNGLLOADIDENTITYPROC) load("glLoadIdentity", userptr); + glLoadMatrixd = (PFNGLLOADMATRIXDPROC) load("glLoadMatrixd", userptr); + glLoadMatrixf = (PFNGLLOADMATRIXFPROC) load("glLoadMatrixf", userptr); + glLoadName = (PFNGLLOADNAMEPROC) load("glLoadName", userptr); + glLogicOp = (PFNGLLOGICOPPROC) load("glLogicOp", userptr); + glMap1d = (PFNGLMAP1DPROC) load("glMap1d", userptr); + glMap1f = (PFNGLMAP1FPROC) load("glMap1f", userptr); + glMap2d = (PFNGLMAP2DPROC) load("glMap2d", userptr); + glMap2f = (PFNGLMAP2FPROC) load("glMap2f", userptr); + glMapGrid1d = (PFNGLMAPGRID1DPROC) load("glMapGrid1d", userptr); + glMapGrid1f = (PFNGLMAPGRID1FPROC) load("glMapGrid1f", userptr); + glMapGrid2d = (PFNGLMAPGRID2DPROC) load("glMapGrid2d", userptr); + glMapGrid2f = (PFNGLMAPGRID2FPROC) load("glMapGrid2f", userptr); + glMaterialf = (PFNGLMATERIALFPROC) load("glMaterialf", userptr); + glMaterialfv = (PFNGLMATERIALFVPROC) load("glMaterialfv", userptr); + glMateriali = (PFNGLMATERIALIPROC) load("glMateriali", userptr); + glMaterialiv = (PFNGLMATERIALIVPROC) load("glMaterialiv", userptr); + glMatrixMode = (PFNGLMATRIXMODEPROC) load("glMatrixMode", userptr); + glMultMatrixd = (PFNGLMULTMATRIXDPROC) load("glMultMatrixd", userptr); + glMultMatrixf = (PFNGLMULTMATRIXFPROC) load("glMultMatrixf", userptr); + glNewList = (PFNGLNEWLISTPROC) load("glNewList", userptr); + glNormal3b = (PFNGLNORMAL3BPROC) load("glNormal3b", userptr); + glNormal3bv = (PFNGLNORMAL3BVPROC) load("glNormal3bv", userptr); + glNormal3d = (PFNGLNORMAL3DPROC) load("glNormal3d", userptr); + glNormal3dv = (PFNGLNORMAL3DVPROC) load("glNormal3dv", userptr); + glNormal3f = (PFNGLNORMAL3FPROC) load("glNormal3f", userptr); + glNormal3fv = (PFNGLNORMAL3FVPROC) load("glNormal3fv", userptr); + glNormal3i = (PFNGLNORMAL3IPROC) load("glNormal3i", userptr); + glNormal3iv = (PFNGLNORMAL3IVPROC) load("glNormal3iv", userptr); + glNormal3s = (PFNGLNORMAL3SPROC) load("glNormal3s", userptr); + glNormal3sv = (PFNGLNORMAL3SVPROC) load("glNormal3sv", userptr); + glOrtho = (PFNGLORTHOPROC) load("glOrtho", userptr); + glPassThrough = (PFNGLPASSTHROUGHPROC) load("glPassThrough", userptr); + glPixelMapfv = (PFNGLPIXELMAPFVPROC) load("glPixelMapfv", userptr); + glPixelMapuiv = (PFNGLPIXELMAPUIVPROC) load("glPixelMapuiv", userptr); + glPixelMapusv = (PFNGLPIXELMAPUSVPROC) load("glPixelMapusv", userptr); + glPixelStoref = (PFNGLPIXELSTOREFPROC) load("glPixelStoref", userptr); + glPixelStorei = (PFNGLPIXELSTOREIPROC) load("glPixelStorei", userptr); + glPixelTransferf = (PFNGLPIXELTRANSFERFPROC) load("glPixelTransferf", userptr); + glPixelTransferi = (PFNGLPIXELTRANSFERIPROC) load("glPixelTransferi", userptr); + glPixelZoom = (PFNGLPIXELZOOMPROC) load("glPixelZoom", userptr); + glPointSize = (PFNGLPOINTSIZEPROC) load("glPointSize", userptr); + glPolygonMode = (PFNGLPOLYGONMODEPROC) load("glPolygonMode", userptr); + glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC) load("glPolygonStipple", userptr); + glPopAttrib = (PFNGLPOPATTRIBPROC) load("glPopAttrib", userptr); + glPopMatrix = (PFNGLPOPMATRIXPROC) load("glPopMatrix", userptr); + glPopName = (PFNGLPOPNAMEPROC) load("glPopName", userptr); + glPushAttrib = (PFNGLPUSHATTRIBPROC) load("glPushAttrib", userptr); + glPushMatrix = (PFNGLPUSHMATRIXPROC) load("glPushMatrix", userptr); + glPushName = (PFNGLPUSHNAMEPROC) load("glPushName", userptr); + glRasterPos2d = (PFNGLRASTERPOS2DPROC) load("glRasterPos2d", userptr); + glRasterPos2dv = (PFNGLRASTERPOS2DVPROC) load("glRasterPos2dv", userptr); + glRasterPos2f = (PFNGLRASTERPOS2FPROC) load("glRasterPos2f", userptr); + glRasterPos2fv = (PFNGLRASTERPOS2FVPROC) load("glRasterPos2fv", userptr); + glRasterPos2i = (PFNGLRASTERPOS2IPROC) load("glRasterPos2i", userptr); + glRasterPos2iv = (PFNGLRASTERPOS2IVPROC) load("glRasterPos2iv", userptr); + glRasterPos2s = (PFNGLRASTERPOS2SPROC) load("glRasterPos2s", userptr); + glRasterPos2sv = (PFNGLRASTERPOS2SVPROC) load("glRasterPos2sv", userptr); + glRasterPos3d = (PFNGLRASTERPOS3DPROC) load("glRasterPos3d", userptr); + glRasterPos3dv = (PFNGLRASTERPOS3DVPROC) load("glRasterPos3dv", userptr); + glRasterPos3f = (PFNGLRASTERPOS3FPROC) load("glRasterPos3f", userptr); + glRasterPos3fv = (PFNGLRASTERPOS3FVPROC) load("glRasterPos3fv", userptr); + glRasterPos3i = (PFNGLRASTERPOS3IPROC) load("glRasterPos3i", userptr); + glRasterPos3iv = (PFNGLRASTERPOS3IVPROC) load("glRasterPos3iv", userptr); + glRasterPos3s = (PFNGLRASTERPOS3SPROC) load("glRasterPos3s", userptr); + glRasterPos3sv = (PFNGLRASTERPOS3SVPROC) load("glRasterPos3sv", userptr); + glRasterPos4d = (PFNGLRASTERPOS4DPROC) load("glRasterPos4d", userptr); + glRasterPos4dv = (PFNGLRASTERPOS4DVPROC) load("glRasterPos4dv", userptr); + glRasterPos4f = (PFNGLRASTERPOS4FPROC) load("glRasterPos4f", userptr); + glRasterPos4fv = (PFNGLRASTERPOS4FVPROC) load("glRasterPos4fv", userptr); + glRasterPos4i = (PFNGLRASTERPOS4IPROC) load("glRasterPos4i", userptr); + glRasterPos4iv = (PFNGLRASTERPOS4IVPROC) load("glRasterPos4iv", userptr); + glRasterPos4s = (PFNGLRASTERPOS4SPROC) load("glRasterPos4s", userptr); + glRasterPos4sv = (PFNGLRASTERPOS4SVPROC) load("glRasterPos4sv", userptr); + glReadBuffer = (PFNGLREADBUFFERPROC) load("glReadBuffer", userptr); + glReadPixels = (PFNGLREADPIXELSPROC) load("glReadPixels", userptr); + glRectd = (PFNGLRECTDPROC) load("glRectd", userptr); + glRectdv = (PFNGLRECTDVPROC) load("glRectdv", userptr); + glRectf = (PFNGLRECTFPROC) load("glRectf", userptr); + glRectfv = (PFNGLRECTFVPROC) load("glRectfv", userptr); + glRecti = (PFNGLRECTIPROC) load("glRecti", userptr); + glRectiv = (PFNGLRECTIVPROC) load("glRectiv", userptr); + glRects = (PFNGLRECTSPROC) load("glRects", userptr); + glRectsv = (PFNGLRECTSVPROC) load("glRectsv", userptr); + glRenderMode = (PFNGLRENDERMODEPROC) load("glRenderMode", userptr); + glRotated = (PFNGLROTATEDPROC) load("glRotated", userptr); + glRotatef = (PFNGLROTATEFPROC) load("glRotatef", userptr); + glScaled = (PFNGLSCALEDPROC) load("glScaled", userptr); + glScalef = (PFNGLSCALEFPROC) load("glScalef", userptr); + glScissor = (PFNGLSCISSORPROC) load("glScissor", userptr); + glSelectBuffer = (PFNGLSELECTBUFFERPROC) load("glSelectBuffer", userptr); + glShadeModel = (PFNGLSHADEMODELPROC) load("glShadeModel", userptr); + glStencilFunc = (PFNGLSTENCILFUNCPROC) load("glStencilFunc", userptr); + glStencilMask = (PFNGLSTENCILMASKPROC) load("glStencilMask", userptr); + glStencilOp = (PFNGLSTENCILOPPROC) load("glStencilOp", userptr); + glTexCoord1d = (PFNGLTEXCOORD1DPROC) load("glTexCoord1d", userptr); + glTexCoord1dv = (PFNGLTEXCOORD1DVPROC) load("glTexCoord1dv", userptr); + glTexCoord1f = (PFNGLTEXCOORD1FPROC) load("glTexCoord1f", userptr); + glTexCoord1fv = (PFNGLTEXCOORD1FVPROC) load("glTexCoord1fv", userptr); + glTexCoord1i = (PFNGLTEXCOORD1IPROC) load("glTexCoord1i", userptr); + glTexCoord1iv = (PFNGLTEXCOORD1IVPROC) load("glTexCoord1iv", userptr); + glTexCoord1s = (PFNGLTEXCOORD1SPROC) load("glTexCoord1s", userptr); + glTexCoord1sv = (PFNGLTEXCOORD1SVPROC) load("glTexCoord1sv", userptr); + glTexCoord2d = (PFNGLTEXCOORD2DPROC) load("glTexCoord2d", userptr); + glTexCoord2dv = (PFNGLTEXCOORD2DVPROC) load("glTexCoord2dv", userptr); + glTexCoord2f = (PFNGLTEXCOORD2FPROC) load("glTexCoord2f", userptr); + glTexCoord2fv = (PFNGLTEXCOORD2FVPROC) load("glTexCoord2fv", userptr); + glTexCoord2i = (PFNGLTEXCOORD2IPROC) load("glTexCoord2i", userptr); + glTexCoord2iv = (PFNGLTEXCOORD2IVPROC) load("glTexCoord2iv", userptr); + glTexCoord2s = (PFNGLTEXCOORD2SPROC) load("glTexCoord2s", userptr); + glTexCoord2sv = (PFNGLTEXCOORD2SVPROC) load("glTexCoord2sv", userptr); + glTexCoord3d = (PFNGLTEXCOORD3DPROC) load("glTexCoord3d", userptr); + glTexCoord3dv = (PFNGLTEXCOORD3DVPROC) load("glTexCoord3dv", userptr); + glTexCoord3f = (PFNGLTEXCOORD3FPROC) load("glTexCoord3f", userptr); + glTexCoord3fv = (PFNGLTEXCOORD3FVPROC) load("glTexCoord3fv", userptr); + glTexCoord3i = (PFNGLTEXCOORD3IPROC) load("glTexCoord3i", userptr); + glTexCoord3iv = (PFNGLTEXCOORD3IVPROC) load("glTexCoord3iv", userptr); + glTexCoord3s = (PFNGLTEXCOORD3SPROC) load("glTexCoord3s", userptr); + glTexCoord3sv = (PFNGLTEXCOORD3SVPROC) load("glTexCoord3sv", userptr); + glTexCoord4d = (PFNGLTEXCOORD4DPROC) load("glTexCoord4d", userptr); + glTexCoord4dv = (PFNGLTEXCOORD4DVPROC) load("glTexCoord4dv", userptr); + glTexCoord4f = (PFNGLTEXCOORD4FPROC) load("glTexCoord4f", userptr); + glTexCoord4fv = (PFNGLTEXCOORD4FVPROC) load("glTexCoord4fv", userptr); + glTexCoord4i = (PFNGLTEXCOORD4IPROC) load("glTexCoord4i", userptr); + glTexCoord4iv = (PFNGLTEXCOORD4IVPROC) load("glTexCoord4iv", userptr); + glTexCoord4s = (PFNGLTEXCOORD4SPROC) load("glTexCoord4s", userptr); + glTexCoord4sv = (PFNGLTEXCOORD4SVPROC) load("glTexCoord4sv", userptr); + glTexEnvf = (PFNGLTEXENVFPROC) load("glTexEnvf", userptr); + glTexEnvfv = (PFNGLTEXENVFVPROC) load("glTexEnvfv", userptr); + glTexEnvi = (PFNGLTEXENVIPROC) load("glTexEnvi", userptr); + glTexEnviv = (PFNGLTEXENVIVPROC) load("glTexEnviv", userptr); + glTexGend = (PFNGLTEXGENDPROC) load("glTexGend", userptr); + glTexGendv = (PFNGLTEXGENDVPROC) load("glTexGendv", userptr); + glTexGenf = (PFNGLTEXGENFPROC) load("glTexGenf", userptr); + glTexGenfv = (PFNGLTEXGENFVPROC) load("glTexGenfv", userptr); + glTexGeni = (PFNGLTEXGENIPROC) load("glTexGeni", userptr); + glTexGeniv = (PFNGLTEXGENIVPROC) load("glTexGeniv", userptr); + glTexImage1D = (PFNGLTEXIMAGE1DPROC) load("glTexImage1D", userptr); + glTexImage2D = (PFNGLTEXIMAGE2DPROC) load("glTexImage2D", userptr); + glTexParameterf = (PFNGLTEXPARAMETERFPROC) load("glTexParameterf", userptr); + glTexParameterfv = (PFNGLTEXPARAMETERFVPROC) load("glTexParameterfv", userptr); + glTexParameteri = (PFNGLTEXPARAMETERIPROC) load("glTexParameteri", userptr); + glTexParameteriv = (PFNGLTEXPARAMETERIVPROC) load("glTexParameteriv", userptr); + glTranslated = (PFNGLTRANSLATEDPROC) load("glTranslated", userptr); + glTranslatef = (PFNGLTRANSLATEFPROC) load("glTranslatef", userptr); + glVertex2d = (PFNGLVERTEX2DPROC) load("glVertex2d", userptr); + glVertex2dv = (PFNGLVERTEX2DVPROC) load("glVertex2dv", userptr); + glVertex2f = (PFNGLVERTEX2FPROC) load("glVertex2f", userptr); + glVertex2fv = (PFNGLVERTEX2FVPROC) load("glVertex2fv", userptr); + glVertex2i = (PFNGLVERTEX2IPROC) load("glVertex2i", userptr); + glVertex2iv = (PFNGLVERTEX2IVPROC) load("glVertex2iv", userptr); + glVertex2s = (PFNGLVERTEX2SPROC) load("glVertex2s", userptr); + glVertex2sv = (PFNGLVERTEX2SVPROC) load("glVertex2sv", userptr); + glVertex3d = (PFNGLVERTEX3DPROC) load("glVertex3d", userptr); + glVertex3dv = (PFNGLVERTEX3DVPROC) load("glVertex3dv", userptr); + glVertex3f = (PFNGLVERTEX3FPROC) load("glVertex3f", userptr); + glVertex3fv = (PFNGLVERTEX3FVPROC) load("glVertex3fv", userptr); + glVertex3i = (PFNGLVERTEX3IPROC) load("glVertex3i", userptr); + glVertex3iv = (PFNGLVERTEX3IVPROC) load("glVertex3iv", userptr); + glVertex3s = (PFNGLVERTEX3SPROC) load("glVertex3s", userptr); + glVertex3sv = (PFNGLVERTEX3SVPROC) load("glVertex3sv", userptr); + glVertex4d = (PFNGLVERTEX4DPROC) load("glVertex4d", userptr); + glVertex4dv = (PFNGLVERTEX4DVPROC) load("glVertex4dv", userptr); + glVertex4f = (PFNGLVERTEX4FPROC) load("glVertex4f", userptr); + glVertex4fv = (PFNGLVERTEX4FVPROC) load("glVertex4fv", userptr); + glVertex4i = (PFNGLVERTEX4IPROC) load("glVertex4i", userptr); + glVertex4iv = (PFNGLVERTEX4IVPROC) load("glVertex4iv", userptr); + glVertex4s = (PFNGLVERTEX4SPROC) load("glVertex4s", userptr); + glVertex4sv = (PFNGLVERTEX4SVPROC) load("glVertex4sv", userptr); + glViewport = (PFNGLVIEWPORTPROC) load("glViewport", userptr); +} +static void glad_gl_load_GL_VERSION_1_1( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_1) return; + glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC) load("glAreTexturesResident", userptr); + glArrayElement = (PFNGLARRAYELEMENTPROC) load("glArrayElement", userptr); + glBindTexture = (PFNGLBINDTEXTUREPROC) load("glBindTexture", userptr); + glColorPointer = (PFNGLCOLORPOINTERPROC) load("glColorPointer", userptr); + glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC) load("glCopyTexImage1D", userptr); + glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC) load("glCopyTexImage2D", userptr); + glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC) load("glCopyTexSubImage1D", userptr); + glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC) load("glCopyTexSubImage2D", userptr); + glDeleteTextures = (PFNGLDELETETEXTURESPROC) load("glDeleteTextures", userptr); + glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC) load("glDisableClientState", userptr); + glDrawArrays = (PFNGLDRAWARRAYSPROC) load("glDrawArrays", userptr); + glDrawElements = (PFNGLDRAWELEMENTSPROC) load("glDrawElements", userptr); + glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC) load("glEdgeFlagPointer", userptr); + glEnableClientState = (PFNGLENABLECLIENTSTATEPROC) load("glEnableClientState", userptr); + glGenTextures = (PFNGLGENTEXTURESPROC) load("glGenTextures", userptr); + glGetPointerv = (PFNGLGETPOINTERVPROC) load("glGetPointerv", userptr); + glIndexPointer = (PFNGLINDEXPOINTERPROC) load("glIndexPointer", userptr); + glIndexub = (PFNGLINDEXUBPROC) load("glIndexub", userptr); + glIndexubv = (PFNGLINDEXUBVPROC) load("glIndexubv", userptr); + glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC) load("glInterleavedArrays", userptr); + glIsTexture = (PFNGLISTEXTUREPROC) load("glIsTexture", userptr); + glNormalPointer = (PFNGLNORMALPOINTERPROC) load("glNormalPointer", userptr); + glPolygonOffset = (PFNGLPOLYGONOFFSETPROC) load("glPolygonOffset", userptr); + glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC) load("glPopClientAttrib", userptr); + glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC) load("glPrioritizeTextures", userptr); + glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC) load("glPushClientAttrib", userptr); + glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC) load("glTexCoordPointer", userptr); + glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC) load("glTexSubImage1D", userptr); + glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC) load("glTexSubImage2D", userptr); + glVertexPointer = (PFNGLVERTEXPOINTERPROC) load("glVertexPointer", userptr); +} +static void glad_gl_load_GL_VERSION_1_2( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_2) return; + glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC) load("glCopyTexSubImage3D", userptr); + glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) load("glDrawRangeElements", userptr); + glTexImage3D = (PFNGLTEXIMAGE3DPROC) load("glTexImage3D", userptr); + glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC) load("glTexSubImage3D", userptr); +} +static void glad_gl_load_GL_VERSION_1_3( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_3) return; + glActiveTexture = (PFNGLACTIVETEXTUREPROC) load("glActiveTexture", userptr); + glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC) load("glClientActiveTexture", userptr); + glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC) load("glCompressedTexImage1D", userptr); + glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC) load("glCompressedTexImage2D", userptr); + glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC) load("glCompressedTexImage3D", userptr); + glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) load("glCompressedTexSubImage1D", userptr); + glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) load("glCompressedTexSubImage2D", userptr); + glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) load("glCompressedTexSubImage3D", userptr); + glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC) load("glGetCompressedTexImage", userptr); + glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC) load("glLoadTransposeMatrixd", userptr); + glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC) load("glLoadTransposeMatrixf", userptr); + glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC) load("glMultTransposeMatrixd", userptr); + glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC) load("glMultTransposeMatrixf", userptr); + glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC) load("glMultiTexCoord1d", userptr); + glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC) load("glMultiTexCoord1dv", userptr); + glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC) load("glMultiTexCoord1f", userptr); + glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC) load("glMultiTexCoord1fv", userptr); + glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC) load("glMultiTexCoord1i", userptr); + glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC) load("glMultiTexCoord1iv", userptr); + glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC) load("glMultiTexCoord1s", userptr); + glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC) load("glMultiTexCoord1sv", userptr); + glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC) load("glMultiTexCoord2d", userptr); + glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC) load("glMultiTexCoord2dv", userptr); + glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC) load("glMultiTexCoord2f", userptr); + glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC) load("glMultiTexCoord2fv", userptr); + glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC) load("glMultiTexCoord2i", userptr); + glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC) load("glMultiTexCoord2iv", userptr); + glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC) load("glMultiTexCoord2s", userptr); + glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC) load("glMultiTexCoord2sv", userptr); + glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC) load("glMultiTexCoord3d", userptr); + glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC) load("glMultiTexCoord3dv", userptr); + glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC) load("glMultiTexCoord3f", userptr); + glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC) load("glMultiTexCoord3fv", userptr); + glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC) load("glMultiTexCoord3i", userptr); + glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC) load("glMultiTexCoord3iv", userptr); + glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC) load("glMultiTexCoord3s", userptr); + glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC) load("glMultiTexCoord3sv", userptr); + glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC) load("glMultiTexCoord4d", userptr); + glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC) load("glMultiTexCoord4dv", userptr); + glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC) load("glMultiTexCoord4f", userptr); + glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC) load("glMultiTexCoord4fv", userptr); + glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC) load("glMultiTexCoord4i", userptr); + glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC) load("glMultiTexCoord4iv", userptr); + glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC) load("glMultiTexCoord4s", userptr); + glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC) load("glMultiTexCoord4sv", userptr); + glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load("glSampleCoverage", userptr); +} +static void glad_gl_load_GL_VERSION_1_4( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_4) return; + glBlendColor = (PFNGLBLENDCOLORPROC) load("glBlendColor", userptr); + glBlendEquation = (PFNGLBLENDEQUATIONPROC) load("glBlendEquation", userptr); + glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC) load("glBlendFuncSeparate", userptr); + glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC) load("glFogCoordPointer", userptr); + glFogCoordd = (PFNGLFOGCOORDDPROC) load("glFogCoordd", userptr); + glFogCoorddv = (PFNGLFOGCOORDDVPROC) load("glFogCoorddv", userptr); + glFogCoordf = (PFNGLFOGCOORDFPROC) load("glFogCoordf", userptr); + glFogCoordfv = (PFNGLFOGCOORDFVPROC) load("glFogCoordfv", userptr); + glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC) load("glMultiDrawArrays", userptr); + glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC) load("glMultiDrawElements", userptr); + glPointParameterf = (PFNGLPOINTPARAMETERFPROC) load("glPointParameterf", userptr); + glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC) load("glPointParameterfv", userptr); + glPointParameteri = (PFNGLPOINTPARAMETERIPROC) load("glPointParameteri", userptr); + glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC) load("glPointParameteriv", userptr); + glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC) load("glSecondaryColor3b", userptr); + glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC) load("glSecondaryColor3bv", userptr); + glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC) load("glSecondaryColor3d", userptr); + glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC) load("glSecondaryColor3dv", userptr); + glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC) load("glSecondaryColor3f", userptr); + glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC) load("glSecondaryColor3fv", userptr); + glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC) load("glSecondaryColor3i", userptr); + glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC) load("glSecondaryColor3iv", userptr); + glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC) load("glSecondaryColor3s", userptr); + glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC) load("glSecondaryColor3sv", userptr); + glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC) load("glSecondaryColor3ub", userptr); + glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC) load("glSecondaryColor3ubv", userptr); + glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC) load("glSecondaryColor3ui", userptr); + glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC) load("glSecondaryColor3uiv", userptr); + glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC) load("glSecondaryColor3us", userptr); + glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC) load("glSecondaryColor3usv", userptr); + glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC) load("glSecondaryColorPointer", userptr); + glWindowPos2d = (PFNGLWINDOWPOS2DPROC) load("glWindowPos2d", userptr); + glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC) load("glWindowPos2dv", userptr); + glWindowPos2f = (PFNGLWINDOWPOS2FPROC) load("glWindowPos2f", userptr); + glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC) load("glWindowPos2fv", userptr); + glWindowPos2i = (PFNGLWINDOWPOS2IPROC) load("glWindowPos2i", userptr); + glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC) load("glWindowPos2iv", userptr); + glWindowPos2s = (PFNGLWINDOWPOS2SPROC) load("glWindowPos2s", userptr); + glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC) load("glWindowPos2sv", userptr); + glWindowPos3d = (PFNGLWINDOWPOS3DPROC) load("glWindowPos3d", userptr); + glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC) load("glWindowPos3dv", userptr); + glWindowPos3f = (PFNGLWINDOWPOS3FPROC) load("glWindowPos3f", userptr); + glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC) load("glWindowPos3fv", userptr); + glWindowPos3i = (PFNGLWINDOWPOS3IPROC) load("glWindowPos3i", userptr); + glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC) load("glWindowPos3iv", userptr); + glWindowPos3s = (PFNGLWINDOWPOS3SPROC) load("glWindowPos3s", userptr); + glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC) load("glWindowPos3sv", userptr); +} +static void glad_gl_load_GL_VERSION_1_5( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_1_5) return; + glBeginQuery = (PFNGLBEGINQUERYPROC) load("glBeginQuery", userptr); + glBindBuffer = (PFNGLBINDBUFFERPROC) load("glBindBuffer", userptr); + glBufferData = (PFNGLBUFFERDATAPROC) load("glBufferData", userptr); + glBufferSubData = (PFNGLBUFFERSUBDATAPROC) load("glBufferSubData", userptr); + glDeleteBuffers = (PFNGLDELETEBUFFERSPROC) load("glDeleteBuffers", userptr); + glDeleteQueries = (PFNGLDELETEQUERIESPROC) load("glDeleteQueries", userptr); + glEndQuery = (PFNGLENDQUERYPROC) load("glEndQuery", userptr); + glGenBuffers = (PFNGLGENBUFFERSPROC) load("glGenBuffers", userptr); + glGenQueries = (PFNGLGENQUERIESPROC) load("glGenQueries", userptr); + glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC) load("glGetBufferParameteriv", userptr); + glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC) load("glGetBufferPointerv", userptr); + glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC) load("glGetBufferSubData", userptr); + glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC) load("glGetQueryObjectiv", userptr); + glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC) load("glGetQueryObjectuiv", userptr); + glGetQueryiv = (PFNGLGETQUERYIVPROC) load("glGetQueryiv", userptr); + glIsBuffer = (PFNGLISBUFFERPROC) load("glIsBuffer", userptr); + glIsQuery = (PFNGLISQUERYPROC) load("glIsQuery", userptr); + glMapBuffer = (PFNGLMAPBUFFERPROC) load("glMapBuffer", userptr); + glUnmapBuffer = (PFNGLUNMAPBUFFERPROC) load("glUnmapBuffer", userptr); +} +static void glad_gl_load_GL_VERSION_2_0( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_2_0) return; + glAttachShader = (PFNGLATTACHSHADERPROC) load("glAttachShader", userptr); + glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC) load("glBindAttribLocation", userptr); + glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC) load("glBlendEquationSeparate", userptr); + glCompileShader = (PFNGLCOMPILESHADERPROC) load("glCompileShader", userptr); + glCreateProgram = (PFNGLCREATEPROGRAMPROC) load("glCreateProgram", userptr); + glCreateShader = (PFNGLCREATESHADERPROC) load("glCreateShader", userptr); + glDeleteProgram = (PFNGLDELETEPROGRAMPROC) load("glDeleteProgram", userptr); + glDeleteShader = (PFNGLDELETESHADERPROC) load("glDeleteShader", userptr); + glDetachShader = (PFNGLDETACHSHADERPROC) load("glDetachShader", userptr); + glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC) load("glDisableVertexAttribArray", userptr); + glDrawBuffers = (PFNGLDRAWBUFFERSPROC) load("glDrawBuffers", userptr); + glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC) load("glEnableVertexAttribArray", userptr); + glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC) load("glGetActiveAttrib", userptr); + glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC) load("glGetActiveUniform", userptr); + glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC) load("glGetAttachedShaders", userptr); + glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC) load("glGetAttribLocation", userptr); + glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC) load("glGetProgramInfoLog", userptr); + glGetProgramiv = (PFNGLGETPROGRAMIVPROC) load("glGetProgramiv", userptr); + glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC) load("glGetShaderInfoLog", userptr); + glGetShaderSource = (PFNGLGETSHADERSOURCEPROC) load("glGetShaderSource", userptr); + glGetShaderiv = (PFNGLGETSHADERIVPROC) load("glGetShaderiv", userptr); + glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC) load("glGetUniformLocation", userptr); + glGetUniformfv = (PFNGLGETUNIFORMFVPROC) load("glGetUniformfv", userptr); + glGetUniformiv = (PFNGLGETUNIFORMIVPROC) load("glGetUniformiv", userptr); + glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC) load("glGetVertexAttribPointerv", userptr); + glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC) load("glGetVertexAttribdv", userptr); + glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC) load("glGetVertexAttribfv", userptr); + glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC) load("glGetVertexAttribiv", userptr); + glIsProgram = (PFNGLISPROGRAMPROC) load("glIsProgram", userptr); + glIsShader = (PFNGLISSHADERPROC) load("glIsShader", userptr); + glLinkProgram = (PFNGLLINKPROGRAMPROC) load("glLinkProgram", userptr); + glShaderSource = (PFNGLSHADERSOURCEPROC) load("glShaderSource", userptr); + glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC) load("glStencilFuncSeparate", userptr); + glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC) load("glStencilMaskSeparate", userptr); + glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC) load("glStencilOpSeparate", userptr); + glUniform1f = (PFNGLUNIFORM1FPROC) load("glUniform1f", userptr); + glUniform1fv = (PFNGLUNIFORM1FVPROC) load("glUniform1fv", userptr); + glUniform1i = (PFNGLUNIFORM1IPROC) load("glUniform1i", userptr); + glUniform1iv = (PFNGLUNIFORM1IVPROC) load("glUniform1iv", userptr); + glUniform2f = (PFNGLUNIFORM2FPROC) load("glUniform2f", userptr); + glUniform2fv = (PFNGLUNIFORM2FVPROC) load("glUniform2fv", userptr); + glUniform2i = (PFNGLUNIFORM2IPROC) load("glUniform2i", userptr); + glUniform2iv = (PFNGLUNIFORM2IVPROC) load("glUniform2iv", userptr); + glUniform3f = (PFNGLUNIFORM3FPROC) load("glUniform3f", userptr); + glUniform3fv = (PFNGLUNIFORM3FVPROC) load("glUniform3fv", userptr); + glUniform3i = (PFNGLUNIFORM3IPROC) load("glUniform3i", userptr); + glUniform3iv = (PFNGLUNIFORM3IVPROC) load("glUniform3iv", userptr); + glUniform4f = (PFNGLUNIFORM4FPROC) load("glUniform4f", userptr); + glUniform4fv = (PFNGLUNIFORM4FVPROC) load("glUniform4fv", userptr); + glUniform4i = (PFNGLUNIFORM4IPROC) load("glUniform4i", userptr); + glUniform4iv = (PFNGLUNIFORM4IVPROC) load("glUniform4iv", userptr); + glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC) load("glUniformMatrix2fv", userptr); + glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC) load("glUniformMatrix3fv", userptr); + glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC) load("glUniformMatrix4fv", userptr); + glUseProgram = (PFNGLUSEPROGRAMPROC) load("glUseProgram", userptr); + glValidateProgram = (PFNGLVALIDATEPROGRAMPROC) load("glValidateProgram", userptr); + glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC) load("glVertexAttrib1d", userptr); + glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC) load("glVertexAttrib1dv", userptr); + glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC) load("glVertexAttrib1f", userptr); + glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC) load("glVertexAttrib1fv", userptr); + glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC) load("glVertexAttrib1s", userptr); + glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC) load("glVertexAttrib1sv", userptr); + glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC) load("glVertexAttrib2d", userptr); + glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC) load("glVertexAttrib2dv", userptr); + glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC) load("glVertexAttrib2f", userptr); + glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC) load("glVertexAttrib2fv", userptr); + glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC) load("glVertexAttrib2s", userptr); + glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC) load("glVertexAttrib2sv", userptr); + glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC) load("glVertexAttrib3d", userptr); + glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC) load("glVertexAttrib3dv", userptr); + glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC) load("glVertexAttrib3f", userptr); + glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC) load("glVertexAttrib3fv", userptr); + glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC) load("glVertexAttrib3s", userptr); + glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC) load("glVertexAttrib3sv", userptr); + glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC) load("glVertexAttrib4Nbv", userptr); + glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC) load("glVertexAttrib4Niv", userptr); + glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC) load("glVertexAttrib4Nsv", userptr); + glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC) load("glVertexAttrib4Nub", userptr); + glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC) load("glVertexAttrib4Nubv", userptr); + glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC) load("glVertexAttrib4Nuiv", userptr); + glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC) load("glVertexAttrib4Nusv", userptr); + glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC) load("glVertexAttrib4bv", userptr); + glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC) load("glVertexAttrib4d", userptr); + glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC) load("glVertexAttrib4dv", userptr); + glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC) load("glVertexAttrib4f", userptr); + glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC) load("glVertexAttrib4fv", userptr); + glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC) load("glVertexAttrib4iv", userptr); + glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC) load("glVertexAttrib4s", userptr); + glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC) load("glVertexAttrib4sv", userptr); + glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC) load("glVertexAttrib4ubv", userptr); + glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC) load("glVertexAttrib4uiv", userptr); + glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC) load("glVertexAttrib4usv", userptr); + glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC) load("glVertexAttribPointer", userptr); +} +static void glad_gl_load_GL_VERSION_2_1( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_2_1) return; + glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC) load("glUniformMatrix2x3fv", userptr); + glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC) load("glUniformMatrix2x4fv", userptr); + glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC) load("glUniformMatrix3x2fv", userptr); + glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC) load("glUniformMatrix3x4fv", userptr); + glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC) load("glUniformMatrix4x2fv", userptr); + glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC) load("glUniformMatrix4x3fv", userptr); +} +static void glad_gl_load_GL_VERSION_3_0( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_3_0) return; + glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC) load("glBeginConditionalRender", userptr); + glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC) load("glBeginTransformFeedback", userptr); + glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load("glBindBufferBase", userptr); + glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load("glBindBufferRange", userptr); + glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC) load("glBindFragDataLocation", userptr); + glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) load("glBindFramebuffer", userptr); + glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) load("glBindRenderbuffer", userptr); + glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC) load("glBindVertexArray", userptr); + glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) load("glBlitFramebuffer", userptr); + glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) load("glCheckFramebufferStatus", userptr); + glClampColor = (PFNGLCLAMPCOLORPROC) load("glClampColor", userptr); + glClearBufferfi = (PFNGLCLEARBUFFERFIPROC) load("glClearBufferfi", userptr); + glClearBufferfv = (PFNGLCLEARBUFFERFVPROC) load("glClearBufferfv", userptr); + glClearBufferiv = (PFNGLCLEARBUFFERIVPROC) load("glClearBufferiv", userptr); + glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC) load("glClearBufferuiv", userptr); + glColorMaski = (PFNGLCOLORMASKIPROC) load("glColorMaski", userptr); + glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) load("glDeleteFramebuffers", userptr); + glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) load("glDeleteRenderbuffers", userptr); + glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC) load("glDeleteVertexArrays", userptr); + glDisablei = (PFNGLDISABLEIPROC) load("glDisablei", userptr); + glEnablei = (PFNGLENABLEIPROC) load("glEnablei", userptr); + glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC) load("glEndConditionalRender", userptr); + glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC) load("glEndTransformFeedback", userptr); + glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC) load("glFlushMappedBufferRange", userptr); + glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) load("glFramebufferRenderbuffer", userptr); + glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC) load("glFramebufferTexture1D", userptr); + glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) load("glFramebufferTexture2D", userptr); + glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC) load("glFramebufferTexture3D", userptr); + glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) load("glFramebufferTextureLayer", userptr); + glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) load("glGenFramebuffers", userptr); + glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) load("glGenRenderbuffers", userptr); + glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC) load("glGenVertexArrays", userptr); + glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) load("glGenerateMipmap", userptr); + glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC) load("glGetBooleani_v", userptr); + glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC) load("glGetFragDataLocation", userptr); + glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) load("glGetFramebufferAttachmentParameteriv", userptr); + glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load("glGetIntegeri_v", userptr); + glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) load("glGetRenderbufferParameteriv", userptr); + glGetStringi = (PFNGLGETSTRINGIPROC) load("glGetStringi", userptr); + glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC) load("glGetTexParameterIiv", userptr); + glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC) load("glGetTexParameterIuiv", userptr); + glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) load("glGetTransformFeedbackVarying", userptr); + glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC) load("glGetUniformuiv", userptr); + glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC) load("glGetVertexAttribIiv", userptr); + glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC) load("glGetVertexAttribIuiv", userptr); + glIsEnabledi = (PFNGLISENABLEDIPROC) load("glIsEnabledi", userptr); + glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) load("glIsFramebuffer", userptr); + glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) load("glIsRenderbuffer", userptr); + glIsVertexArray = (PFNGLISVERTEXARRAYPROC) load("glIsVertexArray", userptr); + glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC) load("glMapBufferRange", userptr); + glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) load("glRenderbufferStorage", userptr); + glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) load("glRenderbufferStorageMultisample", userptr); + glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC) load("glTexParameterIiv", userptr); + glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC) load("glTexParameterIuiv", userptr); + glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC) load("glTransformFeedbackVaryings", userptr); + glUniform1ui = (PFNGLUNIFORM1UIPROC) load("glUniform1ui", userptr); + glUniform1uiv = (PFNGLUNIFORM1UIVPROC) load("glUniform1uiv", userptr); + glUniform2ui = (PFNGLUNIFORM2UIPROC) load("glUniform2ui", userptr); + glUniform2uiv = (PFNGLUNIFORM2UIVPROC) load("glUniform2uiv", userptr); + glUniform3ui = (PFNGLUNIFORM3UIPROC) load("glUniform3ui", userptr); + glUniform3uiv = (PFNGLUNIFORM3UIVPROC) load("glUniform3uiv", userptr); + glUniform4ui = (PFNGLUNIFORM4UIPROC) load("glUniform4ui", userptr); + glUniform4uiv = (PFNGLUNIFORM4UIVPROC) load("glUniform4uiv", userptr); + glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC) load("glVertexAttribI1i", userptr); + glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC) load("glVertexAttribI1iv", userptr); + glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC) load("glVertexAttribI1ui", userptr); + glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC) load("glVertexAttribI1uiv", userptr); + glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC) load("glVertexAttribI2i", userptr); + glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC) load("glVertexAttribI2iv", userptr); + glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC) load("glVertexAttribI2ui", userptr); + glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC) load("glVertexAttribI2uiv", userptr); + glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC) load("glVertexAttribI3i", userptr); + glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC) load("glVertexAttribI3iv", userptr); + glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC) load("glVertexAttribI3ui", userptr); + glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC) load("glVertexAttribI3uiv", userptr); + glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC) load("glVertexAttribI4bv", userptr); + glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC) load("glVertexAttribI4i", userptr); + glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC) load("glVertexAttribI4iv", userptr); + glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC) load("glVertexAttribI4sv", userptr); + glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC) load("glVertexAttribI4ubv", userptr); + glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC) load("glVertexAttribI4ui", userptr); + glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC) load("glVertexAttribI4uiv", userptr); + glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC) load("glVertexAttribI4usv", userptr); + glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC) load("glVertexAttribIPointer", userptr); +} +static void glad_gl_load_GL_VERSION_3_1( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_3_1) return; + glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load("glBindBufferBase", userptr); + glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load("glBindBufferRange", userptr); + glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC) load("glCopyBufferSubData", userptr); + glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC) load("glDrawArraysInstanced", userptr); + glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC) load("glDrawElementsInstanced", userptr); + glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) load("glGetActiveUniformBlockName", userptr); + glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC) load("glGetActiveUniformBlockiv", userptr); + glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC) load("glGetActiveUniformName", userptr); + glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC) load("glGetActiveUniformsiv", userptr); + glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load("glGetIntegeri_v", userptr); + glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC) load("glGetUniformBlockIndex", userptr); + glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC) load("glGetUniformIndices", userptr); + glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC) load("glPrimitiveRestartIndex", userptr); + glTexBuffer = (PFNGLTEXBUFFERPROC) load("glTexBuffer", userptr); + glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC) load("glUniformBlockBinding", userptr); +} +static void glad_gl_load_GL_VERSION_3_2( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_3_2) return; + glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC) load("glClientWaitSync", userptr); + glDeleteSync = (PFNGLDELETESYNCPROC) load("glDeleteSync", userptr); + glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC) load("glDrawElementsBaseVertex", userptr); + glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) load("glDrawElementsInstancedBaseVertex", userptr); + glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) load("glDrawRangeElementsBaseVertex", userptr); + glFenceSync = (PFNGLFENCESYNCPROC) load("glFenceSync", userptr); + glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC) load("glFramebufferTexture", userptr); + glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC) load("glGetBufferParameteri64v", userptr); + glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC) load("glGetInteger64i_v", userptr); + glGetInteger64v = (PFNGLGETINTEGER64VPROC) load("glGetInteger64v", userptr); + glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC) load("glGetMultisamplefv", userptr); + glGetSynciv = (PFNGLGETSYNCIVPROC) load("glGetSynciv", userptr); + glIsSync = (PFNGLISSYNCPROC) load("glIsSync", userptr); + glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) load("glMultiDrawElementsBaseVertex", userptr); + glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC) load("glProvokingVertex", userptr); + glSampleMaski = (PFNGLSAMPLEMASKIPROC) load("glSampleMaski", userptr); + glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC) load("glTexImage2DMultisample", userptr); + glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC) load("glTexImage3DMultisample", userptr); + glWaitSync = (PFNGLWAITSYNCPROC) load("glWaitSync", userptr); +} +static void glad_gl_load_GL_VERSION_3_3( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_VERSION_3_3) return; + glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) load("glBindFragDataLocationIndexed", userptr); + glBindSampler = (PFNGLBINDSAMPLERPROC) load("glBindSampler", userptr); + glColorP3ui = (PFNGLCOLORP3UIPROC) load("glColorP3ui", userptr); + glColorP3uiv = (PFNGLCOLORP3UIVPROC) load("glColorP3uiv", userptr); + glColorP4ui = (PFNGLCOLORP4UIPROC) load("glColorP4ui", userptr); + glColorP4uiv = (PFNGLCOLORP4UIVPROC) load("glColorP4uiv", userptr); + glDeleteSamplers = (PFNGLDELETESAMPLERSPROC) load("glDeleteSamplers", userptr); + glGenSamplers = (PFNGLGENSAMPLERSPROC) load("glGenSamplers", userptr); + glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC) load("glGetFragDataIndex", userptr); + glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC) load("glGetQueryObjecti64v", userptr); + glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC) load("glGetQueryObjectui64v", userptr); + glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC) load("glGetSamplerParameterIiv", userptr); + glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC) load("glGetSamplerParameterIuiv", userptr); + glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC) load("glGetSamplerParameterfv", userptr); + glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC) load("glGetSamplerParameteriv", userptr); + glIsSampler = (PFNGLISSAMPLERPROC) load("glIsSampler", userptr); + glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC) load("glMultiTexCoordP1ui", userptr); + glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC) load("glMultiTexCoordP1uiv", userptr); + glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC) load("glMultiTexCoordP2ui", userptr); + glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC) load("glMultiTexCoordP2uiv", userptr); + glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC) load("glMultiTexCoordP3ui", userptr); + glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC) load("glMultiTexCoordP3uiv", userptr); + glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC) load("glMultiTexCoordP4ui", userptr); + glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC) load("glMultiTexCoordP4uiv", userptr); + glNormalP3ui = (PFNGLNORMALP3UIPROC) load("glNormalP3ui", userptr); + glNormalP3uiv = (PFNGLNORMALP3UIVPROC) load("glNormalP3uiv", userptr); + glQueryCounter = (PFNGLQUERYCOUNTERPROC) load("glQueryCounter", userptr); + glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC) load("glSamplerParameterIiv", userptr); + glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC) load("glSamplerParameterIuiv", userptr); + glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC) load("glSamplerParameterf", userptr); + glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC) load("glSamplerParameterfv", userptr); + glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC) load("glSamplerParameteri", userptr); + glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC) load("glSamplerParameteriv", userptr); + glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC) load("glSecondaryColorP3ui", userptr); + glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC) load("glSecondaryColorP3uiv", userptr); + glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC) load("glTexCoordP1ui", userptr); + glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC) load("glTexCoordP1uiv", userptr); + glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC) load("glTexCoordP2ui", userptr); + glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC) load("glTexCoordP2uiv", userptr); + glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC) load("glTexCoordP3ui", userptr); + glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC) load("glTexCoordP3uiv", userptr); + glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC) load("glTexCoordP4ui", userptr); + glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC) load("glTexCoordP4uiv", userptr); + glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC) load("glVertexAttribDivisor", userptr); + glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC) load("glVertexAttribP1ui", userptr); + glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC) load("glVertexAttribP1uiv", userptr); + glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC) load("glVertexAttribP2ui", userptr); + glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC) load("glVertexAttribP2uiv", userptr); + glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC) load("glVertexAttribP3ui", userptr); + glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC) load("glVertexAttribP3uiv", userptr); + glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC) load("glVertexAttribP4ui", userptr); + glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC) load("glVertexAttribP4uiv", userptr); + glVertexP2ui = (PFNGLVERTEXP2UIPROC) load("glVertexP2ui", userptr); + glVertexP2uiv = (PFNGLVERTEXP2UIVPROC) load("glVertexP2uiv", userptr); + glVertexP3ui = (PFNGLVERTEXP3UIPROC) load("glVertexP3ui", userptr); + glVertexP3uiv = (PFNGLVERTEXP3UIVPROC) load("glVertexP3uiv", userptr); + glVertexP4ui = (PFNGLVERTEXP4UIPROC) load("glVertexP4ui", userptr); + glVertexP4uiv = (PFNGLVERTEXP4UIVPROC) load("glVertexP4uiv", userptr); +} +static void glad_gl_load_GL_ARB_multisample( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_ARB_multisample) return; + glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load("glSampleCoverage", userptr); + glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC) load("glSampleCoverageARB", userptr); +} +static void glad_gl_load_GL_ARB_robustness( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_ARB_robustness) return; + glGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC) load("glGetGraphicsResetStatusARB", userptr); + glGetnColorTableARB = (PFNGLGETNCOLORTABLEARBPROC) load("glGetnColorTableARB", userptr); + glGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) load("glGetnCompressedTexImageARB", userptr); + glGetnConvolutionFilterARB = (PFNGLGETNCONVOLUTIONFILTERARBPROC) load("glGetnConvolutionFilterARB", userptr); + glGetnHistogramARB = (PFNGLGETNHISTOGRAMARBPROC) load("glGetnHistogramARB", userptr); + glGetnMapdvARB = (PFNGLGETNMAPDVARBPROC) load("glGetnMapdvARB", userptr); + glGetnMapfvARB = (PFNGLGETNMAPFVARBPROC) load("glGetnMapfvARB", userptr); + glGetnMapivARB = (PFNGLGETNMAPIVARBPROC) load("glGetnMapivARB", userptr); + glGetnMinmaxARB = (PFNGLGETNMINMAXARBPROC) load("glGetnMinmaxARB", userptr); + glGetnPixelMapfvARB = (PFNGLGETNPIXELMAPFVARBPROC) load("glGetnPixelMapfvARB", userptr); + glGetnPixelMapuivARB = (PFNGLGETNPIXELMAPUIVARBPROC) load("glGetnPixelMapuivARB", userptr); + glGetnPixelMapusvARB = (PFNGLGETNPIXELMAPUSVARBPROC) load("glGetnPixelMapusvARB", userptr); + glGetnPolygonStippleARB = (PFNGLGETNPOLYGONSTIPPLEARBPROC) load("glGetnPolygonStippleARB", userptr); + glGetnSeparableFilterARB = (PFNGLGETNSEPARABLEFILTERARBPROC) load("glGetnSeparableFilterARB", userptr); + glGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC) load("glGetnTexImageARB", userptr); + glGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC) load("glGetnUniformdvARB", userptr); + glGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC) load("glGetnUniformfvARB", userptr); + glGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC) load("glGetnUniformivARB", userptr); + glGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC) load("glGetnUniformuivARB", userptr); + glReadnPixels = (PFNGLREADNPIXELSPROC) load("glReadnPixels", userptr); + glReadnPixelsARB = (PFNGLREADNPIXELSARBPROC) load("glReadnPixelsARB", userptr); +} +static void glad_gl_load_GL_KHR_debug( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_GL_KHR_debug) return; + glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC) load("glDebugMessageCallback", userptr); + glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC) load("glDebugMessageControl", userptr); + glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC) load("glDebugMessageInsert", userptr); + glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC) load("glGetDebugMessageLog", userptr); + glGetObjectLabel = (PFNGLGETOBJECTLABELPROC) load("glGetObjectLabel", userptr); + glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC) load("glGetObjectPtrLabel", userptr); + glGetPointerv = (PFNGLGETPOINTERVPROC) load("glGetPointerv", userptr); + glObjectLabel = (PFNGLOBJECTLABELPROC) load("glObjectLabel", userptr); + glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC) load("glObjectPtrLabel", userptr); + glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC) load("glPopDebugGroup", userptr); + glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC) load("glPushDebugGroup", userptr); +} + + + +#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0) +#define GLAD_GL_IS_SOME_NEW_VERSION 1 +#else +#define GLAD_GL_IS_SOME_NEW_VERSION 0 +#endif + +static int glad_gl_get_extensions( int version, const char **out_exts, unsigned int *out_num_exts_i, char ***out_exts_i) { +#if GLAD_GL_IS_SOME_NEW_VERSION + if(GLAD_VERSION_MAJOR(version) < 3) { +#else + (void) version; + (void) out_num_exts_i; + (void) out_exts_i; +#endif + if (glGetString == NULL) { + return 0; + } + *out_exts = (const char *)glGetString(GL_EXTENSIONS); +#if GLAD_GL_IS_SOME_NEW_VERSION + } else { + unsigned int index = 0; + unsigned int num_exts_i = 0; + char **exts_i = NULL; + if (glGetStringi == NULL || glGetIntegerv == NULL) { + return 0; + } + glGetIntegerv(GL_NUM_EXTENSIONS, (int*) &num_exts_i); + if (num_exts_i > 0) { + exts_i = (char **) malloc(num_exts_i * (sizeof *exts_i)); + } + if (exts_i == NULL) { + return 0; + } + for(index = 0; index < num_exts_i; index++) { + const char *gl_str_tmp = (const char*) glGetStringi(GL_EXTENSIONS, index); + size_t len = strlen(gl_str_tmp) + 1; + + char *local_str = (char*) malloc(len * sizeof(char)); + if(local_str != NULL) { + memcpy(local_str, gl_str_tmp, len * sizeof(char)); + } + + exts_i[index] = local_str; + } + + *out_num_exts_i = num_exts_i; + *out_exts_i = exts_i; + } +#endif + return 1; +} +static void glad_gl_free_extensions(char **exts_i, unsigned int num_exts_i) { + if (exts_i != NULL) { + unsigned int index; + for(index = 0; index < num_exts_i; index++) { + free((void *) (exts_i[index])); + } + free((void *)exts_i); + exts_i = NULL; + } +} +static int glad_gl_has_extension(int version, const char *exts, unsigned int num_exts_i, char **exts_i, const char *ext) { + if(GLAD_VERSION_MAJOR(version) < 3 || !GLAD_GL_IS_SOME_NEW_VERSION) { + 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; + } + } else { + unsigned int index; + for(index = 0; index < num_exts_i; index++) { + const char *e = exts_i[index]; + if(strcmp(e, ext) == 0) { + return 1; + } + } + } + return 0; +} + +static GLADapiproc glad_gl_get_proc_from_userptr(const char* name, void *userptr) { + return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name); +} + +static int glad_gl_find_extensions_gl( int version) { + const char *exts = NULL; + unsigned int num_exts_i = 0; + char **exts_i = NULL; + if (!glad_gl_get_extensions(version, &exts, &num_exts_i, &exts_i)) return 0; + + GLAD_GL_ARB_multisample = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_multisample"); + GLAD_GL_ARB_robustness = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_robustness"); + GLAD_GL_KHR_debug = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_KHR_debug"); + + glad_gl_free_extensions(exts_i, num_exts_i); + + return 1; +} + +static int glad_gl_find_core_gl(void) { + 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 0; + for (i = 0; prefixes[i]; i++) { + const size_t length = strlen(prefixes[i]); + if (strncmp(version, prefixes[i], length) == 0) { + version += length; + break; + } + } + + GLAD_IMPL_UTIL_SSCANF(version, "%d.%d", &major, &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; + + return GLAD_MAKE_VERSION(major, minor); +} + +int gladLoadGLUserPtr( GLADuserptrloadfunc load, void *userptr) { + int version; + + glGetString = (PFNGLGETSTRINGPROC) load("glGetString", userptr); + if(glGetString == NULL) return 0; + if(glGetString(GL_VERSION) == NULL) return 0; + version = glad_gl_find_core_gl(); + + glad_gl_load_GL_VERSION_1_0(load, userptr); + glad_gl_load_GL_VERSION_1_1(load, userptr); + glad_gl_load_GL_VERSION_1_2(load, userptr); + glad_gl_load_GL_VERSION_1_3(load, userptr); + glad_gl_load_GL_VERSION_1_4(load, userptr); + glad_gl_load_GL_VERSION_1_5(load, userptr); + glad_gl_load_GL_VERSION_2_0(load, userptr); + glad_gl_load_GL_VERSION_2_1(load, userptr); + glad_gl_load_GL_VERSION_3_0(load, userptr); + glad_gl_load_GL_VERSION_3_1(load, userptr); + glad_gl_load_GL_VERSION_3_2(load, userptr); + glad_gl_load_GL_VERSION_3_3(load, userptr); + + if (!glad_gl_find_extensions_gl(version)) return 0; + glad_gl_load_GL_ARB_multisample(load, userptr); + glad_gl_load_GL_ARB_robustness(load, userptr); + glad_gl_load_GL_KHR_debug(load, userptr); + + + + return version; +} + + +int gladLoadGL( GLADloadfunc load) { + return gladLoadGLUserPtr( glad_gl_get_proc_from_userptr, GLAD_GNUC_EXTENSION (void*) load); +} + + + + diff --git a/external/glfw-3.3.4/deps/glad_vulkan.c b/external/glfw-3.3.4/deps/glad_vulkan.c new file mode 100644 index 0000000..5adfbbb --- /dev/null +++ b/external/glfw-3.3.4/deps/glad_vulkan.c @@ -0,0 +1,593 @@ +#include +#include +#include +#include + +#ifndef GLAD_IMPL_UTIL_C_ +#define GLAD_IMPL_UTIL_C_ + +#ifdef _MSC_VER +#define GLAD_IMPL_UTIL_SSCANF sscanf_s +#else +#define GLAD_IMPL_UTIL_SSCANF sscanf +#endif + +#endif /* GLAD_IMPL_UTIL_C_ */ + + +int GLAD_VK_VERSION_1_0 = 0; +int GLAD_VK_VERSION_1_1 = 0; +int GLAD_VK_EXT_debug_report = 0; +int GLAD_VK_KHR_surface = 0; +int GLAD_VK_KHR_swapchain = 0; + + + +PFN_vkAcquireNextImage2KHR glad_vkAcquireNextImage2KHR = NULL; +PFN_vkAcquireNextImageKHR glad_vkAcquireNextImageKHR = NULL; +PFN_vkAllocateCommandBuffers glad_vkAllocateCommandBuffers = NULL; +PFN_vkAllocateDescriptorSets glad_vkAllocateDescriptorSets = NULL; +PFN_vkAllocateMemory glad_vkAllocateMemory = NULL; +PFN_vkBeginCommandBuffer glad_vkBeginCommandBuffer = NULL; +PFN_vkBindBufferMemory glad_vkBindBufferMemory = NULL; +PFN_vkBindBufferMemory2 glad_vkBindBufferMemory2 = NULL; +PFN_vkBindImageMemory glad_vkBindImageMemory = NULL; +PFN_vkBindImageMemory2 glad_vkBindImageMemory2 = NULL; +PFN_vkCmdBeginQuery glad_vkCmdBeginQuery = NULL; +PFN_vkCmdBeginRenderPass glad_vkCmdBeginRenderPass = NULL; +PFN_vkCmdBindDescriptorSets glad_vkCmdBindDescriptorSets = NULL; +PFN_vkCmdBindIndexBuffer glad_vkCmdBindIndexBuffer = NULL; +PFN_vkCmdBindPipeline glad_vkCmdBindPipeline = NULL; +PFN_vkCmdBindVertexBuffers glad_vkCmdBindVertexBuffers = NULL; +PFN_vkCmdBlitImage glad_vkCmdBlitImage = NULL; +PFN_vkCmdClearAttachments glad_vkCmdClearAttachments = NULL; +PFN_vkCmdClearColorImage glad_vkCmdClearColorImage = NULL; +PFN_vkCmdClearDepthStencilImage glad_vkCmdClearDepthStencilImage = NULL; +PFN_vkCmdCopyBuffer glad_vkCmdCopyBuffer = NULL; +PFN_vkCmdCopyBufferToImage glad_vkCmdCopyBufferToImage = NULL; +PFN_vkCmdCopyImage glad_vkCmdCopyImage = NULL; +PFN_vkCmdCopyImageToBuffer glad_vkCmdCopyImageToBuffer = NULL; +PFN_vkCmdCopyQueryPoolResults glad_vkCmdCopyQueryPoolResults = NULL; +PFN_vkCmdDispatch glad_vkCmdDispatch = NULL; +PFN_vkCmdDispatchBase glad_vkCmdDispatchBase = NULL; +PFN_vkCmdDispatchIndirect glad_vkCmdDispatchIndirect = NULL; +PFN_vkCmdDraw glad_vkCmdDraw = NULL; +PFN_vkCmdDrawIndexed glad_vkCmdDrawIndexed = NULL; +PFN_vkCmdDrawIndexedIndirect glad_vkCmdDrawIndexedIndirect = NULL; +PFN_vkCmdDrawIndirect glad_vkCmdDrawIndirect = NULL; +PFN_vkCmdEndQuery glad_vkCmdEndQuery = NULL; +PFN_vkCmdEndRenderPass glad_vkCmdEndRenderPass = NULL; +PFN_vkCmdExecuteCommands glad_vkCmdExecuteCommands = NULL; +PFN_vkCmdFillBuffer glad_vkCmdFillBuffer = NULL; +PFN_vkCmdNextSubpass glad_vkCmdNextSubpass = NULL; +PFN_vkCmdPipelineBarrier glad_vkCmdPipelineBarrier = NULL; +PFN_vkCmdPushConstants glad_vkCmdPushConstants = NULL; +PFN_vkCmdResetEvent glad_vkCmdResetEvent = NULL; +PFN_vkCmdResetQueryPool glad_vkCmdResetQueryPool = NULL; +PFN_vkCmdResolveImage glad_vkCmdResolveImage = NULL; +PFN_vkCmdSetBlendConstants glad_vkCmdSetBlendConstants = NULL; +PFN_vkCmdSetDepthBias glad_vkCmdSetDepthBias = NULL; +PFN_vkCmdSetDepthBounds glad_vkCmdSetDepthBounds = NULL; +PFN_vkCmdSetDeviceMask glad_vkCmdSetDeviceMask = NULL; +PFN_vkCmdSetEvent glad_vkCmdSetEvent = NULL; +PFN_vkCmdSetLineWidth glad_vkCmdSetLineWidth = NULL; +PFN_vkCmdSetScissor glad_vkCmdSetScissor = NULL; +PFN_vkCmdSetStencilCompareMask glad_vkCmdSetStencilCompareMask = NULL; +PFN_vkCmdSetStencilReference glad_vkCmdSetStencilReference = NULL; +PFN_vkCmdSetStencilWriteMask glad_vkCmdSetStencilWriteMask = NULL; +PFN_vkCmdSetViewport glad_vkCmdSetViewport = NULL; +PFN_vkCmdUpdateBuffer glad_vkCmdUpdateBuffer = NULL; +PFN_vkCmdWaitEvents glad_vkCmdWaitEvents = NULL; +PFN_vkCmdWriteTimestamp glad_vkCmdWriteTimestamp = NULL; +PFN_vkCreateBuffer glad_vkCreateBuffer = NULL; +PFN_vkCreateBufferView glad_vkCreateBufferView = NULL; +PFN_vkCreateCommandPool glad_vkCreateCommandPool = NULL; +PFN_vkCreateComputePipelines glad_vkCreateComputePipelines = NULL; +PFN_vkCreateDebugReportCallbackEXT glad_vkCreateDebugReportCallbackEXT = NULL; +PFN_vkCreateDescriptorPool glad_vkCreateDescriptorPool = NULL; +PFN_vkCreateDescriptorSetLayout glad_vkCreateDescriptorSetLayout = NULL; +PFN_vkCreateDescriptorUpdateTemplate glad_vkCreateDescriptorUpdateTemplate = NULL; +PFN_vkCreateDevice glad_vkCreateDevice = NULL; +PFN_vkCreateEvent glad_vkCreateEvent = NULL; +PFN_vkCreateFence glad_vkCreateFence = NULL; +PFN_vkCreateFramebuffer glad_vkCreateFramebuffer = NULL; +PFN_vkCreateGraphicsPipelines glad_vkCreateGraphicsPipelines = NULL; +PFN_vkCreateImage glad_vkCreateImage = NULL; +PFN_vkCreateImageView glad_vkCreateImageView = NULL; +PFN_vkCreateInstance glad_vkCreateInstance = NULL; +PFN_vkCreatePipelineCache glad_vkCreatePipelineCache = NULL; +PFN_vkCreatePipelineLayout glad_vkCreatePipelineLayout = NULL; +PFN_vkCreateQueryPool glad_vkCreateQueryPool = NULL; +PFN_vkCreateRenderPass glad_vkCreateRenderPass = NULL; +PFN_vkCreateSampler glad_vkCreateSampler = NULL; +PFN_vkCreateSamplerYcbcrConversion glad_vkCreateSamplerYcbcrConversion = NULL; +PFN_vkCreateSemaphore glad_vkCreateSemaphore = NULL; +PFN_vkCreateShaderModule glad_vkCreateShaderModule = NULL; +PFN_vkCreateSwapchainKHR glad_vkCreateSwapchainKHR = NULL; +PFN_vkDebugReportMessageEXT glad_vkDebugReportMessageEXT = NULL; +PFN_vkDestroyBuffer glad_vkDestroyBuffer = NULL; +PFN_vkDestroyBufferView glad_vkDestroyBufferView = NULL; +PFN_vkDestroyCommandPool glad_vkDestroyCommandPool = NULL; +PFN_vkDestroyDebugReportCallbackEXT glad_vkDestroyDebugReportCallbackEXT = NULL; +PFN_vkDestroyDescriptorPool glad_vkDestroyDescriptorPool = NULL; +PFN_vkDestroyDescriptorSetLayout glad_vkDestroyDescriptorSetLayout = NULL; +PFN_vkDestroyDescriptorUpdateTemplate glad_vkDestroyDescriptorUpdateTemplate = NULL; +PFN_vkDestroyDevice glad_vkDestroyDevice = NULL; +PFN_vkDestroyEvent glad_vkDestroyEvent = NULL; +PFN_vkDestroyFence glad_vkDestroyFence = NULL; +PFN_vkDestroyFramebuffer glad_vkDestroyFramebuffer = NULL; +PFN_vkDestroyImage glad_vkDestroyImage = NULL; +PFN_vkDestroyImageView glad_vkDestroyImageView = NULL; +PFN_vkDestroyInstance glad_vkDestroyInstance = NULL; +PFN_vkDestroyPipeline glad_vkDestroyPipeline = NULL; +PFN_vkDestroyPipelineCache glad_vkDestroyPipelineCache = NULL; +PFN_vkDestroyPipelineLayout glad_vkDestroyPipelineLayout = NULL; +PFN_vkDestroyQueryPool glad_vkDestroyQueryPool = NULL; +PFN_vkDestroyRenderPass glad_vkDestroyRenderPass = NULL; +PFN_vkDestroySampler glad_vkDestroySampler = NULL; +PFN_vkDestroySamplerYcbcrConversion glad_vkDestroySamplerYcbcrConversion = NULL; +PFN_vkDestroySemaphore glad_vkDestroySemaphore = NULL; +PFN_vkDestroyShaderModule glad_vkDestroyShaderModule = NULL; +PFN_vkDestroySurfaceKHR glad_vkDestroySurfaceKHR = NULL; +PFN_vkDestroySwapchainKHR glad_vkDestroySwapchainKHR = NULL; +PFN_vkDeviceWaitIdle glad_vkDeviceWaitIdle = NULL; +PFN_vkEndCommandBuffer glad_vkEndCommandBuffer = NULL; +PFN_vkEnumerateDeviceExtensionProperties glad_vkEnumerateDeviceExtensionProperties = NULL; +PFN_vkEnumerateDeviceLayerProperties glad_vkEnumerateDeviceLayerProperties = NULL; +PFN_vkEnumerateInstanceExtensionProperties glad_vkEnumerateInstanceExtensionProperties = NULL; +PFN_vkEnumerateInstanceLayerProperties glad_vkEnumerateInstanceLayerProperties = NULL; +PFN_vkEnumerateInstanceVersion glad_vkEnumerateInstanceVersion = NULL; +PFN_vkEnumeratePhysicalDeviceGroups glad_vkEnumeratePhysicalDeviceGroups = NULL; +PFN_vkEnumeratePhysicalDevices glad_vkEnumeratePhysicalDevices = NULL; +PFN_vkFlushMappedMemoryRanges glad_vkFlushMappedMemoryRanges = NULL; +PFN_vkFreeCommandBuffers glad_vkFreeCommandBuffers = NULL; +PFN_vkFreeDescriptorSets glad_vkFreeDescriptorSets = NULL; +PFN_vkFreeMemory glad_vkFreeMemory = NULL; +PFN_vkGetBufferMemoryRequirements glad_vkGetBufferMemoryRequirements = NULL; +PFN_vkGetBufferMemoryRequirements2 glad_vkGetBufferMemoryRequirements2 = NULL; +PFN_vkGetDescriptorSetLayoutSupport glad_vkGetDescriptorSetLayoutSupport = NULL; +PFN_vkGetDeviceGroupPeerMemoryFeatures glad_vkGetDeviceGroupPeerMemoryFeatures = NULL; +PFN_vkGetDeviceGroupPresentCapabilitiesKHR glad_vkGetDeviceGroupPresentCapabilitiesKHR = NULL; +PFN_vkGetDeviceGroupSurfacePresentModesKHR glad_vkGetDeviceGroupSurfacePresentModesKHR = NULL; +PFN_vkGetDeviceMemoryCommitment glad_vkGetDeviceMemoryCommitment = NULL; +PFN_vkGetDeviceProcAddr glad_vkGetDeviceProcAddr = NULL; +PFN_vkGetDeviceQueue glad_vkGetDeviceQueue = NULL; +PFN_vkGetDeviceQueue2 glad_vkGetDeviceQueue2 = NULL; +PFN_vkGetEventStatus glad_vkGetEventStatus = NULL; +PFN_vkGetFenceStatus glad_vkGetFenceStatus = NULL; +PFN_vkGetImageMemoryRequirements glad_vkGetImageMemoryRequirements = NULL; +PFN_vkGetImageMemoryRequirements2 glad_vkGetImageMemoryRequirements2 = NULL; +PFN_vkGetImageSparseMemoryRequirements glad_vkGetImageSparseMemoryRequirements = NULL; +PFN_vkGetImageSparseMemoryRequirements2 glad_vkGetImageSparseMemoryRequirements2 = NULL; +PFN_vkGetImageSubresourceLayout glad_vkGetImageSubresourceLayout = NULL; +PFN_vkGetInstanceProcAddr glad_vkGetInstanceProcAddr = NULL; +PFN_vkGetPhysicalDeviceExternalBufferProperties glad_vkGetPhysicalDeviceExternalBufferProperties = NULL; +PFN_vkGetPhysicalDeviceExternalFenceProperties glad_vkGetPhysicalDeviceExternalFenceProperties = NULL; +PFN_vkGetPhysicalDeviceExternalSemaphoreProperties glad_vkGetPhysicalDeviceExternalSemaphoreProperties = NULL; +PFN_vkGetPhysicalDeviceFeatures glad_vkGetPhysicalDeviceFeatures = NULL; +PFN_vkGetPhysicalDeviceFeatures2 glad_vkGetPhysicalDeviceFeatures2 = NULL; +PFN_vkGetPhysicalDeviceFormatProperties glad_vkGetPhysicalDeviceFormatProperties = NULL; +PFN_vkGetPhysicalDeviceFormatProperties2 glad_vkGetPhysicalDeviceFormatProperties2 = NULL; +PFN_vkGetPhysicalDeviceImageFormatProperties glad_vkGetPhysicalDeviceImageFormatProperties = NULL; +PFN_vkGetPhysicalDeviceImageFormatProperties2 glad_vkGetPhysicalDeviceImageFormatProperties2 = NULL; +PFN_vkGetPhysicalDeviceMemoryProperties glad_vkGetPhysicalDeviceMemoryProperties = NULL; +PFN_vkGetPhysicalDeviceMemoryProperties2 glad_vkGetPhysicalDeviceMemoryProperties2 = NULL; +PFN_vkGetPhysicalDevicePresentRectanglesKHR glad_vkGetPhysicalDevicePresentRectanglesKHR = NULL; +PFN_vkGetPhysicalDeviceProperties glad_vkGetPhysicalDeviceProperties = NULL; +PFN_vkGetPhysicalDeviceProperties2 glad_vkGetPhysicalDeviceProperties2 = NULL; +PFN_vkGetPhysicalDeviceQueueFamilyProperties glad_vkGetPhysicalDeviceQueueFamilyProperties = NULL; +PFN_vkGetPhysicalDeviceQueueFamilyProperties2 glad_vkGetPhysicalDeviceQueueFamilyProperties2 = NULL; +PFN_vkGetPhysicalDeviceSparseImageFormatProperties glad_vkGetPhysicalDeviceSparseImageFormatProperties = NULL; +PFN_vkGetPhysicalDeviceSparseImageFormatProperties2 glad_vkGetPhysicalDeviceSparseImageFormatProperties2 = NULL; +PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR glad_vkGetPhysicalDeviceSurfaceCapabilitiesKHR = NULL; +PFN_vkGetPhysicalDeviceSurfaceFormatsKHR glad_vkGetPhysicalDeviceSurfaceFormatsKHR = NULL; +PFN_vkGetPhysicalDeviceSurfacePresentModesKHR glad_vkGetPhysicalDeviceSurfacePresentModesKHR = NULL; +PFN_vkGetPhysicalDeviceSurfaceSupportKHR glad_vkGetPhysicalDeviceSurfaceSupportKHR = NULL; +PFN_vkGetPipelineCacheData glad_vkGetPipelineCacheData = NULL; +PFN_vkGetQueryPoolResults glad_vkGetQueryPoolResults = NULL; +PFN_vkGetRenderAreaGranularity glad_vkGetRenderAreaGranularity = NULL; +PFN_vkGetSwapchainImagesKHR glad_vkGetSwapchainImagesKHR = NULL; +PFN_vkInvalidateMappedMemoryRanges glad_vkInvalidateMappedMemoryRanges = NULL; +PFN_vkMapMemory glad_vkMapMemory = NULL; +PFN_vkMergePipelineCaches glad_vkMergePipelineCaches = NULL; +PFN_vkQueueBindSparse glad_vkQueueBindSparse = NULL; +PFN_vkQueuePresentKHR glad_vkQueuePresentKHR = NULL; +PFN_vkQueueSubmit glad_vkQueueSubmit = NULL; +PFN_vkQueueWaitIdle glad_vkQueueWaitIdle = NULL; +PFN_vkResetCommandBuffer glad_vkResetCommandBuffer = NULL; +PFN_vkResetCommandPool glad_vkResetCommandPool = NULL; +PFN_vkResetDescriptorPool glad_vkResetDescriptorPool = NULL; +PFN_vkResetEvent glad_vkResetEvent = NULL; +PFN_vkResetFences glad_vkResetFences = NULL; +PFN_vkSetEvent glad_vkSetEvent = NULL; +PFN_vkTrimCommandPool glad_vkTrimCommandPool = NULL; +PFN_vkUnmapMemory glad_vkUnmapMemory = NULL; +PFN_vkUpdateDescriptorSetWithTemplate glad_vkUpdateDescriptorSetWithTemplate = NULL; +PFN_vkUpdateDescriptorSets glad_vkUpdateDescriptorSets = NULL; +PFN_vkWaitForFences glad_vkWaitForFences = NULL; + + +static void glad_vk_load_VK_VERSION_1_0( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_VK_VERSION_1_0) return; + vkAllocateCommandBuffers = (PFN_vkAllocateCommandBuffers) load("vkAllocateCommandBuffers", userptr); + vkAllocateDescriptorSets = (PFN_vkAllocateDescriptorSets) load("vkAllocateDescriptorSets", userptr); + vkAllocateMemory = (PFN_vkAllocateMemory) load("vkAllocateMemory", userptr); + vkBeginCommandBuffer = (PFN_vkBeginCommandBuffer) load("vkBeginCommandBuffer", userptr); + vkBindBufferMemory = (PFN_vkBindBufferMemory) load("vkBindBufferMemory", userptr); + vkBindImageMemory = (PFN_vkBindImageMemory) load("vkBindImageMemory", userptr); + vkCmdBeginQuery = (PFN_vkCmdBeginQuery) load("vkCmdBeginQuery", userptr); + vkCmdBeginRenderPass = (PFN_vkCmdBeginRenderPass) load("vkCmdBeginRenderPass", userptr); + vkCmdBindDescriptorSets = (PFN_vkCmdBindDescriptorSets) load("vkCmdBindDescriptorSets", userptr); + vkCmdBindIndexBuffer = (PFN_vkCmdBindIndexBuffer) load("vkCmdBindIndexBuffer", userptr); + vkCmdBindPipeline = (PFN_vkCmdBindPipeline) load("vkCmdBindPipeline", userptr); + vkCmdBindVertexBuffers = (PFN_vkCmdBindVertexBuffers) load("vkCmdBindVertexBuffers", userptr); + vkCmdBlitImage = (PFN_vkCmdBlitImage) load("vkCmdBlitImage", userptr); + vkCmdClearAttachments = (PFN_vkCmdClearAttachments) load("vkCmdClearAttachments", userptr); + vkCmdClearColorImage = (PFN_vkCmdClearColorImage) load("vkCmdClearColorImage", userptr); + vkCmdClearDepthStencilImage = (PFN_vkCmdClearDepthStencilImage) load("vkCmdClearDepthStencilImage", userptr); + vkCmdCopyBuffer = (PFN_vkCmdCopyBuffer) load("vkCmdCopyBuffer", userptr); + vkCmdCopyBufferToImage = (PFN_vkCmdCopyBufferToImage) load("vkCmdCopyBufferToImage", userptr); + vkCmdCopyImage = (PFN_vkCmdCopyImage) load("vkCmdCopyImage", userptr); + vkCmdCopyImageToBuffer = (PFN_vkCmdCopyImageToBuffer) load("vkCmdCopyImageToBuffer", userptr); + vkCmdCopyQueryPoolResults = (PFN_vkCmdCopyQueryPoolResults) load("vkCmdCopyQueryPoolResults", userptr); + vkCmdDispatch = (PFN_vkCmdDispatch) load("vkCmdDispatch", userptr); + vkCmdDispatchIndirect = (PFN_vkCmdDispatchIndirect) load("vkCmdDispatchIndirect", userptr); + vkCmdDraw = (PFN_vkCmdDraw) load("vkCmdDraw", userptr); + vkCmdDrawIndexed = (PFN_vkCmdDrawIndexed) load("vkCmdDrawIndexed", userptr); + vkCmdDrawIndexedIndirect = (PFN_vkCmdDrawIndexedIndirect) load("vkCmdDrawIndexedIndirect", userptr); + vkCmdDrawIndirect = (PFN_vkCmdDrawIndirect) load("vkCmdDrawIndirect", userptr); + vkCmdEndQuery = (PFN_vkCmdEndQuery) load("vkCmdEndQuery", userptr); + vkCmdEndRenderPass = (PFN_vkCmdEndRenderPass) load("vkCmdEndRenderPass", userptr); + vkCmdExecuteCommands = (PFN_vkCmdExecuteCommands) load("vkCmdExecuteCommands", userptr); + vkCmdFillBuffer = (PFN_vkCmdFillBuffer) load("vkCmdFillBuffer", userptr); + vkCmdNextSubpass = (PFN_vkCmdNextSubpass) load("vkCmdNextSubpass", userptr); + vkCmdPipelineBarrier = (PFN_vkCmdPipelineBarrier) load("vkCmdPipelineBarrier", userptr); + vkCmdPushConstants = (PFN_vkCmdPushConstants) load("vkCmdPushConstants", userptr); + vkCmdResetEvent = (PFN_vkCmdResetEvent) load("vkCmdResetEvent", userptr); + vkCmdResetQueryPool = (PFN_vkCmdResetQueryPool) load("vkCmdResetQueryPool", userptr); + vkCmdResolveImage = (PFN_vkCmdResolveImage) load("vkCmdResolveImage", userptr); + vkCmdSetBlendConstants = (PFN_vkCmdSetBlendConstants) load("vkCmdSetBlendConstants", userptr); + vkCmdSetDepthBias = (PFN_vkCmdSetDepthBias) load("vkCmdSetDepthBias", userptr); + vkCmdSetDepthBounds = (PFN_vkCmdSetDepthBounds) load("vkCmdSetDepthBounds", userptr); + vkCmdSetEvent = (PFN_vkCmdSetEvent) load("vkCmdSetEvent", userptr); + vkCmdSetLineWidth = (PFN_vkCmdSetLineWidth) load("vkCmdSetLineWidth", userptr); + vkCmdSetScissor = (PFN_vkCmdSetScissor) load("vkCmdSetScissor", userptr); + vkCmdSetStencilCompareMask = (PFN_vkCmdSetStencilCompareMask) load("vkCmdSetStencilCompareMask", userptr); + vkCmdSetStencilReference = (PFN_vkCmdSetStencilReference) load("vkCmdSetStencilReference", userptr); + vkCmdSetStencilWriteMask = (PFN_vkCmdSetStencilWriteMask) load("vkCmdSetStencilWriteMask", userptr); + vkCmdSetViewport = (PFN_vkCmdSetViewport) load("vkCmdSetViewport", userptr); + vkCmdUpdateBuffer = (PFN_vkCmdUpdateBuffer) load("vkCmdUpdateBuffer", userptr); + vkCmdWaitEvents = (PFN_vkCmdWaitEvents) load("vkCmdWaitEvents", userptr); + vkCmdWriteTimestamp = (PFN_vkCmdWriteTimestamp) load("vkCmdWriteTimestamp", userptr); + vkCreateBuffer = (PFN_vkCreateBuffer) load("vkCreateBuffer", userptr); + vkCreateBufferView = (PFN_vkCreateBufferView) load("vkCreateBufferView", userptr); + vkCreateCommandPool = (PFN_vkCreateCommandPool) load("vkCreateCommandPool", userptr); + vkCreateComputePipelines = (PFN_vkCreateComputePipelines) load("vkCreateComputePipelines", userptr); + vkCreateDescriptorPool = (PFN_vkCreateDescriptorPool) load("vkCreateDescriptorPool", userptr); + vkCreateDescriptorSetLayout = (PFN_vkCreateDescriptorSetLayout) load("vkCreateDescriptorSetLayout", userptr); + vkCreateDevice = (PFN_vkCreateDevice) load("vkCreateDevice", userptr); + vkCreateEvent = (PFN_vkCreateEvent) load("vkCreateEvent", userptr); + vkCreateFence = (PFN_vkCreateFence) load("vkCreateFence", userptr); + vkCreateFramebuffer = (PFN_vkCreateFramebuffer) load("vkCreateFramebuffer", userptr); + vkCreateGraphicsPipelines = (PFN_vkCreateGraphicsPipelines) load("vkCreateGraphicsPipelines", userptr); + vkCreateImage = (PFN_vkCreateImage) load("vkCreateImage", userptr); + vkCreateImageView = (PFN_vkCreateImageView) load("vkCreateImageView", userptr); + vkCreateInstance = (PFN_vkCreateInstance) load("vkCreateInstance", userptr); + vkCreatePipelineCache = (PFN_vkCreatePipelineCache) load("vkCreatePipelineCache", userptr); + vkCreatePipelineLayout = (PFN_vkCreatePipelineLayout) load("vkCreatePipelineLayout", userptr); + vkCreateQueryPool = (PFN_vkCreateQueryPool) load("vkCreateQueryPool", userptr); + vkCreateRenderPass = (PFN_vkCreateRenderPass) load("vkCreateRenderPass", userptr); + vkCreateSampler = (PFN_vkCreateSampler) load("vkCreateSampler", userptr); + vkCreateSemaphore = (PFN_vkCreateSemaphore) load("vkCreateSemaphore", userptr); + vkCreateShaderModule = (PFN_vkCreateShaderModule) load("vkCreateShaderModule", userptr); + vkDestroyBuffer = (PFN_vkDestroyBuffer) load("vkDestroyBuffer", userptr); + vkDestroyBufferView = (PFN_vkDestroyBufferView) load("vkDestroyBufferView", userptr); + vkDestroyCommandPool = (PFN_vkDestroyCommandPool) load("vkDestroyCommandPool", userptr); + vkDestroyDescriptorPool = (PFN_vkDestroyDescriptorPool) load("vkDestroyDescriptorPool", userptr); + vkDestroyDescriptorSetLayout = (PFN_vkDestroyDescriptorSetLayout) load("vkDestroyDescriptorSetLayout", userptr); + vkDestroyDevice = (PFN_vkDestroyDevice) load("vkDestroyDevice", userptr); + vkDestroyEvent = (PFN_vkDestroyEvent) load("vkDestroyEvent", userptr); + vkDestroyFence = (PFN_vkDestroyFence) load("vkDestroyFence", userptr); + vkDestroyFramebuffer = (PFN_vkDestroyFramebuffer) load("vkDestroyFramebuffer", userptr); + vkDestroyImage = (PFN_vkDestroyImage) load("vkDestroyImage", userptr); + vkDestroyImageView = (PFN_vkDestroyImageView) load("vkDestroyImageView", userptr); + vkDestroyInstance = (PFN_vkDestroyInstance) load("vkDestroyInstance", userptr); + vkDestroyPipeline = (PFN_vkDestroyPipeline) load("vkDestroyPipeline", userptr); + vkDestroyPipelineCache = (PFN_vkDestroyPipelineCache) load("vkDestroyPipelineCache", userptr); + vkDestroyPipelineLayout = (PFN_vkDestroyPipelineLayout) load("vkDestroyPipelineLayout", userptr); + vkDestroyQueryPool = (PFN_vkDestroyQueryPool) load("vkDestroyQueryPool", userptr); + vkDestroyRenderPass = (PFN_vkDestroyRenderPass) load("vkDestroyRenderPass", userptr); + vkDestroySampler = (PFN_vkDestroySampler) load("vkDestroySampler", userptr); + vkDestroySemaphore = (PFN_vkDestroySemaphore) load("vkDestroySemaphore", userptr); + vkDestroyShaderModule = (PFN_vkDestroyShaderModule) load("vkDestroyShaderModule", userptr); + vkDeviceWaitIdle = (PFN_vkDeviceWaitIdle) load("vkDeviceWaitIdle", userptr); + vkEndCommandBuffer = (PFN_vkEndCommandBuffer) load("vkEndCommandBuffer", userptr); + vkEnumerateDeviceExtensionProperties = (PFN_vkEnumerateDeviceExtensionProperties) load("vkEnumerateDeviceExtensionProperties", userptr); + vkEnumerateDeviceLayerProperties = (PFN_vkEnumerateDeviceLayerProperties) load("vkEnumerateDeviceLayerProperties", userptr); + vkEnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties) load("vkEnumerateInstanceExtensionProperties", userptr); + vkEnumerateInstanceLayerProperties = (PFN_vkEnumerateInstanceLayerProperties) load("vkEnumerateInstanceLayerProperties", userptr); + vkEnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices) load("vkEnumeratePhysicalDevices", userptr); + vkFlushMappedMemoryRanges = (PFN_vkFlushMappedMemoryRanges) load("vkFlushMappedMemoryRanges", userptr); + vkFreeCommandBuffers = (PFN_vkFreeCommandBuffers) load("vkFreeCommandBuffers", userptr); + vkFreeDescriptorSets = (PFN_vkFreeDescriptorSets) load("vkFreeDescriptorSets", userptr); + vkFreeMemory = (PFN_vkFreeMemory) load("vkFreeMemory", userptr); + vkGetBufferMemoryRequirements = (PFN_vkGetBufferMemoryRequirements) load("vkGetBufferMemoryRequirements", userptr); + vkGetDeviceMemoryCommitment = (PFN_vkGetDeviceMemoryCommitment) load("vkGetDeviceMemoryCommitment", userptr); + vkGetDeviceProcAddr = (PFN_vkGetDeviceProcAddr) load("vkGetDeviceProcAddr", userptr); + vkGetDeviceQueue = (PFN_vkGetDeviceQueue) load("vkGetDeviceQueue", userptr); + vkGetEventStatus = (PFN_vkGetEventStatus) load("vkGetEventStatus", userptr); + vkGetFenceStatus = (PFN_vkGetFenceStatus) load("vkGetFenceStatus", userptr); + vkGetImageMemoryRequirements = (PFN_vkGetImageMemoryRequirements) load("vkGetImageMemoryRequirements", userptr); + vkGetImageSparseMemoryRequirements = (PFN_vkGetImageSparseMemoryRequirements) load("vkGetImageSparseMemoryRequirements", userptr); + vkGetImageSubresourceLayout = (PFN_vkGetImageSubresourceLayout) load("vkGetImageSubresourceLayout", userptr); + vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) load("vkGetInstanceProcAddr", userptr); + vkGetPhysicalDeviceFeatures = (PFN_vkGetPhysicalDeviceFeatures) load("vkGetPhysicalDeviceFeatures", userptr); + vkGetPhysicalDeviceFormatProperties = (PFN_vkGetPhysicalDeviceFormatProperties) load("vkGetPhysicalDeviceFormatProperties", userptr); + vkGetPhysicalDeviceImageFormatProperties = (PFN_vkGetPhysicalDeviceImageFormatProperties) load("vkGetPhysicalDeviceImageFormatProperties", userptr); + vkGetPhysicalDeviceMemoryProperties = (PFN_vkGetPhysicalDeviceMemoryProperties) load("vkGetPhysicalDeviceMemoryProperties", userptr); + vkGetPhysicalDeviceProperties = (PFN_vkGetPhysicalDeviceProperties) load("vkGetPhysicalDeviceProperties", userptr); + vkGetPhysicalDeviceQueueFamilyProperties = (PFN_vkGetPhysicalDeviceQueueFamilyProperties) load("vkGetPhysicalDeviceQueueFamilyProperties", userptr); + vkGetPhysicalDeviceSparseImageFormatProperties = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties) load("vkGetPhysicalDeviceSparseImageFormatProperties", userptr); + vkGetPipelineCacheData = (PFN_vkGetPipelineCacheData) load("vkGetPipelineCacheData", userptr); + vkGetQueryPoolResults = (PFN_vkGetQueryPoolResults) load("vkGetQueryPoolResults", userptr); + vkGetRenderAreaGranularity = (PFN_vkGetRenderAreaGranularity) load("vkGetRenderAreaGranularity", userptr); + vkInvalidateMappedMemoryRanges = (PFN_vkInvalidateMappedMemoryRanges) load("vkInvalidateMappedMemoryRanges", userptr); + vkMapMemory = (PFN_vkMapMemory) load("vkMapMemory", userptr); + vkMergePipelineCaches = (PFN_vkMergePipelineCaches) load("vkMergePipelineCaches", userptr); + vkQueueBindSparse = (PFN_vkQueueBindSparse) load("vkQueueBindSparse", userptr); + vkQueueSubmit = (PFN_vkQueueSubmit) load("vkQueueSubmit", userptr); + vkQueueWaitIdle = (PFN_vkQueueWaitIdle) load("vkQueueWaitIdle", userptr); + vkResetCommandBuffer = (PFN_vkResetCommandBuffer) load("vkResetCommandBuffer", userptr); + vkResetCommandPool = (PFN_vkResetCommandPool) load("vkResetCommandPool", userptr); + vkResetDescriptorPool = (PFN_vkResetDescriptorPool) load("vkResetDescriptorPool", userptr); + vkResetEvent = (PFN_vkResetEvent) load("vkResetEvent", userptr); + vkResetFences = (PFN_vkResetFences) load("vkResetFences", userptr); + vkSetEvent = (PFN_vkSetEvent) load("vkSetEvent", userptr); + vkUnmapMemory = (PFN_vkUnmapMemory) load("vkUnmapMemory", userptr); + vkUpdateDescriptorSets = (PFN_vkUpdateDescriptorSets) load("vkUpdateDescriptorSets", userptr); + vkWaitForFences = (PFN_vkWaitForFences) load("vkWaitForFences", userptr); +} +static void glad_vk_load_VK_VERSION_1_1( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_VK_VERSION_1_1) return; + vkBindBufferMemory2 = (PFN_vkBindBufferMemory2) load("vkBindBufferMemory2", userptr); + vkBindImageMemory2 = (PFN_vkBindImageMemory2) load("vkBindImageMemory2", userptr); + vkCmdDispatchBase = (PFN_vkCmdDispatchBase) load("vkCmdDispatchBase", userptr); + vkCmdSetDeviceMask = (PFN_vkCmdSetDeviceMask) load("vkCmdSetDeviceMask", userptr); + vkCreateDescriptorUpdateTemplate = (PFN_vkCreateDescriptorUpdateTemplate) load("vkCreateDescriptorUpdateTemplate", userptr); + vkCreateSamplerYcbcrConversion = (PFN_vkCreateSamplerYcbcrConversion) load("vkCreateSamplerYcbcrConversion", userptr); + vkDestroyDescriptorUpdateTemplate = (PFN_vkDestroyDescriptorUpdateTemplate) load("vkDestroyDescriptorUpdateTemplate", userptr); + vkDestroySamplerYcbcrConversion = (PFN_vkDestroySamplerYcbcrConversion) load("vkDestroySamplerYcbcrConversion", userptr); + vkEnumerateInstanceVersion = (PFN_vkEnumerateInstanceVersion) load("vkEnumerateInstanceVersion", userptr); + vkEnumeratePhysicalDeviceGroups = (PFN_vkEnumeratePhysicalDeviceGroups) load("vkEnumeratePhysicalDeviceGroups", userptr); + vkGetBufferMemoryRequirements2 = (PFN_vkGetBufferMemoryRequirements2) load("vkGetBufferMemoryRequirements2", userptr); + vkGetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport) load("vkGetDescriptorSetLayoutSupport", userptr); + vkGetDeviceGroupPeerMemoryFeatures = (PFN_vkGetDeviceGroupPeerMemoryFeatures) load("vkGetDeviceGroupPeerMemoryFeatures", userptr); + vkGetDeviceQueue2 = (PFN_vkGetDeviceQueue2) load("vkGetDeviceQueue2", userptr); + vkGetImageMemoryRequirements2 = (PFN_vkGetImageMemoryRequirements2) load("vkGetImageMemoryRequirements2", userptr); + vkGetImageSparseMemoryRequirements2 = (PFN_vkGetImageSparseMemoryRequirements2) load("vkGetImageSparseMemoryRequirements2", userptr); + vkGetPhysicalDeviceExternalBufferProperties = (PFN_vkGetPhysicalDeviceExternalBufferProperties) load("vkGetPhysicalDeviceExternalBufferProperties", userptr); + vkGetPhysicalDeviceExternalFenceProperties = (PFN_vkGetPhysicalDeviceExternalFenceProperties) load("vkGetPhysicalDeviceExternalFenceProperties", userptr); + vkGetPhysicalDeviceExternalSemaphoreProperties = (PFN_vkGetPhysicalDeviceExternalSemaphoreProperties) load("vkGetPhysicalDeviceExternalSemaphoreProperties", userptr); + vkGetPhysicalDeviceFeatures2 = (PFN_vkGetPhysicalDeviceFeatures2) load("vkGetPhysicalDeviceFeatures2", userptr); + vkGetPhysicalDeviceFormatProperties2 = (PFN_vkGetPhysicalDeviceFormatProperties2) load("vkGetPhysicalDeviceFormatProperties2", userptr); + vkGetPhysicalDeviceImageFormatProperties2 = (PFN_vkGetPhysicalDeviceImageFormatProperties2) load("vkGetPhysicalDeviceImageFormatProperties2", userptr); + vkGetPhysicalDeviceMemoryProperties2 = (PFN_vkGetPhysicalDeviceMemoryProperties2) load("vkGetPhysicalDeviceMemoryProperties2", userptr); + vkGetPhysicalDeviceProperties2 = (PFN_vkGetPhysicalDeviceProperties2) load("vkGetPhysicalDeviceProperties2", userptr); + vkGetPhysicalDeviceQueueFamilyProperties2 = (PFN_vkGetPhysicalDeviceQueueFamilyProperties2) load("vkGetPhysicalDeviceQueueFamilyProperties2", userptr); + vkGetPhysicalDeviceSparseImageFormatProperties2 = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties2) load("vkGetPhysicalDeviceSparseImageFormatProperties2", userptr); + vkTrimCommandPool = (PFN_vkTrimCommandPool) load("vkTrimCommandPool", userptr); + vkUpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate) load("vkUpdateDescriptorSetWithTemplate", userptr); +} +static void glad_vk_load_VK_EXT_debug_report( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_VK_EXT_debug_report) return; + vkCreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT) load("vkCreateDebugReportCallbackEXT", userptr); + vkDebugReportMessageEXT = (PFN_vkDebugReportMessageEXT) load("vkDebugReportMessageEXT", userptr); + vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT) load("vkDestroyDebugReportCallbackEXT", userptr); +} +static void glad_vk_load_VK_KHR_surface( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_VK_KHR_surface) return; + vkDestroySurfaceKHR = (PFN_vkDestroySurfaceKHR) load("vkDestroySurfaceKHR", userptr); + vkGetPhysicalDeviceSurfaceCapabilitiesKHR = (PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR) load("vkGetPhysicalDeviceSurfaceCapabilitiesKHR", userptr); + vkGetPhysicalDeviceSurfaceFormatsKHR = (PFN_vkGetPhysicalDeviceSurfaceFormatsKHR) load("vkGetPhysicalDeviceSurfaceFormatsKHR", userptr); + vkGetPhysicalDeviceSurfacePresentModesKHR = (PFN_vkGetPhysicalDeviceSurfacePresentModesKHR) load("vkGetPhysicalDeviceSurfacePresentModesKHR", userptr); + vkGetPhysicalDeviceSurfaceSupportKHR = (PFN_vkGetPhysicalDeviceSurfaceSupportKHR) load("vkGetPhysicalDeviceSurfaceSupportKHR", userptr); +} +static void glad_vk_load_VK_KHR_swapchain( GLADuserptrloadfunc load, void* userptr) { + if(!GLAD_VK_KHR_swapchain) return; + vkAcquireNextImage2KHR = (PFN_vkAcquireNextImage2KHR) load("vkAcquireNextImage2KHR", userptr); + vkAcquireNextImageKHR = (PFN_vkAcquireNextImageKHR) load("vkAcquireNextImageKHR", userptr); + vkCreateSwapchainKHR = (PFN_vkCreateSwapchainKHR) load("vkCreateSwapchainKHR", userptr); + vkDestroySwapchainKHR = (PFN_vkDestroySwapchainKHR) load("vkDestroySwapchainKHR", userptr); + vkGetDeviceGroupPresentCapabilitiesKHR = (PFN_vkGetDeviceGroupPresentCapabilitiesKHR) load("vkGetDeviceGroupPresentCapabilitiesKHR", userptr); + vkGetDeviceGroupSurfacePresentModesKHR = (PFN_vkGetDeviceGroupSurfacePresentModesKHR) load("vkGetDeviceGroupSurfacePresentModesKHR", userptr); + vkGetPhysicalDevicePresentRectanglesKHR = (PFN_vkGetPhysicalDevicePresentRectanglesKHR) load("vkGetPhysicalDevicePresentRectanglesKHR", userptr); + vkGetSwapchainImagesKHR = (PFN_vkGetSwapchainImagesKHR) load("vkGetSwapchainImagesKHR", userptr); + vkQueuePresentKHR = (PFN_vkQueuePresentKHR) load("vkQueuePresentKHR", userptr); +} + + + +static int glad_vk_get_extensions( VkPhysicalDevice physical_device, uint32_t *out_extension_count, char ***out_extensions) { + uint32_t i; + uint32_t instance_extension_count = 0; + uint32_t device_extension_count = 0; + uint32_t max_extension_count; + uint32_t total_extension_count; + char **extensions; + VkExtensionProperties *ext_properties; + VkResult result; + + if (vkEnumerateInstanceExtensionProperties == NULL || (physical_device != NULL && vkEnumerateDeviceExtensionProperties == NULL)) { + return 0; + } + + result = vkEnumerateInstanceExtensionProperties(NULL, &instance_extension_count, NULL); + if (result != VK_SUCCESS) { + return 0; + } + + if (physical_device != NULL) { + result = vkEnumerateDeviceExtensionProperties(physical_device, NULL, &device_extension_count, NULL); + if (result != VK_SUCCESS) { + return 0; + } + } + + total_extension_count = instance_extension_count + device_extension_count; + max_extension_count = instance_extension_count > device_extension_count + ? instance_extension_count : device_extension_count; + + ext_properties = (VkExtensionProperties*) malloc(max_extension_count * sizeof(VkExtensionProperties)); + if (ext_properties == NULL) { + return 0; + } + + result = vkEnumerateInstanceExtensionProperties(NULL, &instance_extension_count, ext_properties); + if (result != VK_SUCCESS) { + free((void*) ext_properties); + return 0; + } + + extensions = (char**) calloc(total_extension_count, sizeof(char*)); + if (extensions == NULL) { + free((void*) ext_properties); + return 0; + } + + for (i = 0; i < instance_extension_count; ++i) { + VkExtensionProperties ext = ext_properties[i]; + + size_t extension_name_length = strlen(ext.extensionName) + 1; + extensions[i] = (char*) malloc(extension_name_length * sizeof(char)); + memcpy(extensions[i], ext.extensionName, extension_name_length * sizeof(char)); + } + + if (physical_device != NULL) { + result = vkEnumerateDeviceExtensionProperties(physical_device, NULL, &device_extension_count, ext_properties); + if (result != VK_SUCCESS) { + for (i = 0; i < instance_extension_count; ++i) { + free((void*) extensions[i]); + } + free(extensions); + return 0; + } + + for (i = 0; i < device_extension_count; ++i) { + VkExtensionProperties ext = ext_properties[i]; + + size_t extension_name_length = strlen(ext.extensionName) + 1; + extensions[instance_extension_count + i] = (char*) malloc(extension_name_length * sizeof(char)); + memcpy(extensions[instance_extension_count + i], ext.extensionName, extension_name_length * sizeof(char)); + } + } + + free((void*) ext_properties); + + *out_extension_count = total_extension_count; + *out_extensions = extensions; + + return 1; +} + +static void glad_vk_free_extensions(uint32_t extension_count, char **extensions) { + uint32_t i; + + for(i = 0; i < extension_count ; ++i) { + free((void*) (extensions[i])); + } + + free((void*) extensions); +} + +static int glad_vk_has_extension(const char *name, uint32_t extension_count, char **extensions) { + uint32_t i; + + for (i = 0; i < extension_count; ++i) { + if(strcmp(name, extensions[i]) == 0) { + return 1; + } + } + + return 0; +} + +static GLADapiproc glad_vk_get_proc_from_userptr(const char* name, void *userptr) { + return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name); +} + +static int glad_vk_find_extensions_vulkan( VkPhysicalDevice physical_device) { + uint32_t extension_count = 0; + char **extensions = NULL; + if (!glad_vk_get_extensions(physical_device, &extension_count, &extensions)) return 0; + + GLAD_VK_EXT_debug_report = glad_vk_has_extension("VK_EXT_debug_report", extension_count, extensions); + GLAD_VK_KHR_surface = glad_vk_has_extension("VK_KHR_surface", extension_count, extensions); + GLAD_VK_KHR_swapchain = glad_vk_has_extension("VK_KHR_swapchain", extension_count, extensions); + + glad_vk_free_extensions(extension_count, extensions); + + return 1; +} + +static int glad_vk_find_core_vulkan( VkPhysicalDevice physical_device) { + int major = 1; + int minor = 0; + +#ifdef VK_VERSION_1_1 + if (vkEnumerateInstanceVersion != NULL) { + uint32_t version; + VkResult result; + + result = vkEnumerateInstanceVersion(&version); + if (result == VK_SUCCESS) { + major = (int) VK_VERSION_MAJOR(version); + minor = (int) VK_VERSION_MINOR(version); + } + } +#endif + + if (physical_device != NULL && vkGetPhysicalDeviceProperties != NULL) { + VkPhysicalDeviceProperties properties; + vkGetPhysicalDeviceProperties(physical_device, &properties); + + major = (int) VK_VERSION_MAJOR(properties.apiVersion); + minor = (int) VK_VERSION_MINOR(properties.apiVersion); + } + + GLAD_VK_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1; + GLAD_VK_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1; + + return GLAD_MAKE_VERSION(major, minor); +} + +int gladLoadVulkanUserPtr( VkPhysicalDevice physical_device, GLADuserptrloadfunc load, void *userptr) { + int version; + +#ifdef VK_VERSION_1_1 + vkEnumerateInstanceVersion = (PFN_vkEnumerateInstanceVersion) load("vkEnumerateInstanceVersion", userptr); +#endif + version = glad_vk_find_core_vulkan( physical_device); + if (!version) { + return 0; + } + + glad_vk_load_VK_VERSION_1_0(load, userptr); + glad_vk_load_VK_VERSION_1_1(load, userptr); + + if (!glad_vk_find_extensions_vulkan( physical_device)) return 0; + glad_vk_load_VK_EXT_debug_report(load, userptr); + glad_vk_load_VK_KHR_surface(load, userptr); + glad_vk_load_VK_KHR_swapchain(load, userptr); + + + return version; +} + + +int gladLoadVulkan( VkPhysicalDevice physical_device, GLADloadfunc load) { + return gladLoadVulkanUserPtr( physical_device, glad_vk_get_proc_from_userptr, GLAD_GNUC_EXTENSION (void*) load); +} + + + + diff --git a/external/GLFW/deps/linmath.h b/external/glfw-3.3.4/deps/linmath.h similarity index 99% rename from external/GLFW/deps/linmath.h rename to external/glfw-3.3.4/deps/linmath.h index 9c2e2a0..0ab7a41 100644 --- a/external/GLFW/deps/linmath.h +++ b/external/glfw-3.3.4/deps/linmath.h @@ -237,9 +237,9 @@ static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) float s = sinf(angle); float c = cosf(angle); mat4x4 R = { - { c, 0.f, s, 0.f}, + { c, 0.f, -s, 0.f}, { 0.f, 1.f, 0.f, 0.f}, - { -s, 0.f, c, 0.f}, + { s, 0.f, c, 0.f}, { 0.f, 0.f, 0.f, 1.f} }; mat4x4_mul(Q, M, R); diff --git a/external/GLFW/deps/mingw/_mingw_dxhelper.h b/external/glfw-3.3.4/deps/mingw/_mingw_dxhelper.h similarity index 100% rename from external/GLFW/deps/mingw/_mingw_dxhelper.h rename to external/glfw-3.3.4/deps/mingw/_mingw_dxhelper.h diff --git a/external/GLFW/deps/mingw/dinput.h b/external/glfw-3.3.4/deps/mingw/dinput.h similarity index 100% rename from external/GLFW/deps/mingw/dinput.h rename to external/glfw-3.3.4/deps/mingw/dinput.h diff --git a/external/GLFW/deps/mingw/xinput.h b/external/glfw-3.3.4/deps/mingw/xinput.h similarity index 100% rename from external/GLFW/deps/mingw/xinput.h rename to external/glfw-3.3.4/deps/mingw/xinput.h diff --git a/external/GLFW/deps/nuklear.h b/external/glfw-3.3.4/deps/nuklear.h similarity index 76% rename from external/GLFW/deps/nuklear.h rename to external/glfw-3.3.4/deps/nuklear.h index 333acee..6c87353 100644 --- a/external/GLFW/deps/nuklear.h +++ b/external/glfw-3.3.4/deps/nuklear.h @@ -1,242 +1,219 @@ /* - Nuklear - 1.40.0 - public domain - no warrenty implied; use at your own risk. - authored from 2015-2017 by Micha Mettke - -ABOUT: - This is a minimal state graphical user interface single header toolkit - written in ANSI C and licensed under public domain. - It was designed as a simple embeddable user interface for application and does - not have any dependencies, a default renderbackend or OS window and input handling - but instead provides a very modular library approach by using simple input state - for input and draw commands describing primitive shapes as output. - So instead of providing a layered library that tries to abstract over a number - of platform and render backends it only focuses on the actual UI. - -VALUES: - - Graphical user interface toolkit - - Single header library - - Written in C89 (a.k.a. ANSI C or ISO C90) - - Small codebase (~17kLOC) - - Focus on portability, efficiency and simplicity - - No dependencies (not even the standard library if not wanted) - - Fully skinnable and customizable - - Low memory footprint with total memory control if needed or wanted - - UTF-8 support - - No global or hidden state - - Customizable library modules (you can compile and use only what you need) - - Optional font baker and vertex buffer output - -USAGE: - This library is self contained in one single header file and can be used either - in header only mode or in implementation mode. The header only mode is used - by default when included and allows including this header in other headers - and does not contain the actual implementation. - - The implementation mode requires to define the preprocessor macro - NK_IMPLEMENTATION in *one* .c/.cpp file before #includeing this file, e.g.: - - #define NK_IMPLEMENTATION - #include "nuklear.h" - - Also optionally define the symbols listed in the section "OPTIONAL DEFINES" - below in header and implementation mode if you want to use additional functionality - or need more control over the library. - IMPORTANT: Every time you include "nuklear.h" you have to define the same flags. - This is very important not doing it either leads to compiler errors - or even worse stack corruptions. - -FEATURES: - - Absolutely no platform dependend code - - Memory management control ranging from/to - - Ease of use by allocating everything from standard library - - Control every byte of memory inside the library - - Font handling control ranging from/to - - Use your own font implementation for everything - - Use this libraries internal font baking and handling API - - Drawing output control ranging from/to - - Simple shapes for more high level APIs which already have drawing capabilities - - Hardware accessible anti-aliased vertex buffer output - - Customizable colors and properties ranging from/to - - Simple changes to color by filling a simple color table - - Complete control with ability to use skinning to decorate widgets - - Bendable UI library with widget ranging from/to - - Basic widgets like buttons, checkboxes, slider, ... - - Advanced widget like abstract comboboxes, contextual menus,... - - Compile time configuration to only compile what you need - - Subset which can be used if you do not want to link or use the standard library - - Can be easily modified to only update on user input instead of frame updates - -OPTIONAL DEFINES: - NK_PRIVATE - If defined declares all functions as static, so they can only be accessed - inside the file that contains the implementation - - NK_INCLUDE_FIXED_TYPES - If defined it will include header for fixed sized types - otherwise nuklear tries to select the correct type. If that fails it will - throw a compiler error and you have to select the correct types yourself. - If used needs to be defined for implementation and header - - NK_INCLUDE_DEFAULT_ALLOCATOR - if defined it will include header and provide additional functions - to use this library without caring for memory allocation control and therefore - ease memory management. - Adds the standard library with malloc and free so don't define if you - don't want to link to the standard library - If used needs to be defined for implementation and header - - NK_INCLUDE_STANDARD_IO - if defined it will include header and provide - additional functions depending on file loading. - Adds the standard library with fopen, fclose,... so don't define this - if you don't want to link to the standard library - If used needs to be defined for implementation and header - - NK_INCLUDE_STANDARD_VARARGS - if defined it will include header and provide - additional functions depending on variable arguments - Adds the standard library with va_list and so don't define this if - you don't want to link to the standard library - If used needs to be defined for implementation and header - - NK_INCLUDE_VERTEX_BUFFER_OUTPUT - Defining this adds a vertex draw command list backend to this - library, which allows you to convert queue commands into vertex draw commands. - This is mainly if you need a hardware accessible format for OpenGL, DirectX, - Vulkan, Metal,... - If used needs to be defined for implementation and header - - NK_INCLUDE_FONT_BAKING - Defining this adds `stb_truetype` and `stb_rect_pack` implementation - to this library and provides font baking and rendering. - If you already have font handling or do not want to use this font handler - you don't have to define it. - If used needs to be defined for implementation and header - - NK_INCLUDE_DEFAULT_FONT - Defining this adds the default font: ProggyClean.ttf into this library - which can be loaded into a font atlas and allows using this library without - having a truetype font - Enabling this adds ~12kb to global stack memory - If used needs to be defined for implementation and header - - NK_INCLUDE_COMMAND_USERDATA - Defining this adds a userdata pointer into each command. Can be useful for - example if you want to provide custom shaders depending on the used widget. - Can be combined with the style structures. - If used needs to be defined for implementation and header - - NK_BUTTON_TRIGGER_ON_RELEASE - Different platforms require button clicks occuring either on buttons being - pressed (up to down) or released (down to up). - By default this library will react on buttons being pressed, but if you - define this it will only trigger if a button is released. - If used it is only required to be defined for the implementation part - - NK_ZERO_COMMAND_MEMORY - Defining this will zero out memory for each drawing command added to a - drawing queue (inside nk_command_buffer_push). Zeroing command memory - is very useful for fast checking (using memcmp) if command buffers are - equal and avoid drawing frames when nothing on screen has changed since - previous frame. - - NK_ASSERT - If you don't define this, nuklear will use with assert(). - Adds the standard library so define to nothing of not wanted - If used needs to be defined for implementation and header - - NK_BUFFER_DEFAULT_INITIAL_SIZE - Initial buffer size allocated by all buffers while using the default allocator - functions included by defining NK_INCLUDE_DEFAULT_ALLOCATOR. If you don't - want to allocate the default 4k memory then redefine it. - If used needs to be defined for implementation and header - - NK_MAX_NUMBER_BUFFER - Maximum buffer size for the conversion buffer between float and string - Under normal circumstances this should be more than sufficient. - If used needs to be defined for implementation and header - - NK_INPUT_MAX - Defines the max number of bytes which can be added as text input in one frame. - Under normal circumstances this should be more than sufficient. - If used it is only required to be defined for the implementation part - - NK_MEMSET - You can define this to 'memset' or your own memset implementation - replacement. If not nuklear will use its own version. - If used it is only required to be defined for the implementation part - - NK_MEMCPY - You can define this to 'memcpy' or your own memcpy implementation - replacement. If not nuklear will use its own version. - If used it is only required to be defined for the implementation part - - NK_SQRT - You can define this to 'sqrt' or your own sqrt implementation - replacement. If not nuklear will use its own slow and not highly - accurate version. - If used it is only required to be defined for the implementation part - - NK_SIN - You can define this to 'sinf' or your own sine implementation - replacement. If not nuklear will use its own approximation implementation. - If used it is only required to be defined for the implementation part - - NK_COS - You can define this to 'cosf' or your own cosine implementation - replacement. If not nuklear will use its own approximation implementation. - If used it is only required to be defined for the implementation part - - NK_STRTOD - You can define this to `strtod` or your own string to double conversion - implementation replacement. If not defined nuklear will use its own - imprecise and possibly unsafe version (does not handle nan or infinity!). - If used it is only required to be defined for the implementation part - - NK_DTOA - You can define this to `dtoa` or your own double to string conversion - implementation replacement. If not defined nuklear will use its own - imprecise and possibly unsafe version (does not handle nan or infinity!). - If used it is only required to be defined for the implementation part - - NK_VSNPRINTF - If you define `NK_INCLUDE_STANDARD_VARARGS` as well as `NK_INCLUDE_STANDARD_IO` - and want to be safe define this to `vsnprintf` on compilers supporting - later versions of C or C++. By default nuklear will check for your stdlib version - in C as well as compiler version in C++. if `vsnprintf` is available - it will define it to `vsnprintf` directly. If not defined and if you have - older versions of C or C++ it will be defined to `vsprintf` which is unsafe. - If used it is only required to be defined for the implementation part - - NK_BYTE - NK_INT16 - NK_UINT16 - NK_INT32 - NK_UINT32 - NK_SIZE_TYPE - NK_POINTER_TYPE - If you compile without NK_USE_FIXED_TYPE then a number of standard types - will be selected and compile time validated. If they are incorrect you can - define the correct types by overloading these type defines. - -CREDITS: - Developed by Micha Mettke and every direct or indirect contributor. - - Embeds stb_texedit, stb_truetype and stb_rectpack by Sean Barret (public domain) - Embeds ProggyClean.ttf font by Tristan Grimmer (MIT license). - - Big thank you to Omar Cornut (ocornut@github) for his imgui library and - giving me the inspiration for this library, Casey Muratori for handmade hero - and his original immediate mode graphical user interface idea and Sean - Barret for his amazing single header libraries which restored my faith - in libraries and brought me to create some of my own. - -LICENSE: - This software is dual-licensed to the public domain and under the following - license: you are granted a perpetual, irrevocable license to copy, modify, - publish and distribute this file as you see fit. +/// # Nuklear +/// ![](https://cloud.githubusercontent.com/assets/8057201/11761525/ae06f0ca-a0c6-11e5-819d-5610b25f6ef4.gif) +/// +/// ## Contents +/// 1. About section +/// 2. Highlights section +/// 3. Features section +/// 4. Usage section +/// 1. Flags section +/// 2. Constants section +/// 3. Dependencies section +/// 5. Example section +/// 6. API section +/// 1. Context section +/// 2. Input section +/// 3. Drawing section +/// 4. Window section +/// 5. Layouting section +/// 6. Groups section +/// 7. Tree section +/// 8. Properties section +/// 7. License section +/// 8. Changelog section +/// 9. Gallery section +/// 10. Credits section +/// +/// ## About +/// This is a minimal state immediate mode graphical user interface toolkit +/// written in ANSI C and licensed under public domain. It was designed as a simple +/// embeddable user interface for application and does not have any dependencies, +/// a default renderbackend or OS window and input handling but instead provides a very modular +/// library approach by using simple input state for input and draw +/// commands describing primitive shapes as output. So instead of providing a +/// layered library that tries to abstract over a number of platform and +/// render backends it only focuses on the actual UI. +/// +/// ## Highlights +/// - Graphical user interface toolkit +/// - Single header library +/// - Written in C89 (a.k.a. ANSI C or ISO C90) +/// - Small codebase (~18kLOC) +/// - Focus on portability, efficiency and simplicity +/// - No dependencies (not even the standard library if not wanted) +/// - Fully skinnable and customizable +/// - Low memory footprint with total memory control if needed or wanted +/// - UTF-8 support +/// - No global or hidden state +/// - Customizable library modules (you can compile and use only what you need) +/// - Optional font baker and vertex buffer output +/// +/// ## Features +/// - Absolutely no platform dependent code +/// - Memory management control ranging from/to +/// - Ease of use by allocating everything from standard library +/// - Control every byte of memory inside the library +/// - Font handling control ranging from/to +/// - Use your own font implementation for everything +/// - Use this libraries internal font baking and handling API +/// - Drawing output control ranging from/to +/// - Simple shapes for more high level APIs which already have drawing capabilities +/// - Hardware accessible anti-aliased vertex buffer output +/// - Customizable colors and properties ranging from/to +/// - Simple changes to color by filling a simple color table +/// - Complete control with ability to use skinning to decorate widgets +/// - Bendable UI library with widget ranging from/to +/// - Basic widgets like buttons, checkboxes, slider, ... +/// - Advanced widget like abstract comboboxes, contextual menus,... +/// - Compile time configuration to only compile what you need +/// - Subset which can be used if you do not want to link or use the standard library +/// - Can be easily modified to only update on user input instead of frame updates +/// +/// ## Usage +/// This library is self contained in one single header file and can be used either +/// in header only mode or in implementation mode. The header only mode is used +/// by default when included and allows including this header in other headers +/// and does not contain the actual implementation.

+/// +/// The implementation mode requires to define the preprocessor macro +/// NK_IMPLEMENTATION in *one* .c/.cpp file before #includeing this file, e.g.: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~C +/// #define NK_IMPLEMENTATION +/// #include "nuklear.h" +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Also optionally define the symbols listed in the section "OPTIONAL DEFINES" +/// below in header and implementation mode if you want to use additional functionality +/// or need more control over the library. +/// +/// !!! WARNING +/// Every time nuklear is included define the same compiler flags. This very important not doing so could lead to compiler errors or even worse stack corruptions. +/// +/// ### Flags +/// Flag | Description +/// --------------------------------|------------------------------------------ +/// NK_PRIVATE | If defined declares all functions as static, so they can only be accessed inside the file that contains the implementation +/// NK_INCLUDE_FIXED_TYPES | If defined it will include header `` for fixed sized types otherwise nuklear tries to select the correct type. If that fails it will throw a compiler error and you have to select the correct types yourself. +/// NK_INCLUDE_DEFAULT_ALLOCATOR | If defined it will include header `` and provide additional functions to use this library without caring for memory allocation control and therefore ease memory management. +/// NK_INCLUDE_STANDARD_IO | If defined it will include header `` and provide additional functions depending on file loading. +/// NK_INCLUDE_STANDARD_VARARGS | If defined it will include header and provide additional functions depending on file loading. +/// NK_INCLUDE_VERTEX_BUFFER_OUTPUT | Defining this adds a vertex draw command list backend to this library, which allows you to convert queue commands into vertex draw commands. This is mainly if you need a hardware accessible format for OpenGL, DirectX, Vulkan, Metal,... +/// NK_INCLUDE_FONT_BAKING | Defining this adds `stb_truetype` and `stb_rect_pack` implementation to this library and provides font baking and rendering. If you already have font handling or do not want to use this font handler you don't have to define it. +/// NK_INCLUDE_DEFAULT_FONT | Defining this adds the default font: ProggyClean.ttf into this library which can be loaded into a font atlas and allows using this library without having a truetype font +/// NK_INCLUDE_COMMAND_USERDATA | Defining this adds a userdata pointer into each command. Can be useful for example if you want to provide custom shaders depending on the used widget. Can be combined with the style structures. +/// NK_BUTTON_TRIGGER_ON_RELEASE | Different platforms require button clicks occurring either on buttons being pressed (up to down) or released (down to up). By default this library will react on buttons being pressed, but if you define this it will only trigger if a button is released. +/// NK_ZERO_COMMAND_MEMORY | Defining this will zero out memory for each drawing command added to a drawing queue (inside nk_command_buffer_push). Zeroing command memory is very useful for fast checking (using memcmp) if command buffers are equal and avoid drawing frames when nothing on screen has changed since previous frame. +/// +/// !!! WARNING +/// The following flags will pull in the standard C library: +/// - NK_INCLUDE_DEFAULT_ALLOCATOR +/// - NK_INCLUDE_STANDARD_IO +/// - NK_INCLUDE_STANDARD_VARARGS +/// +/// !!! WARNING +/// The following flags if defined need to be defined for both header and implementation: +/// - NK_INCLUDE_FIXED_TYPES +/// - NK_INCLUDE_DEFAULT_ALLOCATOR +/// - NK_INCLUDE_STANDARD_VARARGS +/// - NK_INCLUDE_VERTEX_BUFFER_OUTPUT +/// - NK_INCLUDE_FONT_BAKING +/// - NK_INCLUDE_DEFAULT_FONT +/// - NK_INCLUDE_STANDARD_VARARGS +/// - NK_INCLUDE_COMMAND_USERDATA +/// +/// ### Constants +/// Define | Description +/// --------------------------------|--------------------------------------- +/// NK_BUFFER_DEFAULT_INITIAL_SIZE | Initial buffer size allocated by all buffers while using the default allocator functions included by defining NK_INCLUDE_DEFAULT_ALLOCATOR. If you don't want to allocate the default 4k memory then redefine it. +/// NK_MAX_NUMBER_BUFFER | Maximum buffer size for the conversion buffer between float and string Under normal circumstances this should be more than sufficient. +/// NK_INPUT_MAX | Defines the max number of bytes which can be added as text input in one frame. Under normal circumstances this should be more than sufficient. +/// +/// !!! WARNING +/// The following constants if defined need to be defined for both header and implementation: +/// - NK_MAX_NUMBER_BUFFER +/// - NK_BUFFER_DEFAULT_INITIAL_SIZE +/// - NK_INPUT_MAX +/// +/// ### Dependencies +/// Function | Description +/// ------------|--------------------------------------------------------------- +/// NK_ASSERT | If you don't define this, nuklear will use with assert(). +/// NK_MEMSET | You can define this to 'memset' or your own memset implementation replacement. If not nuklear will use its own version. +/// NK_MEMCPY | You can define this to 'memcpy' or your own memcpy implementation replacement. If not nuklear will use its own version. +/// NK_SQRT | You can define this to 'sqrt' or your own sqrt implementation replacement. If not nuklear will use its own slow and not highly accurate version. +/// NK_SIN | You can define this to 'sinf' or your own sine implementation replacement. If not nuklear will use its own approximation implementation. +/// NK_COS | You can define this to 'cosf' or your own cosine implementation replacement. If not nuklear will use its own approximation implementation. +/// NK_STRTOD | You can define this to `strtod` or your own string to double conversion implementation replacement. If not defined nuklear will use its own imprecise and possibly unsafe version (does not handle nan or infinity!). +/// NK_DTOA | You can define this to `dtoa` or your own double to string conversion implementation replacement. If not defined nuklear will use its own imprecise and possibly unsafe version (does not handle nan or infinity!). +/// NK_VSNPRINTF| If you define `NK_INCLUDE_STANDARD_VARARGS` as well as `NK_INCLUDE_STANDARD_IO` and want to be safe define this to `vsnprintf` on compilers supporting later versions of C or C++. By default nuklear will check for your stdlib version in C as well as compiler version in C++. if `vsnprintf` is available it will define it to `vsnprintf` directly. If not defined and if you have older versions of C or C++ it will be defined to `vsprintf` which is unsafe. +/// +/// !!! WARNING +/// The following dependencies will pull in the standard C library if not redefined: +/// - NK_ASSERT +/// +/// !!! WARNING +/// The following dependencies if defined need to be defined for both header and implementation: +/// - NK_ASSERT +/// +/// !!! WARNING +/// The following dependencies if defined need to be defined only for the implementation part: +/// - NK_MEMSET +/// - NK_MEMCPY +/// - NK_SQRT +/// - NK_SIN +/// - NK_COS +/// - NK_STRTOD +/// - NK_DTOA +/// - NK_VSNPRINTF +/// +/// ## Example +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// // init gui state +/// enum {EASY, HARD}; +/// static int op = EASY; +/// static float value = 0.6f; +/// static int i = 20; +/// struct nk_context ctx; +/// +/// nk_init_fixed(&ctx, calloc(1, MAX_MEMORY), MAX_MEMORY, &font); +/// if (nk_begin(&ctx, "Show", nk_rect(50, 50, 220, 220), +/// NK_WINDOW_BORDER|NK_WINDOW_MOVABLE|NK_WINDOW_CLOSABLE)) { +/// // fixed widget pixel width +/// nk_layout_row_static(&ctx, 30, 80, 1); +/// if (nk_button_label(&ctx, "button")) { +/// // event handling +/// } +/// +/// // fixed widget window ratio width +/// nk_layout_row_dynamic(&ctx, 30, 2); +/// if (nk_option_label(&ctx, "easy", op == EASY)) op = EASY; +/// if (nk_option_label(&ctx, "hard", op == HARD)) op = HARD; +/// +/// // custom widget pixel width +/// nk_layout_row_begin(&ctx, NK_STATIC, 30, 2); +/// { +/// nk_layout_row_push(&ctx, 50); +/// nk_label(&ctx, "Volume:", NK_TEXT_LEFT); +/// nk_layout_row_push(&ctx, 110); +/// nk_slider_float(&ctx, 0, &value, 1.0f, 0.1f); +/// } +/// nk_layout_row_end(&ctx); +/// } +/// nk_end(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// ![](https://cloud.githubusercontent.com/assets/8057201/10187981/584ecd68-675c-11e5-897c-822ef534a876.png) +/// +/// ## API +/// */ +#ifndef NK_SINGLE_FILE + #define NK_SINGLE_FILE +#endif + #ifndef NK_NUKLEAR_H_ #define NK_NUKLEAR_H_ @@ -254,13 +231,13 @@ extern "C" { #define NK_UTF_INVALID 0xFFFD /* internal invalid utf8 rune */ #define NK_UTF_SIZE 4 /* describes the number of bytes a glyph consists of*/ #ifndef NK_INPUT_MAX -#define NK_INPUT_MAX 16 + #define NK_INPUT_MAX 16 #endif #ifndef NK_MAX_NUMBER_BUFFER -#define NK_MAX_NUMBER_BUFFER 64 + #define NK_MAX_NUMBER_BUFFER 64 #endif #ifndef NK_SCROLLBAR_HIDING_TIMEOUT -#define NK_SCROLLBAR_HIDING_TIMEOUT 4.0f + #define NK_SCROLLBAR_HIDING_TIMEOUT 4.0f #endif /* * ============================================================== @@ -282,6 +259,13 @@ extern "C" { #define NK_API extern #endif #endif +#ifndef NK_LIB + #ifdef NK_SINGLE_FILE + #define NK_LIB static + #else + #define NK_LIB extern + #endif +#endif #define NK_INTERN static #define NK_STORAGE static @@ -295,26 +279,44 @@ extern "C" { #define NK_STRING_JOIN(arg1, arg2) NK_STRING_JOIN_DELAY(arg1, arg2) #ifdef _MSC_VER -#define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__COUNTER__) + #define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__COUNTER__) #else -#define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__LINE__) + #define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__LINE__) #endif #ifndef NK_STATIC_ASSERT -#define NK_STATIC_ASSERT(exp) typedef char NK_UNIQUE_NAME(_dummy_array)[(exp)?1:-1] + #define NK_STATIC_ASSERT(exp) typedef char NK_UNIQUE_NAME(_dummy_array)[(exp)?1:-1] #endif #ifndef NK_FILE_LINE #ifdef _MSC_VER -#define NK_FILE_LINE __FILE__ ":" NK_MACRO_STRINGIFY(__COUNTER__) + #define NK_FILE_LINE __FILE__ ":" NK_MACRO_STRINGIFY(__COUNTER__) #else -#define NK_FILE_LINE __FILE__ ":" NK_MACRO_STRINGIFY(__LINE__) + #define NK_FILE_LINE __FILE__ ":" NK_MACRO_STRINGIFY(__LINE__) #endif #endif #define NK_MIN(a,b) ((a) < (b) ? (a) : (b)) #define NK_MAX(a,b) ((a) < (b) ? (b) : (a)) #define NK_CLAMP(i,v,x) (NK_MAX(NK_MIN(v,x), i)) + +#ifdef NK_INCLUDE_STANDARD_VARARGS + #if defined(_MSC_VER) && (_MSC_VER >= 1600) /* VS 2010 and above */ + #include + #define NK_PRINTF_FORMAT_STRING _Printf_format_string_ + #else + #define NK_PRINTF_FORMAT_STRING + #endif + #if defined(__GNUC__) + #define NK_PRINTF_VARARG_FUNC(fmtargnumber) __attribute__((format(__printf__, fmtargnumber, fmtargnumber+1))) + #define NK_PRINTF_VALIST_FUNC(fmtargnumber) __attribute__((format(__printf__, fmtargnumber, 0))) + #else + #define NK_PRINTF_VARARG_FUNC(fmtargnumber) + #define NK_PRINTF_VALIST_FUNC(fmtargnumber) + #endif + #include /* valist, va_start, va_end, ... */ +#endif + /* * =============================================================== * @@ -507,101 +509,159 @@ enum nk_symbol_type { * CONTEXT * * =============================================================================*/ -/* Contexts are the main entry point and the majestro of nuklear and contain all required state. - * They are used for window, memory, input, style, stack, commands and time management and need - * to be passed into all nuklear GUI specific functions. - * - * Usage - * ------------------- - * To use a context it first has to be initialized which can be achieved by calling - * one of either `nk_init_default`, `nk_init_fixed`, `nk_init`, `nk_init_custom`. - * Each takes in a font handle and a specific way of handling memory. Memory control - * hereby ranges from standard library to just specifing a fixed sized block of memory - * which nuklear has to manage itself from. - * - * struct nk_context ctx; - * nk_init_xxx(&ctx, ...); - * while (1) { - * [...] - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * Reference - * ------------------- - * nk_init_default - Initializes context with standard library memory alloction (malloc,free) - * nk_init_fixed - Initializes context from single fixed size memory block - * nk_init - Initializes context with memory allocator callbacks for alloc and free - * nk_init_custom - Initializes context from two buffers. One for draw commands the other for window/panel/table allocations - * nk_clear - Called at the end of the frame to reset and prepare the context for the next frame - * nk_free - Shutdown and free all memory allocated inside the context - * nk_set_user_data - Utility function to pass user data to draw command +/*/// ### Context +/// Contexts are the main entry point and the majestro of nuklear and contain all required state. +/// They are used for window, memory, input, style, stack, commands and time management and need +/// to be passed into all nuklear GUI specific functions. +/// +/// #### Usage +/// To use a context it first has to be initialized which can be achieved by calling +/// one of either `nk_init_default`, `nk_init_fixed`, `nk_init`, `nk_init_custom`. +/// Each takes in a font handle and a specific way of handling memory. Memory control +/// hereby ranges from standard library to just specifying a fixed sized block of memory +/// which nuklear has to manage itself from. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// // [...] +/// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// --------------------|------------------------------------------------------- +/// __nk_init_default__ | Initializes context with standard library memory allocation (malloc,free) +/// __nk_init_fixed__ | Initializes context from single fixed size memory block +/// __nk_init__ | Initializes context with memory allocator callbacks for alloc and free +/// __nk_init_custom__ | Initializes context from two buffers. One for draw commands the other for window/panel/table allocations +/// __nk_clear__ | Called at the end of the frame to reset and prepare the context for the next frame +/// __nk_free__ | Shutdown and free all memory allocated inside the context +/// __nk_set_user_data__| Utility function to pass user data to draw command */ #ifdef NK_INCLUDE_DEFAULT_ALLOCATOR -/* nk_init_default - Initializes a `nk_context` struct with a default standard library allocator. - * Should be used if you don't want to be bothered with memory management in nuklear. - * Parameters: - * @ctx must point to an either stack or heap allocated `nk_context` struct - * @font must point to a previously initialized font handle for more info look at font documentation - * Return values: - * true(1) on success - * false(0) on failure */ +/*/// #### nk_init_default +/// Initializes a `nk_context` struct with a default standard library allocator. +/// Should be used if you don't want to be bothered with memory management in nuklear. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_init_default(struct nk_context *ctx, const struct nk_user_font *font); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|--------------------------------------------------------------- +/// __ctx__ | Must point to an either stack or heap allocated `nk_context` struct +/// __font__ | Must point to a previously initialized font handle for more info look at font documentation +/// +/// Returns either `false(0)` on failure or `true(1)` on success. +/// +*/ NK_API int nk_init_default(struct nk_context*, const struct nk_user_font*); #endif -/* nk_init_fixed - Initializes a `nk_context` struct from a single fixed size memory block - * Should be used if you want complete control over nuklears memory management. - * Especially recommended for system with little memory or systems with virtual memory. - * For the later case you can just allocate for example 16MB of virtual memory - * and only the required amount of memory will actually be commited. - * IMPORTANT: make sure the passed memory block is aligned correctly for `nk_draw_commands` - * Parameters: - * @ctx must point to an either stack or heap allocated `nk_context` struct - * @memory must point to a previously allocated memory block - * @size must contain the total size of @memory - * @font must point to a previously initialized font handle for more info look at font documentation - * Return values: - * true(1) on success - * false(0) on failure */ +/*/// #### nk_init_fixed +/// Initializes a `nk_context` struct from single fixed size memory block +/// Should be used if you want complete control over nuklear's memory management. +/// Especially recommended for system with little memory or systems with virtual memory. +/// For the later case you can just allocate for example 16MB of virtual memory +/// and only the required amount of memory will actually be committed. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_init_fixed(struct nk_context *ctx, void *memory, nk_size size, const struct nk_user_font *font); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// !!! Warning +/// make sure the passed memory block is aligned correctly for `nk_draw_commands`. +/// +/// Parameter | Description +/// ------------|-------------------------------------------------------------- +/// __ctx__ | Must point to an either stack or heap allocated `nk_context` struct +/// __memory__ | Must point to a previously allocated memory block +/// __size__ | Must contain the total size of __memory__ +/// __font__ | Must point to a previously initialized font handle for more info look at font documentation +/// +/// Returns either `false(0)` on failure or `true(1)` on success. +*/ NK_API int nk_init_fixed(struct nk_context*, void *memory, nk_size size, const struct nk_user_font*); -/* nk_init - Initializes a `nk_context` struct with memory allocation callbacks for nuklear to allocate - * memory from. Used internally for `nk_init_default` and provides a kitchen sink allocation - * interface to nuklear. Can be useful for cases like monitoring memory consumption. - * Parameters: - * @ctx must point to an either stack or heap allocated `nk_context` struct - * @alloc must point to a previously allocated memory allocator - * @font must point to a previously initialized font handle for more info look at font documentation - * Return values: - * true(1) on success - * false(0) on failure */ +/*/// #### nk_init +/// Initializes a `nk_context` struct with memory allocation callbacks for nuklear to allocate +/// memory from. Used internally for `nk_init_default` and provides a kitchen sink allocation +/// interface to nuklear. Can be useful for cases like monitoring memory consumption. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_init(struct nk_context *ctx, struct nk_allocator *alloc, const struct nk_user_font *font); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|--------------------------------------------------------------- +/// __ctx__ | Must point to an either stack or heap allocated `nk_context` struct +/// __alloc__ | Must point to a previously allocated memory allocator +/// __font__ | Must point to a previously initialized font handle for more info look at font documentation +/// +/// Returns either `false(0)` on failure or `true(1)` on success. +*/ NK_API int nk_init(struct nk_context*, struct nk_allocator*, const struct nk_user_font*); -/* nk_init_custom - Initializes a `nk_context` struct from two different either fixed or growing - * buffers. The first buffer is for allocating draw commands while the second buffer is - * used for allocating windows, panels and state tables. - * Parameters: - * @ctx must point to an either stack or heap allocated `nk_context` struct - * @cmds must point to a previously initialized memory buffer either fixed or dynamic to store draw commands into - * @pool must point to a previously initialized memory buffer either fixed or dynamic to store windows, panels and tables - * @font must point to a previously initialized font handle for more info look at font documentation - * Return values: - * true(1) on success - * false(0) on failure */ +/*/// #### nk_init_custom +/// Initializes a `nk_context` struct from two different either fixed or growing +/// buffers. The first buffer is for allocating draw commands while the second buffer is +/// used for allocating windows, panels and state tables. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_init_custom(struct nk_context *ctx, struct nk_buffer *cmds, struct nk_buffer *pool, const struct nk_user_font *font); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|--------------------------------------------------------------- +/// __ctx__ | Must point to an either stack or heap allocated `nk_context` struct +/// __cmds__ | Must point to a previously initialized memory buffer either fixed or dynamic to store draw commands into +/// __pool__ | Must point to a previously initialized memory buffer either fixed or dynamic to store windows, panels and tables +/// __font__ | Must point to a previously initialized font handle for more info look at font documentation +/// +/// Returns either `false(0)` on failure or `true(1)` on success. +*/ NK_API int nk_init_custom(struct nk_context*, struct nk_buffer *cmds, struct nk_buffer *pool, const struct nk_user_font*); -/* nk_clear - Resets the context state at the end of the frame. This includes mostly - * garbage collector tasks like removing windows or table not called and therefore - * used anymore. - * Parameters: - * @ctx must point to a previously initialized `nk_context` struct */ +/*/// #### nk_clear +/// Resets the context state at the end of the frame. This includes mostly +/// garbage collector tasks like removing windows or table not called and therefore +/// used anymore. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_clear(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +*/ NK_API void nk_clear(struct nk_context*); -/* nk_free - Frees all memory allocated by nuklear. Not needed if context was - * initialized with `nk_init_fixed`. - * Parameters: - * @ctx must point to a previously initialized `nk_context` struct */ +/*/// #### nk_free +/// Frees all memory allocated by nuklear. Not needed if context was +/// initialized with `nk_init_fixed`. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_free(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +*/ NK_API void nk_free(struct nk_context*); #ifdef NK_INCLUDE_COMMAND_USERDATA -/* nk_set_user_data - Sets the currently passed userdata passed down into each draw command. - * Parameters: - * @ctx must point to a previously initialized `nk_context` struct - * @data handle with either pointer or index to be passed into every draw commands */ +/*/// #### nk_set_user_data +/// Sets the currently passed userdata passed down into each draw command. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_set_user_data(struct nk_context *ctx, nk_handle data); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|-------------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __data__ | Handle with either pointer or index to be passed into every draw commands +*/ NK_API void nk_set_user_data(struct nk_context*, nk_handle handle); #endif /* ============================================================================= @@ -609,54 +669,67 @@ NK_API void nk_set_user_data(struct nk_context*, nk_handle handle); * INPUT * * =============================================================================*/ -/* The input API is responsible for holding the current input state composed of - * mouse, key and text input states. - * It is worth noting that no direct os or window handling is done in nuklear. - * Instead all input state has to be provided by platform specific code. This in one hand - * expects more work from the user and complicates usage but on the other hand - * provides simple abstraction over a big number of platforms, libraries and other - * already provided functionality. - * - * Usage - * ------------------- - * Input state needs to be provided to nuklear by first calling `nk_input_begin` - * which resets internal state like delta mouse position and button transistions. - * After `nk_input_begin` all current input state needs to be provided. This includes - * mouse motion, button and key pressed and released, text input and scrolling. - * Both event- or state-based input handling are supported by this API - * and should work without problems. Finally after all input state has been - * mirrored `nk_input_end` needs to be called to finish input process. - * - * struct nk_context ctx; - * nk_init_xxx(&ctx, ...); - * while (1) { - * Event evt; - * nk_input_begin(&ctx); - * while (GetEvent(&evt)) { - * if (evt.type == MOUSE_MOVE) - * nk_input_motion(&ctx, evt.motion.x, evt.motion.y); - * else if (evt.type == ...) { - * ... - * } - * } - * nk_input_end(&ctx); - * [...] - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * Reference - * ------------------- - * nk_input_begin - Begins the input mirroring process. Needs to be called before all other `nk_input_xxx` calls - * nk_input_motion - Mirrors mouse cursor position - * nk_input_key - Mirrors key state with either pressed or released - * nk_input_button - Mirrors mouse button state with either pressed or released - * nk_input_scroll - Mirrors mouse scroll values - * nk_input_char - Adds a single ASCII text character into an internal text buffer - * nk_input_glyph - Adds a single multi-byte UTF-8 character into an internal text buffer - * nk_input_unicode - Adds a single unicode rune into an internal text buffer - * nk_input_end - Ends the input mirroring process by calculating state changes. Don't call any `nk_input_xxx` function referenced above after this call - */ +/*/// ### Input +/// The input API is responsible for holding the current input state composed of +/// mouse, key and text input states. +/// It is worth noting that no direct OS or window handling is done in nuklear. +/// Instead all input state has to be provided by platform specific code. This on one hand +/// expects more work from the user and complicates usage but on the other hand +/// provides simple abstraction over a big number of platforms, libraries and other +/// already provided functionality. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// // [...] +/// } +/// } nk_input_end(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Usage +/// Input state needs to be provided to nuklear by first calling `nk_input_begin` +/// which resets internal state like delta mouse position and button transistions. +/// After `nk_input_begin` all current input state needs to be provided. This includes +/// mouse motion, button and key pressed and released, text input and scrolling. +/// Both event- or state-based input handling are supported by this API +/// and should work without problems. Finally after all input state has been +/// mirrored `nk_input_end` needs to be called to finish input process. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// Event evt; +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// // [...] +/// } +/// } +/// nk_input_end(&ctx); +/// // [...] +/// nk_clear(&ctx); +/// } nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// --------------------|------------------------------------------------------- +/// __nk_input_begin__ | Begins the input mirroring process. Needs to be called before all other `nk_input_xxx` calls +/// __nk_input_motion__ | Mirrors mouse cursor position +/// __nk_input_key__ | Mirrors key state with either pressed or released +/// __nk_input_button__ | Mirrors mouse button state with either pressed or released +/// __nk_input_scroll__ | Mirrors mouse scroll values +/// __nk_input_char__ | Adds a single ASCII text character into an internal text buffer +/// __nk_input_glyph__ | Adds a single multi-byte UTF-8 character into an internal text buffer +/// __nk_input_unicode__| Adds a single unicode rune into an internal text buffer +/// __nk_input_end__ | Ends the input mirroring process by calculating state changes. Don't call any `nk_input_xxx` function referenced above after this call +*/ enum nk_keys { NK_KEY_NONE, NK_KEY_SHIFT, @@ -699,274 +772,365 @@ enum nk_buttons { NK_BUTTON_DOUBLE, NK_BUTTON_MAX }; -/* nk_input_begin - Begins the input mirroring process by resetting text, scroll - * mouse previous mouse position and movement as well as key state transistions, - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct */ +/*/// #### nk_input_begin +/// Begins the input mirroring process by resetting text, scroll +/// mouse, previous mouse position and movement as well as key state transitions, +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_begin(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +*/ NK_API void nk_input_begin(struct nk_context*); -/* nk_input_motion - Mirros current mouse position to nuklear - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @x must constain an integer describing the current mouse cursor x-position - * @y must constain an integer describing the current mouse cursor y-position */ +/*/// #### nk_input_motion +/// Mirrors current mouse position to nuklear +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_motion(struct nk_context *ctx, int x, int y); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __x__ | Must hold an integer describing the current mouse cursor x-position +/// __y__ | Must hold an integer describing the current mouse cursor y-position +*/ NK_API void nk_input_motion(struct nk_context*, int x, int y); -/* nk_input_key - Mirros state of a specific key to nuklear - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @key must be any value specified in enum `nk_keys` that needs to be mirrored - * @down must be 0 for key is up and 1 for key is down */ +/*/// #### nk_input_key +/// Mirrors the state of a specific key to nuklear +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_key(struct nk_context*, enum nk_keys key, int down); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __key__ | Must be any value specified in enum `nk_keys` that needs to be mirrored +/// __down__ | Must be 0 for key is up and 1 for key is down +*/ NK_API void nk_input_key(struct nk_context*, enum nk_keys, int down); -/* nk_input_button - Mirros the state of a specific mouse button to nuklear - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @nk_buttons must be any value specified in enum `nk_buttons` that needs to be mirrored - * @x must constain an integer describing mouse cursor x-position on click up/down - * @y must constain an integer describing mouse cursor y-position on click up/down - * @down must be 0 for key is up and 1 for key is down */ +/*/// #### nk_input_button +/// Mirrors the state of a specific mouse button to nuklear +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_button(struct nk_context *ctx, enum nk_buttons btn, int x, int y, int down); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __btn__ | Must be any value specified in enum `nk_buttons` that needs to be mirrored +/// __x__ | Must contain an integer describing mouse cursor x-position on click up/down +/// __y__ | Must contain an integer describing mouse cursor y-position on click up/down +/// __down__ | Must be 0 for key is up and 1 for key is down +*/ NK_API void nk_input_button(struct nk_context*, enum nk_buttons, int x, int y, int down); -/* nk_input_char - Copies a single ASCII character into an internal text buffer - * This is basically a helper function to quickly push ASCII characters into - * nuklear. Note that you can only push up to NK_INPUT_MAX bytes into - * struct `nk_input` between `nk_input_begin` and `nk_input_end`. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @c must be a single ASCII character preferable one that can be printed */ +/*/// #### nk_input_scroll +/// Copies the last mouse scroll value to nuklear. Is generally +/// a scroll value. So does not have to come from mouse and could also originate +/// TODO finish this sentence +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_scroll(struct nk_context *ctx, struct nk_vec2 val); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __val__ | vector with both X- as well as Y-scroll value +*/ NK_API void nk_input_scroll(struct nk_context*, struct nk_vec2 val); -/* nk_input_char - Copies a single ASCII character into an internal text buffer - * This is basically a helper function to quickly push ASCII characters into - * nuklear. Note that you can only push up to NK_INPUT_MAX bytes into - * struct `nk_input` between `nk_input_begin` and `nk_input_end`. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @c must be a single ASCII character preferable one that can be printed */ +/*/// #### nk_input_char +/// Copies a single ASCII character into an internal text buffer +/// This is basically a helper function to quickly push ASCII characters into +/// nuklear. +/// +/// !!! Note +/// Stores up to NK_INPUT_MAX bytes between `nk_input_begin` and `nk_input_end`. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_char(struct nk_context *ctx, char c); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __c__ | Must be a single ASCII character preferable one that can be printed +*/ NK_API void nk_input_char(struct nk_context*, char); -/* nk_input_unicode - Converts a encoded unicode rune into UTF-8 and copies the result - * into an internal text buffer. - * Note that you can only push up to NK_INPUT_MAX bytes into - * struct `nk_input` between `nk_input_begin` and `nk_input_end`. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @glyph UTF-32 uncode codepoint */ +/*/// #### nk_input_glyph +/// Converts an encoded unicode rune into UTF-8 and copies the result into an +/// internal text buffer. +/// +/// !!! Note +/// Stores up to NK_INPUT_MAX bytes between `nk_input_begin` and `nk_input_end`. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_glyph(struct nk_context *ctx, const nk_glyph g); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __g__ | UTF-32 unicode codepoint +*/ NK_API void nk_input_glyph(struct nk_context*, const nk_glyph); -/* nk_input_unicode - Converts a unicode rune into UTF-8 and copies the result - * into an internal text buffer. - * Note that you can only push up to NK_INPUT_MAX bytes into - * struct `nk_input` between `nk_input_begin` and `nk_input_end`. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @glyph UTF-32 uncode codepoint */ +/*/// #### nk_input_unicode +/// Converts a unicode rune into UTF-8 and copies the result +/// into an internal text buffer. +/// !!! Note +/// Stores up to NK_INPUT_MAX bytes between `nk_input_begin` and `nk_input_end`. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_unicode(struct nk_context*, nk_rune rune); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +/// __rune__ | UTF-32 unicode codepoint +*/ NK_API void nk_input_unicode(struct nk_context*, nk_rune); -/* nk_input_end - End the input mirroring process by resetting mouse grabbing - * state to ensure the mouse cursor is not grabbed indefinitely. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct */ +/*/// #### nk_input_end +/// End the input mirroring process by resetting mouse grabbing +/// state to ensure the mouse cursor is not grabbed indefinitely. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_input_end(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to a previously initialized `nk_context` struct +*/ NK_API void nk_input_end(struct nk_context*); /* ============================================================================= * * DRAWING * * =============================================================================*/ -/* This library was designed to be render backend agnostic so it does - * not draw anything to screen directly. Instead all drawn shapes, widgets - * are made of, are buffered into memory and make up a command queue. - * Each frame therefore fills the command buffer with draw commands - * that then need to be executed by the user and his own render backend. - * After that the command buffer needs to be cleared and a new frame can be - * started. It is probably important to note that the command buffer is the main - * drawing API and the optional vertex buffer API only takes this format and - * converts it into a hardware accessible format. - * - * Usage - * ------------------- - * To draw all draw commands accumulated over a frame you need your own render - * backend able to draw a number of 2D primitives. This includes at least - * filled and stroked rectangles, circles, text, lines, triangles and scissors. - * As soon as this criterion is met you can iterate over each draw command - * and execute each draw command in a interpreter like fashion: - * - * const struct nk_command *cmd = 0; - * nk_foreach(cmd, &ctx) { - * switch (cmd->type) { - * case NK_COMMAND_LINE: - * your_draw_line_function(...) - * break; - * case NK_COMMAND_RECT - * your_draw_rect_function(...) - * break; - * case ...: - * [...] - * } - * - * In program flow context draw commands need to be executed after input has been - * gathered and the complete UI with windows and their contained widgets have - * been executed and before calling `nk_clear` which frees all previously - * allocated draw commands. - * - * struct nk_context ctx; - * nk_init_xxx(&ctx, ...); - * while (1) { - * Event evt; - * nk_input_begin(&ctx); - * while (GetEvent(&evt)) { - * if (evt.type == MOUSE_MOVE) - * nk_input_motion(&ctx, evt.motion.x, evt.motion.y); - * else if (evt.type == [...]) { - * [...] - * } - * } - * nk_input_end(&ctx); - * - * [...] - * - * const struct nk_command *cmd = 0; - * nk_foreach(cmd, &ctx) { - * switch (cmd->type) { - * case NK_COMMAND_LINE: - * your_draw_line_function(...) - * break; - * case NK_COMMAND_RECT - * your_draw_rect_function(...) - * break; - * case ...: - * [...] - * } - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * You probably noticed that you have to draw all of the UI each frame which is - * quite wasteful. While the actual UI updating loop is quite fast rendering - * without actually needing it is not. So there are multiple things you could do. - * - * First is only update on input. This of course is only an option if your - * application only depends on the UI and does not require any outside calculations. - * If you actually only update on input make sure to update the UI two times each - * frame and call `nk_clear` directly after the first pass and only draw in - * the second pass. In addition it is recommended to also add additional timers - * to make sure the UI is not drawn more than a fixed number of frames per second. - * - * struct nk_context ctx; - * nk_init_xxx(&ctx, ...); - * while (1) { - * [...wait for input ] - * - * [...do two UI passes ...] - * do_ui(...) - * nk_clear(&ctx); - * do_ui(...) - * - * const struct nk_command *cmd = 0; - * nk_foreach(cmd, &ctx) { - * switch (cmd->type) { - * case NK_COMMAND_LINE: - * your_draw_line_function(...) - * break; - * case NK_COMMAND_RECT - * your_draw_rect_function(...) - * break; - * case ...: - * [...] - * } - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * The second probably more applicable trick is to only draw if anything changed. - * It is not really useful for applications with continous draw loop but - * quite useful for desktop applications. To actually get nuklear to only - * draw on changes you first have to define `NK_ZERO_COMMAND_MEMORY` and - * allocate a memory buffer that will store each unique drawing output. - * After each frame you compare the draw command memory inside the library - * with your allocated buffer by memcmp. If memcmp detects differences - * you have to copy the command buffer into the allocated buffer - * and then draw like usual (this example uses fixed memory but you could - * use dynamically allocated memory). - * - * [... other defines ...] - * #define NK_ZERO_COMMAND_MEMORY - * #include "nuklear.h" - * - * struct nk_context ctx; - * void *last = calloc(1,64*1024); - * void *buf = calloc(1,64*1024); - * nk_init_fixed(&ctx, buf, 64*1024); - * while (1) { - * [...input...] - * [...ui...] - * - * void *cmds = nk_buffer_memory(&ctx.memory); - * if (memcmp(cmds, last, ctx.memory.allocated)) { - * memcpy(last,cmds,ctx.memory.allocated); - * const struct nk_command *cmd = 0; - * nk_foreach(cmd, &ctx) { - * switch (cmd->type) { - * case NK_COMMAND_LINE: - * your_draw_line_function(...) - * break; - * case NK_COMMAND_RECT - * your_draw_rect_function(...) - * break; - * case ...: - * [...] - * } - * } - * } - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * Finally while using draw commands makes sense for higher abstracted platforms like - * X11 and Win32 or drawing libraries it is often desirable to use graphics - * hardware directly. Therefore it is possible to just define - * `NK_INCLUDE_VERTEX_BUFFER_OUTPUT` which includes optional vertex output. - * To access the vertex output you first have to convert all draw commands into - * vertexes by calling `nk_convert` which takes in your prefered vertex format. - * After successfully converting all draw commands just iterate over and execute all - * vertex draw commands: - * - * struct nk_convert_config cfg = {}; - * static const struct nk_draw_vertex_layout_element vertex_layout[] = { - * {NK_VERTEX_POSITION, NK_FORMAT_FLOAT, NK_OFFSETOF(struct your_vertex, pos)}, - * {NK_VERTEX_TEXCOORD, NK_FORMAT_FLOAT, NK_OFFSETOF(struct your_vertex, uv)}, - * {NK_VERTEX_COLOR, NK_FORMAT_R8G8B8A8, NK_OFFSETOF(struct your_vertex, col)}, - * {NK_VERTEX_LAYOUT_END} - * }; - * cfg.shape_AA = NK_ANTI_ALIASING_ON; - * cfg.line_AA = NK_ANTI_ALIASING_ON; - * cfg.vertex_layout = vertex_layout; - * cfg.vertex_size = sizeof(struct your_vertex); - * cfg.vertex_alignment = NK_ALIGNOF(struct your_vertex); - * cfg.circle_segment_count = 22; - * cfg.curve_segment_count = 22; - * cfg.arc_segment_count = 22; - * cfg.global_alpha = 1.0f; - * cfg.null = dev->null; - * - * struct nk_buffer cmds, verts, idx; - * nk_buffer_init_default(&cmds); - * nk_buffer_init_default(&verts); - * nk_buffer_init_default(&idx); - * nk_convert(&ctx, &cmds, &verts, &idx, &cfg); - * nk_draw_foreach(cmd, &ctx, &cmds) { - * if (!cmd->elem_count) continue; - * [...] - * } - * nk_buffer_free(&cms); - * nk_buffer_free(&verts); - * nk_buffer_free(&idx); - * - * Reference - * ------------------- - * nk__begin - Returns the first draw command in the context draw command list to be drawn - * nk__next - Increments the draw command iterator to the next command inside the context draw command list - * nk_foreach - Iteratates over each draw command inside the context draw command list - * - * nk_convert - Converts from the abstract draw commands list into a hardware accessable vertex format - * nk__draw_begin - Returns the first vertex command in the context vertex draw list to be executed - * nk__draw_next - Increments the vertex command iterator to the next command inside the context vertex command list - * nk__draw_end - Returns the end of the vertex draw list - * nk_draw_foreach - Iterates over each vertex draw command inside the vertex draw list - */ +/*/// ### Drawing +/// This library was designed to be render backend agnostic so it does +/// not draw anything to screen directly. Instead all drawn shapes, widgets +/// are made of, are buffered into memory and make up a command queue. +/// Each frame therefore fills the command buffer with draw commands +/// that then need to be executed by the user and his own render backend. +/// After that the command buffer needs to be cleared and a new frame can be +/// started. It is probably important to note that the command buffer is the main +/// drawing API and the optional vertex buffer API only takes this format and +/// converts it into a hardware accessible format. +/// +/// #### Usage +/// To draw all draw commands accumulated over a frame you need your own render +/// backend able to draw a number of 2D primitives. This includes at least +/// filled and stroked rectangles, circles, text, lines, triangles and scissors. +/// As soon as this criterion is met you can iterate over each draw command +/// and execute each draw command in a interpreter like fashion: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case //...: +/// //[...] +/// } +/// } +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// In program flow context draw commands need to be executed after input has been +/// gathered and the complete UI with windows and their contained widgets have +/// been executed and before calling `nk_clear` which frees all previously +/// allocated draw commands. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// Event evt; +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// [...] +/// } +/// } +/// nk_input_end(&ctx); +/// // +/// // [...] +/// // +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case ...: +/// // [...] +/// } +/// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// You probably noticed that you have to draw all of the UI each frame which is +/// quite wasteful. While the actual UI updating loop is quite fast rendering +/// without actually needing it is not. So there are multiple things you could do. +/// +/// First is only update on input. This of course is only an option if your +/// application only depends on the UI and does not require any outside calculations. +/// If you actually only update on input make sure to update the UI two times each +/// frame and call `nk_clear` directly after the first pass and only draw in +/// the second pass. In addition it is recommended to also add additional timers +/// to make sure the UI is not drawn more than a fixed number of frames per second. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// // [...wait for input ] +/// // [...do two UI passes ...] +/// do_ui(...) +/// nk_clear(&ctx); +/// do_ui(...) +/// // +/// // draw +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case ...: +/// //[...] +/// } +/// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// The second probably more applicable trick is to only draw if anything changed. +/// It is not really useful for applications with continuous draw loop but +/// quite useful for desktop applications. To actually get nuklear to only +/// draw on changes you first have to define `NK_ZERO_COMMAND_MEMORY` and +/// allocate a memory buffer that will store each unique drawing output. +/// After each frame you compare the draw command memory inside the library +/// with your allocated buffer by memcmp. If memcmp detects differences +/// you have to copy the command buffer into the allocated buffer +/// and then draw like usual (this example uses fixed memory but you could +/// use dynamically allocated memory). +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// //[... other defines ...] +/// #define NK_ZERO_COMMAND_MEMORY +/// #include "nuklear.h" +/// // +/// // setup context +/// struct nk_context ctx; +/// void *last = calloc(1,64*1024); +/// void *buf = calloc(1,64*1024); +/// nk_init_fixed(&ctx, buf, 64*1024); +/// // +/// // loop +/// while (1) { +/// // [...input...] +/// // [...ui...] +/// void *cmds = nk_buffer_memory(&ctx.memory); +/// if (memcmp(cmds, last, ctx.memory.allocated)) { +/// memcpy(last,cmds,ctx.memory.allocated); +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case ...: +/// // [...] +/// } +/// } +/// } +/// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Finally while using draw commands makes sense for higher abstracted platforms like +/// X11 and Win32 or drawing libraries it is often desirable to use graphics +/// hardware directly. Therefore it is possible to just define +/// `NK_INCLUDE_VERTEX_BUFFER_OUTPUT` which includes optional vertex output. +/// To access the vertex output you first have to convert all draw commands into +/// vertexes by calling `nk_convert` which takes in your preferred vertex format. +/// After successfully converting all draw commands just iterate over and execute all +/// vertex draw commands: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// // fill configuration +/// struct nk_convert_config cfg = {}; +/// static const struct nk_draw_vertex_layout_element vertex_layout[] = { +/// {NK_VERTEX_POSITION, NK_FORMAT_FLOAT, NK_OFFSETOF(struct your_vertex, pos)}, +/// {NK_VERTEX_TEXCOORD, NK_FORMAT_FLOAT, NK_OFFSETOF(struct your_vertex, uv)}, +/// {NK_VERTEX_COLOR, NK_FORMAT_R8G8B8A8, NK_OFFSETOF(struct your_vertex, col)}, +/// {NK_VERTEX_LAYOUT_END} +/// }; +/// cfg.shape_AA = NK_ANTI_ALIASING_ON; +/// cfg.line_AA = NK_ANTI_ALIASING_ON; +/// cfg.vertex_layout = vertex_layout; +/// cfg.vertex_size = sizeof(struct your_vertex); +/// cfg.vertex_alignment = NK_ALIGNOF(struct your_vertex); +/// cfg.circle_segment_count = 22; +/// cfg.curve_segment_count = 22; +/// cfg.arc_segment_count = 22; +/// cfg.global_alpha = 1.0f; +/// cfg.null = dev->null; +/// // +/// // setup buffers and convert +/// struct nk_buffer cmds, verts, idx; +/// nk_buffer_init_default(&cmds); +/// nk_buffer_init_default(&verts); +/// nk_buffer_init_default(&idx); +/// nk_convert(&ctx, &cmds, &verts, &idx, &cfg); +/// // +/// // draw +/// nk_draw_foreach(cmd, &ctx, &cmds) { +/// if (!cmd->elem_count) continue; +/// //[...] +/// } +/// nk_buffer_free(&cms); +/// nk_buffer_free(&verts); +/// nk_buffer_free(&idx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// --------------------|------------------------------------------------------- +/// __nk__begin__ | Returns the first draw command in the context draw command list to be drawn +/// __nk__next__ | Increments the draw command iterator to the next command inside the context draw command list +/// __nk_foreach__ | Iterates over each draw command inside the context draw command list +/// __nk_convert__ | Converts from the abstract draw commands list into a hardware accessible vertex format +/// __nk_draw_begin__ | Returns the first vertex command in the context vertex draw list to be executed +/// __nk__draw_next__ | Increments the vertex command iterator to the next command inside the context vertex command list +/// __nk__draw_end__ | Returns the end of the vertex draw list +/// __nk_draw_foreach__ | Iterates over each vertex draw command inside the vertex draw list +*/ enum nk_anti_aliasing {NK_ANTI_ALIASING_OFF, NK_ANTI_ALIASING_ON}; enum nk_convert_result { NK_CONVERT_SUCCESS = 0, @@ -989,68 +1153,143 @@ struct nk_convert_config { struct nk_draw_null_texture null; /* handle to texture with a white pixel for shape drawing */ const struct nk_draw_vertex_layout_element *vertex_layout; /* describes the vertex output format and packing */ nk_size vertex_size; /* sizeof one vertex for vertex packing */ - nk_size vertex_alignment; /* vertex alignment: Can be optained by NK_ALIGNOF */ + nk_size vertex_alignment; /* vertex alignment: Can be obtained by NK_ALIGNOF */ }; -/* nk__begin - Returns a draw command list iterator to iterate all draw - * commands accumulated over one frame. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * Return values: - * draw command pointer pointing to the first command inside the draw command list */ +/*/// #### nk__begin +/// Returns a draw command list iterator to iterate all draw +/// commands accumulated over one frame. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_command* nk__begin(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | must point to an previously initialized `nk_context` struct at the end of a frame +/// +/// Returns draw command pointer pointing to the first command inside the draw command list +*/ NK_API const struct nk_command* nk__begin(struct nk_context*); -/* nk__next - Returns a draw command list iterator to iterate all draw - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * @cmd must point to an previously a draw command either returned by `nk__begin` or `nk__next` - * Return values: - * draw command pointer pointing to the next command inside the draw command list */ +/*/// #### nk__next +/// Returns draw command pointer pointing to the next command inside the draw command list +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_command* nk__next(struct nk_context*, const struct nk_command*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// __cmd__ | Must point to an previously a draw command either returned by `nk__begin` or `nk__next` +/// +/// Returns draw command pointer pointing to the next command inside the draw command list +*/ NK_API const struct nk_command* nk__next(struct nk_context*, const struct nk_command*); -/* nk_foreach - Iterates over each draw command inside the context draw command list - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * @cmd pointer initialized to NULL */ +/*/// #### nk_foreach +/// Iterates over each draw command inside the context draw command list +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_foreach(c, ctx) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// __cmd__ | Command pointer initialized to NULL +/// +/// Iterates over each draw command inside the context draw command list +*/ #define nk_foreach(c, ctx) for((c) = nk__begin(ctx); (c) != 0; (c) = nk__next(ctx,c)) #ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT -/* nk_convert - converts all internal draw command into vertex draw commands and fills - * three buffers with vertexes, vertex draw commands and vertex indicies. The vertex format - * as well as some other configuration values have to be configurated by filling out a - * `nk_convert_config` struct. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * @cmds must point to a previously initialized buffer to hold converted vertex draw commands - * @vertices must point to a previously initialized buffer to hold all produced verticies - * @elements must point to a previously initialized buffer to hold all procudes vertex indicies - * @config must point to a filled out `nk_config` struct to configure the conversion process - * Returns: - * returns NK_CONVERT_SUCCESS on success and a enum nk_convert_result error values if not */ +/*/// #### nk_convert +/// Converts all internal draw commands into vertex draw commands and fills +/// three buffers with vertexes, vertex draw commands and vertex indices. The vertex format +/// as well as some other configuration values have to be configured by filling out a +/// `nk_convert_config` struct. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// nk_flags nk_convert(struct nk_context *ctx, struct nk_buffer *cmds, +// struct nk_buffer *vertices, struct nk_buffer *elements, const struct nk_convert_config*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// __cmds__ | Must point to a previously initialized buffer to hold converted vertex draw commands +/// __vertices__| Must point to a previously initialized buffer to hold all produced vertices +/// __elements__| Must point to a previously initialized buffer to hold all produced vertex indices +/// __config__ | Must point to a filled out `nk_config` struct to configure the conversion process +/// +/// Returns one of enum nk_convert_result error codes +/// +/// Parameter | Description +/// --------------------------------|----------------------------------------------------------- +/// NK_CONVERT_SUCCESS | Signals a successful draw command to vertex buffer conversion +/// NK_CONVERT_INVALID_PARAM | An invalid argument was passed in the function call +/// NK_CONVERT_COMMAND_BUFFER_FULL | The provided buffer for storing draw commands is full or failed to allocate more memory +/// NK_CONVERT_VERTEX_BUFFER_FULL | The provided buffer for storing vertices is full or failed to allocate more memory +/// NK_CONVERT_ELEMENT_BUFFER_FULL | The provided buffer for storing indicies is full or failed to allocate more memory +*/ NK_API nk_flags nk_convert(struct nk_context*, struct nk_buffer *cmds, struct nk_buffer *vertices, struct nk_buffer *elements, const struct nk_convert_config*); -/* nk__draw_begin - Returns a draw vertex command buffer iterator to iterate each the vertex draw command buffer - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * @buf must point to an previously by `nk_convert` filled out vertex draw command buffer - * Return values: - * vertex draw command pointer pointing to the first command inside the vertex draw command buffer */ +/*/// #### nk__draw_begin +/// Returns a draw vertex command buffer iterator to iterate over the vertex draw command buffer +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_draw_command* nk__draw_begin(const struct nk_context*, const struct nk_buffer*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer +/// +/// Returns vertex draw command pointer pointing to the first command inside the vertex draw command buffer +*/ NK_API const struct nk_draw_command* nk__draw_begin(const struct nk_context*, const struct nk_buffer*); -/* nk__draw_end - Returns the vertex draw command at the end of the vertex draw command buffer - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * @buf must point to an previously by `nk_convert` filled out vertex draw command buffer - * Return values: - * vertex draw command pointer pointing to the end of the last vertex draw command inside the vertex draw command buffer */ +/*/// #### nk__draw_end +/// Returns the vertex draw command at the end of the vertex draw command buffer +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_draw_command* nk__draw_end(const struct nk_context *ctx, const struct nk_buffer *buf); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer +/// +/// Returns vertex draw command pointer pointing to the end of the last vertex draw command inside the vertex draw command buffer +*/ NK_API const struct nk_draw_command* nk__draw_end(const struct nk_context*, const struct nk_buffer*); -/* nk__draw_next - Increments the the vertex draw command buffer iterator - * Parameters: - * @cmd must point to an previously either by `nk__draw_begin` or `nk__draw_next` returned vertex draw command - * @buf must point to an previously by `nk_convert` filled out vertex draw command buffer - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame - * Return values: - * vertex draw command pointer pointing to the end of the last vertex draw command inside the vertex draw command buffer */ +/*/// #### nk__draw_next +/// Increments the vertex draw command buffer iterator +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// const struct nk_draw_command* nk__draw_next(const struct nk_draw_command*, const struct nk_buffer*, const struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __cmd__ | Must point to an previously either by `nk__draw_begin` or `nk__draw_next` returned vertex draw command +/// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +/// +/// Returns vertex draw command pointer pointing to the end of the last vertex draw command inside the vertex draw command buffer +*/ NK_API const struct nk_draw_command* nk__draw_next(const struct nk_draw_command*, const struct nk_buffer*, const struct nk_context*); -/* nk_draw_foreach - Iterates over each vertex draw command inside a vertex draw command buffer - * Parameters: - * @cmd nk_draw_command pointer set to NULL - * @buf must point to an previously by `nk_convert` filled out vertex draw command buffer - * @ctx must point to an previously initialized `nk_context` struct at the end of a frame */ +/*/// #### nk_draw_foreach +/// Iterates over each vertex draw command inside a vertex draw command buffer +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_draw_foreach(cmd,ctx, b) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __cmd__ | `nk_draw_command`iterator set to NULL +/// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer +/// __ctx__ | Must point to an previously initialized `nk_context` struct at the end of a frame +*/ #define nk_draw_foreach(cmd,ctx, b) for((cmd)=nk__draw_begin(ctx, b); (cmd)!=0; (cmd)=nk__draw_next(cmd, b, ctx)) #endif /* ============================================================================= @@ -1058,740 +1297,1654 @@ NK_API const struct nk_draw_command* nk__draw_next(const struct nk_draw_command* * WINDOW * * ============================================================================= - * Windows are the main persistent state used inside nuklear and are life time - * controlled by simply "retouching" (i.e. calling) each window each frame. - * All widgets inside nuklear can only be added inside function pair `nk_begin_xxx` - * and `nk_end`. Calling any widgets outside these two functions will result in an - * assert in debug or no state change in release mode. - * - * Each window holds frame persistent state like position, size, flags, state tables, - * and some garbage collected internal persistent widget state. Each window - * is linked into a window stack list which determines the drawing and overlapping - * order. The topmost window thereby is the currently active window. - * - * To change window position inside the stack occurs either automatically by - * user input by being clicked on or programatically by calling `nk_window_focus`. - * Windows by default are visible unless explicitly being defined with flag - * `NK_WINDOW_HIDDEN`, the user clicked the close button on windows with flag - * `NK_WINDOW_CLOSABLE` or if a window was explicitly hidden by calling - * `nk_window_show`. To explicitly close and destroy a window call `nk_window_close`. - * - * Usage - * ------------------- - * To create and keep a window you have to call one of the two `nk_begin_xxx` - * functions to start window declarations and `nk_end` at the end. Furthermore it - * is recommended to check the return value of `nk_begin_xxx` and only process - * widgets inside the window if the value is not 0. Either way you have to call - * `nk_end` at the end of window declarations. Furthmore do not attempt to - * nest `nk_begin_xxx` calls which will hopefully result in an assert or if not - * in a segmation fault. - * - * if (nk_begin_xxx(...) { - * [... widgets ...] - * } - * nk_end(ctx); - * - * In the grand concept window and widget declarations need to occur after input - * handling and before drawing to screen. Not doing so can result in higher - * latency or at worst invalid behavior. Furthermore make sure that `nk_clear` - * is called at the end of the frame. While nuklears default platform backends - * already call `nk_clear` for you if you write your own backend not calling - * `nk_clear` can cause asserts or even worse undefined behavior. - * - * struct nk_context ctx; - * nk_init_xxx(&ctx, ...); - * while (1) { - * Event evt; - * nk_input_begin(&ctx); - * while (GetEvent(&evt)) { - * if (evt.type == MOUSE_MOVE) - * nk_input_motion(&ctx, evt.motion.x, evt.motion.y); - * else if (evt.type == [...]) { - * nk_input_xxx(...); - * } - * } - * nk_input_end(&ctx); - * - * if (nk_begin_xxx(...) { - * [...] - * } - * nk_end(ctx); - * - * const struct nk_command *cmd = 0; - * nk_foreach(cmd, &ctx) { - * case NK_COMMAND_LINE: - * your_draw_line_function(...) - * break; - * case NK_COMMAND_RECT - * your_draw_rect_function(...) - * break; - * case ...: - * [...] - * } - * nk_clear(&ctx); - * } - * nk_free(&ctx); - * - * Reference - * ------------------- - * nk_begin - starts a new window; needs to be called every frame for every window (unless hidden) or otherwise the window gets removed - * nk_begin_titled - extended window start with seperated title and identifier to allow multiple windows with same name but not title - * nk_end - needs to be called at the end of the window building process to process scaling, scrollbars and general cleanup - * - * nk_window_find - finds and returns the window with give name - * nk_window_get_bounds - returns a rectangle with screen position and size of the currently processed window. - * nk_window_get_position - returns the position of the currently processed window - * nk_window_get_size - returns the size with width and height of the currently processed window - * nk_window_get_width - returns the width of the currently processed window - * nk_window_get_height - returns the height of the currently processed window - * nk_window_get_panel - returns the underlying panel which contains all processing state of the currnet window - * nk_window_get_content_region - returns the position and size of the currently visible and non-clipped space inside the currently processed window - * nk_window_get_content_region_min - returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window - * nk_window_get_content_region_max - returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window - * nk_window_get_content_region_size - returns the size of the currently visible and non-clipped space inside the currently processed window - * nk_window_get_canvas - returns the draw command buffer. Can be used to draw custom widgets - * - * nk_window_has_focus - returns if the currently processed window is currently active - * nk_window_is_collapsed - returns if the window with given name is currently minimized/collapsed - * nk_window_is_closed - returns if the currently processed window was closed - * nk_window_is_hidden - returns if the currently processed window was hidden - * nk_window_is_active - same as nk_window_has_focus for some reason - * nk_window_is_hovered - returns if the currently processed window is currently being hovered by mouse - * nk_window_is_any_hovered - return if any wndow currently hovered - * nk_item_is_any_active - returns if any window or widgets is currently hovered or active - * - * nk_window_set_bounds - updates position and size of the currently processed window - * nk_window_set_position - updates position of the currently process window - * nk_window_set_size - updates the size of the currently processed window - * nk_window_set_focus - set the currently processed window as active window - * - * nk_window_close - closes the window with given window name which deletes the window at the end of the frame - * nk_window_collapse - collapses the window with given window name - * nk_window_collapse_if - collapses the window with given window name if the given condition was met - * nk_window_show - hides a visible or reshows a hidden window - * nk_window_show_if - hides/shows a window depending on condition - */ +/// ### Window +/// Windows are the main persistent state used inside nuklear and are life time +/// controlled by simply "retouching" (i.e. calling) each window each frame. +/// All widgets inside nuklear can only be added inside the function pair `nk_begin_xxx` +/// and `nk_end`. Calling any widgets outside these two functions will result in an +/// assert in debug or no state change in release mode.

+/// +/// Each window holds frame persistent state like position, size, flags, state tables, +/// and some garbage collected internal persistent widget state. Each window +/// is linked into a window stack list which determines the drawing and overlapping +/// order. The topmost window thereby is the currently active window.

+/// +/// To change window position inside the stack occurs either automatically by +/// user input by being clicked on or programmatically by calling `nk_window_focus`. +/// Windows by default are visible unless explicitly being defined with flag +/// `NK_WINDOW_HIDDEN`, the user clicked the close button on windows with flag +/// `NK_WINDOW_CLOSABLE` or if a window was explicitly hidden by calling +/// `nk_window_show`. To explicitly close and destroy a window call `nk_window_close`.

+/// +/// #### Usage +/// To create and keep a window you have to call one of the two `nk_begin_xxx` +/// functions to start window declarations and `nk_end` at the end. Furthermore it +/// is recommended to check the return value of `nk_begin_xxx` and only process +/// widgets inside the window if the value is not 0. Either way you have to call +/// `nk_end` at the end of window declarations. Furthermore, do not attempt to +/// nest `nk_begin_xxx` calls which will hopefully result in an assert or if not +/// in a segmentation fault. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // [... widgets ...] +/// } +/// nk_end(ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// In the grand concept window and widget declarations need to occur after input +/// handling and before drawing to screen. Not doing so can result in higher +/// latency or at worst invalid behavior. Furthermore make sure that `nk_clear` +/// is called at the end of the frame. While nuklear's default platform backends +/// already call `nk_clear` for you if you write your own backend not calling +/// `nk_clear` can cause asserts or even worse undefined behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// Event evt; +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// nk_input_xxx(...); +/// } +/// } +/// nk_input_end(&ctx); +/// +/// if (nk_begin_xxx(...) { +/// //[...] +/// } +/// nk_end(ctx); +/// +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case //...: +/// //[...] +/// } +/// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// ------------------------------------|---------------------------------------- +/// nk_begin | Starts a new window; needs to be called every frame for every window (unless hidden) or otherwise the window gets removed +/// nk_begin_titled | Extended window start with separated title and identifier to allow multiple windows with same name but not title +/// nk_end | Needs to be called at the end of the window building process to process scaling, scrollbars and general cleanup +// +/// nk_window_find | Finds and returns the window with give name +/// nk_window_get_bounds | Returns a rectangle with screen position and size of the currently processed window. +/// nk_window_get_position | Returns the position of the currently processed window +/// nk_window_get_size | Returns the size with width and height of the currently processed window +/// nk_window_get_width | Returns the width of the currently processed window +/// nk_window_get_height | Returns the height of the currently processed window +/// nk_window_get_panel | Returns the underlying panel which contains all processing state of the current window +/// nk_window_get_content_region | Returns the position and size of the currently visible and non-clipped space inside the currently processed window +/// nk_window_get_content_region_min | Returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window +/// nk_window_get_content_region_max | Returns the upper rectangle position of the currently visible and non-clipped space inside the currently processed window +/// nk_window_get_content_region_size | Returns the size of the currently visible and non-clipped space inside the currently processed window +/// nk_window_get_canvas | Returns the draw command buffer. Can be used to draw custom widgets +/// nk_window_has_focus | Returns if the currently processed window is currently active +/// nk_window_is_collapsed | Returns if the window with given name is currently minimized/collapsed +/// nk_window_is_closed | Returns if the currently processed window was closed +/// nk_window_is_hidden | Returns if the currently processed window was hidden +/// nk_window_is_active | Same as nk_window_has_focus for some reason +/// nk_window_is_hovered | Returns if the currently processed window is currently being hovered by mouse +/// nk_window_is_any_hovered | Return if any window currently hovered +/// nk_item_is_any_active | Returns if any window or widgets is currently hovered or active +// +/// nk_window_set_bounds | Updates position and size of the currently processed window +/// nk_window_set_position | Updates position of the currently process window +/// nk_window_set_size | Updates the size of the currently processed window +/// nk_window_set_focus | Set the currently processed window as active window +// +/// nk_window_close | Closes the window with given window name which deletes the window at the end of the frame +/// nk_window_collapse | Collapses the window with given window name +/// nk_window_collapse_if | Collapses the window with given window name if the given condition was met +/// nk_window_show | Hides a visible or reshows a hidden window +/// nk_window_show_if | Hides/shows a window depending on condition +*/ +/* +/// #### nk_panel_flags +/// Flag | Description +/// ----------------------------|---------------------------------------- +/// NK_WINDOW_BORDER | Draws a border around the window to visually separate window from the background +/// NK_WINDOW_MOVABLE | The movable flag indicates that a window can be moved by user input or by dragging the window header +/// NK_WINDOW_SCALABLE | The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window +/// NK_WINDOW_CLOSABLE | Adds a closable icon into the header +/// NK_WINDOW_MINIMIZABLE | Adds a minimize icon into the header +/// NK_WINDOW_NO_SCROLLBAR | Removes the scrollbar from the window +/// NK_WINDOW_TITLE | Forces a header at the top at the window showing the title +/// NK_WINDOW_SCROLL_AUTO_HIDE | Automatically hides the window scrollbar if no user interaction: also requires delta time in `nk_context` to be set each frame +/// NK_WINDOW_BACKGROUND | Always keep window in the background +/// NK_WINDOW_SCALE_LEFT | Puts window scaler in the left-ottom corner instead right-bottom +/// NK_WINDOW_NO_INPUT | Prevents window of scaling, moving or getting focus +/// +/// #### nk_collapse_states +/// State | Description +/// ----------------|----------------------------------------------------------- +/// __NK_MINIMIZED__| UI section is collased and not visibile until maximized +/// __NK_MAXIMIZED__| UI section is extended and visibile until minimized +///

+*/ enum nk_panel_flags { - NK_WINDOW_BORDER = NK_FLAG(0), /* Draws a border around the window to visually separate window from the background */ - NK_WINDOW_MOVABLE = NK_FLAG(1), /* The movable flag indicates that a window can be moved by user input or by dragging the window header */ - NK_WINDOW_SCALABLE = NK_FLAG(2), /* The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window */ - NK_WINDOW_CLOSABLE = NK_FLAG(3), /* adds a closable icon into the header */ - NK_WINDOW_MINIMIZABLE = NK_FLAG(4), /* adds a minimize icon into the header */ - NK_WINDOW_NO_SCROLLBAR = NK_FLAG(5), /* Removes the scrollbar from the window */ - NK_WINDOW_TITLE = NK_FLAG(6), /* Forces a header at the top at the window showing the title */ - NK_WINDOW_SCROLL_AUTO_HIDE = NK_FLAG(7), /* Automatically hides the window scrollbar if no user interaction: also requires delta time in `nk_context` to be set each frame */ - NK_WINDOW_BACKGROUND = NK_FLAG(8), /* Always keep window in the background */ - NK_WINDOW_SCALE_LEFT = NK_FLAG(9), /* Puts window scaler in the left-ottom corner instead right-bottom*/ - NK_WINDOW_NO_INPUT = NK_FLAG(10) /* Prevents window of scaling, moving or getting focus */ + NK_WINDOW_BORDER = NK_FLAG(0), + NK_WINDOW_MOVABLE = NK_FLAG(1), + NK_WINDOW_SCALABLE = NK_FLAG(2), + NK_WINDOW_CLOSABLE = NK_FLAG(3), + NK_WINDOW_MINIMIZABLE = NK_FLAG(4), + NK_WINDOW_NO_SCROLLBAR = NK_FLAG(5), + NK_WINDOW_TITLE = NK_FLAG(6), + NK_WINDOW_SCROLL_AUTO_HIDE = NK_FLAG(7), + NK_WINDOW_BACKGROUND = NK_FLAG(8), + NK_WINDOW_SCALE_LEFT = NK_FLAG(9), + NK_WINDOW_NO_INPUT = NK_FLAG(10) }; -/* nk_begin - starts a new window; needs to be called every frame for every window (unless hidden) or otherwise the window gets removed - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @title window title and identifier. Needs to be persitent over frames to identify the window - * @bounds initial position and window size. However if you do not define `NK_WINDOW_SCALABLE` or `NK_WINDOW_MOVABLE` you can set window position and size every frame - * @flags window flags defined in `enum nk_panel_flags` with a number of different window behaviors - * Return values: - * returns 1 if the window can be filled up with widgets from this point until `nk_end or 0 otherwise for example if minimized `*/ +/*/// #### nk_begin +/// Starts a new window; needs to be called every frame for every +/// window (unless hidden) or otherwise the window gets removed +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_begin(struct nk_context *ctx, const char *title, struct nk_rect bounds, nk_flags flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __title__ | Window title and identifier. Needs to be persistent over frames to identify the window +/// __bounds__ | Initial position and window size. However if you do not define `NK_WINDOW_SCALABLE` or `NK_WINDOW_MOVABLE` you can set window position and size every frame +/// __flags__ | Window flags defined in the nk_panel_flags section with a number of different window behaviors +/// +/// Returns `true(1)` if the window can be filled up with widgets from this point +/// until `nk_end` or `false(0)` otherwise for example if minimized +*/ NK_API int nk_begin(struct nk_context *ctx, const char *title, struct nk_rect bounds, nk_flags flags); -/* nk_begin_titled - extended window start with seperated title and identifier to allow multiple windows with same name but not title - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name window identifier. Needs to be persitent over frames to identify the window - * @title window title displayed inside header if flag `NK_WINDOW_TITLE` or either `NK_WINDOW_CLOSABLE` or `NK_WINDOW_MINIMIZED` was set - * @bounds initial position and window size. However if you do not define `NK_WINDOW_SCALABLE` or `NK_WINDOW_MOVABLE` you can set window position and size every frame - * @flags window flags defined in `enum nk_panel_flags` with a number of different window behaviors - * Return values: - * returns 1 if the window can be filled up with widgets from this point until `nk_end or 0 otherwise `*/ +/*/// #### nk_begin_titled +/// Extended window start with separated title and identifier to allow multiple +/// windows with same title but not name +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, struct nk_rect bounds, nk_flags flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Window identifier. Needs to be persistent over frames to identify the window +/// __title__ | Window title displayed inside header if flag `NK_WINDOW_TITLE` or either `NK_WINDOW_CLOSABLE` or `NK_WINDOW_MINIMIZED` was set +/// __bounds__ | Initial position and window size. However if you do not define `NK_WINDOW_SCALABLE` or `NK_WINDOW_MOVABLE` you can set window position and size every frame +/// __flags__ | Window flags defined in the nk_panel_flags section with a number of different window behaviors +/// +/// Returns `true(1)` if the window can be filled up with widgets from this point +/// until `nk_end` or `false(0)` otherwise for example if minimized +*/ NK_API int nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, struct nk_rect bounds, nk_flags flags); -/* nk_end - needs to be called at the end of the window building process to process scaling, scrollbars and general cleanup. - * All widget calls after this functions will result in asserts or no state changes - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct */ +/*/// #### nk_end +/// Needs to be called at the end of the window building process to process scaling, scrollbars and general cleanup. +/// All widget calls after this functions will result in asserts or no state changes +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_end(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +*/ NK_API void nk_end(struct nk_context *ctx); -/* nk_window_find - finds and returns the window with give name - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name window identifier - * Return values: - * returns a `nk_window` struct pointing to the idified window or 0 if no window with given name was found */ +/*/// #### nk_window_find +/// Finds and returns a window from passed name +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_end(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Window identifier +/// +/// Returns a `nk_window` struct pointing to the identified window or NULL if +/// no window with the given name was found +*/ NK_API struct nk_window *nk_window_find(struct nk_context *ctx, const char *name); -/* nk_window_get_bounds - returns a rectangle with screen position and size of the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns a `nk_rect` struct with window upper left position and size */ +/*/// #### nk_window_get_bounds +/// Returns a rectangle with screen position and size of the currently processed window +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_window_get_bounds(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns a `nk_rect` struct with window upper left window position and size +*/ NK_API struct nk_rect nk_window_get_bounds(const struct nk_context *ctx); -/* nk_window_get_position - returns the position of the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns a `nk_vec2` struct with window upper left position */ +/*/// #### nk_window_get_position +/// Returns the position of the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_window_get_position(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns a `nk_vec2` struct with window upper left position +*/ NK_API struct nk_vec2 nk_window_get_position(const struct nk_context *ctx); -/* nk_window_get_size - returns the size with width and height of the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns a `nk_vec2` struct with window size */ +/*/// #### nk_window_get_size +/// Returns the size with width and height of the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_window_get_size(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns a `nk_vec2` struct with window width and height +*/ NK_API struct nk_vec2 nk_window_get_size(const struct nk_context*); -/* nk_window_get_width - returns the width of the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns the window width */ +/*/// #### nk_window_get_width +/// Returns the width of the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// float nk_window_get_width(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns the current window width +*/ NK_API float nk_window_get_width(const struct nk_context*); -/* nk_window_get_height - returns the height of the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns the window height */ +/*/// #### nk_window_get_height +/// Returns the height of the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// float nk_window_get_height(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns the current window height +*/ NK_API float nk_window_get_height(const struct nk_context*); -/* nk_window_get_panel - returns the underlying panel which contains all processing state of the currnet window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns a pointer to window internal `nk_panel` state. DO NOT keep this pointer around it is only valid until `nk_end` */ +/*/// #### nk_window_get_panel +/// Returns the underlying panel which contains all processing state of the current window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// !!! WARNING +/// Do not keep the returned panel pointer around, it is only valid until `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_panel* nk_window_get_panel(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns a pointer to window internal `nk_panel` state. +*/ NK_API struct nk_panel* nk_window_get_panel(struct nk_context*); -/* nk_window_get_content_region - returns the position and size of the currently visible and non-clipped space inside the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns `nk_rect` struct with screen position and size (no scrollbar offset) of the visible space inside the current window */ +/*/// #### nk_window_get_content_region +/// Returns the position and size of the currently visible and non-clipped space +/// inside the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_window_get_content_region(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `nk_rect` struct with screen position and size (no scrollbar offset) +/// of the visible space inside the current window +*/ NK_API struct nk_rect nk_window_get_content_region(struct nk_context*); -/* nk_window_get_content_region_min - returns the upper left position of the currently visible and non-clipped space inside the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns `nk_vec2` struct with upper left screen position (no scrollbar offset) of the visible space inside the current window */ +/*/// #### nk_window_get_content_region_min +/// Returns the upper left position of the currently visible and non-clipped +/// space inside the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_window_get_content_region_min(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// returns `nk_vec2` struct with upper left screen position (no scrollbar offset) +/// of the visible space inside the current window +*/ NK_API struct nk_vec2 nk_window_get_content_region_min(struct nk_context*); -/* nk_window_get_content_region_max - returns the lower right screen position of the currently visible and non-clipped space inside the currently processed window. - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns `nk_vec2` struct with lower right screen position (no scrollbar offset) of the visible space inside the current window */ +/*/// #### nk_window_get_content_region_max +/// Returns the lower right screen position of the currently visible and +/// non-clipped space inside the currently processed window. +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_window_get_content_region_max(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `nk_vec2` struct with lower right screen position (no scrollbar offset) +/// of the visible space inside the current window +*/ NK_API struct nk_vec2 nk_window_get_content_region_max(struct nk_context*); -/* nk_window_get_content_region_size - returns the size of the currently visible and non-clipped space inside the currently processed window - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns `nk_vec2` struct with size the visible space inside the current window */ +/*/// #### nk_window_get_content_region_size +/// Returns the size of the currently visible and non-clipped space inside the +/// currently processed window +/// +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_window_get_content_region_size(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `nk_vec2` struct with size the visible space inside the current window +*/ NK_API struct nk_vec2 nk_window_get_content_region_size(struct nk_context*); -/* nk_window_get_canvas - returns the draw command buffer. Can be used to draw custom widgets - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns a pointer to window internal `nk_command_buffer` struct used as drawing canvas. Can be used to do custom drawing */ +/*/// #### nk_window_get_canvas +/// Returns the draw command buffer. Can be used to draw custom widgets +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// !!! WARNING +/// Do not keep the returned command buffer pointer around it is only valid until `nk_end` +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_command_buffer* nk_window_get_canvas(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns a pointer to window internal `nk_command_buffer` struct used as +/// drawing canvas. Can be used to do custom drawing. +*/ NK_API struct nk_command_buffer* nk_window_get_canvas(struct nk_context*); -/* nk_window_has_focus - returns if the currently processed window is currently active - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns 0 if current window is not active or 1 if it is */ +/*/// #### nk_window_has_focus +/// Returns if the currently processed window is currently active +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_has_focus(const struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `false(0)` if current window is not active or `true(1)` if it is +*/ NK_API int nk_window_has_focus(const struct nk_context*); -/* nk_window_is_collapsed - returns if the window with given name is currently minimized/collapsed - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of window you want to check is collapsed - * Return values: - * returns 1 if current window is minimized and 0 if window not found or is not minimized */ +/*/// #### nk_window_is_hovered +/// Return if the current window is being hovered +/// !!! WARNING +/// Only call this function between calls `nk_begin_xxx` and `nk_end` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_hovered(struct nk_context *ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `true(1)` if current window is hovered or `false(0)` otherwise +*/ +NK_API int nk_window_is_hovered(struct nk_context*); +/*/// #### nk_window_is_collapsed +/// Returns if the window with given name is currently minimized/collapsed +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_collapsed(struct nk_context *ctx, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of window you want to check if it is collapsed +/// +/// Returns `true(1)` if current window is minimized and `false(0)` if window not +/// found or is not minimized +*/ NK_API int nk_window_is_collapsed(struct nk_context *ctx, const char *name); -/* nk_window_is_closed - returns if the window with given name was closed by calling `nk_close` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of window you want to check is closed - * Return values: - * returns 1 if current window was closed or 0 window not found or not closed */ +/*/// #### nk_window_is_closed +/// Returns if the window with given name was closed by calling `nk_close` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_closed(struct nk_context *ctx, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of window you want to check if it is closed +/// +/// Returns `true(1)` if current window was closed or `false(0)` window not found or not closed +*/ NK_API int nk_window_is_closed(struct nk_context*, const char*); -/* nk_window_is_hidden - returns if the window with given name is hidden - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of window you want to check is hidden - * Return values: - * returns 1 if current window is hidden or 0 window not found or visible */ +/*/// #### nk_window_is_hidden +/// Returns if the window with given name is hidden +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_hidden(struct nk_context *ctx, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of window you want to check if it is hidden +/// +/// Returns `true(1)` if current window is hidden or `false(0)` window not found or visible +*/ NK_API int nk_window_is_hidden(struct nk_context*, const char*); -/* nk_window_is_active - same as nk_window_has_focus for some reason - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of window you want to check is hidden - * Return values: - * returns 1 if current window is active or 0 window not found or not active */ +/*/// #### nk_window_is_active +/// Same as nk_window_has_focus for some reason +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_active(struct nk_context *ctx, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of window you want to check if it is active +/// +/// Returns `true(1)` if current window is active or `false(0)` window not found or not active +*/ NK_API int nk_window_is_active(struct nk_context*, const char*); -/* nk_window_is_hovered - return if the current window is being hovered - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns 1 if current window is hovered or 0 otherwise */ -NK_API int nk_window_is_hovered(struct nk_context*); -/* nk_window_is_any_hovered - returns if the any window is being hovered - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns 1 if any window is hovered or 0 otherwise */ +/*/// #### nk_window_is_any_hovered +/// Returns if the any window is being hovered +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_window_is_any_hovered(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `true(1)` if any window is hovered or `false(0)` otherwise +*/ NK_API int nk_window_is_any_hovered(struct nk_context*); -/* nk_item_is_any_active - returns if the any window is being hovered or any widget is currently active. - * Can be used to decide if input should be processed by UI or your specific input handling. - * Example could be UI and 3D camera to move inside a 3D space. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * Return values: - * returns 1 if any window is hovered or any item is active or 0 otherwise */ +/*/// #### nk_item_is_any_active +/// Returns if the any window is being hovered or any widget is currently active. +/// Can be used to decide if input should be processed by UI or your specific input handling. +/// Example could be UI and 3D camera to move inside a 3D space. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_item_is_any_active(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// +/// Returns `true(1)` if any window is hovered or any item is active or `false(0)` otherwise +*/ NK_API int nk_item_is_any_active(struct nk_context*); -/* nk_window_set_bounds - updates position and size of the currently processed window - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @bounds points to a `nk_rect` struct with the new position and size of currently active window */ -NK_API void nk_window_set_bounds(struct nk_context*, struct nk_rect bounds); -/* nk_window_set_position - updates position of the currently processed window - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @pos points to a `nk_vec2` struct with the new position of currently active window */ -NK_API void nk_window_set_position(struct nk_context*, struct nk_vec2 pos); -/* nk_window_set_size - updates size of the currently processed window - * IMPORTANT: only call this function between calls `nk_begin_xxx` and `nk_end` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @bounds points to a `nk_vec2` struct with the new size of currently active window */ -NK_API void nk_window_set_size(struct nk_context*, struct nk_vec2); -/* nk_window_set_focus - sets the window with given name as active - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be set active */ +/*/// #### nk_window_set_bounds +/// Updates position and size of window with passed in name +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_set_bounds(struct nk_context*, const char *name, struct nk_rect bounds); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to modify both position and size +/// __bounds__ | Must point to a `nk_rect` struct with the new position and size +*/ +NK_API void nk_window_set_bounds(struct nk_context*, const char *name, struct nk_rect bounds); +/*/// #### nk_window_set_position +/// Updates position of window with passed name +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_set_position(struct nk_context*, const char *name, struct nk_vec2 pos); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to modify both position +/// __pos__ | Must point to a `nk_vec2` struct with the new position +*/ +NK_API void nk_window_set_position(struct nk_context*, const char *name, struct nk_vec2 pos); +/*/// #### nk_window_set_size +/// Updates size of window with passed in name +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_set_size(struct nk_context*, const char *name, struct nk_vec2); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to modify both window size +/// __size__ | Must point to a `nk_vec2` struct with new window size +*/ +NK_API void nk_window_set_size(struct nk_context*, const char *name, struct nk_vec2); +/*/// #### nk_window_set_focus +/// Sets the window with given name as active +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_set_focus(struct nk_context*, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to set focus on +*/ NK_API void nk_window_set_focus(struct nk_context*, const char *name); -/* nk_window_close - closed a window and marks it for being freed at the end of the frame - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be closed */ +/*/// #### nk_window_close +/// Closes a window and marks it for being freed at the end of the frame +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_close(struct nk_context *ctx, const char *name); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to close +*/ NK_API void nk_window_close(struct nk_context *ctx, const char *name); -/* nk_window_collapse - updates collapse state of a window with given name - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be either collapse or maximize */ +/*/// #### nk_window_collapse +/// Updates collapse state of a window with given name +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_collapse(struct nk_context*, const char *name, enum nk_collapse_states state); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to close +/// __state__ | value out of nk_collapse_states section +*/ NK_API void nk_window_collapse(struct nk_context*, const char *name, enum nk_collapse_states state); -/* nk_window_collapse - updates collapse state of a window with given name if given condition is met - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be either collapse or maximize - * @state the window should be put into - * @condition that has to be true to actually commit the collsage state change */ +/*/// #### nk_window_collapse_if +/// Updates collapse state of a window with given name if given condition is met +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_collapse_if(struct nk_context*, const char *name, enum nk_collapse_states, int cond); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to either collapse or maximize +/// __state__ | value out of nk_collapse_states section the window should be put into +/// __cond__ | condition that has to be met to actually commit the collapse state change +*/ NK_API void nk_window_collapse_if(struct nk_context*, const char *name, enum nk_collapse_states, int cond); -/* nk_window_show - updates visibility state of a window with given name - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be either collapse or maximize - * @state with either visible or hidden to modify the window with */ +/*/// #### nk_window_show +/// updates visibility state of a window with given name +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_show(struct nk_context*, const char *name, enum nk_show_states); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to either collapse or maximize +/// __state__ | state with either visible or hidden to modify the window with +*/ NK_API void nk_window_show(struct nk_context*, const char *name, enum nk_show_states); -/* nk_window_show_if - updates visibility state of a window with given name if a given condition is met - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @name of the window to be either collapse or maximize - * @state with either visible or hidden to modify the window with - * @condition that has to be true to actually commit the visible state change */ +/*/// #### nk_window_show_if +/// Updates visibility state of a window with given name if a given condition is met +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_window_show_if(struct nk_context*, const char *name, enum nk_show_states, int cond); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __name__ | Identifier of the window to either hide or show +/// __state__ | state with either visible or hidden to modify the window with +/// __cond__ | condition that has to be met to actually commit the visbility state change +*/ NK_API void nk_window_show_if(struct nk_context*, const char *name, enum nk_show_states, int cond); /* ============================================================================= * * LAYOUT * - * ============================================================================= */ -/* Layouting in general describes placing widget inside a window with position and size. - * While in this particular implementation there are five different APIs for layouting - * each with different trade offs between control and ease of use. - * - * All layouting methodes in this library are based around the concept of a row. - * A row has a height the window content grows by and a number of columns and each - * layouting method specifies how each widget is placed inside the row. - * After a row has been allocated by calling a layouting functions and then - * filled with widgets will advance an internal pointer over the allocated row. - * - * To acually define a layout you just call the appropriate layouting function - * and each subsequnetial widget call will place the widget as specified. Important - * here is that if you define more widgets then columns defined inside the layout - * functions it will allocate the next row without you having to make another layouting - * call. - * - * Biggest limitation with using all these APIs outside the `nk_layout_space_xxx` API - * is that you have to define the row height for each. However the row height - * often depends on the height of the font. - * - * To fix that internally nuklear uses a minimum row height that is set to the - * height plus padding of currently active font and overwrites the row height - * value if zero. - * - * If you manually want to change the minimum row height then - * use nk_layout_set_min_row_height, and use nk_layout_reset_min_row_height to - * reset it back to be derived from font height. - * - * Also if you change the font in nuklear it will automatically change the minimum - * row height for you and. This means if you change the font but still want - * a minimum row height smaller than the font you have to repush your value. - * - * For actually more advanced UI I would even recommend using the `nk_layout_space_xxx` - * layouting method in combination with a cassowary constraint solver (there are - * some versions on github with permissive license model) to take over all control over widget - * layouting yourself. However for quick and dirty layouting using all the other layouting - * functions should be fine. - * - * Usage - * ------------------- - * 1.) nk_layout_row_dynamic - * The easiest layouting function is `nk_layout_row_dynamic`. It provides each - * widgets with same horizontal space inside the row and dynamically grows - * if the owning window grows in width. So the number of columns dictates - * the size of each widget dynamically by formula: - * - * widget_width = (window_width - padding - spacing) * (1/colum_count) - * - * Just like all other layouting APIs if you define more widget than columns this - * library will allocate a new row and keep all layouting parameters previously - * defined. - * - * if (nk_begin_xxx(...) { - * // first row with height: 30 composed of two widgets - * nk_layout_row_dynamic(&ctx, 30, 2); - * nk_widget(...); - * nk_widget(...); - * - * // second row with same parameter as defined above - * nk_widget(...); - * nk_widget(...); - * - * // third row uses 0 for height which will use auto layouting - * nk_layout_row_dynamic(&ctx, 0, 2); - * nk_widget(...); - * nk_widget(...); - * } - * nk_end(...); - * - * 2.) nk_layout_row_static - * Another easy layouting function is `nk_layout_row_static`. It provides each - * widget with same horizontal pixel width inside the row and does not grow - * if the owning window scales smaller or bigger. - * - * if (nk_begin_xxx(...) { - * // first row with height: 30 composed of two widgets with width: 80 - * nk_layout_row_static(&ctx, 30, 80, 2); - * nk_widget(...); - * nk_widget(...); - * - * // second row with same parameter as defined above - * nk_widget(...); - * nk_widget(...); - * - * // third row uses 0 for height which will use auto layouting - * nk_layout_row_static(&ctx, 0, 80, 2); - * nk_widget(...); - * nk_widget(...); - * } - * nk_end(...); - * - * 3.) nk_layout_row_xxx - * A little bit more advanced layouting API are functions `nk_layout_row_begin`, - * `nk_layout_row_push` and `nk_layout_row_end`. They allow to directly - * specify each column pixel or window ratio in a row. It supports either - * directly setting per column pixel width or widget window ratio but not - * both. Furthermore it is a immediate mode API so each value is directly - * pushed before calling a widget. Therefore the layout is not automatically - * repeating like the last two layouting functions. - * - * if (nk_begin_xxx(...) { - * // first row with height: 25 composed of two widgets with width 60 and 40 - * nk_layout_row_begin(ctx, NK_STATIC, 25, 2); - * nk_layout_row_push(ctx, 60); - * nk_widget(...); - * nk_layout_row_push(ctx, 40); - * nk_widget(...); - * nk_layout_row_end(ctx); - * - * // second row with height: 25 composed of two widgets with window ratio 0.25 and 0.75 - * nk_layout_row_begin(ctx, NK_DYNAMIC, 25, 2); - * nk_layout_row_push(ctx, 0.25f); - * nk_widget(...); - * nk_layout_row_push(ctx, 0.75f); - * nk_widget(...); - * nk_layout_row_end(ctx); - * - * // third row with auto generated height: composed of two widgets with window ratio 0.25 and 0.75 - * nk_layout_row_begin(ctx, NK_DYNAMIC, 0, 2); - * nk_layout_row_push(ctx, 0.25f); - * nk_widget(...); - * nk_layout_row_push(ctx, 0.75f); - * nk_widget(...); - * nk_layout_row_end(ctx); - * } - * nk_end(...); - * - * 4.) nk_layout_row - * The array counterpart to API nk_layout_row_xxx is the single nk_layout_row - * functions. Instead of pushing either pixel or window ratio for every widget - * it allows to define it by array. The trade of for less control is that - * `nk_layout_row` is automatically repeating. Otherwise the behavior is the - * same. - * - * if (nk_begin_xxx(...) { - * // two rows with height: 30 composed of two widgets with width 60 and 40 - * const float size[] = {60,40}; - * nk_layout_row(ctx, NK_STATIC, 30, 2, ratio); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * - * // two rows with height: 30 composed of two widgets with window ratio 0.25 and 0.75 - * const float ratio[] = {0.25, 0.75}; - * nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * - * // two rows with auto generated height composed of two widgets with window ratio 0.25 and 0.75 - * const float ratio[] = {0.25, 0.75}; - * nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * } - * nk_end(...); - * - * 5.) nk_layout_row_template_xxx - * The most complex and second most flexible API is a simplified flexbox version without - * line wrapping and weights for dynamic widgets. It is an immediate mode API but - * unlike `nk_layout_row_xxx` it has auto repeat behavior and needs to be called - * before calling the templated widgets. - * The row template layout has three different per widget size specifier. The first - * one is the static widget size specifier with fixed widget pixel width. They do - * not grow if the row grows and will always stay the same. The second size - * specifier is nk_layout_row_template_push_variable which defines a - * minumum widget size but it also can grow if more space is available not taken - * by other widgets. Finally there are dynamic widgets which are completly flexible - * and unlike variable widgets can even shrink to zero if not enough space - * is provided. - * - * if (nk_begin_xxx(...) { - * // two rows with height: 30 composed of three widgets - * nk_layout_row_template_begin(ctx, 30); - * nk_layout_row_template_push_dynamic(ctx); - * nk_layout_row_template_push_variable(ctx, 80); - * nk_layout_row_template_push_static(ctx, 80); - * nk_layout_row_template_end(ctx); - * - * nk_widget(...); // dynamic widget can go to zero if not enough space - * nk_widget(...); // variable widget with min 80 pixel but can grow bigger if enough space - * nk_widget(...); // static widget with fixed 80 pixel width - * - * // second row same layout - * nk_widget(...); - * nk_widget(...); - * nk_widget(...); - * } - * nk_end(...); - * - * 6.) nk_layout_space_xxx - * Finally the most flexible API directly allows you to place widgets inside the - * window. The space layout API is an immediate mode API which does not support - * row auto repeat and directly sets position and size of a widget. Position - * and size hereby can be either specified as ratio of alloated space or - * allocated space local position and pixel size. Since this API is quite - * powerfull there are a number of utility functions to get the available space - * and convert between local allocated space and screen space. - * - * if (nk_begin_xxx(...) { - * // static row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered) - * nk_layout_space_begin(ctx, NK_STATIC, 500, INT_MAX); - * nk_layout_space_push(ctx, nk_rect(0,0,150,200)); - * nk_widget(...); - * nk_layout_space_push(ctx, nk_rect(200,200,100,200)); - * nk_widget(...); - * nk_layout_space_end(ctx); - * - * // dynamic row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered) - * nk_layout_space_begin(ctx, NK_DYNAMIC, 500, INT_MAX); - * nk_layout_space_push(ctx, nk_rect(0.5,0.5,0.1,0.1)); - * nk_widget(...); - * nk_layout_space_push(ctx, nk_rect(0.7,0.6,0.1,0.1)); - * nk_widget(...); - * } - * nk_end(...); - * - * Reference - * ------------------- - * nk_layout_set_min_row_height - set the currently used minimum row height to a specified value - * nk_layout_reset_min_row_height - resets the currently used minimum row height to font height - * - * nk_layout_widget_bounds - calculates current width a static layout row can fit inside a window - * nk_layout_ratio_from_pixel - utility functions to calculate window ratio from pixel size - * - * nk_layout_row_dynamic - current layout is divided into n same sized gowing columns - * nk_layout_row_static - current layout is divided into n same fixed sized columns - * nk_layout_row_begin - starts a new row with given height and number of columns - * nk_layout_row_push - pushes another column with given size or window ratio - * nk_layout_row_end - finished previously started row - * nk_layout_row - specifies row columns in array as either window ratio or size - * - * nk_layout_row_template_begin - begins the row template declaration - * nk_layout_row_template_push_dynamic - adds a dynamic column that dynamically grows and can go to zero if not enough space - * nk_layout_row_template_push_variable - adds a variable column that dynamically grows but does not shrink below specified pixel width - * nk_layout_row_template_push_static - adds a static column that does not grow and will always have the same size - * nk_layout_row_template_end - marks the end of the row template - * - * nk_layout_space_begin - begins a new layouting space that allows to specify each widgets position and size - * nk_layout_space_push - pushes position and size of the next widget in own coordiante space either as pixel or ratio - * nk_layout_space_end - marks the end of the layouting space - * - * nk_layout_space_bounds - callable after nk_layout_space_begin and returns total space allocated - * nk_layout_space_to_screen - convertes vector from nk_layout_space coordiant space into screen space - * nk_layout_space_to_local - convertes vector from screem space into nk_layout_space coordinates - * nk_layout_space_rect_to_screen - convertes rectangle from nk_layout_space coordiant space into screen space - * nk_layout_space_rect_to_local - convertes rectangle from screem space into nk_layout_space coordinates - */ -/* nk_layout_set_min_row_height - sets the currently used minimum row height. - * IMPORTANT: The passed height needs to include both your prefered row height - * as well as padding. No internal padding is added. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` - * @height new minimum row height to be used for auto generating the row height */ + * ============================================================================= +/// ### Layouting +/// Layouting in general describes placing widget inside a window with position and size. +/// While in this particular implementation there are five different APIs for layouting +/// each with different trade offs between control and ease of use.

+/// +/// All layouting methods in this library are based around the concept of a row. +/// A row has a height the window content grows by and a number of columns and each +/// layouting method specifies how each widget is placed inside the row. +/// After a row has been allocated by calling a layouting functions and then +/// filled with widgets will advance an internal pointer over the allocated row.

+/// +/// To actually define a layout you just call the appropriate layouting function +/// and each subsequent widget call will place the widget as specified. Important +/// here is that if you define more widgets then columns defined inside the layout +/// functions it will allocate the next row without you having to make another layouting

+/// call. +/// +/// Biggest limitation with using all these APIs outside the `nk_layout_space_xxx` API +/// is that you have to define the row height for each. However the row height +/// often depends on the height of the font.

+/// +/// To fix that internally nuklear uses a minimum row height that is set to the +/// height plus padding of currently active font and overwrites the row height +/// value if zero.

+/// +/// If you manually want to change the minimum row height then +/// use nk_layout_set_min_row_height, and use nk_layout_reset_min_row_height to +/// reset it back to be derived from font height.

+/// +/// Also if you change the font in nuklear it will automatically change the minimum +/// row height for you and. This means if you change the font but still want +/// a minimum row height smaller than the font you have to repush your value.

+/// +/// For actually more advanced UI I would even recommend using the `nk_layout_space_xxx` +/// layouting method in combination with a cassowary constraint solver (there are +/// some versions on github with permissive license model) to take over all control over widget +/// layouting yourself. However for quick and dirty layouting using all the other layouting +/// functions should be fine. +/// +/// #### Usage +/// 1. __nk_layout_row_dynamic__

+/// The easiest layouting function is `nk_layout_row_dynamic`. It provides each +/// widgets with same horizontal space inside the row and dynamically grows +/// if the owning window grows in width. So the number of columns dictates +/// the size of each widget dynamically by formula: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// widget_width = (window_width - padding - spacing) * (1/colum_count) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Just like all other layouting APIs if you define more widget than columns this +/// library will allocate a new row and keep all layouting parameters previously +/// defined. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // first row with height: 30 composed of two widgets +/// nk_layout_row_dynamic(&ctx, 30, 2); +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // second row with same parameter as defined above +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // third row uses 0 for height which will use auto layouting +/// nk_layout_row_dynamic(&ctx, 0, 2); +/// nk_widget(...); +/// nk_widget(...); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// 2. __nk_layout_row_static__

+/// Another easy layouting function is `nk_layout_row_static`. It provides each +/// widget with same horizontal pixel width inside the row and does not grow +/// if the owning window scales smaller or bigger. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // first row with height: 30 composed of two widgets with width: 80 +/// nk_layout_row_static(&ctx, 30, 80, 2); +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // second row with same parameter as defined above +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // third row uses 0 for height which will use auto layouting +/// nk_layout_row_static(&ctx, 0, 80, 2); +/// nk_widget(...); +/// nk_widget(...); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// 3. __nk_layout_row_xxx__

+/// A little bit more advanced layouting API are functions `nk_layout_row_begin`, +/// `nk_layout_row_push` and `nk_layout_row_end`. They allow to directly +/// specify each column pixel or window ratio in a row. It supports either +/// directly setting per column pixel width or widget window ratio but not +/// both. Furthermore it is a immediate mode API so each value is directly +/// pushed before calling a widget. Therefore the layout is not automatically +/// repeating like the last two layouting functions. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // first row with height: 25 composed of two widgets with width 60 and 40 +/// nk_layout_row_begin(ctx, NK_STATIC, 25, 2); +/// nk_layout_row_push(ctx, 60); +/// nk_widget(...); +/// nk_layout_row_push(ctx, 40); +/// nk_widget(...); +/// nk_layout_row_end(ctx); +/// // +/// // second row with height: 25 composed of two widgets with window ratio 0.25 and 0.75 +/// nk_layout_row_begin(ctx, NK_DYNAMIC, 25, 2); +/// nk_layout_row_push(ctx, 0.25f); +/// nk_widget(...); +/// nk_layout_row_push(ctx, 0.75f); +/// nk_widget(...); +/// nk_layout_row_end(ctx); +/// // +/// // third row with auto generated height: composed of two widgets with window ratio 0.25 and 0.75 +/// nk_layout_row_begin(ctx, NK_DYNAMIC, 0, 2); +/// nk_layout_row_push(ctx, 0.25f); +/// nk_widget(...); +/// nk_layout_row_push(ctx, 0.75f); +/// nk_widget(...); +/// nk_layout_row_end(ctx); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// 4. __nk_layout_row__

+/// The array counterpart to API nk_layout_row_xxx is the single nk_layout_row +/// functions. Instead of pushing either pixel or window ratio for every widget +/// it allows to define it by array. The trade of for less control is that +/// `nk_layout_row` is automatically repeating. Otherwise the behavior is the +/// same. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // two rows with height: 30 composed of two widgets with width 60 and 40 +/// const float size[] = {60,40}; +/// nk_layout_row(ctx, NK_STATIC, 30, 2, ratio); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // two rows with height: 30 composed of two widgets with window ratio 0.25 and 0.75 +/// const float ratio[] = {0.25, 0.75}; +/// nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// // +/// // two rows with auto generated height composed of two widgets with window ratio 0.25 and 0.75 +/// const float ratio[] = {0.25, 0.75}; +/// nk_layout_row(ctx, NK_DYNAMIC, 30, 2, ratio); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// 5. __nk_layout_row_template_xxx__

+/// The most complex and second most flexible API is a simplified flexbox version without +/// line wrapping and weights for dynamic widgets. It is an immediate mode API but +/// unlike `nk_layout_row_xxx` it has auto repeat behavior and needs to be called +/// before calling the templated widgets. +/// The row template layout has three different per widget size specifier. The first +/// one is the `nk_layout_row_template_push_static` with fixed widget pixel width. +/// They do not grow if the row grows and will always stay the same. +/// The second size specifier is `nk_layout_row_template_push_variable` +/// which defines a minimum widget size but it also can grow if more space is available +/// not taken by other widgets. +/// Finally there are dynamic widgets with `nk_layout_row_template_push_dynamic` +/// which are completely flexible and unlike variable widgets can even shrink +/// to zero if not enough space is provided. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // two rows with height: 30 composed of three widgets +/// nk_layout_row_template_begin(ctx, 30); +/// nk_layout_row_template_push_dynamic(ctx); +/// nk_layout_row_template_push_variable(ctx, 80); +/// nk_layout_row_template_push_static(ctx, 80); +/// nk_layout_row_template_end(ctx); +/// // +/// // first row +/// nk_widget(...); // dynamic widget can go to zero if not enough space +/// nk_widget(...); // variable widget with min 80 pixel but can grow bigger if enough space +/// nk_widget(...); // static widget with fixed 80 pixel width +/// // +/// // second row same layout +/// nk_widget(...); +/// nk_widget(...); +/// nk_widget(...); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// 6. __nk_layout_space_xxx__

+/// Finally the most flexible API directly allows you to place widgets inside the +/// window. The space layout API is an immediate mode API which does not support +/// row auto repeat and directly sets position and size of a widget. Position +/// and size hereby can be either specified as ratio of allocated space or +/// allocated space local position and pixel size. Since this API is quite +/// powerful there are a number of utility functions to get the available space +/// and convert between local allocated space and screen space. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_begin_xxx(...) { +/// // static row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered) +/// nk_layout_space_begin(ctx, NK_STATIC, 500, INT_MAX); +/// nk_layout_space_push(ctx, nk_rect(0,0,150,200)); +/// nk_widget(...); +/// nk_layout_space_push(ctx, nk_rect(200,200,100,200)); +/// nk_widget(...); +/// nk_layout_space_end(ctx); +/// // +/// // dynamic row with height: 500 (you can set column count to INT_MAX if you don't want to be bothered) +/// nk_layout_space_begin(ctx, NK_DYNAMIC, 500, INT_MAX); +/// nk_layout_space_push(ctx, nk_rect(0.5,0.5,0.1,0.1)); +/// nk_widget(...); +/// nk_layout_space_push(ctx, nk_rect(0.7,0.6,0.1,0.1)); +/// nk_widget(...); +/// } +/// nk_end(...); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// ----------------------------------------|------------------------------------ +/// nk_layout_set_min_row_height | Set the currently used minimum row height to a specified value +/// nk_layout_reset_min_row_height | Resets the currently used minimum row height to font height +/// nk_layout_widget_bounds | Calculates current width a static layout row can fit inside a window +/// nk_layout_ratio_from_pixel | Utility functions to calculate window ratio from pixel size +// +/// nk_layout_row_dynamic | Current layout is divided into n same sized growing columns +/// nk_layout_row_static | Current layout is divided into n same fixed sized columns +/// nk_layout_row_begin | Starts a new row with given height and number of columns +/// nk_layout_row_push | Pushes another column with given size or window ratio +/// nk_layout_row_end | Finished previously started row +/// nk_layout_row | Specifies row columns in array as either window ratio or size +// +/// nk_layout_row_template_begin | Begins the row template declaration +/// nk_layout_row_template_push_dynamic | Adds a dynamic column that dynamically grows and can go to zero if not enough space +/// nk_layout_row_template_push_variable | Adds a variable column that dynamically grows but does not shrink below specified pixel width +/// nk_layout_row_template_push_static | Adds a static column that does not grow and will always have the same size +/// nk_layout_row_template_end | Marks the end of the row template +// +/// nk_layout_space_begin | Begins a new layouting space that allows to specify each widgets position and size +/// nk_layout_space_push | Pushes position and size of the next widget in own coordinate space either as pixel or ratio +/// nk_layout_space_end | Marks the end of the layouting space +// +/// nk_layout_space_bounds | Callable after nk_layout_space_begin and returns total space allocated +/// nk_layout_space_to_screen | Converts vector from nk_layout_space coordinate space into screen space +/// nk_layout_space_to_local | Converts vector from screen space into nk_layout_space coordinates +/// nk_layout_space_rect_to_screen | Converts rectangle from nk_layout_space coordinate space into screen space +/// nk_layout_space_rect_to_local | Converts rectangle from screen space into nk_layout_space coordinates +*/ +/*/// #### nk_layout_set_min_row_height +/// Sets the currently used minimum row height. +/// !!! WARNING +/// The passed height needs to include both your preferred row height +/// as well as padding. No internal padding is added. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_set_min_row_height(struct nk_context*, float height); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __height__ | New minimum row height to be used for auto generating the row height +*/ NK_API void nk_layout_set_min_row_height(struct nk_context*, float height); -/* nk_layout_reset_min_row_height - Reset the currently used minimum row height - * back to font height + text padding + additional padding (style_window.min_row_height_padding) - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` */ +/*/// #### nk_layout_reset_min_row_height +/// Reset the currently used minimum row height back to `font_height + text_padding + padding` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_reset_min_row_height(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +*/ NK_API void nk_layout_reset_min_row_height(struct nk_context*); -/* nk_layout_widget_bounds - returns the width of the next row allocate by one of the layouting functions - * Parameters: - * @ctx must point to an previously initialized `nk_context` */ +/*/// #### nk_layout_widget_bounds +/// Returns the width of the next row allocate by one of the layouting functions +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_layout_widget_bounds(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// +/// Return `nk_rect` with both position and size of the next row +*/ NK_API struct nk_rect nk_layout_widget_bounds(struct nk_context*); -/* nk_layout_ratio_from_pixel - utility functions to calculate window ratio from pixel size - * Parameters: - * @ctx must point to an previously initialized `nk_context` - * @pixel_width to convert to window ratio */ +/*/// #### nk_layout_ratio_from_pixel +/// Utility functions to calculate window ratio from pixel size +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// float nk_layout_ratio_from_pixel(struct nk_context*, float pixel_width); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __pixel__ | Pixel_width to convert to window ratio +/// +/// Returns `nk_rect` with both position and size of the next row +*/ NK_API float nk_layout_ratio_from_pixel(struct nk_context*, float pixel_width); -/* nk_layout_row_dynamic - Sets current row layout to share horizontal space - * between @cols number of widgets evenly. Once called all subsequent widget - * calls greater than @cols will allocate a new row with same layout. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` - * @row_height holds height of each widget in row or zero for auto layouting - * @cols number of widget inside row */ +/*/// #### nk_layout_row_dynamic +/// Sets current row layout to share horizontal space +/// between @cols number of widgets evenly. Once called all subsequent widget +/// calls greater than @cols will allocate a new row with same layout. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __height__ | Holds height of each widget in row or zero for auto layouting +/// __columns__ | Number of widget inside row +*/ NK_API void nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols); -/* nk_layout_row_static - Sets current row layout to fill @cols number of widgets - * in row with same @item_width horizontal size. Once called all subsequent widget - * calls greater than @cols will allocate a new row with same layout. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` - * @height holds row height to allocate from panel for widget height - * @item_width holds width of each widget in row - * @cols number of widget inside row */ +/*/// #### nk_layout_row_static +/// Sets current row layout to fill @cols number of widgets +/// in row with same @item_width horizontal size. Once called all subsequent widget +/// calls greater than @cols will allocate a new row with same layout. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __height__ | Holds height of each widget in row or zero for auto layouting +/// __width__ | Holds pixel width of each widget in the row +/// __columns__ | Number of widget inside row +*/ NK_API void nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols); -/* nk_layout_row_begin - Starts a new dynamic or fixed row with given height and columns. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` - * @fmt either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns - * @row_height holds height of each widget in row or zero for auto layouting - * @cols number of widget inside row */ +/*/// #### nk_layout_row_begin +/// Starts a new dynamic or fixed row with given height and columns. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_begin(struct nk_context *ctx, enum nk_layout_format fmt, float row_height, int cols); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __fmt__ | either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns +/// __height__ | holds height of each widget in row or zero for auto layouting +/// __columns__ | Number of widget inside row +*/ NK_API void nk_layout_row_begin(struct nk_context *ctx, enum nk_layout_format fmt, float row_height, int cols); -/* nk_layout_row_push - Specifies either window ratio or width of a single column - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_begin` - * @value either a window ratio or fixed width depending on @fmt in previous `nk_layout_row_begin` call */ +/*/// #### nk_layout_row_push +/// Specifies either window ratio or width of a single column +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_push(struct nk_context*, float value); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __value__ | either a window ratio or fixed width depending on @fmt in previous `nk_layout_row_begin` call +*/ NK_API void nk_layout_row_push(struct nk_context*, float value); -/* nk_layout_row_end - finished previously started row - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_begin` */ +/*/// #### nk_layout_row_end +/// Finished previously started row +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_end(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +*/ NK_API void nk_layout_row_end(struct nk_context*); -/* nk_layout_row - specifies row columns in array as either window ratio or size - * Parameters: - * @ctx must point to an previously initialized `nk_context` - * @fmt either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns - * @row_height holds height of each widget in row or zero for auto layouting - * @cols number of widget inside row */ +/*/// #### nk_layout_row +/// Specifies row columns in array as either window ratio or size +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row(struct nk_context*, enum nk_layout_format, float height, int cols, const float *ratio); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __fmt__ | Either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns +/// __height__ | Holds height of each widget in row or zero for auto layouting +/// __columns__ | Number of widget inside row +*/ NK_API void nk_layout_row(struct nk_context*, enum nk_layout_format, float height, int cols, const float *ratio); -/* nk_layout_row_template_begin - Begins the row template declaration - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @row_height holds height of each widget in row or zero for auto layouting */ +/*/// #### nk_layout_row_template_begin +/// Begins the row template declaration +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_template_begin(struct nk_context*, float row_height); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __height__ | Holds height of each widget in row or zero for auto layouting +*/ NK_API void nk_layout_row_template_begin(struct nk_context*, float row_height); -/* nk_layout_row_template_push_dynamic - adds a dynamic column that dynamically grows and can go to zero if not enough space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_template_begin` */ +/*/// #### nk_layout_row_template_push_dynamic +/// Adds a dynamic column that dynamically grows and can go to zero if not enough space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_template_push_dynamic(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __height__ | Holds height of each widget in row or zero for auto layouting +*/ NK_API void nk_layout_row_template_push_dynamic(struct nk_context*); -/* nk_layout_row_template_push_variable - adds a variable column that dynamically grows but does not shrink below specified pixel width - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_template_begin` - * @min_width holds the minimum pixel width the next column must be */ +/*/// #### nk_layout_row_template_push_variable +/// Adds a variable column that dynamically grows but does not shrink below specified pixel width +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_template_push_variable(struct nk_context*, float min_width); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __width__ | Holds the minimum pixel width the next column must always be +*/ NK_API void nk_layout_row_template_push_variable(struct nk_context*, float min_width); -/* nk_layout_row_template_push_static - adds a static column that does not grow and will always have the same size - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_template_begin` - * @width holds the absolulte pixel width value the next column must be */ +/*/// #### nk_layout_row_template_push_static +/// Adds a static column that does not grow and will always have the same size +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_template_push_static(struct nk_context*, float width); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __width__ | Holds the absolute pixel width value the next column must be +*/ NK_API void nk_layout_row_template_push_static(struct nk_context*, float width); -/* nk_layout_row_template_end - marks the end of the row template - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_row_template_begin` */ +/*/// #### nk_layout_row_template_end +/// Marks the end of the row template +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_row_template_end(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +*/ NK_API void nk_layout_row_template_end(struct nk_context*); -/* nk_layout_space_begin - begins a new layouting space that allows to specify each widgets position and size. - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct - * @fmt either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns - * @row_height holds height of each widget in row or zero for auto layouting - * @widget_count number of widgets inside row */ +/*/// #### nk_layout_space_begin +/// Begins a new layouting space that allows to specify each widgets position and size. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_space_begin(struct nk_context*, enum nk_layout_format, float height, int widget_count); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_begin_xxx` +/// __fmt__ | Either `NK_DYNAMIC` for window ratio or `NK_STATIC` for fixed size columns +/// __height__ | Holds height of each widget in row or zero for auto layouting +/// __columns__ | Number of widgets inside row +*/ NK_API void nk_layout_space_begin(struct nk_context*, enum nk_layout_format, float height, int widget_count); -/* nk_layout_space_push - pushes position and size of the next widget in own coordiante space either as pixel or ratio - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` - * @bounds position and size in laoyut space local coordinates */ -NK_API void nk_layout_space_push(struct nk_context*, struct nk_rect); -/* nk_layout_space_end - marks the end of the layout space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` */ +/*/// #### nk_layout_space_push +/// Pushes position and size of the next widget in own coordinate space either as pixel or ratio +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_space_push(struct nk_context *ctx, struct nk_rect bounds); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// __bounds__ | Position and size in laoyut space local coordinates +*/ +NK_API void nk_layout_space_push(struct nk_context*, struct nk_rect bounds); +/*/// #### nk_layout_space_end +/// Marks the end of the layout space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_layout_space_end(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +*/ NK_API void nk_layout_space_end(struct nk_context*); -/* nk_layout_space_bounds - returns total space allocated for `nk_layout_space` - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` */ +/*/// #### nk_layout_space_bounds +/// Utility function to calculate total space allocated for `nk_layout_space` +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_layout_space_bounds(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// +/// Returns `nk_rect` holding the total space allocated +*/ NK_API struct nk_rect nk_layout_space_bounds(struct nk_context*); -/* nk_layout_space_to_screen - convertes vector from nk_layout_space coordiant space into screen space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` - * @vec position to convert from layout space into screen coordinate space */ +/*/// #### nk_layout_space_to_screen +/// Converts vector from nk_layout_space coordinate space into screen space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_layout_space_to_screen(struct nk_context*, struct nk_vec2); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// __vec__ | Position to convert from layout space into screen coordinate space +/// +/// Returns transformed `nk_vec2` in screen space coordinates +*/ NK_API struct nk_vec2 nk_layout_space_to_screen(struct nk_context*, struct nk_vec2); -/* nk_layout_space_to_screen - convertes vector from layout space into screen space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` - * @vec position to convert from screen space into layout coordinate space */ +/*/// #### nk_layout_space_to_local +/// Converts vector from layout space into screen space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_vec2 nk_layout_space_to_local(struct nk_context*, struct nk_vec2); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// __vec__ | Position to convert from screen space into layout coordinate space +/// +/// Returns transformed `nk_vec2` in layout space coordinates +*/ NK_API struct nk_vec2 nk_layout_space_to_local(struct nk_context*, struct nk_vec2); -/* nk_layout_space_rect_to_screen - convertes rectangle from screen space into layout space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` - * @bounds rectangle to convert from layout space into screen space */ +/*/// #### nk_layout_space_rect_to_screen +/// Converts rectangle from screen space into layout space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_layout_space_rect_to_screen(struct nk_context*, struct nk_rect); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// __bounds__ | Rectangle to convert from layout space into screen space +/// +/// Returns transformed `nk_rect` in screen space coordinates +*/ NK_API struct nk_rect nk_layout_space_rect_to_screen(struct nk_context*, struct nk_rect); -/* nk_layout_space_rect_to_local - convertes rectangle from layout space into screen space - * Parameters: - * @ctx must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` - * @bounds rectangle to convert from screen space into layout space */ +/*/// #### nk_layout_space_rect_to_local +/// Converts rectangle from layout space into screen space +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_rect nk_layout_space_rect_to_local(struct nk_context*, struct nk_rect); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after call `nk_layout_space_begin` +/// __bounds__ | Rectangle to convert from layout space into screen space +/// +/// Returns transformed `nk_rect` in layout space coordinates +*/ NK_API struct nk_rect nk_layout_space_rect_to_local(struct nk_context*, struct nk_rect); /* ============================================================================= * * GROUP * - * ============================================================================= */ + * ============================================================================= +/// ### Groups +/// Groups are basically windows inside windows. They allow to subdivide space +/// in a window to layout widgets as a group. Almost all more complex widget +/// layouting requirements can be solved using groups and basic layouting +/// fuctionality. Groups just like windows are identified by an unique name and +/// internally keep track of scrollbar offsets by default. However additional +/// versions are provided to directly manage the scrollbar. +/// +/// #### Usage +/// To create a group you have to call one of the three `nk_group_begin_xxx` +/// functions to start group declarations and `nk_group_end` at the end. Furthermore it +/// is required to check the return value of `nk_group_begin_xxx` and only process +/// widgets inside the window if the value is not 0. +/// Nesting groups is possible and even encouraged since many layouting schemes +/// can only be achieved by nesting. Groups, unlike windows, need `nk_group_end` +/// to be only called if the corosponding `nk_group_begin_xxx` call does not return 0: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_group_begin_xxx(ctx, ...) { +/// // [... widgets ...] +/// nk_group_end(ctx); +/// } +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// In the grand concept groups can be called after starting a window +/// with `nk_begin_xxx` and before calling `nk_end`: +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// // Input +/// Event evt; +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// nk_input_xxx(...); +/// } +/// } +/// nk_input_end(&ctx); +/// // +/// // Window +/// if (nk_begin_xxx(...) { +/// // [...widgets...] +/// nk_layout_row_dynamic(...); +/// if (nk_group_begin_xxx(ctx, ...) { +/// //[... widgets ...] +/// nk_group_end(ctx); +/// } +/// } +/// nk_end(ctx); +/// // +/// // Draw +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case ...: +/// // [...] +/// } +// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// #### Reference +/// Function | Description +/// --------------------------------|------------------------------------------- +/// nk_group_begin | Start a new group with internal scrollbar handling +/// nk_group_begin_titled | Start a new group with separeted name and title and internal scrollbar handling +/// nk_group_end | Ends a group. Should only be called if nk_group_begin returned non-zero +/// nk_group_scrolled_offset_begin | Start a new group with manual separated handling of scrollbar x- and y-offset +/// nk_group_scrolled_begin | Start a new group with manual scrollbar handling +/// nk_group_scrolled_end | Ends a group with manual scrollbar handling. Should only be called if nk_group_begin returned non-zero +*/ +/*/// #### nk_group_begin +/// Starts a new widget group. Requires a previous layouting function to specify a pos/size. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_group_begin(struct nk_context*, const char *title, nk_flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __title__ | Must be an unique identifier for this group that is also used for the group header +/// __flags__ | Window flags defined in the nk_panel_flags section with a number of different group behaviors +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ NK_API int nk_group_begin(struct nk_context*, const char *title, nk_flags); -NK_API int nk_group_scrolled_offset_begin(struct nk_context*, nk_uint *x_offset, nk_uint *y_offset, const char*, nk_flags); -NK_API int nk_group_scrolled_begin(struct nk_context*, struct nk_scroll*, const char *title, nk_flags); -NK_API void nk_group_scrolled_end(struct nk_context*); +/*/// #### nk_group_begin_titled +/// Starts a new widget group. Requires a previous layouting function to specify a pos/size. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __id__ | Must be an unique identifier for this group +/// __title__ | Group header title +/// __flags__ | Window flags defined in the nk_panel_flags section with a number of different group behaviors +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags); +/*/// #### nk_group_end +/// Ends a widget group +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_group_end(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +*/ NK_API void nk_group_end(struct nk_context*); +/*/// #### nk_group_scrolled_offset_begin +/// starts a new widget group. requires a previous layouting function to specify +/// a size. Does not keep track of scrollbar. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_group_scrolled_offset_begin(struct nk_context*, nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __x_offset__| Scrollbar x-offset to offset all widgets inside the group horizontally. +/// __y_offset__| Scrollbar y-offset to offset all widgets inside the group vertically +/// __title__ | Window unique group title used to both identify and display in the group header +/// __flags__ | Window flags from the nk_panel_flags section +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_group_scrolled_offset_begin(struct nk_context*, nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags); +/*/// #### nk_group_scrolled_begin +/// Starts a new widget group. requires a previous +/// layouting function to specify a size. Does not keep track of scrollbar. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_group_scrolled_begin(struct nk_context*, struct nk_scroll *off, const char *title, nk_flags); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __off__ | Both x- and y- scroll offset. Allows for manual scrollbar control +/// __title__ | Window unique group title used to both identify and display in the group header +/// __flags__ | Window flags from nk_panel_flags section +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_group_scrolled_begin(struct nk_context*, struct nk_scroll *off, const char *title, nk_flags); +/*/// #### nk_group_scrolled_end +/// Ends a widget group after calling nk_group_scrolled_offset_begin or nk_group_scrolled_begin. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_group_scrolled_end(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +*/ +NK_API void nk_group_scrolled_end(struct nk_context*); +/* ============================================================================= + * + * TREE + * + * ============================================================================= +/// ### Tree +/// Trees represent two different concept. First the concept of a collapsable +/// UI section that can be either in a hidden or visibile state. They allow the UI +/// user to selectively minimize the current set of visible UI to comprehend. +/// The second concept are tree widgets for visual UI representation of trees.

+/// +/// Trees thereby can be nested for tree representations and multiple nested +/// collapsable UI sections. All trees are started by calling of the +/// `nk_tree_xxx_push_tree` functions and ended by calling one of the +/// `nk_tree_xxx_pop_xxx()` functions. Each starting functions takes a title label +/// and optionally an image to be displayed and the initial collapse state from +/// the nk_collapse_states section.

+/// +/// The runtime state of the tree is either stored outside the library by the caller +/// or inside which requires a unique ID. The unique ID can either be generated +/// automatically from `__FILE__` and `__LINE__` with function `nk_tree_push`, +/// by `__FILE__` and a user provided ID generated for example by loop index with +/// function `nk_tree_push_id` or completely provided from outside by user with +/// function `nk_tree_push_hashed`. +/// +/// #### Usage +/// To create a tree you have to call one of the seven `nk_tree_xxx_push_xxx` +/// functions to start a collapsable UI section and `nk_tree_xxx_pop` to mark the +/// end. +/// Each starting function will either return `false(0)` if the tree is collapsed +/// or hidden and therefore does not need to be filled with content or `true(1)` +/// if visible and required to be filled. +/// +/// !!! Note +/// The tree header does not require and layouting function and instead +/// calculates a auto height based on the currently used font size +/// +/// The tree ending functions only need to be called if the tree content is +/// actually visible. So make sure the tree push function is guarded by `if` +/// and the pop call is only taken if the tree is visible. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// if (nk_tree_push(ctx, NK_TREE_TAB, "Tree", NK_MINIMIZED)) { +/// nk_layout_row_dynamic(...); +/// nk_widget(...); +/// nk_tree_pop(ctx); +/// } +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// ----------------------------|------------------------------------------- +/// nk_tree_push | Start a collapsable UI section with internal state management +/// nk_tree_push_id | Start a collapsable UI section with internal state management callable in a look +/// nk_tree_push_hashed | Start a collapsable UI section with internal state management with full control over internal unique ID use to store state +/// nk_tree_image_push | Start a collapsable UI section with image and label header +/// nk_tree_image_push_id | Start a collapsable UI section with image and label header and internal state management callable in a look +/// nk_tree_image_push_hashed | Start a collapsable UI section with image and label header and internal state management with full control over internal unique ID use to store state +/// nk_tree_pop | Ends a collapsable UI section +// +/// nk_tree_state_push | Start a collapsable UI section with external state management +/// nk_tree_state_image_push | Start a collapsable UI section with image and label header and external state management +/// nk_tree_state_pop | Ends a collapsabale UI section +/// +/// #### nk_tree_type +/// Flag | Description +/// ----------------|---------------------------------------- +/// NK_TREE_NODE | Highlighted tree header to mark a collapsable UI section +/// NK_TREE_TAB | Non-highighted tree header closer to tree representations +*/ +/*/// #### nk_tree_push +/// Starts a collapsable UI section with internal state management +/// !!! WARNING +/// To keep track of the runtime tree collapsable state this function uses +/// defines `__FILE__` and `__LINE__` to generate a unique ID. If you want +/// to call this function in a loop please use `nk_tree_push_id` or +/// `nk_tree_push_hashed` instead. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_tree_push(ctx, type, title, state) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +#define nk_tree_push(ctx, type, title, state) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__) +/*/// #### nk_tree_push_id +/// Starts a collapsable UI section with internal state management callable in a look +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_tree_push_id(ctx, type, title, state, id) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// __id__ | Loop counter index if this function is called in a loop +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +#define nk_tree_push_id(ctx, type, title, state, id) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id) +/*/// #### nk_tree_push_hashed +/// Start a collapsable UI section with internal state management with full +/// control over internal unique ID used to store state +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_tree_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// __hash__ | Memory block or string to generate the ID from +/// __len__ | Size of passed memory block or string in __hash__ +/// __seed__ | Seeding value if this function is called in a loop or default to `0` +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_tree_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); +/*/// #### nk_tree_image_push +/// Start a collapsable UI section with image and label header +/// !!! WARNING +/// To keep track of the runtime tree collapsable state this function uses +/// defines `__FILE__` and `__LINE__` to generate a unique ID. If you want +/// to call this function in a loop please use `nk_tree_image_push_id` or +/// `nk_tree_image_push_hashed` instead. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_tree_image_push(ctx, type, img, title, state) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __img__ | Image to display inside the header on the left of the label +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +#define nk_tree_image_push(ctx, type, img, title, state) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__) +/*/// #### nk_tree_image_push_id +/// Start a collapsable UI section with image and label header and internal state +/// management callable in a look +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// #define nk_tree_image_push_id(ctx, type, img, title, state, id) +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __img__ | Image to display inside the header on the left of the label +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// __id__ | Loop counter index if this function is called in a loop +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +#define nk_tree_image_push_id(ctx, type, img, title, state, id) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id) +/*/// #### nk_tree_image_push_hashed +/// Start a collapsable UI section with internal state management with full +/// control over internal unique ID used to store state +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_tree_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __img__ | Image to display inside the header on the left of the label +/// __title__ | Label printed in the tree header +/// __state__ | Initial tree state value out of nk_collapse_states +/// __hash__ | Memory block or string to generate the ID from +/// __len__ | Size of passed memory block or string in __hash__ +/// __seed__ | Seeding value if this function is called in a loop or default to `0` +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_tree_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); +/*/// #### nk_tree_pop +/// Ends a collapsabale UI section +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_tree_pop(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling `nk_tree_xxx_push_xxx` +*/ +NK_API void nk_tree_pop(struct nk_context*); +/*/// #### nk_tree_state_push +/// Start a collapsable UI section with external state management +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_tree_state_push(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states *state); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling `nk_tree_xxx_push_xxx` +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __title__ | Label printed in the tree header +/// __state__ | Persistent state to update +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_tree_state_push(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states *state); +/*/// #### nk_tree_state_image_push +/// Start a collapsable UI section with image and label header and external state management +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_tree_state_image_push(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states *state); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling `nk_tree_xxx_push_xxx` +/// __img__ | Image to display inside the header on the left of the label +/// __type__ | Value from the nk_tree_type section to visually mark a tree node header as either a collapseable UI section or tree node +/// __title__ | Label printed in the tree header +/// __state__ | Persistent state to update +/// +/// Returns `true(1)` if visible and fillable with widgets or `false(0)` otherwise +*/ +NK_API int nk_tree_state_image_push(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states *state); +/*/// #### nk_tree_state_pop +/// Ends a collapsabale UI section +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_tree_state_pop(struct nk_context*); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// ------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling `nk_tree_xxx_push_xxx` +*/ +NK_API void nk_tree_state_pop(struct nk_context*); + +#define nk_tree_element_push(ctx, type, title, state, sel) nk_tree_element_push_hashed(ctx, type, title, state, sel, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__) +#define nk_tree_element_push_id(ctx, type, title, state, sel, id) nk_tree_element_push_hashed(ctx, type, title, state, sel, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id) +NK_API int nk_tree_element_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, int *selected, const char *hash, int len, int seed); +NK_API int nk_tree_element_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, int *selected, const char *hash, int len,int seed); +NK_API void nk_tree_element_pop(struct nk_context*); + /* ============================================================================= * * LIST VIEW @@ -1808,21 +2961,6 @@ struct nk_list_view { }; NK_API int nk_list_view_begin(struct nk_context*, struct nk_list_view *out, const char *id, nk_flags, int row_height, int row_count); NK_API void nk_list_view_end(struct nk_list_view*); -/* ============================================================================= - * - * TREE - * - * ============================================================================= */ -#define nk_tree_push(ctx, type, title, state) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__) -#define nk_tree_push_id(ctx, type, title, state, id) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id) -NK_API int nk_tree_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); -#define nk_tree_image_push(ctx, type, img, title, state) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__) -#define nk_tree_image_push_id(ctx, type, img, title, state, id) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id) -NK_API int nk_tree_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed); -NK_API void nk_tree_pop(struct nk_context*); -NK_API int nk_tree_state_push(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states *state); -NK_API int nk_tree_state_image_push(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states *state); -NK_API void nk_tree_state_pop(struct nk_context*); /* ============================================================================= * * WIDGET @@ -1881,11 +3019,16 @@ NK_API void nk_label_colored(struct nk_context*, const char*, nk_flags align, st NK_API void nk_label_wrap(struct nk_context*, const char*); NK_API void nk_label_colored_wrap(struct nk_context*, const char*, struct nk_color); NK_API void nk_image(struct nk_context*, struct nk_image); +NK_API void nk_image_color(struct nk_context*, struct nk_image, struct nk_color); #ifdef NK_INCLUDE_STANDARD_VARARGS -NK_API void nk_labelf(struct nk_context*, nk_flags, const char*, ...); -NK_API void nk_labelf_colored(struct nk_context*, nk_flags align, struct nk_color, const char*,...); -NK_API void nk_labelf_wrap(struct nk_context*, const char*,...); -NK_API void nk_labelf_colored_wrap(struct nk_context*, struct nk_color, const char*,...); +NK_API void nk_labelf(struct nk_context*, nk_flags, NK_PRINTF_FORMAT_STRING const char*, ...) NK_PRINTF_VARARG_FUNC(3); +NK_API void nk_labelf_colored(struct nk_context*, nk_flags, struct nk_color, NK_PRINTF_FORMAT_STRING const char*,...) NK_PRINTF_VARARG_FUNC(4); +NK_API void nk_labelf_wrap(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*,...) NK_PRINTF_VARARG_FUNC(2); +NK_API void nk_labelf_colored_wrap(struct nk_context*, struct nk_color, NK_PRINTF_FORMAT_STRING const char*,...) NK_PRINTF_VARARG_FUNC(3); +NK_API void nk_labelfv(struct nk_context*, nk_flags, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(3); +NK_API void nk_labelfv_colored(struct nk_context*, nk_flags, struct nk_color, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(4); +NK_API void nk_labelfv_wrap(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(2); +NK_API void nk_labelfv_colored_wrap(struct nk_context*, struct nk_color, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(3); NK_API void nk_value_bool(struct nk_context*, const char *prefix, int); NK_API void nk_value_int(struct nk_context*, const char *prefix, int); NK_API void nk_value_uint(struct nk_context*, const char *prefix, unsigned int); @@ -1950,10 +3093,16 @@ NK_API int nk_selectable_label(struct nk_context*, const char*, nk_flags align, NK_API int nk_selectable_text(struct nk_context*, const char*, int, nk_flags align, int *value); NK_API int nk_selectable_image_label(struct nk_context*,struct nk_image, const char*, nk_flags align, int *value); NK_API int nk_selectable_image_text(struct nk_context*,struct nk_image, const char*, int, nk_flags align, int *value); +NK_API int nk_selectable_symbol_label(struct nk_context*,enum nk_symbol_type, const char*, nk_flags align, int *value); +NK_API int nk_selectable_symbol_text(struct nk_context*,enum nk_symbol_type, const char*, int, nk_flags align, int *value); + NK_API int nk_select_label(struct nk_context*, const char*, nk_flags align, int value); NK_API int nk_select_text(struct nk_context*, const char*, int, nk_flags align, int value); NK_API int nk_select_image_label(struct nk_context*, struct nk_image,const char*, nk_flags align, int value); NK_API int nk_select_image_text(struct nk_context*, struct nk_image,const char*, int, nk_flags align, int value); +NK_API int nk_select_symbol_label(struct nk_context*,enum nk_symbol_type, const char*, nk_flags align, int value); +NK_API int nk_select_symbol_text(struct nk_context*,enum nk_symbol_type, const char*, int, nk_flags align, int value); + /* ============================================================================= * * SLIDER @@ -1976,18 +3125,215 @@ NK_API nk_size nk_prog(struct nk_context*, nk_size cur, nk_size max, int modifya * COLOR PICKER * * ============================================================================= */ -NK_API struct nk_color nk_color_picker(struct nk_context*, struct nk_color, enum nk_color_format); -NK_API int nk_color_pick(struct nk_context*, struct nk_color*, enum nk_color_format); +NK_API struct nk_colorf nk_color_picker(struct nk_context*, struct nk_colorf, enum nk_color_format); +NK_API int nk_color_pick(struct nk_context*, struct nk_colorf*, enum nk_color_format); /* ============================================================================= * * PROPERTIES * - * ============================================================================= */ + * ============================================================================= +/// ### Properties +/// Properties are the main value modification widgets in Nuklear. Changing a value +/// can be achieved by dragging, adding/removing incremental steps on button click +/// or by directly typing a number. +/// +/// #### Usage +/// Each property requires a unique name for identifaction that is also used for +/// displaying a label. If you want to use the same name multiple times make sure +/// add a '#' before your name. The '#' will not be shown but will generate a +/// unique ID. Each propery also takes in a minimum and maximum value. If you want +/// to make use of the complete number range of a type just use the provided +/// type limits from `limits.h`. For example `INT_MIN` and `INT_MAX` for +/// `nk_property_int` and `nk_propertyi`. In additional each property takes in +/// a increment value that will be added or subtracted if either the increment +/// decrement button is clicked. Finally there is a value for increment per pixel +/// dragged that is added or subtracted from the value. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int value = 0; +/// struct nk_context ctx; +/// nk_init_xxx(&ctx, ...); +/// while (1) { +/// // Input +/// Event evt; +/// nk_input_begin(&ctx); +/// while (GetEvent(&evt)) { +/// if (evt.type == MOUSE_MOVE) +/// nk_input_motion(&ctx, evt.motion.x, evt.motion.y); +/// else if (evt.type == [...]) { +/// nk_input_xxx(...); +/// } +/// } +/// nk_input_end(&ctx); +/// // +/// // Window +/// if (nk_begin_xxx(...) { +/// // Property +/// nk_layout_row_dynamic(...); +/// nk_property_int(ctx, "ID", INT_MIN, &value, INT_MAX, 1, 1); +/// } +/// nk_end(ctx); +/// // +/// // Draw +/// const struct nk_command *cmd = 0; +/// nk_foreach(cmd, &ctx) { +/// switch (cmd->type) { +/// case NK_COMMAND_LINE: +/// your_draw_line_function(...) +/// break; +/// case NK_COMMAND_RECT +/// your_draw_rect_function(...) +/// break; +/// case ...: +/// // [...] +/// } +// nk_clear(&ctx); +/// } +/// nk_free(&ctx); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// #### Reference +/// Function | Description +/// --------------------|------------------------------------------- +/// nk_property_int | Integer property directly modifing a passed in value +/// nk_property_float | Float property directly modifing a passed in value +/// nk_property_double | Double property directly modifing a passed in value +/// nk_propertyi | Integer property returning the modified int value +/// nk_propertyf | Float property returning the modified float value +/// nk_propertyd | Double property returning the modified double value +/// +*/ +/*/// #### nk_property_int +/// Integer property directly modifing a passed in value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_property_int(struct nk_context *ctx, const char *name, int min, int *val, int max, int step, float inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Integer pointer to be modified +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +*/ NK_API void nk_property_int(struct nk_context*, const char *name, int min, int *val, int max, int step, float inc_per_pixel); +/*/// #### nk_property_float +/// Float property directly modifing a passed in value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_property_float(struct nk_context *ctx, const char *name, float min, float *val, float max, float step, float inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Float pointer to be modified +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +*/ NK_API void nk_property_float(struct nk_context*, const char *name, float min, float *val, float max, float step, float inc_per_pixel); +/*/// #### nk_property_double +/// Double property directly modifing a passed in value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// void nk_property_double(struct nk_context *ctx, const char *name, double min, double *val, double max, double step, double inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Double pointer to be modified +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +*/ NK_API void nk_property_double(struct nk_context*, const char *name, double min, double *val, double max, double step, float inc_per_pixel); +/*/// #### nk_propertyi +/// Integer property modifing a passed in value and returning the new value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// int nk_propertyi(struct nk_context *ctx, const char *name, int min, int val, int max, int step, float inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Current integer value to be modified and returned +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +/// +/// Returns the new modified integer value +*/ NK_API int nk_propertyi(struct nk_context*, const char *name, int min, int val, int max, int step, float inc_per_pixel); +/*/// #### nk_propertyf +/// Float property modifing a passed in value and returning the new value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// float nk_propertyf(struct nk_context *ctx, const char *name, float min, float val, float max, float step, float inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Current float value to be modified and returned +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +/// +/// Returns the new modified float value +*/ NK_API float nk_propertyf(struct nk_context*, const char *name, float min, float val, float max, float step, float inc_per_pixel); +/*/// #### nk_propertyd +/// Float property modifing a passed in value and returning the new value +/// !!! WARNING +/// To generate a unique property ID using the same label make sure to insert +/// a `#` at the beginning. It will not be shown but guarantees correct behavior. +/// +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~c +/// float nk_propertyd(struct nk_context *ctx, const char *name, double min, double val, double max, double step, double inc_per_pixel); +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/// +/// Parameter | Description +/// --------------------|----------------------------------------------------------- +/// __ctx__ | Must point to an previously initialized `nk_context` struct after calling a layouting function +/// __name__ | String used both as a label as well as a unique identifier +/// __min__ | Minimum value not allowed to be underflown +/// __val__ | Current double value to be modified and returned +/// __max__ | Maximum value not allowed to be overflown +/// __step__ | Increment added and subtracted on increment and decrement button +/// __inc_per_pixel__ | Value per pixel added or subtracted on dragging +/// +/// Returns the new modified double value +*/ NK_API double nk_propertyd(struct nk_context*, const char *name, double min, double val, double max, double step, float inc_per_pixel); /* ============================================================================= * @@ -2104,6 +3450,10 @@ NK_API void nk_contextual_end(struct nk_context*); * * ============================================================================= */ NK_API void nk_tooltip(struct nk_context*, const char*); +#ifdef NK_INCLUDE_STANDARD_VARARGS +NK_API void nk_tooltipf(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*, ...) NK_PRINTF_VARARG_FUNC(2); +NK_API void nk_tooltipfv(struct nk_context*, NK_PRINTF_FORMAT_STRING const char*, va_list) NK_PRINTF_VALIST_FUNC(2); +#endif NK_API int nk_tooltip_begin(struct nk_context*, float width); NK_API void nk_tooltip_end(struct nk_context*); /* ============================================================================= @@ -2208,6 +3558,7 @@ NK_API struct nk_color nk_rgb_iv(const int *rgb); NK_API struct nk_color nk_rgb_bv(const nk_byte* rgb); NK_API struct nk_color nk_rgb_f(float r, float g, float b); NK_API struct nk_color nk_rgb_fv(const float *rgb); +NK_API struct nk_color nk_rgb_cf(struct nk_colorf c); NK_API struct nk_color nk_rgb_hex(const char *rgb); NK_API struct nk_color nk_rgba(int r, int g, int b, int a); @@ -2216,8 +3567,14 @@ NK_API struct nk_color nk_rgba_iv(const int *rgba); NK_API struct nk_color nk_rgba_bv(const nk_byte *rgba); NK_API struct nk_color nk_rgba_f(float r, float g, float b, float a); NK_API struct nk_color nk_rgba_fv(const float *rgba); +NK_API struct nk_color nk_rgba_cf(struct nk_colorf c); NK_API struct nk_color nk_rgba_hex(const char *rgb); +NK_API struct nk_colorf nk_hsva_colorf(float h, float s, float v, float a); +NK_API struct nk_colorf nk_hsva_colorfv(float *c); +NK_API void nk_colorf_hsva_f(float *out_h, float *out_s, float *out_v, float *out_a, struct nk_colorf in); +NK_API void nk_colorf_hsva_fv(float *hsva, struct nk_colorf in); + NK_API struct nk_color nk_hsv(int h, int s, int v); NK_API struct nk_color nk_hsv_iv(const int *hsv); NK_API struct nk_color nk_hsv_bv(const nk_byte *hsv); @@ -2233,6 +3590,7 @@ NK_API struct nk_color nk_hsva_fv(const float *hsva); /* color (conversion nuklear --> user) */ NK_API void nk_color_f(float *r, float *g, float *b, float *a, struct nk_color); NK_API void nk_color_fv(float *rgba_out, struct nk_color); +NK_API struct nk_colorf nk_color_cf(struct nk_color); NK_API void nk_color_d(double *r, double *g, double *b, double *a, struct nk_color); NK_API void nk_color_dv(double *rgba_out, struct nk_color); @@ -2321,7 +3679,7 @@ NK_API const char* nk_utf_at(const char *buffer, int length, int index, nk_rune different ways to use the font atlas. The first two will use your font handling scheme and only requires essential data to run nuklear. The next slightly more advanced features is font handling with vertex buffer output. - Finally the most complex API wise is using nuklears font baking API. + Finally the most complex API wise is using nuklear's font baking API. 1.) Using your own implementation without vertex buffer output -------------------------------------------------------------- @@ -2394,7 +3752,7 @@ NK_API const char* nk_utf_at(const char *buffer, int length, int index, nk_rune ------------------------------------ The final approach if you do not have a font handling functionality or don't want to use it in this library is by using the optional font baker. - The font baker API's can be used to create a font plus font atlas texture + The font baker APIs can be used to create a font plus font atlas texture and can be used with or without the vertex buffer output. It still uses the `nk_user_font` struct and the two different approaches @@ -2409,7 +3767,7 @@ NK_API const char* nk_utf_at(const char *buffer, int length, int index, nk_rune memory is temporary and therefore can be freed directly after the baking process is over or permanent you can call `nk_font_atlas_init`. - After successfull intializing the font baker you can add Truetype(.ttf) fonts from + After successfully initializing the font baker you can add Truetype(.ttf) fonts from different sources like memory or from file by calling one of the `nk_font_atlas_add_xxx`. functions. Adding font will permanently store each font, font config and ttf memory block(!) inside the font atlas and allows to reuse the font atlas. If you don't want to reuse @@ -2417,7 +3775,7 @@ NK_API const char* nk_utf_at(const char *buffer, int length, int index, nk_rune `nk_font_atlas_cleanup` after the baking process is over (after calling nk_font_atlas_end). As soon as you added all fonts you wanted you can now start the baking process - for every selected glyphes to image by calling `nk_font_atlas_bake`. + for every selected glyph to image by calling `nk_font_atlas_bake`. The baking process returns image memory, width and height which can be used to either create your own image object or upload it to any graphics library. No matter which case you finally have to call `nk_font_atlas_end` which @@ -2451,7 +3809,7 @@ NK_API const char* nk_utf_at(const char *buffer, int length, int index, nk_rune I would suggest reading some of my examples `example/` to get a grip on how to use the font atlas. There are a number of details I left out. For example how to merge fonts, configure a font with `nk_font_config` to use other languages, - use another texture coodinate format and a lot more: + use another texture coordinate format and a lot more: struct nk_font_config cfg = nk_font_config(font_pixel_height); cfg.merge_mode = nk_false or nk_true; @@ -2466,7 +3824,7 @@ typedef void(*nk_query_font_glyph_f)(nk_handle handle, float font_height, struct nk_user_font_glyph *glyph, nk_rune codepoint, nk_rune next_codepoint); -#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT +#if defined(NK_INCLUDE_VERTEX_BUFFER_OUTPUT) || defined(NK_INCLUDE_SOFTWARE_FONT) struct nk_user_font_glyph { struct nk_vec2 uv[2]; /* texture coordinates */ @@ -2500,6 +3858,7 @@ enum nk_font_coord_type { NK_COORD_PIXEL /* texture coordinates inside font glyphs are in absolute pixel */ }; +struct nk_font; struct nk_baked_font { float height; /* height of the font */ @@ -2545,6 +3904,8 @@ struct nk_font_config { /* font to setup in the baking process: NOTE: not needed for font atlas */ nk_rune fallback_glyph; /* fallback glyph to use if a given rune is not found */ + struct nk_font_config *n; + struct nk_font_config *p; }; struct nk_font_glyph { @@ -2786,7 +4147,7 @@ NK_API int nk_str_len_char(struct nk_str*); * First of is the most basic way of just providing a simple char array with * string length. This method is probably the easiest way of handling simple * user text input. Main upside is complete control over memory while the biggest - * downside in comparsion with the other two approaches is missing undo/redo. + * downside in comparison with the other two approaches is missing undo/redo. * * For UIs that require undo/redo the second way was created. It is based on * a fixed size nk_text_edit struct, which has an internal undo/redo stack. @@ -2933,8 +4294,8 @@ NK_API void nk_textedit_redo(struct nk_text_edit*); but also returns the state of the widget space. If your widget is not seen and does not have to be updated it is '0' and you can just return. If it only has to be drawn the state will be `NK_WIDGET_ROM` otherwise you can do both - update and draw your widget. The reason for seperating is to only draw and - update what is actually neccessary which is crucial for performance. + update and draw your widget. The reason for separating is to only draw and + update what is actually necessary which is crucial for performance. */ enum nk_command_type { NK_COMMAND_NOP, @@ -3317,14 +4678,12 @@ struct nk_draw_list { /* draw list */ NK_API void nk_draw_list_init(struct nk_draw_list*); NK_API void nk_draw_list_setup(struct nk_draw_list*, const struct nk_convert_config*, struct nk_buffer *cmds, struct nk_buffer *vertices, struct nk_buffer *elements, enum nk_anti_aliasing line_aa,enum nk_anti_aliasing shape_aa); -NK_API void nk_draw_list_clear(struct nk_draw_list*); /* drawing */ #define nk_draw_list_foreach(cmd, can, b) for((cmd)=nk__draw_list_begin(can, b); (cmd)!=0; (cmd)=nk__draw_list_next(cmd, b, can)) NK_API const struct nk_draw_command* nk__draw_list_begin(const struct nk_draw_list*, const struct nk_buffer*); NK_API const struct nk_draw_command* nk__draw_list_next(const struct nk_draw_command*, const struct nk_buffer*, const struct nk_draw_list*); NK_API const struct nk_draw_command* nk__draw_list_end(const struct nk_draw_list*, const struct nk_buffer*); -NK_API void nk_draw_list_clear(struct nk_draw_list *list); /* path */ NK_API void nk_draw_list_path_clear(struct nk_draw_list*); @@ -3813,6 +5172,7 @@ NK_API struct nk_style_item nk_style_item_hide(void); #endif enum nk_panel_type { + NK_PANEL_NONE = 0, NK_PANEL_WINDOW = NK_FLAG(0), NK_PANEL_GROUP = NK_FLAG(1), NK_PANEL_POPUP = NK_FLAG(2), @@ -4241,16 +5601,14 @@ template struct nk_alignof{struct Big {T x; char c;}; enum { #define NK_ALIGNOF(t) ((char*)(&((struct {char c; t _h;}*)0)->_h) - (char*)0) #endif -#endif /* NK_H_ */ -/* - * ============================================================== - * - * IMPLEMENTATION - * - * =============================================================== - */ +#endif /* NK_NUKLEAR_H_ */ + + #ifdef NK_IMPLEMENTATION +#ifndef NK_INTERNAL_H +#define NK_INTERNAL_H + #ifndef NK_POOL_DEFAULT_CAPACITY #define NK_POOL_DEFAULT_CAPACITY 16 #endif @@ -4270,9 +5628,6 @@ template struct nk_alignof{struct Big {T x; char c;}; enum { #ifdef NK_INCLUDE_STANDARD_IO #include /* fopen, fclose,... */ #endif -#ifdef NK_INCLUDE_STANDARD_VARARGS -#include /* valist, va_start, va_end, ... */ -#endif #ifndef NK_ASSERT #include #define NK_ASSERT(expr) assert(expr) @@ -4354,13 +5709,244 @@ NK_GLOBAL const struct nk_color nk_white = {255,255,255,255}; NK_GLOBAL const struct nk_color nk_black = {0,0,0,255}; NK_GLOBAL const struct nk_color nk_yellow = {255,255,0,255}; -/* - * ============================================================== +/* widget */ +#define nk_widget_state_reset(s)\ + if ((*(s)) & NK_WIDGET_STATE_MODIFIED)\ + (*(s)) = NK_WIDGET_STATE_INACTIVE|NK_WIDGET_STATE_MODIFIED;\ + else (*(s)) = NK_WIDGET_STATE_INACTIVE; + +/* math */ +NK_LIB float nk_inv_sqrt(float n); +NK_LIB float nk_sqrt(float x); +NK_LIB float nk_sin(float x); +NK_LIB float nk_cos(float x); +NK_LIB nk_uint nk_round_up_pow2(nk_uint v); +NK_LIB struct nk_rect nk_shrink_rect(struct nk_rect r, float amount); +NK_LIB struct nk_rect nk_pad_rect(struct nk_rect r, struct nk_vec2 pad); +NK_LIB void nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0, float x1, float y1); +NK_LIB double nk_pow(double x, int n); +NK_LIB int nk_ifloord(double x); +NK_LIB int nk_ifloorf(float x); +NK_LIB int nk_iceilf(float x); +NK_LIB int nk_log10(double n); + +/* util */ +enum {NK_DO_NOT_STOP_ON_NEW_LINE, NK_STOP_ON_NEW_LINE}; +NK_LIB int nk_is_lower(int c); +NK_LIB int nk_is_upper(int c); +NK_LIB int nk_to_upper(int c); +NK_LIB int nk_to_lower(int c); +NK_LIB void* nk_memcopy(void *dst, const void *src, nk_size n); +NK_LIB void nk_memset(void *ptr, int c0, nk_size size); +NK_LIB void nk_zero(void *ptr, nk_size size); +NK_LIB char *nk_itoa(char *s, long n); +NK_LIB int nk_string_float_limit(char *string, int prec); +NK_LIB char *nk_dtoa(char *s, double n); +NK_LIB int nk_text_clamp(const struct nk_user_font *font, const char *text, int text_len, float space, int *glyphs, float *text_width, nk_rune *sep_list, int sep_count); +NK_LIB struct nk_vec2 nk_text_calculate_text_bounds(const struct nk_user_font *font, const char *begin, int byte_len, float row_height, const char **remaining, struct nk_vec2 *out_offset, int *glyphs, int op); +#ifdef NK_INCLUDE_STANDARD_VARARGS +NK_LIB int nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args); +#endif +#ifdef NK_INCLUDE_STANDARD_IO +NK_LIB char *nk_file_load(const char* path, nk_size* siz, struct nk_allocator *alloc); +#endif + +/* buffer */ +#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR +NK_LIB void* nk_malloc(nk_handle unused, void *old,nk_size size); +NK_LIB void nk_mfree(nk_handle unused, void *ptr); +#endif +NK_LIB void* nk_buffer_align(void *unaligned, nk_size align, nk_size *alignment, enum nk_buffer_allocation_type type); +NK_LIB void* nk_buffer_alloc(struct nk_buffer *b, enum nk_buffer_allocation_type type, nk_size size, nk_size align); +NK_LIB void* nk_buffer_realloc(struct nk_buffer *b, nk_size capacity, nk_size *size); + +/* draw */ +NK_LIB void nk_command_buffer_init(struct nk_command_buffer *cb, struct nk_buffer *b, enum nk_command_clipping clip); +NK_LIB void nk_command_buffer_reset(struct nk_command_buffer *b); +NK_LIB void* nk_command_buffer_push(struct nk_command_buffer* b, enum nk_command_type t, nk_size size); +NK_LIB void nk_draw_symbol(struct nk_command_buffer *out, enum nk_symbol_type type, struct nk_rect content, struct nk_color background, struct nk_color foreground, float border_width, const struct nk_user_font *font); + +/* buffering */ +NK_LIB void nk_start_buffer(struct nk_context *ctx, struct nk_command_buffer *b); +NK_LIB void nk_start(struct nk_context *ctx, struct nk_window *win); +NK_LIB void nk_start_popup(struct nk_context *ctx, struct nk_window *win); +NK_LIB void nk_finish_popup(struct nk_context *ctx, struct nk_window*); +NK_LIB void nk_finish_buffer(struct nk_context *ctx, struct nk_command_buffer *b); +NK_LIB void nk_finish(struct nk_context *ctx, struct nk_window *w); +NK_LIB void nk_build(struct nk_context *ctx); + +/* text editor */ +NK_LIB void nk_textedit_clear_state(struct nk_text_edit *state, enum nk_text_edit_type type, nk_plugin_filter filter); +NK_LIB void nk_textedit_click(struct nk_text_edit *state, float x, float y, const struct nk_user_font *font, float row_height); +NK_LIB void nk_textedit_drag(struct nk_text_edit *state, float x, float y, const struct nk_user_font *font, float row_height); +NK_LIB void nk_textedit_key(struct nk_text_edit *state, enum nk_keys key, int shift_mod, const struct nk_user_font *font, float row_height); + +/* window */ +enum nk_window_insert_location { + NK_INSERT_BACK, /* inserts window into the back of list (front of screen) */ + NK_INSERT_FRONT /* inserts window into the front of list (back of screen) */ +}; +NK_LIB void *nk_create_window(struct nk_context *ctx); +NK_LIB void nk_remove_window(struct nk_context*, struct nk_window*); +NK_LIB void nk_free_window(struct nk_context *ctx, struct nk_window *win); +NK_LIB struct nk_window *nk_find_window(struct nk_context *ctx, nk_hash hash, const char *name); +NK_LIB void nk_insert_window(struct nk_context *ctx, struct nk_window *win, enum nk_window_insert_location loc); + +/* pool */ +NK_LIB void nk_pool_init(struct nk_pool *pool, struct nk_allocator *alloc, unsigned int capacity); +NK_LIB void nk_pool_free(struct nk_pool *pool); +NK_LIB void nk_pool_init_fixed(struct nk_pool *pool, void *memory, nk_size size); +NK_LIB struct nk_page_element *nk_pool_alloc(struct nk_pool *pool); + +/* page-element */ +NK_LIB struct nk_page_element* nk_create_page_element(struct nk_context *ctx); +NK_LIB void nk_link_page_element_into_freelist(struct nk_context *ctx, struct nk_page_element *elem); +NK_LIB void nk_free_page_element(struct nk_context *ctx, struct nk_page_element *elem); + +/* table */ +NK_LIB struct nk_table* nk_create_table(struct nk_context *ctx); +NK_LIB void nk_remove_table(struct nk_window *win, struct nk_table *tbl); +NK_LIB void nk_free_table(struct nk_context *ctx, struct nk_table *tbl); +NK_LIB void nk_push_table(struct nk_window *win, struct nk_table *tbl); +NK_LIB nk_uint *nk_add_value(struct nk_context *ctx, struct nk_window *win, nk_hash name, nk_uint value); +NK_LIB nk_uint *nk_find_value(struct nk_window *win, nk_hash name); + +/* panel */ +NK_LIB void *nk_create_panel(struct nk_context *ctx); +NK_LIB void nk_free_panel(struct nk_context*, struct nk_panel *pan); +NK_LIB int nk_panel_has_header(nk_flags flags, const char *title); +NK_LIB struct nk_vec2 nk_panel_get_padding(const struct nk_style *style, enum nk_panel_type type); +NK_LIB float nk_panel_get_border(const struct nk_style *style, nk_flags flags, enum nk_panel_type type); +NK_LIB struct nk_color nk_panel_get_border_color(const struct nk_style *style, enum nk_panel_type type); +NK_LIB int nk_panel_is_sub(enum nk_panel_type type); +NK_LIB int nk_panel_is_nonblock(enum nk_panel_type type); +NK_LIB int nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type); +NK_LIB void nk_panel_end(struct nk_context *ctx); + +/* layout */ +NK_LIB float nk_layout_row_calculate_usable_space(const struct nk_style *style, enum nk_panel_type type, float total_space, int columns); +NK_LIB void nk_panel_layout(const struct nk_context *ctx, struct nk_window *win, float height, int cols); +NK_LIB void nk_row_layout(struct nk_context *ctx, enum nk_layout_format fmt, float height, int cols, int width); +NK_LIB void nk_panel_alloc_row(const struct nk_context *ctx, struct nk_window *win); +NK_LIB void nk_layout_widget_space(struct nk_rect *bounds, const struct nk_context *ctx, struct nk_window *win, int modify); +NK_LIB void nk_panel_alloc_space(struct nk_rect *bounds, const struct nk_context *ctx); +NK_LIB void nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx); + +/* popup */ +NK_LIB int nk_nonblock_begin(struct nk_context *ctx, nk_flags flags, struct nk_rect body, struct nk_rect header, enum nk_panel_type panel_type); + +/* text */ +struct nk_text { + struct nk_vec2 padding; + struct nk_color background; + struct nk_color text; +}; +NK_LIB void nk_widget_text(struct nk_command_buffer *o, struct nk_rect b, const char *string, int len, const struct nk_text *t, nk_flags a, const struct nk_user_font *f); +NK_LIB void nk_widget_text_wrap(struct nk_command_buffer *o, struct nk_rect b, const char *string, int len, const struct nk_text *t, const struct nk_user_font *f); + +/* button */ +NK_LIB int nk_button_behavior(nk_flags *state, struct nk_rect r, const struct nk_input *i, enum nk_button_behavior behavior); +NK_LIB const struct nk_style_item* nk_draw_button(struct nk_command_buffer *out, const struct nk_rect *bounds, nk_flags state, const struct nk_style_button *style); +NK_LIB int nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, const struct nk_style_button *style, const struct nk_input *in, enum nk_button_behavior behavior, struct nk_rect *content); +NK_LIB void nk_draw_button_text(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, const char *txt, int len, nk_flags text_alignment, const struct nk_user_font *font); +NK_LIB int nk_do_button_text(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *string, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_input *in, const struct nk_user_font *font); +NK_LIB void nk_draw_button_symbol(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, enum nk_symbol_type type, const struct nk_user_font *font); +NK_LIB int nk_do_button_symbol(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, enum nk_symbol_type symbol, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_input *in, const struct nk_user_font *font); +NK_LIB void nk_draw_button_image(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, const struct nk_image *img); +NK_LIB int nk_do_button_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, struct nk_image img, enum nk_button_behavior b, const struct nk_style_button *style, const struct nk_input *in); +NK_LIB void nk_draw_button_text_symbol(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *label, const struct nk_rect *symbol, nk_flags state, const struct nk_style_button *style, const char *str, int len, enum nk_symbol_type type, const struct nk_user_font *font); +NK_LIB int nk_do_button_text_symbol(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, enum nk_symbol_type symbol, const char *str, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_user_font *font, const struct nk_input *in); +NK_LIB void nk_draw_button_text_image(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *label, const struct nk_rect *image, nk_flags state, const struct nk_style_button *style, const char *str, int len, const struct nk_user_font *font, const struct nk_image *img); +NK_LIB int nk_do_button_text_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, struct nk_image img, const char* str, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_user_font *font, const struct nk_input *in); + +/* toggle */ +enum nk_toggle_type { + NK_TOGGLE_CHECK, + NK_TOGGLE_OPTION +}; +NK_LIB int nk_toggle_behavior(const struct nk_input *in, struct nk_rect select, nk_flags *state, int active); +NK_LIB void nk_draw_checkbox(struct nk_command_buffer *out, nk_flags state, const struct nk_style_toggle *style, int active, const struct nk_rect *label, const struct nk_rect *selector, const struct nk_rect *cursors, const char *string, int len, const struct nk_user_font *font); +NK_LIB void nk_draw_option(struct nk_command_buffer *out, nk_flags state, const struct nk_style_toggle *style, int active, const struct nk_rect *label, const struct nk_rect *selector, const struct nk_rect *cursors, const char *string, int len, const struct nk_user_font *font); +NK_LIB int nk_do_toggle(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, int *active, const char *str, int len, enum nk_toggle_type type, const struct nk_style_toggle *style, const struct nk_input *in, const struct nk_user_font *font); + +/* progress */ +NK_LIB nk_size nk_progress_behavior(nk_flags *state, struct nk_input *in, struct nk_rect r, struct nk_rect cursor, nk_size max, nk_size value, int modifiable); +NK_LIB void nk_draw_progress(struct nk_command_buffer *out, nk_flags state, const struct nk_style_progress *style, const struct nk_rect *bounds, const struct nk_rect *scursor, nk_size value, nk_size max); +NK_LIB nk_size nk_do_progress(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, nk_size value, nk_size max, int modifiable, const struct nk_style_progress *style, struct nk_input *in); + +/* slider */ +NK_LIB float nk_slider_behavior(nk_flags *state, struct nk_rect *logical_cursor, struct nk_rect *visual_cursor, struct nk_input *in, struct nk_rect bounds, float slider_min, float slider_max, float slider_value, float slider_step, float slider_steps); +NK_LIB void nk_draw_slider(struct nk_command_buffer *out, nk_flags state, const struct nk_style_slider *style, const struct nk_rect *bounds, const struct nk_rect *visual_cursor, float min, float value, float max); +NK_LIB float nk_do_slider(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, float min, float val, float max, float step, const struct nk_style_slider *style, struct nk_input *in, const struct nk_user_font *font); + +/* scrollbar */ +NK_LIB float nk_scrollbar_behavior(nk_flags *state, struct nk_input *in, int has_scrolling, const struct nk_rect *scroll, const struct nk_rect *cursor, const struct nk_rect *empty0, const struct nk_rect *empty1, float scroll_offset, float target, float scroll_step, enum nk_orientation o); +NK_LIB void nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state, const struct nk_style_scrollbar *style, const struct nk_rect *bounds, const struct nk_rect *scroll); +NK_LIB float nk_do_scrollbarv(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font); +NK_LIB float nk_do_scrollbarh(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font); + +/* selectable */ +NK_LIB void nk_draw_selectable(struct nk_command_buffer *out, nk_flags state, const struct nk_style_selectable *style, int active, const struct nk_rect *bounds, const struct nk_rect *icon, const struct nk_image *img, enum nk_symbol_type sym, const char *string, int len, nk_flags align, const struct nk_user_font *font); +NK_LIB int nk_do_selectable(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, const struct nk_style_selectable *style, const struct nk_input *in, const struct nk_user_font *font); +NK_LIB int nk_do_selectable_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, const struct nk_image *img, const struct nk_style_selectable *style, const struct nk_input *in, const struct nk_user_font *font); + +/* edit */ +NK_LIB void nk_edit_draw_text(struct nk_command_buffer *out, const struct nk_style_edit *style, float pos_x, float pos_y, float x_offset, const char *text, int byte_len, float row_height, const struct nk_user_font *font, struct nk_color background, struct nk_color foreground, int is_selected); +NK_LIB nk_flags nk_do_edit(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, nk_flags flags, nk_plugin_filter filter, struct nk_text_edit *edit, const struct nk_style_edit *style, struct nk_input *in, const struct nk_user_font *font); + +/* color-picker */ +NK_LIB int nk_color_picker_behavior(nk_flags *state, const struct nk_rect *bounds, const struct nk_rect *matrix, const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, struct nk_colorf *color, const struct nk_input *in); +NK_LIB void nk_draw_color_picker(struct nk_command_buffer *o, const struct nk_rect *matrix, const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, struct nk_colorf col); +NK_LIB int nk_do_color_picker(nk_flags *state, struct nk_command_buffer *out, struct nk_colorf *col, enum nk_color_format fmt, struct nk_rect bounds, struct nk_vec2 padding, const struct nk_input *in, const struct nk_user_font *font); + +/* property */ +enum nk_property_status { + NK_PROPERTY_DEFAULT, + NK_PROPERTY_EDIT, + NK_PROPERTY_DRAG +}; +enum nk_property_filter { + NK_FILTER_INT, + NK_FILTER_FLOAT +}; +enum nk_property_kind { + NK_PROPERTY_INT, + NK_PROPERTY_FLOAT, + NK_PROPERTY_DOUBLE +}; +union nk_property { + int i; + float f; + double d; +}; +struct nk_property_variant { + enum nk_property_kind kind; + union nk_property value; + union nk_property min_value; + union nk_property max_value; + union nk_property step; +}; +NK_LIB struct nk_property_variant nk_property_variant_int(int value, int min_value, int max_value, int step); +NK_LIB struct nk_property_variant nk_property_variant_float(float value, float min_value, float max_value, float step); +NK_LIB struct nk_property_variant nk_property_variant_double(double value, double min_value, double max_value, double step); + +NK_LIB void nk_drag_behavior(nk_flags *state, const struct nk_input *in, struct nk_rect drag, struct nk_property_variant *variant, float inc_per_pixel); +NK_LIB void nk_property_behavior(nk_flags *ws, const struct nk_input *in, struct nk_rect property, struct nk_rect label, struct nk_rect edit, struct nk_rect empty, int *state, struct nk_property_variant *variant, float inc_per_pixel); +NK_LIB void nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *style, const struct nk_rect *bounds, const struct nk_rect *label, nk_flags state, const char *name, int len, const struct nk_user_font *font); +NK_LIB void nk_do_property(nk_flags *ws, struct nk_command_buffer *out, struct nk_rect property, const char *name, struct nk_property_variant *variant, float inc_per_pixel, char *buffer, int *len, int *state, int *cursor, int *select_begin, int *select_end, const struct nk_style_property *style, enum nk_property_filter filter, struct nk_input *in, const struct nk_user_font *font, struct nk_text_edit *text_edit, enum nk_button_behavior behavior); +NK_LIB void nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant *variant, float inc_per_pixel, const enum nk_property_filter filter); + +#endif + + + + + +/* =============================================================== * - * MATH + * MATH * - * =============================================================== - */ + * ===============================================================*/ /* Since nuklear is supposed to work on all systems providing floating point math without any dependencies I also had to implement my own math functions for sqrt, sin and cos. Since the actual highly accurate implementations for @@ -4371,7 +5957,7 @@ NK_GLOBAL const struct nk_color nk_yellow = {255,255,0,255}; ---- For square root nuklear uses the famous fast inverse square root: https://en.wikipedia.org/wiki/Fast_inverse_square_root with - slightly tweaked magic constant. While on todays hardware it is + slightly tweaked magic constant. While on today's hardware it is probably not faster it is still fast and accurate enough for nuklear's use cases. IMPORTANT: this requires float format IEEE 754 @@ -4382,32 +5968,30 @@ NK_GLOBAL const struct nk_color nk_yellow = {255,255,0,255}; approximate exactly that range is that nuklear only needs sine and cosine to generate circles which only requires that exact range. In addition I used Remez instead of Taylor for additional precision: - www.lolengine.net/blog/2011/12/21/better-function-approximatations. + www.lolengine.net/blog/2011/12/21/better-function-approximations. The tool I used to generate constants for both sine and cosine (it can actually approximate a lot more functions) can be found here: www.lolengine.net/wiki/oss/lolremez */ -NK_INTERN float -nk_inv_sqrt(float number) +NK_LIB float +nk_inv_sqrt(float n) { float x2; const float threehalfs = 1.5f; union {nk_uint i; float f;} conv = {0}; - conv.f = number; - x2 = number * 0.5f; + conv.f = n; + x2 = n * 0.5f; conv.i = 0x5f375A84 - (conv.i >> 1); conv.f = conv.f * (threehalfs - (x2 * conv.f * conv.f)); return conv.f; } - -NK_INTERN float +NK_LIB float nk_sqrt(float x) { return x * nk_inv_sqrt(x); } - -NK_INTERN float +NK_LIB float nk_sin(float x) { NK_STORAGE const float a0 = +1.91059300966915117e-31f; @@ -4420,8 +6004,7 @@ nk_sin(float x) NK_STORAGE const float a7 = +1.38235642404333740e-4f; return a0 + x*(a1 + x*(a2 + x*(a3 + x*(a4 + x*(a5 + x*(a6 + x*a7)))))); } - -NK_INTERN float +NK_LIB float nk_cos(float x) { NK_STORAGE const float a0 = +1.00238601909309722f; @@ -4434,8 +6017,7 @@ nk_cos(float x) NK_STORAGE const float a7 = -5.23022132118824778e-14f; return a0 + x*(a1 + x*(a2 + x*(a3 + x*(a4 + x*(a5 + x*(a6 + x*a7)))))); } - -NK_INTERN nk_uint +NK_LIB nk_uint nk_round_up_pow2(nk_uint v) { v--; @@ -4447,13 +6029,66 @@ nk_round_up_pow2(nk_uint v) v++; return v; } +NK_LIB double +nk_pow(double x, int n) +{ + /* check the sign of n */ + double r = 1; + int plus = n >= 0; + n = (plus) ? n : -n; + while (n > 0) { + if ((n & 1) == 1) + r *= x; + n /= 2; + x *= x; + } + return plus ? r : 1.0 / r; +} +NK_LIB int +nk_ifloord(double x) +{ + x = (double)((int)x - ((x < 0.0) ? 1 : 0)); + return (int)x; +} +NK_LIB int +nk_ifloorf(float x) +{ + x = (float)((int)x - ((x < 0.0f) ? 1 : 0)); + return (int)x; +} +NK_LIB int +nk_iceilf(float x) +{ + if (x >= 0) { + int i = (int)x; + return (x > i) ? i+1: i; + } else { + int t = (int)x; + float r = x - (float)t; + return (r > 0.0f) ? t+1: t; + } +} +NK_LIB int +nk_log10(double n) +{ + int neg; + int ret; + int exp = 0; + neg = (n < 0) ? 1 : 0; + ret = (neg) ? (int)-n : (int)n; + while ((ret / 10) > 0) { + ret /= 10; + exp++; + } + if (neg) exp = -exp; + return exp; +} NK_API struct nk_rect nk_get_null_rect(void) { return nk_null_rect; } - NK_API struct nk_rect nk_rect(float x, float y, float w, float h) { @@ -4462,7 +6097,6 @@ nk_rect(float x, float y, float w, float h) r.w = w; r.h = h; return r; } - NK_API struct nk_rect nk_recti(int x, int y, int w, int h) { @@ -4473,25 +6107,21 @@ nk_recti(int x, int y, int w, int h) r.h = (float)h; return r; } - NK_API struct nk_rect nk_recta(struct nk_vec2 pos, struct nk_vec2 size) { return nk_rect(pos.x, pos.y, size.x, size.y); } - NK_API struct nk_rect nk_rectv(const float *r) { return nk_rect(r[0], r[1], r[2], r[3]); } - NK_API struct nk_rect nk_rectiv(const int *r) { return nk_recti(r[0], r[1], r[2], r[3]); } - NK_API struct nk_vec2 nk_rect_pos(struct nk_rect r) { @@ -4499,7 +6129,6 @@ nk_rect_pos(struct nk_rect r) ret.x = r.x; ret.y = r.y; return ret; } - NK_API struct nk_vec2 nk_rect_size(struct nk_rect r) { @@ -4507,8 +6136,7 @@ nk_rect_size(struct nk_rect r) ret.x = r.w; ret.y = r.h; return ret; } - -NK_INTERN struct nk_rect +NK_LIB struct nk_rect nk_shrink_rect(struct nk_rect r, float amount) { struct nk_rect res; @@ -4520,8 +6148,7 @@ nk_shrink_rect(struct nk_rect r, float amount) res.h = r.h - 2 * amount; return res; } - -NK_INTERN struct nk_rect +NK_LIB struct nk_rect nk_pad_rect(struct nk_rect r, struct nk_vec2 pad) { r.w = NK_MAX(r.w, 2 * pad.x); @@ -4531,7 +6158,6 @@ nk_pad_rect(struct nk_rect r, struct nk_vec2 pad) r.h -= 2 * pad.y; return r; } - NK_API struct nk_vec2 nk_vec2(float x, float y) { @@ -4539,7 +6165,6 @@ nk_vec2(float x, float y) ret.x = x; ret.y = y; return ret; } - NK_API struct nk_vec2 nk_vec2i(int x, int y) { @@ -4548,34 +6173,84 @@ nk_vec2i(int x, int y) ret.y = (float)y; return ret; } - NK_API struct nk_vec2 nk_vec2v(const float *v) { return nk_vec2(v[0], v[1]); } - NK_API struct nk_vec2 nk_vec2iv(const int *v) { return nk_vec2i(v[0], v[1]); } +NK_LIB void +nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0, + float x1, float y1) +{ + NK_ASSERT(a); + NK_ASSERT(clip); + clip->x = NK_MAX(a->x, x0); + clip->y = NK_MAX(a->y, y0); + clip->w = NK_MIN(a->x + a->w, x1) - clip->x; + clip->h = NK_MIN(a->y + a->h, y1) - clip->y; + clip->w = NK_MAX(0, clip->w); + clip->h = NK_MAX(0, clip->h); +} -/* - * ============================================================== +NK_API void +nk_triangle_from_direction(struct nk_vec2 *result, struct nk_rect r, + float pad_x, float pad_y, enum nk_heading direction) +{ + float w_half, h_half; + NK_ASSERT(result); + + r.w = NK_MAX(2 * pad_x, r.w); + r.h = NK_MAX(2 * pad_y, r.h); + r.w = r.w - 2 * pad_x; + r.h = r.h - 2 * pad_y; + + r.x = r.x + pad_x; + r.y = r.y + pad_y; + + w_half = r.w / 2.0f; + h_half = r.h / 2.0f; + + if (direction == NK_UP) { + result[0] = nk_vec2(r.x + w_half, r.y); + result[1] = nk_vec2(r.x + r.w, r.y + r.h); + result[2] = nk_vec2(r.x, r.y + r.h); + } else if (direction == NK_RIGHT) { + result[0] = nk_vec2(r.x, r.y); + result[1] = nk_vec2(r.x + r.w, r.y + h_half); + result[2] = nk_vec2(r.x, r.y + r.h); + } else if (direction == NK_DOWN) { + result[0] = nk_vec2(r.x, r.y); + result[1] = nk_vec2(r.x + r.w, r.y); + result[2] = nk_vec2(r.x + w_half, r.y + r.h); + } else { + result[0] = nk_vec2(r.x, r.y + h_half); + result[1] = nk_vec2(r.x + r.w, r.y); + result[2] = nk_vec2(r.x + r.w, r.y + r.h); + } +} + + + + + +/* =============================================================== * - * UTIL + * UTIL * - * =============================================================== - */ + * ===============================================================*/ NK_INTERN int nk_str_match_here(const char *regexp, const char *text); NK_INTERN int nk_str_match_star(int c, const char *regexp, const char *text); -NK_INTERN int nk_is_lower(int c) {return (c >= 'a' && c <= 'z') || (c >= 0xE0 && c <= 0xFF);} -NK_INTERN int nk_is_upper(int c){return (c >= 'A' && c <= 'Z') || (c >= 0xC0 && c <= 0xDF);} -NK_INTERN int nk_to_upper(int c) {return (c >= 'a' && c <= 'z') ? (c - ('a' - 'A')) : c;} -NK_INTERN int nk_to_lower(int c) {return (c >= 'A' && c <= 'Z') ? (c - ('a' + 'A')) : c;} +NK_LIB int nk_is_lower(int c) {return (c >= 'a' && c <= 'z') || (c >= 0xE0 && c <= 0xFF);} +NK_LIB int nk_is_upper(int c){return (c >= 'A' && c <= 'Z') || (c >= 0xC0 && c <= 0xDF);} +NK_LIB int nk_to_upper(int c) {return (c >= 'a' && c <= 'z') ? (c - ('a' - 'A')) : c;} +NK_LIB int nk_to_lower(int c) {return (c >= 'A' && c <= 'Z') ? (c - ('a' + 'A')) : c;} -NK_INTERN void* +NK_LIB void* nk_memcopy(void *dst0, const void *src0, nk_size length) { nk_ptr t; @@ -4631,8 +6306,7 @@ nk_memcopy(void *dst0, const void *src0, nk_size length) done: return (dst0); } - -NK_INTERN void +NK_LIB void nk_memset(void *ptr, int c0, nk_size size) { #define nk_word unsigned @@ -4683,14 +6357,12 @@ nk_memset(void *ptr, int c0, nk_size size) #undef nk_wsize #undef nk_wmask } - -NK_INTERN void +NK_LIB void nk_zero(void *ptr, nk_size size) { NK_ASSERT(ptr); NK_MEMSET(ptr, 0, size); } - NK_API int nk_strlen(const char *str) { @@ -4699,7 +6371,6 @@ nk_strlen(const char *str) while (str && *str++ != '\0') siz++; return siz; } - NK_API int nk_strtoi(const char *str, const char **endptr) { @@ -4724,7 +6395,6 @@ nk_strtoi(const char *str, const char **endptr) *endptr = p; return neg*value; } - NK_API double nk_strtod(const char *str, const char **endptr) { @@ -4782,7 +6452,6 @@ nk_strtod(const char *str, const char **endptr) *endptr = p; return number; } - NK_API float nk_strtof(const char *str, const char **endptr) { @@ -4792,7 +6461,6 @@ nk_strtof(const char *str, const char **endptr) float_value = (float)double_value; return float_value; } - NK_API int nk_stricmp(const char *s1, const char *s2) { @@ -4815,7 +6483,6 @@ nk_stricmp(const char *s1, const char *s2) } while (c1); return 0; } - NK_API int nk_stricmpn(const char *s1, const char *s2, int n) { @@ -4841,7 +6508,6 @@ nk_stricmpn(const char *s1, const char *s2, int n) } while (c1); return 0; } - NK_INTERN int nk_str_match_here(const char *regexp, const char *text) { @@ -4855,7 +6521,6 @@ nk_str_match_here(const char *regexp, const char *text) return nk_str_match_here(regexp+1, text+1); return 0; } - NK_INTERN int nk_str_match_star(int c, const char *regexp, const char *text) { @@ -4865,7 +6530,6 @@ nk_str_match_star(int c, const char *regexp, const char *text) } while (*text != '\0' && (*text++ == c || c == '.')); return 0; } - NK_API int nk_strfilter(const char *text, const char *regexp) { @@ -4883,16 +6547,14 @@ nk_strfilter(const char *text, const char *regexp) } while (*text++ != '\0'); return 0; } - NK_API int nk_strmatch_fuzzy_text(const char *str, int str_len, const char *pattern, int *out_score) { /* Returns true if each character in pattern is found sequentially within str - * if found then outScore is also set. Score value has no intrinsic meaning. + * if found then out_score is also set. Score value has no intrinsic meaning. * Range varies with pattern. Can only compare scores with same search pattern. */ - /* ------- scores --------- */ /* bonus for adjacent matches */ #define NK_ADJACENCY_BONUS 5 /* bonus if match occurs after a separator */ @@ -5006,12 +6668,12 @@ nk_strmatch_fuzzy_text(const char *str, int str_len, *out_score = score; return nk_true; } - NK_API int nk_strmatch_fuzzy_string(char const *str, char const *pattern, int *out_score) -{return nk_strmatch_fuzzy_text(str, nk_strlen(str), pattern, out_score);} - -NK_INTERN int +{ + return nk_strmatch_fuzzy_text(str, nk_strlen(str), pattern, out_score); +} +NK_LIB int nk_string_float_limit(char *string, int prec) { int dot = 0; @@ -5031,83 +6693,21 @@ nk_string_float_limit(char *string, int prec) } return (int)(c - string); } - -NK_INTERN double -nk_pow(double x, int n) +NK_INTERN void +nk_strrev_ascii(char *s) { - /* check the sign of n */ - double r = 1; - int plus = n >= 0; - n = (plus) ? n : -n; - while (n > 0) { - if ((n & 1) == 1) - r *= x; - n /= 2; - x *= x; + int len = nk_strlen(s); + int end = len / 2; + int i = 0; + char t; + for (; i < end; ++i) { + t = s[i]; + s[i] = s[len - 1 - i]; + s[len -1 - i] = t; } - return plus ? r : 1.0 / r; } - -NK_INTERN int -nk_ifloord(double x) -{ - x = (double)((int)x - ((x < 0.0) ? 1 : 0)); - return (int)x; -} - -NK_INTERN int -nk_ifloorf(float x) -{ - x = (float)((int)x - ((x < 0.0f) ? 1 : 0)); - return (int)x; -} - -NK_INTERN int -nk_iceilf(float x) -{ - if (x >= 0) { - int i = (int)x; - return i; - } else { - int t = (int)x; - float r = x - (float)t; - return (r > 0.0f) ? t+1: t; - } -} - -NK_INTERN int -nk_log10(double n) -{ - int neg; - int ret; - int exp = 0; - - neg = (n < 0) ? 1 : 0; - ret = (neg) ? (int)-n : (int)n; - while ((ret / 10) > 0) { - ret /= 10; - exp++; - } - if (neg) exp = -exp; - return exp; -} - -NK_INTERN void -nk_strrev_ascii(char *s) -{ - int len = nk_strlen(s); - int end = len / 2; - int i = 0; - char t; - for (; i < end; ++i) { - t = s[i]; - s[i] = s[len - 1 - i]; - s[len -1 - i] = t; - } -} - -NK_INTERN char* -nk_itoa(char *s, long n) +NK_LIB char* +nk_itoa(char *s, long n) { long i = 0; if (n == 0) { @@ -5130,8 +6730,7 @@ nk_itoa(char *s, long n) nk_strrev_ascii(s); return s; } - -NK_INTERN char* +NK_LIB char* nk_dtoa(char *s, double n) { int useExp = 0; @@ -5209,10 +6808,9 @@ nk_dtoa(char *s, double n) *(c) = '\0'; return s; } - #ifdef NK_INCLUDE_STANDARD_VARARGS #ifndef NK_INCLUDE_STANDARD_IO -static int +NK_INTERN int nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) { enum nk_arg_type { @@ -5531,8 +7129,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args) return result; } #endif - -NK_INTERN int +NK_LIB int nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args) { int result = -1; @@ -5549,7 +7146,6 @@ nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args) return result; } #endif - NK_API nk_hash nk_murmur_hash(const void * key, int len, nk_hash seed) { @@ -5585,13 +7181,14 @@ nk_murmur_hash(const void * key, int len, nk_hash seed) tail = (const nk_byte*)(data + nblocks*4); k1 = 0; switch (len & 3) { - case 3: k1 ^= (nk_uint)(tail[2] << 16); - case 2: k1 ^= (nk_uint)(tail[1] << 8u); + case 3: k1 ^= (nk_uint)(tail[2] << 16); /* fallthrough */ + case 2: k1 ^= (nk_uint)(tail[1] << 8u); /* fallthrough */ case 1: k1 ^= tail[0]; k1 *= c1; k1 = NK_ROTL(k1,15); k1 *= c2; h1 ^= k1; + break; default: break; } @@ -5607,9 +7204,8 @@ nk_murmur_hash(const void * key, int len, nk_hash seed) #undef NK_ROTL return h1; } - #ifdef NK_INCLUDE_STANDARD_IO -NK_INTERN char* +NK_LIB char* nk_file_load(const char* path, nk_size* siz, struct nk_allocator *alloc) { char *buf; @@ -5638,19 +7234,129 @@ nk_file_load(const char* path, nk_size* siz, struct nk_allocator *alloc) fclose(fd); return 0; } - *siz = (nk_size)fread(buf, *siz, 1, fd); + *siz = (nk_size)fread(buf, 1,*siz, fd); fclose(fd); return buf; } #endif +NK_LIB int +nk_text_clamp(const struct nk_user_font *font, const char *text, + int text_len, float space, int *glyphs, float *text_width, + nk_rune *sep_list, int sep_count) +{ + int i = 0; + int glyph_len = 0; + float last_width = 0; + nk_rune unicode = 0; + float width = 0; + int len = 0; + int g = 0; + float s; -/* - * ============================================================== + int sep_len = 0; + int sep_g = 0; + float sep_width = 0; + sep_count = NK_MAX(sep_count,0); + + glyph_len = nk_utf_decode(text, &unicode, text_len); + while (glyph_len && (width < space) && (len < text_len)) { + len += glyph_len; + s = font->width(font->userdata, font->height, text, len); + for (i = 0; i < sep_count; ++i) { + if (unicode != sep_list[i]) continue; + sep_width = last_width = width; + sep_g = g+1; + sep_len = len; + break; + } + if (i == sep_count){ + last_width = sep_width = width; + sep_g = g+1; + } + width = s; + glyph_len = nk_utf_decode(&text[len], &unicode, text_len - len); + g++; + } + if (len >= text_len) { + *glyphs = g; + *text_width = last_width; + return len; + } else { + *glyphs = sep_g; + *text_width = sep_width; + return (!sep_len) ? len: sep_len; + } +} +NK_LIB struct nk_vec2 +nk_text_calculate_text_bounds(const struct nk_user_font *font, + const char *begin, int byte_len, float row_height, const char **remaining, + struct nk_vec2 *out_offset, int *glyphs, int op) +{ + float line_height = row_height; + struct nk_vec2 text_size = nk_vec2(0,0); + float line_width = 0.0f; + + float glyph_width; + int glyph_len = 0; + nk_rune unicode = 0; + int text_len = 0; + if (!begin || byte_len <= 0 || !font) + return nk_vec2(0,row_height); + + glyph_len = nk_utf_decode(begin, &unicode, byte_len); + if (!glyph_len) return text_size; + glyph_width = font->width(font->userdata, font->height, begin, glyph_len); + + *glyphs = 0; + while ((text_len < byte_len) && glyph_len) { + if (unicode == '\n') { + text_size.x = NK_MAX(text_size.x, line_width); + text_size.y += line_height; + line_width = 0; + *glyphs+=1; + if (op == NK_STOP_ON_NEW_LINE) + break; + + text_len++; + glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); + continue; + } + + if (unicode == '\r') { + text_len++; + *glyphs+=1; + glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); + continue; + } + + *glyphs = *glyphs + 1; + text_len += glyph_len; + line_width += (float)glyph_width; + glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); + glyph_width = font->width(font->userdata, font->height, begin+text_len, glyph_len); + continue; + } + + if (text_size.x < line_width) + text_size.x = line_width; + if (out_offset) + *out_offset = nk_vec2(line_width, text_size.y + line_height); + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + if (remaining) + *remaining = begin+text_len; + return text_size; +} + + + + + +/* ============================================================== * * COLOR * - * =============================================================== - */ + * ===============================================================*/ NK_INTERN int nk_parse_hex(const char *p, int length) { @@ -5667,7 +7373,6 @@ nk_parse_hex(const char *p, int length) } return i; } - NK_API struct nk_color nk_rgba(int r, int g, int b, int a) { @@ -5678,7 +7383,6 @@ nk_rgba(int r, int g, int b, int a) ret.a = (nk_byte)NK_CLAMP(0, a, 255); return ret; } - NK_API struct nk_color nk_rgb_hex(const char *rgb) { @@ -5691,7 +7395,6 @@ nk_rgb_hex(const char *rgb) col.a = 255; return col; } - NK_API struct nk_color nk_rgba_hex(const char *rgb) { @@ -5704,7 +7407,6 @@ nk_rgba_hex(const char *rgb) col.a = (nk_byte)nk_parse_hex(c+6, 2); return col; } - NK_API void nk_color_hex_rgba(char *output, struct nk_color col) { @@ -5720,7 +7422,6 @@ nk_color_hex_rgba(char *output, struct nk_color col) output[8] = '\0'; #undef NK_TO_HEX } - NK_API void nk_color_hex_rgb(char *output, struct nk_color col) { @@ -5734,19 +7435,16 @@ nk_color_hex_rgb(char *output, struct nk_color col) output[6] = '\0'; #undef NK_TO_HEX } - NK_API struct nk_color nk_rgba_iv(const int *c) { return nk_rgba(c[0], c[1], c[2], c[3]); } - NK_API struct nk_color nk_rgba_bv(const nk_byte *c) { return nk_rgba(c[0], c[1], c[2], c[3]); } - NK_API struct nk_color nk_rgb(int r, int g, int b) { @@ -5757,19 +7455,16 @@ nk_rgb(int r, int g, int b) ret.a = (nk_byte)255; return ret; } - NK_API struct nk_color nk_rgb_iv(const int *c) { return nk_rgb(c[0], c[1], c[2]); } - NK_API struct nk_color nk_rgb_bv(const nk_byte* c) { return nk_rgb(c[0], c[1], c[2]); } - NK_API struct nk_color nk_rgba_u32(nk_uint in) { @@ -5780,7 +7475,6 @@ nk_rgba_u32(nk_uint in) ret.a = (nk_byte)((in >> 24) & 0xFF); return ret; } - NK_API struct nk_color nk_rgba_f(float r, float g, float b, float a) { @@ -5791,13 +7485,16 @@ nk_rgba_f(float r, float g, float b, float a) ret.a = (nk_byte)(NK_SATURATE(a) * 255.0f); return ret; } - NK_API struct nk_color nk_rgba_fv(const float *c) { return nk_rgba_f(c[0], c[1], c[2], c[3]); } - +NK_API struct nk_color +nk_rgba_cf(struct nk_colorf c) +{ + return nk_rgba_f(c.r, c.g, c.b, c.a); +} NK_API struct nk_color nk_rgb_f(float r, float g, float b) { @@ -5808,43 +7505,41 @@ nk_rgb_f(float r, float g, float b) ret.a = 255; return ret; } - NK_API struct nk_color nk_rgb_fv(const float *c) { return nk_rgb_f(c[0], c[1], c[2]); } - +NK_API struct nk_color +nk_rgb_cf(struct nk_colorf c) +{ + return nk_rgb_f(c.r, c.g, c.b); +} NK_API struct nk_color nk_hsv(int h, int s, int v) { return nk_hsva(h, s, v, 255); } - NK_API struct nk_color nk_hsv_iv(const int *c) { return nk_hsv(c[0], c[1], c[2]); } - NK_API struct nk_color nk_hsv_bv(const nk_byte *c) { return nk_hsv(c[0], c[1], c[2]); } - NK_API struct nk_color nk_hsv_f(float h, float s, float v) { return nk_hsva_f(h, s, v, 1.0f); } - NK_API struct nk_color nk_hsv_fv(const float *c) { return nk_hsv_f(c[0], c[1], c[2]); } - NK_API struct nk_color nk_hsva(int h, int s, int v, int a) { @@ -5854,31 +7549,26 @@ nk_hsva(int h, int s, int v, int a) float af = ((float)NK_CLAMP(0, a, 255)) / 255.0f; return nk_hsva_f(hf, sf, vf, af); } - NK_API struct nk_color nk_hsva_iv(const int *c) { return nk_hsva(c[0], c[1], c[2], c[3]); } - NK_API struct nk_color nk_hsva_bv(const nk_byte *c) { return nk_hsva(c[0], c[1], c[2], c[3]); } - -NK_API struct nk_color -nk_hsva_f(float h, float s, float v, float a) +NK_API struct nk_colorf +nk_hsva_colorf(float h, float s, float v, float a) { - struct nk_colorf out = {0,0,0,0}; - float p, q, t, f; int i; - + float p, q, t, f; + struct nk_colorf out = {0,0,0,0}; if (s <= 0.0f) { - out.r = v; out.g = v; out.b = v; - return nk_rgb_f(out.r, out.g, out.b); + out.r = v; out.g = v; out.b = v; out.a = a; + return out; } - h = h / (60.0f/360.0f); i = (int)h; f = h - (float)i; @@ -5892,17 +7582,26 @@ nk_hsva_f(float h, float s, float v, float a) 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: out.r = v; out.g = p; out.b = q; break; - } - return nk_rgba_f(out.r, out.g, out.b, a); + case 5: out.r = v; out.g = p; out.b = q; break;} + out.a = a; + return out; +} +NK_API struct nk_colorf +nk_hsva_colorfv(float *c) +{ + return nk_hsva_colorf(c[0], c[1], c[2], c[3]); +} +NK_API struct nk_color +nk_hsva_f(float h, float s, float v, float a) +{ + struct nk_colorf c = nk_hsva_colorf(h, s, v, a); + return nk_rgba_f(c.r, c.g, c.b, c.a); } - NK_API struct nk_color nk_hsva_fv(const float *c) { return nk_hsva_f(c[0], c[1], c[2], c[3]); } - NK_API nk_uint nk_color_u32(struct nk_color in) { @@ -5912,7 +7611,6 @@ nk_color_u32(struct nk_color in) out |= ((nk_uint)in.a << 24); return out; } - NK_API void nk_color_f(float *r, float *g, float *b, float *a, struct nk_color in) { @@ -5922,13 +7620,18 @@ nk_color_f(float *r, float *g, float *b, float *a, struct nk_color in) *b = (float)in.b * s; *a = (float)in.a * s; } - NK_API void nk_color_fv(float *c, struct nk_color in) { nk_color_f(&c[0], &c[1], &c[2], &c[3], in); } - +NK_API struct nk_colorf +nk_color_cf(struct nk_color in) +{ + struct nk_colorf o; + nk_color_f(&o.r, &o.g, &o.b, &o.a, in); + return o; +} NK_API void nk_color_d(double *r, double *g, double *b, double *a, struct nk_color in) { @@ -5938,57 +7641,62 @@ nk_color_d(double *r, double *g, double *b, double *a, struct nk_color in) *b = (double)in.b * s; *a = (double)in.a * s; } - NK_API void nk_color_dv(double *c, struct nk_color in) { nk_color_d(&c[0], &c[1], &c[2], &c[3], in); } - NK_API void nk_color_hsv_f(float *out_h, float *out_s, float *out_v, struct nk_color in) { float a; nk_color_hsva_f(out_h, out_s, out_v, &a, in); } - NK_API void nk_color_hsv_fv(float *out, struct nk_color in) { float a; nk_color_hsva_f(&out[0], &out[1], &out[2], &a, in); } - NK_API void -nk_color_hsva_f(float *out_h, float *out_s, - float *out_v, float *out_a, struct nk_color in) +nk_colorf_hsva_f(float *out_h, float *out_s, + float *out_v, float *out_a, struct nk_colorf in) { float chroma; float K = 0.0f; - float r,g,b,a; - - nk_color_f(&r,&g,&b,&a, in); - if (g < b) { - const float t = g; g = b; b = t; + if (in.g < in.b) { + const float t = in.g; in.g = in.b; in.b = t; K = -1.f; } - if (r < g) { - const float t = r; r = g; g = t; + if (in.r < in.g) { + const float t = in.r; in.r = in.g; in.g = t; K = -2.f/6.0f - K; } - chroma = r - ((g < b) ? g: b); - *out_h = NK_ABS(K + (g - b)/(6.0f * chroma + 1e-20f)); - *out_s = chroma / (r + 1e-20f); - *out_v = r; - *out_a = (float)in.a / 255.0f; -} + chroma = in.r - ((in.g < in.b) ? in.g: in.b); + *out_h = NK_ABS(K + (in.g - in.b)/(6.0f * chroma + 1e-20f)); + *out_s = chroma / (in.r + 1e-20f); + *out_v = in.r; + *out_a = in.a; +} +NK_API void +nk_colorf_hsva_fv(float *hsva, struct nk_colorf in) +{ + nk_colorf_hsva_f(&hsva[0], &hsva[1], &hsva[2], &hsva[3], in); +} +NK_API void +nk_color_hsva_f(float *out_h, float *out_s, + float *out_v, float *out_a, struct nk_color in) +{ + struct nk_colorf col; + nk_color_f(&col.r,&col.g,&col.b,&col.a, in); + nk_colorf_hsva_f(out_h, out_s, out_v, out_a, col); +} NK_API void nk_color_hsva_fv(float *out, struct nk_color in) { nk_color_hsva_f(&out[0], &out[1], &out[2], &out[3], in); } - NK_API void nk_color_hsva_i(int *out_h, int *out_s, int *out_v, int *out_a, struct nk_color in) @@ -6000,13 +7708,11 @@ nk_color_hsva_i(int *out_h, int *out_s, int *out_v, *out_v = (nk_byte)(v * 255.0f); *out_a = (nk_byte)(a * 255.0f); } - NK_API void nk_color_hsva_iv(int *out, struct nk_color in) { nk_color_hsva_i(&out[0], &out[1], &out[2], &out[3], in); } - NK_API void nk_color_hsva_bv(nk_byte *out, struct nk_color in) { @@ -6017,7 +7723,6 @@ nk_color_hsva_bv(nk_byte *out, struct nk_color in) out[2] = (nk_byte)tmp[2]; out[3] = (nk_byte)tmp[3]; } - NK_API void nk_color_hsva_b(nk_byte *h, nk_byte *s, nk_byte *v, nk_byte *a, struct nk_color in) { @@ -6028,14 +7733,12 @@ nk_color_hsva_b(nk_byte *h, nk_byte *s, nk_byte *v, nk_byte *a, struct nk_color *v = (nk_byte)tmp[2]; *a = (nk_byte)tmp[3]; } - NK_API void nk_color_hsv_i(int *out_h, int *out_s, int *out_v, struct nk_color in) { int a; nk_color_hsva_i(out_h, out_s, out_v, &a, in); } - NK_API void nk_color_hsv_b(nk_byte *out_h, nk_byte *out_s, nk_byte *out_v, struct nk_color in) { @@ -6045,13 +7748,11 @@ nk_color_hsv_b(nk_byte *out_h, nk_byte *out_s, nk_byte *out_v, struct nk_color i *out_s = (nk_byte)tmp[1]; *out_v = (nk_byte)tmp[2]; } - NK_API void nk_color_hsv_iv(int *out, struct nk_color in) { nk_color_hsv_i(&out[0], &out[1], &out[2], in); } - NK_API void nk_color_hsv_bv(nk_byte *out, struct nk_color in) { @@ -6061,407 +7762,127 @@ nk_color_hsv_bv(nk_byte *out, struct nk_color in) out[1] = (nk_byte)tmp[1]; out[2] = (nk_byte)tmp[2]; } -/* - * ============================================================== + + + + + +/* =============================================================== * - * IMAGE + * UTF-8 * - * =============================================================== - */ -NK_API nk_handle -nk_handle_ptr(void *ptr) -{ - nk_handle handle = {0}; - handle.ptr = ptr; - return handle; -} + * ===============================================================*/ +NK_GLOBAL const nk_byte nk_utfbyte[NK_UTF_SIZE+1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; +NK_GLOBAL const nk_byte nk_utfmask[NK_UTF_SIZE+1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; +NK_GLOBAL const nk_uint nk_utfmin[NK_UTF_SIZE+1] = {0, 0, 0x80, 0x800, 0x10000}; +NK_GLOBAL const nk_uint nk_utfmax[NK_UTF_SIZE+1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; -NK_API nk_handle -nk_handle_id(int id) +NK_INTERN int +nk_utf_validate(nk_rune *u, int i) { - nk_handle handle; - nk_zero_struct(handle); - handle.id = id; - return handle; + NK_ASSERT(u); + if (!u) return 0; + if (!NK_BETWEEN(*u, nk_utfmin[i], nk_utfmax[i]) || + NK_BETWEEN(*u, 0xD800, 0xDFFF)) + *u = NK_UTF_INVALID; + for (i = 1; *u > nk_utfmax[i]; ++i); + return i; } - -NK_API struct nk_image -nk_subimage_ptr(void *ptr, unsigned short w, unsigned short h, struct nk_rect r) +NK_INTERN nk_rune +nk_utf_decode_byte(char c, int *i) { - struct nk_image s; - nk_zero(&s, sizeof(s)); - s.handle.ptr = ptr; - s.w = w; s.h = h; - s.region[0] = (unsigned short)r.x; - s.region[1] = (unsigned short)r.y; - s.region[2] = (unsigned short)r.w; - s.region[3] = (unsigned short)r.h; - return s; + NK_ASSERT(i); + if (!i) return 0; + for(*i = 0; *i < (int)NK_LEN(nk_utfmask); ++(*i)) { + if (((nk_byte)c & nk_utfmask[*i]) == nk_utfbyte[*i]) + return (nk_byte)(c & ~nk_utfmask[*i]); + } + return 0; } - -NK_API struct nk_image -nk_subimage_id(int id, unsigned short w, unsigned short h, struct nk_rect r) +NK_API int +nk_utf_decode(const char *c, nk_rune *u, int clen) { - struct nk_image s; - nk_zero(&s, sizeof(s)); - s.handle.id = id; - s.w = w; s.h = h; - s.region[0] = (unsigned short)r.x; - s.region[1] = (unsigned short)r.y; - s.region[2] = (unsigned short)r.w; - s.region[3] = (unsigned short)r.h; - return s; -} + int i, j, len, type=0; + nk_rune udecoded; -NK_API struct nk_image -nk_subimage_handle(nk_handle handle, unsigned short w, unsigned short h, - struct nk_rect r) -{ - struct nk_image s; - nk_zero(&s, sizeof(s)); - s.handle = handle; - s.w = w; s.h = h; - s.region[0] = (unsigned short)r.x; - s.region[1] = (unsigned short)r.y; - s.region[2] = (unsigned short)r.w; - s.region[3] = (unsigned short)r.h; - return s; -} + NK_ASSERT(c); + NK_ASSERT(u); -NK_API struct nk_image -nk_image_handle(nk_handle handle) -{ - struct nk_image s; - nk_zero(&s, sizeof(s)); - s.handle = handle; - s.w = 0; s.h = 0; - s.region[0] = 0; - s.region[1] = 0; - s.region[2] = 0; - s.region[3] = 0; - return s; -} + if (!c || !u) return 0; + if (!clen) return 0; + *u = NK_UTF_INVALID; -NK_API struct nk_image -nk_image_ptr(void *ptr) -{ - struct nk_image s; - nk_zero(&s, sizeof(s)); - NK_ASSERT(ptr); - s.handle.ptr = ptr; - s.w = 0; s.h = 0; - s.region[0] = 0; - s.region[1] = 0; - s.region[2] = 0; - s.region[3] = 0; - return s; -} + udecoded = nk_utf_decode_byte(c[0], &len); + if (!NK_BETWEEN(len, 1, NK_UTF_SIZE)) + return 1; -NK_API struct nk_image -nk_image_id(int id) + for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { + udecoded = (udecoded << 6) | nk_utf_decode_byte(c[i], &type); + if (type != 0) + return j; + } + if (j < len) + return 0; + *u = udecoded; + nk_utf_validate(u, len); + return len; +} +NK_INTERN char +nk_utf_encode_byte(nk_rune u, int i) { - struct nk_image s; - nk_zero(&s, sizeof(s)); - s.handle.id = id; - s.w = 0; s.h = 0; - s.region[0] = 0; - s.region[1] = 0; - s.region[2] = 0; - s.region[3] = 0; - return s; + return (char)((nk_utfbyte[i]) | ((nk_byte)u & ~nk_utfmask[i])); } - NK_API int -nk_image_is_subimage(const struct nk_image* img) +nk_utf_encode(nk_rune u, char *c, int clen) { - NK_ASSERT(img); - return !(img->w == 0 && img->h == 0); -} + int len, i; + len = nk_utf_validate(&u, 0); + if (clen < len || !len || len > NK_UTF_SIZE) + return 0; -NK_INTERN void -nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0, - float x1, float y1) -{ - NK_ASSERT(a); - NK_ASSERT(clip); - clip->x = NK_MAX(a->x, x0); - clip->y = NK_MAX(a->y, y0); - clip->w = NK_MIN(a->x + a->w, x1) - clip->x; - clip->h = NK_MIN(a->y + a->h, y1) - clip->y; - clip->w = NK_MAX(0, clip->w); - clip->h = NK_MAX(0, clip->h); + for (i = len - 1; i != 0; --i) { + c[i] = nk_utf_encode_byte(u, 0); + u >>= 6; + } + c[0] = nk_utf_encode_byte(u, len); + return len; } - -NK_API void -nk_triangle_from_direction(struct nk_vec2 *result, struct nk_rect r, - float pad_x, float pad_y, enum nk_heading direction) +NK_API int +nk_utf_len(const char *str, int len) { - float w_half, h_half; - NK_ASSERT(result); - - r.w = NK_MAX(2 * pad_x, r.w); - r.h = NK_MAX(2 * pad_y, r.h); - r.w = r.w - 2 * pad_x; - r.h = r.h - 2 * pad_y; - - r.x = r.x + pad_x; - r.y = r.y + pad_y; + const char *text; + int glyphs = 0; + int text_len; + int glyph_len; + int src_len = 0; + nk_rune unicode; - w_half = r.w / 2.0f; - h_half = r.h / 2.0f; + NK_ASSERT(str); + if (!str || !len) return 0; - if (direction == NK_UP) { - result[0] = nk_vec2(r.x + w_half, r.y); - result[1] = nk_vec2(r.x + r.w, r.y + r.h); - result[2] = nk_vec2(r.x, r.y + r.h); - } else if (direction == NK_RIGHT) { - result[0] = nk_vec2(r.x, r.y); - result[1] = nk_vec2(r.x + r.w, r.y + h_half); - result[2] = nk_vec2(r.x, r.y + r.h); - } else if (direction == NK_DOWN) { - result[0] = nk_vec2(r.x, r.y); - result[1] = nk_vec2(r.x + r.w, r.y); - result[2] = nk_vec2(r.x + w_half, r.y + r.h); - } else { - result[0] = nk_vec2(r.x, r.y + h_half); - result[1] = nk_vec2(r.x + r.w, r.y); - result[2] = nk_vec2(r.x + r.w, r.y + r.h); + text = str; + text_len = len; + glyph_len = nk_utf_decode(text, &unicode, text_len); + while (glyph_len && src_len < len) { + glyphs++; + src_len = src_len + glyph_len; + glyph_len = nk_utf_decode(text + src_len, &unicode, text_len - src_len); } + return glyphs; } - -NK_INTERN int -nk_text_clamp(const struct nk_user_font *font, const char *text, - int text_len, float space, int *glyphs, float *text_width, - nk_rune *sep_list, int sep_count) +NK_API const char* +nk_utf_at(const char *buffer, int length, int index, + nk_rune *unicode, int *len) { int i = 0; + int src_len = 0; int glyph_len = 0; - float last_width = 0; - nk_rune unicode = 0; - float width = 0; - int len = 0; - int g = 0; - float s; + const char *text; + int text_len; - int sep_len = 0; - int sep_g = 0; - float sep_width = 0; - sep_count = NK_MAX(sep_count,0); - - glyph_len = nk_utf_decode(text, &unicode, text_len); - while (glyph_len && (width < space) && (len < text_len)) { - len += glyph_len; - s = font->width(font->userdata, font->height, text, len); - for (i = 0; i < sep_count; ++i) { - if (unicode != sep_list[i]) continue; - sep_width = last_width = width; - sep_g = g+1; - sep_len = len; - break; - } - if (i == sep_count){ - last_width = sep_width = width; - sep_g = g+1; - } - width = s; - glyph_len = nk_utf_decode(&text[len], &unicode, text_len - len); - g++; - } - if (len >= text_len) { - *glyphs = g; - *text_width = last_width; - return len; - } else { - *glyphs = sep_g; - *text_width = sep_width; - return (!sep_len) ? len: sep_len; - } -} - -enum {NK_DO_NOT_STOP_ON_NEW_LINE, NK_STOP_ON_NEW_LINE}; -NK_INTERN struct nk_vec2 -nk_text_calculate_text_bounds(const struct nk_user_font *font, - const char *begin, int byte_len, float row_height, const char **remaining, - struct nk_vec2 *out_offset, int *glyphs, int op) -{ - float line_height = row_height; - struct nk_vec2 text_size = nk_vec2(0,0); - float line_width = 0.0f; - - float glyph_width; - int glyph_len = 0; - nk_rune unicode = 0; - int text_len = 0; - if (!begin || byte_len <= 0 || !font) - return nk_vec2(0,row_height); - - glyph_len = nk_utf_decode(begin, &unicode, byte_len); - if (!glyph_len) return text_size; - glyph_width = font->width(font->userdata, font->height, begin, glyph_len); - - *glyphs = 0; - while ((text_len < byte_len) && glyph_len) { - if (unicode == '\n') { - text_size.x = NK_MAX(text_size.x, line_width); - text_size.y += line_height; - line_width = 0; - *glyphs+=1; - if (op == NK_STOP_ON_NEW_LINE) - break; - - text_len++; - glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); - continue; - } - - if (unicode == '\r') { - text_len++; - *glyphs+=1; - glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); - continue; - } - - *glyphs = *glyphs + 1; - text_len += glyph_len; - line_width += (float)glyph_width; - glyph_len = nk_utf_decode(begin + text_len, &unicode, byte_len-text_len); - glyph_width = font->width(font->userdata, font->height, begin+text_len, glyph_len); - continue; - } - - if (text_size.x < line_width) - text_size.x = line_width; - if (out_offset) - *out_offset = nk_vec2(line_width, text_size.y + line_height); - if (line_width > 0 || text_size.y == 0.0f) - text_size.y += line_height; - if (remaining) - *remaining = begin+text_len; - return text_size; -} - -/* ============================================================== - * - * UTF-8 - * - * ===============================================================*/ -NK_GLOBAL const nk_byte nk_utfbyte[NK_UTF_SIZE+1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; -NK_GLOBAL const nk_byte nk_utfmask[NK_UTF_SIZE+1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; -NK_GLOBAL const nk_uint nk_utfmin[NK_UTF_SIZE+1] = {0, 0, 0x80, 0x800, 0x10000}; -NK_GLOBAL const nk_uint nk_utfmax[NK_UTF_SIZE+1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; - -NK_INTERN int -nk_utf_validate(nk_rune *u, int i) -{ - NK_ASSERT(u); - if (!u) return 0; - if (!NK_BETWEEN(*u, nk_utfmin[i], nk_utfmax[i]) || - NK_BETWEEN(*u, 0xD800, 0xDFFF)) - *u = NK_UTF_INVALID; - for (i = 1; *u > nk_utfmax[i]; ++i); - return i; -} - -NK_INTERN nk_rune -nk_utf_decode_byte(char c, int *i) -{ - NK_ASSERT(i); - if (!i) return 0; - for(*i = 0; *i < (int)NK_LEN(nk_utfmask); ++(*i)) { - if (((nk_byte)c & nk_utfmask[*i]) == nk_utfbyte[*i]) - return (nk_byte)(c & ~nk_utfmask[*i]); - } - return 0; -} - -NK_API int -nk_utf_decode(const char *c, nk_rune *u, int clen) -{ - int i, j, len, type=0; - nk_rune udecoded; - - NK_ASSERT(c); - NK_ASSERT(u); - - if (!c || !u) return 0; - if (!clen) return 0; - *u = NK_UTF_INVALID; - - udecoded = nk_utf_decode_byte(c[0], &len); - if (!NK_BETWEEN(len, 1, NK_UTF_SIZE)) - return 1; - - for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { - udecoded = (udecoded << 6) | nk_utf_decode_byte(c[i], &type); - if (type != 0) - return j; - } - if (j < len) - return 0; - *u = udecoded; - nk_utf_validate(u, len); - return len; -} - -NK_INTERN char -nk_utf_encode_byte(nk_rune u, int i) -{ - return (char)((nk_utfbyte[i]) | ((nk_byte)u & ~nk_utfmask[i])); -} - -NK_API int -nk_utf_encode(nk_rune u, char *c, int clen) -{ - int len, i; - len = nk_utf_validate(&u, 0); - if (clen < len || !len || len > NK_UTF_SIZE) - return 0; - - for (i = len - 1; i != 0; --i) { - c[i] = nk_utf_encode_byte(u, 0); - u >>= 6; - } - c[0] = nk_utf_encode_byte(u, len); - return len; -} - -NK_API int -nk_utf_len(const char *str, int len) -{ - const char *text; - int glyphs = 0; - int text_len; - int glyph_len; - int src_len = 0; - nk_rune unicode; - - NK_ASSERT(str); - if (!str || !len) return 0; - - text = str; - text_len = len; - glyph_len = nk_utf_decode(text, &unicode, text_len); - while (glyph_len && src_len < len) { - glyphs++; - src_len = src_len + glyph_len; - glyph_len = nk_utf_decode(text + src_len, &unicode, text_len - src_len); - } - return glyphs; -} - -NK_API const char* -nk_utf_at(const char *buffer, int length, int index, - nk_rune *unicode, int *len) -{ - int i = 0; - int src_len = 0; - int glyph_len = 0; - const char *text; - int text_len; - - NK_ASSERT(buffer); - NK_ASSERT(unicode); - NK_ASSERT(len); + NK_ASSERT(buffer); + NK_ASSERT(unicode); + NK_ASSERT(len); if (!buffer || !unicode || !len) return 0; if (index < 0) { @@ -6487,17 +7908,29 @@ nk_utf_at(const char *buffer, int length, int index, return buffer + src_len; } + + + + /* ============================================================== * * BUFFER * * ===============================================================*/ #ifdef NK_INCLUDE_DEFAULT_ALLOCATOR -NK_INTERN void* nk_malloc(nk_handle unused, void *old,nk_size size) -{NK_UNUSED(unused); NK_UNUSED(old); return malloc(size);} -NK_INTERN void nk_mfree(nk_handle unused, void *ptr) -{NK_UNUSED(unused); free(ptr);} - +NK_LIB void* +nk_malloc(nk_handle unused, void *old,nk_size size) +{ + NK_UNUSED(unused); + NK_UNUSED(old); + return malloc(size); +} +NK_LIB void +nk_mfree(nk_handle unused, void *ptr) +{ + NK_UNUSED(unused); + free(ptr); +} NK_API void nk_buffer_init_default(struct nk_buffer *buffer) { @@ -6526,7 +7959,6 @@ nk_buffer_init(struct nk_buffer *b, const struct nk_allocator *a, b->grow_factor = 2.0f; b->pool = *a; } - NK_API void nk_buffer_init_fixed(struct nk_buffer *b, void *m, nk_size size) { @@ -6541,9 +7973,9 @@ nk_buffer_init_fixed(struct nk_buffer *b, void *m, nk_size size) b->memory.size = size; b->size = size; } - -NK_INTERN void* -nk_buffer_align(void *unaligned, nk_size align, nk_size *alignment, +NK_LIB void* +nk_buffer_align(void *unaligned, + nk_size align, nk_size *alignment, enum nk_buffer_allocation_type type) { void *memory = 0; @@ -6571,8 +8003,7 @@ nk_buffer_align(void *unaligned, nk_size align, nk_size *alignment, } return memory; } - -NK_INTERN void* +NK_LIB void* nk_buffer_realloc(struct nk_buffer *b, nk_size capacity, nk_size *size) { void *temp; @@ -6610,8 +8041,7 @@ nk_buffer_realloc(struct nk_buffer *b, nk_size capacity, nk_size *size) } return temp; } - -NK_INTERN void* +NK_LIB void* nk_buffer_alloc(struct nk_buffer *b, enum nk_buffer_allocation_type type, nk_size size, nk_size align) { @@ -6663,7 +8093,6 @@ nk_buffer_alloc(struct nk_buffer *b, enum nk_buffer_allocation_type type, b->calls++; return memory; } - NK_API void nk_buffer_push(struct nk_buffer *b, enum nk_buffer_allocation_type type, const void *memory, nk_size size, nk_size align) @@ -6672,7 +8101,6 @@ nk_buffer_push(struct nk_buffer *b, enum nk_buffer_allocation_type type, if (!mem) return; NK_MEMCPY(mem, memory, size); } - NK_API void nk_buffer_mark(struct nk_buffer *buffer, enum nk_buffer_allocation_type type) { @@ -6683,7 +8111,6 @@ nk_buffer_mark(struct nk_buffer *buffer, enum nk_buffer_allocation_type type) buffer->marker[type].offset = buffer->size; else buffer->marker[type].offset = buffer->allocated; } - NK_API void nk_buffer_reset(struct nk_buffer *buffer, enum nk_buffer_allocation_type type) { @@ -6705,7 +8132,6 @@ nk_buffer_reset(struct nk_buffer *buffer, enum nk_buffer_allocation_type type) buffer->marker[type].active = nk_false; } } - NK_API void nk_buffer_clear(struct nk_buffer *b) { @@ -6716,7 +8142,6 @@ nk_buffer_clear(struct nk_buffer *b) b->calls = 0; b->needed = 0; } - NK_API void nk_buffer_free(struct nk_buffer *b) { @@ -6727,7 +8152,6 @@ nk_buffer_free(struct nk_buffer *b) NK_ASSERT(b->pool.free); b->pool.free(b->pool.userdata, b->memory.ptr); } - NK_API void nk_buffer_info(struct nk_memory_status *s, struct nk_buffer *b) { @@ -6740,7 +8164,6 @@ nk_buffer_info(struct nk_memory_status *s, struct nk_buffer *b) s->memory = b->memory.ptr; s->calls = b->calls; } - NK_API void* nk_buffer_memory(struct nk_buffer *buffer) { @@ -6748,7 +8171,6 @@ nk_buffer_memory(struct nk_buffer *buffer) if (!buffer) return 0; return buffer->memory.ptr; } - NK_API const void* nk_buffer_memory_const(const struct nk_buffer *buffer) { @@ -6756,7 +8178,6 @@ nk_buffer_memory_const(const struct nk_buffer *buffer) if (!buffer) return 0; return buffer->memory.ptr; } - NK_API nk_size nk_buffer_total(struct nk_buffer *buffer) { @@ -6765,13 +8186,15 @@ nk_buffer_total(struct nk_buffer *buffer) return buffer->memory.size; } -/* - * ============================================================== + + + + +/* =============================================================== * - * STRING + * STRING * - * =============================================================== - */ + * ===============================================================*/ #ifdef NK_INCLUDE_DEFAULT_ALLOCATOR NK_API void nk_str_init_default(struct nk_str *str) @@ -6791,14 +8214,12 @@ nk_str_init(struct nk_str *str, const struct nk_allocator *alloc, nk_size size) nk_buffer_init(&str->buffer, alloc, size); str->len = 0; } - NK_API void nk_str_init_fixed(struct nk_str *str, void *memory, nk_size size) { nk_buffer_init_fixed(&str->buffer, memory, size); str->len = 0; } - NK_API int nk_str_append_text_char(struct nk_str *s, const char *str, int len) { @@ -6812,13 +8233,11 @@ nk_str_append_text_char(struct nk_str *s, const char *str, int len) s->len += nk_utf_len(str, len); return len; } - NK_API int nk_str_append_str_char(struct nk_str *s, const char *str) { return nk_str_append_text_char(s, str, nk_strlen(str)); } - NK_API int nk_str_append_text_utf8(struct nk_str *str, const char *text, int len) { @@ -6831,7 +8250,6 @@ nk_str_append_text_utf8(struct nk_str *str, const char *text, int len) nk_str_append_text_char(str, text, byte_len); return len; } - NK_API int nk_str_append_str_utf8(struct nk_str *str, const char *text) { @@ -6851,7 +8269,6 @@ nk_str_append_str_utf8(struct nk_str *str, const char *text) nk_str_append_text_char(str, text, byte_len); return runes; } - NK_API int nk_str_append_text_runes(struct nk_str *str, const nk_rune *text, int len) { @@ -6868,7 +8285,6 @@ nk_str_append_text_runes(struct nk_str *str, const nk_rune *text, int len) } return len; } - NK_API int nk_str_append_str_runes(struct nk_str *str, const nk_rune *runes) { @@ -6884,7 +8300,6 @@ nk_str_append_str_runes(struct nk_str *str, const nk_rune *runes) } return i; } - NK_API int nk_str_insert_at_char(struct nk_str *s, int pos, const char *str, int len) { @@ -6920,7 +8335,6 @@ nk_str_insert_at_char(struct nk_str *s, int pos, const char *str, int len) s->len = nk_utf_len((char *)s->buffer.memory.ptr, (int)s->buffer.allocated); return 1; } - NK_API int nk_str_insert_at_rune(struct nk_str *str, int pos, const char *cstr, int len) { @@ -6940,19 +8354,16 @@ nk_str_insert_at_rune(struct nk_str *str, int pos, const char *cstr, int len) if (!begin) return 0; return nk_str_insert_at_char(str, (int)(begin - buffer), cstr, len); } - NK_API int nk_str_insert_text_char(struct nk_str *str, int pos, const char *text, int len) { return nk_str_insert_text_utf8(str, pos, text, len); } - NK_API int nk_str_insert_str_char(struct nk_str *str, int pos, const char *text) { return nk_str_insert_text_utf8(str, pos, text, nk_strlen(text)); } - NK_API int nk_str_insert_text_utf8(struct nk_str *str, int pos, const char *text, int len) { @@ -6968,7 +8379,6 @@ nk_str_insert_text_utf8(struct nk_str *str, int pos, const char *text, int len) nk_str_insert_at_rune(str, pos, text, byte_len); return len; } - NK_API int nk_str_insert_str_utf8(struct nk_str *str, int pos, const char *text) { @@ -6988,7 +8398,6 @@ nk_str_insert_str_utf8(struct nk_str *str, int pos, const char *text) nk_str_insert_at_rune(str, pos, text, byte_len); return runes; } - NK_API int nk_str_insert_text_runes(struct nk_str *str, int pos, const nk_rune *runes, int len) { @@ -7005,7 +8414,6 @@ nk_str_insert_text_runes(struct nk_str *str, int pos, const nk_rune *runes, int } return len; } - NK_API int nk_str_insert_str_runes(struct nk_str *str, int pos, const nk_rune *runes) { @@ -7021,7 +8429,6 @@ nk_str_insert_str_runes(struct nk_str *str, int pos, const nk_rune *runes) } return i; } - NK_API void nk_str_remove_chars(struct nk_str *s, int len) { @@ -7032,7 +8439,6 @@ nk_str_remove_chars(struct nk_str *s, int len) s->buffer.allocated -= (nk_size)len; s->len = nk_utf_len((char *)s->buffer.memory.ptr, (int)s->buffer.allocated); } - NK_API void nk_str_remove_runes(struct nk_str *str, int len) { @@ -7054,7 +8460,6 @@ nk_str_remove_runes(struct nk_str *str, int len) end = (const char*)str->buffer.memory.ptr + str->buffer.allocated; nk_str_remove_chars(str, (int)(end-begin)+1); } - NK_API void nk_str_delete_chars(struct nk_str *s, int pos, int len) { @@ -7072,7 +8477,6 @@ nk_str_delete_chars(struct nk_str *s, int pos, int len) } else nk_str_remove_chars(s, len); s->len = nk_utf_len((char *)s->buffer.memory.ptr, (int)s->buffer.allocated); } - NK_API void nk_str_delete_runes(struct nk_str *s, int pos, int len) { @@ -7097,7 +8501,6 @@ nk_str_delete_runes(struct nk_str *s, int pos, int len) if (!end) return; nk_str_delete_chars(s, (int)(begin - temp), (int)(end - begin)); } - NK_API char* nk_str_at_char(struct nk_str *s, int pos) { @@ -7105,7 +8508,6 @@ nk_str_at_char(struct nk_str *s, int pos) if (!s || pos > (int)s->buffer.allocated) return 0; return nk_ptr_add(char, s->buffer.memory.ptr, pos); } - NK_API char* nk_str_at_rune(struct nk_str *str, int pos, nk_rune *unicode, int *len) { @@ -7142,7 +8544,6 @@ nk_str_at_rune(struct nk_str *str, int pos, nk_rune *unicode, int *len) if (i != pos) return 0; return text + src_len; } - NK_API const char* nk_str_at_char_const(const struct nk_str *s, int pos) { @@ -7150,7 +8551,6 @@ nk_str_at_char_const(const struct nk_str *s, int pos) if (!s || pos > (int)s->buffer.allocated) return 0; return nk_ptr_add(char, s->buffer.memory.ptr, pos); } - NK_API const char* nk_str_at_const(const struct nk_str *str, int pos, nk_rune *unicode, int *len) { @@ -7187,7 +8587,6 @@ nk_str_at_const(const struct nk_str *str, int pos, nk_rune *unicode, int *len) if (i != pos) return 0; return text + src_len; } - NK_API nk_rune nk_str_rune_at(const struct nk_str *str, int pos) { @@ -7196,7 +8595,6 @@ nk_str_rune_at(const struct nk_str *str, int pos) nk_str_at_const(str, pos, &unicode, &len); return unicode; } - NK_API char* nk_str_get(struct nk_str *s) { @@ -7204,7 +8602,6 @@ nk_str_get(struct nk_str *s) if (!s || !s->len || !s->buffer.allocated) return 0; return (char*)s->buffer.memory.ptr; } - NK_API const char* nk_str_get_const(const struct nk_str *s) { @@ -7212,7 +8609,6 @@ nk_str_get_const(const struct nk_str *s) if (!s || !s->len || !s->buffer.allocated) return 0; return (const char*)s->buffer.memory.ptr; } - NK_API int nk_str_len(struct nk_str *s) { @@ -7220,7 +8616,6 @@ nk_str_len(struct nk_str *s) if (!s || !s->len || !s->buffer.allocated) return 0; return s->len; } - NK_API int nk_str_len_char(struct nk_str *s) { @@ -7228,7 +8623,6 @@ nk_str_len_char(struct nk_str *s) if (!s || !s->len || !s->buffer.allocated) return 0; return (int)s->buffer.allocated; } - NK_API void nk_str_clear(struct nk_str *str) { @@ -7236,7 +8630,6 @@ nk_str_clear(struct nk_str *str) nk_buffer_clear(&str->buffer); str->len = 0; } - NK_API void nk_str_free(struct nk_str *str) { @@ -7245,42 +8638,42 @@ nk_str_free(struct nk_str *str) str->len = 0; } -/* - * ============================================================== + + + + +/* ============================================================== * - * Command buffer + * DRAW * - * =============================================================== -*/ -NK_INTERN void -nk_command_buffer_init(struct nk_command_buffer *cmdbuf, - struct nk_buffer *buffer, enum nk_command_clipping clip) + * ===============================================================*/ +NK_LIB void +nk_command_buffer_init(struct nk_command_buffer *cb, + struct nk_buffer *b, enum nk_command_clipping clip) { - NK_ASSERT(cmdbuf); - NK_ASSERT(buffer); - if (!cmdbuf || !buffer) return; - cmdbuf->base = buffer; - cmdbuf->use_clipping = clip; - cmdbuf->begin = buffer->allocated; - cmdbuf->end = buffer->allocated; - cmdbuf->last = buffer->allocated; + NK_ASSERT(cb); + NK_ASSERT(b); + if (!cb || !b) return; + cb->base = b; + cb->use_clipping = (int)clip; + cb->begin = b->allocated; + cb->end = b->allocated; + cb->last = b->allocated; } - -NK_INTERN void -nk_command_buffer_reset(struct nk_command_buffer *buffer) +NK_LIB void +nk_command_buffer_reset(struct nk_command_buffer *b) { - NK_ASSERT(buffer); - if (!buffer) return; - buffer->begin = 0; - buffer->end = 0; - buffer->last = 0; - buffer->clip = nk_null_rect; + NK_ASSERT(b); + if (!b) return; + b->begin = 0; + b->end = 0; + b->last = 0; + b->clip = nk_null_rect; #ifdef NK_INCLUDE_COMMAND_USERDATA - buffer->userdata.ptr = 0; + b->userdata.ptr = 0; #endif } - -NK_INTERN void* +NK_LIB void* nk_command_buffer_push(struct nk_command_buffer* b, enum nk_command_type t, nk_size size) { @@ -7313,7 +8706,6 @@ nk_command_buffer_push(struct nk_command_buffer* b, b->end = cmd->next; return cmd; } - NK_API void nk_push_scissor(struct nk_command_buffer *b, struct nk_rect r) { @@ -7334,7 +8726,6 @@ nk_push_scissor(struct nk_command_buffer *b, struct nk_rect r) cmd->w = (unsigned short)NK_MAX(0, r.w); cmd->h = (unsigned short)NK_MAX(0, r.h); } - NK_API void nk_stroke_line(struct nk_command_buffer *b, float x0, float y0, float x1, float y1, float line_thickness, struct nk_color c) @@ -7352,7 +8743,6 @@ nk_stroke_line(struct nk_command_buffer *b, float x0, float y0, cmd->end.y = (short)y1; cmd->color = c; } - NK_API void nk_stroke_curve(struct nk_command_buffer *b, float ax, float ay, float ctrl0x, float ctrl0y, float ctrl1x, float ctrl1y, @@ -7376,7 +8766,6 @@ nk_stroke_curve(struct nk_command_buffer *b, float ax, float ay, cmd->end.y = (short)by; cmd->color = col; } - NK_API void nk_stroke_rect(struct nk_command_buffer *b, struct nk_rect rect, float rounding, float line_thickness, struct nk_color c) @@ -7400,7 +8789,6 @@ nk_stroke_rect(struct nk_command_buffer *b, struct nk_rect rect, cmd->h = (unsigned short)NK_MAX(0, rect.h); cmd->color = c; } - NK_API void nk_fill_rect(struct nk_command_buffer *b, struct nk_rect rect, float rounding, struct nk_color c) @@ -7424,7 +8812,6 @@ nk_fill_rect(struct nk_command_buffer *b, struct nk_rect rect, cmd->h = (unsigned short)NK_MAX(0, rect.h); cmd->color = c; } - NK_API void nk_fill_rect_multi_color(struct nk_command_buffer *b, struct nk_rect rect, struct nk_color left, struct nk_color top, struct nk_color right, @@ -7451,7 +8838,6 @@ nk_fill_rect_multi_color(struct nk_command_buffer *b, struct nk_rect rect, cmd->right = right; cmd->bottom = bottom; } - NK_API void nk_stroke_circle(struct nk_command_buffer *b, struct nk_rect r, float line_thickness, struct nk_color c) @@ -7474,7 +8860,6 @@ nk_stroke_circle(struct nk_command_buffer *b, struct nk_rect r, cmd->h = (unsigned short)NK_MAX(r.h, 0); cmd->color = c; } - NK_API void nk_fill_circle(struct nk_command_buffer *b, struct nk_rect r, struct nk_color c) { @@ -7496,7 +8881,6 @@ nk_fill_circle(struct nk_command_buffer *b, struct nk_rect r, struct nk_color c) cmd->h = (unsigned short)NK_MAX(r.h, 0); cmd->color = c; } - NK_API void nk_stroke_arc(struct nk_command_buffer *b, float cx, float cy, float radius, float a_min, float a_max, float line_thickness, struct nk_color c) @@ -7514,7 +8898,6 @@ nk_stroke_arc(struct nk_command_buffer *b, float cx, float cy, float radius, cmd->a[1] = a_max; cmd->color = c; } - NK_API void nk_fill_arc(struct nk_command_buffer *b, float cx, float cy, float radius, float a_min, float a_max, struct nk_color c) @@ -7532,7 +8915,6 @@ nk_fill_arc(struct nk_command_buffer *b, float cx, float cy, float radius, cmd->a[1] = a_max; cmd->color = c; } - NK_API void nk_stroke_triangle(struct nk_command_buffer *b, float x0, float y0, float x1, float y1, float x2, float y2, float line_thickness, struct nk_color c) @@ -7560,7 +8942,6 @@ nk_stroke_triangle(struct nk_command_buffer *b, float x0, float y0, float x1, cmd->c.y = (short)y2; cmd->color = c; } - NK_API void nk_fill_triangle(struct nk_command_buffer *b, float x0, float y0, float x1, float y1, float x2, float y2, struct nk_color c) @@ -7588,7 +8969,6 @@ nk_fill_triangle(struct nk_command_buffer *b, float x0, float y0, float x1, cmd->c.y = (short)y2; cmd->color = c; } - NK_API void nk_stroke_polygon(struct nk_command_buffer *b, float *points, int point_count, float line_thickness, struct nk_color col) @@ -7610,7 +8990,6 @@ nk_stroke_polygon(struct nk_command_buffer *b, float *points, int point_count, cmd->points[i].y = (short)points[i*2+1]; } } - NK_API void nk_fill_polygon(struct nk_command_buffer *b, float *points, int point_count, struct nk_color col) @@ -7632,7 +9011,6 @@ nk_fill_polygon(struct nk_command_buffer *b, float *points, int point_count, cmd->points[i].y = (short)points[i*2+1]; } } - NK_API void nk_stroke_polyline(struct nk_command_buffer *b, float *points, int point_count, float line_thickness, struct nk_color col) @@ -7654,7 +9032,6 @@ nk_stroke_polyline(struct nk_command_buffer *b, float *points, int point_count, cmd->points[i].y = (short)points[i*2+1]; } } - NK_API void nk_draw_image(struct nk_command_buffer *b, struct nk_rect r, const struct nk_image *img, struct nk_color col) @@ -7678,7 +9055,6 @@ nk_draw_image(struct nk_command_buffer *b, struct nk_rect r, cmd->img = *img; cmd->col = col; } - NK_API void nk_push_custom(struct nk_command_buffer *b, struct nk_rect r, nk_command_custom_callback cb, nk_handle usr) @@ -7702,7 +9078,6 @@ nk_push_custom(struct nk_command_buffer *b, struct nk_rect r, cmd->callback_data = usr; cmd->callback = cb; } - NK_API void nk_draw_text(struct nk_command_buffer *b, struct nk_rect r, const char *string, int length, const struct nk_user_font *font, @@ -7745,9 +9120,13 @@ nk_draw_text(struct nk_command_buffer *b, struct nk_rect r, cmd->string[length] = '\0'; } -/* ============================================================== + + + + +/* =============================================================== * - * DRAW LIST + * VERTEX * * ===============================================================*/ #ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT @@ -7764,7 +9143,6 @@ nk_draw_list_init(struct nk_draw_list *list) list->circle_vtx[i].y = (float)NK_SIN(a); } } - NK_API void nk_draw_list_setup(struct nk_draw_list *canvas, const struct nk_convert_config *config, struct nk_buffer *cmds, struct nk_buffer *vertices, struct nk_buffer *elements, @@ -7785,8 +9163,14 @@ nk_draw_list_setup(struct nk_draw_list *canvas, const struct nk_convert_config * canvas->line_AA = line_aa; canvas->shape_AA = shape_aa; canvas->clip_rect = nk_null_rect; -} + canvas->cmd_offset = 0; + canvas->element_count = 0; + canvas->vertex_count = 0; + canvas->cmd_offset = 0; + canvas->cmd_count = 0; + canvas->path_count = 0; +} NK_API const struct nk_draw_command* nk__draw_list_begin(const struct nk_draw_list *canvas, const struct nk_buffer *buffer) { @@ -7803,7 +9187,6 @@ nk__draw_list_begin(const struct nk_draw_list *canvas, const struct nk_buffer *b cmd = nk_ptr_add(const struct nk_draw_command, memory, offset); return cmd; } - NK_API const struct nk_draw_command* nk__draw_list_end(const struct nk_draw_list *canvas, const struct nk_buffer *buffer) { @@ -7824,7 +9207,6 @@ nk__draw_list_end(const struct nk_draw_list *canvas, const struct nk_buffer *buf end -= (canvas->cmd_count-1); return end; } - NK_API const struct nk_draw_command* nk__draw_list_next(const struct nk_draw_command *cmd, const struct nk_buffer *buffer, const struct nk_draw_list *canvas) @@ -7839,29 +9221,6 @@ nk__draw_list_next(const struct nk_draw_command *cmd, if (cmd <= end) return 0; return (cmd-1); } - -NK_API void -nk_draw_list_clear(struct nk_draw_list *list) -{ - NK_ASSERT(list); - if (!list) return; - if (list->buffer) - nk_buffer_clear(list->buffer); - if (list->vertices) - nk_buffer_clear(list->vertices); - if (list->elements) - nk_buffer_clear(list->elements); - - list->element_count = 0; - list->vertex_count = 0; - list->cmd_offset = 0; - list->cmd_count = 0; - list->path_count = 0; - list->vertices = 0; - list->elements = 0; - list->clip_rect = nk_null_rect; -} - NK_INTERN struct nk_vec2* nk_draw_list_alloc_path(struct nk_draw_list *list, int count) { @@ -7880,7 +9239,6 @@ nk_draw_list_alloc_path(struct nk_draw_list *list, int count) list->path_count += (unsigned int)count; return points; } - NK_INTERN struct nk_vec2 nk_draw_list_path_last(struct nk_draw_list *list) { @@ -7892,7 +9250,6 @@ nk_draw_list_path_last(struct nk_draw_list *list) point += (list->path_count-1); return *point; } - NK_INTERN struct nk_draw_command* nk_draw_list_push_command(struct nk_draw_list *list, struct nk_rect clip, nk_handle texture) @@ -7924,7 +9281,6 @@ nk_draw_list_push_command(struct nk_draw_list *list, struct nk_rect clip, list->clip_rect = clip; return cmd; } - NK_INTERN struct nk_draw_command* nk_draw_list_command_last(struct nk_draw_list *list) { @@ -7938,7 +9294,6 @@ nk_draw_list_command_last(struct nk_draw_list *list) cmd = nk_ptr_add(struct nk_draw_command, memory, size - list->cmd_offset); return (cmd - (list->cmd_count-1)); } - NK_INTERN void nk_draw_list_add_clip(struct nk_draw_list *list, struct nk_rect rect) { @@ -7953,7 +9308,6 @@ nk_draw_list_add_clip(struct nk_draw_list *list, struct nk_rect rect) nk_draw_list_push_command(list, rect, prev->texture); } } - NK_INTERN void nk_draw_list_push_image(struct nk_draw_list *list, nk_handle texture) { @@ -7963,13 +9317,18 @@ nk_draw_list_push_image(struct nk_draw_list *list, nk_handle texture) nk_draw_list_push_command(list, nk_null_rect, texture); } else { struct nk_draw_command *prev = nk_draw_list_command_last(list); - if (prev->elem_count == 0) + if (prev->elem_count == 0) { prev->texture = texture; - else if (prev->texture.id != texture.id) - nk_draw_list_push_command(list, prev->clip_rect, texture); + #ifdef NK_INCLUDE_COMMAND_USERDATA + prev->userdata = list->userdata; + #endif + } else if (prev->texture.id != texture.id + #ifdef NK_INCLUDE_COMMAND_USERDATA + || prev->userdata.id != list->userdata.id + #endif + ) nk_draw_list_push_command(list, prev->clip_rect, texture); } } - #ifdef NK_INCLUDE_COMMAND_USERDATA NK_API void nk_draw_list_push_userdata(struct nk_draw_list *list, nk_handle userdata) @@ -7977,7 +9336,6 @@ nk_draw_list_push_userdata(struct nk_draw_list *list, nk_handle userdata) list->userdata = userdata; } #endif - NK_INTERN void* nk_draw_list_alloc_vertices(struct nk_draw_list *list, nk_size count) { @@ -7988,9 +9346,20 @@ nk_draw_list_alloc_vertices(struct nk_draw_list *list, nk_size count) list->config.vertex_size*count, list->config.vertex_alignment); if (!vtx) return 0; list->vertex_count += (unsigned int)count; + + /* This assert triggers because your are drawing a lot of stuff and nuklear + * defined `nk_draw_index` as `nk_ushort` to safe space be default. + * + * So you reached the maximum number of indicies or rather vertexes. + * To solve this issue please change typdef `nk_draw_index` to `nk_uint` + * and don't forget to specify the new element size in your drawing + * backend (OpenGL, DirectX, ...). For example in OpenGL for `glDrawElements` + * instead of specifing `GL_UNSIGNED_SHORT` you have to define `GL_UNSIGNED_INT`. + * Sorry for the inconvenience. */ + NK_ASSERT((sizeof(nk_draw_index) == 2 && list->vertex_count < NK_USHORT_MAX && + "To many verticies for 16-bit vertex indicies. Please read comment above on how to solve this problem")); return vtx; } - NK_INTERN nk_draw_index* nk_draw_list_alloc_elements(struct nk_draw_list *list, nk_size count) { @@ -8009,7 +9378,6 @@ nk_draw_list_alloc_elements(struct nk_draw_list *list, nk_size count) cmd->elem_count += (unsigned int)count; return ids; } - NK_INTERN int nk_draw_vertex_layout_element_is_end_of_layout( const struct nk_draw_vertex_layout_element *element) @@ -8017,78 +9385,81 @@ nk_draw_vertex_layout_element_is_end_of_layout( return (element->attribute == NK_VERTEX_ATTRIBUTE_COUNT || element->format == NK_FORMAT_COUNT); } - NK_INTERN void -nk_draw_vertex_color(void *attribute, const float *values, +nk_draw_vertex_color(void *attr, const float *vals, enum nk_draw_vertex_layout_format format) { /* if this triggers you tried to provide a value format for a color */ + float val[4]; NK_ASSERT(format >= NK_FORMAT_COLOR_BEGIN); NK_ASSERT(format <= NK_FORMAT_COLOR_END); if (format < NK_FORMAT_COLOR_BEGIN || format > NK_FORMAT_COLOR_END) return; + val[0] = NK_SATURATE(vals[0]); + val[1] = NK_SATURATE(vals[1]); + val[2] = NK_SATURATE(vals[2]); + val[3] = NK_SATURATE(vals[3]); + switch (format) { default: NK_ASSERT(0 && "Invalid vertex layout color format"); break; case NK_FORMAT_R8G8B8A8: case NK_FORMAT_R8G8B8: { - struct nk_color col = nk_rgba_fv(values); - NK_MEMCPY(attribute, &col.r, sizeof(col)); + struct nk_color col = nk_rgba_fv(val); + NK_MEMCPY(attr, &col.r, sizeof(col)); } break; case NK_FORMAT_B8G8R8A8: { - struct nk_color col = nk_rgba_fv(values); + struct nk_color col = nk_rgba_fv(val); struct nk_color bgra = nk_rgba(col.b, col.g, col.r, col.a); - NK_MEMCPY(attribute, &bgra, sizeof(bgra)); + NK_MEMCPY(attr, &bgra, sizeof(bgra)); } break; case NK_FORMAT_R16G15B16: { nk_ushort col[3]; - col[0] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[0] * NK_USHORT_MAX, NK_USHORT_MAX); - col[1] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[1] * NK_USHORT_MAX, NK_USHORT_MAX); - col[2] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[2] * NK_USHORT_MAX, NK_USHORT_MAX); - NK_MEMCPY(attribute, col, sizeof(col)); + col[0] = (nk_ushort)(val[0]*(float)NK_USHORT_MAX); + col[1] = (nk_ushort)(val[1]*(float)NK_USHORT_MAX); + col[2] = (nk_ushort)(val[2]*(float)NK_USHORT_MAX); + NK_MEMCPY(attr, col, sizeof(col)); } break; case NK_FORMAT_R16G15B16A16: { nk_ushort col[4]; - col[0] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[0] * NK_USHORT_MAX, NK_USHORT_MAX); - col[1] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[1] * NK_USHORT_MAX, NK_USHORT_MAX); - col[2] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[2] * NK_USHORT_MAX, NK_USHORT_MAX); - col[3] = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[3] * NK_USHORT_MAX, NK_USHORT_MAX); - NK_MEMCPY(attribute, col, sizeof(col)); + col[0] = (nk_ushort)(val[0]*(float)NK_USHORT_MAX); + col[1] = (nk_ushort)(val[1]*(float)NK_USHORT_MAX); + col[2] = (nk_ushort)(val[2]*(float)NK_USHORT_MAX); + col[3] = (nk_ushort)(val[3]*(float)NK_USHORT_MAX); + NK_MEMCPY(attr, col, sizeof(col)); } break; case NK_FORMAT_R32G32B32: { nk_uint col[3]; - col[0] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[0] * NK_UINT_MAX, NK_UINT_MAX); - col[1] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[1] * NK_UINT_MAX, NK_UINT_MAX); - col[2] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[2] * NK_UINT_MAX, NK_UINT_MAX); - NK_MEMCPY(attribute, col, sizeof(col)); + col[0] = (nk_uint)(val[0]*(float)NK_UINT_MAX); + col[1] = (nk_uint)(val[1]*(float)NK_UINT_MAX); + col[2] = (nk_uint)(val[2]*(float)NK_UINT_MAX); + NK_MEMCPY(attr, col, sizeof(col)); } break; case NK_FORMAT_R32G32B32A32: { nk_uint col[4]; - col[0] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[0] * NK_UINT_MAX, NK_UINT_MAX); - col[1] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[1] * NK_UINT_MAX, NK_UINT_MAX); - col[2] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[2] * NK_UINT_MAX, NK_UINT_MAX); - col[3] = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[3] * NK_UINT_MAX, NK_UINT_MAX); - NK_MEMCPY(attribute, col, sizeof(col)); + col[0] = (nk_uint)(val[0]*(float)NK_UINT_MAX); + col[1] = (nk_uint)(val[1]*(float)NK_UINT_MAX); + col[2] = (nk_uint)(val[2]*(float)NK_UINT_MAX); + col[3] = (nk_uint)(val[3]*(float)NK_UINT_MAX); + NK_MEMCPY(attr, col, sizeof(col)); } break; case NK_FORMAT_R32G32B32A32_FLOAT: - NK_MEMCPY(attribute, values, sizeof(float)*4); + NK_MEMCPY(attr, val, sizeof(float)*4); break; case NK_FORMAT_R32G32B32A32_DOUBLE: { double col[4]; - col[0] = (double)NK_SATURATE(values[0]); - col[1] = (double)NK_SATURATE(values[1]); - col[2] = (double)NK_SATURATE(values[2]); - col[3] = (double)NK_SATURATE(values[3]); - NK_MEMCPY(attribute, col, sizeof(col)); + col[0] = (double)val[0]; + col[1] = (double)val[1]; + col[2] = (double)val[2]; + col[3] = (double)val[3]; + NK_MEMCPY(attr, col, sizeof(col)); } break; case NK_FORMAT_RGB32: case NK_FORMAT_RGBA32: { - struct nk_color col = nk_rgba_fv(values); + struct nk_color col = nk_rgba_fv(val); nk_uint color = nk_color_u32(col); - NK_MEMCPY(attribute, &color, sizeof(color)); - } break; - } + NK_MEMCPY(attr, &color, sizeof(color)); + } break; } } - NK_INTERN void nk_draw_vertex_element(void *dst, const float *values, int value_count, enum nk_draw_vertex_layout_format format) @@ -8102,32 +9473,32 @@ nk_draw_vertex_element(void *dst, const float *values, int value_count, switch (format) { default: NK_ASSERT(0 && "invalid vertex layout format"); break; case NK_FORMAT_SCHAR: { - char value = (char)NK_CLAMP(NK_SCHAR_MIN, values[value_index], NK_SCHAR_MAX); + char value = (char)NK_CLAMP((float)NK_SCHAR_MIN, values[value_index], (float)NK_SCHAR_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(char)); } break; case NK_FORMAT_SSHORT: { - nk_short value = (nk_short)NK_CLAMP(NK_SSHORT_MIN, values[value_index], NK_SSHORT_MAX); + nk_short value = (nk_short)NK_CLAMP((float)NK_SSHORT_MIN, values[value_index], (float)NK_SSHORT_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(value)); } break; case NK_FORMAT_SINT: { - nk_int value = (nk_int)NK_CLAMP(NK_SINT_MIN, values[value_index], NK_SINT_MAX); + nk_int value = (nk_int)NK_CLAMP((float)NK_SINT_MIN, values[value_index], (float)NK_SINT_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(nk_int)); } break; case NK_FORMAT_UCHAR: { - unsigned char value = (unsigned char)NK_CLAMP(NK_UCHAR_MIN, values[value_index], NK_UCHAR_MAX); + unsigned char value = (unsigned char)NK_CLAMP((float)NK_UCHAR_MIN, values[value_index], (float)NK_UCHAR_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(unsigned char)); } break; case NK_FORMAT_USHORT: { - nk_ushort value = (nk_ushort)NK_CLAMP(NK_USHORT_MIN, values[value_index], NK_USHORT_MAX); + nk_ushort value = (nk_ushort)NK_CLAMP((float)NK_USHORT_MIN, values[value_index], (float)NK_USHORT_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(value)); } break; case NK_FORMAT_UINT: { - nk_uint value = (nk_uint)NK_CLAMP(NK_UINT_MIN, values[value_index], NK_UINT_MAX); + nk_uint value = (nk_uint)NK_CLAMP((float)NK_UINT_MIN, values[value_index], (float)NK_UINT_MAX); NK_MEMCPY(attribute, &value, sizeof(value)); attribute = (void*)((char*)attribute + sizeof(nk_uint)); } break; @@ -8143,7 +9514,6 @@ nk_draw_vertex_element(void *dst, const float *values, int value_count, } } } - NK_INTERN void* nk_draw_vertex(void *dst, const struct nk_convert_config *config, struct nk_vec2 pos, struct nk_vec2 uv, struct nk_colorf color) @@ -8154,7 +9524,7 @@ nk_draw_vertex(void *dst, const struct nk_convert_config *config, void *address = (void*)((char*)dst + elem_iter->offset); switch (elem_iter->attribute) { case NK_VERTEX_ATTRIBUTE_COUNT: - default: NK_ASSERT(0 && "wrong element attribute"); + default: NK_ASSERT(0 && "wrong element attribute"); break; case NK_VERTEX_POSITION: nk_draw_vertex_element(address, &pos.x, 2, elem_iter->format); break; case NK_VERTEX_TEXCOORD: nk_draw_vertex_element(address, &uv.x, 2, elem_iter->format); break; case NK_VERTEX_COLOR: nk_draw_vertex_color(address, &color.r, elem_iter->format); break; @@ -8163,7 +9533,6 @@ nk_draw_vertex(void *dst, const struct nk_convert_config *config, } return result; } - NK_API void nk_draw_list_stroke_poly_line(struct nk_draw_list *list, const struct nk_vec2 *points, const unsigned int points_count, struct nk_color color, enum nk_draw_list_stroke closed, @@ -8216,7 +9585,6 @@ nk_draw_list_stroke_poly_line(struct nk_draw_list *list, const struct nk_vec2 *p nk_buffer_mark(list->vertices, NK_BUFFER_FRONT); size = pnt_size * ((thick_line) ? 5 : 3) * points_count; normals = (struct nk_vec2*) nk_buffer_alloc(list->vertices, NK_BUFFER_FRONT, size, pnt_align); - NK_ASSERT(normals); if (!normals) return; temp = normals + points_count; @@ -8405,7 +9773,6 @@ nk_draw_list_stroke_poly_line(struct nk_draw_list *list, const struct nk_vec2 *p } } } - NK_API void nk_draw_list_fill_poly_convex(struct nk_draw_list *list, const struct nk_vec2 *points, const unsigned int points_count, @@ -8454,7 +9821,6 @@ nk_draw_list_fill_poly_convex(struct nk_draw_list *list, nk_buffer_mark(list->vertices, NK_BUFFER_FRONT); size = pnt_size * points_count; normals = (struct nk_vec2*) nk_buffer_alloc(list->vertices, NK_BUFFER_FRONT, size, pnt_align); - NK_ASSERT(normals); if (!normals) return; vtx = (void*)((nk_byte*)list->vertices->memory.ptr + vertex_offset); @@ -8531,7 +9897,6 @@ nk_draw_list_fill_poly_convex(struct nk_draw_list *list, } } } - NK_API void nk_draw_list_path_clear(struct nk_draw_list *list) { @@ -8541,7 +9906,6 @@ nk_draw_list_path_clear(struct nk_draw_list *list) list->path_count = 0; list->path_offset = 0; } - NK_API void nk_draw_list_path_line_to(struct nk_draw_list *list, struct nk_vec2 pos) { @@ -8560,7 +9924,6 @@ nk_draw_list_path_line_to(struct nk_draw_list *list, struct nk_vec2 pos) if (!points) return; points[0] = pos; } - NK_API void nk_draw_list_path_arc_to_fast(struct nk_draw_list *list, struct nk_vec2 center, float radius, int a_min, int a_max) @@ -8577,7 +9940,6 @@ nk_draw_list_path_arc_to_fast(struct nk_draw_list *list, struct nk_vec2 center, } } } - NK_API void nk_draw_list_path_arc_to(struct nk_draw_list *list, struct nk_vec2 center, float radius, float a_min, float a_max, unsigned int segments) @@ -8586,14 +9948,43 @@ nk_draw_list_path_arc_to(struct nk_draw_list *list, struct nk_vec2 center, NK_ASSERT(list); if (!list) return; if (radius == 0.0f) return; - for (i = 0; i <= segments; ++i) { - const float a = a_min + ((float)i / ((float)segments) * (a_max - a_min)); - const float x = center.x + (float)NK_COS(a) * radius; - const float y = center.y + (float)NK_SIN(a) * radius; + + /* This algorithm for arc drawing relies on these two trigonometric identities[1]: + sin(a + b) = sin(a) * cos(b) + cos(a) * sin(b) + cos(a + b) = cos(a) * cos(b) - sin(a) * sin(b) + + Two coordinates (x, y) of a point on a circle centered on + the origin can be written in polar form as: + x = r * cos(a) + y = r * sin(a) + where r is the radius of the circle, + a is the angle between (x, y) and the origin. + + This allows us to rotate the coordinates around the + origin by an angle b using the following transformation: + x' = r * cos(a + b) = x * cos(b) - y * sin(b) + y' = r * sin(a + b) = y * cos(b) + x * sin(b) + + [1] https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Angle_sum_and_difference_identities + */ + {const float d_angle = (a_max - a_min) / (float)segments; + const float sin_d = (float)NK_SIN(d_angle); + const float cos_d = (float)NK_COS(d_angle); + + float cx = (float)NK_COS(a_min) * radius; + float cy = (float)NK_SIN(a_min) * radius; + for(i = 0; i <= segments; ++i) { + float new_cx, new_cy; + const float x = center.x + cx; + const float y = center.y + cy; nk_draw_list_path_line_to(list, nk_vec2(x, y)); - } -} + new_cx = cx * cos_d - cy * sin_d; + new_cy = cy * cos_d + cx * sin_d; + cx = new_cx; + cy = new_cy; + }} +} NK_API void nk_draw_list_path_rect_to(struct nk_draw_list *list, struct nk_vec2 a, struct nk_vec2 b, float rounding) @@ -8617,7 +10008,6 @@ nk_draw_list_path_rect_to(struct nk_draw_list *list, struct nk_vec2 a, nk_draw_list_path_arc_to_fast(list, nk_vec2(a.x + r, b.y - r), r, 3, 6); } } - NK_API void nk_draw_list_path_curve_to(struct nk_draw_list *list, struct nk_vec2 p2, struct nk_vec2 p3, struct nk_vec2 p4, unsigned int num_segments) @@ -8645,7 +10035,6 @@ nk_draw_list_path_curve_to(struct nk_draw_list *list, struct nk_vec2 p2, nk_draw_list_path_line_to(list, nk_vec2(x,y)); } } - NK_API void nk_draw_list_path_fill(struct nk_draw_list *list, struct nk_color color) { @@ -8656,7 +10045,6 @@ nk_draw_list_path_fill(struct nk_draw_list *list, struct nk_color color) nk_draw_list_fill_poly_convex(list, points, list->path_count, color, list->config.shape_AA); nk_draw_list_path_clear(list); } - NK_API void nk_draw_list_path_stroke(struct nk_draw_list *list, struct nk_color color, enum nk_draw_list_stroke closed, float thickness) @@ -8669,7 +10057,6 @@ nk_draw_list_path_stroke(struct nk_draw_list *list, struct nk_color color, closed, thickness, list->config.line_AA); nk_draw_list_path_clear(list); } - NK_API void nk_draw_list_stroke_line(struct nk_draw_list *list, struct nk_vec2 a, struct nk_vec2 b, struct nk_color col, float thickness) @@ -8685,7 +10072,6 @@ nk_draw_list_stroke_line(struct nk_draw_list *list, struct nk_vec2 a, } nk_draw_list_path_stroke(list, col, NK_STROKE_OPEN, thickness); } - NK_API void nk_draw_list_fill_rect(struct nk_draw_list *list, struct nk_rect rect, struct nk_color col, float rounding) @@ -8701,7 +10087,6 @@ nk_draw_list_fill_rect(struct nk_draw_list *list, struct nk_rect rect, nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding); } nk_draw_list_path_fill(list, col); } - NK_API void nk_draw_list_stroke_rect(struct nk_draw_list *list, struct nk_rect rect, struct nk_color col, float rounding, float thickness) @@ -8716,7 +10101,6 @@ nk_draw_list_stroke_rect(struct nk_draw_list *list, struct nk_rect rect, nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding); } nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness); } - NK_API void nk_draw_list_fill_rect_multi_color(struct nk_draw_list *list, struct nk_rect rect, struct nk_color left, struct nk_color top, struct nk_color right, @@ -8751,7 +10135,6 @@ nk_draw_list_fill_rect_multi_color(struct nk_draw_list *list, struct nk_rect rec vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y + rect.h), list->config.null.uv, col_right); vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y + rect.h), list->config.null.uv, col_bottom); } - NK_API void nk_draw_list_fill_triangle(struct nk_draw_list *list, struct nk_vec2 a, struct nk_vec2 b, struct nk_vec2 c, struct nk_color col) @@ -8763,7 +10146,6 @@ nk_draw_list_fill_triangle(struct nk_draw_list *list, struct nk_vec2 a, nk_draw_list_path_line_to(list, c); nk_draw_list_path_fill(list, col); } - NK_API void nk_draw_list_stroke_triangle(struct nk_draw_list *list, struct nk_vec2 a, struct nk_vec2 b, struct nk_vec2 c, struct nk_color col, float thickness) @@ -8775,7 +10157,6 @@ nk_draw_list_stroke_triangle(struct nk_draw_list *list, struct nk_vec2 a, nk_draw_list_path_line_to(list, c); nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness); } - NK_API void nk_draw_list_fill_circle(struct nk_draw_list *list, struct nk_vec2 center, float radius, struct nk_color col, unsigned int segs) @@ -8787,7 +10168,6 @@ nk_draw_list_fill_circle(struct nk_draw_list *list, struct nk_vec2 center, nk_draw_list_path_arc_to(list, center, radius, 0.0f, a_max, segs); nk_draw_list_path_fill(list, col); } - NK_API void nk_draw_list_stroke_circle(struct nk_draw_list *list, struct nk_vec2 center, float radius, struct nk_color col, unsigned int segs, float thickness) @@ -8799,7 +10179,6 @@ nk_draw_list_stroke_circle(struct nk_draw_list *list, struct nk_vec2 center, nk_draw_list_path_arc_to(list, center, radius, 0.0f, a_max, segs); nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness); } - NK_API void nk_draw_list_stroke_curve(struct nk_draw_list *list, struct nk_vec2 p0, struct nk_vec2 cp0, struct nk_vec2 cp1, struct nk_vec2 p1, @@ -8811,7 +10190,6 @@ nk_draw_list_stroke_curve(struct nk_draw_list *list, struct nk_vec2 p0, nk_draw_list_path_curve_to(list, cp0, cp1, p1, segments); nk_draw_list_path_stroke(list, col, NK_STROKE_OPEN, thickness); } - NK_INTERN void nk_draw_list_push_rect_uv(struct nk_draw_list *list, struct nk_vec2 a, struct nk_vec2 c, struct nk_vec2 uva, struct nk_vec2 uvc, @@ -8849,7 +10227,6 @@ nk_draw_list_push_rect_uv(struct nk_draw_list *list, struct nk_vec2 a, vtx = nk_draw_vertex(vtx, &list->config, c, uvc, col); vtx = nk_draw_vertex(vtx, &list->config, d, uvd, col); } - NK_API void nk_draw_list_add_image(struct nk_draw_list *list, struct nk_image texture, struct nk_rect rect, struct nk_color color) @@ -8871,7 +10248,6 @@ nk_draw_list_add_image(struct nk_draw_list *list, struct nk_image texture, nk_vec2(rect.x + rect.w, rect.y + rect.h), nk_vec2(0.0f, 0.0f), nk_vec2(1.0f, 1.0f),color); } - NK_API void nk_draw_list_add_text(struct nk_draw_list *list, const struct nk_user_font *font, struct nk_rect rect, const char *text, int len, float font_height, @@ -8922,7 +10298,6 @@ nk_draw_list_add_text(struct nk_draw_list *list, const struct nk_user_font *font unicode = next; } } - NK_API nk_flags nk_convert(struct nk_context *ctx, struct nk_buffer *cmds, struct nk_buffer *vertices, struct nk_buffer *elements, @@ -9068,26 +10443,26 @@ nk_convert(struct nk_context *ctx, struct nk_buffer *cmds, NK_API const struct nk_draw_command* nk__draw_begin(const struct nk_context *ctx, const struct nk_buffer *buffer) -{return nk__draw_list_begin(&ctx->draw_list, buffer);} - +{ + return nk__draw_list_begin(&ctx->draw_list, buffer); +} NK_API const struct nk_draw_command* nk__draw_end(const struct nk_context *ctx, const struct nk_buffer *buffer) -{return nk__draw_list_end(&ctx->draw_list, buffer);} - +{ + return nk__draw_list_end(&ctx->draw_list, buffer); +} NK_API const struct nk_draw_command* nk__draw_next(const struct nk_draw_command *cmd, const struct nk_buffer *buffer, const struct nk_context *ctx) -{return nk__draw_list_next(cmd, buffer, &ctx->draw_list);} - +{ + return nk__draw_list_next(cmd, buffer, &ctx->draw_list); +} #endif -/* - * ============================================================== - * - * FONT HANDLING - * - * =============================================================== - */ + + + + #ifdef NK_INCLUDE_FONT_BAKING /* ------------------------------------------------------------- * @@ -9159,7 +10534,6 @@ nk_rp_setup_allow_out_of_mem(struct nk_rp_context *context, int allow_out_of_mem context->align = (context->width + context->num_nodes-1) / context->num_nodes; } } - NK_INTERN void nk_rp_init_target(struct nk_rp_context *context, int width, int height, struct nk_rp_node *nodes, int num_nodes) @@ -9189,7 +10563,6 @@ nk_rp_init_target(struct nk_rp_context *context, int width, int height, context->extra[1].y = 65535; context->extra[1].next = 0; } - /* find minimum y position if it starts at x1 */ NK_INTERN int nk_rp__skyline_find_min_y(struct nk_rp_context *c, struct nk_rp_node *first, @@ -9234,7 +10607,6 @@ nk_rp__skyline_find_min_y(struct nk_rp_context *c, struct nk_rp_node *first, *pwaste = waste_area; return min_y; } - NK_INTERN struct nk_rp__findresult nk_rp__skyline_find_best_pos(struct nk_rp_context *c, int width, int height) { @@ -9330,7 +10702,6 @@ nk_rp__skyline_find_best_pos(struct nk_rp_context *c, int width, int height) fr.y = best_y; return fr; } - NK_INTERN struct nk_rp__findresult nk_rp__skyline_pack_rectangle(struct nk_rp_context *context, int width, int height) { @@ -9383,7 +10754,6 @@ nk_rp__skyline_pack_rectangle(struct nk_rp_context *context, int width, int heig cur->x = (nk_rp_coord) (res.x + width); return res; } - NK_INTERN int nk_rect_height_compare(const void *a, const void *b) { @@ -9395,7 +10765,6 @@ nk_rect_height_compare(const void *a, const void *b) return 1; return (p->w > q->w) ? -1 : (p->w < q->w); } - NK_INTERN int nk_rect_original_order(const void *a, const void *b) { @@ -9403,7 +10772,6 @@ nk_rect_original_order(const void *a, const void *b) const struct nk_rp_rect *q = (const struct nk_rp_rect *) b; return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); } - NK_INTERN void nk_rp_qsort(struct nk_rp_rect *array, unsigned int len, int(*cmp)(const void*,const void*)) { @@ -9433,7 +10801,6 @@ nk_rp_qsort(struct nk_rp_rect *array, unsigned int len, int(*cmp)(const void*,co } #undef NK_MAX_SORT_STACK } - NK_INTERN void nk_rp_pack_rects(struct nk_rp_context *context, struct nk_rp_rect *rects, int num_rects) { @@ -9656,7 +11023,6 @@ nk_tt__find_table(const nk_byte *data, nk_uint fontstart, const char *tag) } return 0; } - NK_INTERN int nk_tt_InitFont(struct nk_tt_fontinfo *info, const unsigned char *data2, int fontstart) { @@ -9713,7 +11079,6 @@ nk_tt_InitFont(struct nk_tt_fontinfo *info, const unsigned char *data2, int font info->indexToLocFormat = nk_ttUSHORT(data+info->head + 50); return 1; } - NK_INTERN int nk_tt_FindGlyphIndex(const struct nk_tt_fontinfo *info, int unicode_codepoint) { @@ -9807,7 +11172,6 @@ nk_tt_FindGlyphIndex(const struct nk_tt_fontinfo *info, int unicode_codepoint) NK_ASSERT(0); return 0; } - NK_INTERN void nk_tt_setvertex(struct nk_tt_vertex *v, nk_byte type, nk_int x, nk_int y, nk_int cx, nk_int cy) { @@ -9817,7 +11181,6 @@ nk_tt_setvertex(struct nk_tt_vertex *v, nk_byte type, nk_int x, nk_int y, nk_int v->cx = (nk_short) cx; v->cy = (nk_short) cy; } - NK_INTERN int nk_tt__GetGlyfOffset(const struct nk_tt_fontinfo *info, int glyph_index) { @@ -9834,7 +11197,6 @@ nk_tt__GetGlyfOffset(const struct nk_tt_fontinfo *info, int glyph_index) } return g1==g2 ? -1 : g1; /* if length is 0, return -1 */ } - NK_INTERN int nk_tt_GetGlyphBox(const struct nk_tt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) @@ -9848,9 +11210,8 @@ nk_tt_GetGlyphBox(const struct nk_tt_fontinfo *info, int glyph_index, if (y1) *y1 = nk_ttSHORT(info->data + g + 8); return 1; } - NK_INTERN int -stbtt__close_shape(struct nk_tt_vertex *vertices, int num_vertices, int was_off, +nk_tt__close_shape(struct nk_tt_vertex *vertices, int num_vertices, int was_off, int start_off, nk_int sx, nk_int sy, nk_int scx, nk_int scy, nk_int cx, nk_int cy) { if (start_off) { @@ -9865,7 +11226,6 @@ stbtt__close_shape(struct nk_tt_vertex *vertices, int num_vertices, int was_off, } return num_vertices; } - NK_INTERN int nk_tt_GetGlyphShape(const struct nk_tt_fontinfo *info, struct nk_allocator *alloc, int glyph_index, struct nk_tt_vertex **pvertices) @@ -9956,7 +11316,7 @@ nk_tt_GetGlyphShape(const struct nk_tt_fontinfo *info, struct nk_allocator *allo 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); + num_vertices = nk_tt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); /* now start the new one */ start_off = !(flags & 1); @@ -9999,7 +11359,7 @@ nk_tt_GetGlyphShape(const struct nk_tt_fontinfo *info, struct nk_allocator *allo } } } - num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + num_vertices = nk_tt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); } else if (numberOfContours == -1) { /* Compound shapes. */ int more = 1; @@ -10089,7 +11449,6 @@ nk_tt_GetGlyphShape(const struct nk_tt_fontinfo *info, struct nk_allocator *allo *pvertices = vertices; return num_vertices; } - NK_INTERN void nk_tt_GetGlyphHMetrics(const struct nk_tt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) @@ -10107,7 +11466,6 @@ nk_tt_GetGlyphHMetrics(const struct nk_tt_fontinfo *info, int glyph_index, *leftSideBearing = nk_ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); } } - NK_INTERN void nk_tt_GetFontVMetrics(const struct nk_tt_fontinfo *info, int *ascent, int *descent, int *lineGap) @@ -10116,14 +11474,12 @@ nk_tt_GetFontVMetrics(const struct nk_tt_fontinfo *info, if (descent) *descent = nk_ttSHORT(info->data+info->hhea + 6); if (lineGap) *lineGap = nk_ttSHORT(info->data+info->hhea + 8); } - NK_INTERN float nk_tt_ScaleForPixelHeight(const struct nk_tt_fontinfo *info, float height) { int fheight = nk_ttSHORT(info->data + info->hhea + 4) - nk_ttSHORT(info->data + info->hhea + 6); return (float) height / (float)fheight; } - NK_INTERN float nk_tt_ScaleForMappingEmToPixels(const struct nk_tt_fontinfo *info, float pixels) { @@ -10154,7 +11510,6 @@ nk_tt_GetGlyphBitmapBoxSubpixel(const struct nk_tt_fontinfo *font, if (iy1) *iy1 = nk_iceilf ((float)-y0 * scale_y + shift_y); } } - NK_INTERN void nk_tt_GetGlyphBitmapBox(const struct nk_tt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) @@ -10187,14 +11542,12 @@ nk_tt__hheap_alloc(struct nk_tt__hheap *hh, nk_size size) return (char *) (hh->head) + size * (nk_size)hh->num_remaining_in_head_chunk; } } - NK_INTERN void nk_tt__hheap_free(struct nk_tt__hheap *hh, void *p) { *(void **) p = hh->first_free; hh->first_free = p; } - NK_INTERN void nk_tt__hheap_cleanup(struct nk_tt__hheap *hh) { @@ -10205,7 +11558,6 @@ nk_tt__hheap_cleanup(struct nk_tt__hheap *hh) c = n; } } - NK_INTERN struct nk_tt__active_edge* nk_tt__new_active(struct nk_tt__hheap *hh, struct nk_tt__edge *e, int off_x, float start_point) @@ -10225,7 +11577,6 @@ nk_tt__new_active(struct nk_tt__hheap *hh, struct nk_tt__edge *e, z->next = 0; return z; } - NK_INTERN void nk_tt__handle_clipped_edge(float *scanline, int x, struct nk_tt__active_edge *e, float x0, float y0, float x1, float y1) @@ -10259,7 +11610,6 @@ nk_tt__handle_clipped_edge(float *scanline, int x, struct nk_tt__active_edge *e, scanline[x] += (float)e->direction * (float)(y1-y0) * (1.0f-((x0-(float)x)+(x1-(float)x))/2.0f); } } - NK_INTERN void nk_tt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, struct nk_tt__active_edge *e, float y_top) @@ -10420,12 +11770,11 @@ nk_tt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, e = e->next; } } - -/* directly AA rasterize edges w/o supersampling */ NK_INTERN void nk_tt__rasterize_sorted_edges(struct nk_tt__bitmap *result, struct nk_tt__edge *e, int n, int vsubsample, int off_x, int off_y, struct nk_allocator *alloc) { + /* directly AA rasterize edges w/o supersampling */ struct nk_tt__hheap hh; struct nk_tt__active_edge *active = 0; int y,j=0, i; @@ -10512,12 +11861,11 @@ nk_tt__rasterize_sorted_edges(struct nk_tt__bitmap *result, struct nk_tt__edge * if (scanline != scanline_data) alloc->free(alloc->userdata, scanline); } - -#define NK_TT__COMPARE(a,b) ((a)->y0 < (b)->y0) NK_INTERN void nk_tt__sort_edges_ins_sort(struct nk_tt__edge *p, int n) { int i,j; + #define NK_TT__COMPARE(a,b) ((a)->y0 < (b)->y0) for (i=1; i < n; ++i) { struct nk_tt__edge t = p[i], *a = &t; j = i; @@ -10532,7 +11880,6 @@ nk_tt__sort_edges_ins_sort(struct nk_tt__edge *p, int n) p[j] = t; } } - NK_INTERN void nk_tt__sort_edges_quicksort(struct nk_tt__edge *p, int n) { @@ -10600,14 +11947,12 @@ nk_tt__sort_edges_quicksort(struct nk_tt__edge *p, int n) } } } - NK_INTERN void nk_tt__sort_edges(struct nk_tt__edge *p, int n) { nk_tt__sort_edges_quicksort(p, n); nk_tt__sort_edges_ins_sort(p, n); } - NK_INTERN void nk_tt__rasterize(struct nk_tt__bitmap *result, struct nk_tt__point *pts, int *wcount, int windings, float scale_x, float scale_y, @@ -10657,13 +12002,12 @@ nk_tt__rasterize(struct nk_tt__bitmap *result, struct nk_tt__point *pts, } /* 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(e, n, sizeof(e[0]), nk_tt__edge_compare); */ nk_tt__sort_edges(e, n); /* now, traverse the scanlines and find the intersections on each scanline, use xor winding rule */ nk_tt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, alloc); alloc->free(alloc->userdata, e); } - NK_INTERN void nk_tt__add_point(struct nk_tt__point *points, int n, float x, float y) { @@ -10671,7 +12015,6 @@ nk_tt__add_point(struct nk_tt__point *points, int n, float x, float y) points[n].x = x; points[n].y = y; } - NK_INTERN int nk_tt__tesselate_curve(struct nk_tt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, @@ -10700,13 +12043,12 @@ nk_tt__tesselate_curve(struct nk_tt__point *points, int *num_points, } return 1; } - -/* returns number of contours */ NK_INTERN struct nk_tt__point* nk_tt_FlattenCurves(struct nk_tt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, struct nk_allocator *alloc) { + /* returns number of contours */ struct nk_tt__point *points=0; int num_points=0; float objspace_flatness_squared = objspace_flatness * objspace_flatness; @@ -10779,7 +12121,6 @@ nk_tt_FlattenCurves(struct nk_tt_vertex *vertices, int num_verts, *num_contours = 0; return 0; } - NK_INTERN void nk_tt_Rasterize(struct nk_tt__bitmap *result, float flatness_in_pixels, struct nk_tt_vertex *vertices, int num_verts, @@ -10799,7 +12140,6 @@ nk_tt_Rasterize(struct nk_tt__bitmap *result, float flatness_in_pixels, alloc->free(alloc->userdata, windings); } } - NK_INTERN void nk_tt_MakeGlyphBitmapSubpixel(const struct nk_tt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, @@ -10857,14 +12197,12 @@ nk_tt_PackBegin(struct nk_tt_pack_context *spc, unsigned char *pixels, NK_MEMSET(pixels, 0, (nk_size)(pw*ph)); /* background of 0 around pixels */ return 1; } - NK_INTERN void nk_tt_PackEnd(struct nk_tt_pack_context *spc, struct nk_allocator *alloc) { alloc->free(alloc->userdata, spc->nodes); alloc->free(alloc->userdata, spc->pack_info); } - NK_INTERN void nk_tt_PackSetOversampling(struct nk_tt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) @@ -10876,7 +12214,6 @@ nk_tt_PackSetOversampling(struct nk_tt_pack_context *spc, if (v_oversample <= NK_TT_MAX_OVERSAMPLE) spc->v_oversample = v_oversample; } - NK_INTERN void nk_tt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, int kernel_width) @@ -10940,7 +12277,6 @@ nk_tt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, pixels += stride_in_bytes; } } - NK_INTERN void nk_tt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, int kernel_width) @@ -11004,7 +12340,6 @@ nk_tt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, pixels += 1; } } - NK_INTERN float nk_tt__oversample_shift(int oversample) { @@ -11017,13 +12352,12 @@ nk_tt__oversample_shift(int oversample) /* 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 */ NK_INTERN int nk_tt_PackFontRangesGatherRects(struct nk_tt_pack_context *spc, struct nk_tt_fontinfo *info, struct nk_tt_pack_range *ranges, int num_ranges, struct nk_rp_rect *rects) { + /* rects array must be big enough to accommodate all characters in the given ranges */ int i,j,k; k = 0; @@ -11049,7 +12383,6 @@ nk_tt_PackFontRangesGatherRects(struct nk_tt_pack_context *spc, } return k; } - NK_INTERN int nk_tt_PackFontRangesRenderIntoRects(struct nk_tt_pack_context *spc, struct nk_tt_fontinfo *info, struct nk_tt_pack_range *ranges, @@ -11133,7 +12466,6 @@ nk_tt_PackFontRangesRenderIntoRects(struct nk_tt_pack_context *spc, spc->v_oversample = (unsigned int)old_v_over; return return_value; } - NK_INTERN void nk_tt_GetPackedQuad(struct nk_tt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, struct nk_tt_aligned_quad *q, @@ -11201,7 +12533,6 @@ nk_range_count(const nk_rune *range) while (*(iter++) != 0); return (iter == range) ? 0 : (int)((iter - range)/2); } - NK_INTERN int nk_range_glyph_count(const nk_rune *range, int count) { @@ -11217,14 +12548,12 @@ nk_range_glyph_count(const nk_rune *range, int count) } return total_glyphs; } - NK_API const nk_rune* nk_font_default_glyph_ranges(void) { NK_STORAGE const nk_rune ranges[] = {0x0020, 0x00FF, 0}; return ranges; } - NK_API const nk_rune* nk_font_chinese_glyph_ranges(void) { @@ -11238,7 +12567,6 @@ nk_font_chinese_glyph_ranges(void) }; return ranges; } - NK_API const nk_rune* nk_font_cyrillic_glyph_ranges(void) { @@ -11251,7 +12579,6 @@ nk_font_cyrillic_glyph_ranges(void) }; return ranges; } - NK_API const nk_rune* nk_font_korean_glyph_ranges(void) { @@ -11263,14 +12590,13 @@ nk_font_korean_glyph_ranges(void) }; return ranges; } - NK_INTERN void nk_font_baker_memory(nk_size *temp, int *glyph_count, struct nk_font_config *config_list, int count) { int range_count = 0; int total_range_count = 0; - struct nk_font_config *iter; + struct nk_font_config *iter, *i; NK_ASSERT(config_list); NK_ASSERT(glyph_count); @@ -11279,16 +12605,15 @@ nk_font_baker_memory(nk_size *temp, int *glyph_count, *glyph_count = 0; return; } - *glyph_count = 0; - if (!config_list->range) - config_list->range = nk_font_default_glyph_ranges(); for (iter = config_list; iter; iter = iter->next) { - range_count = nk_range_count(iter->range); - total_range_count += range_count; - *glyph_count += nk_range_glyph_count(iter->range, range_count); + i = iter; + do {if (!i->range) iter->range = nk_font_default_glyph_ranges(); + range_count = nk_range_count(i->range); + total_range_count += range_count; + *glyph_count += nk_range_glyph_count(i->range, range_count); + } while ((i = i->n) != iter); } - *temp = (nk_size)*glyph_count * sizeof(struct nk_rp_rect); *temp += (nk_size)total_range_count * sizeof(struct nk_tt_pack_range); *temp += (nk_size)*glyph_count * sizeof(struct nk_tt_packedchar); @@ -11297,7 +12622,6 @@ nk_font_baker_memory(nk_size *temp, int *glyph_count, *temp += nk_rect_align + nk_range_align + nk_char_align; *temp += nk_build_align + nk_baker_align; } - NK_INTERN struct nk_font_baker* nk_font_baker(void *memory, int glyph_count, int count, struct nk_allocator *alloc) { @@ -11312,7 +12636,6 @@ nk_font_baker(void *memory, int glyph_count, int count, struct nk_allocator *all baker->alloc = *alloc; return baker; } - NK_INTERN int nk_font_bake_pack(struct nk_font_baker *baker, nk_size *image_memory, int *width, int *height, struct nk_recti *custom, @@ -11320,7 +12643,7 @@ nk_font_bake_pack(struct nk_font_baker *baker, struct nk_allocator *alloc) { NK_STORAGE const nk_size max_height = 1024 * 32; - const struct nk_font_config *config_iter; + const struct nk_font_config *config_iter, *it; int total_glyph_count = 0; int total_range_count = 0; int range_count = 0; @@ -11335,18 +12658,19 @@ nk_font_bake_pack(struct nk_font_baker *baker, if (!image_memory || !width || !height || !config_list || !count) return nk_false; for (config_iter = config_list; config_iter; config_iter = config_iter->next) { - range_count = nk_range_count(config_iter->range); - total_range_count += range_count; - total_glyph_count += nk_range_glyph_count(config_iter->range, range_count); + it = config_iter; + do {range_count = nk_range_count(it->range); + total_range_count += range_count; + total_glyph_count += nk_range_glyph_count(it->range, range_count); + } while ((it = it->n) != config_iter); } - /* setup font baker from temporary memory */ for (config_iter = config_list; config_iter; config_iter = config_iter->next) { - const struct nk_font_config *cfg = config_iter; - if (!nk_tt_InitFont(&baker->build[i++].info, (const unsigned char*)cfg->ttf_blob, 0)) + it = config_iter; + do {if (!nk_tt_InitFont(&baker->build[i++].info, (const unsigned char*)it->ttf_blob, 0)) return nk_false; + } while ((it = it->n) != config_iter); } - *height = 0; *width = (total_glyph_count > 1000) ? 1024 : 512; nk_tt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, alloc); @@ -11360,8 +12684,8 @@ nk_font_bake_pack(struct nk_font_baker *baker, /* pack custom user data first so it will be in the upper left corner*/ struct nk_rp_rect custom_space; nk_zero(&custom_space, sizeof(custom_space)); - custom_space.w = (nk_rp_coord)((custom->w * 2) + 1); - custom_space.h = (nk_rp_coord)(custom->h + 1); + custom_space.w = (nk_rp_coord)(custom->w); + custom_space.h = (nk_rp_coord)(custom->h); nk_tt_PackSetOversampling(&baker->spc, 1, 1); nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, &custom_space, 1); @@ -11375,47 +12699,48 @@ nk_font_bake_pack(struct nk_font_baker *baker, /* first font pass: pack all glyphs */ for (input_i = 0, config_iter = config_list; input_i < count && config_iter; - input_i++, config_iter = config_iter->next) - { - int n = 0; - int glyph_count; - const nk_rune *in_range; - const struct nk_font_config *cfg = config_iter; - struct nk_font_bake_data *tmp = &baker->build[input_i]; - - /* count glyphs + ranges in current font */ - glyph_count = 0; range_count = 0; - for (in_range = cfg->range; in_range[0] && in_range[1]; in_range += 2) { - glyph_count += (int)(in_range[1] - in_range[0]) + 1; - range_count++; - } + config_iter = config_iter->next) { + it = config_iter; + do {int n = 0; + int glyph_count; + const nk_rune *in_range; + const struct nk_font_config *cfg = it; + struct nk_font_bake_data *tmp = &baker->build[input_i++]; + + /* count glyphs + ranges in current font */ + glyph_count = 0; range_count = 0; + for (in_range = cfg->range; in_range[0] && in_range[1]; in_range += 2) { + glyph_count += (int)(in_range[1] - in_range[0]) + 1; + range_count++; + } - /* setup ranges */ - tmp->ranges = baker->ranges + range_n; - tmp->range_count = (nk_rune)range_count; - range_n += range_count; - for (i = 0; i < range_count; ++i) { - in_range = &cfg->range[i * 2]; - tmp->ranges[i].font_size = cfg->size; - tmp->ranges[i].first_unicode_codepoint_in_range = (int)in_range[0]; - tmp->ranges[i].num_chars = (int)(in_range[1]- in_range[0]) + 1; - tmp->ranges[i].chardata_for_range = baker->packed_chars + char_n; - char_n += tmp->ranges[i].num_chars; - } + /* setup ranges */ + tmp->ranges = baker->ranges + range_n; + tmp->range_count = (nk_rune)range_count; + range_n += range_count; + for (i = 0; i < range_count; ++i) { + in_range = &cfg->range[i * 2]; + tmp->ranges[i].font_size = cfg->size; + tmp->ranges[i].first_unicode_codepoint_in_range = (int)in_range[0]; + tmp->ranges[i].num_chars = (int)(in_range[1]- in_range[0]) + 1; + tmp->ranges[i].chardata_for_range = baker->packed_chars + char_n; + char_n += tmp->ranges[i].num_chars; + } - /* pack */ - tmp->rects = baker->rects + rect_n; - rect_n += glyph_count; - nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v); - n = nk_tt_PackFontRangesGatherRects(&baker->spc, &tmp->info, - tmp->ranges, (int)tmp->range_count, tmp->rects); - nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, tmp->rects, (int)n); - - /* texture height */ - for (i = 0; i < n; ++i) { - if (tmp->rects[i].was_packed) - *height = NK_MAX(*height, tmp->rects[i].y + tmp->rects[i].h); - } + /* pack */ + tmp->rects = baker->rects + rect_n; + rect_n += glyph_count; + nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v); + n = nk_tt_PackFontRangesGatherRects(&baker->spc, &tmp->info, + tmp->ranges, (int)tmp->range_count, tmp->rects); + nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, tmp->rects, (int)n); + + /* texture height */ + for (i = 0; i < n; ++i) { + if (tmp->rects[i].was_packed) + *height = NK_MAX(*height, tmp->rects[i].y + tmp->rects[i].h); + } + } while ((it = it->n) != config_iter); } NK_ASSERT(rect_n == total_glyph_count); NK_ASSERT(char_n == total_glyph_count); @@ -11425,7 +12750,6 @@ nk_font_bake_pack(struct nk_font_baker *baker, *image_memory = (nk_size)(*width) * (nk_size)(*height); return nk_true; } - NK_INTERN void nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int height, struct nk_font_glyph *glyphs, int glyphs_count, @@ -11434,6 +12758,7 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei int input_i = 0; nk_rune glyph_n = 0; const struct nk_font_config *config_iter; + const struct nk_font_config *it; NK_ASSERT(image_memory); NK_ASSERT(width); @@ -11451,91 +12776,90 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei baker->spc.pixels = (unsigned char*)image_memory; baker->spc.height = (int)height; for (input_i = 0, config_iter = config_list; input_i < font_count && config_iter; - ++input_i, config_iter = config_iter->next) - { - const struct nk_font_config *cfg = config_iter; - struct nk_font_bake_data *tmp = &baker->build[input_i]; - nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v); - nk_tt_PackFontRangesRenderIntoRects(&baker->spc, &tmp->info, tmp->ranges, - (int)tmp->range_count, tmp->rects, &baker->alloc); - } - nk_tt_PackEnd(&baker->spc, &baker->alloc); + config_iter = config_iter->next) { + it = config_iter; + do {const struct nk_font_config *cfg = it; + struct nk_font_bake_data *tmp = &baker->build[input_i++]; + nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v); + nk_tt_PackFontRangesRenderIntoRects(&baker->spc, &tmp->info, tmp->ranges, + (int)tmp->range_count, tmp->rects, &baker->alloc); + } while ((it = it->n) != config_iter); + } nk_tt_PackEnd(&baker->spc, &baker->alloc); /* third pass: setup font and glyphs */ for (input_i = 0, config_iter = config_list; input_i < font_count && config_iter; - ++input_i, config_iter = config_iter->next) - { - nk_size i = 0; - int char_idx = 0; - nk_rune glyph_count = 0; - const struct nk_font_config *cfg = config_iter; - struct nk_font_bake_data *tmp = &baker->build[input_i]; - struct nk_baked_font *dst_font = cfg->font; - - float font_scale = nk_tt_ScaleForPixelHeight(&tmp->info, cfg->size); - int unscaled_ascent, unscaled_descent, unscaled_line_gap; - nk_tt_GetFontVMetrics(&tmp->info, &unscaled_ascent, &unscaled_descent, - &unscaled_line_gap); - - /* fill baked font */ - if (!cfg->merge_mode) { - dst_font->ranges = cfg->range; - dst_font->height = cfg->size; - dst_font->ascent = ((float)unscaled_ascent * font_scale); - dst_font->descent = ((float)unscaled_descent * font_scale); - dst_font->glyph_offset = glyph_n; - } + config_iter = config_iter->next) { + it = config_iter; + do {nk_size i = 0; + int char_idx = 0; + nk_rune glyph_count = 0; + const struct nk_font_config *cfg = it; + struct nk_font_bake_data *tmp = &baker->build[input_i++]; + struct nk_baked_font *dst_font = cfg->font; + + float font_scale = nk_tt_ScaleForPixelHeight(&tmp->info, cfg->size); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + nk_tt_GetFontVMetrics(&tmp->info, &unscaled_ascent, &unscaled_descent, + &unscaled_line_gap); + + /* fill baked font */ + if (!cfg->merge_mode) { + dst_font->ranges = cfg->range; + dst_font->height = cfg->size; + dst_font->ascent = ((float)unscaled_ascent * font_scale); + dst_font->descent = ((float)unscaled_descent * font_scale); + dst_font->glyph_offset = glyph_n; + } - /* fill own baked font glyph array */ - for (i = 0; i < tmp->range_count; ++i) - { - struct nk_tt_pack_range *range = &tmp->ranges[i]; - for (char_idx = 0; char_idx < range->num_chars; char_idx++) - { - nk_rune codepoint = 0; - float dummy_x = 0, dummy_y = 0; - struct nk_tt_aligned_quad q; - struct nk_font_glyph *glyph; - - /* query glyph bounds from stb_truetype */ - const struct nk_tt_packedchar *pc = &range->chardata_for_range[char_idx]; - if (!pc->x0 && !pc->x1 && !pc->y0 && !pc->y1) continue; - codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx); - nk_tt_GetPackedQuad(range->chardata_for_range, (int)width, - (int)height, char_idx, &dummy_x, &dummy_y, &q, 0); - - /* fill own glyph type with data */ - glyph = &glyphs[dst_font->glyph_offset + (unsigned int)glyph_count]; - glyph->codepoint = codepoint; - glyph->x0 = q.x0; glyph->y0 = q.y0; - glyph->x1 = q.x1; glyph->y1 = q.y1; - glyph->y0 += (dst_font->ascent + 0.5f); - glyph->y1 += (dst_font->ascent + 0.5f); - glyph->w = glyph->x1 - glyph->x0 + 0.5f; - glyph->h = glyph->y1 - glyph->y0; - - if (cfg->coord_type == NK_COORD_PIXEL) { - glyph->u0 = q.s0 * (float)width; - glyph->v0 = q.t0 * (float)height; - glyph->u1 = q.s1 * (float)width; - glyph->v1 = q.t1 * (float)height; - } else { - glyph->u0 = q.s0; - glyph->v0 = q.t0; - glyph->u1 = q.s1; - glyph->v1 = q.t1; + /* fill own baked font glyph array */ + for (i = 0; i < tmp->range_count; ++i) { + struct nk_tt_pack_range *range = &tmp->ranges[i]; + for (char_idx = 0; char_idx < range->num_chars; char_idx++) + { + nk_rune codepoint = 0; + float dummy_x = 0, dummy_y = 0; + struct nk_tt_aligned_quad q; + struct nk_font_glyph *glyph; + + /* query glyph bounds from stb_truetype */ + const struct nk_tt_packedchar *pc = &range->chardata_for_range[char_idx]; + if (!pc->x0 && !pc->x1 && !pc->y0 && !pc->y1) continue; + codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx); + nk_tt_GetPackedQuad(range->chardata_for_range, (int)width, + (int)height, char_idx, &dummy_x, &dummy_y, &q, 0); + + /* fill own glyph type with data */ + glyph = &glyphs[dst_font->glyph_offset + dst_font->glyph_count + (unsigned int)glyph_count]; + glyph->codepoint = codepoint; + glyph->x0 = q.x0; glyph->y0 = q.y0; + glyph->x1 = q.x1; glyph->y1 = q.y1; + glyph->y0 += (dst_font->ascent + 0.5f); + glyph->y1 += (dst_font->ascent + 0.5f); + glyph->w = glyph->x1 - glyph->x0 + 0.5f; + glyph->h = glyph->y1 - glyph->y0; + + if (cfg->coord_type == NK_COORD_PIXEL) { + glyph->u0 = q.s0 * (float)width; + glyph->v0 = q.t0 * (float)height; + glyph->u1 = q.s1 * (float)width; + glyph->v1 = q.t1 * (float)height; + } else { + glyph->u0 = q.s0; + glyph->v0 = q.t0; + glyph->u1 = q.s1; + glyph->v1 = q.t1; + } + glyph->xadvance = (pc->xadvance + cfg->spacing.x); + if (cfg->pixel_snap) + glyph->xadvance = (float)(int)(glyph->xadvance + 0.5f); + glyph_count++; } - glyph->xadvance = (pc->xadvance + cfg->spacing.x); - if (cfg->pixel_snap) - glyph->xadvance = (float)(int)(glyph->xadvance + 0.5f); - glyph_count++; } - } - dst_font->glyph_count = glyph_count; - glyph_n += dst_font->glyph_count; + dst_font->glyph_count += glyph_count; + glyph_n += glyph_count; + } while ((it = it->n) != config_iter); } } - NK_INTERN void nk_font_bake_custom_data(void *img_memory, int img_width, int img_height, struct nk_recti img_dst, const char *texture_data_mask, int tex_width, @@ -11564,7 +12888,6 @@ nk_font_bake_custom_data(void *img_memory, int img_width, int img_height, } } } - NK_INTERN void nk_font_bake_convert(void *out_memory, int img_width, int img_height, const void *in_memory) @@ -11622,7 +12945,6 @@ nk_font_text_width(nk_handle handle, float height, const char *text, int len) } return text_width; } - #ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT NK_INTERN void nk_font_query_font_glyph(nk_handle handle, float height, @@ -11651,7 +12973,6 @@ nk_font_query_font_glyph(nk_handle handle, float height, glyph->uv[1] = nk_vec2(g->u1, g->v1); } #endif - NK_API const struct nk_font_glyph* nk_font_find_glyph(struct nk_font *font, nk_rune unicode) { @@ -11659,6 +12980,7 @@ nk_font_find_glyph(struct nk_font *font, nk_rune unicode) int count; int total_glyphs = 0; const struct nk_font_glyph *glyph = 0; + const struct nk_font_config *iter = 0; NK_ASSERT(font); NK_ASSERT(font->glyphs); @@ -11666,18 +12988,19 @@ nk_font_find_glyph(struct nk_font *font, nk_rune unicode) if (!font || !font->glyphs) return 0; glyph = font->fallback; - count = nk_range_count(font->info.ranges); - for (i = 0; i < count; ++i) { - nk_rune f = font->info.ranges[(i*2)+0]; - nk_rune t = font->info.ranges[(i*2)+1]; - int diff = (int)((t - f) + 1); - if (unicode >= f && unicode <= t) - return &font->glyphs[((nk_rune)total_glyphs + (unicode - f))]; - total_glyphs += diff; - } + iter = font->config; + do {count = nk_range_count(iter->range); + for (i = 0; i < count; ++i) { + nk_rune f = iter->range[(i*2)+0]; + nk_rune t = iter->range[(i*2)+1]; + int diff = (int)((t - f) + 1); + if (unicode >= f && unicode <= t) + return &font->glyphs[((nk_rune)total_glyphs + (unicode - f))]; + total_glyphs += diff; + } + } while ((iter = iter->n) != font->config); return glyph; } - NK_INTERN void nk_font_init(struct nk_font *font, float pixel_height, nk_rune fallback_codepoint, struct nk_font_glyph *glyphs, @@ -11717,17 +13040,16 @@ nk_font_init(struct nk_font *font, float pixel_height, * MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) * Download and more information at http://upperbounds.net *-----------------------------------------------------------------------------*/ -#ifdef NK_INCLUDE_DEFAULT_FONT - - #ifdef __clang__ +#ifdef __clang__ #pragma clang diagnostic push - #pragma clang diagnostic ignored "-Woverlength-strings" #elif defined(__GNUC__) || defined(__GNUG__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Woverlength-strings" #endif +#ifdef NK_INCLUDE_DEFAULT_FONT + NK_GLOBAL const char nk_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^`IWM9= 0x20) { /* use fewer if's for cases that expand small */ if (*i >= 0x80) nk__match(nk__dout-i[1]-1, (unsigned int)i[0] - 0x80 + 1), i += 2; else if (*i >= 0x40) nk__match(nk__dout-(nk__in2(0) - 0x4000 + 1), (unsigned int)i[2]+1), i += 3; @@ -11909,7 +13229,6 @@ nk_decompress_token(unsigned char *i) } return i; } - NK_INTERN unsigned int nk_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) { @@ -11940,7 +13259,6 @@ nk_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) } return (unsigned int)(s2 << 16) + (unsigned int)s1; } - NK_INTERN unsigned int nk_decompress(unsigned char *output, unsigned char *i, unsigned int length) { @@ -11975,11 +13293,11 @@ nk_decompress(unsigned char *output, unsigned char *i, unsigned int length) return 0; } } - NK_INTERN unsigned int nk_decode_85_byte(char c) -{ return (unsigned int)((c >= '\\') ? c-36 : c-35); } - +{ + return (unsigned int)((c >= '\\') ? c-36 : c-35); +} NK_INTERN void nk_decode_85(unsigned char* dst, const unsigned char* src) { @@ -12026,9 +13344,9 @@ nk_font_config(float pixel_height) cfg.merge_mode = 0; cfg.fallback_glyph = '?'; cfg.font = 0; + cfg.n = 0; return cfg; } - #ifdef NK_INCLUDE_DEFAULT_ALLOCATOR NK_API void nk_font_atlas_init_default(struct nk_font_atlas *atlas) @@ -12044,7 +13362,6 @@ nk_font_atlas_init_default(struct nk_font_atlas *atlas) atlas->permanent.free = nk_mfree; } #endif - NK_API void nk_font_atlas_init(struct nk_font_atlas *atlas, struct nk_allocator *alloc) { @@ -12055,7 +13372,6 @@ nk_font_atlas_init(struct nk_font_atlas *atlas, struct nk_allocator *alloc) atlas->permanent = *alloc; atlas->temporary = *alloc; } - NK_API void nk_font_atlas_init_custom(struct nk_font_atlas *atlas, struct nk_allocator *permanent, struct nk_allocator *temporary) @@ -12068,7 +13384,6 @@ nk_font_atlas_init_custom(struct nk_font_atlas *atlas, atlas->permanent = *permanent; atlas->temporary = *temporary; } - NK_API void nk_font_atlas_begin(struct nk_font_atlas *atlas) { @@ -12086,7 +13401,6 @@ nk_font_atlas_begin(struct nk_font_atlas *atlas) atlas->pixel = 0; } } - NK_API struct nk_font* nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *config) { @@ -12109,43 +13423,57 @@ nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *conf !atlas->temporary.alloc || !atlas->temporary.free) return 0; - /* allocate and insert font config into list */ + /* allocate font config */ cfg = (struct nk_font_config*) atlas->permanent.alloc(atlas->permanent.userdata,0, sizeof(struct nk_font_config)); NK_MEMCPY(cfg, config, sizeof(*config)); - if (!atlas->config) { - atlas->config = cfg; - cfg->next = 0; - } else { - cfg->next = atlas->config; - atlas->config = cfg; - } + cfg->n = cfg; + cfg->p = cfg; - /* allocate new font */ if (!config->merge_mode) { + /* insert font config into list */ + if (!atlas->config) { + atlas->config = cfg; + cfg->next = 0; + } else { + struct nk_font_config *i = atlas->config; + while (i->next) i = i->next; + i->next = cfg; + cfg->next = 0; + } + /* allocate new font */ font = (struct nk_font*) atlas->permanent.alloc(atlas->permanent.userdata,0, sizeof(struct nk_font)); NK_ASSERT(font); + nk_zero(font, sizeof(*font)); if (!font) return 0; font->config = cfg; - } else { - NK_ASSERT(atlas->font_num); - font = atlas->fonts; - font->config = cfg; - } - /* insert font into list */ - if (!config->merge_mode) { + /* insert font into list */ if (!atlas->fonts) { atlas->fonts = font; font->next = 0; } else { - font->next = atlas->fonts; - atlas->fonts = font; + struct nk_font *i = atlas->fonts; + while (i->next) i = i->next; + i->next = font; + font->next = 0; } cfg->font = &font->info; - } + } else { + /* extend previously added font */ + struct nk_font *f = 0; + struct nk_font_config *c = 0; + NK_ASSERT(atlas->font_num); + f = atlas->fonts; + c = f->config; + cfg->font = &f->info; + cfg->n = c; + cfg->p = c->p; + c->p->n = cfg; + c->p = cfg; + } /* create own copy of .TTF font blob */ if (!config->ttf_data_owned_by_atlas) { cfg->ttf_blob = atlas->permanent.alloc(atlas->permanent.userdata,0, cfg->ttf_size); @@ -12160,7 +13488,6 @@ nk_font_atlas_add(struct nk_font_atlas *atlas, const struct nk_font_config *conf atlas->font_num++; return font; } - NK_API struct nk_font* nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory, nk_size size, float height, const struct nk_font_config *config) @@ -12185,7 +13512,6 @@ nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory, cfg.ttf_data_owned_by_atlas = 0; return nk_font_atlas_add(atlas, &cfg); } - #ifdef NK_INCLUDE_STANDARD_IO NK_API struct nk_font* nk_font_atlas_add_from_file(struct nk_font_atlas *atlas, const char *file_path, @@ -12213,7 +13539,6 @@ nk_font_atlas_add_from_file(struct nk_font_atlas *atlas, const char *file_path, return nk_font_atlas_add(atlas, &cfg); } #endif - NK_API struct nk_font* nk_font_atlas_add_compressed(struct nk_font_atlas *atlas, void *compressed_data, nk_size compressed_size, float height, @@ -12249,7 +13574,6 @@ nk_font_atlas_add_compressed(struct nk_font_atlas *atlas, cfg.ttf_data_owned_by_atlas = 1; return nk_font_atlas_add(atlas, &cfg); } - NK_API struct nk_font* nk_font_atlas_add_compressed_base85(struct nk_font_atlas *atlas, const char *data_base85, float height, const struct nk_font_config *config) @@ -12294,7 +13618,6 @@ nk_font_atlas_add_default(struct nk_font_atlas *atlas, nk_proggy_clean_ttf_compressed_data_base85, pixel_height, config); } #endif - NK_API const void* nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height, enum nk_font_atlas_format fmt) @@ -12382,7 +13705,7 @@ nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height, /* initialize each cursor */ {NK_STORAGE const struct nk_vec2 nk_cursor_data[NK_CURSOR_COUNT][3] = { - /* Pos ----- Size ------- Offset --*/ + /* Pos Size Offset */ {{ 0, 3}, {12,19}, { 0, 0}}, {{13, 0}, { 7,16}, { 4, 8}}, {{31, 0}, {23,23}, {11,11}}, @@ -12419,7 +13742,6 @@ nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height, } return 0; } - NK_API void nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture, struct nk_draw_null_texture *null) @@ -12455,7 +13777,6 @@ nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture, atlas->custom.w = 0; atlas->custom.h = 0; } - NK_API void nk_font_atlas_cleanup(struct nk_font_atlas *atlas) { @@ -12464,19 +13785,20 @@ nk_font_atlas_cleanup(struct nk_font_atlas *atlas) NK_ASSERT(atlas->temporary.free); NK_ASSERT(atlas->permanent.alloc); NK_ASSERT(atlas->permanent.free); - if (!atlas || !atlas->permanent.alloc || !atlas->permanent.free) return; if (atlas->config) { - struct nk_font_config *iter, *next; - for (iter = atlas->config; iter; iter = next) { - next = iter->next; + struct nk_font_config *iter; + for (iter = atlas->config; iter; iter = iter->next) { + struct nk_font_config *i; + for (i = iter->n; i != iter; i = i->n) { + atlas->permanent.free(atlas->permanent.userdata, i->ttf_blob); + i->ttf_blob = 0; + } atlas->permanent.free(atlas->permanent.userdata, iter->ttf_blob); - atlas->permanent.free(atlas->permanent.userdata, iter); + iter->ttf_blob = 0; } - atlas->config = 0; } } - NK_API void nk_font_atlas_clear(struct nk_font_atlas *atlas) { @@ -12487,7 +13809,23 @@ nk_font_atlas_clear(struct nk_font_atlas *atlas) NK_ASSERT(atlas->permanent.free); if (!atlas || !atlas->permanent.alloc || !atlas->permanent.free) return; - nk_font_atlas_cleanup(atlas); + if (atlas->config) { + struct nk_font_config *iter, *next; + for (iter = atlas->config; iter; iter = next) { + struct nk_font_config *i, *n; + for (i = iter->n; i != iter; i = n) { + n = i->n; + if (i->ttf_blob) + atlas->permanent.free(atlas->permanent.userdata, i->ttf_blob); + atlas->permanent.free(atlas->permanent.userdata, i); + } + next = iter->next; + if (i->ttf_blob) + atlas->permanent.free(atlas->permanent.userdata, iter->ttf_blob); + atlas->permanent.free(atlas->permanent.userdata, iter); + } + atlas->config = 0; + } if (atlas->fonts) { struct nk_font *iter, *next; for (iter = atlas->fonts; iter; iter = next) { @@ -12501,7 +13839,12 @@ nk_font_atlas_clear(struct nk_font_atlas *atlas) nk_zero_struct(*atlas); } #endif -/* ============================================================== + + + + + +/* =============================================================== * * INPUT * @@ -12526,7 +13869,6 @@ nk_input_begin(struct nk_context *ctx) for (i = 0; i < NK_KEY_MAX; i++) in->keyboard.keys[i].clicked = 0; } - NK_API void nk_input_end(struct nk_context *ctx) { @@ -12542,7 +13884,6 @@ nk_input_end(struct nk_context *ctx) in->mouse.grab = 0; } } - NK_API void nk_input_motion(struct nk_context *ctx, int x, int y) { @@ -12555,7 +13896,6 @@ nk_input_motion(struct nk_context *ctx, int x, int y) in->mouse.delta.x = in->mouse.pos.x - in->mouse.prev.x; in->mouse.delta.y = in->mouse.pos.y - in->mouse.prev.y; } - NK_API void nk_input_key(struct nk_context *ctx, enum nk_keys key, int down) { @@ -12567,7 +13907,6 @@ nk_input_key(struct nk_context *ctx, enum nk_keys key, int down) in->keyboard.keys[key].clicked++; in->keyboard.keys[key].down = down; } - NK_API void nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, int down) { @@ -12584,7 +13923,6 @@ nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, int do btn->down = down; btn->clicked++; } - NK_API void nk_input_scroll(struct nk_context *ctx, struct nk_vec2 val) { @@ -12593,7 +13931,6 @@ nk_input_scroll(struct nk_context *ctx, struct nk_vec2 val) ctx->input.mouse.scroll_delta.x += val.x; ctx->input.mouse.scroll_delta.y += val.y; } - NK_API void nk_input_glyph(struct nk_context *ctx, const nk_glyph glyph) { @@ -12612,7 +13949,6 @@ nk_input_glyph(struct nk_context *ctx, const nk_glyph glyph) in->keyboard.text_len += len; } } - NK_API void nk_input_char(struct nk_context *ctx, char c) { @@ -12622,7 +13958,6 @@ nk_input_char(struct nk_context *ctx, char c) glyph[0] = c; nk_input_glyph(ctx, glyph); } - NK_API void nk_input_unicode(struct nk_context *ctx, nk_rune unicode) { @@ -12632,7 +13967,6 @@ nk_input_unicode(struct nk_context *ctx, nk_rune unicode) nk_utf_encode(unicode, rune, NK_UTF_SIZE); nk_input_glyph(ctx, rune); } - NK_API int nk_input_has_mouse_click(const struct nk_input *i, enum nk_buttons id) { @@ -12641,7 +13975,6 @@ nk_input_has_mouse_click(const struct nk_input *i, enum nk_buttons id) btn = &i->mouse.buttons[id]; return (btn->clicked && btn->down == nk_false) ? nk_true : nk_false; } - NK_API int nk_input_has_mouse_click_in_rect(const struct nk_input *i, enum nk_buttons id, struct nk_rect b) @@ -12653,7 +13986,6 @@ nk_input_has_mouse_click_in_rect(const struct nk_input *i, enum nk_buttons id, return nk_false; return nk_true; } - NK_API int nk_input_has_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id, struct nk_rect b, int down) @@ -12663,7 +13995,6 @@ nk_input_has_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons btn = &i->mouse.buttons[id]; return nk_input_has_mouse_click_in_rect(i, id, b) && (btn->down == down); } - NK_API int nk_input_is_mouse_click_in_rect(const struct nk_input *i, enum nk_buttons id, struct nk_rect b) @@ -12674,7 +14005,6 @@ nk_input_is_mouse_click_in_rect(const struct nk_input *i, enum nk_buttons id, return (nk_input_has_mouse_click_down_in_rect(i, id, b, nk_false) && btn->clicked) ? nk_true : nk_false; } - NK_API int nk_input_is_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id, struct nk_rect b, int down) @@ -12685,7 +14015,6 @@ nk_input_is_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons i return (nk_input_has_mouse_click_down_in_rect(i, id, b, down) && btn->clicked) ? nk_true : nk_false; } - NK_API int nk_input_any_mouse_click_in_rect(const struct nk_input *in, struct nk_rect b) { @@ -12694,21 +14023,18 @@ nk_input_any_mouse_click_in_rect(const struct nk_input *in, struct nk_rect b) down = down || nk_input_is_mouse_click_in_rect(in, (enum nk_buttons)i, b); return down; } - NK_API int nk_input_is_mouse_hovering_rect(const struct nk_input *i, struct nk_rect rect) { if (!i) return nk_false; return NK_INBOX(i->mouse.pos.x, i->mouse.pos.y, rect.x, rect.y, rect.w, rect.h); } - NK_API int nk_input_is_mouse_prev_hovering_rect(const struct nk_input *i, struct nk_rect rect) { if (!i) return nk_false; return NK_INBOX(i->mouse.prev.x, i->mouse.prev.y, rect.x, rect.y, rect.w, rect.h); } - NK_API int nk_input_mouse_clicked(const struct nk_input *i, enum nk_buttons id, struct nk_rect rect) { @@ -12716,14 +14042,12 @@ nk_input_mouse_clicked(const struct nk_input *i, enum nk_buttons id, struct nk_r if (!nk_input_is_mouse_hovering_rect(i, rect)) return nk_false; return nk_input_is_mouse_click_in_rect(i, id, rect); } - NK_API int nk_input_is_mouse_down(const struct nk_input *i, enum nk_buttons id) { if (!i) return nk_false; return i->mouse.buttons[id].down; } - NK_API int nk_input_is_mouse_pressed(const struct nk_input *i, enum nk_buttons id) { @@ -12734,14 +14058,12 @@ nk_input_is_mouse_pressed(const struct nk_input *i, enum nk_buttons id) return nk_true; return nk_false; } - NK_API int nk_input_is_mouse_released(const struct nk_input *i, enum nk_buttons id) { if (!i) return nk_false; return (!i->mouse.buttons[id].down && i->mouse.buttons[id].clicked); } - NK_API int nk_input_is_key_pressed(const struct nk_input *i, enum nk_keys key) { @@ -12752,7 +14074,6 @@ nk_input_is_key_pressed(const struct nk_input *i, enum nk_keys key) return nk_true; return nk_false; } - NK_API int nk_input_is_key_released(const struct nk_input *i, enum nk_keys key) { @@ -12763,7 +14084,6 @@ nk_input_is_key_released(const struct nk_input *i, enum nk_keys key) return nk_true; return nk_false; } - NK_API int nk_input_is_key_down(const struct nk_input *i, enum nk_keys key) { @@ -12774,9869 +14094,10231 @@ nk_input_is_key_down(const struct nk_input *i, enum nk_keys key) return nk_false; } -/* - * ============================================================== + + + + +/* =============================================================== * - * TEXT EDITOR + * STYLE * - * =============================================================== - */ -/* stb_textedit.h - v1.8 - public domain - Sean Barrett */ -struct nk_text_find { - 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 */ -}; + * ===============================================================*/ +NK_API void nk_style_default(struct nk_context *ctx){nk_style_from_table(ctx, 0);} +#define NK_COLOR_MAP(NK_COLOR)\ + NK_COLOR(NK_COLOR_TEXT, 175,175,175,255) \ + NK_COLOR(NK_COLOR_WINDOW, 45, 45, 45, 255) \ + NK_COLOR(NK_COLOR_HEADER, 40, 40, 40, 255) \ + NK_COLOR(NK_COLOR_BORDER, 65, 65, 65, 255) \ + NK_COLOR(NK_COLOR_BUTTON, 50, 50, 50, 255) \ + NK_COLOR(NK_COLOR_BUTTON_HOVER, 40, 40, 40, 255) \ + NK_COLOR(NK_COLOR_BUTTON_ACTIVE, 35, 35, 35, 255) \ + NK_COLOR(NK_COLOR_TOGGLE, 100,100,100,255) \ + NK_COLOR(NK_COLOR_TOGGLE_HOVER, 120,120,120,255) \ + NK_COLOR(NK_COLOR_TOGGLE_CURSOR, 45, 45, 45, 255) \ + NK_COLOR(NK_COLOR_SELECT, 45, 45, 45, 255) \ + NK_COLOR(NK_COLOR_SELECT_ACTIVE, 35, 35, 35,255) \ + NK_COLOR(NK_COLOR_SLIDER, 38, 38, 38, 255) \ + NK_COLOR(NK_COLOR_SLIDER_CURSOR, 100,100,100,255) \ + NK_COLOR(NK_COLOR_SLIDER_CURSOR_HOVER, 120,120,120,255) \ + NK_COLOR(NK_COLOR_SLIDER_CURSOR_ACTIVE, 150,150,150,255) \ + NK_COLOR(NK_COLOR_PROPERTY, 38, 38, 38, 255) \ + NK_COLOR(NK_COLOR_EDIT, 38, 38, 38, 255) \ + NK_COLOR(NK_COLOR_EDIT_CURSOR, 175,175,175,255) \ + NK_COLOR(NK_COLOR_COMBO, 45, 45, 45, 255) \ + NK_COLOR(NK_COLOR_CHART, 120,120,120,255) \ + NK_COLOR(NK_COLOR_CHART_COLOR, 45, 45, 45, 255) \ + NK_COLOR(NK_COLOR_CHART_COLOR_HIGHLIGHT, 255, 0, 0, 255) \ + NK_COLOR(NK_COLOR_SCROLLBAR, 40, 40, 40, 255) \ + NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR, 100,100,100,255) \ + NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR_HOVER, 120,120,120,255) \ + NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR_ACTIVE, 150,150,150,255) \ + NK_COLOR(NK_COLOR_TAB_HEADER, 40, 40, 40,255) -struct nk_text_edit_row { - 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; +NK_GLOBAL const struct nk_color +nk_default_color_style[NK_COLOR_COUNT] = { +#define NK_COLOR(a,b,c,d,e) {b,c,d,e}, + NK_COLOR_MAP(NK_COLOR) +#undef NK_COLOR +}; +NK_GLOBAL const char *nk_color_names[NK_COLOR_COUNT] = { +#define NK_COLOR(a,b,c,d,e) #a, + NK_COLOR_MAP(NK_COLOR) +#undef NK_COLOR }; -/* forward declarations */ -NK_INTERN void nk_textedit_makeundo_delete(struct nk_text_edit*, int, int); -NK_INTERN void nk_textedit_makeundo_insert(struct nk_text_edit*, int, int); -NK_INTERN void nk_textedit_makeundo_replace(struct nk_text_edit*, int, int, int); -#define NK_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) - -NK_INTERN float -nk_textedit_get_width(const struct nk_text_edit *edit, int line_start, int char_id, - const struct nk_user_font *font) +NK_API const char* +nk_style_get_color_by_name(enum nk_style_colors c) { - int len = 0; - nk_rune unicode = 0; - const char *str = nk_str_at_const(&edit->string, line_start + char_id, &unicode, &len); - return font->width(font->userdata, font->height, str, len); + return nk_color_names[c]; } - -NK_INTERN void -nk_textedit_layout_row(struct nk_text_edit_row *r, struct nk_text_edit *edit, - int line_start_id, float row_height, const struct nk_user_font *font) +NK_API struct nk_style_item +nk_style_item_image(struct nk_image img) { - int l; - int glyphs = 0; - nk_rune unicode; - const char *remaining; - int len = nk_str_len_char(&edit->string); - const char *end = nk_str_get_const(&edit->string) + len; - const char *text = nk_str_at_const(&edit->string, line_start_id, &unicode, &l); - const struct nk_vec2 size = nk_text_calculate_text_bounds(font, - text, (int)(end - text), row_height, &remaining, 0, &glyphs, NK_STOP_ON_NEW_LINE); - - 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 = glyphs; + struct nk_style_item i; + i.type = NK_STYLE_ITEM_IMAGE; + i.data.image = img; + return i; } - -NK_INTERN int -nk_textedit_locate_coord(struct nk_text_edit *edit, float x, float y, - const struct nk_user_font *font, float row_height) +NK_API struct nk_style_item +nk_style_item_color(struct nk_color col) { - struct nk_text_edit_row r; - int n = edit->string.len; - 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) { - nk_textedit_layout_row(&r, edit, i, row_height, font); - 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' */ - k = i; - prev_x = r.x0; - for (i=0; i < r.num_chars; ++i) { - float w = nk_textedit_get_width(edit, k, i, font); - 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 (nk_str_rune_at(&edit->string, i+r.num_chars-1) == '\n') - return i+r.num_chars-1; - else return i+r.num_chars; + struct nk_style_item i; + i.type = NK_STYLE_ITEM_COLOR; + i.data.color = col; + return i; } - -NK_INTERN void -nk_textedit_click(struct nk_text_edit *state, float x, float y, - const struct nk_user_font *font, float row_height) +NK_API struct nk_style_item +nk_style_item_hide(void) { - /* API click: on mouse down, move the cursor to the clicked location, - * and reset the selection */ - state->cursor = nk_textedit_locate_coord(state, x, y, font, row_height); - state->select_start = state->cursor; - state->select_end = state->cursor; - state->has_preferred_x = 0; + struct nk_style_item i; + i.type = NK_STYLE_ITEM_COLOR; + i.data.color = nk_rgba(0,0,0,0); + return i; } - -NK_INTERN void -nk_textedit_drag(struct nk_text_edit *state, float x, float y, - const struct nk_user_font *font, float row_height) +NK_API void +nk_style_from_table(struct nk_context *ctx, const struct nk_color *table) { - /* API drag: on mouse drag, move the cursor and selection endpoint - * to the clicked location */ - int p = nk_textedit_locate_coord(state, x, y, font, row_height); - if (state->select_start == state->select_end) - state->select_start = state->cursor; - state->cursor = state->select_end = p; -} + struct nk_style *style; + struct nk_style_text *text; + struct nk_style_button *button; + struct nk_style_toggle *toggle; + struct nk_style_selectable *select; + struct nk_style_slider *slider; + struct nk_style_progress *prog; + struct nk_style_scrollbar *scroll; + struct nk_style_edit *edit; + struct nk_style_property *property; + struct nk_style_combo *combo; + struct nk_style_chart *chart; + struct nk_style_tab *tab; + struct nk_style_window *win; -NK_INTERN void -nk_textedit_find_charpos(struct nk_text_find *find, struct nk_text_edit *state, - int n, int single_line, const struct nk_user_font *font, float row_height) -{ - /* 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) */ - struct nk_text_edit_row r; - int prev_start = 0; - int z = state->string.len; - int i=0, first; + NK_ASSERT(ctx); + if (!ctx) return; + style = &ctx->style; + table = (!table) ? nk_default_color_style: table; - nk_zero_struct(r); - 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 */ - nk_textedit_layout_row(&r, state, 0, row_height, font); - if (single_line) { - find->first_char = 0; - find->length = z; - } else { - while (i < z) { - prev_start = i; - i += r.num_chars; - nk_textedit_layout_row(&r, state, i, row_height, font); - } + /* default text */ + text = &style->text; + text->color = table[NK_COLOR_TEXT]; + text->padding = nk_vec2(0,0); - find->first_char = i; - find->length = r.num_chars; - } - find->x = r.x1; - find->y = r.ymin; - find->height = r.ymax - r.ymin; - find->prev_first = prev_start; - return; - } + /* default button */ + button = &style->button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_BUTTON]); + button->hover = nk_style_item_color(table[NK_COLOR_BUTTON_HOVER]); + button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]); + button->border_color = table[NK_COLOR_BORDER]; + button->text_background = table[NK_COLOR_BUTTON]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->image_padding = nk_vec2(0.0f,0.0f); + button->touch_padding = nk_vec2(0.0f, 0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 1.0f; + button->rounding = 4.0f; + button->draw_begin = 0; + button->draw_end = 0; - /* search rows to find the one that straddles character n */ - find->y = 0; + /* contextual button */ + button = &style->contextual_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->hover = nk_style_item_color(table[NK_COLOR_BUTTON_HOVER]); + button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]); + button->border_color = table[NK_COLOR_WINDOW]; + button->text_background = table[NK_COLOR_WINDOW]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; - for(;;) { - nk_textedit_layout_row(&r, state, i, row_height, font); - if (n < i + r.num_chars) break; - prev_start = i; - i += r.num_chars; - find->y += r.baseline_y_delta; - } + /* menu button */ + button = &style->menu_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->hover = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->active = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->border_color = table[NK_COLOR_WINDOW]; + button->text_background = table[NK_COLOR_WINDOW]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 1.0f; + button->draw_begin = 0; + button->draw_end = 0; - find->first_char = first = i; - find->length = r.num_chars; - find->height = r.ymax - r.ymin; - find->prev_first = prev_start; + /* checkbox toggle */ + toggle = &style->checkbox; + nk_zero_struct(*toggle); + toggle->normal = nk_style_item_color(table[NK_COLOR_TOGGLE]); + toggle->hover = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); + toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); + toggle->cursor_normal = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); + toggle->cursor_hover = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); + toggle->userdata = nk_handle_ptr(0); + toggle->text_background = table[NK_COLOR_WINDOW]; + toggle->text_normal = table[NK_COLOR_TEXT]; + toggle->text_hover = table[NK_COLOR_TEXT]; + toggle->text_active = table[NK_COLOR_TEXT]; + toggle->padding = nk_vec2(2.0f, 2.0f); + toggle->touch_padding = nk_vec2(0,0); + toggle->border_color = nk_rgba(0,0,0,0); + toggle->border = 0.0f; + toggle->spacing = 4; - /* now scan to find xpos */ - find->x = r.x0; - for (i=0; first+i < n; ++i) - find->x += nk_textedit_get_width(state, first, i, font); -} + /* option toggle */ + toggle = &style->option; + nk_zero_struct(*toggle); + toggle->normal = nk_style_item_color(table[NK_COLOR_TOGGLE]); + toggle->hover = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); + toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); + toggle->cursor_normal = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); + toggle->cursor_hover = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); + toggle->userdata = nk_handle_ptr(0); + toggle->text_background = table[NK_COLOR_WINDOW]; + toggle->text_normal = table[NK_COLOR_TEXT]; + toggle->text_hover = table[NK_COLOR_TEXT]; + toggle->text_active = table[NK_COLOR_TEXT]; + toggle->padding = nk_vec2(3.0f, 3.0f); + toggle->touch_padding = nk_vec2(0,0); + toggle->border_color = nk_rgba(0,0,0,0); + toggle->border = 0.0f; + toggle->spacing = 4; -NK_INTERN void -nk_textedit_clamp(struct nk_text_edit *state) -{ - /* make the selection/cursor state valid if client altered the string */ - int n = state->string.len; - if (NK_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; -} + /* selectable */ + select = &style->selectable; + nk_zero_struct(*select); + select->normal = nk_style_item_color(table[NK_COLOR_SELECT]); + select->hover = nk_style_item_color(table[NK_COLOR_SELECT]); + select->pressed = nk_style_item_color(table[NK_COLOR_SELECT]); + select->normal_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); + select->hover_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); + select->pressed_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); + select->text_normal = table[NK_COLOR_TEXT]; + select->text_hover = table[NK_COLOR_TEXT]; + select->text_pressed = table[NK_COLOR_TEXT]; + select->text_normal_active = table[NK_COLOR_TEXT]; + select->text_hover_active = table[NK_COLOR_TEXT]; + select->text_pressed_active = table[NK_COLOR_TEXT]; + select->padding = nk_vec2(2.0f,2.0f); + select->image_padding = nk_vec2(2.0f,2.0f); + select->touch_padding = nk_vec2(0,0); + select->userdata = nk_handle_ptr(0); + select->rounding = 0.0f; + select->draw_begin = 0; + select->draw_end = 0; -NK_API void -nk_textedit_delete(struct nk_text_edit *state, int where, int len) -{ - /* delete characters while updating undo */ - nk_textedit_makeundo_delete(state, where, len); - nk_str_delete_runes(&state->string, where, len); - state->has_preferred_x = 0; -} + /* slider */ + slider = &style->slider; + nk_zero_struct(*slider); + slider->normal = nk_style_item_hide(); + slider->hover = nk_style_item_hide(); + slider->active = nk_style_item_hide(); + slider->bar_normal = table[NK_COLOR_SLIDER]; + slider->bar_hover = table[NK_COLOR_SLIDER]; + slider->bar_active = table[NK_COLOR_SLIDER]; + slider->bar_filled = table[NK_COLOR_SLIDER_CURSOR]; + slider->cursor_normal = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR]); + slider->cursor_hover = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_HOVER]); + slider->cursor_active = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_ACTIVE]); + slider->inc_symbol = NK_SYMBOL_TRIANGLE_RIGHT; + slider->dec_symbol = NK_SYMBOL_TRIANGLE_LEFT; + slider->cursor_size = nk_vec2(16,16); + slider->padding = nk_vec2(2,2); + slider->spacing = nk_vec2(2,2); + slider->userdata = nk_handle_ptr(0); + slider->show_buttons = nk_false; + slider->bar_height = 8; + slider->rounding = 0; + slider->draw_begin = 0; + slider->draw_end = 0; -NK_API void -nk_textedit_delete_selection(struct nk_text_edit *state) -{ - /* delete the section */ - nk_textedit_clamp(state); - if (NK_TEXT_HAS_SELECTION(state)) { - if (state->select_start < state->select_end) { - nk_textedit_delete(state, state->select_start, - state->select_end - state->select_start); - state->select_end = state->cursor = state->select_start; - } else { - nk_textedit_delete(state, state->select_end, - state->select_start - state->select_end); - state->select_start = state->cursor = state->select_end; - } - state->has_preferred_x = 0; - } -} + /* slider buttons */ + button = &style->slider.inc_button; + button->normal = nk_style_item_color(nk_rgb(40,40,40)); + button->hover = nk_style_item_color(nk_rgb(42,42,42)); + button->active = nk_style_item_color(nk_rgb(44,44,44)); + button->border_color = nk_rgb(65,65,65); + button->text_background = nk_rgb(40,40,40); + button->text_normal = nk_rgb(175,175,175); + button->text_hover = nk_rgb(175,175,175); + button->text_active = nk_rgb(175,175,175); + button->padding = nk_vec2(8.0f,8.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 1.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; + style->slider.dec_button = style->slider.inc_button; -NK_INTERN void -nk_textedit_sortselection(struct nk_text_edit *state) -{ - /* canonicalize the selection so start <= end */ - if (state->select_end < state->select_start) { - int temp = state->select_end; - state->select_end = state->select_start; - state->select_start = temp; - } -} - -NK_INTERN void -nk_textedit_move_to_first(struct nk_text_edit *state) -{ - /* move cursor to first character of selection */ - if (NK_TEXT_HAS_SELECTION(state)) { - nk_textedit_sortselection(state); - state->cursor = state->select_start; - state->select_end = state->select_start; - state->has_preferred_x = 0; - } -} - -NK_INTERN void -nk_textedit_move_to_last(struct nk_text_edit *state) -{ - /* move cursor to last character of selection */ - if (NK_TEXT_HAS_SELECTION(state)) { - nk_textedit_sortselection(state); - nk_textedit_clamp(state); - state->cursor = state->select_end; - state->select_start = state->select_end; - state->has_preferred_x = 0; - } -} - -NK_INTERN int -nk_is_word_boundary( struct nk_text_edit *state, int idx) -{ - int len; - nk_rune c; - if (idx <= 0) return 1; - if (!nk_str_at_rune(&state->string, idx, &c, &len)) return 1; - return (c == ' ' || c == '\t' ||c == 0x3000 || c == ',' || c == ';' || - c == '(' || c == ')' || c == '{' || c == '}' || c == '[' || c == ']' || - c == '|'); -} - -NK_INTERN int -nk_textedit_move_to_word_previous(struct nk_text_edit *state) -{ - int c = state->cursor - 1; - while( c >= 0 && !nk_is_word_boundary(state, c)) - --c; - - if( c < 0 ) - c = 0; - - return c; -} - -NK_INTERN int -nk_textedit_move_to_word_next(struct nk_text_edit *state) -{ - const int len = state->string.len; - int c = state->cursor+1; - while( c < len && !nk_is_word_boundary(state, c)) - ++c; - - if( c > len ) - c = len; - - return c; -} - -NK_INTERN void -nk_textedit_prep_selection_at_cursor(struct nk_text_edit *state) -{ - /* update selection and cursor to match each other */ - if (!NK_TEXT_HAS_SELECTION(state)) - state->select_start = state->select_end = state->cursor; - else state->cursor = state->select_end; -} - -NK_API int -nk_textedit_cut(struct nk_text_edit *state) -{ - /* API cut: delete selection */ - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) - return 0; - if (NK_TEXT_HAS_SELECTION(state)) { - nk_textedit_delete_selection(state); /* implicitly clamps */ - state->has_preferred_x = 0; - return 1; - } - return 0; -} - -NK_API int -nk_textedit_paste(struct nk_text_edit *state, char const *ctext, int len) -{ - /* API paste: replace existing selection with passed-in text */ - int glyphs; - const char *text = (const char *) ctext; - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) return 0; - - /* if there's a selection, the paste should delete it */ - nk_textedit_clamp(state); - nk_textedit_delete_selection(state); - - /* try to insert the characters */ - glyphs = nk_utf_len(ctext, len); - if (nk_str_insert_text_char(&state->string, state->cursor, text, len)) { - nk_textedit_makeundo_insert(state, state->cursor, glyphs); - state->cursor += len; - state->has_preferred_x = 0; - return 1; - } - /* remove the undo since we didn't actually insert the characters */ - if (state->undo.undo_point) - --state->undo.undo_point; - return 0; -} - -NK_API void -nk_textedit_text(struct nk_text_edit *state, const char *text, int total_len) -{ - nk_rune unicode; - int glyph_len; - int text_len = 0; - - NK_ASSERT(state); - NK_ASSERT(text); - if (!text || !total_len || state->mode == NK_TEXT_EDIT_MODE_VIEW) return; - - glyph_len = nk_utf_decode(text, &unicode, total_len); - while ((text_len < total_len) && glyph_len) - { - /* don't insert a backward delete, just process the event */ - if (unicode == 127) goto next; - /* can't add newline in single-line mode */ - if (unicode == '\n' && state->single_line) goto next; - /* filter incoming text */ - if (state->filter && !state->filter(state, unicode)) goto next; - - if (!NK_TEXT_HAS_SELECTION(state) && - state->cursor < state->string.len) - { - if (state->mode == NK_TEXT_EDIT_MODE_REPLACE) { - nk_textedit_makeundo_replace(state, state->cursor, 1, 1); - nk_str_delete_runes(&state->string, state->cursor, 1); - } - if (nk_str_insert_text_utf8(&state->string, state->cursor, - text+text_len, 1)) - { - ++state->cursor; - state->has_preferred_x = 0; - } - } else { - nk_textedit_delete_selection(state); /* implicitly clamps */ - if (nk_str_insert_text_utf8(&state->string, state->cursor, - text+text_len, 1)) - { - nk_textedit_makeundo_insert(state, state->cursor, 1); - ++state->cursor; - state->has_preferred_x = 0; - } - } - next: - text_len += glyph_len; - glyph_len = nk_utf_decode(text + text_len, &unicode, total_len-text_len); - } -} - -NK_INTERN void -nk_textedit_key(struct nk_text_edit *state, enum nk_keys key, int shift_mod, - const struct nk_user_font *font, float row_height) -{ -retry: - switch (key) - { - case NK_KEY_NONE: - case NK_KEY_CTRL: - case NK_KEY_ENTER: - case NK_KEY_SHIFT: - case NK_KEY_TAB: - case NK_KEY_COPY: - case NK_KEY_CUT: - case NK_KEY_PASTE: - case NK_KEY_MAX: - default: break; - case NK_KEY_TEXT_UNDO: - nk_textedit_undo(state); - state->has_preferred_x = 0; - break; - - case NK_KEY_TEXT_REDO: - nk_textedit_redo(state); - state->has_preferred_x = 0; - break; - - case NK_KEY_TEXT_SELECT_ALL: - nk_textedit_select_all(state); - state->has_preferred_x = 0; - break; - - case NK_KEY_TEXT_INSERT_MODE: - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) - state->mode = NK_TEXT_EDIT_MODE_INSERT; - break; - case NK_KEY_TEXT_REPLACE_MODE: - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) - state->mode = NK_TEXT_EDIT_MODE_REPLACE; - break; - case NK_KEY_TEXT_RESET_MODE: - if (state->mode == NK_TEXT_EDIT_MODE_INSERT || - state->mode == NK_TEXT_EDIT_MODE_REPLACE) - state->mode = NK_TEXT_EDIT_MODE_VIEW; - break; + /* progressbar */ + prog = &style->progress; + nk_zero_struct(*prog); + prog->normal = nk_style_item_color(table[NK_COLOR_SLIDER]); + prog->hover = nk_style_item_color(table[NK_COLOR_SLIDER]); + prog->active = nk_style_item_color(table[NK_COLOR_SLIDER]); + prog->cursor_normal = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR]); + prog->cursor_hover = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_HOVER]); + prog->cursor_active = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_ACTIVE]); + prog->border_color = nk_rgba(0,0,0,0); + prog->cursor_border_color = nk_rgba(0,0,0,0); + prog->userdata = nk_handle_ptr(0); + prog->padding = nk_vec2(4,4); + prog->rounding = 0; + prog->border = 0; + prog->cursor_rounding = 0; + prog->cursor_border = 0; + prog->draw_begin = 0; + prog->draw_end = 0; - case NK_KEY_LEFT: - if (shift_mod) { - nk_textedit_clamp(state); - nk_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; - } else { - /* if currently there's a selection, - * move cursor to start of selection */ - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_first(state); - else if (state->cursor > 0) - --state->cursor; - state->has_preferred_x = 0; - } break; + /* scrollbars */ + scroll = &style->scrollh; + nk_zero_struct(*scroll); + scroll->normal = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); + scroll->hover = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); + scroll->active = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); + scroll->cursor_normal = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR]); + scroll->cursor_hover = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR_HOVER]); + scroll->cursor_active = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR_ACTIVE]); + scroll->dec_symbol = NK_SYMBOL_CIRCLE_SOLID; + scroll->inc_symbol = NK_SYMBOL_CIRCLE_SOLID; + scroll->userdata = nk_handle_ptr(0); + scroll->border_color = table[NK_COLOR_SCROLLBAR]; + scroll->cursor_border_color = table[NK_COLOR_SCROLLBAR]; + scroll->padding = nk_vec2(0,0); + scroll->show_buttons = nk_false; + scroll->border = 0; + scroll->rounding = 0; + scroll->border_cursor = 0; + scroll->rounding_cursor = 0; + scroll->draw_begin = 0; + scroll->draw_end = 0; + style->scrollv = style->scrollh; - case NK_KEY_RIGHT: - if (shift_mod) { - nk_textedit_prep_selection_at_cursor(state); - /* move selection right */ - ++state->select_end; - nk_textedit_clamp(state); - state->cursor = state->select_end; - state->has_preferred_x = 0; - } else { - /* if currently there's a selection, - * move cursor to end of selection */ - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_last(state); - else ++state->cursor; - nk_textedit_clamp(state); - state->has_preferred_x = 0; - } break; + /* scrollbars buttons */ + button = &style->scrollh.inc_button; + button->normal = nk_style_item_color(nk_rgb(40,40,40)); + button->hover = nk_style_item_color(nk_rgb(42,42,42)); + button->active = nk_style_item_color(nk_rgb(44,44,44)); + button->border_color = nk_rgb(65,65,65); + button->text_background = nk_rgb(40,40,40); + button->text_normal = nk_rgb(175,175,175); + button->text_hover = nk_rgb(175,175,175); + button->text_active = nk_rgb(175,175,175); + button->padding = nk_vec2(4.0f,4.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 1.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; + style->scrollh.dec_button = style->scrollh.inc_button; + style->scrollv.inc_button = style->scrollh.inc_button; + style->scrollv.dec_button = style->scrollh.inc_button; - case NK_KEY_TEXT_WORD_LEFT: - if (shift_mod) { - if( !NK_TEXT_HAS_SELECTION( state ) ) - nk_textedit_prep_selection_at_cursor(state); - state->cursor = nk_textedit_move_to_word_previous(state); - state->select_end = state->cursor; - nk_textedit_clamp(state ); - } else { - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_first(state); - else { - state->cursor = nk_textedit_move_to_word_previous(state); - nk_textedit_clamp(state ); - } - } break; + /* edit */ + edit = &style->edit; + nk_zero_struct(*edit); + edit->normal = nk_style_item_color(table[NK_COLOR_EDIT]); + edit->hover = nk_style_item_color(table[NK_COLOR_EDIT]); + edit->active = nk_style_item_color(table[NK_COLOR_EDIT]); + edit->cursor_normal = table[NK_COLOR_TEXT]; + edit->cursor_hover = table[NK_COLOR_TEXT]; + edit->cursor_text_normal= table[NK_COLOR_EDIT]; + edit->cursor_text_hover = table[NK_COLOR_EDIT]; + edit->border_color = table[NK_COLOR_BORDER]; + edit->text_normal = table[NK_COLOR_TEXT]; + edit->text_hover = table[NK_COLOR_TEXT]; + edit->text_active = table[NK_COLOR_TEXT]; + edit->selected_normal = table[NK_COLOR_TEXT]; + edit->selected_hover = table[NK_COLOR_TEXT]; + edit->selected_text_normal = table[NK_COLOR_EDIT]; + edit->selected_text_hover = table[NK_COLOR_EDIT]; + edit->scrollbar_size = nk_vec2(10,10); + edit->scrollbar = style->scrollv; + edit->padding = nk_vec2(4,4); + edit->row_padding = 2; + edit->cursor_size = 4; + edit->border = 1; + edit->rounding = 0; - case NK_KEY_TEXT_WORD_RIGHT: - if (shift_mod) { - if( !NK_TEXT_HAS_SELECTION( state ) ) - nk_textedit_prep_selection_at_cursor(state); - state->cursor = nk_textedit_move_to_word_next(state); - state->select_end = state->cursor; - nk_textedit_clamp(state); - } else { - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_last(state); - else { - state->cursor = nk_textedit_move_to_word_next(state); - nk_textedit_clamp(state ); - } - } break; + /* property */ + property = &style->property; + nk_zero_struct(*property); + property->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); + property->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); + property->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); + property->border_color = table[NK_COLOR_BORDER]; + property->label_normal = table[NK_COLOR_TEXT]; + property->label_hover = table[NK_COLOR_TEXT]; + property->label_active = table[NK_COLOR_TEXT]; + property->sym_left = NK_SYMBOL_TRIANGLE_LEFT; + property->sym_right = NK_SYMBOL_TRIANGLE_RIGHT; + property->userdata = nk_handle_ptr(0); + property->padding = nk_vec2(4,4); + property->border = 1; + property->rounding = 10; + property->draw_begin = 0; + property->draw_end = 0; - case NK_KEY_DOWN: { - struct nk_text_find find; - struct nk_text_edit_row row; - int i, sel = shift_mod; + /* property buttons */ + button = &style->property.dec_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); + button->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); + button->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_PROPERTY]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(0.0f,0.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; + style->property.inc_button = style->property.dec_button; - if (state->single_line) { - /* on windows, up&down in single-line behave like left&right */ - key = NK_KEY_RIGHT; - goto retry; - } + /* property edit */ + edit = &style->property.edit; + nk_zero_struct(*edit); + edit->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); + edit->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); + edit->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); + edit->border_color = nk_rgba(0,0,0,0); + edit->cursor_normal = table[NK_COLOR_TEXT]; + edit->cursor_hover = table[NK_COLOR_TEXT]; + edit->cursor_text_normal= table[NK_COLOR_EDIT]; + edit->cursor_text_hover = table[NK_COLOR_EDIT]; + edit->text_normal = table[NK_COLOR_TEXT]; + edit->text_hover = table[NK_COLOR_TEXT]; + edit->text_active = table[NK_COLOR_TEXT]; + edit->selected_normal = table[NK_COLOR_TEXT]; + edit->selected_hover = table[NK_COLOR_TEXT]; + edit->selected_text_normal = table[NK_COLOR_EDIT]; + edit->selected_text_hover = table[NK_COLOR_EDIT]; + edit->padding = nk_vec2(0,0); + edit->cursor_size = 8; + edit->border = 0; + edit->rounding = 0; - if (sel) - nk_textedit_prep_selection_at_cursor(state); - else if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_last(state); + /* chart */ + chart = &style->chart; + nk_zero_struct(*chart); + chart->background = nk_style_item_color(table[NK_COLOR_CHART]); + chart->border_color = table[NK_COLOR_BORDER]; + chart->selected_color = table[NK_COLOR_CHART_COLOR_HIGHLIGHT]; + chart->color = table[NK_COLOR_CHART_COLOR]; + chart->padding = nk_vec2(4,4); + chart->border = 0; + chart->rounding = 0; - /* compute current position of cursor point */ - nk_textedit_clamp(state); - nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, - font, row_height); + /* combo */ + combo = &style->combo; + combo->normal = nk_style_item_color(table[NK_COLOR_COMBO]); + combo->hover = nk_style_item_color(table[NK_COLOR_COMBO]); + combo->active = nk_style_item_color(table[NK_COLOR_COMBO]); + combo->border_color = table[NK_COLOR_BORDER]; + combo->label_normal = table[NK_COLOR_TEXT]; + combo->label_hover = table[NK_COLOR_TEXT]; + combo->label_active = table[NK_COLOR_TEXT]; + combo->sym_normal = NK_SYMBOL_TRIANGLE_DOWN; + combo->sym_hover = NK_SYMBOL_TRIANGLE_DOWN; + combo->sym_active = NK_SYMBOL_TRIANGLE_DOWN; + combo->content_padding = nk_vec2(4,4); + combo->button_padding = nk_vec2(0,4); + combo->spacing = nk_vec2(4,0); + combo->border = 1; + combo->rounding = 0; - /* now find character position down a row */ - if (find.length) - { - float x; - float goal_x = state->has_preferred_x ? state->preferred_x : find.x; - int start = find.first_char + find.length; + /* combo button */ + button = &style->combo.button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_COMBO]); + button->hover = nk_style_item_color(table[NK_COLOR_COMBO]); + button->active = nk_style_item_color(table[NK_COLOR_COMBO]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_COMBO]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; - state->cursor = start; - nk_textedit_layout_row(&row, state, state->cursor, row_height, font); - x = row.x0; + /* tab */ + tab = &style->tab; + tab->background = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); + tab->border_color = table[NK_COLOR_BORDER]; + tab->text = table[NK_COLOR_TEXT]; + tab->sym_minimize = NK_SYMBOL_TRIANGLE_RIGHT; + tab->sym_maximize = NK_SYMBOL_TRIANGLE_DOWN; + tab->padding = nk_vec2(4,4); + tab->spacing = nk_vec2(4,4); + tab->indent = 10.0f; + tab->border = 1; + tab->rounding = 0; - for (i=0; i < row.num_chars && x < row.x1; ++i) { - float dx = nk_textedit_get_width(state, start, i, font); - x += dx; - if (x > goal_x) - break; - ++state->cursor; - } - nk_textedit_clamp(state); + /* tab button */ + button = &style->tab.tab_minimize_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); + button->hover = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); + button->active = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_TAB_HEADER]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; + style->tab.tab_maximize_button =*button; - state->has_preferred_x = 1; - state->preferred_x = goal_x; - if (sel) - state->select_end = state->cursor; - } - } break; + /* node button */ + button = &style->tab.node_minimize_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->hover = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->active = nk_style_item_color(table[NK_COLOR_WINDOW]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_TAB_HEADER]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(2.0f,2.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; + style->tab.node_maximize_button =*button; - case NK_KEY_UP: { - struct nk_text_find find; - struct nk_text_edit_row row; - int i, sel = shift_mod; + /* window header */ + win = &style->window; + win->header.align = NK_HEADER_RIGHT; + win->header.close_symbol = NK_SYMBOL_X; + win->header.minimize_symbol = NK_SYMBOL_MINUS; + win->header.maximize_symbol = NK_SYMBOL_PLUS; + win->header.normal = nk_style_item_color(table[NK_COLOR_HEADER]); + win->header.hover = nk_style_item_color(table[NK_COLOR_HEADER]); + win->header.active = nk_style_item_color(table[NK_COLOR_HEADER]); + win->header.label_normal = table[NK_COLOR_TEXT]; + win->header.label_hover = table[NK_COLOR_TEXT]; + win->header.label_active = table[NK_COLOR_TEXT]; + win->header.label_padding = nk_vec2(4,4); + win->header.padding = nk_vec2(4,4); + win->header.spacing = nk_vec2(0,0); - if (state->single_line) { - /* on windows, up&down become left&right */ - key = NK_KEY_LEFT; - goto retry; - } + /* window header close button */ + button = &style->window.header.close_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_HEADER]); + button->hover = nk_style_item_color(table[NK_COLOR_HEADER]); + button->active = nk_style_item_color(table[NK_COLOR_HEADER]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_HEADER]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(0.0f,0.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; - if (sel) - nk_textedit_prep_selection_at_cursor(state); - else if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_move_to_first(state); + /* window header minimize button */ + button = &style->window.header.minimize_button; + nk_zero_struct(*button); + button->normal = nk_style_item_color(table[NK_COLOR_HEADER]); + button->hover = nk_style_item_color(table[NK_COLOR_HEADER]); + button->active = nk_style_item_color(table[NK_COLOR_HEADER]); + button->border_color = nk_rgba(0,0,0,0); + button->text_background = table[NK_COLOR_HEADER]; + button->text_normal = table[NK_COLOR_TEXT]; + button->text_hover = table[NK_COLOR_TEXT]; + button->text_active = table[NK_COLOR_TEXT]; + button->padding = nk_vec2(0.0f,0.0f); + button->touch_padding = nk_vec2(0.0f,0.0f); + button->userdata = nk_handle_ptr(0); + button->text_alignment = NK_TEXT_CENTERED; + button->border = 0.0f; + button->rounding = 0.0f; + button->draw_begin = 0; + button->draw_end = 0; - /* compute current position of cursor point */ - nk_textedit_clamp(state); - nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, - font, row_height); + /* window */ + win->background = table[NK_COLOR_WINDOW]; + win->fixed_background = nk_style_item_color(table[NK_COLOR_WINDOW]); + win->border_color = table[NK_COLOR_BORDER]; + win->popup_border_color = table[NK_COLOR_BORDER]; + win->combo_border_color = table[NK_COLOR_BORDER]; + win->contextual_border_color = table[NK_COLOR_BORDER]; + win->menu_border_color = table[NK_COLOR_BORDER]; + win->group_border_color = table[NK_COLOR_BORDER]; + win->tooltip_border_color = table[NK_COLOR_BORDER]; + win->scaler = nk_style_item_color(table[NK_COLOR_TEXT]); - /* can only go up if there's a previous row */ - if (find.prev_first != find.first_char) { - /* now find character position up a row */ - float x; - float goal_x = state->has_preferred_x ? state->preferred_x : find.x; + win->rounding = 0.0f; + win->spacing = nk_vec2(4,4); + win->scrollbar_size = nk_vec2(10,10); + win->min_size = nk_vec2(64,64); - state->cursor = find.prev_first; - nk_textedit_layout_row(&row, state, state->cursor, row_height, font); - x = row.x0; + win->combo_border = 1.0f; + win->contextual_border = 1.0f; + win->menu_border = 1.0f; + win->group_border = 1.0f; + win->tooltip_border = 1.0f; + win->popup_border = 1.0f; + win->border = 2.0f; + win->min_row_height_padding = 8; - for (i=0; i < row.num_chars && x < row.x1; ++i) { - float dx = nk_textedit_get_width(state, find.prev_first, i, font); - x += dx; - if (x > goal_x) - break; - ++state->cursor; - } - nk_textedit_clamp(state); + win->padding = nk_vec2(4,4); + win->group_padding = nk_vec2(4,4); + win->popup_padding = nk_vec2(4,4); + win->combo_padding = nk_vec2(4,4); + win->contextual_padding = nk_vec2(4,4); + win->menu_padding = nk_vec2(4,4); + win->tooltip_padding = nk_vec2(4,4); +} +NK_API void +nk_style_set_font(struct nk_context *ctx, const struct nk_user_font *font) +{ + struct nk_style *style; + NK_ASSERT(ctx); - state->has_preferred_x = 1; - state->preferred_x = goal_x; - if (sel) state->select_end = state->cursor; - } - } break; + if (!ctx) return; + style = &ctx->style; + style->font = font; + ctx->stacks.fonts.head = 0; + if (ctx->current) + nk_layout_reset_min_row_height(ctx); +} +NK_API int +nk_style_push_font(struct nk_context *ctx, const struct nk_user_font *font) +{ + struct nk_config_stack_user_font *font_stack; + struct nk_config_stack_user_font_element *element; - case NK_KEY_DEL: - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) - break; - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_delete_selection(state); - else { - int n = state->string.len; - if (state->cursor < n) - nk_textedit_delete(state, state->cursor, 1); - } - state->has_preferred_x = 0; - break; + NK_ASSERT(ctx); + if (!ctx) return 0; - case NK_KEY_BACKSPACE: - if (state->mode == NK_TEXT_EDIT_MODE_VIEW) - break; - if (NK_TEXT_HAS_SELECTION(state)) - nk_textedit_delete_selection(state); - else { - nk_textedit_clamp(state); - if (state->cursor > 0) { - nk_textedit_delete(state, state->cursor-1, 1); - --state->cursor; - } - } - state->has_preferred_x = 0; - break; + font_stack = &ctx->stacks.fonts; + NK_ASSERT(font_stack->head < (int)NK_LEN(font_stack->elements)); + if (font_stack->head >= (int)NK_LEN(font_stack->elements)) + return 0; - case NK_KEY_TEXT_START: - if (shift_mod) { - nk_textedit_prep_selection_at_cursor(state); - state->cursor = state->select_end = 0; - state->has_preferred_x = 0; - } else { - state->cursor = state->select_start = state->select_end = 0; - state->has_preferred_x = 0; - } - break; + element = &font_stack->elements[font_stack->head++]; + element->address = &ctx->style.font; + element->old_value = ctx->style.font; + ctx->style.font = font; + return 1; +} +NK_API int +nk_style_pop_font(struct nk_context *ctx) +{ + struct nk_config_stack_user_font *font_stack; + struct nk_config_stack_user_font_element *element; - case NK_KEY_TEXT_END: - if (shift_mod) { - nk_textedit_prep_selection_at_cursor(state); - state->cursor = state->select_end = state->string.len; - state->has_preferred_x = 0; - } else { - state->cursor = state->string.len; - state->select_start = state->select_end = 0; - state->has_preferred_x = 0; - } - break; + NK_ASSERT(ctx); + if (!ctx) return 0; - case NK_KEY_TEXT_LINE_START: { - if (shift_mod) { - struct nk_text_find find; - nk_textedit_clamp(state); - nk_textedit_prep_selection_at_cursor(state); - if (state->string.len && state->cursor == state->string.len) - --state->cursor; - nk_textedit_find_charpos(&find, state,state->cursor, state->single_line, - font, row_height); - state->cursor = state->select_end = find.first_char; - state->has_preferred_x = 0; - } else { - struct nk_text_find find; - if (state->string.len && state->cursor == state->string.len) - --state->cursor; - nk_textedit_clamp(state); - nk_textedit_move_to_first(state); - nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, - font, row_height); - state->cursor = find.first_char; - state->has_preferred_x = 0; - } - } break; + font_stack = &ctx->stacks.fonts; + NK_ASSERT(font_stack->head > 0); + if (font_stack->head < 1) + return 0; - case NK_KEY_TEXT_LINE_END: { - if (shift_mod) { - struct nk_text_find find; - nk_textedit_clamp(state); - nk_textedit_prep_selection_at_cursor(state); - nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, - font, row_height); - state->has_preferred_x = 0; - state->cursor = find.first_char + find.length; - if (find.length > 0 && nk_str_rune_at(&state->string, state->cursor-1) == '\n') - --state->cursor; - state->select_end = state->cursor; - } else { - struct nk_text_find find; - nk_textedit_clamp(state); - nk_textedit_move_to_first(state); - nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, - font, row_height); + element = &font_stack->elements[--font_stack->head]; + *element->address = element->old_value; + return 1; +} +#define NK_STYLE_PUSH_IMPLEMENATION(prefix, type, stack) \ +nk_style_push_##type(struct nk_context *ctx, prefix##_##type *address, prefix##_##type value)\ +{\ + struct nk_config_stack_##type * type_stack;\ + struct nk_config_stack_##type##_element *element;\ + NK_ASSERT(ctx);\ + if (!ctx) return 0;\ + type_stack = &ctx->stacks.stack;\ + NK_ASSERT(type_stack->head < (int)NK_LEN(type_stack->elements));\ + if (type_stack->head >= (int)NK_LEN(type_stack->elements))\ + return 0;\ + element = &type_stack->elements[type_stack->head++];\ + element->address = address;\ + element->old_value = *address;\ + *address = value;\ + return 1;\ +} +#define NK_STYLE_POP_IMPLEMENATION(type, stack) \ +nk_style_pop_##type(struct nk_context *ctx)\ +{\ + struct nk_config_stack_##type *type_stack;\ + struct nk_config_stack_##type##_element *element;\ + NK_ASSERT(ctx);\ + if (!ctx) return 0;\ + type_stack = &ctx->stacks.stack;\ + NK_ASSERT(type_stack->head > 0);\ + if (type_stack->head < 1)\ + return 0;\ + element = &type_stack->elements[--type_stack->head];\ + *element->address = element->old_value;\ + return 1;\ +} +NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk, style_item, style_items) +NK_API int NK_STYLE_PUSH_IMPLEMENATION(nk,float, floats) +NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk, vec2, vectors) +NK_API int NK_STYLE_PUSH_IMPLEMENATION(nk,flags, flags) +NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk,color, colors) - state->has_preferred_x = 0; - state->cursor = find.first_char + find.length; - if (find.length > 0 && nk_str_rune_at(&state->string, state->cursor-1) == '\n') - --state->cursor; - }} break; +NK_API int NK_STYLE_POP_IMPLEMENATION(style_item, style_items) +NK_API int NK_STYLE_POP_IMPLEMENATION(float,floats) +NK_API int NK_STYLE_POP_IMPLEMENATION(vec2, vectors) +NK_API int NK_STYLE_POP_IMPLEMENATION(flags,flags) +NK_API int NK_STYLE_POP_IMPLEMENATION(color,colors) + +NK_API int +nk_style_set_cursor(struct nk_context *ctx, enum nk_style_cursor c) +{ + struct nk_style *style; + NK_ASSERT(ctx); + if (!ctx) return 0; + style = &ctx->style; + if (style->cursors[c]) { + style->cursor_active = style->cursors[c]; + return 1; } + return 0; } - -NK_INTERN void -nk_textedit_flush_redo(struct nk_text_undo_state *state) +NK_API void +nk_style_show_cursor(struct nk_context *ctx) +{ + ctx->style.cursor_visible = nk_true; +} +NK_API void +nk_style_hide_cursor(struct nk_context *ctx) { - state->redo_point = NK_TEXTEDIT_UNDOSTATECOUNT; - state->redo_char_point = NK_TEXTEDIT_UNDOCHARCOUNT; + ctx->style.cursor_visible = nk_false; } - -NK_INTERN void -nk_textedit_discard_undo(struct nk_text_undo_state *state) +NK_API void +nk_style_load_cursor(struct nk_context *ctx, enum nk_style_cursor cursor, + const struct nk_cursor *c) { - /* discard the oldest entry in the undo list */ - 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 = (short)(state->undo_char_point - n); - NK_MEMCPY(state->undo_char, state->undo_char + n, - (nk_size)state->undo_char_point*sizeof(nk_rune)); - for (i=0; i < state->undo_point; ++i) { - if (state->undo_rec[i].char_storage >= 0) - state->undo_rec[i].char_storage = (short) - (state->undo_rec[i].char_storage - n); - } - } - --state->undo_point; - NK_MEMCPY(state->undo_rec, state->undo_rec+1, - (nk_size)((nk_size)state->undo_point * sizeof(state->undo_rec[0]))); - } + struct nk_style *style; + NK_ASSERT(ctx); + if (!ctx) return; + style = &ctx->style; + style->cursors[cursor] = c; } - -NK_INTERN void -nk_textedit_discard_redo(struct nk_text_undo_state *state) +NK_API void +nk_style_load_all_cursors(struct nk_context *ctx, struct nk_cursor *cursors) { -/* 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 */ - nk_size num; - int k = NK_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; - /* delete n characters from all other records */ - state->redo_char_point = (short)(state->redo_char_point + n); - num = (nk_size)(NK_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point); - NK_MEMCPY(state->undo_char + state->redo_char_point, - state->undo_char + state->redo_char_point-n, num * sizeof(char)); - for (i = state->redo_point; i < k; ++i) { - if (state->undo_rec[i].char_storage >= 0) { - state->undo_rec[i].char_storage = (short) - (state->undo_rec[i].char_storage + n); - } - } - } - ++state->redo_point; - num = (nk_size)(NK_TEXTEDIT_UNDOSTATECOUNT - state->redo_point); - if (num) NK_MEMCPY(state->undo_rec + state->redo_point-1, - state->undo_rec + state->redo_point, num * sizeof(state->undo_rec[0])); - } + int i = 0; + struct nk_style *style; + NK_ASSERT(ctx); + if (!ctx) return; + style = &ctx->style; + for (i = 0; i < NK_CURSOR_COUNT; ++i) + style->cursors[i] = &cursors[i]; + style->cursor_visible = nk_true; } -NK_INTERN struct nk_text_undo_record* -nk_textedit_create_undo_record(struct nk_text_undo_state *state, int numchars) -{ - /* any time we create a new undo record, we discard redo*/ - nk_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 == NK_TEXTEDIT_UNDOSTATECOUNT) - nk_textedit_discard_undo(state); - /* if the characters to store won't possibly fit in the buffer, - * we can't undo */ - if (numchars > NK_TEXTEDIT_UNDOCHARCOUNT) { - state->undo_point = 0; - state->undo_char_point = 0; - return 0; - } - /* if we don't have enough free characters in the buffer, - * we have to make room */ - while (state->undo_char_point + numchars > NK_TEXTEDIT_UNDOCHARCOUNT) - nk_textedit_discard_undo(state); - return &state->undo_rec[state->undo_point++]; -} -NK_INTERN nk_rune* -nk_textedit_createundo(struct nk_text_undo_state *state, int pos, - int insert_len, int delete_len) +/* ============================================================== + * + * CONTEXT + * + * ===============================================================*/ +NK_INTERN void +nk_setup(struct nk_context *ctx, const struct nk_user_font *font) { - struct nk_text_undo_record *r = nk_textedit_create_undo_record(state, insert_len); - if (r == 0) - return 0; - - r->where = pos; - r->insert_length = (short) insert_len; - r->delete_length = (short) delete_len; + NK_ASSERT(ctx); + if (!ctx) return; + nk_zero_struct(*ctx); + nk_style_default(ctx); + ctx->seq = 1; + if (font) ctx->style.font = font; +#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT + nk_draw_list_init(&ctx->draw_list); +#endif +} +#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR +NK_API int +nk_init_default(struct nk_context *ctx, const struct nk_user_font *font) +{ + struct nk_allocator alloc; + alloc.userdata.ptr = 0; + alloc.alloc = nk_malloc; + alloc.free = nk_mfree; + return nk_init(ctx, &alloc, font); +} +#endif +NK_API int +nk_init_fixed(struct nk_context *ctx, void *memory, nk_size size, + const struct nk_user_font *font) +{ + NK_ASSERT(memory); + if (!memory) return 0; + nk_setup(ctx, font); + nk_buffer_init_fixed(&ctx->memory, memory, size); + ctx->use_pool = nk_false; + return 1; +} +NK_API int +nk_init_custom(struct nk_context *ctx, struct nk_buffer *cmds, + struct nk_buffer *pool, const struct nk_user_font *font) +{ + NK_ASSERT(cmds); + NK_ASSERT(pool); + if (!cmds || !pool) return 0; - if (insert_len == 0) { - r->char_storage = -1; - return 0; + nk_setup(ctx, font); + ctx->memory = *cmds; + if (pool->type == NK_BUFFER_FIXED) { + /* take memory from buffer and alloc fixed pool */ + nk_pool_init_fixed(&ctx->pool, pool->memory.ptr, pool->memory.size); } else { - r->char_storage = state->undo_char_point; - state->undo_char_point = (short)(state->undo_char_point + insert_len); - return &state->undo_char[r->char_storage]; + /* create dynamic pool from buffer allocator */ + struct nk_allocator *alloc = &pool->pool; + nk_pool_init(&ctx->pool, alloc, NK_POOL_DEFAULT_CAPACITY); } + ctx->use_pool = nk_true; + return 1; } - +NK_API int +nk_init(struct nk_context *ctx, struct nk_allocator *alloc, + const struct nk_user_font *font) +{ + NK_ASSERT(alloc); + if (!alloc) return 0; + nk_setup(ctx, font); + nk_buffer_init(&ctx->memory, alloc, NK_DEFAULT_COMMAND_BUFFER_SIZE); + nk_pool_init(&ctx->pool, alloc, NK_POOL_DEFAULT_CAPACITY); + ctx->use_pool = nk_true; + return 1; +} +#ifdef NK_INCLUDE_COMMAND_USERDATA NK_API void -nk_textedit_undo(struct nk_text_edit *state) +nk_set_user_data(struct nk_context *ctx, nk_handle handle) { - struct nk_text_undo_state *s = &state->undo; - struct nk_text_undo_record 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 >= NK_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) { - /* there's currently not enough room, so discard a redo record */ - nk_textedit_discard_redo(s); - /* should never happen: */ - if (s->redo_point == NK_TEXTEDIT_UNDOSTATECOUNT) - return; - } - - r = &s->undo_rec[s->redo_point-1]; - r->char_storage = (short)(s->redo_char_point - u.delete_length); - s->redo_char_point = (short)(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] = - nk_str_rune_at(&state->string, u.where + i); - } - /* now we can carry out the deletion */ - nk_str_delete_runes(&state->string, 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 */ - nk_str_insert_text_runes(&state->string, u.where, - &s->undo_char[u.char_storage], u.insert_length); - s->undo_char_point = (short)(s->undo_char_point - u.insert_length); - } - state->cursor = (short)(u.where + u.insert_length); + if (!ctx) return; + ctx->userdata = handle; + if (ctx->current) + ctx->current->buffer.userdata = handle; +} +#endif +NK_API void +nk_free(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + if (!ctx) return; + nk_buffer_free(&ctx->memory); + if (ctx->use_pool) + nk_pool_free(&ctx->pool); - s->undo_point--; - s->redo_point--; -} + nk_zero(&ctx->input, sizeof(ctx->input)); + nk_zero(&ctx->style, sizeof(ctx->style)); + nk_zero(&ctx->memory, sizeof(ctx->memory)); + ctx->seq = 0; + ctx->build = 0; + ctx->begin = 0; + ctx->end = 0; + ctx->active = 0; + ctx->current = 0; + ctx->freelist = 0; + ctx->count = 0; +} NK_API void -nk_textedit_redo(struct nk_text_edit *state) +nk_clear(struct nk_context *ctx) { - struct nk_text_undo_state *s = &state->undo; - struct nk_text_undo_record *u, r; - if (s->redo_point == NK_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]; + struct nk_window *iter; + struct nk_window *next; + NK_ASSERT(ctx); - /* 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 (!ctx) return; + if (ctx->use_pool) + nk_buffer_clear(&ctx->memory); + else nk_buffer_reset(&ctx->memory, NK_BUFFER_FRONT); - 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 = (short)(s->undo_char_point + u->insert_length); + ctx->build = 0; + ctx->memory.calls = 0; + ctx->last_widget_state = 0; + ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_ARROW]; + NK_MEMSET(&ctx->overlay, 0, sizeof(ctx->overlay)); - /* now save the characters */ - for (i=0; i < u->insert_length; ++i) { - s->undo_char[u->char_storage + i] = - nk_str_rune_at(&state->string, u->where + i); - } + /* garbage collector */ + iter = ctx->begin; + while (iter) { + /* make sure valid minimized windows do not get removed */ + if ((iter->flags & NK_WINDOW_MINIMIZED) && + !(iter->flags & NK_WINDOW_CLOSED) && + iter->seq == ctx->seq) { + iter = iter->next; + continue; } - nk_str_delete_runes(&state->string, r.where, r.delete_length); - } - - if (r.insert_length) { - /* easy case: need to insert n characters */ - nk_str_insert_text_runes(&state->string, r.where, - &s->undo_char[r.char_storage], r.insert_length); + /* remove hotness from hidden or closed windows*/ + if (((iter->flags & NK_WINDOW_HIDDEN) || + (iter->flags & NK_WINDOW_CLOSED)) && + iter == ctx->active) { + ctx->active = iter->prev; + ctx->end = iter->prev; + if (!ctx->end) + ctx->begin = 0; + if (ctx->active) + ctx->active->flags &= ~(unsigned)NK_WINDOW_ROM; + } + /* free unused popup windows */ + if (iter->popup.win && iter->popup.win->seq != ctx->seq) { + nk_free_window(ctx, iter->popup.win); + iter->popup.win = 0; + } + /* remove unused window state tables */ + {struct nk_table *n, *it = iter->tables; + while (it) { + n = it->next; + if (it->seq != ctx->seq) { + nk_remove_table(iter, it); + nk_zero(it, sizeof(union nk_page_data)); + nk_free_table(ctx, it); + if (it == iter->tables) + iter->tables = n; + } it = n; + }} + /* window itself is not used anymore so free */ + if (iter->seq != ctx->seq || iter->flags & NK_WINDOW_CLOSED) { + next = iter->next; + nk_remove_window(ctx, iter); + nk_free_window(ctx, iter); + iter = next; + } else iter = iter->next; } - state->cursor = r.where + r.insert_length; + ctx->seq++; +} +NK_LIB void +nk_start_buffer(struct nk_context *ctx, struct nk_command_buffer *buffer) +{ + NK_ASSERT(ctx); + NK_ASSERT(buffer); + if (!ctx || !buffer) return; + buffer->begin = ctx->memory.allocated; + buffer->end = buffer->begin; + buffer->last = buffer->begin; + buffer->clip = nk_null_rect; +} +NK_LIB void +nk_start(struct nk_context *ctx, struct nk_window *win) +{ + NK_ASSERT(ctx); + NK_ASSERT(win); + nk_start_buffer(ctx, &win->buffer); +} +NK_LIB void +nk_start_popup(struct nk_context *ctx, struct nk_window *win) +{ + struct nk_popup_buffer *buf; + NK_ASSERT(ctx); + NK_ASSERT(win); + if (!ctx || !win) return; - s->undo_point++; - s->redo_point++; + /* save buffer fill state for popup */ + buf = &win->popup.buf; + buf->begin = win->buffer.end; + buf->end = win->buffer.end; + buf->parent = win->buffer.last; + buf->last = buf->begin; + buf->active = nk_true; } +NK_LIB void +nk_finish_popup(struct nk_context *ctx, struct nk_window *win) +{ + struct nk_popup_buffer *buf; + NK_ASSERT(ctx); + NK_ASSERT(win); + if (!ctx || !win) return; -NK_INTERN void -nk_textedit_makeundo_insert(struct nk_text_edit *state, int where, int length) + buf = &win->popup.buf; + buf->last = win->buffer.last; + buf->end = win->buffer.end; +} +NK_LIB void +nk_finish_buffer(struct nk_context *ctx, struct nk_command_buffer *buffer) { - nk_textedit_createundo(&state->undo, where, 0, length); + NK_ASSERT(ctx); + NK_ASSERT(buffer); + if (!ctx || !buffer) return; + buffer->end = ctx->memory.allocated; } +NK_LIB void +nk_finish(struct nk_context *ctx, struct nk_window *win) +{ + struct nk_popup_buffer *buf; + struct nk_command *parent_last; + void *memory; -NK_INTERN void -nk_textedit_makeundo_delete(struct nk_text_edit *state, int where, int length) + NK_ASSERT(ctx); + NK_ASSERT(win); + if (!ctx || !win) return; + nk_finish_buffer(ctx, &win->buffer); + if (!win->popup.buf.active) return; + + buf = &win->popup.buf; + memory = ctx->memory.memory.ptr; + parent_last = nk_ptr_add(struct nk_command, memory, buf->parent); + parent_last->next = buf->end; +} +NK_LIB void +nk_build(struct nk_context *ctx) { - int i; - nk_rune *p = nk_textedit_createundo(&state->undo, where, length, 0); - if (p) { - for (i=0; i < length; ++i) - p[i] = nk_str_rune_at(&state->string, where+i); + struct nk_window *it = 0; + struct nk_command *cmd = 0; + nk_byte *buffer = 0; + + /* draw cursor overlay */ + if (!ctx->style.cursor_active) + ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_ARROW]; + if (ctx->style.cursor_active && !ctx->input.mouse.grabbed && ctx->style.cursor_visible) { + struct nk_rect mouse_bounds; + const struct nk_cursor *cursor = ctx->style.cursor_active; + nk_command_buffer_init(&ctx->overlay, &ctx->memory, NK_CLIPPING_OFF); + nk_start_buffer(ctx, &ctx->overlay); + + mouse_bounds.x = ctx->input.mouse.pos.x - cursor->offset.x; + mouse_bounds.y = ctx->input.mouse.pos.y - cursor->offset.y; + mouse_bounds.w = cursor->size.x; + mouse_bounds.h = cursor->size.y; + + nk_draw_image(&ctx->overlay, mouse_bounds, &cursor->img, nk_white); + nk_finish_buffer(ctx, &ctx->overlay); } -} + /* build one big draw command list out of all window buffers */ + it = ctx->begin; + buffer = (nk_byte*)ctx->memory.memory.ptr; + while (it != 0) { + struct nk_window *next = it->next; + if (it->buffer.last == it->buffer.begin || (it->flags & NK_WINDOW_HIDDEN)|| + it->seq != ctx->seq) + goto cont; -NK_INTERN void -nk_textedit_makeundo_replace(struct nk_text_edit *state, int where, - int old_length, int new_length) -{ - int i; - nk_rune *p = nk_textedit_createundo(&state->undo, where, old_length, new_length); - if (p) { - for (i=0; i < old_length; ++i) - p[i] = nk_str_rune_at(&state->string, where+i); + cmd = nk_ptr_add(struct nk_command, buffer, it->buffer.last); + while (next && ((next->buffer.last == next->buffer.begin) || + (next->flags & NK_WINDOW_HIDDEN) || next->seq != ctx->seq)) + next = next->next; /* skip empty command buffers */ + + if (next) cmd->next = next->buffer.begin; + cont: it = next; } -} + /* append all popup draw commands into lists */ + it = ctx->begin; + while (it != 0) { + struct nk_window *next = it->next; + struct nk_popup_buffer *buf; + if (!it->popup.buf.active) + goto skip; -NK_INTERN void -nk_textedit_clear_state(struct nk_text_edit *state, enum nk_text_edit_type type, - nk_plugin_filter filter) + buf = &it->popup.buf; + cmd->next = buf->begin; + cmd = nk_ptr_add(struct nk_command, buffer, buf->last); + buf->active = nk_false; + skip: it = next; + } + if (cmd) { + /* append overlay commands */ + if (ctx->overlay.end != ctx->overlay.begin) + cmd->next = ctx->overlay.begin; + else cmd->next = ctx->memory.allocated; + } +} +NK_API const struct nk_command* +nk__begin(struct nk_context *ctx) { - /* reset the state to default */ - state->undo.undo_point = 0; - state->undo.undo_char_point = 0; - state->undo.redo_point = NK_TEXTEDIT_UNDOSTATECOUNT; - state->undo.redo_char_point = NK_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)(type == NK_TEXT_EDIT_SINGLE_LINE); - state->mode = NK_TEXT_EDIT_MODE_VIEW; - state->filter = filter; - state->scrollbar = nk_vec2(0,0); + struct nk_window *iter; + nk_byte *buffer; + NK_ASSERT(ctx); + if (!ctx) return 0; + if (!ctx->count) return 0; + + buffer = (nk_byte*)ctx->memory.memory.ptr; + if (!ctx->build) { + nk_build(ctx); + ctx->build = nk_true; + } + iter = ctx->begin; + while (iter && ((iter->buffer.begin == iter->buffer.end) || + (iter->flags & NK_WINDOW_HIDDEN) || iter->seq != ctx->seq)) + iter = iter->next; + if (!iter) return 0; + return nk_ptr_add_const(struct nk_command, buffer, iter->buffer.begin); } -NK_API void -nk_textedit_init_fixed(struct nk_text_edit *state, void *memory, nk_size size) +NK_API const struct nk_command* +nk__next(struct nk_context *ctx, const struct nk_command *cmd) { - NK_ASSERT(state); - NK_ASSERT(memory); - if (!state || !memory || !size) return; - NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); - nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); - nk_str_init_fixed(&state->string, memory, size); + nk_byte *buffer; + const struct nk_command *next; + NK_ASSERT(ctx); + if (!ctx || !cmd || !ctx->count) return 0; + if (cmd->next >= ctx->memory.allocated) return 0; + buffer = (nk_byte*)ctx->memory.memory.ptr; + next = nk_ptr_add_const(struct nk_command, buffer, cmd->next); + return next; } -NK_API void -nk_textedit_init(struct nk_text_edit *state, struct nk_allocator *alloc, nk_size size) + + + + + +/* =============================================================== + * + * POOL + * + * ===============================================================*/ +NK_LIB void +nk_pool_init(struct nk_pool *pool, struct nk_allocator *alloc, + unsigned int capacity) { - NK_ASSERT(state); - NK_ASSERT(alloc); - if (!state || !alloc) return; - NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); - nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); - nk_str_init(&state->string, alloc, size); + nk_zero(pool, sizeof(*pool)); + pool->alloc = *alloc; + pool->capacity = capacity; + pool->type = NK_BUFFER_DYNAMIC; + pool->pages = 0; } - -#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR -NK_API void -nk_textedit_init_default(struct nk_text_edit *state) +NK_LIB void +nk_pool_free(struct nk_pool *pool) { - NK_ASSERT(state); - if (!state) return; - NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); - nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); - nk_str_init_default(&state->string); + struct nk_page *iter = pool->pages; + if (!pool) return; + if (pool->type == NK_BUFFER_FIXED) return; + while (iter) { + struct nk_page *next = iter->next; + pool->alloc.free(pool->alloc.userdata, iter); + iter = next; + } } -#endif - -NK_API void -nk_textedit_select_all(struct nk_text_edit *state) +NK_LIB void +nk_pool_init_fixed(struct nk_pool *pool, void *memory, nk_size size) { - NK_ASSERT(state); - state->select_start = 0; - state->select_end = state->string.len; + nk_zero(pool, sizeof(*pool)); + NK_ASSERT(size >= sizeof(struct nk_page)); + if (size < sizeof(struct nk_page)) return; + pool->capacity = (unsigned)(size - sizeof(struct nk_page)) / sizeof(struct nk_page_element); + pool->pages = (struct nk_page*)memory; + pool->type = NK_BUFFER_FIXED; + pool->size = size; } - -NK_API void -nk_textedit_free(struct nk_text_edit *state) +NK_LIB struct nk_page_element* +nk_pool_alloc(struct nk_pool *pool) { - NK_ASSERT(state); - if (!state) return; - nk_str_free(&state->string); + if (!pool->pages || pool->pages->size >= pool->capacity) { + /* allocate new page */ + struct nk_page *page; + if (pool->type == NK_BUFFER_FIXED) { + NK_ASSERT(pool->pages); + if (!pool->pages) return 0; + NK_ASSERT(pool->pages->size < pool->capacity); + return 0; + } else { + nk_size size = sizeof(struct nk_page); + size += NK_POOL_DEFAULT_CAPACITY * sizeof(union nk_page_data); + page = (struct nk_page*)pool->alloc.alloc(pool->alloc.userdata,0, size); + page->next = pool->pages; + pool->pages = page; + page->size = 0; + } + } return &pool->pages->win[pool->pages->size++]; } + + + + /* =============================================================== * - * TEXT WIDGET + * PAGE ELEMENT * * ===============================================================*/ -#define nk_widget_state_reset(s)\ - if ((*(s)) & NK_WIDGET_STATE_MODIFIED)\ - (*(s)) = NK_WIDGET_STATE_INACTIVE|NK_WIDGET_STATE_MODIFIED;\ - else (*(s)) = NK_WIDGET_STATE_INACTIVE; - -struct nk_text { - struct nk_vec2 padding; - struct nk_color background; - struct nk_color text; -}; - -NK_INTERN void -nk_widget_text(struct nk_command_buffer *o, struct nk_rect b, - const char *string, int len, const struct nk_text *t, - nk_flags a, const struct nk_user_font *f) +NK_LIB struct nk_page_element* +nk_create_page_element(struct nk_context *ctx) { - struct nk_rect label; - float text_width; + struct nk_page_element *elem; + if (ctx->freelist) { + /* unlink page element from free list */ + elem = ctx->freelist; + ctx->freelist = elem->next; + } else if (ctx->use_pool) { + /* allocate page element from memory pool */ + elem = nk_pool_alloc(&ctx->pool); + NK_ASSERT(elem); + if (!elem) return 0; + } else { + /* allocate new page element from back of fixed size memory buffer */ + NK_STORAGE const nk_size size = sizeof(struct nk_page_element); + NK_STORAGE const nk_size align = NK_ALIGNOF(struct nk_page_element); + elem = (struct nk_page_element*)nk_buffer_alloc(&ctx->memory, NK_BUFFER_BACK, size, align); + NK_ASSERT(elem); + if (!elem) return 0; + } + nk_zero_struct(*elem); + elem->next = 0; + elem->prev = 0; + return elem; +} +NK_LIB void +nk_link_page_element_into_freelist(struct nk_context *ctx, + struct nk_page_element *elem) +{ + /* link table into freelist */ + if (!ctx->freelist) { + ctx->freelist = elem; + } else { + elem->next = ctx->freelist; + ctx->freelist = elem; + } +} +NK_LIB void +nk_free_page_element(struct nk_context *ctx, struct nk_page_element *elem) +{ + /* we have a pool so just add to free list */ + if (ctx->use_pool) { + nk_link_page_element_into_freelist(ctx, elem); + return; + } + /* if possible remove last element from back of fixed memory buffer */ + {void *elem_end = (void*)(elem + 1); + void *buffer_end = (nk_byte*)ctx->memory.memory.ptr + ctx->memory.size; + if (elem_end == buffer_end) + ctx->memory.size -= sizeof(struct nk_page_element); + else nk_link_page_element_into_freelist(ctx, elem);} +} - NK_ASSERT(o); - NK_ASSERT(t); - if (!o || !t) return; - b.h = NK_MAX(b.h, 2 * t->padding.y); - label.x = 0; label.w = 0; - label.y = b.y + t->padding.y; - label.h = NK_MIN(f->height, b.h - 2 * t->padding.y); - text_width = f->width(f->userdata, f->height, (const char*)string, len); - text_width += (2.0f * t->padding.x); - /* align in x-axis */ - if (a & NK_TEXT_ALIGN_LEFT) { - label.x = b.x + t->padding.x; - label.w = NK_MAX(0, b.w - 2 * t->padding.x); - } else if (a & NK_TEXT_ALIGN_CENTERED) { - label.w = NK_MAX(1, 2 * t->padding.x + (float)text_width); - label.x = (b.x + t->padding.x + ((b.w - 2 * t->padding.x) - label.w) / 2); - label.x = NK_MAX(b.x + t->padding.x, label.x); - label.w = NK_MIN(b.x + b.w, label.x + label.w); - if (label.w >= label.x) label.w -= label.x; - } else if (a & NK_TEXT_ALIGN_RIGHT) { - label.x = NK_MAX(b.x + t->padding.x, (b.x + b.w) - (2 * t->padding.x + (float)text_width)); - label.w = (float)text_width + 2 * t->padding.x; - } else return; - /* align in y-axis */ - if (a & NK_TEXT_ALIGN_MIDDLE) { - label.y = b.y + b.h/2.0f - (float)f->height/2.0f; - label.h = NK_MAX(b.h/2.0f, b.h - (b.h/2.0f + f->height/2.0f)); - } else if (a & NK_TEXT_ALIGN_BOTTOM) { - label.y = b.y + b.h - f->height; - label.h = f->height; +/* =============================================================== + * + * TABLE + * + * ===============================================================*/ +NK_LIB struct nk_table* +nk_create_table(struct nk_context *ctx) +{ + struct nk_page_element *elem; + elem = nk_create_page_element(ctx); + if (!elem) return 0; + nk_zero_struct(*elem); + return &elem->data.tbl; +} +NK_LIB void +nk_free_table(struct nk_context *ctx, struct nk_table *tbl) +{ + union nk_page_data *pd = NK_CONTAINER_OF(tbl, union nk_page_data, tbl); + struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); + nk_free_page_element(ctx, pe); +} +NK_LIB void +nk_push_table(struct nk_window *win, struct nk_table *tbl) +{ + if (!win->tables) { + win->tables = tbl; + tbl->next = 0; + tbl->prev = 0; + tbl->size = 0; + win->table_count = 1; + return; + } + win->tables->prev = tbl; + tbl->next = win->tables; + tbl->prev = 0; + tbl->size = 0; + win->tables = tbl; + win->table_count++; +} +NK_LIB void +nk_remove_table(struct nk_window *win, struct nk_table *tbl) +{ + if (win->tables == tbl) + win->tables = tbl->next; + if (tbl->next) + tbl->next->prev = tbl->prev; + if (tbl->prev) + tbl->prev->next = tbl->next; + tbl->next = 0; + tbl->prev = 0; +} +NK_LIB nk_uint* +nk_add_value(struct nk_context *ctx, struct nk_window *win, + nk_hash name, nk_uint value) +{ + NK_ASSERT(ctx); + NK_ASSERT(win); + if (!win || !ctx) return 0; + if (!win->tables || win->tables->size >= NK_VALUE_PAGE_CAPACITY) { + struct nk_table *tbl = nk_create_table(ctx); + NK_ASSERT(tbl); + if (!tbl) return 0; + nk_push_table(win, tbl); } - nk_draw_text(o, label, (const char*)string, - len, f, t->background, t->text); + win->tables->seq = win->seq; + win->tables->keys[win->tables->size] = name; + win->tables->values[win->tables->size] = value; + return &win->tables->values[win->tables->size++]; } - -NK_INTERN void -nk_widget_text_wrap(struct nk_command_buffer *o, struct nk_rect b, - const char *string, int len, const struct nk_text *t, - const struct nk_user_font *f) +NK_LIB nk_uint* +nk_find_value(struct nk_window *win, nk_hash name) { - float width; - int glyphs = 0; - int fitting = 0; - int done = 0; - struct nk_rect line; - struct nk_text text; - NK_INTERN nk_rune seperator[] = {' '}; - - NK_ASSERT(o); - NK_ASSERT(t); - if (!o || !t) return; + struct nk_table *iter = win->tables; + while (iter) { + unsigned int i = 0; + unsigned int size = iter->size; + for (i = 0; i < size; ++i) { + if (iter->keys[i] == name) { + iter->seq = win->seq; + return &iter->values[i]; + } + } size = NK_VALUE_PAGE_CAPACITY; + iter = iter->next; + } + return 0; +} - text.padding = nk_vec2(0,0); - text.background = t->background; - text.text = t->text; - b.w = NK_MAX(b.w, 2 * t->padding.x); - b.h = NK_MAX(b.h, 2 * t->padding.y); - b.h = b.h - 2 * t->padding.y; - line.x = b.x + t->padding.x; - line.y = b.y + t->padding.y; - line.w = b.w - 2 * t->padding.x; - line.h = 2 * t->padding.y + f->height; - fitting = nk_text_clamp(f, string, len, line.w, &glyphs, &width, seperator,NK_LEN(seperator)); - while (done < len) { - if (!fitting || line.y + line.h >= (b.y + b.h)) break; - nk_widget_text(o, line, &string[done], fitting, &text, NK_TEXT_LEFT, f); - done += fitting; - line.y += f->height + 2 * t->padding.y; - fitting = nk_text_clamp(f, &string[done], len - done, line.w, &glyphs, &width, seperator,NK_LEN(seperator)); - } -} /* =============================================================== * - * BUTTON + * PANEL * * ===============================================================*/ -NK_INTERN void -nk_draw_symbol(struct nk_command_buffer *out, enum nk_symbol_type type, - struct nk_rect content, struct nk_color background, struct nk_color foreground, - float border_width, const struct nk_user_font *font) +NK_LIB void* +nk_create_panel(struct nk_context *ctx) +{ + struct nk_page_element *elem; + elem = nk_create_page_element(ctx); + if (!elem) return 0; + nk_zero_struct(*elem); + return &elem->data.pan; +} +NK_LIB void +nk_free_panel(struct nk_context *ctx, struct nk_panel *pan) +{ + union nk_page_data *pd = NK_CONTAINER_OF(pan, union nk_page_data, pan); + struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); + nk_free_page_element(ctx, pe); +} +NK_LIB int +nk_panel_has_header(nk_flags flags, const char *title) +{ + int active = 0; + active = (flags & (NK_WINDOW_CLOSABLE|NK_WINDOW_MINIMIZABLE)); + active = active || (flags & NK_WINDOW_TITLE); + active = active && !(flags & NK_WINDOW_HIDDEN) && title; + return active; +} +NK_LIB struct nk_vec2 +nk_panel_get_padding(const struct nk_style *style, enum nk_panel_type type) { switch (type) { - case NK_SYMBOL_X: - case NK_SYMBOL_UNDERSCORE: - case NK_SYMBOL_PLUS: - case NK_SYMBOL_MINUS: { - /* single character text symbol */ - const char *X = (type == NK_SYMBOL_X) ? "x": - (type == NK_SYMBOL_UNDERSCORE) ? "_": - (type == NK_SYMBOL_PLUS) ? "+": "-"; - struct nk_text text; - text.padding = nk_vec2(0,0); - text.background = background; - text.text = foreground; - nk_widget_text(out, content, X, 1, &text, NK_TEXT_CENTERED, font); - } break; - case NK_SYMBOL_CIRCLE_SOLID: - case NK_SYMBOL_CIRCLE_OUTLINE: - case NK_SYMBOL_RECT_SOLID: - case NK_SYMBOL_RECT_OUTLINE: { - /* simple empty/filled shapes */ - if (type == NK_SYMBOL_RECT_SOLID || type == NK_SYMBOL_RECT_OUTLINE) { - nk_fill_rect(out, content, 0, foreground); - if (type == NK_SYMBOL_RECT_OUTLINE) - nk_fill_rect(out, nk_shrink_rect(content, border_width), 0, background); - } else { - nk_fill_circle(out, content, foreground); - if (type == NK_SYMBOL_CIRCLE_OUTLINE) - nk_fill_circle(out, nk_shrink_rect(content, 1), background); - } - } break; - case NK_SYMBOL_TRIANGLE_UP: - case NK_SYMBOL_TRIANGLE_DOWN: - case NK_SYMBOL_TRIANGLE_LEFT: - case NK_SYMBOL_TRIANGLE_RIGHT: { - enum nk_heading heading; - struct nk_vec2 points[3]; - heading = (type == NK_SYMBOL_TRIANGLE_RIGHT) ? NK_RIGHT : - (type == NK_SYMBOL_TRIANGLE_LEFT) ? NK_LEFT: - (type == NK_SYMBOL_TRIANGLE_UP) ? NK_UP: NK_DOWN; - nk_triangle_from_direction(points, content, 0, 0, heading); - nk_fill_triangle(out, points[0].x, points[0].y, points[1].x, points[1].y, - points[2].x, points[2].y, foreground); - } break; default: - case NK_SYMBOL_NONE: - case NK_SYMBOL_MAX: break; + case NK_PANEL_WINDOW: return style->window.padding; + case NK_PANEL_GROUP: return style->window.group_padding; + case NK_PANEL_POPUP: return style->window.popup_padding; + case NK_PANEL_CONTEXTUAL: return style->window.contextual_padding; + case NK_PANEL_COMBO: return style->window.combo_padding; + case NK_PANEL_MENU: return style->window.menu_padding; + case NK_PANEL_TOOLTIP: return style->window.menu_padding;} +} +NK_LIB float +nk_panel_get_border(const struct nk_style *style, nk_flags flags, + enum nk_panel_type type) +{ + if (flags & NK_WINDOW_BORDER) { + switch (type) { + default: + case NK_PANEL_WINDOW: return style->window.border; + case NK_PANEL_GROUP: return style->window.group_border; + case NK_PANEL_POPUP: return style->window.popup_border; + case NK_PANEL_CONTEXTUAL: return style->window.contextual_border; + case NK_PANEL_COMBO: return style->window.combo_border; + case NK_PANEL_MENU: return style->window.menu_border; + case NK_PANEL_TOOLTIP: return style->window.menu_border; + }} else return 0; +} +NK_LIB struct nk_color +nk_panel_get_border_color(const struct nk_style *style, enum nk_panel_type type) +{ + switch (type) { + default: + case NK_PANEL_WINDOW: return style->window.border_color; + case NK_PANEL_GROUP: return style->window.group_border_color; + case NK_PANEL_POPUP: return style->window.popup_border_color; + case NK_PANEL_CONTEXTUAL: return style->window.contextual_border_color; + case NK_PANEL_COMBO: return style->window.combo_border_color; + case NK_PANEL_MENU: return style->window.menu_border_color; + case NK_PANEL_TOOLTIP: return style->window.menu_border_color;} +} +NK_LIB int +nk_panel_is_sub(enum nk_panel_type type) +{ + return (type & NK_PANEL_SET_SUB)?1:0; +} +NK_LIB int +nk_panel_is_nonblock(enum nk_panel_type type) +{ + return (type & NK_PANEL_SET_NONBLOCK)?1:0; +} +NK_LIB int +nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type) +{ + struct nk_input *in; + struct nk_window *win; + struct nk_panel *layout; + struct nk_command_buffer *out; + const struct nk_style *style; + const struct nk_user_font *font; + + struct nk_vec2 scrollbar_size; + struct nk_vec2 panel_padding; + + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return 0; + nk_zero(ctx->current->layout, sizeof(*ctx->current->layout)); + if ((ctx->current->flags & NK_WINDOW_HIDDEN) || (ctx->current->flags & NK_WINDOW_CLOSED)) { + nk_zero(ctx->current->layout, sizeof(struct nk_panel)); + ctx->current->layout->type = panel_type; + return 0; + } + /* pull state into local stack */ + style = &ctx->style; + font = style->font; + win = ctx->current; + layout = win->layout; + out = &win->buffer; + in = (win->flags & NK_WINDOW_NO_INPUT) ? 0: &ctx->input; +#ifdef NK_INCLUDE_COMMAND_USERDATA + win->buffer.userdata = ctx->userdata; +#endif + /* pull style configuration into local stack */ + scrollbar_size = style->window.scrollbar_size; + panel_padding = nk_panel_get_padding(style, panel_type); + + /* window movement */ + if ((win->flags & NK_WINDOW_MOVABLE) && !(win->flags & NK_WINDOW_ROM)) { + int left_mouse_down; + int left_mouse_clicked; + int left_mouse_click_in_cursor; + + /* calculate draggable window space */ + struct nk_rect header; + header.x = win->bounds.x; + header.y = win->bounds.y; + header.w = win->bounds.w; + if (nk_panel_has_header(win->flags, title)) { + header.h = font->height + 2.0f * style->window.header.padding.y; + header.h += 2.0f * style->window.header.label_padding.y; + } else header.h = panel_padding.y; + + /* window movement by dragging */ + left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; + left_mouse_clicked = (int)in->mouse.buttons[NK_BUTTON_LEFT].clicked; + left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, + NK_BUTTON_LEFT, header, nk_true); + if (left_mouse_down && left_mouse_click_in_cursor && !left_mouse_clicked) { + win->bounds.x = win->bounds.x + in->mouse.delta.x; + win->bounds.y = win->bounds.y + in->mouse.delta.y; + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x += in->mouse.delta.x; + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y += in->mouse.delta.y; + ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_MOVE]; + } + } + + /* setup panel */ + layout->type = panel_type; + layout->flags = win->flags; + layout->bounds = win->bounds; + layout->bounds.x += panel_padding.x; + layout->bounds.w -= 2*panel_padding.x; + if (win->flags & NK_WINDOW_BORDER) { + layout->border = nk_panel_get_border(style, win->flags, panel_type); + layout->bounds = nk_shrink_rect(layout->bounds, layout->border); + } else layout->border = 0; + layout->at_y = layout->bounds.y; + layout->at_x = layout->bounds.x; + layout->max_x = 0; + layout->header_height = 0; + layout->footer_height = 0; + nk_layout_reset_min_row_height(ctx); + layout->row.index = 0; + layout->row.columns = 0; + layout->row.ratio = 0; + layout->row.item_width = 0; + layout->row.tree_depth = 0; + layout->row.height = panel_padding.y; + layout->has_scrolling = nk_true; + if (!(win->flags & NK_WINDOW_NO_SCROLLBAR)) + layout->bounds.w -= scrollbar_size.x; + if (!nk_panel_is_nonblock(panel_type)) { + layout->footer_height = 0; + if (!(win->flags & NK_WINDOW_NO_SCROLLBAR) || win->flags & NK_WINDOW_SCALABLE) + layout->footer_height = scrollbar_size.y; + layout->bounds.h -= layout->footer_height; } -} -NK_INTERN int -nk_button_behavior(nk_flags *state, struct nk_rect r, - const struct nk_input *i, enum nk_button_behavior behavior) -{ - int ret = 0; - nk_widget_state_reset(state); - if (!i) return 0; - if (nk_input_is_mouse_hovering_rect(i, r)) { - *state = NK_WIDGET_STATE_HOVERED; - if (nk_input_is_mouse_down(i, NK_BUTTON_LEFT)) - *state = NK_WIDGET_STATE_ACTIVE; - if (nk_input_has_mouse_click_in_rect(i, NK_BUTTON_LEFT, r)) { - ret = (behavior != NK_BUTTON_DEFAULT) ? - nk_input_is_mouse_down(i, NK_BUTTON_LEFT): -#ifdef NK_BUTTON_TRIGGER_ON_RELEASE - nk_input_is_mouse_released(i, NK_BUTTON_LEFT); -#else - nk_input_is_mouse_pressed(i, NK_BUTTON_LEFT); -#endif + /* panel header */ + if (nk_panel_has_header(win->flags, title)) + { + struct nk_text text; + struct nk_rect header; + const struct nk_style_item *background = 0; + + /* calculate header bounds */ + header.x = win->bounds.x; + header.y = win->bounds.y; + header.w = win->bounds.w; + header.h = font->height + 2.0f * style->window.header.padding.y; + header.h += (2.0f * style->window.header.label_padding.y); + + /* shrink panel by header */ + layout->header_height = header.h; + layout->bounds.y += header.h; + layout->bounds.h -= header.h; + layout->at_y += header.h; + + /* select correct header background and text color */ + if (ctx->active == win) { + background = &style->window.header.active; + text.text = style->window.header.label_active; + } else if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) { + background = &style->window.header.hover; + text.text = style->window.header.label_hover; + } else { + background = &style->window.header.normal; + text.text = style->window.header.label_normal; } - } - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(i, r)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(i, r)) - *state |= NK_WIDGET_STATE_LEFT; - return ret; -} -NK_INTERN const struct nk_style_item* -nk_draw_button(struct nk_command_buffer *out, - const struct nk_rect *bounds, nk_flags state, - const struct nk_style_button *style) -{ - const struct nk_style_item *background; - if (state & NK_WIDGET_STATE_HOVER) - background = &style->hover; - else if (state & NK_WIDGET_STATE_ACTIVED) - background = &style->active; - else background = &style->normal; + /* draw header background */ + header.h += 1.0f; + if (background->type == NK_STYLE_ITEM_IMAGE) { + text.background = nk_rgba(0,0,0,0); + nk_draw_image(&win->buffer, header, &background->data.image, nk_white); + } else { + text.background = background->data.color; + nk_fill_rect(out, header, 0, background->data.color); + } - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(out, *bounds, &background->data.image, nk_white); - } else { - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); - } - return background; -} + /* window close button */ + {struct nk_rect button; + button.y = header.y + style->window.header.padding.y; + button.h = header.h - 2 * style->window.header.padding.y; + button.w = button.h; + if (win->flags & NK_WINDOW_CLOSABLE) { + nk_flags ws = 0; + if (style->window.header.align == NK_HEADER_RIGHT) { + button.x = (header.w + header.x) - (button.w + style->window.header.padding.x); + header.w -= button.w + style->window.header.spacing.x + style->window.header.padding.x; + } else { + button.x = header.x + style->window.header.padding.x; + header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x; + } -NK_INTERN int -nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, - const struct nk_style_button *style, const struct nk_input *in, - enum nk_button_behavior behavior, struct nk_rect *content) -{ - struct nk_rect bounds; - NK_ASSERT(style); - NK_ASSERT(state); - NK_ASSERT(out); - if (!out || !style) - return nk_false; + if (nk_do_button_symbol(&ws, &win->buffer, button, + style->window.header.close_symbol, NK_BUTTON_DEFAULT, + &style->window.header.close_button, in, style->font) && !(win->flags & NK_WINDOW_ROM)) + { + layout->flags |= NK_WINDOW_HIDDEN; + layout->flags &= (nk_flags)~NK_WINDOW_MINIMIZED; + } + } - /* calculate button content space */ - content->x = r.x + style->padding.x + style->border + style->rounding; - content->y = r.y + style->padding.y + style->border + style->rounding; - content->w = r.w - (2 * style->padding.x + style->border + style->rounding*2); - content->h = r.h - (2 * style->padding.y + style->border + style->rounding*2); + /* window minimize button */ + if (win->flags & NK_WINDOW_MINIMIZABLE) { + nk_flags ws = 0; + if (style->window.header.align == NK_HEADER_RIGHT) { + button.x = (header.w + header.x) - button.w; + if (!(win->flags & NK_WINDOW_CLOSABLE)) { + button.x -= style->window.header.padding.x; + header.w -= style->window.header.padding.x; + } + header.w -= button.w + style->window.header.spacing.x; + } else { + button.x = header.x; + header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x; + } + if (nk_do_button_symbol(&ws, &win->buffer, button, (layout->flags & NK_WINDOW_MINIMIZED)? + style->window.header.maximize_symbol: style->window.header.minimize_symbol, + NK_BUTTON_DEFAULT, &style->window.header.minimize_button, in, style->font) && !(win->flags & NK_WINDOW_ROM)) + layout->flags = (layout->flags & NK_WINDOW_MINIMIZED) ? + layout->flags & (nk_flags)~NK_WINDOW_MINIMIZED: + layout->flags | NK_WINDOW_MINIMIZED; + }} - /* execute button behavior */ - bounds.x = r.x - style->touch_padding.x; - bounds.y = r.y - style->touch_padding.y; - bounds.w = r.w + 2 * style->touch_padding.x; - bounds.h = r.h + 2 * style->touch_padding.y; - return nk_button_behavior(state, bounds, in, behavior); -} + {/* window header title */ + int text_len = nk_strlen(title); + struct nk_rect label = {0,0,0,0}; + float t = font->width(font->userdata, font->height, title, text_len); + text.padding = nk_vec2(0,0); -NK_INTERN void -nk_draw_button_text(struct nk_command_buffer *out, - const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, - const struct nk_style_button *style, const char *txt, int len, - nk_flags text_alignment, const struct nk_user_font *font) -{ - struct nk_text text; - const struct nk_style_item *background; - background = nk_draw_button(out, bounds, state, style); + label.x = header.x + style->window.header.padding.x; + label.x += style->window.header.label_padding.x; + label.y = header.y + style->window.header.label_padding.y; + label.h = font->height + 2 * style->window.header.label_padding.y; + label.w = t + 2 * style->window.header.spacing.x; + label.w = NK_CLAMP(0, label.w, header.x + header.w - label.x); + nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);} + } - /* select correct colors/images */ - if (background->type == NK_STYLE_ITEM_COLOR) - text.background = background->data.color; - else text.background = style->text_background; - if (state & NK_WIDGET_STATE_HOVER) - text.text = style->text_hover; - else if (state & NK_WIDGET_STATE_ACTIVED) - text.text = style->text_active; - else text.text = style->text_normal; + /* draw window background */ + if (!(layout->flags & NK_WINDOW_MINIMIZED) && !(layout->flags & NK_WINDOW_DYNAMIC)) { + struct nk_rect body; + body.x = win->bounds.x; + body.w = win->bounds.w; + body.y = (win->bounds.y + layout->header_height); + body.h = (win->bounds.h - layout->header_height); + if (style->window.fixed_background.type == NK_STYLE_ITEM_IMAGE) + nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white); + else nk_fill_rect(out, body, 0, style->window.fixed_background.data.color); + } - text.padding = nk_vec2(0,0); - nk_widget_text(out, *content, txt, len, &text, text_alignment, font); + /* set clipping rectangle */ + {struct nk_rect clip; + layout->clip = layout->bounds; + nk_unify(&clip, &win->buffer.clip, layout->clip.x, layout->clip.y, + layout->clip.x + layout->clip.w, layout->clip.y + layout->clip.h); + nk_push_scissor(out, clip); + layout->clip = clip;} + return !(layout->flags & NK_WINDOW_HIDDEN) && !(layout->flags & NK_WINDOW_MINIMIZED); } - -NK_INTERN int -nk_do_button_text(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - const char *string, int len, nk_flags align, enum nk_button_behavior behavior, - const struct nk_style_button *style, const struct nk_input *in, - const struct nk_user_font *font) +NK_LIB void +nk_panel_end(struct nk_context *ctx) { - struct nk_rect content; - int ret = nk_false; + struct nk_input *in; + struct nk_window *window; + struct nk_panel *layout; + const struct nk_style *style; + struct nk_command_buffer *out; - NK_ASSERT(state); - NK_ASSERT(style); - NK_ASSERT(out); - NK_ASSERT(string); - NK_ASSERT(font); - if (!out || !style || !font || !string) - return nk_false; + struct nk_vec2 scrollbar_size; + struct nk_vec2 panel_padding; - ret = nk_do_button(state, out, bounds, style, in, behavior, &content); - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_button_text(out, &bounds, &content, *state, style, string, len, align, font); - if (style->draw_end) style->draw_end(out, style->userdata); - return ret; -} + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; -NK_INTERN void -nk_draw_button_symbol(struct nk_command_buffer *out, - const struct nk_rect *bounds, const struct nk_rect *content, - nk_flags state, const struct nk_style_button *style, - enum nk_symbol_type type, const struct nk_user_font *font) -{ - struct nk_color sym, bg; - const struct nk_style_item *background; + window = ctx->current; + layout = window->layout; + style = &ctx->style; + out = &window->buffer; + in = (layout->flags & NK_WINDOW_ROM || layout->flags & NK_WINDOW_NO_INPUT) ? 0 :&ctx->input; + if (!nk_panel_is_sub(layout->type)) + nk_push_scissor(out, nk_null_rect); - /* select correct colors/images */ - background = nk_draw_button(out, bounds, state, style); - if (background->type == NK_STYLE_ITEM_COLOR) - bg = background->data.color; - else bg = style->text_background; + /* cache configuration data */ + scrollbar_size = style->window.scrollbar_size; + panel_padding = nk_panel_get_padding(style, layout->type); - if (state & NK_WIDGET_STATE_HOVER) - sym = style->text_hover; - else if (state & NK_WIDGET_STATE_ACTIVED) - sym = style->text_active; - else sym = style->text_normal; - nk_draw_symbol(out, type, *content, bg, sym, 1, font); -} + /* update the current cursor Y-position to point over the last added widget */ + layout->at_y += layout->row.height; -NK_INTERN int -nk_do_button_symbol(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - enum nk_symbol_type symbol, enum nk_button_behavior behavior, - const struct nk_style_button *style, const struct nk_input *in, - const struct nk_user_font *font) -{ - int ret; - struct nk_rect content; + /* dynamic panels */ + if (layout->flags & NK_WINDOW_DYNAMIC && !(layout->flags & NK_WINDOW_MINIMIZED)) + { + /* update panel height to fit dynamic growth */ + struct nk_rect empty_space; + if (layout->at_y < (layout->bounds.y + layout->bounds.h)) + layout->bounds.h = layout->at_y - layout->bounds.y; - NK_ASSERT(state); - NK_ASSERT(style); - NK_ASSERT(font); - NK_ASSERT(out); - if (!out || !style || !font || !state) - return nk_false; + /* fill top empty space */ + empty_space.x = window->bounds.x; + empty_space.y = layout->bounds.y; + empty_space.h = panel_padding.y; + empty_space.w = window->bounds.w; + nk_fill_rect(out, empty_space, 0, style->window.background); - ret = nk_do_button(state, out, bounds, style, in, behavior, &content); - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_button_symbol(out, &bounds, &content, *state, style, symbol, font); - if (style->draw_end) style->draw_end(out, style->userdata); - return ret; -} + /* fill left empty space */ + empty_space.x = window->bounds.x; + empty_space.y = layout->bounds.y; + empty_space.w = panel_padding.x + layout->border; + empty_space.h = layout->bounds.h; + nk_fill_rect(out, empty_space, 0, style->window.background); -NK_INTERN void -nk_draw_button_image(struct nk_command_buffer *out, - const struct nk_rect *bounds, const struct nk_rect *content, - nk_flags state, const struct nk_style_button *style, const struct nk_image *img) -{ - nk_draw_button(out, bounds, state, style); - nk_draw_image(out, *content, img, nk_white); -} + /* fill right empty space */ + empty_space.x = layout->bounds.x + layout->bounds.w - layout->border; + empty_space.y = layout->bounds.y; + empty_space.w = panel_padding.x + layout->border; + empty_space.h = layout->bounds.h; + if (*layout->offset_y == 0 && !(layout->flags & NK_WINDOW_NO_SCROLLBAR)) + empty_space.w += scrollbar_size.x; + nk_fill_rect(out, empty_space, 0, style->window.background); -NK_INTERN int -nk_do_button_image(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - struct nk_image img, enum nk_button_behavior b, - const struct nk_style_button *style, const struct nk_input *in) -{ - int ret; - struct nk_rect content; + /* fill bottom empty space */ + if (*layout->offset_x != 0 && !(layout->flags & NK_WINDOW_NO_SCROLLBAR)) { + empty_space.x = window->bounds.x; + empty_space.y = layout->bounds.y + layout->bounds.h; + empty_space.w = window->bounds.w; + empty_space.h = scrollbar_size.y; + nk_fill_rect(out, empty_space, 0, style->window.background); + } + } - NK_ASSERT(state); - NK_ASSERT(style); - NK_ASSERT(out); - if (!out || !style || !state) - return nk_false; + /* scrollbars */ + if (!(layout->flags & NK_WINDOW_NO_SCROLLBAR) && + !(layout->flags & NK_WINDOW_MINIMIZED) && + window->scrollbar_hiding_timer < NK_SCROLLBAR_HIDING_TIMEOUT) + { + struct nk_rect scroll; + int scroll_has_scrolling; + float scroll_target; + float scroll_offset; + float scroll_step; + float scroll_inc; - ret = nk_do_button(state, out, bounds, style, in, b, &content); - content.x += style->image_padding.x; - content.y += style->image_padding.y; - content.w -= 2 * style->image_padding.x; - content.h -= 2 * style->image_padding.y; + /* mouse wheel scrolling */ + if (nk_panel_is_sub(layout->type)) + { + /* sub-window mouse wheel scrolling */ + struct nk_window *root_window = window; + struct nk_panel *root_panel = window->layout; + while (root_panel->parent) + root_panel = root_panel->parent; + while (root_window->parent) + root_window = root_window->parent; - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_button_image(out, &bounds, &content, *state, style, &img); - if (style->draw_end) style->draw_end(out, style->userdata); - return ret; -} + /* only allow scrolling if parent window is active */ + scroll_has_scrolling = 0; + if ((root_window == ctx->active) && layout->has_scrolling) { + /* and panel is being hovered and inside clip rect*/ + if (nk_input_is_mouse_hovering_rect(in, layout->bounds) && + NK_INTERSECT(layout->bounds.x, layout->bounds.y, layout->bounds.w, layout->bounds.h, + root_panel->clip.x, root_panel->clip.y, root_panel->clip.w, root_panel->clip.h)) + { + /* deactivate all parent scrolling */ + root_panel = window->layout; + while (root_panel->parent) { + root_panel->has_scrolling = nk_false; + root_panel = root_panel->parent; + } + root_panel->has_scrolling = nk_false; + scroll_has_scrolling = nk_true; + } + } + } else if (!nk_panel_is_sub(layout->type)) { + /* window mouse wheel scrolling */ + scroll_has_scrolling = (window == ctx->active) && layout->has_scrolling; + if (in && (in->mouse.scroll_delta.y > 0 || in->mouse.scroll_delta.x > 0) && scroll_has_scrolling) + window->scrolled = nk_true; + else window->scrolled = nk_false; + } else scroll_has_scrolling = nk_false; -NK_INTERN void -nk_draw_button_text_symbol(struct nk_command_buffer *out, - const struct nk_rect *bounds, const struct nk_rect *label, - const struct nk_rect *symbol, nk_flags state, const struct nk_style_button *style, - const char *str, int len, enum nk_symbol_type type, - const struct nk_user_font *font) -{ - struct nk_color sym; - struct nk_text text; - const struct nk_style_item *background; + { + /* vertical scrollbar */ + nk_flags state = 0; + scroll.x = layout->bounds.x + layout->bounds.w + panel_padding.x; + scroll.y = layout->bounds.y; + scroll.w = scrollbar_size.x; + scroll.h = layout->bounds.h; - /* select correct background colors/images */ - background = nk_draw_button(out, bounds, state, style); - if (background->type == NK_STYLE_ITEM_COLOR) - text.background = background->data.color; - else text.background = style->text_background; + scroll_offset = (float)*layout->offset_y; + scroll_step = scroll.h * 0.10f; + scroll_inc = scroll.h * 0.01f; + scroll_target = (float)(int)(layout->at_y - scroll.y); + scroll_offset = nk_do_scrollbarv(&state, out, scroll, scroll_has_scrolling, + scroll_offset, scroll_target, scroll_step, scroll_inc, + &ctx->style.scrollv, in, style->font); + *layout->offset_y = (nk_uint)scroll_offset; + if (in && scroll_has_scrolling) + in->mouse.scroll_delta.y = 0; + } + { + /* horizontal scrollbar */ + nk_flags state = 0; + scroll.x = layout->bounds.x; + scroll.y = layout->bounds.y + layout->bounds.h; + scroll.w = layout->bounds.w; + scroll.h = scrollbar_size.y; - /* select correct text colors */ - if (state & NK_WIDGET_STATE_HOVER) { - sym = style->text_hover; - text.text = style->text_hover; - } else if (state & NK_WIDGET_STATE_ACTIVED) { - sym = style->text_active; - text.text = style->text_active; - } else { - sym = style->text_normal; - text.text = style->text_normal; + scroll_offset = (float)*layout->offset_x; + scroll_target = (float)(int)(layout->max_x - scroll.x); + scroll_step = layout->max_x * 0.05f; + scroll_inc = layout->max_x * 0.005f; + scroll_offset = nk_do_scrollbarh(&state, out, scroll, scroll_has_scrolling, + scroll_offset, scroll_target, scroll_step, scroll_inc, + &ctx->style.scrollh, in, style->font); + *layout->offset_x = (nk_uint)scroll_offset; + } } - text.padding = nk_vec2(0,0); - nk_draw_symbol(out, type, *symbol, style->text_background, sym, 0, font); - nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font); -} + /* hide scroll if no user input */ + if (window->flags & NK_WINDOW_SCROLL_AUTO_HIDE) { + int has_input = ctx->input.mouse.delta.x != 0 || ctx->input.mouse.delta.y != 0 || ctx->input.mouse.scroll_delta.y != 0; + int is_window_hovered = nk_window_is_hovered(ctx); + int any_item_active = (ctx->last_widget_state & NK_WIDGET_STATE_MODIFIED); + if ((!has_input && is_window_hovered) || (!is_window_hovered && !any_item_active)) + window->scrollbar_hiding_timer += ctx->delta_time_seconds; + else window->scrollbar_hiding_timer = 0; + } else window->scrollbar_hiding_timer = 0; -NK_INTERN int -nk_do_button_text_symbol(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - enum nk_symbol_type symbol, const char *str, int len, nk_flags align, - enum nk_button_behavior behavior, const struct nk_style_button *style, - const struct nk_user_font *font, const struct nk_input *in) -{ - int ret; - struct nk_rect tri = {0,0,0,0}; - struct nk_rect content; + /* window border */ + if (layout->flags & NK_WINDOW_BORDER) + { + struct nk_color border_color = nk_panel_get_border_color(style, layout->type); + const float padding_y = (layout->flags & NK_WINDOW_MINIMIZED) + ? (style->window.border + window->bounds.y + layout->header_height) + : ((layout->flags & NK_WINDOW_DYNAMIC) + ? (layout->bounds.y + layout->bounds.h + layout->footer_height) + : (window->bounds.y + window->bounds.h)); + struct nk_rect b = window->bounds; + b.h = padding_y - window->bounds.y; + nk_stroke_rect(out, b, 0, layout->border, border_color); + } - NK_ASSERT(style); - NK_ASSERT(out); - NK_ASSERT(font); - if (!out || !style || !font) - return nk_false; + /* scaler */ + if ((layout->flags & NK_WINDOW_SCALABLE) && in && !(layout->flags & NK_WINDOW_MINIMIZED)) + { + /* calculate scaler bounds */ + struct nk_rect scaler; + scaler.w = scrollbar_size.x; + scaler.h = scrollbar_size.y; + scaler.y = layout->bounds.y + layout->bounds.h; + if (layout->flags & NK_WINDOW_SCALE_LEFT) + scaler.x = layout->bounds.x - panel_padding.x * 0.5f; + else scaler.x = layout->bounds.x + layout->bounds.w + panel_padding.x; + if (layout->flags & NK_WINDOW_NO_SCROLLBAR) + scaler.x -= scaler.w; - ret = nk_do_button(state, out, bounds, style, in, behavior, &content); - tri.y = content.y + (content.h/2) - font->height/2; - tri.w = font->height; tri.h = font->height; - if (align & NK_TEXT_ALIGN_LEFT) { - tri.x = (content.x + content.w) - (2 * style->padding.x + tri.w); - tri.x = NK_MAX(tri.x, 0); - } else tri.x = content.x + 2 * style->padding.x; + /* draw scaler */ + {const struct nk_style_item *item = &style->window.scaler; + if (item->type == NK_STYLE_ITEM_IMAGE) + nk_draw_image(out, scaler, &item->data.image, nk_white); + else { + if (layout->flags & NK_WINDOW_SCALE_LEFT) { + nk_fill_triangle(out, scaler.x, scaler.y, scaler.x, + scaler.y + scaler.h, scaler.x + scaler.w, + scaler.y + scaler.h, item->data.color); + } else { + nk_fill_triangle(out, scaler.x + scaler.w, scaler.y, scaler.x + scaler.w, + scaler.y + scaler.h, scaler.x, scaler.y + scaler.h, item->data.color); + } + }} - /* draw button */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_button_text_symbol(out, &bounds, &content, &tri, - *state, style, str, len, symbol, font); - if (style->draw_end) style->draw_end(out, style->userdata); - return ret; -} + /* do window scaling */ + if (!(window->flags & NK_WINDOW_ROM)) { + struct nk_vec2 window_size = style->window.min_size; + int left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; + int left_mouse_click_in_scaler = nk_input_has_mouse_click_down_in_rect(in, + NK_BUTTON_LEFT, scaler, nk_true); -NK_INTERN void -nk_draw_button_text_image(struct nk_command_buffer *out, - const struct nk_rect *bounds, const struct nk_rect *label, - const struct nk_rect *image, nk_flags state, const struct nk_style_button *style, - const char *str, int len, const struct nk_user_font *font, - const struct nk_image *img) -{ - struct nk_text text; - const struct nk_style_item *background; - background = nk_draw_button(out, bounds, state, style); + if (left_mouse_down && left_mouse_click_in_scaler) { + float delta_x = in->mouse.delta.x; + if (layout->flags & NK_WINDOW_SCALE_LEFT) { + delta_x = -delta_x; + window->bounds.x += in->mouse.delta.x; + } + /* dragging in x-direction */ + if (window->bounds.w + delta_x >= window_size.x) { + if ((delta_x < 0) || (delta_x > 0 && in->mouse.pos.x >= scaler.x)) { + window->bounds.w = window->bounds.w + delta_x; + scaler.x += in->mouse.delta.x; + } + } + /* dragging in y-direction (only possible if static window) */ + if (!(layout->flags & NK_WINDOW_DYNAMIC)) { + if (window_size.y < window->bounds.h + in->mouse.delta.y) { + if ((in->mouse.delta.y < 0) || (in->mouse.delta.y > 0 && in->mouse.pos.y >= scaler.y)) { + window->bounds.h = window->bounds.h + in->mouse.delta.y; + scaler.y += in->mouse.delta.y; + } + } + } + ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_RESIZE_TOP_RIGHT_DOWN_LEFT]; + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = scaler.x + scaler.w/2.0f; + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = scaler.y + scaler.h/2.0f; + } + } + } + if (!nk_panel_is_sub(layout->type)) { + /* window is hidden so clear command buffer */ + if (layout->flags & NK_WINDOW_HIDDEN) + nk_command_buffer_reset(&window->buffer); + /* window is visible and not tab */ + else nk_finish(ctx, window); + } - /* select correct colors */ - if (background->type == NK_STYLE_ITEM_COLOR) - text.background = background->data.color; - else text.background = style->text_background; - if (state & NK_WIDGET_STATE_HOVER) - text.text = style->text_hover; - else if (state & NK_WIDGET_STATE_ACTIVED) - text.text = style->text_active; - else text.text = style->text_normal; + /* NK_WINDOW_REMOVE_ROM flag was set so remove NK_WINDOW_ROM */ + if (layout->flags & NK_WINDOW_REMOVE_ROM) { + layout->flags &= ~(nk_flags)NK_WINDOW_ROM; + layout->flags &= ~(nk_flags)NK_WINDOW_REMOVE_ROM; + } + window->flags = layout->flags; - text.padding = nk_vec2(0,0); - nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font); - nk_draw_image(out, *image, img, nk_white); + /* property garbage collector */ + if (window->property.active && window->property.old != window->property.seq && + window->property.active == window->property.prev) { + nk_zero(&window->property, sizeof(window->property)); + } else { + window->property.old = window->property.seq; + window->property.prev = window->property.active; + window->property.seq = 0; + } + /* edit garbage collector */ + if (window->edit.active && window->edit.old != window->edit.seq && + window->edit.active == window->edit.prev) { + nk_zero(&window->edit, sizeof(window->edit)); + } else { + window->edit.old = window->edit.seq; + window->edit.prev = window->edit.active; + window->edit.seq = 0; + } + /* contextual garbage collector */ + if (window->popup.active_con && window->popup.con_old != window->popup.con_count) { + window->popup.con_count = 0; + window->popup.con_old = 0; + window->popup.active_con = 0; + } else { + window->popup.con_old = window->popup.con_count; + window->popup.con_count = 0; + } + window->popup.combo_count = 0; + /* helper to make sure you have a 'nk_tree_push' for every 'nk_tree_pop' */ + NK_ASSERT(!layout->row.tree_depth); } -NK_INTERN int -nk_do_button_text_image(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - struct nk_image img, const char* str, int len, nk_flags align, - enum nk_button_behavior behavior, const struct nk_style_button *style, - const struct nk_user_font *font, const struct nk_input *in) -{ - int ret; - struct nk_rect icon; - struct nk_rect content; - - NK_ASSERT(style); - NK_ASSERT(state); - NK_ASSERT(font); - NK_ASSERT(out); - if (!out || !font || !style || !str) - return nk_false; - ret = nk_do_button(state, out, bounds, style, in, behavior, &content); - icon.y = bounds.y + style->padding.y; - icon.w = icon.h = bounds.h - 2 * style->padding.y; - if (align & NK_TEXT_ALIGN_LEFT) { - icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w); - icon.x = NK_MAX(icon.x, 0); - } else icon.x = bounds.x + 2 * style->padding.x; - icon.x += style->image_padding.x; - icon.y += style->image_padding.y; - icon.w -= 2 * style->image_padding.x; - icon.h -= 2 * style->image_padding.y; - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img); - if (style->draw_end) style->draw_end(out, style->userdata); - return ret; -} /* =============================================================== * - * TOGGLE + * WINDOW * * ===============================================================*/ -enum nk_toggle_type { - NK_TOGGLE_CHECK, - NK_TOGGLE_OPTION -}; +NK_LIB void* +nk_create_window(struct nk_context *ctx) +{ + struct nk_page_element *elem; + elem = nk_create_page_element(ctx); + if (!elem) return 0; + elem->data.win.seq = ctx->seq; + return &elem->data.win; +} +NK_LIB void +nk_free_window(struct nk_context *ctx, struct nk_window *win) +{ + /* unlink windows from list */ + struct nk_table *it = win->tables; + if (win->popup.win) { + nk_free_window(ctx, win->popup.win); + win->popup.win = 0; + } + win->next = 0; + win->prev = 0; -NK_INTERN int -nk_toggle_behavior(const struct nk_input *in, struct nk_rect select, - nk_flags *state, int active) + while (it) { + /*free window state tables */ + struct nk_table *n = it->next; + nk_remove_table(win, it); + nk_free_table(ctx, it); + if (it == win->tables) + win->tables = n; + it = n; + } + + /* link windows into freelist */ + {union nk_page_data *pd = NK_CONTAINER_OF(win, union nk_page_data, win); + struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); + nk_free_page_element(ctx, pe);} +} +NK_LIB struct nk_window* +nk_find_window(struct nk_context *ctx, nk_hash hash, const char *name) { - nk_widget_state_reset(state); - if (nk_button_behavior(state, select, in, NK_BUTTON_DEFAULT)) { - *state = NK_WIDGET_STATE_ACTIVE; - active = !active; + struct nk_window *iter; + iter = ctx->begin; + while (iter) { + NK_ASSERT(iter != iter->next); + if (iter->name == hash) { + int max_len = nk_strlen(iter->name_string); + if (!nk_stricmpn(iter->name_string, name, max_len)) + return iter; + } + iter = iter->next; } - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, select)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, select)) - *state |= NK_WIDGET_STATE_LEFT; - return active; + return 0; } - -NK_INTERN void -nk_draw_checkbox(struct nk_command_buffer *out, - nk_flags state, const struct nk_style_toggle *style, int active, - const struct nk_rect *label, const struct nk_rect *selector, - const struct nk_rect *cursors, const char *string, int len, - const struct nk_user_font *font) +NK_LIB void +nk_insert_window(struct nk_context *ctx, struct nk_window *win, + enum nk_window_insert_location loc) { - const struct nk_style_item *background; - const struct nk_style_item *cursor; - struct nk_text text; + const struct nk_window *iter; + NK_ASSERT(ctx); + NK_ASSERT(win); + if (!win || !ctx) return; - /* select correct colors/images */ - if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - cursor = &style->cursor_hover; - text.text = style->text_hover; - } else if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->hover; - cursor = &style->cursor_hover; - text.text = style->text_active; - } else { - background = &style->normal; - cursor = &style->cursor_normal; - text.text = style->text_normal; + iter = ctx->begin; + while (iter) { + NK_ASSERT(iter != iter->next); + NK_ASSERT(iter != win); + if (iter == win) return; + iter = iter->next; } - /* draw background and cursor */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_rect(out, *selector, 0, style->border_color); - nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color); - } else nk_draw_image(out, *selector, &background->data.image, nk_white); - if (active) { - if (cursor->type == NK_STYLE_ITEM_IMAGE) - nk_draw_image(out, *cursors, &cursor->data.image, nk_white); - else nk_fill_rect(out, *cursors, 0, cursor->data.color); + if (!ctx->begin) { + win->next = 0; + win->prev = 0; + ctx->begin = win; + ctx->end = win; + ctx->count = 1; + return; } - - text.padding.x = 0; - text.padding.y = 0; - text.background = style->text_background; - nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font); + if (loc == NK_INSERT_BACK) { + struct nk_window *end; + end = ctx->end; + end->flags |= NK_WINDOW_ROM; + end->next = win; + win->prev = ctx->end; + win->next = 0; + ctx->end = win; + ctx->active = ctx->end; + ctx->end->flags &= ~(nk_flags)NK_WINDOW_ROM; + } else { + /*ctx->end->flags |= NK_WINDOW_ROM;*/ + ctx->begin->prev = win; + win->next = ctx->begin; + win->prev = 0; + ctx->begin = win; + ctx->begin->flags &= ~(nk_flags)NK_WINDOW_ROM; + } + ctx->count++; } - -NK_INTERN void -nk_draw_option(struct nk_command_buffer *out, - nk_flags state, const struct nk_style_toggle *style, int active, - const struct nk_rect *label, const struct nk_rect *selector, - const struct nk_rect *cursors, const char *string, int len, - const struct nk_user_font *font) +NK_LIB void +nk_remove_window(struct nk_context *ctx, struct nk_window *win) { - const struct nk_style_item *background; - const struct nk_style_item *cursor; - struct nk_text text; - - /* select correct colors/images */ - if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - cursor = &style->cursor_hover; - text.text = style->text_hover; - } else if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->hover; - cursor = &style->cursor_hover; - text.text = style->text_active; + if (win == ctx->begin || win == ctx->end) { + if (win == ctx->begin) { + ctx->begin = win->next; + if (win->next) + win->next->prev = 0; + } + if (win == ctx->end) { + ctx->end = win->prev; + if (win->prev) + win->prev->next = 0; + } } else { - background = &style->normal; - cursor = &style->cursor_normal; - text.text = style->text_normal; + if (win->next) + win->next->prev = win->prev; + if (win->prev) + win->prev->next = win->next; } - - /* draw background and cursor */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_circle(out, *selector, style->border_color); - nk_fill_circle(out, nk_shrink_rect(*selector, style->border), background->data.color); - } else nk_draw_image(out, *selector, &background->data.image, nk_white); - if (active) { - if (cursor->type == NK_STYLE_ITEM_IMAGE) - nk_draw_image(out, *cursors, &cursor->data.image, nk_white); - else nk_fill_circle(out, *cursors, cursor->data.color); + if (win == ctx->active || !ctx->active) { + ctx->active = ctx->end; + if (ctx->end) + ctx->end->flags &= ~(nk_flags)NK_WINDOW_ROM; } - - text.padding.x = 0; - text.padding.y = 0; - text.background = style->text_background; - nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font); + win->next = 0; + win->prev = 0; + ctx->count--; } - -NK_INTERN int -nk_do_toggle(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect r, - int *active, const char *str, int len, enum nk_toggle_type type, - const struct nk_style_toggle *style, const struct nk_input *in, - const struct nk_user_font *font) +NK_API int +nk_begin(struct nk_context *ctx, const char *title, + struct nk_rect bounds, nk_flags flags) { - int was_active; - struct nk_rect bounds; - struct nk_rect select; - struct nk_rect cursor; - struct nk_rect label; + return nk_begin_titled(ctx, title, title, bounds, flags); +} +NK_API int +nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, + struct nk_rect bounds, nk_flags flags) +{ + struct nk_window *win; + struct nk_style *style; + nk_hash title_hash; + int title_len; + int ret = 0; - NK_ASSERT(style); - NK_ASSERT(out); - NK_ASSERT(font); - if (!out || !style || !font || !active) + NK_ASSERT(ctx); + NK_ASSERT(name); + NK_ASSERT(title); + NK_ASSERT(ctx->style.font && ctx->style.font->width && "if this triggers you forgot to add a font"); + NK_ASSERT(!ctx->current && "if this triggers you missed a `nk_end` call"); + if (!ctx || ctx->current || !title || !name) return 0; - r.w = NK_MAX(r.w, font->height + 2 * style->padding.x); - r.h = NK_MAX(r.h, font->height + 2 * style->padding.y); - - /* add additional touch padding for touch screen devices */ - bounds.x = r.x - style->touch_padding.x; - bounds.y = r.y - style->touch_padding.y; - bounds.w = r.w + 2 * style->touch_padding.x; - bounds.h = r.h + 2 * style->touch_padding.y; - - /* calculate the selector space */ - select.w = font->height; - select.h = select.w; - select.y = r.y + r.h/2.0f - select.h/2.0f; - select.x = r.x; - - /* calculate the bounds of the cursor inside the selector */ - cursor.x = select.x + style->padding.x + style->border; - cursor.y = select.y + style->padding.y + style->border; - cursor.w = select.w - (2 * style->padding.x + 2 * style->border); - cursor.h = select.h - (2 * style->padding.y + 2 * style->border); - - /* label behind the selector */ - label.x = select.x + select.w + style->spacing; - label.y = select.y; - label.w = NK_MAX(r.x + r.w, label.x) - label.x; - label.h = select.w; + /* find or create window */ + style = &ctx->style; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) { + /* create new window */ + nk_size name_length = (nk_size)nk_strlen(name); + win = (struct nk_window*)nk_create_window(ctx); + NK_ASSERT(win); + if (!win) return 0; - /* update selector */ - was_active = *active; - *active = nk_toggle_behavior(in, bounds, state, *active); + if (flags & NK_WINDOW_BACKGROUND) + nk_insert_window(ctx, win, NK_INSERT_FRONT); + else nk_insert_window(ctx, win, NK_INSERT_BACK); + nk_command_buffer_init(&win->buffer, &ctx->memory, NK_CLIPPING_ON); - /* draw selector */ - if (style->draw_begin) - style->draw_begin(out, style->userdata); - if (type == NK_TOGGLE_CHECK) { - nk_draw_checkbox(out, *state, style, *active, &label, &select, &cursor, str, len, font); + win->flags = flags; + win->bounds = bounds; + win->name = title_hash; + name_length = NK_MIN(name_length, NK_WINDOW_MAX_NAME-1); + NK_MEMCPY(win->name_string, name, name_length); + win->name_string[name_length] = 0; + win->popup.win = 0; + if (!ctx->active) + ctx->active = win; } else { - nk_draw_option(out, *state, style, *active, &label, &select, &cursor, str, len, font); + /* update window */ + win->flags &= ~(nk_flags)(NK_WINDOW_PRIVATE-1); + win->flags |= flags; + if (!(win->flags & (NK_WINDOW_MOVABLE | NK_WINDOW_SCALABLE))) + win->bounds = bounds; + /* If this assert triggers you either: + * + * I.) Have more than one window with the same name or + * II.) You forgot to actually draw the window. + * More specific you did not call `nk_clear` (nk_clear will be + * automatically called for you if you are using one of the + * provided demo backends). */ + NK_ASSERT(win->seq != ctx->seq); + win->seq = ctx->seq; + if (!ctx->active && !(win->flags & NK_WINDOW_HIDDEN)) { + ctx->active = win; + ctx->end = win; + } } - if (style->draw_end) - style->draw_end(out, style->userdata); - return (was_active != *active); -} + if (win->flags & NK_WINDOW_HIDDEN) { + ctx->current = win; + win->layout = 0; + return 0; + } else nk_start(ctx, win); -/* =============================================================== - * - * SELECTABLE - * - * ===============================================================*/ -NK_INTERN void -nk_draw_selectable(struct nk_command_buffer *out, - nk_flags state, const struct nk_style_selectable *style, int active, - const struct nk_rect *bounds, const struct nk_rect *icon, const struct nk_image *img, - const char *string, int len, nk_flags align, const struct nk_user_font *font) -{ - const struct nk_style_item *background; - struct nk_text text; - text.padding = style->padding; + /* window overlapping */ + if (!(win->flags & NK_WINDOW_HIDDEN) && !(win->flags & NK_WINDOW_NO_INPUT)) + { + int inpanel, ishovered; + struct nk_window *iter = win; + float h = ctx->style.font->height + 2.0f * style->window.header.padding.y + + (2.0f * style->window.header.label_padding.y); + struct nk_rect win_bounds = (!(win->flags & NK_WINDOW_MINIMIZED))? + win->bounds: nk_rect(win->bounds.x, win->bounds.y, win->bounds.w, h); + + /* activate window if hovered and no other window is overlapping this window */ + inpanel = nk_input_has_mouse_click_down_in_rect(&ctx->input, NK_BUTTON_LEFT, win_bounds, nk_true); + inpanel = inpanel && ctx->input.mouse.buttons[NK_BUTTON_LEFT].clicked; + ishovered = nk_input_is_mouse_hovering_rect(&ctx->input, win_bounds); + if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) { + iter = win->next; + while (iter) { + struct nk_rect iter_bounds = (!(iter->flags & NK_WINDOW_MINIMIZED))? + iter->bounds: nk_rect(iter->bounds.x, iter->bounds.y, iter->bounds.w, h); + if (NK_INTERSECT(win_bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, + iter_bounds.x, iter_bounds.y, iter_bounds.w, iter_bounds.h) && + (!(iter->flags & NK_WINDOW_HIDDEN))) + break; - /* select correct colors/images */ - if (!active) { - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->pressed; - text.text = style->text_pressed; - } else if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - text.text = style->text_hover; - } else { - background = &style->normal; - text.text = style->text_normal; + if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) && + NK_INTERSECT(win->bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, + iter->popup.win->bounds.x, iter->popup.win->bounds.y, + iter->popup.win->bounds.w, iter->popup.win->bounds.h)) + break; + iter = iter->next; + } } - } else { - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->pressed_active; - text.text = style->text_pressed_active; - } else if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover_active; - text.text = style->text_hover_active; + + /* activate window if clicked */ + if (iter && inpanel && (win != ctx->end)) { + iter = win->next; + while (iter) { + /* try to find a panel with higher priority in the same position */ + struct nk_rect iter_bounds = (!(iter->flags & NK_WINDOW_MINIMIZED))? + iter->bounds: nk_rect(iter->bounds.x, iter->bounds.y, iter->bounds.w, h); + if (NK_INBOX(ctx->input.mouse.pos.x, ctx->input.mouse.pos.y, + iter_bounds.x, iter_bounds.y, iter_bounds.w, iter_bounds.h) && + !(iter->flags & NK_WINDOW_HIDDEN)) + break; + if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) && + NK_INTERSECT(win_bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, + iter->popup.win->bounds.x, iter->popup.win->bounds.y, + iter->popup.win->bounds.w, iter->popup.win->bounds.h)) + break; + iter = iter->next; + } + } + if (iter && !(win->flags & NK_WINDOW_ROM) && (win->flags & NK_WINDOW_BACKGROUND)) { + win->flags |= (nk_flags)NK_WINDOW_ROM; + iter->flags &= ~(nk_flags)NK_WINDOW_ROM; + ctx->active = iter; + if (!(iter->flags & NK_WINDOW_BACKGROUND)) { + /* current window is active in that position so transfer to top + * at the highest priority in stack */ + nk_remove_window(ctx, iter); + nk_insert_window(ctx, iter, NK_INSERT_BACK); + } } else { - background = &style->normal_active; - text.text = style->text_normal_active; + if (!iter && ctx->end != win) { + if (!(win->flags & NK_WINDOW_BACKGROUND)) { + /* current window is active in that position so transfer to top + * at the highest priority in stack */ + nk_remove_window(ctx, win); + nk_insert_window(ctx, win, NK_INSERT_BACK); + } + win->flags &= ~(nk_flags)NK_WINDOW_ROM; + ctx->active = win; + } + if (ctx->end != win && !(win->flags & NK_WINDOW_BACKGROUND)) + win->flags |= NK_WINDOW_ROM; } } + win->layout = (struct nk_panel*)nk_create_panel(ctx); + ctx->current = win; + ret = nk_panel_begin(ctx, title, NK_PANEL_WINDOW); + win->layout->offset_x = &win->scrollbar.x; + win->layout->offset_y = &win->scrollbar.y; + return ret; +} +NK_API void +nk_end(struct nk_context *ctx) +{ + struct nk_panel *layout; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current && "if this triggers you forgot to call `nk_begin`"); + if (!ctx || !ctx->current) + return; - - /* draw selectable background and text */ - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(out, *bounds, &background->data.image, nk_white); - text.background = nk_rgba(0,0,0,0); - } else { - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - text.background = background->data.color; + layout = ctx->current->layout; + if (!layout || (layout->type == NK_PANEL_WINDOW && (ctx->current->flags & NK_WINDOW_HIDDEN))) { + ctx->current = 0; + return; } - if (img && icon) nk_draw_image(out, *icon, img, nk_white); - nk_widget_text(out, *bounds, string, len, &text, align, font); + nk_panel_end(ctx); + nk_free_panel(ctx, ctx->current->layout); + ctx->current = 0; } - -NK_INTERN int -nk_do_selectable(nk_flags *state, struct nk_command_buffer *out, - struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, - const struct nk_style_selectable *style, const struct nk_input *in, - const struct nk_user_font *font) +NK_API struct nk_rect +nk_window_get_bounds(const struct nk_context *ctx) { - int old_value; - struct nk_rect touch; - - NK_ASSERT(state); - NK_ASSERT(out); - NK_ASSERT(str); - NK_ASSERT(len); - NK_ASSERT(value); - NK_ASSERT(style); - NK_ASSERT(font); - - if (!state || !out || !str || !len || !value || !style || !font) return 0; - old_value = *value; - - /* remove padding */ - touch.x = bounds.x - style->touch_padding.x; - touch.y = bounds.y - style->touch_padding.y; - touch.w = bounds.w + style->touch_padding.x * 2; - touch.h = bounds.h + style->touch_padding.y * 2; - - /* update button */ - if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT)) - *value = !(*value); - - /* draw selectable */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_selectable(out, *state, style, *value, &bounds, 0,0, str, len, align, font); - if (style->draw_end) style->draw_end(out, style->userdata); - return old_value != *value; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return nk_rect(0,0,0,0); + return ctx->current->bounds; } - -NK_INTERN int -nk_do_selectable_image(nk_flags *state, struct nk_command_buffer *out, - struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, - const struct nk_image *img, const struct nk_style_selectable *style, - const struct nk_input *in, const struct nk_user_font *font) +NK_API struct nk_vec2 +nk_window_get_position(const struct nk_context *ctx) { - int old_value; - struct nk_rect touch; - struct nk_rect icon; - - NK_ASSERT(state); - NK_ASSERT(out); - NK_ASSERT(str); - NK_ASSERT(len); - NK_ASSERT(value); - NK_ASSERT(style); - NK_ASSERT(font); - - if (!state || !out || !str || !len || !value || !style || !font) return 0; - old_value = *value; - - /* toggle behavior */ - touch.x = bounds.x - style->touch_padding.x; - touch.y = bounds.y - style->touch_padding.y; - touch.w = bounds.w + style->touch_padding.x * 2; - touch.h = bounds.h + style->touch_padding.y * 2; - if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT)) - *value = !(*value); - - icon.y = bounds.y + style->padding.y; - icon.w = icon.h = bounds.h - 2 * style->padding.y; - if (align & NK_TEXT_ALIGN_LEFT) { - icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w); - icon.x = NK_MAX(icon.x, 0); - } else icon.x = bounds.x + 2 * style->padding.x; - - icon.x += style->image_padding.x; - icon.y += style->image_padding.y; - icon.w -= 2 * style->image_padding.x; - icon.h -= 2 * style->image_padding.y; - - /* draw selectable */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_selectable(out, *state, style, *value, &bounds, &icon, img, str, len, align, font); - if (style->draw_end) style->draw_end(out, style->userdata); - return old_value != *value; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return nk_vec2(0,0); + return nk_vec2(ctx->current->bounds.x, ctx->current->bounds.y); +} +NK_API struct nk_vec2 +nk_window_get_size(const struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return nk_vec2(0,0); + return nk_vec2(ctx->current->bounds.w, ctx->current->bounds.h); +} +NK_API float +nk_window_get_width(const struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return 0; + return ctx->current->bounds.w; +} +NK_API float +nk_window_get_height(const struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return 0; + return ctx->current->bounds.h; +} +NK_API struct nk_rect +nk_window_get_content_region(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return nk_rect(0,0,0,0); + return ctx->current->layout->clip; +} +NK_API struct nk_vec2 +nk_window_get_content_region_min(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current) return nk_vec2(0,0); + return nk_vec2(ctx->current->layout->clip.x, ctx->current->layout->clip.y); +} +NK_API struct nk_vec2 +nk_window_get_content_region_max(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current) return nk_vec2(0,0); + return nk_vec2(ctx->current->layout->clip.x + ctx->current->layout->clip.w, + ctx->current->layout->clip.y + ctx->current->layout->clip.h); +} +NK_API struct nk_vec2 +nk_window_get_content_region_size(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current) return nk_vec2(0,0); + return nk_vec2(ctx->current->layout->clip.w, ctx->current->layout->clip.h); +} +NK_API struct nk_command_buffer* +nk_window_get_canvas(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current) return 0; + return &ctx->current->buffer; +} +NK_API struct nk_panel* +nk_window_get_panel(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return 0; + return ctx->current->layout; +} +NK_API int +nk_window_has_focus(const struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current) return 0; + return ctx->current == ctx->active; } - - -/* =============================================================== - * - * SLIDER - * - * ===============================================================*/ -NK_INTERN float -nk_slider_behavior(nk_flags *state, struct nk_rect *logical_cursor, - struct nk_rect *visual_cursor, struct nk_input *in, - struct nk_rect bounds, float slider_min, float slider_max, float slider_value, - float slider_step, float slider_steps) +NK_API int +nk_window_is_hovered(struct nk_context *ctx) { - int left_mouse_down; - int left_mouse_click_in_cursor; - - /* check if visual cursor is being dragged */ - nk_widget_state_reset(state); - left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down; - left_mouse_click_in_cursor = in && nk_input_has_mouse_click_down_in_rect(in, - NK_BUTTON_LEFT, *visual_cursor, nk_true); - - if (left_mouse_down && left_mouse_click_in_cursor) - { - float ratio = 0; - const float d = in->mouse.pos.x - (visual_cursor->x+visual_cursor->w*0.5f); - const float pxstep = bounds.w / slider_steps; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return 0; + if(ctx->current->flags & NK_WINDOW_HIDDEN) + return 0; + return nk_input_is_mouse_hovering_rect(&ctx->input, ctx->current->bounds); +} +NK_API int +nk_window_is_any_hovered(struct nk_context *ctx) +{ + struct nk_window *iter; + NK_ASSERT(ctx); + if (!ctx) return 0; + iter = ctx->begin; + while (iter) { + /* check if window is being hovered */ + if(!(iter->flags & NK_WINDOW_HIDDEN)) { + /* check if window popup is being hovered */ + if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds)) + return 1; - /* only update value if the next slider step is reached */ - *state = NK_WIDGET_STATE_ACTIVE; - if (NK_ABS(d) >= pxstep) { - const float steps = (float)((int)(NK_ABS(d) / pxstep)); - slider_value += (d > 0) ? (slider_step*steps) : -(slider_step*steps); - slider_value = NK_CLAMP(slider_min, slider_value, slider_max); - ratio = (slider_value - slider_min)/slider_step; - logical_cursor->x = bounds.x + (logical_cursor->w * ratio); - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = logical_cursor->x; + if (iter->flags & NK_WINDOW_MINIMIZED) { + struct nk_rect header = iter->bounds; + header.h = ctx->style.font->height + 2 * ctx->style.window.header.padding.y; + if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) + return 1; + } else if (nk_input_is_mouse_hovering_rect(&ctx->input, iter->bounds)) { + return 1; + } } + iter = iter->next; } - - /* slider widget state */ - if (nk_input_is_mouse_hovering_rect(in, bounds)) - *state = NK_WIDGET_STATE_HOVERED; - if (*state & NK_WIDGET_STATE_HOVER && - !nk_input_is_mouse_prev_hovering_rect(in, bounds)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, bounds)) - *state |= NK_WIDGET_STATE_LEFT; - return slider_value; + return 0; } - -NK_INTERN void -nk_draw_slider(struct nk_command_buffer *out, nk_flags state, - const struct nk_style_slider *style, const struct nk_rect *bounds, - const struct nk_rect *visual_cursor, float min, float value, float max) +NK_API int +nk_item_is_any_active(struct nk_context *ctx) { - struct nk_rect fill; - struct nk_rect bar; - const struct nk_style_item *background; - - /* select correct slider images/colors */ - struct nk_color bar_color; - const struct nk_style_item *cursor; - - NK_UNUSED(min); - NK_UNUSED(max); - NK_UNUSED(value); - - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - bar_color = style->bar_active; - cursor = &style->cursor_active; - } else if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - bar_color = style->bar_hover; - cursor = &style->cursor_hover; - } else { - background = &style->normal; - bar_color = style->bar_normal; - cursor = &style->cursor_normal; - } - - /* calculate slider background bar */ - bar.x = bounds->x; - bar.y = (visual_cursor->y + visual_cursor->h/2) - bounds->h/12; - bar.w = bounds->w; - bar.h = bounds->h/6; - - /* filled background bar style */ - fill.w = (visual_cursor->x + (visual_cursor->w/2.0f)) - bar.x; - fill.x = bar.x; - fill.y = bar.y; - fill.h = bar.h; - - /* draw background */ - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(out, *bounds, &background->data.image, nk_white); - } else { - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); - } - - /* draw slider bar */ - nk_fill_rect(out, bar, style->rounding, bar_color); - nk_fill_rect(out, fill, style->rounding, style->bar_filled); - - /* draw cursor */ - if (cursor->type == NK_STYLE_ITEM_IMAGE) - nk_draw_image(out, *visual_cursor, &cursor->data.image, nk_white); - else nk_fill_circle(out, *visual_cursor, cursor->data.color); + int any_hovered = nk_window_is_any_hovered(ctx); + int any_active = (ctx->last_widget_state & NK_WIDGET_STATE_MODIFIED); + return any_hovered || any_active; } - -NK_INTERN float -nk_do_slider(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - float min, float val, float max, float step, - const struct nk_style_slider *style, struct nk_input *in, - const struct nk_user_font *font) +NK_API int +nk_window_is_collapsed(struct nk_context *ctx, const char *name) { - float slider_range; - float slider_min; - float slider_max; - float slider_value; - float slider_steps; - float cursor_offset; - - struct nk_rect visual_cursor; - struct nk_rect logical_cursor; - - NK_ASSERT(style); - NK_ASSERT(out); - if (!out || !style) - return 0; - - /* remove padding from slider bounds */ - bounds.x = bounds.x + style->padding.x; - bounds.y = bounds.y + style->padding.y; - bounds.h = NK_MAX(bounds.h, 2*style->padding.y); - bounds.w = NK_MAX(bounds.w, 2*style->padding.x + style->cursor_size.x); - bounds.w -= 2 * style->padding.x; - bounds.h -= 2 * style->padding.y; - - /* optional buttons */ - if (style->show_buttons) { - nk_flags ws; - struct nk_rect button; - button.y = bounds.y; - button.w = bounds.h; - button.h = bounds.h; - - /* decrement button */ - button.x = bounds.x; - if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, NK_BUTTON_DEFAULT, - &style->dec_button, in, font)) - val -= step; - - /* increment button */ - button.x = (bounds.x + bounds.w) - button.w; - if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, NK_BUTTON_DEFAULT, - &style->inc_button, in, font)) - val += step; - - bounds.x = bounds.x + button.w + style->spacing.x; - bounds.w = bounds.w - (2*button.w + 2*style->spacing.x); - } - - /* remove one cursor size to support visual cursor */ - bounds.x += style->cursor_size.x*0.5f; - bounds.w -= style->cursor_size.x; - - /* make sure the provided values are correct */ - slider_max = NK_MAX(min, max); - slider_min = NK_MIN(min, max); - slider_value = NK_CLAMP(slider_min, val, slider_max); - slider_range = slider_max - slider_min; - slider_steps = slider_range / step; - cursor_offset = (slider_value - slider_min) / step; - - /* calculate cursor - Basically you have two cursors. One for visual representation and interaction - and one for updating the actual cursor value. */ - logical_cursor.h = bounds.h; - logical_cursor.w = bounds.w / slider_steps; - logical_cursor.x = bounds.x + (logical_cursor.w * cursor_offset); - logical_cursor.y = bounds.y; + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return 0; - visual_cursor.h = style->cursor_size.y; - visual_cursor.w = style->cursor_size.x; - visual_cursor.y = (bounds.y + bounds.h*0.5f) - visual_cursor.h*0.5f; - visual_cursor.x = logical_cursor.x - visual_cursor.w*0.5f; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return 0; + return win->flags & NK_WINDOW_MINIMIZED; +} +NK_API int +nk_window_is_closed(struct nk_context *ctx, const char *name) +{ + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return 1; - slider_value = nk_slider_behavior(state, &logical_cursor, &visual_cursor, - in, bounds, slider_min, slider_max, slider_value, step, slider_steps); - visual_cursor.x = logical_cursor.x - visual_cursor.w*0.5f; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return 1; + return (win->flags & NK_WINDOW_CLOSED); +} +NK_API int +nk_window_is_hidden(struct nk_context *ctx, const char *name) +{ + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return 1; - /* draw slider */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_slider(out, *state, style, &bounds, &visual_cursor, slider_min, slider_value, slider_max); - if (style->draw_end) style->draw_end(out, style->userdata); - return slider_value; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return 1; + return (win->flags & NK_WINDOW_HIDDEN); } - -/* =============================================================== - * - * PROGRESSBAR - * - * ===============================================================*/ -NK_INTERN nk_size -nk_progress_behavior(nk_flags *state, const struct nk_input *in, - struct nk_rect r, nk_size max, nk_size value, int modifiable) +NK_API int +nk_window_is_active(struct nk_context *ctx, const char *name) { - nk_widget_state_reset(state); - if (in && modifiable && nk_input_is_mouse_hovering_rect(in, r)) { - int left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - int left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, - NK_BUTTON_LEFT, r, nk_true); - - if (left_mouse_down && left_mouse_click_in_cursor) { - float ratio = NK_MAX(0, (float)(in->mouse.pos.x - r.x)) / (float)r.w; - value = (nk_size)NK_MAX(0,((float)max * ratio)); - *state = NK_WIDGET_STATE_ACTIVE; - } else *state = NK_WIDGET_STATE_HOVERED; - } - - /* set progressbar widget state */ - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, r)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, r)) - *state |= NK_WIDGET_STATE_LEFT; + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return 0; - if (!max) return value; - value = NK_MIN(value, max); - return value; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return 0; + return win == ctx->active; } - -NK_INTERN void -nk_draw_progress(struct nk_command_buffer *out, nk_flags state, - const struct nk_style_progress *style, const struct nk_rect *bounds, - const struct nk_rect *scursor, nk_size value, nk_size max) +NK_API struct nk_window* +nk_window_find(struct nk_context *ctx, const char *name) { - const struct nk_style_item *background; - const struct nk_style_item *cursor; - - NK_UNUSED(max); - NK_UNUSED(value); - - /* select correct colors/images to draw */ - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - cursor = &style->cursor_active; - } else if (state & NK_WIDGET_STATE_HOVER){ - background = &style->hover; - cursor = &style->cursor_hover; - } else { - background = &style->normal; - cursor = &style->cursor_normal; - } - - /* draw background */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); - } else nk_draw_image(out, *bounds, &background->data.image, nk_white); - - /* draw cursor */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_rect(out, *scursor, style->rounding, cursor->data.color); - nk_stroke_rect(out, *scursor, style->rounding, style->border, style->border_color); - } else nk_draw_image(out, *scursor, &cursor->data.image, nk_white); + int title_len; + nk_hash title_hash; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + return nk_find_window(ctx, title_hash, name); } - -NK_INTERN nk_size -nk_do_progress(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect bounds, - nk_size value, nk_size max, int modifiable, - const struct nk_style_progress *style, const struct nk_input *in) +NK_API void +nk_window_close(struct nk_context *ctx, const char *name) { - float prog_scale; - nk_size prog_value; - struct nk_rect cursor; - - NK_ASSERT(style); - NK_ASSERT(out); - if (!out || !style) return 0; - - /* calculate progressbar cursor */ - cursor.w = NK_MAX(bounds.w, 2 * style->padding.x + 2 * style->border); - cursor.h = NK_MAX(bounds.h, 2 * style->padding.y + 2 * style->border); - cursor = nk_pad_rect(bounds, nk_vec2(style->padding.x + style->border, style->padding.y + style->border)); - prog_scale = (float)value / (float)max; - cursor.w = (bounds.w - 2) * prog_scale; - - /* update progressbar */ - prog_value = NK_MIN(value, max); - prog_value = nk_progress_behavior(state, in, bounds, max, prog_value, modifiable); - - /* draw progressbar */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_progress(out, *state, style, &bounds, &cursor, value, max); - if (style->draw_end) style->draw_end(out, style->userdata); - return prog_value; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return; + win = nk_window_find(ctx, name); + if (!win) return; + NK_ASSERT(ctx->current != win && "You cannot close a currently active window"); + if (ctx->current == win) return; + win->flags |= NK_WINDOW_HIDDEN; + win->flags |= NK_WINDOW_CLOSED; } - -/* =============================================================== - * - * SCROLLBAR - * - * ===============================================================*/ -NK_INTERN float -nk_scrollbar_behavior(nk_flags *state, struct nk_input *in, - int has_scrolling, const struct nk_rect *scroll, - const struct nk_rect *cursor, const struct nk_rect *empty0, - const struct nk_rect *empty1, float scroll_offset, - float target, float scroll_step, enum nk_orientation o) +NK_API void +nk_window_set_bounds(struct nk_context *ctx, + const char *name, struct nk_rect bounds) { - nk_flags ws = 0; - int left_mouse_down; - int left_mouse_click_in_cursor; - float scroll_delta; - - nk_widget_state_reset(state); - if (!in) return scroll_offset; - - left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, - NK_BUTTON_LEFT, *cursor, nk_true); - if (nk_input_is_mouse_hovering_rect(in, *scroll)) - *state = NK_WIDGET_STATE_HOVERED; - - scroll_delta = (o == NK_VERTICAL) ? in->mouse.scroll_delta.y: in->mouse.scroll_delta.x; - if (left_mouse_down && left_mouse_click_in_cursor) { - /* update cursor by mouse dragging */ - float pixel, delta; - *state = NK_WIDGET_STATE_ACTIVE; - if (o == NK_VERTICAL) { - float cursor_y; - pixel = in->mouse.delta.y; - delta = (pixel / scroll->h) * target; - scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->h); - cursor_y = scroll->y + ((scroll_offset/target) * scroll->h); - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = cursor_y + cursor->h/2.0f; - } else { - float cursor_x; - pixel = in->mouse.delta.x; - delta = (pixel / scroll->w) * target; - scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->w); - cursor_x = scroll->x + ((scroll_offset/target) * scroll->w); - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = cursor_x + cursor->w/2.0f; - } - } else if ((nk_input_is_key_pressed(in, NK_KEY_SCROLL_UP) && o == NK_VERTICAL && has_scrolling)|| - nk_button_behavior(&ws, *empty0, in, NK_BUTTON_DEFAULT)) { - /* scroll page up by click on empty space or shortcut */ - if (o == NK_VERTICAL) - scroll_offset = NK_MAX(0, scroll_offset - scroll->h); - else scroll_offset = NK_MAX(0, scroll_offset - scroll->w); - } else if ((nk_input_is_key_pressed(in, NK_KEY_SCROLL_DOWN) && o == NK_VERTICAL && has_scrolling) || - nk_button_behavior(&ws, *empty1, in, NK_BUTTON_DEFAULT)) { - /* scroll page down by click on empty space or shortcut */ - if (o == NK_VERTICAL) - scroll_offset = NK_MIN(scroll_offset + scroll->h, target - scroll->h); - else scroll_offset = NK_MIN(scroll_offset + scroll->w, target - scroll->w); - } else if (has_scrolling) { - if ((scroll_delta < 0 || (scroll_delta > 0))) { - /* update cursor by mouse scrolling */ - scroll_offset = scroll_offset + scroll_step * (-scroll_delta); - if (o == NK_VERTICAL) - scroll_offset = NK_CLAMP(0, scroll_offset, target - scroll->h); - else scroll_offset = NK_CLAMP(0, scroll_offset, target - scroll->w); - } else if (nk_input_is_key_pressed(in, NK_KEY_SCROLL_START)) { - /* update cursor to the beginning */ - if (o == NK_VERTICAL) scroll_offset = 0; - } else if (nk_input_is_key_pressed(in, NK_KEY_SCROLL_END)) { - /* update cursor to the end */ - if (o == NK_VERTICAL) scroll_offset = target - scroll->h; - } - } - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, *scroll)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, *scroll)) - *state |= NK_WIDGET_STATE_LEFT; - return scroll_offset; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return; + win = nk_window_find(ctx, name); + if (!win) return; + NK_ASSERT(ctx->current != win && "You cannot update a currently in procecss window"); + win->bounds = bounds; } - -NK_INTERN void -nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state, - const struct nk_style_scrollbar *style, const struct nk_rect *bounds, - const struct nk_rect *scroll) +NK_API void +nk_window_set_position(struct nk_context *ctx, + const char *name, struct nk_vec2 pos) { - const struct nk_style_item *background; - const struct nk_style_item *cursor; - - /* select correct colors/images to draw */ - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - cursor = &style->cursor_active; - } else if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - cursor = &style->cursor_hover; - } else { - background = &style->normal; - cursor = &style->cursor_normal; - } + struct nk_window *win = nk_window_find(ctx, name); + if (!win) return; + win->bounds.x = pos.x; + win->bounds.y = pos.y; +} +NK_API void +nk_window_set_size(struct nk_context *ctx, + const char *name, struct nk_vec2 size) +{ + struct nk_window *win = nk_window_find(ctx, name); + if (!win) return; + win->bounds.w = size.x; + win->bounds.h = size.y; +} +NK_API void +nk_window_collapse(struct nk_context *ctx, const char *name, + enum nk_collapse_states c) +{ + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return; - /* draw background */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); - } else { - nk_draw_image(out, *bounds, &background->data.image, nk_white); - } + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return; + if (c == NK_MINIMIZED) + win->flags |= NK_WINDOW_MINIMIZED; + else win->flags &= ~(nk_flags)NK_WINDOW_MINIMIZED; +} +NK_API void +nk_window_collapse_if(struct nk_context *ctx, const char *name, + enum nk_collapse_states c, int cond) +{ + NK_ASSERT(ctx); + if (!ctx || !cond) return; + nk_window_collapse(ctx, name, c); +} +NK_API void +nk_window_show(struct nk_context *ctx, const char *name, enum nk_show_states s) +{ + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return; - /* draw cursor */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_fill_rect(out, *scroll, style->rounding_cursor, cursor->data.color); - nk_stroke_rect(out, *scroll, style->rounding_cursor, style->border_cursor, style->cursor_border_color); - } else nk_draw_image(out, *scroll, &cursor->data.image, nk_white); + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (!win) return; + if (s == NK_HIDDEN) { + win->flags |= NK_WINDOW_HIDDEN; + } else win->flags &= ~(nk_flags)NK_WINDOW_HIDDEN; } - -NK_INTERN float -nk_do_scrollbarv(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, - float offset, float target, float step, float button_pixel_inc, - const struct nk_style_scrollbar *style, struct nk_input *in, - const struct nk_user_font *font) +NK_API void +nk_window_show_if(struct nk_context *ctx, const char *name, + enum nk_show_states s, int cond) { - struct nk_rect empty_north; - struct nk_rect empty_south; - struct nk_rect cursor; - - float scroll_step; - float scroll_offset; - float scroll_off; - float scroll_ratio; - - NK_ASSERT(out); - NK_ASSERT(style); - NK_ASSERT(state); - if (!out || !style) return 0; - - scroll.w = NK_MAX(scroll.w, 1); - scroll.h = NK_MAX(scroll.h, 0); - if (target <= scroll.h) return 0; - - /* optional scrollbar buttons */ - if (style->show_buttons) { - nk_flags ws; - float scroll_h; - struct nk_rect button; - - button.x = scroll.x; - button.w = scroll.w; - button.h = scroll.w; - - scroll_h = NK_MAX(scroll.h - 2 * button.h,0); - scroll_step = NK_MIN(step, button_pixel_inc); - - /* decrement button */ - button.y = scroll.y; - if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, - NK_BUTTON_REPEATER, &style->dec_button, in, font)) - offset = offset - scroll_step; + NK_ASSERT(ctx); + if (!ctx || !cond) return; + nk_window_show(ctx, name, s); +} - /* increment button */ - button.y = scroll.y + scroll.h - button.h; - if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, - NK_BUTTON_REPEATER, &style->inc_button, in, font)) - offset = offset + scroll_step; +NK_API void +nk_window_set_focus(struct nk_context *ctx, const char *name) +{ + int title_len; + nk_hash title_hash; + struct nk_window *win; + NK_ASSERT(ctx); + if (!ctx) return; - scroll.y = scroll.y + button.h; - scroll.h = scroll_h; + title_len = (int)nk_strlen(name); + title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); + win = nk_find_window(ctx, title_hash, name); + if (win && ctx->end != win) { + nk_remove_window(ctx, win); + nk_insert_window(ctx, win, NK_INSERT_BACK); } - - /* calculate scrollbar constants */ - scroll_step = NK_MIN(step, scroll.h); - scroll_offset = NK_CLAMP(0, offset, target - scroll.h); - scroll_ratio = scroll.h / target; - scroll_off = scroll_offset / target; - - /* calculate scrollbar cursor bounds */ - cursor.h = NK_MAX((scroll_ratio * scroll.h) - (2*style->border + 2*style->padding.y), 0); - cursor.y = scroll.y + (scroll_off * scroll.h) + style->border + style->padding.y; - cursor.w = scroll.w - (2 * style->border + 2 * style->padding.x); - cursor.x = scroll.x + style->border + style->padding.x; - - /* calculate empty space around cursor */ - empty_north.x = scroll.x; - empty_north.y = scroll.y; - empty_north.w = scroll.w; - empty_north.h = NK_MAX(cursor.y - scroll.y, 0); - - empty_south.x = scroll.x; - empty_south.y = cursor.y + cursor.h; - empty_south.w = scroll.w; - empty_south.h = NK_MAX((scroll.y + scroll.h) - (cursor.y + cursor.h), 0); - - /* update scrollbar */ - scroll_offset = nk_scrollbar_behavior(state, in, has_scrolling, &scroll, &cursor, - &empty_north, &empty_south, scroll_offset, target, scroll_step, NK_VERTICAL); - scroll_off = scroll_offset / target; - cursor.y = scroll.y + (scroll_off * scroll.h) + style->border_cursor + style->padding.y; - - /* draw scrollbar */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_scrollbar(out, *state, style, &scroll, &cursor); - if (style->draw_end) style->draw_end(out, style->userdata); - return scroll_offset; + ctx->active = win; } -NK_INTERN float -nk_do_scrollbarh(nk_flags *state, - struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, - float offset, float target, float step, float button_pixel_inc, - const struct nk_style_scrollbar *style, struct nk_input *in, - const struct nk_user_font *font) -{ - struct nk_rect cursor; - struct nk_rect empty_west; - struct nk_rect empty_east; - float scroll_step; - float scroll_offset; - float scroll_off; - float scroll_ratio; - NK_ASSERT(out); - NK_ASSERT(style); - if (!out || !style) return 0; - /* scrollbar background */ - scroll.h = NK_MAX(scroll.h, 1); - scroll.w = NK_MAX(scroll.w, 2 * scroll.h); - if (target <= scroll.w) return 0; - /* optional scrollbar buttons */ - if (style->show_buttons) { - nk_flags ws; - float scroll_w; - struct nk_rect button; - button.y = scroll.y; - button.w = scroll.h; - button.h = scroll.h; +/* =============================================================== + * + * POPUP + * + * ===============================================================*/ +NK_API int +nk_popup_begin(struct nk_context *ctx, enum nk_popup_type type, + const char *title, nk_flags flags, struct nk_rect rect) +{ + struct nk_window *popup; + struct nk_window *win; + struct nk_panel *panel; - scroll_w = scroll.w - 2 * button.w; - scroll_step = NK_MIN(step, button_pixel_inc); + int title_len; + nk_hash title_hash; + nk_size allocated; - /* decrement button */ - button.x = scroll.x; - if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, - NK_BUTTON_REPEATER, &style->dec_button, in, font)) - offset = offset - scroll_step; + NK_ASSERT(ctx); + NK_ASSERT(title); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* increment button */ - button.x = scroll.x + scroll.w - button.w; - if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, - NK_BUTTON_REPEATER, &style->inc_button, in, font)) - offset = offset + scroll_step; + win = ctx->current; + panel = win->layout; + NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP) && "popups are not allowed to have popups"); + (void)panel; + title_len = (int)nk_strlen(title); + title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_POPUP); - scroll.x = scroll.x + button.w; - scroll.w = scroll_w; + popup = win->popup.win; + if (!popup) { + popup = (struct nk_window*)nk_create_window(ctx); + popup->parent = win; + win->popup.win = popup; + win->popup.active = 0; + win->popup.type = NK_PANEL_POPUP; } - /* calculate scrollbar constants */ - scroll_step = NK_MIN(step, scroll.w); - scroll_offset = NK_CLAMP(0, offset, target - scroll.w); - scroll_ratio = scroll.w / target; - scroll_off = scroll_offset / target; - - /* calculate cursor bounds */ - cursor.w = (scroll_ratio * scroll.w) - (2*style->border + 2*style->padding.x); - cursor.x = scroll.x + (scroll_off * scroll.w) + style->border + style->padding.x; - cursor.h = scroll.h - (2 * style->border + 2 * style->padding.y); - cursor.y = scroll.y + style->border + style->padding.y; - - /* calculate empty space around cursor */ - empty_west.x = scroll.x; - empty_west.y = scroll.y; - empty_west.w = cursor.x - scroll.x; - empty_west.h = scroll.h; - - empty_east.x = cursor.x + cursor.w; - empty_east.y = scroll.y; - empty_east.w = (scroll.x + scroll.w) - (cursor.x + cursor.w); - empty_east.h = scroll.h; - - /* update scrollbar */ - scroll_offset = nk_scrollbar_behavior(state, in, has_scrolling, &scroll, &cursor, - &empty_west, &empty_east, scroll_offset, target, scroll_step, NK_HORIZONTAL); - scroll_off = scroll_offset / target; - cursor.x = scroll.x + (scroll_off * scroll.w); + /* make sure we have correct popup */ + if (win->popup.name != title_hash) { + if (!win->popup.active) { + nk_zero(popup, sizeof(*popup)); + win->popup.name = title_hash; + win->popup.active = 1; + win->popup.type = NK_PANEL_POPUP; + } else return 0; + } - /* draw scrollbar */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_scrollbar(out, *state, style, &scroll, &cursor); - if (style->draw_end) style->draw_end(out, style->userdata); - return scroll_offset; -} + /* popup position is local to window */ + ctx->current = popup; + rect.x += win->layout->clip.x; + rect.y += win->layout->clip.y; -/* =============================================================== - * - * FILTER - * - * ===============================================================*/ -NK_API int nk_filter_default(const struct nk_text_edit *box, nk_rune unicode) -{(void)unicode;NK_UNUSED(box);return nk_true;} + /* setup popup data */ + popup->parent = win; + popup->bounds = rect; + popup->seq = ctx->seq; + popup->layout = (struct nk_panel*)nk_create_panel(ctx); + popup->flags = flags; + popup->flags |= NK_WINDOW_BORDER; + if (type == NK_POPUP_DYNAMIC) + popup->flags |= NK_WINDOW_DYNAMIC; -NK_API int -nk_filter_ascii(const struct nk_text_edit *box, nk_rune unicode) -{ - NK_UNUSED(box); - if (unicode > 128) return nk_false; - else return nk_true; -} + popup->buffer = win->buffer; + nk_start_popup(ctx, win); + allocated = ctx->memory.allocated; + nk_push_scissor(&popup->buffer, nk_null_rect); -NK_API int -nk_filter_float(const struct nk_text_edit *box, nk_rune unicode) -{ - NK_UNUSED(box); - if ((unicode < '0' || unicode > '9') && unicode != '.' && unicode != '-') - return nk_false; - else return nk_true; + if (nk_panel_begin(ctx, title, NK_PANEL_POPUP)) { + /* popup is running therefore invalidate parent panels */ + struct nk_panel *root; + root = win->layout; + while (root) { + root->flags |= NK_WINDOW_ROM; + root->flags &= ~(nk_flags)NK_WINDOW_REMOVE_ROM; + root = root->parent; + } + win->popup.active = 1; + popup->layout->offset_x = &popup->scrollbar.x; + popup->layout->offset_y = &popup->scrollbar.y; + popup->layout->parent = win->layout; + return 1; + } else { + /* popup was closed/is invalid so cleanup */ + struct nk_panel *root; + root = win->layout; + while (root) { + root->flags |= NK_WINDOW_REMOVE_ROM; + root = root->parent; + } + win->popup.buf.active = 0; + win->popup.active = 0; + ctx->memory.allocated = allocated; + ctx->current = win; + nk_free_panel(ctx, popup->layout); + popup->layout = 0; + return 0; + } } - -NK_API int -nk_filter_decimal(const struct nk_text_edit *box, nk_rune unicode) +NK_LIB int +nk_nonblock_begin(struct nk_context *ctx, + nk_flags flags, struct nk_rect body, struct nk_rect header, + enum nk_panel_type panel_type) { - NK_UNUSED(box); - if ((unicode < '0' || unicode > '9') && unicode != '-') - return nk_false; - else return nk_true; -} + struct nk_window *popup; + struct nk_window *win; + struct nk_panel *panel; + int is_active = nk_true; -NK_API int -nk_filter_hex(const struct nk_text_edit *box, nk_rune unicode) -{ - NK_UNUSED(box); - if ((unicode < '0' || unicode > '9') && - (unicode < 'a' || unicode > 'f') && - (unicode < 'A' || unicode > 'F')) - return nk_false; - else return nk_true; -} + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; -NK_API int -nk_filter_oct(const struct nk_text_edit *box, nk_rune unicode) -{ - NK_UNUSED(box); - if (unicode < '0' || unicode > '7') - return nk_false; - else return nk_true; -} + /* popups cannot have popups */ + win = ctx->current; + panel = win->layout; + NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP)); + (void)panel; + popup = win->popup.win; + if (!popup) { + /* create window for nonblocking popup */ + popup = (struct nk_window*)nk_create_window(ctx); + popup->parent = win; + win->popup.win = popup; + win->popup.type = panel_type; + nk_command_buffer_init(&popup->buffer, &ctx->memory, NK_CLIPPING_ON); + } else { + /* close the popup if user pressed outside or in the header */ + int pressed, in_body, in_header; + pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT); + in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body); + in_header = nk_input_is_mouse_hovering_rect(&ctx->input, header); + if (pressed && (!in_body || in_header)) + is_active = nk_false; + } + win->popup.header = header; -NK_API int -nk_filter_binary(const struct nk_text_edit *box, nk_rune unicode) -{ - NK_UNUSED(box); - if (unicode != '0' && unicode != '1') - return nk_false; - else return nk_true; -} + if (!is_active) { + /* remove read only mode from all parent panels */ + struct nk_panel *root = win->layout; + while (root) { + root->flags |= NK_WINDOW_REMOVE_ROM; + root = root->parent; + } + return is_active; + } + popup->bounds = body; + popup->parent = win; + popup->layout = (struct nk_panel*)nk_create_panel(ctx); + popup->flags = flags; + popup->flags |= NK_WINDOW_BORDER; + popup->flags |= NK_WINDOW_DYNAMIC; + popup->seq = ctx->seq; + win->popup.active = 1; + NK_ASSERT(popup->layout); -/* =============================================================== - * - * EDIT - * - * ===============================================================*/ -NK_INTERN void -nk_edit_draw_text(struct nk_command_buffer *out, - const struct nk_style_edit *style, float pos_x, float pos_y, - float x_offset, const char *text, int byte_len, float row_height, - const struct nk_user_font *font, struct nk_color background, - struct nk_color foreground, int is_selected) -{ - NK_ASSERT(out); - NK_ASSERT(font); - NK_ASSERT(style); - if (!text || !byte_len || !out || !style) return; + nk_start_popup(ctx, win); + popup->buffer = win->buffer; + nk_push_scissor(&popup->buffer, nk_null_rect); + ctx->current = popup; - {int glyph_len = 0; - nk_rune unicode = 0; - int text_len = 0; - float line_width = 0; - float glyph_width; - const char *line = text; - float line_offset = 0; - int line_count = 0; + nk_panel_begin(ctx, 0, panel_type); + win->buffer = popup->buffer; + popup->layout->parent = win->layout; + popup->layout->offset_x = &popup->scrollbar.x; + popup->layout->offset_y = &popup->scrollbar.y; - struct nk_text txt; - txt.padding = nk_vec2(0,0); - txt.background = background; - txt.text = foreground; + /* set read only mode to all parent panels */ + {struct nk_panel *root; + root = win->layout; + while (root) { + root->flags |= NK_WINDOW_ROM; + root = root->parent; + }} + return is_active; +} +NK_API void +nk_popup_close(struct nk_context *ctx) +{ + struct nk_window *popup; + NK_ASSERT(ctx); + if (!ctx || !ctx->current) return; - glyph_len = nk_utf_decode(text+text_len, &unicode, byte_len-text_len); - if (!glyph_len) return; - while ((text_len < byte_len) && glyph_len) - { - if (unicode == '\n') { - /* new line sepeator so draw previous line */ - struct nk_rect label; - label.y = pos_y + line_offset; - label.h = row_height; - label.w = line_width; - label.x = pos_x; - if (!line_count) - label.x += x_offset; + popup = ctx->current; + NK_ASSERT(popup->parent); + NK_ASSERT(popup->layout->type & NK_PANEL_SET_POPUP); + popup->flags |= NK_WINDOW_HIDDEN; +} +NK_API void +nk_popup_end(struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_window *popup; - if (is_selected) /* selection needs to draw different background color */ - nk_fill_rect(out, label, 0, background); - nk_widget_text(out, label, line, (int)((text + text_len) - line), - &txt, NK_TEXT_CENTERED, font); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - text_len++; - line_count++; - line_width = 0; - line = text + text_len; - line_offset += row_height; - glyph_len = nk_utf_decode(text + text_len, &unicode, (int)(byte_len-text_len)); - continue; - } - if (unicode == '\r') { - text_len++; - glyph_len = nk_utf_decode(text + text_len, &unicode, byte_len-text_len); - continue; + popup = ctx->current; + if (!popup->parent) return; + win = popup->parent; + if (popup->flags & NK_WINDOW_HIDDEN) { + struct nk_panel *root; + root = win->layout; + while (root) { + root->flags |= NK_WINDOW_REMOVE_ROM; + root = root->parent; } - glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len); - line_width += (float)glyph_width; - text_len += glyph_len; - glyph_len = nk_utf_decode(text + text_len, &unicode, byte_len-text_len); - continue; - } - if (line_width > 0) { - /* draw last line */ - struct nk_rect label; - label.y = pos_y + line_offset; - label.h = row_height; - label.w = line_width; - label.x = pos_x; - if (!line_count) - label.x += x_offset; + win->popup.active = 0; + } + nk_push_scissor(&popup->buffer, nk_null_rect); + nk_end(ctx); - if (is_selected) - nk_fill_rect(out, label, 0, background); - nk_widget_text(out, label, line, (int)((text + text_len) - line), - &txt, NK_TEXT_LEFT, font); - }} + win->buffer = popup->buffer; + nk_finish_popup(ctx, win); + ctx->current = win; + nk_push_scissor(&win->buffer, win->layout->clip); } -NK_INTERN nk_flags -nk_do_edit(nk_flags *state, struct nk_command_buffer *out, - struct nk_rect bounds, nk_flags flags, nk_plugin_filter filter, - struct nk_text_edit *edit, const struct nk_style_edit *style, - struct nk_input *in, const struct nk_user_font *font) -{ - struct nk_rect area; - nk_flags ret = 0; - float row_height; - char prev_state = 0; - char is_hovered = 0; - char select_all = 0; - char cursor_follow = 0; - struct nk_rect old_clip; - struct nk_rect clip; - - NK_ASSERT(state); - NK_ASSERT(out); - NK_ASSERT(style); - if (!state || !out || !style) - return ret; - /* visible text area calculation */ - area.x = bounds.x + style->padding.x + style->border; - area.y = bounds.y + style->padding.y + style->border; - area.w = bounds.w - (2.0f * style->padding.x + 2 * style->border); - area.h = bounds.h - (2.0f * style->padding.y + 2 * style->border); - if (flags & NK_EDIT_MULTILINE) - area.w = NK_MAX(0, area.w - style->scrollbar_size.x); - row_height = (flags & NK_EDIT_MULTILINE)? font->height + style->row_padding: area.h; - /* calculate clipping rectangle */ - old_clip = out->clip; - nk_unify(&clip, &old_clip, area.x, area.y, area.x + area.w, area.y + area.h); - /* update edit state */ - prev_state = (char)edit->active; - is_hovered = (char)nk_input_is_mouse_hovering_rect(in, bounds); - if (in && in->mouse.buttons[NK_BUTTON_LEFT].clicked && in->mouse.buttons[NK_BUTTON_LEFT].down) { - edit->active = NK_INBOX(in->mouse.pos.x, in->mouse.pos.y, - bounds.x, bounds.y, bounds.w, bounds.h); - } - /* (de)activate text editor */ - if (!prev_state && edit->active) { - const enum nk_text_edit_type type = (flags & NK_EDIT_MULTILINE) ? - NK_TEXT_EDIT_MULTI_LINE: NK_TEXT_EDIT_SINGLE_LINE; - nk_textedit_clear_state(edit, type, filter); - if (flags & NK_EDIT_ALWAYS_INSERT_MODE) - edit->mode = NK_TEXT_EDIT_MODE_INSERT; - if (flags & NK_EDIT_AUTO_SELECT) - select_all = nk_true; - if (flags & NK_EDIT_GOTO_END_ON_ACTIVATE) { - edit->cursor = edit->string.len; - in = 0; - } - } else if (!edit->active) edit->mode = NK_TEXT_EDIT_MODE_VIEW; - if (flags & NK_EDIT_READ_ONLY) - edit->mode = NK_TEXT_EDIT_MODE_VIEW; +/* ============================================================== + * + * CONTEXTUAL + * + * ===============================================================*/ +NK_API int +nk_contextual_begin(struct nk_context *ctx, nk_flags flags, struct nk_vec2 size, + struct nk_rect trigger_bounds) +{ + struct nk_window *win; + struct nk_window *popup; + struct nk_rect body; - ret = (edit->active) ? NK_EDIT_ACTIVE: NK_EDIT_INACTIVE; - if (prev_state != edit->active) - ret |= (edit->active) ? NK_EDIT_ACTIVATED: NK_EDIT_DEACTIVATED; + NK_STORAGE const struct nk_rect null_rect = {-1,-1,0,0}; + int is_clicked = 0; + int is_open = 0; + int ret = 0; - /* handle user input */ - if (edit->active && in) - { - int shift_mod = in->keyboard.keys[NK_KEY_SHIFT].down; - const float mouse_x = (in->mouse.pos.x - area.x) + edit->scrollbar.x; - const float mouse_y = (in->mouse.pos.y - area.y) + edit->scrollbar.y; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* mouse click handler */ - is_hovered = (char)nk_input_is_mouse_hovering_rect(in, area); - if (select_all) { - nk_textedit_select_all(edit); - } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down && - in->mouse.buttons[NK_BUTTON_LEFT].clicked) { - nk_textedit_click(edit, mouse_x, mouse_y, font, row_height); - } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down && - (in->mouse.delta.x != 0.0f || in->mouse.delta.y != 0.0f)) { - nk_textedit_drag(edit, mouse_x, mouse_y, font, row_height); - cursor_follow = nk_true; - } else if (is_hovered && in->mouse.buttons[NK_BUTTON_RIGHT].clicked && - in->mouse.buttons[NK_BUTTON_RIGHT].down) { - nk_textedit_key(edit, NK_KEY_TEXT_WORD_LEFT, nk_false, font, row_height); - nk_textedit_key(edit, NK_KEY_TEXT_WORD_RIGHT, nk_true, font, row_height); - cursor_follow = nk_true; - } + win = ctx->current; + ++win->popup.con_count; + if (ctx->current != ctx->active) + return 0; - {int i; /* keyboard input */ - int old_mode = edit->mode; - for (i = 0; i < NK_KEY_MAX; ++i) { - if (i == NK_KEY_ENTER || i == NK_KEY_TAB) continue; /* special case */ - if (nk_input_is_key_pressed(in, (enum nk_keys)i)) { - nk_textedit_key(edit, (enum nk_keys)i, shift_mod, font, row_height); - cursor_follow = nk_true; - } - } - if (old_mode != edit->mode) { - in->keyboard.text_len = 0; - }} + /* check if currently active contextual is active */ + popup = win->popup.win; + is_open = (popup && win->popup.type == NK_PANEL_CONTEXTUAL); + is_clicked = nk_input_mouse_clicked(&ctx->input, NK_BUTTON_RIGHT, trigger_bounds); + if (win->popup.active_con && win->popup.con_count != win->popup.active_con) + return 0; + if (!is_open && win->popup.active_con) + win->popup.active_con = 0; + if ((!is_open && !is_clicked)) + return 0; - /* text input */ - edit->filter = filter; - if (in->keyboard.text_len) { - nk_textedit_text(edit, in->keyboard.text, in->keyboard.text_len); - cursor_follow = nk_true; - in->keyboard.text_len = 0; - } + /* calculate contextual position on click */ + win->popup.active_con = win->popup.con_count; + if (is_clicked) { + body.x = ctx->input.mouse.pos.x; + body.y = ctx->input.mouse.pos.y; + } else { + body.x = popup->bounds.x; + body.y = popup->bounds.y; + } + body.w = size.x; + body.h = size.y; - /* enter key handler */ - if (nk_input_is_key_pressed(in, NK_KEY_ENTER)) { - cursor_follow = nk_true; - if (flags & NK_EDIT_CTRL_ENTER_NEWLINE && shift_mod) - nk_textedit_text(edit, "\n", 1); - else if (flags & NK_EDIT_SIG_ENTER) - ret |= NK_EDIT_COMMITED; - else nk_textedit_text(edit, "\n", 1); - } + /* start nonblocking contextual popup */ + ret = nk_nonblock_begin(ctx, flags|NK_WINDOW_NO_SCROLLBAR, body, + null_rect, NK_PANEL_CONTEXTUAL); + if (ret) win->popup.type = NK_PANEL_CONTEXTUAL; + else { + win->popup.active_con = 0; + win->popup.type = NK_PANEL_NONE; + if (win->popup.win) + win->popup.win->flags = 0; + } + return ret; +} +NK_API int +nk_contextual_item_text(struct nk_context *ctx, const char *text, int len, + nk_flags alignment) +{ + struct nk_window *win; + const struct nk_input *in; + const struct nk_style *style; - /* cut & copy handler */ - {int copy= nk_input_is_key_pressed(in, NK_KEY_COPY); - int cut = nk_input_is_key_pressed(in, NK_KEY_CUT); - if ((copy || cut) && (flags & NK_EDIT_CLIPBOARD)) - { - int glyph_len; - nk_rune unicode; - const char *text; - int b = edit->select_start; - int e = edit->select_end; + struct nk_rect bounds; + enum nk_widget_layout_states state; - int begin = NK_MIN(b, e); - int end = NK_MAX(b, e); - text = nk_str_at_const(&edit->string, begin, &unicode, &glyph_len); - if (edit->clip.copy) - edit->clip.copy(edit->clip.userdata, text, end - begin); - if (cut && !(flags & NK_EDIT_READ_ONLY)){ - nk_textedit_cut(edit); - cursor_follow = nk_true; - } - }} + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* paste handler */ - {int paste = nk_input_is_key_pressed(in, NK_KEY_PASTE); - if (paste && (flags & NK_EDIT_CLIPBOARD) && edit->clip.paste) { - edit->clip.paste(edit->clip.userdata, edit); - cursor_follow = nk_true; - }} + win = ctx->current; + style = &ctx->style; + state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); + if (!state) return nk_false; - /* tab handler */ - {int tab = nk_input_is_key_pressed(in, NK_KEY_TAB); - if (tab && (flags & NK_EDIT_ALLOW_TAB)) { - nk_textedit_text(edit, " ", 4); - cursor_follow = nk_true; - }} + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text(&ctx->last_widget_state, &win->buffer, bounds, + text, len, alignment, NK_BUTTON_DEFAULT, &style->contextual_button, in, style->font)) { + nk_contextual_close(ctx); + return nk_true; } + return nk_false; +} +NK_API int +nk_contextual_item_label(struct nk_context *ctx, const char *label, nk_flags align) +{ + return nk_contextual_item_text(ctx, label, nk_strlen(label), align); +} +NK_API int +nk_contextual_item_image_text(struct nk_context *ctx, struct nk_image img, + const char *text, int len, nk_flags align) +{ + struct nk_window *win; + const struct nk_input *in; + const struct nk_style *style; - /* set widget state */ - if (edit->active) - *state = NK_WIDGET_STATE_ACTIVE; - else nk_widget_state_reset(state); + struct nk_rect bounds; + enum nk_widget_layout_states state; + + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; + + win = ctx->current; + style = &ctx->style; + state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); + if (!state) return nk_false; - if (is_hovered) - *state |= NK_WIDGET_STATE_HOVERED; + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, bounds, + img, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)){ + nk_contextual_close(ctx); + return nk_true; + } + return nk_false; +} +NK_API int +nk_contextual_item_image_label(struct nk_context *ctx, struct nk_image img, + const char *label, nk_flags align) +{ + return nk_contextual_item_image_text(ctx, img, label, nk_strlen(label), align); +} +NK_API int +nk_contextual_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type symbol, + const char *text, int len, nk_flags align) +{ + struct nk_window *win; + const struct nk_input *in; + const struct nk_style *style; - /* DRAW EDIT */ - {const char *text = nk_str_get_const(&edit->string); - int len = nk_str_len_char(&edit->string); + struct nk_rect bounds; + enum nk_widget_layout_states state; - {/* select background colors/images */ - const struct nk_style_item *background; - if (*state & NK_WIDGET_STATE_ACTIVED) - background = &style->active; - else if (*state & NK_WIDGET_STATE_HOVER) - background = &style->hover; - else background = &style->normal; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* draw background frame */ - if (background->type == NK_STYLE_ITEM_COLOR) { - nk_stroke_rect(out, bounds, style->rounding, style->border, style->border_color); - nk_fill_rect(out, bounds, style->rounding, background->data.color); - } else nk_draw_image(out, bounds, &background->data.image, nk_white);} + win = ctx->current; + style = &ctx->style; + state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); + if (!state) return nk_false; - area.w = NK_MAX(0, area.w - style->cursor_size); - if (edit->active) - { - int total_lines = 1; - struct nk_vec2 text_size = nk_vec2(0,0); + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, bounds, + symbol, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)) { + nk_contextual_close(ctx); + return nk_true; + } + return nk_false; +} +NK_API int +nk_contextual_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type symbol, + const char *text, nk_flags align) +{ + return nk_contextual_item_symbol_text(ctx, symbol, text, nk_strlen(text), align); +} +NK_API void +nk_contextual_close(struct nk_context *ctx) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return; + nk_popup_close(ctx); +} +NK_API void +nk_contextual_end(struct nk_context *ctx) +{ + struct nk_window *popup; + struct nk_panel *panel; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return; - /* text pointer positions */ - const char *cursor_ptr = 0; - const char *select_begin_ptr = 0; - const char *select_end_ptr = 0; + popup = ctx->current; + panel = popup->layout; + NK_ASSERT(popup->parent); + NK_ASSERT(panel->type & NK_PANEL_SET_POPUP); + if (panel->flags & NK_WINDOW_DYNAMIC) { + /* Close behavior + This is a bit of a hack solution since we do not know before we end our popup + how big it will be. We therefore do not directly know when a + click outside the non-blocking popup must close it at that direct frame. + Instead it will be closed in the next frame.*/ + struct nk_rect body = {0,0,0,0}; + if (panel->at_y < (panel->bounds.y + panel->bounds.h)) { + struct nk_vec2 padding = nk_panel_get_padding(&ctx->style, panel->type); + body = panel->bounds; + body.y = (panel->at_y + panel->footer_height + panel->border + padding.y + panel->row.height); + body.h = (panel->bounds.y + panel->bounds.h) - body.y; + } + {int pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT); + int in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body); + if (pressed && in_body) + popup->flags |= NK_WINDOW_HIDDEN; + } + } + if (popup->flags & NK_WINDOW_HIDDEN) + popup->seq = 0; + nk_popup_end(ctx); + return; +} - /* 2D pixel positions */ - struct nk_vec2 cursor_pos = nk_vec2(0,0); - struct nk_vec2 selection_offset_start = nk_vec2(0,0); - struct nk_vec2 selection_offset_end = nk_vec2(0,0); - int selection_begin = NK_MIN(edit->select_start, edit->select_end); - int selection_end = NK_MAX(edit->select_start, edit->select_end); - /* calculate total line count + total space + cursor/selection position */ - float line_width = 0.0f; - if (text && len) - { - /* utf8 encoding */ - float glyph_width; - int glyph_len = 0; - nk_rune unicode = 0; - int text_len = 0; - int glyphs = 0; - int row_begin = 0; - glyph_len = nk_utf_decode(text, &unicode, len); - glyph_width = font->width(font->userdata, font->height, text, glyph_len); - line_width = 0; - /* iterate all lines */ - while ((text_len < len) && glyph_len) - { - /* set cursor 2D position and line */ - if (!cursor_ptr && glyphs == edit->cursor) - { - int glyph_offset; - struct nk_vec2 out_offset; - struct nk_vec2 row_size; - const char *remaining; +/* =============================================================== + * + * MENU + * + * ===============================================================*/ +NK_API void +nk_menubar_begin(struct nk_context *ctx) +{ + struct nk_panel *layout; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* calculate 2d position */ - cursor_pos.y = (float)(total_lines-1) * row_height; - row_size = nk_text_calculate_text_bounds(font, text+row_begin, - text_len-row_begin, row_height, &remaining, - &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); - cursor_pos.x = row_size.x; - cursor_ptr = text + text_len; - } + layout = ctx->current->layout; + NK_ASSERT(layout->at_y == layout->bounds.y); + /* if this assert triggers you allocated space between nk_begin and nk_menubar_begin. + If you want a menubar the first nuklear function after `nk_begin` has to be a + `nk_menubar_begin` call. Inside the menubar you then have to allocate space for + widgets (also supports multiple rows). + Example: + if (nk_begin(...)) { + nk_menubar_begin(...); + nk_layout_xxxx(...); + nk_button(...); + nk_layout_xxxx(...); + nk_button(...); + nk_menubar_end(...); + } + nk_end(...); + */ + if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED) + return; - /* set start selection 2D position and line */ - if (!select_begin_ptr && edit->select_start != edit->select_end && - glyphs == selection_begin) - { - int glyph_offset; - struct nk_vec2 out_offset; - struct nk_vec2 row_size; - const char *remaining; + layout->menu.x = layout->at_x; + layout->menu.y = layout->at_y + layout->row.height; + layout->menu.w = layout->bounds.w; + layout->menu.offset.x = *layout->offset_x; + layout->menu.offset.y = *layout->offset_y; + *layout->offset_y = 0; +} +NK_API void +nk_menubar_end(struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_panel *layout; + struct nk_command_buffer *out; - /* calculate 2d position */ - selection_offset_start.y = (float)(NK_MAX(total_lines-1,0)) * row_height; - row_size = nk_text_calculate_text_bounds(font, text+row_begin, - text_len-row_begin, row_height, &remaining, - &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); - selection_offset_start.x = row_size.x; - select_begin_ptr = text + text_len; - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* set end selection 2D position and line */ - if (!select_end_ptr && edit->select_start != edit->select_end && - glyphs == selection_end) - { - int glyph_offset; - struct nk_vec2 out_offset; - struct nk_vec2 row_size; - const char *remaining; + win = ctx->current; + out = &win->buffer; + layout = win->layout; + if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED) + return; - /* calculate 2d position */ - selection_offset_end.y = (float)(total_lines-1) * row_height; - row_size = nk_text_calculate_text_bounds(font, text+row_begin, - text_len-row_begin, row_height, &remaining, - &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); - selection_offset_end.x = row_size.x; - select_end_ptr = text + text_len; - } - if (unicode == '\n') { - text_size.x = NK_MAX(text_size.x, line_width); - total_lines++; - line_width = 0; - text_len++; - glyphs++; - row_begin = text_len; - glyph_len = nk_utf_decode(text + text_len, &unicode, len-text_len); - glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len); - continue; - } + layout->menu.h = layout->at_y - layout->menu.y; + layout->bounds.y += layout->menu.h + ctx->style.window.spacing.y + layout->row.height; + layout->bounds.h -= layout->menu.h + ctx->style.window.spacing.y + layout->row.height; - glyphs++; - text_len += glyph_len; - line_width += (float)glyph_width; + *layout->offset_x = layout->menu.offset.x; + *layout->offset_y = layout->menu.offset.y; + layout->at_y = layout->bounds.y - layout->row.height; - glyph_len = nk_utf_decode(text + text_len, &unicode, len-text_len); - glyph_width = font->width(font->userdata, font->height, - text+text_len, glyph_len); - continue; - } - text_size.y = (float)total_lines * row_height; + layout->clip.y = layout->bounds.y; + layout->clip.h = layout->bounds.h; + nk_push_scissor(out, layout->clip); +} +NK_INTERN int +nk_menu_begin(struct nk_context *ctx, struct nk_window *win, + const char *id, int is_clicked, struct nk_rect header, struct nk_vec2 size) +{ + int is_open = 0; + int is_active = 0; + struct nk_rect body; + struct nk_window *popup; + nk_hash hash = nk_murmur_hash(id, (int)nk_strlen(id), NK_PANEL_MENU); - /* handle case when cursor is at end of text buffer */ - if (!cursor_ptr && edit->cursor == edit->string.len) { - cursor_pos.x = line_width; - cursor_pos.y = text_size.y - row_height; - } - } - { - /* scrollbar */ - if (cursor_follow) - { - /* update scrollbar to follow cursor */ - if (!(flags & NK_EDIT_NO_HORIZONTAL_SCROLL)) { - /* horizontal scroll */ - const float scroll_increment = area.w * 0.25f; - if (cursor_pos.x < edit->scrollbar.x) - edit->scrollbar.x = (float)(int)NK_MAX(0.0f, cursor_pos.x - scroll_increment); - if (cursor_pos.x >= edit->scrollbar.x + area.w) - edit->scrollbar.x = (float)(int)NK_MAX(0.0f, cursor_pos.x); - } else edit->scrollbar.x = 0; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - if (flags & NK_EDIT_MULTILINE) { - /* vertical scroll */ - if (cursor_pos.y < edit->scrollbar.y) - edit->scrollbar.y = NK_MAX(0.0f, cursor_pos.y - row_height); - if (cursor_pos.y >= edit->scrollbar.y + area.h) - edit->scrollbar.y = edit->scrollbar.y + row_height; - } else edit->scrollbar.y = 0; - } + body.x = header.x; + body.w = size.x; + body.y = header.y + header.h; + body.h = size.y; - /* scrollbar widget */ - if (flags & NK_EDIT_MULTILINE) - { - nk_flags ws; - struct nk_rect scroll; - float scroll_target; - float scroll_offset; - float scroll_step; - float scroll_inc; + popup = win->popup.win; + is_open = popup ? nk_true : nk_false; + is_active = (popup && (win->popup.name == hash) && win->popup.type == NK_PANEL_MENU); + if ((is_clicked && is_open && !is_active) || (is_open && !is_active) || + (!is_open && !is_active && !is_clicked)) return 0; + if (!nk_nonblock_begin(ctx, NK_WINDOW_NO_SCROLLBAR, body, header, NK_PANEL_MENU)) + return 0; - scroll = area; - scroll.x = (bounds.x + bounds.w - style->border) - style->scrollbar_size.x; - scroll.w = style->scrollbar_size.x; + win->popup.type = NK_PANEL_MENU; + win->popup.name = hash; + return 1; +} +NK_API int +nk_menu_begin_text(struct nk_context *ctx, const char *title, int len, + nk_flags align, struct nk_vec2 size) +{ + struct nk_window *win; + const struct nk_input *in; + struct nk_rect header; + int is_clicked = nk_false; + nk_flags state; - scroll_offset = edit->scrollbar.y; - scroll_step = scroll.h * 0.10f; - scroll_inc = scroll.h * 0.01f; - scroll_target = text_size.y; - edit->scrollbar.y = nk_do_scrollbarv(&ws, out, scroll, 0, - scroll_offset, scroll_target, scroll_step, scroll_inc, - &style->scrollbar, in, font); - } - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* draw text */ - {struct nk_color background_color; - struct nk_color text_color; - struct nk_color sel_background_color; - struct nk_color sel_text_color; - struct nk_color cursor_color; - struct nk_color cursor_text_color; - const struct nk_style_item *background; - nk_push_scissor(out, clip); + win = ctx->current; + state = nk_widget(&header, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || win->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text(&ctx->last_widget_state, &win->buffer, header, + title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font)) + is_clicked = nk_true; + return nk_menu_begin(ctx, win, title, is_clicked, header, size); +} +NK_API int nk_menu_begin_label(struct nk_context *ctx, + const char *text, nk_flags align, struct nk_vec2 size) +{ + return nk_menu_begin_text(ctx, text, nk_strlen(text), align, size); +} +NK_API int +nk_menu_begin_image(struct nk_context *ctx, const char *id, struct nk_image img, + struct nk_vec2 size) +{ + struct nk_window *win; + struct nk_rect header; + const struct nk_input *in; + int is_clicked = nk_false; + nk_flags state; - /* select correct colors to draw */ - if (*state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - text_color = style->text_active; - sel_text_color = style->selected_text_hover; - sel_background_color = style->selected_hover; - cursor_color = style->cursor_hover; - cursor_text_color = style->cursor_text_hover; - } else if (*state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - text_color = style->text_hover; - sel_text_color = style->selected_text_hover; - sel_background_color = style->selected_hover; - cursor_text_color = style->cursor_text_hover; - cursor_color = style->cursor_hover; - } else { - background = &style->normal; - text_color = style->text_normal; - sel_text_color = style->selected_text_normal; - sel_background_color = style->selected_normal; - cursor_color = style->cursor_normal; - cursor_text_color = style->cursor_text_normal; - } - if (background->type == NK_STYLE_ITEM_IMAGE) - background_color = nk_rgba(0,0,0,0); - else background_color = background->data.color; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; + win = ctx->current; + state = nk_widget(&header, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_image(&ctx->last_widget_state, &win->buffer, header, + img, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in)) + is_clicked = nk_true; + return nk_menu_begin(ctx, win, id, is_clicked, header, size); +} +NK_API int +nk_menu_begin_symbol(struct nk_context *ctx, const char *id, + enum nk_symbol_type sym, struct nk_vec2 size) +{ + struct nk_window *win; + const struct nk_input *in; + struct nk_rect header; + int is_clicked = nk_false; + nk_flags state; - if (edit->select_start == edit->select_end) { - /* no selection so just draw the complete text */ - const char *begin = nk_str_get_const(&edit->string); - int l = nk_str_len_char(&edit->string); - nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, - area.y - edit->scrollbar.y, 0, begin, l, row_height, font, - background_color, text_color, nk_false); - } else { - /* edit has selection so draw 1-3 text chunks */ - if (edit->select_start != edit->select_end && selection_begin > 0){ - /* draw unselected text before selection */ - const char *begin = nk_str_get_const(&edit->string); - NK_ASSERT(select_begin_ptr); - nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, - area.y - edit->scrollbar.y, 0, begin, (int)(select_begin_ptr - begin), - row_height, font, background_color, text_color, nk_false); - } - if (edit->select_start != edit->select_end) { - /* draw selected text */ - NK_ASSERT(select_begin_ptr); - if (!select_end_ptr) { - const char *begin = nk_str_get_const(&edit->string); - select_end_ptr = begin + nk_str_len_char(&edit->string); - } - nk_edit_draw_text(out, style, - area.x - edit->scrollbar.x, - area.y + selection_offset_start.y - edit->scrollbar.y, - selection_offset_start.x, - select_begin_ptr, (int)(select_end_ptr - select_begin_ptr), - row_height, font, sel_background_color, sel_text_color, nk_true); - } - if ((edit->select_start != edit->select_end && - selection_end < edit->string.len)) - { - /* draw unselected text after selected text */ - const char *begin = select_end_ptr; - const char *end = nk_str_get_const(&edit->string) + - nk_str_len_char(&edit->string); - NK_ASSERT(select_end_ptr); - nk_edit_draw_text(out, style, - area.x - edit->scrollbar.x, - area.y + selection_offset_end.y - edit->scrollbar.y, - selection_offset_end.x, - begin, (int)(end - begin), row_height, font, - background_color, text_color, nk_true); - } - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* cursor */ - if (edit->select_start == edit->select_end) - { - if (edit->cursor >= nk_str_len(&edit->string) || - (cursor_ptr && *cursor_ptr == '\n')) { - /* draw cursor at end of line */ - struct nk_rect cursor; - cursor.w = style->cursor_size; - cursor.h = font->height; - cursor.x = area.x + cursor_pos.x - edit->scrollbar.x; - cursor.y = area.y + cursor_pos.y + row_height/2.0f - cursor.h/2.0f; - cursor.y -= edit->scrollbar.y; - nk_fill_rect(out, cursor, 0, cursor_color); - } else { - /* draw cursor inside text */ - int glyph_len; - struct nk_rect label; - struct nk_text txt; + win = ctx->current; + state = nk_widget(&header, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_symbol(&ctx->last_widget_state, &win->buffer, header, + sym, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font)) + is_clicked = nk_true; + return nk_menu_begin(ctx, win, id, is_clicked, header, size); +} +NK_API int +nk_menu_begin_image_text(struct nk_context *ctx, const char *title, int len, + nk_flags align, struct nk_image img, struct nk_vec2 size) +{ + struct nk_window *win; + struct nk_rect header; + const struct nk_input *in; + int is_clicked = nk_false; + nk_flags state; - nk_rune unicode; - NK_ASSERT(cursor_ptr); - glyph_len = nk_utf_decode(cursor_ptr, &unicode, 4); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - label.x = area.x + cursor_pos.x - edit->scrollbar.x; - label.y = area.y + cursor_pos.y - edit->scrollbar.y; - label.w = font->width(font->userdata, font->height, cursor_ptr, glyph_len); - label.h = row_height; + win = ctx->current; + state = nk_widget(&header, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, + header, img, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, + ctx->style.font, in)) + is_clicked = nk_true; + return nk_menu_begin(ctx, win, title, is_clicked, header, size); +} +NK_API int +nk_menu_begin_image_label(struct nk_context *ctx, + const char *title, nk_flags align, struct nk_image img, struct nk_vec2 size) +{ + return nk_menu_begin_image_text(ctx, title, nk_strlen(title), align, img, size); +} +NK_API int +nk_menu_begin_symbol_text(struct nk_context *ctx, const char *title, int len, + nk_flags align, enum nk_symbol_type sym, struct nk_vec2 size) +{ + struct nk_window *win; + struct nk_rect header; + const struct nk_input *in; + int is_clicked = nk_false; + nk_flags state; - txt.padding = nk_vec2(0,0); - txt.background = cursor_color;; - txt.text = cursor_text_color; - nk_fill_rect(out, label, 0, cursor_color); - nk_widget_text(out, label, cursor_ptr, glyph_len, &txt, NK_TEXT_LEFT, font); - } - }} - } else { - /* not active so just draw text */ - int l = nk_str_len_char(&edit->string); - const char *begin = nk_str_get_const(&edit->string); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - const struct nk_style_item *background; - struct nk_color background_color; - struct nk_color text_color; - nk_push_scissor(out, clip); - if (*state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - text_color = style->text_active; - } else if (*state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - text_color = style->text_hover; - } else { - background = &style->normal; - text_color = style->text_normal; - } - if (background->type == NK_STYLE_ITEM_IMAGE) - background_color = nk_rgba(0,0,0,0); - else background_color = background->data.color; - nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, - area.y - edit->scrollbar.y, 0, begin, l, row_height, font, - background_color, text_color, nk_false); - } - nk_push_scissor(out, old_clip);} - return ret; + win = ctx->current; + state = nk_widget(&header, ctx); + if (!state) return 0; + + in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, + header, sym, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, + ctx->style.font, in)) is_clicked = nk_true; + return nk_menu_begin(ctx, win, title, is_clicked, header, size); +} +NK_API int +nk_menu_begin_symbol_label(struct nk_context *ctx, + const char *title, nk_flags align, enum nk_symbol_type sym, struct nk_vec2 size ) +{ + return nk_menu_begin_symbol_text(ctx, title, nk_strlen(title), align,sym,size); +} +NK_API int +nk_menu_item_text(struct nk_context *ctx, const char *title, int len, nk_flags align) +{ + return nk_contextual_item_text(ctx, title, len, align); +} +NK_API int +nk_menu_item_label(struct nk_context *ctx, const char *label, nk_flags align) +{ + return nk_contextual_item_label(ctx, label, align); +} +NK_API int +nk_menu_item_image_label(struct nk_context *ctx, struct nk_image img, + const char *label, nk_flags align) +{ + return nk_contextual_item_image_label(ctx, img, label, align); +} +NK_API int +nk_menu_item_image_text(struct nk_context *ctx, struct nk_image img, + const char *text, int len, nk_flags align) +{ + return nk_contextual_item_image_text(ctx, img, text, len, align); +} +NK_API int nk_menu_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, + const char *text, int len, nk_flags align) +{ + return nk_contextual_item_symbol_text(ctx, sym, text, len, align); +} +NK_API int nk_menu_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, + const char *label, nk_flags align) +{ + return nk_contextual_item_symbol_label(ctx, sym, label, align); +} +NK_API void nk_menu_close(struct nk_context *ctx) +{ + nk_contextual_close(ctx); +} +NK_API void +nk_menu_end(struct nk_context *ctx) +{ + nk_contextual_end(ctx); } + + + + /* =============================================================== * - * PROPERTY + * LAYOUT * * ===============================================================*/ -enum nk_property_status { - NK_PROPERTY_DEFAULT, - NK_PROPERTY_EDIT, - NK_PROPERTY_DRAG -}; -enum nk_property_filter { - NK_FILTER_INT, - NK_FILTER_FLOAT -}; -enum nk_property_kind { - NK_PROPERTY_INT, - NK_PROPERTY_FLOAT, - NK_PROPERTY_DOUBLE -}; -union nk_property { - int i; - float f; - double d; -}; -struct nk_property_variant { - enum nk_property_kind kind; - union nk_property value; - union nk_property min_value; - union nk_property max_value; - union nk_property step; -}; +NK_API void +nk_layout_set_min_row_height(struct nk_context *ctx, float height) +{ + struct nk_window *win; + struct nk_panel *layout; -NK_INTERN void -nk_drag_behavior(nk_flags *state, const struct nk_input *in, - struct nk_rect drag, struct nk_property_variant *variant, - float inc_per_pixel) + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; + + win = ctx->current; + layout = win->layout; + layout->row.min_height = height; +} +NK_API void +nk_layout_reset_min_row_height(struct nk_context *ctx) { - int left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down; - int left_mouse_click_in_cursor = in && - nk_input_has_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, drag, nk_true); + struct nk_window *win; + struct nk_panel *layout; - nk_widget_state_reset(state); - if (nk_input_is_mouse_hovering_rect(in, drag)) - *state = NK_WIDGET_STATE_HOVERED; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; + + win = ctx->current; + layout = win->layout; + layout->row.min_height = ctx->style.font->height; + layout->row.min_height += ctx->style.text.padding.y*2; + layout->row.min_height += ctx->style.window.min_row_height_padding*2; +} +NK_LIB float +nk_layout_row_calculate_usable_space(const struct nk_style *style, enum nk_panel_type type, + float total_space, int columns) +{ + float panel_padding; + float panel_spacing; + float panel_space; + + struct nk_vec2 spacing; + struct nk_vec2 padding; + + spacing = style->window.spacing; + padding = nk_panel_get_padding(style, type); + + /* calculate the usable panel space */ + panel_padding = 2 * padding.x; + panel_spacing = (float)NK_MAX(columns - 1, 0) * spacing.x; + panel_space = total_space - panel_padding - panel_spacing; + return panel_space; +} +NK_LIB void +nk_panel_layout(const struct nk_context *ctx, struct nk_window *win, + float height, int cols) +{ + struct nk_panel *layout; + const struct nk_style *style; + struct nk_command_buffer *out; + + struct nk_vec2 item_spacing; + struct nk_color color; + + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; + + /* prefetch some configuration data */ + layout = win->layout; + style = &ctx->style; + out = &win->buffer; + color = style->window.background; + item_spacing = style->window.spacing; + + /* if one of these triggers you forgot to add an `if` condition around either + a window, group, popup, combobox or contextual menu `begin` and `end` block. + Example: + if (nk_begin(...) {...} nk_end(...); or + if (nk_group_begin(...) { nk_group_end(...);} */ + NK_ASSERT(!(layout->flags & NK_WINDOW_MINIMIZED)); + NK_ASSERT(!(layout->flags & NK_WINDOW_HIDDEN)); + NK_ASSERT(!(layout->flags & NK_WINDOW_CLOSED)); + + /* update the current row and set the current row layout */ + layout->row.index = 0; + layout->at_y += layout->row.height; + layout->row.columns = cols; + if (height == 0.0f) + layout->row.height = NK_MAX(height, layout->row.min_height) + item_spacing.y; + else layout->row.height = height + item_spacing.y; - if (left_mouse_down && left_mouse_click_in_cursor) { - float delta, pixels; - pixels = in->mouse.delta.x; - delta = pixels * inc_per_pixel; - switch (variant->kind) { - default: break; - case NK_PROPERTY_INT: - variant->value.i = variant->value.i + (int)delta; - variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i, variant->max_value.i); - break; - case NK_PROPERTY_FLOAT: - variant->value.f = variant->value.f + (float)delta; - variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f, variant->max_value.f); - break; - case NK_PROPERTY_DOUBLE: - variant->value.d = variant->value.d + (double)delta; - variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d, variant->max_value.d); - break; - } - *state = NK_WIDGET_STATE_ACTIVE; + layout->row.item_offset = 0; + if (layout->flags & NK_WINDOW_DYNAMIC) { + /* draw background for dynamic panels */ + struct nk_rect background; + background.x = win->bounds.x; + background.w = win->bounds.w; + background.y = layout->at_y - 1.0f; + background.h = layout->row.height + 1.0f; + nk_fill_rect(out, background, 0, color); } - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, drag)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, drag)) - *state |= NK_WIDGET_STATE_LEFT; } +NK_LIB void +nk_row_layout(struct nk_context *ctx, enum nk_layout_format fmt, + float height, int cols, int width) +{ + /* update the current row and set the current row layout */ + struct nk_window *win; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; -NK_INTERN void -nk_property_behavior(nk_flags *ws, const struct nk_input *in, - struct nk_rect property, struct nk_rect label, struct nk_rect edit, - struct nk_rect empty, int *state, struct nk_property_variant *variant, - float inc_per_pixel) + win = ctx->current; + nk_panel_layout(ctx, win, height, cols); + if (fmt == NK_DYNAMIC) + win->layout->row.type = NK_LAYOUT_DYNAMIC_FIXED; + else win->layout->row.type = NK_LAYOUT_STATIC_FIXED; + + win->layout->row.ratio = 0; + win->layout->row.filled = 0; + win->layout->row.item_offset = 0; + win->layout->row.item_width = (float)width; +} +NK_API float +nk_layout_ratio_from_pixel(struct nk_context *ctx, float pixel_width) { - if (in && *state == NK_PROPERTY_DEFAULT) { - if (nk_button_behavior(ws, edit, in, NK_BUTTON_DEFAULT)) - *state = NK_PROPERTY_EDIT; - else if (nk_input_is_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, label, nk_true)) - *state = NK_PROPERTY_DRAG; - else if (nk_input_is_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, empty, nk_true)) - *state = NK_PROPERTY_DRAG; - } - if (*state == NK_PROPERTY_DRAG) { - nk_drag_behavior(ws, in, property, variant, inc_per_pixel); - if (!(*ws & NK_WIDGET_STATE_ACTIVED)) *state = NK_PROPERTY_DEFAULT; - } + struct nk_window *win; + NK_ASSERT(ctx); + NK_ASSERT(pixel_width); + if (!ctx || !ctx->current || !ctx->current->layout) return 0; + win = ctx->current; + return NK_CLAMP(0.0f, pixel_width/win->bounds.x, 1.0f); } - -NK_INTERN void -nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *style, - const struct nk_rect *bounds, const struct nk_rect *label, nk_flags state, - const char *name, int len, const struct nk_user_font *font) +NK_API void +nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols) { - struct nk_text text; - const struct nk_style_item *background; + nk_row_layout(ctx, NK_DYNAMIC, height, cols, 0); +} +NK_API void +nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols) +{ + nk_row_layout(ctx, NK_STATIC, height, cols, item_width); +} +NK_API void +nk_layout_row_begin(struct nk_context *ctx, enum nk_layout_format fmt, + float row_height, int cols) +{ + struct nk_window *win; + struct nk_panel *layout; - /* select correct background and text color */ - if (state & NK_WIDGET_STATE_ACTIVED) { - background = &style->active; - text.text = style->label_active; - } else if (state & NK_WIDGET_STATE_HOVER) { - background = &style->hover; - text.text = style->label_hover; - } else { - background = &style->normal; - text.text = style->label_normal; - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* draw background */ - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(out, *bounds, &background->data.image, nk_white); - text.background = nk_rgba(0,0,0,0); - } else { - text.background = background->data.color; - nk_fill_rect(out, *bounds, style->rounding, background->data.color); - nk_stroke_rect(out, *bounds, style->rounding, style->border, background->data.color); - } + win = ctx->current; + layout = win->layout; + nk_panel_layout(ctx, win, row_height, cols); + if (fmt == NK_DYNAMIC) + layout->row.type = NK_LAYOUT_DYNAMIC_ROW; + else layout->row.type = NK_LAYOUT_STATIC_ROW; - /* draw label */ - text.padding = nk_vec2(0,0); - nk_widget_text(out, *label, name, len, &text, NK_TEXT_CENTERED, font); + layout->row.ratio = 0; + layout->row.filled = 0; + layout->row.item_width = 0; + layout->row.item_offset = 0; + layout->row.columns = cols; } - -NK_INTERN void -nk_do_property(nk_flags *ws, - struct nk_command_buffer *out, struct nk_rect property, - const char *name, struct nk_property_variant *variant, - float inc_per_pixel, char *buffer, int *len, - int *state, int *cursor, int *select_begin, int *select_end, - const struct nk_style_property *style, - enum nk_property_filter filter, struct nk_input *in, - const struct nk_user_font *font, struct nk_text_edit *text_edit, - enum nk_button_behavior behavior) +NK_API void +nk_layout_row_push(struct nk_context *ctx, float ratio_or_width) { - const nk_plugin_filter filters[] = { - nk_filter_decimal, - nk_filter_float - }; - int active, old; - int num_len, name_len; - char string[NK_MAX_NUMBER_BUFFER]; - float size; + struct nk_window *win; + struct nk_panel *layout; - char *dst = 0; - int *length; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - struct nk_rect left; - struct nk_rect right; - struct nk_rect label; - struct nk_rect edit; - struct nk_rect empty; + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_STATIC_ROW || layout->row.type == NK_LAYOUT_DYNAMIC_ROW); + if (layout->row.type != NK_LAYOUT_STATIC_ROW && layout->row.type != NK_LAYOUT_DYNAMIC_ROW) + return; - /* left decrement button */ - left.h = font->height/2; - left.w = left.h; - left.x = property.x + style->border + style->padding.x; - left.y = property.y + style->border + property.h/2.0f - left.h/2; + if (layout->row.type == NK_LAYOUT_DYNAMIC_ROW) { + float ratio = ratio_or_width; + if ((ratio + layout->row.filled) > 1.0f) return; + if (ratio > 0.0f) + layout->row.item_width = NK_SATURATE(ratio); + else layout->row.item_width = 1.0f - layout->row.filled; + } else layout->row.item_width = ratio_or_width; +} +NK_API void +nk_layout_row_end(struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_panel *layout; - /* text label */ - name_len = nk_strlen(name); - size = font->width(font->userdata, font->height, name, name_len); - label.x = left.x + left.w + style->padding.x; - label.w = (float)size + 2 * style->padding.x; - label.y = property.y + style->border + style->padding.y; - label.h = property.h - (2 * style->border + 2 * style->padding.y); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* right increment button */ - right.y = left.y; - right.w = left.w; - right.h = left.h; - right.x = property.x + property.w - (right.w + style->padding.x); + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_STATIC_ROW || layout->row.type == NK_LAYOUT_DYNAMIC_ROW); + if (layout->row.type != NK_LAYOUT_STATIC_ROW && layout->row.type != NK_LAYOUT_DYNAMIC_ROW) + return; + layout->row.item_width = 0; + layout->row.item_offset = 0; +} +NK_API void +nk_layout_row(struct nk_context *ctx, enum nk_layout_format fmt, + float height, int cols, const float *ratio) +{ + int i; + int n_undef = 0; + struct nk_window *win; + struct nk_panel *layout; - /* edit */ - if (*state == NK_PROPERTY_EDIT) { - size = font->width(font->userdata, font->height, buffer, *len); - size += style->edit.cursor_size; - length = len; - dst = buffer; - } else { - switch (variant->kind) { - default: break; - case NK_PROPERTY_INT: - nk_itoa(string, variant->value.i); - num_len = nk_strlen(string); - break; - case NK_PROPERTY_FLOAT: - nk_dtoa(string, (double)variant->value.f); - num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION); - break; - case NK_PROPERTY_DOUBLE: - nk_dtoa(string, variant->value.d); - num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION); - break; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; + + win = ctx->current; + layout = win->layout; + nk_panel_layout(ctx, win, height, cols); + if (fmt == NK_DYNAMIC) { + /* calculate width of undefined widget ratios */ + float r = 0; + layout->row.ratio = ratio; + for (i = 0; i < cols; ++i) { + if (ratio[i] < 0.0f) + n_undef++; + else r += ratio[i]; } - size = font->width(font->userdata, font->height, string, num_len); - dst = string; - length = &num_len; + r = NK_SATURATE(1.0f - r); + layout->row.type = NK_LAYOUT_DYNAMIC; + layout->row.item_width = (r > 0 && n_undef > 0) ? (r / (float)n_undef):0; + } else { + layout->row.ratio = ratio; + layout->row.type = NK_LAYOUT_STATIC; + layout->row.item_width = 0; + layout->row.item_offset = 0; } + layout->row.item_offset = 0; + layout->row.filled = 0; +} +NK_API void +nk_layout_row_template_begin(struct nk_context *ctx, float height) +{ + struct nk_window *win; + struct nk_panel *layout; - edit.w = (float)size + 2 * style->padding.x; - edit.w = NK_MIN(edit.w, right.x - (label.x + label.w)); - edit.x = right.x - (edit.w + style->padding.x); - edit.y = property.y + style->border; - edit.h = property.h - (2 * style->border); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* empty left space activator */ - empty.w = edit.x - (label.x + label.w); - empty.x = label.x + label.w; - empty.y = property.y; - empty.h = property.h; + win = ctx->current; + layout = win->layout; + nk_panel_layout(ctx, win, height, 1); + layout->row.type = NK_LAYOUT_TEMPLATE; + layout->row.columns = 0; + layout->row.ratio = 0; + layout->row.item_width = 0; + layout->row.item_height = 0; + layout->row.item_offset = 0; + layout->row.filled = 0; + layout->row.item.x = 0; + layout->row.item.y = 0; + layout->row.item.w = 0; + layout->row.item.h = 0; +} +NK_API void +nk_layout_row_template_push_dynamic(struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_panel *layout; - /* update property */ - old = (*state == NK_PROPERTY_EDIT); - nk_property_behavior(ws, in, property, label, edit, empty, state, variant, inc_per_pixel); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* draw property */ - if (style->draw_begin) style->draw_begin(out, style->userdata); - nk_draw_property(out, style, &property, &label, *ws, name, name_len, font); - if (style->draw_end) style->draw_end(out, style->userdata); + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); + NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); + if (layout->row.type != NK_LAYOUT_TEMPLATE) return; + if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; + layout->row.templates[layout->row.columns++] = -1.0f; +} +NK_API void +nk_layout_row_template_push_variable(struct nk_context *ctx, float min_width) +{ + struct nk_window *win; + struct nk_panel *layout; - /* execute right button */ - if (nk_do_button_symbol(ws, out, left, style->sym_left, behavior, &style->dec_button, in, font)) { - switch (variant->kind) { - default: break; - case NK_PROPERTY_INT: - variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i - variant->step.i, variant->max_value.i); break; - case NK_PROPERTY_FLOAT: - variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f - variant->step.f, variant->max_value.f); break; - case NK_PROPERTY_DOUBLE: - variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d - variant->step.d, variant->max_value.d); break; - } - } - /* execute left button */ - if (nk_do_button_symbol(ws, out, right, style->sym_right, behavior, &style->inc_button, in, font)) { - switch (variant->kind) { - default: break; - case NK_PROPERTY_INT: - variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i + variant->step.i, variant->max_value.i); break; - case NK_PROPERTY_FLOAT: - variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f + variant->step.f, variant->max_value.f); break; - case NK_PROPERTY_DOUBLE: - variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d + variant->step.d, variant->max_value.d); break; - } - } - if (old != NK_PROPERTY_EDIT && (*state == NK_PROPERTY_EDIT)) { - /* property has been activated so setup buffer */ - NK_MEMCPY(buffer, dst, (nk_size)*length); - *cursor = nk_utf_len(buffer, *length); - *len = *length; - length = len; - dst = buffer; - active = 0; - } else active = (*state == NK_PROPERTY_EDIT); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* execute and run text edit field */ - nk_textedit_clear_state(text_edit, NK_TEXT_EDIT_SINGLE_LINE, filters[filter]); - text_edit->active = (unsigned char)active; - text_edit->string.len = *length; - text_edit->cursor = NK_CLAMP(0, *cursor, *length); - text_edit->select_start = NK_CLAMP(0,*select_begin, *length); - text_edit->select_end = NK_CLAMP(0,*select_end, *length); - text_edit->string.buffer.allocated = (nk_size)*length; - text_edit->string.buffer.memory.size = NK_MAX_NUMBER_BUFFER; - text_edit->string.buffer.memory.ptr = dst; - text_edit->string.buffer.size = NK_MAX_NUMBER_BUFFER; - text_edit->mode = NK_TEXT_EDIT_MODE_INSERT; - nk_do_edit(ws, out, edit, NK_EDIT_FIELD|NK_EDIT_AUTO_SELECT, - filters[filter], text_edit, &style->edit, (*state == NK_PROPERTY_EDIT) ? in: 0, font); + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); + NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); + if (layout->row.type != NK_LAYOUT_TEMPLATE) return; + if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; + layout->row.templates[layout->row.columns++] = -min_width; +} +NK_API void +nk_layout_row_template_push_static(struct nk_context *ctx, float width) +{ + struct nk_window *win; + struct nk_panel *layout; - *length = text_edit->string.len; - *cursor = text_edit->cursor; - *select_begin = text_edit->select_start; - *select_end = text_edit->select_end; - if (text_edit->active && nk_input_is_key_pressed(in, NK_KEY_ENTER)) - text_edit->active = nk_false; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - if (active && !text_edit->active) { - /* property is now not active so convert edit text to value*/ - *state = NK_PROPERTY_DEFAULT; - buffer[*len] = '\0'; - switch (variant->kind) { - default: break; - case NK_PROPERTY_INT: - variant->value.i = nk_strtoi(buffer, 0); - variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i, variant->max_value.i); - break; - case NK_PROPERTY_FLOAT: - nk_string_float_limit(buffer, NK_MAX_FLOAT_PRECISION); - variant->value.f = nk_strtof(buffer, 0); - variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f, variant->max_value.f); - break; - case NK_PROPERTY_DOUBLE: - nk_string_float_limit(buffer, NK_MAX_FLOAT_PRECISION); - variant->value.d = nk_strtod(buffer, 0); - variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d, variant->max_value.d); - break; - } - } + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); + NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); + if (layout->row.type != NK_LAYOUT_TEMPLATE) return; + if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; + layout->row.templates[layout->row.columns++] = width; } -/* =============================================================== - * - * COLOR PICKER - * - * ===============================================================*/ -NK_INTERN int -nk_color_picker_behavior(nk_flags *state, - const struct nk_rect *bounds, const struct nk_rect *matrix, - const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, - struct nk_color *color, const struct nk_input *in) +NK_API void +nk_layout_row_template_end(struct nk_context *ctx) { - float hsva[4]; - int value_changed = 0; - int hsv_changed = 0; - - NK_ASSERT(state); - NK_ASSERT(matrix); - NK_ASSERT(hue_bar); - NK_ASSERT(color); + struct nk_window *win; + struct nk_panel *layout; - /* color matrix */ - nk_color_hsva_fv(hsva, *color); - if (nk_button_behavior(state, *matrix, in, NK_BUTTON_REPEATER)) { - hsva[1] = NK_SATURATE((in->mouse.pos.x - matrix->x) / (matrix->w-1)); - hsva[2] = 1.0f - NK_SATURATE((in->mouse.pos.y - matrix->y) / (matrix->h-1)); - value_changed = hsv_changed = 1; - } + int i = 0; + int variable_count = 0; + int min_variable_count = 0; + float min_fixed_width = 0.0f; + float total_fixed_width = 0.0f; + float max_variable_width = 0.0f; - /* hue bar */ - if (nk_button_behavior(state, *hue_bar, in, NK_BUTTON_REPEATER)) { - hsva[0] = NK_SATURATE((in->mouse.pos.y - hue_bar->y) / (hue_bar->h-1)); - value_changed = hsv_changed = 1; - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* alpha bar */ - if (alpha_bar) { - if (nk_button_behavior(state, *alpha_bar, in, NK_BUTTON_REPEATER)) { - hsva[3] = 1.0f - NK_SATURATE((in->mouse.pos.y - alpha_bar->y) / (alpha_bar->h-1)); - value_changed = 1; + win = ctx->current; + layout = win->layout; + NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); + if (layout->row.type != NK_LAYOUT_TEMPLATE) return; + for (i = 0; i < layout->row.columns; ++i) { + float width = layout->row.templates[i]; + if (width >= 0.0f) { + total_fixed_width += width; + min_fixed_width += width; + } else if (width < -1.0f) { + width = -width; + total_fixed_width += width; + max_variable_width = NK_MAX(max_variable_width, width); + variable_count++; + } else { + min_variable_count++; + variable_count++; } } - nk_widget_state_reset(state); - if (hsv_changed) { - *color = nk_hsva_fv(hsva); - *state = NK_WIDGET_STATE_ACTIVE; - } - if (value_changed) { - color->a = (nk_byte)(hsva[3] * 255.0f); - *state = NK_WIDGET_STATE_ACTIVE; + if (variable_count) { + float space = nk_layout_row_calculate_usable_space(&ctx->style, layout->type, + layout->bounds.w, layout->row.columns); + float var_width = (NK_MAX(space-min_fixed_width,0.0f)) / (float)variable_count; + int enough_space = var_width >= max_variable_width; + if (!enough_space) + var_width = (NK_MAX(space-total_fixed_width,0)) / (float)min_variable_count; + for (i = 0; i < layout->row.columns; ++i) { + float *width = &layout->row.templates[i]; + *width = (*width >= 0.0f)? *width: (*width < -1.0f && !enough_space)? -(*width): var_width; + } } - - /* set color picker widget state */ - if (nk_input_is_mouse_hovering_rect(in, *bounds)) - *state = NK_WIDGET_STATE_HOVERED; - if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, *bounds)) - *state |= NK_WIDGET_STATE_ENTERED; - else if (nk_input_is_mouse_prev_hovering_rect(in, *bounds)) - *state |= NK_WIDGET_STATE_LEFT; - return value_changed; } - -NK_INTERN void -nk_draw_color_picker(struct nk_command_buffer *o, const struct nk_rect *matrix, - const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, - struct nk_color color) +NK_API void +nk_layout_space_begin(struct nk_context *ctx, enum nk_layout_format fmt, + float height, int widget_count) { - NK_STORAGE const struct nk_color black = {0,0,0,255}; - NK_STORAGE const struct nk_color white = {255, 255, 255, 255}; - NK_STORAGE const struct nk_color black_trans = {0,0,0,0}; + struct nk_window *win; + struct nk_panel *layout; - const float crosshair_size = 7.0f; - struct nk_color temp; - float hsva[4]; - float line_y; - int i; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - NK_ASSERT(o); - NK_ASSERT(matrix); - NK_ASSERT(hue_bar); + win = ctx->current; + layout = win->layout; + nk_panel_layout(ctx, win, height, widget_count); + if (fmt == NK_STATIC) + layout->row.type = NK_LAYOUT_STATIC_FREE; + else layout->row.type = NK_LAYOUT_DYNAMIC_FREE; - /* draw hue bar */ - nk_color_hsv_fv(hsva, color); - for (i = 0; i < 6; ++i) { - NK_GLOBAL const struct nk_color hue_colors[] = { - {255, 0, 0, 255}, - {255,255,0,255}, - {0,255,0,255}, - {0, 255,255,255}, - {0,0,255,255}, - {255, 0, 255, 255}, - {255, 0, 0, 255} - }; - nk_fill_rect_multi_color(o, - nk_rect(hue_bar->x, hue_bar->y + (float)i * (hue_bar->h/6.0f) + 0.5f, - hue_bar->w, (hue_bar->h/6.0f) + 0.5f), hue_colors[i], hue_colors[i], - hue_colors[i+1], hue_colors[i+1]); - } - line_y = (float)(int)(hue_bar->y + hsva[0] * matrix->h + 0.5f); - nk_stroke_line(o, hue_bar->x-1, line_y, hue_bar->x + hue_bar->w + 2, - line_y, 1, nk_rgb(255,255,255)); + layout->row.ratio = 0; + layout->row.filled = 0; + layout->row.item_width = 0; + layout->row.item_offset = 0; +} +NK_API void +nk_layout_space_end(struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_panel *layout; - /* draw alpha bar */ - if (alpha_bar) { - float alpha = NK_SATURATE((float)color.a/255.0f); - line_y = (float)(int)(alpha_bar->y + (1.0f - alpha) * matrix->h + 0.5f); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - nk_fill_rect_multi_color(o, *alpha_bar, white, white, black, black); - nk_stroke_line(o, alpha_bar->x-1, line_y, alpha_bar->x + alpha_bar->w + 2, - line_y, 1, nk_rgb(255,255,255)); - } + win = ctx->current; + layout = win->layout; + layout->row.item_width = 0; + layout->row.item_height = 0; + layout->row.item_offset = 0; + nk_zero(&layout->row.item, sizeof(layout->row.item)); +} +NK_API void +nk_layout_space_push(struct nk_context *ctx, struct nk_rect rect) +{ + struct nk_window *win; + struct nk_panel *layout; - /* draw color matrix */ - temp = nk_hsv_f(hsva[0], 1.0f, 1.0f); - nk_fill_rect_multi_color(o, *matrix, white, temp, temp, white); - nk_fill_rect_multi_color(o, *matrix, black_trans, black_trans, black, black); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* draw cross-hair */ - {struct nk_vec2 p; float S = hsva[1]; float V = hsva[2]; - p.x = (float)(int)(matrix->x + S * matrix->w); - p.y = (float)(int)(matrix->y + (1.0f - V) * matrix->h); - nk_stroke_line(o, p.x - crosshair_size, p.y, p.x-2, p.y, 1.0f, white); - nk_stroke_line(o, p.x + crosshair_size + 1, p.y, p.x+3, p.y, 1.0f, white); - nk_stroke_line(o, p.x, p.y + crosshair_size + 1, p.x, p.y+3, 1.0f, white); - nk_stroke_line(o, p.x, p.y - crosshair_size, p.x, p.y-2, 1.0f, white);} + win = ctx->current; + layout = win->layout; + layout->row.item = rect; } - -NK_INTERN int -nk_do_color_picker(nk_flags *state, - struct nk_command_buffer *out, struct nk_color *color, - enum nk_color_format fmt, struct nk_rect bounds, - struct nk_vec2 padding, const struct nk_input *in, - const struct nk_user_font *font) +NK_API struct nk_rect +nk_layout_space_bounds(struct nk_context *ctx) { - int ret = 0; - struct nk_rect matrix; - struct nk_rect hue_bar; - struct nk_rect alpha_bar; - float bar_w; + struct nk_rect ret; + struct nk_window *win; + struct nk_panel *layout; - NK_ASSERT(out); - NK_ASSERT(color); - NK_ASSERT(state); - NK_ASSERT(font); - if (!out || !color || !state || !font) - return ret; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; - bar_w = font->height; - bounds.x += padding.x; - bounds.y += padding.x; - bounds.w -= 2 * padding.x; - bounds.h -= 2 * padding.y; + ret.x = layout->clip.x; + ret.y = layout->clip.y; + ret.w = layout->clip.w; + ret.h = layout->row.height; + return ret; +} +NK_API struct nk_rect +nk_layout_widget_bounds(struct nk_context *ctx) +{ + struct nk_rect ret; + struct nk_window *win; + struct nk_panel *layout; - matrix.x = bounds.x; - matrix.y = bounds.y; - matrix.h = bounds.h; - matrix.w = bounds.w - (3 * padding.x + 2 * bar_w); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; - hue_bar.w = bar_w; - hue_bar.y = bounds.y; - hue_bar.h = matrix.h; - hue_bar.x = matrix.x + matrix.w + padding.x; + ret.x = layout->at_x; + ret.y = layout->at_y; + ret.w = layout->bounds.w - NK_MAX(layout->at_x - layout->bounds.x,0); + ret.h = layout->row.height; + return ret; +} +NK_API struct nk_vec2 +nk_layout_space_to_screen(struct nk_context *ctx, struct nk_vec2 ret) +{ + struct nk_window *win; + struct nk_panel *layout; - alpha_bar.x = hue_bar.x + hue_bar.w + padding.x; - alpha_bar.y = bounds.y; - alpha_bar.w = bar_w; - alpha_bar.h = matrix.h; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; - ret = nk_color_picker_behavior(state, &bounds, &matrix, &hue_bar, - (fmt == NK_RGBA) ? &alpha_bar:0, color, in); - nk_draw_color_picker(out, &matrix, &hue_bar, (fmt == NK_RGBA) ? &alpha_bar:0, *color); + ret.x += layout->at_x - (float)*layout->offset_x; + ret.y += layout->at_y - (float)*layout->offset_y; return ret; } +NK_API struct nk_vec2 +nk_layout_space_to_local(struct nk_context *ctx, struct nk_vec2 ret) +{ + struct nk_window *win; + struct nk_panel *layout; -/* ============================================================== - * - * STYLE - * - * ===============================================================*/ -NK_API void nk_style_default(struct nk_context *ctx){nk_style_from_table(ctx, 0);} -#define NK_COLOR_MAP(NK_COLOR)\ - NK_COLOR(NK_COLOR_TEXT, 175,175,175,255) \ - NK_COLOR(NK_COLOR_WINDOW, 45, 45, 45, 255) \ - NK_COLOR(NK_COLOR_HEADER, 40, 40, 40, 255) \ - NK_COLOR(NK_COLOR_BORDER, 65, 65, 65, 255) \ - NK_COLOR(NK_COLOR_BUTTON, 50, 50, 50, 255) \ - NK_COLOR(NK_COLOR_BUTTON_HOVER, 40, 40, 40, 255) \ - NK_COLOR(NK_COLOR_BUTTON_ACTIVE, 35, 35, 35, 255) \ - NK_COLOR(NK_COLOR_TOGGLE, 100,100,100,255) \ - NK_COLOR(NK_COLOR_TOGGLE_HOVER, 120,120,120,255) \ - NK_COLOR(NK_COLOR_TOGGLE_CURSOR, 45, 45, 45, 255) \ - NK_COLOR(NK_COLOR_SELECT, 45, 45, 45, 255) \ - NK_COLOR(NK_COLOR_SELECT_ACTIVE, 35, 35, 35,255) \ - NK_COLOR(NK_COLOR_SLIDER, 38, 38, 38, 255) \ - NK_COLOR(NK_COLOR_SLIDER_CURSOR, 100,100,100,255) \ - NK_COLOR(NK_COLOR_SLIDER_CURSOR_HOVER, 120,120,120,255) \ - NK_COLOR(NK_COLOR_SLIDER_CURSOR_ACTIVE, 150,150,150,255) \ - NK_COLOR(NK_COLOR_PROPERTY, 38, 38, 38, 255) \ - NK_COLOR(NK_COLOR_EDIT, 38, 38, 38, 255) \ - NK_COLOR(NK_COLOR_EDIT_CURSOR, 175,175,175,255) \ - NK_COLOR(NK_COLOR_COMBO, 45, 45, 45, 255) \ - NK_COLOR(NK_COLOR_CHART, 120,120,120,255) \ - NK_COLOR(NK_COLOR_CHART_COLOR, 45, 45, 45, 255) \ - NK_COLOR(NK_COLOR_CHART_COLOR_HIGHLIGHT,255, 0, 0, 255) \ - NK_COLOR(NK_COLOR_SCROLLBAR, 40, 40, 40, 255) \ - NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR, 100,100,100,255) \ - NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR_HOVER,120,120,120,255) \ - NK_COLOR(NK_COLOR_SCROLLBAR_CURSOR_ACTIVE,150,150,150,255) \ - NK_COLOR(NK_COLOR_TAB_HEADER, 40, 40, 40,255) + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; -NK_GLOBAL const struct nk_color -nk_default_color_style[NK_COLOR_COUNT] = { -#define NK_COLOR(a,b,c,d,e) {b,c,d,e}, - NK_COLOR_MAP(NK_COLOR) -#undef NK_COLOR -}; + ret.x += -layout->at_x + (float)*layout->offset_x; + ret.y += -layout->at_y + (float)*layout->offset_y; + return ret; +} +NK_API struct nk_rect +nk_layout_space_rect_to_screen(struct nk_context *ctx, struct nk_rect ret) +{ + struct nk_window *win; + struct nk_panel *layout; -NK_GLOBAL const char *nk_color_names[NK_COLOR_COUNT] = { -#define NK_COLOR(a,b,c,d,e) #a, - NK_COLOR_MAP(NK_COLOR) -#undef NK_COLOR -}; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; -NK_API const char *nk_style_get_color_by_name(enum nk_style_colors c) -{return nk_color_names[c];} + ret.x += layout->at_x - (float)*layout->offset_x; + ret.y += layout->at_y - (float)*layout->offset_y; + return ret; +} +NK_API struct nk_rect +nk_layout_space_rect_to_local(struct nk_context *ctx, struct nk_rect ret) +{ + struct nk_window *win; + struct nk_panel *layout; -NK_API struct nk_style_item nk_style_item_image(struct nk_image img) -{struct nk_style_item i; i.type = NK_STYLE_ITEM_IMAGE; i.data.image = img; return i;} + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + win = ctx->current; + layout = win->layout; -NK_API struct nk_style_item nk_style_item_color(struct nk_color col) -{struct nk_style_item i; i.type = NK_STYLE_ITEM_COLOR; i.data.color = col; return i;} + ret.x += -layout->at_x + (float)*layout->offset_x; + ret.y += -layout->at_y + (float)*layout->offset_y; + return ret; +} +NK_LIB void +nk_panel_alloc_row(const struct nk_context *ctx, struct nk_window *win) +{ + struct nk_panel *layout = win->layout; + struct nk_vec2 spacing = ctx->style.window.spacing; + const float row_height = layout->row.height - spacing.y; + nk_panel_layout(ctx, win, row_height, layout->row.columns); +} +NK_LIB void +nk_layout_widget_space(struct nk_rect *bounds, const struct nk_context *ctx, + struct nk_window *win, int modify) +{ + struct nk_panel *layout; + const struct nk_style *style; -NK_API struct nk_style_item nk_style_item_hide(void) -{struct nk_style_item i; i.type = NK_STYLE_ITEM_COLOR; i.data.color = nk_rgba(0,0,0,0); return i;} + struct nk_vec2 spacing; + struct nk_vec2 padding; -NK_API void -nk_style_from_table(struct nk_context *ctx, const struct nk_color *table) -{ - struct nk_style *style; - struct nk_style_text *text; - struct nk_style_button *button; - struct nk_style_toggle *toggle; - struct nk_style_selectable *select; - struct nk_style_slider *slider; - struct nk_style_progress *prog; - struct nk_style_scrollbar *scroll; - struct nk_style_edit *edit; - struct nk_style_property *property; - struct nk_style_combo *combo; - struct nk_style_chart *chart; - struct nk_style_tab *tab; - struct nk_style_window *win; + float item_offset = 0; + float item_width = 0; + float item_spacing = 0; + float panel_space = 0; NK_ASSERT(ctx); - if (!ctx) return; - style = &ctx->style; - table = (!table) ? nk_default_color_style: table; - - /* default text */ - text = &style->text; - text->color = table[NK_COLOR_TEXT]; - text->padding = nk_vec2(0,0); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* default button */ - button = &style->button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_BUTTON]); - button->hover = nk_style_item_color(table[NK_COLOR_BUTTON_HOVER]); - button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]); - button->border_color = table[NK_COLOR_BORDER]; - button->text_background = table[NK_COLOR_BUTTON]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->image_padding = nk_vec2(0.0f,0.0f); - button->touch_padding = nk_vec2(0.0f, 0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 1.0f; - button->rounding = 4.0f; - button->draw_begin = 0; - button->draw_end = 0; + win = ctx->current; + layout = win->layout; + style = &ctx->style; + NK_ASSERT(bounds); - /* contextual button */ - button = &style->contextual_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->hover = nk_style_item_color(table[NK_COLOR_BUTTON_HOVER]); - button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]); - button->border_color = table[NK_COLOR_WINDOW]; - button->text_background = table[NK_COLOR_WINDOW]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; + spacing = style->window.spacing; + padding = nk_panel_get_padding(style, layout->type); + panel_space = nk_layout_row_calculate_usable_space(&ctx->style, layout->type, + layout->bounds.w, layout->row.columns); - /* menu button */ - button = &style->menu_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->hover = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->active = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->border_color = table[NK_COLOR_WINDOW]; - button->text_background = table[NK_COLOR_WINDOW]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 1.0f; - button->draw_begin = 0; - button->draw_end = 0; + /* calculate the width of one item inside the current layout space */ + switch (layout->row.type) { + case NK_LAYOUT_DYNAMIC_FIXED: { + /* scaling fixed size widgets item width */ + item_width = NK_MAX(1.0f,panel_space) / (float)layout->row.columns; + item_offset = (float)layout->row.index * item_width; + item_spacing = (float)layout->row.index * spacing.x; + } break; + case NK_LAYOUT_DYNAMIC_ROW: { + /* scaling single ratio widget width */ + item_width = layout->row.item_width * panel_space; + item_offset = layout->row.item_offset; + item_spacing = 0; - /* checkbox toggle */ - toggle = &style->checkbox; - nk_zero_struct(*toggle); - toggle->normal = nk_style_item_color(table[NK_COLOR_TOGGLE]); - toggle->hover = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); - toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); - toggle->cursor_normal = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); - toggle->cursor_hover = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); - toggle->userdata = nk_handle_ptr(0); - toggle->text_background = table[NK_COLOR_WINDOW]; - toggle->text_normal = table[NK_COLOR_TEXT]; - toggle->text_hover = table[NK_COLOR_TEXT]; - toggle->text_active = table[NK_COLOR_TEXT]; - toggle->padding = nk_vec2(2.0f, 2.0f); - toggle->touch_padding = nk_vec2(0,0); - toggle->border_color = nk_rgba(0,0,0,0); - toggle->border = 0.0f; - toggle->spacing = 4; + if (modify) { + layout->row.item_offset += item_width + spacing.x; + layout->row.filled += layout->row.item_width; + layout->row.index = 0; + } + } break; + case NK_LAYOUT_DYNAMIC_FREE: { + /* panel width depended free widget placing */ + bounds->x = layout->at_x + (layout->bounds.w * layout->row.item.x); + bounds->x -= (float)*layout->offset_x; + bounds->y = layout->at_y + (layout->row.height * layout->row.item.y); + bounds->y -= (float)*layout->offset_y; + bounds->w = layout->bounds.w * layout->row.item.w; + bounds->h = layout->row.height * layout->row.item.h; + return; + } + case NK_LAYOUT_DYNAMIC: { + /* scaling arrays of panel width ratios for every widget */ + float ratio; + NK_ASSERT(layout->row.ratio); + ratio = (layout->row.ratio[layout->row.index] < 0) ? + layout->row.item_width : layout->row.ratio[layout->row.index]; - /* option toggle */ - toggle = &style->option; - nk_zero_struct(*toggle); - toggle->normal = nk_style_item_color(table[NK_COLOR_TOGGLE]); - toggle->hover = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); - toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]); - toggle->cursor_normal = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); - toggle->cursor_hover = nk_style_item_color(table[NK_COLOR_TOGGLE_CURSOR]); - toggle->userdata = nk_handle_ptr(0); - toggle->text_background = table[NK_COLOR_WINDOW]; - toggle->text_normal = table[NK_COLOR_TEXT]; - toggle->text_hover = table[NK_COLOR_TEXT]; - toggle->text_active = table[NK_COLOR_TEXT]; - toggle->padding = nk_vec2(3.0f, 3.0f); - toggle->touch_padding = nk_vec2(0,0); - toggle->border_color = nk_rgba(0,0,0,0); - toggle->border = 0.0f; - toggle->spacing = 4; + item_spacing = (float)layout->row.index * spacing.x; + item_width = (ratio * panel_space); + item_offset = layout->row.item_offset; - /* selectable */ - select = &style->selectable; - nk_zero_struct(*select); - select->normal = nk_style_item_color(table[NK_COLOR_SELECT]); - select->hover = nk_style_item_color(table[NK_COLOR_SELECT]); - select->pressed = nk_style_item_color(table[NK_COLOR_SELECT]); - select->normal_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); - select->hover_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); - select->pressed_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]); - select->text_normal = table[NK_COLOR_TEXT]; - select->text_hover = table[NK_COLOR_TEXT]; - select->text_pressed = table[NK_COLOR_TEXT]; - select->text_normal_active = table[NK_COLOR_TEXT]; - select->text_hover_active = table[NK_COLOR_TEXT]; - select->text_pressed_active = table[NK_COLOR_TEXT]; - select->padding = nk_vec2(2.0f,2.0f); - select->touch_padding = nk_vec2(0,0); - select->userdata = nk_handle_ptr(0); - select->rounding = 0.0f; - select->draw_begin = 0; - select->draw_end = 0; + if (modify) { + layout->row.item_offset += item_width; + layout->row.filled += ratio; + } + } break; + case NK_LAYOUT_STATIC_FIXED: { + /* non-scaling fixed widgets item width */ + item_width = layout->row.item_width; + item_offset = (float)layout->row.index * item_width; + item_spacing = (float)layout->row.index * spacing.x; + } break; + case NK_LAYOUT_STATIC_ROW: { + /* scaling single ratio widget width */ + item_width = layout->row.item_width; + item_offset = layout->row.item_offset; + item_spacing = (float)layout->row.index * spacing.x; + if (modify) layout->row.item_offset += item_width; + } break; + case NK_LAYOUT_STATIC_FREE: { + /* free widget placing */ + bounds->x = layout->at_x + layout->row.item.x; + bounds->w = layout->row.item.w; + if (((bounds->x + bounds->w) > layout->max_x) && modify) + layout->max_x = (bounds->x + bounds->w); + bounds->x -= (float)*layout->offset_x; + bounds->y = layout->at_y + layout->row.item.y; + bounds->y -= (float)*layout->offset_y; + bounds->h = layout->row.item.h; + return; + } + case NK_LAYOUT_STATIC: { + /* non-scaling array of panel pixel width for every widget */ + item_spacing = (float)layout->row.index * spacing.x; + item_width = layout->row.ratio[layout->row.index]; + item_offset = layout->row.item_offset; + if (modify) layout->row.item_offset += item_width; + } break; + case NK_LAYOUT_TEMPLATE: { + /* stretchy row layout with combined dynamic/static widget width*/ + NK_ASSERT(layout->row.index < layout->row.columns); + NK_ASSERT(layout->row.index < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); + item_width = layout->row.templates[layout->row.index]; + item_offset = layout->row.item_offset; + item_spacing = (float)layout->row.index * spacing.x; + if (modify) layout->row.item_offset += item_width; + } break; + default: NK_ASSERT(0); break; + }; - /* slider */ - slider = &style->slider; - nk_zero_struct(*slider); - slider->normal = nk_style_item_hide(); - slider->hover = nk_style_item_hide(); - slider->active = nk_style_item_hide(); - slider->bar_normal = table[NK_COLOR_SLIDER]; - slider->bar_hover = table[NK_COLOR_SLIDER]; - slider->bar_active = table[NK_COLOR_SLIDER]; - slider->bar_filled = table[NK_COLOR_SLIDER_CURSOR]; - slider->cursor_normal = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR]); - slider->cursor_hover = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_HOVER]); - slider->cursor_active = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_ACTIVE]); - slider->inc_symbol = NK_SYMBOL_TRIANGLE_RIGHT; - slider->dec_symbol = NK_SYMBOL_TRIANGLE_LEFT; - slider->cursor_size = nk_vec2(16,16); - slider->padding = nk_vec2(2,2); - slider->spacing = nk_vec2(2,2); - slider->userdata = nk_handle_ptr(0); - slider->show_buttons = nk_false; - slider->bar_height = 8; - slider->rounding = 0; - slider->draw_begin = 0; - slider->draw_end = 0; + /* set the bounds of the newly allocated widget */ + bounds->w = item_width; + bounds->h = layout->row.height - spacing.y; + bounds->y = layout->at_y - (float)*layout->offset_y; + bounds->x = layout->at_x + item_offset + item_spacing + padding.x; + if (((bounds->x + bounds->w) > layout->max_x) && modify) + layout->max_x = bounds->x + bounds->w; + bounds->x -= (float)*layout->offset_x; +} +NK_LIB void +nk_panel_alloc_space(struct nk_rect *bounds, const struct nk_context *ctx) +{ + struct nk_window *win; + struct nk_panel *layout; - /* slider buttons */ - button = &style->slider.inc_button; - button->normal = nk_style_item_color(nk_rgb(40,40,40)); - button->hover = nk_style_item_color(nk_rgb(42,42,42)); - button->active = nk_style_item_color(nk_rgb(44,44,44)); - button->border_color = nk_rgb(65,65,65); - button->text_background = nk_rgb(40,40,40); - button->text_normal = nk_rgb(175,175,175); - button->text_hover = nk_rgb(175,175,175); - button->text_active = nk_rgb(175,175,175); - button->padding = nk_vec2(8.0f,8.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 1.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; - style->slider.dec_button = style->slider.inc_button; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* progressbar */ - prog = &style->progress; - nk_zero_struct(*prog); - prog->normal = nk_style_item_color(table[NK_COLOR_SLIDER]); - prog->hover = nk_style_item_color(table[NK_COLOR_SLIDER]); - prog->active = nk_style_item_color(table[NK_COLOR_SLIDER]); - prog->cursor_normal = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR]); - prog->cursor_hover = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_HOVER]); - prog->cursor_active = nk_style_item_color(table[NK_COLOR_SLIDER_CURSOR_ACTIVE]); - prog->border_color = nk_rgba(0,0,0,0); - prog->cursor_border_color = nk_rgba(0,0,0,0); - prog->userdata = nk_handle_ptr(0); - prog->padding = nk_vec2(4,4); - prog->rounding = 0; - prog->border = 0; - prog->cursor_rounding = 0; - prog->cursor_border = 0; - prog->draw_begin = 0; - prog->draw_end = 0; + /* check if the end of the row has been hit and begin new row if so */ + win = ctx->current; + layout = win->layout; + if (layout->row.index >= layout->row.columns) + nk_panel_alloc_row(ctx, win); - /* scrollbars */ - scroll = &style->scrollh; - nk_zero_struct(*scroll); - scroll->normal = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); - scroll->hover = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); - scroll->active = nk_style_item_color(table[NK_COLOR_SCROLLBAR]); - scroll->cursor_normal = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR]); - scroll->cursor_hover = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR_HOVER]); - scroll->cursor_active = nk_style_item_color(table[NK_COLOR_SCROLLBAR_CURSOR_ACTIVE]); - scroll->dec_symbol = NK_SYMBOL_CIRCLE_SOLID; - scroll->inc_symbol = NK_SYMBOL_CIRCLE_SOLID; - scroll->userdata = nk_handle_ptr(0); - scroll->border_color = table[NK_COLOR_SCROLLBAR]; - scroll->cursor_border_color = table[NK_COLOR_SCROLLBAR]; - scroll->padding = nk_vec2(0,0); - scroll->show_buttons = nk_false; - scroll->border = 0; - scroll->rounding = 0; - scroll->border_cursor = 0; - scroll->rounding_cursor = 0; - scroll->draw_begin = 0; - scroll->draw_end = 0; - style->scrollv = style->scrollh; + /* calculate widget position and size */ + nk_layout_widget_space(bounds, ctx, win, nk_true); + layout->row.index++; +} +NK_LIB void +nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx) +{ + float y; + int index; + struct nk_window *win; + struct nk_panel *layout; - /* scrollbars buttons */ - button = &style->scrollh.inc_button; - button->normal = nk_style_item_color(nk_rgb(40,40,40)); - button->hover = nk_style_item_color(nk_rgb(42,42,42)); - button->active = nk_style_item_color(nk_rgb(44,44,44)); - button->border_color = nk_rgb(65,65,65); - button->text_background = nk_rgb(40,40,40); - button->text_normal = nk_rgb(175,175,175); - button->text_hover = nk_rgb(175,175,175); - button->text_active = nk_rgb(175,175,175); - button->padding = nk_vec2(4.0f,4.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 1.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; - style->scrollh.dec_button = style->scrollh.inc_button; - style->scrollv.inc_button = style->scrollh.inc_button; - style->scrollv.dec_button = style->scrollh.inc_button; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; + + win = ctx->current; + layout = win->layout; + y = layout->at_y; + index = layout->row.index; + if (layout->row.index >= layout->row.columns) { + layout->at_y += layout->row.height; + layout->row.index = 0; + } + nk_layout_widget_space(bounds, ctx, win, nk_false); + if (!layout->row.index) { + bounds->x -= layout->row.item_offset; + } + layout->at_y = y; + layout->row.index = index; +} - /* edit */ - edit = &style->edit; - nk_zero_struct(*edit); - edit->normal = nk_style_item_color(table[NK_COLOR_EDIT]); - edit->hover = nk_style_item_color(table[NK_COLOR_EDIT]); - edit->active = nk_style_item_color(table[NK_COLOR_EDIT]); - edit->cursor_normal = table[NK_COLOR_TEXT]; - edit->cursor_hover = table[NK_COLOR_TEXT]; - edit->cursor_text_normal= table[NK_COLOR_EDIT]; - edit->cursor_text_hover = table[NK_COLOR_EDIT]; - edit->border_color = table[NK_COLOR_BORDER]; - edit->text_normal = table[NK_COLOR_TEXT]; - edit->text_hover = table[NK_COLOR_TEXT]; - edit->text_active = table[NK_COLOR_TEXT]; - edit->selected_normal = table[NK_COLOR_TEXT]; - edit->selected_hover = table[NK_COLOR_TEXT]; - edit->selected_text_normal = table[NK_COLOR_EDIT]; - edit->selected_text_hover = table[NK_COLOR_EDIT]; - edit->scrollbar_size = nk_vec2(10,10); - edit->scrollbar = style->scrollv; - edit->padding = nk_vec2(4,4); - edit->row_padding = 2; - edit->cursor_size = 4; - edit->border = 1; - edit->rounding = 0; - /* property */ - property = &style->property; - nk_zero_struct(*property); - property->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); - property->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); - property->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); - property->border_color = table[NK_COLOR_BORDER]; - property->label_normal = table[NK_COLOR_TEXT]; - property->label_hover = table[NK_COLOR_TEXT]; - property->label_active = table[NK_COLOR_TEXT]; - property->sym_left = NK_SYMBOL_TRIANGLE_LEFT; - property->sym_right = NK_SYMBOL_TRIANGLE_RIGHT; - property->userdata = nk_handle_ptr(0); - property->padding = nk_vec2(4,4); - property->border = 1; - property->rounding = 10; - property->draw_begin = 0; - property->draw_end = 0; - /* property buttons */ - button = &style->property.dec_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); - button->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); - button->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_PROPERTY]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(0.0f,0.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; - style->property.inc_button = style->property.dec_button; - /* property edit */ - edit = &style->property.edit; - nk_zero_struct(*edit); - edit->normal = nk_style_item_color(table[NK_COLOR_PROPERTY]); - edit->hover = nk_style_item_color(table[NK_COLOR_PROPERTY]); - edit->active = nk_style_item_color(table[NK_COLOR_PROPERTY]); - edit->border_color = nk_rgba(0,0,0,0); - edit->cursor_normal = table[NK_COLOR_TEXT]; - edit->cursor_hover = table[NK_COLOR_TEXT]; - edit->cursor_text_normal= table[NK_COLOR_EDIT]; - edit->cursor_text_hover = table[NK_COLOR_EDIT]; - edit->text_normal = table[NK_COLOR_TEXT]; - edit->text_hover = table[NK_COLOR_TEXT]; - edit->text_active = table[NK_COLOR_TEXT]; - edit->selected_normal = table[NK_COLOR_TEXT]; - edit->selected_hover = table[NK_COLOR_TEXT]; - edit->selected_text_normal = table[NK_COLOR_EDIT]; - edit->selected_text_hover = table[NK_COLOR_EDIT]; - edit->padding = nk_vec2(0,0); - edit->cursor_size = 8; - edit->border = 0; - edit->rounding = 0; - /* chart */ - chart = &style->chart; - nk_zero_struct(*chart); - chart->background = nk_style_item_color(table[NK_COLOR_CHART]); - chart->border_color = table[NK_COLOR_BORDER]; - chart->selected_color = table[NK_COLOR_CHART_COLOR_HIGHLIGHT]; - chart->color = table[NK_COLOR_CHART_COLOR]; - chart->padding = nk_vec2(4,4); - chart->border = 0; - chart->rounding = 0; +/* =============================================================== + * + * TREE + * + * ===============================================================*/ +NK_INTERN int +nk_tree_state_base(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image *img, const char *title, enum nk_collapse_states *state) +{ + struct nk_window *win; + struct nk_panel *layout; + const struct nk_style *style; + struct nk_command_buffer *out; + const struct nk_input *in; + const struct nk_style_button *button; + enum nk_symbol_type symbol; + float row_height; - /* combo */ - combo = &style->combo; - combo->normal = nk_style_item_color(table[NK_COLOR_COMBO]); - combo->hover = nk_style_item_color(table[NK_COLOR_COMBO]); - combo->active = nk_style_item_color(table[NK_COLOR_COMBO]); - combo->border_color = table[NK_COLOR_BORDER]; - combo->label_normal = table[NK_COLOR_TEXT]; - combo->label_hover = table[NK_COLOR_TEXT]; - combo->label_active = table[NK_COLOR_TEXT]; - combo->sym_normal = NK_SYMBOL_TRIANGLE_DOWN; - combo->sym_hover = NK_SYMBOL_TRIANGLE_DOWN; - combo->sym_active = NK_SYMBOL_TRIANGLE_DOWN; - combo->content_padding = nk_vec2(4,4); - combo->button_padding = nk_vec2(0,4); - combo->spacing = nk_vec2(4,0); - combo->border = 1; - combo->rounding = 0; + struct nk_vec2 item_spacing; + struct nk_rect header = {0,0,0,0}; + struct nk_rect sym = {0,0,0,0}; + struct nk_text text; - /* combo button */ - button = &style->combo.button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_COMBO]); - button->hover = nk_style_item_color(table[NK_COLOR_COMBO]); - button->active = nk_style_item_color(table[NK_COLOR_COMBO]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_COMBO]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; + nk_flags ws = 0; + enum nk_widget_layout_states widget_state; - /* tab */ - tab = &style->tab; - tab->background = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); - tab->border_color = table[NK_COLOR_BORDER]; - tab->text = table[NK_COLOR_TEXT]; - tab->sym_minimize = NK_SYMBOL_TRIANGLE_RIGHT; - tab->sym_maximize = NK_SYMBOL_TRIANGLE_DOWN; - tab->padding = nk_vec2(4,4); - tab->spacing = nk_vec2(4,4); - tab->indent = 10.0f; - tab->border = 1; - tab->rounding = 0; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - /* tab button */ - button = &style->tab.tab_minimize_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); - button->hover = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); - button->active = nk_style_item_color(table[NK_COLOR_TAB_HEADER]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_TAB_HEADER]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; - style->tab.tab_maximize_button =*button; + /* cache some data */ + win = ctx->current; + layout = win->layout; + out = &win->buffer; + style = &ctx->style; + item_spacing = style->window.spacing; - /* node button */ - button = &style->tab.node_minimize_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->hover = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->active = nk_style_item_color(table[NK_COLOR_WINDOW]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_TAB_HEADER]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(2.0f,2.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; - style->tab.node_maximize_button =*button; + /* calculate header bounds and draw background */ + row_height = style->font->height + 2 * style->tab.padding.y; + nk_layout_set_min_row_height(ctx, row_height); + nk_layout_row_dynamic(ctx, row_height, 1); + nk_layout_reset_min_row_height(ctx); - /* window header */ - win = &style->window; - win->header.align = NK_HEADER_RIGHT; - win->header.close_symbol = NK_SYMBOL_X; - win->header.minimize_symbol = NK_SYMBOL_MINUS; - win->header.maximize_symbol = NK_SYMBOL_PLUS; - win->header.normal = nk_style_item_color(table[NK_COLOR_HEADER]); - win->header.hover = nk_style_item_color(table[NK_COLOR_HEADER]); - win->header.active = nk_style_item_color(table[NK_COLOR_HEADER]); - win->header.label_normal = table[NK_COLOR_TEXT]; - win->header.label_hover = table[NK_COLOR_TEXT]; - win->header.label_active = table[NK_COLOR_TEXT]; - win->header.label_padding = nk_vec2(4,4); - win->header.padding = nk_vec2(4,4); - win->header.spacing = nk_vec2(0,0); + widget_state = nk_widget(&header, ctx); + if (type == NK_TREE_TAB) { + const struct nk_style_item *background = &style->tab.background; + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, header, &background->data.image, nk_white); + text.background = nk_rgba(0,0,0,0); + } else { + text.background = background->data.color; + nk_fill_rect(out, header, 0, style->tab.border_color); + nk_fill_rect(out, nk_shrink_rect(header, style->tab.border), + style->tab.rounding, background->data.color); + } + } else text.background = style->window.background; - /* window header close button */ - button = &style->window.header.close_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_HEADER]); - button->hover = nk_style_item_color(table[NK_COLOR_HEADER]); - button->active = nk_style_item_color(table[NK_COLOR_HEADER]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_HEADER]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(0.0f,0.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; + /* update node state */ + in = (!(layout->flags & NK_WINDOW_ROM)) ? &ctx->input: 0; + in = (in && widget_state == NK_WIDGET_VALID) ? &ctx->input : 0; + if (nk_button_behavior(&ws, header, in, NK_BUTTON_DEFAULT)) + *state = (*state == NK_MAXIMIZED) ? NK_MINIMIZED : NK_MAXIMIZED; - /* window header minimize button */ - button = &style->window.header.minimize_button; - nk_zero_struct(*button); - button->normal = nk_style_item_color(table[NK_COLOR_HEADER]); - button->hover = nk_style_item_color(table[NK_COLOR_HEADER]); - button->active = nk_style_item_color(table[NK_COLOR_HEADER]); - button->border_color = nk_rgba(0,0,0,0); - button->text_background = table[NK_COLOR_HEADER]; - button->text_normal = table[NK_COLOR_TEXT]; - button->text_hover = table[NK_COLOR_TEXT]; - button->text_active = table[NK_COLOR_TEXT]; - button->padding = nk_vec2(0.0f,0.0f); - button->touch_padding = nk_vec2(0.0f,0.0f); - button->userdata = nk_handle_ptr(0); - button->text_alignment = NK_TEXT_CENTERED; - button->border = 0.0f; - button->rounding = 0.0f; - button->draw_begin = 0; - button->draw_end = 0; + /* select correct button style */ + if (*state == NK_MAXIMIZED) { + symbol = style->tab.sym_maximize; + if (type == NK_TREE_TAB) + button = &style->tab.tab_maximize_button; + else button = &style->tab.node_maximize_button; + } else { + symbol = style->tab.sym_minimize; + if (type == NK_TREE_TAB) + button = &style->tab.tab_minimize_button; + else button = &style->tab.node_minimize_button; + } - /* window */ - win->background = table[NK_COLOR_WINDOW]; - win->fixed_background = nk_style_item_color(table[NK_COLOR_WINDOW]); - win->border_color = table[NK_COLOR_BORDER]; - win->popup_border_color = table[NK_COLOR_BORDER]; - win->combo_border_color = table[NK_COLOR_BORDER]; - win->contextual_border_color = table[NK_COLOR_BORDER]; - win->menu_border_color = table[NK_COLOR_BORDER]; - win->group_border_color = table[NK_COLOR_BORDER]; - win->tooltip_border_color = table[NK_COLOR_BORDER]; - win->scaler = nk_style_item_color(table[NK_COLOR_TEXT]); + {/* draw triangle button */ + sym.w = sym.h = style->font->height; + sym.y = header.y + style->tab.padding.y; + sym.x = header.x + style->tab.padding.x; + nk_do_button_symbol(&ws, &win->buffer, sym, symbol, NK_BUTTON_DEFAULT, + button, 0, style->font); - win->rounding = 0.0f; - win->spacing = nk_vec2(4,4); - win->scrollbar_size = nk_vec2(10,10); - win->min_size = nk_vec2(64,64); + if (img) { + /* draw optional image icon */ + sym.x = sym.x + sym.w + 4 * item_spacing.x; + nk_draw_image(&win->buffer, sym, img, nk_white); + sym.w = style->font->height + style->tab.spacing.x;} + } - win->combo_border = 1.0f; - win->contextual_border = 1.0f; - win->menu_border = 1.0f; - win->group_border = 1.0f; - win->tooltip_border = 1.0f; - win->popup_border = 1.0f; - win->border = 2.0f; - win->min_row_height_padding = 8; + {/* draw label */ + struct nk_rect label; + header.w = NK_MAX(header.w, sym.w + item_spacing.x); + label.x = sym.x + sym.w + item_spacing.x; + label.y = sym.y; + label.w = header.w - (sym.w + item_spacing.y + style->tab.indent); + label.h = style->font->height; + text.text = style->tab.text; + text.padding = nk_vec2(0,0); + nk_widget_text(out, label, title, nk_strlen(title), &text, + NK_TEXT_LEFT, style->font);} - win->padding = nk_vec2(4,4); - win->group_padding = nk_vec2(4,4); - win->popup_padding = nk_vec2(4,4); - win->combo_padding = nk_vec2(4,4); - win->contextual_padding = nk_vec2(4,4); - win->menu_padding = nk_vec2(4,4); - win->tooltip_padding = nk_vec2(4,4); + /* increase x-axis cursor widget position pointer */ + if (*state == NK_MAXIMIZED) { + layout->at_x = header.x + (float)*layout->offset_x + style->tab.indent; + layout->bounds.w = NK_MAX(layout->bounds.w, style->tab.indent); + layout->bounds.w -= (style->tab.indent + style->window.padding.x); + layout->row.tree_depth++; + return nk_true; + } else return nk_false; } - -NK_API void -nk_style_set_font(struct nk_context *ctx, const struct nk_user_font *font) +NK_INTERN int +nk_tree_base(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image *img, const char *title, enum nk_collapse_states initial_state, + const char *hash, int len, int line) { - struct nk_style *style; - NK_ASSERT(ctx); + struct nk_window *win = ctx->current; + int title_len = 0; + nk_hash tree_hash = 0; + nk_uint *state = 0; - if (!ctx) return; - style = &ctx->style; - style->font = font; - ctx->stacks.fonts.head = 0; - if (ctx->current) - nk_layout_reset_min_row_height(ctx); + /* retrieve tree state from internal widget state tables */ + if (!hash) { + title_len = (int)nk_strlen(title); + tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line); + } else tree_hash = nk_murmur_hash(hash, len, (nk_hash)line); + state = nk_find_value(win, tree_hash); + if (!state) { + state = nk_add_value(ctx, win, tree_hash, 0); + *state = initial_state; + } + return nk_tree_state_base(ctx, type, img, title, (enum nk_collapse_states*)state); } - NK_API int -nk_style_push_font(struct nk_context *ctx, const struct nk_user_font *font) +nk_tree_state_push(struct nk_context *ctx, enum nk_tree_type type, + const char *title, enum nk_collapse_states *state) { - struct nk_config_stack_user_font *font_stack; - struct nk_config_stack_user_font_element *element; + return nk_tree_state_base(ctx, type, 0, title, state); +} +NK_API int +nk_tree_state_image_push(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image img, const char *title, enum nk_collapse_states *state) +{ + return nk_tree_state_base(ctx, type, &img, title, state); +} +NK_API void +nk_tree_state_pop(struct nk_context *ctx) +{ + struct nk_window *win = 0; + struct nk_panel *layout = 0; NK_ASSERT(ctx); - if (!ctx) return 0; - - font_stack = &ctx->stacks.fonts; - NK_ASSERT(font_stack->head < (int)NK_LEN(font_stack->elements)); - if (font_stack->head >= (int)NK_LEN(font_stack->elements)) - return 0; + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - element = &font_stack->elements[font_stack->head++]; - element->address = &ctx->style.font; - element->old_value = ctx->style.font; - ctx->style.font = font; - return 1; + win = ctx->current; + layout = win->layout; + layout->at_x -= ctx->style.tab.indent + ctx->style.window.padding.x; + layout->bounds.w += ctx->style.tab.indent + ctx->style.window.padding.x; + NK_ASSERT(layout->row.tree_depth); + layout->row.tree_depth--; } - NK_API int -nk_style_pop_font(struct nk_context *ctx) +nk_tree_push_hashed(struct nk_context *ctx, enum nk_tree_type type, + const char *title, enum nk_collapse_states initial_state, + const char *hash, int len, int line) { - struct nk_config_stack_user_font *font_stack; - struct nk_config_stack_user_font_element *element; + return nk_tree_base(ctx, type, 0, title, initial_state, hash, len, line); +} +NK_API int +nk_tree_image_push_hashed(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image img, const char *title, enum nk_collapse_states initial_state, + const char *hash, int len,int seed) +{ + return nk_tree_base(ctx, type, &img, title, initial_state, hash, len, seed); +} +NK_API void +nk_tree_pop(struct nk_context *ctx) +{ + nk_tree_state_pop(ctx); +} +NK_INTERN int +nk_tree_element_image_push_hashed_base(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image *img, const char *title, int title_len, + enum nk_collapse_states *state, int *selected) +{ + struct nk_window *win; + struct nk_panel *layout; + const struct nk_style *style; + struct nk_command_buffer *out; + const struct nk_input *in; + const struct nk_style_button *button; + enum nk_symbol_type symbol; + float row_height; + struct nk_vec2 padding; - NK_ASSERT(ctx); - if (!ctx) return 0; + int text_len; + float text_width; - font_stack = &ctx->stacks.fonts; - NK_ASSERT(font_stack->head > 0); - if (font_stack->head < 1) + struct nk_vec2 item_spacing; + struct nk_rect header = {0,0,0,0}; + struct nk_rect sym = {0,0,0,0}; + struct nk_text text; + + nk_flags ws = 0; + enum nk_widget_layout_states widget_state; + + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return 0; - element = &font_stack->elements[--font_stack->head]; - *element->address = element->old_value; - return 1; -} + /* cache some data */ + win = ctx->current; + layout = win->layout; + out = &win->buffer; + style = &ctx->style; + item_spacing = style->window.spacing; + padding = style->selectable.padding; -#define NK_STYLE_PUSH_IMPLEMENATION(prefix, type, stack) \ -nk_style_push_##type(struct nk_context *ctx, prefix##_##type *address, prefix##_##type value)\ -{\ - struct nk_config_stack_##type * type_stack;\ - struct nk_config_stack_##type##_element *element;\ - NK_ASSERT(ctx);\ - if (!ctx) return 0;\ - type_stack = &ctx->stacks.stack;\ - NK_ASSERT(type_stack->head < (int)NK_LEN(type_stack->elements));\ - if (type_stack->head >= (int)NK_LEN(type_stack->elements))\ - return 0;\ - element = &type_stack->elements[type_stack->head++];\ - element->address = address;\ - element->old_value = *address;\ - *address = value;\ - return 1;\ -} + /* calculate header bounds and draw background */ + row_height = style->font->height + 2 * style->tab.padding.y; + nk_layout_set_min_row_height(ctx, row_height); + nk_layout_row_dynamic(ctx, row_height, 1); + nk_layout_reset_min_row_height(ctx); -#define NK_STYLE_POP_IMPLEMENATION(type, stack) \ -nk_style_pop_##type(struct nk_context *ctx)\ -{\ - struct nk_config_stack_##type *type_stack;\ - struct nk_config_stack_##type##_element *element;\ - NK_ASSERT(ctx);\ - if (!ctx) return 0;\ - type_stack = &ctx->stacks.stack;\ - NK_ASSERT(type_stack->head > 0);\ - if (type_stack->head < 1)\ - return 0;\ - element = &type_stack->elements[--type_stack->head];\ - *element->address = element->old_value;\ - return 1;\ -} + widget_state = nk_widget(&header, ctx); + if (type == NK_TREE_TAB) { + const struct nk_style_item *background = &style->tab.background; + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, header, &background->data.image, nk_white); + text.background = nk_rgba(0,0,0,0); + } else { + text.background = background->data.color; + nk_fill_rect(out, header, 0, style->tab.border_color); + nk_fill_rect(out, nk_shrink_rect(header, style->tab.border), + style->tab.rounding, background->data.color); + } + } else text.background = style->window.background; -NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk, style_item, style_items) -NK_API int NK_STYLE_PUSH_IMPLEMENATION(nk,float, floats) -NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk, vec2, vectors) -NK_API int NK_STYLE_PUSH_IMPLEMENATION(nk,flags, flags) -NK_API int NK_STYLE_PUSH_IMPLEMENATION(struct nk,color, colors) + in = (!(layout->flags & NK_WINDOW_ROM)) ? &ctx->input: 0; + in = (in && widget_state == NK_WIDGET_VALID) ? &ctx->input : 0; -NK_API int NK_STYLE_POP_IMPLEMENATION(style_item, style_items) -NK_API int NK_STYLE_POP_IMPLEMENATION(float,floats) -NK_API int NK_STYLE_POP_IMPLEMENATION(vec2, vectors) -NK_API int NK_STYLE_POP_IMPLEMENATION(flags,flags) -NK_API int NK_STYLE_POP_IMPLEMENATION(color,colors) + /* select correct button style */ + if (*state == NK_MAXIMIZED) { + symbol = style->tab.sym_maximize; + if (type == NK_TREE_TAB) + button = &style->tab.tab_maximize_button; + else button = &style->tab.node_maximize_button; + } else { + symbol = style->tab.sym_minimize; + if (type == NK_TREE_TAB) + button = &style->tab.tab_minimize_button; + else button = &style->tab.node_minimize_button; + } + {/* draw triangle button */ + sym.w = sym.h = style->font->height; + sym.y = header.y + style->tab.padding.y; + sym.x = header.x + style->tab.padding.x; + if (nk_do_button_symbol(&ws, &win->buffer, sym, symbol, NK_BUTTON_DEFAULT, button, in, style->font)) + *state = (*state == NK_MAXIMIZED) ? NK_MINIMIZED : NK_MAXIMIZED;} -NK_API int -nk_style_set_cursor(struct nk_context *ctx, enum nk_style_cursor c) -{ - struct nk_style *style; - NK_ASSERT(ctx); - if (!ctx) return 0; - style = &ctx->style; - if (style->cursors[c]) { - style->cursor_active = style->cursors[c]; - return 1; + /* draw label */ + {nk_flags dummy = 0; + struct nk_rect label; + /* calculate size of the text and tooltip */ + text_len = nk_strlen(title); + text_width = style->font->width(style->font->userdata, style->font->height, title, text_len); + text_width += (4 * padding.x); + + header.w = NK_MAX(header.w, sym.w + item_spacing.x); + label.x = sym.x + sym.w + item_spacing.x; + label.y = sym.y; + label.w = NK_MIN(header.w - (sym.w + item_spacing.y + style->tab.indent), text_width); + label.h = style->font->height; + + if (img) { + nk_do_selectable_image(&dummy, &win->buffer, label, title, title_len, NK_TEXT_LEFT, + selected, img, &style->selectable, in, style->font); + } else nk_do_selectable(&dummy, &win->buffer, label, title, title_len, NK_TEXT_LEFT, + selected, &style->selectable, in, style->font); } - return 0; + /* increase x-axis cursor widget position pointer */ + if (*state == NK_MAXIMIZED) { + layout->at_x = header.x + (float)*layout->offset_x + style->tab.indent; + layout->bounds.w = NK_MAX(layout->bounds.w, style->tab.indent); + layout->bounds.w -= (style->tab.indent + style->window.padding.x); + layout->row.tree_depth++; + return nk_true; + } else return nk_false; } - -NK_API void -nk_style_show_cursor(struct nk_context *ctx) +NK_INTERN int +nk_tree_element_base(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image *img, const char *title, enum nk_collapse_states initial_state, + int *selected, const char *hash, int len, int line) { - ctx->style.cursor_visible = nk_true; -} + struct nk_window *win = ctx->current; + int title_len = 0; + nk_hash tree_hash = 0; + nk_uint *state = 0; -NK_API void -nk_style_hide_cursor(struct nk_context *ctx) + /* retrieve tree state from internal widget state tables */ + if (!hash) { + title_len = (int)nk_strlen(title); + tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line); + } else tree_hash = nk_murmur_hash(hash, len, (nk_hash)line); + state = nk_find_value(win, tree_hash); + if (!state) { + state = nk_add_value(ctx, win, tree_hash, 0); + *state = initial_state; + } return nk_tree_element_image_push_hashed_base(ctx, type, img, title, + nk_strlen(title), (enum nk_collapse_states*)state, selected); +} +NK_API int +nk_tree_element_push_hashed(struct nk_context *ctx, enum nk_tree_type type, + const char *title, enum nk_collapse_states initial_state, + int *selected, const char *hash, int len, int seed) { - ctx->style.cursor_visible = nk_false; + return nk_tree_element_base(ctx, type, 0, title, initial_state, selected, hash, len, seed); } - -NK_API void -nk_style_load_cursor(struct nk_context *ctx, enum nk_style_cursor cursor, - const struct nk_cursor *c) +NK_API int +nk_tree_element_image_push_hashed(struct nk_context *ctx, enum nk_tree_type type, + struct nk_image img, const char *title, enum nk_collapse_states initial_state, + int *selected, const char *hash, int len,int seed) { - struct nk_style *style; - NK_ASSERT(ctx); - if (!ctx) return; - style = &ctx->style; - style->cursors[cursor] = c; + return nk_tree_element_base(ctx, type, &img, title, initial_state, selected, hash, len, seed); } - NK_API void -nk_style_load_all_cursors(struct nk_context *ctx, struct nk_cursor *cursors) +nk_tree_element_pop(struct nk_context *ctx) { - int i = 0; - struct nk_style *style; - NK_ASSERT(ctx); - if (!ctx) return; - style = &ctx->style; - for (i = 0; i < NK_CURSOR_COUNT; ++i) - style->cursors[i] = &cursors[i]; - style->cursor_visible = nk_true; + nk_tree_state_pop(ctx); } -/* =============================================================== - * - * POOL - * - * ===============================================================*/ -NK_INTERN void -nk_pool_init(struct nk_pool *pool, struct nk_allocator *alloc, - unsigned int capacity) -{ - nk_zero(pool, sizeof(*pool)); - pool->alloc = *alloc; - pool->capacity = capacity; - pool->type = NK_BUFFER_DYNAMIC; - pool->pages = 0; -} -NK_INTERN void -nk_pool_free(struct nk_pool *pool) -{ - struct nk_page *iter = pool->pages; - if (!pool) return; - if (pool->type == NK_BUFFER_FIXED) return; - while (iter) { - struct nk_page *next = iter->next; - pool->alloc.free(pool->alloc.userdata, iter); - iter = next; - } -} -NK_INTERN void -nk_pool_init_fixed(struct nk_pool *pool, void *memory, nk_size size) -{ - nk_zero(pool, sizeof(*pool)); - NK_ASSERT(size >= sizeof(struct nk_page)); - if (size < sizeof(struct nk_page)) return; - pool->capacity = (unsigned)(size - sizeof(struct nk_page)) / sizeof(struct nk_page_element); - pool->pages = (struct nk_page*)memory; - pool->type = NK_BUFFER_FIXED; - pool->size = size; -} -NK_INTERN struct nk_page_element* -nk_pool_alloc(struct nk_pool *pool) -{ - if (!pool->pages || pool->pages->size >= pool->capacity) { - /* allocate new page */ - struct nk_page *page; - if (pool->type == NK_BUFFER_FIXED) { - if (!pool->pages) { - NK_ASSERT(pool->pages); - return 0; - } - NK_ASSERT(pool->pages->size < pool->capacity); - return 0; - } else { - nk_size size = sizeof(struct nk_page); - size += NK_POOL_DEFAULT_CAPACITY * sizeof(union nk_page_data); - page = (struct nk_page*)pool->alloc.alloc(pool->alloc.userdata,0, size); - page->next = pool->pages; - pool->pages = page; - page->size = 0; - } - } - return &pool->pages->win[pool->pages->size++]; -} /* =============================================================== * - * CONTEXT + * GROUP * * ===============================================================*/ -NK_INTERN void* nk_create_window(struct nk_context *ctx); -NK_INTERN void nk_remove_window(struct nk_context*, struct nk_window*); -NK_INTERN void nk_free_window(struct nk_context *ctx, struct nk_window *win); -NK_INTERN void nk_free_table(struct nk_context *ctx, struct nk_table *tbl); -NK_INTERN void nk_remove_table(struct nk_window *win, struct nk_table *tbl); -NK_INTERN void* nk_create_panel(struct nk_context *ctx); -NK_INTERN void nk_free_panel(struct nk_context*, struct nk_panel *pan); - -NK_INTERN void -nk_setup(struct nk_context *ctx, const struct nk_user_font *font) -{ - NK_ASSERT(ctx); - if (!ctx) return; - nk_zero_struct(*ctx); - nk_style_default(ctx); - ctx->seq = 1; - if (font) ctx->style.font = font; -#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT - nk_draw_list_init(&ctx->draw_list); -#endif -} - -#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR NK_API int -nk_init_default(struct nk_context *ctx, const struct nk_user_font *font) +nk_group_scrolled_offset_begin(struct nk_context *ctx, + nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags) { - struct nk_allocator alloc; - alloc.userdata.ptr = 0; - alloc.alloc = nk_malloc; - alloc.free = nk_mfree; - return nk_init(ctx, &alloc, font); -} -#endif + struct nk_rect bounds; + struct nk_window panel; + struct nk_window *win; -NK_API int -nk_init_fixed(struct nk_context *ctx, void *memory, nk_size size, - const struct nk_user_font *font) -{ - NK_ASSERT(memory); - if (!memory) return 0; - nk_setup(ctx, font); - nk_buffer_init_fixed(&ctx->memory, memory, size); - ctx->use_pool = nk_false; - return 1; -} + win = ctx->current; + nk_panel_alloc_space(&bounds, ctx); + {const struct nk_rect *c = &win->layout->clip; + if (!NK_INTERSECT(c->x, c->y, c->w, c->h, bounds.x, bounds.y, bounds.w, bounds.h) && + !(flags & NK_WINDOW_MOVABLE)) { + return 0; + }} + if (win->flags & NK_WINDOW_ROM) + flags |= NK_WINDOW_ROM; -NK_API int -nk_init_custom(struct nk_context *ctx, struct nk_buffer *cmds, - struct nk_buffer *pool, const struct nk_user_font *font) -{ - NK_ASSERT(cmds); - NK_ASSERT(pool); - if (!cmds || !pool) return 0; + /* initialize a fake window to create the panel from */ + nk_zero(&panel, sizeof(panel)); + panel.bounds = bounds; + panel.flags = flags; + panel.scrollbar.x = *x_offset; + panel.scrollbar.y = *y_offset; + panel.buffer = win->buffer; + panel.layout = (struct nk_panel*)nk_create_panel(ctx); + ctx->current = &panel; + nk_panel_begin(ctx, (flags & NK_WINDOW_TITLE) ? title: 0, NK_PANEL_GROUP); - nk_setup(ctx, font); - ctx->memory = *cmds; - if (pool->type == NK_BUFFER_FIXED) { - /* take memory from buffer and alloc fixed pool */ - nk_pool_init_fixed(&ctx->pool, pool->memory.ptr, pool->memory.size); - } else { - /* create dynamic pool from buffer allocator */ - struct nk_allocator *alloc = &pool->pool; - nk_pool_init(&ctx->pool, alloc, NK_POOL_DEFAULT_CAPACITY); - } - ctx->use_pool = nk_true; - return 1; -} + win->buffer = panel.buffer; + win->buffer.clip = panel.layout->clip; + panel.layout->offset_x = x_offset; + panel.layout->offset_y = y_offset; + panel.layout->parent = win->layout; + win->layout = panel.layout; -NK_API int -nk_init(struct nk_context *ctx, struct nk_allocator *alloc, - const struct nk_user_font *font) -{ - NK_ASSERT(alloc); - if (!alloc) return 0; - nk_setup(ctx, font); - nk_buffer_init(&ctx->memory, alloc, NK_DEFAULT_COMMAND_BUFFER_SIZE); - nk_pool_init(&ctx->pool, alloc, NK_POOL_DEFAULT_CAPACITY); - ctx->use_pool = nk_true; + ctx->current = win; + if ((panel.layout->flags & NK_WINDOW_CLOSED) || + (panel.layout->flags & NK_WINDOW_MINIMIZED)) + { + nk_flags f = panel.layout->flags; + nk_group_scrolled_end(ctx); + if (f & NK_WINDOW_CLOSED) + return NK_WINDOW_CLOSED; + if (f & NK_WINDOW_MINIMIZED) + return NK_WINDOW_MINIMIZED; + } return 1; } - -#ifdef NK_INCLUDE_COMMAND_USERDATA -NK_API void -nk_set_user_data(struct nk_context *ctx, nk_handle handle) -{ - if (!ctx) return; - ctx->userdata = handle; - if (ctx->current) - ctx->current->buffer.userdata = handle; -} -#endif - NK_API void -nk_free(struct nk_context *ctx) +nk_group_scrolled_end(struct nk_context *ctx) { - NK_ASSERT(ctx); - if (!ctx) return; - nk_buffer_free(&ctx->memory); - if (ctx->use_pool) - nk_pool_free(&ctx->pool); - - nk_zero(&ctx->input, sizeof(ctx->input)); - nk_zero(&ctx->style, sizeof(ctx->style)); - nk_zero(&ctx->memory, sizeof(ctx->memory)); - - ctx->seq = 0; - ctx->build = 0; - ctx->begin = 0; - ctx->end = 0; - ctx->active = 0; - ctx->current = 0; - ctx->freelist = 0; - ctx->count = 0; -} + struct nk_window *win; + struct nk_panel *parent; + struct nk_panel *g; + + struct nk_rect clip; + struct nk_window pan; + struct nk_vec2 panel_padding; -NK_API void -nk_clear(struct nk_context *ctx) -{ - struct nk_window *iter; - struct nk_window *next; NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) + return; - if (!ctx) return; - if (ctx->use_pool) - nk_buffer_clear(&ctx->memory); - else nk_buffer_reset(&ctx->memory, NK_BUFFER_FRONT); + /* make sure nk_group_begin was called correctly */ + NK_ASSERT(ctx->current); + win = ctx->current; + NK_ASSERT(win->layout); + g = win->layout; + NK_ASSERT(g->parent); + parent = g->parent; - ctx->build = 0; - ctx->memory.calls = 0; - ctx->last_widget_state = 0; - ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_ARROW]; - NK_MEMSET(&ctx->overlay, 0, sizeof(ctx->overlay)); -#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT - nk_draw_list_clear(&ctx->draw_list); -#endif + /* dummy window */ + nk_zero_struct(pan); + panel_padding = nk_panel_get_padding(&ctx->style, NK_PANEL_GROUP); + pan.bounds.y = g->bounds.y - (g->header_height + g->menu.h); + pan.bounds.x = g->bounds.x - panel_padding.x; + pan.bounds.w = g->bounds.w + 2 * panel_padding.x; + pan.bounds.h = g->bounds.h + g->header_height + g->menu.h; + if (g->flags & NK_WINDOW_BORDER) { + pan.bounds.x -= g->border; + pan.bounds.y -= g->border; + pan.bounds.w += 2*g->border; + pan.bounds.h += 2*g->border; + } + if (!(g->flags & NK_WINDOW_NO_SCROLLBAR)) { + pan.bounds.w += ctx->style.window.scrollbar_size.x; + pan.bounds.h += ctx->style.window.scrollbar_size.y; + } + pan.scrollbar.x = *g->offset_x; + pan.scrollbar.y = *g->offset_y; + pan.flags = g->flags; + pan.buffer = win->buffer; + pan.layout = g; + pan.parent = win; + ctx->current = &pan; - /* garbage collector */ - iter = ctx->begin; - while (iter) { - /* make sure minimized windows do not get removed */ - if ((iter->flags & NK_WINDOW_MINIMIZED) && - !(iter->flags & NK_WINDOW_CLOSED)) { - iter = iter->next; - continue; - } - /* remove hotness from hidden or closed windows*/ - if (((iter->flags & NK_WINDOW_HIDDEN) || - (iter->flags & NK_WINDOW_CLOSED)) && - iter == ctx->active) - ctx->active = iter->next; + /* make sure group has correct clipping rectangle */ + nk_unify(&clip, &parent->clip, pan.bounds.x, pan.bounds.y, + pan.bounds.x + pan.bounds.w, pan.bounds.y + pan.bounds.h + panel_padding.x); + nk_push_scissor(&pan.buffer, clip); + nk_end(ctx); - /* free unused popup windows */ - if (iter->popup.win && iter->popup.win->seq != ctx->seq) { - nk_free_window(ctx, iter->popup.win); - iter->popup.win = 0; - } - /* remove unused window state tables */ - {struct nk_table *n, *it = iter->tables; - while (it) { - n = it->next; - if (it->seq != ctx->seq) { - nk_remove_table(iter, it); - nk_zero(it, sizeof(union nk_page_data)); - nk_free_table(ctx, it); - if (it == iter->tables) - iter->tables = n; - } - it = n; - }} - /* window itself is not used anymore so free */ - if (iter->seq != ctx->seq || iter->flags & NK_WINDOW_CLOSED) { - next = iter->next; - nk_remove_window(ctx, iter); - nk_free_window(ctx, iter); - iter = next; - } else iter = iter->next; - } - ctx->seq++; + win->buffer = pan.buffer; + nk_push_scissor(&win->buffer, parent->clip); + ctx->current = win; + win->layout = parent; + g->bounds = pan.bounds; + return; } - -/* ---------------------------------------------------------------- - * - * BUFFERING - * - * ---------------------------------------------------------------*/ -NK_INTERN void -nk_start_buffer(struct nk_context *ctx, struct nk_command_buffer *buffer) +NK_API int +nk_group_scrolled_begin(struct nk_context *ctx, + struct nk_scroll *scroll, const char *title, nk_flags flags) { - NK_ASSERT(ctx); - NK_ASSERT(buffer); - if (!ctx || !buffer) return; - buffer->begin = ctx->memory.allocated; - buffer->end = buffer->begin; - buffer->last = buffer->begin; - buffer->clip = nk_null_rect; + return nk_group_scrolled_offset_begin(ctx, &scroll->x, &scroll->y, title, flags); } - -NK_INTERN void -nk_start(struct nk_context *ctx, struct nk_window *win) +NK_API int +nk_group_begin_titled(struct nk_context *ctx, const char *id, + const char *title, nk_flags flags) { - NK_ASSERT(ctx); - NK_ASSERT(win); - nk_start_buffer(ctx, &win->buffer); -} + int id_len; + nk_hash id_hash; + struct nk_window *win; + nk_uint *x_offset; + nk_uint *y_offset; -NK_INTERN void -nk_start_popup(struct nk_context *ctx, struct nk_window *win) -{ - struct nk_popup_buffer *buf; NK_ASSERT(ctx); - NK_ASSERT(win); - if (!ctx || !win) return; + NK_ASSERT(id); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout || !id) + return 0; - /* save buffer fill state for popup */ - buf = &win->popup.buf; - buf->begin = win->buffer.end; - buf->end = win->buffer.end; - buf->parent = win->buffer.last; - buf->last = buf->begin; - buf->active = nk_true; -} + /* find persistent group scrollbar value */ + win = ctx->current; + id_len = (int)nk_strlen(id); + id_hash = nk_murmur_hash(id, (int)id_len, NK_PANEL_GROUP); + x_offset = nk_find_value(win, id_hash); + if (!x_offset) { + x_offset = nk_add_value(ctx, win, id_hash, 0); + y_offset = nk_add_value(ctx, win, id_hash+1, 0); -NK_INTERN void -nk_finish_popup(struct nk_context *ctx, struct nk_window *win) + NK_ASSERT(x_offset); + NK_ASSERT(y_offset); + if (!x_offset || !y_offset) return 0; + *x_offset = *y_offset = 0; + } else y_offset = nk_find_value(win, id_hash+1); + return nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags); +} +NK_API int +nk_group_begin(struct nk_context *ctx, const char *title, nk_flags flags) { - struct nk_popup_buffer *buf; - NK_ASSERT(ctx); - NK_ASSERT(win); - if (!ctx || !win) return; - - buf = &win->popup.buf; - buf->last = win->buffer.last; - buf->end = win->buffer.end; + return nk_group_begin_titled(ctx, title, title, flags); } - -NK_INTERN void -nk_finish_buffer(struct nk_context *ctx, struct nk_command_buffer *buffer) +NK_API void +nk_group_end(struct nk_context *ctx) { - NK_ASSERT(ctx); - NK_ASSERT(buffer); - if (!ctx || !buffer) return; - buffer->end = ctx->memory.allocated; + nk_group_scrolled_end(ctx); } -NK_INTERN void -nk_finish(struct nk_context *ctx, struct nk_window *win) -{ - struct nk_popup_buffer *buf; - struct nk_command *parent_last; - void *memory; - NK_ASSERT(ctx); - NK_ASSERT(win); - if (!ctx || !win) return; - nk_finish_buffer(ctx, &win->buffer); - if (!win->popup.buf.active) return; - buf = &win->popup.buf; - memory = ctx->memory.memory.ptr; - parent_last = nk_ptr_add(struct nk_command, memory, buf->parent); - parent_last->next = buf->end; -} -NK_INTERN void -nk_build(struct nk_context *ctx) + +/* =============================================================== + * + * LIST VIEW + * + * ===============================================================*/ +NK_API int +nk_list_view_begin(struct nk_context *ctx, struct nk_list_view *view, + const char *title, nk_flags flags, int row_height, int row_count) { - struct nk_window *iter = 0; - struct nk_command *cmd = 0; - nk_byte *buffer = 0; + int title_len; + nk_hash title_hash; + nk_uint *x_offset; + nk_uint *y_offset; - /* draw cursor overlay */ - if (!ctx->style.cursor_active) - ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_ARROW]; - if (ctx->style.cursor_active && !ctx->input.mouse.grabbed && ctx->style.cursor_visible) { - struct nk_rect mouse_bounds; - const struct nk_cursor *cursor = ctx->style.cursor_active; - nk_command_buffer_init(&ctx->overlay, &ctx->memory, NK_CLIPPING_OFF); - nk_start_buffer(ctx, &ctx->overlay); + int result; + struct nk_window *win; + struct nk_panel *layout; + const struct nk_style *style; + struct nk_vec2 item_spacing; - mouse_bounds.x = ctx->input.mouse.pos.x - cursor->offset.x; - mouse_bounds.y = ctx->input.mouse.pos.y - cursor->offset.y; - mouse_bounds.w = cursor->size.x; - mouse_bounds.h = cursor->size.y; + NK_ASSERT(ctx); + NK_ASSERT(view); + NK_ASSERT(title); + if (!ctx || !view || !title) return 0; - nk_draw_image(&ctx->overlay, mouse_bounds, &cursor->img, nk_white); - nk_finish_buffer(ctx, &ctx->overlay); - } - /* build one big draw command list out of all window buffers */ - iter = ctx->begin; - buffer = (nk_byte*)ctx->memory.memory.ptr; - while (iter != 0) { - struct nk_window *next = iter->next; - if (iter->buffer.last == iter->buffer.begin || (iter->flags & NK_WINDOW_HIDDEN)|| - iter->seq != ctx->seq) - goto cont; + win = ctx->current; + style = &ctx->style; + item_spacing = style->window.spacing; + row_height += NK_MAX(0, (int)item_spacing.y); - cmd = nk_ptr_add(struct nk_command, buffer, iter->buffer.last); - while (next && ((next->buffer.last == next->buffer.begin) || - (next->flags & NK_WINDOW_HIDDEN))) - next = next->next; /* skip empty command buffers */ + /* find persistent list view scrollbar offset */ + title_len = (int)nk_strlen(title); + title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_GROUP); + x_offset = nk_find_value(win, title_hash); + if (!x_offset) { + x_offset = nk_add_value(ctx, win, title_hash, 0); + y_offset = nk_add_value(ctx, win, title_hash+1, 0); - if (next) cmd->next = next->buffer.begin; - cont: iter = next; - } - /* append all popup draw commands into lists */ - iter = ctx->begin; - while (iter != 0) { - struct nk_window *next = iter->next; - struct nk_popup_buffer *buf; - if (!iter->popup.buf.active) - goto skip; + NK_ASSERT(x_offset); + NK_ASSERT(y_offset); + if (!x_offset || !y_offset) return 0; + *x_offset = *y_offset = 0; + } else y_offset = nk_find_value(win, title_hash+1); + view->scroll_value = *y_offset; + view->scroll_pointer = y_offset; + + *y_offset = 0; + result = nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags); + win = ctx->current; + layout = win->layout; - buf = &iter->popup.buf; - cmd->next = buf->begin; - cmd = nk_ptr_add(struct nk_command, buffer, buf->last); - buf->active = nk_false; - skip: iter = next; - } - /* append overlay commands */ - if (cmd) { - if (ctx->overlay.end != ctx->overlay.begin) - cmd->next = ctx->overlay.begin; - else cmd->next = ctx->memory.allocated; - } + view->total_height = row_height * NK_MAX(row_count,1); + view->begin = (int)NK_MAX(((float)view->scroll_value / (float)row_height), 0.0f); + view->count = (int)NK_MAX(nk_iceilf((layout->clip.h)/(float)row_height),0); + view->count = NK_MIN(view->count, row_count - view->begin); + view->end = view->begin + view->count; + view->ctx = ctx; + return result; } - -NK_API const struct nk_command* -nk__begin(struct nk_context *ctx) +NK_API void +nk_list_view_end(struct nk_list_view *view) { - struct nk_window *iter; - nk_byte *buffer; - NK_ASSERT(ctx); - if (!ctx) return 0; - if (!ctx->count) return 0; + struct nk_context *ctx; + struct nk_window *win; + struct nk_panel *layout; - buffer = (nk_byte*)ctx->memory.memory.ptr; - if (!ctx->build) { - nk_build(ctx); - ctx->build = nk_true; - } - iter = ctx->begin; - while (iter && ((iter->buffer.begin == iter->buffer.end) || (iter->flags & NK_WINDOW_HIDDEN))) - iter = iter->next; - if (!iter) return 0; - return nk_ptr_add_const(struct nk_command, buffer, iter->buffer.begin); -} + NK_ASSERT(view); + NK_ASSERT(view->ctx); + NK_ASSERT(view->scroll_pointer); + if (!view || !view->ctx) return; -NK_API const struct nk_command* -nk__next(struct nk_context *ctx, const struct nk_command *cmd) -{ - nk_byte *buffer; - const struct nk_command *next; - NK_ASSERT(ctx); - if (!ctx || !cmd || !ctx->count) return 0; - if (cmd->next >= ctx->memory.allocated) return 0; - buffer = (nk_byte*)ctx->memory.memory.ptr; - next = nk_ptr_add_const(struct nk_command, buffer, cmd->next); - return next; + ctx = view->ctx; + win = ctx->current; + layout = win->layout; + layout->at_y = layout->bounds.y + (float)view->total_height; + *view->scroll_pointer = *view->scroll_pointer + view->scroll_value; + nk_group_end(view->ctx); } -/* ---------------------------------------------------------------- + + + + +/* =============================================================== * - * PANEL + * WIDGET * - * ---------------------------------------------------------------*/ -static int -nk_panel_has_header(nk_flags flags, const char *title) + * ===============================================================*/ +NK_API struct nk_rect +nk_widget_bounds(struct nk_context *ctx) { - int active = 0; - active = (flags & (NK_WINDOW_CLOSABLE|NK_WINDOW_MINIMIZABLE)); - active = active || (flags & NK_WINDOW_TITLE); - active = active && !(flags & NK_WINDOW_HIDDEN) && title; - return active; + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) + return nk_rect(0,0,0,0); + nk_layout_peek(&bounds, ctx); + return bounds; } - -NK_INTERN struct nk_vec2 -nk_panel_get_padding(const struct nk_style *style, enum nk_panel_type type) +NK_API struct nk_vec2 +nk_widget_position(struct nk_context *ctx) { - switch (type) { - default: - case NK_PANEL_WINDOW: return style->window.padding; - case NK_PANEL_GROUP: return style->window.group_padding; - case NK_PANEL_POPUP: return style->window.popup_padding; - case NK_PANEL_CONTEXTUAL: return style->window.contextual_padding; - case NK_PANEL_COMBO: return style->window.combo_padding; - case NK_PANEL_MENU: return style->window.menu_padding; - case NK_PANEL_TOOLTIP: return style->window.menu_padding; - } -} + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) + return nk_vec2(0,0); -NK_INTERN float -nk_panel_get_border(const struct nk_style *style, nk_flags flags, - enum nk_panel_type type) -{ - if (flags & NK_WINDOW_BORDER) { - switch (type) { - default: - case NK_PANEL_WINDOW: return style->window.border; - case NK_PANEL_GROUP: return style->window.group_border; - case NK_PANEL_POPUP: return style->window.popup_border; - case NK_PANEL_CONTEXTUAL: return style->window.contextual_border; - case NK_PANEL_COMBO: return style->window.combo_border; - case NK_PANEL_MENU: return style->window.menu_border; - case NK_PANEL_TOOLTIP: return style->window.menu_border; - }} else return 0; + nk_layout_peek(&bounds, ctx); + return nk_vec2(bounds.x, bounds.y); } - -NK_INTERN struct nk_color -nk_panel_get_border_color(const struct nk_style *style, enum nk_panel_type type) +NK_API struct nk_vec2 +nk_widget_size(struct nk_context *ctx) { - switch (type) { - default: - case NK_PANEL_WINDOW: return style->window.border_color; - case NK_PANEL_GROUP: return style->window.group_border_color; - case NK_PANEL_POPUP: return style->window.popup_border_color; - case NK_PANEL_CONTEXTUAL: return style->window.contextual_border_color; - case NK_PANEL_COMBO: return style->window.combo_border_color; - case NK_PANEL_MENU: return style->window.menu_border_color; - case NK_PANEL_TOOLTIP: return style->window.menu_border_color; - } -} + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) + return nk_vec2(0,0); -NK_INTERN int -nk_panel_is_sub(enum nk_panel_type type) -{ - return (type & NK_PANEL_SET_SUB)?1:0; + nk_layout_peek(&bounds, ctx); + return nk_vec2(bounds.w, bounds.h); } - -NK_INTERN int -nk_panel_is_nonblock(enum nk_panel_type type) +NK_API float +nk_widget_width(struct nk_context *ctx) { - return (type & NK_PANEL_SET_NONBLOCK)?1:0; -} + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) + return 0; -NK_INTERN int -nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type) + nk_layout_peek(&bounds, ctx); + return bounds.w; +} +NK_API float +nk_widget_height(struct nk_context *ctx) { - struct nk_input *in; - struct nk_window *win; - struct nk_panel *layout; - struct nk_command_buffer *out; - const struct nk_style *style; - const struct nk_user_font *font; - - struct nk_vec2 scrollbar_size; - struct nk_vec2 panel_padding; - + struct nk_rect bounds; NK_ASSERT(ctx); NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) return 0; - nk_zero(ctx->current->layout, sizeof(*ctx->current->layout)); - if ((ctx->current->flags & NK_WINDOW_HIDDEN) || (ctx->current->flags & NK_WINDOW_CLOSED)) { - nk_zero(ctx->current->layout, sizeof(struct nk_panel)); - ctx->current->layout->type = panel_type; + if (!ctx || !ctx->current) return 0; - } - /* pull state into local stack */ - style = &ctx->style; - font = style->font; - win = ctx->current; - layout = win->layout; - out = &win->buffer; - in = (win->flags & NK_WINDOW_NO_INPUT) ? 0: &ctx->input; -#ifdef NK_INCLUDE_COMMAND_USERDATA - win->buffer.userdata = ctx->userdata; -#endif - /* pull style configuration into local stack */ - scrollbar_size = style->window.scrollbar_size; - panel_padding = nk_panel_get_padding(style, panel_type); - - /* window movement */ - if ((win->flags & NK_WINDOW_MOVABLE) && !(win->flags & NK_WINDOW_ROM)) { - int left_mouse_down; - int left_mouse_click_in_cursor; - - /* calculate draggable window space */ - struct nk_rect header; - header.x = win->bounds.x; - header.y = win->bounds.y; - header.w = win->bounds.w; - if (nk_panel_has_header(win->flags, title)) { - header.h = font->height + 2.0f * style->window.header.padding.y; - header.h += 2.0f * style->window.header.label_padding.y; - } else header.h = panel_padding.y; - - /* window movement by dragging */ - left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, - NK_BUTTON_LEFT, header, nk_true); - if (left_mouse_down && left_mouse_click_in_cursor) { - win->bounds.x = win->bounds.x + in->mouse.delta.x; - win->bounds.y = win->bounds.y + in->mouse.delta.y; - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x += in->mouse.delta.x; - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y += in->mouse.delta.y; - ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_MOVE]; - } - } - /* setup panel */ - layout->type = panel_type; - layout->flags = win->flags; - layout->bounds = win->bounds; - layout->bounds.x += panel_padding.x; - layout->bounds.w -= 2*panel_padding.x; - if (win->flags & NK_WINDOW_BORDER) { - layout->border = nk_panel_get_border(style, win->flags, panel_type); - layout->bounds = nk_shrink_rect(layout->bounds, layout->border); - } else layout->border = 0; - layout->at_y = layout->bounds.y; - layout->at_x = layout->bounds.x; - layout->max_x = 0; - layout->header_height = 0; - layout->footer_height = 0; - nk_layout_reset_min_row_height(ctx); - layout->row.index = 0; - layout->row.columns = 0; - layout->row.ratio = 0; - layout->row.item_width = 0; - layout->row.tree_depth = 0; - layout->row.height = panel_padding.y; - layout->has_scrolling = nk_true; - if (!(win->flags & NK_WINDOW_NO_SCROLLBAR)) - layout->bounds.w -= scrollbar_size.x; - if (!nk_panel_is_nonblock(panel_type)) { - layout->footer_height = 0; - if (!(win->flags & NK_WINDOW_NO_SCROLLBAR) || win->flags & NK_WINDOW_SCALABLE) - layout->footer_height = scrollbar_size.y; - layout->bounds.h -= layout->footer_height; - } + nk_layout_peek(&bounds, ctx); + return bounds.h; +} +NK_API int +nk_widget_is_hovered(struct nk_context *ctx) +{ + struct nk_rect c, v; + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current || ctx->active != ctx->current) + return 0; - /* panel header */ - if (nk_panel_has_header(win->flags, title)) - { - struct nk_text text; - struct nk_rect header; - const struct nk_style_item *background = 0; + c = ctx->current->layout->clip; + c.x = (float)((int)c.x); + c.y = (float)((int)c.y); + c.w = (float)((int)c.w); + c.h = (float)((int)c.h); - /* calculate header bounds */ - header.x = win->bounds.x; - header.y = win->bounds.y; - header.w = win->bounds.w; - header.h = font->height + 2.0f * style->window.header.padding.y; - header.h += (2.0f * style->window.header.label_padding.y); + nk_layout_peek(&bounds, ctx); + nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); + if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) + return 0; + return nk_input_is_mouse_hovering_rect(&ctx->input, bounds); +} +NK_API int +nk_widget_is_mouse_clicked(struct nk_context *ctx, enum nk_buttons btn) +{ + struct nk_rect c, v; + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current || ctx->active != ctx->current) + return 0; - /* shrink panel by header */ - layout->header_height = header.h; - layout->bounds.y += header.h; - layout->bounds.h -= header.h; - layout->at_y += header.h; + c = ctx->current->layout->clip; + c.x = (float)((int)c.x); + c.y = (float)((int)c.y); + c.w = (float)((int)c.w); + c.h = (float)((int)c.h); - /* select correct header background and text color */ - if (ctx->active == win) { - background = &style->window.header.active; - text.text = style->window.header.label_active; - } else if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) { - background = &style->window.header.hover; - text.text = style->window.header.label_hover; - } else { - background = &style->window.header.normal; - text.text = style->window.header.label_normal; - } + nk_layout_peek(&bounds, ctx); + nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); + if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) + return 0; + return nk_input_mouse_clicked(&ctx->input, btn, bounds); +} +NK_API int +nk_widget_has_mouse_click_down(struct nk_context *ctx, enum nk_buttons btn, int down) +{ + struct nk_rect c, v; + struct nk_rect bounds; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current || ctx->active != ctx->current) + return 0; - /* draw header background */ - header.h += 1.0f; - if (background->type == NK_STYLE_ITEM_IMAGE) { - text.background = nk_rgba(0,0,0,0); - nk_draw_image(&win->buffer, header, &background->data.image, nk_white); - } else { - text.background = background->data.color; - nk_fill_rect(out, header, 0, background->data.color); - } + c = ctx->current->layout->clip; + c.x = (float)((int)c.x); + c.y = (float)((int)c.y); + c.w = (float)((int)c.w); + c.h = (float)((int)c.h); - /* window close button */ - {struct nk_rect button; - button.y = header.y + style->window.header.padding.y; - button.h = header.h - 2 * style->window.header.padding.y; - button.w = button.h; - if (win->flags & NK_WINDOW_CLOSABLE) { - nk_flags ws = 0; - if (style->window.header.align == NK_HEADER_RIGHT) { - button.x = (header.w + header.x) - (button.w + style->window.header.padding.x); - header.w -= button.w + style->window.header.spacing.x + style->window.header.padding.x; - } else { - button.x = header.x + style->window.header.padding.x; - header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x; - } + nk_layout_peek(&bounds, ctx); + nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); + if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) + return 0; + return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down); +} +NK_API enum nk_widget_layout_states +nk_widget(struct nk_rect *bounds, const struct nk_context *ctx) +{ + struct nk_rect c, v; + struct nk_window *win; + struct nk_panel *layout; + const struct nk_input *in; - if (nk_do_button_symbol(&ws, &win->buffer, button, - style->window.header.close_symbol, NK_BUTTON_DEFAULT, - &style->window.header.close_button, in, style->font) && !(win->flags & NK_WINDOW_ROM)) - { - layout->flags |= NK_WINDOW_HIDDEN; - layout->flags &= (nk_flags)~NK_WINDOW_MINIMIZED; - } - } + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return NK_WIDGET_INVALID; - /* window minimize button */ - if (win->flags & NK_WINDOW_MINIMIZABLE) { - nk_flags ws = 0; - if (style->window.header.align == NK_HEADER_RIGHT) { - button.x = (header.w + header.x) - button.w; - if (!(win->flags & NK_WINDOW_CLOSABLE)) { - button.x -= style->window.header.padding.x; - header.w -= style->window.header.padding.x; - } - header.w -= button.w + style->window.header.spacing.x; - } else { - button.x = header.x; - header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x; - } - if (nk_do_button_symbol(&ws, &win->buffer, button, (layout->flags & NK_WINDOW_MINIMIZED)? - style->window.header.maximize_symbol: style->window.header.minimize_symbol, - NK_BUTTON_DEFAULT, &style->window.header.minimize_button, in, style->font) && !(win->flags & NK_WINDOW_ROM)) - layout->flags = (layout->flags & NK_WINDOW_MINIMIZED) ? - layout->flags & (nk_flags)~NK_WINDOW_MINIMIZED: - layout->flags | NK_WINDOW_MINIMIZED; - }} + /* allocate space and check if the widget needs to be updated and drawn */ + nk_panel_alloc_space(bounds, ctx); + win = ctx->current; + layout = win->layout; + in = &ctx->input; + c = layout->clip; - {/* window header title */ - int text_len = nk_strlen(title); - struct nk_rect label = {0,0,0,0}; - float t = font->width(font->userdata, font->height, title, text_len); - text.padding = nk_vec2(0,0); + /* if one of these triggers you forgot to add an `if` condition around either + a window, group, popup, combobox or contextual menu `begin` and `end` block. + Example: + if (nk_begin(...) {...} nk_end(...); or + if (nk_group_begin(...) { nk_group_end(...);} */ + NK_ASSERT(!(layout->flags & NK_WINDOW_MINIMIZED)); + NK_ASSERT(!(layout->flags & NK_WINDOW_HIDDEN)); + NK_ASSERT(!(layout->flags & NK_WINDOW_CLOSED)); - label.x = header.x + style->window.header.padding.x; - label.x += style->window.header.label_padding.x; - label.y = header.y + style->window.header.label_padding.y; - label.h = font->height + 2 * style->window.header.label_padding.y; - label.w = t + 2 * style->window.header.spacing.x; - label.w = NK_CLAMP(0, label.w, header.x + header.w - label.x); - nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);} - } + /* need to convert to int here to remove floating point errors */ + bounds->x = (float)((int)bounds->x); + bounds->y = (float)((int)bounds->y); + bounds->w = (float)((int)bounds->w); + bounds->h = (float)((int)bounds->h); - /* draw window background */ - if (!(layout->flags & NK_WINDOW_MINIMIZED) && !(layout->flags & NK_WINDOW_DYNAMIC)) { - struct nk_rect body; - body.x = win->bounds.x; - body.w = win->bounds.w; - body.y = (win->bounds.y + layout->header_height); - body.h = (win->bounds.h - layout->header_height); - if (style->window.fixed_background.type == NK_STYLE_ITEM_IMAGE) - nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white); - else nk_fill_rect(out, body, 0, style->window.fixed_background.data.color); - } + c.x = (float)((int)c.x); + c.y = (float)((int)c.y); + c.w = (float)((int)c.w); + c.h = (float)((int)c.h); - /* set clipping rectangle */ - {struct nk_rect clip; - layout->clip = layout->bounds; - nk_unify(&clip, &win->buffer.clip, layout->clip.x, layout->clip.y, - layout->clip.x + layout->clip.w, layout->clip.y + layout->clip.h); - nk_push_scissor(out, clip); - layout->clip = clip;} - return !(layout->flags & NK_WINDOW_HIDDEN) && !(layout->flags & NK_WINDOW_MINIMIZED); + nk_unify(&v, &c, bounds->x, bounds->y, bounds->x + bounds->w, bounds->y + bounds->h); + if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds->x, bounds->y, bounds->w, bounds->h)) + return NK_WIDGET_INVALID; + if (!NK_INBOX(in->mouse.pos.x, in->mouse.pos.y, v.x, v.y, v.w, v.h)) + return NK_WIDGET_ROM; + return NK_WIDGET_VALID; } - -NK_INTERN void -nk_panel_end(struct nk_context *ctx) +NK_API enum nk_widget_layout_states +nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx, + struct nk_vec2 item_padding) { - struct nk_input *in; - struct nk_window *window; + /* update the bounds to stand without padding */ + struct nk_window *win; + struct nk_style *style; struct nk_panel *layout; - const struct nk_style *style; - struct nk_command_buffer *out; - - struct nk_vec2 scrollbar_size; + enum nk_widget_layout_states state; struct nk_vec2 panel_padding; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return NK_WIDGET_INVALID; - window = ctx->current; - layout = window->layout; + win = ctx->current; style = &ctx->style; - out = &window->buffer; - in = (layout->flags & NK_WINDOW_ROM || layout->flags & NK_WINDOW_NO_INPUT) ? 0 :&ctx->input; - if (!nk_panel_is_sub(layout->type)) - nk_push_scissor(out, nk_null_rect); + layout = win->layout; + state = nk_widget(bounds, ctx); - /* cache configuration data */ - scrollbar_size = style->window.scrollbar_size; panel_padding = nk_panel_get_padding(style, layout->type); + if (layout->row.index == 1) { + bounds->w += panel_padding.x; + bounds->x -= panel_padding.x; + } else bounds->x -= item_padding.x; + + if (layout->row.index == layout->row.columns) + bounds->w += panel_padding.x; + else bounds->w += item_padding.x; + return state; +} +NK_API void +nk_spacing(struct nk_context *ctx, int cols) +{ + struct nk_window *win; + struct nk_panel *layout; + struct nk_rect none; + int i, index, rows; - /* update the current cursor Y-position to point over the last added widget */ - layout->at_y += layout->row.height; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return; - /* dynamic panels */ - if (layout->flags & NK_WINDOW_DYNAMIC && !(layout->flags & NK_WINDOW_MINIMIZED)) - { - /* update panel height to fit dynamic growth */ - struct nk_rect empty_space; - if (layout->at_y < (layout->bounds.y + layout->bounds.h)) - layout->bounds.h = layout->at_y - layout->bounds.y; + /* spacing over row boundaries */ + win = ctx->current; + layout = win->layout; + index = (layout->row.index + cols) % layout->row.columns; + rows = (layout->row.index + cols) / layout->row.columns; + if (rows) { + for (i = 0; i < rows; ++i) + nk_panel_alloc_row(ctx, win); + cols = index; + } + /* non table layout need to allocate space */ + if (layout->row.type != NK_LAYOUT_DYNAMIC_FIXED && + layout->row.type != NK_LAYOUT_STATIC_FIXED) { + for (i = 0; i < cols; ++i) + nk_panel_alloc_space(&none, ctx); + } layout->row.index = index; +} - /* fill top empty space */ - empty_space.x = window->bounds.x; - empty_space.y = layout->bounds.y; - empty_space.h = panel_padding.y; - empty_space.w = window->bounds.w; - nk_fill_rect(out, empty_space, 0, style->window.background); - /* fill left empty space */ - empty_space.x = window->bounds.x; - empty_space.y = layout->bounds.y; - empty_space.w = panel_padding.x + layout->border; - empty_space.h = layout->bounds.h; - nk_fill_rect(out, empty_space, 0, style->window.background); - /* fill right empty space */ - empty_space.x = layout->bounds.x + layout->bounds.w - layout->border; - empty_space.y = layout->bounds.y; - empty_space.w = panel_padding.x + layout->border; - empty_space.h = layout->bounds.h; - if (*layout->offset_y == 0 && !(layout->flags & NK_WINDOW_NO_SCROLLBAR)) - empty_space.w += scrollbar_size.x; - nk_fill_rect(out, empty_space, 0, style->window.background); - /* fill bottom empty space */ - if (*layout->offset_x != 0 && !(layout->flags & NK_WINDOW_NO_SCROLLBAR)) { - empty_space.x = window->bounds.x; - empty_space.y = layout->bounds.y + layout->bounds.h; - empty_space.w = window->bounds.w; - empty_space.h = scrollbar_size.y; - nk_fill_rect(out, empty_space, 0, style->window.background); - } - } - /* scrollbars */ - if (!(layout->flags & NK_WINDOW_NO_SCROLLBAR) && - !(layout->flags & NK_WINDOW_MINIMIZED) && - window->scrollbar_hiding_timer < NK_SCROLLBAR_HIDING_TIMEOUT) - { - struct nk_rect scroll; - int scroll_has_scrolling; - float scroll_target; - float scroll_offset; - float scroll_step; - float scroll_inc; +/* =============================================================== + * + * TEXT + * + * ===============================================================*/ +NK_LIB void +nk_widget_text(struct nk_command_buffer *o, struct nk_rect b, + const char *string, int len, const struct nk_text *t, + nk_flags a, const struct nk_user_font *f) +{ + struct nk_rect label; + float text_width; - /* mouse wheel scrolling */ - if (nk_panel_is_sub(layout->type)) - { - /* sub-window mouse wheel scrolling */ - struct nk_window *root_window = window; - struct nk_panel *root_panel = window->layout; - while (root_panel->parent) - root_panel = root_panel->parent; - while (root_window->parent) - root_window = root_window->parent; + NK_ASSERT(o); + NK_ASSERT(t); + if (!o || !t) return; - /* only allow scrolling if parent window is active */ - scroll_has_scrolling = 0; - if ((root_window == ctx->active) && layout->has_scrolling) { - /* and panel is being hovered and inside clip rect*/ - if (nk_input_is_mouse_hovering_rect(in, layout->bounds) && - NK_INTERSECT(layout->bounds.x, layout->bounds.y, layout->bounds.w, layout->bounds.h, - root_panel->clip.x, root_panel->clip.y, root_panel->clip.w, root_panel->clip.h)) - { - /* deactivate all parent scrolling */ - root_panel = window->layout; - while (root_panel->parent) { - root_panel->has_scrolling = nk_false; - root_panel = root_panel->parent; - } - root_panel->has_scrolling = nk_false; - scroll_has_scrolling = nk_true; - } - } - } else if (!nk_panel_is_sub(layout->type)) { - /* window mouse wheel scrolling */ - scroll_has_scrolling = (window == ctx->active) && layout->has_scrolling; - if (in && (in->mouse.scroll_delta.y > 0 || in->mouse.scroll_delta.x > 0) && scroll_has_scrolling) - window->scrolled = nk_true; - else window->scrolled = nk_false; - } else scroll_has_scrolling = nk_false; + b.h = NK_MAX(b.h, 2 * t->padding.y); + label.x = 0; label.w = 0; + label.y = b.y + t->padding.y; + label.h = NK_MIN(f->height, b.h - 2 * t->padding.y); - { - /* vertical scrollbar */ - nk_flags state = 0; - scroll.x = layout->bounds.x + layout->bounds.w + panel_padding.x; - scroll.y = layout->bounds.y; - scroll.w = scrollbar_size.x; - scroll.h = layout->bounds.h; + text_width = f->width(f->userdata, f->height, (const char*)string, len); + text_width += (2.0f * t->padding.x); - scroll_offset = (float)*layout->offset_y; - scroll_step = scroll.h * 0.10f; - scroll_inc = scroll.h * 0.01f; - scroll_target = (float)(int)(layout->at_y - scroll.y); - scroll_offset = nk_do_scrollbarv(&state, out, scroll, scroll_has_scrolling, - scroll_offset, scroll_target, scroll_step, scroll_inc, - &ctx->style.scrollv, in, style->font); - *layout->offset_y = (nk_uint)scroll_offset; - if (in && scroll_has_scrolling) - in->mouse.scroll_delta.y = 0; - } - { - /* horizontal scrollbar */ - nk_flags state = 0; - scroll.x = layout->bounds.x; - scroll.y = layout->bounds.y + layout->bounds.h; - scroll.w = layout->bounds.w; - scroll.h = scrollbar_size.y; + /* align in x-axis */ + if (a & NK_TEXT_ALIGN_LEFT) { + label.x = b.x + t->padding.x; + label.w = NK_MAX(0, b.w - 2 * t->padding.x); + } else if (a & NK_TEXT_ALIGN_CENTERED) { + label.w = NK_MAX(1, 2 * t->padding.x + (float)text_width); + label.x = (b.x + t->padding.x + ((b.w - 2 * t->padding.x) - label.w) / 2); + label.x = NK_MAX(b.x + t->padding.x, label.x); + label.w = NK_MIN(b.x + b.w, label.x + label.w); + if (label.w >= label.x) label.w -= label.x; + } else if (a & NK_TEXT_ALIGN_RIGHT) { + label.x = NK_MAX(b.x + t->padding.x, (b.x + b.w) - (2 * t->padding.x + (float)text_width)); + label.w = (float)text_width + 2 * t->padding.x; + } else return; - scroll_offset = (float)*layout->offset_x; - scroll_target = (float)(int)(layout->max_x - scroll.x); - scroll_step = layout->max_x * 0.05f; - scroll_inc = layout->max_x * 0.005f; - scroll_offset = nk_do_scrollbarh(&state, out, scroll, scroll_has_scrolling, - scroll_offset, scroll_target, scroll_step, scroll_inc, - &ctx->style.scrollh, in, style->font); - *layout->offset_x = (nk_uint)scroll_offset; - } + /* align in y-axis */ + if (a & NK_TEXT_ALIGN_MIDDLE) { + label.y = b.y + b.h/2.0f - (float)f->height/2.0f; + label.h = NK_MAX(b.h/2.0f, b.h - (b.h/2.0f + f->height/2.0f)); + } else if (a & NK_TEXT_ALIGN_BOTTOM) { + label.y = b.y + b.h - f->height; + label.h = f->height; } + nk_draw_text(o, label, (const char*)string, len, f, t->background, t->text); +} +NK_LIB void +nk_widget_text_wrap(struct nk_command_buffer *o, struct nk_rect b, + const char *string, int len, const struct nk_text *t, + const struct nk_user_font *f) +{ + float width; + int glyphs = 0; + int fitting = 0; + int done = 0; + struct nk_rect line; + struct nk_text text; + NK_INTERN nk_rune seperator[] = {' '}; - /* hide scroll if no user input */ - if (window->flags & NK_WINDOW_SCROLL_AUTO_HIDE) { - int has_input = ctx->input.mouse.delta.x != 0 || ctx->input.mouse.delta.y != 0 || ctx->input.mouse.scroll_delta.y != 0; - int is_window_hovered = nk_window_is_hovered(ctx); - int any_item_active = (ctx->last_widget_state & NK_WIDGET_STATE_MODIFIED); - if ((!has_input && is_window_hovered) || (!is_window_hovered && !any_item_active)) - window->scrollbar_hiding_timer += ctx->delta_time_seconds; - else window->scrollbar_hiding_timer = 0; - } else window->scrollbar_hiding_timer = 0; - - /* window border */ - if (layout->flags & NK_WINDOW_BORDER) - { - struct nk_color border_color = nk_panel_get_border_color(style, layout->type); - const float padding_y = (layout->flags & NK_WINDOW_MINIMIZED) ? - style->window.border + window->bounds.y + layout->header_height: - (layout->flags & NK_WINDOW_DYNAMIC)? - layout->bounds.y + layout->bounds.h + layout->footer_height: - window->bounds.y + window->bounds.h; + NK_ASSERT(o); + NK_ASSERT(t); + if (!o || !t) return; - /* draw border top */ - nk_stroke_line(out,window->bounds.x,window->bounds.y, - window->bounds.x + window->bounds.w, window->bounds.y, - layout->border, border_color); + text.padding = nk_vec2(0,0); + text.background = t->background; + text.text = t->text; - /* draw bottom border */ - nk_stroke_line(out, window->bounds.x, padding_y, - window->bounds.x + window->bounds.w, padding_y, layout->border, border_color); + b.w = NK_MAX(b.w, 2 * t->padding.x); + b.h = NK_MAX(b.h, 2 * t->padding.y); + b.h = b.h - 2 * t->padding.y; - /* draw left border */ - nk_stroke_line(out, window->bounds.x + layout->border*0.5f, - window->bounds.y, window->bounds.x + layout->border*0.5f, - padding_y, layout->border, border_color); + line.x = b.x + t->padding.x; + line.y = b.y + t->padding.y; + line.w = b.w - 2 * t->padding.x; + line.h = 2 * t->padding.y + f->height; - /* draw right border */ - nk_stroke_line(out, window->bounds.x + window->bounds.w - layout->border*0.5f, - window->bounds.y, window->bounds.x + window->bounds.w - layout->border*0.5f, - padding_y, layout->border, border_color); + fitting = nk_text_clamp(f, string, len, line.w, &glyphs, &width, seperator,NK_LEN(seperator)); + while (done < len) { + if (!fitting || line.y + line.h >= (b.y + b.h)) break; + nk_widget_text(o, line, &string[done], fitting, &text, NK_TEXT_LEFT, f); + done += fitting; + line.y += f->height + 2 * t->padding.y; + fitting = nk_text_clamp(f, &string[done], len - done, line.w, &glyphs, &width, seperator,NK_LEN(seperator)); } +} +NK_API void +nk_text_colored(struct nk_context *ctx, const char *str, int len, + nk_flags alignment, struct nk_color color) +{ + struct nk_window *win; + const struct nk_style *style; - /* scaler */ - if ((layout->flags & NK_WINDOW_SCALABLE) && in && !(layout->flags & NK_WINDOW_MINIMIZED)) - { - /* calculate scaler bounds */ - struct nk_rect scaler; - scaler.w = scrollbar_size.x; - scaler.h = scrollbar_size.y; - scaler.y = layout->bounds.y + layout->bounds.h; - if (layout->flags & NK_WINDOW_SCALE_LEFT) - scaler.x = layout->bounds.x - panel_padding.x * 0.5f; - else scaler.x = layout->bounds.x + layout->bounds.w + panel_padding.x; - if (layout->flags & NK_WINDOW_NO_SCROLLBAR) - scaler.x -= scaler.w; + struct nk_vec2 item_padding; + struct nk_rect bounds; + struct nk_text text; + + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return; - /* draw scaler */ - {const struct nk_style_item *item = &style->window.scaler; - if (item->type == NK_STYLE_ITEM_IMAGE) - nk_draw_image(out, scaler, &item->data.image, nk_white); - else { - if (layout->flags & NK_WINDOW_SCALE_LEFT) { - nk_fill_triangle(out, scaler.x, scaler.y, scaler.x, - scaler.y + scaler.h, scaler.x + scaler.w, - scaler.y + scaler.h, item->data.color); - } else { - nk_fill_triangle(out, scaler.x + scaler.w, scaler.y, scaler.x + scaler.w, - scaler.y + scaler.h, scaler.x, scaler.y + scaler.h, item->data.color); - } - }} + win = ctx->current; + style = &ctx->style; + nk_panel_alloc_space(&bounds, ctx); + item_padding = style->text.padding; - /* do window scaling */ - if (!(window->flags & NK_WINDOW_ROM)) { - struct nk_vec2 window_size = style->window.min_size; - int left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; - int left_mouse_click_in_scaler = nk_input_has_mouse_click_down_in_rect(in, - NK_BUTTON_LEFT, scaler, nk_true); + text.padding.x = item_padding.x; + text.padding.y = item_padding.y; + text.background = style->window.background; + text.text = color; + nk_widget_text(&win->buffer, bounds, str, len, &text, alignment, style->font); +} +NK_API void +nk_text_wrap_colored(struct nk_context *ctx, const char *str, + int len, struct nk_color color) +{ + struct nk_window *win; + const struct nk_style *style; - if (left_mouse_down && left_mouse_click_in_scaler) { - float delta_x = in->mouse.delta.x; - if (layout->flags & NK_WINDOW_SCALE_LEFT) { - delta_x = -delta_x; - window->bounds.x += in->mouse.delta.x; - } - /* dragging in x-direction */ - if (window->bounds.w + delta_x >= window_size.x) { - if ((delta_x < 0) || (delta_x > 0 && in->mouse.pos.x >= scaler.x)) { - window->bounds.w = window->bounds.w + delta_x; - scaler.x += in->mouse.delta.x; - } - } - /* dragging in y-direction (only possible if static window) */ - if (!(layout->flags & NK_WINDOW_DYNAMIC)) { - if (window_size.y < window->bounds.h + in->mouse.delta.y) { - if ((in->mouse.delta.y < 0) || (in->mouse.delta.y > 0 && in->mouse.pos.y >= scaler.y)) { - window->bounds.h = window->bounds.h + in->mouse.delta.y; - scaler.y += in->mouse.delta.y; - } - } - } - ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_RESIZE_TOP_RIGHT_DOWN_LEFT]; - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = scaler.x + scaler.w/2.0f; - in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = scaler.y + scaler.h/2.0f; - } - } - } - if (!nk_panel_is_sub(layout->type)) { - /* window is hidden so clear command buffer */ - if (layout->flags & NK_WINDOW_HIDDEN) - nk_command_buffer_reset(&window->buffer); - /* window is visible and not tab */ - else nk_finish(ctx, window); - } + struct nk_vec2 item_padding; + struct nk_rect bounds; + struct nk_text text; - /* NK_WINDOW_REMOVE_ROM flag was set so remove NK_WINDOW_ROM */ - if (layout->flags & NK_WINDOW_REMOVE_ROM) { - layout->flags &= ~(nk_flags)NK_WINDOW_ROM; - layout->flags &= ~(nk_flags)NK_WINDOW_REMOVE_ROM; - } - window->flags = layout->flags; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return; - /* property garbage collector */ - if (window->property.active && window->property.old != window->property.seq && - window->property.active == window->property.prev) { - nk_zero(&window->property, sizeof(window->property)); - } else { - window->property.old = window->property.seq; - window->property.prev = window->property.active; - window->property.seq = 0; - } - /* edit garbage collector */ - if (window->edit.active && window->edit.old != window->edit.seq && - window->edit.active == window->edit.prev) { - nk_zero(&window->edit, sizeof(window->edit)); - } else { - window->edit.old = window->edit.seq; - window->edit.prev = window->edit.active; - window->edit.seq = 0; - } - /* contextual garbage collector */ - if (window->popup.active_con && window->popup.con_old != window->popup.con_count) { - window->popup.con_count = 0; - window->popup.con_old = 0; - window->popup.active_con = 0; - } else { - window->popup.con_old = window->popup.con_count; - window->popup.con_count = 0; - } - window->popup.combo_count = 0; - /* helper to make sure you have a 'nk_tree_push' for every 'nk_tree_pop' */ - NK_ASSERT(!layout->row.tree_depth); + win = ctx->current; + style = &ctx->style; + nk_panel_alloc_space(&bounds, ctx); + item_padding = style->text.padding; + + text.padding.x = item_padding.x; + text.padding.y = item_padding.y; + text.background = style->window.background; + text.text = color; + nk_widget_text_wrap(&win->buffer, bounds, str, len, &text, style->font); +} +#ifdef NK_INCLUDE_STANDARD_VARARGS +NK_API void +nk_labelf_colored(struct nk_context *ctx, nk_flags flags, + struct nk_color color, const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + nk_labelfv_colored(ctx, flags, color, fmt, args); + va_end(args); +} +NK_API void +nk_labelf_colored_wrap(struct nk_context *ctx, struct nk_color color, + const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + nk_labelfv_colored_wrap(ctx, color, fmt, args); + va_end(args); +} +NK_API void +nk_labelf(struct nk_context *ctx, nk_flags flags, const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + nk_labelfv(ctx, flags, fmt, args); + va_end(args); +} +NK_API void +nk_labelf_wrap(struct nk_context *ctx, const char *fmt,...) +{ + va_list args; + va_start(args, fmt); + nk_labelfv_wrap(ctx, fmt, args); + va_end(args); +} +NK_API void +nk_labelfv_colored(struct nk_context *ctx, nk_flags flags, + struct nk_color color, const char *fmt, va_list args) +{ + char buf[256]; + nk_strfmt(buf, NK_LEN(buf), fmt, args); + nk_label_colored(ctx, buf, flags, color); } -/* ---------------------------------------------------------------- - * - * PAGE ELEMENT - * - * ---------------------------------------------------------------*/ -NK_INTERN struct nk_page_element* -nk_create_page_element(struct nk_context *ctx) +NK_API void +nk_labelfv_colored_wrap(struct nk_context *ctx, struct nk_color color, + const char *fmt, va_list args) { - struct nk_page_element *elem; - if (ctx->freelist) { - /* unlink page element from free list */ - elem = ctx->freelist; - ctx->freelist = elem->next; - } else if (ctx->use_pool) { - /* allocate page element from memory pool */ - elem = nk_pool_alloc(&ctx->pool); - NK_ASSERT(elem); - if (!elem) return 0; - } else { - /* allocate new page element from back of fixed size memory buffer */ - NK_STORAGE const nk_size size = sizeof(struct nk_page_element); - NK_STORAGE const nk_size align = NK_ALIGNOF(struct nk_page_element); - elem = (struct nk_page_element*)nk_buffer_alloc(&ctx->memory, NK_BUFFER_BACK, size, align); - NK_ASSERT(elem); - if (!elem) return 0; - } - nk_zero_struct(*elem); - elem->next = 0; - elem->prev = 0; - return elem; + char buf[256]; + nk_strfmt(buf, NK_LEN(buf), fmt, args); + nk_label_colored_wrap(ctx, buf, color); } -NK_INTERN void -nk_link_page_element_into_freelist(struct nk_context *ctx, - struct nk_page_element *elem) +NK_API void +nk_labelfv(struct nk_context *ctx, nk_flags flags, const char *fmt, va_list args) { - /* link table into freelist */ - if (!ctx->freelist) { - ctx->freelist = elem; - } else { - elem->next = ctx->freelist; - ctx->freelist = elem; - } + char buf[256]; + nk_strfmt(buf, NK_LEN(buf), fmt, args); + nk_label(ctx, buf, flags); } -NK_INTERN void -nk_free_page_element(struct nk_context *ctx, struct nk_page_element *elem) +NK_API void +nk_labelfv_wrap(struct nk_context *ctx, const char *fmt, va_list args) { - /* we have a pool so just add to free list */ - if (ctx->use_pool) { - nk_link_page_element_into_freelist(ctx, elem); - return; - } - /* if possible remove last element from back of fixed memory buffer */ - {void *elem_end = (void*)(elem + 1); - void *buffer_end = (nk_byte*)ctx->memory.memory.ptr + ctx->memory.size; - if (elem_end == buffer_end) - ctx->memory.size -= sizeof(struct nk_page_element); - else nk_link_page_element_into_freelist(ctx, elem);} + char buf[256]; + nk_strfmt(buf, NK_LEN(buf), fmt, args); + nk_label_wrap(ctx, buf); } -/* ---------------------------------------------------------------- - * - * PANEL - * - * ---------------------------------------------------------------*/ -NK_INTERN void* -nk_create_panel(struct nk_context *ctx) +NK_API void +nk_value_bool(struct nk_context *ctx, const char *prefix, int value) { - struct nk_page_element *elem; - elem = nk_create_page_element(ctx); - if (!elem) return 0; - nk_zero_struct(*elem); - return &elem->data.pan; + nk_labelf(ctx, NK_TEXT_LEFT, "%s: %s", prefix, ((value) ? "true": "false")); +} +NK_API void +nk_value_int(struct nk_context *ctx, const char *prefix, int value) +{ + nk_labelf(ctx, NK_TEXT_LEFT, "%s: %d", prefix, value); +} +NK_API void +nk_value_uint(struct nk_context *ctx, const char *prefix, unsigned int value) +{ + nk_labelf(ctx, NK_TEXT_LEFT, "%s: %u", prefix, value); +} +NK_API void +nk_value_float(struct nk_context *ctx, const char *prefix, float value) +{ + double double_value = (double)value; + nk_labelf(ctx, NK_TEXT_LEFT, "%s: %.3f", prefix, double_value); +} +NK_API void +nk_value_color_byte(struct nk_context *ctx, const char *p, struct nk_color c) +{ + nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%d, %d, %d, %d)", p, c.r, c.g, c.b, c.a); +} +NK_API void +nk_value_color_float(struct nk_context *ctx, const char *p, struct nk_color color) +{ + double c[4]; nk_color_dv(c, color); + nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%.2f, %.2f, %.2f, %.2f)", + p, c[0], c[1], c[2], c[3]); } - -NK_INTERN void -nk_free_panel(struct nk_context *ctx, struct nk_panel *pan) +NK_API void +nk_value_color_hex(struct nk_context *ctx, const char *prefix, struct nk_color color) { - union nk_page_data *pd = NK_CONTAINER_OF(pan, union nk_page_data, pan); - struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); - nk_free_page_element(ctx, pe); + char hex[16]; + nk_color_hex_rgba(hex, color); + nk_labelf(ctx, NK_TEXT_LEFT, "%s: %s", prefix, hex); } - -/* ---------------------------------------------------------------- - * - * TABLES - * - * ---------------------------------------------------------------*/ -NK_INTERN struct nk_table* -nk_create_table(struct nk_context *ctx) +#endif +NK_API void +nk_text(struct nk_context *ctx, const char *str, int len, nk_flags alignment) { - struct nk_page_element *elem; - elem = nk_create_page_element(ctx); - if (!elem) return 0; - nk_zero_struct(*elem); - return &elem->data.tbl; + NK_ASSERT(ctx); + if (!ctx) return; + nk_text_colored(ctx, str, len, alignment, ctx->style.text.color); } - -NK_INTERN void -nk_free_table(struct nk_context *ctx, struct nk_table *tbl) +NK_API void +nk_text_wrap(struct nk_context *ctx, const char *str, int len) { - union nk_page_data *pd = NK_CONTAINER_OF(tbl, union nk_page_data, tbl); - struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); - nk_free_page_element(ctx, pe); + NK_ASSERT(ctx); + if (!ctx) return; + nk_text_wrap_colored(ctx, str, len, ctx->style.text.color); } - -NK_INTERN void -nk_push_table(struct nk_window *win, struct nk_table *tbl) +NK_API void +nk_label(struct nk_context *ctx, const char *str, nk_flags alignment) { - if (!win->tables) { - win->tables = tbl; - tbl->next = 0; - tbl->prev = 0; - tbl->size = 0; - win->table_count = 1; - return; - } - win->tables->prev = tbl; - tbl->next = win->tables; - tbl->prev = 0; - tbl->size = 0; - win->tables = tbl; - win->table_count++; + nk_text(ctx, str, nk_strlen(str), alignment); } - -NK_INTERN void -nk_remove_table(struct nk_window *win, struct nk_table *tbl) +NK_API void +nk_label_colored(struct nk_context *ctx, const char *str, nk_flags align, + struct nk_color color) { - if (win->tables == tbl) - win->tables = tbl->next; - if (tbl->next) - tbl->next->prev = tbl->prev; - if (tbl->prev) - tbl->prev->next = tbl->next; - tbl->next = 0; - tbl->prev = 0; + nk_text_colored(ctx, str, nk_strlen(str), align, color); } - -NK_INTERN nk_uint* -nk_add_value(struct nk_context *ctx, struct nk_window *win, - nk_hash name, nk_uint value) +NK_API void +nk_label_wrap(struct nk_context *ctx, const char *str) { - NK_ASSERT(ctx); - NK_ASSERT(win); - if (!win || !ctx) return 0; - if (!win->tables || win->tables->size >= NK_VALUE_PAGE_CAPACITY) { - struct nk_table *tbl = nk_create_table(ctx); - NK_ASSERT(tbl); - if (!tbl) return 0; - nk_push_table(win, tbl); - } - win->tables->seq = win->seq; - win->tables->keys[win->tables->size] = name; - win->tables->values[win->tables->size] = value; - return &win->tables->values[win->tables->size++]; + nk_text_wrap(ctx, str, nk_strlen(str)); } - -NK_INTERN nk_uint* -nk_find_value(struct nk_window *win, nk_hash name) +NK_API void +nk_label_colored_wrap(struct nk_context *ctx, const char *str, struct nk_color color) { - struct nk_table *iter = win->tables; - while (iter) { - unsigned int i = 0; - unsigned int size = iter->size; - for (i = 0; i < size; ++i) { - if (iter->keys[i] == name) { - iter->seq = win->seq; - return &iter->values[i]; - } - } size = NK_VALUE_PAGE_CAPACITY; - iter = iter->next; - } - return 0; + nk_text_wrap_colored(ctx, str, nk_strlen(str), color); } -/* ---------------------------------------------------------------- + + + + +/* =============================================================== * - * WINDOW + * IMAGE * - * ---------------------------------------------------------------*/ -NK_INTERN void* -nk_create_window(struct nk_context *ctx) + * ===============================================================*/ +NK_API nk_handle +nk_handle_ptr(void *ptr) { - struct nk_page_element *elem; - elem = nk_create_page_element(ctx); - if (!elem) return 0; - elem->data.win.seq = ctx->seq; - return &elem->data.win; + nk_handle handle = {0}; + handle.ptr = ptr; + return handle; } - -NK_INTERN void -nk_free_window(struct nk_context *ctx, struct nk_window *win) +NK_API nk_handle +nk_handle_id(int id) { - /* unlink windows from list */ - struct nk_table *it = win->tables; - if (win->popup.win) { - nk_free_window(ctx, win->popup.win); - win->popup.win = 0; - } - win->next = 0; - win->prev = 0; - - while (it) { - /*free window state tables */ - struct nk_table *n = it->next; - nk_remove_table(win, it); - nk_free_table(ctx, it); - if (it == win->tables) - win->tables = n; - it = n; - } - - /* link windows into freelist */ - {union nk_page_data *pd = NK_CONTAINER_OF(win, union nk_page_data, win); - struct nk_page_element *pe = NK_CONTAINER_OF(pd, struct nk_page_element, data); - nk_free_page_element(ctx, pe);} + nk_handle handle; + nk_zero_struct(handle); + handle.id = id; + return handle; } - -NK_INTERN struct nk_window* -nk_find_window(struct nk_context *ctx, nk_hash hash, const char *name) +NK_API struct nk_image +nk_subimage_ptr(void *ptr, unsigned short w, unsigned short h, struct nk_rect r) { - struct nk_window *iter; - iter = ctx->begin; - while (iter) { - NK_ASSERT(iter != iter->next); - if (iter->name == hash) { - int max_len = nk_strlen(iter->name_string); - if (!nk_stricmpn(iter->name_string, name, max_len)) - return iter; - } - iter = iter->next; - } - return 0; + struct nk_image s; + nk_zero(&s, sizeof(s)); + s.handle.ptr = ptr; + s.w = w; s.h = h; + s.region[0] = (unsigned short)r.x; + s.region[1] = (unsigned short)r.y; + s.region[2] = (unsigned short)r.w; + s.region[3] = (unsigned short)r.h; + return s; } - -enum nk_window_insert_location { - NK_INSERT_BACK, /* inserts window into the back of list (front of screen) */ - NK_INSERT_FRONT /* inserts window into the front of list (back of screen) */ -}; -NK_INTERN void -nk_insert_window(struct nk_context *ctx, struct nk_window *win, - enum nk_window_insert_location loc) +NK_API struct nk_image +nk_subimage_id(int id, unsigned short w, unsigned short h, struct nk_rect r) { - const struct nk_window *iter; - NK_ASSERT(ctx); - NK_ASSERT(win); - if (!win || !ctx) return; - - iter = ctx->begin; - while (iter) { - NK_ASSERT(iter != iter->next); - NK_ASSERT(iter != win); - if (iter == win) return; - iter = iter->next; - } - - if (!ctx->begin) { - win->next = 0; - win->prev = 0; - ctx->begin = win; - ctx->end = win; - ctx->count = 1; - return; - } - if (loc == NK_INSERT_BACK) { - struct nk_window *end; - end = ctx->end; - end->flags |= NK_WINDOW_ROM; - end->next = win; - win->prev = ctx->end; - win->next = 0; - ctx->end = win; - ctx->active = ctx->end; - ctx->end->flags &= ~(nk_flags)NK_WINDOW_ROM; - } else { - ctx->end->flags |= NK_WINDOW_ROM; - ctx->begin->prev = win; - win->next = ctx->begin; - win->prev = 0; - ctx->begin = win; - ctx->begin->flags &= ~(nk_flags)NK_WINDOW_ROM; - } - ctx->count++; + struct nk_image s; + nk_zero(&s, sizeof(s)); + s.handle.id = id; + s.w = w; s.h = h; + s.region[0] = (unsigned short)r.x; + s.region[1] = (unsigned short)r.y; + s.region[2] = (unsigned short)r.w; + s.region[3] = (unsigned short)r.h; + return s; +} +NK_API struct nk_image +nk_subimage_handle(nk_handle handle, unsigned short w, unsigned short h, + struct nk_rect r) +{ + struct nk_image s; + nk_zero(&s, sizeof(s)); + s.handle = handle; + s.w = w; s.h = h; + s.region[0] = (unsigned short)r.x; + s.region[1] = (unsigned short)r.y; + s.region[2] = (unsigned short)r.w; + s.region[3] = (unsigned short)r.h; + return s; } - -NK_INTERN void -nk_remove_window(struct nk_context *ctx, struct nk_window *win) +NK_API struct nk_image +nk_image_handle(nk_handle handle) { - if (win == ctx->begin || win == ctx->end) { - if (win == ctx->begin) { - ctx->begin = win->next; - if (win->next) - win->next->prev = 0; - } - if (win == ctx->end) { - ctx->end = win->prev; - if (win->prev) - win->prev->next = 0; - } - } else { - if (win->next) - win->next->prev = win->prev; - if (win->prev) - win->prev->next = win->next; - } - if (win == ctx->active || !ctx->active) { - ctx->active = ctx->end; - if (ctx->end) - ctx->end->flags &= ~(nk_flags)NK_WINDOW_ROM; - } - win->next = 0; - win->prev = 0; - ctx->count--; + struct nk_image s; + nk_zero(&s, sizeof(s)); + s.handle = handle; + s.w = 0; s.h = 0; + s.region[0] = 0; + s.region[1] = 0; + s.region[2] = 0; + s.region[3] = 0; + return s; } - -NK_API int -nk_begin(struct nk_context *ctx, const char *title, - struct nk_rect bounds, nk_flags flags) +NK_API struct nk_image +nk_image_ptr(void *ptr) { - return nk_begin_titled(ctx, title, title, bounds, flags); + struct nk_image s; + nk_zero(&s, sizeof(s)); + NK_ASSERT(ptr); + s.handle.ptr = ptr; + s.w = 0; s.h = 0; + s.region[0] = 0; + s.region[1] = 0; + s.region[2] = 0; + s.region[3] = 0; + return s; +} +NK_API struct nk_image +nk_image_id(int id) +{ + struct nk_image s; + nk_zero(&s, sizeof(s)); + s.handle.id = id; + s.w = 0; s.h = 0; + s.region[0] = 0; + s.region[1] = 0; + s.region[2] = 0; + s.region[3] = 0; + return s; } - NK_API int -nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, - struct nk_rect bounds, nk_flags flags) +nk_image_is_subimage(const struct nk_image* img) +{ + NK_ASSERT(img); + return !(img->w == 0 && img->h == 0); +} +NK_API void +nk_image(struct nk_context *ctx, struct nk_image img) { struct nk_window *win; - struct nk_style *style; - nk_hash title_hash; - int title_len; - int ret = 0; + struct nk_rect bounds; NK_ASSERT(ctx); - NK_ASSERT(name); - NK_ASSERT(title); - NK_ASSERT(ctx->style.font && ctx->style.font->width && "if this triggers you forgot to add a font"); - NK_ASSERT(!ctx->current && "if this triggers you missed a `nk_end` call"); - if (!ctx || ctx->current || !title || !name) - return 0; + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return; - /* find or create window */ - style = &ctx->style; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) { - /* create new window */ - nk_size name_length = (nk_size)nk_strlen(name); - win = (struct nk_window*)nk_create_window(ctx); - NK_ASSERT(win); - if (!win) return 0; + win = ctx->current; + if (!nk_widget(&bounds, ctx)) return; + nk_draw_image(&win->buffer, bounds, &img, nk_white); +} +NK_API void +nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col) +{ + struct nk_window *win; + struct nk_rect bounds; - if (flags & NK_WINDOW_BACKGROUND) - nk_insert_window(ctx, win, NK_INSERT_FRONT); - else nk_insert_window(ctx, win, NK_INSERT_BACK); - nk_command_buffer_init(&win->buffer, &ctx->memory, NK_CLIPPING_ON); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) return; - win->flags = flags; - win->bounds = bounds; - win->name = title_hash; - name_length = NK_MIN(name_length, NK_WINDOW_MAX_NAME-1); - NK_MEMCPY(win->name_string, name, name_length); - win->name_string[name_length] = 0; - win->popup.win = 0; - if (!ctx->active) - ctx->active = win; - } else { - /* update window */ - win->flags &= ~(nk_flags)(NK_WINDOW_PRIVATE-1); - win->flags |= flags; - if (!(win->flags & (NK_WINDOW_MOVABLE | NK_WINDOW_SCALABLE))) - win->bounds = bounds; - /* If this assert triggers you either: - * - * I.) Have more than one window with the same name or - * II.) You forgot to actually draw the window. - * More specific you did not call `nk_clear` (nk_clear will be - * automatically called for you if you are using one of the - * provided demo backends). */ - NK_ASSERT(win->seq != ctx->seq); - win->seq = ctx->seq; - if (!ctx->active && !(win->flags & NK_WINDOW_HIDDEN)) - ctx->active = win; - } - if (win->flags & NK_WINDOW_HIDDEN) { - ctx->current = win; - win->layout = 0; - return 0; - } + win = ctx->current; + if (!nk_widget(&bounds, ctx)) return; + nk_draw_image(&win->buffer, bounds, &img, col); +} - /* window overlapping */ - if (!(win->flags & NK_WINDOW_HIDDEN) && !(win->flags & NK_WINDOW_NO_INPUT)) - { - int inpanel, ishovered; - const struct nk_window *iter = win; - float h = ctx->style.font->height + 2.0f * style->window.header.padding.y + - (2.0f * style->window.header.label_padding.y); - struct nk_rect win_bounds = (!(win->flags & NK_WINDOW_MINIMIZED))? - win->bounds: nk_rect(win->bounds.x, win->bounds.y, win->bounds.w, h); - /* activate window if hovered and no other window is overlapping this window */ - nk_start(ctx, win); - inpanel = nk_input_has_mouse_click_down_in_rect(&ctx->input, NK_BUTTON_LEFT, win_bounds, nk_true); - inpanel = inpanel && ctx->input.mouse.buttons[NK_BUTTON_LEFT].clicked; - ishovered = nk_input_is_mouse_hovering_rect(&ctx->input, win_bounds); - if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) { - iter = win->next; - while (iter) { - struct nk_rect iter_bounds = (!(iter->flags & NK_WINDOW_MINIMIZED))? - iter->bounds: nk_rect(iter->bounds.x, iter->bounds.y, iter->bounds.w, h); - if (NK_INTERSECT(win_bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, - iter_bounds.x, iter_bounds.y, iter_bounds.w, iter_bounds.h) && - (!(iter->flags & NK_WINDOW_HIDDEN) || !(iter->flags & NK_WINDOW_BACKGROUND))) - break; - if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) && - NK_INTERSECT(win->bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, - iter->popup.win->bounds.x, iter->popup.win->bounds.y, - iter->popup.win->bounds.w, iter->popup.win->bounds.h)) - break; - iter = iter->next; - } - } - /* activate window if clicked */ - if (iter && inpanel && (win != ctx->end) && !(iter->flags & NK_WINDOW_BACKGROUND)) { - iter = win->next; - while (iter) { - /* try to find a panel with higher priority in the same position */ - struct nk_rect iter_bounds = (!(iter->flags & NK_WINDOW_MINIMIZED))? - iter->bounds: nk_rect(iter->bounds.x, iter->bounds.y, iter->bounds.w, h); - if (NK_INBOX(ctx->input.mouse.pos.x, ctx->input.mouse.pos.y, - iter_bounds.x, iter_bounds.y, iter_bounds.w, iter_bounds.h) && - !(iter->flags & NK_WINDOW_HIDDEN)) - break; - if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) && - NK_INTERSECT(win_bounds.x, win_bounds.y, win_bounds.w, win_bounds.h, - iter->popup.win->bounds.x, iter->popup.win->bounds.y, - iter->popup.win->bounds.w, iter->popup.win->bounds.h)) - break; - iter = iter->next; - } - } - if (!iter && ctx->end != win) { - if (!(win->flags & NK_WINDOW_BACKGROUND)) { - /* current window is active in that position so transfer to top - * at the highest priority in stack */ - nk_remove_window(ctx, win); - nk_insert_window(ctx, win, NK_INSERT_BACK); - } - win->flags &= ~(nk_flags)NK_WINDOW_ROM; - ctx->active = win; +/* ============================================================== + * + * BUTTON + * + * ===============================================================*/ +NK_LIB void +nk_draw_symbol(struct nk_command_buffer *out, enum nk_symbol_type type, + struct nk_rect content, struct nk_color background, struct nk_color foreground, + float border_width, const struct nk_user_font *font) +{ + switch (type) { + case NK_SYMBOL_X: + case NK_SYMBOL_UNDERSCORE: + case NK_SYMBOL_PLUS: + case NK_SYMBOL_MINUS: { + /* single character text symbol */ + const char *X = (type == NK_SYMBOL_X) ? "x": + (type == NK_SYMBOL_UNDERSCORE) ? "_": + (type == NK_SYMBOL_PLUS) ? "+": "-"; + struct nk_text text; + text.padding = nk_vec2(0,0); + text.background = background; + text.text = foreground; + nk_widget_text(out, content, X, 1, &text, NK_TEXT_CENTERED, font); + } break; + case NK_SYMBOL_CIRCLE_SOLID: + case NK_SYMBOL_CIRCLE_OUTLINE: + case NK_SYMBOL_RECT_SOLID: + case NK_SYMBOL_RECT_OUTLINE: { + /* simple empty/filled shapes */ + if (type == NK_SYMBOL_RECT_SOLID || type == NK_SYMBOL_RECT_OUTLINE) { + nk_fill_rect(out, content, 0, foreground); + if (type == NK_SYMBOL_RECT_OUTLINE) + nk_fill_rect(out, nk_shrink_rect(content, border_width), 0, background); + } else { + nk_fill_circle(out, content, foreground); + if (type == NK_SYMBOL_CIRCLE_OUTLINE) + nk_fill_circle(out, nk_shrink_rect(content, 1), background); + } + } break; + case NK_SYMBOL_TRIANGLE_UP: + case NK_SYMBOL_TRIANGLE_DOWN: + case NK_SYMBOL_TRIANGLE_LEFT: + case NK_SYMBOL_TRIANGLE_RIGHT: { + enum nk_heading heading; + struct nk_vec2 points[3]; + heading = (type == NK_SYMBOL_TRIANGLE_RIGHT) ? NK_RIGHT : + (type == NK_SYMBOL_TRIANGLE_LEFT) ? NK_LEFT: + (type == NK_SYMBOL_TRIANGLE_UP) ? NK_UP: NK_DOWN; + nk_triangle_from_direction(points, content, 0, 0, heading); + nk_fill_triangle(out, points[0].x, points[0].y, points[1].x, points[1].y, + points[2].x, points[2].y, foreground); + } break; + default: + case NK_SYMBOL_NONE: + case NK_SYMBOL_MAX: break; + } +} +NK_LIB int +nk_button_behavior(nk_flags *state, struct nk_rect r, + const struct nk_input *i, enum nk_button_behavior behavior) +{ + int ret = 0; + nk_widget_state_reset(state); + if (!i) return 0; + if (nk_input_is_mouse_hovering_rect(i, r)) { + *state = NK_WIDGET_STATE_HOVERED; + if (nk_input_is_mouse_down(i, NK_BUTTON_LEFT)) + *state = NK_WIDGET_STATE_ACTIVE; + if (nk_input_has_mouse_click_in_rect(i, NK_BUTTON_LEFT, r)) { + ret = (behavior != NK_BUTTON_DEFAULT) ? + nk_input_is_mouse_down(i, NK_BUTTON_LEFT): +#ifdef NK_BUTTON_TRIGGER_ON_RELEASE + nk_input_is_mouse_released(i, NK_BUTTON_LEFT); +#else + nk_input_is_mouse_pressed(i, NK_BUTTON_LEFT); +#endif } - if (ctx->end != win && !(win->flags & NK_WINDOW_BACKGROUND)) - win->flags |= NK_WINDOW_ROM; } - - win->layout = (struct nk_panel*)nk_create_panel(ctx); - ctx->current = win; - ret = nk_panel_begin(ctx, title, NK_PANEL_WINDOW); - win->layout->offset_x = &win->scrollbar.x; - win->layout->offset_y = &win->scrollbar.y; + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(i, r)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(i, r)) + *state |= NK_WIDGET_STATE_LEFT; return ret; } - -NK_API void -nk_end(struct nk_context *ctx) +NK_LIB const struct nk_style_item* +nk_draw_button(struct nk_command_buffer *out, + const struct nk_rect *bounds, nk_flags state, + const struct nk_style_button *style) { - struct nk_panel *layout; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current && "if this triggers you forgot to call `nk_begin`"); - if (!ctx || !ctx->current) - return; + const struct nk_style_item *background; + if (state & NK_WIDGET_STATE_HOVER) + background = &style->hover; + else if (state & NK_WIDGET_STATE_ACTIVED) + background = &style->active; + else background = &style->normal; - layout = ctx->current->layout; - if (!layout || (layout->type == NK_PANEL_WINDOW && (ctx->current->flags & NK_WINDOW_HIDDEN))) { - ctx->current = 0; - return; + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, *bounds, &background->data.image, nk_white); + } else { + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); } - nk_panel_end(ctx); - nk_free_panel(ctx, ctx->current->layout); - ctx->current = 0; + return background; } - -NK_API struct nk_rect -nk_window_get_bounds(const struct nk_context *ctx) +NK_LIB int +nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, + const struct nk_style_button *style, const struct nk_input *in, + enum nk_button_behavior behavior, struct nk_rect *content) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return nk_rect(0,0,0,0); - return ctx->current->bounds; -} + struct nk_rect bounds; + NK_ASSERT(style); + NK_ASSERT(state); + NK_ASSERT(out); + if (!out || !style) + return nk_false; -NK_API struct nk_vec2 -nk_window_get_position(const struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return nk_vec2(0,0); - return nk_vec2(ctx->current->bounds.x, ctx->current->bounds.y); -} + /* calculate button content space */ + content->x = r.x + style->padding.x + style->border + style->rounding; + content->y = r.y + style->padding.y + style->border + style->rounding; + content->w = r.w - (2 * style->padding.x + style->border + style->rounding*2); + content->h = r.h - (2 * style->padding.y + style->border + style->rounding*2); -NK_API struct nk_vec2 -nk_window_get_size(const struct nk_context *ctx) + /* execute button behavior */ + bounds.x = r.x - style->touch_padding.x; + bounds.y = r.y - style->touch_padding.y; + bounds.w = r.w + 2 * style->touch_padding.x; + bounds.h = r.h + 2 * style->touch_padding.y; + return nk_button_behavior(state, bounds, in, behavior); +} +NK_LIB void +nk_draw_button_text(struct nk_command_buffer *out, + const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, + const struct nk_style_button *style, const char *txt, int len, + nk_flags text_alignment, const struct nk_user_font *font) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return nk_vec2(0,0); - return nk_vec2(ctx->current->bounds.w, ctx->current->bounds.h); + struct nk_text text; + const struct nk_style_item *background; + background = nk_draw_button(out, bounds, state, style); + + /* select correct colors/images */ + if (background->type == NK_STYLE_ITEM_COLOR) + text.background = background->data.color; + else text.background = style->text_background; + if (state & NK_WIDGET_STATE_HOVER) + text.text = style->text_hover; + else if (state & NK_WIDGET_STATE_ACTIVED) + text.text = style->text_active; + else text.text = style->text_normal; + + text.padding = nk_vec2(0,0); + nk_widget_text(out, *content, txt, len, &text, text_alignment, font); } +NK_LIB int +nk_do_button_text(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + const char *string, int len, nk_flags align, enum nk_button_behavior behavior, + const struct nk_style_button *style, const struct nk_input *in, + const struct nk_user_font *font) +{ + struct nk_rect content; + int ret = nk_false; -NK_API float -nk_window_get_width(const struct nk_context *ctx) + NK_ASSERT(state); + NK_ASSERT(style); + NK_ASSERT(out); + NK_ASSERT(string); + NK_ASSERT(font); + if (!out || !style || !font || !string) + return nk_false; + + ret = nk_do_button(state, out, bounds, style, in, behavior, &content); + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_button_text(out, &bounds, &content, *state, style, string, len, align, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return ret; +} +NK_LIB void +nk_draw_button_symbol(struct nk_command_buffer *out, + const struct nk_rect *bounds, const struct nk_rect *content, + nk_flags state, const struct nk_style_button *style, + enum nk_symbol_type type, const struct nk_user_font *font) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return 0; - return ctx->current->bounds.w; + struct nk_color sym, bg; + const struct nk_style_item *background; + + /* select correct colors/images */ + background = nk_draw_button(out, bounds, state, style); + if (background->type == NK_STYLE_ITEM_COLOR) + bg = background->data.color; + else bg = style->text_background; + + if (state & NK_WIDGET_STATE_HOVER) + sym = style->text_hover; + else if (state & NK_WIDGET_STATE_ACTIVED) + sym = style->text_active; + else sym = style->text_normal; + nk_draw_symbol(out, type, *content, bg, sym, 1, font); } +NK_LIB int +nk_do_button_symbol(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + enum nk_symbol_type symbol, enum nk_button_behavior behavior, + const struct nk_style_button *style, const struct nk_input *in, + const struct nk_user_font *font) +{ + int ret; + struct nk_rect content; -NK_API float -nk_window_get_height(const struct nk_context *ctx) + NK_ASSERT(state); + NK_ASSERT(style); + NK_ASSERT(font); + NK_ASSERT(out); + if (!out || !style || !font || !state) + return nk_false; + + ret = nk_do_button(state, out, bounds, style, in, behavior, &content); + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_button_symbol(out, &bounds, &content, *state, style, symbol, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return ret; +} +NK_LIB void +nk_draw_button_image(struct nk_command_buffer *out, + const struct nk_rect *bounds, const struct nk_rect *content, + nk_flags state, const struct nk_style_button *style, const struct nk_image *img) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return 0; - return ctx->current->bounds.h; + nk_draw_button(out, bounds, state, style); + nk_draw_image(out, *content, img, nk_white); } - -NK_API struct nk_rect -nk_window_get_content_region(struct nk_context *ctx) +NK_LIB int +nk_do_button_image(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + struct nk_image img, enum nk_button_behavior b, + const struct nk_style_button *style, const struct nk_input *in) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return nk_rect(0,0,0,0); - return ctx->current->layout->clip; + int ret; + struct nk_rect content; + + NK_ASSERT(state); + NK_ASSERT(style); + NK_ASSERT(out); + if (!out || !style || !state) + return nk_false; + + ret = nk_do_button(state, out, bounds, style, in, b, &content); + content.x += style->image_padding.x; + content.y += style->image_padding.y; + content.w -= 2 * style->image_padding.x; + content.h -= 2 * style->image_padding.y; + + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_button_image(out, &bounds, &content, *state, style, &img); + if (style->draw_end) style->draw_end(out, style->userdata); + return ret; } +NK_LIB void +nk_draw_button_text_symbol(struct nk_command_buffer *out, + const struct nk_rect *bounds, const struct nk_rect *label, + const struct nk_rect *symbol, nk_flags state, const struct nk_style_button *style, + const char *str, int len, enum nk_symbol_type type, + const struct nk_user_font *font) +{ + struct nk_color sym; + struct nk_text text; + const struct nk_style_item *background; + + /* select correct background colors/images */ + background = nk_draw_button(out, bounds, state, style); + if (background->type == NK_STYLE_ITEM_COLOR) + text.background = background->data.color; + else text.background = style->text_background; + + /* select correct text colors */ + if (state & NK_WIDGET_STATE_HOVER) { + sym = style->text_hover; + text.text = style->text_hover; + } else if (state & NK_WIDGET_STATE_ACTIVED) { + sym = style->text_active; + text.text = style->text_active; + } else { + sym = style->text_normal; + text.text = style->text_normal; + } -NK_API struct nk_vec2 -nk_window_get_content_region_min(struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current) return nk_vec2(0,0); - return nk_vec2(ctx->current->layout->clip.x, ctx->current->layout->clip.y); + text.padding = nk_vec2(0,0); + nk_draw_symbol(out, type, *symbol, style->text_background, sym, 0, font); + nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font); } - -NK_API struct nk_vec2 -nk_window_get_content_region_max(struct nk_context *ctx) +NK_LIB int +nk_do_button_text_symbol(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + enum nk_symbol_type symbol, const char *str, int len, nk_flags align, + enum nk_button_behavior behavior, const struct nk_style_button *style, + const struct nk_user_font *font, const struct nk_input *in) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current) return nk_vec2(0,0); - return nk_vec2(ctx->current->layout->clip.x + ctx->current->layout->clip.w, - ctx->current->layout->clip.y + ctx->current->layout->clip.h); -} + int ret; + struct nk_rect tri = {0,0,0,0}; + struct nk_rect content; -NK_API struct nk_vec2 -nk_window_get_content_region_size(struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current) return nk_vec2(0,0); - return nk_vec2(ctx->current->layout->clip.w, ctx->current->layout->clip.h); -} + NK_ASSERT(style); + NK_ASSERT(out); + NK_ASSERT(font); + if (!out || !style || !font) + return nk_false; -NK_API struct nk_command_buffer* -nk_window_get_canvas(struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current) return 0; - return &ctx->current->buffer; -} + ret = nk_do_button(state, out, bounds, style, in, behavior, &content); + tri.y = content.y + (content.h/2) - font->height/2; + tri.w = font->height; tri.h = font->height; + if (align & NK_TEXT_ALIGN_LEFT) { + tri.x = (content.x + content.w) - (2 * style->padding.x + tri.w); + tri.x = NK_MAX(tri.x, 0); + } else tri.x = content.x + 2 * style->padding.x; -NK_API struct nk_panel* -nk_window_get_panel(struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return 0; - return ctx->current->layout; + /* draw button */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_button_text_symbol(out, &bounds, &content, &tri, + *state, style, str, len, symbol, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return ret; } - -NK_API int -nk_window_has_focus(const struct nk_context *ctx) +NK_LIB void +nk_draw_button_text_image(struct nk_command_buffer *out, + const struct nk_rect *bounds, const struct nk_rect *label, + const struct nk_rect *image, nk_flags state, const struct nk_style_button *style, + const char *str, int len, const struct nk_user_font *font, + const struct nk_image *img) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current) return 0; - return ctx->current == ctx->active; -} + struct nk_text text; + const struct nk_style_item *background; + background = nk_draw_button(out, bounds, state, style); -NK_API int -nk_window_is_hovered(struct nk_context *ctx) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return 0; - return nk_input_is_mouse_hovering_rect(&ctx->input, ctx->current->bounds); -} + /* select correct colors */ + if (background->type == NK_STYLE_ITEM_COLOR) + text.background = background->data.color; + else text.background = style->text_background; + if (state & NK_WIDGET_STATE_HOVER) + text.text = style->text_hover; + else if (state & NK_WIDGET_STATE_ACTIVED) + text.text = style->text_active; + else text.text = style->text_normal; -NK_API int -nk_window_is_any_hovered(struct nk_context *ctx) -{ - struct nk_window *iter; - NK_ASSERT(ctx); - if (!ctx) return 0; - iter = ctx->begin; - while (iter) { - /* check if window is being hovered */ - if (iter->flags & NK_WINDOW_MINIMIZED) { - struct nk_rect header = iter->bounds; - header.h = ctx->style.font->height + 2 * ctx->style.window.header.padding.y; - if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) - return 1; - } else if (nk_input_is_mouse_hovering_rect(&ctx->input, iter->bounds)) { - return 1; - } - /* check if window popup is being hovered */ - if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds)) - return 1; - iter = iter->next; - } - return 0; + text.padding = nk_vec2(0,0); + nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font); + nk_draw_image(out, *image, img, nk_white); } - -NK_API int -nk_item_is_any_active(struct nk_context *ctx) +NK_LIB int +nk_do_button_text_image(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + struct nk_image img, const char* str, int len, nk_flags align, + enum nk_button_behavior behavior, const struct nk_style_button *style, + const struct nk_user_font *font, const struct nk_input *in) { - int any_hovered = nk_window_is_any_hovered(ctx); - int any_active = (ctx->last_widget_state & NK_WIDGET_STATE_MODIFIED); - return any_hovered || any_active; -} + int ret; + struct nk_rect icon; + struct nk_rect content; -NK_API int -nk_window_is_collapsed(struct nk_context *ctx, const char *name) -{ - int title_len; - nk_hash title_hash; - struct nk_window *win; - NK_ASSERT(ctx); - if (!ctx) return 0; + NK_ASSERT(style); + NK_ASSERT(state); + NK_ASSERT(font); + NK_ASSERT(out); + if (!out || !font || !style || !str) + return nk_false; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return 0; - return win->flags & NK_WINDOW_MINIMIZED; -} + ret = nk_do_button(state, out, bounds, style, in, behavior, &content); + icon.y = bounds.y + style->padding.y; + icon.w = icon.h = bounds.h - 2 * style->padding.y; + if (align & NK_TEXT_ALIGN_LEFT) { + icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w); + icon.x = NK_MAX(icon.x, 0); + } else icon.x = bounds.x + 2 * style->padding.x; -NK_API int -nk_window_is_closed(struct nk_context *ctx, const char *name) -{ - int title_len; - nk_hash title_hash; - struct nk_window *win; - NK_ASSERT(ctx); - if (!ctx) return 1; + icon.x += style->image_padding.x; + icon.y += style->image_padding.y; + icon.w -= 2 * style->image_padding.x; + icon.h -= 2 * style->image_padding.y; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return 1; - return (win->flags & NK_WINDOW_CLOSED); + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img); + if (style->draw_end) style->draw_end(out, style->userdata); + return ret; } - -NK_API int -nk_window_is_hidden(struct nk_context *ctx, const char *name) +NK_API void +nk_button_set_behavior(struct nk_context *ctx, enum nk_button_behavior behavior) { - int title_len; - nk_hash title_hash; - struct nk_window *win; NK_ASSERT(ctx); - if (!ctx) return 1; - - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return 1; - return (win->flags & NK_WINDOW_HIDDEN); + if (!ctx) return; + ctx->button_behavior = behavior; } - NK_API int -nk_window_is_active(struct nk_context *ctx, const char *name) +nk_button_push_behavior(struct nk_context *ctx, enum nk_button_behavior behavior) { - int title_len; - nk_hash title_hash; - struct nk_window *win; + struct nk_config_stack_button_behavior *button_stack; + struct nk_config_stack_button_behavior_element *element; + NK_ASSERT(ctx); if (!ctx) return 0; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return 0; - return win == ctx->active; -} - -NK_API struct nk_window* -nk_window_find(struct nk_context *ctx, const char *name) -{ - int title_len; - nk_hash title_hash; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - return nk_find_window(ctx, title_hash, name); -} + button_stack = &ctx->stacks.button_behaviors; + NK_ASSERT(button_stack->head < (int)NK_LEN(button_stack->elements)); + if (button_stack->head >= (int)NK_LEN(button_stack->elements)) + return 0; -NK_API void -nk_window_close(struct nk_context *ctx, const char *name) -{ - struct nk_window *win; - NK_ASSERT(ctx); - if (!ctx) return; - win = nk_window_find(ctx, name); - if (!win) return; - NK_ASSERT(ctx->current != win && "You cannot close a currently active window"); - if (ctx->current == win) return; - win->flags |= NK_WINDOW_HIDDEN; - win->flags |= NK_WINDOW_CLOSED; + element = &button_stack->elements[button_stack->head++]; + element->address = &ctx->button_behavior; + element->old_value = ctx->button_behavior; + ctx->button_behavior = behavior; + return 1; } - -NK_API void -nk_window_set_bounds(struct nk_context *ctx, struct nk_rect bounds) +NK_API int +nk_button_pop_behavior(struct nk_context *ctx) { - NK_ASSERT(ctx); NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - ctx->current->bounds = bounds; -} + struct nk_config_stack_button_behavior *button_stack; + struct nk_config_stack_button_behavior_element *element; -NK_API void -nk_window_set_position(struct nk_context *ctx, struct nk_vec2 pos) -{ - NK_ASSERT(ctx); NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - ctx->current->bounds.x = pos.x; - ctx->current->bounds.y = pos.y; -} + NK_ASSERT(ctx); + if (!ctx) return 0; -NK_API void -nk_window_set_size(struct nk_context *ctx, struct nk_vec2 size) -{ - NK_ASSERT(ctx); NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - ctx->current->bounds.w = size.x; - ctx->current->bounds.h = size.y; -} + button_stack = &ctx->stacks.button_behaviors; + NK_ASSERT(button_stack->head > 0); + if (button_stack->head < 1) + return 0; -NK_API void -nk_window_collapse(struct nk_context *ctx, const char *name, - enum nk_collapse_states c) + element = &button_stack->elements[--button_stack->head]; + *element->address = element->old_value; + return 1; +} +NK_API int +nk_button_text_styled(struct nk_context *ctx, + const struct nk_style_button *style, const char *title, int len) { - int title_len; - nk_hash title_hash; struct nk_window *win; + struct nk_panel *layout; + const struct nk_input *in; + + struct nk_rect bounds; + enum nk_widget_layout_states state; + NK_ASSERT(ctx); - if (!ctx) return; + NK_ASSERT(style); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!style || !ctx || !ctx->current || !ctx->current->layout) return 0; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return; - if (c == NK_MINIMIZED) - win->flags |= NK_WINDOW_MINIMIZED; - else win->flags &= ~(nk_flags)NK_WINDOW_MINIMIZED; -} + win = ctx->current; + layout = win->layout; + state = nk_widget(&bounds, ctx); -NK_API void -nk_window_collapse_if(struct nk_context *ctx, const char *name, - enum nk_collapse_states c, int cond) + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_button_text(&ctx->last_widget_state, &win->buffer, bounds, + title, len, style->text_alignment, ctx->button_behavior, + style, in, ctx->style.font); +} +NK_API int +nk_button_text(struct nk_context *ctx, const char *title, int len) { NK_ASSERT(ctx); - if (!ctx || !cond) return; - nk_window_collapse(ctx, name, c); + if (!ctx) return 0; + return nk_button_text_styled(ctx, &ctx->style.button, title, len); } - -NK_API void -nk_window_show(struct nk_context *ctx, const char *name, enum nk_show_states s) +NK_API int nk_button_label_styled(struct nk_context *ctx, + const struct nk_style_button *style, const char *title) { - int title_len; - nk_hash title_hash; - struct nk_window *win; - NK_ASSERT(ctx); - if (!ctx) return; - - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (!win) return; - if (s == NK_HIDDEN) { - win->flags |= NK_WINDOW_HIDDEN; - } else win->flags &= ~(nk_flags)NK_WINDOW_HIDDEN; + return nk_button_text_styled(ctx, style, title, nk_strlen(title)); } - -NK_API void -nk_window_show_if(struct nk_context *ctx, const char *name, - enum nk_show_states s, int cond) +NK_API int nk_button_label(struct nk_context *ctx, const char *title) { - NK_ASSERT(ctx); - if (!ctx || !cond) return; - nk_window_show(ctx, name, s); + return nk_button_text(ctx, title, nk_strlen(title)); } - -NK_API void -nk_window_set_focus(struct nk_context *ctx, const char *name) +NK_API int +nk_button_color(struct nk_context *ctx, struct nk_color color) { - int title_len; - nk_hash title_hash; struct nk_window *win; - NK_ASSERT(ctx); - if (!ctx) return; + struct nk_panel *layout; + const struct nk_input *in; + struct nk_style_button button; - title_len = (int)nk_strlen(name); - title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE); - win = nk_find_window(ctx, title_hash, name); - if (win && ctx->end != win) { - nk_remove_window(ctx, win); - nk_insert_window(ctx, win, NK_INSERT_BACK); - } - ctx->active = win; -} + int ret = 0; + struct nk_rect bounds; + struct nk_rect content; + enum nk_widget_layout_states state; -/*---------------------------------------------------------------- - * - * MENUBAR - * - * --------------------------------------------------------------*/ -NK_API void -nk_menubar_begin(struct nk_context *ctx) -{ - struct nk_panel *layout; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return 0; - layout = ctx->current->layout; - NK_ASSERT(layout->at_y == layout->bounds.y); - /* if this assert triggers you allocated space between nk_begin and nk_menubar_begin. - If you want a menubar the first nuklear function after `nk_begin` has to be a - `nk_menubar_begin` call. Inside the menubar you then have to allocate space for - widgets (also supports multiple rows). - Example: - if (nk_begin(...)) { - nk_menubar_begin(...); - nk_layout_xxxx(...); - nk_button(...); - nk_layout_xxxx(...); - nk_button(...); - nk_menubar_end(...); - } - nk_end(...); - */ - if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED) - return; + win = ctx->current; + layout = win->layout; - layout->menu.x = layout->at_x; - layout->menu.y = layout->at_y + layout->row.height; - layout->menu.w = layout->bounds.w; - layout->menu.offset.x = *layout->offset_x; - layout->menu.offset.y = *layout->offset_y; - *layout->offset_y = 0; -} + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; -NK_API void -nk_menubar_end(struct nk_context *ctx) + button = ctx->style.button; + button.normal = nk_style_item_color(color); + button.hover = nk_style_item_color(color); + button.active = nk_style_item_color(color); + ret = nk_do_button(&ctx->last_widget_state, &win->buffer, bounds, + &button, in, ctx->button_behavior, &content); + nk_draw_button(&win->buffer, &bounds, ctx->last_widget_state, &button); + return ret; +} +NK_API int +nk_button_symbol_styled(struct nk_context *ctx, + const struct nk_style_button *style, enum nk_symbol_type symbol) { struct nk_window *win; struct nk_panel *layout; - struct nk_command_buffer *out; + const struct nk_input *in; + + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return 0; win = ctx->current; - out = &win->buffer; layout = win->layout; - if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED) - return; + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_button_symbol(&ctx->last_widget_state, &win->buffer, bounds, + symbol, ctx->button_behavior, style, in, ctx->style.font); +} +NK_API int +nk_button_symbol(struct nk_context *ctx, enum nk_symbol_type symbol) +{ + NK_ASSERT(ctx); + if (!ctx) return 0; + return nk_button_symbol_styled(ctx, &ctx->style.button, symbol); +} +NK_API int +nk_button_image_styled(struct nk_context *ctx, const struct nk_style_button *style, + struct nk_image img) +{ + struct nk_window *win; + struct nk_panel *layout; + const struct nk_input *in; - layout->menu.h = layout->at_y - layout->menu.y; - layout->bounds.y += layout->menu.h + ctx->style.window.spacing.y + layout->row.height; - layout->bounds.h -= layout->menu.h + ctx->style.window.spacing.y + layout->row.height; + struct nk_rect bounds; + enum nk_widget_layout_states state; - *layout->offset_x = layout->menu.offset.x; - *layout->offset_y = layout->menu.offset.y; - layout->at_y = layout->bounds.y - layout->row.height; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; - layout->clip.y = layout->bounds.y; - layout->clip.h = layout->bounds.h; - nk_push_scissor(out, layout->clip); + win = ctx->current; + layout = win->layout; + + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_button_image(&ctx->last_widget_state, &win->buffer, bounds, + img, ctx->button_behavior, style, in); } -/* ------------------------------------------------------------- - * - * LAYOUT - * - * --------------------------------------------------------------*/ -NK_API void -nk_layout_set_min_row_height(struct nk_context *ctx, float height) +NK_API int +nk_button_image(struct nk_context *ctx, struct nk_image img) +{ + NK_ASSERT(ctx); + if (!ctx) return 0; + return nk_button_image_styled(ctx, &ctx->style.button, img); +} +NK_API int +nk_button_symbol_text_styled(struct nk_context *ctx, + const struct nk_style_button *style, enum nk_symbol_type symbol, + const char *text, int len, nk_flags align) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return 0; win = ctx->current; layout = win->layout; - layout->row.min_height = height; -} -NK_API void -nk_layout_reset_min_row_height(struct nk_context *ctx) + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, bounds, + symbol, text, len, align, ctx->button_behavior, + style, ctx->style.font, in); +} +NK_API int +nk_button_symbol_text(struct nk_context *ctx, enum nk_symbol_type symbol, + const char* text, int len, nk_flags align) +{ + NK_ASSERT(ctx); + if (!ctx) return 0; + return nk_button_symbol_text_styled(ctx, &ctx->style.button, symbol, text, len, align); +} +NK_API int nk_button_symbol_label(struct nk_context *ctx, enum nk_symbol_type symbol, + const char *label, nk_flags align) +{ + return nk_button_symbol_text(ctx, symbol, label, nk_strlen(label), align); +} +NK_API int nk_button_symbol_label_styled(struct nk_context *ctx, + const struct nk_style_button *style, enum nk_symbol_type symbol, + const char *title, nk_flags align) +{ + return nk_button_symbol_text_styled(ctx, style, symbol, title, nk_strlen(title), align); +} +NK_API int +nk_button_image_text_styled(struct nk_context *ctx, + const struct nk_style_button *style, struct nk_image img, const char *text, + int len, nk_flags align) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return 0; win = ctx->current; layout = win->layout; - layout->row.min_height = ctx->style.font->height; - layout->row.min_height += ctx->style.text.padding.y*2; - layout->row.min_height += ctx->style.window.min_row_height_padding*2; -} -NK_INTERN float -nk_layout_row_calculate_usable_space(const struct nk_style *style, enum nk_panel_type type, - float total_space, int columns) + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, + bounds, img, text, len, align, ctx->button_behavior, + style, ctx->style.font, in); +} +NK_API int +nk_button_image_text(struct nk_context *ctx, struct nk_image img, + const char *text, int len, nk_flags align) { - float panel_padding; - float panel_spacing; - float panel_space; + return nk_button_image_text_styled(ctx, &ctx->style.button,img, text, len, align); +} +NK_API int nk_button_image_label(struct nk_context *ctx, struct nk_image img, + const char *label, nk_flags align) +{ + return nk_button_image_text(ctx, img, label, nk_strlen(label), align); +} +NK_API int nk_button_image_label_styled(struct nk_context *ctx, + const struct nk_style_button *style, struct nk_image img, + const char *label, nk_flags text_alignment) +{ + return nk_button_image_text_styled(ctx, style, img, label, nk_strlen(label), text_alignment); +} - struct nk_vec2 spacing; - struct nk_vec2 padding; - spacing = style->window.spacing; - padding = nk_panel_get_padding(style, type); - /* calculate the usable panel space */ - panel_padding = 2 * padding.x; - panel_spacing = (float)NK_MAX(columns - 1, 0) * spacing.x; - panel_space = total_space - panel_padding - panel_spacing; - return panel_space; -} -NK_INTERN void -nk_panel_layout(const struct nk_context *ctx, struct nk_window *win, - float height, int cols) -{ - struct nk_panel *layout; - const struct nk_style *style; - struct nk_command_buffer *out; - struct nk_vec2 item_spacing; - struct nk_color color; +/* =============================================================== + * + * TOGGLE + * + * ===============================================================*/ +NK_LIB int +nk_toggle_behavior(const struct nk_input *in, struct nk_rect select, + nk_flags *state, int active) +{ + nk_widget_state_reset(state); + if (nk_button_behavior(state, select, in, NK_BUTTON_DEFAULT)) { + *state = NK_WIDGET_STATE_ACTIVE; + active = !active; + } + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, select)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, select)) + *state |= NK_WIDGET_STATE_LEFT; + return active; +} +NK_LIB void +nk_draw_checkbox(struct nk_command_buffer *out, + nk_flags state, const struct nk_style_toggle *style, int active, + const struct nk_rect *label, const struct nk_rect *selector, + const struct nk_rect *cursors, const char *string, int len, + const struct nk_user_font *font) +{ + const struct nk_style_item *background; + const struct nk_style_item *cursor; + struct nk_text text; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + /* select correct colors/images */ + if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + cursor = &style->cursor_hover; + text.text = style->text_hover; + } else if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->hover; + cursor = &style->cursor_hover; + text.text = style->text_active; + } else { + background = &style->normal; + cursor = &style->cursor_normal; + text.text = style->text_normal; + } - /* prefetch some configuration data */ - layout = win->layout; - style = &ctx->style; - out = &win->buffer; - color = style->window.background; - item_spacing = style->window.spacing; + /* draw background and cursor */ + if (background->type == NK_STYLE_ITEM_COLOR) { + nk_fill_rect(out, *selector, 0, style->border_color); + nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color); + } else nk_draw_image(out, *selector, &background->data.image, nk_white); + if (active) { + if (cursor->type == NK_STYLE_ITEM_IMAGE) + nk_draw_image(out, *cursors, &cursor->data.image, nk_white); + else nk_fill_rect(out, *cursors, 0, cursor->data.color); + } - /* if one of these triggers you forgot to add an `if` condition around either - a window, group, popup, combobox or contextual menu `begin` and `end` block. - Example: - if (nk_begin(...) {...} nk_end(...); or - if (nk_group_begin(...) { nk_group_end(...);} */ - NK_ASSERT(!(layout->flags & NK_WINDOW_MINIMIZED)); - NK_ASSERT(!(layout->flags & NK_WINDOW_HIDDEN)); - NK_ASSERT(!(layout->flags & NK_WINDOW_CLOSED)); + text.padding.x = 0; + text.padding.y = 0; + text.background = style->text_background; + nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font); +} +NK_LIB void +nk_draw_option(struct nk_command_buffer *out, + nk_flags state, const struct nk_style_toggle *style, int active, + const struct nk_rect *label, const struct nk_rect *selector, + const struct nk_rect *cursors, const char *string, int len, + const struct nk_user_font *font) +{ + const struct nk_style_item *background; + const struct nk_style_item *cursor; + struct nk_text text; - /* update the current row and set the current row layout */ - layout->row.index = 0; - layout->at_y += layout->row.height; - layout->row.columns = cols; - if (height == 0.0f) - layout->row.height = NK_MAX(height, layout->row.min_height) + item_spacing.y; - else layout->row.height = height + item_spacing.y; + /* select correct colors/images */ + if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + cursor = &style->cursor_hover; + text.text = style->text_hover; + } else if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->hover; + cursor = &style->cursor_hover; + text.text = style->text_active; + } else { + background = &style->normal; + cursor = &style->cursor_normal; + text.text = style->text_normal; + } - layout->row.item_offset = 0; - if (layout->flags & NK_WINDOW_DYNAMIC) { - /* draw background for dynamic panels */ - struct nk_rect background; - background.x = win->bounds.x; - background.w = win->bounds.w; - background.y = layout->at_y - 1.0f; - background.h = layout->row.height + 1.0f; - nk_fill_rect(out, background, 0, color); + /* draw background and cursor */ + if (background->type == NK_STYLE_ITEM_COLOR) { + nk_fill_circle(out, *selector, style->border_color); + nk_fill_circle(out, nk_shrink_rect(*selector, style->border), background->data.color); + } else nk_draw_image(out, *selector, &background->data.image, nk_white); + if (active) { + if (cursor->type == NK_STYLE_ITEM_IMAGE) + nk_draw_image(out, *cursors, &cursor->data.image, nk_white); + else nk_fill_circle(out, *cursors, cursor->data.color); } -} -NK_INTERN void -nk_row_layout(struct nk_context *ctx, enum nk_layout_format fmt, - float height, int cols, int width) + text.padding.x = 0; + text.padding.y = 0; + text.background = style->text_background; + nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font); +} +NK_LIB int +nk_do_toggle(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect r, + int *active, const char *str, int len, enum nk_toggle_type type, + const struct nk_style_toggle *style, const struct nk_input *in, + const struct nk_user_font *font) { - /* update the current row and set the current row layout */ - struct nk_window *win; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + int was_active; + struct nk_rect bounds; + struct nk_rect select; + struct nk_rect cursor; + struct nk_rect label; - win = ctx->current; - nk_panel_layout(ctx, win, height, cols); - if (fmt == NK_DYNAMIC) - win->layout->row.type = NK_LAYOUT_DYNAMIC_FIXED; - else win->layout->row.type = NK_LAYOUT_STATIC_FIXED; + NK_ASSERT(style); + NK_ASSERT(out); + NK_ASSERT(font); + if (!out || !style || !font || !active) + return 0; + + r.w = NK_MAX(r.w, font->height + 2 * style->padding.x); + r.h = NK_MAX(r.h, font->height + 2 * style->padding.y); + + /* add additional touch padding for touch screen devices */ + bounds.x = r.x - style->touch_padding.x; + bounds.y = r.y - style->touch_padding.y; + bounds.w = r.w + 2 * style->touch_padding.x; + bounds.h = r.h + 2 * style->touch_padding.y; - win->layout->row.ratio = 0; - win->layout->row.filled = 0; - win->layout->row.item_offset = 0; - win->layout->row.item_width = (float)width; -} + /* calculate the selector space */ + select.w = font->height; + select.h = select.w; + select.y = r.y + r.h/2.0f - select.h/2.0f; + select.x = r.x; -NK_API float -nk_layout_ratio_from_pixel(struct nk_context *ctx, float pixel_width) -{ - struct nk_window *win; - NK_ASSERT(ctx); - NK_ASSERT(pixel_width); - if (!ctx || !ctx->current || !ctx->current->layout) return 0; - win = ctx->current; - return NK_CLAMP(0.0f, pixel_width/win->bounds.x, 1.0f); -} + /* calculate the bounds of the cursor inside the selector */ + cursor.x = select.x + style->padding.x + style->border; + cursor.y = select.y + style->padding.y + style->border; + cursor.w = select.w - (2 * style->padding.x + 2 * style->border); + cursor.h = select.h - (2 * style->padding.y + 2 * style->border); -NK_API void -nk_layout_row_dynamic(struct nk_context *ctx, float height, int cols) -{ - nk_row_layout(ctx, NK_DYNAMIC, height, cols, 0); -} + /* label behind the selector */ + label.x = select.x + select.w + style->spacing; + label.y = select.y; + label.w = NK_MAX(r.x + r.w, label.x) - label.x; + label.h = select.w; -NK_API void -nk_layout_row_static(struct nk_context *ctx, float height, int item_width, int cols) -{ - nk_row_layout(ctx, NK_STATIC, height, cols, item_width); -} + /* update selector */ + was_active = *active; + *active = nk_toggle_behavior(in, bounds, state, *active); -NK_API void -nk_layout_row_begin(struct nk_context *ctx, enum nk_layout_format fmt, - float row_height, int cols) + /* draw selector */ + if (style->draw_begin) + style->draw_begin(out, style->userdata); + if (type == NK_TOGGLE_CHECK) { + nk_draw_checkbox(out, *state, style, *active, &label, &select, &cursor, str, len, font); + } else { + nk_draw_option(out, *state, style, *active, &label, &select, &cursor, str, len, font); + } + if (style->draw_end) + style->draw_end(out, style->userdata); + return (was_active != *active); +} +/*---------------------------------------------------------------- + * + * CHECKBOX + * + * --------------------------------------------------------------*/ +NK_API int +nk_check_text(struct nk_context *ctx, const char *text, int len, int active) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + const struct nk_style *style; + + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return active; win = ctx->current; + style = &ctx->style; layout = win->layout; - nk_panel_layout(ctx, win, row_height, cols); - if (fmt == NK_DYNAMIC) - layout->row.type = NK_LAYOUT_DYNAMIC_ROW; - else layout->row.type = NK_LAYOUT_STATIC_ROW; - layout->row.ratio = 0; - layout->row.filled = 0; - layout->row.item_width = 0; - layout->row.item_offset = 0; - layout->row.columns = cols; + state = nk_widget(&bounds, ctx); + if (!state) return active; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active, + text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font); + return active; } - -NK_API void -nk_layout_row_push(struct nk_context *ctx, float ratio_or_width) +NK_API unsigned int +nk_check_flags_text(struct nk_context *ctx, const char *text, int len, + unsigned int flags, unsigned int value) { - struct nk_window *win; - struct nk_panel *layout; - + int old_active; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - - win = ctx->current; - layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_STATIC_ROW || layout->row.type == NK_LAYOUT_DYNAMIC_ROW); - if (layout->row.type != NK_LAYOUT_STATIC_ROW && layout->row.type != NK_LAYOUT_DYNAMIC_ROW) - return; - - if (layout->row.type == NK_LAYOUT_DYNAMIC_ROW) { - float ratio = ratio_or_width; - if ((ratio + layout->row.filled) > 1.0f) return; - if (ratio > 0.0f) - layout->row.item_width = NK_SATURATE(ratio); - else layout->row.item_width = 1.0f - layout->row.filled; - } else layout->row.item_width = ratio_or_width; + NK_ASSERT(text); + if (!ctx || !text) return flags; + old_active = (int)((flags & value) & value); + if (nk_check_text(ctx, text, len, old_active)) + flags |= value; + else flags &= ~value; + return flags; } - -NK_API void -nk_layout_row_end(struct nk_context *ctx) +NK_API int +nk_checkbox_text(struct nk_context *ctx, const char *text, int len, int *active) { - struct nk_window *win; - struct nk_panel *layout; - + int old_val; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - - win = ctx->current; - layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_STATIC_ROW || layout->row.type == NK_LAYOUT_DYNAMIC_ROW); - if (layout->row.type != NK_LAYOUT_STATIC_ROW && layout->row.type != NK_LAYOUT_DYNAMIC_ROW) - return; - layout->row.item_width = 0; - layout->row.item_offset = 0; + NK_ASSERT(text); + NK_ASSERT(active); + if (!ctx || !text || !active) return 0; + old_val = *active; + *active = nk_check_text(ctx, text, len, *active); + return old_val != *active; } - -NK_API void -nk_layout_row(struct nk_context *ctx, enum nk_layout_format fmt, - float height, int cols, const float *ratio) +NK_API int +nk_checkbox_flags_text(struct nk_context *ctx, const char *text, int len, + unsigned int *flags, unsigned int value) { - int i; - int n_undef = 0; - struct nk_window *win; - struct nk_panel *layout; - + int active; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + NK_ASSERT(text); + NK_ASSERT(flags); + if (!ctx || !text || !flags) return 0; - win = ctx->current; - layout = win->layout; - nk_panel_layout(ctx, win, height, cols); - if (fmt == NK_DYNAMIC) { - /* calculate width of undefined widget ratios */ - float r = 0; - layout->row.ratio = ratio; - for (i = 0; i < cols; ++i) { - if (ratio[i] < 0.0f) - n_undef++; - else r += ratio[i]; - } - r = NK_SATURATE(1.0f - r); - layout->row.type = NK_LAYOUT_DYNAMIC; - layout->row.item_width = (r > 0 && n_undef > 0) ? (r / (float)n_undef):0; - } else { - layout->row.ratio = ratio; - layout->row.type = NK_LAYOUT_STATIC; - layout->row.item_width = 0; - layout->row.item_offset = 0; + active = (int)((*flags & value) & value); + if (nk_checkbox_text(ctx, text, len, &active)) { + if (active) *flags |= value; + else *flags &= ~value; + return 1; } - layout->row.item_offset = 0; - layout->row.filled = 0; + return 0; } - -NK_API void -nk_layout_row_template_begin(struct nk_context *ctx, float height) +NK_API int nk_check_label(struct nk_context *ctx, const char *label, int active) { - struct nk_window *win; - struct nk_panel *layout; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - - win = ctx->current; - layout = win->layout; - nk_panel_layout(ctx, win, height, 1); - layout->row.type = NK_LAYOUT_TEMPLATE; - layout->row.columns = 0; - layout->row.ratio = 0; - layout->row.item_width = 0; - layout->row.item_height = 0; - layout->row.item_offset = 0; - layout->row.filled = 0; - layout->row.item.x = 0; - layout->row.item.y = 0; - layout->row.item.w = 0; - layout->row.item.h = 0; + return nk_check_text(ctx, label, nk_strlen(label), active); } - -NK_API void -nk_layout_row_template_push_dynamic(struct nk_context *ctx) +NK_API unsigned int nk_check_flags_label(struct nk_context *ctx, const char *label, + unsigned int flags, unsigned int value) { - struct nk_window *win; - struct nk_panel *layout; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - - win = ctx->current; - layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); - NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); - if (layout->row.type != NK_LAYOUT_TEMPLATE) return; - if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; - layout->row.templates[layout->row.columns++] = -1.0f; + return nk_check_flags_text(ctx, label, nk_strlen(label), flags, value); } - -NK_API void -nk_layout_row_template_push_variable(struct nk_context *ctx, float min_width) +NK_API int nk_checkbox_label(struct nk_context *ctx, const char *label, int *active) +{ + return nk_checkbox_text(ctx, label, nk_strlen(label), active); +} +NK_API int nk_checkbox_flags_label(struct nk_context *ctx, const char *label, + unsigned int *flags, unsigned int value) +{ + return nk_checkbox_flags_text(ctx, label, nk_strlen(label), flags, value); +} +/*---------------------------------------------------------------- + * + * OPTION + * + * --------------------------------------------------------------*/ +NK_API int +nk_option_text(struct nk_context *ctx, const char *text, int len, int is_active) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + const struct nk_style *style; + + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return; + return is_active; win = ctx->current; + style = &ctx->style; layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); - NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); - if (layout->row.type != NK_LAYOUT_TEMPLATE) return; - if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; - layout->row.templates[layout->row.columns++] = -min_width; -} -NK_API void -nk_layout_row_template_push_static(struct nk_context *ctx, float width) + state = nk_widget(&bounds, ctx); + if (!state) return (int)state; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &is_active, + text, len, NK_TOGGLE_OPTION, &style->option, in, style->font); + return is_active; +} +NK_API int +nk_radio_text(struct nk_context *ctx, const char *text, int len, int *active) { - struct nk_window *win; - struct nk_panel *layout; - + int old_value; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - - win = ctx->current; - layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); - NK_ASSERT(layout->row.columns < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); - if (layout->row.type != NK_LAYOUT_TEMPLATE) return; - if (layout->row.columns >= NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS) return; - layout->row.templates[layout->row.columns++] = width; + NK_ASSERT(text); + NK_ASSERT(active); + if (!ctx || !text || !active) return 0; + old_value = *active; + *active = nk_option_text(ctx, text, len, old_value); + return old_value != *active; } - -NK_API void -nk_layout_row_template_end(struct nk_context *ctx) +NK_API int +nk_option_label(struct nk_context *ctx, const char *label, int active) { - struct nk_window *win; - struct nk_panel *layout; + return nk_option_text(ctx, label, nk_strlen(label), active); +} +NK_API int +nk_radio_label(struct nk_context *ctx, const char *label, int *active) +{ + return nk_radio_text(ctx, label, nk_strlen(label), active); +} - int i = 0; - int variable_count = 0; - int min_variable_count = 0; - float min_fixed_width = 0.0f; - float total_fixed_width = 0.0f; - float max_variable_width = 0.0f; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; - win = ctx->current; - layout = win->layout; - NK_ASSERT(layout->row.type == NK_LAYOUT_TEMPLATE); - if (layout->row.type != NK_LAYOUT_TEMPLATE) return; - for (i = 0; i < layout->row.columns; ++i) { - float width = layout->row.templates[i]; - if (width >= 0.0f) { - total_fixed_width += width; - min_fixed_width += width; - } else if (width < -1.0f) { - width = -width; - total_fixed_width += width; - max_variable_width = NK_MAX(max_variable_width, width); - variable_count++; + + +/* =============================================================== + * + * SELECTABLE + * + * ===============================================================*/ +NK_LIB void +nk_draw_selectable(struct nk_command_buffer *out, + nk_flags state, const struct nk_style_selectable *style, int active, + const struct nk_rect *bounds, + const struct nk_rect *icon, const struct nk_image *img, enum nk_symbol_type sym, + const char *string, int len, nk_flags align, const struct nk_user_font *font) +{ + const struct nk_style_item *background; + struct nk_text text; + text.padding = style->padding; + + /* select correct colors/images */ + if (!active) { + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->pressed; + text.text = style->text_pressed; + } else if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + text.text = style->text_hover; } else { - min_variable_count++; - variable_count++; + background = &style->normal; + text.text = style->text_normal; } - } - if (variable_count) { - float space = nk_layout_row_calculate_usable_space(&ctx->style, layout->type, - layout->bounds.w, layout->row.columns); - float var_width = (NK_MAX(space-min_fixed_width,0.0f)) / (float)variable_count; - int enough_space = var_width >= max_variable_width; - if (!enough_space) - var_width = (NK_MAX(space-total_fixed_width,0)) / (float)min_variable_count; - for (i = 0; i < layout->row.columns; ++i) { - float *width = &layout->row.templates[i]; - *width = (*width >= 0.0f)? *width: (*width < -1.0f && !enough_space)? -(*width): var_width; + } else { + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->pressed_active; + text.text = style->text_pressed_active; + } else if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover_active; + text.text = style->text_hover_active; + } else { + background = &style->normal_active; + text.text = style->text_normal_active; } } + /* draw selectable background and text */ + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, *bounds, &background->data.image, nk_white); + text.background = nk_rgba(0,0,0,0); + } else { + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + text.background = background->data.color; + } + if (icon) { + if (img) nk_draw_image(out, *icon, img, nk_white); + else nk_draw_symbol(out, sym, *icon, text.background, text.text, 1, font); + } + nk_widget_text(out, *bounds, string, len, &text, align, font); } +NK_LIB int +nk_do_selectable(nk_flags *state, struct nk_command_buffer *out, + struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, + const struct nk_style_selectable *style, const struct nk_input *in, + const struct nk_user_font *font) +{ + int old_value; + struct nk_rect touch; -NK_API void -nk_layout_space_begin(struct nk_context *ctx, enum nk_layout_format fmt, - float height, int widget_count) + NK_ASSERT(state); + NK_ASSERT(out); + NK_ASSERT(str); + NK_ASSERT(len); + NK_ASSERT(value); + NK_ASSERT(style); + NK_ASSERT(font); + + if (!state || !out || !str || !len || !value || !style || !font) return 0; + old_value = *value; + + /* remove padding */ + touch.x = bounds.x - style->touch_padding.x; + touch.y = bounds.y - style->touch_padding.y; + touch.w = bounds.w + style->touch_padding.x * 2; + touch.h = bounds.h + style->touch_padding.y * 2; + + /* update button */ + if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT)) + *value = !(*value); + + /* draw selectable */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_selectable(out, *state, style, *value, &bounds, 0,0,NK_SYMBOL_NONE, str, len, align, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return old_value != *value; +} +NK_LIB int +nk_do_selectable_image(nk_flags *state, struct nk_command_buffer *out, + struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, + const struct nk_image *img, const struct nk_style_selectable *style, + const struct nk_input *in, const struct nk_user_font *font) { - struct nk_window *win; - struct nk_panel *layout; + int old_value; + struct nk_rect touch; + struct nk_rect icon; + + NK_ASSERT(state); + NK_ASSERT(out); + NK_ASSERT(str); + NK_ASSERT(len); + NK_ASSERT(value); + NK_ASSERT(style); + NK_ASSERT(font); + + if (!state || !out || !str || !len || !value || !style || !font) return 0; + old_value = *value; + + /* toggle behavior */ + touch.x = bounds.x - style->touch_padding.x; + touch.y = bounds.y - style->touch_padding.y; + touch.w = bounds.w + style->touch_padding.x * 2; + touch.h = bounds.h + style->touch_padding.y * 2; + if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT)) + *value = !(*value); + + icon.y = bounds.y + style->padding.y; + icon.w = icon.h = bounds.h - 2 * style->padding.y; + if (align & NK_TEXT_ALIGN_LEFT) { + icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w); + icon.x = NK_MAX(icon.x, 0); + } else icon.x = bounds.x + 2 * style->padding.x; + + icon.x += style->image_padding.x; + icon.y += style->image_padding.y; + icon.w -= 2 * style->image_padding.x; + icon.h -= 2 * style->image_padding.y; + + /* draw selectable */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_selectable(out, *state, style, *value, &bounds, &icon, img, NK_SYMBOL_NONE, str, len, align, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return old_value != *value; +} +NK_LIB int +nk_do_selectable_symbol(nk_flags *state, struct nk_command_buffer *out, + struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, + enum nk_symbol_type sym, const struct nk_style_selectable *style, + const struct nk_input *in, const struct nk_user_font *font) +{ + int old_value; + struct nk_rect touch; + struct nk_rect icon; + + NK_ASSERT(state); + NK_ASSERT(out); + NK_ASSERT(str); + NK_ASSERT(len); + NK_ASSERT(value); + NK_ASSERT(style); + NK_ASSERT(font); + + if (!state || !out || !str || !len || !value || !style || !font) return 0; + old_value = *value; + + /* toggle behavior */ + touch.x = bounds.x - style->touch_padding.x; + touch.y = bounds.y - style->touch_padding.y; + touch.w = bounds.w + style->touch_padding.x * 2; + touch.h = bounds.h + style->touch_padding.y * 2; + if (nk_button_behavior(state, touch, in, NK_BUTTON_DEFAULT)) + *value = !(*value); - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + icon.y = bounds.y + style->padding.y; + icon.w = icon.h = bounds.h - 2 * style->padding.y; + if (align & NK_TEXT_ALIGN_LEFT) { + icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w); + icon.x = NK_MAX(icon.x, 0); + } else icon.x = bounds.x + 2 * style->padding.x; - win = ctx->current; - layout = win->layout; - nk_panel_layout(ctx, win, height, widget_count); - if (fmt == NK_STATIC) - layout->row.type = NK_LAYOUT_STATIC_FREE; - else layout->row.type = NK_LAYOUT_DYNAMIC_FREE; + icon.x += style->image_padding.x; + icon.y += style->image_padding.y; + icon.w -= 2 * style->image_padding.x; + icon.h -= 2 * style->image_padding.y; - layout->row.ratio = 0; - layout->row.filled = 0; - layout->row.item_width = 0; - layout->row.item_offset = 0; + /* draw selectable */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_selectable(out, *state, style, *value, &bounds, &icon, 0, sym, str, len, align, font); + if (style->draw_end) style->draw_end(out, style->userdata); + return old_value != *value; } -NK_API void -nk_layout_space_end(struct nk_context *ctx) +NK_API int +nk_selectable_text(struct nk_context *ctx, const char *str, int len, + nk_flags align, int *value) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + const struct nk_style *style; + + enum nk_widget_layout_states state; + struct nk_rect bounds; NK_ASSERT(ctx); + NK_ASSERT(value); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + if (!ctx || !ctx->current || !ctx->current->layout || !value) + return 0; win = ctx->current; layout = win->layout; - layout->row.item_width = 0; - layout->row.item_height = 0; - layout->row.item_offset = 0; - nk_zero(&layout->row.item, sizeof(layout->row.item)); -} + style = &ctx->style; -NK_API void -nk_layout_space_push(struct nk_context *ctx, struct nk_rect rect) + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_selectable(&ctx->last_widget_state, &win->buffer, bounds, + str, len, align, value, &style->selectable, in, style->font); +} +NK_API int +nk_selectable_image_text(struct nk_context *ctx, struct nk_image img, + const char *str, int len, nk_flags align, int *value) { struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + const struct nk_style *style; + + enum nk_widget_layout_states state; + struct nk_rect bounds; NK_ASSERT(ctx); + NK_ASSERT(value); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + if (!ctx || !ctx->current || !ctx->current->layout || !value) + return 0; win = ctx->current; layout = win->layout; - layout->row.item = rect; -} + style = &ctx->style; -NK_API struct nk_rect -nk_layout_space_bounds(struct nk_context *ctx) + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_selectable_image(&ctx->last_widget_state, &win->buffer, bounds, + str, len, align, value, &img, &style->selectable, in, style->font); +} +NK_API int +nk_selectable_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, + const char *str, int len, nk_flags align, int *value) { - struct nk_rect ret; struct nk_window *win; struct nk_panel *layout; + const struct nk_input *in; + const struct nk_style *style; + + enum nk_widget_layout_states state; + struct nk_rect bounds; NK_ASSERT(ctx); + NK_ASSERT(value); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout || !value) + return 0; + win = ctx->current; layout = win->layout; + style = &ctx->style; - ret.x = layout->clip.x; - ret.y = layout->clip.y; - ret.w = layout->clip.w; - ret.h = layout->row.height; - return ret; + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_selectable_symbol(&ctx->last_widget_state, &win->buffer, bounds, + str, len, align, value, sym, &style->selectable, in, style->font); } - -NK_API struct nk_rect -nk_layout_widget_bounds(struct nk_context *ctx) +NK_API int +nk_selectable_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, + const char *title, nk_flags align, int *value) { - struct nk_rect ret; - struct nk_window *win; - struct nk_panel *layout; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - win = ctx->current; - layout = win->layout; - - ret.x = layout->at_x; - ret.y = layout->at_y; - ret.w = layout->bounds.w - NK_MAX(layout->at_x - layout->bounds.x,0); - ret.h = layout->row.height; - return ret; + return nk_selectable_symbol_text(ctx, sym, title, nk_strlen(title), align, value); } - -NK_API struct nk_vec2 -nk_layout_space_to_screen(struct nk_context *ctx, struct nk_vec2 ret) +NK_API int nk_select_text(struct nk_context *ctx, const char *str, int len, + nk_flags align, int value) { - struct nk_window *win; - struct nk_panel *layout; + nk_selectable_text(ctx, str, len, align, &value);return value; +} +NK_API int nk_selectable_label(struct nk_context *ctx, const char *str, nk_flags align, int *value) +{ + return nk_selectable_text(ctx, str, nk_strlen(str), align, value); +} +NK_API int nk_selectable_image_label(struct nk_context *ctx,struct nk_image img, + const char *str, nk_flags align, int *value) +{ + return nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, value); +} +NK_API int nk_select_label(struct nk_context *ctx, const char *str, nk_flags align, int value) +{ + nk_selectable_text(ctx, str, nk_strlen(str), align, &value);return value; +} +NK_API int nk_select_image_label(struct nk_context *ctx, struct nk_image img, + const char *str, nk_flags align, int value) +{ + nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, &value);return value; +} +NK_API int nk_select_image_text(struct nk_context *ctx, struct nk_image img, + const char *str, int len, nk_flags align, int value) +{ + nk_selectable_image_text(ctx, img, str, len, align, &value);return value; +} +NK_API int +nk_select_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, + const char *title, int title_len, nk_flags align, int value) +{ + nk_selectable_symbol_text(ctx, sym, title, title_len, align, &value);return value; +} +NK_API int +nk_select_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, + const char *title, nk_flags align, int value) +{ + return nk_select_symbol_text(ctx, sym, title, nk_strlen(title), align, value); +} - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - win = ctx->current; - layout = win->layout; - ret.x += layout->at_x - (float)*layout->offset_x; - ret.y += layout->at_y - (float)*layout->offset_y; - return ret; -} -NK_API struct nk_vec2 -nk_layout_space_to_local(struct nk_context *ctx, struct nk_vec2 ret) + + +/* =============================================================== + * + * SLIDER + * + * ===============================================================*/ +NK_LIB float +nk_slider_behavior(nk_flags *state, struct nk_rect *logical_cursor, + struct nk_rect *visual_cursor, struct nk_input *in, + struct nk_rect bounds, float slider_min, float slider_max, float slider_value, + float slider_step, float slider_steps) { - struct nk_window *win; - struct nk_panel *layout; + int left_mouse_down; + int left_mouse_click_in_cursor; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - win = ctx->current; - layout = win->layout; + /* check if visual cursor is being dragged */ + nk_widget_state_reset(state); + left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down; + left_mouse_click_in_cursor = in && nk_input_has_mouse_click_down_in_rect(in, + NK_BUTTON_LEFT, *visual_cursor, nk_true); - ret.x += -layout->at_x + (float)*layout->offset_x; - ret.y += -layout->at_y + (float)*layout->offset_y; - return ret; -} + if (left_mouse_down && left_mouse_click_in_cursor) { + float ratio = 0; + const float d = in->mouse.pos.x - (visual_cursor->x+visual_cursor->w*0.5f); + const float pxstep = bounds.w / slider_steps; -NK_API struct nk_rect -nk_layout_space_rect_to_screen(struct nk_context *ctx, struct nk_rect ret) + /* only update value if the next slider step is reached */ + *state = NK_WIDGET_STATE_ACTIVE; + if (NK_ABS(d) >= pxstep) { + const float steps = (float)((int)(NK_ABS(d) / pxstep)); + slider_value += (d > 0) ? (slider_step*steps) : -(slider_step*steps); + slider_value = NK_CLAMP(slider_min, slider_value, slider_max); + ratio = (slider_value - slider_min)/slider_step; + logical_cursor->x = bounds.x + (logical_cursor->w * ratio); + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = logical_cursor->x; + } + } + + /* slider widget state */ + if (nk_input_is_mouse_hovering_rect(in, bounds)) + *state = NK_WIDGET_STATE_HOVERED; + if (*state & NK_WIDGET_STATE_HOVER && + !nk_input_is_mouse_prev_hovering_rect(in, bounds)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, bounds)) + *state |= NK_WIDGET_STATE_LEFT; + return slider_value; +} +NK_LIB void +nk_draw_slider(struct nk_command_buffer *out, nk_flags state, + const struct nk_style_slider *style, const struct nk_rect *bounds, + const struct nk_rect *visual_cursor, float min, float value, float max) { - struct nk_window *win; - struct nk_panel *layout; + struct nk_rect fill; + struct nk_rect bar; + const struct nk_style_item *background; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - win = ctx->current; - layout = win->layout; + /* select correct slider images/colors */ + struct nk_color bar_color; + const struct nk_style_item *cursor; - ret.x += layout->at_x - (float)*layout->offset_x; - ret.y += layout->at_y - (float)*layout->offset_y; - return ret; -} + NK_UNUSED(min); + NK_UNUSED(max); + NK_UNUSED(value); + + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + bar_color = style->bar_active; + cursor = &style->cursor_active; + } else if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + bar_color = style->bar_hover; + cursor = &style->cursor_hover; + } else { + background = &style->normal; + bar_color = style->bar_normal; + cursor = &style->cursor_normal; + } + /* calculate slider background bar */ + bar.x = bounds->x; + bar.y = (visual_cursor->y + visual_cursor->h/2) - bounds->h/12; + bar.w = bounds->w; + bar.h = bounds->h/6; -NK_API struct nk_rect -nk_layout_space_rect_to_local(struct nk_context *ctx, struct nk_rect ret) -{ - struct nk_window *win; - struct nk_panel *layout; + /* filled background bar style */ + fill.w = (visual_cursor->x + (visual_cursor->w/2.0f)) - bar.x; + fill.x = bar.x; + fill.y = bar.y; + fill.h = bar.h; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - win = ctx->current; - layout = win->layout; + /* draw background */ + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, *bounds, &background->data.image, nk_white); + } else { + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); + } - ret.x += -layout->at_x + (float)*layout->offset_x; - ret.y += -layout->at_y + (float)*layout->offset_y; - return ret; -} + /* draw slider bar */ + nk_fill_rect(out, bar, style->rounding, bar_color); + nk_fill_rect(out, fill, style->rounding, style->bar_filled); -NK_INTERN void -nk_panel_alloc_row(const struct nk_context *ctx, struct nk_window *win) -{ - struct nk_panel *layout = win->layout; - struct nk_vec2 spacing = ctx->style.window.spacing; - const float row_height = layout->row.height - spacing.y; - nk_panel_layout(ctx, win, row_height, layout->row.columns); + /* draw cursor */ + if (cursor->type == NK_STYLE_ITEM_IMAGE) + nk_draw_image(out, *visual_cursor, &cursor->data.image, nk_white); + else nk_fill_circle(out, *visual_cursor, cursor->data.color); } - -NK_INTERN void -nk_layout_widget_space(struct nk_rect *bounds, const struct nk_context *ctx, - struct nk_window *win, int modify) +NK_LIB float +nk_do_slider(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + float min, float val, float max, float step, + const struct nk_style_slider *style, struct nk_input *in, + const struct nk_user_font *font) { - struct nk_panel *layout; - const struct nk_style *style; - - struct nk_vec2 spacing; - struct nk_vec2 padding; + float slider_range; + float slider_min; + float slider_max; + float slider_value; + float slider_steps; + float cursor_offset; - float item_offset = 0; - float item_width = 0; - float item_spacing = 0; - float panel_space = 0; + struct nk_rect visual_cursor; + struct nk_rect logical_cursor; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + NK_ASSERT(style); + NK_ASSERT(out); + if (!out || !style) + return 0; - win = ctx->current; - layout = win->layout; - style = &ctx->style; - NK_ASSERT(bounds); + /* remove padding from slider bounds */ + bounds.x = bounds.x + style->padding.x; + bounds.y = bounds.y + style->padding.y; + bounds.h = NK_MAX(bounds.h, 2*style->padding.y); + bounds.w = NK_MAX(bounds.w, 2*style->padding.x + style->cursor_size.x); + bounds.w -= 2 * style->padding.x; + bounds.h -= 2 * style->padding.y; - spacing = style->window.spacing; - padding = nk_panel_get_padding(style, layout->type); - panel_space = nk_layout_row_calculate_usable_space(&ctx->style, layout->type, - layout->bounds.w, layout->row.columns); + /* optional buttons */ + if (style->show_buttons) { + nk_flags ws; + struct nk_rect button; + button.y = bounds.y; + button.w = bounds.h; + button.h = bounds.h; - /* calculate the width of one item inside the current layout space */ - switch (layout->row.type) { - case NK_LAYOUT_DYNAMIC_FIXED: { - /* scaling fixed size widgets item width */ - item_width = NK_MAX(1.0f,panel_space-1.0f) / (float)layout->row.columns; - item_offset = (float)layout->row.index * item_width; - item_spacing = (float)layout->row.index * spacing.x; - } break; - case NK_LAYOUT_DYNAMIC_ROW: { - /* scaling single ratio widget width */ - item_width = layout->row.item_width * panel_space; - item_offset = layout->row.item_offset; - item_spacing = 0; + /* decrement button */ + button.x = bounds.x; + if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, NK_BUTTON_DEFAULT, + &style->dec_button, in, font)) + val -= step; - if (modify) { - layout->row.item_offset += item_width + spacing.x; - layout->row.filled += layout->row.item_width; - layout->row.index = 0; - } - } break; - case NK_LAYOUT_DYNAMIC_FREE: { - /* panel width depended free widget placing */ - bounds->x = layout->at_x + (layout->bounds.w * layout->row.item.x); - bounds->x -= (float)*layout->offset_x; - bounds->y = layout->at_y + (layout->row.height * layout->row.item.y); - bounds->y -= (float)*layout->offset_y; - bounds->w = layout->bounds.w * layout->row.item.w; - bounds->h = layout->row.height * layout->row.item.h; - return; - } break; - case NK_LAYOUT_DYNAMIC: { - /* scaling arrays of panel width ratios for every widget */ - float ratio; - NK_ASSERT(layout->row.ratio); - ratio = (layout->row.ratio[layout->row.index] < 0) ? - layout->row.item_width : layout->row.ratio[layout->row.index]; + /* increment button */ + button.x = (bounds.x + bounds.w) - button.w; + if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, NK_BUTTON_DEFAULT, + &style->inc_button, in, font)) + val += step; - item_spacing = (float)layout->row.index * spacing.x; - item_width = (ratio * panel_space); - item_offset = layout->row.item_offset; + bounds.x = bounds.x + button.w + style->spacing.x; + bounds.w = bounds.w - (2*button.w + 2*style->spacing.x); + } - if (modify) { - layout->row.item_offset += item_width; - layout->row.filled += ratio; - } - } break; - case NK_LAYOUT_STATIC_FIXED: { - /* non-scaling fixed widgets item width */ - item_width = layout->row.item_width; - item_offset = (float)layout->row.index * item_width; - item_spacing = (float)layout->row.index * spacing.x; - } break; - case NK_LAYOUT_STATIC_ROW: { - /* scaling single ratio widget width */ - item_width = layout->row.item_width; - item_offset = layout->row.item_offset; - item_spacing = (float)layout->row.index * spacing.x; - if (modify) layout->row.item_offset += item_width; - } break; - case NK_LAYOUT_STATIC_FREE: { - /* free widget placing */ - bounds->x = layout->at_x + layout->row.item.x; - bounds->w = layout->row.item.w; - if (((bounds->x + bounds->w) > layout->max_x) && modify) - layout->max_x = (bounds->x + bounds->w); - bounds->x -= (float)*layout->offset_x; - bounds->y = layout->at_y + layout->row.item.y; - bounds->y -= (float)*layout->offset_y; - bounds->h = layout->row.item.h; - return; - } break; - case NK_LAYOUT_STATIC: { - /* non-scaling array of panel pixel width for every widget */ - item_spacing = (float)layout->row.index * spacing.x; - item_width = layout->row.ratio[layout->row.index]; - item_offset = layout->row.item_offset; - if (modify) layout->row.item_offset += item_width; - } break; - case NK_LAYOUT_TEMPLATE: { - /* stretchy row layout with combined dynamic/static widget width*/ - NK_ASSERT(layout->row.index < layout->row.columns); - NK_ASSERT(layout->row.index < NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS); - item_width = layout->row.templates[layout->row.index]; - item_offset = layout->row.item_offset; - item_spacing = (float)layout->row.index * spacing.x; - if (modify) layout->row.item_offset += item_width; - } break; - default: NK_ASSERT(0); break; - }; + /* remove one cursor size to support visual cursor */ + bounds.x += style->cursor_size.x*0.5f; + bounds.w -= style->cursor_size.x; - /* set the bounds of the newly allocated widget */ - bounds->w = item_width; - bounds->h = layout->row.height - spacing.y; - bounds->y = layout->at_y - (float)*layout->offset_y; - bounds->x = layout->at_x + item_offset + item_spacing + padding.x; - if (((bounds->x + bounds->w) > layout->max_x) && modify) - layout->max_x = bounds->x + bounds->w; - bounds->x -= (float)*layout->offset_x; -} + /* make sure the provided values are correct */ + slider_max = NK_MAX(min, max); + slider_min = NK_MIN(min, max); + slider_value = NK_CLAMP(slider_min, val, slider_max); + slider_range = slider_max - slider_min; + slider_steps = slider_range / step; + cursor_offset = (slider_value - slider_min) / step; -NK_INTERN void -nk_panel_alloc_space(struct nk_rect *bounds, const struct nk_context *ctx) -{ - struct nk_window *win; - struct nk_panel *layout; + /* calculate cursor + Basically you have two cursors. One for visual representation and interaction + and one for updating the actual cursor value. */ + logical_cursor.h = bounds.h; + logical_cursor.w = bounds.w / slider_steps; + logical_cursor.x = bounds.x + (logical_cursor.w * cursor_offset); + logical_cursor.y = bounds.y; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + visual_cursor.h = style->cursor_size.y; + visual_cursor.w = style->cursor_size.x; + visual_cursor.y = (bounds.y + bounds.h*0.5f) - visual_cursor.h*0.5f; + visual_cursor.x = logical_cursor.x - visual_cursor.w*0.5f; - /* check if the end of the row has been hit and begin new row if so */ - win = ctx->current; - layout = win->layout; - if (layout->row.index >= layout->row.columns) - nk_panel_alloc_row(ctx, win); + slider_value = nk_slider_behavior(state, &logical_cursor, &visual_cursor, + in, bounds, slider_min, slider_max, slider_value, step, slider_steps); + visual_cursor.x = logical_cursor.x - visual_cursor.w*0.5f; - /* calculate widget position and size */ - nk_layout_widget_space(bounds, ctx, win, nk_true); - layout->row.index++; + /* draw slider */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_slider(out, *state, style, &bounds, &visual_cursor, slider_min, slider_value, slider_max); + if (style->draw_end) style->draw_end(out, style->userdata); + return slider_value; } - -NK_INTERN void -nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx) +NK_API int +nk_slider_float(struct nk_context *ctx, float min_value, float *value, float max_value, + float value_step) { - float y; - int index; struct nk_window *win; struct nk_panel *layout; + struct nk_input *in; + const struct nk_style *style; + + int ret = 0; + float old_value; + struct nk_rect bounds; + enum nk_widget_layout_states state; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + NK_ASSERT(value); + if (!ctx || !ctx->current || !ctx->current->layout || !value) + return ret; win = ctx->current; + style = &ctx->style; layout = win->layout; - y = layout->at_y; - index = layout->row.index; - if (layout->row.index >= layout->row.columns) { - layout->at_y += layout->row.height; - layout->row.index = 0; - } - nk_layout_widget_space(bounds, ctx, win, nk_false); - layout->at_y = y; - layout->row.index = index; -} -NK_INTERN int -nk_tree_state_base(struct nk_context *ctx, enum nk_tree_type type, - struct nk_image *img, const char *title, enum nk_collapse_states *state) -{ - struct nk_window *win; - struct nk_panel *layout; - const struct nk_style *style; - struct nk_command_buffer *out; - const struct nk_input *in; - const struct nk_style_button *button; - enum nk_symbol_type symbol; - float row_height; + state = nk_widget(&bounds, ctx); + if (!state) return ret; + in = (/*state == NK_WIDGET_ROM || */ layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - struct nk_vec2 item_spacing; - struct nk_rect header = {0,0,0,0}; - struct nk_rect sym = {0,0,0,0}; - struct nk_text text; + old_value = *value; + *value = nk_do_slider(&ctx->last_widget_state, &win->buffer, bounds, min_value, + old_value, max_value, value_step, &style->slider, in, style->font); + return (old_value > *value || old_value < *value); +} +NK_API float +nk_slide_float(struct nk_context *ctx, float min, float val, float max, float step) +{ + nk_slider_float(ctx, min, &val, max, step); return val; +} +NK_API int +nk_slide_int(struct nk_context *ctx, int min, int val, int max, int step) +{ + float value = (float)val; + nk_slider_float(ctx, (float)min, &value, (float)max, (float)step); + return (int)value; +} +NK_API int +nk_slider_int(struct nk_context *ctx, int min, int *val, int max, int step) +{ + int ret; + float value = (float)*val; + ret = nk_slider_float(ctx, (float)min, &value, (float)max, (float)step); + *val = (int)value; + return ret; +} - nk_flags ws = 0; - enum nk_widget_layout_states widget_state; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - /* cache some data */ - win = ctx->current; - layout = win->layout; - out = &win->buffer; - style = &ctx->style; - item_spacing = style->window.spacing; - /* calculate header bounds and draw background */ - row_height = style->font->height + 2 * style->tab.padding.y; - nk_layout_set_min_row_height(ctx, row_height); - nk_layout_row_dynamic(ctx, row_height, 1); - nk_layout_reset_min_row_height(ctx); - widget_state = nk_widget(&header, ctx); - if (type == NK_TREE_TAB) { - const struct nk_style_item *background = &style->tab.background; - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(out, header, &background->data.image, nk_white); - text.background = nk_rgba(0,0,0,0); - } else { - text.background = background->data.color; - nk_fill_rect(out, header, 0, style->tab.border_color); - nk_fill_rect(out, nk_shrink_rect(header, style->tab.border), - style->tab.rounding, background->data.color); - } - } else text.background = style->window.background; +/* =============================================================== + * + * PROGRESS + * + * ===============================================================*/ +NK_LIB nk_size +nk_progress_behavior(nk_flags *state, struct nk_input *in, + struct nk_rect r, struct nk_rect cursor, nk_size max, nk_size value, int modifiable) +{ + int left_mouse_down = 0; + int left_mouse_click_in_cursor = 0; - /* update node state */ - in = (!(layout->flags & NK_WINDOW_ROM)) ? &ctx->input: 0; - in = (in && widget_state == NK_WIDGET_VALID) ? &ctx->input : 0; - if (nk_button_behavior(&ws, header, in, NK_BUTTON_DEFAULT)) - *state = (*state == NK_MAXIMIZED) ? NK_MINIMIZED : NK_MAXIMIZED; + nk_widget_state_reset(state); + if (!in || !modifiable) return value; + left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down; + left_mouse_click_in_cursor = in && nk_input_has_mouse_click_down_in_rect(in, + NK_BUTTON_LEFT, cursor, nk_true); + if (nk_input_is_mouse_hovering_rect(in, r)) + *state = NK_WIDGET_STATE_HOVERED; - /* select correct button style */ - if (*state == NK_MAXIMIZED) { - symbol = style->tab.sym_maximize; - if (type == NK_TREE_TAB) - button = &style->tab.tab_maximize_button; - else button = &style->tab.node_maximize_button; - } else { - symbol = style->tab.sym_minimize; - if (type == NK_TREE_TAB) - button = &style->tab.tab_minimize_button; - else button = &style->tab.node_minimize_button; + if (in && left_mouse_down && left_mouse_click_in_cursor) { + if (left_mouse_down && left_mouse_click_in_cursor) { + float ratio = NK_MAX(0, (float)(in->mouse.pos.x - cursor.x)) / (float)cursor.w; + value = (nk_size)NK_CLAMP(0, (float)max * ratio, (float)max); + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = cursor.x + cursor.w/2.0f; + *state |= NK_WIDGET_STATE_ACTIVE; + } } + /* set progressbar widget state */ + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, r)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, r)) + *state |= NK_WIDGET_STATE_LEFT; + return value; +} +NK_LIB void +nk_draw_progress(struct nk_command_buffer *out, nk_flags state, + const struct nk_style_progress *style, const struct nk_rect *bounds, + const struct nk_rect *scursor, nk_size value, nk_size max) +{ + const struct nk_style_item *background; + const struct nk_style_item *cursor; - {/* draw triangle button */ - sym.w = sym.h = style->font->height; - sym.y = header.y + style->tab.padding.y; - sym.x = header.x + style->tab.padding.x; - nk_do_button_symbol(&ws, &win->buffer, sym, symbol, NK_BUTTON_DEFAULT, - button, 0, style->font); + NK_UNUSED(max); + NK_UNUSED(value); - if (img) { - /* draw optional image icon */ - sym.x = sym.x + sym.w + 4 * item_spacing.x; - nk_draw_image(&win->buffer, sym, img, nk_white); - sym.w = style->font->height + style->tab.spacing.x;} + /* select correct colors/images to draw */ + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + cursor = &style->cursor_active; + } else if (state & NK_WIDGET_STATE_HOVER){ + background = &style->hover; + cursor = &style->cursor_hover; + } else { + background = &style->normal; + cursor = &style->cursor_normal; } - {/* draw label */ - struct nk_rect label; - header.w = NK_MAX(header.w, sym.w + item_spacing.x); - label.x = sym.x + sym.w + item_spacing.x; - label.y = sym.y; - label.w = header.w - (sym.w + item_spacing.y + style->tab.indent); - label.h = style->font->height; - text.text = style->tab.text; - text.padding = nk_vec2(0,0); - nk_widget_text(out, label, title, nk_strlen(title), &text, - NK_TEXT_LEFT, style->font);} + /* draw background */ + if (background->type == NK_STYLE_ITEM_COLOR) { + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); + } else nk_draw_image(out, *bounds, &background->data.image, nk_white); - /* increase x-axis cursor widget position pointer */ - if (*state == NK_MAXIMIZED) { - layout->at_x = header.x + (float)*layout->offset_x + style->tab.indent; - layout->bounds.w = NK_MAX(layout->bounds.w, style->tab.indent); - layout->bounds.w -= (style->tab.indent + style->window.padding.x); - layout->row.tree_depth++; - return nk_true; - } else return nk_false; + /* draw cursor */ + if (cursor->type == NK_STYLE_ITEM_COLOR) { + nk_fill_rect(out, *scursor, style->rounding, cursor->data.color); + nk_stroke_rect(out, *scursor, style->rounding, style->border, style->border_color); + } else nk_draw_image(out, *scursor, &cursor->data.image, nk_white); } - -NK_INTERN int -nk_tree_base(struct nk_context *ctx, enum nk_tree_type type, - struct nk_image *img, const char *title, enum nk_collapse_states initial_state, - const char *hash, int len, int line) +NK_LIB nk_size +nk_do_progress(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect bounds, + nk_size value, nk_size max, int modifiable, + const struct nk_style_progress *style, struct nk_input *in) { - struct nk_window *win = ctx->current; - int title_len = 0; - nk_hash tree_hash = 0; - nk_uint *state = 0; + float prog_scale; + nk_size prog_value; + struct nk_rect cursor; - /* retrieve tree state from internal widget state tables */ - if (!hash) { - title_len = (int)nk_strlen(title); - tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line); - } else tree_hash = nk_murmur_hash(hash, len, (nk_hash)line); - state = nk_find_value(win, tree_hash); - if (!state) { - state = nk_add_value(ctx, win, tree_hash, 0); - *state = initial_state; - } - return nk_tree_state_base(ctx, type, img, title, (enum nk_collapse_states*)state); -} + NK_ASSERT(style); + NK_ASSERT(out); + if (!out || !style) return 0; -NK_API int -nk_tree_state_push(struct nk_context *ctx, enum nk_tree_type type, - const char *title, enum nk_collapse_states *state) -{return nk_tree_state_base(ctx, type, 0, title, state);} + /* calculate progressbar cursor */ + cursor.w = NK_MAX(bounds.w, 2 * style->padding.x + 2 * style->border); + cursor.h = NK_MAX(bounds.h, 2 * style->padding.y + 2 * style->border); + cursor = nk_pad_rect(bounds, nk_vec2(style->padding.x + style->border, style->padding.y + style->border)); + prog_scale = (float)value / (float)max; -NK_API int -nk_tree_state_image_push(struct nk_context *ctx, enum nk_tree_type type, - struct nk_image img, const char *title, enum nk_collapse_states *state) -{return nk_tree_state_base(ctx, type, &img, title, state);} + /* update progressbar */ + prog_value = NK_MIN(value, max); + prog_value = nk_progress_behavior(state, in, bounds, cursor,max, prog_value, modifiable); + cursor.w = cursor.w * prog_scale; -NK_API void -nk_tree_state_pop(struct nk_context *ctx) + /* draw progressbar */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_progress(out, *state, style, &bounds, &cursor, value, max); + if (style->draw_end) style->draw_end(out, style->userdata); + return prog_value; +} +NK_API int +nk_progress(struct nk_context *ctx, nk_size *cur, nk_size max, int is_modifyable) { - struct nk_window *win = 0; - struct nk_panel *layout = 0; + struct nk_window *win; + struct nk_panel *layout; + const struct nk_style *style; + struct nk_input *in; + + struct nk_rect bounds; + enum nk_widget_layout_states state; + nk_size old_value; NK_ASSERT(ctx); + NK_ASSERT(cur); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + if (!ctx || !ctx->current || !ctx->current->layout || !cur) + return 0; win = ctx->current; + style = &ctx->style; layout = win->layout; - layout->at_x -= ctx->style.tab.indent + ctx->style.window.padding.x; - layout->bounds.w += ctx->style.tab.indent + ctx->style.window.padding.x; - NK_ASSERT(layout->row.tree_depth); - layout->row.tree_depth--; -} - -NK_API int -nk_tree_push_hashed(struct nk_context *ctx, enum nk_tree_type type, - const char *title, enum nk_collapse_states initial_state, - const char *hash, int len, int line) -{return nk_tree_base(ctx, type, 0, title, initial_state, hash, len, line);} - -NK_API int -nk_tree_image_push_hashed(struct nk_context *ctx, enum nk_tree_type type, - struct nk_image img, const char *title, enum nk_collapse_states initial_state, - const char *hash, int len,int seed) -{return nk_tree_base(ctx, type, &img, title, initial_state, hash, len, seed);} - -NK_API void -nk_tree_pop(struct nk_context *ctx) -{nk_tree_state_pop(ctx);} + state = nk_widget(&bounds, ctx); + if (!state) return 0; -/*---------------------------------------------------------------- - * - * WIDGETS - * - * --------------------------------------------------------------*/ -NK_API struct nk_rect -nk_widget_bounds(struct nk_context *ctx) -{ - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return nk_rect(0,0,0,0); - nk_layout_peek(&bounds, ctx); - return bounds; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + old_value = *cur; + *cur = nk_do_progress(&ctx->last_widget_state, &win->buffer, bounds, + *cur, max, is_modifyable, &style->progress, in); + return (*cur != old_value); } - -NK_API struct nk_vec2 -nk_widget_position(struct nk_context *ctx) +NK_API nk_size +nk_prog(struct nk_context *ctx, nk_size cur, nk_size max, int modifyable) { - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return nk_vec2(0,0); - - nk_layout_peek(&bounds, ctx); - return nk_vec2(bounds.x, bounds.y); + nk_progress(ctx, &cur, max, modifyable); + return cur; } -NK_API struct nk_vec2 -nk_widget_size(struct nk_context *ctx) -{ - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return nk_vec2(0,0); - nk_layout_peek(&bounds, ctx); - return nk_vec2(bounds.w, bounds.h); -} -NK_API float -nk_widget_width(struct nk_context *ctx) -{ - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return 0; - nk_layout_peek(&bounds, ctx); - return bounds.w; -} -NK_API float -nk_widget_height(struct nk_context *ctx) +/* =============================================================== + * + * SCROLLBAR + * + * ===============================================================*/ +NK_LIB float +nk_scrollbar_behavior(nk_flags *state, struct nk_input *in, + int has_scrolling, const struct nk_rect *scroll, + const struct nk_rect *cursor, const struct nk_rect *empty0, + const struct nk_rect *empty1, float scroll_offset, + float target, float scroll_step, enum nk_orientation o) { - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return 0; - - nk_layout_peek(&bounds, ctx); - return bounds.h; -} + nk_flags ws = 0; + int left_mouse_down; + int left_mouse_click_in_cursor; + float scroll_delta; -NK_API int -nk_widget_is_hovered(struct nk_context *ctx) -{ - struct nk_rect c, v; - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current || ctx->active != ctx->current) - return 0; + nk_widget_state_reset(state); + if (!in) return scroll_offset; - c = ctx->current->layout->clip; - c.x = (float)((int)c.x); - c.y = (float)((int)c.y); - c.w = (float)((int)c.w); - c.h = (float)((int)c.h); + left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down; + left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in, + NK_BUTTON_LEFT, *cursor, nk_true); + if (nk_input_is_mouse_hovering_rect(in, *scroll)) + *state = NK_WIDGET_STATE_HOVERED; - nk_layout_peek(&bounds, ctx); - nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); - if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) - return 0; - return nk_input_is_mouse_hovering_rect(&ctx->input, bounds); + scroll_delta = (o == NK_VERTICAL) ? in->mouse.scroll_delta.y: in->mouse.scroll_delta.x; + if (left_mouse_down && left_mouse_click_in_cursor) { + /* update cursor by mouse dragging */ + float pixel, delta; + *state = NK_WIDGET_STATE_ACTIVE; + if (o == NK_VERTICAL) { + float cursor_y; + pixel = in->mouse.delta.y; + delta = (pixel / scroll->h) * target; + scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->h); + cursor_y = scroll->y + ((scroll_offset/target) * scroll->h); + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y = cursor_y + cursor->h/2.0f; + } else { + float cursor_x; + pixel = in->mouse.delta.x; + delta = (pixel / scroll->w) * target; + scroll_offset = NK_CLAMP(0, scroll_offset + delta, target - scroll->w); + cursor_x = scroll->x + ((scroll_offset/target) * scroll->w); + in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x = cursor_x + cursor->w/2.0f; + } + } else if ((nk_input_is_key_pressed(in, NK_KEY_SCROLL_UP) && o == NK_VERTICAL && has_scrolling)|| + nk_button_behavior(&ws, *empty0, in, NK_BUTTON_DEFAULT)) { + /* scroll page up by click on empty space or shortcut */ + if (o == NK_VERTICAL) + scroll_offset = NK_MAX(0, scroll_offset - scroll->h); + else scroll_offset = NK_MAX(0, scroll_offset - scroll->w); + } else if ((nk_input_is_key_pressed(in, NK_KEY_SCROLL_DOWN) && o == NK_VERTICAL && has_scrolling) || + nk_button_behavior(&ws, *empty1, in, NK_BUTTON_DEFAULT)) { + /* scroll page down by click on empty space or shortcut */ + if (o == NK_VERTICAL) + scroll_offset = NK_MIN(scroll_offset + scroll->h, target - scroll->h); + else scroll_offset = NK_MIN(scroll_offset + scroll->w, target - scroll->w); + } else if (has_scrolling) { + if ((scroll_delta < 0 || (scroll_delta > 0))) { + /* update cursor by mouse scrolling */ + scroll_offset = scroll_offset + scroll_step * (-scroll_delta); + if (o == NK_VERTICAL) + scroll_offset = NK_CLAMP(0, scroll_offset, target - scroll->h); + else scroll_offset = NK_CLAMP(0, scroll_offset, target - scroll->w); + } else if (nk_input_is_key_pressed(in, NK_KEY_SCROLL_START)) { + /* update cursor to the beginning */ + if (o == NK_VERTICAL) scroll_offset = 0; + } else if (nk_input_is_key_pressed(in, NK_KEY_SCROLL_END)) { + /* update cursor to the end */ + if (o == NK_VERTICAL) scroll_offset = target - scroll->h; + } + } + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, *scroll)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, *scroll)) + *state |= NK_WIDGET_STATE_LEFT; + return scroll_offset; } - -NK_API int -nk_widget_is_mouse_clicked(struct nk_context *ctx, enum nk_buttons btn) +NK_LIB void +nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state, + const struct nk_style_scrollbar *style, const struct nk_rect *bounds, + const struct nk_rect *scroll) { - struct nk_rect c, v; - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current || ctx->active != ctx->current) - return 0; + const struct nk_style_item *background; + const struct nk_style_item *cursor; - c = ctx->current->layout->clip; - c.x = (float)((int)c.x); - c.y = (float)((int)c.y); - c.w = (float)((int)c.w); - c.h = (float)((int)c.h); + /* select correct colors/images to draw */ + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + cursor = &style->cursor_active; + } else if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + cursor = &style->cursor_hover; + } else { + background = &style->normal; + cursor = &style->cursor_normal; + } - nk_layout_peek(&bounds, ctx); - nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); - if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) - return 0; - return nk_input_mouse_clicked(&ctx->input, btn, bounds); -} + /* draw background */ + if (background->type == NK_STYLE_ITEM_COLOR) { + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color); + } else { + nk_draw_image(out, *bounds, &background->data.image, nk_white); + } -NK_API int -nk_widget_has_mouse_click_down(struct nk_context *ctx, enum nk_buttons btn, int down) + /* draw cursor */ + if (cursor->type == NK_STYLE_ITEM_COLOR) { + nk_fill_rect(out, *scroll, style->rounding_cursor, cursor->data.color); + nk_stroke_rect(out, *scroll, style->rounding_cursor, style->border_cursor, style->cursor_border_color); + } else nk_draw_image(out, *scroll, &cursor->data.image, nk_white); +} +NK_LIB float +nk_do_scrollbarv(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, + float offset, float target, float step, float button_pixel_inc, + const struct nk_style_scrollbar *style, struct nk_input *in, + const struct nk_user_font *font) { - struct nk_rect c, v; - struct nk_rect bounds; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current || ctx->active != ctx->current) - return 0; + struct nk_rect empty_north; + struct nk_rect empty_south; + struct nk_rect cursor; + + float scroll_step; + float scroll_offset; + float scroll_off; + float scroll_ratio; - c = ctx->current->layout->clip; - c.x = (float)((int)c.x); - c.y = (float)((int)c.y); - c.w = (float)((int)c.w); - c.h = (float)((int)c.h); + NK_ASSERT(out); + NK_ASSERT(style); + NK_ASSERT(state); + if (!out || !style) return 0; - nk_layout_peek(&bounds, ctx); - nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h); - if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h)) - return 0; - return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down); -} + scroll.w = NK_MAX(scroll.w, 1); + scroll.h = NK_MAX(scroll.h, 0); + if (target <= scroll.h) return 0; -NK_API enum nk_widget_layout_states -nk_widget(struct nk_rect *bounds, const struct nk_context *ctx) -{ - struct nk_rect c, v; - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; + /* optional scrollbar buttons */ + if (style->show_buttons) { + nk_flags ws; + float scroll_h; + struct nk_rect button; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return NK_WIDGET_INVALID; + button.x = scroll.x; + button.w = scroll.w; + button.h = scroll.w; - /* allocate space and check if the widget needs to be updated and drawn */ - nk_panel_alloc_space(bounds, ctx); - win = ctx->current; - layout = win->layout; - in = &ctx->input; - c = layout->clip; + scroll_h = NK_MAX(scroll.h - 2 * button.h,0); + scroll_step = NK_MIN(step, button_pixel_inc); - /* if one of these triggers you forgot to add an `if` condition around either - a window, group, popup, combobox or contextual menu `begin` and `end` block. - Example: - if (nk_begin(...) {...} nk_end(...); or - if (nk_group_begin(...) { nk_group_end(...);} */ - NK_ASSERT(!(layout->flags & NK_WINDOW_MINIMIZED)); - NK_ASSERT(!(layout->flags & NK_WINDOW_HIDDEN)); - NK_ASSERT(!(layout->flags & NK_WINDOW_CLOSED)); + /* decrement button */ + button.y = scroll.y; + if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, + NK_BUTTON_REPEATER, &style->dec_button, in, font)) + offset = offset - scroll_step; - /* need to convert to int here to remove floating point errors */ - bounds->x = (float)((int)bounds->x); - bounds->y = (float)((int)bounds->y); - bounds->w = (float)((int)bounds->w); - bounds->h = (float)((int)bounds->h); + /* increment button */ + button.y = scroll.y + scroll.h - button.h; + if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, + NK_BUTTON_REPEATER, &style->inc_button, in, font)) + offset = offset + scroll_step; - c.x = (float)((int)c.x); - c.y = (float)((int)c.y); - c.w = (float)((int)c.w); - c.h = (float)((int)c.h); + scroll.y = scroll.y + button.h; + scroll.h = scroll_h; + } - nk_unify(&v, &c, bounds->x, bounds->y, bounds->x + bounds->w, bounds->y + bounds->h); - if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds->x, bounds->y, bounds->w, bounds->h)) - return NK_WIDGET_INVALID; - if (!NK_INBOX(in->mouse.pos.x, in->mouse.pos.y, v.x, v.y, v.w, v.h)) - return NK_WIDGET_ROM; - return NK_WIDGET_VALID; -} + /* calculate scrollbar constants */ + scroll_step = NK_MIN(step, scroll.h); + scroll_offset = NK_CLAMP(0, offset, target - scroll.h); + scroll_ratio = scroll.h / target; + scroll_off = scroll_offset / target; -NK_API enum nk_widget_layout_states -nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx, - struct nk_vec2 item_padding) -{ - /* update the bounds to stand without padding */ - struct nk_window *win; - struct nk_style *style; - struct nk_panel *layout; - enum nk_widget_layout_states state; - struct nk_vec2 panel_padding; + /* calculate scrollbar cursor bounds */ + cursor.h = NK_MAX((scroll_ratio * scroll.h) - (2*style->border + 2*style->padding.y), 0); + cursor.y = scroll.y + (scroll_off * scroll.h) + style->border + style->padding.y; + cursor.w = scroll.w - (2 * style->border + 2 * style->padding.x); + cursor.x = scroll.x + style->border + style->padding.x; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return NK_WIDGET_INVALID; + /* calculate empty space around cursor */ + empty_north.x = scroll.x; + empty_north.y = scroll.y; + empty_north.w = scroll.w; + empty_north.h = NK_MAX(cursor.y - scroll.y, 0); - win = ctx->current; - style = &ctx->style; - layout = win->layout; - state = nk_widget(bounds, ctx); + empty_south.x = scroll.x; + empty_south.y = cursor.y + cursor.h; + empty_south.w = scroll.w; + empty_south.h = NK_MAX((scroll.y + scroll.h) - (cursor.y + cursor.h), 0); - panel_padding = nk_panel_get_padding(style, layout->type); - if (layout->row.index == 1) { - bounds->w += panel_padding.x; - bounds->x -= panel_padding.x; - } else bounds->x -= item_padding.x; + /* update scrollbar */ + scroll_offset = nk_scrollbar_behavior(state, in, has_scrolling, &scroll, &cursor, + &empty_north, &empty_south, scroll_offset, target, scroll_step, NK_VERTICAL); + scroll_off = scroll_offset / target; + cursor.y = scroll.y + (scroll_off * scroll.h) + style->border_cursor + style->padding.y; - if (layout->row.index == layout->row.columns) - bounds->w += panel_padding.x; - else bounds->w += item_padding.x; - return state; + /* draw scrollbar */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_scrollbar(out, *state, style, &scroll, &cursor); + if (style->draw_end) style->draw_end(out, style->userdata); + return scroll_offset; } - -/*---------------------------------------------------------------- - * - * MISC - * - * --------------------------------------------------------------*/ -NK_API void -nk_spacing(struct nk_context *ctx, int cols) +NK_LIB float +nk_do_scrollbarh(nk_flags *state, + struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, + float offset, float target, float step, float button_pixel_inc, + const struct nk_style_scrollbar *style, struct nk_input *in, + const struct nk_user_font *font) { - struct nk_window *win; - struct nk_panel *layout; - struct nk_rect none; - int i, index, rows; + struct nk_rect cursor; + struct nk_rect empty_west; + struct nk_rect empty_east; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + float scroll_step; + float scroll_offset; + float scroll_off; + float scroll_ratio; - /* spacing over row boundaries */ - win = ctx->current; - layout = win->layout; - index = (layout->row.index + cols) % layout->row.columns; - rows = (layout->row.index + cols) / layout->row.columns; - if (rows) { - for (i = 0; i < rows; ++i) - nk_panel_alloc_row(ctx, win); - cols = index; - } - /* non table layout need to allocate space */ - if (layout->row.type != NK_LAYOUT_DYNAMIC_FIXED && - layout->row.type != NK_LAYOUT_STATIC_FIXED) { - for (i = 0; i < cols; ++i) - nk_panel_alloc_space(&none, ctx); - } - layout->row.index = index; -} + NK_ASSERT(out); + NK_ASSERT(style); + if (!out || !style) return 0; -/*---------------------------------------------------------------- - * - * TEXT - * - * --------------------------------------------------------------*/ -NK_API void -nk_text_colored(struct nk_context *ctx, const char *str, int len, - nk_flags alignment, struct nk_color color) -{ - struct nk_window *win; - const struct nk_style *style; + /* scrollbar background */ + scroll.h = NK_MAX(scroll.h, 1); + scroll.w = NK_MAX(scroll.w, 2 * scroll.h); + if (target <= scroll.w) return 0; - struct nk_vec2 item_padding; - struct nk_rect bounds; - struct nk_text text; + /* optional scrollbar buttons */ + if (style->show_buttons) { + nk_flags ws; + float scroll_w; + struct nk_rect button; + button.y = scroll.y; + button.w = scroll.h; + button.h = scroll.h; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) return; + scroll_w = scroll.w - 2 * button.w; + scroll_step = NK_MIN(step, button_pixel_inc); - win = ctx->current; - style = &ctx->style; - nk_panel_alloc_space(&bounds, ctx); - item_padding = style->text.padding; + /* decrement button */ + button.x = scroll.x; + if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, + NK_BUTTON_REPEATER, &style->dec_button, in, font)) + offset = offset - scroll_step; - text.padding.x = item_padding.x; - text.padding.y = item_padding.y; - text.background = style->window.background; - text.text = color; - nk_widget_text(&win->buffer, bounds, str, len, &text, alignment, style->font); -} + /* increment button */ + button.x = scroll.x + scroll.w - button.w; + if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, + NK_BUTTON_REPEATER, &style->inc_button, in, font)) + offset = offset + scroll_step; -NK_API void -nk_text_wrap_colored(struct nk_context *ctx, const char *str, - int len, struct nk_color color) -{ - struct nk_window *win; - const struct nk_style *style; + scroll.x = scroll.x + button.w; + scroll.w = scroll_w; + } - struct nk_vec2 item_padding; - struct nk_rect bounds; - struct nk_text text; + /* calculate scrollbar constants */ + scroll_step = NK_MIN(step, scroll.w); + scroll_offset = NK_CLAMP(0, offset, target - scroll.w); + scroll_ratio = scroll.w / target; + scroll_off = scroll_offset / target; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) return; + /* calculate cursor bounds */ + cursor.w = (scroll_ratio * scroll.w) - (2*style->border + 2*style->padding.x); + cursor.x = scroll.x + (scroll_off * scroll.w) + style->border + style->padding.x; + cursor.h = scroll.h - (2 * style->border + 2 * style->padding.y); + cursor.y = scroll.y + style->border + style->padding.y; - win = ctx->current; - style = &ctx->style; - nk_panel_alloc_space(&bounds, ctx); - item_padding = style->text.padding; + /* calculate empty space around cursor */ + empty_west.x = scroll.x; + empty_west.y = scroll.y; + empty_west.w = cursor.x - scroll.x; + empty_west.h = scroll.h; - text.padding.x = item_padding.x; - text.padding.y = item_padding.y; - text.background = style->window.background; - text.text = color; - nk_widget_text_wrap(&win->buffer, bounds, str, len, &text, style->font); -} + empty_east.x = cursor.x + cursor.w; + empty_east.y = scroll.y; + empty_east.w = (scroll.x + scroll.w) - (cursor.x + cursor.w); + empty_east.h = scroll.h; -#ifdef NK_INCLUDE_STANDARD_VARARGS -NK_API void -nk_labelf_colored(struct nk_context *ctx, nk_flags flags, - struct nk_color color, const char *fmt, ...) -{ - char buf[256]; - va_list args; - va_start(args, fmt); - nk_strfmt(buf, NK_LEN(buf), fmt, args); - nk_label_colored(ctx, buf, flags, color); - va_end(args); -} + /* update scrollbar */ + scroll_offset = nk_scrollbar_behavior(state, in, has_scrolling, &scroll, &cursor, + &empty_west, &empty_east, scroll_offset, target, scroll_step, NK_HORIZONTAL); + scroll_off = scroll_offset / target; + cursor.x = scroll.x + (scroll_off * scroll.w); -NK_API void -nk_labelf_colored_wrap(struct nk_context *ctx, struct nk_color color, - const char *fmt, ...) -{ - char buf[256]; - va_list args; - va_start(args, fmt); - nk_strfmt(buf, NK_LEN(buf), fmt, args); - nk_label_colored_wrap(ctx, buf, color); - va_end(args); + /* draw scrollbar */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_scrollbar(out, *state, style, &scroll, &cursor); + if (style->draw_end) style->draw_end(out, style->userdata); + return scroll_offset; } -NK_API void -nk_labelf(struct nk_context *ctx, nk_flags flags, const char *fmt, ...) -{ - char buf[256]; - va_list args; - va_start(args, fmt); - nk_strfmt(buf, NK_LEN(buf), fmt, args); - nk_label(ctx, buf, flags); - va_end(args); -} -NK_API void -nk_labelf_wrap(struct nk_context *ctx, const char *fmt,...) -{ - char buf[256]; - va_list args; - va_start(args, fmt); - nk_strfmt(buf, NK_LEN(buf), fmt, args); - nk_label_wrap(ctx, buf); - va_end(args); -} -NK_API void -nk_value_bool(struct nk_context *ctx, const char *prefix, int value) -{nk_labelf(ctx, NK_TEXT_LEFT, "%s: %s", prefix, ((value) ? "true": "false"));} -NK_API void -nk_value_int(struct nk_context *ctx, const char *prefix, int value) -{nk_labelf(ctx, NK_TEXT_LEFT, "%s: %d", prefix, value);} -NK_API void -nk_value_uint(struct nk_context *ctx, const char *prefix, unsigned int value) -{nk_labelf(ctx, NK_TEXT_LEFT, "%s: %u", prefix, value);} +/* =============================================================== + * + * TEXT EDITOR + * + * ===============================================================*/ +/* stb_textedit.h - v1.8 - public domain - Sean Barrett */ +struct nk_text_find { + 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 */ +}; -NK_API void -nk_value_float(struct nk_context *ctx, const char *prefix, float value) -{ - double double_value = (double)value; - nk_labelf(ctx, NK_TEXT_LEFT, "%s: %.3f", prefix, double_value); -} +struct nk_text_edit_row { + 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; +}; -NK_API void -nk_value_color_byte(struct nk_context *ctx, const char *p, struct nk_color c) -{nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%d, %d, %d, %d)", p, c.r, c.g, c.b, c.a);} +/* forward declarations */ +NK_INTERN void nk_textedit_makeundo_delete(struct nk_text_edit*, int, int); +NK_INTERN void nk_textedit_makeundo_insert(struct nk_text_edit*, int, int); +NK_INTERN void nk_textedit_makeundo_replace(struct nk_text_edit*, int, int, int); +#define NK_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) -NK_API void -nk_value_color_float(struct nk_context *ctx, const char *p, struct nk_color color) +NK_INTERN float +nk_textedit_get_width(const struct nk_text_edit *edit, int line_start, int char_id, + const struct nk_user_font *font) { - double c[4]; nk_color_dv(c, color); - nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%.2f, %.2f, %.2f, %.2f)", - p, c[0], c[1], c[2], c[3]); + int len = 0; + nk_rune unicode = 0; + const char *str = nk_str_at_const(&edit->string, line_start + char_id, &unicode, &len); + return font->width(font->userdata, font->height, str, len); } - -NK_API void -nk_value_color_hex(struct nk_context *ctx, const char *prefix, struct nk_color color) +NK_INTERN void +nk_textedit_layout_row(struct nk_text_edit_row *r, struct nk_text_edit *edit, + int line_start_id, float row_height, const struct nk_user_font *font) { - char hex[16]; - nk_color_hex_rgba(hex, color); - nk_labelf(ctx, NK_TEXT_LEFT, "%s: %s", prefix, hex); -} -#endif + int l; + int glyphs = 0; + nk_rune unicode; + const char *remaining; + int len = nk_str_len_char(&edit->string); + const char *end = nk_str_get_const(&edit->string) + len; + const char *text = nk_str_at_const(&edit->string, line_start_id, &unicode, &l); + const struct nk_vec2 size = nk_text_calculate_text_bounds(font, + text, (int)(end - text), row_height, &remaining, 0, &glyphs, NK_STOP_ON_NEW_LINE); -NK_API void -nk_text(struct nk_context *ctx, const char *str, int len, nk_flags alignment) -{ - NK_ASSERT(ctx); - if (!ctx) return; - nk_text_colored(ctx, str, len, alignment, ctx->style.text.color); + 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 = glyphs; } - -NK_API void -nk_text_wrap(struct nk_context *ctx, const char *str, int len) +NK_INTERN int +nk_textedit_locate_coord(struct nk_text_edit *edit, float x, float y, + const struct nk_user_font *font, float row_height) { - NK_ASSERT(ctx); - if (!ctx) return; - nk_text_wrap_colored(ctx, str, len, ctx->style.text.color); -} + struct nk_text_edit_row r; + int n = edit->string.len; + float base_y = 0, prev_x; + int i=0, k; -NK_API void -nk_label(struct nk_context *ctx, const char *str, nk_flags alignment) -{nk_text(ctx, str, nk_strlen(str), alignment);} + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; -NK_API void -nk_label_colored(struct nk_context *ctx, const char *str, nk_flags align, - struct nk_color color) -{nk_text_colored(ctx, str, nk_strlen(str), align, color);} + /* search rows to find one that straddles 'y' */ + while (i < n) { + nk_textedit_layout_row(&r, edit, i, row_height, font); + if (r.num_chars <= 0) + return n; -NK_API void -nk_label_wrap(struct nk_context *ctx, const char *str) -{nk_text_wrap(ctx, str, nk_strlen(str));} + if (i==0 && y < base_y + r.ymin) + return 0; -NK_API void -nk_label_colored_wrap(struct nk_context *ctx, const char *str, struct nk_color color) -{nk_text_wrap_colored(ctx, str, nk_strlen(str), color);} + if (y < base_y + r.ymax) + break; -NK_API void -nk_image(struct nk_context *ctx, struct nk_image img) -{ - struct nk_window *win; - struct nk_rect bounds; + i += r.num_chars; + base_y += r.baseline_y_delta; + } - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) return; + /* below all text, return 'after' last character */ + if (i >= n) + return n; - win = ctx->current; - if (!nk_widget(&bounds, ctx)) return; - nk_draw_image(&win->buffer, bounds, &img, nk_white); -} + /* check if it's before the beginning of the line */ + if (x < r.x0) + return i; -/*---------------------------------------------------------------- - * - * BUTTON - * - * --------------------------------------------------------------*/ -NK_API void -nk_button_set_behavior(struct nk_context *ctx, enum nk_button_behavior behavior) + /* check if it's before the end of the line */ + if (x < r.x1) { + /* search characters in row for one that straddles 'x' */ + k = i; + prev_x = r.x0; + for (i=0; i < r.num_chars; ++i) { + float w = nk_textedit_get_width(edit, k, i, font); + 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 (nk_str_rune_at(&edit->string, i+r.num_chars-1) == '\n') + return i+r.num_chars-1; + else return i+r.num_chars; +} +NK_LIB void +nk_textedit_click(struct nk_text_edit *state, float x, float y, + const struct nk_user_font *font, float row_height) +{ + /* API click: on mouse down, move the cursor to the clicked location, + * and reset the selection */ + state->cursor = nk_textedit_locate_coord(state, x, y, font, row_height); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} +NK_LIB void +nk_textedit_drag(struct nk_text_edit *state, float x, float y, + const struct nk_user_font *font, float row_height) { - NK_ASSERT(ctx); - if (!ctx) return; - ctx->button_behavior = behavior; + /* API drag: on mouse drag, move the cursor and selection endpoint + * to the clicked location */ + int p = nk_textedit_locate_coord(state, x, y, font, row_height); + if (state->select_start == state->select_end) + state->select_start = state->cursor; + state->cursor = state->select_end = p; } - -NK_API int -nk_button_push_behavior(struct nk_context *ctx, enum nk_button_behavior behavior) +NK_INTERN void +nk_textedit_find_charpos(struct nk_text_find *find, struct nk_text_edit *state, + int n, int single_line, const struct nk_user_font *font, float row_height) { - struct nk_config_stack_button_behavior *button_stack; - struct nk_config_stack_button_behavior_element *element; - - NK_ASSERT(ctx); - if (!ctx) return 0; + /* 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) */ + struct nk_text_edit_row r; + int prev_start = 0; + int z = state->string.len; + int i=0, first; - button_stack = &ctx->stacks.button_behaviors; - NK_ASSERT(button_stack->head < (int)NK_LEN(button_stack->elements)); - if (button_stack->head >= (int)NK_LEN(button_stack->elements)) - return 0; + nk_zero_struct(r); + 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 */ + nk_textedit_layout_row(&r, state, 0, row_height, font); + if (single_line) { + find->first_char = 0; + find->length = z; + } else { + while (i < z) { + prev_start = i; + i += r.num_chars; + nk_textedit_layout_row(&r, state, i, row_height, font); + } - element = &button_stack->elements[button_stack->head++]; - element->address = &ctx->button_behavior; - element->old_value = ctx->button_behavior; - ctx->button_behavior = behavior; - return 1; -} + find->first_char = i; + find->length = r.num_chars; + } + find->x = r.x1; + find->y = r.ymin; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + return; + } -NK_API int -nk_button_pop_behavior(struct nk_context *ctx) -{ - struct nk_config_stack_button_behavior *button_stack; - struct nk_config_stack_button_behavior_element *element; + /* search rows to find the one that straddles character n */ + find->y = 0; - NK_ASSERT(ctx); - if (!ctx) return 0; + for(;;) { + nk_textedit_layout_row(&r, state, i, row_height, font); + if (n < i + r.num_chars) break; + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + } - button_stack = &ctx->stacks.button_behaviors; - NK_ASSERT(button_stack->head > 0); - if (button_stack->head < 1) - return 0; + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; - element = &button_stack->elements[--button_stack->head]; - *element->address = element->old_value; - return 1; + /* now scan to find xpos */ + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += nk_textedit_get_width(state, first, i, font); } - -NK_API int -nk_button_text_styled(struct nk_context *ctx, - const struct nk_style_button *style, const char *title, int len) +NK_INTERN void +nk_textedit_clamp(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - - struct nk_rect bounds; - enum nk_widget_layout_states state; - - NK_ASSERT(ctx); - NK_ASSERT(style); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!style || !ctx || !ctx->current || !ctx->current->layout) return 0; - - win = ctx->current; - layout = win->layout; - state = nk_widget(&bounds, ctx); - - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_button_text(&ctx->last_widget_state, &win->buffer, bounds, - title, len, style->text_alignment, ctx->button_behavior, - style, in, ctx->style.font); + /* make the selection/cursor state valid if client altered the string */ + int n = state->string.len; + if (NK_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; } - -NK_API int -nk_button_text(struct nk_context *ctx, const char *title, int len) +NK_API void +nk_textedit_delete(struct nk_text_edit *state, int where, int len) { - NK_ASSERT(ctx); - if (!ctx) return 0; - return nk_button_text_styled(ctx, &ctx->style.button, title, len); + /* delete characters while updating undo */ + nk_textedit_makeundo_delete(state, where, len); + nk_str_delete_runes(&state->string, where, len); + state->has_preferred_x = 0; } - -NK_API int nk_button_label_styled(struct nk_context *ctx, - const struct nk_style_button *style, const char *title) -{return nk_button_text_styled(ctx, style, title, nk_strlen(title));} - -NK_API int nk_button_label(struct nk_context *ctx, const char *title) -{return nk_button_text(ctx, title, nk_strlen(title));} - -NK_API int -nk_button_color(struct nk_context *ctx, struct nk_color color) +NK_API void +nk_textedit_delete_selection(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - struct nk_style_button button; - - int ret = 0; - struct nk_rect bounds; - struct nk_rect content; - enum nk_widget_layout_states state; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - - win = ctx->current; - layout = win->layout; - - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - - button = ctx->style.button; - button.normal = nk_style_item_color(color); - button.hover = nk_style_item_color(color); - button.active = nk_style_item_color(color); - ret = nk_do_button(&ctx->last_widget_state, &win->buffer, bounds, - &button, in, ctx->button_behavior, &content); - nk_draw_button(&win->buffer, &bounds, ctx->last_widget_state, &button); - return ret; + /* delete the section */ + nk_textedit_clamp(state); + if (NK_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + nk_textedit_delete(state, state->select_start, + state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + nk_textedit_delete(state, state->select_end, + state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } } - -NK_API int -nk_button_symbol_styled(struct nk_context *ctx, - const struct nk_style_button *style, enum nk_symbol_type symbol) +NK_INTERN void +nk_textedit_sortselection(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - - struct nk_rect bounds; - enum nk_widget_layout_states state; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - - win = ctx->current; - layout = win->layout; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_button_symbol(&ctx->last_widget_state, &win->buffer, bounds, - symbol, ctx->button_behavior, style, in, ctx->style.font); + /* canonicalize the selection so start <= end */ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} +NK_INTERN void +nk_textedit_move_to_first(struct nk_text_edit *state) +{ + /* move cursor to first character of selection */ + if (NK_TEXT_HAS_SELECTION(state)) { + nk_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} +NK_INTERN void +nk_textedit_move_to_last(struct nk_text_edit *state) +{ + /* move cursor to last character of selection */ + if (NK_TEXT_HAS_SELECTION(state)) { + nk_textedit_sortselection(state); + nk_textedit_clamp(state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } } - -NK_API int -nk_button_symbol(struct nk_context *ctx, enum nk_symbol_type symbol) +NK_INTERN int +nk_is_word_boundary( struct nk_text_edit *state, int idx) { - NK_ASSERT(ctx); - if (!ctx) return 0; - return nk_button_symbol_styled(ctx, &ctx->style.button, symbol); + int len; + nk_rune c; + if (idx <= 0) return 1; + if (!nk_str_at_rune(&state->string, idx, &c, &len)) return 1; + return (c == ' ' || c == '\t' ||c == 0x3000 || c == ',' || c == ';' || + c == '(' || c == ')' || c == '{' || c == '}' || c == '[' || c == ']' || + c == '|'); } - -NK_API int -nk_button_image_styled(struct nk_context *ctx, const struct nk_style_button *style, - struct nk_image img) +NK_INTERN int +nk_textedit_move_to_word_previous(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; + int c = state->cursor - 1; + while( c >= 0 && !nk_is_word_boundary(state, c)) + --c; - struct nk_rect bounds; - enum nk_widget_layout_states state; + if( c < 0 ) + c = 0; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + return c; +} +NK_INTERN int +nk_textedit_move_to_word_next(struct nk_text_edit *state) +{ + const int len = state->string.len; + int c = state->cursor+1; + while( c < len && !nk_is_word_boundary(state, c)) + ++c; - win = ctx->current; - layout = win->layout; + if( c > len ) + c = len; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_button_image(&ctx->last_widget_state, &win->buffer, bounds, - img, ctx->button_behavior, style, in); + return c; } - -NK_API int -nk_button_image(struct nk_context *ctx, struct nk_image img) +NK_INTERN void +nk_textedit_prep_selection_at_cursor(struct nk_text_edit *state) { - NK_ASSERT(ctx); - if (!ctx) return 0; - return nk_button_image_styled(ctx, &ctx->style.button, img); + /* update selection and cursor to match each other */ + if (!NK_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else state->cursor = state->select_end; } - NK_API int -nk_button_symbol_text_styled(struct nk_context *ctx, - const struct nk_style_button *style, enum nk_symbol_type symbol, - const char *text, int len, nk_flags align) +nk_textedit_cut(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - - struct nk_rect bounds; - enum nk_widget_layout_states state; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) + /* API cut: delete selection */ + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) return 0; - - win = ctx->current; - layout = win->layout; - - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, bounds, - symbol, text, len, align, ctx->button_behavior, - style, ctx->style.font, in); + if (NK_TEXT_HAS_SELECTION(state)) { + nk_textedit_delete_selection(state); /* implicitly clamps */ + state->has_preferred_x = 0; + return 1; + } + return 0; } - NK_API int -nk_button_symbol_text(struct nk_context *ctx, enum nk_symbol_type symbol, - const char* text, int len, nk_flags align) +nk_textedit_paste(struct nk_text_edit *state, char const *ctext, int len) { - NK_ASSERT(ctx); - if (!ctx) return 0; - return nk_button_symbol_text_styled(ctx, &ctx->style.button, symbol, text, len, align); + /* API paste: replace existing selection with passed-in text */ + int glyphs; + const char *text = (const char *) ctext; + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) return 0; + + /* if there's a selection, the paste should delete it */ + nk_textedit_clamp(state); + nk_textedit_delete_selection(state); + + /* try to insert the characters */ + glyphs = nk_utf_len(ctext, len); + if (nk_str_insert_text_char(&state->string, state->cursor, text, len)) { + nk_textedit_makeundo_insert(state, state->cursor, glyphs); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + /* remove the undo since we didn't actually insert the characters */ + if (state->undo.undo_point) + --state->undo.undo_point; + return 0; } +NK_API void +nk_textedit_text(struct nk_text_edit *state, const char *text, int total_len) +{ + nk_rune unicode; + int glyph_len; + int text_len = 0; -NK_API int nk_button_symbol_label(struct nk_context *ctx, enum nk_symbol_type symbol, - const char *label, nk_flags align) -{return nk_button_symbol_text(ctx, symbol, label, nk_strlen(label), align);} + NK_ASSERT(state); + NK_ASSERT(text); + if (!text || !total_len || state->mode == NK_TEXT_EDIT_MODE_VIEW) return; -NK_API int nk_button_symbol_label_styled(struct nk_context *ctx, - const struct nk_style_button *style, enum nk_symbol_type symbol, - const char *title, nk_flags align) -{return nk_button_symbol_text_styled(ctx, style, symbol, title, nk_strlen(title), align);} + glyph_len = nk_utf_decode(text, &unicode, total_len); + while ((text_len < total_len) && glyph_len) + { + /* don't insert a backward delete, just process the event */ + if (unicode == 127) goto next; + /* can't add newline in single-line mode */ + if (unicode == '\n' && state->single_line) goto next; + /* filter incoming text */ + if (state->filter && !state->filter(state, unicode)) goto next; -NK_API int -nk_button_image_text_styled(struct nk_context *ctx, - const struct nk_style_button *style, struct nk_image img, const char *text, - int len, nk_flags align) + if (!NK_TEXT_HAS_SELECTION(state) && + state->cursor < state->string.len) + { + if (state->mode == NK_TEXT_EDIT_MODE_REPLACE) { + nk_textedit_makeundo_replace(state, state->cursor, 1, 1); + nk_str_delete_runes(&state->string, state->cursor, 1); + } + if (nk_str_insert_text_utf8(&state->string, state->cursor, + text+text_len, 1)) + { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + nk_textedit_delete_selection(state); /* implicitly clamps */ + if (nk_str_insert_text_utf8(&state->string, state->cursor, + text+text_len, 1)) + { + nk_textedit_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + next: + text_len += glyph_len; + glyph_len = nk_utf_decode(text + text_len, &unicode, total_len-text_len); + } +} +NK_LIB void +nk_textedit_key(struct nk_text_edit *state, enum nk_keys key, int shift_mod, + const struct nk_user_font *font, float row_height) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; +retry: + switch (key) + { + case NK_KEY_NONE: + case NK_KEY_CTRL: + case NK_KEY_ENTER: + case NK_KEY_SHIFT: + case NK_KEY_TAB: + case NK_KEY_COPY: + case NK_KEY_CUT: + case NK_KEY_PASTE: + case NK_KEY_MAX: + default: break; + case NK_KEY_TEXT_UNDO: + nk_textedit_undo(state); + state->has_preferred_x = 0; + break; - struct nk_rect bounds; - enum nk_widget_layout_states state; + case NK_KEY_TEXT_REDO: + nk_textedit_redo(state); + state->has_preferred_x = 0; + break; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + case NK_KEY_TEXT_SELECT_ALL: + nk_textedit_select_all(state); + state->has_preferred_x = 0; + break; - win = ctx->current; - layout = win->layout; + case NK_KEY_TEXT_INSERT_MODE: + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) + state->mode = NK_TEXT_EDIT_MODE_INSERT; + break; + case NK_KEY_TEXT_REPLACE_MODE: + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) + state->mode = NK_TEXT_EDIT_MODE_REPLACE; + break; + case NK_KEY_TEXT_RESET_MODE: + if (state->mode == NK_TEXT_EDIT_MODE_INSERT || + state->mode == NK_TEXT_EDIT_MODE_REPLACE) + state->mode = NK_TEXT_EDIT_MODE_VIEW; + break; + + case NK_KEY_LEFT: + if (shift_mod) { + nk_textedit_clamp(state); + nk_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; + } else { + /* if currently there's a selection, + * move cursor to start of selection */ + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_first(state); + else if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + } break; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, - bounds, img, text, len, align, ctx->button_behavior, - style, ctx->style.font, in); -} + case NK_KEY_RIGHT: + if (shift_mod) { + nk_textedit_prep_selection_at_cursor(state); + /* move selection right */ + ++state->select_end; + nk_textedit_clamp(state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + } else { + /* if currently there's a selection, + * move cursor to end of selection */ + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_last(state); + else ++state->cursor; + nk_textedit_clamp(state); + state->has_preferred_x = 0; + } break; -NK_API int -nk_button_image_text(struct nk_context *ctx, struct nk_image img, - const char *text, int len, nk_flags align) -{return nk_button_image_text_styled(ctx, &ctx->style.button,img, text, len, align);} + case NK_KEY_TEXT_WORD_LEFT: + if (shift_mod) { + if( !NK_TEXT_HAS_SELECTION( state ) ) + nk_textedit_prep_selection_at_cursor(state); + state->cursor = nk_textedit_move_to_word_previous(state); + state->select_end = state->cursor; + nk_textedit_clamp(state ); + } else { + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_first(state); + else { + state->cursor = nk_textedit_move_to_word_previous(state); + nk_textedit_clamp(state ); + } + } break; + case NK_KEY_TEXT_WORD_RIGHT: + if (shift_mod) { + if( !NK_TEXT_HAS_SELECTION( state ) ) + nk_textedit_prep_selection_at_cursor(state); + state->cursor = nk_textedit_move_to_word_next(state); + state->select_end = state->cursor; + nk_textedit_clamp(state); + } else { + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_last(state); + else { + state->cursor = nk_textedit_move_to_word_next(state); + nk_textedit_clamp(state ); + } + } break; -NK_API int nk_button_image_label(struct nk_context *ctx, struct nk_image img, - const char *label, nk_flags align) -{return nk_button_image_text(ctx, img, label, nk_strlen(label), align);} + case NK_KEY_DOWN: { + struct nk_text_find find; + struct nk_text_edit_row row; + int i, sel = shift_mod; -NK_API int nk_button_image_label_styled(struct nk_context *ctx, - const struct nk_style_button *style, struct nk_image img, - const char *label, nk_flags text_alignment) -{return nk_button_image_text_styled(ctx, style, img, label, nk_strlen(label), text_alignment);} + if (state->single_line) { + /* on windows, up&down in single-line behave like left&right */ + key = NK_KEY_RIGHT; + goto retry; + } -/*---------------------------------------------------------------- - * - * SELECTABLE - * - * --------------------------------------------------------------*/ -NK_API int -nk_selectable_text(struct nk_context *ctx, const char *str, int len, - nk_flags align, int *value) -{ - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - const struct nk_style *style; + if (sel) + nk_textedit_prep_selection_at_cursor(state); + else if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_last(state); - enum nk_widget_layout_states state; - struct nk_rect bounds; + /* compute current position of cursor point */ + nk_textedit_clamp(state); + nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, + font, row_height); - NK_ASSERT(ctx); - NK_ASSERT(value); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout || !value) - return 0; + /* now find character position down a row */ + if (find.length) + { + float x; + float goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; - win = ctx->current; - layout = win->layout; - style = &ctx->style; + state->cursor = start; + nk_textedit_layout_row(&row, state, state->cursor, row_height, font); + x = row.x0; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_selectable(&ctx->last_widget_state, &win->buffer, bounds, - str, len, align, value, &style->selectable, in, style->font); -} + for (i=0; i < row.num_chars && x < row.x1; ++i) { + float dx = nk_textedit_get_width(state, start, i, font); + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + nk_textedit_clamp(state); -NK_API int -nk_selectable_image_text(struct nk_context *ctx, struct nk_image img, - const char *str, int len, nk_flags align, int *value) -{ - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - const struct nk_style *style; + state->has_preferred_x = 1; + state->preferred_x = goal_x; + if (sel) + state->select_end = state->cursor; + } + } break; - enum nk_widget_layout_states state; - struct nk_rect bounds; + case NK_KEY_UP: { + struct nk_text_find find; + struct nk_text_edit_row row; + int i, sel = shift_mod; - NK_ASSERT(ctx); - NK_ASSERT(value); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout || !value) - return 0; + if (state->single_line) { + /* on windows, up&down become left&right */ + key = NK_KEY_LEFT; + goto retry; + } - win = ctx->current; - layout = win->layout; - style = &ctx->style; + if (sel) + nk_textedit_prep_selection_at_cursor(state); + else if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_move_to_first(state); - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_selectable_image(&ctx->last_widget_state, &win->buffer, bounds, - str, len, align, value, &img, &style->selectable, in, style->font); -} + /* compute current position of cursor point */ + nk_textedit_clamp(state); + nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, + font, row_height); -NK_API int nk_select_text(struct nk_context *ctx, const char *str, int len, - nk_flags align, int value) -{nk_selectable_text(ctx, str, len, align, &value);return value;} + /* can only go up if there's a previous row */ + if (find.prev_first != find.first_char) { + /* now find character position up a row */ + float x; + float goal_x = state->has_preferred_x ? state->preferred_x : find.x; -NK_API int nk_selectable_label(struct nk_context *ctx, const char *str, nk_flags align, int *value) -{return nk_selectable_text(ctx, str, nk_strlen(str), align, value);} + state->cursor = find.prev_first; + nk_textedit_layout_row(&row, state, state->cursor, row_height, font); + x = row.x0; -NK_API int nk_selectable_image_label(struct nk_context *ctx,struct nk_image img, - const char *str, nk_flags align, int *value) -{return nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, value);} + for (i=0; i < row.num_chars && x < row.x1; ++i) { + float dx = nk_textedit_get_width(state, find.prev_first, i, font); + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + nk_textedit_clamp(state); -NK_API int nk_select_label(struct nk_context *ctx, const char *str, nk_flags align, int value) -{nk_selectable_text(ctx, str, nk_strlen(str), align, &value);return value;} + state->has_preferred_x = 1; + state->preferred_x = goal_x; + if (sel) state->select_end = state->cursor; + } + } break; -NK_API int nk_select_image_label(struct nk_context *ctx, struct nk_image img, - const char *str, nk_flags align, int value) -{nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, &value);return value;} + case NK_KEY_DEL: + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) + break; + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_delete_selection(state); + else { + int n = state->string.len; + if (state->cursor < n) + nk_textedit_delete(state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; -NK_API int nk_select_image_text(struct nk_context *ctx, struct nk_image img, - const char *str, int len, nk_flags align, int value) -{nk_selectable_image_text(ctx, img, str, len, align, &value);return value;} + case NK_KEY_BACKSPACE: + if (state->mode == NK_TEXT_EDIT_MODE_VIEW) + break; + if (NK_TEXT_HAS_SELECTION(state)) + nk_textedit_delete_selection(state); + else { + nk_textedit_clamp(state); + if (state->cursor > 0) { + nk_textedit_delete(state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; -/*---------------------------------------------------------------- - * - * CHECKBOX - * - * --------------------------------------------------------------*/ -NK_API int -nk_check_text(struct nk_context *ctx, const char *text, int len, int active) -{ - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - const struct nk_style *style; + case NK_KEY_TEXT_START: + if (shift_mod) { + nk_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + } else { + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + } + break; - struct nk_rect bounds; - enum nk_widget_layout_states state; + case NK_KEY_TEXT_END: + if (shift_mod) { + nk_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = state->string.len; + state->has_preferred_x = 0; + } else { + state->cursor = state->string.len; + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + } + break; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return active; + case NK_KEY_TEXT_LINE_START: { + if (shift_mod) { + struct nk_text_find find; + nk_textedit_clamp(state); + nk_textedit_prep_selection_at_cursor(state); + if (state->string.len && state->cursor == state->string.len) + --state->cursor; + nk_textedit_find_charpos(&find, state,state->cursor, state->single_line, + font, row_height); + state->cursor = state->select_end = find.first_char; + state->has_preferred_x = 0; + } else { + struct nk_text_find find; + if (state->string.len && state->cursor == state->string.len) + --state->cursor; + nk_textedit_clamp(state); + nk_textedit_move_to_first(state); + nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, + font, row_height); + state->cursor = find.first_char; + state->has_preferred_x = 0; + } + } break; - win = ctx->current; - style = &ctx->style; - layout = win->layout; + case NK_KEY_TEXT_LINE_END: { + if (shift_mod) { + struct nk_text_find find; + nk_textedit_clamp(state); + nk_textedit_prep_selection_at_cursor(state); + nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, + font, row_height); + state->has_preferred_x = 0; + state->cursor = find.first_char + find.length; + if (find.length > 0 && nk_str_rune_at(&state->string, state->cursor-1) == '\n') + --state->cursor; + state->select_end = state->cursor; + } else { + struct nk_text_find find; + nk_textedit_clamp(state); + nk_textedit_move_to_first(state); + nk_textedit_find_charpos(&find, state, state->cursor, state->single_line, + font, row_height); - state = nk_widget(&bounds, ctx); - if (!state) return active; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active, - text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font); - return active; + state->has_preferred_x = 0; + state->cursor = find.first_char + find.length; + if (find.length > 0 && nk_str_rune_at(&state->string, state->cursor-1) == '\n') + --state->cursor; + }} break; + } } - -NK_API unsigned int -nk_check_flags_text(struct nk_context *ctx, const char *text, int len, - unsigned int flags, unsigned int value) +NK_INTERN void +nk_textedit_flush_redo(struct nk_text_undo_state *state) { - int old_active; - NK_ASSERT(ctx); - NK_ASSERT(text); - if (!ctx || !text) return flags; - old_active = (int)((flags & value) & value); - if (nk_check_text(ctx, text, len, old_active)) - flags |= value; - else flags &= ~value; - return flags; + state->redo_point = NK_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = NK_TEXTEDIT_UNDOCHARCOUNT; } - -NK_API int -nk_checkbox_text(struct nk_context *ctx, const char *text, int len, int *active) +NK_INTERN void +nk_textedit_discard_undo(struct nk_text_undo_state *state) { - int old_val; - NK_ASSERT(ctx); - NK_ASSERT(text); - NK_ASSERT(active); - if (!ctx || !text || !active) return 0; - old_val = *active; - *active = nk_check_text(ctx, text, len, *active); - return old_val != *active; + /* discard the oldest entry in the undo list */ + 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 = (short)(state->undo_char_point - n); + NK_MEMCPY(state->undo_char, state->undo_char + n, + (nk_size)state->undo_char_point*sizeof(nk_rune)); + for (i=0; i < state->undo_point; ++i) { + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage = (short) + (state->undo_rec[i].char_storage - n); + } + } + --state->undo_point; + NK_MEMCPY(state->undo_rec, state->undo_rec+1, + (nk_size)((nk_size)state->undo_point * sizeof(state->undo_rec[0]))); + } } - -NK_API int -nk_checkbox_flags_text(struct nk_context *ctx, const char *text, int len, - unsigned int *flags, unsigned int value) +NK_INTERN void +nk_textedit_discard_redo(struct nk_text_undo_state *state) { - int active; - NK_ASSERT(ctx); - NK_ASSERT(text); - NK_ASSERT(flags); - if (!ctx || !text || !flags) return 0; - - active = (int)((*flags & value) & value); - if (nk_checkbox_text(ctx, text, len, &active)) { - if (active) *flags |= value; - else *flags &= ~value; - return 1; +/* 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 */ + nk_size num; + int k = NK_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; + /* delete n characters from all other records */ + state->redo_char_point = (short)(state->redo_char_point + n); + num = (nk_size)(NK_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point); + NK_MEMCPY(state->undo_char + state->redo_char_point, + state->undo_char + state->redo_char_point-n, num * sizeof(char)); + for (i = state->redo_point; i < k; ++i) { + if (state->undo_rec[i].char_storage >= 0) { + state->undo_rec[i].char_storage = (short) + (state->undo_rec[i].char_storage + n); + } + } + } + ++state->redo_point; + num = (nk_size)(NK_TEXTEDIT_UNDOSTATECOUNT - state->redo_point); + if (num) NK_MEMCPY(state->undo_rec + state->redo_point-1, + state->undo_rec + state->redo_point, num * sizeof(state->undo_rec[0])); } - return 0; } +NK_INTERN struct nk_text_undo_record* +nk_textedit_create_undo_record(struct nk_text_undo_state *state, int numchars) +{ + /* any time we create a new undo record, we discard redo*/ + nk_textedit_flush_redo(state); -NK_API int nk_check_label(struct nk_context *ctx, const char *label, int active) -{return nk_check_text(ctx, label, nk_strlen(label), active);} + /* if we have no free records, we have to make room, + * by sliding the existing records down */ + if (state->undo_point == NK_TEXTEDIT_UNDOSTATECOUNT) + nk_textedit_discard_undo(state); -NK_API unsigned int nk_check_flags_label(struct nk_context *ctx, const char *label, - unsigned int flags, unsigned int value) -{return nk_check_flags_text(ctx, label, nk_strlen(label), flags, value);} + /* if the characters to store won't possibly fit in the buffer, + * we can't undo */ + if (numchars > NK_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return 0; + } -NK_API int nk_checkbox_label(struct nk_context *ctx, const char *label, int *active) -{return nk_checkbox_text(ctx, label, nk_strlen(label), active);} + /* if we don't have enough free characters in the buffer, + * we have to make room */ + while (state->undo_char_point + numchars > NK_TEXTEDIT_UNDOCHARCOUNT) + nk_textedit_discard_undo(state); + return &state->undo_rec[state->undo_point++]; +} +NK_INTERN nk_rune* +nk_textedit_createundo(struct nk_text_undo_state *state, int pos, + int insert_len, int delete_len) +{ + struct nk_text_undo_record *r = nk_textedit_create_undo_record(state, insert_len); + if (r == 0) + return 0; -NK_API int nk_checkbox_flags_label(struct nk_context *ctx, const char *label, - unsigned int *flags, unsigned int value) -{return nk_checkbox_flags_text(ctx, label, nk_strlen(label), flags, value);} + r->where = pos; + r->insert_length = (short) insert_len; + r->delete_length = (short) delete_len; -/*---------------------------------------------------------------- - * - * OPTION - * - * --------------------------------------------------------------*/ -NK_API int -nk_option_text(struct nk_context *ctx, const char *text, int len, int is_active) + if (insert_len == 0) { + r->char_storage = -1; + return 0; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point = (short)(state->undo_char_point + insert_len); + return &state->undo_char[r->char_storage]; + } +} +NK_API void +nk_textedit_undo(struct nk_text_edit *state) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_input *in; - const struct nk_style *style; + struct nk_text_undo_state *s = &state->undo; + struct nk_text_undo_record 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 >= NK_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) { + /* there's currently not enough room, so discard a redo record */ + nk_textedit_discard_redo(s); + /* should never happen: */ + if (s->redo_point == NK_TEXTEDIT_UNDOSTATECOUNT) + return; + } - struct nk_rect bounds; - enum nk_widget_layout_states state; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = (short)(s->redo_char_point - u.delete_length); + s->redo_char_point = (short)(s->redo_char_point - u.delete_length); - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return is_active; + /* now save the characters */ + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = + nk_str_rune_at(&state->string, u.where + i); + } + /* now we can carry out the deletion */ + nk_str_delete_runes(&state->string, u.where, u.delete_length); + } - win = ctx->current; - style = &ctx->style; - layout = win->layout; + /* check type of recorded action: */ + if (u.insert_length) { + /* easy case: was a deletion, so we need to insert n characters */ + nk_str_insert_text_runes(&state->string, u.where, + &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point = (short)(s->undo_char_point - u.insert_length); + } + state->cursor = (short)(u.where + u.insert_length); - state = nk_widget(&bounds, ctx); - if (!state) return state; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &is_active, - text, len, NK_TOGGLE_OPTION, &style->option, in, style->font); - return is_active; + s->undo_point--; + s->redo_point--; } - -NK_API int -nk_radio_text(struct nk_context *ctx, const char *text, int len, int *active) +NK_API void +nk_textedit_redo(struct nk_text_edit *state) { - int old_value; - NK_ASSERT(ctx); - NK_ASSERT(text); - NK_ASSERT(active); - if (!ctx || !text || !active) return 0; - old_value = *active; - *active = nk_option_text(ctx, text, len, old_value); - return old_value != *active; -} - -NK_API int -nk_option_label(struct nk_context *ctx, const char *label, int active) -{return nk_option_text(ctx, label, nk_strlen(label), active);} - -NK_API int -nk_radio_label(struct nk_context *ctx, const char *label, int *active) -{return nk_radio_text(ctx, label, nk_strlen(label), active);} + struct nk_text_undo_state *s = &state->undo; + struct nk_text_undo_record *u, r; + if (s->redo_point == NK_TEXTEDIT_UNDOSTATECOUNT) + return; -/*---------------------------------------------------------------- - * - * SLIDER - * - * --------------------------------------------------------------*/ -NK_API int -nk_slider_float(struct nk_context *ctx, float min_value, float *value, float max_value, - float value_step) -{ - struct nk_window *win; - struct nk_panel *layout; - struct nk_input *in; - const struct nk_style *style; + /* 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]; - int ret = 0; - float old_value; - struct nk_rect bounds; - enum nk_widget_layout_states state; + /* 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; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - NK_ASSERT(value); - if (!ctx || !ctx->current || !ctx->current->layout || !value) - return ret; + 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 = (short)(s->undo_char_point + u->insert_length); - win = ctx->current; - style = &ctx->style; - layout = win->layout; + /* now save the characters */ + for (i=0; i < u->insert_length; ++i) { + s->undo_char[u->char_storage + i] = + nk_str_rune_at(&state->string, u->where + i); + } + } + nk_str_delete_runes(&state->string, r.where, r.delete_length); + } - state = nk_widget(&bounds, ctx); - if (!state) return ret; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + if (r.insert_length) { + /* easy case: need to insert n characters */ + nk_str_insert_text_runes(&state->string, r.where, + &s->undo_char[r.char_storage], r.insert_length); + } + state->cursor = r.where + r.insert_length; - old_value = *value; - *value = nk_do_slider(&ctx->last_widget_state, &win->buffer, bounds, min_value, - old_value, max_value, value_step, &style->slider, in, style->font); - return (old_value > *value || old_value < *value); + s->undo_point++; + s->redo_point++; } - -NK_API float -nk_slide_float(struct nk_context *ctx, float min, float val, float max, float step) +NK_INTERN void +nk_textedit_makeundo_insert(struct nk_text_edit *state, int where, int length) { - nk_slider_float(ctx, min, &val, max, step); return val; + nk_textedit_createundo(&state->undo, where, 0, length); } - -NK_API int -nk_slide_int(struct nk_context *ctx, int min, int val, int max, int step) +NK_INTERN void +nk_textedit_makeundo_delete(struct nk_text_edit *state, int where, int length) { - float value = (float)val; - nk_slider_float(ctx, (float)min, &value, (float)max, (float)step); - return (int)value; + int i; + nk_rune *p = nk_textedit_createundo(&state->undo, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = nk_str_rune_at(&state->string, where+i); + } } - -NK_API int -nk_slider_int(struct nk_context *ctx, int min, int *val, int max, int step) +NK_INTERN void +nk_textedit_makeundo_replace(struct nk_text_edit *state, int where, + int old_length, int new_length) { - int ret; - float value = (float)*val; - ret = nk_slider_float(ctx, (float)min, &value, (float)max, (float)step); - *val = (int)value; - return ret; + int i; + nk_rune *p = nk_textedit_createundo(&state->undo, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = nk_str_rune_at(&state->string, where+i); + } } - -/*---------------------------------------------------------------- - * - * PROGRESSBAR - * - * --------------------------------------------------------------*/ -NK_API int -nk_progress(struct nk_context *ctx, nk_size *cur, nk_size max, int is_modifyable) +NK_LIB void +nk_textedit_clear_state(struct nk_text_edit *state, enum nk_text_edit_type type, + nk_plugin_filter filter) { - struct nk_window *win; - struct nk_panel *layout; - const struct nk_style *style; - const struct nk_input *in; - - struct nk_rect bounds; - enum nk_widget_layout_states state; - nk_size old_value; - - NK_ASSERT(ctx); - NK_ASSERT(cur); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout || !cur) - return 0; - - win = ctx->current; - style = &ctx->style; - layout = win->layout; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - old_value = *cur; - *cur = nk_do_progress(&ctx->last_widget_state, &win->buffer, bounds, - *cur, max, is_modifyable, &style->progress, in); - return (*cur != old_value); + /* reset the state to default */ + state->undo.undo_point = 0; + state->undo.undo_char_point = 0; + state->undo.redo_point = NK_TEXTEDIT_UNDOSTATECOUNT; + state->undo.redo_char_point = NK_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)(type == NK_TEXT_EDIT_SINGLE_LINE); + state->mode = NK_TEXT_EDIT_MODE_VIEW; + state->filter = filter; + state->scrollbar = nk_vec2(0,0); } - -NK_API nk_size nk_prog(struct nk_context *ctx, nk_size cur, nk_size max, int modifyable) -{nk_progress(ctx, &cur, max, modifyable);return cur;} - -/*---------------------------------------------------------------- - * - * EDIT - * - * --------------------------------------------------------------*/ NK_API void -nk_edit_focus(struct nk_context *ctx, nk_flags flags) +nk_textedit_init_fixed(struct nk_text_edit *state, void *memory, nk_size size) +{ + NK_ASSERT(state); + NK_ASSERT(memory); + if (!state || !memory || !size) return; + NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); + nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); + nk_str_init_fixed(&state->string, memory, size); +} +NK_API void +nk_textedit_init(struct nk_text_edit *state, struct nk_allocator *alloc, nk_size size) +{ + NK_ASSERT(state); + NK_ASSERT(alloc); + if (!state || !alloc) return; + NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); + nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); + nk_str_init(&state->string, alloc, size); +} +#ifdef NK_INCLUDE_DEFAULT_ALLOCATOR +NK_API void +nk_textedit_init_default(struct nk_text_edit *state) +{ + NK_ASSERT(state); + if (!state) return; + NK_MEMSET(state, 0, sizeof(struct nk_text_edit)); + nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0); + nk_str_init_default(&state->string); +} +#endif +NK_API void +nk_textedit_select_all(struct nk_text_edit *state) { - nk_hash hash; - struct nk_window *win; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - - win = ctx->current; - hash = win->edit.seq; - win->edit.active = nk_true; - win->edit.name = hash; - if (flags & NK_EDIT_ALWAYS_INSERT_MODE) - win->edit.mode = NK_TEXT_EDIT_MODE_INSERT; + NK_ASSERT(state); + state->select_start = 0; + state->select_end = state->string.len; } - NK_API void -nk_edit_unfocus(struct nk_context *ctx) +nk_textedit_free(struct nk_text_edit *state) { - struct nk_window *win; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - - win = ctx->current; - win->edit.active = nk_false; - win->edit.name = 0; + NK_ASSERT(state); + if (!state) return; + nk_str_free(&state->string); } -NK_API nk_flags -nk_edit_string(struct nk_context *ctx, nk_flags flags, - char *memory, int *len, int max, nk_plugin_filter filter) -{ - nk_hash hash; - nk_flags state; - struct nk_text_edit *edit; - struct nk_window *win; - - NK_ASSERT(ctx); - NK_ASSERT(memory); - NK_ASSERT(len); - if (!ctx || !memory || !len) - return 0; - filter = (!filter) ? nk_filter_default: filter; - win = ctx->current; - hash = win->edit.seq; - edit = &ctx->text_edit; - nk_textedit_clear_state(&ctx->text_edit, (flags & NK_EDIT_MULTILINE)? - NK_TEXT_EDIT_MULTI_LINE: NK_TEXT_EDIT_SINGLE_LINE, filter); - if (win->edit.active && hash == win->edit.name) { - if (flags & NK_EDIT_NO_CURSOR) - edit->cursor = nk_utf_len(memory, *len); - else edit->cursor = win->edit.cursor; - if (!(flags & NK_EDIT_SELECTABLE)) { - edit->select_start = win->edit.cursor; - edit->select_end = win->edit.cursor; - } else { - edit->select_start = win->edit.sel_start; - edit->select_end = win->edit.sel_end; - } - edit->mode = win->edit.mode; - edit->scrollbar.x = (float)win->edit.scrollbar.x; - edit->scrollbar.y = (float)win->edit.scrollbar.y; - edit->active = nk_true; - } else edit->active = nk_false; - max = NK_MAX(1, max); - *len = NK_MIN(*len, max-1); - nk_str_init_fixed(&edit->string, memory, (nk_size)max); - edit->string.buffer.allocated = (nk_size)*len; - edit->string.len = nk_utf_len(memory, *len); - state = nk_edit_buffer(ctx, flags, edit, filter); - *len = (int)edit->string.buffer.allocated; - if (edit->active) { - win->edit.cursor = edit->cursor; - win->edit.sel_start = edit->select_start; - win->edit.sel_end = edit->select_end; - win->edit.mode = edit->mode; - win->edit.scrollbar.x = (nk_ushort)edit->scrollbar.x; - win->edit.scrollbar.y = (nk_ushort)edit->scrollbar.y; - } - return state; +/* =============================================================== + * + * FILTER + * + * ===============================================================*/ +NK_API int +nk_filter_default(const struct nk_text_edit *box, nk_rune unicode) +{ + NK_UNUSED(unicode); + NK_UNUSED(box); + return nk_true; } - -NK_API nk_flags -nk_edit_buffer(struct nk_context *ctx, nk_flags flags, - struct nk_text_edit *edit, nk_plugin_filter filter) +NK_API int +nk_filter_ascii(const struct nk_text_edit *box, nk_rune unicode) { - struct nk_window *win; - struct nk_style *style; - struct nk_input *in; - - enum nk_widget_layout_states state; - struct nk_rect bounds; - - nk_flags ret_flags = 0; - unsigned char prev_state; - nk_hash hash; - - /* make sure correct values */ - NK_ASSERT(ctx); - NK_ASSERT(edit); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - - win = ctx->current; - style = &ctx->style; - state = nk_widget(&bounds, ctx); - if (!state) return state; - in = (win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - - /* check if edit is currently hot item */ - hash = win->edit.seq++; - if (win->edit.active && hash == win->edit.name) { - if (flags & NK_EDIT_NO_CURSOR) - edit->cursor = edit->string.len; - if (!(flags & NK_EDIT_SELECTABLE)) { - edit->select_start = edit->cursor; - edit->select_end = edit->cursor; - } - if (flags & NK_EDIT_CLIPBOARD) - edit->clip = ctx->clip; - } - - filter = (!filter) ? nk_filter_default: filter; - prev_state = (unsigned char)edit->active; - in = (flags & NK_EDIT_READ_ONLY) ? 0: in; - ret_flags = nk_do_edit(&ctx->last_widget_state, &win->buffer, bounds, flags, - filter, edit, &style->edit, in, style->font); - - if (ctx->last_widget_state & NK_WIDGET_STATE_HOVER) - ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_TEXT]; - if (edit->active && prev_state != edit->active) { - /* current edit is now hot */ - win->edit.active = nk_true; - win->edit.name = hash; - } else if (prev_state && !edit->active) { - /* current edit is now cold */ - win->edit.active = nk_false; - } - return ret_flags; + NK_UNUSED(box); + if (unicode > 128) return nk_false; + else return nk_true; } - -NK_API nk_flags -nk_edit_string_zero_terminated(struct nk_context *ctx, nk_flags flags, - char *buffer, int max, nk_plugin_filter filter) +NK_API int +nk_filter_float(const struct nk_text_edit *box, nk_rune unicode) { - nk_flags result; - int len = nk_strlen(buffer); - result = nk_edit_string(ctx, flags, buffer, &len, max, filter); - buffer[NK_MIN(NK_MAX(max-1,0), len)] = '\0'; - return result; + NK_UNUSED(box); + if ((unicode < '0' || unicode > '9') && unicode != '.' && unicode != '-') + return nk_false; + else return nk_true; +} +NK_API int +nk_filter_decimal(const struct nk_text_edit *box, nk_rune unicode) +{ + NK_UNUSED(box); + if ((unicode < '0' || unicode > '9') && unicode != '-') + return nk_false; + else return nk_true; +} +NK_API int +nk_filter_hex(const struct nk_text_edit *box, nk_rune unicode) +{ + NK_UNUSED(box); + if ((unicode < '0' || unicode > '9') && + (unicode < 'a' || unicode > 'f') && + (unicode < 'A' || unicode > 'F')) + return nk_false; + else return nk_true; +} +NK_API int +nk_filter_oct(const struct nk_text_edit *box, nk_rune unicode) +{ + NK_UNUSED(box); + if (unicode < '0' || unicode > '7') + return nk_false; + else return nk_true; +} +NK_API int +nk_filter_binary(const struct nk_text_edit *box, nk_rune unicode) +{ + NK_UNUSED(box); + if (unicode != '0' && unicode != '1') + return nk_false; + else return nk_true; } -/*---------------------------------------------------------------- +/* =============================================================== * - * PROPERTY + * EDIT * - * --------------------------------------------------------------*/ -NK_INTERN struct nk_property_variant -nk_property_variant_int(int value, int min_value, int max_value, int step) + * ===============================================================*/ +NK_LIB void +nk_edit_draw_text(struct nk_command_buffer *out, + const struct nk_style_edit *style, float pos_x, float pos_y, + float x_offset, const char *text, int byte_len, float row_height, + const struct nk_user_font *font, struct nk_color background, + struct nk_color foreground, int is_selected) { - struct nk_property_variant result; - result.kind = NK_PROPERTY_INT; - result.value.i = value; - result.min_value.i = min_value; - result.max_value.i = max_value; - result.step.i = step; - return result; -} + NK_ASSERT(out); + NK_ASSERT(font); + NK_ASSERT(style); + if (!text || !byte_len || !out || !style) return; + + {int glyph_len = 0; + nk_rune unicode = 0; + int text_len = 0; + float line_width = 0; + float glyph_width; + const char *line = text; + float line_offset = 0; + int line_count = 0; + + struct nk_text txt; + txt.padding = nk_vec2(0,0); + txt.background = background; + txt.text = foreground; + + glyph_len = nk_utf_decode(text+text_len, &unicode, byte_len-text_len); + if (!glyph_len) return; + while ((text_len < byte_len) && glyph_len) + { + if (unicode == '\n') { + /* new line separator so draw previous line */ + struct nk_rect label; + label.y = pos_y + line_offset; + label.h = row_height; + label.w = line_width; + label.x = pos_x; + if (!line_count) + label.x += x_offset; -NK_INTERN struct nk_property_variant -nk_property_variant_float(float value, float min_value, float max_value, float step) -{ - struct nk_property_variant result; - result.kind = NK_PROPERTY_FLOAT; - result.value.f = value; - result.min_value.f = min_value; - result.max_value.f = max_value; - result.step.f = step; - return result; -} + if (is_selected) /* selection needs to draw different background color */ + nk_fill_rect(out, label, 0, background); + nk_widget_text(out, label, line, (int)((text + text_len) - line), + &txt, NK_TEXT_CENTERED, font); -NK_INTERN struct nk_property_variant -nk_property_variant_double(double value, double min_value, double max_value, - double step) -{ - struct nk_property_variant result; - result.kind = NK_PROPERTY_DOUBLE; - result.value.d = value; - result.min_value.d = min_value; - result.max_value.d = max_value; - result.step.d = step; - return result; -} + text_len++; + line_count++; + line_width = 0; + line = text + text_len; + line_offset += row_height; + glyph_len = nk_utf_decode(text + text_len, &unicode, (int)(byte_len-text_len)); + continue; + } + if (unicode == '\r') { + text_len++; + glyph_len = nk_utf_decode(text + text_len, &unicode, byte_len-text_len); + continue; + } + glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len); + line_width += (float)glyph_width; + text_len += glyph_len; + glyph_len = nk_utf_decode(text + text_len, &unicode, byte_len-text_len); + continue; + } + if (line_width > 0) { + /* draw last line */ + struct nk_rect label; + label.y = pos_y + line_offset; + label.h = row_height; + label.w = line_width; + label.x = pos_x; + if (!line_count) + label.x += x_offset; -NK_INTERN void -nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant *variant, - float inc_per_pixel, const enum nk_property_filter filter) + if (is_selected) + nk_fill_rect(out, label, 0, background); + nk_widget_text(out, label, line, (int)((text + text_len) - line), + &txt, NK_TEXT_LEFT, font); + }} +} +NK_LIB nk_flags +nk_do_edit(nk_flags *state, struct nk_command_buffer *out, + struct nk_rect bounds, nk_flags flags, nk_plugin_filter filter, + struct nk_text_edit *edit, const struct nk_style_edit *style, + struct nk_input *in, const struct nk_user_font *font) { - struct nk_window *win; - struct nk_panel *layout; - struct nk_input *in; - const struct nk_style *style; + struct nk_rect area; + nk_flags ret = 0; + float row_height; + char prev_state = 0; + char is_hovered = 0; + char select_all = 0; + char cursor_follow = 0; + struct nk_rect old_clip; + struct nk_rect clip; - struct nk_rect bounds; - enum nk_widget_layout_states s; + NK_ASSERT(state); + NK_ASSERT(out); + NK_ASSERT(style); + if (!state || !out || !style) + return ret; - int *state = 0; - nk_hash hash = 0; - char *buffer = 0; - int *len = 0; - int *cursor = 0; - int *select_begin = 0; - int *select_end = 0; - int old_state; + /* visible text area calculation */ + area.x = bounds.x + style->padding.x + style->border; + area.y = bounds.y + style->padding.y + style->border; + area.w = bounds.w - (2.0f * style->padding.x + 2 * style->border); + area.h = bounds.h - (2.0f * style->padding.y + 2 * style->border); + if (flags & NK_EDIT_MULTILINE) + area.w = NK_MAX(0, area.w - style->scrollbar_size.x); + row_height = (flags & NK_EDIT_MULTILINE)? font->height + style->row_padding: area.h; - char dummy_buffer[NK_MAX_NUMBER_BUFFER]; - int dummy_state = NK_PROPERTY_DEFAULT; - int dummy_length = 0; - int dummy_cursor = 0; - int dummy_select_begin = 0; - int dummy_select_end = 0; + /* calculate clipping rectangle */ + old_clip = out->clip; + nk_unify(&clip, &old_clip, area.x, area.y, area.x + area.w, area.y + area.h); - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + /* update edit state */ + prev_state = (char)edit->active; + is_hovered = (char)nk_input_is_mouse_hovering_rect(in, bounds); + if (in && in->mouse.buttons[NK_BUTTON_LEFT].clicked && in->mouse.buttons[NK_BUTTON_LEFT].down) { + edit->active = NK_INBOX(in->mouse.pos.x, in->mouse.pos.y, + bounds.x, bounds.y, bounds.w, bounds.h); + } - win = ctx->current; - layout = win->layout; - style = &ctx->style; - s = nk_widget(&bounds, ctx); - if (!s) return; + /* (de)activate text editor */ + if (!prev_state && edit->active) { + const enum nk_text_edit_type type = (flags & NK_EDIT_MULTILINE) ? + NK_TEXT_EDIT_MULTI_LINE: NK_TEXT_EDIT_SINGLE_LINE; + nk_textedit_clear_state(edit, type, filter); + if (flags & NK_EDIT_AUTO_SELECT) + select_all = nk_true; + if (flags & NK_EDIT_GOTO_END_ON_ACTIVATE) { + edit->cursor = edit->string.len; + in = 0; + } + } else if (!edit->active) edit->mode = NK_TEXT_EDIT_MODE_VIEW; + if (flags & NK_EDIT_READ_ONLY) + edit->mode = NK_TEXT_EDIT_MODE_VIEW; + else if (flags & NK_EDIT_ALWAYS_INSERT_MODE) + edit->mode = NK_TEXT_EDIT_MODE_INSERT; - /* calculate hash from name */ - if (name[0] == '#') { - hash = nk_murmur_hash(name, (int)nk_strlen(name), win->property.seq++); - name++; /* special number hash */ - } else hash = nk_murmur_hash(name, (int)nk_strlen(name), 42); + ret = (edit->active) ? NK_EDIT_ACTIVE: NK_EDIT_INACTIVE; + if (prev_state != edit->active) + ret |= (edit->active) ? NK_EDIT_ACTIVATED: NK_EDIT_DEACTIVATED; - /* check if property is currently hot item */ - if (win->property.active && hash == win->property.name) { - buffer = win->property.buffer; - len = &win->property.length; - cursor = &win->property.cursor; - state = &win->property.state; - select_begin = &win->property.select_start; - select_end = &win->property.select_end; - } else { - buffer = dummy_buffer; - len = &dummy_length; - cursor = &dummy_cursor; - state = &dummy_state; - select_begin = &dummy_select_begin; - select_end = &dummy_select_end; - } + /* handle user input */ + if (edit->active && in) + { + int shift_mod = in->keyboard.keys[NK_KEY_SHIFT].down; + const float mouse_x = (in->mouse.pos.x - area.x) + edit->scrollbar.x; + const float mouse_y = (in->mouse.pos.y - area.y) + edit->scrollbar.y; - /* execute property widget */ - old_state = *state; - ctx->text_edit.clip = ctx->clip; - in = ((s == NK_WIDGET_ROM && !win->property.active) || - layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - nk_do_property(&ctx->last_widget_state, &win->buffer, bounds, name, - variant, inc_per_pixel, buffer, len, state, cursor, select_begin, - select_end, &style->property, filter, in, style->font, &ctx->text_edit, - ctx->button_behavior); + /* mouse click handler */ + is_hovered = (char)nk_input_is_mouse_hovering_rect(in, area); + if (select_all) { + nk_textedit_select_all(edit); + } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down && + in->mouse.buttons[NK_BUTTON_LEFT].clicked) { + nk_textedit_click(edit, mouse_x, mouse_y, font, row_height); + } else if (is_hovered && in->mouse.buttons[NK_BUTTON_LEFT].down && + (in->mouse.delta.x != 0.0f || in->mouse.delta.y != 0.0f)) { + nk_textedit_drag(edit, mouse_x, mouse_y, font, row_height); + cursor_follow = nk_true; + } else if (is_hovered && in->mouse.buttons[NK_BUTTON_RIGHT].clicked && + in->mouse.buttons[NK_BUTTON_RIGHT].down) { + nk_textedit_key(edit, NK_KEY_TEXT_WORD_LEFT, nk_false, font, row_height); + nk_textedit_key(edit, NK_KEY_TEXT_WORD_RIGHT, nk_true, font, row_height); + cursor_follow = nk_true; + } - if (in && *state != NK_PROPERTY_DEFAULT && !win->property.active) { - /* current property is now hot */ - win->property.active = 1; - NK_MEMCPY(win->property.buffer, buffer, (nk_size)*len); - win->property.length = *len; - win->property.cursor = *cursor; - win->property.state = *state; - win->property.name = hash; - win->property.select_start = *select_begin; - win->property.select_end = *select_end; - if (*state == NK_PROPERTY_DRAG) { - ctx->input.mouse.grab = nk_true; - ctx->input.mouse.grabbed = nk_true; + {int i; /* keyboard input */ + int old_mode = edit->mode; + for (i = 0; i < NK_KEY_MAX; ++i) { + if (i == NK_KEY_ENTER || i == NK_KEY_TAB) continue; /* special case */ + if (nk_input_is_key_pressed(in, (enum nk_keys)i)) { + nk_textedit_key(edit, (enum nk_keys)i, shift_mod, font, row_height); + cursor_follow = nk_true; + } } - } - /* check if previously active property is now inactive */ - if (*state == NK_PROPERTY_DEFAULT && old_state != NK_PROPERTY_DEFAULT) { - if (old_state == NK_PROPERTY_DRAG) { - ctx->input.mouse.grab = nk_false; - ctx->input.mouse.grabbed = nk_false; - ctx->input.mouse.ungrab = nk_true; + if (old_mode != edit->mode) { + in->keyboard.text_len = 0; + }} + + /* text input */ + edit->filter = filter; + if (in->keyboard.text_len) { + nk_textedit_text(edit, in->keyboard.text, in->keyboard.text_len); + cursor_follow = nk_true; + in->keyboard.text_len = 0; } - win->property.select_start = 0; - win->property.select_end = 0; - win->property.active = 0; - } -} -NK_API void -nk_property_int(struct nk_context *ctx, const char *name, - int min, int *val, int max, int step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); - NK_ASSERT(val); + /* enter key handler */ + if (nk_input_is_key_pressed(in, NK_KEY_ENTER)) { + cursor_follow = nk_true; + if (flags & NK_EDIT_CTRL_ENTER_NEWLINE && shift_mod) + nk_textedit_text(edit, "\n", 1); + else if (flags & NK_EDIT_SIG_ENTER) + ret |= NK_EDIT_COMMITED; + else nk_textedit_text(edit, "\n", 1); + } - if (!ctx || !ctx->current || !name || !val) return; - variant = nk_property_variant_int(*val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT); - *val = variant.value.i; -} + /* cut & copy handler */ + {int copy= nk_input_is_key_pressed(in, NK_KEY_COPY); + int cut = nk_input_is_key_pressed(in, NK_KEY_CUT); + if ((copy || cut) && (flags & NK_EDIT_CLIPBOARD)) + { + int glyph_len; + nk_rune unicode; + const char *text; + int b = edit->select_start; + int e = edit->select_end; -NK_API void -nk_property_float(struct nk_context *ctx, const char *name, - float min, float *val, float max, float step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); - NK_ASSERT(val); + int begin = NK_MIN(b, e); + int end = NK_MAX(b, e); + text = nk_str_at_const(&edit->string, begin, &unicode, &glyph_len); + if (edit->clip.copy) + edit->clip.copy(edit->clip.userdata, text, end - begin); + if (cut && !(flags & NK_EDIT_READ_ONLY)){ + nk_textedit_cut(edit); + cursor_follow = nk_true; + } + }} - if (!ctx || !ctx->current || !name || !val) return; - variant = nk_property_variant_float(*val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); - *val = variant.value.f; -} + /* paste handler */ + {int paste = nk_input_is_key_pressed(in, NK_KEY_PASTE); + if (paste && (flags & NK_EDIT_CLIPBOARD) && edit->clip.paste) { + edit->clip.paste(edit->clip.userdata, edit); + cursor_follow = nk_true; + }} -NK_API void -nk_property_double(struct nk_context *ctx, const char *name, - double min, double *val, double max, double step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); - NK_ASSERT(val); + /* tab handler */ + {int tab = nk_input_is_key_pressed(in, NK_KEY_TAB); + if (tab && (flags & NK_EDIT_ALLOW_TAB)) { + nk_textedit_text(edit, " ", 4); + cursor_follow = nk_true; + }} + } - if (!ctx || !ctx->current || !name || !val) return; - variant = nk_property_variant_double(*val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); - *val = variant.value.d; -} + /* set widget state */ + if (edit->active) + *state = NK_WIDGET_STATE_ACTIVE; + else nk_widget_state_reset(state); -NK_API int -nk_propertyi(struct nk_context *ctx, const char *name, int min, int val, - int max, int step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); + if (is_hovered) + *state |= NK_WIDGET_STATE_HOVERED; - if (!ctx || !ctx->current || !name) return val; - variant = nk_property_variant_int(val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT); - val = variant.value.i; - return val; -} + /* DRAW EDIT */ + {const char *text = nk_str_get_const(&edit->string); + int len = nk_str_len_char(&edit->string); -NK_API float -nk_propertyf(struct nk_context *ctx, const char *name, float min, - float val, float max, float step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); + {/* select background colors/images */ + const struct nk_style_item *background; + if (*state & NK_WIDGET_STATE_ACTIVED) + background = &style->active; + else if (*state & NK_WIDGET_STATE_HOVER) + background = &style->hover; + else background = &style->normal; - if (!ctx || !ctx->current || !name) return val; - variant = nk_property_variant_float(val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); - val = variant.value.f; - return val; -} + /* draw background frame */ + if (background->type == NK_STYLE_ITEM_COLOR) { + nk_stroke_rect(out, bounds, style->rounding, style->border, style->border_color); + nk_fill_rect(out, bounds, style->rounding, background->data.color); + } else nk_draw_image(out, bounds, &background->data.image, nk_white);} -NK_API double -nk_propertyd(struct nk_context *ctx, const char *name, double min, - double val, double max, double step, float inc_per_pixel) -{ - struct nk_property_variant variant; - NK_ASSERT(ctx); - NK_ASSERT(name); + area.w = NK_MAX(0, area.w - style->cursor_size); + if (edit->active) + { + int total_lines = 1; + struct nk_vec2 text_size = nk_vec2(0,0); - if (!ctx || !ctx->current || !name) return val; - variant = nk_property_variant_double(val, min, max, step); - nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); - val = variant.value.d; - return val; -} + /* text pointer positions */ + const char *cursor_ptr = 0; + const char *select_begin_ptr = 0; + const char *select_end_ptr = 0; -/*---------------------------------------------------------------- - * - * COLOR PICKER - * - * --------------------------------------------------------------*/ -NK_API int -nk_color_pick(struct nk_context * ctx, struct nk_color *color, - enum nk_color_format fmt) -{ - struct nk_window *win; - struct nk_panel *layout; - const struct nk_style *config; - const struct nk_input *in; + /* 2D pixel positions */ + struct nk_vec2 cursor_pos = nk_vec2(0,0); + struct nk_vec2 selection_offset_start = nk_vec2(0,0); + struct nk_vec2 selection_offset_end = nk_vec2(0,0); - enum nk_widget_layout_states state; - struct nk_rect bounds; + int selection_begin = NK_MIN(edit->select_start, edit->select_end); + int selection_end = NK_MAX(edit->select_start, edit->select_end); - NK_ASSERT(ctx); - NK_ASSERT(color); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout || !color) - return 0; + /* calculate total line count + total space + cursor/selection position */ + float line_width = 0.0f; + if (text && len) + { + /* utf8 encoding */ + float glyph_width; + int glyph_len = 0; + nk_rune unicode = 0; + int text_len = 0; + int glyphs = 0; + int row_begin = 0; - win = ctx->current; - config = &ctx->style; - layout = win->layout; - state = nk_widget(&bounds, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - return nk_do_color_picker(&ctx->last_widget_state, &win->buffer, color, fmt, bounds, - nk_vec2(0,0), in, config->font); -} + glyph_len = nk_utf_decode(text, &unicode, len); + glyph_width = font->width(font->userdata, font->height, text, glyph_len); + line_width = 0; -NK_API struct nk_color -nk_color_picker(struct nk_context *ctx, struct nk_color color, - enum nk_color_format fmt) -{ - nk_color_pick(ctx, &color, fmt); - return color; -} + /* iterate all lines */ + while ((text_len < len) && glyph_len) + { + /* set cursor 2D position and line */ + if (!cursor_ptr && glyphs == edit->cursor) + { + int glyph_offset; + struct nk_vec2 out_offset; + struct nk_vec2 row_size; + const char *remaining; -/* ------------------------------------------------------------- - * - * CHART - * - * --------------------------------------------------------------*/ -NK_API int -nk_chart_begin_colored(struct nk_context *ctx, enum nk_chart_type type, - struct nk_color color, struct nk_color highlight, - int count, float min_value, float max_value) -{ - struct nk_window *win; - struct nk_chart *chart; - const struct nk_style *config; - const struct nk_style_chart *style; + /* calculate 2d position */ + cursor_pos.y = (float)(total_lines-1) * row_height; + row_size = nk_text_calculate_text_bounds(font, text+row_begin, + text_len-row_begin, row_height, &remaining, + &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); + cursor_pos.x = row_size.x; + cursor_ptr = text + text_len; + } - const struct nk_style_item *background; - struct nk_rect bounds = {0, 0, 0, 0}; + /* set start selection 2D position and line */ + if (!select_begin_ptr && edit->select_start != edit->select_end && + glyphs == selection_begin) + { + int glyph_offset; + struct nk_vec2 out_offset; + struct nk_vec2 row_size; + const char *remaining; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); + /* calculate 2d position */ + selection_offset_start.y = (float)(NK_MAX(total_lines-1,0)) * row_height; + row_size = nk_text_calculate_text_bounds(font, text+row_begin, + text_len-row_begin, row_height, &remaining, + &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); + selection_offset_start.x = row_size.x; + select_begin_ptr = text + text_len; + } - if (!ctx || !ctx->current || !ctx->current->layout) return 0; - if (!nk_widget(&bounds, ctx)) { - chart = &ctx->current->layout->chart; - nk_zero(chart, sizeof(*chart)); - return 0; - } + /* set end selection 2D position and line */ + if (!select_end_ptr && edit->select_start != edit->select_end && + glyphs == selection_end) + { + int glyph_offset; + struct nk_vec2 out_offset; + struct nk_vec2 row_size; + const char *remaining; - win = ctx->current; - config = &ctx->style; - chart = &win->layout->chart; - style = &config->chart; + /* calculate 2d position */ + selection_offset_end.y = (float)(total_lines-1) * row_height; + row_size = nk_text_calculate_text_bounds(font, text+row_begin, + text_len-row_begin, row_height, &remaining, + &out_offset, &glyph_offset, NK_STOP_ON_NEW_LINE); + selection_offset_end.x = row_size.x; + select_end_ptr = text + text_len; + } + if (unicode == '\n') { + text_size.x = NK_MAX(text_size.x, line_width); + total_lines++; + line_width = 0; + text_len++; + glyphs++; + row_begin = text_len; + glyph_len = nk_utf_decode(text + text_len, &unicode, len-text_len); + glyph_width = font->width(font->userdata, font->height, text+text_len, glyph_len); + continue; + } - /* setup basic generic chart */ - nk_zero(chart, sizeof(*chart)); - chart->x = bounds.x + style->padding.x; - chart->y = bounds.y + style->padding.y; - chart->w = bounds.w - 2 * style->padding.x; - chart->h = bounds.h - 2 * style->padding.y; - chart->w = NK_MAX(chart->w, 2 * style->padding.x); - chart->h = NK_MAX(chart->h, 2 * style->padding.y); + glyphs++; + text_len += glyph_len; + line_width += (float)glyph_width; - /* add first slot into chart */ - {struct nk_chart_slot *slot = &chart->slots[chart->slot++]; - slot->type = type; - slot->count = count; - slot->color = color; - slot->highlight = highlight; - slot->min = NK_MIN(min_value, max_value); - slot->max = NK_MAX(min_value, max_value); - slot->range = slot->max - slot->min;} + glyph_len = nk_utf_decode(text + text_len, &unicode, len-text_len); + glyph_width = font->width(font->userdata, font->height, + text+text_len, glyph_len); + continue; + } + text_size.y = (float)total_lines * row_height; - /* draw chart background */ - background = &style->background; - if (background->type == NK_STYLE_ITEM_IMAGE) { - nk_draw_image(&win->buffer, bounds, &background->data.image, nk_white); - } else { - nk_fill_rect(&win->buffer, bounds, style->rounding, style->border_color); - nk_fill_rect(&win->buffer, nk_shrink_rect(bounds, style->border), - style->rounding, style->background.data.color); - } - return 1; -} + /* handle case when cursor is at end of text buffer */ + if (!cursor_ptr && edit->cursor == edit->string.len) { + cursor_pos.x = line_width; + cursor_pos.y = text_size.y - row_height; + } + } + { + /* scrollbar */ + if (cursor_follow) + { + /* update scrollbar to follow cursor */ + if (!(flags & NK_EDIT_NO_HORIZONTAL_SCROLL)) { + /* horizontal scroll */ + const float scroll_increment = area.w * 0.25f; + if (cursor_pos.x < edit->scrollbar.x) + edit->scrollbar.x = (float)(int)NK_MAX(0.0f, cursor_pos.x - scroll_increment); + if (cursor_pos.x >= edit->scrollbar.x + area.w) + edit->scrollbar.x = (float)(int)NK_MAX(0.0f, edit->scrollbar.x + scroll_increment); + } else edit->scrollbar.x = 0; -NK_API int -nk_chart_begin(struct nk_context *ctx, const enum nk_chart_type type, - int count, float min_value, float max_value) -{return nk_chart_begin_colored(ctx, type, ctx->style.chart.color, ctx->style.chart.selected_color, count, min_value, max_value);} + if (flags & NK_EDIT_MULTILINE) { + /* vertical scroll */ + if (cursor_pos.y < edit->scrollbar.y) + edit->scrollbar.y = NK_MAX(0.0f, cursor_pos.y - row_height); + if (cursor_pos.y >= edit->scrollbar.y + area.h) + edit->scrollbar.y = edit->scrollbar.y + row_height; + } else edit->scrollbar.y = 0; + } -NK_API void -nk_chart_add_slot_colored(struct nk_context *ctx, const enum nk_chart_type type, - struct nk_color color, struct nk_color highlight, - int count, float min_value, float max_value) -{ - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - NK_ASSERT(ctx->current->layout->chart.slot < NK_CHART_MAX_SLOT); - if (!ctx || !ctx->current || !ctx->current->layout) return; - if (ctx->current->layout->chart.slot >= NK_CHART_MAX_SLOT) return; + /* scrollbar widget */ + if (flags & NK_EDIT_MULTILINE) + { + nk_flags ws; + struct nk_rect scroll; + float scroll_target; + float scroll_offset; + float scroll_step; + float scroll_inc; - /* add another slot into the graph */ - {struct nk_chart *chart = &ctx->current->layout->chart; - struct nk_chart_slot *slot = &chart->slots[chart->slot++]; - slot->type = type; - slot->count = count; - slot->color = color; - slot->highlight = highlight; - slot->min = NK_MIN(min_value, max_value); - slot->max = NK_MAX(min_value, max_value); - slot->range = slot->max - slot->min;} -} + scroll = area; + scroll.x = (bounds.x + bounds.w - style->border) - style->scrollbar_size.x; + scroll.w = style->scrollbar_size.x; -NK_API void -nk_chart_add_slot(struct nk_context *ctx, const enum nk_chart_type type, - int count, float min_value, float max_value) -{nk_chart_add_slot_colored(ctx, type, ctx->style.chart.color, ctx->style.chart.selected_color, count, min_value, max_value);} + scroll_offset = edit->scrollbar.y; + scroll_step = scroll.h * 0.10f; + scroll_inc = scroll.h * 0.01f; + scroll_target = text_size.y; + edit->scrollbar.y = nk_do_scrollbarv(&ws, out, scroll, 0, + scroll_offset, scroll_target, scroll_step, scroll_inc, + &style->scrollbar, in, font); + } + } -NK_INTERN nk_flags -nk_chart_push_line(struct nk_context *ctx, struct nk_window *win, - struct nk_chart *g, float value, int slot) -{ - struct nk_panel *layout = win->layout; - const struct nk_input *i = &ctx->input; - struct nk_command_buffer *out = &win->buffer; + /* draw text */ + {struct nk_color background_color; + struct nk_color text_color; + struct nk_color sel_background_color; + struct nk_color sel_text_color; + struct nk_color cursor_color; + struct nk_color cursor_text_color; + const struct nk_style_item *background; + nk_push_scissor(out, clip); - nk_flags ret = 0; - struct nk_vec2 cur; - struct nk_rect bounds; - struct nk_color color; - float step; - float range; - float ratio; + /* select correct colors to draw */ + if (*state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + text_color = style->text_active; + sel_text_color = style->selected_text_hover; + sel_background_color = style->selected_hover; + cursor_color = style->cursor_hover; + cursor_text_color = style->cursor_text_hover; + } else if (*state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + text_color = style->text_hover; + sel_text_color = style->selected_text_hover; + sel_background_color = style->selected_hover; + cursor_text_color = style->cursor_text_hover; + cursor_color = style->cursor_hover; + } else { + background = &style->normal; + text_color = style->text_normal; + sel_text_color = style->selected_text_normal; + sel_background_color = style->selected_normal; + cursor_color = style->cursor_normal; + cursor_text_color = style->cursor_text_normal; + } + if (background->type == NK_STYLE_ITEM_IMAGE) + background_color = nk_rgba(0,0,0,0); + else background_color = background->data.color; - NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); - step = g->w / (float)g->slots[slot].count; - range = g->slots[slot].max - g->slots[slot].min; - ratio = (value - g->slots[slot].min) / range; - if (g->slots[slot].index == 0) { - /* first data point does not have a connection */ - g->slots[slot].last.x = g->x; - g->slots[slot].last.y = (g->y + g->h) - ratio * (float)g->h; + if (edit->select_start == edit->select_end) { + /* no selection so just draw the complete text */ + const char *begin = nk_str_get_const(&edit->string); + int l = nk_str_len_char(&edit->string); + nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, + area.y - edit->scrollbar.y, 0, begin, l, row_height, font, + background_color, text_color, nk_false); + } else { + /* edit has selection so draw 1-3 text chunks */ + if (edit->select_start != edit->select_end && selection_begin > 0){ + /* draw unselected text before selection */ + const char *begin = nk_str_get_const(&edit->string); + NK_ASSERT(select_begin_ptr); + nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, + area.y - edit->scrollbar.y, 0, begin, (int)(select_begin_ptr - begin), + row_height, font, background_color, text_color, nk_false); + } + if (edit->select_start != edit->select_end) { + /* draw selected text */ + NK_ASSERT(select_begin_ptr); + if (!select_end_ptr) { + const char *begin = nk_str_get_const(&edit->string); + select_end_ptr = begin + nk_str_len_char(&edit->string); + } + nk_edit_draw_text(out, style, + area.x - edit->scrollbar.x, + area.y + selection_offset_start.y - edit->scrollbar.y, + selection_offset_start.x, + select_begin_ptr, (int)(select_end_ptr - select_begin_ptr), + row_height, font, sel_background_color, sel_text_color, nk_true); + } + if ((edit->select_start != edit->select_end && + selection_end < edit->string.len)) + { + /* draw unselected text after selected text */ + const char *begin = select_end_ptr; + const char *end = nk_str_get_const(&edit->string) + + nk_str_len_char(&edit->string); + NK_ASSERT(select_end_ptr); + nk_edit_draw_text(out, style, + area.x - edit->scrollbar.x, + area.y + selection_offset_end.y - edit->scrollbar.y, + selection_offset_end.x, + begin, (int)(end - begin), row_height, font, + background_color, text_color, nk_true); + } + } - bounds.x = g->slots[slot].last.x - 2; - bounds.y = g->slots[slot].last.y - 2; - bounds.w = bounds.h = 4; + /* cursor */ + if (edit->select_start == edit->select_end) + { + if (edit->cursor >= nk_str_len(&edit->string) || + (cursor_ptr && *cursor_ptr == '\n')) { + /* draw cursor at end of line */ + struct nk_rect cursor; + cursor.w = style->cursor_size; + cursor.h = font->height; + cursor.x = area.x + cursor_pos.x - edit->scrollbar.x; + cursor.y = area.y + cursor_pos.y + row_height/2.0f - cursor.h/2.0f; + cursor.y -= edit->scrollbar.y; + nk_fill_rect(out, cursor, 0, cursor_color); + } else { + /* draw cursor inside text */ + int glyph_len; + struct nk_rect label; + struct nk_text txt; - color = g->slots[slot].color; - if (!(layout->flags & NK_WINDOW_ROM) && - NK_INBOX(i->mouse.pos.x,i->mouse.pos.y, g->slots[slot].last.x-3, g->slots[slot].last.y-3, 6, 6)){ - ret = nk_input_is_mouse_hovering_rect(i, bounds) ? NK_CHART_HOVERING : 0; - ret |= (i->mouse.buttons[NK_BUTTON_LEFT].down && - i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; - color = g->slots[slot].highlight; - } - nk_fill_rect(out, bounds, 0, color); - g->slots[slot].index += 1; - return ret; - } + nk_rune unicode; + NK_ASSERT(cursor_ptr); + glyph_len = nk_utf_decode(cursor_ptr, &unicode, 4); - /* draw a line between the last data point and the new one */ - color = g->slots[slot].color; - cur.x = g->x + (float)(step * (float)g->slots[slot].index); - cur.y = (g->y + g->h) - (ratio * (float)g->h); - nk_stroke_line(out, g->slots[slot].last.x, g->slots[slot].last.y, cur.x, cur.y, 1.0f, color); + label.x = area.x + cursor_pos.x - edit->scrollbar.x; + label.y = area.y + cursor_pos.y - edit->scrollbar.y; + label.w = font->width(font->userdata, font->height, cursor_ptr, glyph_len); + label.h = row_height; - bounds.x = cur.x - 3; - bounds.y = cur.y - 3; - bounds.w = bounds.h = 6; + txt.padding = nk_vec2(0,0); + txt.background = cursor_color;; + txt.text = cursor_text_color; + nk_fill_rect(out, label, 0, cursor_color); + nk_widget_text(out, label, cursor_ptr, glyph_len, &txt, NK_TEXT_LEFT, font); + } + }} + } else { + /* not active so just draw text */ + int l = nk_str_len_char(&edit->string); + const char *begin = nk_str_get_const(&edit->string); - /* user selection of current data point */ - if (!(layout->flags & NK_WINDOW_ROM)) { - if (nk_input_is_mouse_hovering_rect(i, bounds)) { - ret = NK_CHART_HOVERING; - ret |= (!i->mouse.buttons[NK_BUTTON_LEFT].down && - i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; - color = g->slots[slot].highlight; + const struct nk_style_item *background; + struct nk_color background_color; + struct nk_color text_color; + nk_push_scissor(out, clip); + if (*state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + text_color = style->text_active; + } else if (*state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + text_color = style->text_hover; + } else { + background = &style->normal; + text_color = style->text_normal; } + if (background->type == NK_STYLE_ITEM_IMAGE) + background_color = nk_rgba(0,0,0,0); + else background_color = background->data.color; + nk_edit_draw_text(out, style, area.x - edit->scrollbar.x, + area.y - edit->scrollbar.y, 0, begin, l, row_height, font, + background_color, text_color, nk_false); } - nk_fill_rect(out, nk_rect(cur.x - 2, cur.y - 2, 4, 4), 0, color); - - /* save current data point position */ - g->slots[slot].last.x = cur.x; - g->slots[slot].last.y = cur.y; - g->slots[slot].index += 1; + nk_push_scissor(out, old_clip);} return ret; } - -NK_INTERN nk_flags -nk_chart_push_column(const struct nk_context *ctx, struct nk_window *win, - struct nk_chart *chart, float value, int slot) +NK_API void +nk_edit_focus(struct nk_context *ctx, nk_flags flags) { - struct nk_command_buffer *out = &win->buffer; - const struct nk_input *in = &ctx->input; - struct nk_panel *layout = win->layout; - - float ratio; - nk_flags ret = 0; - struct nk_color color; - struct nk_rect item = {0,0,0,0}; - - NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); - if (chart->slots[slot].index >= chart->slots[slot].count) - return nk_false; - if (chart->slots[slot].count) { - float padding = (float)(chart->slots[slot].count-1); - item.w = (chart->w - padding) / (float)(chart->slots[slot].count); - } + nk_hash hash; + struct nk_window *win; - /* calculate bounds of current bar chart entry */ - color = chart->slots[slot].color;; - item.h = chart->h * NK_ABS((value/chart->slots[slot].range)); - if (value >= 0) { - ratio = (value + NK_ABS(chart->slots[slot].min)) / NK_ABS(chart->slots[slot].range); - item.y = (chart->y + chart->h) - chart->h * ratio; - } else { - ratio = (value - chart->slots[slot].max) / chart->slots[slot].range; - item.y = chart->y + (chart->h * NK_ABS(ratio)) - item.h; - } - item.x = chart->x + ((float)chart->slots[slot].index * item.w); - item.x = item.x + ((float)chart->slots[slot].index); + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return; - /* user chart bar selection */ - if (!(layout->flags & NK_WINDOW_ROM) && - NK_INBOX(in->mouse.pos.x,in->mouse.pos.y,item.x,item.y,item.w,item.h)) { - ret = NK_CHART_HOVERING; - ret |= (!in->mouse.buttons[NK_BUTTON_LEFT].down && - in->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; - color = chart->slots[slot].highlight; - } - nk_fill_rect(out, item, 0, color); - chart->slots[slot].index += 1; - return ret; + win = ctx->current; + hash = win->edit.seq; + win->edit.active = nk_true; + win->edit.name = hash; + if (flags & NK_EDIT_ALWAYS_INSERT_MODE) + win->edit.mode = NK_TEXT_EDIT_MODE_INSERT; } +NK_API void +nk_edit_unfocus(struct nk_context *ctx) +{ + struct nk_window *win; + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + if (!ctx || !ctx->current) return; + win = ctx->current; + win->edit.active = nk_false; + win->edit.name = 0; +} NK_API nk_flags -nk_chart_push_slot(struct nk_context *ctx, float value, int slot) +nk_edit_string(struct nk_context *ctx, nk_flags flags, + char *memory, int *len, int max, nk_plugin_filter filter) { - nk_flags flags; + nk_hash hash; + nk_flags state; + struct nk_text_edit *edit; struct nk_window *win; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); - NK_ASSERT(slot < ctx->current->layout->chart.slot); - if (!ctx || !ctx->current || slot >= NK_CHART_MAX_SLOT) return nk_false; - if (slot >= ctx->current->layout->chart.slot) return nk_false; + NK_ASSERT(memory); + NK_ASSERT(len); + if (!ctx || !memory || !len) + return 0; + filter = (!filter) ? nk_filter_default: filter; win = ctx->current; - if (win->layout->chart.slot < slot) return nk_false; - switch (win->layout->chart.slots[slot].type) { - case NK_CHART_LINES: - flags = nk_chart_push_line(ctx, win, &win->layout->chart, value, slot); break; - case NK_CHART_COLUMN: - flags = nk_chart_push_column(ctx, win, &win->layout->chart, value, slot); break; - default: - case NK_CHART_MAX: - flags = 0; - } - return flags; -} + hash = win->edit.seq; + edit = &ctx->text_edit; + nk_textedit_clear_state(&ctx->text_edit, (flags & NK_EDIT_MULTILINE)? + NK_TEXT_EDIT_MULTI_LINE: NK_TEXT_EDIT_SINGLE_LINE, filter); -NK_API nk_flags -nk_chart_push(struct nk_context *ctx, float value) -{return nk_chart_push_slot(ctx, value, 0);} + if (win->edit.active && hash == win->edit.name) { + if (flags & NK_EDIT_NO_CURSOR) + edit->cursor = nk_utf_len(memory, *len); + else edit->cursor = win->edit.cursor; + if (!(flags & NK_EDIT_SELECTABLE)) { + edit->select_start = win->edit.cursor; + edit->select_end = win->edit.cursor; + } else { + edit->select_start = win->edit.sel_start; + edit->select_end = win->edit.sel_end; + } + edit->mode = win->edit.mode; + edit->scrollbar.x = (float)win->edit.scrollbar.x; + edit->scrollbar.y = (float)win->edit.scrollbar.y; + edit->active = nk_true; + } else edit->active = nk_false; -NK_API void -nk_chart_end(struct nk_context *ctx) + max = NK_MAX(1, max); + *len = NK_MIN(*len, max-1); + nk_str_init_fixed(&edit->string, memory, (nk_size)max); + edit->string.buffer.allocated = (nk_size)*len; + edit->string.len = nk_utf_len(memory, *len); + state = nk_edit_buffer(ctx, flags, edit, filter); + *len = (int)edit->string.buffer.allocated; + + if (edit->active) { + win->edit.cursor = edit->cursor; + win->edit.sel_start = edit->select_start; + win->edit.sel_end = edit->select_end; + win->edit.mode = edit->mode; + win->edit.scrollbar.x = (nk_uint)edit->scrollbar.x; + win->edit.scrollbar.y = (nk_uint)edit->scrollbar.y; + } return state; +} +NK_API nk_flags +nk_edit_buffer(struct nk_context *ctx, nk_flags flags, + struct nk_text_edit *edit, nk_plugin_filter filter) { struct nk_window *win; - struct nk_chart *chart; + struct nk_style *style; + struct nk_input *in; + + enum nk_widget_layout_states state; + struct nk_rect bounds; + + nk_flags ret_flags = 0; + unsigned char prev_state; + nk_hash hash; + /* make sure correct values */ NK_ASSERT(ctx); + NK_ASSERT(edit); NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return; + NK_ASSERT(ctx->current->layout); + if (!ctx || !ctx->current || !ctx->current->layout) + return 0; + + win = ctx->current; + style = &ctx->style; + state = nk_widget(&bounds, ctx); + if (!state) return state; + in = (win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + + /* check if edit is currently hot item */ + hash = win->edit.seq++; + if (win->edit.active && hash == win->edit.name) { + if (flags & NK_EDIT_NO_CURSOR) + edit->cursor = edit->string.len; + if (!(flags & NK_EDIT_SELECTABLE)) { + edit->select_start = edit->cursor; + edit->select_end = edit->cursor; + } + if (flags & NK_EDIT_CLIPBOARD) + edit->clip = ctx->clip; + edit->active = (unsigned char)win->edit.active; + } else edit->active = nk_false; + edit->mode = win->edit.mode; + + filter = (!filter) ? nk_filter_default: filter; + prev_state = (unsigned char)edit->active; + in = (flags & NK_EDIT_READ_ONLY) ? 0: in; + ret_flags = nk_do_edit(&ctx->last_widget_state, &win->buffer, bounds, flags, + filter, edit, &style->edit, in, style->font); - win = ctx->current; - chart = &win->layout->chart; - NK_MEMSET(chart, 0, sizeof(*chart)); - return; + if (ctx->last_widget_state & NK_WIDGET_STATE_HOVER) + ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_TEXT]; + if (edit->active && prev_state != edit->active) { + /* current edit is now hot */ + win->edit.active = nk_true; + win->edit.name = hash; + } else if (prev_state && !edit->active) { + /* current edit is now cold */ + win->edit.active = nk_false; + } return ret_flags; } - -NK_API void -nk_plot(struct nk_context *ctx, enum nk_chart_type type, const float *values, - int count, int offset) +NK_API nk_flags +nk_edit_string_zero_terminated(struct nk_context *ctx, nk_flags flags, + char *buffer, int max, nk_plugin_filter filter) { - int i = 0; - float min_value; - float max_value; - - NK_ASSERT(ctx); - NK_ASSERT(values); - if (!ctx || !values || !count) return; - - min_value = values[offset]; - max_value = values[offset]; - for (i = 0; i < count; ++i) { - min_value = NK_MIN(values[i + offset], min_value); - max_value = NK_MAX(values[i + offset], max_value); - } - - if (nk_chart_begin(ctx, type, count, min_value, max_value)) { - for (i = 0; i < count; ++i) - nk_chart_push(ctx, values[i + offset]); - nk_chart_end(ctx); - } + nk_flags result; + int len = nk_strlen(buffer); + result = nk_edit_string(ctx, flags, buffer, &len, max, filter); + buffer[NK_MIN(NK_MAX(max-1,0), len)] = '\0'; + return result; } -NK_API void -nk_plot_function(struct nk_context *ctx, enum nk_chart_type type, void *userdata, - float(*value_getter)(void* user, int index), int count, int offset) -{ - int i = 0; - float min_value; - float max_value; - NK_ASSERT(ctx); - NK_ASSERT(value_getter); - if (!ctx || !value_getter || !count) return; - max_value = min_value = value_getter(userdata, offset); - for (i = 0; i < count; ++i) { - float value = value_getter(userdata, i + offset); - min_value = NK_MIN(value, min_value); - max_value = NK_MAX(value, max_value); - } - if (nk_chart_begin(ctx, type, count, min_value, max_value)) { - for (i = 0; i < count; ++i) - nk_chart_push(ctx, value_getter(userdata, i + offset)); - nk_chart_end(ctx); - } -} -/* ------------------------------------------------------------- +/* =============================================================== * - * GROUP + * PROPERTY * - * --------------------------------------------------------------*/ -NK_API int -nk_group_scrolled_offset_begin(struct nk_context *ctx, - nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags) + * ===============================================================*/ +NK_LIB void +nk_drag_behavior(nk_flags *state, const struct nk_input *in, + struct nk_rect drag, struct nk_property_variant *variant, + float inc_per_pixel) { - struct nk_rect bounds; - struct nk_window panel; - struct nk_window *win; - - win = ctx->current; - nk_panel_alloc_space(&bounds, ctx); - {const struct nk_rect *c = &win->layout->clip; - if (!NK_INTERSECT(c->x, c->y, c->w, c->h, bounds.x, bounds.y, bounds.w, bounds.h) && - !(flags & NK_WINDOW_MOVABLE)) { - return 0; - }} - if (win->flags & NK_WINDOW_ROM) - flags |= NK_WINDOW_ROM; - - /* initialize a fake window to create the panel from */ - nk_zero(&panel, sizeof(panel)); - panel.bounds = bounds; - panel.flags = flags; - panel.scrollbar.x = *x_offset; - panel.scrollbar.y = *y_offset; - panel.buffer = win->buffer; - panel.layout = (struct nk_panel*)nk_create_panel(ctx); - ctx->current = &panel; - nk_panel_begin(ctx, (flags & NK_WINDOW_TITLE) ? title: 0, NK_PANEL_GROUP); + int left_mouse_down = in && in->mouse.buttons[NK_BUTTON_LEFT].down; + int left_mouse_click_in_cursor = in && + nk_input_has_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, drag, nk_true); - win->buffer = panel.buffer; - win->buffer.clip = panel.layout->clip; - panel.layout->offset_x = x_offset; - panel.layout->offset_y = y_offset; - panel.layout->parent = win->layout; - win->layout = panel.layout; + nk_widget_state_reset(state); + if (nk_input_is_mouse_hovering_rect(in, drag)) + *state = NK_WIDGET_STATE_HOVERED; - ctx->current = win; - if ((panel.layout->flags & NK_WINDOW_CLOSED) || - (panel.layout->flags & NK_WINDOW_MINIMIZED)) - { - nk_flags f = panel.layout->flags; - nk_group_scrolled_end(ctx); - if (f & NK_WINDOW_CLOSED) - return NK_WINDOW_CLOSED; - if (f & NK_WINDOW_MINIMIZED) - return NK_WINDOW_MINIMIZED; + if (left_mouse_down && left_mouse_click_in_cursor) { + float delta, pixels; + pixels = in->mouse.delta.x; + delta = pixels * inc_per_pixel; + switch (variant->kind) { + default: break; + case NK_PROPERTY_INT: + variant->value.i = variant->value.i + (int)delta; + variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i, variant->max_value.i); + break; + case NK_PROPERTY_FLOAT: + variant->value.f = variant->value.f + (float)delta; + variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f, variant->max_value.f); + break; + case NK_PROPERTY_DOUBLE: + variant->value.d = variant->value.d + (double)delta; + variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d, variant->max_value.d); + break; + } + *state = NK_WIDGET_STATE_ACTIVE; } - return 1; + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, drag)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, drag)) + *state |= NK_WIDGET_STATE_LEFT; } - -NK_API void -nk_group_scrolled_end(struct nk_context *ctx) +NK_LIB void +nk_property_behavior(nk_flags *ws, const struct nk_input *in, + struct nk_rect property, struct nk_rect label, struct nk_rect edit, + struct nk_rect empty, int *state, struct nk_property_variant *variant, + float inc_per_pixel) { - struct nk_window *win; - struct nk_panel *parent; - struct nk_panel *g; - - struct nk_rect clip; - struct nk_window pan; - struct nk_vec2 panel_padding; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) - return; - - /* make sure nk_group_begin was called correctly */ - NK_ASSERT(ctx->current); - win = ctx->current; - NK_ASSERT(win->layout); - g = win->layout; - NK_ASSERT(g->parent); - parent = g->parent; - - /* dummy window */ - nk_zero_struct(pan); - panel_padding = nk_panel_get_padding(&ctx->style, NK_PANEL_GROUP); - pan.bounds.y = g->bounds.y - (g->header_height + g->menu.h); - pan.bounds.x = g->bounds.x - panel_padding.x; - pan.bounds.w = g->bounds.w + 2 * panel_padding.x; - pan.bounds.h = g->bounds.h + g->header_height + g->menu.h; - if (g->flags & NK_WINDOW_BORDER) { - pan.bounds.x -= g->border; - pan.bounds.y -= g->border; - pan.bounds.w += 2*g->border; - pan.bounds.h += 2*g->border; + if (in && *state == NK_PROPERTY_DEFAULT) { + if (nk_button_behavior(ws, edit, in, NK_BUTTON_DEFAULT)) + *state = NK_PROPERTY_EDIT; + else if (nk_input_is_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, label, nk_true)) + *state = NK_PROPERTY_DRAG; + else if (nk_input_is_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, empty, nk_true)) + *state = NK_PROPERTY_DRAG; } - if (!(g->flags & NK_WINDOW_NO_SCROLLBAR)) { - pan.bounds.w += ctx->style.window.scrollbar_size.x; - pan.bounds.h += ctx->style.window.scrollbar_size.y; + if (*state == NK_PROPERTY_DRAG) { + nk_drag_behavior(ws, in, property, variant, inc_per_pixel); + if (!(*ws & NK_WIDGET_STATE_ACTIVED)) *state = NK_PROPERTY_DEFAULT; } - pan.scrollbar.x = *g->offset_x; - pan.scrollbar.y = *g->offset_y; - pan.flags = g->flags; - pan.buffer = win->buffer; - pan.layout = g; - pan.parent = win; - ctx->current = &pan; +} +NK_LIB void +nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *style, + const struct nk_rect *bounds, const struct nk_rect *label, nk_flags state, + const char *name, int len, const struct nk_user_font *font) +{ + struct nk_text text; + const struct nk_style_item *background; - /* make sure group has correct clipping rectangle */ - nk_unify(&clip, &parent->clip, pan.bounds.x, pan.bounds.y, - pan.bounds.x + pan.bounds.w, pan.bounds.y + pan.bounds.h + panel_padding.x); - nk_push_scissor(&pan.buffer, clip); - nk_end(ctx); + /* select correct background and text color */ + if (state & NK_WIDGET_STATE_ACTIVED) { + background = &style->active; + text.text = style->label_active; + } else if (state & NK_WIDGET_STATE_HOVER) { + background = &style->hover; + text.text = style->label_hover; + } else { + background = &style->normal; + text.text = style->label_normal; + } - win->buffer = pan.buffer; - nk_push_scissor(&win->buffer, parent->clip); - ctx->current = win; - win->layout = parent; - g->bounds = pan.bounds; - return; + /* draw background */ + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(out, *bounds, &background->data.image, nk_white); + text.background = nk_rgba(0,0,0,0); + } else { + text.background = background->data.color; + nk_fill_rect(out, *bounds, style->rounding, background->data.color); + nk_stroke_rect(out, *bounds, style->rounding, style->border, background->data.color); + } + + /* draw label */ + text.padding = nk_vec2(0,0); + nk_widget_text(out, *label, name, len, &text, NK_TEXT_CENTERED, font); } +NK_LIB void +nk_do_property(nk_flags *ws, + struct nk_command_buffer *out, struct nk_rect property, + const char *name, struct nk_property_variant *variant, + float inc_per_pixel, char *buffer, int *len, + int *state, int *cursor, int *select_begin, int *select_end, + const struct nk_style_property *style, + enum nk_property_filter filter, struct nk_input *in, + const struct nk_user_font *font, struct nk_text_edit *text_edit, + enum nk_button_behavior behavior) +{ + const nk_plugin_filter filters[] = { + nk_filter_decimal, + nk_filter_float + }; + int active, old; + int num_len, name_len; + char string[NK_MAX_NUMBER_BUFFER]; + float size; -NK_API int -nk_group_scrolled_begin(struct nk_context *ctx, - struct nk_scroll *scroll, const char *title, nk_flags flags) -{return nk_group_scrolled_offset_begin(ctx, &scroll->x, &scroll->y, title, flags);} + char *dst = 0; + int *length; -NK_API int -nk_group_begin(struct nk_context *ctx, const char *title, nk_flags flags) -{ - int title_len; - nk_hash title_hash; - struct nk_window *win; - nk_uint *x_offset; - nk_uint *y_offset; + struct nk_rect left; + struct nk_rect right; + struct nk_rect label; + struct nk_rect edit; + struct nk_rect empty; - NK_ASSERT(ctx); - NK_ASSERT(title); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout || !title) - return 0; + /* left decrement button */ + left.h = font->height/2; + left.w = left.h; + left.x = property.x + style->border + style->padding.x; + left.y = property.y + style->border + property.h/2.0f - left.h/2; - /* find persistent group scrollbar value */ - win = ctx->current; - title_len = (int)nk_strlen(title); - title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_GROUP); - x_offset = nk_find_value(win, title_hash); - if (!x_offset) { - x_offset = nk_add_value(ctx, win, title_hash, 0); - y_offset = nk_add_value(ctx, win, title_hash+1, 0); + /* text label */ + name_len = nk_strlen(name); + size = font->width(font->userdata, font->height, name, name_len); + label.x = left.x + left.w + style->padding.x; + label.w = (float)size + 2 * style->padding.x; + label.y = property.y + style->border + style->padding.y; + label.h = property.h - (2 * style->border + 2 * style->padding.y); - NK_ASSERT(x_offset); - NK_ASSERT(y_offset); - if (!x_offset || !y_offset) return 0; - *x_offset = *y_offset = 0; - } else y_offset = nk_find_value(win, title_hash+1); - return nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags); -} + /* right increment button */ + right.y = left.y; + right.w = left.w; + right.h = left.h; + right.x = property.x + property.w - (right.w + style->padding.x); -NK_API void -nk_group_end(struct nk_context *ctx) -{nk_group_scrolled_end(ctx);} + /* edit */ + if (*state == NK_PROPERTY_EDIT) { + size = font->width(font->userdata, font->height, buffer, *len); + size += style->edit.cursor_size; + length = len; + dst = buffer; + } else { + switch (variant->kind) { + default: break; + case NK_PROPERTY_INT: + nk_itoa(string, variant->value.i); + num_len = nk_strlen(string); + break; + case NK_PROPERTY_FLOAT: + NK_DTOA(string, (double)variant->value.f); + num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION); + break; + case NK_PROPERTY_DOUBLE: + NK_DTOA(string, variant->value.d); + num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION); + break; + } + size = font->width(font->userdata, font->height, string, num_len); + dst = string; + length = &num_len; + } -NK_API int -nk_list_view_begin(struct nk_context *ctx, struct nk_list_view *view, - const char *title, nk_flags flags, int row_height, int row_count) -{ - int title_len; - nk_hash title_hash; - nk_uint *x_offset; - nk_uint *y_offset; + edit.w = (float)size + 2 * style->padding.x; + edit.w = NK_MIN(edit.w, right.x - (label.x + label.w)); + edit.x = right.x - (edit.w + style->padding.x); + edit.y = property.y + style->border; + edit.h = property.h - (2 * style->border); - int result; - struct nk_window *win; - struct nk_panel *layout; - const struct nk_style *style; - struct nk_vec2 item_spacing; + /* empty left space activator */ + empty.w = edit.x - (label.x + label.w); + empty.x = label.x + label.w; + empty.y = property.y; + empty.h = property.h; - NK_ASSERT(ctx); - NK_ASSERT(view); - NK_ASSERT(title); - if (!ctx || !view || !title) return 0; + /* update property */ + old = (*state == NK_PROPERTY_EDIT); + nk_property_behavior(ws, in, property, label, edit, empty, state, variant, inc_per_pixel); - win = ctx->current; - style = &ctx->style; - item_spacing = style->window.spacing; - row_height += NK_MAX(0, (int)item_spacing.y); + /* draw property */ + if (style->draw_begin) style->draw_begin(out, style->userdata); + nk_draw_property(out, style, &property, &label, *ws, name, name_len, font); + if (style->draw_end) style->draw_end(out, style->userdata); - /* find persistent list view scrollbar offset */ - title_len = (int)nk_strlen(title); - title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_GROUP); - x_offset = nk_find_value(win, title_hash); - if (!x_offset) { - x_offset = nk_add_value(ctx, win, title_hash, 0); - y_offset = nk_add_value(ctx, win, title_hash+1, 0); + /* execute right button */ + if (nk_do_button_symbol(ws, out, left, style->sym_left, behavior, &style->dec_button, in, font)) { + switch (variant->kind) { + default: break; + case NK_PROPERTY_INT: + variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i - variant->step.i, variant->max_value.i); break; + case NK_PROPERTY_FLOAT: + variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f - variant->step.f, variant->max_value.f); break; + case NK_PROPERTY_DOUBLE: + variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d - variant->step.d, variant->max_value.d); break; + } + } + /* execute left button */ + if (nk_do_button_symbol(ws, out, right, style->sym_right, behavior, &style->inc_button, in, font)) { + switch (variant->kind) { + default: break; + case NK_PROPERTY_INT: + variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i + variant->step.i, variant->max_value.i); break; + case NK_PROPERTY_FLOAT: + variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f + variant->step.f, variant->max_value.f); break; + case NK_PROPERTY_DOUBLE: + variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d + variant->step.d, variant->max_value.d); break; + } + } + if (old != NK_PROPERTY_EDIT && (*state == NK_PROPERTY_EDIT)) { + /* property has been activated so setup buffer */ + NK_MEMCPY(buffer, dst, (nk_size)*length); + *cursor = nk_utf_len(buffer, *length); + *len = *length; + length = len; + dst = buffer; + active = 0; + } else active = (*state == NK_PROPERTY_EDIT); - NK_ASSERT(x_offset); - NK_ASSERT(y_offset); - if (!x_offset || !y_offset) return 0; - *x_offset = *y_offset = 0; - } else y_offset = nk_find_value(win, title_hash+1); - view->scroll_value = *y_offset; - view->scroll_pointer = y_offset; + /* execute and run text edit field */ + nk_textedit_clear_state(text_edit, NK_TEXT_EDIT_SINGLE_LINE, filters[filter]); + text_edit->active = (unsigned char)active; + text_edit->string.len = *length; + text_edit->cursor = NK_CLAMP(0, *cursor, *length); + text_edit->select_start = NK_CLAMP(0,*select_begin, *length); + text_edit->select_end = NK_CLAMP(0,*select_end, *length); + text_edit->string.buffer.allocated = (nk_size)*length; + text_edit->string.buffer.memory.size = NK_MAX_NUMBER_BUFFER; + text_edit->string.buffer.memory.ptr = dst; + text_edit->string.buffer.size = NK_MAX_NUMBER_BUFFER; + text_edit->mode = NK_TEXT_EDIT_MODE_INSERT; + nk_do_edit(ws, out, edit, NK_EDIT_FIELD|NK_EDIT_AUTO_SELECT, + filters[filter], text_edit, &style->edit, (*state == NK_PROPERTY_EDIT) ? in: 0, font); - *y_offset = 0; - result = nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags); - win = ctx->current; - layout = win->layout; + *length = text_edit->string.len; + *cursor = text_edit->cursor; + *select_begin = text_edit->select_start; + *select_end = text_edit->select_end; + if (text_edit->active && nk_input_is_key_pressed(in, NK_KEY_ENTER)) + text_edit->active = nk_false; - view->total_height = row_height * NK_MAX(row_count,1); - view->begin = (int)NK_MAX(((float)view->scroll_value / (float)row_height), 0.0f); - view->count = (int)NK_MAX(nk_iceilf((layout->clip.h)/(float)row_height), 0); - view->end = view->begin + view->count; - view->ctx = ctx; + if (active && !text_edit->active) { + /* property is now not active so convert edit text to value*/ + *state = NK_PROPERTY_DEFAULT; + buffer[*len] = '\0'; + switch (variant->kind) { + default: break; + case NK_PROPERTY_INT: + variant->value.i = nk_strtoi(buffer, 0); + variant->value.i = NK_CLAMP(variant->min_value.i, variant->value.i, variant->max_value.i); + break; + case NK_PROPERTY_FLOAT: + nk_string_float_limit(buffer, NK_MAX_FLOAT_PRECISION); + variant->value.f = nk_strtof(buffer, 0); + variant->value.f = NK_CLAMP(variant->min_value.f, variant->value.f, variant->max_value.f); + break; + case NK_PROPERTY_DOUBLE: + nk_string_float_limit(buffer, NK_MAX_FLOAT_PRECISION); + variant->value.d = nk_strtod(buffer, 0); + variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d, variant->max_value.d); + break; + } + } +} +NK_LIB struct nk_property_variant +nk_property_variant_int(int value, int min_value, int max_value, int step) +{ + struct nk_property_variant result; + result.kind = NK_PROPERTY_INT; + result.value.i = value; + result.min_value.i = min_value; + result.max_value.i = max_value; + result.step.i = step; + return result; +} +NK_LIB struct nk_property_variant +nk_property_variant_float(float value, float min_value, float max_value, float step) +{ + struct nk_property_variant result; + result.kind = NK_PROPERTY_FLOAT; + result.value.f = value; + result.min_value.f = min_value; + result.max_value.f = max_value; + result.step.f = step; + return result; +} +NK_LIB struct nk_property_variant +nk_property_variant_double(double value, double min_value, double max_value, + double step) +{ + struct nk_property_variant result; + result.kind = NK_PROPERTY_DOUBLE; + result.value.d = value; + result.min_value.d = min_value; + result.max_value.d = max_value; + result.step.d = step; return result; } - -NK_API void -nk_list_view_end(struct nk_list_view *view) +NK_LIB void +nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant *variant, + float inc_per_pixel, const enum nk_property_filter filter) { - struct nk_context *ctx; struct nk_window *win; struct nk_panel *layout; + struct nk_input *in; + const struct nk_style *style; - NK_ASSERT(view); - NK_ASSERT(view->ctx); - NK_ASSERT(view->scroll_pointer); - if (!view || !view->ctx) return; - - ctx = view->ctx; - win = ctx->current; - layout = win->layout; - layout->at_y = layout->bounds.y + (float)view->total_height; - *view->scroll_pointer = *view->scroll_pointer + view->scroll_value; - nk_group_end(view->ctx); -} + struct nk_rect bounds; + enum nk_widget_layout_states s; -/* -------------------------------------------------------------- - * - * POPUP - * - * --------------------------------------------------------------*/ -NK_API int -nk_popup_begin(struct nk_context *ctx, enum nk_popup_type type, - const char *title, nk_flags flags, struct nk_rect rect) -{ - struct nk_window *popup; - struct nk_window *win; - struct nk_panel *panel; + int *state = 0; + nk_hash hash = 0; + char *buffer = 0; + int *len = 0; + int *cursor = 0; + int *select_begin = 0; + int *select_end = 0; + int old_state; - int title_len; - nk_hash title_hash; - nk_size allocated; + char dummy_buffer[NK_MAX_NUMBER_BUFFER]; + int dummy_state = NK_PROPERTY_DEFAULT; + int dummy_length = 0; + int dummy_cursor = 0; + int dummy_select_begin = 0; + int dummy_select_end = 0; NK_ASSERT(ctx); - NK_ASSERT(title); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + return; win = ctx->current; - panel = win->layout; - NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP) && "popups are not allowed to have popups"); - (void)panel; - title_len = (int)nk_strlen(title); - title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_POPUP); + layout = win->layout; + style = &ctx->style; + s = nk_widget(&bounds, ctx); + if (!s) return; - popup = win->popup.win; - if (!popup) { - popup = (struct nk_window*)nk_create_window(ctx); - popup->parent = win; - win->popup.win = popup; - win->popup.active = 0; - win->popup.type = NK_PANEL_POPUP; - } + /* calculate hash from name */ + if (name[0] == '#') { + hash = nk_murmur_hash(name, (int)nk_strlen(name), win->property.seq++); + name++; /* special number hash */ + } else hash = nk_murmur_hash(name, (int)nk_strlen(name), 42); - /* make sure we have correct popup */ - if (win->popup.name != title_hash) { - if (!win->popup.active) { - nk_zero(popup, sizeof(*popup)); - win->popup.name = title_hash; - win->popup.active = 1; - win->popup.type = NK_PANEL_POPUP; - } else return 0; + /* check if property is currently hot item */ + if (win->property.active && hash == win->property.name) { + buffer = win->property.buffer; + len = &win->property.length; + cursor = &win->property.cursor; + state = &win->property.state; + select_begin = &win->property.select_start; + select_end = &win->property.select_end; + } else { + buffer = dummy_buffer; + len = &dummy_length; + cursor = &dummy_cursor; + state = &dummy_state; + select_begin = &dummy_select_begin; + select_end = &dummy_select_end; } - /* popup position is local to window */ - ctx->current = popup; - rect.x += win->layout->clip.x; - rect.y += win->layout->clip.y; - - /* setup popup data */ - popup->parent = win; - popup->bounds = rect; - popup->seq = ctx->seq; - popup->layout = (struct nk_panel*)nk_create_panel(ctx); - popup->flags = flags; - popup->flags |= NK_WINDOW_BORDER; - if (type == NK_POPUP_DYNAMIC) - popup->flags |= NK_WINDOW_DYNAMIC; - - popup->buffer = win->buffer; - nk_start_popup(ctx, win); - allocated = ctx->memory.allocated; - nk_push_scissor(&popup->buffer, nk_null_rect); + /* execute property widget */ + old_state = *state; + ctx->text_edit.clip = ctx->clip; + in = ((s == NK_WIDGET_ROM && !win->property.active) || + layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + nk_do_property(&ctx->last_widget_state, &win->buffer, bounds, name, + variant, inc_per_pixel, buffer, len, state, cursor, select_begin, + select_end, &style->property, filter, in, style->font, &ctx->text_edit, + ctx->button_behavior); - if (nk_panel_begin(ctx, title, NK_PANEL_POPUP)) { - /* popup is running therefore invalidate parent panels */ - struct nk_panel *root; - root = win->layout; - while (root) { - root->flags |= NK_WINDOW_ROM; - root->flags &= ~(nk_flags)NK_WINDOW_REMOVE_ROM; - root = root->parent; + if (in && *state != NK_PROPERTY_DEFAULT && !win->property.active) { + /* current property is now hot */ + win->property.active = 1; + NK_MEMCPY(win->property.buffer, buffer, (nk_size)*len); + win->property.length = *len; + win->property.cursor = *cursor; + win->property.state = *state; + win->property.name = hash; + win->property.select_start = *select_begin; + win->property.select_end = *select_end; + if (*state == NK_PROPERTY_DRAG) { + ctx->input.mouse.grab = nk_true; + ctx->input.mouse.grabbed = nk_true; } - win->popup.active = 1; - popup->layout->offset_x = &popup->scrollbar.x; - popup->layout->offset_y = &popup->scrollbar.y; - popup->layout->parent = win->layout; - return 1; - } else { - /* popup was closed/is invalid so cleanup */ - struct nk_panel *root; - root = win->layout; - while (root) { - root->flags |= NK_WINDOW_REMOVE_ROM; - root = root->parent; + } + /* check if previously active property is now inactive */ + if (*state == NK_PROPERTY_DEFAULT && old_state != NK_PROPERTY_DEFAULT) { + if (old_state == NK_PROPERTY_DRAG) { + ctx->input.mouse.grab = nk_false; + ctx->input.mouse.grabbed = nk_false; + ctx->input.mouse.ungrab = nk_true; } - win->popup.buf.active = 0; - win->popup.active = 0; - ctx->memory.allocated = allocated; - ctx->current = win; - nk_free_panel(ctx, popup->layout); - popup->layout = 0; - return 0; + win->property.select_start = 0; + win->property.select_end = 0; + win->property.active = 0; } } +NK_API void +nk_property_int(struct nk_context *ctx, const char *name, + int min, int *val, int max, int step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + NK_ASSERT(val); + + if (!ctx || !ctx->current || !name || !val) return; + variant = nk_property_variant_int(*val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT); + *val = variant.value.i; +} +NK_API void +nk_property_float(struct nk_context *ctx, const char *name, + float min, float *val, float max, float step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + NK_ASSERT(val); + + if (!ctx || !ctx->current || !name || !val) return; + variant = nk_property_variant_float(*val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); + *val = variant.value.f; +} +NK_API void +nk_property_double(struct nk_context *ctx, const char *name, + double min, double *val, double max, double step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + NK_ASSERT(val); + + if (!ctx || !ctx->current || !name || !val) return; + variant = nk_property_variant_double(*val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); + *val = variant.value.d; +} +NK_API int +nk_propertyi(struct nk_context *ctx, const char *name, int min, int val, + int max, int step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + + if (!ctx || !ctx->current || !name) return val; + variant = nk_property_variant_int(val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT); + val = variant.value.i; + return val; +} +NK_API float +nk_propertyf(struct nk_context *ctx, const char *name, float min, + float val, float max, float step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + + if (!ctx || !ctx->current || !name) return val; + variant = nk_property_variant_float(val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); + val = variant.value.f; + return val; +} +NK_API double +nk_propertyd(struct nk_context *ctx, const char *name, double min, + double val, double max, double step, float inc_per_pixel) +{ + struct nk_property_variant variant; + NK_ASSERT(ctx); + NK_ASSERT(name); + + if (!ctx || !ctx->current || !name) return val; + variant = nk_property_variant_double(val, min, max, step); + nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT); + val = variant.value.d; + return val; +} -NK_INTERN int -nk_nonblock_begin(struct nk_context *ctx, - nk_flags flags, struct nk_rect body, struct nk_rect header, - enum nk_panel_type panel_type) + + + + +/* ============================================================== + * + * CHART + * + * ===============================================================*/ +NK_API int +nk_chart_begin_colored(struct nk_context *ctx, enum nk_chart_type type, + struct nk_color color, struct nk_color highlight, + int count, float min_value, float max_value) { - struct nk_window *popup; struct nk_window *win; - struct nk_panel *panel; - int is_active = nk_true; + struct nk_chart *chart; + const struct nk_style *config; + const struct nk_style_chart *style; + + const struct nk_style_item *background; + struct nk_rect bounds = {0, 0, 0, 0}; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) + + if (!ctx || !ctx->current || !ctx->current->layout) return 0; + if (!nk_widget(&bounds, ctx)) { + chart = &ctx->current->layout->chart; + nk_zero(chart, sizeof(*chart)); return 0; + } - /* popups cannot have popups */ win = ctx->current; - panel = win->layout; - NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP)); - (void)panel; - popup = win->popup.win; - if (!popup) { - /* create window for nonblocking popup */ - popup = (struct nk_window*)nk_create_window(ctx); - popup->parent = win; - win->popup.win = popup; - win->popup.type = panel_type; - nk_command_buffer_init(&popup->buffer, &ctx->memory, NK_CLIPPING_ON); + config = &ctx->style; + chart = &win->layout->chart; + style = &config->chart; + + /* setup basic generic chart */ + nk_zero(chart, sizeof(*chart)); + chart->x = bounds.x + style->padding.x; + chart->y = bounds.y + style->padding.y; + chart->w = bounds.w - 2 * style->padding.x; + chart->h = bounds.h - 2 * style->padding.y; + chart->w = NK_MAX(chart->w, 2 * style->padding.x); + chart->h = NK_MAX(chart->h, 2 * style->padding.y); + + /* add first slot into chart */ + {struct nk_chart_slot *slot = &chart->slots[chart->slot++]; + slot->type = type; + slot->count = count; + slot->color = color; + slot->highlight = highlight; + slot->min = NK_MIN(min_value, max_value); + slot->max = NK_MAX(min_value, max_value); + slot->range = slot->max - slot->min;} + + /* draw chart background */ + background = &style->background; + if (background->type == NK_STYLE_ITEM_IMAGE) { + nk_draw_image(&win->buffer, bounds, &background->data.image, nk_white); } else { - /* close the popup if user pressed outside or in the header */ - int pressed, in_body, in_header; - pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT); - in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body); - in_header = nk_input_is_mouse_hovering_rect(&ctx->input, header); - if (pressed && (!in_body || in_header)) - is_active = nk_false; + nk_fill_rect(&win->buffer, bounds, style->rounding, style->border_color); + nk_fill_rect(&win->buffer, nk_shrink_rect(bounds, style->border), + style->rounding, style->background.data.color); } - win->popup.header = header; + return 1; +} +NK_API int +nk_chart_begin(struct nk_context *ctx, const enum nk_chart_type type, + int count, float min_value, float max_value) +{ + return nk_chart_begin_colored(ctx, type, ctx->style.chart.color, + ctx->style.chart.selected_color, count, min_value, max_value); +} +NK_API void +nk_chart_add_slot_colored(struct nk_context *ctx, const enum nk_chart_type type, + struct nk_color color, struct nk_color highlight, + int count, float min_value, float max_value) +{ + NK_ASSERT(ctx); + NK_ASSERT(ctx->current); + NK_ASSERT(ctx->current->layout); + NK_ASSERT(ctx->current->layout->chart.slot < NK_CHART_MAX_SLOT); + if (!ctx || !ctx->current || !ctx->current->layout) return; + if (ctx->current->layout->chart.slot >= NK_CHART_MAX_SLOT) return; - if (!is_active) { - /* remove read only mode from all parent panels */ - struct nk_panel *root = win->layout; - while (root) { - root->flags |= NK_WINDOW_REMOVE_ROM; - root = root->parent; + /* add another slot into the graph */ + {struct nk_chart *chart = &ctx->current->layout->chart; + struct nk_chart_slot *slot = &chart->slots[chart->slot++]; + slot->type = type; + slot->count = count; + slot->color = color; + slot->highlight = highlight; + slot->min = NK_MIN(min_value, max_value); + slot->max = NK_MAX(min_value, max_value); + slot->range = slot->max - slot->min;} +} +NK_API void +nk_chart_add_slot(struct nk_context *ctx, const enum nk_chart_type type, + int count, float min_value, float max_value) +{ + nk_chart_add_slot_colored(ctx, type, ctx->style.chart.color, + ctx->style.chart.selected_color, count, min_value, max_value); +} +NK_INTERN nk_flags +nk_chart_push_line(struct nk_context *ctx, struct nk_window *win, + struct nk_chart *g, float value, int slot) +{ + struct nk_panel *layout = win->layout; + const struct nk_input *i = &ctx->input; + struct nk_command_buffer *out = &win->buffer; + + nk_flags ret = 0; + struct nk_vec2 cur; + struct nk_rect bounds; + struct nk_color color; + float step; + float range; + float ratio; + + NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); + step = g->w / (float)g->slots[slot].count; + range = g->slots[slot].max - g->slots[slot].min; + ratio = (value - g->slots[slot].min) / range; + + if (g->slots[slot].index == 0) { + /* first data point does not have a connection */ + g->slots[slot].last.x = g->x; + g->slots[slot].last.y = (g->y + g->h) - ratio * (float)g->h; + + bounds.x = g->slots[slot].last.x - 2; + bounds.y = g->slots[slot].last.y - 2; + bounds.w = bounds.h = 4; + + color = g->slots[slot].color; + if (!(layout->flags & NK_WINDOW_ROM) && + NK_INBOX(i->mouse.pos.x,i->mouse.pos.y, g->slots[slot].last.x-3, g->slots[slot].last.y-3, 6, 6)){ + ret = nk_input_is_mouse_hovering_rect(i, bounds) ? NK_CHART_HOVERING : 0; + ret |= (i->mouse.buttons[NK_BUTTON_LEFT].down && + i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; + color = g->slots[slot].highlight; } - return is_active; + nk_fill_rect(out, bounds, 0, color); + g->slots[slot].index += 1; + return ret; } - popup->bounds = body; - popup->parent = win; - popup->layout = (struct nk_panel*)nk_create_panel(ctx); - popup->flags = flags; - popup->flags |= NK_WINDOW_BORDER; - popup->flags |= NK_WINDOW_DYNAMIC; - popup->seq = ctx->seq; - win->popup.active = 1; - NK_ASSERT(popup->layout); + /* draw a line between the last data point and the new one */ + color = g->slots[slot].color; + cur.x = g->x + (float)(step * (float)g->slots[slot].index); + cur.y = (g->y + g->h) - (ratio * (float)g->h); + nk_stroke_line(out, g->slots[slot].last.x, g->slots[slot].last.y, cur.x, cur.y, 1.0f, color); - nk_start_popup(ctx, win); - popup->buffer = win->buffer; - nk_push_scissor(&popup->buffer, nk_null_rect); - ctx->current = popup; + bounds.x = cur.x - 3; + bounds.y = cur.y - 3; + bounds.w = bounds.h = 6; - nk_panel_begin(ctx, 0, panel_type); - win->buffer = popup->buffer; - popup->layout->parent = win->layout; - popup->layout->offset_x = &popup->scrollbar.x; - popup->layout->offset_y = &popup->scrollbar.y; + /* user selection of current data point */ + if (!(layout->flags & NK_WINDOW_ROM)) { + if (nk_input_is_mouse_hovering_rect(i, bounds)) { + ret = NK_CHART_HOVERING; + ret |= (!i->mouse.buttons[NK_BUTTON_LEFT].down && + i->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; + color = g->slots[slot].highlight; + } + } + nk_fill_rect(out, nk_rect(cur.x - 2, cur.y - 2, 4, 4), 0, color); - /* set read only mode to all parent panels */ - {struct nk_panel *root; - root = win->layout; - while (root) { - root->flags |= NK_WINDOW_ROM; - root = root->parent; - }} - return is_active; + /* save current data point position */ + g->slots[slot].last.x = cur.x; + g->slots[slot].last.y = cur.y; + g->slots[slot].index += 1; + return ret; } - -NK_API void -nk_popup_close(struct nk_context *ctx) +NK_INTERN nk_flags +nk_chart_push_column(const struct nk_context *ctx, struct nk_window *win, + struct nk_chart *chart, float value, int slot) { - struct nk_window *popup; - NK_ASSERT(ctx); - if (!ctx || !ctx->current) return; + struct nk_command_buffer *out = &win->buffer; + const struct nk_input *in = &ctx->input; + struct nk_panel *layout = win->layout; + + float ratio; + nk_flags ret = 0; + struct nk_color color; + struct nk_rect item = {0,0,0,0}; + + NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); + if (chart->slots[slot].index >= chart->slots[slot].count) + return nk_false; + if (chart->slots[slot].count) { + float padding = (float)(chart->slots[slot].count-1); + item.w = (chart->w - padding) / (float)(chart->slots[slot].count); + } + + /* calculate bounds of current bar chart entry */ + color = chart->slots[slot].color;; + item.h = chart->h * NK_ABS((value/chart->slots[slot].range)); + if (value >= 0) { + ratio = (value + NK_ABS(chart->slots[slot].min)) / NK_ABS(chart->slots[slot].range); + item.y = (chart->y + chart->h) - chart->h * ratio; + } else { + ratio = (value - chart->slots[slot].max) / chart->slots[slot].range; + item.y = chart->y + (chart->h * NK_ABS(ratio)) - item.h; + } + item.x = chart->x + ((float)chart->slots[slot].index * item.w); + item.x = item.x + ((float)chart->slots[slot].index); - popup = ctx->current; - NK_ASSERT(popup->parent); - NK_ASSERT(popup->layout->type & NK_PANEL_SET_POPUP); - popup->flags |= NK_WINDOW_HIDDEN; + /* user chart bar selection */ + if (!(layout->flags & NK_WINDOW_ROM) && + NK_INBOX(in->mouse.pos.x,in->mouse.pos.y,item.x,item.y,item.w,item.h)) { + ret = NK_CHART_HOVERING; + ret |= (!in->mouse.buttons[NK_BUTTON_LEFT].down && + in->mouse.buttons[NK_BUTTON_LEFT].clicked) ? NK_CHART_CLICKED: 0; + color = chart->slots[slot].highlight; + } + nk_fill_rect(out, item, 0, color); + chart->slots[slot].index += 1; + return ret; } - -NK_API void -nk_popup_end(struct nk_context *ctx) +NK_API nk_flags +nk_chart_push_slot(struct nk_context *ctx, float value, int slot) { + nk_flags flags; struct nk_window *win; - struct nk_window *popup; NK_ASSERT(ctx); NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return; + NK_ASSERT(slot >= 0 && slot < NK_CHART_MAX_SLOT); + NK_ASSERT(slot < ctx->current->layout->chart.slot); + if (!ctx || !ctx->current || slot >= NK_CHART_MAX_SLOT) return nk_false; + if (slot >= ctx->current->layout->chart.slot) return nk_false; - popup = ctx->current; - if (!popup->parent) return; - win = popup->parent; - if (popup->flags & NK_WINDOW_HIDDEN) { - struct nk_panel *root; - root = win->layout; - while (root) { - root->flags |= NK_WINDOW_REMOVE_ROM; - root = root->parent; - } - win->popup.active = 0; + win = ctx->current; + if (win->layout->chart.slot < slot) return nk_false; + switch (win->layout->chart.slots[slot].type) { + case NK_CHART_LINES: + flags = nk_chart_push_line(ctx, win, &win->layout->chart, value, slot); break; + case NK_CHART_COLUMN: + flags = nk_chart_push_column(ctx, win, &win->layout->chart, value, slot); break; + default: + case NK_CHART_MAX: + flags = 0; } - nk_push_scissor(&popup->buffer, nk_null_rect); - nk_end(ctx); - - win->buffer = popup->buffer; - nk_finish_popup(ctx, win); - ctx->current = win; - nk_push_scissor(&win->buffer, win->layout->clip); + return flags; } -/* ------------------------------------------------------------- - * - * TOOLTIP - * - * -------------------------------------------------------------- */ -NK_API int -nk_tooltip_begin(struct nk_context *ctx, float width) +NK_API nk_flags +nk_chart_push(struct nk_context *ctx, float value) +{ + return nk_chart_push_slot(ctx, value, 0); +} +NK_API void +nk_chart_end(struct nk_context *ctx) { struct nk_window *win; - const struct nk_input *in; - struct nk_rect bounds; - int ret; + struct nk_chart *chart; NK_ASSERT(ctx); NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + if (!ctx || !ctx->current) + return; - /* make sure that no nonblocking popup is currently active */ win = ctx->current; - in = &ctx->input; - if (win->popup.win && (win->popup.type & NK_PANEL_SET_NONBLOCK)) - return 0; - - bounds.w = width; - bounds.h = nk_null_rect.h; - bounds.x = (in->mouse.pos.x + 1) - win->layout->clip.x; - bounds.y = (in->mouse.pos.y + 1) - win->layout->clip.y; - - ret = nk_popup_begin(ctx, NK_POPUP_DYNAMIC, - "__##Tooltip##__", NK_WINDOW_NO_SCROLLBAR|NK_WINDOW_BORDER, bounds); - if (ret) win->layout->flags &= ~(nk_flags)NK_WINDOW_ROM; - win->popup.type = NK_PANEL_TOOLTIP; - ctx->current->layout->type = NK_PANEL_TOOLTIP; - return ret; + chart = &win->layout->chart; + NK_MEMSET(chart, 0, sizeof(*chart)); + return; } - NK_API void -nk_tooltip_end(struct nk_context *ctx) +nk_plot(struct nk_context *ctx, enum nk_chart_type type, const float *values, + int count, int offset) { + int i = 0; + float min_value; + float max_value; + NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - ctx->current->seq--; - nk_popup_close(ctx); - nk_popup_end(ctx); -} + NK_ASSERT(values); + if (!ctx || !values || !count) return; + + min_value = values[offset]; + max_value = values[offset]; + for (i = 0; i < count; ++i) { + min_value = NK_MIN(values[i + offset], min_value); + max_value = NK_MAX(values[i + offset], max_value); + } + if (nk_chart_begin(ctx, type, count, min_value, max_value)) { + for (i = 0; i < count; ++i) + nk_chart_push(ctx, values[i + offset]); + nk_chart_end(ctx); + } +} NK_API void -nk_tooltip(struct nk_context *ctx, const char *text) +nk_plot_function(struct nk_context *ctx, enum nk_chart_type type, void *userdata, + float(*value_getter)(void* user, int index), int count, int offset) { - const struct nk_style *style; - struct nk_vec2 padding; - - int text_len; - float text_width; - float text_height; + int i = 0; + float min_value; + float max_value; NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - NK_ASSERT(text); - if (!ctx || !ctx->current || !ctx->current->layout || !text) - return; - - /* fetch configuration data */ - style = &ctx->style; - padding = style->window.padding; + NK_ASSERT(value_getter); + if (!ctx || !value_getter || !count) return; - /* calculate size of the text and tooltip */ - text_len = nk_strlen(text); - text_width = style->font->width(style->font->userdata, - style->font->height, text, text_len); - text_width += (4 * padding.x); - text_height = (style->font->height + 2 * padding.y); + max_value = min_value = value_getter(userdata, offset); + for (i = 0; i < count; ++i) { + float value = value_getter(userdata, i + offset); + min_value = NK_MIN(value, min_value); + max_value = NK_MAX(value, max_value); + } - /* execute tooltip and fill with text */ - if (nk_tooltip_begin(ctx, (float)text_width)) { - nk_layout_row_dynamic(ctx, (float)text_height, 1); - nk_text(ctx, text, text_len, NK_TEXT_LEFT); - nk_tooltip_end(ctx); + if (nk_chart_begin(ctx, type, count, min_value, max_value)) { + for (i = 0; i < count; ++i) + nk_chart_push(ctx, value_getter(userdata, i + offset)); + nk_chart_end(ctx); } } -/* ------------------------------------------------------------- - * - * CONTEXTUAL - * - * -------------------------------------------------------------- */ -NK_API int -nk_contextual_begin(struct nk_context *ctx, nk_flags flags, struct nk_vec2 size, - struct nk_rect trigger_bounds) -{ - struct nk_window *win; - struct nk_window *popup; - struct nk_rect body; - NK_STORAGE const struct nk_rect null_rect = {0,0,0,0}; - int is_clicked = 0; - int is_active = 0; - int is_open = 0; - int ret = 0; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - win = ctx->current; - ++win->popup.con_count; - /* check if currently active contextual is active */ - popup = win->popup.win; - is_open = (popup && win->popup.type == NK_PANEL_CONTEXTUAL); - is_clicked = nk_input_mouse_clicked(&ctx->input, NK_BUTTON_RIGHT, trigger_bounds); - if (win->popup.active_con && win->popup.con_count != win->popup.active_con) - return 0; - if ((is_clicked && is_open && !is_active) || (!is_open && !is_active && !is_clicked)) - return 0; - /* calculate contextual position on click */ - win->popup.active_con = win->popup.con_count; - if (is_clicked) { - body.x = ctx->input.mouse.pos.x; - body.y = ctx->input.mouse.pos.y; - } else { - body.x = popup->bounds.x; - body.y = popup->bounds.y; - } - body.w = size.x; - body.h = size.y; +/* ============================================================== + * + * COLOR PICKER + * + * ===============================================================*/ +NK_LIB int +nk_color_picker_behavior(nk_flags *state, + const struct nk_rect *bounds, const struct nk_rect *matrix, + const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, + struct nk_colorf *color, const struct nk_input *in) +{ + float hsva[4]; + int value_changed = 0; + int hsv_changed = 0; - /* start nonblocking contextual popup */ - ret = nk_nonblock_begin(ctx, flags|NK_WINDOW_NO_SCROLLBAR, body, - null_rect, NK_PANEL_CONTEXTUAL); - if (ret) win->popup.type = NK_PANEL_CONTEXTUAL; - else { - win->popup.active_con = 0; - if (win->popup.win) - win->popup.win->flags = 0; + NK_ASSERT(state); + NK_ASSERT(matrix); + NK_ASSERT(hue_bar); + NK_ASSERT(color); + + /* color matrix */ + nk_colorf_hsva_fv(hsva, *color); + if (nk_button_behavior(state, *matrix, in, NK_BUTTON_REPEATER)) { + hsva[1] = NK_SATURATE((in->mouse.pos.x - matrix->x) / (matrix->w-1)); + hsva[2] = 1.0f - NK_SATURATE((in->mouse.pos.y - matrix->y) / (matrix->h-1)); + value_changed = hsv_changed = 1; + } + /* hue bar */ + if (nk_button_behavior(state, *hue_bar, in, NK_BUTTON_REPEATER)) { + hsva[0] = NK_SATURATE((in->mouse.pos.y - hue_bar->y) / (hue_bar->h-1)); + value_changed = hsv_changed = 1; + } + /* alpha bar */ + if (alpha_bar) { + if (nk_button_behavior(state, *alpha_bar, in, NK_BUTTON_REPEATER)) { + hsva[3] = 1.0f - NK_SATURATE((in->mouse.pos.y - alpha_bar->y) / (alpha_bar->h-1)); + value_changed = 1; + } + } + nk_widget_state_reset(state); + if (hsv_changed) { + *color = nk_hsva_colorfv(hsva); + *state = NK_WIDGET_STATE_ACTIVE; + } + if (value_changed) { + color->a = hsva[3]; + *state = NK_WIDGET_STATE_ACTIVE; } - return ret; + /* set color picker widget state */ + if (nk_input_is_mouse_hovering_rect(in, *bounds)) + *state = NK_WIDGET_STATE_HOVERED; + if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, *bounds)) + *state |= NK_WIDGET_STATE_ENTERED; + else if (nk_input_is_mouse_prev_hovering_rect(in, *bounds)) + *state |= NK_WIDGET_STATE_LEFT; + return value_changed; } - -NK_API int -nk_contextual_item_text(struct nk_context *ctx, const char *text, int len, - nk_flags alignment) +NK_LIB void +nk_draw_color_picker(struct nk_command_buffer *o, const struct nk_rect *matrix, + const struct nk_rect *hue_bar, const struct nk_rect *alpha_bar, + struct nk_colorf col) { - struct nk_window *win; - const struct nk_input *in; - const struct nk_style *style; + NK_STORAGE const struct nk_color black = {0,0,0,255}; + NK_STORAGE const struct nk_color white = {255, 255, 255, 255}; + NK_STORAGE const struct nk_color black_trans = {0,0,0,0}; - struct nk_rect bounds; - enum nk_widget_layout_states state; + const float crosshair_size = 7.0f; + struct nk_color temp; + float hsva[4]; + float line_y; + int i; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + NK_ASSERT(o); + NK_ASSERT(matrix); + NK_ASSERT(hue_bar); - win = ctx->current; - style = &ctx->style; - state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); - if (!state) return nk_false; + /* draw hue bar */ + nk_colorf_hsva_fv(hsva, col); + for (i = 0; i < 6; ++i) { + NK_GLOBAL const struct nk_color hue_colors[] = { + {255, 0, 0, 255}, {255,255,0,255}, {0,255,0,255}, {0, 255,255,255}, + {0,0,255,255}, {255, 0, 255, 255}, {255, 0, 0, 255} + }; + nk_fill_rect_multi_color(o, + nk_rect(hue_bar->x, hue_bar->y + (float)i * (hue_bar->h/6.0f) + 0.5f, + hue_bar->w, (hue_bar->h/6.0f) + 0.5f), hue_colors[i], hue_colors[i], + hue_colors[i+1], hue_colors[i+1]); + } + line_y = (float)(int)(hue_bar->y + hsva[0] * matrix->h + 0.5f); + nk_stroke_line(o, hue_bar->x-1, line_y, hue_bar->x + hue_bar->w + 2, + line_y, 1, nk_rgb(255,255,255)); - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text(&ctx->last_widget_state, &win->buffer, bounds, - text, len, alignment, NK_BUTTON_DEFAULT, &style->contextual_button, in, style->font)) { - nk_contextual_close(ctx); - return nk_true; + /* draw alpha bar */ + if (alpha_bar) { + float alpha = NK_SATURATE(col.a); + line_y = (float)(int)(alpha_bar->y + (1.0f - alpha) * matrix->h + 0.5f); + + nk_fill_rect_multi_color(o, *alpha_bar, white, white, black, black); + nk_stroke_line(o, alpha_bar->x-1, line_y, alpha_bar->x + alpha_bar->w + 2, + line_y, 1, nk_rgb(255,255,255)); } - return nk_false; -} -NK_API int nk_contextual_item_label(struct nk_context *ctx, const char *label, nk_flags align) -{return nk_contextual_item_text(ctx, label, nk_strlen(label), align);} + /* draw color matrix */ + temp = nk_hsv_f(hsva[0], 1.0f, 1.0f); + nk_fill_rect_multi_color(o, *matrix, white, temp, temp, white); + nk_fill_rect_multi_color(o, *matrix, black_trans, black_trans, black, black); -NK_API int -nk_contextual_item_image_text(struct nk_context *ctx, struct nk_image img, - const char *text, int len, nk_flags align) + /* draw cross-hair */ + {struct nk_vec2 p; float S = hsva[1]; float V = hsva[2]; + p.x = (float)(int)(matrix->x + S * matrix->w); + p.y = (float)(int)(matrix->y + (1.0f - V) * matrix->h); + nk_stroke_line(o, p.x - crosshair_size, p.y, p.x-2, p.y, 1.0f, white); + nk_stroke_line(o, p.x + crosshair_size + 1, p.y, p.x+3, p.y, 1.0f, white); + nk_stroke_line(o, p.x, p.y + crosshair_size + 1, p.x, p.y+3, 1.0f, white); + nk_stroke_line(o, p.x, p.y - crosshair_size, p.x, p.y-2, 1.0f, white);} +} +NK_LIB int +nk_do_color_picker(nk_flags *state, + struct nk_command_buffer *out, struct nk_colorf *col, + enum nk_color_format fmt, struct nk_rect bounds, + struct nk_vec2 padding, const struct nk_input *in, + const struct nk_user_font *font) { - struct nk_window *win; - const struct nk_input *in; - const struct nk_style *style; + int ret = 0; + struct nk_rect matrix; + struct nk_rect hue_bar; + struct nk_rect alpha_bar; + float bar_w; - struct nk_rect bounds; - enum nk_widget_layout_states state; + NK_ASSERT(out); + NK_ASSERT(col); + NK_ASSERT(state); + NK_ASSERT(font); + if (!out || !col || !state || !font) + return ret; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + bar_w = font->height; + bounds.x += padding.x; + bounds.y += padding.x; + bounds.w -= 2 * padding.x; + bounds.h -= 2 * padding.y; - win = ctx->current; - style = &ctx->style; - state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); - if (!state) return nk_false; + matrix.x = bounds.x; + matrix.y = bounds.y; + matrix.h = bounds.h; + matrix.w = bounds.w - (3 * padding.x + 2 * bar_w); - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, bounds, - img, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)){ - nk_contextual_close(ctx); - return nk_true; - } - return nk_false; -} + hue_bar.w = bar_w; + hue_bar.y = bounds.y; + hue_bar.h = matrix.h; + hue_bar.x = matrix.x + matrix.w + padding.x; -NK_API int nk_contextual_item_image_label(struct nk_context *ctx, struct nk_image img, - const char *label, nk_flags align) -{return nk_contextual_item_image_text(ctx, img, label, nk_strlen(label), align);} + alpha_bar.x = hue_bar.x + hue_bar.w + padding.x; + alpha_bar.y = bounds.y; + alpha_bar.w = bar_w; + alpha_bar.h = matrix.h; + ret = nk_color_picker_behavior(state, &bounds, &matrix, &hue_bar, + (fmt == NK_RGBA) ? &alpha_bar:0, col, in); + nk_draw_color_picker(out, &matrix, &hue_bar, (fmt == NK_RGBA) ? &alpha_bar:0, *col); + return ret; +} NK_API int -nk_contextual_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type symbol, - const char *text, int len, nk_flags align) +nk_color_pick(struct nk_context * ctx, struct nk_colorf *color, + enum nk_color_format fmt) { struct nk_window *win; + struct nk_panel *layout; + const struct nk_style *config; const struct nk_input *in; - const struct nk_style *style; - struct nk_rect bounds; enum nk_widget_layout_states state; + struct nk_rect bounds; NK_ASSERT(ctx); + NK_ASSERT(color); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) + if (!ctx || !ctx->current || !ctx->current->layout || !color) return 0; win = ctx->current; - style = &ctx->style; - state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding); - if (!state) return nk_false; - - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, bounds, - symbol, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)) { - nk_contextual_close(ctx); - return nk_true; - } - return nk_false; + config = &ctx->style; + layout = win->layout; + state = nk_widget(&bounds, ctx); + if (!state) return 0; + in = (state == NK_WIDGET_ROM || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; + return nk_do_color_picker(&ctx->last_widget_state, &win->buffer, color, fmt, bounds, + nk_vec2(0,0), in, config->font); } - -NK_API int nk_contextual_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type symbol, - const char *text, nk_flags align) -{return nk_contextual_item_symbol_text(ctx, symbol, text, nk_strlen(text), align);} - -NK_API void -nk_contextual_close(struct nk_context *ctx) +NK_API struct nk_colorf +nk_color_picker(struct nk_context *ctx, struct nk_colorf color, + enum nk_color_format fmt) { - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) return; - nk_popup_close(ctx); + nk_color_pick(ctx, &color, fmt); + return color; } -NK_API void -nk_contextual_end(struct nk_context *ctx) -{ - struct nk_window *popup; - struct nk_panel *panel; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - if (!ctx || !ctx->current) return; - popup = ctx->current; - panel = popup->layout; - NK_ASSERT(popup->parent); - NK_ASSERT(panel->type & NK_PANEL_SET_POPUP); - if (panel->flags & NK_WINDOW_DYNAMIC) { - /* Close behavior - This is a bit of a hack solution since we do not know before we end our popup - how big it will be. We therefore do not directly know when a - click outside the non-blocking popup must close it at that direct frame. - Instead it will be closed in the next frame.*/ - struct nk_rect body = {0,0,0,0}; - if (panel->at_y < (panel->bounds.y + panel->bounds.h)) { - struct nk_vec2 padding = nk_panel_get_padding(&ctx->style, panel->type); - body = panel->bounds; - body.y = (panel->at_y + panel->footer_height + panel->border + padding.y + panel->row.height); - body.h = (panel->bounds.y + panel->bounds.h) - body.y; - } - {int pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT); - int in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body); - if (pressed && in_body) - popup->flags |= NK_WINDOW_HIDDEN; - } - } - if (popup->flags & NK_WINDOW_HIDDEN) - popup->seq = 0; - nk_popup_end(ctx); - return; -} -/* ------------------------------------------------------------- + + + +/* ============================================================== * * COMBO * - * --------------------------------------------------------------*/ + * ===============================================================*/ NK_INTERN int nk_combo_begin(struct nk_context *ctx, struct nk_window *win, struct nk_vec2 size, int is_clicked, struct nk_rect header) @@ -22671,7 +24353,6 @@ nk_combo_begin(struct nk_context *ctx, struct nk_window *win, win->popup.name = hash; return 1; } - NK_API int nk_combo_begin_text(struct nk_context *ctx, const char *selected, int len, struct nk_vec2 size) @@ -22761,10 +24442,11 @@ nk_combo_begin_text(struct nk_context *ctx, const char *selected, int len, } return nk_combo_begin(ctx, win, size, is_clicked, header); } - -NK_API int nk_combo_begin_label(struct nk_context *ctx, const char *selected, struct nk_vec2 size) -{return nk_combo_begin_text(ctx, selected, nk_strlen(selected), size);} - +NK_API int +nk_combo_begin_label(struct nk_context *ctx, const char *selected, struct nk_vec2 size) +{ + return nk_combo_begin_text(ctx, selected, nk_strlen(selected), size); +} NK_API int nk_combo_begin_color(struct nk_context *ctx, struct nk_color color, struct nk_vec2 size) { @@ -22842,7 +24524,6 @@ nk_combo_begin_color(struct nk_context *ctx, struct nk_color color, struct nk_ve } return nk_combo_begin(ctx, win, size, is_clicked, header); } - NK_API int nk_combo_begin_symbol(struct nk_context *ctx, enum nk_symbol_type symbol, struct nk_vec2 size) { @@ -22930,7 +24611,6 @@ nk_combo_begin_symbol(struct nk_context *ctx, enum nk_symbol_type symbol, struct } return nk_combo_begin(ctx, win, size, is_clicked, header); } - NK_API int nk_combo_begin_symbol_text(struct nk_context *ctx, const char *selected, int len, enum nk_symbol_type symbol, struct nk_vec2 size) @@ -23027,7 +24707,6 @@ nk_combo_begin_symbol_text(struct nk_context *ctx, const char *selected, int len } return nk_combo_begin(ctx, win, size, is_clicked, header); } - NK_API int nk_combo_begin_image(struct nk_context *ctx, struct nk_image img, struct nk_vec2 size) { @@ -23105,7 +24784,6 @@ nk_combo_begin_image(struct nk_context *ctx, struct nk_image img, struct nk_vec2 } return nk_combo_begin(ctx, win, size, is_clicked, header); } - NK_API int nk_combo_begin_image_text(struct nk_context *ctx, const char *selected, int len, struct nk_image img, struct nk_vec2 size) @@ -23197,43 +24875,60 @@ nk_combo_begin_image_text(struct nk_context *ctx, const char *selected, int len, } return nk_combo_begin(ctx, win, size, is_clicked, header); } - -NK_API int nk_combo_begin_symbol_label(struct nk_context *ctx, +NK_API int +nk_combo_begin_symbol_label(struct nk_context *ctx, const char *selected, enum nk_symbol_type type, struct nk_vec2 size) -{return nk_combo_begin_symbol_text(ctx, selected, nk_strlen(selected), type, size);} - -NK_API int nk_combo_begin_image_label(struct nk_context *ctx, +{ + return nk_combo_begin_symbol_text(ctx, selected, nk_strlen(selected), type, size); +} +NK_API int +nk_combo_begin_image_label(struct nk_context *ctx, const char *selected, struct nk_image img, struct nk_vec2 size) -{return nk_combo_begin_image_text(ctx, selected, nk_strlen(selected), img, size);} - -NK_API int nk_combo_item_text(struct nk_context *ctx, const char *text, int len,nk_flags align) -{return nk_contextual_item_text(ctx, text, len, align);} - -NK_API int nk_combo_item_label(struct nk_context *ctx, const char *label, nk_flags align) -{return nk_contextual_item_label(ctx, label, align);} - -NK_API int nk_combo_item_image_text(struct nk_context *ctx, struct nk_image img, const char *text, +{ + return nk_combo_begin_image_text(ctx, selected, nk_strlen(selected), img, size); +} +NK_API int +nk_combo_item_text(struct nk_context *ctx, const char *text, int len,nk_flags align) +{ + return nk_contextual_item_text(ctx, text, len, align); +} +NK_API int +nk_combo_item_label(struct nk_context *ctx, const char *label, nk_flags align) +{ + return nk_contextual_item_label(ctx, label, align); +} +NK_API int +nk_combo_item_image_text(struct nk_context *ctx, struct nk_image img, const char *text, int len, nk_flags alignment) -{return nk_contextual_item_image_text(ctx, img, text, len, alignment);} - -NK_API int nk_combo_item_image_label(struct nk_context *ctx, struct nk_image img, +{ + return nk_contextual_item_image_text(ctx, img, text, len, alignment); +} +NK_API int +nk_combo_item_image_label(struct nk_context *ctx, struct nk_image img, const char *text, nk_flags alignment) -{return nk_contextual_item_image_label(ctx, img, text, alignment);} - -NK_API int nk_combo_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, +{ + return nk_contextual_item_image_label(ctx, img, text, alignment); +} +NK_API int +nk_combo_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, const char *text, int len, nk_flags alignment) -{return nk_contextual_item_symbol_text(ctx, sym, text, len, alignment);} - -NK_API int nk_combo_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, +{ + return nk_contextual_item_symbol_text(ctx, sym, text, len, alignment); +} +NK_API int +nk_combo_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, const char *label, nk_flags alignment) -{return nk_contextual_item_symbol_label(ctx, sym, label, alignment);} - +{ + return nk_contextual_item_symbol_label(ctx, sym, label, alignment); +} NK_API void nk_combo_end(struct nk_context *ctx) -{nk_contextual_end(ctx);} - +{ + nk_contextual_end(ctx); +} NK_API void nk_combo_close(struct nk_context *ctx) -{nk_contextual_close(ctx);} - +{ + nk_contextual_close(ctx); +} NK_API int nk_combo(struct nk_context *ctx, const char **items, int count, int selected, int item_height, struct nk_vec2 size) @@ -23264,7 +24959,6 @@ nk_combo(struct nk_context *ctx, const char **items, int count, } return selected; } - NK_API int nk_combo_separator(struct nk_context *ctx, const char *items_separated_by_separator, int separator, int selected, int count, int item_height, struct nk_vec2 size) @@ -23314,12 +25008,12 @@ nk_combo_separator(struct nk_context *ctx, const char *items_separated_by_separa } return selected; } - NK_API int nk_combo_string(struct nk_context *ctx, const char *items_separated_by_zeros, int selected, int count, int item_height, struct nk_vec2 size) -{return nk_combo_separator(ctx, items_separated_by_zeros, '\0', selected, count, item_height, size);} - +{ + return nk_combo_separator(ctx, items_separated_by_zeros, '\0', selected, count, item_height, size); +} NK_API int nk_combo_callback(struct nk_context *ctx, void(*item_getter)(void*, int, const char**), void *userdata, int selected, int count, int item_height, struct nk_vec2 size) @@ -23351,78 +25045,52 @@ nk_combo_callback(struct nk_context *ctx, void(*item_getter)(void*, int, const c selected = i; } nk_combo_end(ctx); - } - return selected; + } return selected; } - -NK_API void nk_combobox(struct nk_context *ctx, const char **items, int count, +NK_API void +nk_combobox(struct nk_context *ctx, const char **items, int count, int *selected, int item_height, struct nk_vec2 size) -{*selected = nk_combo(ctx, items, count, *selected, item_height, size);} - -NK_API void nk_combobox_string(struct nk_context *ctx, const char *items_separated_by_zeros, +{ + *selected = nk_combo(ctx, items, count, *selected, item_height, size); +} +NK_API void +nk_combobox_string(struct nk_context *ctx, const char *items_separated_by_zeros, int *selected, int count, int item_height, struct nk_vec2 size) -{*selected = nk_combo_string(ctx, items_separated_by_zeros, *selected, count, item_height, size);} - -NK_API void nk_combobox_separator(struct nk_context *ctx, const char *items_separated_by_separator, +{ + *selected = nk_combo_string(ctx, items_separated_by_zeros, *selected, count, item_height, size); +} +NK_API void +nk_combobox_separator(struct nk_context *ctx, const char *items_separated_by_separator, int separator,int *selected, int count, int item_height, struct nk_vec2 size) -{*selected = nk_combo_separator(ctx, items_separated_by_separator, separator, - *selected, count, item_height, size);} - -NK_API void nk_combobox_callback(struct nk_context *ctx, +{ + *selected = nk_combo_separator(ctx, items_separated_by_separator, separator, + *selected, count, item_height, size); +} +NK_API void +nk_combobox_callback(struct nk_context *ctx, void(*item_getter)(void* data, int id, const char **out_text), void *userdata, int *selected, int count, int item_height, struct nk_vec2 size) -{*selected = nk_combo_callback(ctx, item_getter, userdata, *selected, count, item_height, size);} - -/* - * ------------------------------------------------------------- - * - * MENU - * - * -------------------------------------------------------------- - */ -NK_INTERN int -nk_menu_begin(struct nk_context *ctx, struct nk_window *win, - const char *id, int is_clicked, struct nk_rect header, struct nk_vec2 size) { - int is_open = 0; - int is_active = 0; - struct nk_rect body; - struct nk_window *popup; - nk_hash hash = nk_murmur_hash(id, (int)nk_strlen(id), NK_PANEL_MENU); + *selected = nk_combo_callback(ctx, item_getter, userdata, *selected, count, item_height, size); +} - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - body.x = header.x; - body.w = size.x; - body.y = header.y + header.h; - body.h = size.y; - popup = win->popup.win; - is_open = popup ? nk_true : nk_false; - is_active = (popup && (win->popup.name == hash) && win->popup.type == NK_PANEL_MENU); - if ((is_clicked && is_open && !is_active) || (is_open && !is_active) || - (!is_open && !is_active && !is_clicked)) return 0; - if (!nk_nonblock_begin(ctx, NK_WINDOW_NO_SCROLLBAR, body, header, NK_PANEL_MENU)) - return 0; - win->popup.type = NK_PANEL_MENU; - win->popup.name = hash; - return 1; -} +/* =============================================================== + * + * TOOLTIP + * + * ===============================================================*/ NK_API int -nk_menu_begin_text(struct nk_context *ctx, const char *title, int len, - nk_flags align, struct nk_vec2 size) +nk_tooltip_begin(struct nk_context *ctx, float width) { + int x,y,w,h; struct nk_window *win; const struct nk_input *in; - struct nk_rect header; - int is_clicked = nk_false; - nk_flags state; + struct nk_rect bounds; + int ret; NK_ASSERT(ctx); NK_ASSERT(ctx->current); @@ -23430,161 +25098,442 @@ nk_menu_begin_text(struct nk_context *ctx, const char *title, int len, if (!ctx || !ctx->current || !ctx->current->layout) return 0; + /* make sure that no nonblocking popup is currently active */ win = ctx->current; - state = nk_widget(&header, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || win->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text(&ctx->last_widget_state, &win->buffer, header, - title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font)) - is_clicked = nk_true; - return nk_menu_begin(ctx, win, title, is_clicked, header, size); -} - -NK_API int nk_menu_begin_label(struct nk_context *ctx, - const char *text, nk_flags align, struct nk_vec2 size) -{return nk_menu_begin_text(ctx, text, nk_strlen(text), align, size);} + in = &ctx->input; + if (win->popup.win && (win->popup.type & NK_PANEL_SET_NONBLOCK)) + return 0; -NK_API int -nk_menu_begin_image(struct nk_context *ctx, const char *id, struct nk_image img, - struct nk_vec2 size) -{ - struct nk_window *win; - struct nk_rect header; - const struct nk_input *in; - int is_clicked = nk_false; - nk_flags state; + w = nk_iceilf(width); + h = nk_iceilf(nk_null_rect.h); + x = nk_ifloorf(in->mouse.pos.x + 1) - (int)win->layout->clip.x; + y = nk_ifloorf(in->mouse.pos.y + 1) - (int)win->layout->clip.y; - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + bounds.x = (float)x; + bounds.y = (float)y; + bounds.w = (float)w; + bounds.h = (float)h; - win = ctx->current; - state = nk_widget(&header, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_image(&ctx->last_widget_state, &win->buffer, header, - img, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in)) - is_clicked = nk_true; - return nk_menu_begin(ctx, win, id, is_clicked, header, size); + ret = nk_popup_begin(ctx, NK_POPUP_DYNAMIC, + "__##Tooltip##__", NK_WINDOW_NO_SCROLLBAR|NK_WINDOW_BORDER, bounds); + if (ret) win->layout->flags &= ~(nk_flags)NK_WINDOW_ROM; + win->popup.type = NK_PANEL_TOOLTIP; + ctx->current->layout->type = NK_PANEL_TOOLTIP; + return ret; } -NK_API int -nk_menu_begin_symbol(struct nk_context *ctx, const char *id, - enum nk_symbol_type sym, struct nk_vec2 size) +NK_API void +nk_tooltip_end(struct nk_context *ctx) { - struct nk_window *win; - const struct nk_input *in; - struct nk_rect header; - int is_clicked = nk_false; - nk_flags state; - NK_ASSERT(ctx); NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - - win = ctx->current; - state = nk_widget(&header, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_symbol(&ctx->last_widget_state, &win->buffer, header, - sym, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font)) - is_clicked = nk_true; - return nk_menu_begin(ctx, win, id, is_clicked, header, size); + if (!ctx || !ctx->current) return; + ctx->current->seq--; + nk_popup_close(ctx); + nk_popup_end(ctx); } - -NK_API int -nk_menu_begin_image_text(struct nk_context *ctx, const char *title, int len, - nk_flags align, struct nk_image img, struct nk_vec2 size) +NK_API void +nk_tooltip(struct nk_context *ctx, const char *text) { - struct nk_window *win; - struct nk_rect header; - const struct nk_input *in; - int is_clicked = nk_false; - nk_flags state; + const struct nk_style *style; + struct nk_vec2 padding; + + int text_len; + float text_width; + float text_height; NK_ASSERT(ctx); NK_ASSERT(ctx->current); NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; + NK_ASSERT(text); + if (!ctx || !ctx->current || !ctx->current->layout || !text) + return; - win = ctx->current; - state = nk_widget(&header, ctx); - if (!state) return 0; - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, - header, img, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, - ctx->style.font, in)) - is_clicked = nk_true; - return nk_menu_begin(ctx, win, title, is_clicked, header, size); -} + /* fetch configuration data */ + style = &ctx->style; + padding = style->window.padding; -NK_API int nk_menu_begin_image_label(struct nk_context *ctx, - const char *title, nk_flags align, struct nk_image img, struct nk_vec2 size) -{return nk_menu_begin_image_text(ctx, title, nk_strlen(title), align, img, size);} + /* calculate size of the text and tooltip */ + text_len = nk_strlen(text); + text_width = style->font->width(style->font->userdata, + style->font->height, text, text_len); + text_width += (4 * padding.x); + text_height = (style->font->height + 2 * padding.y); -NK_API int -nk_menu_begin_symbol_text(struct nk_context *ctx, const char *title, int len, - nk_flags align, enum nk_symbol_type sym, struct nk_vec2 size) + /* execute tooltip and fill with text */ + if (nk_tooltip_begin(ctx, (float)text_width)) { + nk_layout_row_dynamic(ctx, (float)text_height, 1); + nk_text(ctx, text, text_len, NK_TEXT_LEFT); + nk_tooltip_end(ctx); + } +} +#ifdef NK_INCLUDE_STANDARD_VARARGS +NK_API void +nk_tooltipf(struct nk_context *ctx, const char *fmt, ...) { - struct nk_window *win; - struct nk_rect header; - const struct nk_input *in; - int is_clicked = nk_false; - nk_flags state; - - NK_ASSERT(ctx); - NK_ASSERT(ctx->current); - NK_ASSERT(ctx->current->layout); - if (!ctx || !ctx->current || !ctx->current->layout) - return 0; - - win = ctx->current; - state = nk_widget(&header, ctx); - if (!state) return 0; - - in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input; - if (nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, - header, sym, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, - ctx->style.font, in)) is_clicked = nk_true; - return nk_menu_begin(ctx, win, title, is_clicked, header, size); + va_list args; + va_start(args, fmt); + nk_tooltipfv(ctx, fmt, args); + va_end(args); } +NK_API void +nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args) +{ + char buf[256]; + nk_strfmt(buf, NK_LEN(buf), fmt, args); + nk_tooltip(ctx, buf); +} +#endif -NK_API int nk_menu_begin_symbol_label(struct nk_context *ctx, - const char *title, nk_flags align, enum nk_symbol_type sym, struct nk_vec2 size ) -{return nk_menu_begin_symbol_text(ctx, title, nk_strlen(title), align,sym,size);} - -NK_API int nk_menu_item_text(struct nk_context *ctx, const char *title, int len, nk_flags align) -{return nk_contextual_item_text(ctx, title, len, align);} - -NK_API int nk_menu_item_label(struct nk_context *ctx, const char *label, nk_flags align) -{return nk_contextual_item_label(ctx, label, align);} - -NK_API int nk_menu_item_image_label(struct nk_context *ctx, struct nk_image img, - const char *label, nk_flags align) -{return nk_contextual_item_image_label(ctx, img, label, align);} - -NK_API int nk_menu_item_image_text(struct nk_context *ctx, struct nk_image img, - const char *text, int len, nk_flags align) -{return nk_contextual_item_image_text(ctx, img, text, len, align);} - -NK_API int nk_menu_item_symbol_text(struct nk_context *ctx, enum nk_symbol_type sym, - const char *text, int len, nk_flags align) -{return nk_contextual_item_symbol_text(ctx, sym, text, len, align);} -NK_API int nk_menu_item_symbol_label(struct nk_context *ctx, enum nk_symbol_type sym, - const char *label, nk_flags align) -{return nk_contextual_item_symbol_label(ctx, sym, label, align);} -NK_API void nk_menu_close(struct nk_context *ctx) -{nk_contextual_close(ctx);} +#endif /* NK_IMPLEMENTATION */ -NK_API void -nk_menu_end(struct nk_context *ctx) -{nk_contextual_end(ctx);} +/* +/// ## License +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~none +/// ------------------------------------------------------------------------------ +/// This software is available under 2 licenses -- choose whichever you prefer. +/// ------------------------------------------------------------------------------ +/// ALTERNATIVE A - MIT License +/// Copyright (c) 2016-2018 Micha Mettke +/// 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. +/// ------------------------------------------------------------------------------ +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +/// ## Changelog +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~none +/// [date][x.yy.zz]-[description] +/// -[date]: date on which the change has been pushed +/// -[x.yy.zz]: Numerical version string representation. Each version number on the right +/// resets back to zero if version on the left is incremented. +/// - [x]: Major version with API and library breaking changes +/// - [yy]: Minor version with non-breaking API and library changes +/// - [zz]: Bug fix version with no direct changes to API +/// +/// - 2018/04/01 (4.00.1) - Fixed calling `nk_convert` multiple time per single frame +/// - 2018/04/01 (4.00.0) - BREAKING CHANGE: nk_draw_list_clear no longer tries to +/// clear provided buffers. So make sure to either free +/// or clear each passed buffer after calling nk_convert. +/// - 2018/02/23 (3.00.6) - Fixed slider dragging behavior +/// - 2018/01/31 (3.00.5) - Fixed overcalculation of cursor data in font baking process +/// - 2018/01/31 (3.00.4) - Removed name collision with stb_truetype +/// - 2018/01/28 (3.00.3) - Fixed panel window border drawing bug +/// - 2018/01/12 (3.00.2) - Added `nk_group_begin_titled` for separed group identifier and title +/// - 2018/01/07 (3.00.1) - Started to change documentation style +/// - 2018/01/05 (3.00.0) - BREAKING CHANGE: The previous color picker API was broken +/// because of conversions between float and byte color representation. +/// Color pickers now use floating point values to represent +/// HSV values. To get back the old behavior I added some additional +/// color conversion functions to cast between nk_color and +/// nk_colorf. +/// - 2017/12/23 (2.00.7) - Fixed small warning +/// - 2017/12/23 (2.00.7) - Fixed nk_edit_buffer behavior if activated to allow input +/// - 2017/12/23 (2.00.7) - Fixed modifyable progressbar dragging visuals and input behavior +/// - 2017/12/04 (2.00.6) - Added formated string tooltip widget +/// - 2017/11/18 (2.00.5) - Fixed window becoming hidden with flag NK_WINDOW_NO_INPUT +/// - 2017/11/15 (2.00.4) - Fixed font merging +/// - 2017/11/07 (2.00.3) - Fixed window size and position modifier functions +/// - 2017/09/14 (2.00.2) - Fixed nk_edit_buffer and nk_edit_focus behavior +/// - 2017/09/14 (2.00.1) - Fixed window closing behavior +/// - 2017/09/14 (2.00.0) - BREAKING CHANGE: Modifing window position and size funtions now +/// require the name of the window and must happen outside the window +/// building process (between function call nk_begin and nk_end). +/// - 2017/09/11 (1.40.9) - Fixed window background flag if background window is declared last +/// - 2017/08/27 (1.40.8) - Fixed `nk_item_is_any_active` for hidden windows +/// - 2017/08/27 (1.40.7) - Fixed window background flag +/// - 2017/07/07 (1.40.6) - Fixed missing clipping rect check for hovering/clicked +/// query for widgets +/// - 2017/07/07 (1.40.5) - Fixed drawing bug for vertex output for lines and stroked +/// and filled rectangles +/// - 2017/07/07 (1.40.4) - Fixed bug in nk_convert trying to add windows that are in +/// process of being destroyed. +/// - 2017/07/07 (1.40.3) - Fixed table internal bug caused by storing table size in +/// window instead of directly in table. +/// - 2017/06/30 (1.40.2) - Removed unneeded semicolon in C++ NK_ALIGNOF macro +/// - 2017/06/30 (1.40.1) - Fixed drawing lines smaller or equal zero +/// - 2017/06/08 (1.40.0) - Removed the breaking part of last commit. Auto layout now only +/// comes in effect if you pass in zero was row height argument +/// - 2017/06/08 (1.40.0) - BREAKING CHANGE: while not directly API breaking it will change +/// how layouting works. From now there will be an internal minimum +/// row height derived from font height. If you need a row smaller than +/// that you can directly set it by `nk_layout_set_min_row_height` and +/// reset the value back by calling `nk_layout_reset_min_row_height. +/// - 2017/06/08 (1.39.1) - Fixed property text edit handling bug caused by past `nk_widget` fix +/// - 2017/06/08 (1.39.0) - Added function to retrieve window space without calling a nk_layout_xxx function +/// - 2017/06/06 (1.38.5) - Fixed `nk_convert` return flag for command buffer +/// - 2017/05/23 (1.38.4) - Fixed activation behavior for widgets partially clipped +/// - 2017/05/10 (1.38.3) - Fixed wrong min window size mouse scaling over boundries +/// - 2017/05/09 (1.38.2) - Fixed vertical scrollbar drawing with not enough space +/// - 2017/05/09 (1.38.1) - Fixed scaler dragging behavior if window size hits minimum size +/// - 2017/05/06 (1.38.0) - Added platform double-click support +/// - 2017/04/20 (1.37.1) - Fixed key repeat found inside glfw demo backends +/// - 2017/04/20 (1.37.0) - Extended properties with selection and clipbard support +/// - 2017/04/20 (1.36.2) - Fixed #405 overlapping rows with zero padding and spacing +/// - 2017/04/09 (1.36.1) - Fixed #403 with another widget float error +/// - 2017/04/09 (1.36.0) - Added window `NK_WINDOW_NO_INPUT` and `NK_WINDOW_NOT_INTERACTIVE` flags +/// - 2017/04/09 (1.35.3) - Fixed buffer heap corruption +/// - 2017/03/25 (1.35.2) - Fixed popup overlapping for `NK_WINDOW_BACKGROUND` windows +/// - 2017/03/25 (1.35.1) - Fixed windows closing behavior +/// - 2017/03/18 (1.35.0) - Added horizontal scroll requested in #377 +/// - 2017/03/18 (1.34.3) - Fixed long window header titles +/// - 2017/03/04 (1.34.2) - Fixed text edit filtering +/// - 2017/03/04 (1.34.1) - Fixed group closable flag +/// - 2017/02/25 (1.34.0) - Added custom draw command for better language binding support +/// - 2017/01/24 (1.33.0) - Added programatic way of remove edit focus +/// - 2017/01/24 (1.32.3) - Fixed wrong define for basic type definitions for windows +/// - 2017/01/21 (1.32.2) - Fixed input capture from hidden or closed windows +/// - 2017/01/21 (1.32.1) - Fixed slider behavior and drawing +/// - 2017/01/13 (1.32.0) - Added flag to put scaler into the bottom left corner +/// - 2017/01/13 (1.31.0) - Added additional row layouting method to combine both +/// dynamic and static widgets. +/// - 2016/12/31 (1.30.0) - Extended scrollbar offset from 16-bit to 32-bit +/// - 2016/12/31 (1.29.2)- Fixed closing window bug of minimized windows +/// - 2016/12/03 (1.29.1)- Fixed wrapped text with no seperator and C89 error +/// - 2016/12/03 (1.29.0) - Changed text wrapping to process words not characters +/// - 2016/11/22 (1.28.6)- Fixed window minimized closing bug +/// - 2016/11/19 (1.28.5)- Fixed abstract combo box closing behavior +/// - 2016/11/19 (1.28.4)- Fixed tooltip flickering +/// - 2016/11/19 (1.28.3)- Fixed memory leak caused by popup repeated closing +/// - 2016/11/18 (1.28.2)- Fixed memory leak caused by popup panel allocation +/// - 2016/11/10 (1.28.1)- Fixed some warnings and C++ error +/// - 2016/11/10 (1.28.0)- Added additional `nk_button` versions which allows to directly +/// pass in a style struct to change buttons visual. +/// - 2016/11/10 (1.27.0)- Added additional 'nk_tree' versions to support external state +/// storage. Just like last the `nk_group` commit the main +/// advantage is that you optionally can minimize nuklears runtime +/// memory consumption or handle hash collisions. +/// - 2016/11/09 (1.26.0)- Added additional `nk_group` version to support external scrollbar +/// offset storage. Main advantage is that you can externalize +/// the memory management for the offset. It could also be helpful +/// if you have a hash collision in `nk_group_begin` but really +/// want the name. In addition I added `nk_list_view` which allows +/// to draw big lists inside a group without actually having to +/// commit the whole list to nuklear (issue #269). +/// - 2016/10/30 (1.25.1)- Fixed clipping rectangle bug inside `nk_draw_list` +/// - 2016/10/29 (1.25.0)- Pulled `nk_panel` memory management into nuklear and out of +/// the hands of the user. From now on users don't have to care +/// about panels unless they care about some information. If you +/// still need the panel just call `nk_window_get_panel`. +/// - 2016/10/21 (1.24.0)- Changed widget border drawing to stroked rectangle from filled +/// rectangle for less overdraw and widget background transparency. +/// - 2016/10/18 (1.23.0)- Added `nk_edit_focus` for manually edit widget focus control +/// - 2016/09/29 (1.22.7)- Fixed deduction of basic type in non `` compilation +/// - 2016/09/29 (1.22.6)- Fixed edit widget UTF-8 text cursor drawing bug +/// - 2016/09/28 (1.22.5)- Fixed edit widget UTF-8 text appending/inserting/removing +/// - 2016/09/28 (1.22.4)- Fixed drawing bug inside edit widgets which offset all text +/// text in every edit widget if one of them is scrolled. +/// - 2016/09/28 (1.22.3)- Fixed small bug in edit widgets if not active. The wrong +/// text length is passed. It should have been in bytes but +/// was passed as glyphes. +/// - 2016/09/20 (1.22.2)- Fixed color button size calculation +/// - 2016/09/20 (1.22.1)- Fixed some `nk_vsnprintf` behavior bugs and removed +/// `` again from `NK_INCLUDE_STANDARD_VARARGS`. +/// - 2016/09/18 (1.22.0)- C89 does not support vsnprintf only C99 and newer as well +/// as C++11 and newer. In addition to use vsnprintf you have +/// to include . So just defining `NK_INCLUDE_STD_VAR_ARGS` +/// is not enough. That behavior is now fixed. By default if +/// both varargs as well as stdio is selected I try to use +/// vsnprintf if not possible I will revert to vsprintf. If +/// varargs but not stdio was defined I will use my own function. +/// - 2016/09/15 (1.21.2)- Fixed panel `close` behavior for deeper panel levels +/// - 2016/09/15 (1.21.1)- Fixed C++ errors and wrong argument to `nk_panel_get_xxxx` +/// - 2016/09/13 (1.21.0) - !BREAKING! Fixed nonblocking popup behavior in menu, combo, +/// and contextual which prevented closing in y-direction if +/// popup did not reach max height. +/// In addition the height parameter was changed into vec2 +/// for width and height to have more control over the popup size. +/// - 2016/09/13 (1.20.3) - Cleaned up and extended type selection +/// - 2016/09/13 (1.20.2)- Fixed slider behavior hopefully for the last time. This time +/// all calculation are correct so no more hackery. +/// - 2016/09/13 (1.20.1)- Internal change to divide window/panel flags into panel flags and types. +/// Suprisinly spend years in C and still happened to confuse types +/// with flags. Probably something to take note. +/// - 2016/09/08 (1.20.0)- Added additional helper function to make it easier to just +/// take the produced buffers from `nk_convert` and unplug the +/// iteration process from `nk_context`. So now you can +/// just use the vertex,element and command buffer + two pointer +/// inside the command buffer retrieved by calls `nk__draw_begin` +/// and `nk__draw_end` and macro `nk_draw_foreach_bounded`. +/// - 2016/09/08 (1.19.0)- Added additional asserts to make sure every `nk_xxx_begin` call +/// for windows, popups, combobox, menu and contextual is guarded by +/// `if` condition and does not produce false drawing output. +/// - 2016/09/08 (1.18.0)- Changed confusing name for `NK_SYMBOL_RECT_FILLED`, `NK_SYMBOL_RECT` +/// to hopefully easier to understand `NK_SYMBOL_RECT_FILLED` and +/// `NK_SYMBOL_RECT_OUTLINE`. +/// - 2016/09/08 (1.17.0)- Changed confusing name for `NK_SYMBOL_CIRLCE_FILLED`, `NK_SYMBOL_CIRCLE` +/// to hopefully easier to understand `NK_SYMBOL_CIRCLE_FILLED` and +/// `NK_SYMBOL_CIRCLE_OUTLINE`. +/// - 2016/09/08 (1.16.0)- Added additional checks to select correct types if `NK_INCLUDE_FIXED_TYPES` +/// is not defined by supporting the biggest compiler GCC, clang and MSVC. +/// - 2016/09/07 (1.15.3)- Fixed `NK_INCLUDE_COMMAND_USERDATA` define to not cause an error +/// - 2016/09/04 (1.15.2)- Fixed wrong combobox height calculation +/// - 2016/09/03 (1.15.1)- Fixed gaps inside combo boxes in OpenGL +/// - 2016/09/02 (1.15.0) - Changed nuklear to not have any default vertex layout and +/// instead made it user provided. The range of types to convert +/// to is quite limited at the moment, but I would be more than +/// happy to accept PRs to add additional. +/// - 2016/08/30 (1.14.2) - Removed unused variables +/// - 2016/08/30 (1.14.1) - Fixed C++ build errors +/// - 2016/08/30 (1.14.0) - Removed mouse dragging from SDL demo since it does not work correctly +/// - 2016/08/30 (1.13.4) - Tweaked some default styling variables +/// - 2016/08/30 (1.13.3) - Hopefully fixed drawing bug in slider, in general I would +/// refrain from using slider with a big number of steps. +/// - 2016/08/30 (1.13.2) - Fixed close and minimize button which would fire even if the +/// window was in Read Only Mode. +/// - 2016/08/30 (1.13.1) - Fixed popup panel padding handling which was previously just +/// a hack for combo box and menu. +/// - 2016/08/30 (1.13.0) - Removed `NK_WINDOW_DYNAMIC` flag from public API since +/// it is bugged and causes issues in window selection. +/// - 2016/08/30 (1.12.0) - Removed scaler size. The size of the scaler is now +/// determined by the scrollbar size +/// - 2016/08/30 (1.11.2) - Fixed some drawing bugs caused by changes from 1.11 +/// - 2016/08/30 (1.11.1) - Fixed overlapping minimized window selection +/// - 2016/08/30 (1.11.0) - Removed some internal complexity and overly complex code +/// handling panel padding and panel border. +/// - 2016/08/29 (1.10.0) - Added additional height parameter to `nk_combobox_xxx` +/// - 2016/08/29 (1.10.0) - Fixed drawing bug in dynamic popups +/// - 2016/08/29 (1.10.0) - Added experimental mouse scrolling to popups, menus and comboboxes +/// - 2016/08/26 (1.10.0) - Added window name string prepresentation to account for +/// hash collisions. Currently limited to NK_WINDOW_MAX_NAME +/// which in term can be redefined if not big enough. +/// - 2016/08/26 (1.10.0) - Added stacks for temporary style/UI changes in code +/// - 2016/08/25 (1.10.0) - Changed `nk_input_is_key_pressed` and 'nk_input_is_key_released' +/// to account for key press and release happening in one frame. +/// - 2016/08/25 (1.10.0) - Added additional nk_edit flag to directly jump to the end on activate +/// - 2016/08/17 (1.09.6)- Removed invalid check for value zero in nk_propertyx +/// - 2016/08/16 (1.09.5)- Fixed ROM mode for deeper levels of popup windows parents. +/// - 2016/08/15 (1.09.4)- Editbox are now still active if enter was pressed with flag +/// `NK_EDIT_SIG_ENTER`. Main reasoning is to be able to keep +/// typing after commiting. +/// - 2016/08/15 (1.09.4)- Removed redundant code +/// - 2016/08/15 (1.09.4)- Fixed negative numbers in `nk_strtoi` and remove unused variable +/// - 2016/08/15 (1.09.3)- Fixed `NK_WINDOW_BACKGROUND` flag behavior to select a background +/// window only as selected by hovering and not by clicking. +/// - 2016/08/14 (1.09.2)- Fixed a bug in font atlas which caused wrong loading +/// of glyphes for font with multiple ranges. +/// - 2016/08/12 (1.09.1)- Added additional function to check if window is currently +/// hidden and therefore not visible. +/// - 2016/08/12 (1.09.1)- nk_window_is_closed now queries the correct flag `NK_WINDOW_CLOSED` +/// instead of the old flag `NK_WINDOW_HIDDEN` +/// - 2016/08/09 (1.09.0) - Added additional double version to nk_property and changed +/// the underlying implementation to not cast to float and instead +/// work directly on the given values. +/// - 2016/08/09 (1.08.0) - Added additional define to overwrite library internal +/// floating pointer number to string conversion for additional +/// precision. +/// - 2016/08/09 (1.08.0) - Added additional define to overwrite library internal +/// string to floating point number conversion for additional +/// precision. +/// - 2016/08/08 (1.07.2)- Fixed compiling error without define NK_INCLUDE_FIXED_TYPE +/// - 2016/08/08 (1.07.1)- Fixed possible floating point error inside `nk_widget` leading +/// to wrong wiget width calculation which results in widgets falsly +/// becomming tagged as not inside window and cannot be accessed. +/// - 2016/08/08 (1.07.0) - Nuklear now differentiates between hiding a window (NK_WINDOW_HIDDEN) and +/// closing a window (NK_WINDOW_CLOSED). A window can be hidden/shown +/// by using `nk_window_show` and closed by either clicking the close +/// icon in a window or by calling `nk_window_close`. Only closed +/// windows get removed at the end of the frame while hidden windows +/// remain. +/// - 2016/08/08 (1.06.0) - Added `nk_edit_string_zero_terminated` as a second option to +/// `nk_edit_string` which takes, edits and outputs a '\0' terminated string. +/// - 2016/08/08 (1.05.4)- Fixed scrollbar auto hiding behavior +/// - 2016/08/08 (1.05.3)- Fixed wrong panel padding selection in `nk_layout_widget_space` +/// - 2016/08/07 (1.05.2)- Fixed old bug in dynamic immediate mode layout API, calculating +/// wrong item spacing and panel width. +///- 2016/08/07 (1.05.1)- Hopefully finally fixed combobox popup drawing bug +///- 2016/08/07 (1.05.0) - Split varargs away from NK_INCLUDE_STANDARD_IO into own +/// define NK_INCLUDE_STANDARD_VARARGS to allow more fine +/// grained controlled over library includes. +/// - 2016/08/06 (1.04.5)- Changed memset calls to NK_MEMSET +/// - 2016/08/04 (1.04.4)- Fixed fast window scaling behavior +/// - 2016/08/04 (1.04.3)- Fixed window scaling, movement bug which appears if you +/// move/scale a window and another window is behind it. +/// If you are fast enough then the window behind gets activated +/// and the operation is blocked. I now require activating +/// by hovering only if mouse is not pressed. +/// - 2016/08/04 (1.04.2)- Fixed changing fonts +/// - 2016/08/03 (1.04.1)- Fixed `NK_WINDOW_BACKGROUND` behavior +/// - 2016/08/03 (1.04.0) - Added color parameter to `nk_draw_image` +/// - 2016/08/03 (1.04.0) - Added additional window padding style attributes for +/// sub windows (combo, menu, ...) +/// - 2016/08/03 (1.04.0) - Added functions to show/hide software cursor +/// - 2016/08/03 (1.04.0) - Added `NK_WINDOW_BACKGROUND` flag to force a window +/// to be always in the background of the screen +/// - 2016/08/03 (1.03.2)- Removed invalid assert macro for NK_RGB color picker +/// - 2016/08/01 (1.03.1)- Added helper macros into header include guard +/// - 2016/07/29 (1.03.0) - Moved the window/table pool into the header part to +/// simplify memory management by removing the need to +/// allocate the pool. +/// - 2016/07/29 (1.02.0) - Added auto scrollbar hiding window flag which if enabled +/// will hide the window scrollbar after NK_SCROLLBAR_HIDING_TIMEOUT +/// seconds without window interaction. To make it work +/// you have to also set a delta time inside the `nk_context`. +/// - 2016/07/25 (1.01.1) - Fixed small panel and panel border drawing bugs +/// - 2016/07/15 (1.01.0) - Added software cursor to `nk_style` and `nk_context` +/// - 2016/07/15 (1.01.0) - Added const correctness to `nk_buffer_push' data argument +/// - 2016/07/15 (1.01.0) - Removed internal font baking API and simplified +/// font atlas memory management by converting pointer +/// arrays for fonts and font configurations to lists. +/// - 2016/07/15 (1.00.0) - Changed button API to use context dependend button +/// behavior instead of passing it for every function call. +/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +/// ## Gallery +/// ![Figure [blue]: Feature overview with blue color styling](https://cloud.githubusercontent.com/assets/8057201/13538240/acd96876-e249-11e5-9547-5ac0b19667a0.png) +/// ![Figure [red]: Feature overview with red color styling](https://cloud.githubusercontent.com/assets/8057201/13538243/b04acd4c-e249-11e5-8fd2-ad7744a5b446.png) +/// ![Figure [widgets]: Widget overview](https://cloud.githubusercontent.com/assets/8057201/11282359/3325e3c6-8eff-11e5-86cb-cf02b0596087.png) +/// ![Figure [blackwhite]: Black and white](https://cloud.githubusercontent.com/assets/8057201/11033668/59ab5d04-86e5-11e5-8091-c56f16411565.png) +/// ![Figure [filexp]: File explorer](https://cloud.githubusercontent.com/assets/8057201/10718115/02a9ba08-7b6b-11e5-950f-adacdd637739.png) +/// ![Figure [opengl]: OpenGL Editor](https://cloud.githubusercontent.com/assets/8057201/12779619/2a20d72c-ca69-11e5-95fe-4edecf820d5c.png) +/// ![Figure [nodedit]: Node Editor](https://cloud.githubusercontent.com/assets/8057201/9976995/e81ac04a-5ef7-11e5-872b-acd54fbeee03.gif) +/// ![Figure [skinning]: Using skinning in Nuklear](https://cloud.githubusercontent.com/assets/8057201/15991632/76494854-30b8-11e6-9555-a69840d0d50b.png) +/// ![Figure [bf]: Heavy modified version](https://cloud.githubusercontent.com/assets/8057201/14902576/339926a8-0d9c-11e6-9fee-a8b73af04473.png) +/// +/// ## Credits +/// Developed by Micha Mettke and every direct or indirect github contributor.

+/// +/// Embeds [stb_texedit](https://github.com/nothings/stb/blob/master/stb_textedit.h), [stb_truetype](https://github.com/nothings/stb/blob/master/stb_truetype.h) and [stb_rectpack](https://github.com/nothings/stb/blob/master/stb_rect_pack.h) by Sean Barret (public domain)
+/// Uses [stddoc.c](https://github.com/r-lyeh/stddoc.c) from r-lyeh@github.com for documentation generation

+/// Embeds ProggyClean.ttf font by Tristan Grimmer (MIT license).
+/// +/// Big thank you to Omar Cornut (ocornut@github) for his [imgui library](https://github.com/ocornut/imgui) and +/// giving me the inspiration for this library, Casey Muratori for handmade hero +/// and his original immediate mode graphical user interface idea and Sean +/// Barret for his amazing single header libraries which restored my faith +/// in libraries and brought me to create some of my own. Finally Apoorva Joshi +/// for his single header file packer. +*/ -#endif diff --git a/external/GLFW/deps/nuklear_glfw_gl2.h b/external/glfw-3.3.4/deps/nuklear_glfw_gl2.h similarity index 95% rename from external/GLFW/deps/nuklear_glfw_gl2.h rename to external/glfw-3.3.4/deps/nuklear_glfw_gl2.h index 965af5f..61acc29 100644 --- a/external/GLFW/deps/nuklear_glfw_gl2.h +++ b/external/glfw-3.3.4/deps/nuklear_glfw_gl2.h @@ -75,6 +75,8 @@ static struct nk_glfw { int text_len; struct nk_vec2 scroll; double last_button_click; + int is_double_click_down; + struct nk_vec2 double_click_pos; } glfw; NK_INTERN void @@ -219,10 +221,12 @@ nk_glfw3_mouse_button_callback(GLFWwindow* window, int button, int action, int m glfwGetCursorPos(window, &x, &y); if (action == GLFW_PRESS) { double dt = glfwGetTime() - glfw.last_button_click; - if (dt > NK_GLFW_DOUBLE_CLICK_LO && dt < NK_GLFW_DOUBLE_CLICK_HI) - nk_input_button(&glfw.ctx, NK_BUTTON_DOUBLE, (int)x, (int)y, nk_true); + if (dt > NK_GLFW_DOUBLE_CLICK_LO && dt < NK_GLFW_DOUBLE_CLICK_HI) { + glfw.is_double_click_down = nk_true; + glfw.double_click_pos = nk_vec2((float)x, (float)y); + } glfw.last_button_click = glfwGetTime(); - } else nk_input_button(&glfw.ctx, NK_BUTTON_DOUBLE, (int)x, (int)y, nk_false); + } else glfw.is_double_click_down = nk_false; } NK_INTERN void @@ -261,6 +265,10 @@ nk_glfw3_init(GLFWwindow *win, enum nk_glfw_init_state init_state) glfw.ctx.clip.paste = nk_glfw3_clipbard_paste; glfw.ctx.clip.userdata = nk_handle_ptr(0); nk_buffer_init_default(&glfw.ogl.cmds); + + glfw.is_double_click_down = nk_false; + glfw.double_click_pos = nk_vec2(0, 0); + return &glfw.ctx; } @@ -344,7 +352,7 @@ nk_glfw3_new_frame(void) glfwGetCursorPos(win, &x, &y); nk_input_motion(ctx, (int)x, (int)y); if (ctx->input.mouse.grabbed) { - glfwSetCursorPos(glfw.win, ctx->input.mouse.prev.x, ctx->input.mouse.prev.y); + glfwSetCursorPos(glfw.win, (double)ctx->input.mouse.prev.x, (double)ctx->input.mouse.prev.y); ctx->input.mouse.pos.x = ctx->input.mouse.prev.x; ctx->input.mouse.pos.y = ctx->input.mouse.prev.y; } @@ -352,6 +360,7 @@ nk_glfw3_new_frame(void) nk_input_button(ctx, NK_BUTTON_LEFT, (int)x, (int)y, glfwGetMouseButton(win, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS); nk_input_button(ctx, NK_BUTTON_MIDDLE, (int)x, (int)y, glfwGetMouseButton(win, GLFW_MOUSE_BUTTON_MIDDLE) == GLFW_PRESS); nk_input_button(ctx, NK_BUTTON_RIGHT, (int)x, (int)y, glfwGetMouseButton(win, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS); + nk_input_button(ctx, NK_BUTTON_DOUBLE, (int)glfw.double_click_pos.x, (int)glfw.double_click_pos.y, glfw.is_double_click_down); nk_input_scroll(ctx, glfw.scroll); nk_input_end(&glfw.ctx); glfw.text_len = 0; diff --git a/external/GLFW/deps/stb_image_write.h b/external/glfw-3.3.4/deps/stb_image_write.h similarity index 100% rename from external/GLFW/deps/stb_image_write.h rename to external/glfw-3.3.4/deps/stb_image_write.h diff --git a/external/GLFW/deps/tinycthread.c b/external/glfw-3.3.4/deps/tinycthread.c similarity index 100% rename from external/GLFW/deps/tinycthread.c rename to external/glfw-3.3.4/deps/tinycthread.c diff --git a/external/GLFW/deps/tinycthread.h b/external/glfw-3.3.4/deps/tinycthread.h similarity index 100% rename from external/GLFW/deps/tinycthread.h rename to external/glfw-3.3.4/deps/tinycthread.h diff --git a/external/GLFW/deps/vs2008/stdint.h b/external/glfw-3.3.4/deps/vs2008/stdint.h similarity index 100% rename from external/GLFW/deps/vs2008/stdint.h rename to external/glfw-3.3.4/deps/vs2008/stdint.h diff --git a/external/glfw-3.3.4/docs/CMakeLists.txt b/external/glfw-3.3.4/docs/CMakeLists.txt new file mode 100644 index 0000000..2347858 --- /dev/null +++ b/external/glfw-3.3.4/docs/CMakeLists.txt @@ -0,0 +1,34 @@ + +# NOTE: The order of this list determines the order of items in the Guides +# (i.e. Pages) list in the generated documentation +set(GLFW_DOXYGEN_SOURCES + "include/GLFW/glfw3.h" + "include/GLFW/glfw3native.h" + "docs/main.dox" + "docs/news.dox" + "docs/quick.dox" + "docs/moving.dox" + "docs/compile.dox" + "docs/build.dox" + "docs/intro.dox" + "docs/context.dox" + "docs/monitor.dox" + "docs/window.dox" + "docs/input.dox" + "docs/vulkan.dox" + "docs/compat.dox" + "docs/internal.dox") + +# Format the source list into a Doxyfile INPUT value that Doxygen can parse +foreach(path IN LISTS GLFW_DOXYGEN_SOURCES) + set(GLFW_DOXYGEN_INPUT "${GLFW_DOXYGEN_INPUT} \\\n\"${GLFW_SOURCE_DIR}/${path}\"") +endforeach() + +configure_file(Doxyfile.in Doxyfile @ONLY) + +add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}" + WORKING_DIRECTORY "${GLFW_BINARY_DIR}/docs" + COMMENT "Generating HTML documentation" VERBATIM) + +set_target_properties(docs PROPERTIES FOLDER "GLFW3") + diff --git a/external/glfw-3.3.4/docs/CODEOWNERS b/external/glfw-3.3.4/docs/CODEOWNERS new file mode 100644 index 0000000..018808b --- /dev/null +++ b/external/glfw-3.3.4/docs/CODEOWNERS @@ -0,0 +1,10 @@ + +* @elmindreda + +src/wl_* @linkmauve + +docs/*.css @glfw/webdev +docs/*.scss @glfw/webdev +docs/*.html @glfw/webdev +docs/*.xml @glfw/webdev + diff --git a/external/GLFW/.github/CONTRIBUTING.md b/external/glfw-3.3.4/docs/CONTRIBUTING.md similarity index 92% rename from external/GLFW/.github/CONTRIBUTING.md rename to external/glfw-3.3.4/docs/CONTRIBUTING.md index 6d85f5c..070cff9 100644 --- a/external/GLFW/.github/CONTRIBUTING.md +++ b/external/glfw-3.3.4/docs/CONTRIBUTING.md @@ -20,14 +20,14 @@ ## Asking a question Questions about how to use GLFW should be asked either in the [support -section](http://discourse.glfw.org/c/support) of the forum, under the [Stack +section](https://discourse.glfw.org/c/support) of the forum, under the [Stack Overflow tag](https://stackoverflow.com/questions/tagged/glfw) or [Game Development tag](https://gamedev.stackexchange.com/questions/tagged/glfw) on Stack Exchange or in the IRC channel `#glfw` on [Freenode](http://freenode.net/). Questions about the design or implementation of GLFW or about future plans -should be asked in the [dev section](http://discourse.glfw.org/c/dev) of the +should be asked in the [dev section](https://discourse.glfw.org/c/dev) of the forum or in the IRC channel. Please don't open a GitHub issue to discuss design questions without first checking with a maintainer. @@ -35,7 +35,7 @@ questions without first checking with a maintainer. ## Reporting a bug If GLFW is behaving unexpectedly at run-time, start by setting an [error -callback](http://www.glfw.org/docs/latest/intro_guide.html#error_handling). +callback](https://www.glfw.org/docs/latest/intro_guide.html#error_handling). GLFW will often tell you the cause of an error via this callback. If it doesn't, that might be a separate bug. @@ -87,8 +87,8 @@ means linking to many system libraries. If you are using GLFW as a static library, that means your application needs to link to these in addition to GLFW. __Note:__ Check the [Compiling -GLFW](http://www.glfw.org/docs/latest/compile.html) guide and or [Building -applications](http://www.glfw.org/docs/latest/build.html) guide for before +GLFW](https://www.glfw.org/docs/latest/compile.html) guide and or [Building +applications](https://www.glfw.org/docs/latest/build.html) guide for before opening an issue of this kind. Most issues are caused by a missing package or linker flag. @@ -121,7 +121,7 @@ __GLFW commit ID__ (e.g. `3795d78b14ef06008889cc422a1fb8d642597751`) from Git. Please also include any __error messages__ provided to your application via the [error -callback](http://www.glfw.org/docs/latest/intro_guide.html#error_handling) and +callback](https://www.glfw.org/docs/latest/intro_guide.html#error_handling) and the __full call stack__ of the crash, or if the crash does not occur in debug mode, mention that instead. @@ -141,13 +141,13 @@ Call stack: __Note:__ Windows ships with graphics drivers that do not support OpenGL. If GLFW says that your machine lacks support for OpenGL, it very likely does. Install drivers from the computer manufacturer or graphics card manufacturer -([Nvidia](http://www.geforce.com/drivers), -[AMD](http://support.amd.com/en-us/download), +([Nvidia](https://www.geforce.com/drivers), +[AMD](https://www.amd.com/en/support), [Intel](https://www-ssl.intel.com/content/www/us/en/support/detect.html)) to fix this. __Note:__ AMD only supports OpenGL ES on Windows via EGL. See the -[GLFW\_CONTEXT\_CREATION\_API](http://www.glfw.org/docs/latest/window_guide.html#window_hints_ctx) +[GLFW\_CONTEXT\_CREATION\_API](https://www.glfw.org/docs/latest/window_guide.html#window_hints_ctx) hint for how to select EGL. Please verify that context creation also fails with the `glfwinfo` tool before @@ -165,7 +165,7 @@ include the __VM name and version__ (e.g. `VirtualBox 5.1`). Please also include the __GLFW version string__ (`3.2.0 X11 EGL clock_gettime /dev/js`), as described -[here](http://www.glfw.org/docs/latest/intro.html#intro_version_string), the +[here](https://www.glfw.org/docs/latest/intro.html#intro_version_string), the __GPU model and driver version__ (e.g. `GeForce GTX660 with 352.79`), and the __output of `glfwinfo`__ (with switches matching any hints you set in your code) when reporting this kind of bug. If this tool doesn't run on the machine, @@ -207,7 +207,7 @@ include the __VM name and version__ (e.g. `VirtualBox 5.1`). Please also include any __error messages__ provided to your application via the [error -callback](http://www.glfw.org/docs/latest/intro_guide.html#error_handling) and +callback](https://www.glfw.org/docs/latest/intro_guide.html#error_handling) and the __output of `monitors`__ when reporting this kind of bug. If this tool doesn't run on the machine, mention this instead. @@ -228,7 +228,7 @@ __Note:__ The exact ordering of related window events will sometimes differ. __Note:__ Window moving and resizing (by the user) will block the main thread on some platforms. This is not a bug. Set a [refresh -callback](http://www.glfw.org/docs/latest/window.html#window_refresh) if you +callback](https://www.glfw.org/docs/latest/window.html#window_refresh) if you want to keep the window contents updated during a move or size operation. The `events` tool is included in the GLFW source tree as `tests/events.c` and is @@ -247,7 +247,7 @@ include the __VM name and version__ (e.g. `VirtualBox 5.1`). Please also include any __error messages__ provided to your application via the [error -callback](http://www.glfw.org/docs/latest/intro_guide.html#error_handling) and +callback](https://www.glfw.org/docs/latest/intro_guide.html#error_handling) and if relevant, the __output of `events`__ when reporting this kind of bug. If this tool doesn't run on the machine, mention this instead. @@ -276,7 +276,7 @@ __GLFW commit ID__ (e.g. `3795d78b14ef06008889cc422a1fb8d642597751`) from Git. Please also include any __error messages__ provided to your application via the [error -callback](http://www.glfw.org/docs/latest/intro_guide.html#error_handling), if +callback](https://www.glfw.org/docs/latest/intro_guide.html#error_handling), if relevant. @@ -299,7 +299,7 @@ the source to the output or vice versa. ### Reporting a website bug If the bug is in the documentation (anything under `/docs/`) then please see the -section above. Bugs in the rest of the site are reported to to the [website +section above. Bugs in the rest of the site are reported to the [website source repository](https://github.com/glfw/website/issues). diff --git a/external/GLFW/docs/Doxyfile.in b/external/glfw-3.3.4/docs/Doxyfile.in similarity index 98% rename from external/GLFW/docs/Doxyfile.in rename to external/glfw-3.3.4/docs/Doxyfile.in index c2069c5..825356d 100644 --- a/external/GLFW/docs/Doxyfile.in +++ b/external/glfw-3.3.4/docs/Doxyfile.in @@ -32,7 +32,7 @@ PROJECT_NAME = "GLFW" # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = @GLFW_VERSION_FULL@ +PROJECT_NUMBER = @GLFW_VERSION@ # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer @@ -195,12 +195,13 @@ TAB_SIZE = 8 # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. -ALIASES = "thread_safety=@par Thread safety\n" \ - "pointer_lifetime=@par Pointer lifetime\n" \ - "analysis=@par Analysis\n" \ - "reentrancy=@par Reentrancy\n" \ - "errors=@par Errors\n" \ - "glfw3=@par\n__GLFW 3:__" \ +ALIASES = "thread_safety=@par Thread safety^^" \ + "pointer_lifetime=@par Pointer lifetime^^" \ + "analysis=@par Analysis^^" \ + "reentrancy=@par Reentrancy^^" \ + "errors=@par Errors^^" \ + "callback_signature=@par Callback signature^^" \ + "glfw3=__GLFW 3:__" \ "x11=__X11:__" \ "wayland=__Wayland:__" \ "win32=__Windows:__" \ @@ -264,7 +265,7 @@ MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented classes, # or namespaces to their corresponding documentation. Such a link can be -# prevented in individual cases by by putting a % sign in front of the word or +# prevented in individual cases by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. AUTOLINK_SUPPORT = YES @@ -589,7 +590,7 @@ FILE_VERSION_FILTER = # You can optionally specify a file name after the option, if omitted # DoxygenLayout.xml will be used as the name of the layout file. -LAYOUT_FILE = +LAYOUT_FILE = "@GLFW_SOURCE_DIR@/docs/DoxygenLayout.xml" # The CITE_BIB_FILES tag can be used to specify one or more bib files # containing the references data. This must be a list of .bib files. The @@ -662,7 +663,7 @@ WARN_LOGFILE = "@GLFW_BINARY_DIR@/docs/warnings.txt" # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = @GLFW_DOCS_SOURCES@ +INPUT = @GLFW_DOXYGEN_INPUT@ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is @@ -1573,7 +1574,6 @@ PREDEFINED = GLFWAPI= \ GLFW_EXPOSE_NATIVE_WGL \ GLFW_EXPOSE_NATIVE_X11 \ GLFW_EXPOSE_NATIVE_WAYLAND \ - GLFW_EXPOSE_NATIVE_MIR \ GLFW_EXPOSE_NATIVE_GLX \ GLFW_EXPOSE_NATIVE_COCOA \ GLFW_EXPOSE_NATIVE_NSGL \ @@ -1632,11 +1632,6 @@ ALLEXTERNALS = NO EXTERNAL_GROUPS = YES -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- @@ -1649,15 +1644,6 @@ PERL_PATH = /usr/bin/perl CLASS_DIAGRAMS = YES -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. @@ -1728,7 +1714,7 @@ UML_LOOK = NO # the class node. If there are many fields or methods and many nodes the # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS # threshold limits the number of items for each type to make the size more -# managable. Set this to 0 for no limit. Note that the threshold may be +# manageable. Set this to 0 for no limit. Note that the threshold may be # exceeded by 50% before the limit is enforced. UML_LIMIT_NUM_FIELDS = 10 diff --git a/external/glfw-3.3.4/docs/DoxygenLayout.xml b/external/glfw-3.3.4/docs/DoxygenLayout.xml new file mode 100644 index 0000000..ab97172 --- /dev/null +++ b/external/glfw-3.3.4/docs/DoxygenLayout.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/external/glfw-3.3.4/docs/SUPPORT.md b/external/glfw-3.3.4/docs/SUPPORT.md new file mode 100644 index 0000000..604957d --- /dev/null +++ b/external/glfw-3.3.4/docs/SUPPORT.md @@ -0,0 +1,14 @@ +# Support resources + +See the [latest documentation](http://www.glfw.org/docs/latest/) for tutorials, +guides and the API reference. + +If you have questions about using GLFW, we have a +[forum](https://discourse.glfw.org/), and the `#glfw` IRC channel on +[Freenode](http://freenode.net/). + +Bugs are reported to our [issue tracker](https://github.com/glfw/glfw/issues). +Please check the [contribution +guide](https://github.com/glfw/glfw/blob/master/docs/CONTRIBUTING.md) for +information on what to include when reporting a bug. + diff --git a/external/glfw-3.3.4/docs/build.dox b/external/glfw-3.3.4/docs/build.dox new file mode 100644 index 0000000..cb4d0f3 --- /dev/null +++ b/external/glfw-3.3.4/docs/build.dox @@ -0,0 +1,348 @@ +/*! + +@page build_guide Building applications + +@tableofcontents + +This is about compiling and linking applications that use GLFW. For information on +how to write such applications, start with the +[introductory tutorial](@ref quick_guide). For information on how to compile +the GLFW library itself, see @ref compile_guide. + +This is not a tutorial on compilation or linking. It assumes basic +understanding of how to compile and link a C program as well as how to use the +specific compiler of your chosen development environment. The compilation +and linking process should be explained in your C programming material and in +the documentation for your development environment. + + +@section build_include Including the GLFW header file + +You should include the GLFW header in the source files where you use OpenGL or +GLFW. + +@code +#include +@endcode + +This header defines all the constants and declares all the types and function +prototypes of the GLFW API. By default it also includes the OpenGL header from +your development environment. See [option macros](@ref build_macros) below for +how to select OpenGL ES headers and more. + +The GLFW header also defines any platform-specific macros needed by your OpenGL +header, so that it can be included without needing any window system headers. + +It does this only when needed, so if window system headers are included, the +GLFW header does not try to redefine those symbols. The reverse is not true, +i.e. `windows.h` cannot cope if any Win32 symbols have already been defined. + +In other words: + + - Use the GLFW header to include OpenGL or OpenGL ES headers portably + - Do not include window system headers unless you will use those APIs directly + - If you do need such headers, include them before the GLFW header + +If you are using an OpenGL extension loading library such as +[glad](https://github.com/Dav1dde/glad), the extension loader header should +be included before the GLFW one. GLFW attempts to detect any OpenGL or OpenGL +ES header or extension loader header included before it and will then disable +the inclusion of the default OpenGL header. Most extension loaders also define +macros that disable similar headers below it. + +@code +#include +#include +@endcode + +Both of these mechanisms depend on the extension loader header defining a known +macro. If yours doesn't or you don't know which one your users will pick, the +@ref GLFW_INCLUDE_NONE macro will explicitly to prevent the GLFW header from +including the OpenGL header. This will also allow you to include the two +headers in any order. + +@code +#define GLFW_INCLUDE_NONE +#include +#include +@endcode + + +@subsection build_macros GLFW header option macros + +These macros may be defined before the inclusion of the GLFW header and affect +its behavior. + +@anchor GLFW_DLL +__GLFW_DLL__ is required on Windows when using the GLFW DLL, to tell the +compiler that the GLFW functions are defined in a DLL. + +The following macros control which OpenGL or OpenGL ES API header is included. +Only one of these may be defined at a time. + +@note GLFW does not provide any of the API headers mentioned below. They are +provided by your development environment or your OpenGL, OpenGL ES or Vulkan +SDK, and most of them can be downloaded from the +[Khronos Registry](https://www.khronos.org/registry/). + +@anchor GLFW_INCLUDE_GLCOREARB +__GLFW_INCLUDE_GLCOREARB__ makes the GLFW header include the modern +`GL/glcorearb.h` header (`OpenGL/gl3.h` on macOS) instead of the regular OpenGL +header. + +@anchor GLFW_INCLUDE_ES1 +__GLFW_INCLUDE_ES1__ makes the GLFW header include the OpenGL ES 1.x `GLES/gl.h` +header instead of the regular OpenGL header. + +@anchor GLFW_INCLUDE_ES2 +__GLFW_INCLUDE_ES2__ makes the GLFW header include the OpenGL ES 2.0 +`GLES2/gl2.h` header instead of the regular OpenGL header. + +@anchor GLFW_INCLUDE_ES3 +__GLFW_INCLUDE_ES3__ makes the GLFW header include the OpenGL ES 3.0 +`GLES3/gl3.h` header instead of the regular OpenGL header. + +@anchor GLFW_INCLUDE_ES31 +__GLFW_INCLUDE_ES31__ makes the GLFW header include the OpenGL ES 3.1 +`GLES3/gl31.h` header instead of the regular OpenGL header. + +@anchor GLFW_INCLUDE_ES32 +__GLFW_INCLUDE_ES32__ makes the GLFW header include the OpenGL ES 3.2 +`GLES3/gl32.h` header instead of the regular OpenGL header. + +@anchor GLFW_INCLUDE_NONE +__GLFW_INCLUDE_NONE__ makes the GLFW header not include any OpenGL or OpenGL ES +API header. This is useful in combination with an extension loading library. + +If none of the above inclusion macros are defined, the standard OpenGL `GL/gl.h` +header (`OpenGL/gl.h` on macOS) is included, unless GLFW detects the inclusion +guards of any OpenGL, OpenGL ES or extension loader header it knows about. + +The following macros control the inclusion of additional API headers. Any +number of these may be defined simultaneously, and/or together with one of the +above macros. + +@anchor GLFW_INCLUDE_VULKAN +__GLFW_INCLUDE_VULKAN__ makes the GLFW header include the Vulkan +`vulkan/vulkan.h` header in addition to any selected OpenGL or OpenGL ES header. + +@anchor GLFW_INCLUDE_GLEXT +__GLFW_INCLUDE_GLEXT__ makes the GLFW header include the appropriate extension +header for the OpenGL or OpenGL ES header selected above after and in addition +to that header. + +@anchor GLFW_INCLUDE_GLU +__GLFW_INCLUDE_GLU__ makes the header include the GLU header in addition to the +header selected above. This should only be used with the standard OpenGL header +and only for compatibility with legacy code. GLU has been deprecated and should +not be used in new code. + +@note None of these macros may be defined during the compilation of GLFW itself. +If your build includes GLFW and you define any these in your build files, make +sure they are not applied to the GLFW sources. + + +@section build_link Link with the right libraries + +GLFW is essentially a wrapper of various platform-specific APIs and therefore +needs to link against many different system libraries. If you are using GLFW as +a shared library / dynamic library / DLL then it takes care of these links. +However, if you are using GLFW as a static library then your executable will +need to link against these libraries. + +On Windows and macOS, the list of system libraries is static and can be +hard-coded into your build environment. See the section for your development +environment below. On Linux and other Unix-like operating systems, the list +varies but can be retrieved in various ways as described below. + +A good general introduction to linking is +[Beginner's Guide to Linkers](https://www.lurklurk.org/linkers/linkers.html) by +David Drysdale. + + +@subsection build_link_win32 With MinGW or Visual C++ on Windows + +The static version of the GLFW library is named `glfw3`. When using this +version, it is also necessary to link with some libraries that GLFW uses. + +When using MinGW to link an application with the static version of GLFW, you +must also explicitly link with `gdi32`. Other toolchains including MinGW-w64 +include it in the set of default libraries along with other dependencies like +`user32` and `kernel32`. + +The link library for the GLFW DLL is named `glfw3dll`. When compiling an +application that uses the DLL version of GLFW, you need to define the @ref +GLFW_DLL macro _before_ any inclusion of the GLFW header. This can be done +either with a compiler switch or by defining it in your source code. + + +@subsection build_link_cmake_source With CMake and GLFW source + +This section is about using CMake to compile and link GLFW along with your +application. If you want to use an installed binary instead, see @ref +build_link_cmake_package. + +With a few changes to your `CMakeLists.txt` you can have the GLFW source tree +built along with your application. + +When including GLFW as part of your build, you probably don't want to build the +GLFW tests, examples and documentation. To disable these, set the corresponding +cache variables before adding the GLFW source tree. + +@code +set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) +@endcode + +Add the root directory of the GLFW source tree to your project. This will add +the `glfw` target to your project. + +@code{.cmake} +add_subdirectory(path/to/glfw) +@endcode + +Once GLFW has been added, link your application against the `glfw` target. +This adds the GLFW library and its link-time dependencies as it is currently +configured, the include directory for the GLFW header and, when applicable, the +@ref GLFW_DLL macro. + +@code{.cmake} +target_link_libraries(myapp glfw) +@endcode + +Note that the `glfw` target does not depend on OpenGL, as GLFW loads any OpenGL, +OpenGL ES or Vulkan libraries it needs at runtime. If your application calls +OpenGL directly, instead of using a modern +[extension loader library](@ref context_glext_auto), use the OpenGL CMake +package. + +@code{.cmake} +find_package(OpenGL REQUIRED) +@endcode + +If OpenGL is found, the `OpenGL::GL` target is added to your project, containing +library and include directory paths. Link against this like any other library. + +@code{.cmake} +target_link_libraries(myapp OpenGL::GL) +@endcode + +For a minimal example of a program and GLFW sources built with CMake, see the +[GLFW CMake Starter](https://github.com/juliettef/GLFW-CMake-starter) on GitHub. + + +@subsection build_link_cmake_package With CMake and installed GLFW binaries + +This section is about using CMake to link GLFW after it has been built and +installed. If you want to build it along with your application instead, see +@ref build_link_cmake_source. + +With a few changes to your `CMakeLists.txt` you can locate the package and +target files generated when GLFW is installed. + +@code{.cmake} +find_package(glfw3 3.3 REQUIRED) +@endcode + +Once GLFW has been added to the project, link against it with the `glfw` target. +This adds the GLFW library and its link-time dependencies, the include directory +for the GLFW header and, when applicable, the @ref GLFW_DLL macro. + +@code{.cmake} +target_link_libraries(myapp glfw) +@endcode + +Note that the `glfw` target does not depend on OpenGL, as GLFW loads any OpenGL, +OpenGL ES or Vulkan libraries it needs at runtime. If your application calls +OpenGL directly, instead of using a modern +[extension loader library](@ref context_glext_auto), use the OpenGL CMake +package. + +@code{.cmake} +find_package(OpenGL REQUIRED) +@endcode + +If OpenGL is found, the `OpenGL::GL` target is added to your project, containing +library and include directory paths. Link against this like any other library. + +@code{.cmake} +target_link_libraries(myapp OpenGL::GL) +@endcode + + +@subsection build_link_pkgconfig With makefiles and pkg-config on Unix + +GLFW supports [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/), +and the `glfw3.pc` pkg-config file is generated when the GLFW library is built +and is installed along with it. A pkg-config file describes all necessary +compile-time and link-time flags and dependencies needed to use a library. When +they are updated or if they differ between systems, you will get the correct +ones automatically. + +A typical compile and link command-line when using the static version of the +GLFW library may look like this: + +@code{.sh} +cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --static --libs glfw3) +@endcode + +If you are using the shared version of the GLFW library, omit the `--static` +flag. + +@code{.sh} +cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --libs glfw3) +@endcode + +You can also use the `glfw3.pc` file without installing it first, by using the +`PKG_CONFIG_PATH` environment variable. + +@code{.sh} +env PKG_CONFIG_PATH=path/to/glfw/src cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --libs glfw3) +@endcode + +The dependencies do not include OpenGL, as GLFW loads any OpenGL, OpenGL ES or +Vulkan libraries it needs at runtime. If your application calls OpenGL +directly, instead of using a modern +[extension loader library](@ref context_glext_auto), you should add the `gl` +pkg-config package. + +@code{.sh} +cc $(pkg-config --cflags glfw3 gl) -o myprog myprog.c $(pkg-config --libs glfw3 gl) +@endcode + + +@subsection build_link_xcode With Xcode on macOS + +If you are using the dynamic library version of GLFW, add it to the project +dependencies. + +If you are using the static library version of GLFW, add it and the Cocoa, +OpenGL and IOKit frameworks to the project as dependencies. They can all be +found in `/System/Library/Frameworks`. + + +@subsection build_link_osx With command-line on macOS + +It is recommended that you use [pkg-config](@ref build_link_pkgconfig) when +building from the command line on macOS. That way you will get any new +dependencies added automatically. If you still wish to build manually, you need +to add the required frameworks and libraries to your command-line yourself using +the `-l` and `-framework` switches. + +If you are using the dynamic GLFW library, which is named `libglfw.3.dylib`, do: + +@code{.sh} +cc -o myprog myprog.c -lglfw -framework Cocoa -framework OpenGL -framework IOKit +@endcode + +If you are using the static library, named `libglfw3.a`, substitute `-lglfw3` +for `-lglfw`. + +Note that you do not add the `.framework` extension to a framework when linking +against it from the command-line. + +@note Your machine may have `libGL.*.dylib` style OpenGL library, but that is +for the X Window System and will not work with the macOS native version of GLFW. + +*/ diff --git a/external/glfw-3.3.4/docs/compat.dox b/external/glfw-3.3.4/docs/compat.dox new file mode 100644 index 0000000..fea7ab1 --- /dev/null +++ b/external/glfw-3.3.4/docs/compat.dox @@ -0,0 +1,285 @@ +/*! + +@page compat_guide Standards conformance + +@tableofcontents + +This guide describes the various API extensions used by this version of GLFW. +It lists what are essentially implementation details, but which are nonetheless +vital knowledge for developers intending to deploy their applications on a wide +range of machines. + +The information in this guide is not a part of GLFW API, but merely +preconditions for some parts of the library to function on a given machine. Any +part of this information may change in future versions of GLFW and that will not +be considered a breaking API change. + + +@section compat_x11 X11 extensions, protocols and IPC standards + +As GLFW uses Xlib directly, without any intervening toolkit +library, it has sole responsibility for interacting well with the many and +varied window managers in use on Unix-like systems. In order for applications +and window managers to work well together, a number of standards and +conventions have been developed that regulate behavior outside the scope of the +X11 API; most importantly the +[Inter-Client Communication Conventions Manual](https://www.tronche.com/gui/x/icccm/) +(ICCCM) and +[Extended Window Manager Hints](https://standards.freedesktop.org/wm-spec/wm-spec-latest.html) +(EWMH) standards. + +GLFW uses the `_MOTIF_WM_HINTS` window property to support borderless windows. +If the running window manager does not support this property, the +`GLFW_DECORATED` hint will have no effect. + +GLFW uses the ICCCM `WM_DELETE_WINDOW` protocol to intercept the user +attempting to close the GLFW window. If the running window manager does not +support this protocol, the close callback will never be called. + +GLFW uses the EWMH `_NET_WM_PING` protocol, allowing the window manager notify +the user when the application has stopped responding, i.e. when it has ceased to +process events. If the running window manager does not support this protocol, +the user will not be notified if the application locks up. + +GLFW uses the EWMH `_NET_WM_STATE_FULLSCREEN` window state to tell the window +manager to make the GLFW window full screen. If the running window manager does +not support this state, full screen windows may not work properly. GLFW has +a fallback code path in case this state is unavailable, but every window manager +behaves slightly differently in this regard. + +GLFW uses the EWMH `_NET_WM_BYPASS_COMPOSITOR` window property to tell a +compositing window manager to un-redirect full screen GLFW windows. If the +running window manager uses compositing but does not support this property then +additional copying may be performed for each buffer swap of full screen windows. + +GLFW uses the +[clipboard manager protocol](https://www.freedesktop.org/wiki/ClipboardManager/) +to push a clipboard string (i.e. selection) owned by a GLFW window about to be +destroyed to the clipboard manager. If there is no running clipboard manager, +the clipboard string will be unavailable once the window has been destroyed. + +GLFW uses the +[X drag-and-drop protocol](https://www.freedesktop.org/wiki/Specifications/XDND/) +to provide file drop events. If the application originating the drag does not +support this protocol, drag and drop will not work. + +GLFW uses the XRandR 1.3 extension to provide multi-monitor support. If the +running X server does not support this version of this extension, multi-monitor +support will not function and only a single, desktop-spanning monitor will be +reported. + +GLFW uses the XRandR 1.3 and Xf86vidmode extensions to provide gamma ramp +support. If the running X server does not support either or both of these +extensions, gamma ramp support will not function. + +GLFW uses the Xkb extension and detectable auto-repeat to provide keyboard +input. If the running X server does not support this extension, a non-Xkb +fallback path is used. + +GLFW uses the XInput2 extension to provide raw, non-accelerated mouse motion +when the cursor is disabled. If the running X server does not support this +extension, regular accelerated mouse motion will be used. + +GLFW uses both the XRender extension and the compositing manager to support +transparent window framebuffers. If the running X server does not support this +extension or there is no running compositing manager, the +`GLFW_TRANSPARENT_FRAMEBUFFER` framebuffer hint will have no effect. + + +@section compat_wayland Wayland protocols and IPC standards + +As GLFW uses libwayland directly, without any intervening toolkit library, it +has sole responsibility for interacting well with every compositor in use on +Unix-like systems. Most of the features are provided by the core protocol, +while cursor support is provided by the libwayland-cursor helper library, EGL +integration by libwayland-egl, and keyboard handling by +[libxkbcommon](https://xkbcommon.org/). In addition, GLFW uses some protocols +from wayland-protocols to provide additional features if the compositor +supports them. + +GLFW uses xkbcommon 0.5.0 to provide compose key support. When it has been +built against an older xkbcommon, the compose key will be disabled even if it +has been configured in the compositor. + +GLFW uses the [xdg-shell +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/stable/xdg-shell/xdg-shell.xml) +to provide better window management. This protocol is part of +wayland-protocols 1.12, and mandatory at build time. If the running compositor +does not support this protocol, the older [wl_shell +interface](https://cgit.freedesktop.org/wayland/wayland/tree/protocol/wayland.xml#n972) +will be used instead. This will result in a worse integration with the +desktop, especially on tiling compositors. + +GLFW uses the [relative pointer +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/relative-pointer/relative-pointer-unstable-v1.xml) +alongside the [pointer constraints +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml) +to implement disabled cursor. These two protocols are part of +wayland-protocols 1.1, and mandatory at build time. If the running compositor +does not support both of these protocols, disabling the cursor will have no +effect. + +GLFW uses the [idle inhibit +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml) +to prohibit the screensaver from starting. This protocol is part of +wayland-protocols 1.6, and mandatory at build time. If the running compositor +does not support this protocol, the screensaver may start even for full screen +windows. + +GLFW uses the [xdg-decoration +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml) +to request decorations to be drawn around its windows. This protocol is part +of wayland-protocols 1.15, and mandatory at build time. If the running +compositor does not support this protocol, a very simple frame will be drawn by +GLFW itself, using the [viewporter +protocol](https://cgit.freedesktop.org/wayland/wayland-protocols/tree/stable/viewporter/viewporter.xml) +alongside +[subsurfaces](https://cgit.freedesktop.org/wayland/wayland/tree/protocol/wayland.xml#n2598). +This protocol is part of wayland-protocols 1.4, and mandatory at build time. +If the running compositor does not support this protocol either, no decorations +will be drawn around windows. + + +@section compat_glx GLX extensions + +The GLX API is the default API used to create OpenGL contexts on Unix-like +systems using the X Window System. + +GLFW uses the GLX 1.3 `GLXFBConfig` functions to enumerate and select framebuffer pixel +formats. If GLX 1.3 is not supported, @ref glfwInit will fail. + +GLFW uses the `GLX_MESA_swap_control,` `GLX_EXT_swap_control` and +`GLX_SGI_swap_control` extensions to provide vertical retrace synchronization +(or _vsync_), in that order of preference. Where none of these extension are +available, calling @ref glfwSwapInterval will have no effect. + +GLFW uses the `GLX_ARB_multisample` extension to create contexts with +multisampling anti-aliasing. Where this extension is unavailable, the +`GLFW_SAMPLES` hint will have no effect. + +GLFW uses the `GLX_ARB_create_context` extension when available, even when +creating OpenGL contexts of version 2.1 and below. Where this extension is +unavailable, the `GLFW_CONTEXT_VERSION_MAJOR` and `GLFW_CONTEXT_VERSION_MINOR` +hints will only be partially supported, the `GLFW_OPENGL_DEBUG_CONTEXT` hint +will have no effect, and setting the `GLFW_OPENGL_PROFILE` or +`GLFW_OPENGL_FORWARD_COMPAT` hints to `GLFW_TRUE` will cause @ref +glfwCreateWindow to fail. + +GLFW uses the `GLX_ARB_create_context_profile` extension to provide support for +context profiles. Where this extension is unavailable, setting the +`GLFW_OPENGL_PROFILE` hint to anything but `GLFW_OPENGL_ANY_PROFILE`, or setting +`GLFW_CLIENT_API` to anything but `GLFW_OPENGL_API` or `GLFW_NO_API` will cause +@ref glfwCreateWindow to fail. + +GLFW uses the `GLX_ARB_context_flush_control` extension to provide control over +whether a context is flushed when it is released (made non-current). Where this +extension is unavailable, the `GLFW_CONTEXT_RELEASE_BEHAVIOR` hint will have no +effect and the context will always be flushed when released. + +GLFW uses the `GLX_ARB_framebuffer_sRGB` and `GLX_EXT_framebuffer_sRGB` +extensions to provide support for sRGB framebuffers. Where both of these +extensions are unavailable, the `GLFW_SRGB_CAPABLE` hint will have no effect. + + +@section compat_wgl WGL extensions + +The WGL API is used to create OpenGL contexts on Microsoft Windows and other +implementations of the Win32 API, such as Wine. + +GLFW uses either the `WGL_EXT_extension_string` or the +`WGL_ARB_extension_string` extension to check for the presence of all other WGL +extensions listed below. If both are available, the EXT one is preferred. If +neither is available, no other extensions are used and many GLFW features +related to context creation will have no effect or cause errors when used. + +GLFW uses the `WGL_EXT_swap_control` extension to provide vertical retrace +synchronization (or _vsync_). Where this extension is unavailable, calling @ref +glfwSwapInterval will have no effect. + +GLFW uses the `WGL_ARB_pixel_format` and `WGL_ARB_multisample` extensions to +create contexts with multisampling anti-aliasing. Where these extensions are +unavailable, the `GLFW_SAMPLES` hint will have no effect. + +GLFW uses the `WGL_ARB_create_context` extension when available, even when +creating OpenGL contexts of version 2.1 and below. Where this extension is +unavailable, the `GLFW_CONTEXT_VERSION_MAJOR` and `GLFW_CONTEXT_VERSION_MINOR` +hints will only be partially supported, the `GLFW_OPENGL_DEBUG_CONTEXT` hint +will have no effect, and setting the `GLFW_OPENGL_PROFILE` or +`GLFW_OPENGL_FORWARD_COMPAT` hints to `GLFW_TRUE` will cause @ref +glfwCreateWindow to fail. + +GLFW uses the `WGL_ARB_create_context_profile` extension to provide support for +context profiles. Where this extension is unavailable, setting the +`GLFW_OPENGL_PROFILE` hint to anything but `GLFW_OPENGL_ANY_PROFILE` will cause +@ref glfwCreateWindow to fail. + +GLFW uses the `WGL_ARB_context_flush_control` extension to provide control over +whether a context is flushed when it is released (made non-current). Where this +extension is unavailable, the `GLFW_CONTEXT_RELEASE_BEHAVIOR` hint will have no +effect and the context will always be flushed when released. + +GLFW uses the `WGL_ARB_framebuffer_sRGB` and `WGL_EXT_framebuffer_sRGB` +extensions to provide support for sRGB framebuffers. Where both of these +extension are unavailable, the `GLFW_SRGB_CAPABLE` hint will have no effect. + + +@section compat_osx OpenGL on macOS + +Support for OpenGL 3.2 and above was introduced with OS X 10.7 and even then +only forward-compatible, core profile contexts are supported. Support for +OpenGL 4.1 was introduced with OS X 10.9, also limited to forward-compatible, +core profile contexts. There is also still no mechanism for requesting debug +contexts or no-error contexts. Versions of Mac OS X earlier than 10.7 support +at most OpenGL version 2.1. + +Because of this, on OS X 10.7 and later, the `GLFW_CONTEXT_VERSION_MAJOR` and +`GLFW_CONTEXT_VERSION_MINOR` hints will cause @ref glfwCreateWindow to fail if +given version 3.0 or 3.1. The `GLFW_OPENGL_FORWARD_COMPAT` hint must be set to +`GLFW_TRUE` and the `GLFW_OPENGL_PROFILE` hint must be set to +`GLFW_OPENGL_CORE_PROFILE` when creating OpenGL 3.2 and later contexts. The +`GLFW_OPENGL_DEBUG_CONTEXT` and `GLFW_CONTEXT_NO_ERROR` hints are ignored. + +Also, on Mac OS X 10.6 and below, the `GLFW_CONTEXT_VERSION_MAJOR` and +`GLFW_CONTEXT_VERSION_MINOR` hints will fail if given a version above 2.1, +setting the `GLFW_OPENGL_PROFILE` or `GLFW_OPENGL_FORWARD_COMPAT` hints to +a non-default value will cause @ref glfwCreateWindow to fail and the +`GLFW_OPENGL_DEBUG_CONTEXT` hint is ignored. + + +@section compat_vulkan Vulkan loader and API + +By default, GLFW uses the standard system-wide Vulkan loader to access the +Vulkan API on all platforms except macOS. This is installed by both graphics +drivers and Vulkan SDKs. If either the loader or at least one minimally +functional ICD is missing, @ref glfwVulkanSupported will return `GLFW_FALSE` and +all other Vulkan-related functions will fail with an @ref GLFW_API_UNAVAILABLE +error. + + +@section compat_wsi Vulkan WSI extensions + +The Vulkan WSI extensions are used to create Vulkan surfaces for GLFW windows on +all supported platforms. + +GLFW uses the `VK_KHR_surface` and `VK_KHR_win32_surface` extensions to create +surfaces on Microsoft Windows. If any of these extensions are not available, +@ref glfwGetRequiredInstanceExtensions will return an empty list and window +surface creation will fail. + +GLFW uses the `VK_KHR_surface` and either the `VK_MVK_macos_surface` or +`VK_EXT_metal_surface` extensions to create surfaces on macOS. If any of these +extensions are not available, @ref glfwGetRequiredInstanceExtensions will +return an empty list and window surface creation will fail. + +GLFW uses the `VK_KHR_surface` and either the `VK_KHR_xlib_surface` or +`VK_KHR_xcb_surface` extensions to create surfaces on X11. If `VK_KHR_surface` +or both `VK_KHR_xlib_surface` and `VK_KHR_xcb_surface` are not available, @ref +glfwGetRequiredInstanceExtensions will return an empty list and window surface +creation will fail. + +GLFW uses the `VK_KHR_surface` and `VK_KHR_wayland_surface` extensions to create +surfaces on Wayland. If any of these extensions are not available, @ref +glfwGetRequiredInstanceExtensions will return an empty list and window surface +creation will fail. + +*/ diff --git a/external/GLFW/docs/compile.dox b/external/glfw-3.3.4/docs/compile.dox similarity index 89% rename from external/GLFW/docs/compile.dox rename to external/glfw-3.3.4/docs/compile.dox index 4486156..8a4fb58 100644 --- a/external/GLFW/docs/compile.dox +++ b/external/glfw-3.3.4/docs/compile.dox @@ -10,12 +10,12 @@ build applications that use GLFW, see @ref build_guide. @section compile_cmake Using CMake -GLFW uses [CMake](http://www.cmake.org/) to generate project files or makefiles +GLFW uses [CMake](https://cmake.org/) to generate project files or makefiles for a particular development environment. If you are on a Unix-like system such as Linux or FreeBSD or have a package system like Fink, MacPorts, Cygwin or Homebrew, you can install its CMake package. If not, you can download installers for Windows and macOS from the -[CMake website](http://www.cmake.org/). +[CMake website](https://cmake.org/). @note CMake only generates project files or makefiles. It does not compile the actual GLFW library. To compile GLFW, first generate these files for your @@ -52,9 +52,9 @@ example, Cygwin has the `mingw64-i686-gcc` and `mingw64-x86_64-gcc` packages for 32- and 64-bit version of MinGW-w64, while Debian GNU/Linux and derivatives like Ubuntu have the `mingw-w64` package for both. -GLFW has CMake toolchain files in the `CMake/` directory that allow for easy -cross-compilation of Windows binaries. To use these files you need to add a -special parameter when generating the project files or makefiles: +GLFW has CMake toolchain files in the `CMake/` directory that set up +cross-compilation of Windows binaries. To use these files you add an option +when running `cmake` to generate the project files or makefiles: @code{.sh} cmake -DCMAKE_TOOLCHAIN_FILE= . @@ -71,7 +71,7 @@ cmake -DCMAKE_TOOLCHAIN_FILE=CMake/x86_64-w64-mingw32.cmake . @endcode For more details see the article -[CMake Cross Compiling](http://www.paraview.org/Wiki/CMake_Cross_Compiling) on +[CMake Cross Compiling](https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling) on the CMake wiki. Once you have this set up, move on to @ref compile_generate. @@ -97,6 +97,19 @@ Once you have installed the necessary packages, move on to @ref compile_generate. +@subsubsection compile_deps_wayland Dependencies for Linux and Wayland + +To compile GLFW for Wayland, you need to have the Wayland packages installed, +as well as the basic development tools like GCC and make. For example, on +Ubuntu and other distributions based on Debian GNU/Linux, you need to install +the `libwayland-dev` package, which contains all Wayland headers and pulls in +wayland-scanner, as well as the `wayland-protocols` and `extra-cmake-modules` +packages. + +Once you have installed the necessary packages, move on to @ref +compile_generate. + + @subsection compile_deps_osmesa Dependencies for Linux and OSMesa To compile GLFW for OSMesa, you need to install the OSMesa library and header @@ -197,11 +210,6 @@ cmake -DBUILD_SHARED_LIBS=ON . __BUILD_SHARED_LIBS__ determines whether GLFW is built as a static library or as a DLL / shared library / dynamic library. -@anchor LIB_SUFFIX -__LIB_SUFFIX__ affects where the GLFW shared /dynamic library is installed. If -it is empty, it is installed to `${CMAKE_INSTALL_PREFIX}/lib`. If it is set to -`64`, it is installed to `${CMAKE_INSTALL_PREFIX}/lib64`. - @anchor GLFW_BUILD_EXAMPLES __GLFW_BUILD_EXAMPLES__ determines whether the GLFW examples are built along with the library. @@ -216,7 +224,7 @@ with the library. @anchor GLFW_VULKAN_STATIC __GLFW_VULKAN_STATIC__ determines whether to use the Vulkan loader linked -statically into the application. +directly with the application. @subsubsection compile_options_win32 Windows specific CMake options @@ -255,13 +263,12 @@ ramps and clipboard. The options are: - @b _GLFW_WIN32 to use the Win32 API - @b _GLFW_X11 to use the X Window System - @b _GLFW_WAYLAND to use the Wayland API (experimental and incomplete) - - @b _GLFW_MIR to use the Mir API (experimental and incomplete) - @b _GLFW_OSMESA to use the OSMesa API (headless and non-interactive) If you are building GLFW as a shared library / dynamic library / DLL then you must also define @b _GLFW_BUILD_DLL. Otherwise, you must not define it. -If you are linking the Vulkan loader statically into your application then you +If you are linking the Vulkan loader directly with your application then you must also define @b _GLFW_VULKAN_STATIC. Otherwise, GLFW will attempt to use the external version. @@ -273,8 +280,8 @@ _GLFW_GLESV2_LIBRARY. Otherwise, GLFW will use the built-in default names. For the EGL context creation API, the following options are available: - - @b _GLFW_USE_EGLPLATFORM_H to use `EGL/eglplatform.h` for native handle - definitions (fallback) + - @b _GLFW_USE_EGLPLATFORM_H to use an existing `EGL/eglplatform.h` header file + for native handle types (fallback) @note None of the @ref build_macros may be defined during the compilation of GLFW. If you define any of these in your build files, make sure they are not diff --git a/external/GLFW/docs/context.dox b/external/glfw-3.3.4/docs/context.dox similarity index 96% rename from external/GLFW/docs/context.dox rename to external/glfw-3.3.4/docs/context.dox index 6129284..69b8fa7 100644 --- a/external/GLFW/docs/context.dox +++ b/external/glfw-3.3.4/docs/context.dox @@ -56,12 +56,12 @@ platforms where it is possible to choose which types of objects are shared, GLFW requests that all types are shared. See the relevant chapter of the [OpenGL](https://www.opengl.org/registry/) or -[OpenGL ES](http://www.khronos.org/opengles/) reference documents for more +[OpenGL ES](https://www.khronos.org/opengles/) reference documents for more information. The name and number of this chapter unfortunately varies between versions and APIs, but has at times been named _Shared Objects and Multiple Contexts_. -GLFW comes with a barebones object sharing test program called `sharing`. +GLFW comes with a barebones object sharing example program called `sharing`. @subsection context_offscreen Offscreen contexts @@ -103,6 +103,9 @@ Before you can make OpenGL or OpenGL ES calls, you need to have a current context of the correct type. A context can only be current for a single thread at a time, and a thread can only have a single context current at a time. +When moving a context between threads, you must make it non-current on the old +thread before making it current on the new one. + The context of a window is made current with @ref glfwMakeContextCurrent. @code @@ -126,8 +129,7 @@ error. @section context_swap Buffer swapping -Buffer swapping is part of the window and framebuffer, not the context. See -@ref buffer_swap. +See @ref buffer_swap in the window guide. @section context_glext OpenGL and OpenGL ES extensions @@ -149,7 +151,7 @@ for official extensions. The extension above was created by the ARB, but there are many different affixes, like `NV` for Nvidia and `AMD` for, well, AMD. Any group may also use the generic `EXT` affix. Lists of extensions, together with their specifications, can be found at the -[OpenGL Registry](http://www.opengl.org/registry/) and +[OpenGL Registry](https://www.opengl.org/registry/) and [OpenGL ES Registry](https://www.khronos.org/registry/gles/). @@ -159,7 +161,7 @@ An extension loader library is the easiest and best way to access both OpenGL an OpenGL ES extensions and modern versions of the core OpenGL or OpenGL ES APIs. They will take care of all the details of declaring and loading everything you need. One such library is [glad](https://github.com/Dav1dde/glad) and there are -several others. +several others. The following example will use glad but all extension loader libraries work similarly. @@ -253,7 +255,7 @@ of OpenGL ES extensions is identical except for the name of the extension header The `glext.h` extension header is a continually updated file that defines the interfaces for all OpenGL extensions. The latest version of this can always be -found at the [OpenGL Registry](http://www.opengl.org/registry/). There are also +found at the [OpenGL Registry](https://www.opengl.org/registry/). There are also extension headers for the various versions of OpenGL ES at the [OpenGL ES Registry](https://www.khronos.org/registry/gles/). It it strongly recommended that you use your own copy of the extension header, as the one diff --git a/external/glfw-3.3.4/docs/extra.css b/external/glfw-3.3.4/docs/extra.css new file mode 100644 index 0000000..05c1938 --- /dev/null +++ b/external/glfw-3.3.4/docs/extra.css @@ -0,0 +1 @@ +.sm-dox,.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted,.sm-dox ul a:hover{background:none;text-shadow:none}.sm-dox a span.sub-arrow{border-color:#f2f2f2 transparent transparent transparent}.sm-dox a span.sub-arrow:active,.sm-dox a span.sub-arrow:focus,.sm-dox a span.sub-arrow:hover,.sm-dox a:hover span.sub-arrow{border-color:#f60 transparent transparent transparent}.sm-dox ul a span.sub-arrow:active,.sm-dox ul a span.sub-arrow:focus,.sm-dox ul a span.sub-arrow:hover,.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent #f60}.sm-dox ul a:hover{background:#666;text-shadow:none}.sm-dox ul.sm-nowrap a{color:#4d4d4d;text-shadow:none}#main-nav,#main-menu,#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.memdoc,dl.reflist dd,div.toc li,.ah,span.lineno,span.lineno a,span.lineno a:hover,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,.doxtable code,.markdownTable code{background:none}#titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,table.markdownTable td,table.markdownTable th,hr,.memSeparator{border:none}#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.reflist dt a.el,.levels span,.directory .levels span{text-shadow:none}.memdoc,dl.reflist dd{box-shadow:none}div.headertitle,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,table.doxtable code,table.markdownTable code{padding:0}#nav-path,.directory .levels,span.lineno{display:none}html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),tr.markdownTableBody:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code,.markdownTableRowEven{background:#f2f2f2}body{color:#4d4d4d}h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em{color:#1a1a1a;border-bottom:none}h1{padding-top:.5em;font-size:180%}h2{padding-top:.5em;margin-bottom:0;font-size:140%}h3{padding-top:.5em;margin-bottom:0;font-size:110%}.glfwheader{font-size:16px;min-height:64px;max-width:920px;padding:0 32px;margin:0 auto;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:stretch}#glfwhome{line-height:64px;padding-right:48px;color:#666;font-size:2.5em;background:url("https://www.glfw.org/css/arrow.png") no-repeat right}.glfwnavbar{list-style-type:none;margin:0 0 0 auto;float:right}#glfwhome,.glfwnavbar li{float:left}.glfwnavbar a,.glfwnavbar a:visited{line-height:64px;margin-left:2em;display:block;color:#666}.glfwnavbar{padding-left:0}#glfwhome,.glfwnavbar a,.glfwnavbar a:visited{transition:.35s ease}#titlearea,.footer{color:#666}address.footer{text-align:center;padding:2em;margin-top:3em}#top{background:#666}#main-nav{max-width:960px;margin:0 auto;font-size:13px}#main-menu{max-width:920px;margin:0 auto;font-size:13px}.memtitle{display:none}.memproto,.memname{font-weight:bold;text-shadow:none}#main-menu{min-height:36px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:stretch}#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li{color:#f2f2f2}#main-menu li ul.sm-nowrap li a{color:#4d4d4d}#main-menu li ul.sm-nowrap li a:hover{color:#f60}#main-menu>li:last-child{margin:0 0 0 auto}.contents{min-height:590px}div.contents,div.header{max-width:920px;margin:0 auto;padding:0 32px;background:#fff none}table.doxtable th,table.markdownTable th,dl.reflist dt{background:linear-gradient(to bottom, #ffa733 0%, #ff6600 100%);box-shadow:inset 0 0 32px #f60;text-shadow:0 -1px 1px #b34700;text-align:left;color:#fff}dl.reflist dt a.el{color:#f60;padding:.2em;border-radius:4px;background-color:#ffe0cc}div.toc{float:none;width:auto}div.toc h3{font-size:1.17em}div.toc ul{padding-left:1.5em}div.toc li{font-size:1em;padding-left:0;list-style-type:disc}div.toc,.memproto,div.qindex,div.ah{background:linear-gradient(to bottom, #f2f2f2 0%, #e6e6e6 100%);box-shadow:inset 0 0 32px #e6e6e6;text-shadow:0 1px 1px #fff;color:#1a1a1a;border:2px solid #e6e6e6;border-radius:4px}.paramname{color:#803300}dl.reflist dt{border:2px solid #f60;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:none}dl.reflist dd{border:2px solid #f60;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top:none}table.doxtable,table.markdownTable{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,#main-menu a:hover,span.lineno a:hover{color:#f60;text-decoration:none}div.directory{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}hr,.memSeparator{height:2px;background:linear-gradient(to right, #f2f2f2 0%, #d9d9d9 50%, #f2f2f2 100%)}dl.note,dl.pre,dl.post,dl.invariant{background:linear-gradient(to bottom, #ddfad1 0%, #cbf7ba 100%);box-shadow:inset 0 0 32px #baf5a3;color:#1e5309;border:2px solid #afe699}dl.warning,dl.attention{background:linear-gradient(to bottom, #fae8d1 0%, #f7ddba 100%);box-shadow:inset 0 0 32px #f5d1a3;color:#533309;border:2px solid #e6c499}dl.deprecated,dl.bug{background:linear-gradient(to bottom, #fad1e3 0%, #f7bad6 100%);box-shadow:inset 0 0 32px #f5a3c8;color:#53092a;border:2px solid #e699bb}dl.todo,dl.test{background:linear-gradient(to bottom, #d1ecfa 0%, #bae3f7 100%);box-shadow:inset 0 0 32px #a3daf5;color:#093a53;border:2px solid #99cce6}dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test{border-radius:4px;padding:1em;text-shadow:0 1px 1px #fff;margin:1em 0}.note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited{color:inherit}div.line{line-height:inherit}div.fragment,pre.fragment{background:#f2f2f2;border-radius:4px;border:none;padding:1em;overflow:auto;border-left:4px solid #ccc;margin:1em 0}.lineno a,.lineno a:visited,.line,pre.fragment{color:#4d4d4d}span.preprocessor,span.comment{color:#007899}a.code,a.code:visited{color:#e64500}span.keyword,span.keywordtype,span.keywordflow{color:#404040;font-weight:bold}span.stringliteral{color:#360099}code{padding:.1em;border-radius:4px}/*# sourceMappingURL=extra.css.map */ diff --git a/external/glfw-3.3.4/docs/extra.css.map b/external/glfw-3.3.4/docs/extra.css.map new file mode 100644 index 0000000..7d10c5e --- /dev/null +++ b/external/glfw-3.3.4/docs/extra.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["extra.scss"],"names":[],"mappings":"AA8EA,4GACI,gBACA,iBAGJ,yBACC,yDAGD,6HACC,sDAGD,yIACC,sDAGD,mBACI,WA9EuB,KA+EvB,iBAGJ,uBACC,MAzFoB,QA0FjB,iBAGJ,6UACC,gBAGD,mJACC,YAGD,yHACC,iBAGD,sBACC,gBAGD,4LACC,UAGD,yCACC,aAGD,kMACC,WAnHgC,QAsHjC,KACC,MA1HoB,QA6HrB,sDACC,MA/Ge,QAgHf,mBAGD,GACE,iBACA,eAGF,GACE,iBACA,gBACA,eAGF,GACE,iBACA,gBACA,eAGF,YACC,eACA,gBACA,gBACA,eACA,cAEA,aACA,mBACA,eACA,2BACA,mBACA,sBAGD,UACC,iBACA,mBACA,MA/J0B,KAgK1B,gBACA,qEAGD,YACC,qBACA,kBACA,YAGD,yBACC,WAGD,oCACC,iBACA,gBACA,cACA,MAlL0B,KAqL3B,YACC,eAGD,8CACC,qBAGD,mBACC,MA9L0B,KAiM3B,eACC,kBACA,YACA,eAGD,KACC,WAxM0B,KA2M3B,UACC,gBACA,cACA,eAGD,WACC,gBACA,cACA,eAGD,UACI,aAGJ,mBACI,iBACA,iBAGJ,WACC,gBACA,aACA,mBACA,eACA,2BACA,mBACA,sBAGD,mEACC,MA9OgC,QAiPjC,gCACC,MArPoB,QAwPrB,sCACC,MAjOoB,KAoOrB,yBACC,kBAGD,UACC,iBAGD,wBACC,gBACA,cACA,eACA,qBAGD,uDACC,gEACA,+BACA,+BACA,gBACA,MArPgB,KAwPjB,mBACC,MA5PoB,KA6PpB,aACA,kBACA,yBAGD,QACC,WACA,WAGD,WACC,iBAGD,WACC,mBAGD,WACC,cACA,eACA,qBAGD,oCACC,gEACA,kCACA,2BACA,MAlSe,QAmSf,yBACA,kBAGD,WACC,MA3QuB,QA8QxB,cACC,sBACA,2BACA,4BACA,mBAGD,cACC,sBACA,+BACA,8BACA,gBAGD,mCACC,wBACA,iBACA,sBACA,kBAGD,gIACC,MAxToB,KAyTpB,qBAGD,cACC,wBACA,iBACA,sBACA,kBAGD,iBACC,WACA,4EAGD,oCApSC,gEACA,kCACA,cACA,yBAqSD,wBAxSC,gEACA,kCACA,cACA,yBAySD,qBA5SC,gEACA,kCACA,cACA,yBA6SD,gBAhTC,gEACA,kCACA,cACA,yBAiTD,iGACC,kBACA,YACA,2BACA,aAGD,kRACC,cAGD,SACC,oBAGD,0BACC,mBACA,kBACA,YACA,YACA,cACA,2BACA,aAGD,+CACC,MA1YoB,QA6YrB,+BACC,cAGD,sBACC,cAGD,+CACC,cACA,iBAGD,mBACC,cAGD,KACC,aACA","file":"extra.css"} \ No newline at end of file diff --git a/external/glfw-3.3.4/docs/extra.scss b/external/glfw-3.3.4/docs/extra.scss new file mode 100644 index 0000000..6c5f3c2 --- /dev/null +++ b/external/glfw-3.3.4/docs/extra.scss @@ -0,0 +1,430 @@ +// NOTE: Please use this file to perform modifications on default style sheets. +// +// You need to install the official Sass CLI tool: +// npm install -g sass +// +// Run this command to regenerate extra.css after you're finished with changes: +// sass --style=compressed extra.scss extra.css +// +// Alternatively you can use online services to regenerate extra.css. + + +// Default text color for page contents +$default-text-color: hsl(0,0%,30%); + +// Page header, footer, table rows, inline codes and definition lists +$header-footer-background-color: hsl(0,0%,95%); + +// Page header, footer links and navigation bar background +$header-footer-link-color: hsl(0,0%,40%); + +// Doxygen navigation bar links +$navbar-link-color: $header-footer-background-color; + +// Page content background color +$content-background-color: hsl(0,0%,100%); + +// Bold, italic, h1, h2, ... and table of contents +$heading-color: hsl(0,0%,10%); + +// Function, enum and macro definition separator +$def-separator-color: $header-footer-background-color; + +// Base color hue +$base-hue: 24; + +// Default color used for links +$default-link-color: hsl($base-hue,100%,50%); + +// Doxygen navigation bar active tab +$tab-text-color: hsl(0,0%,100%); +$tab-background-color1: $default-link-color; +$tab-background-color2: lighten(adjust-hue($tab-background-color1, 10), 10%); + +// Table borders +$default-border-color: $default-link-color; + +// Table header +$table-text-color: $tab-text-color; +$table-background-color1: $tab-background-color1; +$table-background-color2: $tab-background-color2; + +// Table of contents, data structure index and prototypes +$toc-background-color1: hsl(0,0%,90%); +$toc-background-color2: lighten($toc-background-color1, 5%); + +// Function prototype parameters color +$prototype-param-color: darken($default-link-color, 25%); + +// Message box color: note, pre, post and invariant +$box-note-color: hsl(103,80%,85%); + +// Message box color: warning and attention +$box-warning-color: hsl(34,80%,85%); + +// Message box color: deprecated and bug +$box-bug-color: hsl(333,80%,85%); + +// Message box color: todo and test +$box-todo-color: hsl(200,80%,85%); + +// Message box helper function +@mixin message-box($base-color){ + background:linear-gradient(to bottom,lighten($base-color, 5%) 0%,$base-color 100%); + box-shadow:inset 0 0 32px darken($base-color, 5%); + color:darken($base-color, 67%); + border:2px solid desaturate(darken($base-color, 10%), 20%); +} + +.sm-dox,.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted,.sm-dox ul a:hover { + background:none; + text-shadow:none; +} + +.sm-dox a span.sub-arrow { + border-color:$navbar-link-color transparent transparent transparent; +} + +.sm-dox a span.sub-arrow:active,.sm-dox a span.sub-arrow:focus,.sm-dox a span.sub-arrow:hover,.sm-dox a:hover span.sub-arrow { + border-color:$default-link-color transparent transparent transparent; +} + +.sm-dox ul a span.sub-arrow:active,.sm-dox ul a span.sub-arrow:focus,.sm-dox ul a span.sub-arrow:hover,.sm-dox ul a:hover span.sub-arrow { + border-color:transparent transparent transparent $default-link-color; +} + +.sm-dox ul a:hover { + background:$header-footer-link-color; + text-shadow:none; +} + +.sm-dox ul.sm-nowrap a { + color:$default-text-color; + text-shadow:none; +} + +#main-nav,#main-menu,#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.memdoc,dl.reflist dd,div.toc li,.ah,span.lineno,span.lineno a,span.lineno a:hover,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,.doxtable code,.markdownTable code { + background:none; +} + +#titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,table.markdownTable td,table.markdownTable th,hr,.memSeparator { + border:none; +} + +#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li,.reflist dt a.el,.levels span,.directory .levels span { + text-shadow:none; +} + +.memdoc,dl.reflist dd { + box-shadow:none; +} + +div.headertitle,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,table.doxtable code,table.markdownTable code { + padding:0; +} + +#nav-path,.directory .levels,span.lineno { + display:none; +} + +html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),tr.markdownTableBody:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code,.markdownTableRowEven { + background:$header-footer-background-color; +} + +body { + color:$default-text-color; +} + +h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em { + color:$heading-color; + border-bottom:none; +} + +h1 { + padding-top:0.5em; + font-size:180%; +} + +h2 { + padding-top:0.5em; + margin-bottom:0; + font-size:140%; +} + +h3 { + padding-top:0.5em; + margin-bottom:0; + font-size:110%; +} + +.glfwheader { + font-size:16px; + min-height:64px; + max-width:920px; + padding:0 32px; + margin:0 auto; + + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + align-items: center; + align-content: stretch; +} + +#glfwhome { + line-height:64px; + padding-right:48px; + color:$header-footer-link-color; + font-size:2.5em; + background:url("https://www.glfw.org/css/arrow.png") no-repeat right; +} + +.glfwnavbar { + list-style-type:none; + margin:0 0 0 auto; + float:right; +} + +#glfwhome,.glfwnavbar li { + float:left; +} + +.glfwnavbar a,.glfwnavbar a:visited { + line-height:64px; + margin-left:2em; + display:block; + color:$header-footer-link-color; +} + +.glfwnavbar { + padding-left: 0; +} + +#glfwhome,.glfwnavbar a,.glfwnavbar a:visited { + transition:.35s ease; +} + +#titlearea,.footer { + color:$header-footer-link-color; +} + +address.footer { + text-align:center; + padding:2em; + margin-top:3em; +} + +#top { + background:$header-footer-link-color; +} + +#main-nav { + max-width:960px; + margin:0 auto; + font-size:13px; +} + +#main-menu { + max-width:920px; + margin:0 auto; + font-size:13px; +} + +.memtitle { + display:none; +} + +.memproto,.memname { + font-weight:bold; + text-shadow:none; +} + +#main-menu { + min-height:36px; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-start; + align-items: center; + align-content: stretch; +} + +#main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li { + color:$navbar-link-color; +} + +#main-menu li ul.sm-nowrap li a { + color:$default-text-color; +} + +#main-menu li ul.sm-nowrap li a:hover { + color:$default-link-color; +} + +#main-menu > li:last-child { + margin: 0 0 0 auto; +} + +.contents { + min-height:590px; +} + +div.contents,div.header { + max-width:920px; + margin:0 auto; + padding:0 32px; + background:$content-background-color none; +} + +table.doxtable th,table.markdownTable th,dl.reflist dt { + background:linear-gradient(to bottom,$table-background-color2 0%,$table-background-color1 100%); + box-shadow:inset 0 0 32px $table-background-color1; + text-shadow:0 -1px 1px darken($table-background-color1, 15%); + text-align:left; + color:$table-text-color; +} + +dl.reflist dt a.el { + color:$default-link-color; + padding:.2em; + border-radius:4px; + background-color:lighten($default-link-color, 40%); +} + +div.toc { + float:none; + width:auto; +} + +div.toc h3 { + font-size:1.17em; +} + +div.toc ul { + padding-left:1.5em; +} + +div.toc li { + font-size:1em; + padding-left:0; + list-style-type:disc; +} + +div.toc,.memproto,div.qindex,div.ah { + background:linear-gradient(to bottom,$toc-background-color2 0%,$toc-background-color1 100%); + box-shadow:inset 0 0 32px $toc-background-color1; + text-shadow:0 1px 1px lighten($toc-background-color2, 10%); + color:$heading-color; + border:2px solid $toc-background-color1; + border-radius:4px; +} + +.paramname { + color:$prototype-param-color; +} + +dl.reflist dt { + border:2px solid $default-border-color; + border-top-left-radius:4px; + border-top-right-radius:4px; + border-bottom:none; +} + +dl.reflist dd { + border:2px solid $default-border-color; + border-bottom-right-radius:4px; + border-bottom-left-radius:4px; + border-top:none; +} + +table.doxtable,table.markdownTable { + border-collapse:inherit; + border-spacing:0; + border:2px solid $default-border-color; + border-radius:4px; +} + +a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,#main-menu a:hover,span.lineno a:hover { + color:$default-link-color; + text-decoration:none; +} + +div.directory { + border-collapse:inherit; + border-spacing:0; + border:2px solid $default-border-color; + border-radius:4px; +} + +hr,.memSeparator { + height:2px; + background:linear-gradient(to right,$def-separator-color 0%,darken($def-separator-color, 10%) 50%,$def-separator-color 100%); +} + +dl.note,dl.pre,dl.post,dl.invariant { + @include message-box($box-note-color); +} + +dl.warning,dl.attention { + @include message-box($box-warning-color); +} + +dl.deprecated,dl.bug { + @include message-box($box-bug-color); +} + +dl.todo,dl.test { + @include message-box($box-todo-color); +} + +dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test { + border-radius:4px; + padding:1em; + text-shadow:0 1px 1px hsl(0,0%,100%); + margin:1em 0; +} + +.note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited { + color:inherit; +} + +div.line { + line-height:inherit; +} + +div.fragment,pre.fragment { + background:hsl(0,0%,95%); + border-radius:4px; + border:none; + padding:1em; + overflow:auto; + border-left:4px solid hsl(0,0%,80%); + margin:1em 0; +} + +.lineno a,.lineno a:visited,.line,pre.fragment { + color:$default-text-color; +} + +span.preprocessor,span.comment { + color:hsl(193,100%,30%); +} + +a.code,a.code:visited { + color:hsl(18,100%,45%); +} + +span.keyword,span.keywordtype,span.keywordflow { + color:darken($default-text-color, 5%); + font-weight:bold; +} + +span.stringliteral { + color:hsl(261,100%,30%); +} + +code { + padding:.1em; + border-radius:4px; +} diff --git a/external/GLFW/docs/footer.html b/external/glfw-3.3.4/docs/footer.html similarity index 100% rename from external/GLFW/docs/footer.html rename to external/glfw-3.3.4/docs/footer.html diff --git a/external/glfw-3.3.4/docs/header.html b/external/glfw-3.3.4/docs/header.html new file mode 100644 index 0000000..4cefa3d --- /dev/null +++ b/external/glfw-3.3.4/docs/header.html @@ -0,0 +1,34 @@ + + + + + + + +$projectname: $title +$title + + + +$treeview +$search +$mathjax + +$extrastylesheet + + +
+ + + + + diff --git a/external/glm/doc/api/bc_s.png b/external/glfw-3.3.4/docs/html/bc_s.png similarity index 100% rename from external/glm/doc/api/bc_s.png rename to external/glfw-3.3.4/docs/html/bc_s.png diff --git a/external/glm/doc/api/bdwn.png b/external/glfw-3.3.4/docs/html/bdwn.png similarity index 100% rename from external/glm/doc/api/bdwn.png rename to external/glfw-3.3.4/docs/html/bdwn.png diff --git a/external/glfw-3.3.4/docs/html/bug.html b/external/glfw-3.3.4/docs/html/bug.html new file mode 100644 index 0000000..bbaee2f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/bug.html @@ -0,0 +1,79 @@ + + + + + + + +GLFW: Bug List + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Bug List
+
+
+
+
Page Window guide
+
On some Linux systems, creating contexts via both the native and EGL APIs in a single process will cause the application to segfault. Stick to one API or the other on Linux for now.
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/build_8dox.html b/external/glfw-3.3.4/docs/html/build_8dox.html new file mode 100644 index 0000000..9ee80ab --- /dev/null +++ b/external/glfw-3.3.4/docs/html/build_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: build.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
build.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/build_guide.html b/external/glfw-3.3.4/docs/html/build_guide.html new file mode 100644 index 0000000..8509ce9 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/build_guide.html @@ -0,0 +1,192 @@ + + + + + + + +GLFW: Building applications + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Building applications
+
+
+ +

This is about compiling and linking applications that use GLFW. For information on how to write such applications, start with the introductory tutorial. For information on how to compile the GLFW library itself, see Compiling GLFW.

+

This is not a tutorial on compilation or linking. It assumes basic understanding of how to compile and link a C program as well as how to use the specific compiler of your chosen development environment. The compilation and linking process should be explained in your C programming material and in the documentation for your development environment.

+

+Including the GLFW header file

+

You should include the GLFW header in the source files where you use OpenGL or GLFW.

+
#include <GLFW/glfw3.h>
+
The header of the GLFW 3 API.
+

This header defines all the constants and declares all the types and function prototypes of the GLFW API. By default it also includes the OpenGL header from your development environment. See option macros below for how to select OpenGL ES headers and more.

+

The GLFW header also defines any platform-specific macros needed by your OpenGL header, so that it can be included without needing any window system headers.

+

It does this only when needed, so if window system headers are included, the GLFW header does not try to redefine those symbols. The reverse is not true, i.e. windows.h cannot cope if any Win32 symbols have already been defined.

+

In other words:

+
    +
  • Use the GLFW header to include OpenGL or OpenGL ES headers portably
  • +
  • Do not include window system headers unless you will use those APIs directly
  • +
  • If you do need such headers, include them before the GLFW header
  • +
+

If you are using an OpenGL extension loading library such as glad, the extension loader header should be included before the GLFW one. GLFW attempts to detect any OpenGL or OpenGL ES header or extension loader header included before it and will then disable the inclusion of the default OpenGL header. Most extension loaders also define macros that disable similar headers below it.

+
#include <glad/gl.h>
+
#include <GLFW/glfw3.h>
+

Both of these mechanisms depend on the extension loader header defining a known macro. If yours doesn't or you don't know which one your users will pick, the GLFW_INCLUDE_NONE macro will explicitly to prevent the GLFW header from including the OpenGL header. This will also allow you to include the two headers in any order.

+
#define GLFW_INCLUDE_NONE
+
#include <GLFW/glfw3.h>
+
#include <glad/gl.h>
+

+GLFW header option macros

+

These macros may be defined before the inclusion of the GLFW header and affect its behavior.

+

GLFW_DLL is required on Windows when using the GLFW DLL, to tell the compiler that the GLFW functions are defined in a DLL.

+

The following macros control which OpenGL or OpenGL ES API header is included. Only one of these may be defined at a time.

+
Note
GLFW does not provide any of the API headers mentioned below. They are provided by your development environment or your OpenGL, OpenGL ES or Vulkan SDK, and most of them can be downloaded from the Khronos Registry.
+

GLFW_INCLUDE_GLCOREARB makes the GLFW header include the modern GL/glcorearb.h header (OpenGL/gl3.h on macOS) instead of the regular OpenGL header.

+

GLFW_INCLUDE_ES1 makes the GLFW header include the OpenGL ES 1.x GLES/gl.h header instead of the regular OpenGL header.

+

GLFW_INCLUDE_ES2 makes the GLFW header include the OpenGL ES 2.0 GLES2/gl2.h header instead of the regular OpenGL header.

+

GLFW_INCLUDE_ES3 makes the GLFW header include the OpenGL ES 3.0 GLES3/gl3.h header instead of the regular OpenGL header.

+

GLFW_INCLUDE_ES31 makes the GLFW header include the OpenGL ES 3.1 GLES3/gl31.h header instead of the regular OpenGL header.

+

GLFW_INCLUDE_ES32 makes the GLFW header include the OpenGL ES 3.2 GLES3/gl32.h header instead of the regular OpenGL header.

+

GLFW_INCLUDE_NONE makes the GLFW header not include any OpenGL or OpenGL ES API header. This is useful in combination with an extension loading library.

+

If none of the above inclusion macros are defined, the standard OpenGL GL/gl.h header (OpenGL/gl.h on macOS) is included, unless GLFW detects the inclusion guards of any OpenGL, OpenGL ES or extension loader header it knows about.

+

The following macros control the inclusion of additional API headers. Any number of these may be defined simultaneously, and/or together with one of the above macros.

+

GLFW_INCLUDE_VULKAN makes the GLFW header include the Vulkan vulkan/vulkan.h header in addition to any selected OpenGL or OpenGL ES header.

+

GLFW_INCLUDE_GLEXT makes the GLFW header include the appropriate extension header for the OpenGL or OpenGL ES header selected above after and in addition to that header.

+

GLFW_INCLUDE_GLU makes the header include the GLU header in addition to the header selected above. This should only be used with the standard OpenGL header and only for compatibility with legacy code. GLU has been deprecated and should not be used in new code.

+
Note
None of these macros may be defined during the compilation of GLFW itself. If your build includes GLFW and you define any these in your build files, make sure they are not applied to the GLFW sources.
+

+Link with the right libraries

+

GLFW is essentially a wrapper of various platform-specific APIs and therefore needs to link against many different system libraries. If you are using GLFW as a shared library / dynamic library / DLL then it takes care of these links. However, if you are using GLFW as a static library then your executable will need to link against these libraries.

+

On Windows and macOS, the list of system libraries is static and can be hard-coded into your build environment. See the section for your development environment below. On Linux and other Unix-like operating systems, the list varies but can be retrieved in various ways as described below.

+

A good general introduction to linking is Beginner's Guide to Linkers by David Drysdale.

+

+With MinGW or Visual C++ on Windows

+

The static version of the GLFW library is named glfw3. When using this version, it is also necessary to link with some libraries that GLFW uses.

+

When using MinGW to link an application with the static version of GLFW, you must also explicitly link with gdi32. Other toolchains including MinGW-w64 include it in the set of default libraries along with other dependencies like user32 and kernel32.

+

The link library for the GLFW DLL is named glfw3dll. When compiling an application that uses the DLL version of GLFW, you need to define the GLFW_DLL macro before any inclusion of the GLFW header. This can be done either with a compiler switch or by defining it in your source code.

+

+With CMake and GLFW source

+

This section is about using CMake to compile and link GLFW along with your application. If you want to use an installed binary instead, see With CMake and installed GLFW binaries.

+

With a few changes to your CMakeLists.txt you can have the GLFW source tree built along with your application.

+

When including GLFW as part of your build, you probably don't want to build the GLFW tests, examples and documentation. To disable these, set the corresponding cache variables before adding the GLFW source tree.

+
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
+
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
+
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
+

Add the root directory of the GLFW source tree to your project. This will add the glfw target to your project.

+
add_subdirectory(path/to/glfw)
+

Once GLFW has been added, link your application against the glfw target. This adds the GLFW library and its link-time dependencies as it is currently configured, the include directory for the GLFW header and, when applicable, the GLFW_DLL macro.

+
target_link_libraries(myapp glfw)
+

Note that the glfw target does not depend on OpenGL, as GLFW loads any OpenGL, OpenGL ES or Vulkan libraries it needs at runtime. If your application calls OpenGL directly, instead of using a modern extension loader library, use the OpenGL CMake package.

+
find_package(OpenGL REQUIRED)
+

If OpenGL is found, the OpenGL::GL target is added to your project, containing library and include directory paths. Link against this like any other library.

+
target_link_libraries(myapp OpenGL::GL)
+

For a minimal example of a program and GLFW sources built with CMake, see the GLFW CMake Starter on GitHub.

+

+With CMake and installed GLFW binaries

+

This section is about using CMake to link GLFW after it has been built and installed. If you want to build it along with your application instead, see With CMake and GLFW source.

+

With a few changes to your CMakeLists.txt you can locate the package and target files generated when GLFW is installed.

+
find_package(glfw3 3.3 REQUIRED)
+

Once GLFW has been added to the project, link against it with the glfw target. This adds the GLFW library and its link-time dependencies, the include directory for the GLFW header and, when applicable, the GLFW_DLL macro.

+
target_link_libraries(myapp glfw)
+

Note that the glfw target does not depend on OpenGL, as GLFW loads any OpenGL, OpenGL ES or Vulkan libraries it needs at runtime. If your application calls OpenGL directly, instead of using a modern extension loader library, use the OpenGL CMake package.

+
find_package(OpenGL REQUIRED)
+

If OpenGL is found, the OpenGL::GL target is added to your project, containing library and include directory paths. Link against this like any other library.

+
target_link_libraries(myapp OpenGL::GL)
+

+With makefiles and pkg-config on Unix

+

GLFW supports pkg-config, and the glfw3.pc pkg-config file is generated when the GLFW library is built and is installed along with it. A pkg-config file describes all necessary compile-time and link-time flags and dependencies needed to use a library. When they are updated or if they differ between systems, you will get the correct ones automatically.

+

A typical compile and link command-line when using the static version of the GLFW library may look like this:

+
cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --static --libs glfw3)
+

If you are using the shared version of the GLFW library, omit the --static flag.

+
cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --libs glfw3)
+

You can also use the glfw3.pc file without installing it first, by using the PKG_CONFIG_PATH environment variable.

+
env PKG_CONFIG_PATH=path/to/glfw/src cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --libs glfw3)
+

The dependencies do not include OpenGL, as GLFW loads any OpenGL, OpenGL ES or Vulkan libraries it needs at runtime. If your application calls OpenGL directly, instead of using a modern extension loader library, you should add the gl pkg-config package.

+
cc $(pkg-config --cflags glfw3 gl) -o myprog myprog.c $(pkg-config --libs glfw3 gl)
+

+With Xcode on macOS

+

If you are using the dynamic library version of GLFW, add it to the project dependencies.

+

If you are using the static library version of GLFW, add it and the Cocoa, OpenGL and IOKit frameworks to the project as dependencies. They can all be found in /System/Library/Frameworks.

+

+With command-line on macOS

+

It is recommended that you use pkg-config when building from the command line on macOS. That way you will get any new dependencies added automatically. If you still wish to build manually, you need to add the required frameworks and libraries to your command-line yourself using the -l and -framework switches.

+

If you are using the dynamic GLFW library, which is named libglfw.3.dylib, do:

+
cc -o myprog myprog.c -lglfw -framework Cocoa -framework OpenGL -framework IOKit
+

If you are using the static library, named libglfw3.a, substitute -lglfw3 for -lglfw.

+

Note that you do not add the .framework extension to a framework when linking against it from the command-line.

+
Note
Your machine may have libGL.*.dylib style OpenGL library, but that is for the X Window System and will not work with the macOS native version of GLFW.
+
+
+ + + diff --git a/external/glm/doc/api/closed.png b/external/glfw-3.3.4/docs/html/closed.png similarity index 100% rename from external/glm/doc/api/closed.png rename to external/glfw-3.3.4/docs/html/closed.png diff --git a/external/glfw-3.3.4/docs/html/compat_8dox.html b/external/glfw-3.3.4/docs/html/compat_8dox.html new file mode 100644 index 0000000..f76ccf2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/compat_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: compat.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
compat.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/compat_guide.html b/external/glfw-3.3.4/docs/html/compat_guide.html new file mode 100644 index 0000000..2d0cc66 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/compat_guide.html @@ -0,0 +1,145 @@ + + + + + + + +GLFW: Standards conformance + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Standards conformance
+
+
+ +

This guide describes the various API extensions used by this version of GLFW. It lists what are essentially implementation details, but which are nonetheless vital knowledge for developers intending to deploy their applications on a wide range of machines.

+

The information in this guide is not a part of GLFW API, but merely preconditions for some parts of the library to function on a given machine. Any part of this information may change in future versions of GLFW and that will not be considered a breaking API change.

+

+X11 extensions, protocols and IPC standards

+

As GLFW uses Xlib directly, without any intervening toolkit library, it has sole responsibility for interacting well with the many and varied window managers in use on Unix-like systems. In order for applications and window managers to work well together, a number of standards and conventions have been developed that regulate behavior outside the scope of the X11 API; most importantly the Inter-Client Communication Conventions Manual (ICCCM) and Extended Window Manager Hints (EWMH) standards.

+

GLFW uses the _MOTIF_WM_HINTS window property to support borderless windows. If the running window manager does not support this property, the GLFW_DECORATED hint will have no effect.

+

GLFW uses the ICCCM WM_DELETE_WINDOW protocol to intercept the user attempting to close the GLFW window. If the running window manager does not support this protocol, the close callback will never be called.

+

GLFW uses the EWMH _NET_WM_PING protocol, allowing the window manager notify the user when the application has stopped responding, i.e. when it has ceased to process events. If the running window manager does not support this protocol, the user will not be notified if the application locks up.

+

GLFW uses the EWMH _NET_WM_STATE_FULLSCREEN window state to tell the window manager to make the GLFW window full screen. If the running window manager does not support this state, full screen windows may not work properly. GLFW has a fallback code path in case this state is unavailable, but every window manager behaves slightly differently in this regard.

+

GLFW uses the EWMH _NET_WM_BYPASS_COMPOSITOR window property to tell a compositing window manager to un-redirect full screen GLFW windows. If the running window manager uses compositing but does not support this property then additional copying may be performed for each buffer swap of full screen windows.

+

GLFW uses the clipboard manager protocol to push a clipboard string (i.e. selection) owned by a GLFW window about to be destroyed to the clipboard manager. If there is no running clipboard manager, the clipboard string will be unavailable once the window has been destroyed.

+

GLFW uses the X drag-and-drop protocol to provide file drop events. If the application originating the drag does not support this protocol, drag and drop will not work.

+

GLFW uses the XRandR 1.3 extension to provide multi-monitor support. If the running X server does not support this version of this extension, multi-monitor support will not function and only a single, desktop-spanning monitor will be reported.

+

GLFW uses the XRandR 1.3 and Xf86vidmode extensions to provide gamma ramp support. If the running X server does not support either or both of these extensions, gamma ramp support will not function.

+

GLFW uses the Xkb extension and detectable auto-repeat to provide keyboard input. If the running X server does not support this extension, a non-Xkb fallback path is used.

+

GLFW uses the XInput2 extension to provide raw, non-accelerated mouse motion when the cursor is disabled. If the running X server does not support this extension, regular accelerated mouse motion will be used.

+

GLFW uses both the XRender extension and the compositing manager to support transparent window framebuffers. If the running X server does not support this extension or there is no running compositing manager, the GLFW_TRANSPARENT_FRAMEBUFFER framebuffer hint will have no effect.

+

+Wayland protocols and IPC standards

+

As GLFW uses libwayland directly, without any intervening toolkit library, it has sole responsibility for interacting well with every compositor in use on Unix-like systems. Most of the features are provided by the core protocol, while cursor support is provided by the libwayland-cursor helper library, EGL integration by libwayland-egl, and keyboard handling by libxkbcommon. In addition, GLFW uses some protocols from wayland-protocols to provide additional features if the compositor supports them.

+

GLFW uses xkbcommon 0.5.0 to provide compose key support. When it has been built against an older xkbcommon, the compose key will be disabled even if it has been configured in the compositor.

+

GLFW uses the xdg-shell protocol to provide better window management. This protocol is part of wayland-protocols 1.12, and mandatory at build time. If the running compositor does not support this protocol, the older wl_shell interface will be used instead. This will result in a worse integration with the desktop, especially on tiling compositors.

+

GLFW uses the relative pointer protocol alongside the pointer constraints protocol to implement disabled cursor. These two protocols are part of wayland-protocols 1.1, and mandatory at build time. If the running compositor does not support both of these protocols, disabling the cursor will have no effect.

+

GLFW uses the idle inhibit protocol to prohibit the screensaver from starting. This protocol is part of wayland-protocols 1.6, and mandatory at build time. If the running compositor does not support this protocol, the screensaver may start even for full screen windows.

+

GLFW uses the xdg-decoration protocol to request decorations to be drawn around its windows. This protocol is part of wayland-protocols 1.15, and mandatory at build time. If the running compositor does not support this protocol, a very simple frame will be drawn by GLFW itself, using the viewporter protocol alongside subsurfaces. This protocol is part of wayland-protocols 1.4, and mandatory at build time. If the running compositor does not support this protocol either, no decorations will be drawn around windows.

+

+GLX extensions

+

The GLX API is the default API used to create OpenGL contexts on Unix-like systems using the X Window System.

+

GLFW uses the GLX 1.3 GLXFBConfig functions to enumerate and select framebuffer pixel formats. If GLX 1.3 is not supported, glfwInit will fail.

+

GLFW uses the GLX_MESA_swap_control, GLX_EXT_swap_control and GLX_SGI_swap_control extensions to provide vertical retrace synchronization (or vsync), in that order of preference. Where none of these extension are available, calling glfwSwapInterval will have no effect.

+

GLFW uses the GLX_ARB_multisample extension to create contexts with multisampling anti-aliasing. Where this extension is unavailable, the GLFW_SAMPLES hint will have no effect.

+

GLFW uses the GLX_ARB_create_context extension when available, even when creating OpenGL contexts of version 2.1 and below. Where this extension is unavailable, the GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR hints will only be partially supported, the GLFW_OPENGL_DEBUG_CONTEXT hint will have no effect, and setting the GLFW_OPENGL_PROFILE or GLFW_OPENGL_FORWARD_COMPAT hints to GLFW_TRUE will cause glfwCreateWindow to fail.

+

GLFW uses the GLX_ARB_create_context_profile extension to provide support for context profiles. Where this extension is unavailable, setting the GLFW_OPENGL_PROFILE hint to anything but GLFW_OPENGL_ANY_PROFILE, or setting GLFW_CLIENT_API to anything but GLFW_OPENGL_API or GLFW_NO_API will cause glfwCreateWindow to fail.

+

GLFW uses the GLX_ARB_context_flush_control extension to provide control over whether a context is flushed when it is released (made non-current). Where this extension is unavailable, the GLFW_CONTEXT_RELEASE_BEHAVIOR hint will have no effect and the context will always be flushed when released.

+

GLFW uses the GLX_ARB_framebuffer_sRGB and GLX_EXT_framebuffer_sRGB extensions to provide support for sRGB framebuffers. Where both of these extensions are unavailable, the GLFW_SRGB_CAPABLE hint will have no effect.

+

+WGL extensions

+

The WGL API is used to create OpenGL contexts on Microsoft Windows and other implementations of the Win32 API, such as Wine.

+

GLFW uses either the WGL_EXT_extension_string or the WGL_ARB_extension_string extension to check for the presence of all other WGL extensions listed below. If both are available, the EXT one is preferred. If neither is available, no other extensions are used and many GLFW features related to context creation will have no effect or cause errors when used.

+

GLFW uses the WGL_EXT_swap_control extension to provide vertical retrace synchronization (or vsync). Where this extension is unavailable, calling glfwSwapInterval will have no effect.

+

GLFW uses the WGL_ARB_pixel_format and WGL_ARB_multisample extensions to create contexts with multisampling anti-aliasing. Where these extensions are unavailable, the GLFW_SAMPLES hint will have no effect.

+

GLFW uses the WGL_ARB_create_context extension when available, even when creating OpenGL contexts of version 2.1 and below. Where this extension is unavailable, the GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR hints will only be partially supported, the GLFW_OPENGL_DEBUG_CONTEXT hint will have no effect, and setting the GLFW_OPENGL_PROFILE or GLFW_OPENGL_FORWARD_COMPAT hints to GLFW_TRUE will cause glfwCreateWindow to fail.

+

GLFW uses the WGL_ARB_create_context_profile extension to provide support for context profiles. Where this extension is unavailable, setting the GLFW_OPENGL_PROFILE hint to anything but GLFW_OPENGL_ANY_PROFILE will cause glfwCreateWindow to fail.

+

GLFW uses the WGL_ARB_context_flush_control extension to provide control over whether a context is flushed when it is released (made non-current). Where this extension is unavailable, the GLFW_CONTEXT_RELEASE_BEHAVIOR hint will have no effect and the context will always be flushed when released.

+

GLFW uses the WGL_ARB_framebuffer_sRGB and WGL_EXT_framebuffer_sRGB extensions to provide support for sRGB framebuffers. Where both of these extension are unavailable, the GLFW_SRGB_CAPABLE hint will have no effect.

+

+OpenGL on macOS

+

Support for OpenGL 3.2 and above was introduced with OS X 10.7 and even then only forward-compatible, core profile contexts are supported. Support for OpenGL 4.1 was introduced with OS X 10.9, also limited to forward-compatible, core profile contexts. There is also still no mechanism for requesting debug contexts or no-error contexts. Versions of Mac OS X earlier than 10.7 support at most OpenGL version 2.1.

+

Because of this, on OS X 10.7 and later, the GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR hints will cause glfwCreateWindow to fail if given version 3.0 or 3.1. The GLFW_OPENGL_FORWARD_COMPAT hint must be set to GLFW_TRUE and the GLFW_OPENGL_PROFILE hint must be set to GLFW_OPENGL_CORE_PROFILE when creating OpenGL 3.2 and later contexts. The GLFW_OPENGL_DEBUG_CONTEXT and GLFW_CONTEXT_NO_ERROR hints are ignored.

+

Also, on Mac OS X 10.6 and below, the GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR hints will fail if given a version above 2.1, setting the GLFW_OPENGL_PROFILE or GLFW_OPENGL_FORWARD_COMPAT hints to a non-default value will cause glfwCreateWindow to fail and the GLFW_OPENGL_DEBUG_CONTEXT hint is ignored.

+

+Vulkan loader and API

+

By default, GLFW uses the standard system-wide Vulkan loader to access the Vulkan API on all platforms except macOS. This is installed by both graphics drivers and Vulkan SDKs. If either the loader or at least one minimally functional ICD is missing, glfwVulkanSupported will return GLFW_FALSE and all other Vulkan-related functions will fail with an GLFW_API_UNAVAILABLE error.

+

+Vulkan WSI extensions

+

The Vulkan WSI extensions are used to create Vulkan surfaces for GLFW windows on all supported platforms.

+

GLFW uses the VK_KHR_surface and VK_KHR_win32_surface extensions to create surfaces on Microsoft Windows. If any of these extensions are not available, glfwGetRequiredInstanceExtensions will return an empty list and window surface creation will fail.

+

GLFW uses the VK_KHR_surface and either the VK_MVK_macos_surface or VK_EXT_metal_surface extensions to create surfaces on macOS. If any of these extensions are not available, glfwGetRequiredInstanceExtensions will return an empty list and window surface creation will fail.

+

GLFW uses the VK_KHR_surface and either the VK_KHR_xlib_surface or VK_KHR_xcb_surface extensions to create surfaces on X11. If VK_KHR_surface or both VK_KHR_xlib_surface and VK_KHR_xcb_surface are not available, glfwGetRequiredInstanceExtensions will return an empty list and window surface creation will fail.

+

GLFW uses the VK_KHR_surface and VK_KHR_wayland_surface extensions to create surfaces on Wayland. If any of these extensions are not available, glfwGetRequiredInstanceExtensions will return an empty list and window surface creation will fail.

+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/compile_8dox.html b/external/glfw-3.3.4/docs/html/compile_8dox.html new file mode 100644 index 0000000..1649496 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/compile_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: compile.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
compile.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/compile_guide.html b/external/glfw-3.3.4/docs/html/compile_guide.html new file mode 100644 index 0000000..e062115 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/compile_guide.html @@ -0,0 +1,198 @@ + + + + + + + +GLFW: Compiling GLFW + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Compiling GLFW
+
+
+ +

This is about compiling the GLFW library itself. For information on how to build applications that use GLFW, see Building applications.

+

+Using CMake

+

GLFW uses CMake to generate project files or makefiles for a particular development environment. If you are on a Unix-like system such as Linux or FreeBSD or have a package system like Fink, MacPorts, Cygwin or Homebrew, you can install its CMake package. If not, you can download installers for Windows and macOS from the CMake website.

+
Note
CMake only generates project files or makefiles. It does not compile the actual GLFW library. To compile GLFW, first generate these files for your chosen development environment and then use them to compile the actual GLFW library.
+

+Dependencies

+

Once you have installed CMake, make sure that all other dependencies are available. On some platforms, GLFW needs a few additional packages to be installed. See the section for your chosen platform and development environment below.

+

+Dependencies for Visual C++ on Windows

+

The Windows SDK bundled with Visual C++ already contains all the necessary headers, link libraries and tools except for CMake. Move on to Generating build files with CMake.

+

+Dependencies for MinGW or MinGW-w64 on Windows

+

Both the MinGW and the MinGW-w64 packages already contain all the necessary headers, link libraries and tools except for CMake. Move on to Generating build files with CMake.

+

+Dependencies for MinGW or MinGW-w64 cross-compilation

+

Both Cygwin and many Linux distributions have MinGW or MinGW-w64 packages. For example, Cygwin has the mingw64-i686-gcc and mingw64-x86_64-gcc packages for 32- and 64-bit version of MinGW-w64, while Debian GNU/Linux and derivatives like Ubuntu have the mingw-w64 package for both.

+

GLFW has CMake toolchain files in the CMake/ directory that set up cross-compilation of Windows binaries. To use these files you add an option when running cmake to generate the project files or makefiles:

+
cmake -DCMAKE_TOOLCHAIN_FILE=<toolchain-file> .
+

The exact toolchain file to use depends on the prefix used by the MinGW or MinGW-w64 binaries on your system. You can usually see this in the /usr directory. For example, both the Debian/Ubuntu and Cygwin MinGW-w64 packages have /usr/x86_64-w64-mingw32 for the 64-bit compilers, so the correct invocation would be:

+
cmake -DCMAKE_TOOLCHAIN_FILE=CMake/x86_64-w64-mingw32.cmake .
+

For more details see the article CMake Cross Compiling on the CMake wiki.

+

Once you have this set up, move on to Generating build files with CMake.

+

+Dependencies for Xcode on macOS

+

Xcode comes with all necessary tools except for CMake. The required headers and libraries are included in the core macOS frameworks. Xcode can be downloaded from the Mac App Store or from the ADC Member Center.

+

Once you have Xcode installed, move on to Generating build files with CMake.

+

+Dependencies for Linux and X11

+

To compile GLFW for X11, you need to have the X11 packages installed, as well as the basic development tools like GCC and make. For example, on Ubuntu and other distributions based on Debian GNU/Linux, you need to install the xorg-dev package, which pulls in all X.org header packages.

+

Once you have installed the necessary packages, move on to Generating build files with CMake.

+

+Dependencies for Linux and Wayland

+

To compile GLFW for Wayland, you need to have the Wayland packages installed, as well as the basic development tools like GCC and make. For example, on Ubuntu and other distributions based on Debian GNU/Linux, you need to install the libwayland-dev package, which contains all Wayland headers and pulls in wayland-scanner, as well as the wayland-protocols and extra-cmake-modules packages.

+

Once you have installed the necessary packages, move on to Generating build files with CMake.

+

+Dependencies for Linux and OSMesa

+

To compile GLFW for OSMesa, you need to install the OSMesa library and header packages. For example, on Ubuntu and other distributions based on Debian GNU/Linux, you need to install the libosmesa6-dev package. The OSMesa library is required at runtime for context creation and is loaded on demand.

+

Once you have installed the necessary packages, move on to Generating build files with CMake.

+

+Generating build files with CMake

+

Once you have all necessary dependencies it is time to generate the project files or makefiles for your development environment. CMake needs to know two paths for this: the path to the root directory of the GLFW source tree (i.e. not the src subdirectory) and the target path for the generated files and compiled binaries. If these are the same, it is called an in-tree build, otherwise it is called an out-of-tree build.

+

One of several advantages of out-of-tree builds is that you can generate files and compile for different development environments using a single source tree.

+
Note
This section is about generating the project files or makefiles necessary to compile the GLFW library, not about compiling the actual library.
+

+Generating files with the CMake command-line tool

+

To make an in-tree build, enter the root directory of the GLFW source tree (i.e. not the src subdirectory) and run CMake. The current directory is used as target path, while the path provided as an argument is used to find the source tree.

+
cd <glfw-root-dir>
+
cmake .
+

To make an out-of-tree build, make a directory outside of the source tree, enter it and run CMake with the (relative or absolute) path to the root of the source tree as an argument.

+
mkdir glfw-build
+
cd glfw-build
+
cmake <glfw-root-dir>
+

Once you have generated the project files or makefiles for your chosen development environment, move on to Compiling the library.

+

+Generating files with the CMake GUI

+

If you are using the GUI version, choose the root of the GLFW source tree as source location and the same directory or another, empty directory as the destination for binaries. Choose Configure, change any options you wish to, Configure again to let the changes take effect and then Generate.

+

Once you have generated the project files or makefiles for your chosen development environment, move on to Compiling the library.

+

+Compiling the library

+

You should now have all required dependencies and the project files or makefiles necessary to compile GLFW. Go ahead and compile the actual GLFW library with these files, as you would with any other project.

+

Once the GLFW library is compiled, you are ready to build your applications, linking it to the GLFW library. See Building applications for more information.

+

+CMake options

+

The CMake files for GLFW provide a number of options, although not all are available on all supported platforms. Some of these are de facto standards among projects using CMake and so have no GLFW_ prefix.

+

If you are using the GUI version of CMake, these are listed and can be changed from there. If you are using the command-line version of CMake you can use the ccmake ncurses GUI to set options. Some package systems like Ubuntu and other distributions based on Debian GNU/Linux have this tool in a separate cmake-curses-gui package.

+

Finally, if you don't want to use any GUI, you can set options from the cmake command-line with the -D flag.

+
cmake -DBUILD_SHARED_LIBS=ON .
+

+Shared CMake options

+

BUILD_SHARED_LIBS determines whether GLFW is built as a static library or as a DLL / shared library / dynamic library.

+

GLFW_BUILD_EXAMPLES determines whether the GLFW examples are built along with the library.

+

GLFW_BUILD_TESTS determines whether the GLFW test programs are built along with the library.

+

GLFW_BUILD_DOCS determines whether the GLFW documentation is built along with the library.

+

GLFW_VULKAN_STATIC determines whether to use the Vulkan loader linked directly with the application.

+

+Windows specific CMake options

+

USE_MSVC_RUNTIME_LIBRARY_DLL determines whether to use the DLL version or the static library version of the Visual C++ runtime library. If set to ON, the DLL version of the Visual C++ library is used.

+

GLFW_USE_HYBRID_HPG determines whether to export the NvOptimusEnablement and AmdPowerXpressRequestHighPerformance symbols, which force the use of the high-performance GPU on Nvidia Optimus and AMD PowerXpress systems. These symbols need to be exported by the EXE to be detected by the driver, so the override will not work if GLFW is built as a DLL.

+

+Compiling GLFW manually

+

If you wish to compile GLFW without its CMake build environment then you will have to do at least some of the platform detection yourself. GLFW needs a configuration macro to be defined in order to know what window system it's being compiled for and also has optional, platform-specific ones for various features.

+

When building with CMake, the glfw_config.h configuration header is generated based on the current platform and CMake options. The GLFW CMake environment defines GLFW_USE_CONFIG_H, which causes this header to be included by internal.h. Without this macro, GLFW will expect the necessary configuration macros to be defined on the command-line.

+

The window creation API is used to create windows, handle input, monitors, gamma ramps and clipboard. The options are:

+
    +
  • _GLFW_COCOA to use the Cocoa frameworks
  • +
  • _GLFW_WIN32 to use the Win32 API
  • +
  • _GLFW_X11 to use the X Window System
  • +
  • _GLFW_WAYLAND to use the Wayland API (experimental and incomplete)
  • +
  • _GLFW_OSMESA to use the OSMesa API (headless and non-interactive)
  • +
+

If you are building GLFW as a shared library / dynamic library / DLL then you must also define _GLFW_BUILD_DLL. Otherwise, you must not define it.

+

If you are linking the Vulkan loader directly with your application then you must also define _GLFW_VULKAN_STATIC. Otherwise, GLFW will attempt to use the external version.

+

If you are using a custom name for the Vulkan, EGL, GLX, OSMesa, OpenGL, GLESv1 or GLESv2 library, you can override the default names by defining those you need of _GLFW_VULKAN_LIBRARY, _GLFW_EGL_LIBRARY, _GLFW_GLX_LIBRARY, _GLFW_OSMESA_LIBRARY, _GLFW_OPENGL_LIBRARY, _GLFW_GLESV1_LIBRARY and _GLFW_GLESV2_LIBRARY. Otherwise, GLFW will use the built-in default names.

+

For the EGL context creation API, the following options are available:

+
    +
  • _GLFW_USE_EGLPLATFORM_H to use an existing EGL/eglplatform.h header file for native handle types (fallback)
  • +
+
Note
None of the GLFW header option macros may be defined during the compilation of GLFW. If you define any of these in your build files, make sure they are not applied to the GLFW sources.
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/context_8dox.html b/external/glfw-3.3.4/docs/html/context_8dox.html new file mode 100644 index 0000000..40c70b3 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/context_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: context.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
context.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/context_guide.html b/external/glfw-3.3.4/docs/html/context_guide.html new file mode 100644 index 0000000..8a36024 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/context_guide.html @@ -0,0 +1,251 @@ + + + + + + + +GLFW: Context guide + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Context guide
+
+
+ +

This guide introduces the OpenGL and OpenGL ES context related functions of GLFW. For details on a specific function in this category, see the Context reference. There are also guides for the other areas of the GLFW API.

+ +

+Context objects

+

A window object encapsulates both a top-level window and an OpenGL or OpenGL ES context. It is created with glfwCreateWindow and destroyed with glfwDestroyWindow or glfwTerminate. See Window creation for more information.

+

As the window and context are inseparably linked, the window object also serves as the context handle.

+

To test the creation of various kinds of contexts and see their properties, run the glfwinfo test program.

+
Note
Vulkan does not have a context and the Vulkan instance is created via the Vulkan API itself. If you will be using Vulkan to render to a window, disable context creation by setting the GLFW_CLIENT_API hint to GLFW_NO_API. For more information, see the Vulkan guide.
+

+Context creation hints

+

There are a number of hints, specified using glfwWindowHint, related to what kind of context is created. See context related hints in the window guide.

+

+Context object sharing

+

When creating a window and its OpenGL or OpenGL ES context with glfwCreateWindow, you can specify another window whose context the new one should share its objects (textures, vertex and element buffers, etc.) with.

+
GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, first_window);
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+
GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
Creates a window and its associated context.
+

Object sharing is implemented by the operating system and graphics driver. On platforms where it is possible to choose which types of objects are shared, GLFW requests that all types are shared.

+

See the relevant chapter of the OpenGL or OpenGL ES reference documents for more information. The name and number of this chapter unfortunately varies between versions and APIs, but has at times been named Shared Objects and Multiple Contexts.

+

GLFW comes with a barebones object sharing example program called sharing.

+

+Offscreen contexts

+

GLFW doesn't support creating contexts without an associated window. However, contexts with hidden windows can be created with the GLFW_VISIBLE window hint.

+
+
+
GLFWwindow* offscreen_context = glfwCreateWindow(640, 480, "", NULL, NULL);
+
#define GLFW_FALSE
Zero.
Definition: glfw3.h:318
+
void glfwWindowHint(int hint, int value)
Sets the specified window hint to the desired value.
+
#define GLFW_VISIBLE
Window visibility window hint and attribute.
Definition: glfw3.h:811
+

The window never needs to be shown and its context can be used as a plain offscreen context. Depending on the window manager, the size of a hidden window's framebuffer may not be usable or modifiable, so framebuffer objects are recommended for rendering with such contexts.

+

You should still process events as long as you have at least one window, even if none of them are visible.

+

macOS: The first time a window is created the menu bar is created. This is not desirable for example when writing a command-line only application. Menu bar creation can be disabled with the GLFW_COCOA_MENUBAR init hint.

+

+Windows without contexts

+

You can disable context creation by setting the GLFW_CLIENT_API hint to GLFW_NO_API. Windows without contexts must not be passed to glfwMakeContextCurrent or glfwSwapBuffers.

+

+Current context

+

Before you can make OpenGL or OpenGL ES calls, you need to have a current context of the correct type. A context can only be current for a single thread at a time, and a thread can only have a single context current at a time.

+

When moving a context between threads, you must make it non-current on the old thread before making it current on the new one.

+

The context of a window is made current with glfwMakeContextCurrent.

+
+
void glfwMakeContextCurrent(GLFWwindow *window)
Makes the context of the specified window current for the calling thread.
+

The window of the current context is returned by glfwGetCurrentContext.

+
+
GLFWwindow * glfwGetCurrentContext(void)
Returns the window whose context is current on the calling thread.
+

The following GLFW functions require a context to be current. Calling any these functions without a current context will generate a GLFW_NO_CURRENT_CONTEXT error.

+ +

+Buffer swapping

+

See Buffer swapping in the window guide.

+

+OpenGL and OpenGL ES extensions

+

One of the benefits of OpenGL and OpenGL ES is their extensibility. Hardware vendors may include extensions in their implementations that extend the API before that functionality is included in a new version of the OpenGL or OpenGL ES specification, and some extensions are never included and remain as extensions until they become obsolete.

+

An extension is defined by:

+
    +
  • An extension name (e.g. GL_ARB_debug_output)
  • +
  • New OpenGL tokens (e.g. GL_DEBUG_SEVERITY_HIGH_ARB)
  • +
  • New OpenGL functions (e.g. glGetDebugMessageLogARB)
  • +
+

Note the ARB affix, which stands for Architecture Review Board and is used for official extensions. The extension above was created by the ARB, but there are many different affixes, like NV for Nvidia and AMD for, well, AMD. Any group may also use the generic EXT affix. Lists of extensions, together with their specifications, can be found at the OpenGL Registry and OpenGL ES Registry.

+

+Loading extension with a loader library

+

An extension loader library is the easiest and best way to access both OpenGL and OpenGL ES extensions and modern versions of the core OpenGL or OpenGL ES APIs. They will take care of all the details of declaring and loading everything you need. One such library is glad and there are several others.

+

The following example will use glad but all extension loader libraries work similarly.

+

First you need to generate the source files using the glad Python script. This example generates a loader for any version of OpenGL, which is the default for both GLFW and glad, but loaders for OpenGL ES, as well as loaders for specific API versions and extension sets can be generated. The generated files are written to the output directory.

+
python main.py --generator c --no-loader --out-path output
+

The --no-loader option is added because GLFW already provides a function for loading OpenGL and OpenGL ES function pointers, one that automatically uses the selected context creation API, and glad can call this instead of having to implement its own. There are several other command-line options as well. See the glad documentation for details.

+

Add the generated output/src/glad.c, output/include/glad/glad.h and output/include/KHR/khrplatform.h files to your build. Then you need to include the glad header file, which will replace the OpenGL header of your development environment. By including the glad header before the GLFW header, it suppresses the development environment's OpenGL or OpenGL ES header.

+
#include <glad/glad.h>
+
#include <GLFW/glfw3.h>
+
The header of the GLFW 3 API.
+

Finally you need to initialize glad once you have a suitable current context.

+
window = glfwCreateWindow(640, 480, "My Window", NULL, NULL);
+
if (!window)
+
{
+
...
+
}
+
+ +
+
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
+
GLFWglproc glfwGetProcAddress(const char *procname)
Returns the address of the specified function for the current context.
+

Once glad has been loaded, you have access to all OpenGL core and extension functions supported by both the context you created and the glad loader you generated and you are ready to start rendering.

+

You can specify a minimum required OpenGL or OpenGL ES version with context hints. If your needs are more complex, you can check the actual OpenGL or OpenGL ES version with context attributes, or you can check whether a specific version is supported by the current context with the GLAD_GL_VERSION_x_x booleans.

+
if (GLAD_GL_VERSION_3_2)
+
{
+
// Call OpenGL 3.2+ specific code
+
}
+

To check whether a specific extension is supported, use the GLAD_GL_xxx booleans.

+
if (GLAD_GL_ARB_debug_output)
+
{
+
// Use GL_ARB_debug_output
+
}
+

+Loading extensions manually

+

Do not use this technique unless it is absolutely necessary. An extension loader library will save you a ton of tedious, repetitive, error prone work.

+

To use a certain extension, you must first check whether the context supports that extension and then, if it introduces new functions, retrieve the pointers to those functions. GLFW provides glfwExtensionSupported and glfwGetProcAddress for manual loading of extensions and new API functions.

+

This section will demonstrate manual loading of OpenGL extensions. The loading of OpenGL ES extensions is identical except for the name of the extension header.

+

+The glext.h header

+

The glext.h extension header is a continually updated file that defines the interfaces for all OpenGL extensions. The latest version of this can always be found at the OpenGL Registry. There are also extension headers for the various versions of OpenGL ES at the OpenGL ES Registry. It it strongly recommended that you use your own copy of the extension header, as the one included in your development environment may be several years out of date and may not include the extensions you wish to use.

+

The header defines function pointer types for all functions of all extensions it supports. These have names like PFNGLGETDEBUGMESSAGELOGARBPROC (for glGetDebugMessageLogARB), i.e. the name is made uppercase and PFN (pointer to function) and PROC (procedure) are added to the ends.

+

To include the extension header, define GLFW_INCLUDE_GLEXT before including the GLFW header.

+
#define GLFW_INCLUDE_GLEXT
+
#include <GLFW/glfw3.h>
+

+Checking for extensions

+

A given machine may not actually support the extension (it may have older drivers or a graphics card that lacks the necessary hardware features), so it is necessary to check at run-time whether the context supports the extension. This is done with glfwExtensionSupported.

+
if (glfwExtensionSupported("GL_ARB_debug_output"))
+
{
+
// The extension is supported by the current context
+
}
+
int glfwExtensionSupported(const char *extension)
Returns whether the specified extension is available.
+

The argument is a null terminated ASCII string with the extension name. If the extension is supported, glfwExtensionSupported returns GLFW_TRUE, otherwise it returns GLFW_FALSE.

+

+Fetching function pointers

+

Many extensions, though not all, require the use of new OpenGL functions. These functions often do not have entry points in the client API libraries of your operating system, making it necessary to fetch them at run time. You can retrieve pointers to these functions with glfwGetProcAddress.

+
PFNGLGETDEBUGMESSAGELOGARBPROC pfnGetDebugMessageLog = glfwGetProcAddress("glGetDebugMessageLogARB");
+

In general, you should avoid giving the function pointer variables the (exact) same name as the function, as this may confuse your linker. Instead, you can use a different prefix, like above, or some other naming scheme.

+

Now that all the pieces have been introduced, here is what they might look like when used together.

+
#define GLFW_INCLUDE_GLEXT
+
#include <GLFW/glfw3.h>
+
+
#define glGetDebugMessageLogARB pfnGetDebugMessageLog
+
PFNGLGETDEBUGMESSAGELOGARBPROC pfnGetDebugMessageLog;
+
+
// Flag indicating whether the extension is supported
+
int has_ARB_debug_output = 0;
+
+
void load_extensions(void)
+
{
+
if (glfwExtensionSupported("GL_ARB_debug_output"))
+
{
+
pfnGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGARBPROC)
+
glfwGetProcAddress("glGetDebugMessageLogARB");
+
has_ARB_debug_output = 1;
+
}
+
}
+
+
void some_function(void)
+
{
+
if (has_ARB_debug_output)
+
{
+
// Now the extension function can be called as usual
+
glGetDebugMessageLogARB(...);
+
}
+
}
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/deprecated.html b/external/glfw-3.3.4/docs/html/deprecated.html new file mode 100644 index 0000000..eba2633 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/deprecated.html @@ -0,0 +1,81 @@ + + + + + + + +GLFW: Deprecated List + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Deprecated List
+
+
+
+
Global GLFWcharmodsfun )(GLFWwindow *, unsigned int, int)
+
Scheduled for removal in version 4.0.
+
Global glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun callback)
+
Scheduled for removal in version 4.0.
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/dir_2c0a40d2e39b973aef6f9287031dec98.html b/external/glfw-3.3.4/docs/html/dir_2c0a40d2e39b973aef6f9287031dec98.html new file mode 100644 index 0000000..89c5014 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/dir_2c0a40d2e39b973aef6f9287031dec98.html @@ -0,0 +1,84 @@ + + + + + + + +GLFW: include Directory Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
include Directory Reference
+
+
+ + + + +

+Directories

directory  GLFW
 
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/dir_6a897dd5418cfdfa24c447df90bbe1e1.html b/external/glfw-3.3.4/docs/html/dir_6a897dd5418cfdfa24c447df90bbe1e1.html new file mode 100644 index 0000000..dd31c4c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/dir_6a897dd5418cfdfa24c447df90bbe1e1.html @@ -0,0 +1,86 @@ + + + + + + + +GLFW: glfw-3.3.4 Directory Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
glfw-3.3.4 Directory Reference
+
+
+ + + + + + +

+Directories

directory  docs
 
directory  include
 
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/dir_e1497d575aebd7a6d42b1c9051c2e199.html b/external/glfw-3.3.4/docs/html/dir_e1497d575aebd7a6d42b1c9051c2e199.html new file mode 100644 index 0000000..8acaab4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/dir_e1497d575aebd7a6d42b1c9051c2e199.html @@ -0,0 +1,78 @@ + + + + + + + +GLFW: docs Directory Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
docs Directory Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/dir_eafb4756861696bfe395888f5fb3058c.html b/external/glfw-3.3.4/docs/html/dir_eafb4756861696bfe395888f5fb3058c.html new file mode 100644 index 0000000..ce3df15 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/dir_eafb4756861696bfe395888f5fb3058c.html @@ -0,0 +1,88 @@ + + + + + + + +GLFW: GLFW Directory Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
GLFW Directory Reference
+
+
+ + + + + + + + +

+Files

file  glfw3.h [code]
 The header of the GLFW 3 API.
 
file  glfw3native.h [code]
 The header of the native access functions.
 
+
+ + + diff --git a/external/glm/doc/api/doc.png b/external/glfw-3.3.4/docs/html/doc.png similarity index 100% rename from external/glm/doc/api/doc.png rename to external/glfw-3.3.4/docs/html/doc.png diff --git a/external/glfw-3.3.4/docs/html/doxygen.css b/external/glfw-3.3.4/docs/html/doxygen.css new file mode 100644 index 0000000..ffbff02 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/doxygen.css @@ -0,0 +1,1793 @@ +/* The standard CSS for doxygen 1.9.1 */ + +body, table, div, p, dl { + font: 400 14px/22px Roboto,sans-serif; +} + +p.reference, p.definition { + font: 400 14px/22px Roboto,sans-serif; +} + +/* @group Heading Levels */ + +h1.groupheader { + font-size: 150%; +} + +.title { + font: 400 14px/28px Roboto,sans-serif; + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2.groupheader { + border-bottom: 1px solid #879ECB; + color: #354C7B; + font-size: 150%; + font-weight: normal; + margin-top: 1.75em; + padding-top: 8px; + padding-bottom: 4px; + width: 100%; +} + +h3.groupheader { + font-size: 100%; +} + +h1, h2, h3, h4, h5, h6 { + -webkit-transition: text-shadow 0.5s linear; + -moz-transition: text-shadow 0.5s linear; + -ms-transition: text-shadow 0.5s linear; + -o-transition: text-shadow 0.5s linear; + transition: text-shadow 0.5s linear; + margin-right: 15px; +} + +h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { + text-shadow: 0 0 15px cyan; +} + +dt { + font-weight: bold; +} + +ul.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; + column-count: 3; +} + +p.startli, p.startdd { + margin-top: 2px; +} + +th p.starttd, th p.intertd, th p.endtd { + font-size: 100%; + font-weight: 700; +} + +p.starttd { + margin-top: 0px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +p.interli { +} + +p.interdd { +} + +p.intertd { +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.navtab { + border-right: 1px solid #A3B4D7; + padding-right: 15px; + text-align: right; + line-height: 110%; +} + +div.navtab table { + border-spacing: 0; +} + +td.navtab { + padding-right: 6px; + padding-left: 6px; +} +td.navtabHL { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + padding-right: 6px; + padding-left: 6px; +} + +td.navtabHL a, td.navtabHL a:visited { + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} + +a.navtab { + font-weight: bold; +} + +div.qindex{ + text-align: center; + width: 100%; + line-height: 140%; + font-size: 130%; + color: #A0A0A0; +} + +dt.alphachar{ + font-size: 180%; + font-weight: bold; +} + +.alphachar a{ + color: black; +} + +.alphachar a:hover, .alphachar a:visited{ + text-decoration: none; +} + +.classindex dl { + padding: 25px; + column-count:1 +} + +.classindex dd { + display:inline-block; + margin-left: 50px; + width: 90%; + line-height: 1.15em; +} + +.classindex dl.odd { + background-color: #F8F9FC; +} + +@media(min-width: 1120px) { + .classindex dl { + column-count:2 + } +} + +@media(min-width: 1320px) { + .classindex dl { + column-count:3 + } +} + + +/* @group Link Styling */ + +a { + color: #3D578C; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #4665A2; +} + +a:hover { + text-decoration: underline; +} + +.contents a.qindexHL:visited { + color: #FFFFFF; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code, a.code:visited, a.line, a.line:visited { + color: #4665A2; +} + +a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +ul { + overflow: hidden; /*Fixed: list item bullets overlap floating elements*/ +} + +#side-nav ul { + overflow: visible; /* reset ul rule for scroll bar in GENERATE_TREEVIEW window */ +} + +#main-nav ul { + overflow: visible; /* reset ul rule for the navigation bar drop down lists */ +} + +.fragment { + text-align: left; + direction: ltr; + overflow-x: auto; /*Fixed: fragment lines overlap floating elements*/ + overflow-y: hidden; +} + +pre.fragment { + border: 1px solid #C4CFE5; + background-color: #FBFCFD; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; + font-family: monospace, fixed; + font-size: 105%; +} + +div.fragment { + padding: 0 0 1px 0; /*Fixed: last line underline overlap border*/ + margin: 4px 8px 4px 2px; + background-color: #FBFCFD; + border: 1px solid #C4CFE5; +} + +div.line { + font-family: monospace, fixed; + font-size: 13px; + min-height: 13px; + line-height: 1.0; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + text-indent: -53px; + padding-left: 53px; + padding-bottom: 0px; + margin: 0px; + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +div.line:after { + content:"\000A"; + white-space: pre; +} + +div.line.glow { + background-color: cyan; + box-shadow: 0 0 10px cyan; +} + + +span.lineno { + padding-right: 4px; + text-align: right; + border-right: 2px solid #0F0; + background-color: #E8E8E8; + white-space: pre; +} +span.lineno a { + background-color: #D8D8D8; +} + +span.lineno a:hover { + background-color: #C8C8C8; +} + +.lineno { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +div.ah, span.ah { + background-color: black; + font-weight: bold; + color: #FFFFFF; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000 110%); +} + +div.classindex ul { + list-style: none; + padding-left: 0; +} + +div.classindex span.ai { + display: inline-block; +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 12px; + margin-right: 8px; +} + +td.indexkey { + background-color: #EBEFF6; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; + white-space: nowrap; + vertical-align: top; +} + +td.indexvalue { + background-color: #EBEFF6; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #EEF1F7; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl, img.inline { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +blockquote { + background-color: #F7F8FB; + border-left: 2px solid #9CAFD4; + margin: 0 24px 0 4px; + padding: 0 12px 0 16px; +} + +blockquote.DocNodeRTL { + border-left: 0; + border-right: 2px solid #9CAFD4; + margin: 0 4px 0 24px; + padding: 0 16px 0 12px; +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #A3B4D7; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.memberdecls td, .fieldtable tr { + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +.memberdecls td.glow, .fieldtable tr.glow { + background-color: cyan; + box-shadow: 0 0 15px cyan; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #F9FAFC; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memSeparator { + border-bottom: 1px solid #DEE4F0; + line-height: 1px; + margin: 0px; + padding: 0px; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight, .memTemplItemRight { + width: 100%; +} + +.memTemplParams { + color: #4665A2; + white-space: nowrap; + font-size: 80%; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtitle { + padding: 8px; + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + border-top-right-radius: 4px; + border-top-left-radius: 4px; + margin-bottom: -1px; + background-image: url('nav_f.png'); + background-repeat: repeat-x; + background-color: #E2E8F2; + line-height: 1.25; + font-weight: 300; + float:left; +} + +.permalink +{ + font-size: 65%; + display: inline-block; + vertical-align: middle; +} + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; + -webkit-transition: box-shadow 0.5s linear; + -moz-transition: box-shadow 0.5s linear; + -ms-transition: box-shadow 0.5s linear; + -o-transition: box-shadow 0.5s linear; + transition: box-shadow 0.5s linear; + display: table !important; + width: 100%; +} + +.memitem.glow { + box-shadow: 0 0 15px cyan; +} + +.memname { + font-weight: 400; + margin-left: 6px; +} + +.memname td { + vertical-align: bottom; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 0px 6px 0px; + color: #253555; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + background-color: #DFE5F1; + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 4px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 4px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 4px; + +} + +.overload { + font-family: "courier new",courier,monospace; + font-size: 65%; +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 10px 2px 10px; + background-color: #FBFCFD; + border-top-width: 0; + background-image:url('nav_g.png'); + background-repeat:repeat-x; + background-color: #FFFFFF; + /* opera specific markup */ + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-bottomright: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} +.paramname code { + line-height: 14px; +} + +.params, .retval, .exception, .tparams { + margin-left: 0px; + padding-left: 0px; +} + +.params .paramname, .retval .paramname, .tparams .paramname, .exception .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype, .tparams .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir, .tparams .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + +table.mlabels { + border-spacing: 0px; +} + +td.mlabels-left { + width: 100%; + padding: 0px; +} + +td.mlabels-right { + vertical-align: bottom; + padding: 0px; + white-space: nowrap; +} + +span.mlabels { + margin-left: 8px; +} + +span.mlabel { + background-color: #728DC1; + border-top:1px solid #5373B4; + border-left:1px solid #5373B4; + border-right:1px solid #C4CFE5; + border-bottom:1px solid #C4CFE5; + text-shadow: none; + color: white; + margin-right: 4px; + padding: 2px 3px; + border-radius: 3px; + font-size: 7pt; + white-space: nowrap; + vertical-align: middle; +} + + + +/* @end */ + +/* these are for tree view inside a (index) page */ + +div.directory { + margin: 10px 0px; + border-top: 1px solid #9CAFD4; + border-bottom: 1px solid #9CAFD4; + width: 100%; +} + +.directory table { + border-collapse:collapse; +} + +.directory td { + margin: 0px; + padding: 0px; + vertical-align: top; +} + +.directory td.entry { + white-space: nowrap; + padding-right: 6px; + padding-top: 3px; +} + +.directory td.entry a { + outline:none; +} + +.directory td.entry a img { + border: none; +} + +.directory td.desc { + width: 100%; + padding-left: 6px; + padding-right: 6px; + padding-top: 3px; + border-left: 1px solid rgba(0,0,0,0.05); +} + +.directory tr.even { + padding-left: 6px; + background-color: #F7F8FB; +} + +.directory img { + vertical-align: -30%; +} + +.directory .levels { + white-space: nowrap; + width: 100%; + text-align: right; + font-size: 9pt; +} + +.directory .levels span { + cursor: pointer; + padding-left: 2px; + padding-right: 2px; + color: #3D578C; +} + +.arrow { + color: #9CAFD4; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + font-size: 80%; + display: inline-block; + width: 16px; + height: 22px; +} + +.icon { + font-family: Arial, Helvetica; + font-weight: bold; + font-size: 12px; + height: 14px; + width: 16px; + display: inline-block; + background-color: #728DC1; + color: white; + text-align: center; + border-radius: 4px; + margin-left: 2px; + margin-right: 2px; +} + +.icona { + width: 24px; + height: 22px; + display: inline-block; +} + +.iconfopen { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('folderopen.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.iconfclosed { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('folderclosed.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.icondoc { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('doc.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +table.directory { + font: 400 14px Roboto,sans-serif; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable caption { + caption-side: top; +} + +table.doxtable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +table.fieldtable { + /*width: 100%;*/ + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fieldname { + padding-top: 3px; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + /*width: 100%;*/ +} + +.fieldtable td.fielddoc p:first-child { + margin-top: 0px; +} + +.fieldtable td.fielddoc p:last-child { + margin-bottom: 2px; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + font-weight: 400; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + background-position: 0 -5px; + height:30px; + line-height:30px; + color:#8AA0CC; + border:solid 1px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#364D7C; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; + color: #283A5D; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#364D7C; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +table.classindex +{ + margin: 10px; + white-space: nowrap; + margin-left: 3%; + margin-right: 3%; + width: 94%; + border: 0; + border-spacing: 0; + padding: 0; +} + +div.ingroups +{ + font-size: 8pt; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + margin: 0px; + border-bottom: 1px solid #C4CFE5; +} + +div.headertitle +{ + padding: 5px 5px 5px 10px; +} + +.PageDocRTL-title div.headertitle { + text-align: right; + direction: rtl; +} + +dl { + padding: 0 0 0 0; +} + +/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug, dl.examples */ +dl.section { + margin-left: 0px; + padding-left: 0px; +} + +dl.section.DocNodeRTL { + margin-right: 0px; + padding-right: 0px; +} + +dl.note { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #D0C000; +} + +dl.note.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #D0C000; +} + +dl.warning, dl.attention { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #FF0000; +} + +dl.warning.DocNodeRTL, dl.attention.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #00D000; +} + +dl.pre.DocNodeRTL, dl.post.DocNodeRTL, dl.invariant.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #00D000; +} + +dl.deprecated { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #505050; +} + +dl.deprecated.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #505050; +} + +dl.todo { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #00C0E0; +} + +dl.todo.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #00C0E0; +} + +dl.test { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #3030E0; +} + +dl.test.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #3030E0; +} + +dl.bug { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #C08050; +} + +dl.bug.DocNodeRTL { + margin-left: 0; + padding-left: 0; + border-left: 0; + margin-right: -7px; + padding-right: 3px; + border-right: 4px solid; + border-color: #C08050; +} + +dl.section dd { + margin-bottom: 6px; +} + + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectalign +{ + vertical-align: middle; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.plantumlgraph +{ + text-align: center; +} + +.diagraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; + text-align:right; + width:52px; +} + +dl.citelist dd { + margin:2px 0 2px 72px; + padding:5px 0; +} + +div.toc { + padding: 14px 25px; + background-color: #F4F6FA; + border: 1px solid #D8DFEE; + border-radius: 7px 7px 7px 7px; + float: right; + height: auto; + margin: 0 8px 10px 10px; + width: 200px; +} + +.PageDocRTL-title div.toc { + float: left !important; + text-align: right; +} + +div.toc li { + background: url("bdwn.png") no-repeat scroll 0 5px transparent; + font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; + margin-top: 5px; + padding-left: 10px; + padding-top: 2px; +} + +.PageDocRTL-title div.toc li { + background-position-x: right !important; + padding-left: 0 !important; + padding-right: 10px; +} + +div.toc h3 { + font: bold 12px/1.2 Arial,FreeSans,sans-serif; + color: #4665A2; + border-bottom: 0 none; + margin: 0; +} + +div.toc ul { + list-style: none outside none; + border: medium none; + padding: 0px; +} + +div.toc li.level1 { + margin-left: 0px; +} + +div.toc li.level2 { + margin-left: 15px; +} + +div.toc li.level3 { + margin-left: 30px; +} + +div.toc li.level4 { + margin-left: 45px; +} + +span.emoji { + /* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html + * font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort; + */ +} + +.PageDocRTL-title div.toc li.level1 { + margin-left: 0 !important; + margin-right: 0; +} + +.PageDocRTL-title div.toc li.level2 { + margin-left: 0 !important; + margin-right: 15px; +} + +.PageDocRTL-title div.toc li.level3 { + margin-left: 0 !important; + margin-right: 30px; +} + +.PageDocRTL-title div.toc li.level4 { + margin-left: 0 !important; + margin-right: 45px; +} + +.inherit_header { + font-weight: bold; + color: gray; + cursor: pointer; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.inherit_header td { + padding: 6px 0px 2px 5px; +} + +.inherit { + display: none; +} + +tr.heading h2 { + margin-top: 12px; + margin-bottom: 4px; +} + +/* tooltip related style info */ + +.ttc { + position: absolute; + display: none; +} + +#powerTip { + cursor: default; + white-space: nowrap; + background-color: white; + border: 1px solid gray; + border-radius: 4px 4px 4px 4px; + box-shadow: 1px 1px 7px gray; + display: none; + font-size: smaller; + max-width: 80%; + opacity: 0.9; + padding: 1ex 1em 1em; + position: absolute; + z-index: 2147483647; +} + +#powerTip div.ttdoc { + color: grey; + font-style: italic; +} + +#powerTip div.ttname a { + font-weight: bold; +} + +#powerTip div.ttname { + font-weight: bold; +} + +#powerTip div.ttdeci { + color: #006318; +} + +#powerTip div { + margin: 0px; + padding: 0px; + font: 12px/16px Roboto,sans-serif; +} + +#powerTip:before, #powerTip:after { + content: ""; + position: absolute; + margin: 0px; +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.s:after, #powerTip.s:before, +#powerTip.w:after, #powerTip.w:before, +#powerTip.e:after, #powerTip.e:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.nw:after, #powerTip.nw:before, +#powerTip.sw:after, #powerTip.sw:before { + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; +} + +#powerTip.n:after, #powerTip.s:after, +#powerTip.w:after, #powerTip.e:after, +#powerTip.nw:after, #powerTip.ne:after, +#powerTip.sw:after, #powerTip.se:after { + border-color: rgba(255, 255, 255, 0); +} + +#powerTip.n:before, #powerTip.s:before, +#powerTip.w:before, #powerTip.e:before, +#powerTip.nw:before, #powerTip.ne:before, +#powerTip.sw:before, #powerTip.se:before { + border-color: rgba(128, 128, 128, 0); +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.nw:after, #powerTip.nw:before { + top: 100%; +} + +#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { + border-top-color: #FFFFFF; + border-width: 10px; + margin: 0px -10px; +} +#powerTip.n:before { + border-top-color: #808080; + border-width: 11px; + margin: 0px -11px; +} +#powerTip.n:after, #powerTip.n:before { + left: 50%; +} + +#powerTip.nw:after, #powerTip.nw:before { + right: 14px; +} + +#powerTip.ne:after, #powerTip.ne:before { + left: 14px; +} + +#powerTip.s:after, #powerTip.s:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.sw:after, #powerTip.sw:before { + bottom: 100%; +} + +#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { + border-bottom-color: #FFFFFF; + border-width: 10px; + margin: 0px -10px; +} + +#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { + border-bottom-color: #808080; + border-width: 11px; + margin: 0px -11px; +} + +#powerTip.s:after, #powerTip.s:before { + left: 50%; +} + +#powerTip.sw:after, #powerTip.sw:before { + right: 14px; +} + +#powerTip.se:after, #powerTip.se:before { + left: 14px; +} + +#powerTip.e:after, #powerTip.e:before { + left: 100%; +} +#powerTip.e:after { + border-left-color: #FFFFFF; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.e:before { + border-left-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +#powerTip.w:after, #powerTip.w:before { + right: 100%; +} +#powerTip.w:after { + border-right-color: #FFFFFF; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.w:before { + border-right-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } +} + +/* @group Markdown */ + +table.markdownTable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.markdownTable td, table.markdownTable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.markdownTable tr { +} + +th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +th.markdownTableHeadLeft, td.markdownTableBodyLeft { + text-align: left +} + +th.markdownTableHeadRight, td.markdownTableBodyRight { + text-align: right +} + +th.markdownTableHeadCenter, td.markdownTableBodyCenter { + text-align: center +} + +.DocNodeRTL { + text-align: right; + direction: rtl; +} + +.DocNodeLTR { + text-align: left; + direction: ltr; +} + +table.DocNodeRTL { + width: auto; + margin-right: 0; + margin-left: auto; +} + +table.DocNodeLTR { + width: auto; + margin-right: auto; + margin-left: 0; +} + +tt, code, kbd, samp +{ + display: inline-block; + direction:ltr; +} +/* @end */ + +u { + text-decoration: underline; +} + diff --git a/external/glfw-3.3.4/docs/html/doxygen.svg b/external/glfw-3.3.4/docs/html/doxygen.svg new file mode 100644 index 0000000..d42dad5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/doxygen.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/external/glfw-3.3.4/docs/html/dynsections.js b/external/glfw-3.3.4/docs/html/dynsections.js new file mode 100644 index 0000000..3174bd7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/dynsections.js @@ -0,0 +1,121 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + 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. + + @licend The above is the entire license notice for the JavaScript code in this file + */ +function toggleVisibility(linkObj) +{ + var base = $(linkObj).attr('id'); + var summary = $('#'+base+'-summary'); + var content = $('#'+base+'-content'); + var trigger = $('#'+base+'-trigger'); + var src=$(trigger).attr('src'); + if (content.is(':visible')===true) { + content.hide(); + summary.show(); + $(linkObj).addClass('closed').removeClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); + } else { + content.show(); + summary.hide(); + $(linkObj).removeClass('closed').addClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); + } + return false; +} + +function updateStripes() +{ + $('table.directory tr'). + removeClass('even').filter(':visible:even').addClass('even'); +} + +function toggleLevel(level) +{ + $('table.directory tr').each(function() { + var l = this.id.split('_').length-1; + var i = $('#img'+this.id.substring(3)); + var a = $('#arr'+this.id.substring(3)); + if (lli:last-child{margin:0 0 0 auto}.contents{min-height:590px}div.contents,div.header{max-width:920px;margin:0 auto;padding:0 32px;background:#fff none}table.doxtable th,table.markdownTable th,dl.reflist dt{background:linear-gradient(to bottom, #ffa733 0%, #ff6600 100%);box-shadow:inset 0 0 32px #f60;text-shadow:0 -1px 1px #b34700;text-align:left;color:#fff}dl.reflist dt a.el{color:#f60;padding:.2em;border-radius:4px;background-color:#ffe0cc}div.toc{float:none;width:auto}div.toc h3{font-size:1.17em}div.toc ul{padding-left:1.5em}div.toc li{font-size:1em;padding-left:0;list-style-type:disc}div.toc,.memproto,div.qindex,div.ah{background:linear-gradient(to bottom, #f2f2f2 0%, #e6e6e6 100%);box-shadow:inset 0 0 32px #e6e6e6;text-shadow:0 1px 1px #fff;color:#1a1a1a;border:2px solid #e6e6e6;border-radius:4px}.paramname{color:#803300}dl.reflist dt{border:2px solid #f60;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:none}dl.reflist dd{border:2px solid #f60;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top:none}table.doxtable,table.markdownTable{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,#main-menu a:hover,span.lineno a:hover{color:#f60;text-decoration:none}div.directory{border-collapse:inherit;border-spacing:0;border:2px solid #f60;border-radius:4px}hr,.memSeparator{height:2px;background:linear-gradient(to right, #f2f2f2 0%, #d9d9d9 50%, #f2f2f2 100%)}dl.note,dl.pre,dl.post,dl.invariant{background:linear-gradient(to bottom, #ddfad1 0%, #cbf7ba 100%);box-shadow:inset 0 0 32px #baf5a3;color:#1e5309;border:2px solid #afe699}dl.warning,dl.attention{background:linear-gradient(to bottom, #fae8d1 0%, #f7ddba 100%);box-shadow:inset 0 0 32px #f5d1a3;color:#533309;border:2px solid #e6c499}dl.deprecated,dl.bug{background:linear-gradient(to bottom, #fad1e3 0%, #f7bad6 100%);box-shadow:inset 0 0 32px #f5a3c8;color:#53092a;border:2px solid #e699bb}dl.todo,dl.test{background:linear-gradient(to bottom, #d1ecfa 0%, #bae3f7 100%);box-shadow:inset 0 0 32px #a3daf5;color:#093a53;border:2px solid #99cce6}dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test{border-radius:4px;padding:1em;text-shadow:0 1px 1px #fff;margin:1em 0}.note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited{color:inherit}div.line{line-height:inherit}div.fragment,pre.fragment{background:#f2f2f2;border-radius:4px;border:none;padding:1em;overflow:auto;border-left:4px solid #ccc;margin:1em 0}.lineno a,.lineno a:visited,.line,pre.fragment{color:#4d4d4d}span.preprocessor,span.comment{color:#007899}a.code,a.code:visited{color:#e64500}span.keyword,span.keywordtype,span.keywordflow{color:#404040;font-weight:bold}span.stringliteral{color:#360099}code{padding:.1em;border-radius:4px}/*# sourceMappingURL=extra.css.map */ diff --git a/external/glfw-3.3.4/docs/html/files.html b/external/glfw-3.3.4/docs/html/files.html new file mode 100644 index 0000000..55d88fd --- /dev/null +++ b/external/glfw-3.3.4/docs/html/files.html @@ -0,0 +1,80 @@ + + + + + + + +GLFW: Files + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+
+
Files
+
+
+
Here is a list of all files with brief descriptions:
+ + + +
 glfw3.hThe header of the GLFW 3 API
 glfw3native.hThe header of the native access functions
+
+
+ + + diff --git a/external/glm/doc/api/folderclosed.png b/external/glfw-3.3.4/docs/html/folderclosed.png similarity index 100% rename from external/glm/doc/api/folderclosed.png rename to external/glfw-3.3.4/docs/html/folderclosed.png diff --git a/external/glm/doc/api/folderopen.png b/external/glfw-3.3.4/docs/html/folderopen.png similarity index 100% rename from external/glm/doc/api/folderopen.png rename to external/glfw-3.3.4/docs/html/folderopen.png diff --git a/external/glfw-3.3.4/docs/html/glfw3_8h.html b/external/glfw-3.3.4/docs/html/glfw3_8h.html new file mode 100644 index 0000000..07a9fc8 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/glfw3_8h.html @@ -0,0 +1,1603 @@ + + + + + + + +GLFW: glfw3.h File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
glfw3.h File Reference
+
+
+

Description

+

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 Including the GLFW header file.

+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_APIENTRY_DEFINED
 
#define GLFW_TRUE   1
 One. More...
 
#define GLFW_FALSE   0
 Zero. More...
 
#define GLFW_HAT_CENTERED   0
 
#define GLFW_HAT_UP   1
 
#define GLFW_HAT_RIGHT   2
 
#define GLFW_HAT_DOWN   4
 
#define GLFW_HAT_LEFT   8
 
#define GLFW_HAT_RIGHT_UP   (GLFW_HAT_RIGHT | GLFW_HAT_UP)
 
#define GLFW_HAT_RIGHT_DOWN   (GLFW_HAT_RIGHT | GLFW_HAT_DOWN)
 
#define GLFW_HAT_LEFT_UP   (GLFW_HAT_LEFT | GLFW_HAT_UP)
 
#define GLFW_HAT_LEFT_DOWN   (GLFW_HAT_LEFT | GLFW_HAT_DOWN)
 
#define GLFW_KEY_UNKNOWN   -1
 
#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 */
 
#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
 
#define GLFW_MOD_SHIFT   0x0001
 If this bit is set one or more Shift keys were held down. More...
 
#define GLFW_MOD_CONTROL   0x0002
 If this bit is set one or more Control keys were held down. More...
 
#define GLFW_MOD_ALT   0x0004
 If this bit is set one or more Alt keys were held down. More...
 
#define GLFW_MOD_SUPER   0x0008
 If this bit is set one or more Super keys were held down. More...
 
#define GLFW_MOD_CAPS_LOCK   0x0010
 If this bit is set the Caps Lock key is enabled. More...
 
#define GLFW_MOD_NUM_LOCK   0x0020
 If this bit is set the Num Lock key is enabled. More...
 
#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
 
#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
 
#define GLFW_GAMEPAD_BUTTON_A   0
 
#define GLFW_GAMEPAD_BUTTON_B   1
 
#define GLFW_GAMEPAD_BUTTON_X   2
 
#define GLFW_GAMEPAD_BUTTON_Y   3
 
#define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER   4
 
#define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER   5
 
#define GLFW_GAMEPAD_BUTTON_BACK   6
 
#define GLFW_GAMEPAD_BUTTON_START   7
 
#define GLFW_GAMEPAD_BUTTON_GUIDE   8
 
#define GLFW_GAMEPAD_BUTTON_LEFT_THUMB   9
 
#define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB   10
 
#define GLFW_GAMEPAD_BUTTON_DPAD_UP   11
 
#define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT   12
 
#define GLFW_GAMEPAD_BUTTON_DPAD_DOWN   13
 
#define GLFW_GAMEPAD_BUTTON_DPAD_LEFT   14
 
#define GLFW_GAMEPAD_BUTTON_LAST   GLFW_GAMEPAD_BUTTON_DPAD_LEFT
 
#define GLFW_GAMEPAD_BUTTON_CROSS   GLFW_GAMEPAD_BUTTON_A
 
#define GLFW_GAMEPAD_BUTTON_CIRCLE   GLFW_GAMEPAD_BUTTON_B
 
#define GLFW_GAMEPAD_BUTTON_SQUARE   GLFW_GAMEPAD_BUTTON_X
 
#define GLFW_GAMEPAD_BUTTON_TRIANGLE   GLFW_GAMEPAD_BUTTON_Y
 
#define GLFW_GAMEPAD_AXIS_LEFT_X   0
 
#define GLFW_GAMEPAD_AXIS_LEFT_Y   1
 
#define GLFW_GAMEPAD_AXIS_RIGHT_X   2
 
#define GLFW_GAMEPAD_AXIS_RIGHT_Y   3
 
#define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER   4
 
#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER   5
 
#define GLFW_GAMEPAD_AXIS_LAST   GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
 
#define GLFW_NO_ERROR   0
 No error has occurred. More...
 
#define GLFW_NOT_INITIALIZED   0x00010001
 GLFW has not been initialized. More...
 
#define GLFW_NO_CURRENT_CONTEXT   0x00010002
 No context is current for this thread. More...
 
#define GLFW_INVALID_ENUM   0x00010003
 One of the arguments to the function was an invalid enum value. More...
 
#define GLFW_INVALID_VALUE   0x00010004
 One of the arguments to the function was an invalid value. More...
 
#define GLFW_OUT_OF_MEMORY   0x00010005
 A memory allocation failed. More...
 
#define GLFW_API_UNAVAILABLE   0x00010006
 GLFW could not find support for the requested API on the system. More...
 
#define GLFW_VERSION_UNAVAILABLE   0x00010007
 The requested OpenGL or OpenGL ES version is not available. More...
 
#define GLFW_PLATFORM_ERROR   0x00010008
 A platform-specific error occurred that does not match any of the more specific categories. More...
 
#define GLFW_FORMAT_UNAVAILABLE   0x00010009
 The requested format is not supported or available. More...
 
#define GLFW_NO_WINDOW_CONTEXT   0x0001000A
 The specified window does not have an OpenGL or OpenGL ES context. More...
 
#define GLFW_FOCUSED   0x00020001
 Input focus window hint and attribute. More...
 
#define GLFW_ICONIFIED   0x00020002
 Window iconification window attribute. More...
 
#define GLFW_RESIZABLE   0x00020003
 Window resize-ability window hint and attribute. More...
 
#define GLFW_VISIBLE   0x00020004
 Window visibility window hint and attribute. More...
 
#define GLFW_DECORATED   0x00020005
 Window decoration window hint and attribute. More...
 
#define GLFW_AUTO_ICONIFY   0x00020006
 Window auto-iconification window hint and attribute. More...
 
#define GLFW_FLOATING   0x00020007
 Window decoration window hint and attribute. More...
 
#define GLFW_MAXIMIZED   0x00020008
 Window maximization window hint and attribute. More...
 
#define GLFW_CENTER_CURSOR   0x00020009
 Cursor centering window hint. More...
 
#define GLFW_TRANSPARENT_FRAMEBUFFER   0x0002000A
 Window framebuffer transparency hint and attribute. More...
 
#define GLFW_HOVERED   0x0002000B
 Mouse cursor hover window attribute. More...
 
#define GLFW_FOCUS_ON_SHOW   0x0002000C
 Input focus on calling show window hint and attribute. More...
 
#define GLFW_RED_BITS   0x00021001
 Framebuffer bit depth hint. More...
 
#define GLFW_GREEN_BITS   0x00021002
 Framebuffer bit depth hint. More...
 
#define GLFW_BLUE_BITS   0x00021003
 Framebuffer bit depth hint. More...
 
#define GLFW_ALPHA_BITS   0x00021004
 Framebuffer bit depth hint. More...
 
#define GLFW_DEPTH_BITS   0x00021005
 Framebuffer bit depth hint. More...
 
#define GLFW_STENCIL_BITS   0x00021006
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_RED_BITS   0x00021007
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_GREEN_BITS   0x00021008
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_BLUE_BITS   0x00021009
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_ALPHA_BITS   0x0002100A
 Framebuffer bit depth hint. More...
 
#define GLFW_AUX_BUFFERS   0x0002100B
 Framebuffer auxiliary buffer hint. More...
 
#define GLFW_STEREO   0x0002100C
 OpenGL stereoscopic rendering hint. More...
 
#define GLFW_SAMPLES   0x0002100D
 Framebuffer MSAA samples hint. More...
 
#define GLFW_SRGB_CAPABLE   0x0002100E
 Framebuffer sRGB hint. More...
 
#define GLFW_REFRESH_RATE   0x0002100F
 Monitor refresh rate hint. More...
 
#define GLFW_DOUBLEBUFFER   0x00021010
 Framebuffer double buffering hint. More...
 
#define GLFW_CLIENT_API   0x00022001
 Context client API hint and attribute. More...
 
#define GLFW_CONTEXT_VERSION_MAJOR   0x00022002
 Context client API major version hint and attribute. More...
 
#define GLFW_CONTEXT_VERSION_MINOR   0x00022003
 Context client API minor version hint and attribute. More...
 
#define GLFW_CONTEXT_REVISION   0x00022004
 Context client API revision number hint and attribute. More...
 
#define GLFW_CONTEXT_ROBUSTNESS   0x00022005
 Context robustness hint and attribute. More...
 
#define GLFW_OPENGL_FORWARD_COMPAT   0x00022006
 OpenGL forward-compatibility hint and attribute. More...
 
#define GLFW_OPENGL_DEBUG_CONTEXT   0x00022007
 Debug mode context hint and attribute. More...
 
#define GLFW_OPENGL_PROFILE   0x00022008
 OpenGL profile hint and attribute. More...
 
#define GLFW_CONTEXT_RELEASE_BEHAVIOR   0x00022009
 Context flush-on-release hint and attribute. More...
 
#define GLFW_CONTEXT_NO_ERROR   0x0002200A
 Context error suppression hint and attribute. More...
 
#define GLFW_CONTEXT_CREATION_API   0x0002200B
 Context creation API hint and attribute. More...
 
#define GLFW_SCALE_TO_MONITOR   0x0002200C
 Window content area scaling window window hint. More...
 
#define GLFW_COCOA_RETINA_FRAMEBUFFER   0x00023001
 macOS specific window hint. More...
 
#define GLFW_COCOA_FRAME_NAME   0x00023002
 macOS specific window hint. More...
 
#define GLFW_COCOA_GRAPHICS_SWITCHING   0x00023003
 macOS specific window hint. More...
 
#define GLFW_X11_CLASS_NAME   0x00024001
 X11 specific window hint. More...
 
#define GLFW_X11_INSTANCE_NAME   0x00024002
 X11 specific window hint. More...
 
#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_LOCK_KEY_MODS   0x00033004
 
#define GLFW_RAW_MOUSE_MOTION   0x00033005
 
#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
 
#define GLFW_NATIVE_CONTEXT_API   0x00036001
 
#define GLFW_EGL_CONTEXT_API   0x00036002
 
#define GLFW_OSMESA_CONTEXT_API   0x00036003
 
#define GLFW_ARROW_CURSOR   0x00036001
 The regular arrow cursor shape. More...
 
#define GLFW_IBEAM_CURSOR   0x00036002
 The text input I-beam cursor shape. More...
 
#define GLFW_CROSSHAIR_CURSOR   0x00036003
 The crosshair shape. More...
 
#define GLFW_HAND_CURSOR   0x00036004
 The hand shape. More...
 
#define GLFW_HRESIZE_CURSOR   0x00036005
 The horizontal resize arrow shape. More...
 
#define GLFW_VRESIZE_CURSOR   0x00036006
 The vertical resize arrow shape. More...
 
#define GLFW_CONNECTED   0x00040001
 
#define GLFW_DISCONNECTED   0x00040002
 
#define GLFW_JOYSTICK_HAT_BUTTONS   0x00050001
 Joystick hat buttons init hint. More...
 
#define GLFW_COCOA_CHDIR_RESOURCES   0x00051001
 macOS specific init hint. More...
 
#define GLFW_COCOA_MENUBAR   0x00051002
 macOS specific init hint. More...
 
#define GLFW_DONT_CARE   -1
 
#define GLAPIENTRY   APIENTRY
 
GLFW version macros
#define GLFW_VERSION_MAJOR   3
 The major version number of the GLFW library. More...
 
#define GLFW_VERSION_MINOR   3
 The minor version number of the GLFW library. More...
 
#define GLFW_VERSION_REVISION   4
 The revision number of the GLFW library. More...
 
Key and button actions
#define GLFW_RELEASE   0
 The key or mouse button was released. More...
 
#define GLFW_PRESS   1
 The key or mouse button was pressed. More...
 
#define GLFW_REPEAT   2
 The key was held down until it repeated. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Typedefs

typedef void(* GLFWglproc) (void)
 Client API function pointer type. More...
 
typedef void(* GLFWvkproc) (void)
 Vulkan API function pointer type. More...
 
typedef struct GLFWmonitor GLFWmonitor
 Opaque monitor object. More...
 
typedef struct GLFWwindow GLFWwindow
 Opaque window object. More...
 
typedef struct GLFWcursor GLFWcursor
 Opaque cursor object. More...
 
typedef void(* GLFWerrorfun) (int, const char *)
 The function pointer type for error callbacks. More...
 
typedef void(* GLFWwindowposfun) (GLFWwindow *, int, int)
 The function pointer type for window position callbacks. More...
 
typedef void(* GLFWwindowsizefun) (GLFWwindow *, int, int)
 The function pointer type for window size callbacks. More...
 
typedef void(* GLFWwindowclosefun) (GLFWwindow *)
 The function pointer type for window close callbacks. More...
 
typedef void(* GLFWwindowrefreshfun) (GLFWwindow *)
 The function pointer type for window content refresh callbacks. More...
 
typedef void(* GLFWwindowfocusfun) (GLFWwindow *, int)
 The function pointer type for window focus callbacks. More...
 
typedef void(* GLFWwindowiconifyfun) (GLFWwindow *, int)
 The function pointer type for window iconify callbacks. More...
 
typedef void(* GLFWwindowmaximizefun) (GLFWwindow *, int)
 The function pointer type for window maximize callbacks. More...
 
typedef void(* GLFWframebuffersizefun) (GLFWwindow *, int, int)
 The function pointer type for framebuffer size callbacks. More...
 
typedef void(* GLFWwindowcontentscalefun) (GLFWwindow *, float, float)
 The function pointer type for window content scale callbacks. More...
 
typedef void(* GLFWmousebuttonfun) (GLFWwindow *, int, int, int)
 The function pointer type for mouse button callbacks. More...
 
typedef void(* GLFWcursorposfun) (GLFWwindow *, double, double)
 The function pointer type for cursor position callbacks. More...
 
typedef void(* GLFWcursorenterfun) (GLFWwindow *, int)
 The function pointer type for cursor enter/leave callbacks. More...
 
typedef void(* GLFWscrollfun) (GLFWwindow *, double, double)
 The function pointer type for scroll callbacks. More...
 
typedef void(* GLFWkeyfun) (GLFWwindow *, int, int, int, int)
 The function pointer type for keyboard key callbacks. More...
 
typedef void(* GLFWcharfun) (GLFWwindow *, unsigned int)
 The function pointer type for Unicode character callbacks. More...
 
typedef void(* GLFWcharmodsfun) (GLFWwindow *, unsigned int, int)
 The function pointer type for Unicode character with modifiers callbacks. More...
 
typedef void(* GLFWdropfun) (GLFWwindow *, int, const char *[])
 The function pointer type for path drop callbacks. More...
 
typedef void(* GLFWmonitorfun) (GLFWmonitor *, int)
 The function pointer type for monitor configuration callbacks. More...
 
typedef void(* GLFWjoystickfun) (int, int)
 The function pointer type for joystick configuration callbacks. More...
 
typedef struct GLFWvidmode GLFWvidmode
 Video mode type. More...
 
typedef struct GLFWgammaramp GLFWgammaramp
 Gamma ramp. More...
 
typedef struct GLFWimage GLFWimage
 Image data. More...
 
typedef struct GLFWgamepadstate GLFWgamepadstate
 Gamepad input state. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

int glfwInit (void)
 Initializes the GLFW library. More...
 
void glfwTerminate (void)
 Terminates the GLFW library. More...
 
void glfwInitHint (int hint, int value)
 Sets the specified init hint to the desired value. More...
 
void glfwGetVersion (int *major, int *minor, int *rev)
 Retrieves the version of the GLFW library. More...
 
const char * glfwGetVersionString (void)
 Returns a string describing the compile-time configuration. More...
 
int glfwGetError (const char **description)
 Returns and clears the last error for the calling thread. More...
 
GLFWerrorfun glfwSetErrorCallback (GLFWerrorfun callback)
 Sets the error callback. More...
 
GLFWmonitor ** glfwGetMonitors (int *count)
 Returns the currently connected monitors. More...
 
GLFWmonitorglfwGetPrimaryMonitor (void)
 Returns the primary monitor. More...
 
void glfwGetMonitorPos (GLFWmonitor *monitor, int *xpos, int *ypos)
 Returns the position of the monitor's viewport on the virtual screen. More...
 
void glfwGetMonitorWorkarea (GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height)
 Retrieves the work area of the monitor. More...
 
void glfwGetMonitorPhysicalSize (GLFWmonitor *monitor, int *widthMM, int *heightMM)
 Returns the physical size of the monitor. More...
 
void glfwGetMonitorContentScale (GLFWmonitor *monitor, float *xscale, float *yscale)
 Retrieves the content scale for the specified monitor. More...
 
const char * glfwGetMonitorName (GLFWmonitor *monitor)
 Returns the name of the specified monitor. More...
 
void glfwSetMonitorUserPointer (GLFWmonitor *monitor, void *pointer)
 Sets the user pointer of the specified monitor. More...
 
void * glfwGetMonitorUserPointer (GLFWmonitor *monitor)
 Returns the user pointer of the specified monitor. More...
 
GLFWmonitorfun glfwSetMonitorCallback (GLFWmonitorfun callback)
 Sets the monitor configuration callback. More...
 
const GLFWvidmodeglfwGetVideoModes (GLFWmonitor *monitor, int *count)
 Returns the available video modes for the specified monitor. More...
 
const GLFWvidmodeglfwGetVideoMode (GLFWmonitor *monitor)
 Returns the current mode of the specified monitor. More...
 
void glfwSetGamma (GLFWmonitor *monitor, float gamma)
 Generates a gamma ramp and sets it for the specified monitor. More...
 
const GLFWgammarampglfwGetGammaRamp (GLFWmonitor *monitor)
 Returns the current gamma ramp for the specified monitor. More...
 
void glfwSetGammaRamp (GLFWmonitor *monitor, const GLFWgammaramp *ramp)
 Sets the current gamma ramp for the specified monitor. More...
 
void glfwDefaultWindowHints (void)
 Resets all window hints to their default values. More...
 
void glfwWindowHint (int hint, int value)
 Sets the specified window hint to the desired value. More...
 
void glfwWindowHintString (int hint, const char *value)
 Sets the specified window hint to the desired value. More...
 
GLFWwindowglfwCreateWindow (int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
 Creates a window and its associated context. More...
 
void glfwDestroyWindow (GLFWwindow *window)
 Destroys the specified window and its context. More...
 
int glfwWindowShouldClose (GLFWwindow *window)
 Checks the close flag of the specified window. More...
 
void glfwSetWindowShouldClose (GLFWwindow *window, int value)
 Sets the close flag of the specified window. More...
 
void glfwSetWindowTitle (GLFWwindow *window, const char *title)
 Sets the title of the specified window. More...
 
void glfwSetWindowIcon (GLFWwindow *window, int count, const GLFWimage *images)
 Sets the icon for the specified window. More...
 
void glfwGetWindowPos (GLFWwindow *window, int *xpos, int *ypos)
 Retrieves the position of the content area of the specified window. More...
 
void glfwSetWindowPos (GLFWwindow *window, int xpos, int ypos)
 Sets the position of the content area of the specified window. More...
 
void glfwGetWindowSize (GLFWwindow *window, int *width, int *height)
 Retrieves the size of the content area of the specified window. More...
 
void glfwSetWindowSizeLimits (GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight)
 Sets the size limits of the specified window. More...
 
void glfwSetWindowAspectRatio (GLFWwindow *window, int numer, int denom)
 Sets the aspect ratio of the specified window. More...
 
void glfwSetWindowSize (GLFWwindow *window, int width, int height)
 Sets the size of the content area of the specified window. More...
 
void glfwGetFramebufferSize (GLFWwindow *window, int *width, int *height)
 Retrieves the size of the framebuffer of the specified window. More...
 
void glfwGetWindowFrameSize (GLFWwindow *window, int *left, int *top, int *right, int *bottom)
 Retrieves the size of the frame of the window. More...
 
void glfwGetWindowContentScale (GLFWwindow *window, float *xscale, float *yscale)
 Retrieves the content scale for the specified window. More...
 
float glfwGetWindowOpacity (GLFWwindow *window)
 Returns the opacity of the whole window. More...
 
void glfwSetWindowOpacity (GLFWwindow *window, float opacity)
 Sets the opacity of the whole window. More...
 
void glfwIconifyWindow (GLFWwindow *window)
 Iconifies the specified window. More...
 
void glfwRestoreWindow (GLFWwindow *window)
 Restores the specified window. More...
 
void glfwMaximizeWindow (GLFWwindow *window)
 Maximizes the specified window. More...
 
void glfwShowWindow (GLFWwindow *window)
 Makes the specified window visible. More...
 
void glfwHideWindow (GLFWwindow *window)
 Hides the specified window. More...
 
void glfwFocusWindow (GLFWwindow *window)
 Brings the specified window to front and sets input focus. More...
 
void glfwRequestWindowAttention (GLFWwindow *window)
 Requests user attention to the specified window. More...
 
GLFWmonitorglfwGetWindowMonitor (GLFWwindow *window)
 Returns the monitor that the window uses for full screen mode. More...
 
void glfwSetWindowMonitor (GLFWwindow *window, GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate)
 Sets the mode, monitor, video mode and placement of a window. More...
 
int glfwGetWindowAttrib (GLFWwindow *window, int attrib)
 Returns an attribute of the specified window. More...
 
void glfwSetWindowAttrib (GLFWwindow *window, int attrib, int value)
 Sets an attribute of the specified window. More...
 
void glfwSetWindowUserPointer (GLFWwindow *window, void *pointer)
 Sets the user pointer of the specified window. More...
 
void * glfwGetWindowUserPointer (GLFWwindow *window)
 Returns the user pointer of the specified window. More...
 
GLFWwindowposfun glfwSetWindowPosCallback (GLFWwindow *window, GLFWwindowposfun callback)
 Sets the position callback for the specified window. More...
 
GLFWwindowsizefun glfwSetWindowSizeCallback (GLFWwindow *window, GLFWwindowsizefun callback)
 Sets the size callback for the specified window. More...
 
GLFWwindowclosefun glfwSetWindowCloseCallback (GLFWwindow *window, GLFWwindowclosefun callback)
 Sets the close callback for the specified window. More...
 
GLFWwindowrefreshfun glfwSetWindowRefreshCallback (GLFWwindow *window, GLFWwindowrefreshfun callback)
 Sets the refresh callback for the specified window. More...
 
GLFWwindowfocusfun glfwSetWindowFocusCallback (GLFWwindow *window, GLFWwindowfocusfun callback)
 Sets the focus callback for the specified window. More...
 
GLFWwindowiconifyfun glfwSetWindowIconifyCallback (GLFWwindow *window, GLFWwindowiconifyfun callback)
 Sets the iconify callback for the specified window. More...
 
GLFWwindowmaximizefun glfwSetWindowMaximizeCallback (GLFWwindow *window, GLFWwindowmaximizefun callback)
 Sets the maximize callback for the specified window. More...
 
GLFWframebuffersizefun glfwSetFramebufferSizeCallback (GLFWwindow *window, GLFWframebuffersizefun callback)
 Sets the framebuffer resize callback for the specified window. More...
 
GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback (GLFWwindow *window, GLFWwindowcontentscalefun callback)
 Sets the window content scale callback for the specified window. More...
 
void glfwPollEvents (void)
 Processes all pending events. More...
 
void glfwWaitEvents (void)
 Waits until events are queued and processes them. More...
 
void glfwWaitEventsTimeout (double timeout)
 Waits with timeout until events are queued and processes them. More...
 
void glfwPostEmptyEvent (void)
 Posts an empty event to the event queue. More...
 
int glfwGetInputMode (GLFWwindow *window, int mode)
 Returns the value of an input option for the specified window. More...
 
void glfwSetInputMode (GLFWwindow *window, int mode, int value)
 Sets an input option for the specified window. More...
 
int glfwRawMouseMotionSupported (void)
 Returns whether raw mouse motion is supported. More...
 
const char * glfwGetKeyName (int key, int scancode)
 Returns the layout-specific name of the specified printable key. More...
 
int glfwGetKeyScancode (int key)
 Returns the platform-specific scancode of the specified key. More...
 
int glfwGetKey (GLFWwindow *window, int key)
 Returns the last reported state of a keyboard key for the specified window. More...
 
int glfwGetMouseButton (GLFWwindow *window, int button)
 Returns the last reported state of a mouse button for the specified window. More...
 
void glfwGetCursorPos (GLFWwindow *window, double *xpos, double *ypos)
 Retrieves the position of the cursor relative to the content area of the window. More...
 
void glfwSetCursorPos (GLFWwindow *window, double xpos, double ypos)
 Sets the position of the cursor, relative to the content area of the window. More...
 
GLFWcursorglfwCreateCursor (const GLFWimage *image, int xhot, int yhot)
 Creates a custom cursor. More...
 
GLFWcursorglfwCreateStandardCursor (int shape)
 Creates a cursor with a standard shape. More...
 
void glfwDestroyCursor (GLFWcursor *cursor)
 Destroys a cursor. More...
 
void glfwSetCursor (GLFWwindow *window, GLFWcursor *cursor)
 Sets the cursor for the window. More...
 
GLFWkeyfun glfwSetKeyCallback (GLFWwindow *window, GLFWkeyfun callback)
 Sets the key callback. More...
 
GLFWcharfun glfwSetCharCallback (GLFWwindow *window, GLFWcharfun callback)
 Sets the Unicode character callback. More...
 
GLFWcharmodsfun glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun callback)
 Sets the Unicode character with modifiers callback. More...
 
GLFWmousebuttonfun glfwSetMouseButtonCallback (GLFWwindow *window, GLFWmousebuttonfun callback)
 Sets the mouse button callback. More...
 
GLFWcursorposfun glfwSetCursorPosCallback (GLFWwindow *window, GLFWcursorposfun callback)
 Sets the cursor position callback. More...
 
GLFWcursorenterfun glfwSetCursorEnterCallback (GLFWwindow *window, GLFWcursorenterfun callback)
 Sets the cursor enter/leave callback. More...
 
GLFWscrollfun glfwSetScrollCallback (GLFWwindow *window, GLFWscrollfun callback)
 Sets the scroll callback. More...
 
GLFWdropfun glfwSetDropCallback (GLFWwindow *window, GLFWdropfun callback)
 Sets the path drop callback. More...
 
int glfwJoystickPresent (int jid)
 Returns whether the specified joystick is present. More...
 
const float * glfwGetJoystickAxes (int jid, int *count)
 Returns the values of all axes of the specified joystick. More...
 
const unsigned char * glfwGetJoystickButtons (int jid, int *count)
 Returns the state of all buttons of the specified joystick. More...
 
const unsigned char * glfwGetJoystickHats (int jid, int *count)
 Returns the state of all hats of the specified joystick. More...
 
const char * glfwGetJoystickName (int jid)
 Returns the name of the specified joystick. More...
 
const char * glfwGetJoystickGUID (int jid)
 Returns the SDL compatible GUID of the specified joystick. More...
 
void glfwSetJoystickUserPointer (int jid, void *pointer)
 Sets the user pointer of the specified joystick. More...
 
void * glfwGetJoystickUserPointer (int jid)
 Returns the user pointer of the specified joystick. More...
 
int glfwJoystickIsGamepad (int jid)
 Returns whether the specified joystick has a gamepad mapping. More...
 
GLFWjoystickfun glfwSetJoystickCallback (GLFWjoystickfun callback)
 Sets the joystick configuration callback. More...
 
int glfwUpdateGamepadMappings (const char *string)
 Adds the specified SDL_GameControllerDB gamepad mappings. More...
 
const char * glfwGetGamepadName (int jid)
 Returns the human-readable gamepad name for the specified joystick. More...
 
int glfwGetGamepadState (int jid, GLFWgamepadstate *state)
 Retrieves the state of the specified joystick remapped as a gamepad. More...
 
void glfwSetClipboardString (GLFWwindow *window, const char *string)
 Sets the clipboard to the specified string. More...
 
const char * glfwGetClipboardString (GLFWwindow *window)
 Returns the contents of the clipboard as a string. More...
 
double glfwGetTime (void)
 Returns the GLFW time. More...
 
void glfwSetTime (double time)
 Sets the GLFW time. More...
 
uint64_t glfwGetTimerValue (void)
 Returns the current value of the raw timer. More...
 
uint64_t glfwGetTimerFrequency (void)
 Returns the frequency, in Hz, of the raw timer. More...
 
void glfwMakeContextCurrent (GLFWwindow *window)
 Makes the context of the specified window current for the calling thread. More...
 
GLFWwindowglfwGetCurrentContext (void)
 Returns the window whose context is current on the calling thread. More...
 
void glfwSwapBuffers (GLFWwindow *window)
 Swaps the front and back buffers of the specified window. More...
 
void glfwSwapInterval (int interval)
 Sets the swap interval for the current context. More...
 
int glfwExtensionSupported (const char *extension)
 Returns whether the specified extension is available. More...
 
GLFWglproc glfwGetProcAddress (const char *procname)
 Returns the address of the specified function for the current context. More...
 
int glfwVulkanSupported (void)
 Returns whether the Vulkan loader and an ICD have been found. More...
 
const char ** glfwGetRequiredInstanceExtensions (uint32_t *count)
 Returns the Vulkan instance extensions required by GLFW. More...
 
GLFWvkproc glfwGetInstanceProcAddress (VkInstance instance, const char *procname)
 Returns the address of the specified Vulkan instance function. More...
 
int glfwGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
 Returns whether the specified queue family can present images. More...
 
VkResult glfwCreateWindowSurface (VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface)
 Creates a Vulkan surface for the specified window. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_APIENTRY_DEFINED

+ +
+
+ + + + +
#define GLFW_APIENTRY_DEFINED
+
+ +
+
+ +

◆ GLFW_NO_API

+ +
+
+ + + + +
#define GLFW_NO_API   0
+
+ +
+
+ +

◆ GLFW_OPENGL_API

+ +
+
+ + + + +
#define GLFW_OPENGL_API   0x00030001
+
+ +
+
+ +

◆ GLFW_OPENGL_ES_API

+ +
+
+ + + + +
#define GLFW_OPENGL_ES_API   0x00030002
+
+ +
+
+ +

◆ GLFW_NO_ROBUSTNESS

+ +
+
+ + + + +
#define GLFW_NO_ROBUSTNESS   0
+
+ +
+
+ +

◆ GLFW_NO_RESET_NOTIFICATION

+ +
+
+ + + + +
#define GLFW_NO_RESET_NOTIFICATION   0x00031001
+
+ +
+
+ +

◆ GLFW_LOSE_CONTEXT_ON_RESET

+ +
+
+ + + + +
#define GLFW_LOSE_CONTEXT_ON_RESET   0x00031002
+
+ +
+
+ +

◆ GLFW_OPENGL_ANY_PROFILE

+ +
+
+ + + + +
#define GLFW_OPENGL_ANY_PROFILE   0
+
+ +
+
+ +

◆ GLFW_OPENGL_CORE_PROFILE

+ +
+
+ + + + +
#define GLFW_OPENGL_CORE_PROFILE   0x00032001
+
+ +
+
+ +

◆ GLFW_OPENGL_COMPAT_PROFILE

+ +
+
+ + + + +
#define GLFW_OPENGL_COMPAT_PROFILE   0x00032002
+
+ +
+
+ +

◆ GLFW_CURSOR

+ +
+
+ + + + +
#define GLFW_CURSOR   0x00033001
+
+ +
+
+ +

◆ GLFW_STICKY_KEYS

+ +
+
+ + + + +
#define GLFW_STICKY_KEYS   0x00033002
+
+ +
+
+ +

◆ GLFW_STICKY_MOUSE_BUTTONS

+ +
+
+ + + + +
#define GLFW_STICKY_MOUSE_BUTTONS   0x00033003
+
+ +
+
+ +

◆ GLFW_LOCK_KEY_MODS

+ +
+
+ + + + +
#define GLFW_LOCK_KEY_MODS   0x00033004
+
+ +
+
+ +

◆ GLFW_RAW_MOUSE_MOTION

+ +
+
+ + + + +
#define GLFW_RAW_MOUSE_MOTION   0x00033005
+
+ +
+
+ +

◆ GLFW_CURSOR_NORMAL

+ +
+
+ + + + +
#define GLFW_CURSOR_NORMAL   0x00034001
+
+ +
+
+ +

◆ GLFW_CURSOR_HIDDEN

+ +
+
+ + + + +
#define GLFW_CURSOR_HIDDEN   0x00034002
+
+ +
+
+ +

◆ GLFW_CURSOR_DISABLED

+ +
+
+ + + + +
#define GLFW_CURSOR_DISABLED   0x00034003
+
+ +
+
+ +

◆ GLFW_ANY_RELEASE_BEHAVIOR

+ +
+
+ + + + +
#define GLFW_ANY_RELEASE_BEHAVIOR   0
+
+ +
+
+ +

◆ GLFW_RELEASE_BEHAVIOR_FLUSH

+ +
+
+ + + + +
#define GLFW_RELEASE_BEHAVIOR_FLUSH   0x00035001
+
+ +
+
+ +

◆ GLFW_RELEASE_BEHAVIOR_NONE

+ +
+
+ + + + +
#define GLFW_RELEASE_BEHAVIOR_NONE   0x00035002
+
+ +
+
+ +

◆ GLFW_NATIVE_CONTEXT_API

+ +
+
+ + + + +
#define GLFW_NATIVE_CONTEXT_API   0x00036001
+
+ +
+
+ +

◆ GLFW_EGL_CONTEXT_API

+ +
+
+ + + + +
#define GLFW_EGL_CONTEXT_API   0x00036002
+
+ +
+
+ +

◆ GLFW_OSMESA_CONTEXT_API

+ +
+
+ + + + +
#define GLFW_OSMESA_CONTEXT_API   0x00036003
+
+ +
+
+ +

◆ GLFW_CONNECTED

+ +
+
+ + + + +
#define GLFW_CONNECTED   0x00040001
+
+ +
+
+ +

◆ GLFW_DISCONNECTED

+ +
+
+ + + + +
#define GLFW_DISCONNECTED   0x00040002
+
+ +
+
+ +

◆ GLFW_DONT_CARE

+ +
+
+ + + + +
#define GLFW_DONT_CARE   -1
+
+ +
+
+ +

◆ GLAPIENTRY

+ +
+
+ + + + +
#define GLAPIENTRY   APIENTRY
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/glfw3_8h_source.html b/external/glfw-3.3.4/docs/html/glfw3_8h_source.html new file mode 100644 index 0000000..d4822b1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/glfw3_8h_source.html @@ -0,0 +1,1152 @@ + + + + + + + +GLFW: glfw3.h Source File + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
glfw3.h
+
+
+Go to the documentation of this file.
1 /*************************************************************************
+
2  * GLFW 3.3 - www.glfw.org
+
3  * A library for OpenGL, window and input
+
4  *------------------------------------------------------------------------
+
5  * Copyright (c) 2002-2006 Marcus Geelnard
+
6  * Copyright (c) 2006-2019 Camilla Löwy <elmindreda@glfw.org>
+
7  *
+
8  * This software is provided 'as-is', without any express or implied
+
9  * warranty. In no event will the authors be held liable for any damages
+
10  * arising from the use of this software.
+
11  *
+
12  * Permission is granted to anyone to use this software for any purpose,
+
13  * including commercial applications, and to alter it and redistribute it
+
14  * freely, subject to the following restrictions:
+
15  *
+
16  * 1. The origin of this software must not be misrepresented; you must not
+
17  * claim that you wrote the original software. If you use this software
+
18  * in a product, an acknowledgment in the product documentation would
+
19  * be appreciated but is not required.
+
20  *
+
21  * 2. Altered source versions must be plainly marked as such, and must not
+
22  * be misrepresented as being the original software.
+
23  *
+
24  * 3. This notice may not be removed or altered from any source
+
25  * distribution.
+
26  *
+
27  *************************************************************************/
+
28 
+
29 #ifndef _glfw3_h_
+
30 #define _glfw3_h_
+
31 
+
32 #ifdef __cplusplus
+
33 extern "C" {
+
34 #endif
+
35 
+
36 
+
37 /*************************************************************************
+
38  * Doxygen documentation
+
39  *************************************************************************/
+
40 
+
89 /*************************************************************************
+
90  * Compiler- and platform-specific preprocessor work
+
91  *************************************************************************/
+
92 
+
93 /* If we are we on Windows, we want a single define for it.
+
94  */
+
95 #if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__))
+
96  #define _WIN32
+
97 #endif /* _WIN32 */
+
98 
+
99 /* Include because most Windows GLU headers need wchar_t and
+
100  * the macOS OpenGL header blocks the definition of ptrdiff_t by glext.h.
+
101  * Include it unconditionally to avoid surprising side-effects.
+
102  */
+
103 #include <stddef.h>
+
104 
+
105 /* Include because it is needed by Vulkan and related functions.
+
106  * Include it unconditionally to avoid surprising side-effects.
+
107  */
+
108 #include <stdint.h>
+
109 
+
110 #if defined(GLFW_INCLUDE_VULKAN)
+
111  #include <vulkan/vulkan.h>
+
112 #endif /* Vulkan header */
+
113 
+
114 /* The Vulkan header may have indirectly included windows.h (because of
+
115  * VK_USE_PLATFORM_WIN32_KHR) so we offer our replacement symbols after it.
+
116  */
+
117 
+
118 /* It is customary to use APIENTRY for OpenGL function pointer declarations on
+
119  * all platforms. Additionally, the Windows OpenGL header needs APIENTRY.
+
120  */
+
121 #if !defined(APIENTRY)
+
122  #if defined(_WIN32)
+
123  #define APIENTRY __stdcall
+
124  #else
+
125  #define APIENTRY
+
126  #endif
+
127  #define GLFW_APIENTRY_DEFINED
+
128 #endif /* APIENTRY */
+
129 
+
130 /* Some Windows OpenGL headers need this.
+
131  */
+
132 #if !defined(WINGDIAPI) && defined(_WIN32)
+
133  #define WINGDIAPI __declspec(dllimport)
+
134  #define GLFW_WINGDIAPI_DEFINED
+
135 #endif /* WINGDIAPI */
+
136 
+
137 /* Some Windows GLU headers need this.
+
138  */
+
139 #if !defined(CALLBACK) && defined(_WIN32)
+
140  #define CALLBACK __stdcall
+
141  #define GLFW_CALLBACK_DEFINED
+
142 #endif /* CALLBACK */
+
143 
+
144 /* Include the chosen OpenGL or OpenGL ES headers.
+
145  */
+
146 #if defined(GLFW_INCLUDE_ES1)
+
147 
+
148  #include <GLES/gl.h>
+
149  #if defined(GLFW_INCLUDE_GLEXT)
+
150  #include <GLES/glext.h>
+
151  #endif
+
152 
+
153 #elif defined(GLFW_INCLUDE_ES2)
+
154 
+
155  #include <GLES2/gl2.h>
+
156  #if defined(GLFW_INCLUDE_GLEXT)
+
157  #include <GLES2/gl2ext.h>
+
158  #endif
+
159 
+
160 #elif defined(GLFW_INCLUDE_ES3)
+
161 
+
162  #include <GLES3/gl3.h>
+
163  #if defined(GLFW_INCLUDE_GLEXT)
+
164  #include <GLES2/gl2ext.h>
+
165  #endif
+
166 
+
167 #elif defined(GLFW_INCLUDE_ES31)
+
168 
+
169  #include <GLES3/gl31.h>
+
170  #if defined(GLFW_INCLUDE_GLEXT)
+
171  #include <GLES2/gl2ext.h>
+
172  #endif
+
173 
+
174 #elif defined(GLFW_INCLUDE_ES32)
+
175 
+
176  #include <GLES3/gl32.h>
+
177  #if defined(GLFW_INCLUDE_GLEXT)
+
178  #include <GLES2/gl2ext.h>
+
179  #endif
+
180 
+
181 #elif defined(GLFW_INCLUDE_GLCOREARB)
+
182 
+
183  #if defined(__APPLE__)
+
184 
+
185  #include <OpenGL/gl3.h>
+
186  #if defined(GLFW_INCLUDE_GLEXT)
+
187  #include <OpenGL/gl3ext.h>
+
188  #endif /*GLFW_INCLUDE_GLEXT*/
+
189 
+
190  #else /*__APPLE__*/
+
191 
+
192  #include <GL/glcorearb.h>
+
193 
+
194  #endif /*__APPLE__*/
+
195 
+
196 #elif defined(GLFW_INCLUDE_GLU)
+
197 
+
198  #if defined(__APPLE__)
+
199 
+
200  #if defined(GLFW_INCLUDE_GLU)
+
201  #include <OpenGL/glu.h>
+
202  #endif
+
203 
+
204  #else /*__APPLE__*/
+
205 
+
206  #if defined(GLFW_INCLUDE_GLU)
+
207  #include <GL/glu.h>
+
208  #endif
+
209 
+
210  #endif /*__APPLE__*/
+
211 
+
212 #elif !defined(GLFW_INCLUDE_NONE) && \
+
213  !defined(__gl_h_) && \
+
214  !defined(__gles1_gl_h_) && \
+
215  !defined(__gles2_gl2_h_) && \
+
216  !defined(__gles2_gl3_h_) && \
+
217  !defined(__gles2_gl31_h_) && \
+
218  !defined(__gles2_gl32_h_) && \
+
219  !defined(__gl_glcorearb_h_) && \
+
220  !defined(__gl2_h_) /*legacy*/ && \
+
221  !defined(__gl3_h_) /*legacy*/ && \
+
222  !defined(__gl31_h_) /*legacy*/ && \
+
223  !defined(__gl32_h_) /*legacy*/ && \
+
224  !defined(__glcorearb_h_) /*legacy*/ && \
+
225  !defined(__GL_H__) /*non-standard*/ && \
+
226  !defined(__gltypes_h_) /*non-standard*/ && \
+
227  !defined(__glee_h_) /*non-standard*/
+
228 
+
229  #if defined(__APPLE__)
+
230 
+
231  #if !defined(GLFW_INCLUDE_GLEXT)
+
232  #define GL_GLEXT_LEGACY
+
233  #endif
+
234  #include <OpenGL/gl.h>
+
235 
+
236  #else /*__APPLE__*/
+
237 
+
238  #include <GL/gl.h>
+
239  #if defined(GLFW_INCLUDE_GLEXT)
+
240  #include <GL/glext.h>
+
241  #endif
+
242 
+
243  #endif /*__APPLE__*/
+
244 
+
245 #endif /* OpenGL and OpenGL ES headers */
+
246 
+
247 #if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL)
+
248  /* GLFW_DLL must be defined by applications that are linking against the DLL
+
249  * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW
+
250  * configuration header when compiling the DLL version of the library.
+
251  */
+
252  #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined"
+
253 #endif
+
254 
+
255 /* GLFWAPI is used to declare public API functions for export
+
256  * from the DLL / shared library / dynamic library.
+
257  */
+
258 #if defined(_WIN32) && defined(_GLFW_BUILD_DLL)
+
259  /* We are building GLFW as a Win32 DLL */
+
260  #define GLFWAPI __declspec(dllexport)
+
261 #elif defined(_WIN32) && defined(GLFW_DLL)
+
262  /* We are calling GLFW as a Win32 DLL */
+
263  #define GLFWAPI __declspec(dllimport)
+
264 #elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL)
+
265  /* We are building GLFW as a shared / dynamic library */
+
266  #define GLFWAPI __attribute__((visibility("default")))
+
267 #else
+
268  /* We are building or calling GLFW as a static library */
+
269  #define GLFWAPI
+
270 #endif
+
271 
+
272 
+
273 /*************************************************************************
+
274  * GLFW API tokens
+
275  *************************************************************************/
+
276 
+
284 #define GLFW_VERSION_MAJOR 3
+
291 #define GLFW_VERSION_MINOR 3
+
298 #define GLFW_VERSION_REVISION 4
+
309 #define GLFW_TRUE 1
+
318 #define GLFW_FALSE 0
+
319 
+
328 #define GLFW_RELEASE 0
+
335 #define GLFW_PRESS 1
+
342 #define GLFW_REPEAT 2
+
352 #define GLFW_HAT_CENTERED 0
+
353 #define GLFW_HAT_UP 1
+
354 #define GLFW_HAT_RIGHT 2
+
355 #define GLFW_HAT_DOWN 4
+
356 #define GLFW_HAT_LEFT 8
+
357 #define GLFW_HAT_RIGHT_UP (GLFW_HAT_RIGHT | GLFW_HAT_UP)
+
358 #define GLFW_HAT_RIGHT_DOWN (GLFW_HAT_RIGHT | GLFW_HAT_DOWN)
+
359 #define GLFW_HAT_LEFT_UP (GLFW_HAT_LEFT | GLFW_HAT_UP)
+
360 #define GLFW_HAT_LEFT_DOWN (GLFW_HAT_LEFT | GLFW_HAT_DOWN)
+
387 /* The unknown key */
+
388 #define GLFW_KEY_UNKNOWN -1
+
389 
+
390 /* Printable keys */
+
391 #define GLFW_KEY_SPACE 32
+
392 #define GLFW_KEY_APOSTROPHE 39 /* ' */
+
393 #define GLFW_KEY_COMMA 44 /* , */
+
394 #define GLFW_KEY_MINUS 45 /* - */
+
395 #define GLFW_KEY_PERIOD 46 /* . */
+
396 #define GLFW_KEY_SLASH 47 /* / */
+
397 #define GLFW_KEY_0 48
+
398 #define GLFW_KEY_1 49
+
399 #define GLFW_KEY_2 50
+
400 #define GLFW_KEY_3 51
+
401 #define GLFW_KEY_4 52
+
402 #define GLFW_KEY_5 53
+
403 #define GLFW_KEY_6 54
+
404 #define GLFW_KEY_7 55
+
405 #define GLFW_KEY_8 56
+
406 #define GLFW_KEY_9 57
+
407 #define GLFW_KEY_SEMICOLON 59 /* ; */
+
408 #define GLFW_KEY_EQUAL 61 /* = */
+
409 #define GLFW_KEY_A 65
+
410 #define GLFW_KEY_B 66
+
411 #define GLFW_KEY_C 67
+
412 #define GLFW_KEY_D 68
+
413 #define GLFW_KEY_E 69
+
414 #define GLFW_KEY_F 70
+
415 #define GLFW_KEY_G 71
+
416 #define GLFW_KEY_H 72
+
417 #define GLFW_KEY_I 73
+
418 #define GLFW_KEY_J 74
+
419 #define GLFW_KEY_K 75
+
420 #define GLFW_KEY_L 76
+
421 #define GLFW_KEY_M 77
+
422 #define GLFW_KEY_N 78
+
423 #define GLFW_KEY_O 79
+
424 #define GLFW_KEY_P 80
+
425 #define GLFW_KEY_Q 81
+
426 #define GLFW_KEY_R 82
+
427 #define GLFW_KEY_S 83
+
428 #define GLFW_KEY_T 84
+
429 #define GLFW_KEY_U 85
+
430 #define GLFW_KEY_V 86
+
431 #define GLFW_KEY_W 87
+
432 #define GLFW_KEY_X 88
+
433 #define GLFW_KEY_Y 89
+
434 #define GLFW_KEY_Z 90
+
435 #define GLFW_KEY_LEFT_BRACKET 91 /* [ */
+
436 #define GLFW_KEY_BACKSLASH 92 /* \ */
+
437 #define GLFW_KEY_RIGHT_BRACKET 93 /* ] */
+
438 #define GLFW_KEY_GRAVE_ACCENT 96 /* ` */
+
439 #define GLFW_KEY_WORLD_1 161 /* non-US #1 */
+
440 #define GLFW_KEY_WORLD_2 162 /* non-US #2 */
+
441 
+
442 /* Function keys */
+
443 #define GLFW_KEY_ESCAPE 256
+
444 #define GLFW_KEY_ENTER 257
+
445 #define GLFW_KEY_TAB 258
+
446 #define GLFW_KEY_BACKSPACE 259
+
447 #define GLFW_KEY_INSERT 260
+
448 #define GLFW_KEY_DELETE 261
+
449 #define GLFW_KEY_RIGHT 262
+
450 #define GLFW_KEY_LEFT 263
+
451 #define GLFW_KEY_DOWN 264
+
452 #define GLFW_KEY_UP 265
+
453 #define GLFW_KEY_PAGE_UP 266
+
454 #define GLFW_KEY_PAGE_DOWN 267
+
455 #define GLFW_KEY_HOME 268
+
456 #define GLFW_KEY_END 269
+
457 #define GLFW_KEY_CAPS_LOCK 280
+
458 #define GLFW_KEY_SCROLL_LOCK 281
+
459 #define GLFW_KEY_NUM_LOCK 282
+
460 #define GLFW_KEY_PRINT_SCREEN 283
+
461 #define GLFW_KEY_PAUSE 284
+
462 #define GLFW_KEY_F1 290
+
463 #define GLFW_KEY_F2 291
+
464 #define GLFW_KEY_F3 292
+
465 #define GLFW_KEY_F4 293
+
466 #define GLFW_KEY_F5 294
+
467 #define GLFW_KEY_F6 295
+
468 #define GLFW_KEY_F7 296
+
469 #define GLFW_KEY_F8 297
+
470 #define GLFW_KEY_F9 298
+
471 #define GLFW_KEY_F10 299
+
472 #define GLFW_KEY_F11 300
+
473 #define GLFW_KEY_F12 301
+
474 #define GLFW_KEY_F13 302
+
475 #define GLFW_KEY_F14 303
+
476 #define GLFW_KEY_F15 304
+
477 #define GLFW_KEY_F16 305
+
478 #define GLFW_KEY_F17 306
+
479 #define GLFW_KEY_F18 307
+
480 #define GLFW_KEY_F19 308
+
481 #define GLFW_KEY_F20 309
+
482 #define GLFW_KEY_F21 310
+
483 #define GLFW_KEY_F22 311
+
484 #define GLFW_KEY_F23 312
+
485 #define GLFW_KEY_F24 313
+
486 #define GLFW_KEY_F25 314
+
487 #define GLFW_KEY_KP_0 320
+
488 #define GLFW_KEY_KP_1 321
+
489 #define GLFW_KEY_KP_2 322
+
490 #define GLFW_KEY_KP_3 323
+
491 #define GLFW_KEY_KP_4 324
+
492 #define GLFW_KEY_KP_5 325
+
493 #define GLFW_KEY_KP_6 326
+
494 #define GLFW_KEY_KP_7 327
+
495 #define GLFW_KEY_KP_8 328
+
496 #define GLFW_KEY_KP_9 329
+
497 #define GLFW_KEY_KP_DECIMAL 330
+
498 #define GLFW_KEY_KP_DIVIDE 331
+
499 #define GLFW_KEY_KP_MULTIPLY 332
+
500 #define GLFW_KEY_KP_SUBTRACT 333
+
501 #define GLFW_KEY_KP_ADD 334
+
502 #define GLFW_KEY_KP_ENTER 335
+
503 #define GLFW_KEY_KP_EQUAL 336
+
504 #define GLFW_KEY_LEFT_SHIFT 340
+
505 #define GLFW_KEY_LEFT_CONTROL 341
+
506 #define GLFW_KEY_LEFT_ALT 342
+
507 #define GLFW_KEY_LEFT_SUPER 343
+
508 #define GLFW_KEY_RIGHT_SHIFT 344
+
509 #define GLFW_KEY_RIGHT_CONTROL 345
+
510 #define GLFW_KEY_RIGHT_ALT 346
+
511 #define GLFW_KEY_RIGHT_SUPER 347
+
512 #define GLFW_KEY_MENU 348
+
513 
+
514 #define GLFW_KEY_LAST GLFW_KEY_MENU
+
515 
+
530 #define GLFW_MOD_SHIFT 0x0001
+
535 #define GLFW_MOD_CONTROL 0x0002
+
540 #define GLFW_MOD_ALT 0x0004
+
545 #define GLFW_MOD_SUPER 0x0008
+
551 #define GLFW_MOD_CAPS_LOCK 0x0010
+
557 #define GLFW_MOD_NUM_LOCK 0x0020
+
558 
+
568 #define GLFW_MOUSE_BUTTON_1 0
+
569 #define GLFW_MOUSE_BUTTON_2 1
+
570 #define GLFW_MOUSE_BUTTON_3 2
+
571 #define GLFW_MOUSE_BUTTON_4 3
+
572 #define GLFW_MOUSE_BUTTON_5 4
+
573 #define GLFW_MOUSE_BUTTON_6 5
+
574 #define GLFW_MOUSE_BUTTON_7 6
+
575 #define GLFW_MOUSE_BUTTON_8 7
+
576 #define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8
+
577 #define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1
+
578 #define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2
+
579 #define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3
+
589 #define GLFW_JOYSTICK_1 0
+
590 #define GLFW_JOYSTICK_2 1
+
591 #define GLFW_JOYSTICK_3 2
+
592 #define GLFW_JOYSTICK_4 3
+
593 #define GLFW_JOYSTICK_5 4
+
594 #define GLFW_JOYSTICK_6 5
+
595 #define GLFW_JOYSTICK_7 6
+
596 #define GLFW_JOYSTICK_8 7
+
597 #define GLFW_JOYSTICK_9 8
+
598 #define GLFW_JOYSTICK_10 9
+
599 #define GLFW_JOYSTICK_11 10
+
600 #define GLFW_JOYSTICK_12 11
+
601 #define GLFW_JOYSTICK_13 12
+
602 #define GLFW_JOYSTICK_14 13
+
603 #define GLFW_JOYSTICK_15 14
+
604 #define GLFW_JOYSTICK_16 15
+
605 #define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16
+
615 #define GLFW_GAMEPAD_BUTTON_A 0
+
616 #define GLFW_GAMEPAD_BUTTON_B 1
+
617 #define GLFW_GAMEPAD_BUTTON_X 2
+
618 #define GLFW_GAMEPAD_BUTTON_Y 3
+
619 #define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER 4
+
620 #define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER 5
+
621 #define GLFW_GAMEPAD_BUTTON_BACK 6
+
622 #define GLFW_GAMEPAD_BUTTON_START 7
+
623 #define GLFW_GAMEPAD_BUTTON_GUIDE 8
+
624 #define GLFW_GAMEPAD_BUTTON_LEFT_THUMB 9
+
625 #define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB 10
+
626 #define GLFW_GAMEPAD_BUTTON_DPAD_UP 11
+
627 #define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT 12
+
628 #define GLFW_GAMEPAD_BUTTON_DPAD_DOWN 13
+
629 #define GLFW_GAMEPAD_BUTTON_DPAD_LEFT 14
+
630 #define GLFW_GAMEPAD_BUTTON_LAST GLFW_GAMEPAD_BUTTON_DPAD_LEFT
+
631 
+
632 #define GLFW_GAMEPAD_BUTTON_CROSS GLFW_GAMEPAD_BUTTON_A
+
633 #define GLFW_GAMEPAD_BUTTON_CIRCLE GLFW_GAMEPAD_BUTTON_B
+
634 #define GLFW_GAMEPAD_BUTTON_SQUARE GLFW_GAMEPAD_BUTTON_X
+
635 #define GLFW_GAMEPAD_BUTTON_TRIANGLE GLFW_GAMEPAD_BUTTON_Y
+
645 #define GLFW_GAMEPAD_AXIS_LEFT_X 0
+
646 #define GLFW_GAMEPAD_AXIS_LEFT_Y 1
+
647 #define GLFW_GAMEPAD_AXIS_RIGHT_X 2
+
648 #define GLFW_GAMEPAD_AXIS_RIGHT_Y 3
+
649 #define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER 4
+
650 #define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER 5
+
651 #define GLFW_GAMEPAD_AXIS_LAST GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
+
667 #define GLFW_NO_ERROR 0
+
676 #define GLFW_NOT_INITIALIZED 0x00010001
+
686 #define GLFW_NO_CURRENT_CONTEXT 0x00010002
+
694 #define GLFW_INVALID_ENUM 0x00010003
+
705 #define GLFW_INVALID_VALUE 0x00010004
+
713 #define GLFW_OUT_OF_MEMORY 0x00010005
+
729 #define GLFW_API_UNAVAILABLE 0x00010006
+
746 #define GLFW_VERSION_UNAVAILABLE 0x00010007
+
757 #define GLFW_PLATFORM_ERROR 0x00010008
+
776 #define GLFW_FORMAT_UNAVAILABLE 0x00010009
+
784 #define GLFW_NO_WINDOW_CONTEXT 0x0001000A
+
794 #define GLFW_FOCUSED 0x00020001
+
799 #define GLFW_ICONIFIED 0x00020002
+
805 #define GLFW_RESIZABLE 0x00020003
+
811 #define GLFW_VISIBLE 0x00020004
+
817 #define GLFW_DECORATED 0x00020005
+
823 #define GLFW_AUTO_ICONIFY 0x00020006
+
829 #define GLFW_FLOATING 0x00020007
+
835 #define GLFW_MAXIMIZED 0x00020008
+
840 #define GLFW_CENTER_CURSOR 0x00020009
+
847 #define GLFW_TRANSPARENT_FRAMEBUFFER 0x0002000A
+
852 #define GLFW_HOVERED 0x0002000B
+
858 #define GLFW_FOCUS_ON_SHOW 0x0002000C
+
859 
+
864 #define GLFW_RED_BITS 0x00021001
+
869 #define GLFW_GREEN_BITS 0x00021002
+
874 #define GLFW_BLUE_BITS 0x00021003
+
879 #define GLFW_ALPHA_BITS 0x00021004
+
884 #define GLFW_DEPTH_BITS 0x00021005
+
889 #define GLFW_STENCIL_BITS 0x00021006
+
894 #define GLFW_ACCUM_RED_BITS 0x00021007
+
899 #define GLFW_ACCUM_GREEN_BITS 0x00021008
+
904 #define GLFW_ACCUM_BLUE_BITS 0x00021009
+
909 #define GLFW_ACCUM_ALPHA_BITS 0x0002100A
+
914 #define GLFW_AUX_BUFFERS 0x0002100B
+
919 #define GLFW_STEREO 0x0002100C
+
924 #define GLFW_SAMPLES 0x0002100D
+
929 #define GLFW_SRGB_CAPABLE 0x0002100E
+
934 #define GLFW_REFRESH_RATE 0x0002100F
+
939 #define GLFW_DOUBLEBUFFER 0x00021010
+
940 
+
946 #define GLFW_CLIENT_API 0x00022001
+
952 #define GLFW_CONTEXT_VERSION_MAJOR 0x00022002
+
958 #define GLFW_CONTEXT_VERSION_MINOR 0x00022003
+
964 #define GLFW_CONTEXT_REVISION 0x00022004
+
970 #define GLFW_CONTEXT_ROBUSTNESS 0x00022005
+
976 #define GLFW_OPENGL_FORWARD_COMPAT 0x00022006
+
982 #define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007
+
988 #define GLFW_OPENGL_PROFILE 0x00022008
+
994 #define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009
+
1000 #define GLFW_CONTEXT_NO_ERROR 0x0002200A
+
1006 #define GLFW_CONTEXT_CREATION_API 0x0002200B
+
1010 #define GLFW_SCALE_TO_MONITOR 0x0002200C
+
1014 #define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001
+
1018 #define GLFW_COCOA_FRAME_NAME 0x00023002
+
1022 #define GLFW_COCOA_GRAPHICS_SWITCHING 0x00023003
+
1026 #define GLFW_X11_CLASS_NAME 0x00024001
+
1030 #define GLFW_X11_INSTANCE_NAME 0x00024002
+
1033 #define GLFW_NO_API 0
+
1034 #define GLFW_OPENGL_API 0x00030001
+
1035 #define GLFW_OPENGL_ES_API 0x00030002
+
1036 
+
1037 #define GLFW_NO_ROBUSTNESS 0
+
1038 #define GLFW_NO_RESET_NOTIFICATION 0x00031001
+
1039 #define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002
+
1040 
+
1041 #define GLFW_OPENGL_ANY_PROFILE 0
+
1042 #define GLFW_OPENGL_CORE_PROFILE 0x00032001
+
1043 #define GLFW_OPENGL_COMPAT_PROFILE 0x00032002
+
1044 
+
1045 #define GLFW_CURSOR 0x00033001
+
1046 #define GLFW_STICKY_KEYS 0x00033002
+
1047 #define GLFW_STICKY_MOUSE_BUTTONS 0x00033003
+
1048 #define GLFW_LOCK_KEY_MODS 0x00033004
+
1049 #define GLFW_RAW_MOUSE_MOTION 0x00033005
+
1050 
+
1051 #define GLFW_CURSOR_NORMAL 0x00034001
+
1052 #define GLFW_CURSOR_HIDDEN 0x00034002
+
1053 #define GLFW_CURSOR_DISABLED 0x00034003
+
1054 
+
1055 #define GLFW_ANY_RELEASE_BEHAVIOR 0
+
1056 #define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001
+
1057 #define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002
+
1058 
+
1059 #define GLFW_NATIVE_CONTEXT_API 0x00036001
+
1060 #define GLFW_EGL_CONTEXT_API 0x00036002
+
1061 #define GLFW_OSMESA_CONTEXT_API 0x00036003
+
1062 
+
1075 #define GLFW_ARROW_CURSOR 0x00036001
+
1080 #define GLFW_IBEAM_CURSOR 0x00036002
+
1085 #define GLFW_CROSSHAIR_CURSOR 0x00036003
+
1090 #define GLFW_HAND_CURSOR 0x00036004
+
1095 #define GLFW_HRESIZE_CURSOR 0x00036005
+
1100 #define GLFW_VRESIZE_CURSOR 0x00036006
+
1103 #define GLFW_CONNECTED 0x00040001
+
1104 #define GLFW_DISCONNECTED 0x00040002
+
1105 
+
1112 #define GLFW_JOYSTICK_HAT_BUTTONS 0x00050001
+
1117 #define GLFW_COCOA_CHDIR_RESOURCES 0x00051001
+
1122 #define GLFW_COCOA_MENUBAR 0x00051002
+
1125 #define GLFW_DONT_CARE -1
+
1126 
+
1127 
+
1128 /*************************************************************************
+
1129  * GLFW API types
+
1130  *************************************************************************/
+
1131 
+
1144 typedef void (*GLFWglproc)(void);
+
1145 
+
1158 typedef void (*GLFWvkproc)(void);
+
1159 
+
1170 typedef struct GLFWmonitor GLFWmonitor;
+
1171 
+
1182 typedef struct GLFWwindow GLFWwindow;
+
1183 
+
1194 typedef struct GLFWcursor GLFWcursor;
+
1195 
+
1218 typedef void (* GLFWerrorfun)(int,const char*);
+
1219 
+
1241 typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int);
+
1242 
+
1263 typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int);
+
1264 
+
1283 typedef void (* GLFWwindowclosefun)(GLFWwindow*);
+
1284 
+ +
1304 
+
1324 typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int);
+
1325 
+
1345 typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int);
+
1346 
+
1366 typedef void (* GLFWwindowmaximizefun)(GLFWwindow*,int);
+
1367 
+
1387 typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int);
+
1388 
+
1408 typedef void (* GLFWwindowcontentscalefun)(GLFWwindow*,float,float);
+
1409 
+
1434 typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int);
+
1435 
+
1457 typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double);
+
1458 
+
1478 typedef void (* GLFWcursorenterfun)(GLFWwindow*,int);
+
1479 
+
1499 typedef void (* GLFWscrollfun)(GLFWwindow*,double,double);
+
1500 
+
1525 typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int);
+
1526 
+
1546 typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int);
+
1547 
+
1573 typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int);
+
1574 
+
1597 typedef void (* GLFWdropfun)(GLFWwindow*,int,const char*[]);
+
1598 
+
1618 typedef void (* GLFWmonitorfun)(GLFWmonitor*,int);
+
1619 
+
1639 typedef void (* GLFWjoystickfun)(int,int);
+
1640 
+
1654 typedef struct GLFWvidmode
+
1655 {
+
1658  int width;
+
1661  int height;
+
1664  int redBits;
+ + + + +
1675 
+
1688 typedef struct GLFWgammaramp
+
1689 {
+
1692  unsigned short* red;
+
1695  unsigned short* green;
+
1698  unsigned short* blue;
+
1701  unsigned int size;
+ +
1703 
+
1717 typedef struct GLFWimage
+
1718 {
+
1721  int width;
+
1724  int height;
+
1727  unsigned char* pixels;
+ +
1729 
+
1741 typedef struct GLFWgamepadstate
+
1742 {
+
1746  unsigned char buttons[15];
+
1750  float axes[6];
+ +
1752 
+
1753 
+
1754 /*************************************************************************
+
1755  * GLFW API functions
+
1756  *************************************************************************/
+
1757 
+
1794 GLFWAPI int glfwInit(void);
+
1795 
+
1828 GLFWAPI void glfwTerminate(void);
+
1829 
+
1860 GLFWAPI void glfwInitHint(int hint, int value);
+
1861 
+
1887 GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev);
+
1888 
+
1918 GLFWAPI const char* glfwGetVersionString(void);
+
1919 
+
1949 GLFWAPI int glfwGetError(const char** description);
+
1950 
+ +
1996 
+
2024 GLFWAPI GLFWmonitor** glfwGetMonitors(int* count);
+
2025 
+ +
2049 
+
2073 GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos);
+
2074 
+
2104 GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height);
+
2105 
+
2138 GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM);
+
2139 
+
2170 GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* monitor, float* xscale, float* yscale);
+
2171 
+
2196 GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor);
+
2197 
+
2222 GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* monitor, void* pointer);
+
2223 
+
2246 GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* monitor);
+
2247 
+ +
2277 
+
2309 GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count);
+
2310 
+
2337 GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor);
+
2338 
+
2370 GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma);
+
2371 
+
2400 GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor);
+
2401 
+
2441 GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp);
+
2442 
+
2460 GLFWAPI void glfwDefaultWindowHints(void);
+
2461 
+
2495 GLFWAPI void glfwWindowHint(int hint, int value);
+
2496 
+
2533 GLFWAPI void glfwWindowHintString(int hint, const char* value);
+
2534 
+
2687 GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
+
2688 
+
2716 GLFWAPI void glfwDestroyWindow(GLFWwindow* window);
+
2717 
+
2736 GLFWAPI int glfwWindowShouldClose(GLFWwindow* window);
+
2737 
+
2758 GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value);
+
2759 
+
2783 GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title);
+
2784 
+
2830 GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images);
+
2831 
+
2862 GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos);
+
2863 
+
2897 GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos);
+
2898 
+
2927 GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height);
+
2928 
+
2970 GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight);
+
2971 
+
3013 GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom);
+
3014 
+
3054 GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height);
+
3055 
+
3083 GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height);
+
3084 
+
3120 GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom);
+
3121 
+
3153 GLFWAPI void glfwGetWindowContentScale(GLFWwindow* window, float* xscale, float* yscale);
+
3154 
+
3180 GLFWAPI float glfwGetWindowOpacity(GLFWwindow* window);
+
3181 
+
3209 GLFWAPI void glfwSetWindowOpacity(GLFWwindow* window, float opacity);
+
3210 
+
3240 GLFWAPI void glfwIconifyWindow(GLFWwindow* window);
+
3241 
+
3267 GLFWAPI void glfwRestoreWindow(GLFWwindow* window);
+
3268 
+
3292 GLFWAPI void glfwMaximizeWindow(GLFWwindow* window);
+
3293 
+
3319 GLFWAPI void glfwShowWindow(GLFWwindow* window);
+
3320 
+
3341 GLFWAPI void glfwHideWindow(GLFWwindow* window);
+
3342 
+
3380 GLFWAPI void glfwFocusWindow(GLFWwindow* window);
+
3381 
+ +
3408 
+ +
3430 
+
3488 GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
+
3489 
+
3522 GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib);
+
3523 
+
3559 GLFWAPI void glfwSetWindowAttrib(GLFWwindow* window, int attrib, int value);
+
3560 
+
3582 GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer);
+
3583 
+
3603 GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window);
+
3604 
+ +
3639 
+ +
3671 
+ +
3711 
+ +
3747 
+ +
3782 
+ +
3815 
+ +
3845 
+ +
3875 
+ +
3906 
+
3943 GLFWAPI void glfwPollEvents(void);
+
3944 
+
3988 GLFWAPI void glfwWaitEvents(void);
+
3989 
+
4037 GLFWAPI void glfwWaitEventsTimeout(double timeout);
+
4038 
+
4057 GLFWAPI void glfwPostEmptyEvent(void);
+
4058 
+
4082 GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode);
+
4083 
+
4144 GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value);
+
4145 
+ +
4174 
+
4241 GLFWAPI const char* glfwGetKeyName(int key, int scancode);
+
4242 
+
4265 GLFWAPI int glfwGetKeyScancode(int key);
+
4266 
+
4305 GLFWAPI int glfwGetKey(GLFWwindow* window, int key);
+
4306 
+
4334 GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button);
+
4335 
+
4372 GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos);
+
4373 
+
4412 GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos);
+
4413 
+
4450 GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot);
+
4451 
+ +
4474 
+
4500 GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor);
+
4501 
+
4527 GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor);
+
4528 
+ +
4578 
+ +
4621 
+ +
4663 
+ +
4700 
+ +
4732 
+ +
4763 
+ +
4797 
+ +
4834 
+
4857 GLFWAPI int glfwJoystickPresent(int jid);
+
4858 
+
4890 GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count);
+
4891 
+
4931 GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count);
+
4932 
+
4988 GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count);
+
4989 
+
5019 GLFWAPI const char* glfwGetJoystickName(int jid);
+
5020 
+
5060 GLFWAPI const char* glfwGetJoystickGUID(int jid);
+
5061 
+
5086 GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer);
+
5087 
+
5110 GLFWAPI void* glfwGetJoystickUserPointer(int jid);
+
5111 
+
5138 GLFWAPI int glfwJoystickIsGamepad(int jid);
+
5139 
+ +
5175 
+
5208 GLFWAPI int glfwUpdateGamepadMappings(const char* string);
+
5209 
+
5238 GLFWAPI const char* glfwGetGamepadName(int jid);
+
5239 
+
5276 GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state);
+
5277 
+
5301 GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string);
+
5302 
+
5331 GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window);
+
5332 
+
5361 GLFWAPI double glfwGetTime(void);
+
5362 
+
5391 GLFWAPI void glfwSetTime(double time);
+
5392 
+
5413 GLFWAPI uint64_t glfwGetTimerValue(void);
+
5414 
+
5433 GLFWAPI uint64_t glfwGetTimerFrequency(void);
+
5434 
+
5471 GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window);
+
5472 
+ +
5493 
+
5526 GLFWAPI void glfwSwapBuffers(GLFWwindow* window);
+
5527 
+
5572 GLFWAPI void glfwSwapInterval(int interval);
+
5573 
+
5610 GLFWAPI int glfwExtensionSupported(const char* extension);
+
5611 
+
5652 GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname);
+
5653 
+
5680 GLFWAPI int glfwVulkanSupported(void);
+
5681 
+
5728 GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count);
+
5729 
+
5730 #if defined(VK_VERSION_1_0)
+
5731 
+
5771 GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname);
+
5772 
+
5808 GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
+
5809 
+
5869 GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
+
5870 
+
5871 #endif /*VK_VERSION_1_0*/
+
5872 
+
5873 
+
5874 /*************************************************************************
+
5875  * Global definition cleanup
+
5876  *************************************************************************/
+
5877 
+
5878 /* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */
+
5879 
+
5880 #ifdef GLFW_WINGDIAPI_DEFINED
+
5881  #undef WINGDIAPI
+
5882  #undef GLFW_WINGDIAPI_DEFINED
+
5883 #endif
+
5884 
+
5885 #ifdef GLFW_CALLBACK_DEFINED
+
5886  #undef CALLBACK
+
5887  #undef GLFW_CALLBACK_DEFINED
+
5888 #endif
+
5889 
+
5890 /* Some OpenGL related headers need GLAPIENTRY, but it is unconditionally
+
5891  * defined by some gl.h variants (OpenBSD) so define it after if needed.
+
5892  */
+
5893 #ifndef GLAPIENTRY
+
5894  #define GLAPIENTRY APIENTRY
+
5895 #endif
+
5896 
+
5897 /* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */
+
5898 
+
5899 
+
5900 #ifdef __cplusplus
+
5901 }
+
5902 #endif
+
5903 
+
5904 #endif /* _glfw3_h_ */
+
5905 
+
void glfwMakeContextCurrent(GLFWwindow *window)
Makes the context of the specified window current for the calling thread.
+
GLFWglproc glfwGetProcAddress(const char *procname)
Returns the address of the specified function for the current context.
+
void(* GLFWglproc)(void)
Client API function pointer type.
Definition: glfw3.h:1144
+
void glfwSwapInterval(int interval)
Sets the swap interval for the current context.
+
int glfwExtensionSupported(const char *extension)
Returns whether the specified extension is available.
+
GLFWwindow * glfwGetCurrentContext(void)
Returns the window whose context is current on the calling thread.
+
void glfwInitHint(int hint, int value)
Sets the specified init hint to the desired value.
+
const char * glfwGetVersionString(void)
Returns a string describing the compile-time configuration.
+
int glfwInit(void)
Initializes the GLFW library.
+
int glfwGetError(const char **description)
Returns and clears the last error for the calling thread.
+
void glfwGetVersion(int *major, int *minor, int *rev)
Retrieves the version of the GLFW library.
+
void(* GLFWerrorfun)(int, const char *)
The function pointer type for error callbacks.
Definition: glfw3.h:1218
+
void glfwTerminate(void)
Terminates the GLFW library.
+
GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback)
Sets the error callback.
+
void glfwGetCursorPos(GLFWwindow *window, double *xpos, double *ypos)
Retrieves the position of the cursor relative to the content area of the window.
+
void glfwSetCursorPos(GLFWwindow *window, double xpos, double ypos)
Sets the position of the cursor, relative to the content area of the window.
+
void * glfwGetJoystickUserPointer(int jid)
Returns the user pointer of the specified joystick.
+
void(* GLFWscrollfun)(GLFWwindow *, double, double)
The function pointer type for scroll callbacks.
Definition: glfw3.h:1499
+
void(* GLFWcursorposfun)(GLFWwindow *, double, double)
The function pointer type for cursor position callbacks.
Definition: glfw3.h:1457
+
uint64_t glfwGetTimerValue(void)
Returns the current value of the raw timer.
+
GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow *window, GLFWcharmodsfun callback)
Sets the Unicode character with modifiers callback.
+
GLFWkeyfun glfwSetKeyCallback(GLFWwindow *window, GLFWkeyfun callback)
Sets the key callback.
+
const char * glfwGetKeyName(int key, int scancode)
Returns the layout-specific name of the specified printable key.
+
void(* GLFWcharfun)(GLFWwindow *, unsigned int)
The function pointer type for Unicode character callbacks.
Definition: glfw3.h:1546
+
const unsigned char * glfwGetJoystickHats(int jid, int *count)
Returns the state of all hats of the specified joystick.
+
GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun callback)
Sets the joystick configuration callback.
+
uint64_t glfwGetTimerFrequency(void)
Returns the frequency, in Hz, of the raw timer.
+
GLFWscrollfun glfwSetScrollCallback(GLFWwindow *window, GLFWscrollfun callback)
Sets the scroll callback.
+
const char * glfwGetClipboardString(GLFWwindow *window)
Returns the contents of the clipboard as a string.
+
const char * glfwGetGamepadName(int jid)
Returns the human-readable gamepad name for the specified joystick.
+
struct GLFWgamepadstate GLFWgamepadstate
Gamepad input state.
+
int glfwGetKeyScancode(int key)
Returns the platform-specific scancode of the specified key.
+
GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow *window, GLFWmousebuttonfun callback)
Sets the mouse button callback.
+
void glfwSetJoystickUserPointer(int jid, void *pointer)
Sets the user pointer of the specified joystick.
+
void(* GLFWdropfun)(GLFWwindow *, int, const char *[])
The function pointer type for path drop callbacks.
Definition: glfw3.h:1597
+
void(* GLFWcharmodsfun)(GLFWwindow *, unsigned int, int)
The function pointer type for Unicode character with modifiers callbacks.
Definition: glfw3.h:1573
+
void glfwDestroyCursor(GLFWcursor *cursor)
Destroys a cursor.
+
struct GLFWcursor GLFWcursor
Opaque cursor object.
Definition: glfw3.h:1194
+
void(* GLFWcursorenterfun)(GLFWwindow *, int)
The function pointer type for cursor enter/leave callbacks.
Definition: glfw3.h:1478
+
void(* GLFWkeyfun)(GLFWwindow *, int, int, int, int)
The function pointer type for keyboard key callbacks.
Definition: glfw3.h:1525
+
GLFWcursor * glfwCreateStandardCursor(int shape)
Creates a cursor with a standard shape.
+
double glfwGetTime(void)
Returns the GLFW time.
+
const float * glfwGetJoystickAxes(int jid, int *count)
Returns the values of all axes of the specified joystick.
+
void glfwSetInputMode(GLFWwindow *window, int mode, int value)
Sets an input option for the specified window.
+
GLFWcharfun glfwSetCharCallback(GLFWwindow *window, GLFWcharfun callback)
Sets the Unicode character callback.
+
GLFWdropfun glfwSetDropCallback(GLFWwindow *window, GLFWdropfun callback)
Sets the path drop callback.
+
void glfwSetClipboardString(GLFWwindow *window, const char *string)
Sets the clipboard to the specified string.
+
int glfwGetMouseButton(GLFWwindow *window, int button)
Returns the last reported state of a mouse button for the specified window.
+
GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow *window, GLFWcursorposfun callback)
Sets the cursor position callback.
+
void(* GLFWmousebuttonfun)(GLFWwindow *, int, int, int)
The function pointer type for mouse button callbacks.
Definition: glfw3.h:1434
+
int glfwJoystickIsGamepad(int jid)
Returns whether the specified joystick has a gamepad mapping.
+
GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow *window, GLFWcursorenterfun callback)
Sets the cursor enter/leave callback.
+
void glfwSetCursor(GLFWwindow *window, GLFWcursor *cursor)
Sets the cursor for the window.
+
const unsigned char * glfwGetJoystickButtons(int jid, int *count)
Returns the state of all buttons of the specified joystick.
+
int glfwGetGamepadState(int jid, GLFWgamepadstate *state)
Retrieves the state of the specified joystick remapped as a gamepad.
+
int glfwGetKey(GLFWwindow *window, int key)
Returns the last reported state of a keyboard key for the specified window.
+
const char * glfwGetJoystickGUID(int jid)
Returns the SDL compatible GUID of the specified joystick.
+
int glfwRawMouseMotionSupported(void)
Returns whether raw mouse motion is supported.
+
int glfwJoystickPresent(int jid)
Returns whether the specified joystick is present.
+
int glfwUpdateGamepadMappings(const char *string)
Adds the specified SDL_GameControllerDB gamepad mappings.
+
void glfwSetTime(double time)
Sets the GLFW time.
+
int glfwGetInputMode(GLFWwindow *window, int mode)
Returns the value of an input option for the specified window.
+
const char * glfwGetJoystickName(int jid)
Returns the name of the specified joystick.
+
void(* GLFWjoystickfun)(int, int)
The function pointer type for joystick configuration callbacks.
Definition: glfw3.h:1639
+
GLFWcursor * glfwCreateCursor(const GLFWimage *image, int xhot, int yhot)
Creates a custom cursor.
+
void glfwGetMonitorPos(GLFWmonitor *monitor, int *xpos, int *ypos)
Returns the position of the monitor's viewport on the virtual screen.
+
GLFWmonitor ** glfwGetMonitors(int *count)
Returns the currently connected monitors.
+
void glfwSetGammaRamp(GLFWmonitor *monitor, const GLFWgammaramp *ramp)
Sets the current gamma ramp for the specified monitor.
+
void glfwSetGamma(GLFWmonitor *monitor, float gamma)
Generates a gamma ramp and sets it for the specified monitor.
+
void glfwSetMonitorUserPointer(GLFWmonitor *monitor, void *pointer)
Sets the user pointer of the specified monitor.
+
GLFWmonitor * glfwGetPrimaryMonitor(void)
Returns the primary monitor.
+
void glfwGetMonitorWorkarea(GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height)
Retrieves the work area of the monitor.
+
const char * glfwGetMonitorName(GLFWmonitor *monitor)
Returns the name of the specified monitor.
+
void glfwGetMonitorPhysicalSize(GLFWmonitor *monitor, int *widthMM, int *heightMM)
Returns the physical size of the monitor.
+
const GLFWvidmode * glfwGetVideoModes(GLFWmonitor *monitor, int *count)
Returns the available video modes for the specified monitor.
+
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
Definition: glfw3.h:1170
+
struct GLFWvidmode GLFWvidmode
Video mode type.
+
struct GLFWgammaramp GLFWgammaramp
Gamma ramp.
+
GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback)
Sets the monitor configuration callback.
+
const GLFWgammaramp * glfwGetGammaRamp(GLFWmonitor *monitor)
Returns the current gamma ramp for the specified monitor.
+
void * glfwGetMonitorUserPointer(GLFWmonitor *monitor)
Returns the user pointer of the specified monitor.
+
void(* GLFWmonitorfun)(GLFWmonitor *, int)
The function pointer type for monitor configuration callbacks.
Definition: glfw3.h:1618
+
void glfwGetMonitorContentScale(GLFWmonitor *monitor, float *xscale, float *yscale)
Retrieves the content scale for the specified monitor.
+
const GLFWvidmode * glfwGetVideoMode(GLFWmonitor *monitor)
Returns the current mode of the specified monitor.
+
VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface)
Creates a Vulkan surface for the specified window.
+
const char ** glfwGetRequiredInstanceExtensions(uint32_t *count)
Returns the Vulkan instance extensions required by GLFW.
+
int glfwVulkanSupported(void)
Returns whether the Vulkan loader and an ICD have been found.
+
void(* GLFWvkproc)(void)
Vulkan API function pointer type.
Definition: glfw3.h:1158
+
GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char *procname)
Returns the address of the specified Vulkan instance function.
+
int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
Returns whether the specified queue family can present images.
+
GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow *window, GLFWwindowposfun callback)
Sets the position callback for the specified window.
+
void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)
Retrieves the size of the framebuffer of the specified window.
+
void glfwSwapBuffers(GLFWwindow *window)
Swaps the front and back buffers of the specified window.
+
void * glfwGetWindowUserPointer(GLFWwindow *window)
Returns the user pointer of the specified window.
+
void glfwGetWindowFrameSize(GLFWwindow *window, int *left, int *top, int *right, int *bottom)
Retrieves the size of the frame of the window.
+
void glfwSetWindowPos(GLFWwindow *window, int xpos, int ypos)
Sets the position of the content area of the specified window.
+
void glfwIconifyWindow(GLFWwindow *window)
Iconifies the specified window.
+
GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow *window, GLFWwindowrefreshfun callback)
Sets the refresh callback for the specified window.
+
int glfwWindowShouldClose(GLFWwindow *window)
Checks the close flag of the specified window.
+
void glfwRequestWindowAttention(GLFWwindow *window)
Requests user attention to the specified window.
+
void glfwSetWindowSize(GLFWwindow *window, int width, int height)
Sets the size of the content area of the specified window.
+
void glfwPollEvents(void)
Processes all pending events.
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+
void glfwSetWindowUserPointer(GLFWwindow *window, void *pointer)
Sets the user pointer of the specified window.
+
void glfwMaximizeWindow(GLFWwindow *window)
Maximizes the specified window.
+
void glfwHideWindow(GLFWwindow *window)
Hides the specified window.
+
void glfwSetWindowShouldClose(GLFWwindow *window, int value)
Sets the close flag of the specified window.
+
void glfwRestoreWindow(GLFWwindow *window)
Restores the specified window.
+
void(* GLFWframebuffersizefun)(GLFWwindow *, int, int)
The function pointer type for framebuffer size callbacks.
Definition: glfw3.h:1387
+
void glfwWaitEvents(void)
Waits until events are queued and processes them.
+
GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
Creates a window and its associated context.
+
void(* GLFWwindowclosefun)(GLFWwindow *)
The function pointer type for window close callbacks.
Definition: glfw3.h:1283
+
void glfwSetWindowTitle(GLFWwindow *window, const char *title)
Sets the title of the specified window.
+
void glfwWaitEventsTimeout(double timeout)
Waits with timeout until events are queued and processes them.
+
void glfwShowWindow(GLFWwindow *window)
Makes the specified window visible.
+
void(* GLFWwindowfocusfun)(GLFWwindow *, int)
The function pointer type for window focus callbacks.
Definition: glfw3.h:1324
+
void glfwSetWindowAspectRatio(GLFWwindow *window, int numer, int denom)
Sets the aspect ratio of the specified window.
+
void glfwGetWindowPos(GLFWwindow *window, int *xpos, int *ypos)
Retrieves the position of the content area of the specified window.
+
void(* GLFWwindowrefreshfun)(GLFWwindow *)
The function pointer type for window content refresh callbacks.
Definition: glfw3.h:1303
+
struct GLFWimage GLFWimage
Image data.
+
void glfwWindowHint(int hint, int value)
Sets the specified window hint to the desired value.
+
void glfwSetWindowMonitor(GLFWwindow *window, GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate)
Sets the mode, monitor, video mode and placement of a window.
+
void(* GLFWwindowmaximizefun)(GLFWwindow *, int)
The function pointer type for window maximize callbacks.
Definition: glfw3.h:1366
+
void glfwFocusWindow(GLFWwindow *window)
Brings the specified window to front and sets input focus.
+
void glfwWindowHintString(int hint, const char *value)
Sets the specified window hint to the desired value.
+
void glfwDefaultWindowHints(void)
Resets all window hints to their default values.
+
void(* GLFWwindowiconifyfun)(GLFWwindow *, int)
The function pointer type for window iconify callbacks.
Definition: glfw3.h:1345
+
void(* GLFWwindowsizefun)(GLFWwindow *, int, int)
The function pointer type for window size callbacks.
Definition: glfw3.h:1263
+
GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow *window, GLFWframebuffersizefun callback)
Sets the framebuffer resize callback for the specified window.
+
void glfwPostEmptyEvent(void)
Posts an empty event to the event queue.
+
GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow *window, GLFWwindowfocusfun callback)
Sets the focus callback for the specified window.
+
void glfwSetWindowSizeLimits(GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight)
Sets the size limits of the specified window.
+
void glfwSetWindowOpacity(GLFWwindow *window, float opacity)
Sets the opacity of the whole window.
+
GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow *window, GLFWwindowiconifyfun callback)
Sets the iconify callback for the specified window.
+
void(* GLFWwindowcontentscalefun)(GLFWwindow *, float, float)
The function pointer type for window content scale callbacks.
Definition: glfw3.h:1408
+
GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow *window, GLFWwindowmaximizefun callback)
Sets the maximize callback for the specified window.
+
int glfwGetWindowAttrib(GLFWwindow *window, int attrib)
Returns an attribute of the specified window.
+
void glfwDestroyWindow(GLFWwindow *window)
Destroys the specified window and its context.
+
void glfwSetWindowAttrib(GLFWwindow *window, int attrib, int value)
Sets an attribute of the specified window.
+
float glfwGetWindowOpacity(GLFWwindow *window)
Returns the opacity of the whole window.
+
GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow *window, GLFWwindowsizefun callback)
Sets the size callback for the specified window.
+
GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow *window, GLFWwindowclosefun callback)
Sets the close callback for the specified window.
+
void glfwSetWindowIcon(GLFWwindow *window, int count, const GLFWimage *images)
Sets the icon for the specified window.
+
GLFWmonitor * glfwGetWindowMonitor(GLFWwindow *window)
Returns the monitor that the window uses for full screen mode.
+
void glfwGetWindowSize(GLFWwindow *window, int *width, int *height)
Retrieves the size of the content area of the specified window.
+
GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow *window, GLFWwindowcontentscalefun callback)
Sets the window content scale callback for the specified window.
+
void glfwGetWindowContentScale(GLFWwindow *window, float *xscale, float *yscale)
Retrieves the content scale for the specified window.
+
void(* GLFWwindowposfun)(GLFWwindow *, int, int)
The function pointer type for window position callbacks.
Definition: glfw3.h:1241
+
Gamepad input state.
Definition: glfw3.h:1742
+
unsigned char buttons[15]
Definition: glfw3.h:1746
+
float axes[6]
Definition: glfw3.h:1750
+
Gamma ramp.
Definition: glfw3.h:1689
+
unsigned short * red
Definition: glfw3.h:1692
+
unsigned short * blue
Definition: glfw3.h:1698
+
unsigned int size
Definition: glfw3.h:1701
+
unsigned short * green
Definition: glfw3.h:1695
+
Image data.
Definition: glfw3.h:1718
+
int height
Definition: glfw3.h:1724
+
unsigned char * pixels
Definition: glfw3.h:1727
+
int width
Definition: glfw3.h:1721
+
Video mode type.
Definition: glfw3.h:1655
+
int greenBits
Definition: glfw3.h:1667
+
int redBits
Definition: glfw3.h:1664
+
int width
Definition: glfw3.h:1658
+
int refreshRate
Definition: glfw3.h:1673
+
int height
Definition: glfw3.h:1661
+
int blueBits
Definition: glfw3.h:1670
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/glfw3native_8h.html b/external/glfw-3.3.4/docs/html/glfw3native_8h.html new file mode 100644 index 0000000..54ec45c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/glfw3native_8h.html @@ -0,0 +1,160 @@ + + + + + + + +GLFW: glfw3native.h File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
glfw3native.h File Reference
+
+
+

Description

+

This is the header file of the native access functions. See Native access for more information.

+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

const char * glfwGetWin32Adapter (GLFWmonitor *monitor)
 Returns the adapter device name of the specified monitor. More...
 
const char * glfwGetWin32Monitor (GLFWmonitor *monitor)
 Returns the display device name of the specified monitor. More...
 
HWND glfwGetWin32Window (GLFWwindow *window)
 Returns the HWND of the specified window. More...
 
HGLRC glfwGetWGLContext (GLFWwindow *window)
 Returns the HGLRC of the specified window. More...
 
CGDirectDisplayID glfwGetCocoaMonitor (GLFWmonitor *monitor)
 Returns the CGDirectDisplayID of the specified monitor. More...
 
id glfwGetCocoaWindow (GLFWwindow *window)
 Returns the NSWindow of the specified window. More...
 
id glfwGetNSGLContext (GLFWwindow *window)
 Returns the NSOpenGLContext of the specified window. More...
 
Display * glfwGetX11Display (void)
 Returns the Display used by GLFW. More...
 
RRCrtc glfwGetX11Adapter (GLFWmonitor *monitor)
 Returns the RRCrtc of the specified monitor. More...
 
RROutput glfwGetX11Monitor (GLFWmonitor *monitor)
 Returns the RROutput of the specified monitor. More...
 
Window glfwGetX11Window (GLFWwindow *window)
 Returns the Window of the specified window. More...
 
void glfwSetX11SelectionString (const char *string)
 Sets the current primary selection to the specified string. More...
 
const char * glfwGetX11SelectionString (void)
 Returns the contents of the current primary selection as a string. More...
 
GLXContext glfwGetGLXContext (GLFWwindow *window)
 Returns the GLXContext of the specified window. More...
 
GLXWindow glfwGetGLXWindow (GLFWwindow *window)
 Returns the GLXWindow of the specified window. More...
 
struct wl_display * glfwGetWaylandDisplay (void)
 Returns the struct wl_display* used by GLFW. More...
 
struct wl_output * glfwGetWaylandMonitor (GLFWmonitor *monitor)
 Returns the struct wl_output* of the specified monitor. More...
 
struct wl_surface * glfwGetWaylandWindow (GLFWwindow *window)
 Returns the main struct wl_surface* of the specified window. More...
 
EGLDisplay glfwGetEGLDisplay (void)
 Returns the EGLDisplay used by GLFW. More...
 
EGLContext glfwGetEGLContext (GLFWwindow *window)
 Returns the EGLContext of the specified window. More...
 
EGLSurface glfwGetEGLSurface (GLFWwindow *window)
 Returns the EGLSurface of the specified window. More...
 
int glfwGetOSMesaColorBuffer (GLFWwindow *window, int *width, int *height, int *format, void **buffer)
 Retrieves the color buffer associated with the specified window. More...
 
int glfwGetOSMesaDepthBuffer (GLFWwindow *window, int *width, int *height, int *bytesPerValue, void **buffer)
 Retrieves the depth buffer associated with the specified window. More...
 
OSMesaContext glfwGetOSMesaContext (GLFWwindow *window)
 Returns the OSMesaContext of the specified window. More...
 
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/glfw3native_8h_source.html b/external/glfw-3.3.4/docs/html/glfw3native_8h_source.html new file mode 100644 index 0000000..d2e386e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/glfw3native_8h_source.html @@ -0,0 +1,264 @@ + + + + + + + +GLFW: glfw3native.h Source File + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
glfw3native.h
+
+
+Go to the documentation of this file.
1 /*************************************************************************
+
2  * GLFW 3.3 - www.glfw.org
+
3  * A library for OpenGL, window and input
+
4  *------------------------------------------------------------------------
+
5  * Copyright (c) 2002-2006 Marcus Geelnard
+
6  * Copyright (c) 2006-2018 Camilla Löwy <elmindreda@glfw.org>
+
7  *
+
8  * This software is provided 'as-is', without any express or implied
+
9  * warranty. In no event will the authors be held liable for any damages
+
10  * arising from the use of this software.
+
11  *
+
12  * Permission is granted to anyone to use this software for any purpose,
+
13  * including commercial applications, and to alter it and redistribute it
+
14  * freely, subject to the following restrictions:
+
15  *
+
16  * 1. The origin of this software must not be misrepresented; you must not
+
17  * claim that you wrote the original software. If you use this software
+
18  * in a product, an acknowledgment in the product documentation would
+
19  * be appreciated but is not required.
+
20  *
+
21  * 2. Altered source versions must be plainly marked as such, and must not
+
22  * be misrepresented as being the original software.
+
23  *
+
24  * 3. This notice may not be removed or altered from any source
+
25  * distribution.
+
26  *
+
27  *************************************************************************/
+
28 
+
29 #ifndef _glfw3_native_h_
+
30 #define _glfw3_native_h_
+
31 
+
32 #ifdef __cplusplus
+
33 extern "C" {
+
34 #endif
+
35 
+
36 
+
37 /*************************************************************************
+
38  * Doxygen documentation
+
39  *************************************************************************/
+
40 
+
80 /*************************************************************************
+
81  * System headers and types
+
82  *************************************************************************/
+
83 
+
84 #if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
+
85  // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
+
86  // example to allow applications to correctly declare a GL_ARB_debug_output
+
87  // callback) but windows.h assumes no one will define APIENTRY before it does
+
88  #if defined(GLFW_APIENTRY_DEFINED)
+
89  #undef APIENTRY
+
90  #undef GLFW_APIENTRY_DEFINED
+
91  #endif
+
92  #include <windows.h>
+
93 #elif defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
+
94  #if defined(__OBJC__)
+
95  #import <Cocoa/Cocoa.h>
+
96  #else
+
97  #include <ApplicationServices/ApplicationServices.h>
+
98  typedef void* id;
+
99  #endif
+
100 #elif defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
+
101  #include <X11/Xlib.h>
+
102  #include <X11/extensions/Xrandr.h>
+
103 #elif defined(GLFW_EXPOSE_NATIVE_WAYLAND)
+
104  #include <wayland-client.h>
+
105 #endif
+
106 
+
107 #if defined(GLFW_EXPOSE_NATIVE_WGL)
+
108  /* WGL is declared by windows.h */
+
109 #endif
+
110 #if defined(GLFW_EXPOSE_NATIVE_NSGL)
+
111  /* NSGL is declared by Cocoa.h */
+
112 #endif
+
113 #if defined(GLFW_EXPOSE_NATIVE_GLX)
+
114  #include <GL/glx.h>
+
115 #endif
+
116 #if defined(GLFW_EXPOSE_NATIVE_EGL)
+
117  #include <EGL/egl.h>
+
118 #endif
+
119 #if defined(GLFW_EXPOSE_NATIVE_OSMESA)
+
120  #include <GL/osmesa.h>
+
121 #endif
+
122 
+
123 
+
124 /*************************************************************************
+
125  * Functions
+
126  *************************************************************************/
+
127 
+
128 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
+
142 GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
+
143 
+
157 GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
+
158 
+
171 GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window);
+
172 #endif
+
173 
+
174 #if defined(GLFW_EXPOSE_NATIVE_WGL)
+
187 GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
+
188 #endif
+
189 
+
190 #if defined(GLFW_EXPOSE_NATIVE_COCOA)
+
203 GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
+
204 
+
217 GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window);
+
218 #endif
+
219 
+
220 #if defined(GLFW_EXPOSE_NATIVE_NSGL)
+
233 GLFWAPI id glfwGetNSGLContext(GLFWwindow* window);
+
234 #endif
+
235 
+
236 #if defined(GLFW_EXPOSE_NATIVE_X11)
+
249 GLFWAPI Display* glfwGetX11Display(void);
+
250 
+
263 GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
+
264 
+
277 GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
+
278 
+
291 GLFWAPI Window glfwGetX11Window(GLFWwindow* window);
+
292 
+
313 GLFWAPI void glfwSetX11SelectionString(const char* string);
+
314 
+
341 GLFWAPI const char* glfwGetX11SelectionString(void);
+
342 #endif
+
343 
+
344 #if defined(GLFW_EXPOSE_NATIVE_GLX)
+
357 GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
+
358 
+
371 GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window);
+
372 #endif
+
373 
+
374 #if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
+
387 GLFWAPI struct wl_display* glfwGetWaylandDisplay(void);
+
388 
+
401 GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
+
402 
+
415 GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window);
+
416 #endif
+
417 
+
418 #if defined(GLFW_EXPOSE_NATIVE_EGL)
+
431 GLFWAPI EGLDisplay glfwGetEGLDisplay(void);
+
432 
+
445 GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
+
446 
+
459 GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
+
460 #endif
+
461 
+
462 #if defined(GLFW_EXPOSE_NATIVE_OSMESA)
+
482 GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height, int* format, void** buffer);
+
483 
+
503 GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height, int* bytesPerValue, void** buffer);
+
504 
+
517 GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window);
+
518 #endif
+
519 
+
520 #ifdef __cplusplus
+
521 }
+
522 #endif
+
523 
+
524 #endif /* _glfw3_native_h_ */
+
525 
+
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
Definition: glfw3.h:1170
+
RRCrtc glfwGetX11Adapter(GLFWmonitor *monitor)
Returns the RRCrtc of the specified monitor.
+
EGLDisplay glfwGetEGLDisplay(void)
Returns the EGLDisplay used by GLFW.
+
GLXWindow glfwGetGLXWindow(GLFWwindow *window)
Returns the GLXWindow of the specified window.
+
EGLSurface glfwGetEGLSurface(GLFWwindow *window)
Returns the EGLSurface of the specified window.
+
int glfwGetOSMesaColorBuffer(GLFWwindow *window, int *width, int *height, int *format, void **buffer)
Retrieves the color buffer associated with the specified window.
+
struct wl_surface * glfwGetWaylandWindow(GLFWwindow *window)
Returns the main struct wl_surface* of the specified window.
+
id glfwGetNSGLContext(GLFWwindow *window)
Returns the NSOpenGLContext of the specified window.
+
void glfwSetX11SelectionString(const char *string)
Sets the current primary selection to the specified string.
+
GLXContext glfwGetGLXContext(GLFWwindow *window)
Returns the GLXContext of the specified window.
+
EGLContext glfwGetEGLContext(GLFWwindow *window)
Returns the EGLContext of the specified window.
+
int glfwGetOSMesaDepthBuffer(GLFWwindow *window, int *width, int *height, int *bytesPerValue, void **buffer)
Retrieves the depth buffer associated with the specified window.
+
const char * glfwGetX11SelectionString(void)
Returns the contents of the current primary selection as a string.
+
Display * glfwGetX11Display(void)
Returns the Display used by GLFW.
+
Window glfwGetX11Window(GLFWwindow *window)
Returns the Window of the specified window.
+
OSMesaContext glfwGetOSMesaContext(GLFWwindow *window)
Returns the OSMesaContext of the specified window.
+
struct wl_display * glfwGetWaylandDisplay(void)
Returns the struct wl_display* used by GLFW.
+
struct wl_output * glfwGetWaylandMonitor(GLFWmonitor *monitor)
Returns the struct wl_output* of the specified monitor.
+
RROutput glfwGetX11Monitor(GLFWmonitor *monitor)
Returns the RROutput of the specified monitor.
+
id glfwGetCocoaWindow(GLFWwindow *window)
Returns the NSWindow of the specified window.
+
const char * glfwGetWin32Monitor(GLFWmonitor *monitor)
Returns the display device name of the specified monitor.
+
const char * glfwGetWin32Adapter(GLFWmonitor *monitor)
Returns the adapter device name of the specified monitor.
+
HGLRC glfwGetWGLContext(GLFWwindow *window)
Returns the HGLRC of the specified window.
+
CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor *monitor)
Returns the CGDirectDisplayID of the specified monitor.
+
HWND glfwGetWin32Window(GLFWwindow *window)
Returns the HWND of the specified window.
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__buttons.html b/external/glfw-3.3.4/docs/html/group__buttons.html new file mode 100644 index 0000000..0c4abf4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__buttons.html @@ -0,0 +1,275 @@ + + + + + + + +GLFW: Mouse buttons + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Mouse buttons
+
+
+

Description

+

See mouse button input for how these are used.

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#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
 
+

Macro Definition Documentation

+ +

◆ GLFW_MOUSE_BUTTON_1

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_1   0
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_2

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_2   1
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_3

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_3   2
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_4

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_4   3
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_5

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_5   4
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_6

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_6   5
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_7

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_7   6
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_8

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_8   7
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_LAST

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_LAST   GLFW_MOUSE_BUTTON_8
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_LEFT

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_LEFT   GLFW_MOUSE_BUTTON_1
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_RIGHT

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_RIGHT   GLFW_MOUSE_BUTTON_2
+
+ +
+
+ +

◆ GLFW_MOUSE_BUTTON_MIDDLE

+ +
+
+ + + + +
#define GLFW_MOUSE_BUTTON_MIDDLE   GLFW_MOUSE_BUTTON_3
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__context.html b/external/glfw-3.3.4/docs/html/group__context.html new file mode 100644 index 0000000..5c28fec --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__context.html @@ -0,0 +1,295 @@ + + + + + + + +GLFW: Context reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Context reference
+
+
+

Description

+

This is the reference documentation for OpenGL and OpenGL ES context related functions. For more task-oriented information, see the Context guide.

+ + + + + +

+Typedefs

typedef void(* GLFWglproc) (void)
 Client API function pointer type. More...
 
+ + + + + + + + + + + + + + + + +

+Functions

void glfwMakeContextCurrent (GLFWwindow *window)
 Makes the context of the specified window current for the calling thread. More...
 
GLFWwindowglfwGetCurrentContext (void)
 Returns the window whose context is current on the calling thread. More...
 
void glfwSwapInterval (int interval)
 Sets the swap interval for the current context. More...
 
int glfwExtensionSupported (const char *extension)
 Returns whether the specified extension is available. More...
 
GLFWglproc glfwGetProcAddress (const char *procname)
 Returns the address of the specified function for the current context. More...
 
+

Typedef Documentation

+ +

◆ GLFWglproc

+ +
+
+ + + + +
typedef void(* GLFWglproc) (void)
+
+

Generic function pointer used for returning client API function pointers without forcing a cast from a regular pointer.

+
See also
OpenGL and OpenGL ES extensions
+
+glfwGetProcAddress
+
Since
Added in version 3.0.
+ +
+
+

Function Documentation

+ +

◆ glfwMakeContextCurrent()

+ +
+
+ + + + + + + + +
void glfwMakeContextCurrent (GLFWwindowwindow)
+
+

This function makes the OpenGL or OpenGL ES context of the specified window current on the calling thread. A context must only be made current on a single thread at a time and each thread can have only a single current context at a time.

+

When moving a context between threads, you must make it non-current on the old thread before making it current on the new one.

+

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 hint.

+

The specified window must have an OpenGL or OpenGL ES context. Specifying a window without a context will generate a GLFW_NO_WINDOW_CONTEXT error.

+
Parameters
+ + +
[in]windowThe window whose context to make current, or NULL to detach the current context.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_NO_WINDOW_CONTEXT and GLFW_PLATFORM_ERROR.
+
Thread safety
This function may be called from any thread.
+
See also
Current context
+
+glfwGetCurrentContext
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetCurrentContext()

+ +
+
+ + + + + + + + +
GLFWwindow* glfwGetCurrentContext (void )
+
+

This function returns the window whose OpenGL or OpenGL ES context is current on the calling thread.

+
Returns
The window whose context is current, or NULL if no window's context is current.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread.
+
See also
Current context
+
+glfwMakeContextCurrent
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSwapInterval()

+ +
+
+ + + + + + + + +
void glfwSwapInterval (int interval)
+
+

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 glfwSwapBuffers was called before swapping the buffers and returning. This is sometimes called vertical synchronization, vertical retrace synchronization or just vsync.

+

A context that supports either of the WGL_EXT_swap_control_tear and GLX_EXT_swap_control_tear extensions also accepts negative swap intervals, which allows the driver to swap immediately even if a frame arrives a little bit late. You can check for these extensions with glfwExtensionSupported.

+

A context must be current on the calling thread. Calling this function without a current context will cause a 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.

+
Parameters
+ + +
[in]intervalThe minimum number of screen updates to wait for until the buffers are swapped by glfwSwapBuffers.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_NO_CURRENT_CONTEXT and GLFW_PLATFORM_ERROR.
+
Remarks
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.
+
+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.
+
See also
Buffer swapping
+
+glfwSwapBuffers
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwExtensionSupported()

+ +
+
+ + + + + + + + +
int glfwExtensionSupported (const char * extension)
+
+

This function returns whether the specified API extension 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 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 glfwGetRequiredInstanceExtensions, vkEnumerateInstanceExtensionProperties and vkEnumerateDeviceExtensionProperties instead.

+
Parameters
+ + +
[in]extensionThe ASCII encoded name of the extension.
+
+
+
Returns
GLFW_TRUE if the extension is available, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_NO_CURRENT_CONTEXT, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
+
Thread safety
This function may be called from any thread.
+
See also
OpenGL and OpenGL ES extensions
+
+glfwGetProcAddress
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwGetProcAddress()

+ +
+
+ + + + + + + + +
GLFWglproc glfwGetProcAddress (const char * procname)
+
+

This function returns the address of the specified OpenGL or OpenGL ES core or extension function, 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 GLFW_NO_CURRENT_CONTEXT error.

+

This function does not apply to Vulkan. If you are rendering with Vulkan, see glfwGetInstanceProcAddress, vkGetInstanceProcAddr and vkGetDeviceProcAddr instead.

+
Parameters
+ + +
[in]procnameThe ASCII encoded name of the function.
+
+
+
Returns
The address of the function, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_NO_CURRENT_CONTEXT and GLFW_PLATFORM_ERROR.
+
Remarks
The address of a given function is not guaranteed to be the same between contexts.
+
+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.
+
See also
OpenGL and OpenGL ES extensions
+
+glfwExtensionSupported
+
Since
Added in version 1.0.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__errors.html b/external/glfw-3.3.4/docs/html/group__errors.html new file mode 100644 index 0000000..3d159cf --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__errors.html @@ -0,0 +1,297 @@ + + + + + + + +GLFW: Error codes + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ + +
+

Description

+

See error handling for how these are used.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_NO_ERROR   0
 No error has occurred. More...
 
#define GLFW_NOT_INITIALIZED   0x00010001
 GLFW has not been initialized. More...
 
#define GLFW_NO_CURRENT_CONTEXT   0x00010002
 No context is current for this thread. More...
 
#define GLFW_INVALID_ENUM   0x00010003
 One of the arguments to the function was an invalid enum value. More...
 
#define GLFW_INVALID_VALUE   0x00010004
 One of the arguments to the function was an invalid value. More...
 
#define GLFW_OUT_OF_MEMORY   0x00010005
 A memory allocation failed. More...
 
#define GLFW_API_UNAVAILABLE   0x00010006
 GLFW could not find support for the requested API on the system. More...
 
#define GLFW_VERSION_UNAVAILABLE   0x00010007
 The requested OpenGL or OpenGL ES version is not available. More...
 
#define GLFW_PLATFORM_ERROR   0x00010008
 A platform-specific error occurred that does not match any of the more specific categories. More...
 
#define GLFW_FORMAT_UNAVAILABLE   0x00010009
 The requested format is not supported or available. More...
 
#define GLFW_NO_WINDOW_CONTEXT   0x0001000A
 The specified window does not have an OpenGL or OpenGL ES context. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_NO_ERROR

+ +
+
+ + + + +
#define GLFW_NO_ERROR   0
+
+

No error has occurred.

+
Analysis
Yay.
+ +
+
+ +

◆ GLFW_NOT_INITIALIZED

+ +
+
+ + + + +
#define GLFW_NOT_INITIALIZED   0x00010001
+
+

This occurs if a GLFW function was called that must not be called unless the library is initialized.

+
Analysis
Application programmer error. Initialize GLFW before calling any function that requires initialization.
+ +
+
+ +

◆ GLFW_NO_CURRENT_CONTEXT

+ +
+
+ + + + +
#define GLFW_NO_CURRENT_CONTEXT   0x00010002
+
+

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 glfwSwapInterval.

+
Analysis
Application programmer error. Ensure a context is current before calling functions that require a current context.
+ +
+
+ +

◆ GLFW_INVALID_ENUM

+ +
+
+ + + + +
#define GLFW_INVALID_ENUM   0x00010003
+
+

One of the arguments to the function was an invalid enum value, for example requesting GLFW_RED_BITS with glfwGetWindowAttrib.

+
Analysis
Application programmer error. Fix the offending call.
+ +
+
+ +

◆ GLFW_INVALID_VALUE

+ +
+
+ + + + +
#define GLFW_INVALID_VALUE   0x00010004
+
+

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 GLFW_VERSION_UNAVAILABLE error.

+
Analysis
Application programmer error. Fix the offending call.
+ +
+
+ +

◆ GLFW_OUT_OF_MEMORY

+ +
+
+ + + + +
#define GLFW_OUT_OF_MEMORY   0x00010005
+
+

A memory allocation failed.

+
Analysis
A bug in GLFW or the underlying operating system. Report the bug to our issue tracker.
+ +
+
+ +

◆ GLFW_API_UNAVAILABLE

+ +
+
+ + + + +
#define GLFW_API_UNAVAILABLE   0x00010006
+
+

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.
+
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. macOS 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.
+ +
+
+ +

◆ GLFW_VERSION_UNAVAILABLE

+ +
+
+ + + + +
#define GLFW_VERSION_UNAVAILABLE   0x00010007
+
+

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.
+
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 GLFW_INVALID_VALUE, because GLFW cannot know what future versions will exist.
+ +
+
+ +

◆ GLFW_PLATFORM_ERROR

+ +
+
+ + + + +
#define GLFW_PLATFORM_ERROR   0x00010008
+
+

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.
+ +
+
+ +

◆ GLFW_FORMAT_UNAVAILABLE

+ +
+
+ + + + +
#define GLFW_FORMAT_UNAVAILABLE   0x00010009
+
+

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 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.
+
If emitted when querying the clipboard, ignore the error or report it to the user, as appropriate.
+ +
+
+ +

◆ GLFW_NO_WINDOW_CONTEXT

+ +
+
+ + + + +
#define GLFW_NO_WINDOW_CONTEXT   0x0001000A
+
+

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.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__gamepad__axes.html b/external/glfw-3.3.4/docs/html/group__gamepad__axes.html new file mode 100644 index 0000000..a0b6230 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__gamepad__axes.html @@ -0,0 +1,195 @@ + + + + + + + +GLFW: Gamepad axes + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Gamepad axes
+
+
+

Description

+

See Gamepad input for how these are used.

+ + + + + + + + + + + + + + + + +

+Macros

#define GLFW_GAMEPAD_AXIS_LEFT_X   0
 
#define GLFW_GAMEPAD_AXIS_LEFT_Y   1
 
#define GLFW_GAMEPAD_AXIS_RIGHT_X   2
 
#define GLFW_GAMEPAD_AXIS_RIGHT_Y   3
 
#define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER   4
 
#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER   5
 
#define GLFW_GAMEPAD_AXIS_LAST   GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
 
+

Macro Definition Documentation

+ +

◆ GLFW_GAMEPAD_AXIS_LEFT_X

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_LEFT_X   0
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_LEFT_Y

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_LEFT_Y   1
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_RIGHT_X

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_RIGHT_X   2
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_RIGHT_Y

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_RIGHT_Y   3
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_LEFT_TRIGGER

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER   4
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER   5
+
+ +
+
+ +

◆ GLFW_GAMEPAD_AXIS_LAST

+ +
+
+ + + + +
#define GLFW_GAMEPAD_AXIS_LAST   GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__gamepad__buttons.html b/external/glfw-3.3.4/docs/html/group__gamepad__buttons.html new file mode 100644 index 0000000..728f8cc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__gamepad__buttons.html @@ -0,0 +1,403 @@ + + + + + + + +GLFW: Gamepad buttons + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Gamepad buttons
+
+
+

Description

+

See Gamepad input for how these are used.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_GAMEPAD_BUTTON_A   0
 
#define GLFW_GAMEPAD_BUTTON_B   1
 
#define GLFW_GAMEPAD_BUTTON_X   2
 
#define GLFW_GAMEPAD_BUTTON_Y   3
 
#define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER   4
 
#define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER   5
 
#define GLFW_GAMEPAD_BUTTON_BACK   6
 
#define GLFW_GAMEPAD_BUTTON_START   7
 
#define GLFW_GAMEPAD_BUTTON_GUIDE   8
 
#define GLFW_GAMEPAD_BUTTON_LEFT_THUMB   9
 
#define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB   10
 
#define GLFW_GAMEPAD_BUTTON_DPAD_UP   11
 
#define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT   12
 
#define GLFW_GAMEPAD_BUTTON_DPAD_DOWN   13
 
#define GLFW_GAMEPAD_BUTTON_DPAD_LEFT   14
 
#define GLFW_GAMEPAD_BUTTON_LAST   GLFW_GAMEPAD_BUTTON_DPAD_LEFT
 
#define GLFW_GAMEPAD_BUTTON_CROSS   GLFW_GAMEPAD_BUTTON_A
 
#define GLFW_GAMEPAD_BUTTON_CIRCLE   GLFW_GAMEPAD_BUTTON_B
 
#define GLFW_GAMEPAD_BUTTON_SQUARE   GLFW_GAMEPAD_BUTTON_X
 
#define GLFW_GAMEPAD_BUTTON_TRIANGLE   GLFW_GAMEPAD_BUTTON_Y
 
+

Macro Definition Documentation

+ +

◆ GLFW_GAMEPAD_BUTTON_A

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_A   0
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_B

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_B   1
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_X

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_X   2
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_Y

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_Y   3
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_LEFT_BUMPER

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER   4
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER   5
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_BACK

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_BACK   6
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_START

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_START   7
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_GUIDE

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_GUIDE   8
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_LEFT_THUMB

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_LEFT_THUMB   9
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_RIGHT_THUMB

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB   10
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_DPAD_UP

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_DPAD_UP   11
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_DPAD_RIGHT

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT   12
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_DPAD_DOWN

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_DPAD_DOWN   13
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_DPAD_LEFT

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_DPAD_LEFT   14
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_LAST

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_LAST   GLFW_GAMEPAD_BUTTON_DPAD_LEFT
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_CROSS

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_CROSS   GLFW_GAMEPAD_BUTTON_A
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_CIRCLE

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_CIRCLE   GLFW_GAMEPAD_BUTTON_B
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_SQUARE

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_SQUARE   GLFW_GAMEPAD_BUTTON_X
+
+ +
+
+ +

◆ GLFW_GAMEPAD_BUTTON_TRIANGLE

+ +
+
+ + + + +
#define GLFW_GAMEPAD_BUTTON_TRIANGLE   GLFW_GAMEPAD_BUTTON_Y
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__hat__state.html b/external/glfw-3.3.4/docs/html/group__hat__state.html new file mode 100644 index 0000000..05a1f1a --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__hat__state.html @@ -0,0 +1,227 @@ + + + + + + + +GLFW: Joystick hat states + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Joystick hat states
+
+
+

Description

+

See joystick hat input for how these are used.

+ + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_HAT_CENTERED   0
 
#define GLFW_HAT_UP   1
 
#define GLFW_HAT_RIGHT   2
 
#define GLFW_HAT_DOWN   4
 
#define GLFW_HAT_LEFT   8
 
#define GLFW_HAT_RIGHT_UP   (GLFW_HAT_RIGHT | GLFW_HAT_UP)
 
#define GLFW_HAT_RIGHT_DOWN   (GLFW_HAT_RIGHT | GLFW_HAT_DOWN)
 
#define GLFW_HAT_LEFT_UP   (GLFW_HAT_LEFT | GLFW_HAT_UP)
 
#define GLFW_HAT_LEFT_DOWN   (GLFW_HAT_LEFT | GLFW_HAT_DOWN)
 
+

Macro Definition Documentation

+ +

◆ GLFW_HAT_CENTERED

+ +
+
+ + + + +
#define GLFW_HAT_CENTERED   0
+
+ +
+
+ +

◆ GLFW_HAT_UP

+ +
+
+ + + + +
#define GLFW_HAT_UP   1
+
+ +
+
+ +

◆ GLFW_HAT_RIGHT

+ +
+
+ + + + +
#define GLFW_HAT_RIGHT   2
+
+ +
+
+ +

◆ GLFW_HAT_DOWN

+ +
+
+ + + + +
#define GLFW_HAT_DOWN   4
+
+ +
+
+ +

◆ GLFW_HAT_LEFT

+ +
+
+ + + + +
#define GLFW_HAT_LEFT   8
+
+ +
+
+ +

◆ GLFW_HAT_RIGHT_UP

+ +
+
+ + + + +
#define GLFW_HAT_RIGHT_UP   (GLFW_HAT_RIGHT | GLFW_HAT_UP)
+
+ +
+
+ +

◆ GLFW_HAT_RIGHT_DOWN

+ +
+
+ + + + +
#define GLFW_HAT_RIGHT_DOWN   (GLFW_HAT_RIGHT | GLFW_HAT_DOWN)
+
+ +
+
+ +

◆ GLFW_HAT_LEFT_UP

+ +
+
+ + + + +
#define GLFW_HAT_LEFT_UP   (GLFW_HAT_LEFT | GLFW_HAT_UP)
+
+ +
+
+ +

◆ GLFW_HAT_LEFT_DOWN

+ +
+
+ + + + +
#define GLFW_HAT_LEFT_DOWN   (GLFW_HAT_LEFT | GLFW_HAT_DOWN)
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__init.html b/external/glfw-3.3.4/docs/html/group__init.html new file mode 100644 index 0000000..4abfa5b --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__init.html @@ -0,0 +1,545 @@ + + + + + + + +GLFW: Initialization, version and error reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Initialization, version and error reference
+
+
+

Description

+

This is the reference documentation for initialization and termination of the library, version management and error handling. For more task-oriented information, see the Introduction to the API.

+ + + + + +

+Modules

 Error codes
 Error codes.
 
+ + + + + + + + + + + + + + + + +

+Macros

#define GLFW_TRUE   1
 One. More...
 
#define GLFW_FALSE   0
 Zero. More...
 
#define GLFW_JOYSTICK_HAT_BUTTONS   0x00050001
 Joystick hat buttons init hint. More...
 
#define GLFW_COCOA_CHDIR_RESOURCES   0x00051001
 macOS specific init hint. More...
 
#define GLFW_COCOA_MENUBAR   0x00051002
 macOS specific init hint. More...
 
+ + + + +

+Typedefs

typedef void(* GLFWerrorfun) (int, const char *)
 The function pointer type for error callbacks. More...
 
+ + + + + + + + + + + + + + + + + + + + + + +

+Functions

int glfwInit (void)
 Initializes the GLFW library. More...
 
void glfwTerminate (void)
 Terminates the GLFW library. More...
 
void glfwInitHint (int hint, int value)
 Sets the specified init hint to the desired value. More...
 
void glfwGetVersion (int *major, int *minor, int *rev)
 Retrieves the version of the GLFW library. More...
 
const char * glfwGetVersionString (void)
 Returns a string describing the compile-time configuration. More...
 
int glfwGetError (const char **description)
 Returns and clears the last error for the calling thread. More...
 
GLFWerrorfun glfwSetErrorCallback (GLFWerrorfun callback)
 Sets the error callback. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_VERSION_MAJOR

+ +
+
+ + + + +
#define GLFW_VERSION_MAJOR   3
+
+

This is incremented when the API is changed in non-compatible ways.

+ +
+
+ +

◆ GLFW_VERSION_MINOR

+ +
+
+ + + + +
#define GLFW_VERSION_MINOR   3
+
+

This is incremented when features are added to the API but it remains backward-compatible.

+ +
+
+ +

◆ GLFW_VERSION_REVISION

+ +
+
+ + + + +
#define GLFW_VERSION_REVISION   4
+
+

This is incremented when a bug fix release is made that does not contain any API changes.

+ +
+
+ +

◆ GLFW_TRUE

+ +
+
+ + + + +
#define GLFW_TRUE   1
+
+

This is only semantic sugar for the number 1. You can instead use 1 or true or _True or GL_TRUE or VK_TRUE or anything else that is equal to one.

+ +
+
+ +

◆ GLFW_FALSE

+ +
+
+ + + + +
#define GLFW_FALSE   0
+
+

This is only semantic sugar for the number 0. You can instead use 0 or false or _False or GL_FALSE or VK_FALSE or anything else that is equal to zero.

+ +
+
+ +

◆ GLFW_JOYSTICK_HAT_BUTTONS

+ +
+
+ + + + +
#define GLFW_JOYSTICK_HAT_BUTTONS   0x00050001
+
+

Joystick hat buttons init hint.

+ +
+
+ +

◆ GLFW_COCOA_CHDIR_RESOURCES

+ +
+
+ + + + +
#define GLFW_COCOA_CHDIR_RESOURCES   0x00051001
+
+

macOS specific init hint.

+ +
+
+ +

◆ GLFW_COCOA_MENUBAR

+ +
+
+ + + + +
#define GLFW_COCOA_MENUBAR   0x00051002
+
+

macOS specific init hint.

+ +
+
+

Typedef Documentation

+ +

◆ GLFWerrorfun

+ +
+
+ + + + +
typedef void(* GLFWerrorfun) (int, const char *)
+
+

This is the function pointer type for error callbacks. An error callback function has the following signature:

void callback_name(int error_code, const char* description)
+
Parameters
+ + + +
[in]error_codeAn error code. Future releases may add more error codes.
[in]descriptionA UTF-8 encoded string describing the error.
+
+
+
Pointer lifetime
The error description string is valid until the callback function returns.
+
See also
Error handling
+
+glfwSetErrorCallback
+
Since
Added in version 3.0.
+ +
+
+

Function Documentation

+ +

◆ glfwInit()

+ +
+
+ + + + + + + + +
int glfwInit (void )
+
+

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 glfwTerminate before returning. If it succeeds, you should call glfwTerminate before the application exits.

+

Additional calls to this function after successful initialization but before termination will return GLFW_TRUE immediately.

+
Returns
GLFW_TRUE if successful, or GLFW_FALSE if an error occurred.
+
Errors
Possible errors include GLFW_PLATFORM_ERROR.
+
Remarks
macOS: 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 the GLFW_COCOA_CHDIR_RESOURCES init hint.
+
+X11: This function will set the LC_CTYPE category of the application locale according to the current environment if that category is still "C". This is because the "C" locale breaks Unicode text input.
+
Thread safety
This function must only be called from the main thread.
+
See also
Initialization and termination
+
+glfwTerminate
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwTerminate()

+ +
+
+ + + + + + + + +
void glfwTerminate (void )
+
+

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 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 glfwInit before it returns failure.

+

This function has no effect if GLFW is not initialized.

+
Errors
Possible errors include GLFW_PLATFORM_ERROR.
+
Remarks
This function may be called before 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.
+
See also
Initialization and termination
+
+glfwInit
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwInitHint()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwInitHint (int hint,
int value 
)
+
+

This function sets hints for the next initialization of GLFW.

+

The values you set hints to are never reset by GLFW, but they only take effect during initialization. Once GLFW has been initialized, any values you set will be ignored until the library is terminated and initialized again.

+

Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.

+
Parameters
+ + + +
[in]hintThe init hint to set.
[in]valueThe new value of the init hint.
+
+
+
Errors
Possible errors include GLFW_INVALID_ENUM and GLFW_INVALID_VALUE.
+
Remarks
This function may be called before glfwInit.
+
Thread safety
This function must only be called from the main thread.
+
See also
init_hints
+
+glfwInit
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetVersion()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetVersion (int * major,
int * minor,
int * rev 
)
+
+

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.

+
Parameters
+ + + + +
[out]majorWhere to store the major version number, or NULL.
[out]minorWhere to store the minor version number, or NULL.
[out]revWhere to store the revision number, or NULL.
+
+
+
Errors
None.
+
Remarks
This function may be called before glfwInit.
+
Thread safety
This function may be called from any thread.
+
See also
Version management
+
+glfwGetVersionString
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwGetVersionString()

+ +
+
+ + + + + + + + +
const char* glfwGetVersionString (void )
+
+

This function returns the compile-time generated 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 glfwGetVersion function provides the version of the running library binary in numerical format.

+
Returns
The ASCII encoded GLFW version string.
+
Errors
None.
+
Remarks
This function may be called before glfwInit.
+
Pointer lifetime
The returned string is static and compile-time generated.
+
Thread safety
This function may be called from any thread.
+
See also
Version management
+
+glfwGetVersion
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetError()

+ +
+
+ + + + + + + + +
int glfwGetError (const char ** description)
+
+

This function returns and clears the error code of the last error that occurred on the calling thread, and optionally a UTF-8 encoded human-readable description of it. If no error has occurred since the last call, it returns GLFW_NO_ERROR (zero) and the description pointer is set to NULL.

+
Parameters
+ + +
[in]descriptionWhere to store the error description pointer, or NULL.
+
+
+
Returns
The last error code for the calling thread, or GLFW_NO_ERROR (zero).
+
Errors
None.
+
Pointer lifetime
The returned string is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid only until the next error occurs or the library is terminated.
+
Remarks
This function may be called before glfwInit.
+
Thread safety
This function may be called from any thread.
+
See also
Error handling
+
+glfwSetErrorCallback
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetErrorCallback()

+ +
+
+ + + + + + + + +
GLFWerrorfun glfwSetErrorCallback (GLFWerrorfun 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 code is set before the callback is called. Calling glfwGetError from the error callback will return the same value as the error code argument.

+

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.

+
Parameters
+ + +
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set.
+
Callback signature
void callback_name(int error_code, const char* description)
+
For more information about the callback parameters, see the callback pointer type.
+
Errors
None.
+
Remarks
This function may be called before glfwInit.
+
Thread safety
This function must only be called from the main thread.
+
See also
Error handling
+
+glfwGetError
+
Since
Added in version 3.0.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__input.html b/external/glfw-3.3.4/docs/html/group__input.html new file mode 100644 index 0000000..bb935f9 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__input.html @@ -0,0 +1,2227 @@ + + + + + + + +GLFW: Input reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Input reference
+
+
+

Description

+

This is the reference documentation for input related functions and types. For more task-oriented information, see the Input guide.

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Modules

 Gamepad axes
 Gamepad axes.
 
 Gamepad buttons
 Gamepad buttons.
 
 Joystick hat states
 Joystick hat states.
 
 Joysticks
 Joystick IDs.
 
 Keyboard keys
 Keyboard key IDs.
 
 Modifier key flags
 Modifier key flags.
 
 Mouse buttons
 Mouse button IDs.
 
 Standard cursor shapes
 Standard system cursor shapes.
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Typedefs

typedef struct GLFWcursor GLFWcursor
 Opaque cursor object. More...
 
typedef void(* GLFWmousebuttonfun) (GLFWwindow *, int, int, int)
 The function pointer type for mouse button callbacks. More...
 
typedef void(* GLFWcursorposfun) (GLFWwindow *, double, double)
 The function pointer type for cursor position callbacks. More...
 
typedef void(* GLFWcursorenterfun) (GLFWwindow *, int)
 The function pointer type for cursor enter/leave callbacks. More...
 
typedef void(* GLFWscrollfun) (GLFWwindow *, double, double)
 The function pointer type for scroll callbacks. More...
 
typedef void(* GLFWkeyfun) (GLFWwindow *, int, int, int, int)
 The function pointer type for keyboard key callbacks. More...
 
typedef void(* GLFWcharfun) (GLFWwindow *, unsigned int)
 The function pointer type for Unicode character callbacks. More...
 
typedef void(* GLFWcharmodsfun) (GLFWwindow *, unsigned int, int)
 The function pointer type for Unicode character with modifiers callbacks. More...
 
typedef void(* GLFWdropfun) (GLFWwindow *, int, const char *[])
 The function pointer type for path drop callbacks. More...
 
typedef void(* GLFWjoystickfun) (int, int)
 The function pointer type for joystick configuration callbacks. More...
 
typedef struct GLFWgamepadstate GLFWgamepadstate
 Gamepad input state. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

int glfwGetInputMode (GLFWwindow *window, int mode)
 Returns the value of an input option for the specified window. More...
 
void glfwSetInputMode (GLFWwindow *window, int mode, int value)
 Sets an input option for the specified window. More...
 
int glfwRawMouseMotionSupported (void)
 Returns whether raw mouse motion is supported. More...
 
const char * glfwGetKeyName (int key, int scancode)
 Returns the layout-specific name of the specified printable key. More...
 
int glfwGetKeyScancode (int key)
 Returns the platform-specific scancode of the specified key. More...
 
int glfwGetKey (GLFWwindow *window, int key)
 Returns the last reported state of a keyboard key for the specified window. More...
 
int glfwGetMouseButton (GLFWwindow *window, int button)
 Returns the last reported state of a mouse button for the specified window. More...
 
void glfwGetCursorPos (GLFWwindow *window, double *xpos, double *ypos)
 Retrieves the position of the cursor relative to the content area of the window. More...
 
void glfwSetCursorPos (GLFWwindow *window, double xpos, double ypos)
 Sets the position of the cursor, relative to the content area of the window. More...
 
GLFWcursorglfwCreateCursor (const GLFWimage *image, int xhot, int yhot)
 Creates a custom cursor. More...
 
GLFWcursorglfwCreateStandardCursor (int shape)
 Creates a cursor with a standard shape. More...
 
void glfwDestroyCursor (GLFWcursor *cursor)
 Destroys a cursor. More...
 
void glfwSetCursor (GLFWwindow *window, GLFWcursor *cursor)
 Sets the cursor for the window. More...
 
GLFWkeyfun glfwSetKeyCallback (GLFWwindow *window, GLFWkeyfun callback)
 Sets the key callback. More...
 
GLFWcharfun glfwSetCharCallback (GLFWwindow *window, GLFWcharfun callback)
 Sets the Unicode character callback. More...
 
GLFWcharmodsfun glfwSetCharModsCallback (GLFWwindow *window, GLFWcharmodsfun callback)
 Sets the Unicode character with modifiers callback. More...
 
GLFWmousebuttonfun glfwSetMouseButtonCallback (GLFWwindow *window, GLFWmousebuttonfun callback)
 Sets the mouse button callback. More...
 
GLFWcursorposfun glfwSetCursorPosCallback (GLFWwindow *window, GLFWcursorposfun callback)
 Sets the cursor position callback. More...
 
GLFWcursorenterfun glfwSetCursorEnterCallback (GLFWwindow *window, GLFWcursorenterfun callback)
 Sets the cursor enter/leave callback. More...
 
GLFWscrollfun glfwSetScrollCallback (GLFWwindow *window, GLFWscrollfun callback)
 Sets the scroll callback. More...
 
GLFWdropfun glfwSetDropCallback (GLFWwindow *window, GLFWdropfun callback)
 Sets the path drop callback. More...
 
int glfwJoystickPresent (int jid)
 Returns whether the specified joystick is present. More...
 
const float * glfwGetJoystickAxes (int jid, int *count)
 Returns the values of all axes of the specified joystick. More...
 
const unsigned char * glfwGetJoystickButtons (int jid, int *count)
 Returns the state of all buttons of the specified joystick. More...
 
const unsigned char * glfwGetJoystickHats (int jid, int *count)
 Returns the state of all hats of the specified joystick. More...
 
const char * glfwGetJoystickName (int jid)
 Returns the name of the specified joystick. More...
 
const char * glfwGetJoystickGUID (int jid)
 Returns the SDL compatible GUID of the specified joystick. More...
 
void glfwSetJoystickUserPointer (int jid, void *pointer)
 Sets the user pointer of the specified joystick. More...
 
void * glfwGetJoystickUserPointer (int jid)
 Returns the user pointer of the specified joystick. More...
 
int glfwJoystickIsGamepad (int jid)
 Returns whether the specified joystick has a gamepad mapping. More...
 
GLFWjoystickfun glfwSetJoystickCallback (GLFWjoystickfun callback)
 Sets the joystick configuration callback. More...
 
int glfwUpdateGamepadMappings (const char *string)
 Adds the specified SDL_GameControllerDB gamepad mappings. More...
 
const char * glfwGetGamepadName (int jid)
 Returns the human-readable gamepad name for the specified joystick. More...
 
int glfwGetGamepadState (int jid, GLFWgamepadstate *state)
 Retrieves the state of the specified joystick remapped as a gamepad. More...
 
void glfwSetClipboardString (GLFWwindow *window, const char *string)
 Sets the clipboard to the specified string. More...
 
const char * glfwGetClipboardString (GLFWwindow *window)
 Returns the contents of the clipboard as a string. More...
 
double glfwGetTime (void)
 Returns the GLFW time. More...
 
void glfwSetTime (double time)
 Sets the GLFW time. More...
 
uint64_t glfwGetTimerValue (void)
 Returns the current value of the raw timer. More...
 
uint64_t glfwGetTimerFrequency (void)
 Returns the frequency, in Hz, of the raw timer. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_RELEASE

+ +
+
+ + + + +
#define GLFW_RELEASE   0
+
+

The key or mouse button was released.

+ +
+
+ +

◆ GLFW_PRESS

+ +
+
+ + + + +
#define GLFW_PRESS   1
+
+

The key or mouse button was pressed.

+ +
+
+ +

◆ GLFW_REPEAT

+ +
+
+ + + + +
#define GLFW_REPEAT   2
+
+

The key was held down until it repeated.

+ +
+
+

Typedef Documentation

+ +

◆ GLFWcursor

+ +
+
+ + + + +
typedef struct GLFWcursor GLFWcursor
+
+

Opaque cursor object.

+
See also
Cursor objects
+
Since
Added in version 3.1.
+ +
+
+ +

◆ GLFWmousebuttonfun

+ +
+
+ + + + +
typedef void(* GLFWmousebuttonfun) (GLFWwindow *, int, int, int)
+
+

This is the function pointer type for mouse button callback functions. A mouse button callback function has the following signature:

void function_name(GLFWwindow* window, int button, int action, int mods)
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+
Parameters
+ + + + + +
[in]windowThe window that received the event.
[in]buttonThe mouse button that was pressed or released.
[in]actionOne of GLFW_PRESS or GLFW_RELEASE. Future releases may add more actions.
[in]modsBit field describing which modifier keys were held down.
+
+
+
See also
Mouse button input
+
+glfwSetMouseButtonCallback
+
Since
Added in version 1.0. GLFW 3: Added window handle and modifier mask parameters.
+ +
+
+ +

◆ GLFWcursorposfun

+ +
+
+ + + + +
typedef void(* GLFWcursorposfun) (GLFWwindow *, double, double)
+
+

This is the function pointer type for cursor position callbacks. A cursor position callback function has the following signature:

void function_name(GLFWwindow* window, double xpos, double ypos);
+
Parameters
+ + + + +
[in]windowThe window that received the event.
[in]xposThe new cursor x-coordinate, relative to the left edge of the content area.
[in]yposThe new cursor y-coordinate, relative to the top edge of the content area.
+
+
+
See also
Cursor position
+
+glfwSetCursorPosCallback
+
Since
Added in version 3.0. Replaces GLFWmouseposfun.
+ +
+
+ +

◆ GLFWcursorenterfun

+ +
+
+ + + + +
typedef void(* GLFWcursorenterfun) (GLFWwindow *, int)
+
+

This is the function pointer type for cursor enter/leave callbacks. A cursor enter/leave callback function has the following signature:

void function_name(GLFWwindow* window, int entered)
+
Parameters
+ + + +
[in]windowThe window that received the event.
[in]enteredGLFW_TRUE if the cursor entered the window's content area, or GLFW_FALSE if it left it.
+
+
+
See also
Cursor enter/leave events
+
+glfwSetCursorEnterCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWscrollfun

+ +
+
+ + + + +
typedef void(* GLFWscrollfun) (GLFWwindow *, double, double)
+
+

This is the function pointer type for scroll callbacks. A scroll callback function has the following signature:

void function_name(GLFWwindow* window, double xoffset, double yoffset)
+
Parameters
+ + + + +
[in]windowThe window that received the event.
[in]xoffsetThe scroll offset along the x-axis.
[in]yoffsetThe scroll offset along the y-axis.
+
+
+
See also
Scroll input
+
+glfwSetScrollCallback
+
Since
Added in version 3.0. Replaces GLFWmousewheelfun.
+ +
+
+ +

◆ GLFWkeyfun

+ +
+
+ + + + +
typedef void(* GLFWkeyfun) (GLFWwindow *, int, int, int, int)
+
+

This is the function pointer type for keyboard key callbacks. A keyboard key callback function has the following signature:

void function_name(GLFWwindow* window, int key, int scancode, int action, int mods)
+
Parameters
+ + + + + + +
[in]windowThe window that received the event.
[in]keyThe keyboard key that was pressed or released.
[in]scancodeThe system-specific scancode of the key.
[in]actionGLFW_PRESS, GLFW_RELEASE or GLFW_REPEAT. Future releases may add more actions.
[in]modsBit field describing which modifier keys were held down.
+
+
+
See also
Key input
+
+glfwSetKeyCallback
+
Since
Added in version 1.0. GLFW 3: Added window handle, scancode and modifier mask parameters.
+ +
+
+ +

◆ GLFWcharfun

+ +
+
+ + + + +
typedef void(* GLFWcharfun) (GLFWwindow *, unsigned int)
+
+

This is the function pointer type for Unicode character callbacks. A Unicode character callback function has the following signature:

void function_name(GLFWwindow* window, unsigned int codepoint)
+
Parameters
+ + + +
[in]windowThe window that received the event.
[in]codepointThe Unicode code point of the character.
+
+
+
See also
Text input
+
+glfwSetCharCallback
+
Since
Added in version 2.4. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ GLFWcharmodsfun

+ +
+
+ + + + +
typedef void(* GLFWcharmodsfun) (GLFWwindow *, unsigned int, int)
+
+

This is the function pointer type for Unicode character with modifiers callbacks. It is called for each input character, regardless of what modifier keys are held down. A Unicode character with modifiers callback function has the following signature:

void function_name(GLFWwindow* window, unsigned int codepoint, int mods)
+
Parameters
+ + + + +
[in]windowThe window that received the event.
[in]codepointThe Unicode code point of the character.
[in]modsBit field describing which modifier keys were held down.
+
+
+
See also
Text input
+
+glfwSetCharModsCallback
+
Deprecated:
Scheduled for removal in version 4.0.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ GLFWdropfun

+ +
+
+ + + + +
typedef void(* GLFWdropfun) (GLFWwindow *, int, const char *[])
+
+

This is the function pointer type for path drop callbacks. A path drop callback function has the following signature:

void function_name(GLFWwindow* window, int path_count, const char* paths[])
+
Parameters
+ + + + +
[in]windowThe window that received the event.
[in]path_countThe number of dropped paths.
[in]pathsThe UTF-8 encoded file and/or directory path names.
+
+
+
Pointer lifetime
The path array and its strings are valid until the callback function returns.
+
See also
Path drop input
+
+glfwSetDropCallback
+
Since
Added in version 3.1.
+ +
+
+ +

◆ GLFWjoystickfun

+ +
+
+ + + + +
typedef void(* GLFWjoystickfun) (int, int)
+
+

This is the function pointer type for joystick configuration callbacks. A joystick configuration callback function has the following signature:

void function_name(int jid, int event)
+
Parameters
+ + + +
[in]jidThe joystick that was connected or disconnected.
[in]eventOne of GLFW_CONNECTED or GLFW_DISCONNECTED. Future releases may add more events.
+
+
+
See also
Joystick configuration changes
+
+glfwSetJoystickCallback
+
Since
Added in version 3.2.
+ +
+
+ +

◆ GLFWgamepadstate

+ +
+
+ + + + +
typedef struct GLFWgamepadstate GLFWgamepadstate
+
+

This describes the input state of a gamepad.

+
See also
Gamepad input
+
+glfwGetGamepadState
+
Since
Added in version 3.3.
+ +
+
+

Function Documentation

+ +

◆ glfwGetInputMode()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int glfwGetInputMode (GLFWwindowwindow,
int mode 
)
+
+

This function returns the value of an input option for the specified window. The mode must be one of GLFW_CURSOR, GLFW_STICKY_KEYS, GLFW_STICKY_MOUSE_BUTTONS, GLFW_LOCK_KEY_MODS or GLFW_RAW_MOUSE_MOTION.

+
Parameters
+ + + +
[in]windowThe window to query.
[in]modeOne of GLFW_CURSOR, GLFW_STICKY_KEYS, GLFW_STICKY_MOUSE_BUTTONS, GLFW_LOCK_KEY_MODS or GLFW_RAW_MOUSE_MOTION.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
glfwSetInputMode
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetInputMode()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetInputMode (GLFWwindowwindow,
int mode,
int value 
)
+
+

This function sets an input mode option for the specified window. The mode must be one of GLFW_CURSOR, GLFW_STICKY_KEYS, GLFW_STICKY_MOUSE_BUTTONS, GLFW_LOCK_KEY_MODS or GLFW_RAW_MOUSE_MOTION.

+

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 content 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 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 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.

+

If the mode is GLFW_LOCK_KEY_MODS, the value must be either GLFW_TRUE to enable lock key modifier bits, or GLFW_FALSE to disable them. If enabled, callbacks that receive modifier bits will also have the GLFW_MOD_CAPS_LOCK bit set when the event was generated with Caps Lock on, and the GLFW_MOD_NUM_LOCK bit when Num Lock was on.

+

If the mode is GLFW_RAW_MOUSE_MOTION, the value must be either GLFW_TRUE to enable raw (unscaled and unaccelerated) mouse motion when the cursor is disabled, or GLFW_FALSE to disable it. If raw motion is not supported, attempting to set this will emit GLFW_PLATFORM_ERROR. Call glfwRawMouseMotionSupported to check for support.

+
Parameters
+ + + + +
[in]windowThe window whose input mode to set.
[in]modeOne of GLFW_CURSOR, GLFW_STICKY_KEYS, GLFW_STICKY_MOUSE_BUTTONS, GLFW_LOCK_KEY_MODS or GLFW_RAW_MOUSE_MOTION.
[in]valueThe new value of the specified input mode.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
glfwGetInputMode
+
Since
Added in version 3.0. Replaces glfwEnable and glfwDisable.
+ +
+
+ +

◆ glfwRawMouseMotionSupported()

+ +
+
+ + + + + + + + +
int glfwRawMouseMotionSupported (void )
+
+

This function returns whether raw mouse motion is supported on the current system. This status does not change after GLFW has been initialized so you only need to check this once. If you attempt to enable raw motion on a system that does not support it, GLFW_PLATFORM_ERROR will be emitted.

+

Raw mouse motion is closer to the actual motion of the mouse across a surface. It is not affected by the scaling and acceleration applied to the motion of the desktop cursor. That processing is suitable for a cursor while raw motion is better for controlling for example a 3D camera. Because of this, raw mouse motion is only provided when the cursor is disabled.

+
Returns
GLFW_TRUE if raw mouse motion is supported on the current machine, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Raw mouse motion
+
+glfwSetInputMode
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetKeyName()

+ +
+
+ + + + + + + + + + + + + + + + + + +
const char* glfwGetKeyName (int key,
int scancode 
)
+
+

This function returns the name of the specified printable key, encoded as UTF-8. This is typically the character that key would produce without any modifier keys, intended for displaying key bindings to the user. For dead keys, it is typically the diacritic it would add to a character.

+

Do not use this function for text input. You will break text input for many languages even if it happens to work for yours.

+

If the key is GLFW_KEY_UNKNOWN, the scancode is used to identify the key, otherwise the scancode is ignored. If you specify a non-printable key, or GLFW_KEY_UNKNOWN and a scancode that maps to a non-printable key, this function returns NULL but does not emit an error.

+

This behavior allows you to always pass in the arguments in the key callback 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
  • +
+

Names for printable keys depend on keyboard layout, while names for non-printable keys are the same across layouts but depend on the application language and should be localized along with other user interface text.

+
Parameters
+ + + +
[in]keyThe key to query, or GLFW_KEY_UNKNOWN.
[in]scancodeThe scancode of the key to query.
+
+
+
Returns
The UTF-8 encoded, layout-specific name of the key, or NULL.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
The contents of the returned string may change when a keyboard layout change event is received.
+
Pointer lifetime
The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Key names
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetKeyScancode()

+ +
+
+ + + + + + + + +
int glfwGetKeyScancode (int key)
+
+

This function returns the platform-specific scancode of the specified key.

+

If the key is GLFW_KEY_UNKNOWN or does not exist on the keyboard this method will return -1.

+
Parameters
+ + +
[in]keyAny named key.
+
+
+
Returns
The platform-specific scancode for the key, or -1 if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
+
Thread safety
This function may be called from any thread.
+
See also
Key input
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetKey()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int glfwGetKey (GLFWwindowwindow,
int key 
)
+
+

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 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 are not key tokens and cannot be used with this function.

+

Do not use this function to implement text input.

+
Parameters
+ + + +
[in]windowThe desired window.
[in]keyThe desired keyboard key. GLFW_KEY_UNKNOWN is not a valid key for this function.
+
+
+
Returns
One of GLFW_PRESS or GLFW_RELEASE.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
Key input
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwGetMouseButton()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int glfwGetMouseButton (GLFWwindowwindow,
int button 
)
+
+

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 returns GLFW_PRESS the first time you call it for a mouse button that was pressed, even if that mouse button has already been released.

+
Parameters
+ + + +
[in]windowThe desired window.
[in]buttonThe desired mouse button.
+
+
+
Returns
One of GLFW_PRESS or GLFW_RELEASE.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
Mouse button input
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwGetCursorPos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetCursorPos (GLFWwindowwindow,
double * xpos,
double * ypos 
)
+
+

This function returns the position of the cursor, in screen coordinates, relative to the upper-left corner of the content 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.

+
Parameters
+ + + + +
[in]windowThe desired window.
[out]xposWhere to store the cursor x-coordinate, relative to the left edge of the content area, or NULL.
[out]yposWhere to store the cursor y-coordinate, relative to the to top edge of the content area, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor position
+
+glfwSetCursorPos
+
Since
Added in version 3.0. Replaces glfwGetMousePos.
+ +
+
+ +

◆ glfwSetCursorPos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetCursorPos (GLFWwindowwindow,
double xpos,
double ypos 
)
+
+

This function sets the position, in screen coordinates, of the cursor relative to the upper-left corner of the content 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 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.

+
Parameters
+ + + + +
[in]windowThe desired window.
[in]xposThe desired x-coordinate, relative to the left edge of the content area.
[in]yposThe desired y-coordinate, relative to the top edge of the content area.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: This function will only work when the cursor mode is GLFW_CURSOR_DISABLED, otherwise it will do nothing.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor position
+
+glfwGetCursorPos
+
Since
Added in version 3.0. Replaces glfwSetMousePos.
+ +
+
+ +

◆ glfwCreateCursor()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
GLFWcursor* glfwCreateCursor (const GLFWimageimage,
int xhot,
int yhot 
)
+
+

Creates a new custom cursor image that can be set for a window with glfwSetCursor. The cursor can be destroyed with glfwDestroyCursor. Any remaining cursors are destroyed by glfwTerminate.

+

The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. 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.

+
Parameters
+ + + + +
[in]imageThe desired cursor image.
[in]xhotThe desired x-coordinate, in pixels, of the cursor hotspot.
[in]yhotThe desired y-coordinate, in pixels, of the cursor hotspot.
+
+
+
Returns
The handle of the created cursor, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Pointer lifetime
The specified image data is copied before this function returns.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor objects
+
+glfwDestroyCursor
+
+glfwCreateStandardCursor
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwCreateStandardCursor()

+ +
+
+ + + + + + + + +
GLFWcursor* glfwCreateStandardCursor (int shape)
+
+

Returns a cursor with a standard shape, that can be set for a window with glfwSetCursor.

+
Parameters
+ + +
[in]shapeOne of the standard shapes.
+
+
+
Returns
A new cursor ready to use or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor objects
+
+glfwCreateCursor
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwDestroyCursor()

+ +
+
+ + + + + + + + +
void glfwDestroyCursor (GLFWcursorcursor)
+
+

This function destroys a cursor previously created with glfwCreateCursor. Any remaining cursors will be destroyed by glfwTerminate.

+

If the specified cursor is current for any window, that window will be reverted to the default cursor. This does not affect the cursor mode.

+
Parameters
+ + +
[in]cursorThe cursor object to destroy.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Cursor objects
+
+glfwCreateCursor
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwSetCursor()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetCursor (GLFWwindowwindow,
GLFWcursorcursor 
)
+
+

This function sets the cursor image to be used when the cursor is over the content area of the specified window. The set cursor will only be visible when the 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.

+
Parameters
+ + + +
[in]windowThe window to set the cursor for.
[in]cursorThe cursor to set, or NULL to switch back to the default arrow cursor.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor objects
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwSetKeyCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWkeyfun glfwSetKeyCallback (GLFWwindowwindow,
GLFWkeyfun 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 named after their values in the standard US keyboard layout. If you want to input text, use the character callback 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 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 glfwGetKey.

+

Sometimes GLFW needs to generate synthetic key events, in which case the scancode may be zero.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new key callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int key, int scancode, int action, int mods)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Key input
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetCharCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWcharfun glfwSetCharCallback (GLFWwindowwindow,
GLFWcharfun 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 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 macOS or Alt key on Windows.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, unsigned int codepoint)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Text input
+
Since
Added in version 2.4. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetCharModsCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWcharmodsfun glfwSetCharModsCallback (GLFWwindowwindow,
GLFWcharmodsfun 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. 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 instead.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or an error occurred.
+
Callback signature
void function_name(GLFWwindow* window, unsigned int codepoint, int mods)
+
For more information about the callback parameters, see the function pointer type.
+
Deprecated:
Scheduled for removal in version 4.0.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Text input
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwSetMouseButtonCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWmousebuttonfun glfwSetMouseButtonCallback (GLFWwindowwindow,
GLFWmousebuttonfun 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 has been called.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int button, int action, int mods)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Mouse button input
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetCursorPosCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWcursorposfun glfwSetCursorPosCallback (GLFWwindowwindow,
GLFWcursorposfun 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 content area of the window.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, double xpos, double ypos);
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor position
+
Since
Added in version 3.0. Replaces glfwSetMousePosCallback.
+ +
+
+ +

◆ glfwSetCursorEnterCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWcursorenterfun glfwSetCursorEnterCallback (GLFWwindowwindow,
GLFWcursorenterfun callback 
)
+
+

This function sets the cursor boundary crossing callback of the specified window, which is called when the cursor enters or leaves the content area of the window.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int entered)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Cursor enter/leave events
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetScrollCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWscrollfun glfwSetScrollCallback (GLFWwindowwindow,
GLFWscrollfun 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.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new scroll callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, double xoffset, double yoffset)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Scroll input
+
Since
Added in version 3.0. Replaces glfwSetMouseWheelCallback.
+ +
+
+ +

◆ glfwSetDropCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWdropfun glfwSetDropCallback (GLFWwindowwindow,
GLFWdropfun callback 
)
+
+

This function sets the path drop callback of the specified window, which is called when one or more dragged paths 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.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new file drop callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int path_count, const char* paths[])
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Remarks
Wayland: File drop is currently unimplemented.
+
Thread safety
This function must only be called from the main thread.
+
See also
Path drop input
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwJoystickPresent()

+ +
+
+ + + + + + + + +
int glfwJoystickPresent (int jid)
+
+

This function returns whether the specified joystick is present.

+

There is no need to call this function before other functions that accept a joystick ID, as they all check for presence before performing any other work.

+
Parameters
+ + +
[in]jidThe joystick to query.
+
+
+
Returns
GLFW_TRUE if the joystick is present, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Joystick input
+
Since
Added in version 3.0. Replaces glfwGetJoystickParam.
+ +
+
+ +

◆ glfwGetJoystickAxes()

+ +
+
+ + + + + + + + + + + + + + + + + + +
const float* glfwGetJoystickAxes (int jid,
int * count 
)
+
+

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.

+

If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

+
Parameters
+ + + +
[in]jidThe joystick to query.
[out]countWhere to store the number of axis values in the returned array. This is set to zero if the joystick is not present or an error occurred.
+
+
+
Returns
An array of axis values, or NULL if the joystick is not present or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and 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 or the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Joystick axis states
+
Since
Added in version 3.0. Replaces glfwGetJoystickPos.
+ +
+
+ +

◆ glfwGetJoystickButtons()

+ +
+
+ + + + + + + + + + + + + + + + + + +
const unsigned char* glfwGetJoystickButtons (int jid,
int * count 
)
+
+

This function returns the state of all buttons of the specified joystick. Each element in the array is either GLFW_PRESS or GLFW_RELEASE.

+

For backward compatibility with earlier versions that did not have glfwGetJoystickHats, the button array also includes all hats, each represented as four buttons. The hats are in the same order as returned by glfwGetJoystickHats and are in the order up, right, down and left. To disable these extra buttons, set the GLFW_JOYSTICK_HAT_BUTTONS init hint before initialization.

+

If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

+
Parameters
+ + + +
[in]jidThe joystick to query.
[out]countWhere to store the number of button states in the returned array. This is set to zero if the joystick is not present or an error occurred.
+
+
+
Returns
An array of button states, or NULL if the joystick is not present or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and 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 or the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Joystick button states
+
Since
Added in version 2.2. GLFW 3: Changed to return a dynamic array.
+ +
+
+ +

◆ glfwGetJoystickHats()

+ +
+
+ + + + + + + + + + + + + + + + + + +
const unsigned char* glfwGetJoystickHats (int jid,
int * count 
)
+
+

This function returns the state of all hats of the specified joystick. Each element in the array is one of the following values:

+ + + + + + + + + + + + + + + + + + + + + +
Name Value
GLFW_HAT_CENTERED 0
GLFW_HAT_UP 1
GLFW_HAT_RIGHT 2
GLFW_HAT_DOWN 4
GLFW_HAT_LEFT 8
GLFW_HAT_RIGHT_UP GLFW_HAT_RIGHT | GLFW_HAT_UP
GLFW_HAT_RIGHT_DOWN GLFW_HAT_RIGHT | GLFW_HAT_DOWN
GLFW_HAT_LEFT_UP GLFW_HAT_LEFT | GLFW_HAT_UP
GLFW_HAT_LEFT_DOWN GLFW_HAT_LEFT | GLFW_HAT_DOWN
+

The diagonal directions are bitwise combinations of the primary (up, right, down and left) directions and you can test for these individually by ANDing it with the corresponding direction.

+
if (hats[2] & GLFW_HAT_RIGHT)
+
{
+
// State of hat 2 could be right-up, right or right-down
+
}
+
#define GLFW_HAT_RIGHT
Definition: glfw3.h:354
+

If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

+
Parameters
+ + + +
[in]jidThe joystick to query.
[out]countWhere to store the number of hat states in the returned array. This is set to zero if the joystick is not present or an error occurred.
+
+
+
Returns
An array of hat states, or NULL if the joystick is not present or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and 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.
+
See also
Joystick hat states
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetJoystickName()

+ +
+
+ + + + + + + + +
const char* glfwGetJoystickName (int jid)
+
+

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.

+

If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

+
Parameters
+ + +
[in]jidThe joystick to query.
+
+
+
Returns
The UTF-8 encoded name of the joystick, or NULL if the joystick is not present or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and 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 or the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Joystick name
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetJoystickGUID()

+ +
+
+ + + + + + + + +
const char* glfwGetJoystickGUID (int jid)
+
+

This function returns the SDL compatible GUID, as a UTF-8 encoded hexadecimal string, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.

+

The GUID is what connects a joystick to a gamepad mapping. A connected joystick will always have a GUID even if there is no gamepad mapping assigned to it.

+

If the specified joystick is not present this function will return NULL but will not generate an error. This can be used instead of first calling glfwJoystickPresent.

+

The GUID uses the format introduced in SDL 2.0.5. This GUID tries to uniquely identify the make and model of a joystick but does not identify a specific unit, e.g. all wired Xbox 360 controllers will have the same GUID on that platform. The GUID for a unit may vary between platforms depending on what hardware information the platform specific APIs provide.

+
Parameters
+ + +
[in]jidThe joystick to query.
+
+
+
Returns
The UTF-8 encoded GUID of the joystick, or NULL if the joystick is not present or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and 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 or the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamepad input
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetJoystickUserPointer()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetJoystickUserPointer (int jid,
void * pointer 
)
+
+

This function sets the user-defined pointer of the specified joystick. The current value is retained until the joystick is disconnected. The initial value is NULL.

+

This function may be called from the joystick callback, even for a joystick that is being disconnected.

+
Parameters
+ + + +
[in]jidThe joystick whose pointer to set.
[in]pointerThe new value.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
Joystick user pointer
+
+glfwGetJoystickUserPointer
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetJoystickUserPointer()

+ +
+
+ + + + + + + + +
void* glfwGetJoystickUserPointer (int jid)
+
+

This function returns the current value of the user-defined pointer of the specified joystick. The initial value is NULL.

+

This function may be called from the joystick callback, even for a joystick that is being disconnected.

+
Parameters
+ + +
[in]jidThe joystick whose pointer to return.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
Joystick user pointer
+
+glfwSetJoystickUserPointer
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwJoystickIsGamepad()

+ +
+
+ + + + + + + + +
int glfwJoystickIsGamepad (int jid)
+
+

This function returns whether the specified joystick is both present and has a gamepad mapping.

+

If the specified joystick is present but does not have a gamepad mapping this function will return GLFW_FALSE but will not generate an error. Call glfwJoystickPresent to check if a joystick is present regardless of whether it has a mapping.

+
Parameters
+ + +
[in]jidThe joystick to query.
+
+
+
Returns
GLFW_TRUE if a joystick is both present and has a gamepad mapping, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamepad input
+
+glfwGetGamepadState
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetJoystickCallback()

+ +
+
+ + + + + + + + +
GLFWjoystickfun glfwSetJoystickCallback (GLFWjoystickfun 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.

+

For joystick connection and disconnection events to be delivered on all platforms, you need to call one of the event processing functions. Joystick disconnection may also be detected and the callback called by joystick functions. The function will then return whatever it returns if the joystick is not present.

+
Parameters
+ + +
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(int jid, int event)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Joystick configuration changes
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwUpdateGamepadMappings()

+ +
+
+ + + + + + + + +
int glfwUpdateGamepadMappings (const char * string)
+
+

This function parses the specified ASCII encoded string and updates the internal list with any gamepad mappings it finds. This string may contain either a single gamepad mapping or many mappings separated by newlines. The parser supports the full format of the gamecontrollerdb.txt source file including empty lines and comments.

+

See Gamepad mappings for a description of the format.

+

If there is already a gamepad mapping for a given GUID in the internal list, it will be replaced by the one passed to this function. If the library is terminated and re-initialized the internal list will revert to the built-in default.

+
Parameters
+ + +
[in]stringThe string containing the gamepad mappings.
+
+
+
Returns
GLFW_TRUE if successful, or GLFW_FALSE if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_VALUE.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamepad input
+
+glfwJoystickIsGamepad
+
+glfwGetGamepadName
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetGamepadName()

+ +
+
+ + + + + + + + +
const char* glfwGetGamepadName (int jid)
+
+

This function returns the human-readable name of the gamepad from the gamepad mapping assigned to the specified joystick.

+

If the specified joystick is not present or does not have a gamepad mapping this function will return NULL but will not generate an error. Call glfwJoystickPresent to check whether it is present regardless of whether it has a mapping.

+
Parameters
+ + +
[in]jidThe joystick to query.
+
+
+
Returns
The UTF-8 encoded name of the gamepad, or NULL if the joystick is not present, does not have a mapping or an error occurred.
+
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, the gamepad mappings are updated or the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamepad input
+
+glfwJoystickIsGamepad
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetGamepadState()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int glfwGetGamepadState (int jid,
GLFWgamepadstatestate 
)
+
+

This function retrieves the state of the specified joystick remapped to an Xbox-like gamepad.

+

If the specified joystick is not present or does not have a gamepad mapping this function will return GLFW_FALSE but will not generate an error. Call glfwJoystickPresent to check whether it is present regardless of whether it has a mapping.

+

The Guide button may not be available for input as it is often hooked by the system or the Steam client.

+

Not all devices have all the buttons or axes provided by GLFWgamepadstate. Unavailable buttons and axes will always report GLFW_RELEASE and 0.0 respectively.

+
Parameters
+ + + +
[in]jidThe joystick to query.
[out]stateThe gamepad input state of the joystick.
+
+
+
Returns
GLFW_TRUE if successful, or GLFW_FALSE if no joystick is connected, it has no gamepad mapping or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamepad input
+
+glfwUpdateGamepadMappings
+
+glfwJoystickIsGamepad
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetClipboardString()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetClipboardString (GLFWwindowwindow,
const char * string 
)
+
+

This function sets the system clipboard to the specified, UTF-8 encoded string.

+
Parameters
+ + + +
[in]windowDeprecated. Any valid window or NULL.
[in]stringA UTF-8 encoded string.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Clipboard input and output
+
+glfwGetClipboardString
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetClipboardString()

+ +
+
+ + + + + + + + +
const char* glfwGetClipboardString (GLFWwindowwindow)
+
+

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 GLFW_FORMAT_UNAVAILABLE error is generated.

+
Parameters
+ + +
[in]windowDeprecated. Any valid window or NULL.
+
+
+
Returns
The contents of the clipboard as a UTF-8 encoded string, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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 glfwGetClipboardString or glfwSetClipboardString, or until the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Clipboard input and output
+
+glfwSetClipboardString
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetTime()

+ +
+
+ + + + + + + + +
double glfwGetTime (void )
+
+

This function returns the current GLFW time, in seconds. Unless the time has been set using glfwSetTime it measures time elapsed since GLFW was initialized.

+

This function and glfwSetTime are helper functions on top of glfwGetTimerFrequency and glfwGetTimerValue.

+

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.

+
Returns
The current time, in seconds, or zero if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Reading and writing of the internal base time is not atomic, so it needs to be externally synchronized with calls to glfwSetTime.
+
See also
Time input
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwSetTime()

+ +
+
+ + + + + + + + +
void glfwSetTime (double time)
+
+

This function sets the current GLFW time, in seconds. The value must be a positive finite number less than or equal to 18446744073.0, which is approximately 584.5 years.

+

This function and glfwGetTime are helper functions on top of glfwGetTimerFrequency and glfwGetTimerValue.

+
Parameters
+ + +
[in]timeThe new value, in seconds.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_VALUE.
+
Remarks
The upper limit of GLFW time 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. Reading and writing of the internal base time is not atomic, so it needs to be externally synchronized with calls to glfwGetTime.
+
See also
Time input
+
Since
Added in version 2.2.
+ +
+
+ +

◆ glfwGetTimerValue()

+ +
+
+ + + + + + + + +
uint64_t glfwGetTimerValue (void )
+
+

This function returns the current value of the raw timer, measured in 1 / frequency seconds. To get the frequency, call glfwGetTimerFrequency.

+
Returns
The value of the timer, or zero if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread.
+
See also
Time input
+
+glfwGetTimerFrequency
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetTimerFrequency()

+ +
+
+ + + + + + + + +
uint64_t glfwGetTimerFrequency (void )
+
+

This function returns the frequency, in Hz, of the raw timer.

+
Returns
The frequency of the timer, in Hz, or zero if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread.
+
See also
Time input
+
+glfwGetTimerValue
+
Since
Added in version 3.2.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__joysticks.html b/external/glfw-3.3.4/docs/html/group__joysticks.html new file mode 100644 index 0000000..c081dd3 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__joysticks.html @@ -0,0 +1,355 @@ + + + + + + + +GLFW: Joysticks + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
+
+
+

Description

+

See joystick input for how these are used.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#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
 
+

Macro Definition Documentation

+ +

◆ GLFW_JOYSTICK_1

+ +
+
+ + + + +
#define GLFW_JOYSTICK_1   0
+
+ +
+
+ +

◆ GLFW_JOYSTICK_2

+ +
+
+ + + + +
#define GLFW_JOYSTICK_2   1
+
+ +
+
+ +

◆ GLFW_JOYSTICK_3

+ +
+
+ + + + +
#define GLFW_JOYSTICK_3   2
+
+ +
+
+ +

◆ GLFW_JOYSTICK_4

+ +
+
+ + + + +
#define GLFW_JOYSTICK_4   3
+
+ +
+
+ +

◆ GLFW_JOYSTICK_5

+ +
+
+ + + + +
#define GLFW_JOYSTICK_5   4
+
+ +
+
+ +

◆ GLFW_JOYSTICK_6

+ +
+
+ + + + +
#define GLFW_JOYSTICK_6   5
+
+ +
+
+ +

◆ GLFW_JOYSTICK_7

+ +
+
+ + + + +
#define GLFW_JOYSTICK_7   6
+
+ +
+
+ +

◆ GLFW_JOYSTICK_8

+ +
+
+ + + + +
#define GLFW_JOYSTICK_8   7
+
+ +
+
+ +

◆ GLFW_JOYSTICK_9

+ +
+
+ + + + +
#define GLFW_JOYSTICK_9   8
+
+ +
+
+ +

◆ GLFW_JOYSTICK_10

+ +
+
+ + + + +
#define GLFW_JOYSTICK_10   9
+
+ +
+
+ +

◆ GLFW_JOYSTICK_11

+ +
+
+ + + + +
#define GLFW_JOYSTICK_11   10
+
+ +
+
+ +

◆ GLFW_JOYSTICK_12

+ +
+
+ + + + +
#define GLFW_JOYSTICK_12   11
+
+ +
+
+ +

◆ GLFW_JOYSTICK_13

+ +
+
+ + + + +
#define GLFW_JOYSTICK_13   12
+
+ +
+
+ +

◆ GLFW_JOYSTICK_14

+ +
+
+ + + + +
#define GLFW_JOYSTICK_14   13
+
+ +
+
+ +

◆ GLFW_JOYSTICK_15

+ +
+
+ + + + +
#define GLFW_JOYSTICK_15   14
+
+ +
+
+ +

◆ GLFW_JOYSTICK_16

+ +
+
+ + + + +
#define GLFW_JOYSTICK_16   15
+
+ +
+
+ +

◆ GLFW_JOYSTICK_LAST

+ +
+
+ + + + +
#define GLFW_JOYSTICK_LAST   GLFW_JOYSTICK_16
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__keys.html b/external/glfw-3.3.4/docs/html/group__keys.html new file mode 100644 index 0000000..96fcf76 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__keys.html @@ -0,0 +1,2043 @@ + + + + + + + +GLFW: Keyboard keys + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Keyboard keys
+
+
+

Description

+

See key input 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.)
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_KEY_UNKNOWN   -1
 
#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 */
 
#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
 
+

Macro Definition Documentation

+ +

◆ GLFW_KEY_UNKNOWN

+ +
+
+ + + + +
#define GLFW_KEY_UNKNOWN   -1
+
+ +
+
+ +

◆ GLFW_KEY_SPACE

+ +
+
+ + + + +
#define GLFW_KEY_SPACE   32
+
+ +
+
+ +

◆ GLFW_KEY_APOSTROPHE

+ +
+
+ + + + +
#define GLFW_KEY_APOSTROPHE   39 /* ' */
+
+ +
+
+ +

◆ GLFW_KEY_COMMA

+ +
+
+ + + + +
#define GLFW_KEY_COMMA   44 /* , */
+
+ +
+
+ +

◆ GLFW_KEY_MINUS

+ +
+
+ + + + +
#define GLFW_KEY_MINUS   45 /* - */
+
+ +
+
+ +

◆ GLFW_KEY_PERIOD

+ +
+
+ + + + +
#define GLFW_KEY_PERIOD   46 /* . */
+
+ +
+
+ +

◆ GLFW_KEY_SLASH

+ +
+
+ + + + +
#define GLFW_KEY_SLASH   47 /* / */
+
+ +
+
+ +

◆ GLFW_KEY_0

+ +
+
+ + + + +
#define GLFW_KEY_0   48
+
+ +
+
+ +

◆ GLFW_KEY_1

+ +
+
+ + + + +
#define GLFW_KEY_1   49
+
+ +
+
+ +

◆ GLFW_KEY_2

+ +
+
+ + + + +
#define GLFW_KEY_2   50
+
+ +
+
+ +

◆ GLFW_KEY_3

+ +
+
+ + + + +
#define GLFW_KEY_3   51
+
+ +
+
+ +

◆ GLFW_KEY_4

+ +
+
+ + + + +
#define GLFW_KEY_4   52
+
+ +
+
+ +

◆ GLFW_KEY_5

+ +
+
+ + + + +
#define GLFW_KEY_5   53
+
+ +
+
+ +

◆ GLFW_KEY_6

+ +
+
+ + + + +
#define GLFW_KEY_6   54
+
+ +
+
+ +

◆ GLFW_KEY_7

+ +
+
+ + + + +
#define GLFW_KEY_7   55
+
+ +
+
+ +

◆ GLFW_KEY_8

+ +
+
+ + + + +
#define GLFW_KEY_8   56
+
+ +
+
+ +

◆ GLFW_KEY_9

+ +
+
+ + + + +
#define GLFW_KEY_9   57
+
+ +
+
+ +

◆ GLFW_KEY_SEMICOLON

+ +
+
+ + + + +
#define GLFW_KEY_SEMICOLON   59 /* ; */
+
+ +
+
+ +

◆ GLFW_KEY_EQUAL

+ +
+
+ + + + +
#define GLFW_KEY_EQUAL   61 /* = */
+
+ +
+
+ +

◆ GLFW_KEY_A

+ +
+
+ + + + +
#define GLFW_KEY_A   65
+
+ +
+
+ +

◆ GLFW_KEY_B

+ +
+
+ + + + +
#define GLFW_KEY_B   66
+
+ +
+
+ +

◆ GLFW_KEY_C

+ +
+
+ + + + +
#define GLFW_KEY_C   67
+
+ +
+
+ +

◆ GLFW_KEY_D

+ +
+
+ + + + +
#define GLFW_KEY_D   68
+
+ +
+
+ +

◆ GLFW_KEY_E

+ +
+
+ + + + +
#define GLFW_KEY_E   69
+
+ +
+
+ +

◆ GLFW_KEY_F

+ +
+
+ + + + +
#define GLFW_KEY_F   70
+
+ +
+
+ +

◆ GLFW_KEY_G

+ +
+
+ + + + +
#define GLFW_KEY_G   71
+
+ +
+
+ +

◆ GLFW_KEY_H

+ +
+
+ + + + +
#define GLFW_KEY_H   72
+
+ +
+
+ +

◆ GLFW_KEY_I

+ +
+
+ + + + +
#define GLFW_KEY_I   73
+
+ +
+
+ +

◆ GLFW_KEY_J

+ +
+
+ + + + +
#define GLFW_KEY_J   74
+
+ +
+
+ +

◆ GLFW_KEY_K

+ +
+
+ + + + +
#define GLFW_KEY_K   75
+
+ +
+
+ +

◆ GLFW_KEY_L

+ +
+
+ + + + +
#define GLFW_KEY_L   76
+
+ +
+
+ +

◆ GLFW_KEY_M

+ +
+
+ + + + +
#define GLFW_KEY_M   77
+
+ +
+
+ +

◆ GLFW_KEY_N

+ +
+
+ + + + +
#define GLFW_KEY_N   78
+
+ +
+
+ +

◆ GLFW_KEY_O

+ +
+
+ + + + +
#define GLFW_KEY_O   79
+
+ +
+
+ +

◆ GLFW_KEY_P

+ +
+
+ + + + +
#define GLFW_KEY_P   80
+
+ +
+
+ +

◆ GLFW_KEY_Q

+ +
+
+ + + + +
#define GLFW_KEY_Q   81
+
+ +
+
+ +

◆ GLFW_KEY_R

+ +
+
+ + + + +
#define GLFW_KEY_R   82
+
+ +
+
+ +

◆ GLFW_KEY_S

+ +
+
+ + + + +
#define GLFW_KEY_S   83
+
+ +
+
+ +

◆ GLFW_KEY_T

+ +
+
+ + + + +
#define GLFW_KEY_T   84
+
+ +
+
+ +

◆ GLFW_KEY_U

+ +
+
+ + + + +
#define GLFW_KEY_U   85
+
+ +
+
+ +

◆ GLFW_KEY_V

+ +
+
+ + + + +
#define GLFW_KEY_V   86
+
+ +
+
+ +

◆ GLFW_KEY_W

+ +
+
+ + + + +
#define GLFW_KEY_W   87
+
+ +
+
+ +

◆ GLFW_KEY_X

+ +
+
+ + + + +
#define GLFW_KEY_X   88
+
+ +
+
+ +

◆ GLFW_KEY_Y

+ +
+
+ + + + +
#define GLFW_KEY_Y   89
+
+ +
+
+ +

◆ GLFW_KEY_Z

+ +
+
+ + + + +
#define GLFW_KEY_Z   90
+
+ +
+
+ +

◆ GLFW_KEY_LEFT_BRACKET

+ +
+
+ + + + +
#define GLFW_KEY_LEFT_BRACKET   91 /* [ */
+
+ +
+
+ +

◆ GLFW_KEY_BACKSLASH

+ +
+
+ + + + +
#define GLFW_KEY_BACKSLASH   92 /* \ */
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT_BRACKET

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT_BRACKET   93 /* ] */
+
+ +
+
+ +

◆ GLFW_KEY_GRAVE_ACCENT

+ +
+
+ + + + +
#define GLFW_KEY_GRAVE_ACCENT   96 /* ` */
+
+ +
+
+ +

◆ GLFW_KEY_WORLD_1

+ +
+
+ + + + +
#define GLFW_KEY_WORLD_1   161 /* non-US #1 */
+
+ +
+
+ +

◆ GLFW_KEY_WORLD_2

+ +
+
+ + + + +
#define GLFW_KEY_WORLD_2   162 /* non-US #2 */
+
+ +
+
+ +

◆ GLFW_KEY_ESCAPE

+ +
+
+ + + + +
#define GLFW_KEY_ESCAPE   256
+
+ +
+
+ +

◆ GLFW_KEY_ENTER

+ +
+
+ + + + +
#define GLFW_KEY_ENTER   257
+
+ +
+
+ +

◆ GLFW_KEY_TAB

+ +
+
+ + + + +
#define GLFW_KEY_TAB   258
+
+ +
+
+ +

◆ GLFW_KEY_BACKSPACE

+ +
+
+ + + + +
#define GLFW_KEY_BACKSPACE   259
+
+ +
+
+ +

◆ GLFW_KEY_INSERT

+ +
+
+ + + + +
#define GLFW_KEY_INSERT   260
+
+ +
+
+ +

◆ GLFW_KEY_DELETE

+ +
+
+ + + + +
#define GLFW_KEY_DELETE   261
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT   262
+
+ +
+
+ +

◆ GLFW_KEY_LEFT

+ +
+
+ + + + +
#define GLFW_KEY_LEFT   263
+
+ +
+
+ +

◆ GLFW_KEY_DOWN

+ +
+
+ + + + +
#define GLFW_KEY_DOWN   264
+
+ +
+
+ +

◆ GLFW_KEY_UP

+ +
+
+ + + + +
#define GLFW_KEY_UP   265
+
+ +
+
+ +

◆ GLFW_KEY_PAGE_UP

+ +
+
+ + + + +
#define GLFW_KEY_PAGE_UP   266
+
+ +
+
+ +

◆ GLFW_KEY_PAGE_DOWN

+ +
+
+ + + + +
#define GLFW_KEY_PAGE_DOWN   267
+
+ +
+
+ +

◆ GLFW_KEY_HOME

+ +
+
+ + + + +
#define GLFW_KEY_HOME   268
+
+ +
+
+ +

◆ GLFW_KEY_END

+ +
+
+ + + + +
#define GLFW_KEY_END   269
+
+ +
+
+ +

◆ GLFW_KEY_CAPS_LOCK

+ +
+
+ + + + +
#define GLFW_KEY_CAPS_LOCK   280
+
+ +
+
+ +

◆ GLFW_KEY_SCROLL_LOCK

+ +
+
+ + + + +
#define GLFW_KEY_SCROLL_LOCK   281
+
+ +
+
+ +

◆ GLFW_KEY_NUM_LOCK

+ +
+
+ + + + +
#define GLFW_KEY_NUM_LOCK   282
+
+ +
+
+ +

◆ GLFW_KEY_PRINT_SCREEN

+ +
+
+ + + + +
#define GLFW_KEY_PRINT_SCREEN   283
+
+ +
+
+ +

◆ GLFW_KEY_PAUSE

+ +
+
+ + + + +
#define GLFW_KEY_PAUSE   284
+
+ +
+
+ +

◆ GLFW_KEY_F1

+ +
+
+ + + + +
#define GLFW_KEY_F1   290
+
+ +
+
+ +

◆ GLFW_KEY_F2

+ +
+
+ + + + +
#define GLFW_KEY_F2   291
+
+ +
+
+ +

◆ GLFW_KEY_F3

+ +
+
+ + + + +
#define GLFW_KEY_F3   292
+
+ +
+
+ +

◆ GLFW_KEY_F4

+ +
+
+ + + + +
#define GLFW_KEY_F4   293
+
+ +
+
+ +

◆ GLFW_KEY_F5

+ +
+
+ + + + +
#define GLFW_KEY_F5   294
+
+ +
+
+ +

◆ GLFW_KEY_F6

+ +
+
+ + + + +
#define GLFW_KEY_F6   295
+
+ +
+
+ +

◆ GLFW_KEY_F7

+ +
+
+ + + + +
#define GLFW_KEY_F7   296
+
+ +
+
+ +

◆ GLFW_KEY_F8

+ +
+
+ + + + +
#define GLFW_KEY_F8   297
+
+ +
+
+ +

◆ GLFW_KEY_F9

+ +
+
+ + + + +
#define GLFW_KEY_F9   298
+
+ +
+
+ +

◆ GLFW_KEY_F10

+ +
+
+ + + + +
#define GLFW_KEY_F10   299
+
+ +
+
+ +

◆ GLFW_KEY_F11

+ +
+
+ + + + +
#define GLFW_KEY_F11   300
+
+ +
+
+ +

◆ GLFW_KEY_F12

+ +
+
+ + + + +
#define GLFW_KEY_F12   301
+
+ +
+
+ +

◆ GLFW_KEY_F13

+ +
+
+ + + + +
#define GLFW_KEY_F13   302
+
+ +
+
+ +

◆ GLFW_KEY_F14

+ +
+
+ + + + +
#define GLFW_KEY_F14   303
+
+ +
+
+ +

◆ GLFW_KEY_F15

+ +
+
+ + + + +
#define GLFW_KEY_F15   304
+
+ +
+
+ +

◆ GLFW_KEY_F16

+ +
+
+ + + + +
#define GLFW_KEY_F16   305
+
+ +
+
+ +

◆ GLFW_KEY_F17

+ +
+
+ + + + +
#define GLFW_KEY_F17   306
+
+ +
+
+ +

◆ GLFW_KEY_F18

+ +
+
+ + + + +
#define GLFW_KEY_F18   307
+
+ +
+
+ +

◆ GLFW_KEY_F19

+ +
+
+ + + + +
#define GLFW_KEY_F19   308
+
+ +
+
+ +

◆ GLFW_KEY_F20

+ +
+
+ + + + +
#define GLFW_KEY_F20   309
+
+ +
+
+ +

◆ GLFW_KEY_F21

+ +
+
+ + + + +
#define GLFW_KEY_F21   310
+
+ +
+
+ +

◆ GLFW_KEY_F22

+ +
+
+ + + + +
#define GLFW_KEY_F22   311
+
+ +
+
+ +

◆ GLFW_KEY_F23

+ +
+
+ + + + +
#define GLFW_KEY_F23   312
+
+ +
+
+ +

◆ GLFW_KEY_F24

+ +
+
+ + + + +
#define GLFW_KEY_F24   313
+
+ +
+
+ +

◆ GLFW_KEY_F25

+ +
+
+ + + + +
#define GLFW_KEY_F25   314
+
+ +
+
+ +

◆ GLFW_KEY_KP_0

+ +
+
+ + + + +
#define GLFW_KEY_KP_0   320
+
+ +
+
+ +

◆ GLFW_KEY_KP_1

+ +
+
+ + + + +
#define GLFW_KEY_KP_1   321
+
+ +
+
+ +

◆ GLFW_KEY_KP_2

+ +
+
+ + + + +
#define GLFW_KEY_KP_2   322
+
+ +
+
+ +

◆ GLFW_KEY_KP_3

+ +
+
+ + + + +
#define GLFW_KEY_KP_3   323
+
+ +
+
+ +

◆ GLFW_KEY_KP_4

+ +
+
+ + + + +
#define GLFW_KEY_KP_4   324
+
+ +
+
+ +

◆ GLFW_KEY_KP_5

+ +
+
+ + + + +
#define GLFW_KEY_KP_5   325
+
+ +
+
+ +

◆ GLFW_KEY_KP_6

+ +
+
+ + + + +
#define GLFW_KEY_KP_6   326
+
+ +
+
+ +

◆ GLFW_KEY_KP_7

+ +
+
+ + + + +
#define GLFW_KEY_KP_7   327
+
+ +
+
+ +

◆ GLFW_KEY_KP_8

+ +
+
+ + + + +
#define GLFW_KEY_KP_8   328
+
+ +
+
+ +

◆ GLFW_KEY_KP_9

+ +
+
+ + + + +
#define GLFW_KEY_KP_9   329
+
+ +
+
+ +

◆ GLFW_KEY_KP_DECIMAL

+ +
+
+ + + + +
#define GLFW_KEY_KP_DECIMAL   330
+
+ +
+
+ +

◆ GLFW_KEY_KP_DIVIDE

+ +
+
+ + + + +
#define GLFW_KEY_KP_DIVIDE   331
+
+ +
+
+ +

◆ GLFW_KEY_KP_MULTIPLY

+ +
+
+ + + + +
#define GLFW_KEY_KP_MULTIPLY   332
+
+ +
+
+ +

◆ GLFW_KEY_KP_SUBTRACT

+ +
+
+ + + + +
#define GLFW_KEY_KP_SUBTRACT   333
+
+ +
+
+ +

◆ GLFW_KEY_KP_ADD

+ +
+
+ + + + +
#define GLFW_KEY_KP_ADD   334
+
+ +
+
+ +

◆ GLFW_KEY_KP_ENTER

+ +
+
+ + + + +
#define GLFW_KEY_KP_ENTER   335
+
+ +
+
+ +

◆ GLFW_KEY_KP_EQUAL

+ +
+
+ + + + +
#define GLFW_KEY_KP_EQUAL   336
+
+ +
+
+ +

◆ GLFW_KEY_LEFT_SHIFT

+ +
+
+ + + + +
#define GLFW_KEY_LEFT_SHIFT   340
+
+ +
+
+ +

◆ GLFW_KEY_LEFT_CONTROL

+ +
+
+ + + + +
#define GLFW_KEY_LEFT_CONTROL   341
+
+ +
+
+ +

◆ GLFW_KEY_LEFT_ALT

+ +
+
+ + + + +
#define GLFW_KEY_LEFT_ALT   342
+
+ +
+
+ +

◆ GLFW_KEY_LEFT_SUPER

+ +
+
+ + + + +
#define GLFW_KEY_LEFT_SUPER   343
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT_SHIFT

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT_SHIFT   344
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT_CONTROL

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT_CONTROL   345
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT_ALT

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT_ALT   346
+
+ +
+
+ +

◆ GLFW_KEY_RIGHT_SUPER

+ +
+
+ + + + +
#define GLFW_KEY_RIGHT_SUPER   347
+
+ +
+
+ +

◆ GLFW_KEY_MENU

+ +
+
+ + + + +
#define GLFW_KEY_MENU   348
+
+ +
+
+ +

◆ GLFW_KEY_LAST

+ +
+
+ + + + +
#define GLFW_KEY_LAST   GLFW_KEY_MENU
+
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__mods.html b/external/glfw-3.3.4/docs/html/group__mods.html new file mode 100644 index 0000000..0a99b5d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__mods.html @@ -0,0 +1,191 @@ + + + + + + + +GLFW: Modifier key flags + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Modifier key flags
+
+
+

Description

+

See key input for how these are used.

+ + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_MOD_SHIFT   0x0001
 If this bit is set one or more Shift keys were held down. More...
 
#define GLFW_MOD_CONTROL   0x0002
 If this bit is set one or more Control keys were held down. More...
 
#define GLFW_MOD_ALT   0x0004
 If this bit is set one or more Alt keys were held down. More...
 
#define GLFW_MOD_SUPER   0x0008
 If this bit is set one or more Super keys were held down. More...
 
#define GLFW_MOD_CAPS_LOCK   0x0010
 If this bit is set the Caps Lock key is enabled. More...
 
#define GLFW_MOD_NUM_LOCK   0x0020
 If this bit is set the Num Lock key is enabled. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_MOD_SHIFT

+ +
+
+ + + + +
#define GLFW_MOD_SHIFT   0x0001
+
+

If this bit is set one or more Shift keys were held down.

+ +
+
+ +

◆ GLFW_MOD_CONTROL

+ +
+
+ + + + +
#define GLFW_MOD_CONTROL   0x0002
+
+

If this bit is set one or more Control keys were held down.

+ +
+
+ +

◆ GLFW_MOD_ALT

+ +
+
+ + + + +
#define GLFW_MOD_ALT   0x0004
+
+

If this bit is set one or more Alt keys were held down.

+ +
+
+ +

◆ GLFW_MOD_SUPER

+ +
+
+ + + + +
#define GLFW_MOD_SUPER   0x0008
+
+

If this bit is set one or more Super keys were held down.

+ +
+
+ +

◆ GLFW_MOD_CAPS_LOCK

+ +
+
+ + + + +
#define GLFW_MOD_CAPS_LOCK   0x0010
+
+

If this bit is set the Caps Lock key is enabled and the GLFW_LOCK_KEY_MODS input mode is set.

+ +
+
+ +

◆ GLFW_MOD_NUM_LOCK

+ +
+
+ + + + +
#define GLFW_MOD_NUM_LOCK   0x0020
+
+

If this bit is set the Num Lock key is enabled and the GLFW_LOCK_KEY_MODS input mode is set.

+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__monitor.html b/external/glfw-3.3.4/docs/html/group__monitor.html new file mode 100644 index 0000000..6fb3973 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__monitor.html @@ -0,0 +1,841 @@ + + + + + + + +GLFW: Monitor reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Monitor reference
+
+
+

Description

+

This is the reference documentation for monitor related functions and types. For more task-oriented information, see the Monitor guide.

+ + + + + + + + + + + + + + +

+Typedefs

typedef struct GLFWmonitor GLFWmonitor
 Opaque monitor object. More...
 
typedef void(* GLFWmonitorfun) (GLFWmonitor *, int)
 The function pointer type for monitor configuration callbacks. More...
 
typedef struct GLFWvidmode GLFWvidmode
 Video mode type. More...
 
typedef struct GLFWgammaramp GLFWgammaramp
 Gamma ramp. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

GLFWmonitor ** glfwGetMonitors (int *count)
 Returns the currently connected monitors. More...
 
GLFWmonitorglfwGetPrimaryMonitor (void)
 Returns the primary monitor. More...
 
void glfwGetMonitorPos (GLFWmonitor *monitor, int *xpos, int *ypos)
 Returns the position of the monitor's viewport on the virtual screen. More...
 
void glfwGetMonitorWorkarea (GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height)
 Retrieves the work area of the monitor. More...
 
void glfwGetMonitorPhysicalSize (GLFWmonitor *monitor, int *widthMM, int *heightMM)
 Returns the physical size of the monitor. More...
 
void glfwGetMonitorContentScale (GLFWmonitor *monitor, float *xscale, float *yscale)
 Retrieves the content scale for the specified monitor. More...
 
const char * glfwGetMonitorName (GLFWmonitor *monitor)
 Returns the name of the specified monitor. More...
 
void glfwSetMonitorUserPointer (GLFWmonitor *monitor, void *pointer)
 Sets the user pointer of the specified monitor. More...
 
void * glfwGetMonitorUserPointer (GLFWmonitor *monitor)
 Returns the user pointer of the specified monitor. More...
 
GLFWmonitorfun glfwSetMonitorCallback (GLFWmonitorfun callback)
 Sets the monitor configuration callback. More...
 
const GLFWvidmodeglfwGetVideoModes (GLFWmonitor *monitor, int *count)
 Returns the available video modes for the specified monitor. More...
 
const GLFWvidmodeglfwGetVideoMode (GLFWmonitor *monitor)
 Returns the current mode of the specified monitor. More...
 
void glfwSetGamma (GLFWmonitor *monitor, float gamma)
 Generates a gamma ramp and sets it for the specified monitor. More...
 
const GLFWgammarampglfwGetGammaRamp (GLFWmonitor *monitor)
 Returns the current gamma ramp for the specified monitor. More...
 
void glfwSetGammaRamp (GLFWmonitor *monitor, const GLFWgammaramp *ramp)
 Sets the current gamma ramp for the specified monitor. More...
 
+

Typedef Documentation

+ +

◆ GLFWmonitor

+ +
+
+ + + + +
typedef struct GLFWmonitor GLFWmonitor
+
+

Opaque monitor object.

+
See also
Monitor objects
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWmonitorfun

+ +
+
+ + + + +
typedef void(* GLFWmonitorfun) (GLFWmonitor *, int)
+
+

This is the function pointer type for monitor configuration callbacks. A monitor callback function has the following signature:

void function_name(GLFWmonitor* monitor, int event)
+
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
Definition: glfw3.h:1170
+
Parameters
+ + + +
[in]monitorThe monitor that was connected or disconnected.
[in]eventOne of GLFW_CONNECTED or GLFW_DISCONNECTED. Future releases may add more events.
+
+
+
See also
Monitor configuration changes
+
+glfwSetMonitorCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWvidmode

+ +
+
+ + + + +
typedef struct GLFWvidmode GLFWvidmode
+
+

This describes a single video mode.

+
See also
Video modes
+
+glfwGetVideoMode
+
+glfwGetVideoModes
+
Since
Added in version 1.0. GLFW 3: Added refresh rate member.
+ +
+
+ +

◆ GLFWgammaramp

+ +
+
+ + + + +
typedef struct GLFWgammaramp GLFWgammaramp
+
+

This describes the gamma ramp for a monitor.

+
See also
Gamma ramp
+
+glfwGetGammaRamp
+
+glfwSetGammaRamp
+
Since
Added in version 3.0.
+ +
+
+

Function Documentation

+ +

◆ glfwGetMonitors()

+ +
+
+ + + + + + + + +
GLFWmonitor** glfwGetMonitors (int * count)
+
+

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.

+
Parameters
+ + +
[out]countWhere to store the number of monitors in the returned array. This is set to zero if an error occurred.
+
+
+
Returns
An array of monitor handles, or NULL if no monitors were found or if an error occurred.
+
Errors
Possible errors include 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.
+
See also
Retrieving monitors
+
+Monitor configuration changes
+
+glfwGetPrimaryMonitor
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetPrimaryMonitor()

+ +
+
+ + + + + + + + +
GLFWmonitor* glfwGetPrimaryMonitor (void )
+
+

This function returns the primary monitor. This is usually the monitor where elements like the task bar or global menu bar are located.

+
Returns
The primary monitor, or NULL if no monitors were found or if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
Remarks
The primary monitor is always first in the array returned by glfwGetMonitors.
+
See also
Retrieving monitors
+
+glfwGetMonitors
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetMonitorPos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetMonitorPos (GLFWmonitormonitor,
int * xpos,
int * ypos 
)
+
+

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.

+
Parameters
+ + + + +
[in]monitorThe monitor to query.
[out]xposWhere to store the monitor x-coordinate, or NULL.
[out]yposWhere to store the monitor y-coordinate, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Monitor properties
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetMonitorWorkarea()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetMonitorWorkarea (GLFWmonitormonitor,
int * xpos,
int * ypos,
int * width,
int * height 
)
+
+

This function returns the position, in screen coordinates, of the upper-left corner of the work area of the specified monitor along with the work area size in screen coordinates. The work area is defined as the area of the monitor not occluded by the operating system task bar where present. If no task bar exists then the work area is the monitor resolution in screen coordinates.

+

Any or all of the position and size arguments may be NULL. If an error occurs, all non-NULL position and size arguments will be set to zero.

+
Parameters
+ + + + + + +
[in]monitorThe monitor to query.
[out]xposWhere to store the monitor x-coordinate, or NULL.
[out]yposWhere to store the monitor y-coordinate, or NULL.
[out]widthWhere to store the monitor width, or NULL.
[out]heightWhere to store the monitor height, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Work area
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetMonitorPhysicalSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetMonitorPhysicalSize (GLFWmonitormonitor,
int * widthMM,
int * heightMM 
)
+
+

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 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.

+
Parameters
+ + + + +
[in]monitorThe monitor to query.
[out]widthMMWhere to store the width, in millimetres, of the monitor's display area, or NULL.
[out]heightMMWhere to store the height, in millimetres, of the monitor's display area, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Remarks
Windows: 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.
+
See also
Monitor properties
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetMonitorContentScale()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetMonitorContentScale (GLFWmonitormonitor,
float * xscale,
float * yscale 
)
+
+

This function retrieves the content scale for the specified monitor. The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.

+

The content scale may depend on both the monitor resolution and pixel density and on user settings. It may be very different from the raw DPI calculated from the physical size and current resolution.

+
Parameters
+ + + + +
[in]monitorThe monitor to query.
[out]xscaleWhere to store the x-axis content scale, or NULL.
[out]yscaleWhere to store the y-axis content scale, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Content scale
+
+glfwGetWindowContentScale
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetMonitorName()

+ +
+
+ + + + + + + + +
const char* glfwGetMonitorName (GLFWmonitormonitor)
+
+

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.

+
Parameters
+ + +
[in]monitorThe monitor to query.
+
+
+
Returns
The UTF-8 encoded name of the monitor, or NULL if an error occurred.
+
Errors
Possible errors include 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.
+
See also
Monitor properties
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetMonitorUserPointer()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetMonitorUserPointer (GLFWmonitormonitor,
void * pointer 
)
+
+

This function sets the user-defined pointer of the specified monitor. The current value is retained until the monitor is disconnected. The initial value is NULL.

+

This function may be called from the monitor callback, even for a monitor that is being disconnected.

+
Parameters
+ + + +
[in]monitorThe monitor whose pointer to set.
[in]pointerThe new value.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
User pointer
+
+glfwGetMonitorUserPointer
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetMonitorUserPointer()

+ +
+
+ + + + + + + + +
void* glfwGetMonitorUserPointer (GLFWmonitormonitor)
+
+

This function returns the current value of the user-defined pointer of the specified monitor. The initial value is NULL.

+

This function may be called from the monitor callback, even for a monitor that is being disconnected.

+
Parameters
+ + +
[in]monitorThe monitor whose pointer to return.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
User pointer
+
+glfwSetMonitorUserPointer
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetMonitorCallback()

+ +
+
+ + + + + + + + +
GLFWmonitorfun glfwSetMonitorCallback (GLFWmonitorfun 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.

+
Parameters
+ + +
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWmonitor* monitor, int event)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Monitor configuration changes
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetVideoModes()

+ +
+
+ + + + + + + + + + + + + + + + + + +
const GLFWvidmode* glfwGetVideoModes (GLFWmonitormonitor,
int * count 
)
+
+

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).

+
Parameters
+ + + +
[in]monitorThe monitor to query.
[out]countWhere to store the number of video modes in the returned array. This is set to zero if an error occurred.
+
+
+
Returns
An array of video modes, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Video modes
+
+glfwGetVideoMode
+
Since
Added in version 1.0. GLFW 3: Changed to return an array of modes for a specific monitor.
+ +
+
+ +

◆ glfwGetVideoMode()

+ +
+
+ + + + + + + + +
const GLFWvidmode* glfwGetVideoMode (GLFWmonitormonitor)
+
+

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.

+
Parameters
+ + +
[in]monitorThe monitor to query.
+
+
+
Returns
The current mode of the monitor, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Video modes
+
+glfwGetVideoModes
+
Since
Added in version 3.0. Replaces glfwGetDesktopMode.
+ +
+
+ +

◆ glfwSetGamma()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetGamma (GLFWmonitormonitor,
float gamma 
)
+
+

This function generates an appropriately sized gamma ramp from the specified exponent and then calls glfwSetGammaRamp with it. The value must be a finite number greater than zero.

+

The software controlled gamma ramp is applied in addition to the hardware gamma correction, which today is usually an approximation of sRGB gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will produce the default (usually sRGB-like) behavior.

+

For gamma correct rendering with OpenGL or OpenGL ES, see the GLFW_SRGB_CAPABLE hint.

+
Parameters
+ + + +
[in]monitorThe monitor whose gamma ramp to set.
[in]gammaThe desired exponent.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: Gamma handling is a privileged protocol, this function will thus never be implemented and emits GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamma ramp
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetGammaRamp()

+ +
+
+ + + + + + + + +
const GLFWgammaramp* glfwGetGammaRamp (GLFWmonitormonitor)
+
+

This function returns the current gamma ramp of the specified monitor.

+
Parameters
+ + +
[in]monitorThe monitor to query.
+
+
+
Returns
The current gamma ramp, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: Gamma handling is a privileged protocol, this function will thus never be implemented and emits GLFW_PLATFORM_ERROR while returning NULL.
+
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.
+
See also
Gamma ramp
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetGammaRamp()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetGammaRamp (GLFWmonitormonitor,
const GLFWgammarampramp 
)
+
+

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 glfwTerminate.

+

The software controlled gamma ramp is applied in addition to the hardware gamma correction, which today is usually an approximation of sRGB gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will produce the default (usually sRGB-like) behavior.

+

For gamma correct rendering with OpenGL or OpenGL ES, see the GLFW_SRGB_CAPABLE hint.

+
Parameters
+ + + +
[in]monitorThe monitor whose gamma ramp to set.
[in]rampThe gamma ramp to use.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
The size of the specified gamma ramp should match the size of the current ramp for that monitor.
+
+Windows: The gamma ramp size must be 256.
+
+Wayland: Gamma handling is a privileged protocol, this function will thus never be implemented and emits GLFW_PLATFORM_ERROR.
+
Pointer lifetime
The specified gamma ramp is copied before this function returns.
+
Thread safety
This function must only be called from the main thread.
+
See also
Gamma ramp
+
Since
Added in version 3.0.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__native.html b/external/glfw-3.3.4/docs/html/group__native.html new file mode 100644 index 0000000..66f6097 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__native.html @@ -0,0 +1,771 @@ + + + + + + + +GLFW: Native access + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Native access
+
+
+

Description

+

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 glfw3native.h, you may define zero or more 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
  • +
+

The available context API macros are:

    +
  • GLFW_EXPOSE_NATIVE_WGL
  • +
  • GLFW_EXPOSE_NATIVE_NSGL
  • +
  • GLFW_EXPOSE_NATIVE_GLX
  • +
  • GLFW_EXPOSE_NATIVE_EGL
  • +
  • GLFW_EXPOSE_NATIVE_OSMESA
  • +
+

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.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

const char * glfwGetWin32Adapter (GLFWmonitor *monitor)
 Returns the adapter device name of the specified monitor. More...
 
const char * glfwGetWin32Monitor (GLFWmonitor *monitor)
 Returns the display device name of the specified monitor. More...
 
HWND glfwGetWin32Window (GLFWwindow *window)
 Returns the HWND of the specified window. More...
 
HGLRC glfwGetWGLContext (GLFWwindow *window)
 Returns the HGLRC of the specified window. More...
 
CGDirectDisplayID glfwGetCocoaMonitor (GLFWmonitor *monitor)
 Returns the CGDirectDisplayID of the specified monitor. More...
 
id glfwGetCocoaWindow (GLFWwindow *window)
 Returns the NSWindow of the specified window. More...
 
id glfwGetNSGLContext (GLFWwindow *window)
 Returns the NSOpenGLContext of the specified window. More...
 
Display * glfwGetX11Display (void)
 Returns the Display used by GLFW. More...
 
RRCrtc glfwGetX11Adapter (GLFWmonitor *monitor)
 Returns the RRCrtc of the specified monitor. More...
 
RROutput glfwGetX11Monitor (GLFWmonitor *monitor)
 Returns the RROutput of the specified monitor. More...
 
Window glfwGetX11Window (GLFWwindow *window)
 Returns the Window of the specified window. More...
 
void glfwSetX11SelectionString (const char *string)
 Sets the current primary selection to the specified string. More...
 
const char * glfwGetX11SelectionString (void)
 Returns the contents of the current primary selection as a string. More...
 
GLXContext glfwGetGLXContext (GLFWwindow *window)
 Returns the GLXContext of the specified window. More...
 
GLXWindow glfwGetGLXWindow (GLFWwindow *window)
 Returns the GLXWindow of the specified window. More...
 
struct wl_display * glfwGetWaylandDisplay (void)
 Returns the struct wl_display* used by GLFW. More...
 
struct wl_output * glfwGetWaylandMonitor (GLFWmonitor *monitor)
 Returns the struct wl_output* of the specified monitor. More...
 
struct wl_surface * glfwGetWaylandWindow (GLFWwindow *window)
 Returns the main struct wl_surface* of the specified window. More...
 
EGLDisplay glfwGetEGLDisplay (void)
 Returns the EGLDisplay used by GLFW. More...
 
EGLContext glfwGetEGLContext (GLFWwindow *window)
 Returns the EGLContext of the specified window. More...
 
EGLSurface glfwGetEGLSurface (GLFWwindow *window)
 Returns the EGLSurface of the specified window. More...
 
int glfwGetOSMesaColorBuffer (GLFWwindow *window, int *width, int *height, int *format, void **buffer)
 Retrieves the color buffer associated with the specified window. More...
 
int glfwGetOSMesaDepthBuffer (GLFWwindow *window, int *width, int *height, int *bytesPerValue, void **buffer)
 Retrieves the depth buffer associated with the specified window. More...
 
OSMesaContext glfwGetOSMesaContext (GLFWwindow *window)
 Returns the OSMesaContext of the specified window. More...
 
+

Function Documentation

+ +

◆ glfwGetWin32Adapter()

+ +
+
+ + + + + + + + +
const char* glfwGetWin32Adapter (GLFWmonitormonitor)
+
+
Returns
The UTF-8 encoded adapter device name (for example \\.\DISPLAY1) of the specified monitor, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetWin32Monitor()

+ +
+
+ + + + + + + + +
const char* glfwGetWin32Monitor (GLFWmonitormonitor)
+
+
Returns
The UTF-8 encoded display device name (for example \\.\DISPLAY1\Monitor0) of the specified monitor, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetWin32Window()

+ +
+
+ + + + + + + + +
HWND glfwGetWin32Window (GLFWwindowwindow)
+
+
Returns
The HWND of the specified window, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetWGLContext()

+ +
+
+ + + + + + + + +
HGLRC glfwGetWGLContext (GLFWwindowwindow)
+
+
Returns
The HGLRC of the specified window, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetCocoaMonitor()

+ +
+
+ + + + + + + + +
CGDirectDisplayID glfwGetCocoaMonitor (GLFWmonitormonitor)
+
+
Returns
The CGDirectDisplayID of the specified monitor, or kCGNullDirectDisplay if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetCocoaWindow()

+ +
+
+ + + + + + + + +
id glfwGetCocoaWindow (GLFWwindowwindow)
+
+
Returns
The NSWindow of the specified window, or nil if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetNSGLContext()

+ +
+
+ + + + + + + + +
id glfwGetNSGLContext (GLFWwindowwindow)
+
+
Returns
The NSOpenGLContext of the specified window, or nil if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetX11Display()

+ +
+
+ + + + + + + + +
Display* glfwGetX11Display (void )
+
+
Returns
The Display used by GLFW, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetX11Adapter()

+ +
+
+ + + + + + + + +
RRCrtc glfwGetX11Adapter (GLFWmonitormonitor)
+
+
Returns
The RRCrtc of the specified monitor, or None if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetX11Monitor()

+ +
+
+ + + + + + + + +
RROutput glfwGetX11Monitor (GLFWmonitormonitor)
+
+
Returns
The RROutput of the specified monitor, or None if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetX11Window()

+ +
+
+ + + + + + + + +
Window glfwGetX11Window (GLFWwindowwindow)
+
+
Returns
The Window of the specified window, or None if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetX11SelectionString()

+ +
+
+ + + + + + + + +
void glfwSetX11SelectionString (const char * string)
+
+
Parameters
+ + +
[in]stringA UTF-8 encoded string.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Clipboard input and output
+
+glfwGetX11SelectionString
+
+glfwSetClipboardString
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetX11SelectionString()

+ +
+
+ + + + + + + + +
const char* glfwGetX11SelectionString (void )
+
+

If the selection is empty or if its contents cannot be converted, NULL is returned and a GLFW_FORMAT_UNAVAILABLE error is generated.

+
Returns
The contents of the selection as a UTF-8 encoded string, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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 glfwGetX11SelectionString or glfwSetX11SelectionString, or until the library is terminated.
+
Thread safety
This function must only be called from the main thread.
+
See also
Clipboard input and output
+
+glfwSetX11SelectionString
+
+glfwGetClipboardString
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetGLXContext()

+ +
+
+ + + + + + + + +
GLXContext glfwGetGLXContext (GLFWwindowwindow)
+
+
Returns
The GLXContext of the specified window, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetGLXWindow()

+ +
+
+ + + + + + + + +
GLXWindow glfwGetGLXWindow (GLFWwindowwindow)
+
+
Returns
The GLXWindow of the specified window, or None if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetWaylandDisplay()

+ +
+
+ + + + + + + + +
struct wl_display* glfwGetWaylandDisplay (void )
+
+
Returns
The struct wl_display* used by GLFW, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetWaylandMonitor()

+ +
+
+ + + + + + + + +
struct wl_output* glfwGetWaylandMonitor (GLFWmonitormonitor)
+
+
Returns
The struct wl_output* of the specified monitor, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetWaylandWindow()

+ +
+
+ + + + + + + + +
struct wl_surface* glfwGetWaylandWindow (GLFWwindowwindow)
+
+
Returns
The main struct wl_surface* of the specified window, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetEGLDisplay()

+ +
+
+ + + + + + + + +
EGLDisplay glfwGetEGLDisplay (void )
+
+
Returns
The EGLDisplay used by GLFW, or EGL_NO_DISPLAY if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetEGLContext()

+ +
+
+ + + + + + + + +
EGLContext glfwGetEGLContext (GLFWwindowwindow)
+
+
Returns
The EGLContext of the specified window, or EGL_NO_CONTEXT if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetEGLSurface()

+ +
+
+ + + + + + + + +
EGLSurface glfwGetEGLSurface (GLFWwindowwindow)
+
+
Returns
The EGLSurface of the specified window, or EGL_NO_SURFACE if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetOSMesaColorBuffer()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int glfwGetOSMesaColorBuffer (GLFWwindowwindow,
int * width,
int * height,
int * format,
void ** buffer 
)
+
+
Parameters
+ + + + + + +
[in]windowThe window whose color buffer to retrieve.
[out]widthWhere to store the width of the color buffer, or NULL.
[out]heightWhere to store the height of the color buffer, or NULL.
[out]formatWhere to store the OSMesa pixel format of the color buffer, or NULL.
[out]bufferWhere to store the address of the color buffer, or NULL.
+
+
+
Returns
GLFW_TRUE if successful, or GLFW_FALSE if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetOSMesaDepthBuffer()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int glfwGetOSMesaDepthBuffer (GLFWwindowwindow,
int * width,
int * height,
int * bytesPerValue,
void ** buffer 
)
+
+
Parameters
+ + + + + + +
[in]windowThe window whose depth buffer to retrieve.
[out]widthWhere to store the width of the depth buffer, or NULL.
[out]heightWhere to store the height of the depth buffer, or NULL.
[out]bytesPerValueWhere to store the number of bytes per depth buffer element, or NULL.
[out]bufferWhere to store the address of the depth buffer, or NULL.
+
+
+
Returns
GLFW_TRUE if successful, or GLFW_FALSE if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetOSMesaContext()

+ +
+
+ + + + + + + + +
OSMesaContext glfwGetOSMesaContext (GLFWwindowwindow)
+
+
Returns
The OSMesaContext of the specified window, or NULL if an error occurred.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
Since
Added in version 3.3.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__shapes.html b/external/glfw-3.3.4/docs/html/group__shapes.html new file mode 100644 index 0000000..c2dd5c7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__shapes.html @@ -0,0 +1,191 @@ + + + + + + + +GLFW: Standard cursor shapes + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Standard cursor shapes
+
+
+

Description

+

See standard cursor creation for how these are used.

+ + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_ARROW_CURSOR   0x00036001
 The regular arrow cursor shape. More...
 
#define GLFW_IBEAM_CURSOR   0x00036002
 The text input I-beam cursor shape. More...
 
#define GLFW_CROSSHAIR_CURSOR   0x00036003
 The crosshair shape. More...
 
#define GLFW_HAND_CURSOR   0x00036004
 The hand shape. More...
 
#define GLFW_HRESIZE_CURSOR   0x00036005
 The horizontal resize arrow shape. More...
 
#define GLFW_VRESIZE_CURSOR   0x00036006
 The vertical resize arrow shape. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_ARROW_CURSOR

+ +
+
+ + + + +
#define GLFW_ARROW_CURSOR   0x00036001
+
+

The regular arrow cursor.

+ +
+
+ +

◆ GLFW_IBEAM_CURSOR

+ +
+
+ + + + +
#define GLFW_IBEAM_CURSOR   0x00036002
+
+

The text input I-beam cursor shape.

+ +
+
+ +

◆ GLFW_CROSSHAIR_CURSOR

+ +
+
+ + + + +
#define GLFW_CROSSHAIR_CURSOR   0x00036003
+
+

The crosshair shape.

+ +
+
+ +

◆ GLFW_HAND_CURSOR

+ +
+
+ + + + +
#define GLFW_HAND_CURSOR   0x00036004
+
+

The hand shape.

+ +
+
+ +

◆ GLFW_HRESIZE_CURSOR

+ +
+
+ + + + +
#define GLFW_HRESIZE_CURSOR   0x00036005
+
+

The horizontal resize arrow shape.

+ +
+
+ +

◆ GLFW_VRESIZE_CURSOR

+ +
+
+ + + + +
#define GLFW_VRESIZE_CURSOR   0x00036006
+
+

The vertical resize arrow shape.

+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__vulkan.html b/external/glfw-3.3.4/docs/html/group__vulkan.html new file mode 100644 index 0000000..548d18d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__vulkan.html @@ -0,0 +1,354 @@ + + + + + + + +GLFW: Vulkan support reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Vulkan support reference
+
+
+

Description

+

This is the reference documentation for Vulkan related functions and types. For more task-oriented information, see the Vulkan guide.

+ + + + + +

+Typedefs

typedef void(* GLFWvkproc) (void)
 Vulkan API function pointer type. More...
 
+ + + + + + + + + + + + + + + + +

+Functions

int glfwVulkanSupported (void)
 Returns whether the Vulkan loader and an ICD have been found. More...
 
const char ** glfwGetRequiredInstanceExtensions (uint32_t *count)
 Returns the Vulkan instance extensions required by GLFW. More...
 
GLFWvkproc glfwGetInstanceProcAddress (VkInstance instance, const char *procname)
 Returns the address of the specified Vulkan instance function. More...
 
int glfwGetPhysicalDevicePresentationSupport (VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
 Returns whether the specified queue family can present images. More...
 
VkResult glfwCreateWindowSurface (VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface)
 Creates a Vulkan surface for the specified window. More...
 
+

Typedef Documentation

+ +

◆ GLFWvkproc

+ +
+
+ + + + +
typedef void(* GLFWvkproc) (void)
+
+

Generic function pointer used for returning Vulkan API function pointers without forcing a cast from a regular pointer.

+
See also
Querying Vulkan function pointers
+
+glfwGetInstanceProcAddress
+
Since
Added in version 3.2.
+ +
+
+

Function Documentation

+ +

◆ glfwVulkanSupported()

+ +
+
+ + + + + + + + +
int glfwVulkanSupported (void )
+
+

This function returns whether the Vulkan loader and any minimally functional ICD have been found.

+

The availability of a Vulkan loader and even an ICD does not by itself guarantee that surface creation or even instance creation is possible. For example, on Fermi systems Nvidia will install an ICD that provides no actual Vulkan support. Call glfwGetRequiredInstanceExtensions to check whether the extensions necessary for Vulkan surface creation are available and glfwGetPhysicalDevicePresentationSupport to check whether a queue family of a physical device supports image presentation.

+
Returns
GLFW_TRUE if Vulkan is minimally available, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread.
+
See also
Querying for Vulkan support
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetRequiredInstanceExtensions()

+ +
+
+ + + + + + + + +
const char** glfwGetRequiredInstanceExtensions (uint32_t * count)
+
+

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 contain 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 GLFW_API_UNAVAILABLE error. Call glfwVulkanSupported to check whether Vulkan is at least minimally 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.

+
Parameters
+ + +
[out]countWhere to store the number of extensions in the returned array. This is set to zero if an error occurred.
+
+
+
Returns
An array of ASCII encoded extension names, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
+macOS: This function currently supports either the VK_MVK_macos_surface extension from MoltenVK or VK_EXT_metal_surface extension.
+
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.
+
See also
Querying required Vulkan extensions
+
+glfwCreateWindowSurface
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetInstanceProcAddress()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWvkproc glfwGetInstanceProcAddress (VkInstance instance,
const char * procname 
)
+
+

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 GLFW_API_UNAVAILABLE error. Call glfwVulkanSupported to check whether Vulkan is at least minimally available.

+

This function is equivalent to calling vkGetInstanceProcAddr with a platform-specific query of the Vulkan loader as a fallback.

+
Parameters
+ + + +
[in]instanceThe Vulkan instance to query, or NULL to retrieve functions related to instance creation.
[in]procnameThe ASCII encoded name of the function.
+
+
+
Returns
The address of the function, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Querying Vulkan function pointers
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetPhysicalDevicePresentationSupport()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
int glfwGetPhysicalDevicePresentationSupport (VkInstance instance,
VkPhysicalDevice device,
uint32_t queuefamily 
)
+
+

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 GLFW_API_UNAVAILABLE error. Call glfwVulkanSupported to check whether Vulkan is at least minimally available and glfwGetRequiredInstanceExtensions to check what instance extensions are required.

+
Parameters
+ + + + +
[in]instanceThe instance that the physical device belongs to.
[in]deviceThe physical device that the queue family belongs to.
[in]queuefamilyThe index of the queue family to query.
+
+
+
Returns
GLFW_TRUE if the queue family supports presentation, or GLFW_FALSE otherwise.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_API_UNAVAILABLE and GLFW_PLATFORM_ERROR.
+
Remarks
macOS: This function currently always returns GLFW_TRUE, as the VK_MVK_macos_surface extension does not provide a vkGetPhysicalDevice*PresentationSupport type function.
+
Thread safety
This function may be called from any thread. For synchronization details of Vulkan objects, see the Vulkan specification.
+
See also
Querying for Vulkan presentation support
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwCreateWindowSurface()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VkResult glfwCreateWindowSurface (VkInstance instance,
GLFWwindowwindow,
const VkAllocationCallbacks * allocator,
VkSurfaceKHR * surface 
)
+
+

This function creates a Vulkan surface for the specified window.

+

If the Vulkan loader or at least one minimally functional ICD were not found, this function returns VK_ERROR_INITIALIZATION_FAILED and generates a GLFW_API_UNAVAILABLE error. Call glfwVulkanSupported to check whether Vulkan is at least minimally available.

+

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 GLFW_API_UNAVAILABLE error. Call glfwGetRequiredInstanceExtensions to check what instance extensions are required.

+

The window surface cannot be shared with another API so the window must have been created with the client api hint set to GLFW_NO_API otherwise it generates a GLFW_INVALID_VALUE error and returns VK_ERROR_NATIVE_WINDOW_IN_USE_KHR.

+

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.

+
Parameters
+ + + + + +
[in]instanceThe Vulkan instance to create the surface in.
[in]windowThe window to create the surface for.
[in]allocatorThe allocator to use, or NULL to use the default allocator.
[out]surfaceWhere to store the handle of the surface. This is set to VK_NULL_HANDLE if an error occurred.
+
+
+
Returns
VK_SUCCESS if successful, or a Vulkan error code if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_API_UNAVAILABLE, GLFW_PLATFORM_ERROR and GLFW_INVALID_VALUE
+
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 glfwVulkanSupported and glfwGetRequiredInstanceExtensions should eliminate almost all occurrences of these errors.
+
+macOS: This function currently only supports the VK_MVK_macos_surface extension from MoltenVK.
+
+macOS: This function creates and sets a CAMetalLayer instance for the window content view, which is required for MoltenVK to function.
+
Thread safety
This function may be called from any thread. For synchronization details of Vulkan objects, see the Vulkan specification.
+
See also
Creating a Vulkan window surface
+
+glfwGetRequiredInstanceExtensions
+
Since
Added in version 3.2.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/group__window.html b/external/glfw-3.3.4/docs/html/group__window.html new file mode 100644 index 0000000..bf943f9 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/group__window.html @@ -0,0 +1,3425 @@ + + + + + + + +GLFW: Window reference + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+ +
+
Window reference
+
+
+

Description

+

This is the reference documentation for window related functions and types, including creation, deletion and event polling. For more task-oriented information, see the Window guide.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define GLFW_FOCUSED   0x00020001
 Input focus window hint and attribute. More...
 
#define GLFW_ICONIFIED   0x00020002
 Window iconification window attribute. More...
 
#define GLFW_RESIZABLE   0x00020003
 Window resize-ability window hint and attribute. More...
 
#define GLFW_VISIBLE   0x00020004
 Window visibility window hint and attribute. More...
 
#define GLFW_DECORATED   0x00020005
 Window decoration window hint and attribute. More...
 
#define GLFW_AUTO_ICONIFY   0x00020006
 Window auto-iconification window hint and attribute. More...
 
#define GLFW_FLOATING   0x00020007
 Window decoration window hint and attribute. More...
 
#define GLFW_MAXIMIZED   0x00020008
 Window maximization window hint and attribute. More...
 
#define GLFW_CENTER_CURSOR   0x00020009
 Cursor centering window hint. More...
 
#define GLFW_TRANSPARENT_FRAMEBUFFER   0x0002000A
 Window framebuffer transparency hint and attribute. More...
 
#define GLFW_HOVERED   0x0002000B
 Mouse cursor hover window attribute. More...
 
#define GLFW_FOCUS_ON_SHOW   0x0002000C
 Input focus on calling show window hint and attribute. More...
 
#define GLFW_RED_BITS   0x00021001
 Framebuffer bit depth hint. More...
 
#define GLFW_GREEN_BITS   0x00021002
 Framebuffer bit depth hint. More...
 
#define GLFW_BLUE_BITS   0x00021003
 Framebuffer bit depth hint. More...
 
#define GLFW_ALPHA_BITS   0x00021004
 Framebuffer bit depth hint. More...
 
#define GLFW_DEPTH_BITS   0x00021005
 Framebuffer bit depth hint. More...
 
#define GLFW_STENCIL_BITS   0x00021006
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_RED_BITS   0x00021007
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_GREEN_BITS   0x00021008
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_BLUE_BITS   0x00021009
 Framebuffer bit depth hint. More...
 
#define GLFW_ACCUM_ALPHA_BITS   0x0002100A
 Framebuffer bit depth hint. More...
 
#define GLFW_AUX_BUFFERS   0x0002100B
 Framebuffer auxiliary buffer hint. More...
 
#define GLFW_STEREO   0x0002100C
 OpenGL stereoscopic rendering hint. More...
 
#define GLFW_SAMPLES   0x0002100D
 Framebuffer MSAA samples hint. More...
 
#define GLFW_SRGB_CAPABLE   0x0002100E
 Framebuffer sRGB hint. More...
 
#define GLFW_REFRESH_RATE   0x0002100F
 Monitor refresh rate hint. More...
 
#define GLFW_DOUBLEBUFFER   0x00021010
 Framebuffer double buffering hint. More...
 
#define GLFW_CLIENT_API   0x00022001
 Context client API hint and attribute. More...
 
#define GLFW_CONTEXT_VERSION_MAJOR   0x00022002
 Context client API major version hint and attribute. More...
 
#define GLFW_CONTEXT_VERSION_MINOR   0x00022003
 Context client API minor version hint and attribute. More...
 
#define GLFW_CONTEXT_REVISION   0x00022004
 Context client API revision number hint and attribute. More...
 
#define GLFW_CONTEXT_ROBUSTNESS   0x00022005
 Context robustness hint and attribute. More...
 
#define GLFW_OPENGL_FORWARD_COMPAT   0x00022006
 OpenGL forward-compatibility hint and attribute. More...
 
#define GLFW_OPENGL_DEBUG_CONTEXT   0x00022007
 Debug mode context hint and attribute. More...
 
#define GLFW_OPENGL_PROFILE   0x00022008
 OpenGL profile hint and attribute. More...
 
#define GLFW_CONTEXT_RELEASE_BEHAVIOR   0x00022009
 Context flush-on-release hint and attribute. More...
 
#define GLFW_CONTEXT_NO_ERROR   0x0002200A
 Context error suppression hint and attribute. More...
 
#define GLFW_CONTEXT_CREATION_API   0x0002200B
 Context creation API hint and attribute. More...
 
#define GLFW_SCALE_TO_MONITOR   0x0002200C
 Window content area scaling window window hint. More...
 
#define GLFW_COCOA_RETINA_FRAMEBUFFER   0x00023001
 macOS specific window hint. More...
 
#define GLFW_COCOA_FRAME_NAME   0x00023002
 macOS specific window hint. More...
 
#define GLFW_COCOA_GRAPHICS_SWITCHING   0x00023003
 macOS specific window hint. More...
 
#define GLFW_X11_CLASS_NAME   0x00024001
 X11 specific window hint. More...
 
#define GLFW_X11_INSTANCE_NAME   0x00024002
 X11 specific window hint. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Typedefs

typedef struct GLFWwindow GLFWwindow
 Opaque window object. More...
 
typedef void(* GLFWwindowposfun) (GLFWwindow *, int, int)
 The function pointer type for window position callbacks. More...
 
typedef void(* GLFWwindowsizefun) (GLFWwindow *, int, int)
 The function pointer type for window size callbacks. More...
 
typedef void(* GLFWwindowclosefun) (GLFWwindow *)
 The function pointer type for window close callbacks. More...
 
typedef void(* GLFWwindowrefreshfun) (GLFWwindow *)
 The function pointer type for window content refresh callbacks. More...
 
typedef void(* GLFWwindowfocusfun) (GLFWwindow *, int)
 The function pointer type for window focus callbacks. More...
 
typedef void(* GLFWwindowiconifyfun) (GLFWwindow *, int)
 The function pointer type for window iconify callbacks. More...
 
typedef void(* GLFWwindowmaximizefun) (GLFWwindow *, int)
 The function pointer type for window maximize callbacks. More...
 
typedef void(* GLFWframebuffersizefun) (GLFWwindow *, int, int)
 The function pointer type for framebuffer size callbacks. More...
 
typedef void(* GLFWwindowcontentscalefun) (GLFWwindow *, float, float)
 The function pointer type for window content scale callbacks. More...
 
typedef struct GLFWimage GLFWimage
 Image data. More...
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

void glfwDefaultWindowHints (void)
 Resets all window hints to their default values. More...
 
void glfwWindowHint (int hint, int value)
 Sets the specified window hint to the desired value. More...
 
void glfwWindowHintString (int hint, const char *value)
 Sets the specified window hint to the desired value. More...
 
GLFWwindowglfwCreateWindow (int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
 Creates a window and its associated context. More...
 
void glfwDestroyWindow (GLFWwindow *window)
 Destroys the specified window and its context. More...
 
int glfwWindowShouldClose (GLFWwindow *window)
 Checks the close flag of the specified window. More...
 
void glfwSetWindowShouldClose (GLFWwindow *window, int value)
 Sets the close flag of the specified window. More...
 
void glfwSetWindowTitle (GLFWwindow *window, const char *title)
 Sets the title of the specified window. More...
 
void glfwSetWindowIcon (GLFWwindow *window, int count, const GLFWimage *images)
 Sets the icon for the specified window. More...
 
void glfwGetWindowPos (GLFWwindow *window, int *xpos, int *ypos)
 Retrieves the position of the content area of the specified window. More...
 
void glfwSetWindowPos (GLFWwindow *window, int xpos, int ypos)
 Sets the position of the content area of the specified window. More...
 
void glfwGetWindowSize (GLFWwindow *window, int *width, int *height)
 Retrieves the size of the content area of the specified window. More...
 
void glfwSetWindowSizeLimits (GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight)
 Sets the size limits of the specified window. More...
 
void glfwSetWindowAspectRatio (GLFWwindow *window, int numer, int denom)
 Sets the aspect ratio of the specified window. More...
 
void glfwSetWindowSize (GLFWwindow *window, int width, int height)
 Sets the size of the content area of the specified window. More...
 
void glfwGetFramebufferSize (GLFWwindow *window, int *width, int *height)
 Retrieves the size of the framebuffer of the specified window. More...
 
void glfwGetWindowFrameSize (GLFWwindow *window, int *left, int *top, int *right, int *bottom)
 Retrieves the size of the frame of the window. More...
 
void glfwGetWindowContentScale (GLFWwindow *window, float *xscale, float *yscale)
 Retrieves the content scale for the specified window. More...
 
float glfwGetWindowOpacity (GLFWwindow *window)
 Returns the opacity of the whole window. More...
 
void glfwSetWindowOpacity (GLFWwindow *window, float opacity)
 Sets the opacity of the whole window. More...
 
void glfwIconifyWindow (GLFWwindow *window)
 Iconifies the specified window. More...
 
void glfwRestoreWindow (GLFWwindow *window)
 Restores the specified window. More...
 
void glfwMaximizeWindow (GLFWwindow *window)
 Maximizes the specified window. More...
 
void glfwShowWindow (GLFWwindow *window)
 Makes the specified window visible. More...
 
void glfwHideWindow (GLFWwindow *window)
 Hides the specified window. More...
 
void glfwFocusWindow (GLFWwindow *window)
 Brings the specified window to front and sets input focus. More...
 
void glfwRequestWindowAttention (GLFWwindow *window)
 Requests user attention to the specified window. More...
 
GLFWmonitorglfwGetWindowMonitor (GLFWwindow *window)
 Returns the monitor that the window uses for full screen mode. More...
 
void glfwSetWindowMonitor (GLFWwindow *window, GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate)
 Sets the mode, monitor, video mode and placement of a window. More...
 
int glfwGetWindowAttrib (GLFWwindow *window, int attrib)
 Returns an attribute of the specified window. More...
 
void glfwSetWindowAttrib (GLFWwindow *window, int attrib, int value)
 Sets an attribute of the specified window. More...
 
void glfwSetWindowUserPointer (GLFWwindow *window, void *pointer)
 Sets the user pointer of the specified window. More...
 
void * glfwGetWindowUserPointer (GLFWwindow *window)
 Returns the user pointer of the specified window. More...
 
GLFWwindowposfun glfwSetWindowPosCallback (GLFWwindow *window, GLFWwindowposfun callback)
 Sets the position callback for the specified window. More...
 
GLFWwindowsizefun glfwSetWindowSizeCallback (GLFWwindow *window, GLFWwindowsizefun callback)
 Sets the size callback for the specified window. More...
 
GLFWwindowclosefun glfwSetWindowCloseCallback (GLFWwindow *window, GLFWwindowclosefun callback)
 Sets the close callback for the specified window. More...
 
GLFWwindowrefreshfun glfwSetWindowRefreshCallback (GLFWwindow *window, GLFWwindowrefreshfun callback)
 Sets the refresh callback for the specified window. More...
 
GLFWwindowfocusfun glfwSetWindowFocusCallback (GLFWwindow *window, GLFWwindowfocusfun callback)
 Sets the focus callback for the specified window. More...
 
GLFWwindowiconifyfun glfwSetWindowIconifyCallback (GLFWwindow *window, GLFWwindowiconifyfun callback)
 Sets the iconify callback for the specified window. More...
 
GLFWwindowmaximizefun glfwSetWindowMaximizeCallback (GLFWwindow *window, GLFWwindowmaximizefun callback)
 Sets the maximize callback for the specified window. More...
 
GLFWframebuffersizefun glfwSetFramebufferSizeCallback (GLFWwindow *window, GLFWframebuffersizefun callback)
 Sets the framebuffer resize callback for the specified window. More...
 
GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback (GLFWwindow *window, GLFWwindowcontentscalefun callback)
 Sets the window content scale callback for the specified window. More...
 
void glfwPollEvents (void)
 Processes all pending events. More...
 
void glfwWaitEvents (void)
 Waits until events are queued and processes them. More...
 
void glfwWaitEventsTimeout (double timeout)
 Waits with timeout until events are queued and processes them. More...
 
void glfwPostEmptyEvent (void)
 Posts an empty event to the event queue. More...
 
void glfwSwapBuffers (GLFWwindow *window)
 Swaps the front and back buffers of the specified window. More...
 
+

Macro Definition Documentation

+ +

◆ GLFW_FOCUSED

+ +
+
+ + + + +
#define GLFW_FOCUSED   0x00020001
+
+

Input focus window hint or window attribute.

+ +
+
+ +

◆ GLFW_ICONIFIED

+ +
+
+ + + + +
#define GLFW_ICONIFIED   0x00020002
+
+

Window iconification window attribute.

+ +
+
+ +

◆ GLFW_RESIZABLE

+ +
+
+ + + + +
#define GLFW_RESIZABLE   0x00020003
+
+

Window resize-ability window hint and window attribute.

+ +
+
+ +

◆ GLFW_VISIBLE

+ +
+
+ + + + +
#define GLFW_VISIBLE   0x00020004
+
+

Window visibility window hint and window attribute.

+ +
+
+ +

◆ GLFW_DECORATED

+ +
+
+ + + + +
#define GLFW_DECORATED   0x00020005
+
+

Window decoration window hint and window attribute.

+ +
+
+ +

◆ GLFW_AUTO_ICONIFY

+ +
+
+ + + + +
#define GLFW_AUTO_ICONIFY   0x00020006
+
+

Window auto-iconification window hint and window attribute.

+ +
+
+ +

◆ GLFW_FLOATING

+ +
+
+ + + + +
#define GLFW_FLOATING   0x00020007
+
+

Window decoration window hint and window attribute.

+ +
+
+ +

◆ GLFW_MAXIMIZED

+ +
+
+ + + + +
#define GLFW_MAXIMIZED   0x00020008
+
+

Window maximization window hint and window attribute.

+ +
+
+ +

◆ GLFW_CENTER_CURSOR

+ +
+
+ + + + +
#define GLFW_CENTER_CURSOR   0x00020009
+
+

Cursor centering window hint.

+ +
+
+ +

◆ GLFW_TRANSPARENT_FRAMEBUFFER

+ +
+
+ + + + +
#define GLFW_TRANSPARENT_FRAMEBUFFER   0x0002000A
+
+

Window framebuffer transparency window hint and window attribute.

+ +
+
+ +

◆ GLFW_HOVERED

+ +
+
+ + + + +
#define GLFW_HOVERED   0x0002000B
+
+

Mouse cursor hover window attribute.

+ +
+
+ +

◆ GLFW_FOCUS_ON_SHOW

+ +
+
+ + + + +
#define GLFW_FOCUS_ON_SHOW   0x0002000C
+
+

Input focus window hint or window attribute.

+ +
+
+ +

◆ GLFW_RED_BITS

+ +
+
+ + + + +
#define GLFW_RED_BITS   0x00021001
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_GREEN_BITS

+ +
+
+ + + + +
#define GLFW_GREEN_BITS   0x00021002
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_BLUE_BITS

+ +
+
+ + + + +
#define GLFW_BLUE_BITS   0x00021003
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_ALPHA_BITS

+ +
+
+ + + + +
#define GLFW_ALPHA_BITS   0x00021004
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_DEPTH_BITS

+ +
+
+ + + + +
#define GLFW_DEPTH_BITS   0x00021005
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_STENCIL_BITS

+ +
+
+ + + + +
#define GLFW_STENCIL_BITS   0x00021006
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_ACCUM_RED_BITS

+ +
+
+ + + + +
#define GLFW_ACCUM_RED_BITS   0x00021007
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_ACCUM_GREEN_BITS

+ +
+
+ + + + +
#define GLFW_ACCUM_GREEN_BITS   0x00021008
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_ACCUM_BLUE_BITS

+ +
+
+ + + + +
#define GLFW_ACCUM_BLUE_BITS   0x00021009
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_ACCUM_ALPHA_BITS

+ +
+
+ + + + +
#define GLFW_ACCUM_ALPHA_BITS   0x0002100A
+
+

Framebuffer bit depth hint.

+ +
+
+ +

◆ GLFW_AUX_BUFFERS

+ +
+
+ + + + +
#define GLFW_AUX_BUFFERS   0x0002100B
+
+

Framebuffer auxiliary buffer hint.

+ +
+
+ +

◆ GLFW_STEREO

+ +
+
+ + + + +
#define GLFW_STEREO   0x0002100C
+
+

OpenGL stereoscopic rendering hint.

+ +
+
+ +

◆ GLFW_SAMPLES

+ +
+
+ + + + +
#define GLFW_SAMPLES   0x0002100D
+
+

Framebuffer MSAA samples hint.

+ +
+
+ +

◆ GLFW_SRGB_CAPABLE

+ +
+
+ + + + +
#define GLFW_SRGB_CAPABLE   0x0002100E
+
+

Framebuffer sRGB hint.

+ +
+
+ +

◆ GLFW_REFRESH_RATE

+ +
+
+ + + + +
#define GLFW_REFRESH_RATE   0x0002100F
+
+

Monitor refresh rate hint.

+ +
+
+ +

◆ GLFW_DOUBLEBUFFER

+ +
+
+ + + + +
#define GLFW_DOUBLEBUFFER   0x00021010
+
+

Framebuffer double buffering hint.

+ +
+
+ +

◆ GLFW_CLIENT_API

+ +
+
+ + + + +
#define GLFW_CLIENT_API   0x00022001
+
+

Context client API hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_VERSION_MAJOR

+ +
+
+ + + + +
#define GLFW_CONTEXT_VERSION_MAJOR   0x00022002
+
+

Context client API major version hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_VERSION_MINOR

+ +
+
+ + + + +
#define GLFW_CONTEXT_VERSION_MINOR   0x00022003
+
+

Context client API minor version hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_REVISION

+ +
+
+ + + + +
#define GLFW_CONTEXT_REVISION   0x00022004
+
+

Context client API revision number attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_ROBUSTNESS

+ +
+
+ + + + +
#define GLFW_CONTEXT_ROBUSTNESS   0x00022005
+
+

Context client API revision number hint and attribute.

+ +
+
+ +

◆ GLFW_OPENGL_FORWARD_COMPAT

+ +
+
+ + + + +
#define GLFW_OPENGL_FORWARD_COMPAT   0x00022006
+
+

OpenGL forward-compatibility hint and attribute.

+ +
+
+ +

◆ GLFW_OPENGL_DEBUG_CONTEXT

+ +
+
+ + + + +
#define GLFW_OPENGL_DEBUG_CONTEXT   0x00022007
+
+

Debug mode context hint and attribute.

+ +
+
+ +

◆ GLFW_OPENGL_PROFILE

+ +
+
+ + + + +
#define GLFW_OPENGL_PROFILE   0x00022008
+
+

OpenGL profile hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_RELEASE_BEHAVIOR

+ +
+
+ + + + +
#define GLFW_CONTEXT_RELEASE_BEHAVIOR   0x00022009
+
+

Context flush-on-release hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_NO_ERROR

+ +
+
+ + + + +
#define GLFW_CONTEXT_NO_ERROR   0x0002200A
+
+

Context error suppression hint and attribute.

+ +
+
+ +

◆ GLFW_CONTEXT_CREATION_API

+ +
+
+ + + + +
#define GLFW_CONTEXT_CREATION_API   0x0002200B
+
+

Context creation API hint and attribute.

+ +
+
+ +

◆ GLFW_SCALE_TO_MONITOR

+ +
+
+ + + + +
#define GLFW_SCALE_TO_MONITOR   0x0002200C
+
+ +
+
+ +

◆ GLFW_COCOA_RETINA_FRAMEBUFFER

+ +
+
+ + + + +
#define GLFW_COCOA_RETINA_FRAMEBUFFER   0x00023001
+
+ +
+
+ +

◆ GLFW_COCOA_FRAME_NAME

+ +
+
+ + + + +
#define GLFW_COCOA_FRAME_NAME   0x00023002
+
+ +
+
+ +

◆ GLFW_COCOA_GRAPHICS_SWITCHING

+ +
+
+ + + + +
#define GLFW_COCOA_GRAPHICS_SWITCHING   0x00023003
+
+ +
+
+ +

◆ GLFW_X11_CLASS_NAME

+ +
+
+ + + + +
#define GLFW_X11_CLASS_NAME   0x00024001
+
+ +
+
+ +

◆ GLFW_X11_INSTANCE_NAME

+ +
+
+ + + + +
#define GLFW_X11_INSTANCE_NAME   0x00024002
+
+ +
+
+

Typedef Documentation

+ +

◆ GLFWwindow

+ +
+
+ + + + +
typedef struct GLFWwindow GLFWwindow
+
+

Opaque window object.

+
See also
Window objects
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWwindowposfun

+ +
+
+ + + + +
typedef void(* GLFWwindowposfun) (GLFWwindow *, int, int)
+
+

This is the function pointer type for window position callbacks. A window position callback function has the following signature:

void callback_name(GLFWwindow* window, int xpos, int ypos)
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+
Parameters
+ + + + +
[in]windowThe window that was moved.
[in]xposThe new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.
[in]yposThe new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.
+
+
+
See also
Window position
+
+glfwSetWindowPosCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWwindowsizefun

+ +
+
+ + + + +
typedef void(* GLFWwindowsizefun) (GLFWwindow *, int, int)
+
+

This is the function pointer type for window size callbacks. A window size callback function has the following signature:

void callback_name(GLFWwindow* window, int width, int height)
+
Parameters
+ + + + +
[in]windowThe window that was resized.
[in]widthThe new width, in screen coordinates, of the window.
[in]heightThe new height, in screen coordinates, of the window.
+
+
+
See also
Window size
+
+glfwSetWindowSizeCallback
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ GLFWwindowclosefun

+ +
+
+ + + + +
typedef void(* GLFWwindowclosefun) (GLFWwindow *)
+
+

This is the function pointer type for window close callbacks. A window close callback function has the following signature:

void function_name(GLFWwindow* window)
+
Parameters
+ + +
[in]windowThe window that the user attempted to close.
+
+
+
See also
Window closing and close flag
+
+glfwSetWindowCloseCallback
+
Since
Added in version 2.5. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ GLFWwindowrefreshfun

+ +
+
+ + + + +
typedef void(* GLFWwindowrefreshfun) (GLFWwindow *)
+
+

This is the function pointer type for window content refresh callbacks. A window content refresh callback function has the following signature:

void function_name(GLFWwindow* window);
+
Parameters
+ + +
[in]windowThe window whose content needs to be refreshed.
+
+
+
See also
Window damage and refresh
+
+glfwSetWindowRefreshCallback
+
Since
Added in version 2.5. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ GLFWwindowfocusfun

+ +
+
+ + + + +
typedef void(* GLFWwindowfocusfun) (GLFWwindow *, int)
+
+

This is the function pointer type for window focus callbacks. A window focus callback function has the following signature:

void function_name(GLFWwindow* window, int focused)
+
Parameters
+ + + +
[in]windowThe window that gained or lost input focus.
[in]focusedGLFW_TRUE if the window was given input focus, or GLFW_FALSE if it lost it.
+
+
+
See also
Window input focus
+
+glfwSetWindowFocusCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWwindowiconifyfun

+ +
+
+ + + + +
typedef void(* GLFWwindowiconifyfun) (GLFWwindow *, int)
+
+

This is the function pointer type for window iconify callbacks. A window iconify callback function has the following signature:

void function_name(GLFWwindow* window, int iconified)
+
Parameters
+ + + +
[in]windowThe window that was iconified or restored.
[in]iconifiedGLFW_TRUE if the window was iconified, or GLFW_FALSE if it was restored.
+
+
+
See also
Window iconification
+
+glfwSetWindowIconifyCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWwindowmaximizefun

+ +
+
+ + + + +
typedef void(* GLFWwindowmaximizefun) (GLFWwindow *, int)
+
+

This is the function pointer type for window maximize callbacks. A window maximize callback function has the following signature:

void function_name(GLFWwindow* window, int maximized)
+
Parameters
+ + + +
[in]windowThe window that was maximized or restored.
[in]maximizedGLFW_TRUE if the window was maximized, or GLFW_FALSE if it was restored.
+
+
+
See also
Window maximization
+
+glfwSetWindowMaximizeCallback
+
Since
Added in version 3.3.
+ +
+
+ +

◆ GLFWframebuffersizefun

+ +
+
+ + + + +
typedef void(* GLFWframebuffersizefun) (GLFWwindow *, int, int)
+
+

This is the function pointer type for framebuffer size callbacks. A framebuffer size callback function has the following signature:

void function_name(GLFWwindow* window, int width, int height)
+
Parameters
+ + + + +
[in]windowThe window whose framebuffer was resized.
[in]widthThe new width, in pixels, of the framebuffer.
[in]heightThe new height, in pixels, of the framebuffer.
+
+
+
See also
Framebuffer size
+
+glfwSetFramebufferSizeCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ GLFWwindowcontentscalefun

+ +
+
+ + + + +
typedef void(* GLFWwindowcontentscalefun) (GLFWwindow *, float, float)
+
+

This is the function pointer type for window content scale callbacks. A window content scale callback function has the following signature:

void function_name(GLFWwindow* window, float xscale, float yscale)
+
Parameters
+ + + + +
[in]windowThe window whose content scale changed.
[in]xscaleThe new x-axis content scale of the window.
[in]yscaleThe new y-axis content scale of the window.
+
+
+
See also
Window content scale
+
+glfwSetWindowContentScaleCallback
+
Since
Added in version 3.3.
+ +
+
+ +

◆ GLFWimage

+ +
+
+ + + + +
typedef struct GLFWimage GLFWimage
+
+

This describes a single 2D image. See the documentation for each related function what the expected pixel format is.

+
See also
Custom cursor creation
+
+Window icon
+
Since
Added in version 2.1. GLFW 3: Removed format and bytes-per-pixel members.
+ +
+
+

Function Documentation

+ +

◆ glfwDefaultWindowHints()

+ +
+
+ + + + + + + + +
void glfwDefaultWindowHints (void )
+
+

This function resets all window hints to their default values.

+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window creation hints
+
+glfwWindowHint
+
+glfwWindowHintString
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwWindowHint()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwWindowHint (int hint,
int value 
)
+
+

This function sets hints for the next call to glfwCreateWindow. The hints, once set, retain their values until changed by a call to this function or glfwDefaultWindowHints, or until the library is terminated.

+

Only integer value hints can be set with this function. String value hints are set with glfwWindowHintString.

+

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 glfwCreateWindow.

+

Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.

+
Parameters
+ + + +
[in]hintThe window hint to set.
[in]valueThe new value of the window hint.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window creation hints
+
+glfwWindowHintString
+
+glfwDefaultWindowHints
+
Since
Added in version 3.0. Replaces glfwOpenWindowHint.
+ +
+
+ +

◆ glfwWindowHintString()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwWindowHintString (int hint,
const char * value 
)
+
+

This function sets hints for the next call to glfwCreateWindow. The hints, once set, retain their values until changed by a call to this function or glfwDefaultWindowHints, or until the library is terminated.

+

Only string type hints can be set with this function. Integer value hints are set with glfwWindowHint.

+

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 glfwCreateWindow.

+

Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.

+
Parameters
+ + + +
[in]hintThe window hint to set.
[in]valueThe new value of the window hint.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_INVALID_ENUM.
+
Pointer lifetime
The specified string is copied before this function returns.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window creation hints
+
+glfwWindowHint
+
+glfwDefaultWindowHints
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwCreateWindow()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GLFWwindow* glfwCreateWindow (int width,
int height,
const char * title,
GLFWmonitormonitor,
GLFWwindowshare 
)
+
+

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.

+

Successful creation does not change which context is current. Before you can use the newly created context, you need to make it current. For information about the share parameter, see Context object sharing.

+

The created window, framebuffer and context may differ from what you requested, as not all parameters and hints are hard constraints. 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 glfwGetWindowAttrib, glfwGetWindowSize and 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 Retrieving 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 "Windowed full screen" windows.

+

Once you have created the window, you can switch it between windowed and full screen mode with glfwSetWindowMonitor. This will not affect its OpenGL or OpenGL ES context.

+

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 window hint, set its position and then show 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 after creation.

+

The swap interval is not set during window creation and the initial value may vary depending on driver settings and defaults.

+
Parameters
+ + + + + + +
[in]widthThe desired width, in screen coordinates, of the window. This must be greater than zero.
[in]heightThe desired height, in screen coordinates, of the window. This must be greater than zero.
[in]titleThe initial, UTF-8 encoded window title.
[in]monitorThe monitor to use for full screen mode, or NULL for windowed mode.
[in]shareThe window whose context to share resources with, or NULL to not share resources.
+
+
+
Returns
The handle of the created window, or NULL if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM, GLFW_INVALID_VALUE, GLFW_API_UNAVAILABLE, GLFW_VERSION_UNAVAILABLE, GLFW_FORMAT_UNAVAILABLE and GLFW_PLATFORM_ERROR.
+
Remarks
Windows: Window creation will fail if the Microsoft GDI software OpenGL implementation is the only one available.
+
+Windows: If the executable has an icon resource named GLFW_ICON, it will be set as the initial icon for the window. If no such icon is present, the IDI_APPLICATION icon will be used instead. To set a different icon, see glfwSetWindowIcon.
+
+Windows: The context to share resources with must not be current on any other thread.
+
+macOS: The OS only supports forward-compatible core profile contexts for OpenGL versions 3.2 and later. Before creating an OpenGL context of version 3.2 or later you must set the GLFW_OPENGL_FORWARD_COMPAT and GLFW_OPENGL_PROFILE hints accordingly. OpenGL 3.0 and 3.1 contexts are not supported at all on macOS.
+
+macOS: 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 in the Mac Developer Library.
+
+macOS: The first time a window is created the menu bar is created. If GLFW finds a MainMenu.nib it is loaded and assumed to contain a menu bar. Otherwise a minimal menu bar is created manually with common commands like Hide, Quit and About. The About entry opens a minimal about dialog with information from the application's bundle. Menu bar creation can be disabled entirely with the GLFW_COCOA_MENUBAR init hint.
+
+macOS: On OS X 10.10 and later the window frame will not be rendered at full resolution on Retina displays unless the GLFW_COCOA_RETINA_FRAMEBUFFER hint is GLFW_TRUE and the NSHighResolutionCapable key is enabled in the application bundle's Info.plist. For more information, see High Resolution Guidelines for OS X 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.
+
+macOS: When activating frame autosaving with GLFW_COCOA_FRAME_NAME, the specified window size and position may be overridden by previously saved values.
+
+X11: Some window managers will not respect the placement of initially hidden windows.
+
+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.
+
+X11: The class part of the WM_CLASS window property will by default be set to the window title passed to this function. The instance part will use the contents of the RESOURCE_NAME environment variable, if present and not empty, or fall back to the window title. Set the GLFW_X11_CLASS_NAME and GLFW_X11_INSTANCE_NAME window hints to override this.
+
+Wayland: Compositors should implement the xdg-decoration protocol for GLFW to decorate the window properly. If this protocol isn't supported, or if the compositor prefers client-side decorations, a very simple fallback frame will be drawn using the wp_viewporter protocol. A compositor can still emit close, maximize or fullscreen events, using for instance a keybind mechanism. If neither of these protocols is supported, the window won't be decorated.
+
+Wayland: A full screen window will not attempt to change the mode, no matter what the requested size or refresh rate.
+
+Wayland: Screensaver inhibition requires the idle-inhibit protocol to be implemented in the user's compositor.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window creation
+
+glfwDestroyWindow
+
Since
Added in version 3.0. Replaces glfwOpenWindow.
+ +
+
+ +

◆ glfwDestroyWindow()

+ +
+
+ + + + + + + + +
void glfwDestroyWindow (GLFWwindowwindow)
+
+

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.

+
Parameters
+ + +
[in]windowThe window to destroy.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Window creation
+
+glfwCreateWindow
+
Since
Added in version 3.0. Replaces glfwCloseWindow.
+ +
+
+ +

◆ glfwWindowShouldClose()

+ +
+
+ + + + + + + + +
int glfwWindowShouldClose (GLFWwindowwindow)
+
+

This function returns the value of the close flag of the specified window.

+
Parameters
+ + +
[in]windowThe window to query.
+
+
+
Returns
The value of the close flag.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
Window closing and close flag
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowShouldClose()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetWindowShouldClose (GLFWwindowwindow,
int value 
)
+
+

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.

+
Parameters
+ + + +
[in]windowThe window whose flag to change.
[in]valueThe new value.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
Window closing and close flag
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowTitle()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetWindowTitle (GLFWwindowwindow,
const char * title 
)
+
+

This function sets the window title, encoded as UTF-8, of the specified window.

+
Parameters
+ + + +
[in]windowThe window whose title to change.
[in]titleThe UTF-8 encoded window title.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
macOS: 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.
+
See also
Window title
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwSetWindowIcon()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowIcon (GLFWwindowwindow,
int count,
const GLFWimageimages 
)
+
+

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 pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.

+

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.

+
Parameters
+ + + + +
[in]windowThe window whose icon to set.
[in]countThe number of images in the specified array, or zero to revert to the default window icon.
[in]imagesThe images to create the icon from. This is ignored if count is zero.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Pointer lifetime
The specified image data is copied before this function returns.
+
Remarks
macOS: The GLFW window has no icon, as it is not a document window, so this function does nothing. The dock icon will be the same as the application bundle's icon. For more information on bundles, see the Bundle Programming Guide in the Mac Developer Library.
+
+Wayland: There is no existing protocol to change an icon, the window will thus inherit the one defined in the application's desktop file. This function always emits GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window icon
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetWindowPos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetWindowPos (GLFWwindowwindow,
int * xpos,
int * ypos 
)
+
+

This function retrieves the position, in screen coordinates, of the upper-left corner of the content 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.

+
Parameters
+ + + + +
[in]windowThe window to query.
[out]xposWhere to store the x-coordinate of the upper-left corner of the content area, or NULL.
[out]yposWhere to store the y-coordinate of the upper-left corner of the content area, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: There is no way for an application to retrieve the global position of its windows, this function will always emit GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window position
+
+glfwSetWindowPos
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowPos()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowPos (GLFWwindowwindow,
int xpos,
int ypos 
)
+
+

This function sets the position, in screen coordinates, of the upper-left corner of the content 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.

+
Parameters
+ + + + +
[in]windowThe window to query.
[in]xposThe x-coordinate of the upper-left corner of the content area.
[in]yposThe y-coordinate of the upper-left corner of the content area.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: There is no way for an application to set the global position of its windows, this function will always emit GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window position
+
+glfwGetWindowPos
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwGetWindowSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetWindowSize (GLFWwindowwindow,
int * width,
int * height 
)
+
+

This function retrieves the size, in screen coordinates, of the content area of the specified window. If you wish to retrieve the size of the framebuffer of the window in pixels, see 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.

+
Parameters
+ + + + +
[in]windowThe window whose size to retrieve.
[out]widthWhere to store the width, in screen coordinates, of the content area, or NULL.
[out]heightWhere to store the height, in screen coordinates, of the content area, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size
+
+glfwSetWindowSize
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwSetWindowSizeLimits()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowSizeLimits (GLFWwindowwindow,
int minwidth,
int minheight,
int maxwidth,
int maxheight 
)
+
+

This function sets the size limits of the content area of the specified window. If the window is full screen, the size limits only take effect 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.

+

The maximum dimensions must be greater than or equal to the minimum dimensions and all must be greater than or equal to zero.

+
Parameters
+ + + + + + +
[in]windowThe window to set limits for.
[in]minwidthThe minimum width, in screen coordinates, of the content area, or GLFW_DONT_CARE.
[in]minheightThe minimum height, in screen coordinates, of the content area, or GLFW_DONT_CARE.
[in]maxwidthThe maximum width, in screen coordinates, of the content area, or GLFW_DONT_CARE.
[in]maxheightThe maximum height, in screen coordinates, of the content area, or GLFW_DONT_CARE.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
+
Remarks
If you set size limits and an aspect ratio that conflict, the results are undefined.
+
+Wayland: The size limits will not be applied until the window is actually resized, either by the user or by the compositor.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size limits
+
+glfwSetWindowAspectRatio
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwSetWindowAspectRatio()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowAspectRatio (GLFWwindowwindow,
int numer,
int denom 
)
+
+

This function sets the required aspect ratio of the content 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.

+
Parameters
+ + + + +
[in]windowThe window to set limits for.
[in]numerThe numerator of the desired aspect ratio, or GLFW_DONT_CARE.
[in]denomThe denominator of the desired aspect ratio, or GLFW_DONT_CARE.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
+
Remarks
If you set size limits and an aspect ratio that conflict, the results are undefined.
+
+Wayland: The aspect ratio will not be applied until the window is actually resized, either by the user or by the compositor.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size limits
+
+glfwSetWindowSizeLimits
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwSetWindowSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowSize (GLFWwindowwindow,
int width,
int height 
)
+
+

This function sets the size, in screen coordinates, of the content 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 glfwSetWindowMonitor.

+

The window manager may put limits on what sizes are allowed. GLFW cannot and should not override these limits.

+
Parameters
+ + + + +
[in]windowThe window to resize.
[in]widthThe desired width, in screen coordinates, of the window content area.
[in]heightThe desired height, in screen coordinates, of the window content area.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: A full screen window will not attempt to change the mode, no matter what the requested size.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size
+
+glfwGetWindowSize
+
+glfwSetWindowMonitor
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwGetFramebufferSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetFramebufferSize (GLFWwindowwindow,
int * width,
int * height 
)
+
+

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 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.

+
Parameters
+ + + + +
[in]windowThe window whose framebuffer to query.
[out]widthWhere to store the width, in pixels, of the framebuffer, or NULL.
[out]heightWhere to store the height, in pixels, of the framebuffer, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Framebuffer size
+
+glfwSetFramebufferSizeCallback
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetWindowFrameSize()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetWindowFrameSize (GLFWwindowwindow,
int * left,
int * top,
int * right,
int * bottom 
)
+
+

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 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.

+
Parameters
+ + + + + + +
[in]windowThe window whose frame size to query.
[out]leftWhere to store the size, in screen coordinates, of the left edge of the window frame, or NULL.
[out]topWhere to store the size, in screen coordinates, of the top edge of the window frame, or NULL.
[out]rightWhere to store the size, in screen coordinates, of the right edge of the window frame, or NULL.
[out]bottomWhere to store the size, in screen coordinates, of the bottom edge of the window frame, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwGetWindowContentScale()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwGetWindowContentScale (GLFWwindowwindow,
float * xscale,
float * yscale 
)
+
+

This function retrieves the content scale for the specified window. The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.

+

On systems where each monitors can have its own content scale, the window content scale will depend on which monitor the system considers the window to be on.

+
Parameters
+ + + + +
[in]windowThe window to query.
[out]xscaleWhere to store the x-axis content scale, or NULL.
[out]yscaleWhere to store the y-axis content scale, or NULL.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window content scale
+
+glfwSetWindowContentScaleCallback
+
+glfwGetMonitorContentScale
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetWindowOpacity()

+ +
+
+ + + + + + + + +
float glfwGetWindowOpacity (GLFWwindowwindow)
+
+

This function returns the opacity of the window, including any decorations.

+

The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque. If the system does not support whole window transparency, this function always returns one.

+

The initial opacity value for newly created windows is one.

+
Parameters
+ + +
[in]windowThe window to query.
+
+
+
Returns
The opacity value of the specified window.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window transparency
+
+glfwSetWindowOpacity
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetWindowOpacity()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetWindowOpacity (GLFWwindowwindow,
float opacity 
)
+
+

This function sets the opacity of the window, including any decorations.

+

The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque.

+

The initial opacity value for newly created windows is one.

+

A window created with framebuffer transparency may not use whole window transparency. The results of doing this are undefined.

+
Parameters
+ + + +
[in]windowThe window to set the opacity for.
[in]opacityThe desired opacity of the specified window.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window transparency
+
+glfwGetWindowOpacity
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwIconifyWindow()

+ +
+
+ + + + + + + + +
void glfwIconifyWindow (GLFWwindowwindow)
+
+

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.

+
Parameters
+ + +
[in]windowThe window to iconify.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: There is no concept of iconification in wl_shell, this function will emit GLFW_PLATFORM_ERROR when using this deprecated protocol.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window iconification
+
+glfwRestoreWindow
+
+glfwMaximizeWindow
+
Since
Added in version 2.1. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwRestoreWindow()

+ +
+
+ + + + + + + + +
void glfwRestoreWindow (GLFWwindowwindow)
+
+

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.

+
Parameters
+ + +
[in]windowThe window to restore.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window iconification
+
+glfwIconifyWindow
+
+glfwMaximizeWindow
+
Since
Added in version 2.1. GLFW 3: Added window handle parameter.
+ +
+
+ +

◆ glfwMaximizeWindow()

+ +
+
+ + + + + + + + +
void glfwMaximizeWindow (GLFWwindowwindow)
+
+

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.

+
Parameters
+ + +
[in]windowThe window to maximize.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread Safety
This function may only be called from the main thread.
+
See also
Window iconification
+
+glfwIconifyWindow
+
+glfwRestoreWindow
+
Since
Added in GLFW 3.2.
+ +
+
+ +

◆ glfwShowWindow()

+ +
+
+ + + + + + + + +
void glfwShowWindow (GLFWwindowwindow)
+
+

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.

+

By default, windowed mode windows are focused when shown Set the GLFW_FOCUS_ON_SHOW window hint to change this behavior for all newly created windows, or change the behavior for an existing window with glfwSetWindowAttrib.

+
Parameters
+ + +
[in]windowThe window to make visible.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window visibility
+
+glfwHideWindow
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwHideWindow()

+ +
+
+ + + + + + + + +
void glfwHideWindow (GLFWwindowwindow)
+
+

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.

+
Parameters
+ + +
[in]windowThe window to hide.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window visibility
+
+glfwShowWindow
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwFocusWindow()

+ +
+
+ + + + + + + + +
void glfwFocusWindow (GLFWwindowwindow)
+
+

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 to disable this behavior.

+

Also by default, windowed mode windows are focused when shown with glfwShowWindow. Set the GLFW_FOCUS_ON_SHOW 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.

+

For a less disruptive way of getting the user's attention, see attention requests.

+
Parameters
+ + +
[in]windowThe window to give input focus.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
Wayland: It is not possible for an application to bring its windows to front, this function will always emit GLFW_PLATFORM_ERROR.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window input focus
+
+Window attention request
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwRequestWindowAttention()

+ +
+
+ + + + + + + + +
void glfwRequestWindowAttention (GLFWwindowwindow)
+
+

This function requests user attention to the specified window. On platforms where this is not supported, attention is requested to the application as a whole.

+

Once the user has given attention, usually by focusing the window or application, the system will end the request automatically.

+
Parameters
+ + +
[in]windowThe window to request attention to.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
macOS: Attention is requested to the application as a whole, not the specific window.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window attention request
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwGetWindowMonitor()

+ +
+
+ + + + + + + + +
GLFWmonitor* glfwGetWindowMonitor (GLFWwindowwindow)
+
+

This function returns the handle of the monitor that the specified window is in full screen on.

+
Parameters
+ + +
[in]windowThe window to query.
+
+
+
Returns
The monitor, or NULL if the window is in windowed mode or an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window monitor
+
+glfwSetWindowMonitor
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowMonitor()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowMonitor (GLFWwindowwindow,
GLFWmonitormonitor,
int xpos,
int ypos,
int width,
int height,
int refreshRate 
)
+
+

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 content 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 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.

+
Parameters
+ + + + + + + + +
[in]windowThe window whose monitor, size or video mode to set.
[in]monitorThe desired monitor, or NULL to set windowed mode.
[in]xposThe desired x-coordinate of the upper-left corner of the content area.
[in]yposThe desired y-coordinate of the upper-left corner of the content area.
[in]widthThe desired with, in screen coordinates, of the content area or video mode.
[in]heightThe desired height, in screen coordinates, of the content area or video mode.
[in]refreshRateThe desired refresh rate, in Hz, of the video mode, or GLFW_DONT_CARE.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Remarks
The OpenGL or OpenGL ES context will not be destroyed or otherwise affected by any resizing or mode switching, although you may need to update your viewport if the framebuffer size has changed.
+
+Wayland: The desired window position is ignored, as there is no way for an application to set this property.
+
+Wayland: Setting the window to full screen will not attempt to change the mode, no matter what the requested size or refresh rate.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window monitor
+
+Full screen windows
+
+glfwGetWindowMonitor
+
+glfwSetWindowSize
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwGetWindowAttrib()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int glfwGetWindowAttrib (GLFWwindowwindow,
int attrib 
)
+
+

This function returns the value of an attribute of the specified window or its OpenGL or OpenGL ES context.

+
Parameters
+ + + +
[in]windowThe window to query.
[in]attribThe window attribute whose value to return.
+
+
+
Returns
The value of the attribute, or zero if an error occurred.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM and GLFW_PLATFORM_ERROR.
+
Remarks
Framebuffer related hints are not window attributes. See Framebuffer related attributes for more information.
+
+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.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window attributes
+
+glfwSetWindowAttrib
+
Since
Added in version 3.0. Replaces glfwGetWindowParam and glfwGetGLVersion.
+ +
+
+ +

◆ glfwSetWindowAttrib()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
void glfwSetWindowAttrib (GLFWwindowwindow,
int attrib,
int value 
)
+
+

This function sets the value of an attribute of the specified window.

+

The supported attributes are GLFW_DECORATED, GLFW_RESIZABLE, GLFW_FLOATING, GLFW_AUTO_ICONIFY and GLFW_FOCUS_ON_SHOW.

+

Some of these attributes are ignored for full screen windows. The new value will take effect if the window is later made windowed.

+

Some of these attributes are ignored for windowed mode windows. The new value will take effect if the window is later made full screen.

+
Parameters
+ + + + +
[in]windowThe window to set the attribute for.
[in]attribA supported window attribute.
[in]valueGLFW_TRUE or GLFW_FALSE.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_ENUM, GLFW_INVALID_VALUE and GLFW_PLATFORM_ERROR.
+
Remarks
Calling glfwGetWindowAttrib will always return the latest value, even if that value is ignored by the current mode of the window.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window attributes
+
+glfwGetWindowAttrib
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetWindowUserPointer()

+ +
+
+ + + + + + + + + + + + + + + + + + +
void glfwSetWindowUserPointer (GLFWwindowwindow,
void * pointer 
)
+
+

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.

+
Parameters
+ + + +
[in]windowThe window whose pointer to set.
[in]pointerThe new value.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
User pointer
+
+glfwGetWindowUserPointer
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwGetWindowUserPointer()

+ +
+
+ + + + + + + + +
void* glfwGetWindowUserPointer (GLFWwindowwindow)
+
+

This function returns the current value of the user-defined pointer of the specified window. The initial value is NULL.

+
Parameters
+ + +
[in]windowThe window whose pointer to return.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function may be called from any thread. Access is not synchronized.
+
See also
User pointer
+
+glfwSetWindowUserPointer
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowPosCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowposfun glfwSetWindowPosCallback (GLFWwindowwindow,
GLFWwindowposfun callback 
)
+
+

This function sets the position callback of the specified window, which is called when the window is moved. The callback is provided with the position, in screen coordinates, of the upper-left corner of the content area of the window.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int xpos, int ypos)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Remarks
Wayland: This callback will never be called, as there is no way for an application to know its global position.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window position
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowSizeCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowsizefun glfwSetWindowSizeCallback (GLFWwindowwindow,
GLFWwindowsizefun callback 
)
+
+

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 content area of the window.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int width, int height)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window size
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetWindowCloseCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowclosefun glfwSetWindowCloseCallback (GLFWwindowwindow,
GLFWwindowclosefun callback 
)
+
+

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 glfwSetWindowShouldClose.

+

The close callback is not triggered by glfwDestroyWindow.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Remarks
macOS: 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.
+
See also
Window closing and close flag
+
Since
Added in version 2.5. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetWindowRefreshCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowrefreshfun glfwSetWindowRefreshCallback (GLFWwindowwindow,
GLFWwindowrefreshfun callback 
)
+
+

This function sets the refresh callback of the specified window, which is called when the content 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, Aqua or Wayland, where the window contents are saved off-screen, this callback may be called only very infrequently or never at all.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window);
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window damage and refresh
+
Since
Added in version 2.5. GLFW 3: Added window handle parameter and return value.
+ +
+
+ +

◆ glfwSetWindowFocusCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowfocusfun glfwSetWindowFocusCallback (GLFWwindowwindow,
GLFWwindowfocusfun callback 
)
+
+

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 glfwSetKeyCallback and glfwSetMouseButtonCallback.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int focused)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window input focus
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowIconifyCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowiconifyfun glfwSetWindowIconifyCallback (GLFWwindowwindow,
GLFWwindowiconifyfun callback 
)
+
+

This function sets the iconification callback of the specified window, which is called when the window is iconified or restored.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int iconified)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Remarks
Wayland: The wl_shell protocol has no concept of iconification, this callback will never be called when using this deprecated protocol.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window iconification
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowMaximizeCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowmaximizefun glfwSetWindowMaximizeCallback (GLFWwindowwindow,
GLFWwindowmaximizefun callback 
)
+
+

This function sets the maximization callback of the specified window, which is called when the window is maximized or restored.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int maximized)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window maximization
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwSetFramebufferSizeCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWframebuffersizefun glfwSetFramebufferSizeCallback (GLFWwindowwindow,
GLFWframebuffersizefun callback 
)
+
+

This function sets the framebuffer resize callback of the specified window, which is called when the framebuffer of the specified window is resized.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, int width, int height)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Framebuffer size
+
Since
Added in version 3.0.
+ +
+
+ +

◆ glfwSetWindowContentScaleCallback()

+ +
+
+ + + + + + + + + + + + + + + + + + +
GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback (GLFWwindowwindow,
GLFWwindowcontentscalefun callback 
)
+
+

This function sets the window content scale callback of the specified window, which is called when the content scale of the specified window changes.

+
Parameters
+ + + +
[in]windowThe window whose callback to set.
[in]callbackThe new callback, or NULL to remove the currently set callback.
+
+
+
Returns
The previously set callback, or NULL if no callback was set or the library had not been initialized.
+
Callback signature
void function_name(GLFWwindow* window, float xscale, float yscale)
+
For more information about the callback parameters, see the function pointer type.
+
Errors
Possible errors include GLFW_NOT_INITIALIZED.
+
Thread safety
This function must only be called from the main thread.
+
See also
Window content scale
+
+glfwGetWindowContentScale
+
Since
Added in version 3.3.
+ +
+
+ +

◆ glfwPollEvents()

+ +
+
+ + + + + + + + +
void glfwPollEvents (void )
+
+

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 to redraw the contents of your window when necessary during such operations.

+

Do not assume that callbacks you set will only be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.

+

Event processing is not required for joystick input to work.

+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Event processing
+
+glfwWaitEvents
+
+glfwWaitEventsTimeout
+
Since
Added in version 1.0.
+ +
+
+ +

◆ glfwWaitEvents()

+ +
+
+ + + + + + + + +
void glfwWaitEvents (void )
+
+

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 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 to redraw the contents of your window when necessary during such operations.

+

Do not assume that callbacks you set will only be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.

+

Event processing is not required for joystick input to work.

+
Errors
Possible errors include GLFW_NOT_INITIALIZED and 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.
+
See also
Event processing
+
+glfwPollEvents
+
+glfwWaitEventsTimeout
+
Since
Added in version 2.5.
+ +
+
+ +

◆ glfwWaitEventsTimeout()

+ +
+
+ + + + + + + + +
void glfwWaitEventsTimeout (double timeout)
+
+

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 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 to redraw the contents of your window when necessary during such operations.

+

Do not assume that callbacks you set will only be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.

+

Event processing is not required for joystick input to work.

+
Parameters
+ + +
[in]timeoutThe maximum amount of time, in seconds, to wait.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_INVALID_VALUE and 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.
+
See also
Event processing
+
+glfwPollEvents
+
+glfwWaitEvents
+
Since
Added in version 3.2.
+ +
+
+ +

◆ glfwPostEmptyEvent()

+ +
+
+ + + + + + + + +
void glfwPostEmptyEvent (void )
+
+

This function posts an empty event from the current thread to the event queue, causing glfwWaitEvents or glfwWaitEventsTimeout to return.

+
Errors
Possible errors include GLFW_NOT_INITIALIZED and GLFW_PLATFORM_ERROR.
+
Thread safety
This function may be called from any thread.
+
See also
Event processing
+
+glfwWaitEvents
+
+glfwWaitEventsTimeout
+
Since
Added in version 3.1.
+ +
+
+ +

◆ glfwSwapBuffers()

+ +
+
+ + + + + + + + +
void glfwSwapBuffers (GLFWwindowwindow)
+
+

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 GLFW_NO_WINDOW_CONTEXT error.

+

This function does not apply to Vulkan. If you are rendering with Vulkan, see vkQueuePresentKHR instead.

+
Parameters
+ + +
[in]windowThe window whose buffers to swap.
+
+
+
Errors
Possible errors include GLFW_NOT_INITIALIZED, GLFW_NO_WINDOW_CONTEXT and GLFW_PLATFORM_ERROR.
+
Remarks
EGL: The context of the specified window must be current on the calling thread.
+
Thread safety
This function may be called from any thread.
+
See also
Buffer swapping
+
+glfwSwapInterval
+
Since
Added in version 1.0. GLFW 3: Added window handle parameter.
+ +
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/index.html b/external/glfw-3.3.4/docs/html/index.html new file mode 100644 index 0000000..50b3f3e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/index.html @@ -0,0 +1,92 @@ + + + + + + + +GLFW: Main Page + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + +
+ +
+ +
+

+Introduction

+

GLFW is a free, Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc.

+

Release notes for version 3.3 list new features, caveats and deprecations.

+

Getting started is a guide for users new to GLFW. It takes you through how to write a small but complete program.

+

There are guides for each section of the API:

+ +

Once you have written a program, see Compiling GLFW and Building applications.

+

The reference documentation provides more detailed information about specific functions.

+

Moving from GLFW 2 to 3 explains what has changed and how to update existing code to use the new API.

+

There is a section on Guarantees and limitations for pointer lifetimes, reentrancy, thread safety, event order and backward and forward compatibility.

+

The FAQ answers many common questions about the design, implementation and use of GLFW.

+

Finally, Standards conformance explains what APIs, standards and protocols GLFW uses and what happens when they are not present on a given machine.

+

This documentation was generated with Doxygen. The sources for it are available in both the source distribution and GitHub repository.

+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/input_8dox.html b/external/glfw-3.3.4/docs/html/input_8dox.html new file mode 100644 index 0000000..7352beb --- /dev/null +++ b/external/glfw-3.3.4/docs/html/input_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: input.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
input.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/input_guide.html b/external/glfw-3.3.4/docs/html/input_guide.html new file mode 100644 index 0000000..328e0de --- /dev/null +++ b/external/glfw-3.3.4/docs/html/input_guide.html @@ -0,0 +1,559 @@ + + + + + + + +GLFW: Input guide + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Input guide
+
+
+ +

This guide introduces the input related functions of GLFW. For details on a specific function in this category, see the Input reference. There are also guides for the other areas of GLFW.

+ +

GLFW provides many kinds of input. While some can only be polled, like time, or only received via callbacks, like scrolling, many provide both callbacks and polling. Callbacks are more work to use than polling but is less CPU intensive and guarantees that you do not miss state changes.

+

All input callbacks receive a window handle. By using the window user pointer, you can access non-global structures or objects from your callbacks.

+

To get a better feel for how the various events callbacks behave, run the events test program. It register every callback supported by GLFW and prints out all arguments provided for every event, along with time and sequence information.

+

+Event processing

+

GLFW needs to poll the window system for events both to provide input to the application and to prove to the window system that the application hasn't locked up. Event processing is normally done each frame after buffer swapping. Even when you have no windows, event polling needs to be done in order to receive monitor and joystick connection events.

+

There are three functions for processing pending events. glfwPollEvents, processes only those events that have already been received and then returns immediately.

+
+
void glfwPollEvents(void)
Processes all pending events.
+

This is the best choice when rendering continuously, like most games do.

+

If you only need to update the contents of the window when you receive new input, glfwWaitEvents is a better choice.

+
+
void glfwWaitEvents(void)
Waits until events are queued and processes them.
+

It puts the thread to sleep until at least one event has been received and then processes all received events. This saves a great deal of CPU cycles and is useful for, for example, editing tools.

+

If you want to wait for events but have UI elements or other tasks that need periodic updates, glfwWaitEventsTimeout lets you specify a timeout.

+
+
void glfwWaitEventsTimeout(double timeout)
Waits with timeout until events are queued and processes them.
+

It puts the thread to sleep until at least one event has been received, or until the specified number of seconds have elapsed. It then processes any received events.

+

If the main thread is sleeping in glfwWaitEvents, you can wake it from another thread by posting an empty event to the event queue with glfwPostEmptyEvent.

+
+
void glfwPostEmptyEvent(void)
Posts an empty event to the event queue.
+

Do not assume that callbacks will only be called in response to the above functions. While it is necessary to process events in one or more of the ways above, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.

+

For example, on Windows the system function that glfwSetWindowSize is implemented with will send window size events directly to the event callback that every window has and that GLFW implements for its windows. If you have set a window size callback GLFW will call it in turn with the new size before everything returns back out of the glfwSetWindowSize call.

+

+Keyboard input

+

GLFW divides keyboard input into two categories; key events and character events. Key events relate to actual physical keyboard keys, whereas character events relate to the Unicode code points generated by pressing some of them.

+

Keys and characters do not map 1:1. A single key press may produce several characters, and a single character may require several keys to produce. This may not be the case on your machine, but your users are likely not all using the same keyboard layout, input method or even operating system as you.

+

+Key input

+

If you wish to be notified when a physical key is pressed or released or when it repeats, set a key callback.

+
glfwSetKeyCallback(window, key_callback);
+
GLFWkeyfun glfwSetKeyCallback(GLFWwindow *window, GLFWkeyfun callback)
Sets the key callback.
+

The callback function receives the keyboard key, platform-specific scancode, key action and modifier bits.

+
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
+
{
+
if (key == GLFW_KEY_E && action == GLFW_PRESS)
+
activate_airship();
+
}
+
#define GLFW_PRESS
The key or mouse button was pressed.
Definition: glfw3.h:335
+
#define GLFW_KEY_E
Definition: glfw3.h:413
+
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:1182
+

The action is one of GLFW_PRESS, GLFW_REPEAT or GLFW_RELEASE. The key will be GLFW_KEY_UNKNOWN if GLFW lacks a key token for it, for example E-mail and Play keys.

+

The scancode is unique for every key, regardless of whether it has a key token. Scancodes are platform-specific but consistent over time, so keys will have different scancodes depending on the platform but they are safe to save to disk. You can query the scancode for any named key on the current platform with glfwGetKeyScancode.

+
const int scancode = glfwGetKeyScancode(GLFW_KEY_X);
+
set_key_mapping(scancode, swap_weapons);
+
int glfwGetKeyScancode(int key)
Returns the platform-specific scancode of the specified key.
+
#define GLFW_KEY_X
Definition: glfw3.h:432
+

The last reported state for every named key is also saved in per-window state arrays that can be polled with glfwGetKey.

+
int state = glfwGetKey(window, GLFW_KEY_E);
+
if (state == GLFW_PRESS)
+
{
+
activate_airship();
+
}
+
int glfwGetKey(GLFWwindow *window, int key)
Returns the last reported state of a keyboard key for the specified window.
+

The returned state is one of GLFW_PRESS or GLFW_RELEASE.

+

This function only returns cached key event state. It does not poll the system for the current physical state of the key.

+

Whenever you poll state, you risk missing the state change you are looking for. If a pressed key is released again before you poll its state, you will have missed the key press. The recommended solution for this is to use a key callback, but there is also the GLFW_STICKY_KEYS input mode.

+
+
#define GLFW_STICKY_KEYS
Definition: glfw3.h:1046
+
#define GLFW_TRUE
One.
Definition: glfw3.h:309
+
void glfwSetInputMode(GLFWwindow *window, int mode, int value)
Sets an input option for the specified window.
+

When sticky keys mode is enabled, the pollable state of a key will remain GLFW_PRESS until the state of that key is polled with glfwGetKey. Once it has been polled, if a key release event had been processed in the meantime, the state will reset to GLFW_RELEASE, otherwise it will remain GLFW_PRESS.

+

If you wish to know what the state of the Caps Lock and Num Lock keys was when input events were generated, set the GLFW_LOCK_KEY_MODS input mode.

+
+
#define GLFW_LOCK_KEY_MODS
Definition: glfw3.h:1048
+

When this input mode is enabled, any callback that receives modifier bits will have the GLFW_MOD_CAPS_LOCK bit set if Caps Lock was on when the event occurred and the GLFW_MOD_NUM_LOCK bit set if Num Lock was on.

+

The GLFW_KEY_LAST constant holds the highest value of any named key.

+

+Text input

+

GLFW supports text input in the form of a stream of Unicode code points, as produced by the operating system text input system. Unlike key input, text input obeys keyboard layouts and modifier keys and supports composing characters using dead keys. Once received, you can encode the code points into UTF-8 or any other encoding you prefer.

+

Because an unsigned int is 32 bits long on all platforms supported by GLFW, you can treat the code point argument as native endian UTF-32.

+

If you wish to offer regular text input, set a character callback.

+
glfwSetCharCallback(window, character_callback);
+
GLFWcharfun glfwSetCharCallback(GLFWwindow *window, GLFWcharfun callback)
Sets the Unicode character callback.
+

The callback function receives Unicode code points for key events that would have led to regular text input and generally behaves as a standard text field on that platform.

+
void character_callback(GLFWwindow* window, unsigned int codepoint)
+
{
+
}
+

+Key names

+

If you wish to refer to keys by name, you can query the keyboard layout dependent name of printable keys with glfwGetKeyName.

+
const char* key_name = glfwGetKeyName(GLFW_KEY_W, 0);
+
show_tutorial_hint("Press %s to move forward", key_name);
+
const char * glfwGetKeyName(int key, int scancode)
Returns the layout-specific name of the specified printable key.
+
#define GLFW_KEY_W
Definition: glfw3.h:431
+

This function can handle both keys and scancodes. If the specified key is GLFW_KEY_UNKNOWN then the scancode is used, otherwise it is ignored. This matches the behavior of the key callback, meaning the callback arguments can always be passed unmodified to this function.

+

+Mouse input

+

Mouse input comes in many forms, including mouse motion, button presses and scrolling offsets. The cursor appearance can also be changed, either to a custom image or a standard cursor shape from the system theme.

+

+Cursor position

+

If you wish to be notified when the cursor moves over the window, set a cursor position callback.

+
glfwSetCursorPosCallback(window, cursor_position_callback);
+
GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow *window, GLFWcursorposfun callback)
Sets the cursor position callback.
+

The callback functions receives the cursor position, measured in screen coordinates but relative to the top-left corner of the window content area. On platforms that provide it, the full sub-pixel cursor position is passed on.

+
static void cursor_position_callback(GLFWwindow* window, double xpos, double ypos)
+
{
+
}
+

The cursor position is also saved per-window and can be polled with glfwGetCursorPos.

+
double xpos, ypos;
+
glfwGetCursorPos(window, &xpos, &ypos);
+
void glfwGetCursorPos(GLFWwindow *window, double *xpos, double *ypos)
Retrieves the position of the cursor relative to the content area of the window.
+

+Cursor mode

+

The GLFW_CURSOR input mode provides several cursor modes for special forms of mouse motion input. By default, the cursor mode is GLFW_CURSOR_NORMAL, meaning the regular arrow cursor (or another cursor set with glfwSetCursor) is used and cursor motion is not limited.

+

If you wish to implement mouse motion based camera controls or other input schemes that require unlimited mouse movement, set the cursor mode to GLFW_CURSOR_DISABLED.

+
+
#define GLFW_CURSOR_DISABLED
Definition: glfw3.h:1053
+
#define GLFW_CURSOR
Definition: glfw3.h:1045
+

This will hide the cursor and lock it to the specified window. GLFW will then take care of all the details of cursor re-centering and offset calculation and providing the application with a virtual cursor position. This virtual position is provided normally via both the cursor position callback and through polling.

+
Note
You should not implement your own version of this functionality using other features of GLFW. It is not supported and will not work as robustly as GLFW_CURSOR_DISABLED.
+

If you only wish the cursor to become hidden when it is over a window but still want it to behave normally, set the cursor mode to GLFW_CURSOR_HIDDEN.

+
+
#define GLFW_CURSOR_HIDDEN
Definition: glfw3.h:1052
+

This mode puts no limit on the motion of the cursor.

+

To exit out of either of these special modes, restore the GLFW_CURSOR_NORMAL cursor mode.

+
+
#define GLFW_CURSOR_NORMAL
Definition: glfw3.h:1051
+

+

+Raw mouse motion

+

When the cursor is disabled, raw (unscaled and unaccelerated) mouse motion can be enabled if available.

+

Raw mouse motion is closer to the actual motion of the mouse across a surface. It is not affected by the scaling and acceleration applied to the motion of the desktop cursor. That processing is suitable for a cursor while raw motion is better for controlling for example a 3D camera. Because of this, raw mouse motion is only provided when the cursor is disabled.

+

Call glfwRawMouseMotionSupported to check if the current machine provides raw motion and set the GLFW_RAW_MOUSE_MOTION input mode to enable it. It is disabled by default.

+
+ +
#define GLFW_RAW_MOUSE_MOTION
Definition: glfw3.h:1049
+
int glfwRawMouseMotionSupported(void)
Returns whether raw mouse motion is supported.
+

If supported, raw mouse motion can be enabled or disabled per-window and at any time but it will only be provided when the cursor is disabled.

+

+Cursor objects

+

GLFW supports creating both custom and system theme cursor images, encapsulated as GLFWcursor objects. They are created with glfwCreateCursor or glfwCreateStandardCursor and destroyed with glfwDestroyCursor, or glfwTerminate, if any remain.

+

+Custom cursor creation

+

A custom cursor is created with glfwCreateCursor, which returns a handle to the created cursor object. For example, this creates a 16x16 white square cursor with the hot-spot in the upper-left corner:

+
unsigned char pixels[16 * 16 * 4];
+
memset(pixels, 0xff, sizeof(pixels));
+
+
GLFWimage image;
+
image.width = 16;
+
image.height = 16;
+
image.pixels = pixels;
+
+
GLFWcursor* cursor = glfwCreateCursor(&image, 0, 0);
+
struct GLFWcursor GLFWcursor
Opaque cursor object.
Definition: glfw3.h:1194
+
GLFWcursor * glfwCreateCursor(const GLFWimage *image, int xhot, int yhot)
Creates a custom cursor.
+
Image data.
Definition: glfw3.h:1718
+
int height
Definition: glfw3.h:1724
+
unsigned char * pixels
Definition: glfw3.h:1727
+
int width
Definition: glfw3.h:1721
+

If cursor creation fails, NULL will be returned, so it is necessary to check the return value.

+

The image data is 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. The pixels are arranged canonically as sequential rows, starting from the top-left corner.

+

+Standard cursor creation

+

A cursor with a standard shape from the current system cursor theme can be can be created with glfwCreateStandardCursor.

+
+
GLFWcursor * glfwCreateStandardCursor(int shape)
Creates a cursor with a standard shape.
+
#define GLFW_HRESIZE_CURSOR
The horizontal resize arrow shape.
Definition: glfw3.h:1095
+

These cursor objects behave in the exact same way as those created with glfwCreateCursor except that the system cursor theme provides the actual image.

+

+Cursor destruction

+

When a cursor is no longer needed, destroy it with glfwDestroyCursor.

+
+
void glfwDestroyCursor(GLFWcursor *cursor)
Destroys a cursor.
+

Cursor destruction always succeeds. If the cursor is current for any window, that window will revert to the default cursor. This does not affect the cursor mode. All remaining cursors are destroyed when glfwTerminate is called.

+

+Cursor setting

+

A cursor can be set as current for a window with glfwSetCursor.

+
glfwSetCursor(window, cursor);
+
void glfwSetCursor(GLFWwindow *window, GLFWcursor *cursor)
Sets the cursor for the window.
+

Once set, the cursor image will be used as long as the system cursor is over the content area of the window and the cursor mode is set to GLFW_CURSOR_NORMAL.

+

A single cursor may be set for any number of windows.

+

To revert to the default cursor, set the cursor of that window to NULL.

+
glfwSetCursor(window, NULL);
+

When a cursor is destroyed, any window that has it set will revert to the default cursor. This does not affect the cursor mode.

+

+Cursor enter/leave events

+

If you wish to be notified when the cursor enters or leaves the content area of a window, set a cursor enter/leave callback.

+
glfwSetCursorEnterCallback(window, cursor_enter_callback);
+
GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow *window, GLFWcursorenterfun callback)
Sets the cursor enter/leave callback.
+

The callback function receives the new classification of the cursor.

+
void cursor_enter_callback(GLFWwindow* window, int entered)
+
{
+
if (entered)
+
{
+
// The cursor entered the content area of the window
+
}
+
else
+
{
+
// The cursor left the content area of the window
+
}
+
}
+

You can query whether the cursor is currently inside the content area of the window with the GLFW_HOVERED window attribute.

+
+
{
+
highlight_interface();
+
}
+
#define GLFW_HOVERED
Mouse cursor hover window attribute.
Definition: glfw3.h:852
+
int glfwGetWindowAttrib(GLFWwindow *window, int attrib)
Returns an attribute of the specified window.
+

+Mouse button input

+

If you wish to be notified when a mouse button is pressed or released, set a mouse button callback.

+
glfwSetMouseButtonCallback(window, mouse_button_callback);
+
GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow *window, GLFWmousebuttonfun callback)
Sets the mouse button callback.
+

The callback function receives the mouse button, button action and modifier bits.

+
void mouse_button_callback(GLFWwindow* window, int button, int action, int mods)
+
{
+
if (button == GLFW_MOUSE_BUTTON_RIGHT && action == GLFW_PRESS)
+
popup_menu();
+
}
+
#define GLFW_MOUSE_BUTTON_RIGHT
Definition: glfw3.h:578
+

The action is one of GLFW_PRESS or GLFW_RELEASE.

+

Mouse button states for named buttons are also saved in per-window state arrays that can be polled with glfwGetMouseButton.

+
+
if (state == GLFW_PRESS)
+
{
+
upgrade_cow();
+
}
+
#define GLFW_MOUSE_BUTTON_LEFT
Definition: glfw3.h:577
+
int glfwGetMouseButton(GLFWwindow *window, int button)
Returns the last reported state of a mouse button for the specified window.
+

The returned state is one of GLFW_PRESS or GLFW_RELEASE.

+

This function only returns cached mouse button event state. It does not poll the system for the current state of the mouse button.

+

Whenever you poll state, you risk missing the state change you are looking for. If a pressed mouse button is released again before you poll its state, you will have missed the button press. The recommended solution for this is to use a mouse button callback, but there is also the GLFW_STICKY_MOUSE_BUTTONS input mode.

+
+
#define GLFW_STICKY_MOUSE_BUTTONS
Definition: glfw3.h:1047
+

When sticky mouse buttons mode is enabled, the pollable state of a mouse button will remain GLFW_PRESS until the state of that button is polled with glfwGetMouseButton. Once it has been polled, if a mouse button release event had been processed in the meantime, the state will reset to GLFW_RELEASE, otherwise it will remain GLFW_PRESS.

+

The GLFW_MOUSE_BUTTON_LAST constant holds the highest value of any named button.

+

+Scroll input

+

If you wish to be notified when the user scrolls, whether with a mouse wheel or touchpad gesture, set a scroll callback.

+
glfwSetScrollCallback(window, scroll_callback);
+
GLFWscrollfun glfwSetScrollCallback(GLFWwindow *window, GLFWscrollfun callback)
Sets the scroll callback.
+

The callback function receives two-dimensional scroll offsets.

+
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset)
+
{
+
}
+

A normal mouse wheel, being vertical, provides offsets along the Y-axis.

+

+Joystick input

+

The joystick functions expose connected joysticks and controllers, with both referred to as joysticks. It supports up to sixteen joysticks, ranging from GLFW_JOYSTICK_1, GLFW_JOYSTICK_2 up to and including GLFW_JOYSTICK_16 or GLFW_JOYSTICK_LAST. You can test whether a joystick is present with glfwJoystickPresent.

+
+
int glfwJoystickPresent(int jid)
Returns whether the specified joystick is present.
+
#define GLFW_JOYSTICK_1
Definition: glfw3.h:589
+

Each joystick has zero or more axes, zero or more buttons, zero or more hats, a human-readable name, a user pointer and an SDL compatible GUID.

+

When GLFW is initialized, detected joysticks are added to the beginning of the array. Once a joystick is detected, it keeps its assigned ID until it is disconnected or the library is terminated, so as joysticks are connected and disconnected, there may appear gaps in the IDs.

+

Joystick axis, button and hat state is updated when polled and does not require a window to be created or events to be processed. However, if you want joystick connection and disconnection events reliably delivered to the joystick callback then you must process events.

+

To see all the properties of all connected joysticks in real-time, run the joysticks test program.

+

+Joystick axis states

+

The positions of all axes of a joystick are returned by glfwGetJoystickAxes. See the reference documentation for the lifetime of the returned array.

+
int count;
+
const float* axes = glfwGetJoystickAxes(GLFW_JOYSTICK_5, &count);
+
const float * glfwGetJoystickAxes(int jid, int *count)
Returns the values of all axes of the specified joystick.
+
#define GLFW_JOYSTICK_5
Definition: glfw3.h:593
+

Each element in the returned array is a value between -1.0 and 1.0.

+

+Joystick button states

+

The states of all buttons of a joystick are returned by glfwGetJoystickButtons. See the reference documentation for the lifetime of the returned array.

+
int count;
+
const unsigned char* buttons = glfwGetJoystickButtons(GLFW_JOYSTICK_3, &count);
+
const unsigned char * glfwGetJoystickButtons(int jid, int *count)
Returns the state of all buttons of the specified joystick.
+
#define GLFW_JOYSTICK_3
Definition: glfw3.h:591
+

Each element in the returned array is either GLFW_PRESS or GLFW_RELEASE.

+

For backward compatibility with earlier versions that did not have glfwGetJoystickHats, the button array by default also includes all hats. See the reference documentation for glfwGetJoystickButtons for details.

+

+Joystick hat states

+

The states of all hats are returned by glfwGetJoystickHats. See the reference documentation for the lifetime of the returned array.

+
int count;
+
const unsigned char* hats = glfwGetJoystickHats(GLFW_JOYSTICK_7, &count);
+
const unsigned char * glfwGetJoystickHats(int jid, int *count)
Returns the state of all hats of the specified joystick.
+
#define GLFW_JOYSTICK_7
Definition: glfw3.h:595
+

Each element in the returned array is one of the following:

+ + + + + + + + + + + + + + + + + + + + + +
Name Value
GLFW_HAT_CENTERED 0
GLFW_HAT_UP 1
GLFW_HAT_RIGHT 2
GLFW_HAT_DOWN 4
GLFW_HAT_LEFT 8
GLFW_HAT_RIGHT_UP GLFW_HAT_RIGHT | GLFW_HAT_UP
GLFW_HAT_RIGHT_DOWN GLFW_HAT_RIGHT | GLFW_HAT_DOWN
GLFW_HAT_LEFT_UP GLFW_HAT_LEFT | GLFW_HAT_UP
GLFW_HAT_LEFT_DOWN GLFW_HAT_LEFT | GLFW_HAT_DOWN
+

The diagonal directions are bitwise combinations of the primary (up, right, down and left) directions and you can test for these individually by ANDing it with the corresponding direction.

+
if (hats[2] & GLFW_HAT_RIGHT)
+
{
+
// State of hat 2 could be right-up, right or right-down
+
}
+
#define GLFW_HAT_RIGHT
Definition: glfw3.h:354
+

For backward compatibility with earlier versions that did not have glfwGetJoystickHats, all hats are by default also included in the button array. See the reference documentation for glfwGetJoystickButtons for details.

+

+Joystick name

+

The human-readable, UTF-8 encoded name of a joystick is returned by glfwGetJoystickName. See the reference documentation for the lifetime of the returned string.

+
+
const char * glfwGetJoystickName(int jid)
Returns the name of the specified joystick.
+
#define GLFW_JOYSTICK_4
Definition: glfw3.h:592
+

Joystick names are not guaranteed to be unique. Two joysticks of the same model and make may have the same name. Only the joystick ID is guaranteed to be unique, and only until that joystick is disconnected.

+

+Joystick user pointer

+

Each joystick has a user pointer that can be set with glfwSetJoystickUserPointer and queried with glfwGetJoystickUserPointer. This can be used for any purpose you need and will not be modified by GLFW. The value will be kept until the joystick is disconnected or until the library is terminated.

+

The initial value of the pointer is NULL.

+

+Joystick configuration changes

+

If you wish to be notified when a joystick is connected or disconnected, set a joystick callback.

+
glfwSetJoystickCallback(joystick_callback);
+
GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun callback)
Sets the joystick configuration callback.
+

The callback function receives the ID of the joystick that has been connected and disconnected and the event that occurred.

+
void joystick_callback(int jid, int event)
+
{
+
if (event == GLFW_CONNECTED)
+
{
+
// The joystick was connected
+
}
+
else if (event == GLFW_DISCONNECTED)
+
{
+
// The joystick was disconnected
+
}
+
}
+
#define GLFW_DISCONNECTED
Definition: glfw3.h:1104
+
#define GLFW_CONNECTED
Definition: glfw3.h:1103
+

For joystick connection and disconnection events to be delivered on all platforms, you need to call one of the event processing functions. Joystick disconnection may also be detected and the callback called by joystick functions. The function will then return whatever it returns for a disconnected joystick.

+

Only glfwGetJoystickName and glfwGetJoystickUserPointer will return useful values for a disconnected joystick and only before the monitor callback returns.

+

+Gamepad input

+

The joystick functions provide unlabeled axes, buttons and hats, with no indication of where they are located on the device. Their order may also vary between platforms even with the same device.

+

To solve this problem the SDL community crowdsourced the SDL_GameControllerDB project, a database of mappings from many different devices to an Xbox-like gamepad.

+

GLFW supports this mapping format and contains a copy of the mappings available at the time of release. See Gamepad mappings for how to update this at runtime. Mappings will be assigned to joysticks automatically any time a joystick is connected or the mappings are updated.

+

You can check whether a joystick is both present and has a gamepad mapping with glfwJoystickIsGamepad.

+
+
{
+
// Use as gamepad
+
}
+
int glfwJoystickIsGamepad(int jid)
Returns whether the specified joystick has a gamepad mapping.
+
#define GLFW_JOYSTICK_2
Definition: glfw3.h:590
+

If you are only interested in gamepad input you can use this function instead of glfwJoystickPresent.

+

You can query the human-readable name provided by the gamepad mapping with glfwGetGamepadName. This may or may not be the same as the joystick name.

+
const char* name = glfwGetGamepadName(GLFW_JOYSTICK_7);
+
const char * glfwGetGamepadName(int jid)
Returns the human-readable gamepad name for the specified joystick.
+

To retrieve the gamepad state of a joystick, call glfwGetGamepadState.

+
+
+ +
{
+ +
{
+
input_jump();
+
}
+
+ +
}
+
#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
Definition: glfw3.h:650
+
#define GLFW_GAMEPAD_BUTTON_A
Definition: glfw3.h:615
+
int glfwGetGamepadState(int jid, GLFWgamepadstate *state)
Retrieves the state of the specified joystick remapped as a gamepad.
+
Gamepad input state.
Definition: glfw3.h:1742
+
unsigned char buttons[15]
Definition: glfw3.h:1746
+
float axes[6]
Definition: glfw3.h:1750
+

The GLFWgamepadstate struct has two arrays; one for button states and one for axis states. The values for each button and axis are the same as for the glfwGetJoystickButtons and glfwGetJoystickAxes functions, i.e. GLFW_PRESS or GLFW_RELEASE for buttons and -1.0 to 1.0 inclusive for axes.

+

The sizes of the arrays and the positions within each array are fixed.

+

The button indices are GLFW_GAMEPAD_BUTTON_A, GLFW_GAMEPAD_BUTTON_B, GLFW_GAMEPAD_BUTTON_X, GLFW_GAMEPAD_BUTTON_Y, GLFW_GAMEPAD_BUTTON_LEFT_BUMPER, GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER, GLFW_GAMEPAD_BUTTON_BACK, GLFW_GAMEPAD_BUTTON_START, GLFW_GAMEPAD_BUTTON_GUIDE, GLFW_GAMEPAD_BUTTON_LEFT_THUMB, GLFW_GAMEPAD_BUTTON_RIGHT_THUMB, GLFW_GAMEPAD_BUTTON_DPAD_UP, GLFW_GAMEPAD_BUTTON_DPAD_RIGHT, GLFW_GAMEPAD_BUTTON_DPAD_DOWN and GLFW_GAMEPAD_BUTTON_DPAD_LEFT.

+

For those who prefer, there are also the GLFW_GAMEPAD_BUTTON_CROSS, GLFW_GAMEPAD_BUTTON_CIRCLE, GLFW_GAMEPAD_BUTTON_SQUARE and GLFW_GAMEPAD_BUTTON_TRIANGLE aliases for the A, B, X and Y button indices.

+

The axis indices are GLFW_GAMEPAD_AXIS_LEFT_X, GLFW_GAMEPAD_AXIS_LEFT_Y, GLFW_GAMEPAD_AXIS_RIGHT_X, GLFW_GAMEPAD_AXIS_RIGHT_Y, GLFW_GAMEPAD_AXIS_LEFT_TRIGGER and GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER.

+

The GLFW_GAMEPAD_BUTTON_LAST and GLFW_GAMEPAD_AXIS_LAST constants equal the largest available index for each array.

+

+Gamepad mappings

+

GLFW contains a copy of the mappings available in SDL_GameControllerDB at the time of release. Newer ones can be added at runtime with glfwUpdateGamepadMappings.

+
const char* mappings = load_file_contents("game/data/gamecontrollerdb.txt");
+
+ +
int glfwUpdateGamepadMappings(const char *string)
Adds the specified SDL_GameControllerDB gamepad mappings.
+

This function supports everything from single lines up to and including the unmodified contents of the whole gamecontrollerdb.txt file.

+

Below is a description of the mapping format. Please keep in mind that this description is not authoritative. The format is defined by the SDL and SDL_GameControllerDB projects and their documentation and code takes precedence.

+

Each mapping is a single line of comma-separated values describing the GUID, name and layout of the gamepad. Lines that do not begin with a hexadecimal digit are ignored.

+

The first value is always the gamepad GUID, a 32 character long hexadecimal string that typically identifies its make, model, revision and the type of connection to the computer. When this information is not available, the GUID is generated using the gamepad name. GLFW uses the SDL 2.0.5+ GUID format but can convert from the older formats.

+

The second value is always the human-readable name of the gamepad.

+

All subsequent values are in the form <field>:<value> and describe the layout of the mapping. These fields may not all be present and may occur in any order.

+

The button fields are a, b, c, d, back, start, guide, dpup, dpright, dpdown, dpleft, leftshoulder, rightshoulder, leftstick and rightstick.

+

The axis fields are leftx, lefty, rightx, righty, lefttrigger and righttrigger.

+

The value of an axis or button field can be a joystick button, a joystick axis, a hat bitmask or empty. Joystick buttons are specified as bN, for example b2 for the third button. Joystick axes are specified as aN, for example a7 for the eighth button. Joystick hat bit masks are specified as hN.N, for example h0.8 for left on the first hat. More than one bit may be set in the mask.

+

Before an axis there may be a + or - range modifier, for example +a3 for the positive half of the fourth axis. This restricts input to only the positive or negative halves of the joystick axis. After an axis or half-axis there may be the ~ inversion modifier, for example a2~ or -a7~. This negates the values of the gamepad axis.

+

The hat bit mask match the hat states in the joystick functions.

+

There is also the special platform field that specifies which platform the mapping is valid for. Possible values are Windows, Mac OS X and Linux.

+

Below is an example of what a gamepad mapping might look like. It is the one built into GLFW for Xbox controllers accessed via the XInput API on Windows. This example has been broken into several lines to fit on the page, but real gamepad mappings must be a single line.

+
78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,
+
b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,
+
rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,
+
righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,
+
Note
GLFW does not yet support the output range and modifiers + and - that were recently added to SDL. The input modifiers +, - and ~ are supported and described above.
+

+Time input

+

GLFW provides high-resolution time input, in seconds, with glfwGetTime.

+
double seconds = glfwGetTime();
+
double glfwGetTime(void)
Returns the GLFW time.
+

It returns the number of seconds since the library was initialized with glfwInit. The platform-specific time sources used typically have micro- or nanosecond resolution.

+

You can modify the base time with glfwSetTime.

+
+
void glfwSetTime(double time)
Sets the GLFW time.
+

This sets the time to the specified time, in seconds, and it continues to count from there.

+

You can also access the raw timer used to implement the functions above, with glfwGetTimerValue.

+
uint64_t value = glfwGetTimerValue();
+
uint64_t glfwGetTimerValue(void)
Returns the current value of the raw timer.
+

This value is in 1 / frequency seconds. The frequency of the raw timer varies depending on the operating system and hardware. You can query the frequency, in Hz, with glfwGetTimerFrequency.

+
uint64_t frequency = glfwGetTimerFrequency();
+
uint64_t glfwGetTimerFrequency(void)
Returns the frequency, in Hz, of the raw timer.
+

+Clipboard input and output

+

If the system clipboard contains a UTF-8 encoded string or if it can be converted to one, you can retrieve it with glfwGetClipboardString. See the reference documentation for the lifetime of the returned string.

+
const char* text = glfwGetClipboardString(NULL);
+
if (text)
+
{
+
insert_text(text);
+
}
+
const char * glfwGetClipboardString(GLFWwindow *window)
Returns the contents of the clipboard as a string.
+

If the clipboard is empty or if its contents could not be converted, NULL is returned.

+

The contents of the system clipboard can be set to a UTF-8 encoded string with glfwSetClipboardString.

+
glfwSetClipboardString(NULL, "A string with words in it");
+
void glfwSetClipboardString(GLFWwindow *window, const char *string)
Sets the clipboard to the specified string.
+

+Path drop input

+

If you wish to receive the paths of files and/or directories dropped on a window, set a file drop callback.

+
glfwSetDropCallback(window, drop_callback);
+
GLFWdropfun glfwSetDropCallback(GLFWwindow *window, GLFWdropfun callback)
Sets the path drop callback.
+

The callback function receives an array of paths encoded as UTF-8.

+
void drop_callback(GLFWwindow* window, int count, const char** paths)
+
{
+
int i;
+
for (i = 0; i < count; i++)
+
handle_dropped_file(paths[i]);
+
}
+

The path array and its strings are only valid until the file drop callback returns, as they may have been generated specifically for that event. You need to make a deep copy of the array if you want to keep the paths.

+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/internal_8dox.html b/external/glfw-3.3.4/docs/html/internal_8dox.html new file mode 100644 index 0000000..48fb5e0 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/internal_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: internal.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
internal.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/internals_guide.html b/external/glfw-3.3.4/docs/html/internals_guide.html new file mode 100644 index 0000000..4629236 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/internals_guide.html @@ -0,0 +1,125 @@ + + + + + + + +GLFW: Internal structure + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Internal structure
+
+
+ +

There are several interfaces inside GLFW. Each interface has its own area of responsibility and its own naming conventions.

+

+Public interface

+

The most well-known is the public interface, described in the glfw3.h header file. This is implemented in source files shared by all platforms and these files contain no platform-specific code. This code usually ends up calling the platform and internal interfaces to do the actual work.

+

The public interface uses the OpenGL naming conventions except with GLFW and glfw instead of GL and gl. For struct members, where OpenGL sets no precedent, it use headless camel case.

+

Examples: glfwCreateWindow, GLFWwindow, GLFW_RED_BITS

+

+Native interface

+

The native interface is a small set of publicly available but platform-specific functions, described in the glfw3native.h header file and used to gain access to the underlying window, context and (on some platforms) display handles used by the platform interface.

+

The function names of the native interface are similar to those of the public interface, but embeds the name of the interface that the returned handle is from.

+

Examples: glfwGetX11Window, glfwGetWGLContext

+

+Internal interface

+

The internal interface consists of utility functions used by all other interfaces. It is shared code implemented in the same shared source files as the public and event interfaces. The internal interface is described in the internal.h header file.

+

The internal interface is in charge of GLFW's global data, which it stores in a _GLFWlibrary struct named _glfw.

+

The internal interface uses the same style as the public interface, except all global names have a leading underscore.

+

Examples: _glfwIsValidContextConfig, _GLFWwindow, _glfw.monitorCount

+

+Platform interface

+

The platform interface implements all platform-specific operations as a service to the public interface. This includes event processing. The platform interface is never directly called by application code and never directly calls application-provided callbacks. It is also prohibited from modifying the platform-independent part of the internal structs. Instead, it calls the event interface when events interesting to GLFW are received.

+

The platform interface mirrors those parts of the public interface that needs to perform platform-specific operations on some or all platforms. The are also named the same except that the glfw function prefix is replaced by _glfwPlatform.

+

Examples: _glfwPlatformCreateWindow

+

The platform interface also defines structs that contain platform-specific global and per-object state. Their names mirror those of the internal interface, except that an interface-specific suffix is added.

+

Examples: _GLFWwindowX11, _GLFWcontextWGL

+

These structs are incorporated as members into the internal interface structs using special macros that name them after the specific interface used. This prevents shared code from accidentally using these members.

+

Examples: window->win32.handle, _glfw.x11.display

+

+Event interface

+

The event interface is implemented in the same shared source files as the public interface and is responsible for delivering the events it receives to the application, either via callbacks, via window state changes or both.

+

The function names of the event interface use a _glfwInput prefix and the ObjectEvent pattern.

+

Examples: _glfwInputWindowFocus, _glfwInputCursorPos

+

+Static functions

+

Static functions may be used by any interface and have no prefixes or suffixes. These use headless camel case.

+

Examples: isValidElementForJoystick

+

+Configuration macros

+

GLFW uses a number of configuration macros to select at compile time which interfaces and code paths to use. They are defined in the glfw_config.h header file, which is generated from the glfw_config.h.in file by CMake.

+

Configuration macros the same style as tokens in the public interface, except with a leading underscore.

+

Examples: _GLFW_WIN32, _GLFW_BUILD_DLL

+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/intro_8dox.html b/external/glfw-3.3.4/docs/html/intro_8dox.html new file mode 100644 index 0000000..46ce9fc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/intro_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: intro.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
intro.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/intro_guide.html b/external/glfw-3.3.4/docs/html/intro_guide.html new file mode 100644 index 0000000..e69568e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/intro_guide.html @@ -0,0 +1,329 @@ + + + + + + + +GLFW: Introduction to the API + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
Introduction to the API
+
+
+ +

This guide introduces the basic concepts of GLFW and describes initialization, error handling and API guarantees and limitations. For a broad but shallow tutorial, see Getting started instead. For details on a specific function in this category, see the Initialization, version and error reference.

+

There are also guides for the other areas of GLFW.

+ +

+Initialization and termination

+

Before most GLFW functions may be called, the library must be initialized. This initialization checks what features are available on the machine, enumerates monitors and joysticks, initializes the timer and performs any required platform-specific initialization.

+

Only the following functions may be called before the library has been successfully initialized, and only from the main thread.

+ +

Calling any other function before successful initialization will cause a GLFW_NOT_INITIALIZED error.

+

+Initializing GLFW

+

The library is initialized with glfwInit, which returns GLFW_FALSE if an error occurred.

+
if (!glfwInit())
+
{
+
// Handle initialization failure
+
}
+
int glfwInit(void)
Initializes the GLFW library.
+

If any part of initialization fails, any parts that succeeded are terminated as if glfwTerminate had been called. The library only needs to be initialized once and additional calls to an already initialized library will return GLFW_TRUE immediately.

+

Once the library has been successfully initialized, it should be terminated before the application exits. Modern systems are very good at freeing resources allocated by programs that exit, but GLFW sometimes has to change global system settings and these might not be restored without termination.

+

+Initialization hints

+

Initialization hints are set before glfwInit and affect how the library behaves until termination. Hints are set with glfwInitHint.

+
+
void glfwInitHint(int hint, int value)
Sets the specified init hint to the desired value.
+
#define GLFW_JOYSTICK_HAT_BUTTONS
Joystick hat buttons init hint.
Definition: glfw3.h:1112
+
#define GLFW_FALSE
Zero.
Definition: glfw3.h:318
+

The values you set hints to are never reset by GLFW, but they only take effect during initialization. Once GLFW has been initialized, any values you set will be ignored until the library is terminated and initialized again.

+

Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.

+

+Shared init hints

+

GLFW_JOYSTICK_HAT_BUTTONS specifies whether to also expose joystick hats as buttons, for compatibility with earlier versions of GLFW that did not have glfwGetJoystickHats. Set this with glfwInitHint.

+

+macOS specific init hints

+

GLFW_COCOA_CHDIR_RESOURCES specifies whether to set the current directory to the application to the Contents/Resources subdirectory of the application's bundle, if present. Set this with glfwInitHint.

+

GLFW_COCOA_MENUBAR specifies whether to create a basic menu bar, either from a nib or manually, when the first window is created, which is when AppKit is initialized. Set this with glfwInitHint.

+

+Supported and default values

+ + + + + + + + + +
Initialization hint Default value Supported values
GLFW_JOYSTICK_HAT_BUTTONS GLFW_TRUE GLFW_TRUE or GLFW_FALSE
GLFW_COCOA_CHDIR_RESOURCES GLFW_TRUE GLFW_TRUE or GLFW_FALSE
GLFW_COCOA_MENUBAR GLFW_TRUE GLFW_TRUE or GLFW_FALSE
+

+Terminating GLFW

+

Before your application exits, you should terminate the GLFW library if it has been initialized. This is done with glfwTerminate.

+
+
void glfwTerminate(void)
Terminates the GLFW library.
+

This will destroy any remaining window, monitor and cursor objects, restore any modified gamma ramps, re-enable the screensaver if it had been disabled and free any other resources allocated by GLFW.

+

Once the library is terminated, it is as if it had never been initialized and you will need to initialize it again before being able to use GLFW. If the library was not initialized or had already been terminated, it return immediately.

+

+Error handling

+

Some GLFW functions have return values that indicate an error, but this is often not very helpful when trying to figure out what happened or why it occurred. Other functions have no return value reserved for errors, so error notification needs a separate channel. Finally, far from all GLFW functions have return values.

+

The last error code for the calling thread can be queried at any time with glfwGetError.

+
int code = glfwGetError(NULL);
+
+
if (code != GLFW_NO_ERROR)
+
handle_error(code);
+
#define GLFW_NO_ERROR
No error has occurred.
Definition: glfw3.h:667
+
int glfwGetError(const char **description)
Returns and clears the last error for the calling thread.
+

If no error has occurred since the last call, GLFW_NO_ERROR (zero) is returned. The error is cleared before the function returns.

+

The error code indicates the general category of the error. Some error codes, such as GLFW_NOT_INITIALIZED has only a single meaning, whereas others like GLFW_PLATFORM_ERROR are used for many different errors.

+

GLFW often has more information about an error than its general category. You can retrieve a UTF-8 encoded human-readable description along with the error code. If no error has occurred since the last call, the description is set to NULL.

+
const char* description;
+
int code = glfwGetError(&description);
+
+
if (description)
+
display_error_message(code, description);
+

The retrieved description string is only valid until the next error occurs. This means you must make a copy of it if you want to keep it.

+

You can also set an error callback, which will be called each time an error occurs. It is set with glfwSetErrorCallback.

+
glfwSetErrorCallback(error_callback);
+
GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback)
Sets the error callback.
+

The error callback receives the same error code and human-readable description returned by glfwGetError.

+
void error_callback(int code, const char* description)
+
{
+
display_error_message(code, description);
+
}
+

The error callback is called after the error is stored, so calling glfwGetError from within the error callback returns the same values as the callback argument.

+

The description string passed to the callback is only valid until the error callback returns. This means you must make a copy of it if you want to keep it.

+

Reported errors are never fatal. As long as GLFW was successfully initialized, it will remain initialized and in a safe state until terminated regardless of how many errors occur. If an error occurs during initialization that causes glfwInit to fail, any part of the library that was initialized will be safely terminated.

+

Do not rely on a currently invalid call to generate a specific error, as in the future that same call may generate a different error or become valid.

+

+Coordinate systems

+

GLFW has two primary coordinate systems: the virtual screen and the window content area or content area. Both use the same unit: virtual screen coordinates, or just screen coordinates, which don't necessarily correspond to pixels.

+

+

Both the virtual screen and the content area coordinate systems have the X-axis pointing to the right and the Y-axis pointing down.

+

Window and monitor positions are specified as the position of the upper-left corners of their content areas relative to the virtual screen, while cursor positions are specified relative to a window's content area.

+

Because the origin of the window's content area coordinate system is also the point from which the window position is specified, you can translate content area coordinates to the virtual screen by adding the window position. The window frame, when present, extends out from the content area but does not affect the window position.

+

Almost all positions and sizes in GLFW are measured in screen coordinates relative to one of the two origins above. This includes cursor positions, window positions and sizes, window frame sizes, monitor positions and video mode resolutions.

+

Two exceptions are the monitor physical size, which is measured in millimetres, and framebuffer size, which is measured in pixels.

+

Pixels and screen coordinates may map 1:1 on your machine, but they won't on every other machine, for example on a Mac with a Retina display. The ratio between screen coordinates and pixels may also change at run-time depending on which monitor the window is currently considered to be on.

+

+Guarantees and limitations

+

This section describes the conditions under which GLFW can be expected to function, barring bugs in the operating system or drivers. Use of GLFW outside of these limits may work on some platforms, or on some machines, or some of the time, or on some versions of GLFW, but it may break at any time and this will not be considered a bug.

+

+Pointer lifetimes

+

GLFW will never free any pointer you provide to it and you must never free any pointer it provides to you.

+

Many GLFW functions return pointers to dynamically allocated structures, strings or arrays, and some callbacks are provided with strings or arrays. These are always managed by GLFW and should never be freed by the application. The lifetime of these pointers is documented for each GLFW function and callback. If you need to keep this data, you must copy it before its lifetime expires.

+

Many GLFW functions accept pointers to structures or strings allocated by the application. These are never freed by GLFW and are always the responsibility of the application. If GLFW needs to keep the data in these structures or strings, it is copied before the function returns.

+

Pointer lifetimes are guaranteed not to be shortened in future minor or patch releases.

+

+Reentrancy

+

GLFW event processing and object destruction are not reentrant. This means that the following functions must not be called from any callback function:

+ +

These functions may be made reentrant in future minor or patch releases, but functions not on this list will not be made non-reentrant.

+

+Thread safety

+

Most GLFW functions must only be called from the main thread (the thread that calls main), but some may be called from any thread once the library has been initialized. Before initialization the whole library is thread-unsafe.

+

The reference documentation for every GLFW function states whether it is limited to the main thread.

+

Initialization, termination, event processing and the creation and destruction of windows, cursors and OpenGL and OpenGL ES contexts are all restricted to the main thread due to limitations of one or several platforms.

+

Because event processing must be performed on the main thread, all callbacks except for the error callback will only be called on that thread. The error callback may be called on any thread, as any GLFW function may generate errors.

+

The error code and description may be queried from any thread.

+ +

Empty events may be posted from any thread.

+ +

The window user pointer and close flag may be read and written from any thread, but this is not synchronized by GLFW.

+ +

These functions for working with OpenGL and OpenGL ES contexts may be called from any thread, but the window object is not synchronized by GLFW.

+ +

The raw timer functions may be called from any thread.

+ +

The regular timer may be used from any thread, but reading and writing the timer offset is not synchronized by GLFW.

+ +

Library version information may be queried from any thread.

+ +

All Vulkan related functions may be called from any thread.

+ +

GLFW uses synchronization objects internally only to manage the per-thread context and error states. Additional synchronization is left to the application.

+

Functions that may currently be called from any thread will always remain so, but functions that are currently limited to the main thread may be updated to allow calls from any thread in future releases.

+

+Version compatibility

+

GLFW uses Semantic Versioning. This guarantees source and binary backward compatibility with earlier minor versions of the API. This means that you can drop in a newer version of the library and existing programs will continue to compile and existing binaries will continue to run.

+

Once a function or constant has been added, the signature of that function or value of that constant will remain unchanged until the next major version of GLFW. No compatibility of any kind is guaranteed between major versions.

+

Undocumented behavior, i.e. behavior that is not described in the documentation, may change at any time until it is documented.

+

If the reference documentation and the implementation differ, the reference documentation will almost always take precedence and the implementation will be fixed in the next release. The reference documentation will also take precedence over anything stated in a guide.

+

+Event order

+

The order of arrival of related events is not guaranteed to be consistent across platforms. The exception is synthetic key and mouse button release events, which are always delivered after the window defocus event.

+

+Version management

+

GLFW provides mechanisms for identifying what version of GLFW your application was compiled against as well as what version it is currently running against. If you are loading GLFW dynamically (not just linking dynamically), you can use this to verify that the library binary is compatible with your application.

+

+Compile-time version

+

The compile-time version of GLFW is provided by the GLFW header with the GLFW_VERSION_MAJOR, GLFW_VERSION_MINOR and GLFW_VERSION_REVISION macros.

+
printf("Compiled against GLFW %i.%i.%i\n",
+ + + +
#define GLFW_VERSION_MAJOR
The major version number of the GLFW library.
Definition: glfw3.h:284
+
#define GLFW_VERSION_REVISION
The revision number of the GLFW library.
Definition: glfw3.h:298
+
#define GLFW_VERSION_MINOR
The minor version number of the GLFW library.
Definition: glfw3.h:291
+

+Run-time version

+

The run-time version can be retrieved with glfwGetVersion, a function that may be called regardless of whether GLFW is initialized.

+
int major, minor, revision;
+
glfwGetVersion(&major, &minor, &revision);
+
+
printf("Running against GLFW %i.%i.%i\n", major, minor, revision);
+
void glfwGetVersion(int *major, int *minor, int *rev)
Retrieves the version of the GLFW library.
+

+Version string

+

GLFW 3 also provides a compile-time generated version string that describes the version, platform, compiler and any platform-specific compile-time options. This is primarily intended for submitting bug reports, to allow developers to see which code paths are enabled in a binary.

+

The version string is returned by glfwGetVersionString, a function that may be called regardless of whether GLFW is initialized.

+

Do not use the version string to parse the GLFW library version. The glfwGetVersion function already provides the version of the running library binary.

+

The format of the string is as follows:

    +
  • The version of GLFW
  • +
  • The name of the window system API
  • +
  • The name of the context creation API
  • +
  • Any additional options or APIs
  • +
+

For example, when compiling GLFW 3.0 with MinGW using the Win32 and WGL back ends, the version string may look something like this:

+
3.0.0 Win32 WGL MinGW
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/jquery.js b/external/glfw-3.3.4/docs/html/jquery.js new file mode 100644 index 0000000..103c32d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/jquery.js @@ -0,0 +1,35 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0a;a++)for(i in o[a])n=o[a][i],o[a].hasOwnProperty(i)&&void 0!==n&&(e[i]=t.isPlainObject(n)?t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=s.call(arguments,1),h=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(h=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):h=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new i(o,this))})),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eventNamespace,c=h[2];c?n.on(l,c,r):i.on(l,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,h=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("
"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};l>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),h.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-r-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-r-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>c?(s=t.top+p+f+m+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+m)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+m-h,(i>0||u>a(i))&&(t.top+=p+f+m))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(i,s){var n,o,a,r,h,l=i.nodeName.toLowerCase();return"area"===l?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(l)?(r=!i.disabled,r&&(h=t(i).closest("fieldset")[0],h&&(r=!h.disabled))):r="a"===l?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var n=!1;t(document).on("mouseup",function(){n=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,o="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("
"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),h?(i=h.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidtht.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=r-e.minWidth),s&&l&&(t.left=r-e.maxWidth),a&&c&&(t.top=h-e.minHeight),n&&c&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element +},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,m=s.maxWidth&&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=h,_&&(p+=l),v&&(f+=c),m&&(p-=l),g&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable});/** + * Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler + * Licensed under MIT + * @author Ariel Flesler + * @version 2.1.2 + */ +;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1=f[g]?0:Math.min(f[g],n));!a&&1-1){targetElements.on(evt+EVENT_NAMESPACE,function elementToggle(event){$.powerTip.toggle(this,event)})}else{targetElements.on(evt+EVENT_NAMESPACE,function elementOpen(event){$.powerTip.show(this,event)})}});$.each(options.closeEvents,function(idx,evt){if($.inArray(evt,options.openEvents)<0){targetElements.on(evt+EVENT_NAMESPACE,function elementClose(event){$.powerTip.hide(this,!isMouseEvent(event))})}});targetElements.on("keydown"+EVENT_NAMESPACE,function elementKeyDown(event){if(event.keyCode===27){$.powerTip.hide(this,true)}})}return targetElements};$.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:false,offset:10,mouseOnToPopup:false,manual:false,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]};$.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]};$.powerTip={show:function apiShowTip(element,event){if(isMouseEvent(event)){trackMouse(event);session.previousX=event.pageX;session.previousY=event.pageY;$(element).data(DATA_DISPLAYCONTROLLER).show()}else{$(element).first().data(DATA_DISPLAYCONTROLLER).show(true,true)}return element},reposition:function apiResetPosition(element){$(element).first().data(DATA_DISPLAYCONTROLLER).resetPosition();return element},hide:function apiCloseTip(element,immediate){var displayController;immediate=element?immediate:true;if(element){displayController=$(element).first().data(DATA_DISPLAYCONTROLLER)}else if(session.activeHover){displayController=session.activeHover.data(DATA_DISPLAYCONTROLLER)}if(displayController){displayController.hide(immediate)}return element},toggle:function apiToggle(element,event){if(session.activeHover&&session.activeHover.is(element)){$.powerTip.hide(element,!isMouseEvent(event))}else{$.powerTip.show(element,event)}return element}};$.powerTip.showTip=$.powerTip.show;$.powerTip.closeTip=$.powerTip.hide;function CSSCoordinates(){var me=this;me.top="auto";me.left="auto";me.right="auto";me.bottom="auto";me.set=function(property,value){if($.isNumeric(value)){me[property]=Math.round(value)}}}function DisplayController(element,options,tipController){var hoverTimer=null,myCloseDelay=null;function openTooltip(immediate,forceOpen){cancelTimer();if(!element.data(DATA_HASACTIVEHOVER)){if(!immediate){session.tipOpenImminent=true;hoverTimer=setTimeout(function intentDelay(){hoverTimer=null;checkForIntent()},options.intentPollInterval)}else{if(forceOpen){element.data(DATA_FORCEDOPEN,true)}closeAnyDelayed();tipController.showTip(element)}}else{cancelClose()}}function closeTooltip(disableDelay){if(myCloseDelay){myCloseDelay=session.closeDelayTimeout=clearTimeout(myCloseDelay);session.delayInProgress=false}cancelTimer();session.tipOpenImminent=false;if(element.data(DATA_HASACTIVEHOVER)){element.data(DATA_FORCEDOPEN,false);if(!disableDelay){session.delayInProgress=true;session.closeDelayTimeout=setTimeout(function closeDelay(){session.closeDelayTimeout=null;tipController.hideTip(element);session.delayInProgress=false;myCloseDelay=null},options.closeDelay);myCloseDelay=session.closeDelayTimeout}else{tipController.hideTip(element)}}}function checkForIntent(){var xDifference=Math.abs(session.previousX-session.currentX),yDifference=Math.abs(session.previousY-session.currentY),totalDifference=xDifference+yDifference;if(totalDifference",{id:options.popupId});if($body.length===0){$body=$("body")}$body.append(tipElement);session.tooltips=session.tooltips?session.tooltips.add(tipElement):tipElement}if(options.followMouse){if(!tipElement.data(DATA_HASMOUSEMOVE)){$document.on("mousemove"+EVENT_NAMESPACE,positionTipOnCursor);$window.on("scroll"+EVENT_NAMESPACE,positionTipOnCursor);tipElement.data(DATA_HASMOUSEMOVE,true)}}function beginShowTip(element){element.data(DATA_HASACTIVEHOVER,true);tipElement.queue(function queueTipInit(next){showTip(element);next()})}function showTip(element){var tipContent;if(!element.data(DATA_HASACTIVEHOVER)){return}if(session.isTipOpen){if(!session.isClosing){hideTip(session.activeHover)}tipElement.delay(100).queue(function queueTipAgain(next){showTip(element);next()});return}element.trigger("powerTipPreRender");tipContent=getTooltipContent(element);if(tipContent){tipElement.empty().append(tipContent)}else{return}element.trigger("powerTipRender");session.activeHover=element;session.isTipOpen=true;tipElement.data(DATA_MOUSEONTOTIP,options.mouseOnToPopup);tipElement.addClass(options.popupClass);if(!options.followMouse||element.data(DATA_FORCEDOPEN)){positionTipOnElement(element);session.isFixedTipOpen=true}else{positionTipOnCursor()}if(!element.data(DATA_FORCEDOPEN)&&!options.followMouse){$document.on("click"+EVENT_NAMESPACE,function documentClick(event){var target=event.target;if(target!==element[0]){if(options.mouseOnToPopup){if(target!==tipElement[0]&&!$.contains(tipElement[0],target)){$.powerTip.hide()}}else{$.powerTip.hide()}}})}if(options.mouseOnToPopup&&!options.manual){tipElement.on("mouseenter"+EVENT_NAMESPACE,function tipMouseEnter(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).cancel()}});tipElement.on("mouseleave"+EVENT_NAMESPACE,function tipMouseLeave(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).hide()}})}tipElement.fadeIn(options.fadeInTime,function fadeInCallback(){if(!session.desyncTimeout){session.desyncTimeout=setInterval(closeDesyncedTip,500)}element.trigger("powerTipOpen")})}function hideTip(element){session.isClosing=true;session.isTipOpen=false;session.desyncTimeout=clearInterval(session.desyncTimeout);element.data(DATA_HASACTIVEHOVER,false);element.data(DATA_FORCEDOPEN,false);$document.off("click"+EVENT_NAMESPACE);tipElement.off(EVENT_NAMESPACE);tipElement.fadeOut(options.fadeOutTime,function fadeOutCallback(){var coords=new CSSCoordinates;session.activeHover=null;session.isClosing=false;session.isFixedTipOpen=false;tipElement.removeClass();coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);tipElement.css(coords);element.trigger("powerTipClose")})}function positionTipOnCursor(){var tipWidth,tipHeight,coords,collisions,collisionCount;if(!session.isFixedTipOpen&&(session.isTipOpen||session.tipOpenImminent&&tipElement.data(DATA_HASMOUSEMOVE))){tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=new CSSCoordinates;coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);collisions=getViewportCollisions(coords,tipWidth,tipHeight);if(collisions!==Collision.none){collisionCount=countFlags(collisions);if(collisionCount===1){if(collisions===Collision.right){coords.set("left",session.scrollLeft+session.windowWidth-tipWidth)}else if(collisions===Collision.bottom){coords.set("top",session.scrollTop+session.windowHeight-tipHeight)}}else{coords.set("left",session.currentX-tipWidth-options.offset);coords.set("top",session.currentY-tipHeight-options.offset)}}tipElement.css(coords)}}function positionTipOnElement(element){var priorityList,finalPlacement;if(options.smartPlacement||options.followMouse&&element.data(DATA_FORCEDOPEN)){priorityList=$.fn.powerTip.smartPlacementLists[options.placement];$.each(priorityList,function(idx,pos){var collisions=getViewportCollisions(placeTooltip(element,pos),tipElement.outerWidth(),tipElement.outerHeight());finalPlacement=pos;return collisions!==Collision.none})}else{placeTooltip(element,options.placement);finalPlacement=options.placement}tipElement.removeClass("w nw sw e ne se n s w se-alt sw-alt ne-alt nw-alt");tipElement.addClass(finalPlacement)}function placeTooltip(element,placement){var iterationCount=0,tipWidth,tipHeight,coords=new CSSCoordinates;coords.set("top",0);coords.set("left",0);tipElement.css(coords);do{tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=placementCalculator.compute(element,placement,tipWidth,tipHeight,options.offset);tipElement.css(coords)}while(++iterationCount<=5&&(tipWidth!==tipElement.outerWidth()||tipHeight!==tipElement.outerHeight()));return coords}function closeDesyncedTip(){var isDesynced=false,hasDesyncableCloseEvent=$.grep(["mouseleave","mouseout","blur","focusout"],function(eventType){return $.inArray(eventType,options.closeEvents)!==-1}).length>0;if(session.isTipOpen&&!session.isClosing&&!session.delayInProgress&&hasDesyncableCloseEvent){if(session.activeHover.data(DATA_HASACTIVEHOVER)===false||session.activeHover.is(":disabled")){isDesynced=true}else if(!isMouseOver(session.activeHover)&&!session.activeHover.is(":focus")&&!session.activeHover.data(DATA_FORCEDOPEN)){if(tipElement.data(DATA_MOUSEONTOTIP)){if(!isMouseOver(tipElement)){isDesynced=true}}else{isDesynced=true}}if(isDesynced){hideTip(session.activeHover)}}}this.showTip=beginShowTip;this.hideTip=hideTip;this.resetPosition=positionTipOnElement}function isSvgElement(element){return Boolean(window.SVGElement&&element[0]instanceof SVGElement)}function isMouseEvent(event){return Boolean(event&&$.inArray(event.type,MOUSE_EVENTS)>-1&&typeof event.pageX==="number")}function initTracking(){if(!session.mouseTrackingActive){session.mouseTrackingActive=true;getViewportDimensions();$(getViewportDimensions);$document.on("mousemove"+EVENT_NAMESPACE,trackMouse);$window.on("resize"+EVENT_NAMESPACE,trackResize);$window.on("scroll"+EVENT_NAMESPACE,trackScroll)}}function getViewportDimensions(){session.scrollLeft=$window.scrollLeft();session.scrollTop=$window.scrollTop();session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackResize(){session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackScroll(){var x=$window.scrollLeft(),y=$window.scrollTop();if(x!==session.scrollLeft){session.currentX+=x-session.scrollLeft;session.scrollLeft=x}if(y!==session.scrollTop){session.currentY+=y-session.scrollTop;session.scrollTop=y}}function trackMouse(event){session.currentX=event.pageX;session.currentY=event.pageY}function isMouseOver(element){var elementPosition=element.offset(),elementBox=element[0].getBoundingClientRect(),elementWidth=elementBox.right-elementBox.left,elementHeight=elementBox.bottom-elementBox.top;return session.currentX>=elementPosition.left&&session.currentX<=elementPosition.left+elementWidth&&session.currentY>=elementPosition.top&&session.currentY<=elementPosition.top+elementHeight}function getTooltipContent(element){var tipText=element.data(DATA_POWERTIP),tipObject=element.data(DATA_POWERTIPJQ),tipTarget=element.data(DATA_POWERTIPTARGET),targetElement,content;if(tipText){if($.isFunction(tipText)){tipText=tipText.call(element[0])}content=tipText}else if(tipObject){if($.isFunction(tipObject)){tipObject=tipObject.call(element[0])}if(tipObject.length>0){content=tipObject.clone(true,true)}}else if(tipTarget){targetElement=$("#"+tipTarget);if(targetElement.length>0){content=targetElement.html()}}return content}function getViewportCollisions(coords,elementWidth,elementHeight){var viewportTop=session.scrollTop,viewportLeft=session.scrollLeft,viewportBottom=viewportTop+session.windowHeight,viewportRight=viewportLeft+session.windowWidth,collisions=Collision.none;if(coords.topviewportBottom||Math.abs(coords.bottom-session.windowHeight)>viewportBottom){collisions|=Collision.bottom}if(coords.leftviewportRight){collisions|=Collision.left}if(coords.left+elementWidth>viewportRight||coords.right1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);/*! SmartMenus jQuery Plugin - v1.1.0 - September 17, 2017 + * http://www.smartmenus.org/ + * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)})(function($){function initMouseDetection(t){var e=".smartmenus_mouse";if(mouseDetectionEnabled||t)mouseDetectionEnabled&&t&&($(document).off(e),mouseDetectionEnabled=!1);else{var i=!0,s=null,o={mousemove:function(t){var e={x:t.pageX,y:t.pageY,timeStamp:(new Date).getTime()};if(s){var o=Math.abs(s.x-e.x),a=Math.abs(s.y-e.y);if((o>0||a>0)&&2>=o&&2>=a&&300>=e.timeStamp-s.timeStamp&&(mouse=!0,i)){var n=$(t.target).closest("a");n.is("a")&&$.each(menuTrees,function(){return $.contains(this.$root[0],n[0])?(this.itemEnter({currentTarget:n[0]}),!1):void 0}),i=!1}}s=e}};o[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(t){isTouchEvent(t.originalEvent)&&(mouse=!1)},$(document).on(getEventsNS(o,e)),mouseDetectionEnabled=!0}}function isTouchEvent(t){return!/^(4|mouse)$/.test(t.pointerType)}function getEventsNS(t,e){e||(e="");var i={};for(var s in t)i[s.split(" ").join(e+" ")+e]=t[s];return i}var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||function(t){clearTimeout(t)},canAnimate=!!$.fn.animate;return $.SmartMenus=function(t,e){this.$root=$(t),this.opts=e,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in t.style||"webkitPerspective"in t.style,this.wasCollapsible=!1,this.init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(t){var e=this;if(!t){menuTrees.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var i=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},i)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},i),"a"),i+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},i)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},i)),this.opts.subIndicators&&(this.$subArrow=$("").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()}if(this.$firstSub=this.$root.find("ul").each(function(){e.menuInit($(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var s=/(index|default)\.[^#\?\/]*/i,o=/#.*/,a=window.location.href.replace(s,""),n=a.replace(o,"");this.$root.find("a").each(function(){var t=this.href.replace(s,""),i=$(this);(t==a||t==n)&&(i.addClass("current"),e.opts.markCurrentTree&&i.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(t){if(!t){var e=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(e),e+=this.rootId,$(document).off(e),$(window).off(e),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var i=this;this.$root.find("ul").each(function(){var t=$(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.dataSM("shown-before")&&((i.opts.subMenusMinWidth||i.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(t.attr("id")||"").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var t=$(this);0==t.attr("id").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1))},disable:function(t){if(!this.disabled){if(this.menuHideAll(),!t&&!this.opts.isPopup&&this.$root.is(":visible")){var e=this.$root.offset();this.$disableOverlay=$('
').css({position:"absolute",top:e.top,left:e.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(t){return this.$touchScrollingSub?(this.$touchScrollingSub=null,void 0):((this.visibleSubMenus.length&&!$.contains(this.$root[0],t.target)||$(t.target).closest("a").length)&&this.menuHideAll(),void 0)},docTouchEnd:function(){if(this.lastTouch){if(!(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&$.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var e=t.originalEvent.touches[0];this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY}},docTouchStart:function(t){var e=t.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(t){for(var e=$(t).closest("ul");e.dataSM("in-mega");)e=e.parent().closest("ul");return e[0]||null},getHeight:function(t){return this.getOffset(t,!0)},getOffset:function(t,e){var i;"none"==t.css("display")&&(i={position:t[0].style.position,visibility:t[0].style.visibility},t.css({position:"absolute",visibility:"hidden"}).show());var s=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),o=s&&(e?s.height||s.bottom-s.top:s.width||s.right-s.left);return o||0===o||(o=e?t[0].offsetHeight:t[0].offsetWidth),i&&t.hide().css(i),o},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$root.css("z-index"))),isNaN(e)?1:e},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},getViewport:function(t){var e=t?"Height":"Width",i=document.documentElement["client"+e],s=window["inner"+e];return s&&(i=Math.min(i,s)),i},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(t){return this.getOffset(t)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(t){return this.handleEvents()&&!this.isLinkInMegaMenu(t)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var t="fixed"==this.$root.css("position");return t||this.$root.parentsUntil("body").each(function(){return"fixed"==$(this).css("position")?(t=!0,!1):void 0}),t},isLinkInMegaMenu:function(t){return $(this.getClosestMenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(t,e){var i=t.closest("ul"),s=i.dataSM("level");if(s>1&&(!this.activatedItems[s-2]||this.activatedItems[s-2][0]!=i.dataSM("parent-a")[0])){var o=this;$(i.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(i).each(function(){o.itemActivate($(this).dataSM("parent-a"))})}if((!this.isCollapsible()||e)&&this.menuHideSubMenus(this.activatedItems[s-1]&&this.activatedItems[s-1][0]==t[0]?s:s-1),this.activatedItems[s-1]=t,this.$root.triggerHandler("activate.smapi",t[0])!==!1){var a=t.dataSM("sub");a&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(a)}},itemBlur:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&this.$root.triggerHandler("blur.smapi",e[0])},itemClick:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==e.closest("ul")[0])return this.$touchScrollingSub=null,t.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",e[0])===!1)return!1;var i=$(t.target).is(".sub-arrow"),s=e.dataSM("sub"),o=s?2==s.dataSM("level"):!1,a=this.isCollapsible(),n=/toggle$/.test(this.opts.collapsibleBehavior),r=/link$/.test(this.opts.collapsibleBehavior),h=/^accordion/.test(this.opts.collapsibleBehavior);if(s&&!s.is(":visible")){if((!r||!a||i)&&(this.opts.showOnClick&&o&&(this.clickActivated=!0),this.itemActivate(e,h),s.is(":visible")))return this.focusActivated=!0,!1}else if(a&&(n||i))return this.itemActivate(e,h),this.menuHide(s),n&&(this.focusActivated=!1),!1;return this.opts.showOnClick&&o||e.hasClass("disabled")||this.$root.triggerHandler("select.smapi",e[0])===!1?!1:void 0}},itemDown:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&e.dataSM("mousedown",!0)},itemEnter:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var i=this;this.showTimeout=setTimeout(function(){i.itemActivate(e)},this.opts.showOnClick&&1==e.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",e[0])}},itemFocus:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(!this.focusActivated||this.isTouchMode()&&e.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==e[0]||this.itemActivate(e,!0),this.$root.triggerHandler("focus.smapi",e[0]))},itemLeave:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(this.isTouchMode()||(e[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),e.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",e[0]))},menuHide:function(t){if(this.$root.triggerHandler("beforehide.smapi",t[0])!==!1&&(canAnimate&&t.stop(!0,!0),"none"!=t.css("display"))){var e=function(){t.css("z-index","")};this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,t,e):t.hide(this.opts.collapsibleHideDuration,e):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,t,e):t.hide(this.opts.hideDuration,e),t.dataSM("scroll")&&(this.menuScrollStop(t),t.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),t.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),t.attr({"aria-expanded":"false","aria-hidden":"true"});var i=t.dataSM("level");this.activatedItems.splice(i-1,1),this.visibleSubMenus.splice($.inArray(t,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",t[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var t=this.opts.isPopup?1:0,e=this.visibleSubMenus.length-1;e>=t;e--)this.menuHide(this.visibleSubMenus[e]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(t){for(var e=this.activatedItems.length-1;e>=t;e--){var i=this.activatedItems[e].dataSM("sub");i&&this.menuHide(i)}},menuInit:function(t){if(!t.dataSM("in-mega")){t.hasClass("mega-menu")&&t.find("ul").dataSM("in-mega",!0);for(var e=2,i=t[0];(i=i.parentNode.parentNode)!=this.$root[0];)e++;var s=t.prevAll("a").eq(-1);s.length||(s=t.prevAll().find("a").eq(-1)),s.addClass("has-submenu").dataSM("sub",t),t.dataSM("parent-a",s).dataSM("level",e).parent().dataSM("sub",t);var o=s.attr("id")||this.accessIdPrefix+ ++this.idInc,a=t.attr("id")||this.accessIdPrefix+ ++this.idInc;s.attr({id:o,"aria-haspopup":"true","aria-controls":a,"aria-expanded":"false"}),t.attr({id:a,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),this.opts.subIndicators&&s[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var e,i,s=t.dataSM("parent-a"),o=s.closest("li"),a=o.parent(),n=t.dataSM("level"),r=this.getWidth(t),h=this.getHeight(t),u=s.offset(),l=u.left,c=u.top,d=this.getWidth(s),m=this.getHeight(s),p=$(window),f=p.scrollLeft(),v=p.scrollTop(),b=this.getViewportWidth(),S=this.getViewportHeight(),g=a.parent().is("[data-sm-horizontal-sub]")||2==n&&!a.hasClass("sm-vertical"),M=this.opts.rightToLeftSubMenus&&!o.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&o.is("[data-sm-reverse]"),w=2==n?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,T=2==n?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(g?(e=M?d-r-w:w,i=this.opts.bottomToTopSubMenus?-h-T:m+T):(e=M?w-r:d-w,i=this.opts.bottomToTopSubMenus?m-T-h:T),this.opts.keepInViewport){var y=l+e,I=c+i;if(M&&f>y?e=g?f-y+e:d-w:!M&&y+r>f+b&&(e=g?f+b-r-y+e:w-r),g||(S>h&&I+h>v+S?i+=v+S-h-I:(h>=S||v>I)&&(i+=v-I)),g&&(I+h>v+S+.49||v>I)||!g&&h>S+.49){var x=this;t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",$([$('')[0],$('')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=$(this).hasClass("scroll-up"),x.menuScroll(t)},mouseleave:function(e){x.menuScrollStop(t),x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(t){t.preventDefault()}}).insertAfter(t));var A=".smartmenus_scroll";if(t.dataSM("scroll",{y:this.cssTransforms3d?0:i-m,step:1,itemH:m,subH:h,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(e){x.menuScrollOver(t,e)},mouseout:function(e){x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(e){x.menuScrollMousewheel(t,e)}},A)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:e+(parseInt(t.css("border-left-width"))||0),width:r-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(g&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var C={};C[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(e){x.menuScrollTouch(t,e)},t.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(C,A))}}}t.css({top:"auto",left:"0",marginLeft:e,marginTop:i-m})},menuScroll:function(t,e,i){var s,o=t.dataSM("scroll"),a=t.dataSM("scroll-arrows"),n=o.up?o.upEnd:o.downEnd;if(!e&&o.momentum){if(o.momentum*=.92,s=o.momentum,.5>s)return this.menuScrollStop(t),void 0}else s=i||(e||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(o.step));var r=t.dataSM("level");if(this.activatedItems[r-1]&&this.activatedItems[r-1].dataSM("sub")&&this.activatedItems[r-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(r-1),o.y=o.up&&o.y>=n||!o.up&&n>=o.y?o.y:Math.abs(n-o.y)>s?o.y+(o.up?s:-s):n,t.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(o.up&&o.y>o.downEnd||!o.up&&o.y0;t.dataSM("scroll-arrows").eq(i?0:1).is(":visible")&&(t.dataSM("scroll").up=i,this.menuScroll(t,!0))}e.preventDefault()},menuScrollOut:function(t,e){mouse&&(/^scroll-(up|down)/.test((e.relatedTarget||"").className)||(t[0]==e.relatedTarget||$.contains(t[0],e.relatedTarget))&&this.getClosestMenu(e.relatedTarget)==t[0]||t.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(t,e){if(mouse&&!/^scroll-(up|down)/.test(e.target.className)&&this.getClosestMenu(e.target)==t[0]){this.menuScrollRefreshData(t);var i=t.dataSM("scroll"),s=$(window).scrollTop()-t.dataSM("parent-a").offset().top-i.itemH;t.dataSM("scroll-arrows").eq(0).css("margin-top",s).end().eq(1).css("margin-top",s+this.getViewportHeight()-i.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var e=t.dataSM("scroll"),i=$(window).scrollTop()-t.dataSM("parent-a").offset().top-e.itemH;this.cssTransforms3d&&(i=-(parseFloat(t.css("margin-top"))-i)),$.extend(e,{upEnd:i,downEnd:i+this.getViewportHeight()-e.subH})},menuScrollStop:function(t){return this.scrollTimeout?(cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,t.dataSM("scroll").step=1,!0):void 0},menuScrollTouch:function(t,e){if(e=e.originalEvent,isTouchEvent(e)){var i=this.getTouchPoint(e);if(this.getClosestMenu(i.target)==t[0]){var s=t.dataSM("scroll");if(/(start|down)$/i.test(e.type))this.menuScrollStop(t)?(e.preventDefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,this.menuScrollRefreshData(t),$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp});else if(/move$/i.test(e.type)){var o=void 0!==s.touchY?s.touchY:s.touchStartY;if(void 0!==o&&o!=i.pageY){this.$touchScrollingSub=t;var a=i.pageY>o;void 0!==s.up&&s.up!=a&&$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp}),$.extend(s,{up:a,touchY:i.pageY}),this.menuScroll(t,!0,Math.abs(i.pageY-o))}e.preventDefault()}else void 0!==s.touchY&&((s.momentum=15*Math.pow(Math.abs(i.pageY-s.touchStartY)/(e.timeStamp-s.touchStartTime),2))&&(this.menuScrollStop(t),this.menuScroll(t),e.preventDefault()),delete s.touchY)}}},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",t[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",t[0])!==!1&&(t.dataSM("shown-before",!0),canAnimate&&t.stop(!0,!0),!t.is(":visible"))){var e=t.dataSM("parent-a"),i=this.isCollapsible();if((this.opts.keepHighlighted||i)&&e.addClass("highlighted"),i)t.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(t.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(t.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&t.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var s=this.getWidth(t);t.css("max-width",this.opts.subMenusMaxWidth),s>this.getWidth(t)&&t.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(t)}var o=function(){t.css("overflow","")};i?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,t,o):t.show(this.opts.collapsibleShowDuration,o):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,t,o):t.show(this.opts.showDuration,o),e.attr("aria-expanded","true"),t.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}},popupHide:function(t){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},t?1:this.opts.hideTimeout)},popupShow:function(t,e){if(!this.opts.isPopup)return alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'),void 0;if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:t,top:e});var i=this,s=function(){i.$root.css("overflow","")};canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,s):this.$root.show(this.opts.showDuration,s),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(t){if(this.handleEvents())switch(t.keyCode){case 27:var e=this.activatedItems[0];if(e){this.menuHideAll(),e[0].focus();var i=e.dataSM("sub");i&&this.menuHide(i)}break;case 32:var s=$(t.target);if(s.is("a")&&this.handleItemEvents(s)){var i=s.dataSM("sub");i&&!i.is(":visible")&&(this.itemClick({currentTarget:t.target}),t.preventDefault())}}},rootOut:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(t){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==t.type){var e=this.isCollapsible();this.wasCollapsible&&e||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=e}}else if(this.$disableOverlay){var i=this.$root.offset();this.$disableOverlay.css({top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),$.fn.dataSM=function(t,e){return e?this.data(t+"_smartmenus",e):this.data(t+"_smartmenus")},$.fn.removeDataSM=function(t){return this.removeData(t+"_smartmenus")},$.fn.smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return Array.prototype.shift.call(args),this.each(function(){var t=$(this).data("smartmenus");t&&t[method]&&t[method].apply(t,args)})}return this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts))})},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,e){t.fadeOut(200,e)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,e){t.slideDown(200,e)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,e){t.slideUp(200,e)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$}); \ No newline at end of file diff --git a/external/glfw-3.3.4/docs/html/main_8dox.html b/external/glfw-3.3.4/docs/html/main_8dox.html new file mode 100644 index 0000000..20f0d76 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/main_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: main.dox File Reference + + + + + + + + + + +
+ + + + + + + + + +
+
+ + +
+ +
+ +
+
+
+
main.dox File Reference
+
+
+
+ + + diff --git a/external/glfw-3.3.4/docs/html/menu.js b/external/glfw-3.3.4/docs/html/menu.js new file mode 100644 index 0000000..2fe2214 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/menu.js @@ -0,0 +1,51 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + 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. + + @licend The above is the entire license notice for the JavaScript code in this file + */ +function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { + function makeTree(data,relPath) { + var result=''; + if ('children' in data) { + result+=''; + } + return result; + } + + $('#main-nav').append(makeTree(menudata,relPath)); + $('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu'); + if (searchEnabled) { + if (serverSide) { + $('#main-menu').append('
  • '); + } else { + $('#main-menu').append('
  • '); + } + } + $('#main-menu').smartmenus(); +} +/* @license-end */ diff --git a/external/glfw-3.3.4/docs/html/menudata.js b/external/glfw-3.3.4/docs/html/menudata.js new file mode 100644 index 0000000..082dbe1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/menudata.js @@ -0,0 +1,30 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + 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. + + @licend The above is the entire license notice for the JavaScript code in this file +*/ +var menudata={children:[ +{text:"Introduction",url:"index.html"}, +{text:"Tutorial",url:"quick_guide.html"}, +{text:"Guides",url:"pages.html"}, +{text:"Reference",url:"modules.html"}, +{text:"Files",url:"files.html"}]} diff --git a/external/glfw-3.3.4/docs/html/modules.html b/external/glfw-3.3.4/docs/html/modules.html new file mode 100644 index 0000000..031eb02 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/modules.html @@ -0,0 +1,94 @@ + + + + + + + +GLFW: Reference + + + + + + + + + + +
    + + + + + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    Reference
    +
    +
    +
    Here is a list of all modules:
    +
    [detail level 12]
    + + + + + + + + + + + + + + + + +
     Context referenceFunctions and types related to OpenGL and OpenGL ES contexts
     Initialization, version and error referenceFunctions and types related to initialization and error handling
     Error codesError codes
     Input referenceFunctions and types related to input handling
     Gamepad axesGamepad axes
     Gamepad buttonsGamepad buttons
     Joystick hat statesJoystick hat states
     JoysticksJoystick IDs
     Keyboard keysKeyboard key IDs
     Modifier key flagsModifier key flags
     Mouse buttonsMouse button IDs
     Standard cursor shapesStandard system cursor shapes
     Monitor referenceFunctions and types related to monitors
     Native accessFunctions related to accessing native handles
     Vulkan support referenceFunctions and types related to Vulkan
     Window referenceFunctions and types related to windows
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/monitor_8dox.html b/external/glfw-3.3.4/docs/html/monitor_8dox.html new file mode 100644 index 0000000..08298b1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/monitor_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: monitor.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    monitor.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/monitor_guide.html b/external/glfw-3.3.4/docs/html/monitor_guide.html new file mode 100644 index 0000000..1e682d3 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/monitor_guide.html @@ -0,0 +1,222 @@ + + + + + + + +GLFW: Monitor guide + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Monitor guide
    +
    +
    + +

    This guide introduces the monitor related functions of GLFW. For details on a specific function in this category, see the Monitor reference. There are also guides for the other areas of GLFW.

    + +

    +Monitor objects

    +

    A monitor object represents a currently connected monitor and is represented as a pointer to the opaque type GLFWmonitor. Monitor objects cannot be created or destroyed by the application and retain their addresses until the monitors they represent are disconnected or until the library is terminated.

    +

    Each monitor has a current video mode, a list of supported video modes, a virtual position, a human-readable name, an estimated physical size and a gamma ramp. One of the monitors is the primary monitor.

    +

    The virtual position of a monitor is in screen coordinates and, together with the current video mode, describes the viewports that the connected monitors provide into the virtual desktop that spans them.

    +

    To see how GLFW views your monitor setup and its available video modes, run the monitors test program.

    +

    +Retrieving monitors

    +

    The primary monitor is returned by glfwGetPrimaryMonitor. It is the user's preferred monitor and is usually the one with global UI elements like task bar or menu bar.

    +
    +
    GLFWmonitor * glfwGetPrimaryMonitor(void)
    Returns the primary monitor.
    +
    struct GLFWmonitor GLFWmonitor
    Opaque monitor object.
    Definition: glfw3.h:1170
    +

    You can retrieve all currently connected monitors with glfwGetMonitors. See the reference documentation for the lifetime of the returned array.

    +
    int count;
    +
    GLFWmonitor** monitors = glfwGetMonitors(&count);
    +
    GLFWmonitor ** glfwGetMonitors(int *count)
    Returns the currently connected monitors.
    +

    The primary monitor is always the first monitor in the returned array, but other monitors may be moved to a different index when a monitor is connected or disconnected.

    +

    +Monitor configuration changes

    +

    If you wish to be notified when a monitor is connected or disconnected, set a monitor callback.

    +
    glfwSetMonitorCallback(monitor_callback);
    +
    GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback)
    Sets the monitor configuration callback.
    +

    The callback function receives the handle for the monitor that has been connected or disconnected and the event that occurred.

    +
    void monitor_callback(GLFWmonitor* monitor, int event)
    +
    {
    +
    if (event == GLFW_CONNECTED)
    +
    {
    +
    // The monitor was connected
    +
    }
    +
    else if (event == GLFW_DISCONNECTED)
    +
    {
    +
    // The monitor was disconnected
    +
    }
    +
    }
    +
    #define GLFW_DISCONNECTED
    Definition: glfw3.h:1104
    +
    #define GLFW_CONNECTED
    Definition: glfw3.h:1103
    +

    If a monitor is disconnected, all windows that are full screen on it will be switched to windowed mode before the callback is called. Only glfwGetMonitorName and glfwGetMonitorUserPointer will return useful values for a disconnected monitor and only before the monitor callback returns.

    +

    +Monitor properties

    +

    Each monitor has a current video mode, a list of supported video modes, a virtual position, a content scale, a human-readable name, a user pointer, an estimated physical size and a gamma ramp.

    +

    +Video modes

    +

    GLFW generally does a good job selecting a suitable video mode when you create a full screen window, change its video mode or make a windowed one full screen, but it is sometimes useful to know exactly which video modes are supported.

    +

    Video modes are represented as GLFWvidmode structures. You can get an array of the video modes supported by a monitor with glfwGetVideoModes. See the reference documentation for the lifetime of the returned array.

    +
    int count;
    +
    GLFWvidmode* modes = glfwGetVideoModes(monitor, &count);
    +
    const GLFWvidmode * glfwGetVideoModes(GLFWmonitor *monitor, int *count)
    Returns the available video modes for the specified monitor.
    +
    Video mode type.
    Definition: glfw3.h:1655
    +

    To get the current video mode of a monitor call glfwGetVideoMode. See the reference documentation for the lifetime of the returned pointer.

    +
    const GLFWvidmode* mode = glfwGetVideoMode(monitor);
    +
    const GLFWvidmode * glfwGetVideoMode(GLFWmonitor *monitor)
    Returns the current mode of the specified monitor.
    +

    The resolution of a video mode is specified in screen coordinates, not pixels.

    +

    +Physical size

    +

    The physical size of a monitor in millimetres, or an estimation of it, can be retrieved with glfwGetMonitorPhysicalSize. This has no relation to its current resolution, i.e. the width and height of its current video mode.

    +
    int width_mm, height_mm;
    +
    glfwGetMonitorPhysicalSize(monitor, &width_mm, &height_mm);
    +
    void glfwGetMonitorPhysicalSize(GLFWmonitor *monitor, int *widthMM, int *heightMM)
    Returns the physical size of the monitor.
    +

    While this can be used to calculate the raw DPI of a monitor, this is often not useful. Instead use the monitor content scale and window content scale to scale your content.

    +

    +Content scale

    +

    The content scale for a monitor can be retrieved with glfwGetMonitorContentScale.

    +
    float xscale, yscale;
    +
    glfwGetMonitorContentScale(monitor, &xscale, &yscale);
    +
    void glfwGetMonitorContentScale(GLFWmonitor *monitor, float *xscale, float *yscale)
    Retrieves the content scale for the specified monitor.
    +

    The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.

    +

    The content scale may depend on both the monitor resolution and pixel density and on user settings. It may be very different from the raw DPI calculated from the physical size and current resolution.

    +

    +Virtual position

    +

    The position of the monitor on the virtual desktop, in screen coordinates, can be retrieved with glfwGetMonitorPos.

    +
    int xpos, ypos;
    +
    glfwGetMonitorPos(monitor, &xpos, &ypos);
    +
    void glfwGetMonitorPos(GLFWmonitor *monitor, int *xpos, int *ypos)
    Returns the position of the monitor's viewport on the virtual screen.
    +

    +Work area

    +

    The area of a monitor not occupied by global task bars or menu bars is the work area. This is specified in screen coordinates and can be retrieved with glfwGetMonitorWorkarea.

    +
    int xpos, ypos, width, height;
    +
    glfwGetMonitorWorkarea(monitor, &xpos, &ypos, &width, &height);
    +
    void glfwGetMonitorWorkarea(GLFWmonitor *monitor, int *xpos, int *ypos, int *width, int *height)
    Retrieves the work area of the monitor.
    +

    +Human-readable name

    +

    The human-readable, UTF-8 encoded name of a monitor is returned by glfwGetMonitorName. See the reference documentation for the lifetime of the returned string.

    +
    const char* name = glfwGetMonitorName(monitor);
    +
    const char * glfwGetMonitorName(GLFWmonitor *monitor)
    Returns the name of the specified monitor.
    +

    Monitor names are not guaranteed to be unique. Two monitors of the same model and make may have the same name. Only the monitor handle is guaranteed to be unique, and only until that monitor is disconnected.

    +

    +User pointer

    +

    Each monitor has a user pointer that can be set with glfwSetMonitorUserPointer and queried with glfwGetMonitorUserPointer. This can be used for any purpose you need and will not be modified by GLFW. The value will be kept until the monitor is disconnected or until the library is terminated.

    +

    The initial value of the pointer is NULL.

    +

    +Gamma ramp

    +

    The gamma ramp of a monitor can be set with glfwSetGammaRamp, which accepts a monitor handle and a pointer to a GLFWgammaramp structure.

    +
    +
    unsigned short red[256], green[256], blue[256];
    +
    +
    ramp.size = 256;
    +
    ramp.red = red;
    +
    ramp.green = green;
    +
    ramp.blue = blue;
    +
    +
    for (i = 0; i < ramp.size; i++)
    +
    {
    +
    // Fill out gamma ramp arrays as desired
    +
    }
    +
    +
    glfwSetGammaRamp(monitor, &ramp);
    +
    void glfwSetGammaRamp(GLFWmonitor *monitor, const GLFWgammaramp *ramp)
    Sets the current gamma ramp for the specified monitor.
    +
    Gamma ramp.
    Definition: glfw3.h:1689
    +
    unsigned short * red
    Definition: glfw3.h:1692
    +
    unsigned short * blue
    Definition: glfw3.h:1698
    +
    unsigned int size
    Definition: glfw3.h:1701
    +
    unsigned short * green
    Definition: glfw3.h:1695
    +

    The gamma ramp data is copied before the function returns, so there is no need to keep it around once the ramp has been set.

    +

    It is recommended that your gamma ramp have the same size as the current gamma ramp for that monitor.

    +

    The current gamma ramp for a monitor is returned by glfwGetGammaRamp. See the reference documentation for the lifetime of the returned structure.

    +
    const GLFWgammaramp* ramp = glfwGetGammaRamp(monitor);
    +
    const GLFWgammaramp * glfwGetGammaRamp(GLFWmonitor *monitor)
    Returns the current gamma ramp for the specified monitor.
    +

    If you wish to set a regular gamma ramp, you can have GLFW calculate it for you from the desired exponent with glfwSetGamma, which in turn calls glfwSetGammaRamp with the resulting ramp.

    +
    glfwSetGamma(monitor, 1.0);
    +
    void glfwSetGamma(GLFWmonitor *monitor, float gamma)
    Generates a gamma ramp and sets it for the specified monitor.
    +

    To experiment with gamma correction via the glfwSetGamma function, run the gamma test program.

    +
    Note
    The software controlled gamma ramp is applied in addition to the hardware gamma correction, which today is usually an approximation of sRGB gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will produce the default (usually sRGB-like) behavior.
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/moving_8dox.html b/external/glfw-3.3.4/docs/html/moving_8dox.html new file mode 100644 index 0000000..165b724 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/moving_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: moving.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    moving.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/moving_guide.html b/external/glfw-3.3.4/docs/html/moving_guide.html new file mode 100644 index 0000000..9915487 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/moving_guide.html @@ -0,0 +1,367 @@ + + + + + + + +GLFW: Moving from GLFW 2 to 3 + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Moving from GLFW 2 to 3
    +
    +
    + +

    This is a transition guide for moving from GLFW 2 to 3. It describes what has changed or been removed, but does not include new features unless they are required when moving an existing code base onto the new API. For example, the new multi-monitor functions are required to create full screen windows with GLFW 3.

    +

    +Changed and removed features

    +

    +Renamed library and header file

    +

    The GLFW 3 header is named glfw3.h and moved to the GLFW directory, to avoid collisions with the headers of other major versions. Similarly, the GLFW 3 library is named glfw3, except when it's installed as a shared library on Unix-like systems, where it uses the soname libglfw.so.3.

    +
    Old syntax
    #include <GL/glfw.h>
    +
    +
    New syntax
    #include <GLFW/glfw3.h>
    +
    The header of the GLFW 3 API.
    +
    +

    +Removal of threading functions

    +

    The threading functions have been removed, including the per-thread sleep function. They were fairly primitive, under-used, poorly integrated and took time away from the focus of GLFW (i.e. context, input and window). There are better threading libraries available and native threading support is available in both C++11 and C11, both of which are gaining traction.

    +

    If you wish to use the C++11 or C11 facilities but your compiler doesn't yet support them, see the TinyThread++ and TinyCThread projects created by the original author of GLFW. These libraries implement a usable subset of the threading APIs in C++11 and C11, and in fact some GLFW 3 test programs use TinyCThread.

    +

    However, GLFW 3 has better support for use from multiple threads than GLFW 2 had. Contexts can be made current on any thread, although only a single thread at a time, and the documentation explicitly states which functions may be used from any thread and which must only be used from the main thread.

    +
    Removed functions
    glfwSleep, glfwCreateThread, glfwDestroyThread, glfwWaitThread, glfwGetThreadID, glfwCreateMutex, glfwDestroyMutex, glfwLockMutex, glfwUnlockMutex, glfwCreateCond, glfwDestroyCond, glfwWaitCond, glfwSignalCond, glfwBroadcastCond and glfwGetNumberOfProcessors.
    +
    Removed types
    GLFWthreadfun
    +

    +Removal of image and texture loading

    +

    The image and texture loading functions have been removed. They only supported the Targa image format, making them mostly useful for beginner level examples. To become of sufficiently high quality to warrant keeping them in GLFW 3, they would need not only to support other formats, but also modern extensions to OpenGL texturing. This would either add a number of external dependencies (libjpeg, libpng, etc.), or force GLFW to ship with inline versions of these libraries.

    +

    As there already are libraries doing this, it is unnecessary both to duplicate the work and to tie the duplicate to GLFW. The resulting library would also be platform-independent, as both OpenGL and stdio are available wherever GLFW is.

    +
    Removed functions
    glfwReadImage, glfwReadMemoryImage, glfwFreeImage, glfwLoadTexture2D, glfwLoadMemoryTexture2D and glfwLoadTextureImage2D.
    +

    +Removal of GLFWCALL macro

    +

    The GLFWCALL macro, which made callback functions use __stdcall on Windows, has been removed. GLFW is written in C, not Pascal. Removing this macro means there's one less thing for application programmers to remember, i.e. the requirement to mark all callback functions with GLFWCALL. It also simplifies the creation of DLLs and DLL link libraries, as there's no need to explicitly disable @n entry point suffixes.

    +
    Old syntax
    void GLFWCALL callback_function(...);
    +
    +
    New syntax
    void callback_function(...);
    +
    +

    +Window handle parameters

    +

    Because GLFW 3 supports multiple windows, window handle parameters have been added to all window-related GLFW functions and callbacks. The handle of a newly created window is returned by glfwCreateWindow (formerly glfwOpenWindow). Window handles are pointers to the opaque type GLFWwindow.

    +
    Old syntax
    glfwSetWindowTitle("New Window Title");
    +
    void glfwSetWindowTitle(GLFWwindow *window, const char *title)
    Sets the title of the specified window.
    +
    +
    New syntax
    glfwSetWindowTitle(window, "New Window Title");
    +
    +

    +Explicit monitor selection

    +

    GLFW 3 provides support for multiple monitors. To request a full screen mode window, instead of passing GLFW_FULLSCREEN you specify which monitor you wish the window to use. The glfwGetPrimaryMonitor function returns the monitor that GLFW 2 would have selected, but there are many other monitor functions. Monitor handles are pointers to the opaque type GLFWmonitor.

    +
    Old basic full screen
    glfwOpenWindow(640, 480, 8, 8, 8, 0, 24, 0, GLFW_FULLSCREEN);
    +
    +
    New basic full screen
    window = glfwCreateWindow(640, 480, "My Window", glfwGetPrimaryMonitor(), NULL);
    +
    GLFWmonitor * glfwGetPrimaryMonitor(void)
    Returns the primary monitor.
    +
    GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
    Creates a window and its associated context.
    +
    +
    Note
    The framebuffer bit depth parameters of glfwOpenWindow have been turned into window hints, but as they have been given sane defaults you rarely need to set these hints.
    +

    +Removal of automatic event polling

    +

    GLFW 3 does not automatically poll for events in glfwSwapBuffers, meaning you need to call glfwPollEvents or glfwWaitEvents yourself. Unlike buffer swap, which acts on a single window, the event processing functions act on all windows at once.

    +
    Old basic main loop
    while (...)
    +
    {
    +
    // Process input
    +
    // Render output
    + +
    }
    +
    void glfwSwapBuffers(GLFWwindow *window)
    Swaps the front and back buffers of the specified window.
    +
    +
    New basic main loop
    while (...)
    +
    {
    +
    // Process input
    +
    // Render output
    +
    glfwSwapBuffers(window);
    + +
    }
    +
    void glfwPollEvents(void)
    Processes all pending events.
    +
    +

    +Explicit context management

    +

    Each GLFW 3 window has its own OpenGL context and only you, the application programmer, can know which context should be current on which thread at any given time. Therefore, GLFW 3 leaves that decision to you.

    +

    This means that you need to call glfwMakeContextCurrent after creating a window before you can call any OpenGL functions.

    +

    +Separation of window and framebuffer sizes

    +

    Window positions and sizes now use screen coordinates, which may not be the same as pixels on machines with high-DPI monitors. This is important as OpenGL uses pixels, not screen coordinates. For example, the rectangle specified with glViewport needs to use pixels. Therefore, framebuffer size functions have been added. You can retrieve the size of the framebuffer of a window with glfwGetFramebufferSize function. A framebuffer size callback has also been added, which can be set with glfwSetFramebufferSizeCallback.

    +
    Old basic viewport setup
    glfwGetWindowSize(&width, &height);
    +
    glViewport(0, 0, width, height);
    +
    void glfwGetWindowSize(GLFWwindow *window, int *width, int *height)
    Retrieves the size of the content area of the specified window.
    +
    +
    New basic viewport setup
    glfwGetFramebufferSize(window, &width, &height);
    +
    glViewport(0, 0, width, height);
    +
    void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)
    Retrieves the size of the framebuffer of the specified window.
    +
    +

    +Window closing changes

    +

    The GLFW_OPENED window parameter has been removed. As long as the window has not been destroyed, whether through glfwDestroyWindow or glfwTerminate, the window is "open".

    +

    A user attempting to close a window is now just an event like any other. Unlike GLFW 2, windows and contexts created with GLFW 3 will never be destroyed unless you choose them to be. Each window now has a close flag that is set to GLFW_TRUE when the user attempts to close that window. By default, nothing else happens and the window stays visible. It is then up to you to either destroy the window, take some other action or ignore the request.

    +

    You can query the close flag at any time with glfwWindowShouldClose and set it at any time with glfwSetWindowShouldClose.

    +
    Old basic main loop
    while (glfwGetWindowParam(GLFW_OPENED))
    +
    {
    +
    ...
    +
    }
    +
    +
    New basic main loop
    while (!glfwWindowShouldClose(window))
    +
    {
    +
    ...
    +
    }
    +
    int glfwWindowShouldClose(GLFWwindow *window)
    Checks the close flag of the specified window.
    +
    +

    The close callback no longer returns a value. Instead, it is called after the close flag has been set so it can override its value, if it chooses to, before event processing completes. You may however not call glfwDestroyWindow from the close callback (or any other window related callback).

    +
    Old syntax
    int GLFWCALL window_close_callback(void);
    +
    +
    New syntax
    void window_close_callback(GLFWwindow* window);
    +
    struct GLFWwindow GLFWwindow
    Opaque window object.
    Definition: glfw3.h:1182
    +
    +
    Note
    GLFW never clears the close flag to GLFW_FALSE, meaning you can use it for other reasons to close the window as well, for example the user choosing Quit from an in-game menu.
    +

    +Persistent window hints

    +

    The glfwOpenWindowHint function has been renamed to glfwWindowHint.

    +

    Window hints are no longer reset to their default values on window creation, but instead retain their values until modified by glfwWindowHint or glfwDefaultWindowHints, or until the library is terminated and re-initialized.

    +

    +Video mode enumeration

    +

    Video mode enumeration is now per-monitor. The glfwGetVideoModes function now returns all available modes for a specific monitor instead of requiring you to guess how large an array you need. The glfwGetDesktopMode function, which had poorly defined behavior, has been replaced by glfwGetVideoMode, which returns the current mode of a monitor.

    +

    +Removal of character actions

    +

    The action parameter of the character callback has been removed. This was an artefact of the origin of GLFW, i.e. being developed in English by a Swede. However, many keyboard layouts require more than one key to produce characters with diacritical marks. Even the Swedish keyboard layout requires this for uncommon cases like ü.

    +
    Old syntax
    void GLFWCALL character_callback(int character, int action);
    +
    +
    New syntax
    void character_callback(GLFWwindow* window, int character);
    +
    +

    +Cursor position changes

    +

    The glfwGetMousePos function has been renamed to glfwGetCursorPos, glfwSetMousePos to glfwSetCursorPos and glfwSetMousePosCallback to glfwSetCursorPosCallback.

    +

    The cursor position is now double instead of int, both for the direct functions and for the callback. Some platforms can provide sub-pixel cursor movement and this data is now passed on to the application where available. On platforms where this is not provided, the decimal part is zero.

    +

    GLFW 3 only allows you to position the cursor within a window using glfwSetCursorPos (formerly glfwSetMousePos) when that window is active. Unless the window is active, the function fails silently.

    +

    +Wheel position replaced by scroll offsets

    +

    The glfwGetMouseWheel function has been removed. Scrolling is the input of offsets and has no absolute position. The mouse wheel callback has been replaced by a scroll callback that receives two-dimensional floating point scroll offsets. This allows you to receive precise scroll data from for example modern touchpads.

    +
    Old syntax
    void GLFWCALL mouse_wheel_callback(int position);
    +
    +
    New syntax
    void scroll_callback(GLFWwindow* window, double xoffset, double yoffset);
    +
    +
    Removed functions
    glfwGetMouseWheel
    +

    +Key repeat action

    +

    The GLFW_KEY_REPEAT enable has been removed and key repeat is always enabled for both keys and characters. A new key action, GLFW_REPEAT, has been added to allow the key callback to distinguish an initial key press from a repeat. Note that glfwGetKey still returns only GLFW_PRESS or GLFW_RELEASE.

    +

    +Physical key input

    +

    GLFW 3 key tokens map to physical keys, unlike in GLFW 2 where they mapped to the values generated by the current keyboard layout. The tokens are named according to the values they would have using the standard US layout, but this is only a convenience, as most programmers are assumed to know that layout. This means that (for example) GLFW_KEY_LEFT_BRACKET is always a single key and is the same key in the same place regardless of what keyboard layouts the users of your program has.

    +

    The key input facility was never meant for text input, although using it that way worked slightly better in GLFW 2. If you were using it to input text, you should be using the character callback instead, on both GLFW 2 and 3. This will give you the characters being input, as opposed to the keys being pressed.

    +

    GLFW 3 has key tokens for all keys on a standard 105 key keyboard, so instead of having to remember whether to check for a or A, you now check for GLFW_KEY_A.

    +

    +Joystick function changes

    +

    The glfwGetJoystickPos function has been renamed to glfwGetJoystickAxes.

    +

    The glfwGetJoystickParam function and the GLFW_PRESENT, GLFW_AXES and GLFW_BUTTONS tokens have been replaced by the glfwJoystickPresent function as well as axis and button counts returned by the glfwGetJoystickAxes and glfwGetJoystickButtons functions.

    +

    +Win32 MBCS support

    +

    The Win32 port of GLFW 3 will not compile in MBCS mode. However, because the use of the Unicode version of the Win32 API doesn't affect the process as a whole, but only those windows created using it, it's perfectly possible to call MBCS functions from other parts of the same application. Therefore, even if an application using GLFW has MBCS mode code, there's no need for GLFW itself to support it.

    +

    +Support for versions of Windows older than XP

    +

    All explicit support for version of Windows older than XP has been removed. There is no code that actively prevents GLFW 3 from running on these earlier versions, but it uses Win32 functions that those versions lack.

    +

    Windows XP was released in 2001, and by now (January 2015) it has not only replaced almost all earlier versions of Windows, but is itself rapidly being replaced by Windows 7 and 8. The MSDN library doesn't even provide documentation for version older than Windows 2000, making it difficult to maintain compatibility with these versions even if it was deemed worth the effort.

    +

    The Win32 API has also not stood still, and GLFW 3 uses many functions only present on Windows XP or later. Even supporting an OS as new as XP (new from the perspective of GLFW 2, which still supports Windows 95) requires runtime checking for a number of functions that are present only on modern version of Windows.

    +

    +Capture of system-wide hotkeys

    +

    The ability to disable and capture system-wide hotkeys like Alt+Tab has been removed. Modern applications, whether they're games, scientific visualisations or something else, are nowadays expected to be good desktop citizens and allow these hotkeys to function even when running in full screen mode.

    +

    +Automatic termination

    +

    GLFW 3 does not register glfwTerminate with atexit at initialization, because exit calls registered functions from the calling thread and while it is permitted to call exit from any thread, glfwTerminate must only be called from the main thread.

    +

    To release all resources allocated by GLFW, you should call glfwTerminate yourself, from the main thread, before the program terminates. Note that this destroys all windows not already destroyed with glfwDestroyWindow, invalidating any window handles you may still have.

    +

    +GLU header inclusion

    +

    GLFW 3 does not by default include the GLU header and GLU itself has been deprecated by Khronos. New projects should not use GLU, but if you need it for legacy code that has been moved to GLFW 3, you can request that the GLFW header includes it by defining GLFW_INCLUDE_GLU before the inclusion of the GLFW header.

    +
    Old syntax
    #include <GL/glfw.h>
    +
    +
    New syntax
    #define GLFW_INCLUDE_GLU
    +
    #include <GLFW/glfw3.h>
    +
    +

    There are many libraries that offer replacements for the functionality offered by GLU. For the matrix helper functions, see math libraries like GLM (for C++), linmath.h (for C) and others. For the tessellation functions, see for example libtess2.

    +

    +Name change tables

    +

    +Renamed functions

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLFW 2 GLFW 3 Notes
    glfwOpenWindow glfwCreateWindow All channel bit depths are now hints
    glfwCloseWindow glfwDestroyWindow
    glfwOpenWindowHint glfwWindowHint Now accepts all GLFW_*_BITS tokens
    glfwEnable glfwSetInputMode
    glfwDisable glfwSetInputMode
    glfwGetMousePos glfwGetCursorPos
    glfwSetMousePos glfwSetCursorPos
    glfwSetMousePosCallback glfwSetCursorPosCallback
    glfwSetMouseWheelCallback glfwSetScrollCallback Accepts two-dimensional scroll offsets as doubles
    glfwGetJoystickPos glfwGetJoystickAxes
    glfwGetWindowParam glfwGetWindowAttrib
    glfwGetGLVersion glfwGetWindowAttrib Use GLFW_CONTEXT_VERSION_MAJOR, GLFW_CONTEXT_VERSION_MINOR and GLFW_CONTEXT_REVISION
    glfwGetDesktopMode glfwGetVideoMode Returns the current mode of a monitor
    glfwGetJoystickParam glfwJoystickPresent The axis and button counts are provided by glfwGetJoystickAxes and glfwGetJoystickButtons
    +

    +Renamed types

    + + + + + + + +
    GLFW 2 GLFW 3 Notes
    GLFWmousewheelfun GLFWscrollfun
    GLFWmouseposfun GLFWcursorposfun
    +

    +Renamed tokens

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLFW 2 GLFW 3 Notes
    GLFW_OPENGL_VERSION_MAJOR GLFW_CONTEXT_VERSION_MAJOR Renamed as it applies to OpenGL ES as well
    GLFW_OPENGL_VERSION_MINOR GLFW_CONTEXT_VERSION_MINOR Renamed as it applies to OpenGL ES as well
    GLFW_FSAA_SAMPLES GLFW_SAMPLES Renamed to match the OpenGL API
    GLFW_ACTIVE GLFW_FOCUSED Renamed to match the window focus callback
    GLFW_WINDOW_NO_RESIZE GLFW_RESIZABLE The default has been inverted
    GLFW_MOUSE_CURSOR GLFW_CURSOR Used with glfwSetInputMode
    GLFW_KEY_ESC GLFW_KEY_ESCAPE
    GLFW_KEY_DEL GLFW_KEY_DELETE
    GLFW_KEY_PAGEUP GLFW_KEY_PAGE_UP
    GLFW_KEY_PAGEDOWN GLFW_KEY_PAGE_DOWN
    GLFW_KEY_KP_NUM_LOCK GLFW_KEY_NUM_LOCK
    GLFW_KEY_LCTRL GLFW_KEY_LEFT_CONTROL
    GLFW_KEY_LSHIFT GLFW_KEY_LEFT_SHIFT
    GLFW_KEY_LALT GLFW_KEY_LEFT_ALT
    GLFW_KEY_LSUPER GLFW_KEY_LEFT_SUPER
    GLFW_KEY_RCTRL GLFW_KEY_RIGHT_CONTROL
    GLFW_KEY_RSHIFT GLFW_KEY_RIGHT_SHIFT
    GLFW_KEY_RALT GLFW_KEY_RIGHT_ALT
    GLFW_KEY_RSUPER GLFW_KEY_RIGHT_SUPER
    +
    +
    + + + diff --git a/external/glm/doc/api/nav_f.png b/external/glfw-3.3.4/docs/html/nav_f.png similarity index 100% rename from external/glm/doc/api/nav_f.png rename to external/glfw-3.3.4/docs/html/nav_f.png diff --git a/external/glm/doc/api/nav_g.png b/external/glfw-3.3.4/docs/html/nav_g.png similarity index 100% rename from external/glm/doc/api/nav_g.png rename to external/glfw-3.3.4/docs/html/nav_g.png diff --git a/external/glm/doc/api/nav_h.png b/external/glfw-3.3.4/docs/html/nav_h.png similarity index 100% rename from external/glm/doc/api/nav_h.png rename to external/glfw-3.3.4/docs/html/nav_h.png diff --git a/external/glfw-3.3.4/docs/html/news.html b/external/glfw-3.3.4/docs/html/news.html new file mode 100644 index 0000000..df44cdd --- /dev/null +++ b/external/glfw-3.3.4/docs/html/news.html @@ -0,0 +1,606 @@ + + + + + + + +GLFW: Release notes + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Release notes
    +
    +
    +

    Table of Contents

    + +
    +

    +Release notes for version 3.3

    +

    These are the release notes for version 3.3. For a more detailed view including all fixed bugs see the version history.

    +

    Please review the caveats, deprecations and removals if your project was written against an earlier version of GLFW 3.

    +

    +New features in version 3.3

    +

    +Gamepad input via SDL_GameControllerDB

    +

    GLFW can now remap game controllers to a standard Xbox-like layout using a built-in copy of SDL_GameControllerDB. Call glfwJoystickIsGamepad to check if a joystick has a mapping, glfwGetGamepadState to retrieve its input state, glfwUpdateGamepadMappings to add newer mappings and glfwGetGamepadName and glfwGetJoystickGUID for mapping related information.

    +

    For more information see Gamepad input.

    +

    +Support for Vulkan on macOS via MoltenVK

    +

    GLFW now supports MoltenVK, a Vulkan implementation on top of the Metal API, and its VK_MVK_macos_surface window surface creation extension. MoltenVK is included in the macOS Vulkan SDK.

    +

    For more information see Vulkan guide.

    +

    +Content scale queries for DPI-aware rendering

    +

    GLFW now provides content scales for windows and monitors, i.e. the ratio between their current DPI and the platform's default DPI, with glfwGetWindowContentScale and glfwGetMonitorContentScale.

    +

    Changes of the content scale of a window can be received with the window content scale callback, set with glfwSetWindowContentScaleCallback.

    +

    The GLFW_SCALE_TO_MONITOR window hint enables automatic resizing of a window by the content scale of the monitor it is placed, on platforms like Windows where this is necessary. This takes effect both on creation and when the window is moved between monitors. It is related to but different from GLFW_COCOA_RETINA_FRAMEBUFFER.

    +

    For more information see Window content scale.

    +

    +Support for updating window attributes

    +

    GLFW now supports changing the GLFW_DECORATED, GLFW_RESIZABLE, GLFW_FLOATING, GLFW_AUTO_ICONIFY and GLFW_FOCUS_ON_SHOW attributes for existing windows with glfwSetWindowAttrib.

    +

    For more information see Window attributes.

    +

    +Support for raw mouse motion

    +

    GLFW now supports raw (unscaled and unaccelerated) mouse motion in disabled cursor mode with the GLFW_RAW_MOUSE_MOTION input mode. Raw mouse motion input is not yet implemented on macOS. Call glfwRawMouseMotionSupported to check if GLFW can provide raw mouse motion on the current system.

    +

    For more information see Raw mouse motion.

    +

    +Joystick hats

    +

    GLFW can now return the state of hats (i.e. POVs or D-pads) of a joystick with glfwGetJoystickHats. For compatibility, hats are also exposed as buttons. This can be disabled with the GLFW_JOYSTICK_HAT_BUTTONS initialization hint.

    +

    For more information see Joystick hat states.

    +

    +Error query

    +

    GLFW now supports querying the last error code for the calling thread and its human-readable description with glfwGetError. This can be used instead of or together with the error callback.

    +

    For more information see Error handling.

    +

    +Support for initialization hints

    +

    GLFW now supports setting library initialization hints with glfwInitHint. These must be set before initialization to take effect. Some of these hints are platform specific but are safe to set on any platform.

    +

    For more information see Initialization hints.

    +

    +User attention request

    +

    GLFW now supports requesting user attention with glfwRequestWindowAttention. Where possible this calls attention to the specified window. On platforms like macOS it calls attention to the whole application.

    +

    For more information see Window attention request.

    +

    +Window maximization callback

    +

    GLFW now supports notifying the application that the window has been maximized glfwSetWindowMaximizeCallback. This is called both when the window was maximized by the user and when it was done with glfwMaximizeWindow.

    +

    For more information see Window maximization.

    +

    +Query for the monitor work area

    +

    GLFW now supports querying the work area of a monitor, i.e. the area not occupied by task bars or global menu bars, with glfwGetMonitorWorkarea. On platforms that lack this concept, the whole area of the monitor is returned.

    +

    For more information see Work area.

    +

    +Transparent windows and framebuffers

    +

    GLFW now supports the creation of windows with transparent framebuffers on systems with desktop compositing enabled with the GLFW_TRANSPARENT_FRAMEBUFFER window hint and attribute. This hint must be set before window creation and leaves any window decorations opaque.

    +

    GLFW now also supports whole window transparency with glfwGetWindowOpacity and glfwSetWindowOpacity. This value controls the opacity of the whole window including decorations and unlike framebuffer transparency can be changed at any time after window creation.

    +

    For more information see Window transparency.

    +

    +Query for the scancode of a key

    +

    GLFW now supports querying the platform dependent scancode of any physical key with glfwGetKeyScancode.

    +

    For more information see Key input.

    +

    +Cursor centering window hint

    +

    GLFW now supports controlling whether the cursor is centered over newly created full screen windows with the GLFW_CENTER_CURSOR window hint. It is enabled by default.

    +

    +Mouse cursor hover window attribute

    +

    GLFW now supports polling whether the cursor is hovering over the window content area with the GLFW_HOVERED window attribute. This attribute corresponds to the cursor enter/leave event.

    +

    +Window hint and attribute for input focus on show

    +

    GLFW now has the GLFW_FOCUS_ON_SHOW window hint and attribute for controlling whether a window gets input focus when shown. It is enabled by default. It applies both when creating an visible window with glfwCreateWindow and when showing it with glfwShowWindow.

    +

    This is a workaround for GLFW 3.0 lacking glfwFocusWindow and will be corrected in the next major version.

    +

    For more information see Window visibility.

    +

    +Monitor and joystick user pointers

    +

    GLFW now supports setting and querying user pointers for connected monitors and joysticks with glfwSetMonitorUserPointer, glfwGetMonitorUserPointer, glfwSetJoystickUserPointer and glfwGetJoystickUserPointer.

    +

    For more information see User pointer and Joystick user pointer.

    +

    +macOS menu bar from nib file

    +

    GLFW will now load a MainMenu.nib file if found in the Contents/Resources directory of the application bundle, as a way to replace the GLFW menu bar without recompiling GLFW. This behavior can be disabled with the GLFW_COCOA_MENUBAR initialization hint.

    +

    +Support for more context creation extensions

    +

    The context hint GLFW_SRGB_CAPABLE now supports OpenGL ES via WGL_EXT_colorspace, the context hint GLFW_CONTEXT_NO_ERROR now supports WGL_ARB_create_context_no_error and GLX_ARB_create_context_no_error, the context hint GLFW_CONTEXT_RELEASE_BEHAVIOR now supports EGL_KHR_context_flush_control and glfwGetProcAddress now supports EGL_KHR_get_all_proc_addresses.

    +

    +OSMesa off-screen context creation support

    +

    GLFW now supports creating off-screen OpenGL contexts using OSMesa by setting GLFW_CONTEXT_CREATION_API to GLFW_OSMESA_CONTEXT_API. Native access function have been added to retrieve the OSMesa color and depth buffers.

    +

    There is also a new null backend that uses OSMesa as its native context creation API, intended for automated testing. This backend does not provide input.

    +

    +Caveats for version 3.3

    +

    +Layout of joysticks have changed

    +

    The way joystick elements are arranged have changed to match SDL2 in order to support SDL_GameControllerDB mappings. The layout of joysticks may change again if required for compatibility with SDL2. If you need a known and stable layout for game controllers, see if you can switch to Gamepad input.

    +

    Existing code that depends on a specific joystick layout will likely have to be updated.

    +

    +No window required to wait for events

    +

    The glfwWaitEvents and glfwWaitEventsTimeout functions no longer need a window to be created to wait for events. Before version 3.3 these functions would return immediately if there were no user-created windows. On platforms where only windows can receive events, an internal helper window is used.

    +

    Existing code that depends on the earlier behavior will likely have to be updated.

    +

    +Gamma ramp size of 256 may be rejected

    +

    The documentation for versions before 3.3 stated that a gamma ramp size of 256 would always be accepted. This was never the case on X11 and could lead to artifacts on macOS. The glfwSetGamma function has been updated to always generate a ramp of the correct size.

    +

    Existing code that hardcodes a size of 256 should be updated to use the size of the current ramp of a monitor when setting a new ramp for that monitor.

    +

    +Windows XInput deadzone removed

    +

    GLFW no longer applies any deadzone to the input state received from the XInput API. This was never done for any other platform joystick API so this change makes the behavior more consistent but you will need to apply your own deadzone if desired.

    +

    +X11 clipboard transfer limits

    +

    GLFW now supports reading clipboard text via the INCR method, which removes the limit on how much text can be read with glfwGetClipboardString. However, writing via this method is not yet supported, so you may not be able to write a very large string with glfwSetClipboardString even if you read it from the clipboard earlier.

    +

    The exact size limit for writing to the clipboard is negotiated with each receiving application but is at least several tens of kilobytes. Note that only the read limit has changed. Any string that could be written before still can be.

    +

    +X11 extension libraries are loaded dynamically

    +

    GLFW now loads all X11 extension libraries at initialization. The only X11 library you need to link against is libX11. The header files for the extension libraries are still required for compilation.

    +

    Existing projects and makefiles that link GLFW directly against the extension libraries should still build correctly but will add these libraries as load-time dependencies.

    +

    +CMake 3.0 or later is required

    +

    The minimum CMake version has been raised from 2.8.12 to 3.0. This is only a requirement of the GLFW CMake files. The GLFW source files do not depend on CMake.

    +

    +Framebuffer transparency requires DWM transparency

    +

    GLFW no longer supports framebuffer transparency enabled via GLFW_TRANSPARENT_FRAMEBUFFER on Windows 7 if DWM transparency is off (the Transparency setting under Personalization > Window Color).

    +

    +Deprecations in version 3.3

    +

    +Character with modifiers callback

    +

    The character with modifiers callback set with glfwSetCharModsCallback has been deprecated and should if possible not be used.

    +

    Existing code should still work but further bug fixes will likely not be made. The callback will be removed in the next major version.

    +

    +Window parameter to clipboard functions

    +

    The window parameter of the clipboard functions glfwGetClipboardString and glfwSetClipboardString has been deprecated and is no longer used on any platform. On platforms where the clipboard must be owned by a specific window, an internal helper window is used.

    +

    Existing code should still work unless it depends on a specific window owning the clipboard. New code may pass NULL as the window argument. The parameter will be removed in a future release.

    +

    +Removals in 3.3

    +

    +macOS specific CMake options and macros

    +

    The GLFW_USE_RETINA, GLFW_USE_CHDIR and GLFW_USE_MENUBAR CMake options and the _GLFW_USE_RETINA, _GLFW_USE_CHDIR and _GLFW_USE_MENUBAR compile-time macros have been removed.

    +

    These options and macros are replaced by the window hint GLFW_COCOA_RETINA_FRAMEBUFFER and the init hints GLFW_COCOA_CHDIR_RESOURCES and GLFW_COCOA_MENUBAR.

    +

    Existing projects and makefiles that set these options or define these macros during compilation of GLFW will still build but it will have no effect and the default behaviors will be used.

    +

    +LunarG Vulkan SDK dependency

    +

    The GLFW test programs that previously depended on the LunarG Vulkan SDK now instead uses a Vulkan loader generated by glad2. This means the GLFW CMake files no longer look for the Vulkan SDK.

    +

    Existing CMake projects that depended on the Vulkan SDK cache variables from GLFW will need to call find_package(Vulkan) themselves. CMake 3.7 and later already comes with a Vulkan find module similar to the one GLFW previously included.

    +

    +CMake option LIB_SUFFIX

    +

    The LIB_SUFFIX CMake option has been removed. GLFW now uses the GNUInstallDirs CMake package to handle platform specific details like the library directory suffix and the LIB_SUFFIX CMake option has been removed.

    +

    Existing projects and makefiles that set the LIB_SUFFIX option will use the suffix chosen by the GNUInstallDirs package and the option will be ignored.

    +

    +Mir support

    +

    The experimental Mir support has been completely removed as the Mir project has implemented support for the Wayland protocol and is recommending that applications use that instead.

    +

    Existing projects and makefiles that select Mir when compiling GLFW will fail. Use Wayland or X11 instead.

    +

    +New symbols in version 3.3

    +

    +New functions in version 3.3

    + +

    +New types in version 3.3

    + +

    +New constants in version 3.3

    + +

    +Release notes for 3.2

    +

    These are the release notes for version 3.2. For a more detailed view including all fixed bugs see the version history.

    +

    +New features in version 3.2

    +

    +Support for Vulkan

    +

    GLFW now supports basic integration with Vulkan with glfwVulkanSupported, glfwGetRequiredInstanceExtensions, glfwGetInstanceProcAddress, glfwGetPhysicalDevicePresentationSupport and glfwCreateWindowSurface. Vulkan header inclusion can be selected with GLFW_INCLUDE_VULKAN.

    +

    +Window mode switching

    +

    GLFW now supports switching between windowed and full screen modes and updating the monitor and desired resolution and refresh rate of full screen windows with glfwSetWindowMonitor.

    +

    +Window maxmimization support

    +

    GLFW now supports window maximization with glfwMaximizeWindow and the GLFW_MAXIMIZED window hint and attribute.

    +

    +Window input focus control

    +

    GLFW now supports giving windows input focus with glfwFocusWindow.

    +

    +Window size limit support

    +

    GLFW now supports setting both absolute and relative window size limits with glfwSetWindowSizeLimits and glfwSetWindowAspectRatio.

    +

    +Localized key names

    +

    GLFW now supports querying the localized name of printable keys with glfwGetKeyName, either by key token or by scancode.

    +

    +Wait for events with timeout

    +

    GLFW now supports waiting for events for a set amount of time with glfwWaitEventsTimeout.

    +

    +Window icon support

    +

    GLFW now supports setting the icon of windows with glfwSetWindowIcon.

    +

    +Raw timer access

    +

    GLFW now supports raw timer values with glfwGetTimerValue and glfwGetTimerFrequency.

    +

    +Joystick connection callback

    +

    GLFW now supports notifying when a joystick has been connected or disconnected with glfwSetJoystickCallback.

    +

    +Context-less windows

    +

    GLFW now supports creating windows without a OpenGL or OpenGL ES context by setting the GLFW_CLIENT_API hint to GLFW_NO_API.

    +

    +Run-time context creation API selection

    +

    GLFW now supports selecting and querying the context creation API at run-time with the GLFW_CONTEXT_CREATION_API hint and attribute.

    +

    +Error-free context creation

    +

    GLFW now supports creating and querying OpenGL and OpenGL ES contexts that do not emit errors with the GLFW_CONTEXT_NO_ERROR hint, provided the machine supports the GL_KHR_no_error extension.

    +

    +CMake config-file package support

    +

    GLFW now supports being used as a config-file package from other projects for easy linking with the library and its dependencies.

    +

    +Release notes for 3.1

    +

    These are the release notes for version 3.1. For a more detailed view including all fixed bugs see the version history.

    +

    +New features in version 3.1

    +

    +Custom mouse cursor images

    +

    GLFW now supports creating and setting both custom cursor images and standard cursor shapes. They are created with glfwCreateCursor or glfwCreateStandardCursor, set with glfwSetCursor and destroyed with glfwDestroyCursor.

    +
    See also
    Cursor objects
    +

    +Path drop event

    +

    GLFW now provides a callback for receiving the paths of files and directories dropped onto GLFW windows. The callback is set with glfwSetDropCallback.

    +
    See also
    Path drop input
    +

    +Main thread wake-up

    +

    GLFW now provides the glfwPostEmptyEvent function for posting an empty event from another thread to the main thread event queue, causing glfwWaitEvents to return.

    +
    See also
    Event processing
    +

    +Window frame size query

    +

    GLFW now supports querying the size, on each side, of the frame around the content area of a window, with glfwGetWindowFrameSize.

    +
    See also
    Window size
    +

    +Simultaneous multi-monitor rendering

    +

    GLFW now supports disabling auto-iconification of full screen windows with the GLFW_AUTO_ICONIFY window hint. This is intended for people building multi-monitor installations, where you need windows to stay in full screen despite losing input focus.

    +

    +Floating windows

    +

    GLFW now supports floating windows, also called topmost or always on top, for easier debugging with the GLFW_FLOATING window hint and attribute.

    +

    +Initially unfocused windows

    +

    GLFW now supports preventing a windowed mode window from gaining input focus on creation, with the GLFW_FOCUSED window hint.

    +

    +Direct access for window attributes and cursor position

    +

    GLFW now queries the window input focus, visibility and iconification attributes and the cursor position directly instead of returning cached data.

    +

    +Character with modifiers callback

    +

    GLFW now provides a callback for character events with modifier key bits. The callback is set with glfwSetCharModsCallback. Unlike the regular character callback, this will report character events that will not result in a character being input, for example if the Control key is held down.

    +
    See also
    Text input
    +

    +Single buffered framebuffers

    +

    GLFW now supports the creation of single buffered windows, with the GLFW_DOUBLEBUFFER hint.

    +

    +Macro for including extension header

    +

    GLFW now includes the extension header appropriate for the chosen OpenGL or OpenGL ES header when GLFW_INCLUDE_GLEXT is defined. GLFW does not provide these headers. They must be provided by your development environment or your OpenGL or OpenGL ES SDK.

    +

    +Context release behaviors

    +

    GLFW now supports controlling and querying whether the pipeline is flushed when a context is made non-current, with the GLFW_CONTEXT_RELEASE_BEHAVIOR hint and attribute, provided the machine supports the GL_KHR_context_flush_control extension.

    +

    +(Experimental) Wayland support

    +

    GLFW now has an experimental Wayland display protocol backend that can be selected on Linux with a CMake option.

    +

    +(Experimental) Mir support

    +

    GLFW now has an experimental Mir display server backend that can be selected on Linux with a CMake option.

    +

    +Release notes for 3.0

    +

    These are the release notes for version 3.0. For a more detailed view including all fixed bugs see the version history.

    +

    +New features in version 3.0

    +

    +CMake build system

    +

    GLFW now uses the CMake build system instead of the various makefiles and project files used by earlier versions. CMake is available for all platforms supported by GLFW, is present in most package systems and can generate makefiles and/or project files for most popular development environments.

    +

    For more information on how to use CMake, see the CMake manual.

    +

    +Multi-window support

    +

    GLFW now supports the creation of multiple windows, each with their own OpenGL or OpenGL ES context, and all window functions now take a window handle. Event callbacks are now per-window and are provided with the handle of the window that received the event. The glfwMakeContextCurrent function has been added to select which context is current on a given thread.

    +

    +Multi-monitor support

    +

    GLFW now explicitly supports multiple monitors. They can be enumerated with glfwGetMonitors, queried with glfwGetVideoModes, glfwGetMonitorPos, glfwGetMonitorName and glfwGetMonitorPhysicalSize, and specified at window creation to make the newly created window full screen on that specific monitor.

    +

    +Unicode support

    +

    All string arguments to GLFW functions and all strings returned by GLFW now use the UTF-8 encoding. This includes the window title, error string, clipboard text, monitor and joystick names as well as the extension function arguments (as ASCII is a subset of UTF-8).

    +

    +Clipboard text I/O

    +

    GLFW now supports reading and writing plain text to and from the system clipboard, with the glfwGetClipboardString and glfwSetClipboardString functions.

    +

    +Gamma ramp support

    +

    GLFW now supports setting and reading back the gamma ramp of monitors, with the glfwGetGammaRamp and glfwSetGammaRamp functions. There is also glfwSetGamma, which generates a ramp from a gamma value and then sets it.

    +

    +OpenGL ES support

    +

    GLFW now supports the creation of OpenGL ES contexts, by setting the GLFW_CLIENT_API hint to GLFW_OPENGL_ES_API, where creation of such contexts are supported. Note that GLFW does not implement OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and WGL APIs, while AMD provides an EGL implementation instead.

    +

    +(Experimental) EGL support

    +

    GLFW now has an experimental EGL context creation back end that can be selected through CMake options.

    +

    +High-DPI support

    +

    GLFW now supports high-DPI monitors on both Windows and macOS, giving windows full resolution framebuffers where other UI elements are scaled up. To achieve this, glfwGetFramebufferSize and glfwSetFramebufferSizeCallback have been added. These work with pixels, while the rest of the GLFW API works with screen coordinates. This is important as OpenGL uses pixels, not screen coordinates.

    +

    +Error callback

    +

    GLFW now has an error callback, which can provide your application with much more detailed diagnostics than was previously possible. The callback is passed an error code and a description string.

    +

    +Per-window user pointer

    +

    Each window now has a user-defined pointer, retrieved with glfwGetWindowUserPointer and set with glfwSetWindowUserPointer, to make it easier to integrate GLFW into C++ code.

    +

    +Window iconification callback

    +

    Each window now has a callback for iconification and restoration events, which is set with glfwSetWindowIconifyCallback.

    +

    +Window position callback

    +

    Each window now has a callback for position events, which is set with glfwSetWindowPosCallback.

    +

    +Window position query

    +

    The position of a window can now be retrieved using glfwGetWindowPos.

    +

    +Window focus callback

    +

    Each windows now has a callback for focus events, which is set with glfwSetWindowFocusCallback.

    +

    +Cursor enter/leave callback

    +

    Each window now has a callback for when the mouse cursor enters or leaves its content area, which is set with glfwSetCursorEnterCallback.

    +

    +Initial window title

    +

    The title of a window is now specified at creation time, as one of the arguments to glfwCreateWindow.

    +

    +Hidden windows

    +

    Windows can now be hidden with glfwHideWindow, shown using glfwShowWindow and created initially hidden with the GLFW_VISIBLE window hint and attribute. This allows for off-screen rendering in a way compatible with most drivers, as well as moving a window to a specific position before showing it.

    +

    +Undecorated windows

    +

    Windowed mode windows can now be created without decorations, e.g. things like a frame, a title bar, with the GLFW_DECORATED window hint and attribute. This allows for the creation of things like splash screens.

    +

    +Modifier key bit masks

    +

    Modifier key bit mask parameters have been added to the mouse button and key callbacks.

    +

    +Platform-specific scancodes

    +

    A scancode parameter has been added to the key callback. Keys that don't have a key token still get passed on with the key parameter set to GLFW_KEY_UNKNOWN. These scancodes will vary between machines and are intended to be used for key bindings.

    +

    +Joystick names

    +

    The name of a joystick can now be retrieved using glfwGetJoystickName.

    +

    +Doxygen documentation

    +

    You are reading it.

    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/news_8dox.html b/external/glfw-3.3.4/docs/html/news_8dox.html new file mode 100644 index 0000000..2da771e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/news_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: news.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    news.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glm/doc/api/open.png b/external/glfw-3.3.4/docs/html/open.png similarity index 100% rename from external/glm/doc/api/open.png rename to external/glfw-3.3.4/docs/html/open.png diff --git a/external/glfw-3.3.4/docs/html/pages.html b/external/glfw-3.3.4/docs/html/pages.html new file mode 100644 index 0000000..eb35b22 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/pages.html @@ -0,0 +1,93 @@ + + + + + + + +GLFW: Guides + + + + + + + + + + +
    + + + + + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    Guides
    +
    + + + + diff --git a/external/glfw-3.3.4/docs/html/quick_8dox.html b/external/glfw-3.3.4/docs/html/quick_8dox.html new file mode 100644 index 0000000..ee6b1d2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/quick_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: quick.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    quick.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/quick_guide.html b/external/glfw-3.3.4/docs/html/quick_guide.html new file mode 100644 index 0000000..62f8cc4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/quick_guide.html @@ -0,0 +1,391 @@ + + + + + + + +GLFW: Getting started + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Getting started
    +
    +
    + +

    This guide takes you through writing a simple application using GLFW 3. The application will create a window and OpenGL context, render a rotating triangle and exit when the user closes the window or presses Escape. This guide will introduce a few of the most commonly used functions, but there are many more.

    +

    This guide assumes no experience with earlier versions of GLFW. If you have used GLFW 2 in the past, read Moving from GLFW 2 to 3, as some functions behave differently in GLFW 3.

    +

    +Step by step

    +

    +Including the GLFW header

    +

    In the source files of your application where you use GLFW, you need to include its header file.

    +
    #include <GLFW/glfw3.h>
    +
    The header of the GLFW 3 API.
    +

    This header provides all the constants, types and function prototypes of the GLFW API.

    +

    By default it also includes the OpenGL header from your development environment. On some platforms this header only supports older versions of OpenGL. The most extreme case is Windows, where it typically only supports OpenGL 1.2.

    +

    Most programs will instead use an extension loader library and include its header. This example uses files generated by glad. The GLFW header can detect most such headers if they are included first and will then not include the one from your development environment.

    +
    #include <glad/gl.h>
    +
    #include <GLFW/glfw3.h>
    +

    To make sure there will be no header conflicts, you can define GLFW_INCLUDE_NONE before the GLFW header to explicitly disable inclusion of the development environment header. This also allows the two headers to be included in any order.

    +
    #define GLFW_INCLUDE_NONE
    +
    #include <GLFW/glfw3.h>
    +
    #include <glad/gl.h>
    +

    +Initializing and terminating GLFW

    +

    Before you can use most GLFW functions, the library must be initialized. On successful initialization, GLFW_TRUE is returned. If an error occurred, GLFW_FALSE is returned.

    +
    if (!glfwInit())
    +
    {
    +
    // Initialization failed
    +
    }
    +
    int glfwInit(void)
    Initializes the GLFW library.
    +

    Note that GLFW_TRUE and GLFW_FALSE are and will always be one and zero.

    +

    When you are done using GLFW, typically just before the application exits, you need to terminate GLFW.

    +
    +
    void glfwTerminate(void)
    Terminates the GLFW library.
    +

    This destroys any remaining windows and releases any other resources allocated by GLFW. After this call, you must initialize GLFW again before using any GLFW functions that require it.

    +

    +Setting an error callback

    +

    Most events are reported through callbacks, whether it's a key being pressed, a GLFW window being moved, or an error occurring. Callbacks are C functions (or C++ static methods) that are called by GLFW with arguments describing the event.

    +

    In case a GLFW function fails, an error is reported to the GLFW error callback. You can receive these reports with an error callback. This function must have the signature below but may do anything permitted in other callbacks.

    +
    void error_callback(int error, const char* description)
    +
    {
    +
    fprintf(stderr, "Error: %s\n", description);
    +
    }
    +

    Callback functions must be set, so GLFW knows to call them. The function to set the error callback is one of the few GLFW functions that may be called before initialization, which lets you be notified of errors both during and after initialization.

    +
    glfwSetErrorCallback(error_callback);
    +
    GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback)
    Sets the error callback.
    +

    +Creating a window and context

    +

    The window and its OpenGL context are created with a single call to glfwCreateWindow, which returns a handle to the created combined window and context object

    +
    GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", NULL, NULL);
    +
    if (!window)
    +
    {
    +
    // Window or OpenGL context creation failed
    +
    }
    +
    struct GLFWwindow GLFWwindow
    Opaque window object.
    Definition: glfw3.h:1182
    +
    GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
    Creates a window and its associated context.
    +

    This creates a 640 by 480 windowed mode window with an OpenGL context. If window or OpenGL context creation fails, NULL will be returned. You should always check the return value. While window creation rarely fails, context creation depends on properly installed drivers and may fail even on machines with the necessary hardware.

    +

    By default, the OpenGL context GLFW creates may have any version. You can require a minimum OpenGL version by setting the GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR hints before creation. If the required minimum version is not supported on the machine, context (and window) creation fails.

    +
    + +
    GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", NULL, NULL);
    +
    if (!window)
    +
    {
    +
    // Window or context creation failed
    +
    }
    +
    #define GLFW_CONTEXT_VERSION_MINOR
    Context client API minor version hint and attribute.
    Definition: glfw3.h:958
    +
    void glfwWindowHint(int hint, int value)
    Sets the specified window hint to the desired value.
    +
    #define GLFW_CONTEXT_VERSION_MAJOR
    Context client API major version hint and attribute.
    Definition: glfw3.h:952
    +

    The window handle is passed to all window related functions and is provided to along to all window related callbacks, so they can tell which window received the event.

    +

    When a window and context is no longer needed, destroy it.

    +
    +
    void glfwDestroyWindow(GLFWwindow *window)
    Destroys the specified window and its context.
    +

    Once this function is called, no more events will be delivered for that window and its handle becomes invalid.

    +

    +Making the OpenGL context current

    +

    Before you can use the OpenGL API, you must have a current OpenGL context.

    +
    +
    void glfwMakeContextCurrent(GLFWwindow *window)
    Makes the context of the specified window current for the calling thread.
    +

    The context will remain current until you make another context current or until the window owning the current context is destroyed.

    +

    If you are using an extension loader library to access modern OpenGL then this is when to initialize it, as the loader needs a current context to load from. This example uses glad, but the same rule applies to all such libraries.

    +
    gladLoadGL(glfwGetProcAddress);
    +
    GLFWglproc glfwGetProcAddress(const char *procname)
    Returns the address of the specified function for the current context.
    +

    +Checking the window close flag

    +

    Each window has a flag indicating whether the window should be closed.

    +

    When the user attempts to close the window, either by pressing the close widget in the title bar or using a key combination like Alt+F4, this flag is set to 1. Note that the window isn't actually closed, so you are expected to monitor this flag and either destroy the window or give some kind of feedback to the user.

    +
    while (!glfwWindowShouldClose(window))
    +
    {
    +
    // Keep running
    +
    }
    +
    int glfwWindowShouldClose(GLFWwindow *window)
    Checks the close flag of the specified window.
    +

    You can be notified when the user is attempting to close the window by setting a close callback with glfwSetWindowCloseCallback. The callback will be called immediately after the close flag has been set.

    +

    You can also set it yourself with glfwSetWindowShouldClose. This can be useful if you want to interpret other kinds of input as closing the window, like for example pressing the Escape key.

    +

    +Receiving input events

    +

    Each window has a large number of callbacks that can be set to receive all the various kinds of events. To receive key press and release events, create a key callback function.

    +
    static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
    +
    {
    +
    if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
    + +
    }
    +
    #define GLFW_TRUE
    One.
    Definition: glfw3.h:309
    +
    #define GLFW_PRESS
    The key or mouse button was pressed.
    Definition: glfw3.h:335
    +
    #define GLFW_KEY_ESCAPE
    Definition: glfw3.h:443
    +
    void glfwSetWindowShouldClose(GLFWwindow *window, int value)
    Sets the close flag of the specified window.
    +

    The key callback, like other window related callbacks, are set per-window.

    +
    glfwSetKeyCallback(window, key_callback);
    +
    GLFWkeyfun glfwSetKeyCallback(GLFWwindow *window, GLFWkeyfun callback)
    Sets the key callback.
    +

    In order for event callbacks to be called when events occur, you need to process events as described below.

    +

    +Rendering with OpenGL

    +

    Once you have a current OpenGL context, you can use OpenGL normally. In this tutorial, a multi-colored rotating triangle will be rendered. The framebuffer size needs to be retrieved for glViewport.

    +
    int width, height;
    +
    glfwGetFramebufferSize(window, &width, &height);
    +
    glViewport(0, 0, width, height);
    +
    void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)
    Retrieves the size of the framebuffer of the specified window.
    +

    You can also set a framebuffer size callback using glfwSetFramebufferSizeCallback and be notified when the size changes.

    +

    The details of how to render with OpenGL is outside the scope of this tutorial, but there are many excellent resources for learning modern OpenGL. Here are a few of them:

    + +

    These all happen to use GLFW, but OpenGL itself works the same whatever API you use to create the window and context.

    +

    +Reading the timer

    +

    To create smooth animation, a time source is needed. GLFW provides a timer that returns the number of seconds since initialization. The time source used is the most accurate on each platform and generally has micro- or nanosecond resolution.

    +
    double time = glfwGetTime();
    +
    double glfwGetTime(void)
    Returns the GLFW time.
    +

    +Swapping buffers

    +

    GLFW windows by default use double buffering. That means that each window has two rendering buffers; a front buffer and a back buffer. The front buffer is the one being displayed and the back buffer the one you render to.

    +

    When the entire frame has been rendered, the buffers need to be swapped with one another, so the back buffer becomes the front buffer and vice versa.

    +
    +
    void glfwSwapBuffers(GLFWwindow *window)
    Swaps the front and back buffers of the specified window.
    +

    The swap interval indicates how many frames to wait until swapping the buffers, commonly known as vsync. By default, the swap interval is zero, meaning buffer swapping will occur immediately. On fast machines, many of those frames will never be seen, as the screen is still only updated typically 60-75 times per second, so this wastes a lot of CPU and GPU cycles.

    +

    Also, because the buffers will be swapped in the middle the screen update, leading to screen tearing.

    +

    For these reasons, applications will typically want to set the swap interval to one. It can be set to higher values, but this is usually not recommended, because of the input latency it leads to.

    +
    +
    void glfwSwapInterval(int interval)
    Sets the swap interval for the current context.
    +

    This function acts on the current context and will fail unless a context is current.

    +

    +Processing events

    +

    GLFW needs to communicate regularly with the window system both in order to receive events and to show that the application hasn't locked up. Event processing must be done regularly while you have visible windows and is normally done each frame after buffer swapping.

    +

    There are two methods for processing pending events; polling and waiting. This example will use event polling, which processes only those events that have already been received and then returns immediately.

    +
    +
    void glfwPollEvents(void)
    Processes all pending events.
    +

    This is the best choice when rendering continually, like most games do. If instead you only need to update your rendering once you have received new input, glfwWaitEvents is a better choice. It waits until at least one event has been received, putting the thread to sleep in the meantime, and then processes all received events. This saves a great deal of CPU cycles and is useful for, for example, many kinds of editing tools.

    +

    +Putting it together

    +

    Now that you know how to initialize GLFW, create a window and poll for keyboard input, it's possible to create a simple program.

    +

    This program creates a 640 by 480 windowed mode window and starts a loop that clears the screen, renders a triangle and processes events until the user either presses Escape or closes the window.

    +
    +
    #include <glad/gl.h>
    +
    #define GLFW_INCLUDE_NONE
    +
    #include <GLFW/glfw3.h>
    +
    +
    #include "linmath.h"
    +
    +
    #include <stdlib.h>
    +
    #include <stdio.h>
    +
    +
    static const struct
    +
    {
    +
    float x, y;
    +
    float r, g, b;
    +
    } vertices[3] =
    +
    {
    +
    { -0.6f, -0.4f, 1.f, 0.f, 0.f },
    +
    { 0.6f, -0.4f, 0.f, 1.f, 0.f },
    +
    { 0.f, 0.6f, 0.f, 0.f, 1.f }
    +
    };
    +
    +
    static const char* vertex_shader_text =
    +
    "#version 110\n"
    +
    "uniform mat4 MVP;\n"
    +
    "attribute vec3 vCol;\n"
    +
    "attribute vec2 vPos;\n"
    +
    "varying vec3 color;\n"
    +
    "void main()\n"
    +
    "{\n"
    +
    " gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n"
    +
    " color = vCol;\n"
    +
    "}\n";
    +
    +
    static const char* fragment_shader_text =
    +
    "#version 110\n"
    +
    "varying vec3 color;\n"
    +
    "void main()\n"
    +
    "{\n"
    +
    " gl_FragColor = vec4(color, 1.0);\n"
    +
    "}\n";
    +
    +
    static void error_callback(int error, const char* description)
    +
    {
    +
    fprintf(stderr, "Error: %s\n", description);
    +
    }
    +
    +
    static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
    +
    {
    +
    if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
    + +
    }
    +
    +
    int main(void)
    +
    {
    +
    GLFWwindow* window;
    +
    GLuint vertex_buffer, vertex_shader, fragment_shader, program;
    +
    GLint mvp_location, vpos_location, vcol_location;
    +
    +
    glfwSetErrorCallback(error_callback);
    +
    +
    if (!glfwInit())
    +
    exit(EXIT_FAILURE);
    +
    + + +
    +
    window = glfwCreateWindow(640, 480, "Simple example", NULL, NULL);
    +
    if (!window)
    +
    {
    + +
    exit(EXIT_FAILURE);
    +
    }
    +
    +
    glfwSetKeyCallback(window, key_callback);
    +
    + +
    gladLoadGL(glfwGetProcAddress);
    + +
    +
    // NOTE: OpenGL error checks have been omitted for brevity
    +
    +
    glGenBuffers(1, &vertex_buffer);
    +
    glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer);
    +
    glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
    +
    +
    vertex_shader = glCreateShader(GL_VERTEX_SHADER);
    +
    glShaderSource(vertex_shader, 1, &vertex_shader_text, NULL);
    +
    glCompileShader(vertex_shader);
    +
    +
    fragment_shader = glCreateShader(GL_FRAGMENT_SHADER);
    +
    glShaderSource(fragment_shader, 1, &fragment_shader_text, NULL);
    +
    glCompileShader(fragment_shader);
    +
    +
    program = glCreateProgram();
    +
    glAttachShader(program, vertex_shader);
    +
    glAttachShader(program, fragment_shader);
    +
    glLinkProgram(program);
    +
    +
    mvp_location = glGetUniformLocation(program, "MVP");
    +
    vpos_location = glGetAttribLocation(program, "vPos");
    +
    vcol_location = glGetAttribLocation(program, "vCol");
    +
    +
    glEnableVertexAttribArray(vpos_location);
    +
    glVertexAttribPointer(vpos_location, 2, GL_FLOAT, GL_FALSE,
    +
    sizeof(vertices[0]), (void*) 0);
    +
    glEnableVertexAttribArray(vcol_location);
    +
    glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE,
    +
    sizeof(vertices[0]), (void*) (sizeof(float) * 2));
    +
    +
    while (!glfwWindowShouldClose(window))
    +
    {
    +
    float ratio;
    +
    int width, height;
    +
    mat4x4 m, p, mvp;
    +
    +
    glfwGetFramebufferSize(window, &width, &height);
    +
    ratio = width / (float) height;
    +
    +
    glViewport(0, 0, width, height);
    +
    glClear(GL_COLOR_BUFFER_BIT);
    +
    +
    mat4x4_identity(m);
    +
    mat4x4_rotate_Z(m, m, (float) glfwGetTime());
    +
    mat4x4_ortho(p, -ratio, ratio, -1.f, 1.f, 1.f, -1.f);
    +
    mat4x4_mul(mvp, p, m);
    +
    +
    glUseProgram(program);
    +
    glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp);
    +
    glDrawArrays(GL_TRIANGLES, 0, 3);
    +
    +
    glfwSwapBuffers(window);
    + +
    }
    +
    + +
    + +
    exit(EXIT_SUCCESS);
    +
    }
    +
    +

    The program above can be found in the source package as examples/simple.c and is compiled along with all other examples when you build GLFW. If you built GLFW from the source package then you already have this as simple.exe on Windows, simple on Linux or simple.app on macOS.

    +

    This tutorial used only a few of the many functions GLFW provides. There are guides for each of the areas covered by GLFW. Each guide will introduce all the functions for that category.

    + +

    You can access reference documentation for any GLFW function by clicking it and the reference for each function links to related functions and guide sections.

    +

    The tutorial ends here. Once you have written a program that uses GLFW, you will need to compile and link it. How to do that depends on the development environment you are using and is best explained by the documentation for that environment. To learn about the details that are specific to GLFW, see Building applications.

    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/search/all_0.html b/external/glfw-3.3.4/docs/html/search/all_0.html new file mode 100644 index 0000000..1ec5b2d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_0.js b/external/glfw-3.3.4/docs/html/search/all_0.js new file mode 100644 index 0000000..c61320f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['axes_0',['axes',['../structGLFWgamepadstate.html#a8b2c8939b1d31458de5359998375c189',1,'GLFWgamepadstate']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_1.html b/external/glfw-3.3.4/docs/html/search/all_1.html new file mode 100644 index 0000000..9f80e90 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_1.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_1.js b/external/glfw-3.3.4/docs/html/search/all_1.js new file mode 100644 index 0000000..7208b95 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_1.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['blue_1',['blue',['../structGLFWgammaramp.html#acf0c836d0efe29c392fe8d1a1042744b',1,'GLFWgammaramp']]], + ['bluebits_2',['blueBits',['../structGLFWvidmode.html#af310977f58d2e3b188175b6e3d314047',1,'GLFWvidmode']]], + ['bug_20list_3',['Bug List',['../bug.html',1,'']]], + ['build_2edox_4',['build.dox',['../build_8dox.html',1,'']]], + ['building_20applications_5',['Building applications',['../build_guide.html',1,'']]], + ['buttons_6',['buttons',['../structGLFWgamepadstate.html#a27e9896b51c65df15fba2c7139bfdb9a',1,'GLFWgamepadstate']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_10.html b/external/glfw-3.3.4/docs/html/search/all_10.html new file mode 100644 index 0000000..3bf1196 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_10.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_10.js b/external/glfw-3.3.4/docs/html/search/all_10.js new file mode 100644 index 0000000..cad1205 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_10.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['vulkan_20guide_520',['Vulkan guide',['../vulkan_guide.html',1,'']]], + ['vulkan_20support_20reference_521',['Vulkan support reference',['../group__vulkan.html',1,'']]], + ['vulkan_2edox_522',['vulkan.dox',['../vulkan_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_11.html b/external/glfw-3.3.4/docs/html/search/all_11.html new file mode 100644 index 0000000..c9f79d2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_11.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_11.js b/external/glfw-3.3.4/docs/html/search/all_11.js new file mode 100644 index 0000000..4865adc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_11.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['width_523',['width',['../structGLFWvidmode.html#a698dcb200562051a7249cb6ae154c71d',1,'GLFWvidmode::width()'],['../structGLFWimage.html#af6a71cc999fe6d3aea31dd7e9687d835',1,'GLFWimage::width()']]], + ['window_20guide_524',['Window guide',['../window_guide.html',1,'']]], + ['window_20reference_525',['Window reference',['../group__window.html',1,'']]], + ['window_2edox_526',['window.dox',['../window_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_2.html b/external/glfw-3.3.4/docs/html/search/all_2.html new file mode 100644 index 0000000..02cfffc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_2.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_2.js b/external/glfw-3.3.4/docs/html/search/all_2.js new file mode 100644 index 0000000..c9120a1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_2.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['compat_2edox_7',['compat.dox',['../compat_8dox.html',1,'']]], + ['compile_2edox_8',['compile.dox',['../compile_8dox.html',1,'']]], + ['compiling_20glfw_9',['Compiling GLFW',['../compile_guide.html',1,'']]], + ['context_20guide_10',['Context guide',['../context_guide.html',1,'']]], + ['context_20reference_11',['Context reference',['../group__context.html',1,'']]], + ['context_2edox_12',['context.dox',['../context_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_3.html b/external/glfw-3.3.4/docs/html/search/all_3.html new file mode 100644 index 0000000..39767b8 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_3.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_3.js b/external/glfw-3.3.4/docs/html/search/all_3.js new file mode 100644 index 0000000..835cae5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['deprecated_20list_13',['Deprecated List',['../deprecated.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_4.html b/external/glfw-3.3.4/docs/html/search/all_4.html new file mode 100644 index 0000000..fc40463 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_4.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_4.js b/external/glfw-3.3.4/docs/html/search/all_4.js new file mode 100644 index 0000000..b735eaf --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_4.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['error_20codes_14',['Error codes',['../group__errors.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_5.html b/external/glfw-3.3.4/docs/html/search/all_5.html new file mode 100644 index 0000000..9dd9344 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_5.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_5.js b/external/glfw-3.3.4/docs/html/search/all_5.js new file mode 100644 index 0000000..e10c337 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_5.js @@ -0,0 +1,476 @@ +var searchData= +[ + ['gamepad_20axes_15',['Gamepad axes',['../group__gamepad__axes.html',1,'']]], + ['gamepad_20buttons_16',['Gamepad buttons',['../group__gamepad__buttons.html',1,'']]], + ['getting_20started_17',['Getting started',['../quick_guide.html',1,'']]], + ['glapientry_18',['GLAPIENTRY',['../glfw3_8h.html#aa97755eb47e4bf2727ad45d610e18206',1,'glfw3.h']]], + ['glfw3_2eh_19',['glfw3.h',['../glfw3_8h.html',1,'']]], + ['glfw3native_2eh_20',['glfw3native.h',['../glfw3native_8h.html',1,'']]], + ['glfw_5faccum_5falpha_5fbits_21',['GLFW_ACCUM_ALPHA_BITS',['../group__window.html#gae829b55591c18169a40ab4067a041b1f',1,'glfw3.h']]], + ['glfw_5faccum_5fblue_5fbits_22',['GLFW_ACCUM_BLUE_BITS',['../group__window.html#ga22bbe9104a8ce1f8b88fb4f186aa36ce',1,'glfw3.h']]], + ['glfw_5faccum_5fgreen_5fbits_23',['GLFW_ACCUM_GREEN_BITS',['../group__window.html#ga65713cee1326f8e9d806fdf93187b471',1,'glfw3.h']]], + ['glfw_5faccum_5fred_5fbits_24',['GLFW_ACCUM_RED_BITS',['../group__window.html#gaead34a9a683b2bc20eecf30ba738bfc6',1,'glfw3.h']]], + ['glfw_5falpha_5fbits_25',['GLFW_ALPHA_BITS',['../group__window.html#gafed79a3f468997877da86c449bd43e8c',1,'glfw3.h']]], + ['glfw_5fany_5frelease_5fbehavior_26',['GLFW_ANY_RELEASE_BEHAVIOR',['../glfw3_8h.html#a6b47d806f285efe9bfd7aeec667297ee',1,'glfw3.h']]], + ['glfw_5fapi_5funavailable_27',['GLFW_API_UNAVAILABLE',['../group__errors.html#ga56882b290db23261cc6c053c40c2d08e',1,'glfw3.h']]], + ['glfw_5fapientry_5fdefined_28',['GLFW_APIENTRY_DEFINED',['../glfw3_8h.html#a8a8538c5500308b4211844f2fb26c7b9',1,'glfw3.h']]], + ['glfw_5farrow_5fcursor_29',['GLFW_ARROW_CURSOR',['../group__shapes.html#ga8ab0e717245b85506cb0eaefdea39d0a',1,'glfw3.h']]], + ['glfw_5fauto_5ficonify_30',['GLFW_AUTO_ICONIFY',['../group__window.html#ga9d9874fc928200136a6dcdad726aa252',1,'glfw3.h']]], + ['glfw_5faux_5fbuffers_31',['GLFW_AUX_BUFFERS',['../group__window.html#gab05108c5029443b371112b031d1fa174',1,'glfw3.h']]], + ['glfw_5fblue_5fbits_32',['GLFW_BLUE_BITS',['../group__window.html#gab292ea403db6d514537b515311bf9ae3',1,'glfw3.h']]], + ['glfw_5fcenter_5fcursor_33',['GLFW_CENTER_CURSOR',['../group__window.html#ga5ac0847c0aa0b3619f2855707b8a7a77',1,'glfw3.h']]], + ['glfw_5fclient_5fapi_34',['GLFW_CLIENT_API',['../group__window.html#ga649309cf72a3d3de5b1348ca7936c95b',1,'glfw3.h']]], + ['glfw_5fcocoa_5fchdir_5fresources_35',['GLFW_COCOA_CHDIR_RESOURCES',['../group__init.html#gab937983147a3158d45f88fad7129d9f2',1,'glfw3.h']]], + ['glfw_5fcocoa_5fframe_5fname_36',['GLFW_COCOA_FRAME_NAME',['../group__window.html#ga70fa0fbc745de6aa824df79a580e84b5',1,'glfw3.h']]], + ['glfw_5fcocoa_5fgraphics_5fswitching_37',['GLFW_COCOA_GRAPHICS_SWITCHING',['../group__window.html#ga53c84ed2ddd94e15bbd44b1f6f7feafc',1,'glfw3.h']]], + ['glfw_5fcocoa_5fmenubar_38',['GLFW_COCOA_MENUBAR',['../group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf',1,'glfw3.h']]], + ['glfw_5fcocoa_5fretina_5fframebuffer_39',['GLFW_COCOA_RETINA_FRAMEBUFFER',['../group__window.html#gab6ef2d02eb55800d249ccf1af253c35e',1,'glfw3.h']]], + ['glfw_5fconnected_40',['GLFW_CONNECTED',['../glfw3_8h.html#abe11513fd1ffbee5bb9b173f06028b9e',1,'glfw3.h']]], + ['glfw_5fcontext_5fcreation_5fapi_41',['GLFW_CONTEXT_CREATION_API',['../group__window.html#ga5154cebfcd831c1cc63a4d5ac9bb4486',1,'glfw3.h']]], + ['glfw_5fcontext_5fno_5ferror_42',['GLFW_CONTEXT_NO_ERROR',['../group__window.html#ga5a52fdfd46d8249c211f923675728082',1,'glfw3.h']]], + ['glfw_5fcontext_5frelease_5fbehavior_43',['GLFW_CONTEXT_RELEASE_BEHAVIOR',['../group__window.html#ga72b648a8378fe3310c7c7bbecc0f7be6',1,'glfw3.h']]], + ['glfw_5fcontext_5frevision_44',['GLFW_CONTEXT_REVISION',['../group__window.html#gafb9475071aa77c6fb05ca5a5c8678a08',1,'glfw3.h']]], + ['glfw_5fcontext_5frobustness_45',['GLFW_CONTEXT_ROBUSTNESS',['../group__window.html#gade3593916b4c507900aa2d6844810e00',1,'glfw3.h']]], + ['glfw_5fcontext_5fversion_5fmajor_46',['GLFW_CONTEXT_VERSION_MAJOR',['../group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0',1,'glfw3.h']]], + ['glfw_5fcontext_5fversion_5fminor_47',['GLFW_CONTEXT_VERSION_MINOR',['../group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07',1,'glfw3.h']]], + ['glfw_5fcrosshair_5fcursor_48',['GLFW_CROSSHAIR_CURSOR',['../group__shapes.html#ga8af88c0ea05ab9e8f9ac1530e8873c22',1,'glfw3.h']]], + ['glfw_5fcursor_49',['GLFW_CURSOR',['../glfw3_8h.html#aade31da5b884a84a7625c6b059b9132c',1,'glfw3.h']]], + ['glfw_5fcursor_5fdisabled_50',['GLFW_CURSOR_DISABLED',['../glfw3_8h.html#a2315b99a329ce53e6a13a9d46fd5ca88',1,'glfw3.h']]], + ['glfw_5fcursor_5fhidden_51',['GLFW_CURSOR_HIDDEN',['../glfw3_8h.html#ac4d5cb9d78de8573349c58763d53bf11',1,'glfw3.h']]], + ['glfw_5fcursor_5fnormal_52',['GLFW_CURSOR_NORMAL',['../glfw3_8h.html#ae04dd25c8577e19fa8c97368561f6c68',1,'glfw3.h']]], + ['glfw_5fdecorated_53',['GLFW_DECORATED',['../group__window.html#ga21b854d36314c94d65aed84405b2f25e',1,'glfw3.h']]], + ['glfw_5fdepth_5fbits_54',['GLFW_DEPTH_BITS',['../group__window.html#ga318a55eac1fee57dfe593b6d38149d07',1,'glfw3.h']]], + ['glfw_5fdisconnected_55',['GLFW_DISCONNECTED',['../glfw3_8h.html#aab64b25921ef21d89252d6f0a71bfc32',1,'glfw3.h']]], + ['glfw_5fdont_5fcare_56',['GLFW_DONT_CARE',['../glfw3_8h.html#a7a2edf2c18446833d27d07f1b7f3d571',1,'glfw3.h']]], + ['glfw_5fdoublebuffer_57',['GLFW_DOUBLEBUFFER',['../group__window.html#ga714a5d569e8a274ea58fdfa020955339',1,'glfw3.h']]], + ['glfw_5fegl_5fcontext_5fapi_58',['GLFW_EGL_CONTEXT_API',['../glfw3_8h.html#a03cf65c9ab01fc8b872ba58842c531c9',1,'glfw3.h']]], + ['glfw_5ffalse_59',['GLFW_FALSE',['../group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5',1,'glfw3.h']]], + ['glfw_5ffloating_60',['GLFW_FLOATING',['../group__window.html#ga7fb0be51407783b41adbf5bec0b09d80',1,'glfw3.h']]], + ['glfw_5ffocus_5fon_5fshow_61',['GLFW_FOCUS_ON_SHOW',['../group__window.html#gafa94b1da34bfd6488c0d709761504dfc',1,'glfw3.h']]], + ['glfw_5ffocused_62',['GLFW_FOCUSED',['../group__window.html#ga54ddb14825a1541a56e22afb5f832a9e',1,'glfw3.h']]], + ['glfw_5fformat_5funavailable_63',['GLFW_FORMAT_UNAVAILABLE',['../group__errors.html#ga196e125ef261d94184e2b55c05762f14',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5flast_64',['GLFW_GAMEPAD_AXIS_LAST',['../group__gamepad__axes.html#ga0818fd9433e1359692b7443293e5ac86',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fleft_5ftrigger_65',['GLFW_GAMEPAD_AXIS_LEFT_TRIGGER',['../group__gamepad__axes.html#ga6d79561dd8907c37354426242901b86e',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fleft_5fx_66',['GLFW_GAMEPAD_AXIS_LEFT_X',['../group__gamepad__axes.html#ga544e396d092036a7d80c1e5f233f7a38',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fleft_5fy_67',['GLFW_GAMEPAD_AXIS_LEFT_Y',['../group__gamepad__axes.html#ga64dcf2c6e9be50b7c556ff7671996dd5',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fright_5ftrigger_68',['GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER',['../group__gamepad__axes.html#ga121a7d5d20589a423cd1634dd6ee6eab',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fright_5fx_69',['GLFW_GAMEPAD_AXIS_RIGHT_X',['../group__gamepad__axes.html#gabd6785106cd3c5a044a6e49a395ee2fc',1,'glfw3.h']]], + ['glfw_5fgamepad_5faxis_5fright_5fy_70',['GLFW_GAMEPAD_AXIS_RIGHT_Y',['../group__gamepad__axes.html#ga1cc20566d44d521b7183681a8e88e2e4',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fa_71',['GLFW_GAMEPAD_BUTTON_A',['../group__gamepad__buttons.html#gae055a12fbf4b48b5954c8e1cd129b810',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fb_72',['GLFW_GAMEPAD_BUTTON_B',['../group__gamepad__buttons.html#ga2228a6512fd5950cdb51ba07846546fa',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fback_73',['GLFW_GAMEPAD_BUTTON_BACK',['../group__gamepad__buttons.html#gabc7c0264ce778835b516a472b47f6caf',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fcircle_74',['GLFW_GAMEPAD_BUTTON_CIRCLE',['../group__gamepad__buttons.html#gaaef094b3dacbf15f272b274516839b82',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fcross_75',['GLFW_GAMEPAD_BUTTON_CROSS',['../group__gamepad__buttons.html#gaf08d0df26527c9305253422bd98ed63a',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fdpad_5fdown_76',['GLFW_GAMEPAD_BUTTON_DPAD_DOWN',['../group__gamepad__buttons.html#ga8f2b731b97d80f90f11967a83207665c',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fdpad_5fleft_77',['GLFW_GAMEPAD_BUTTON_DPAD_LEFT',['../group__gamepad__buttons.html#gaf0697e0e8607b2ebe1c93b0c6befe301',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fdpad_5fright_78',['GLFW_GAMEPAD_BUTTON_DPAD_RIGHT',['../group__gamepad__buttons.html#gae2a780d2a8c79e0b77c0b7b601ca57c6',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fdpad_5fup_79',['GLFW_GAMEPAD_BUTTON_DPAD_UP',['../group__gamepad__buttons.html#ga4f1ed6f974a47bc8930d4874a283476a',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fguide_80',['GLFW_GAMEPAD_BUTTON_GUIDE',['../group__gamepad__buttons.html#ga7fa48c32e5b2f5db2f080aa0b8b573dc',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5flast_81',['GLFW_GAMEPAD_BUTTON_LAST',['../group__gamepad__buttons.html#ga5cc98882f4f81dacf761639a567f61eb',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fleft_5fbumper_82',['GLFW_GAMEPAD_BUTTON_LEFT_BUMPER',['../group__gamepad__buttons.html#ga17d67b4f39a39d6b813bd1567a3507c3',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fleft_5fthumb_83',['GLFW_GAMEPAD_BUTTON_LEFT_THUMB',['../group__gamepad__buttons.html#ga3e089787327454f7bfca7364d6ca206a',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fright_5fbumper_84',['GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER',['../group__gamepad__buttons.html#gadfbc9ea9bf3aae896b79fa49fdc85c7f',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fright_5fthumb_85',['GLFW_GAMEPAD_BUTTON_RIGHT_THUMB',['../group__gamepad__buttons.html#ga1c003f52b5aebb45272475b48953b21a',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fsquare_86',['GLFW_GAMEPAD_BUTTON_SQUARE',['../group__gamepad__buttons.html#gafc7821e87d77d41ed2cd3e1f726ec35f',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fstart_87',['GLFW_GAMEPAD_BUTTON_START',['../group__gamepad__buttons.html#ga04606949dd9139434b8a1bedf4ac1021',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5ftriangle_88',['GLFW_GAMEPAD_BUTTON_TRIANGLE',['../group__gamepad__buttons.html#ga3a7ef6bcb768a08cd3bf142f7f09f802',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fx_89',['GLFW_GAMEPAD_BUTTON_X',['../group__gamepad__buttons.html#ga52cc94785cf3fe9a12e246539259887c',1,'glfw3.h']]], + ['glfw_5fgamepad_5fbutton_5fy_90',['GLFW_GAMEPAD_BUTTON_Y',['../group__gamepad__buttons.html#gafc931248bda494b530cbe057f386a5ed',1,'glfw3.h']]], + ['glfw_5fgreen_5fbits_91',['GLFW_GREEN_BITS',['../group__window.html#gafba3b72638c914e5fb8a237dd4c50d4d',1,'glfw3.h']]], + ['glfw_5fhand_5fcursor_92',['GLFW_HAND_CURSOR',['../group__shapes.html#ga1db35e20849e0837c82e3dc1fd797263',1,'glfw3.h']]], + ['glfw_5fhat_5fcentered_93',['GLFW_HAT_CENTERED',['../group__hat__state.html#gae2c0bcb7aec609e4736437554f6638fd',1,'glfw3.h']]], + ['glfw_5fhat_5fdown_94',['GLFW_HAT_DOWN',['../group__hat__state.html#gad60d1fd0dc85c18f2642cbae96d3deff',1,'glfw3.h']]], + ['glfw_5fhat_5fleft_95',['GLFW_HAT_LEFT',['../group__hat__state.html#gac775f4b3154fdf5db93eb432ba546dff',1,'glfw3.h']]], + ['glfw_5fhat_5fleft_5fdown_96',['GLFW_HAT_LEFT_DOWN',['../group__hat__state.html#ga76c02baf1ea345fcbe3e8ff176a73e19',1,'glfw3.h']]], + ['glfw_5fhat_5fleft_5fup_97',['GLFW_HAT_LEFT_UP',['../group__hat__state.html#ga638f0e20dc5de90de21a33564e8ce129',1,'glfw3.h']]], + ['glfw_5fhat_5fright_98',['GLFW_HAT_RIGHT',['../group__hat__state.html#ga252586e3bbde75f4b0e07ad3124867f5',1,'glfw3.h']]], + ['glfw_5fhat_5fright_5fdown_99',['GLFW_HAT_RIGHT_DOWN',['../group__hat__state.html#gad7f0e4f52fd68d734863aaeadab3a3f5',1,'glfw3.h']]], + ['glfw_5fhat_5fright_5fup_100',['GLFW_HAT_RIGHT_UP',['../group__hat__state.html#ga94aea0ae241a8b902883536c592ee693',1,'glfw3.h']]], + ['glfw_5fhat_5fup_101',['GLFW_HAT_UP',['../group__hat__state.html#ga8c9720c76cd1b912738159ed74c85b36',1,'glfw3.h']]], + ['glfw_5fhovered_102',['GLFW_HOVERED',['../group__window.html#ga8665c71c6fa3d22425c6a0e8a3f89d8a',1,'glfw3.h']]], + ['glfw_5fhresize_5fcursor_103',['GLFW_HRESIZE_CURSOR',['../group__shapes.html#gabb3eb0109f11bb808fc34659177ca962',1,'glfw3.h']]], + ['glfw_5fibeam_5fcursor_104',['GLFW_IBEAM_CURSOR',['../group__shapes.html#ga36185f4375eaada1b04e431244774c86',1,'glfw3.h']]], + ['glfw_5ficonified_105',['GLFW_ICONIFIED',['../group__window.html#ga39d44b7c056e55e581355a92d240b58a',1,'glfw3.h']]], + ['glfw_5finvalid_5fenum_106',['GLFW_INVALID_ENUM',['../group__errors.html#ga76f6bb9c4eea73db675f096b404593ce',1,'glfw3.h']]], + ['glfw_5finvalid_5fvalue_107',['GLFW_INVALID_VALUE',['../group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687',1,'glfw3.h']]], + ['glfw_5fjoystick_5f1_108',['GLFW_JOYSTICK_1',['../group__joysticks.html#ga34a0443d059e9f22272cd4669073f73d',1,'glfw3.h']]], + ['glfw_5fjoystick_5f10_109',['GLFW_JOYSTICK_10',['../group__joysticks.html#gaef55389ee605d6dfc31aef6fe98c54ec',1,'glfw3.h']]], + ['glfw_5fjoystick_5f11_110',['GLFW_JOYSTICK_11',['../group__joysticks.html#gae7d26e3df447c2c14a569fcc18516af4',1,'glfw3.h']]], + ['glfw_5fjoystick_5f12_111',['GLFW_JOYSTICK_12',['../group__joysticks.html#gab91bbf5b7ca6be8d3ac5c4d89ff48ac7',1,'glfw3.h']]], + ['glfw_5fjoystick_5f13_112',['GLFW_JOYSTICK_13',['../group__joysticks.html#ga5c84fb4e49bf661d7d7c78eb4018c508',1,'glfw3.h']]], + ['glfw_5fjoystick_5f14_113',['GLFW_JOYSTICK_14',['../group__joysticks.html#ga89540873278ae5a42b3e70d64164dc74',1,'glfw3.h']]], + ['glfw_5fjoystick_5f15_114',['GLFW_JOYSTICK_15',['../group__joysticks.html#ga7b02ab70daf7a78bcc942d5d4cc1dcf9',1,'glfw3.h']]], + ['glfw_5fjoystick_5f16_115',['GLFW_JOYSTICK_16',['../group__joysticks.html#ga453edeeabf350827646b6857df4f80ce',1,'glfw3.h']]], + ['glfw_5fjoystick_5f2_116',['GLFW_JOYSTICK_2',['../group__joysticks.html#ga6eab65ec88e65e0850ef8413504cb50c',1,'glfw3.h']]], + ['glfw_5fjoystick_5f3_117',['GLFW_JOYSTICK_3',['../group__joysticks.html#gae6f3eedfeb42424c2f5e3161efb0b654',1,'glfw3.h']]], + ['glfw_5fjoystick_5f4_118',['GLFW_JOYSTICK_4',['../group__joysticks.html#ga97ddbcad02b7f48d74fad4ddb08fff59',1,'glfw3.h']]], + ['glfw_5fjoystick_5f5_119',['GLFW_JOYSTICK_5',['../group__joysticks.html#gae43281bc66d3fa5089fb50c3e7a28695',1,'glfw3.h']]], + ['glfw_5fjoystick_5f6_120',['GLFW_JOYSTICK_6',['../group__joysticks.html#ga74771620aa53bd68a487186dea66fd77',1,'glfw3.h']]], + ['glfw_5fjoystick_5f7_121',['GLFW_JOYSTICK_7',['../group__joysticks.html#ga20a9f4f3aaefed9ea5e66072fc588b87',1,'glfw3.h']]], + ['glfw_5fjoystick_5f8_122',['GLFW_JOYSTICK_8',['../group__joysticks.html#ga21a934c940bcf25db0e4c8fe9b364bdb',1,'glfw3.h']]], + ['glfw_5fjoystick_5f9_123',['GLFW_JOYSTICK_9',['../group__joysticks.html#ga87689d47df0ba6f9f5fcbbcaf7b3cecf',1,'glfw3.h']]], + ['glfw_5fjoystick_5fhat_5fbuttons_124',['GLFW_JOYSTICK_HAT_BUTTONS',['../group__init.html#gab9c0534709fda03ec8959201da3a9a18',1,'glfw3.h']]], + ['glfw_5fjoystick_5flast_125',['GLFW_JOYSTICK_LAST',['../group__joysticks.html#ga9ca13ebf24c331dd98df17d84a4b72c9',1,'glfw3.h']]], + ['glfw_5fkey_5f0_126',['GLFW_KEY_0',['../group__keys.html#ga50391730e9d7112ad4fd42d0bd1597c1',1,'glfw3.h']]], + ['glfw_5fkey_5f1_127',['GLFW_KEY_1',['../group__keys.html#ga05e4cae9ddb8d40cf6d82c8f11f2502f',1,'glfw3.h']]], + ['glfw_5fkey_5f2_128',['GLFW_KEY_2',['../group__keys.html#gadc8e66b3a4c4b5c39ad1305cf852863c',1,'glfw3.h']]], + ['glfw_5fkey_5f3_129',['GLFW_KEY_3',['../group__keys.html#ga812f0273fe1a981e1fa002ae73e92271',1,'glfw3.h']]], + ['glfw_5fkey_5f4_130',['GLFW_KEY_4',['../group__keys.html#ga9e14b6975a9cc8f66cdd5cb3d3861356',1,'glfw3.h']]], + ['glfw_5fkey_5f5_131',['GLFW_KEY_5',['../group__keys.html#ga4d74ddaa5d4c609993b4d4a15736c924',1,'glfw3.h']]], + ['glfw_5fkey_5f6_132',['GLFW_KEY_6',['../group__keys.html#ga9ea4ab80c313a227b14d0a7c6f810b5d',1,'glfw3.h']]], + ['glfw_5fkey_5f7_133',['GLFW_KEY_7',['../group__keys.html#gab79b1cfae7bd630cfc4604c1f263c666',1,'glfw3.h']]], + ['glfw_5fkey_5f8_134',['GLFW_KEY_8',['../group__keys.html#gadeaa109a0f9f5afc94fe4a108e686f6f',1,'glfw3.h']]], + ['glfw_5fkey_5f9_135',['GLFW_KEY_9',['../group__keys.html#ga2924cb5349ebbf97c8987f3521c44f39',1,'glfw3.h']]], + ['glfw_5fkey_5fa_136',['GLFW_KEY_A',['../group__keys.html#ga03e842608e1ea323370889d33b8f70ff',1,'glfw3.h']]], + ['glfw_5fkey_5fapostrophe_137',['GLFW_KEY_APOSTROPHE',['../group__keys.html#ga6059b0b048ba6980b6107fffbd3b4b24',1,'glfw3.h']]], + ['glfw_5fkey_5fb_138',['GLFW_KEY_B',['../group__keys.html#ga8e3fb647ff3aca9e8dbf14fe66332941',1,'glfw3.h']]], + ['glfw_5fkey_5fbackslash_139',['GLFW_KEY_BACKSLASH',['../group__keys.html#gab8155ea99d1ab27ff56f24f8dc73f8d1',1,'glfw3.h']]], + ['glfw_5fkey_5fbackspace_140',['GLFW_KEY_BACKSPACE',['../group__keys.html#ga6c0df1fe2f156bbd5a98c66d76ff3635',1,'glfw3.h']]], + ['glfw_5fkey_5fc_141',['GLFW_KEY_C',['../group__keys.html#ga00ccf3475d9ee2e679480d540d554669',1,'glfw3.h']]], + ['glfw_5fkey_5fcaps_5flock_142',['GLFW_KEY_CAPS_LOCK',['../group__keys.html#ga92c1d2c9d63485f3d70f94f688d48672',1,'glfw3.h']]], + ['glfw_5fkey_5fcomma_143',['GLFW_KEY_COMMA',['../group__keys.html#gab3d5d72e59d3055f494627b0a524926c',1,'glfw3.h']]], + ['glfw_5fkey_5fd_144',['GLFW_KEY_D',['../group__keys.html#ga011f7cdc9a654da984a2506479606933',1,'glfw3.h']]], + ['glfw_5fkey_5fdelete_145',['GLFW_KEY_DELETE',['../group__keys.html#gadb111e4df74b8a715f2c05dad58d2682',1,'glfw3.h']]], + ['glfw_5fkey_5fdown_146',['GLFW_KEY_DOWN',['../group__keys.html#gae2e3958c71595607416aa7bf082be2f9',1,'glfw3.h']]], + ['glfw_5fkey_5fe_147',['GLFW_KEY_E',['../group__keys.html#gabf48fcc3afbe69349df432b470c96ef2',1,'glfw3.h']]], + ['glfw_5fkey_5fend_148',['GLFW_KEY_END',['../group__keys.html#ga86587ea1df19a65978d3e3b8439bedd9',1,'glfw3.h']]], + ['glfw_5fkey_5fenter_149',['GLFW_KEY_ENTER',['../group__keys.html#ga9555a92ecbecdbc1f3435219c571d667',1,'glfw3.h']]], + ['glfw_5fkey_5fequal_150',['GLFW_KEY_EQUAL',['../group__keys.html#gae1a2de47240d6664423c204bdd91bd17',1,'glfw3.h']]], + ['glfw_5fkey_5fescape_151',['GLFW_KEY_ESCAPE',['../group__keys.html#gaac6596c350b635c245113b81c2123b93',1,'glfw3.h']]], + ['glfw_5fkey_5ff_152',['GLFW_KEY_F',['../group__keys.html#ga5df402e02aca08444240058fd9b42a55',1,'glfw3.h']]], + ['glfw_5fkey_5ff1_153',['GLFW_KEY_F1',['../group__keys.html#gafb8d66c573acf22e364049477dcbea30',1,'glfw3.h']]], + ['glfw_5fkey_5ff10_154',['GLFW_KEY_F10',['../group__keys.html#ga718d11d2f7d57471a2f6a894235995b1',1,'glfw3.h']]], + ['glfw_5fkey_5ff11_155',['GLFW_KEY_F11',['../group__keys.html#ga0bc04b11627e7d69339151e7306b2832',1,'glfw3.h']]], + ['glfw_5fkey_5ff12_156',['GLFW_KEY_F12',['../group__keys.html#gaf5908fa9b0a906ae03fc2c61ac7aa3e2',1,'glfw3.h']]], + ['glfw_5fkey_5ff13_157',['GLFW_KEY_F13',['../group__keys.html#gad637f4308655e1001bd6ad942bc0fd4b',1,'glfw3.h']]], + ['glfw_5fkey_5ff14_158',['GLFW_KEY_F14',['../group__keys.html#gaf14c66cff3396e5bd46e803c035e6c1f',1,'glfw3.h']]], + ['glfw_5fkey_5ff15_159',['GLFW_KEY_F15',['../group__keys.html#ga7f70970db6e8be1794da8516a6d14058',1,'glfw3.h']]], + ['glfw_5fkey_5ff16_160',['GLFW_KEY_F16',['../group__keys.html#gaa582dbb1d2ba2050aa1dca0838095b27',1,'glfw3.h']]], + ['glfw_5fkey_5ff17_161',['GLFW_KEY_F17',['../group__keys.html#ga972ce5c365e2394b36104b0e3125c748',1,'glfw3.h']]], + ['glfw_5fkey_5ff18_162',['GLFW_KEY_F18',['../group__keys.html#gaebf6391058d5566601e357edc5ea737c',1,'glfw3.h']]], + ['glfw_5fkey_5ff19_163',['GLFW_KEY_F19',['../group__keys.html#gaec011d9ba044058cb54529da710e9791',1,'glfw3.h']]], + ['glfw_5fkey_5ff2_164',['GLFW_KEY_F2',['../group__keys.html#ga0900750aff94889b940f5e428c07daee',1,'glfw3.h']]], + ['glfw_5fkey_5ff20_165',['GLFW_KEY_F20',['../group__keys.html#ga82b9c721ada04cd5ca8de767da38022f',1,'glfw3.h']]], + ['glfw_5fkey_5ff21_166',['GLFW_KEY_F21',['../group__keys.html#ga356afb14d3440ff2bb378f74f7ebc60f',1,'glfw3.h']]], + ['glfw_5fkey_5ff22_167',['GLFW_KEY_F22',['../group__keys.html#ga90960bd2a155f2b09675324d3dff1565',1,'glfw3.h']]], + ['glfw_5fkey_5ff23_168',['GLFW_KEY_F23',['../group__keys.html#ga43c21099aac10952d1be909a8ddee4d5',1,'glfw3.h']]], + ['glfw_5fkey_5ff24_169',['GLFW_KEY_F24',['../group__keys.html#ga8150374677b5bed3043408732152dea2',1,'glfw3.h']]], + ['glfw_5fkey_5ff25_170',['GLFW_KEY_F25',['../group__keys.html#gaa4bbd93ed73bb4c6ae7d83df880b7199',1,'glfw3.h']]], + ['glfw_5fkey_5ff3_171',['GLFW_KEY_F3',['../group__keys.html#gaed7cd729c0147a551bb8b7bb36c17015',1,'glfw3.h']]], + ['glfw_5fkey_5ff4_172',['GLFW_KEY_F4',['../group__keys.html#ga9b61ebd0c63b44b7332fda2c9763eaa6',1,'glfw3.h']]], + ['glfw_5fkey_5ff5_173',['GLFW_KEY_F5',['../group__keys.html#gaf258dda9947daa428377938ed577c8c2',1,'glfw3.h']]], + ['glfw_5fkey_5ff6_174',['GLFW_KEY_F6',['../group__keys.html#ga6dc2d3f87b9d51ffbbbe2ef0299d8e1d',1,'glfw3.h']]], + ['glfw_5fkey_5ff7_175',['GLFW_KEY_F7',['../group__keys.html#gacca6ef8a2162c52a0ac1d881e8d9c38a',1,'glfw3.h']]], + ['glfw_5fkey_5ff8_176',['GLFW_KEY_F8',['../group__keys.html#gac9d39390336ae14e4a93e295de43c7e8',1,'glfw3.h']]], + ['glfw_5fkey_5ff9_177',['GLFW_KEY_F9',['../group__keys.html#gae40de0de1c9f21cd26c9afa3d7050851',1,'glfw3.h']]], + ['glfw_5fkey_5fg_178',['GLFW_KEY_G',['../group__keys.html#gae74ecddf7cc96104ab23989b1cdab536',1,'glfw3.h']]], + ['glfw_5fkey_5fgrave_5faccent_179',['GLFW_KEY_GRAVE_ACCENT',['../group__keys.html#ga7a3701fb4e2a0b136ff4b568c3c8d668',1,'glfw3.h']]], + ['glfw_5fkey_5fh_180',['GLFW_KEY_H',['../group__keys.html#gad4cc98fc8f35f015d9e2fb94bf136076',1,'glfw3.h']]], + ['glfw_5fkey_5fhome_181',['GLFW_KEY_HOME',['../group__keys.html#ga41452c7287195d481e43207318c126a7',1,'glfw3.h']]], + ['glfw_5fkey_5fi_182',['GLFW_KEY_I',['../group__keys.html#ga274655c8bfe39742684ca393cf8ed093',1,'glfw3.h']]], + ['glfw_5fkey_5finsert_183',['GLFW_KEY_INSERT',['../group__keys.html#ga373ac7365435d6b0eb1068f470e34f47',1,'glfw3.h']]], + ['glfw_5fkey_5fj_184',['GLFW_KEY_J',['../group__keys.html#ga65ff2aedb129a3149ad9cb3e4159a75f',1,'glfw3.h']]], + ['glfw_5fkey_5fk_185',['GLFW_KEY_K',['../group__keys.html#ga4ae8debadf6d2a691badae0b53ea3ba0',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f0_186',['GLFW_KEY_KP_0',['../group__keys.html#ga10515dafc55b71e7683f5b4fedd1c70d',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f1_187',['GLFW_KEY_KP_1',['../group__keys.html#gaf3a29a334402c5eaf0b3439edf5587c3',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f2_188',['GLFW_KEY_KP_2',['../group__keys.html#gaf82d5a802ab8213c72653d7480c16f13',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f3_189',['GLFW_KEY_KP_3',['../group__keys.html#ga7e25ff30d56cd512828c1d4ae8d54ef2',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f4_190',['GLFW_KEY_KP_4',['../group__keys.html#gada7ec86778b85e0b4de0beea72234aea',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f5_191',['GLFW_KEY_KP_5',['../group__keys.html#ga9a5be274434866c51738cafbb6d26b45',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f6_192',['GLFW_KEY_KP_6',['../group__keys.html#gafc141b0f8450519084c01092a3157faa',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f7_193',['GLFW_KEY_KP_7',['../group__keys.html#ga8882f411f05d04ec77a9563974bbfa53',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f8_194',['GLFW_KEY_KP_8',['../group__keys.html#gab2ea2e6a12f89d315045af520ac78cec',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5f9_195',['GLFW_KEY_KP_9',['../group__keys.html#gafb21426b630ed4fcc084868699ba74c1',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fadd_196',['GLFW_KEY_KP_ADD',['../group__keys.html#gad09c7c98acc79e89aa6a0a91275becac',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fdecimal_197',['GLFW_KEY_KP_DECIMAL',['../group__keys.html#ga4e231d968796331a9ea0dbfb98d4005b',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fdivide_198',['GLFW_KEY_KP_DIVIDE',['../group__keys.html#gabca1733780a273d549129ad0f250d1e5',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fenter_199',['GLFW_KEY_KP_ENTER',['../group__keys.html#ga4f728f8738f2986bd63eedd3d412e8cf',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fequal_200',['GLFW_KEY_KP_EQUAL',['../group__keys.html#gaebdc76d4a808191e6d21b7e4ad2acd97',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fmultiply_201',['GLFW_KEY_KP_MULTIPLY',['../group__keys.html#ga9ada267eb0e78ed2ada8701dd24a56ef',1,'glfw3.h']]], + ['glfw_5fkey_5fkp_5fsubtract_202',['GLFW_KEY_KP_SUBTRACT',['../group__keys.html#gaa3dbd60782ff93d6082a124bce1fa236',1,'glfw3.h']]], + ['glfw_5fkey_5fl_203',['GLFW_KEY_L',['../group__keys.html#gaaa8b54a13f6b1eed85ac86f82d550db2',1,'glfw3.h']]], + ['glfw_5fkey_5flast_204',['GLFW_KEY_LAST',['../group__keys.html#ga442cbaef7bfb9a4ba13594dd7fbf2789',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_205',['GLFW_KEY_LEFT',['../group__keys.html#gae12a010d33c309a67ab9460c51eb2462',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_5falt_206',['GLFW_KEY_LEFT_ALT',['../group__keys.html#ga7f27dabf63a7789daa31e1c96790219b',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_5fbracket_207',['GLFW_KEY_LEFT_BRACKET',['../group__keys.html#gad1c8d9adac53925276ecb1d592511d8a',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_5fcontrol_208',['GLFW_KEY_LEFT_CONTROL',['../group__keys.html#ga9f97b743e81460ac4b2deddecd10a464',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_5fshift_209',['GLFW_KEY_LEFT_SHIFT',['../group__keys.html#ga8a530a28a65c44ab5d00b759b756d3f6',1,'glfw3.h']]], + ['glfw_5fkey_5fleft_5fsuper_210',['GLFW_KEY_LEFT_SUPER',['../group__keys.html#gafb1207c91997fc295afd1835fbc5641a',1,'glfw3.h']]], + ['glfw_5fkey_5fm_211',['GLFW_KEY_M',['../group__keys.html#ga4d7f0260c82e4ea3d6ebc7a21d6e3716',1,'glfw3.h']]], + ['glfw_5fkey_5fmenu_212',['GLFW_KEY_MENU',['../group__keys.html#ga9845be48a745fc232045c9ec174d8820',1,'glfw3.h']]], + ['glfw_5fkey_5fminus_213',['GLFW_KEY_MINUS',['../group__keys.html#gac556b360f7f6fca4b70ba0aecf313fd4',1,'glfw3.h']]], + ['glfw_5fkey_5fn_214',['GLFW_KEY_N',['../group__keys.html#gae00856dfeb5d13aafebf59d44de5cdda',1,'glfw3.h']]], + ['glfw_5fkey_5fnum_5flock_215',['GLFW_KEY_NUM_LOCK',['../group__keys.html#ga3946edc362aeff213b2be6304296cf43',1,'glfw3.h']]], + ['glfw_5fkey_5fo_216',['GLFW_KEY_O',['../group__keys.html#gaecbbb79130df419d58dd7f09a169efe9',1,'glfw3.h']]], + ['glfw_5fkey_5fp_217',['GLFW_KEY_P',['../group__keys.html#ga8fc15819c1094fb2afa01d84546b33e1',1,'glfw3.h']]], + ['glfw_5fkey_5fpage_5fdown_218',['GLFW_KEY_PAGE_DOWN',['../group__keys.html#gaee0a8fa442001cc2147812f84b59041c',1,'glfw3.h']]], + ['glfw_5fkey_5fpage_5fup_219',['GLFW_KEY_PAGE_UP',['../group__keys.html#ga3ab731f9622f0db280178a5f3cc6d586',1,'glfw3.h']]], + ['glfw_5fkey_5fpause_220',['GLFW_KEY_PAUSE',['../group__keys.html#ga8116b9692d87382afb5849b6d8907f18',1,'glfw3.h']]], + ['glfw_5fkey_5fperiod_221',['GLFW_KEY_PERIOD',['../group__keys.html#ga37e296b650eab419fc474ff69033d927',1,'glfw3.h']]], + ['glfw_5fkey_5fprint_5fscreen_222',['GLFW_KEY_PRINT_SCREEN',['../group__keys.html#gaf964c2e65e97d0cf785a5636ee8df642',1,'glfw3.h']]], + ['glfw_5fkey_5fq_223',['GLFW_KEY_Q',['../group__keys.html#gafdd01e38b120d67cf51e348bb47f3964',1,'glfw3.h']]], + ['glfw_5fkey_5fr_224',['GLFW_KEY_R',['../group__keys.html#ga4ce6c70a0c98c50b3fe4ab9a728d4d36',1,'glfw3.h']]], + ['glfw_5fkey_5fright_225',['GLFW_KEY_RIGHT',['../group__keys.html#ga06ba07662e8c291a4a84535379ffc7ac',1,'glfw3.h']]], + ['glfw_5fkey_5fright_5falt_226',['GLFW_KEY_RIGHT_ALT',['../group__keys.html#ga687b38009131cfdd07a8d05fff8fa446',1,'glfw3.h']]], + ['glfw_5fkey_5fright_5fbracket_227',['GLFW_KEY_RIGHT_BRACKET',['../group__keys.html#ga86ef225fd6a66404caae71044cdd58d8',1,'glfw3.h']]], + ['glfw_5fkey_5fright_5fcontrol_228',['GLFW_KEY_RIGHT_CONTROL',['../group__keys.html#gad1ca2094b2694e7251d0ab1fd34f8519',1,'glfw3.h']]], + ['glfw_5fkey_5fright_5fshift_229',['GLFW_KEY_RIGHT_SHIFT',['../group__keys.html#gaffca36b99c9dce1a19cb9befbadce691',1,'glfw3.h']]], + ['glfw_5fkey_5fright_5fsuper_230',['GLFW_KEY_RIGHT_SUPER',['../group__keys.html#gad4547a3e8e247594acb60423fe6502db',1,'glfw3.h']]], + ['glfw_5fkey_5fs_231',['GLFW_KEY_S',['../group__keys.html#ga1570e2ccaab036ea82bed66fc1dab2a9',1,'glfw3.h']]], + ['glfw_5fkey_5fscroll_5flock_232',['GLFW_KEY_SCROLL_LOCK',['../group__keys.html#gaf622b63b9537f7084c2ab649b8365630',1,'glfw3.h']]], + ['glfw_5fkey_5fsemicolon_233',['GLFW_KEY_SEMICOLON',['../group__keys.html#ga84233de9ee5bb3e8788a5aa07d80af7d',1,'glfw3.h']]], + ['glfw_5fkey_5fslash_234',['GLFW_KEY_SLASH',['../group__keys.html#gadf3d753b2d479148d711de34b83fd0db',1,'glfw3.h']]], + ['glfw_5fkey_5fspace_235',['GLFW_KEY_SPACE',['../group__keys.html#gaddb2c23772b97fd7e26e8ee66f1ad014',1,'glfw3.h']]], + ['glfw_5fkey_5ft_236',['GLFW_KEY_T',['../group__keys.html#ga90e0560422ec7a30e7f3f375bc9f37f9',1,'glfw3.h']]], + ['glfw_5fkey_5ftab_237',['GLFW_KEY_TAB',['../group__keys.html#ga6908a4bda9950a3e2b73f794bbe985df',1,'glfw3.h']]], + ['glfw_5fkey_5fu_238',['GLFW_KEY_U',['../group__keys.html#gacad52f3bf7d378fc0ffa72a76769256d',1,'glfw3.h']]], + ['glfw_5fkey_5funknown_239',['GLFW_KEY_UNKNOWN',['../group__keys.html#ga99aacc875b6b27a072552631e13775c7',1,'glfw3.h']]], + ['glfw_5fkey_5fup_240',['GLFW_KEY_UP',['../group__keys.html#ga2f3342b194020d3544c67e3506b6f144',1,'glfw3.h']]], + ['glfw_5fkey_5fv_241',['GLFW_KEY_V',['../group__keys.html#ga22c7763899ecf7788862e5f90eacce6b',1,'glfw3.h']]], + ['glfw_5fkey_5fw_242',['GLFW_KEY_W',['../group__keys.html#gaa06a712e6202661fc03da5bdb7b6e545',1,'glfw3.h']]], + ['glfw_5fkey_5fworld_5f1_243',['GLFW_KEY_WORLD_1',['../group__keys.html#gadc78dad3dab76bcd4b5c20114052577a',1,'glfw3.h']]], + ['glfw_5fkey_5fworld_5f2_244',['GLFW_KEY_WORLD_2',['../group__keys.html#ga20494bfebf0bb4fc9503afca18ab2c5e',1,'glfw3.h']]], + ['glfw_5fkey_5fx_245',['GLFW_KEY_X',['../group__keys.html#gac1c42c0bf4192cea713c55598b06b744',1,'glfw3.h']]], + ['glfw_5fkey_5fy_246',['GLFW_KEY_Y',['../group__keys.html#gafd9f115a549effdf8e372a787c360313',1,'glfw3.h']]], + ['glfw_5fkey_5fz_247',['GLFW_KEY_Z',['../group__keys.html#gac489e208c26afda8d4938ed88718760a',1,'glfw3.h']]], + ['glfw_5flock_5fkey_5fmods_248',['GLFW_LOCK_KEY_MODS',['../glfw3_8h.html#a07b84de0b52143e1958f88a7d9105947',1,'glfw3.h']]], + ['glfw_5flose_5fcontext_5fon_5freset_249',['GLFW_LOSE_CONTEXT_ON_RESET',['../glfw3_8h.html#aec1132f245143fc915b2f0995228564c',1,'glfw3.h']]], + ['glfw_5fmaximized_250',['GLFW_MAXIMIZED',['../group__window.html#gad8ccb396253ad0b72c6d4c917eb38a03',1,'glfw3.h']]], + ['glfw_5fmod_5falt_251',['GLFW_MOD_ALT',['../group__mods.html#gad2acd5633463c29e07008687ea73c0f4',1,'glfw3.h']]], + ['glfw_5fmod_5fcaps_5flock_252',['GLFW_MOD_CAPS_LOCK',['../group__mods.html#gaefeef8fcf825a6e43e241b337897200f',1,'glfw3.h']]], + ['glfw_5fmod_5fcontrol_253',['GLFW_MOD_CONTROL',['../group__mods.html#ga6ed94871c3208eefd85713fa929d45aa',1,'glfw3.h']]], + ['glfw_5fmod_5fnum_5flock_254',['GLFW_MOD_NUM_LOCK',['../group__mods.html#ga64e020b8a42af8376e944baf61feecbe',1,'glfw3.h']]], + ['glfw_5fmod_5fshift_255',['GLFW_MOD_SHIFT',['../group__mods.html#ga14994d3196c290aaa347248e51740274',1,'glfw3.h']]], + ['glfw_5fmod_5fsuper_256',['GLFW_MOD_SUPER',['../group__mods.html#ga6b64ba10ea0227cf6f42efd0a220aba1',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f1_257',['GLFW_MOUSE_BUTTON_1',['../group__buttons.html#ga181a6e875251fd8671654eff00f9112e',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f2_258',['GLFW_MOUSE_BUTTON_2',['../group__buttons.html#ga604b39b92c88ce9bd332e97fc3f4156c',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f3_259',['GLFW_MOUSE_BUTTON_3',['../group__buttons.html#ga0130d505563d0236a6f85545f19e1721',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f4_260',['GLFW_MOUSE_BUTTON_4',['../group__buttons.html#ga53f4097bb01d5521c7d9513418c91ca9',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f5_261',['GLFW_MOUSE_BUTTON_5',['../group__buttons.html#gaf08c4ddecb051d3d9667db1d5e417c9c',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f6_262',['GLFW_MOUSE_BUTTON_6',['../group__buttons.html#gae8513e06aab8aa393b595f22c6d8257a',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f7_263',['GLFW_MOUSE_BUTTON_7',['../group__buttons.html#ga8b02a1ab55dde45b3a3883d54ffd7dc7',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5f8_264',['GLFW_MOUSE_BUTTON_8',['../group__buttons.html#ga35d5c4263e0dc0d0a4731ca6c562f32c',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5flast_265',['GLFW_MOUSE_BUTTON_LAST',['../group__buttons.html#gab1fd86a4518a9141ec7bcde2e15a2fdf',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5fleft_266',['GLFW_MOUSE_BUTTON_LEFT',['../group__buttons.html#gaf37100431dcd5082d48f95ee8bc8cd56',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5fmiddle_267',['GLFW_MOUSE_BUTTON_MIDDLE',['../group__buttons.html#ga34a4d2a701434f763fd93a2ff842b95a',1,'glfw3.h']]], + ['glfw_5fmouse_5fbutton_5fright_268',['GLFW_MOUSE_BUTTON_RIGHT',['../group__buttons.html#ga3e2f2cf3c4942df73cc094247d275e74',1,'glfw3.h']]], + ['glfw_5fnative_5fcontext_5fapi_269',['GLFW_NATIVE_CONTEXT_API',['../glfw3_8h.html#a0494c9bfd3f584ab41e6dbeeaa0e6a19',1,'glfw3.h']]], + ['glfw_5fno_5fapi_270',['GLFW_NO_API',['../glfw3_8h.html#a8f6dcdc968d214ff14779564f1389264',1,'glfw3.h']]], + ['glfw_5fno_5fcurrent_5fcontext_271',['GLFW_NO_CURRENT_CONTEXT',['../group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0',1,'glfw3.h']]], + ['glfw_5fno_5ferror_272',['GLFW_NO_ERROR',['../group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4',1,'glfw3.h']]], + ['glfw_5fno_5freset_5fnotification_273',['GLFW_NO_RESET_NOTIFICATION',['../glfw3_8h.html#aee84a679230d205005e22487ff678a85',1,'glfw3.h']]], + ['glfw_5fno_5frobustness_274',['GLFW_NO_ROBUSTNESS',['../glfw3_8h.html#a8b306cb27f5bb0d6d67c7356a0e0fc34',1,'glfw3.h']]], + ['glfw_5fno_5fwindow_5fcontext_275',['GLFW_NO_WINDOW_CONTEXT',['../group__errors.html#gacff24d2757da752ae4c80bf452356487',1,'glfw3.h']]], + ['glfw_5fnot_5finitialized_276',['GLFW_NOT_INITIALIZED',['../group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a',1,'glfw3.h']]], + ['glfw_5fopengl_5fany_5fprofile_277',['GLFW_OPENGL_ANY_PROFILE',['../glfw3_8h.html#ad6f2335d6f21cc9bab96633b1c111d5f',1,'glfw3.h']]], + ['glfw_5fopengl_5fapi_278',['GLFW_OPENGL_API',['../glfw3_8h.html#a01b3f66db266341425e9abee6b257db2',1,'glfw3.h']]], + ['glfw_5fopengl_5fcompat_5fprofile_279',['GLFW_OPENGL_COMPAT_PROFILE',['../glfw3_8h.html#ac06b663d79c8fcf04669cc8fcc0b7670',1,'glfw3.h']]], + ['glfw_5fopengl_5fcore_5fprofile_280',['GLFW_OPENGL_CORE_PROFILE',['../glfw3_8h.html#af094bb16da76f66ebceb19ee213b3de8',1,'glfw3.h']]], + ['glfw_5fopengl_5fdebug_5fcontext_281',['GLFW_OPENGL_DEBUG_CONTEXT',['../group__window.html#ga87ec2df0b915201e950ca42d5d0831e1',1,'glfw3.h']]], + ['glfw_5fopengl_5fes_5fapi_282',['GLFW_OPENGL_ES_API',['../glfw3_8h.html#a28d9b3bc6c2a522d815c8e146595051f',1,'glfw3.h']]], + ['glfw_5fopengl_5fforward_5fcompat_283',['GLFW_OPENGL_FORWARD_COMPAT',['../group__window.html#ga13d24b12465da8b28985f46c8557925b',1,'glfw3.h']]], + ['glfw_5fopengl_5fprofile_284',['GLFW_OPENGL_PROFILE',['../group__window.html#ga44f3a6b4261fbe351e0b950b0f372e12',1,'glfw3.h']]], + ['glfw_5fosmesa_5fcontext_5fapi_285',['GLFW_OSMESA_CONTEXT_API',['../glfw3_8h.html#afd34a473af9fa81f317910ea371b19e3',1,'glfw3.h']]], + ['glfw_5fout_5fof_5fmemory_286',['GLFW_OUT_OF_MEMORY',['../group__errors.html#ga9023953a2bcb98c2906afd071d21ee7f',1,'glfw3.h']]], + ['glfw_5fplatform_5ferror_287',['GLFW_PLATFORM_ERROR',['../group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1',1,'glfw3.h']]], + ['glfw_5fpress_288',['GLFW_PRESS',['../group__input.html#ga2485743d0b59df3791c45951c4195265',1,'glfw3.h']]], + ['glfw_5fraw_5fmouse_5fmotion_289',['GLFW_RAW_MOUSE_MOTION',['../glfw3_8h.html#aeeda1be76a44a1fc97c1282e06281fbb',1,'glfw3.h']]], + ['glfw_5fred_5fbits_290',['GLFW_RED_BITS',['../group__window.html#gaf78ed8e417dbcc1e354906cc2708c982',1,'glfw3.h']]], + ['glfw_5frefresh_5frate_291',['GLFW_REFRESH_RATE',['../group__window.html#ga0f20825e6e47ee8ba389024519682212',1,'glfw3.h']]], + ['glfw_5frelease_292',['GLFW_RELEASE',['../group__input.html#gada11d965c4da13090ad336e030e4d11f',1,'glfw3.h']]], + ['glfw_5frelease_5fbehavior_5fflush_293',['GLFW_RELEASE_BEHAVIOR_FLUSH',['../glfw3_8h.html#a999961d391db49cb4f949c1dece0e13b',1,'glfw3.h']]], + ['glfw_5frelease_5fbehavior_5fnone_294',['GLFW_RELEASE_BEHAVIOR_NONE',['../glfw3_8h.html#afca09088eccacdce4b59036cfae349c5',1,'glfw3.h']]], + ['glfw_5frepeat_295',['GLFW_REPEAT',['../group__input.html#gac96fd3b9fc66c6f0eebaf6532595338f',1,'glfw3.h']]], + ['glfw_5fresizable_296',['GLFW_RESIZABLE',['../group__window.html#gadba13c7a1b3aa40831eb2beedbd5bd1d',1,'glfw3.h']]], + ['glfw_5fsamples_297',['GLFW_SAMPLES',['../group__window.html#ga2cdf86fdcb7722fb8829c4e201607535',1,'glfw3.h']]], + ['glfw_5fscale_5fto_5fmonitor_298',['GLFW_SCALE_TO_MONITOR',['../group__window.html#ga620bc4280c7eab81ac9f02204500ed47',1,'glfw3.h']]], + ['glfw_5fsrgb_5fcapable_299',['GLFW_SRGB_CAPABLE',['../group__window.html#ga444a8f00414a63220591f9fdb7b5642b',1,'glfw3.h']]], + ['glfw_5fstencil_5fbits_300',['GLFW_STENCIL_BITS',['../group__window.html#ga5339890a45a1fb38e93cb9fcc5fd069d',1,'glfw3.h']]], + ['glfw_5fstereo_301',['GLFW_STEREO',['../group__window.html#ga83d991efca02537e2d69969135b77b03',1,'glfw3.h']]], + ['glfw_5fsticky_5fkeys_302',['GLFW_STICKY_KEYS',['../glfw3_8h.html#ae3bbe2315b7691ab088159eb6c9110fc',1,'glfw3.h']]], + ['glfw_5fsticky_5fmouse_5fbuttons_303',['GLFW_STICKY_MOUSE_BUTTONS',['../glfw3_8h.html#a4d7ce8ce71030c3b04e2b78145bc59d1',1,'glfw3.h']]], + ['glfw_5ftransparent_5fframebuffer_304',['GLFW_TRANSPARENT_FRAMEBUFFER',['../group__window.html#ga60a0578c3b9449027d683a9c6abb9f14',1,'glfw3.h']]], + ['glfw_5ftrue_305',['GLFW_TRUE',['../group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba',1,'glfw3.h']]], + ['glfw_5fversion_5fmajor_306',['GLFW_VERSION_MAJOR',['../group__init.html#ga6337d9ea43b22fc529b2bba066b4a576',1,'glfw3.h']]], + ['glfw_5fversion_5fminor_307',['GLFW_VERSION_MINOR',['../group__init.html#gaf80d40f0aea7088ff337606e9c48f7a3',1,'glfw3.h']]], + ['glfw_5fversion_5frevision_308',['GLFW_VERSION_REVISION',['../group__init.html#gab72ae2e2035d9ea461abc3495eac0502',1,'glfw3.h']]], + ['glfw_5fversion_5funavailable_309',['GLFW_VERSION_UNAVAILABLE',['../group__errors.html#gad16c5565b4a69f9c2a9ac2c0dbc89462',1,'glfw3.h']]], + ['glfw_5fvisible_310',['GLFW_VISIBLE',['../group__window.html#gafb3cdc45297e06d8f1eb13adc69ca6c4',1,'glfw3.h']]], + ['glfw_5fvresize_5fcursor_311',['GLFW_VRESIZE_CURSOR',['../group__shapes.html#gaf024f0e1ff8366fb2b5c260509a1fce5',1,'glfw3.h']]], + ['glfw_5fx11_5fclass_5fname_312',['GLFW_X11_CLASS_NAME',['../group__window.html#gae5a9ea2fccccd92edbd343fc56461114',1,'glfw3.h']]], + ['glfw_5fx11_5finstance_5fname_313',['GLFW_X11_INSTANCE_NAME',['../group__window.html#ga494c3c0d911e4b860b946530a3e389e8',1,'glfw3.h']]], + ['glfwcharfun_314',['GLFWcharfun',['../group__input.html#ga2c4c70bfb3fb990182a4591cd21a374d',1,'glfw3.h']]], + ['glfwcharmodsfun_315',['GLFWcharmodsfun',['../group__input.html#ga78c3d45fdf9aaef0b8d670bf2a9519e2',1,'glfw3.h']]], + ['glfwcreatecursor_316',['glfwCreateCursor',['../group__input.html#gafca356935e10135016aa49ffa464c355',1,'glfw3.h']]], + ['glfwcreatestandardcursor_317',['glfwCreateStandardCursor',['../group__input.html#gaa65f416d03ebbbb5b8db71a489fcb894',1,'glfw3.h']]], + ['glfwcreatewindow_318',['glfwCreateWindow',['../group__window.html#ga5c336fddf2cbb5b92f65f10fb6043344',1,'glfw3.h']]], + ['glfwcreatewindowsurface_319',['glfwCreateWindowSurface',['../group__vulkan.html#ga1a24536bec3f80b08ead18e28e6ae965',1,'glfw3.h']]], + ['glfwcursor_320',['GLFWcursor',['../group__input.html#ga89261ae18c75e863aaf2656ecdd238f4',1,'glfw3.h']]], + ['glfwcursorenterfun_321',['GLFWcursorenterfun',['../group__input.html#ga945bb284410b64c49ecc50195692720a',1,'glfw3.h']]], + ['glfwcursorposfun_322',['GLFWcursorposfun',['../group__input.html#ga081a67dfb879e14707a5abd7de242b8a',1,'glfw3.h']]], + ['glfwdefaultwindowhints_323',['glfwDefaultWindowHints',['../group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a',1,'glfw3.h']]], + ['glfwdestroycursor_324',['glfwDestroyCursor',['../group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a',1,'glfw3.h']]], + ['glfwdestroywindow_325',['glfwDestroyWindow',['../group__window.html#gacdf43e51376051d2c091662e9fe3d7b2',1,'glfw3.h']]], + ['glfwdropfun_326',['GLFWdropfun',['../group__input.html#ga76a7371bc7edc035212b86ce85390fd2',1,'glfw3.h']]], + ['glfwerrorfun_327',['GLFWerrorfun',['../group__init.html#gaa684e3f8b44b6a35000119d524d49e6d',1,'glfw3.h']]], + ['glfwextensionsupported_328',['glfwExtensionSupported',['../group__context.html#ga87425065c011cef1ebd6aac75e059dfa',1,'glfw3.h']]], + ['glfwfocuswindow_329',['glfwFocusWindow',['../group__window.html#ga873780357abd3f3a081d71a40aae45a1',1,'glfw3.h']]], + ['glfwframebuffersizefun_330',['GLFWframebuffersizefun',['../group__window.html#ga54302eebe2f81518a544723a1d805388',1,'glfw3.h']]], + ['glfwgamepadstate_331',['GLFWgamepadstate',['../group__input.html#ga61acfb1f28f751438dd221225c5e725d',1,'GLFWgamepadstate(): glfw3.h'],['../structGLFWgamepadstate.html',1,'GLFWgamepadstate']]], + ['glfwgammaramp_332',['GLFWgammaramp',['../structGLFWgammaramp.html',1,'GLFWgammaramp'],['../group__monitor.html#ga939cf093cb0af0498b7b54dc2e181404',1,'GLFWgammaramp(): glfw3.h']]], + ['glfwgetclipboardstring_333',['glfwGetClipboardString',['../group__input.html#ga5aba1d704d9ab539282b1fbe9f18bb94',1,'glfw3.h']]], + ['glfwgetcocoamonitor_334',['glfwGetCocoaMonitor',['../group__native.html#gaf22f429aec4b1aab316142d66d9be3e6',1,'glfw3native.h']]], + ['glfwgetcocoawindow_335',['glfwGetCocoaWindow',['../group__native.html#gac3ed9d495d0c2bb9652de5a50c648715',1,'glfw3native.h']]], + ['glfwgetcurrentcontext_336',['glfwGetCurrentContext',['../group__context.html#gac84759b1f6c2d271a4fea8ae89ec980d',1,'glfw3.h']]], + ['glfwgetcursorpos_337',['glfwGetCursorPos',['../group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc',1,'glfw3.h']]], + ['glfwgeteglcontext_338',['glfwGetEGLContext',['../group__native.html#ga671c5072becd085f4ab5771a9c8efcf1',1,'glfw3native.h']]], + ['glfwgetegldisplay_339',['glfwGetEGLDisplay',['../group__native.html#ga1cd8d973f47aacb5532d368147cc3138',1,'glfw3native.h']]], + ['glfwgeteglsurface_340',['glfwGetEGLSurface',['../group__native.html#ga2199b36117a6a695fec8441d8052eee6',1,'glfw3native.h']]], + ['glfwgeterror_341',['glfwGetError',['../group__init.html#ga944986b4ec0b928d488141f92982aa18',1,'glfw3.h']]], + ['glfwgetframebuffersize_342',['glfwGetFramebufferSize',['../group__window.html#ga0e2637a4161afb283f5300c7f94785c9',1,'glfw3.h']]], + ['glfwgetgamepadname_343',['glfwGetGamepadName',['../group__input.html#ga5c71e3533b2d384db9317fcd7661b210',1,'glfw3.h']]], + ['glfwgetgamepadstate_344',['glfwGetGamepadState',['../group__input.html#gadccddea8bce6113fa459de379ddaf051',1,'glfw3.h']]], + ['glfwgetgammaramp_345',['glfwGetGammaRamp',['../group__monitor.html#gab7c41deb2219bde3e1eb756ddaa9ec80',1,'glfw3.h']]], + ['glfwgetglxcontext_346',['glfwGetGLXContext',['../group__native.html#ga62d884114b0abfcdc2930e89f20867e2',1,'glfw3native.h']]], + ['glfwgetglxwindow_347',['glfwGetGLXWindow',['../group__native.html#ga1ed27b8766e859a21381e8f8ce18d049',1,'glfw3native.h']]], + ['glfwgetinputmode_348',['glfwGetInputMode',['../group__input.html#gaf5b859dbe19bdf434e42695ea45cc5f4',1,'glfw3.h']]], + ['glfwgetinstanceprocaddress_349',['glfwGetInstanceProcAddress',['../group__vulkan.html#gadf228fac94c5fd8f12423ec9af9ff1e9',1,'glfw3.h']]], + ['glfwgetjoystickaxes_350',['glfwGetJoystickAxes',['../group__input.html#gaa8806536731e92c061bc70bcff6edbd0',1,'glfw3.h']]], + ['glfwgetjoystickbuttons_351',['glfwGetJoystickButtons',['../group__input.html#gadb3cbf44af90a1536f519659a53bddd6',1,'glfw3.h']]], + ['glfwgetjoystickguid_352',['glfwGetJoystickGUID',['../group__input.html#gae168c2c0b8cf2a1cb67c6b3c00bdd543',1,'glfw3.h']]], + ['glfwgetjoystickhats_353',['glfwGetJoystickHats',['../group__input.html#ga2d8d0634bb81c180899aeb07477a67ea',1,'glfw3.h']]], + ['glfwgetjoystickname_354',['glfwGetJoystickName',['../group__input.html#gafbe3e51f670320908cfe4e20d3e5559e',1,'glfw3.h']]], + ['glfwgetjoystickuserpointer_355',['glfwGetJoystickUserPointer',['../group__input.html#ga06290acb7ed23895bf26b8e981827ebd',1,'glfw3.h']]], + ['glfwgetkey_356',['glfwGetKey',['../group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2',1,'glfw3.h']]], + ['glfwgetkeyname_357',['glfwGetKeyName',['../group__input.html#ga237a182e5ec0b21ce64543f3b5e7e2be',1,'glfw3.h']]], + ['glfwgetkeyscancode_358',['glfwGetKeyScancode',['../group__input.html#ga67ddd1b7dcbbaff03e4a76c0ea67103a',1,'glfw3.h']]], + ['glfwgetmonitorcontentscale_359',['glfwGetMonitorContentScale',['../group__monitor.html#gad3152e84465fa620b601265ebfcdb21b',1,'glfw3.h']]], + ['glfwgetmonitorname_360',['glfwGetMonitorName',['../group__monitor.html#ga79a34ee22ff080ca954a9663e4679daf',1,'glfw3.h']]], + ['glfwgetmonitorphysicalsize_361',['glfwGetMonitorPhysicalSize',['../group__monitor.html#ga7d8bffc6c55539286a6bd20d32a8d7ea',1,'glfw3.h']]], + ['glfwgetmonitorpos_362',['glfwGetMonitorPos',['../group__monitor.html#ga102f54e7acc9149edbcf0997152df8c9',1,'glfw3.h']]], + ['glfwgetmonitors_363',['glfwGetMonitors',['../group__monitor.html#ga3fba51c8bd36491d4712aa5bd074a537',1,'glfw3.h']]], + ['glfwgetmonitoruserpointer_364',['glfwGetMonitorUserPointer',['../group__monitor.html#gac2d4209016b049222877f620010ed0d8',1,'glfw3.h']]], + ['glfwgetmonitorworkarea_365',['glfwGetMonitorWorkarea',['../group__monitor.html#ga7387a3bdb64bfe8ebf2b9e54f5b6c9d0',1,'glfw3.h']]], + ['glfwgetmousebutton_366',['glfwGetMouseButton',['../group__input.html#gac1473feacb5996c01a7a5a33b5066704',1,'glfw3.h']]], + ['glfwgetnsglcontext_367',['glfwGetNSGLContext',['../group__native.html#ga559e002e3cd63c979881770cd4dc63bc',1,'glfw3native.h']]], + ['glfwgetosmesacolorbuffer_368',['glfwGetOSMesaColorBuffer',['../group__native.html#ga3b36e3e3dcf308b776427b6bd73cc132',1,'glfw3native.h']]], + ['glfwgetosmesacontext_369',['glfwGetOSMesaContext',['../group__native.html#ga9e47700080094eb569cb053afaa88773',1,'glfw3native.h']]], + ['glfwgetosmesadepthbuffer_370',['glfwGetOSMesaDepthBuffer',['../group__native.html#ga6b64039ffc88a7a2f57f0956c0c75d53',1,'glfw3native.h']]], + ['glfwgetphysicaldevicepresentationsupport_371',['glfwGetPhysicalDevicePresentationSupport',['../group__vulkan.html#gaff3823355cdd7e2f3f9f4d9ea9518d92',1,'glfw3.h']]], + ['glfwgetprimarymonitor_372',['glfwGetPrimaryMonitor',['../group__monitor.html#ga721867d84c6d18d6790d64d2847ca0b1',1,'glfw3.h']]], + ['glfwgetprocaddress_373',['glfwGetProcAddress',['../group__context.html#ga35f1837e6f666781842483937612f163',1,'glfw3.h']]], + ['glfwgetrequiredinstanceextensions_374',['glfwGetRequiredInstanceExtensions',['../group__vulkan.html#ga1abcbe61033958f22f63ef82008874b1',1,'glfw3.h']]], + ['glfwgettime_375',['glfwGetTime',['../group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a',1,'glfw3.h']]], + ['glfwgettimerfrequency_376',['glfwGetTimerFrequency',['../group__input.html#ga3289ee876572f6e91f06df3a24824443',1,'glfw3.h']]], + ['glfwgettimervalue_377',['glfwGetTimerValue',['../group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa',1,'glfw3.h']]], + ['glfwgetversion_378',['glfwGetVersion',['../group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197',1,'glfw3.h']]], + ['glfwgetversionstring_379',['glfwGetVersionString',['../group__init.html#ga23d47dc013fce2bf58036da66079a657',1,'glfw3.h']]], + ['glfwgetvideomode_380',['glfwGetVideoMode',['../group__monitor.html#gafc1bb972a921ad5b3bd5d63a95fc2d52',1,'glfw3.h']]], + ['glfwgetvideomodes_381',['glfwGetVideoModes',['../group__monitor.html#ga820b0ce9a5237d645ea7cbb4bd383458',1,'glfw3.h']]], + ['glfwgetwaylanddisplay_382',['glfwGetWaylandDisplay',['../group__native.html#gaaf8118a3c877f3a6bc8e7a649519de5e',1,'glfw3native.h']]], + ['glfwgetwaylandmonitor_383',['glfwGetWaylandMonitor',['../group__native.html#gab10427a667b6cd91eec7709f7a906bd3',1,'glfw3native.h']]], + ['glfwgetwaylandwindow_384',['glfwGetWaylandWindow',['../group__native.html#ga4738d7aca4191363519a9a641c3ab64c',1,'glfw3native.h']]], + ['glfwgetwglcontext_385',['glfwGetWGLContext',['../group__native.html#gadc4010d91d9cc1134d040eeb1202a143',1,'glfw3native.h']]], + ['glfwgetwin32adapter_386',['glfwGetWin32Adapter',['../group__native.html#gac84f63a3f9db145b9435e5e0dbc4183d',1,'glfw3native.h']]], + ['glfwgetwin32monitor_387',['glfwGetWin32Monitor',['../group__native.html#gac408b09a330749402d5d1fa1f5894dd9',1,'glfw3native.h']]], + ['glfwgetwin32window_388',['glfwGetWin32Window',['../group__native.html#gafe5079aa79038b0079fc09d5f0a8e667',1,'glfw3native.h']]], + ['glfwgetwindowattrib_389',['glfwGetWindowAttrib',['../group__window.html#gacccb29947ea4b16860ebef42c2cb9337',1,'glfw3.h']]], + ['glfwgetwindowcontentscale_390',['glfwGetWindowContentScale',['../group__window.html#gaf5d31de9c19c4f994facea64d2b3106c',1,'glfw3.h']]], + ['glfwgetwindowframesize_391',['glfwGetWindowFrameSize',['../group__window.html#ga1a9fd382058c53101b21cf211898f1f1',1,'glfw3.h']]], + ['glfwgetwindowmonitor_392',['glfwGetWindowMonitor',['../group__window.html#gaeac25e64789974ccbe0811766bd91a16',1,'glfw3.h']]], + ['glfwgetwindowopacity_393',['glfwGetWindowOpacity',['../group__window.html#gad09f0bd7a6307c4533b7061828480a84',1,'glfw3.h']]], + ['glfwgetwindowpos_394',['glfwGetWindowPos',['../group__window.html#ga73cb526c000876fd8ddf571570fdb634',1,'glfw3.h']]], + ['glfwgetwindowsize_395',['glfwGetWindowSize',['../group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6',1,'glfw3.h']]], + ['glfwgetwindowuserpointer_396',['glfwGetWindowUserPointer',['../group__window.html#ga17807ce0f45ac3f8bb50d6dcc59a4e06',1,'glfw3.h']]], + ['glfwgetx11adapter_397',['glfwGetX11Adapter',['../group__native.html#ga088fbfa80f50569402b41be71ad66e40',1,'glfw3native.h']]], + ['glfwgetx11display_398',['glfwGetX11Display',['../group__native.html#ga8519b66594ea3ef6eeafaa2e3ee37406',1,'glfw3native.h']]], + ['glfwgetx11monitor_399',['glfwGetX11Monitor',['../group__native.html#gab2f8cc043905e9fa9b12bfdbbcfe874c',1,'glfw3native.h']]], + ['glfwgetx11selectionstring_400',['glfwGetX11SelectionString',['../group__native.html#ga72f23e3980b83788c70aa854eca31430',1,'glfw3native.h']]], + ['glfwgetx11window_401',['glfwGetX11Window',['../group__native.html#ga90ca676322740842db446999a1b1f21d',1,'glfw3native.h']]], + ['glfwglproc_402',['GLFWglproc',['../group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c',1,'glfw3.h']]], + ['glfwhidewindow_403',['glfwHideWindow',['../group__window.html#ga49401f82a1ba5f15db5590728314d47c',1,'glfw3.h']]], + ['glfwiconifywindow_404',['glfwIconifyWindow',['../group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4',1,'glfw3.h']]], + ['glfwimage_405',['GLFWimage',['../structGLFWimage.html',1,'GLFWimage'],['../group__window.html#ga7cc0a09de172fa7250872046f8c4d2ca',1,'GLFWimage(): glfw3.h']]], + ['glfwinit_406',['glfwInit',['../group__init.html#ga317aac130a235ab08c6db0834907d85e',1,'glfw3.h']]], + ['glfwinithint_407',['glfwInitHint',['../group__init.html#ga110fd1d3f0412822b4f1908c026f724a',1,'glfw3.h']]], + ['glfwjoystickfun_408',['GLFWjoystickfun',['../group__input.html#gafc05b099b23b3b23a992bdf6d77c191a',1,'glfw3.h']]], + ['glfwjoystickisgamepad_409',['glfwJoystickIsGamepad',['../group__input.html#gad0f676860f329d80f7e47e9f06a96f00',1,'glfw3.h']]], + ['glfwjoystickpresent_410',['glfwJoystickPresent',['../group__input.html#gaed0966cee139d815317f9ffcba64c9f1',1,'glfw3.h']]], + ['glfwkeyfun_411',['GLFWkeyfun',['../group__input.html#ga9c6c9d019ac11d888e45b11b14772659',1,'glfw3.h']]], + ['glfwmakecontextcurrent_412',['glfwMakeContextCurrent',['../group__context.html#ga1c04dc242268f827290fe40aa1c91157',1,'glfw3.h']]], + ['glfwmaximizewindow_413',['glfwMaximizeWindow',['../group__window.html#ga3f541387449d911274324ae7f17ec56b',1,'glfw3.h']]], + ['glfwmonitor_414',['GLFWmonitor',['../group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3',1,'glfw3.h']]], + ['glfwmonitorfun_415',['GLFWmonitorfun',['../group__monitor.html#gacc7165513fd258601c4cb763c1369693',1,'glfw3.h']]], + ['glfwmousebuttonfun_416',['GLFWmousebuttonfun',['../group__input.html#gac4312f2199caa15988cebb59ec530373',1,'glfw3.h']]], + ['glfwpollevents_417',['glfwPollEvents',['../group__window.html#ga37bd57223967b4211d60ca1a0bf3c832',1,'glfw3.h']]], + ['glfwpostemptyevent_418',['glfwPostEmptyEvent',['../group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9',1,'glfw3.h']]], + ['glfwrawmousemotionsupported_419',['glfwRawMouseMotionSupported',['../group__input.html#gae4ee0dbd0d256183e1ea4026d897e1c2',1,'glfw3.h']]], + ['glfwrequestwindowattention_420',['glfwRequestWindowAttention',['../group__window.html#ga2f8d59323fc4692c1d54ba08c863a703',1,'glfw3.h']]], + ['glfwrestorewindow_421',['glfwRestoreWindow',['../group__window.html#ga52527a5904b47d802b6b4bb519cdebc7',1,'glfw3.h']]], + ['glfwscrollfun_422',['GLFWscrollfun',['../group__input.html#ga077345c3a10d906b2b3f2d550ae02971',1,'glfw3.h']]], + ['glfwsetcharcallback_423',['glfwSetCharCallback',['../group__input.html#gab25c4a220fd8f5717718dbc487828996',1,'glfw3.h']]], + ['glfwsetcharmodscallback_424',['glfwSetCharModsCallback',['../group__input.html#ga0b7f4ad13c2b17435ff13b6dcfb4e43c',1,'glfw3.h']]], + ['glfwsetclipboardstring_425',['glfwSetClipboardString',['../group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd',1,'glfw3.h']]], + ['glfwsetcursor_426',['glfwSetCursor',['../group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e',1,'glfw3.h']]], + ['glfwsetcursorentercallback_427',['glfwSetCursorEnterCallback',['../group__input.html#gad27f8ad0142c038a281466c0966817d8',1,'glfw3.h']]], + ['glfwsetcursorpos_428',['glfwSetCursorPos',['../group__input.html#ga04b03af936d906ca123c8f4ee08b39e7',1,'glfw3.h']]], + ['glfwsetcursorposcallback_429',['glfwSetCursorPosCallback',['../group__input.html#gac1f879ab7435d54d4d79bb469fe225d7',1,'glfw3.h']]], + ['glfwsetdropcallback_430',['glfwSetDropCallback',['../group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b',1,'glfw3.h']]], + ['glfwseterrorcallback_431',['glfwSetErrorCallback',['../group__init.html#gaff45816610d53f0b83656092a4034f40',1,'glfw3.h']]], + ['glfwsetframebuffersizecallback_432',['glfwSetFramebufferSizeCallback',['../group__window.html#gab3fb7c3366577daef18c0023e2a8591f',1,'glfw3.h']]], + ['glfwsetgamma_433',['glfwSetGamma',['../group__monitor.html#ga6ac582625c990220785ddd34efa3169a',1,'glfw3.h']]], + ['glfwsetgammaramp_434',['glfwSetGammaRamp',['../group__monitor.html#ga583f0ffd0d29613d8cd172b996bbf0dd',1,'glfw3.h']]], + ['glfwsetinputmode_435',['glfwSetInputMode',['../group__input.html#gaa92336e173da9c8834558b54ee80563b',1,'glfw3.h']]], + ['glfwsetjoystickcallback_436',['glfwSetJoystickCallback',['../group__input.html#ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c',1,'glfw3.h']]], + ['glfwsetjoystickuserpointer_437',['glfwSetJoystickUserPointer',['../group__input.html#ga6b2f72d64d636b48a727b437cbb7489e',1,'glfw3.h']]], + ['glfwsetkeycallback_438',['glfwSetKeyCallback',['../group__input.html#ga1caf18159767e761185e49a3be019f8d',1,'glfw3.h']]], + ['glfwsetmonitorcallback_439',['glfwSetMonitorCallback',['../group__monitor.html#gab39df645587c8518192aa746c2fb06c3',1,'glfw3.h']]], + ['glfwsetmonitoruserpointer_440',['glfwSetMonitorUserPointer',['../group__monitor.html#ga702750e24313a686d3637297b6e85fda',1,'glfw3.h']]], + ['glfwsetmousebuttoncallback_441',['glfwSetMouseButtonCallback',['../group__input.html#ga6ab84420974d812bee700e45284a723c',1,'glfw3.h']]], + ['glfwsetscrollcallback_442',['glfwSetScrollCallback',['../group__input.html#ga571e45a030ae4061f746ed56cb76aede',1,'glfw3.h']]], + ['glfwsettime_443',['glfwSetTime',['../group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0',1,'glfw3.h']]], + ['glfwsetwindowaspectratio_444',['glfwSetWindowAspectRatio',['../group__window.html#ga72ac8cb1ee2e312a878b55153d81b937',1,'glfw3.h']]], + ['glfwsetwindowattrib_445',['glfwSetWindowAttrib',['../group__window.html#gace2afda29b4116ec012e410a6819033e',1,'glfw3.h']]], + ['glfwsetwindowclosecallback_446',['glfwSetWindowCloseCallback',['../group__window.html#gada646d775a7776a95ac000cfc1885331',1,'glfw3.h']]], + ['glfwsetwindowcontentscalecallback_447',['glfwSetWindowContentScaleCallback',['../group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6',1,'glfw3.h']]], + ['glfwsetwindowfocuscallback_448',['glfwSetWindowFocusCallback',['../group__window.html#gac2d83c4a10f071baf841f6730528e66c',1,'glfw3.h']]], + ['glfwsetwindowicon_449',['glfwSetWindowIcon',['../group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5',1,'glfw3.h']]], + ['glfwsetwindowiconifycallback_450',['glfwSetWindowIconifyCallback',['../group__window.html#gac793e9efd255567b5fb8b445052cfd3e',1,'glfw3.h']]], + ['glfwsetwindowmaximizecallback_451',['glfwSetWindowMaximizeCallback',['../group__window.html#gacbe64c339fbd94885e62145563b6dc93',1,'glfw3.h']]], + ['glfwsetwindowmonitor_452',['glfwSetWindowMonitor',['../group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7',1,'glfw3.h']]], + ['glfwsetwindowopacity_453',['glfwSetWindowOpacity',['../group__window.html#gac31caeb3d1088831b13d2c8a156802e9',1,'glfw3.h']]], + ['glfwsetwindowpos_454',['glfwSetWindowPos',['../group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8',1,'glfw3.h']]], + ['glfwsetwindowposcallback_455',['glfwSetWindowPosCallback',['../group__window.html#ga08bdfbba88934f9c4f92fd757979ac74',1,'glfw3.h']]], + ['glfwsetwindowrefreshcallback_456',['glfwSetWindowRefreshCallback',['../group__window.html#ga1c5c7eb889c33c7f4d10dd35b327654e',1,'glfw3.h']]], + ['glfwsetwindowshouldclose_457',['glfwSetWindowShouldClose',['../group__window.html#ga49c449dde2a6f87d996f4daaa09d6708',1,'glfw3.h']]], + ['glfwsetwindowsize_458',['glfwSetWindowSize',['../group__window.html#ga371911f12c74c504dd8d47d832d095cb',1,'glfw3.h']]], + ['glfwsetwindowsizecallback_459',['glfwSetWindowSizeCallback',['../group__window.html#gad91b8b047a0c4c6033c38853864c34f8',1,'glfw3.h']]], + ['glfwsetwindowsizelimits_460',['glfwSetWindowSizeLimits',['../group__window.html#gac314fa6cec7d2d307be9963e2709cc90',1,'glfw3.h']]], + ['glfwsetwindowtitle_461',['glfwSetWindowTitle',['../group__window.html#ga5d877f09e968cef7a360b513306f17ff',1,'glfw3.h']]], + ['glfwsetwindowuserpointer_462',['glfwSetWindowUserPointer',['../group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651',1,'glfw3.h']]], + ['glfwsetx11selectionstring_463',['glfwSetX11SelectionString',['../group__native.html#ga55f879ab02d93367f966186b6f0133f7',1,'glfw3native.h']]], + ['glfwshowwindow_464',['glfwShowWindow',['../group__window.html#ga61be47917b72536a148300f46494fc66',1,'glfw3.h']]], + ['glfwswapbuffers_465',['glfwSwapBuffers',['../group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14',1,'glfw3.h']]], + ['glfwswapinterval_466',['glfwSwapInterval',['../group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed',1,'glfw3.h']]], + ['glfwterminate_467',['glfwTerminate',['../group__init.html#gaaae48c0a18607ea4a4ba951d939f0901',1,'glfw3.h']]], + ['glfwupdategamepadmappings_468',['glfwUpdateGamepadMappings',['../group__input.html#gaed5104612f2fa8e66aa6e846652ad00f',1,'glfw3.h']]], + ['glfwvidmode_469',['GLFWvidmode',['../structGLFWvidmode.html',1,'GLFWvidmode'],['../group__monitor.html#ga902c2816ac9b34b757282daab59b2565',1,'GLFWvidmode(): glfw3.h']]], + ['glfwvkproc_470',['GLFWvkproc',['../group__vulkan.html#ga70c01918dc9d233a4fbe0681a43018af',1,'glfw3.h']]], + ['glfwvulkansupported_471',['glfwVulkanSupported',['../group__vulkan.html#ga2e7f30931e02464b5bc8d0d4b6f9fe2b',1,'glfw3.h']]], + ['glfwwaitevents_472',['glfwWaitEvents',['../group__window.html#ga554e37d781f0a997656c26b2c56c835e',1,'glfw3.h']]], + ['glfwwaiteventstimeout_473',['glfwWaitEventsTimeout',['../group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf',1,'glfw3.h']]], + ['glfwwindow_474',['GLFWwindow',['../group__window.html#ga3c96d80d363e67d13a41b5d1821f3242',1,'glfw3.h']]], + ['glfwwindowclosefun_475',['GLFWwindowclosefun',['../group__window.html#ga5c46f9d2435a22b531382ea642216a61',1,'glfw3.h']]], + ['glfwwindowcontentscalefun_476',['GLFWwindowcontentscalefun',['../group__window.html#gaca2e04ad85e70a646f07a870c2cad4ee',1,'glfw3.h']]], + ['glfwwindowfocusfun_477',['GLFWwindowfocusfun',['../group__window.html#ga6b15f80f61ff396d89720be2a183ca8a',1,'glfw3.h']]], + ['glfwwindowhint_478',['glfwWindowHint',['../group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033',1,'glfw3.h']]], + ['glfwwindowhintstring_479',['glfwWindowHintString',['../group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f',1,'glfw3.h']]], + ['glfwwindowiconifyfun_480',['GLFWwindowiconifyfun',['../group__window.html#gaaa80beaa1d108e6bc09f666e186e735c',1,'glfw3.h']]], + ['glfwwindowmaximizefun_481',['GLFWwindowmaximizefun',['../group__window.html#ga82868db51248e7bc2deb2082336e6c70',1,'glfw3.h']]], + ['glfwwindowposfun_482',['GLFWwindowposfun',['../group__window.html#gaffb62b9d3f7dc2d6e7c89d3d76142f13',1,'glfw3.h']]], + ['glfwwindowrefreshfun_483',['GLFWwindowrefreshfun',['../group__window.html#ga7747bf66194241cff4f12d3500d8f9cd',1,'glfw3.h']]], + ['glfwwindowshouldclose_484',['glfwWindowShouldClose',['../group__window.html#ga24e02fbfefbb81fc45320989f8140ab5',1,'glfw3.h']]], + ['glfwwindowsizefun_485',['GLFWwindowsizefun',['../group__window.html#gaac00a2d1d82875c2bac1af223e9d3c58',1,'glfw3.h']]], + ['green_486',['green',['../structGLFWgammaramp.html#affccc6f5df47820b6562d709da3a5a3a',1,'GLFWgammaramp']]], + ['greenbits_487',['greenBits',['../structGLFWvidmode.html#a292fdd281f3485fb3ff102a5bda43faa',1,'GLFWvidmode']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_6.html b/external/glfw-3.3.4/docs/html/search/all_6.html new file mode 100644 index 0000000..f1e516d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_6.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_6.js b/external/glfw-3.3.4/docs/html/search/all_6.js new file mode 100644 index 0000000..2900e7a --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_6.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['height_488',['height',['../structGLFWvidmode.html#ac65942a5f6981695517437a9d571d03c',1,'GLFWvidmode::height()'],['../structGLFWimage.html#a0b7d95368f0c80d5e5c9875057c7dbec',1,'GLFWimage::height()']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_7.html b/external/glfw-3.3.4/docs/html/search/all_7.html new file mode 100644 index 0000000..8ddbf6c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_7.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_7.js b/external/glfw-3.3.4/docs/html/search/all_7.js new file mode 100644 index 0000000..d1910f7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_7.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['initialization_2c_20version_20and_20error_20reference_489',['Initialization, version and error reference',['../group__init.html',1,'']]], + ['input_20guide_490',['Input guide',['../input_guide.html',1,'']]], + ['input_20reference_491',['Input reference',['../group__input.html',1,'']]], + ['input_2edox_492',['input.dox',['../input_8dox.html',1,'']]], + ['internal_20structure_493',['Internal structure',['../internals_guide.html',1,'']]], + ['internal_2edox_494',['internal.dox',['../internal_8dox.html',1,'']]], + ['intro_2edox_495',['intro.dox',['../intro_8dox.html',1,'']]], + ['introduction_20to_20the_20api_496',['Introduction to the API',['../intro_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_8.html b/external/glfw-3.3.4/docs/html/search/all_8.html new file mode 100644 index 0000000..83c55ae --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_8.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_8.js b/external/glfw-3.3.4/docs/html/search/all_8.js new file mode 100644 index 0000000..c2aa460 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_8.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['joystick_20hat_20states_497',['Joystick hat states',['../group__hat__state.html',1,'']]], + ['joysticks_498',['Joysticks',['../group__joysticks.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_9.html b/external/glfw-3.3.4/docs/html/search/all_9.html new file mode 100644 index 0000000..1e263c1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_9.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_9.js b/external/glfw-3.3.4/docs/html/search/all_9.js new file mode 100644 index 0000000..9d9bb73 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['keyboard_20keys_499',['Keyboard keys',['../group__keys.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_a.html b/external/glfw-3.3.4/docs/html/search/all_a.html new file mode 100644 index 0000000..3a6cac1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_a.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_a.js b/external/glfw-3.3.4/docs/html/search/all_a.js new file mode 100644 index 0000000..6965a63 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_a.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['main_2edox_500',['main.dox',['../main_8dox.html',1,'']]], + ['modifier_20key_20flags_501',['Modifier key flags',['../group__mods.html',1,'']]], + ['monitor_20guide_502',['Monitor guide',['../monitor_guide.html',1,'']]], + ['monitor_20reference_503',['Monitor reference',['../group__monitor.html',1,'']]], + ['monitor_2edox_504',['monitor.dox',['../monitor_8dox.html',1,'']]], + ['mouse_20buttons_505',['Mouse buttons',['../group__buttons.html',1,'']]], + ['moving_20from_20glfw_202_20to_203_506',['Moving from GLFW 2 to 3',['../moving_guide.html',1,'']]], + ['moving_2edox_507',['moving.dox',['../moving_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_b.html b/external/glfw-3.3.4/docs/html/search/all_b.html new file mode 100644 index 0000000..130deb4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_b.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_b.js b/external/glfw-3.3.4/docs/html/search/all_b.js new file mode 100644 index 0000000..f1e6429 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_b.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['native_20access_508',['Native access',['../group__native.html',1,'']]], + ['news_2edox_509',['news.dox',['../news_8dox.html',1,'']]], + ['notitle_510',['notitle',['../index.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_c.html b/external/glfw-3.3.4/docs/html/search/all_c.html new file mode 100644 index 0000000..3dd5af0 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_c.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_c.js b/external/glfw-3.3.4/docs/html/search/all_c.js new file mode 100644 index 0000000..881ea40 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_c.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['pixels_511',['pixels',['../structGLFWimage.html#a0c532a5c2bb715555279b7817daba0fb',1,'GLFWimage']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_d.html b/external/glfw-3.3.4/docs/html/search/all_d.html new file mode 100644 index 0000000..af7f2f0 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_d.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_d.js b/external/glfw-3.3.4/docs/html/search/all_d.js new file mode 100644 index 0000000..69a491d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_d.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['quick_2edox_512',['quick.dox',['../quick_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_e.html b/external/glfw-3.3.4/docs/html/search/all_e.html new file mode 100644 index 0000000..e25df42 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_e.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_e.js b/external/glfw-3.3.4/docs/html/search/all_e.js new file mode 100644 index 0000000..abbc617 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_e.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['red_513',['red',['../structGLFWgammaramp.html#a2cce5d968734b685623eef913e635138',1,'GLFWgammaramp']]], + ['redbits_514',['redBits',['../structGLFWvidmode.html#a6066c4ecd251098700062d3b735dba1b',1,'GLFWvidmode']]], + ['refreshrate_515',['refreshRate',['../structGLFWvidmode.html#a791bdd6c7697b09f7e9c97054bf05649',1,'GLFWvidmode']]], + ['release_20notes_516',['Release notes',['../news.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/all_f.html b/external/glfw-3.3.4/docs/html/search/all_f.html new file mode 100644 index 0000000..b23da6c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_f.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/all_f.js b/external/glfw-3.3.4/docs/html/search/all_f.js new file mode 100644 index 0000000..dae2636 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/all_f.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['size_517',['size',['../structGLFWgammaramp.html#ad620e1cffbff9a32c51bca46301b59a5',1,'GLFWgammaramp']]], + ['standard_20cursor_20shapes_518',['Standard cursor shapes',['../group__shapes.html',1,'']]], + ['standards_20conformance_519',['Standards conformance',['../compat_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/classes_0.html b/external/glfw-3.3.4/docs/html/search/classes_0.html new file mode 100644 index 0000000..af8159e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/classes_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/classes_0.js b/external/glfw-3.3.4/docs/html/search/classes_0.js new file mode 100644 index 0000000..c5f2139 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/classes_0.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['glfwgamepadstate_527',['GLFWgamepadstate',['../structGLFWgamepadstate.html',1,'']]], + ['glfwgammaramp_528',['GLFWgammaramp',['../structGLFWgammaramp.html',1,'']]], + ['glfwimage_529',['GLFWimage',['../structGLFWimage.html',1,'']]], + ['glfwvidmode_530',['GLFWvidmode',['../structGLFWvidmode.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/close.svg b/external/glfw-3.3.4/docs/html/search/close.svg new file mode 100644 index 0000000..a933eea --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/close.svg @@ -0,0 +1,31 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/external/glfw-3.3.4/docs/html/search/defines_0.html b/external/glfw-3.3.4/docs/html/search/defines_0.html new file mode 100644 index 0000000..15cc3de --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/defines_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/defines_0.js b/external/glfw-3.3.4/docs/html/search/defines_0.js new file mode 100644 index 0000000..2800d1e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/defines_0.js @@ -0,0 +1,31 @@ +var searchData= +[ + ['glapientry_732',['GLAPIENTRY',['../glfw3_8h.html#aa97755eb47e4bf2727ad45d610e18206',1,'glfw3.h']]], + ['glfw_5fany_5frelease_5fbehavior_733',['GLFW_ANY_RELEASE_BEHAVIOR',['../glfw3_8h.html#a6b47d806f285efe9bfd7aeec667297ee',1,'glfw3.h']]], + ['glfw_5fapientry_5fdefined_734',['GLFW_APIENTRY_DEFINED',['../glfw3_8h.html#a8a8538c5500308b4211844f2fb26c7b9',1,'glfw3.h']]], + ['glfw_5fconnected_735',['GLFW_CONNECTED',['../glfw3_8h.html#abe11513fd1ffbee5bb9b173f06028b9e',1,'glfw3.h']]], + ['glfw_5fcursor_736',['GLFW_CURSOR',['../glfw3_8h.html#aade31da5b884a84a7625c6b059b9132c',1,'glfw3.h']]], + ['glfw_5fcursor_5fdisabled_737',['GLFW_CURSOR_DISABLED',['../glfw3_8h.html#a2315b99a329ce53e6a13a9d46fd5ca88',1,'glfw3.h']]], + ['glfw_5fcursor_5fhidden_738',['GLFW_CURSOR_HIDDEN',['../glfw3_8h.html#ac4d5cb9d78de8573349c58763d53bf11',1,'glfw3.h']]], + ['glfw_5fcursor_5fnormal_739',['GLFW_CURSOR_NORMAL',['../glfw3_8h.html#ae04dd25c8577e19fa8c97368561f6c68',1,'glfw3.h']]], + ['glfw_5fdisconnected_740',['GLFW_DISCONNECTED',['../glfw3_8h.html#aab64b25921ef21d89252d6f0a71bfc32',1,'glfw3.h']]], + ['glfw_5fdont_5fcare_741',['GLFW_DONT_CARE',['../glfw3_8h.html#a7a2edf2c18446833d27d07f1b7f3d571',1,'glfw3.h']]], + ['glfw_5fegl_5fcontext_5fapi_742',['GLFW_EGL_CONTEXT_API',['../glfw3_8h.html#a03cf65c9ab01fc8b872ba58842c531c9',1,'glfw3.h']]], + ['glfw_5flock_5fkey_5fmods_743',['GLFW_LOCK_KEY_MODS',['../glfw3_8h.html#a07b84de0b52143e1958f88a7d9105947',1,'glfw3.h']]], + ['glfw_5flose_5fcontext_5fon_5freset_744',['GLFW_LOSE_CONTEXT_ON_RESET',['../glfw3_8h.html#aec1132f245143fc915b2f0995228564c',1,'glfw3.h']]], + ['glfw_5fnative_5fcontext_5fapi_745',['GLFW_NATIVE_CONTEXT_API',['../glfw3_8h.html#a0494c9bfd3f584ab41e6dbeeaa0e6a19',1,'glfw3.h']]], + ['glfw_5fno_5fapi_746',['GLFW_NO_API',['../glfw3_8h.html#a8f6dcdc968d214ff14779564f1389264',1,'glfw3.h']]], + ['glfw_5fno_5freset_5fnotification_747',['GLFW_NO_RESET_NOTIFICATION',['../glfw3_8h.html#aee84a679230d205005e22487ff678a85',1,'glfw3.h']]], + ['glfw_5fno_5frobustness_748',['GLFW_NO_ROBUSTNESS',['../glfw3_8h.html#a8b306cb27f5bb0d6d67c7356a0e0fc34',1,'glfw3.h']]], + ['glfw_5fopengl_5fany_5fprofile_749',['GLFW_OPENGL_ANY_PROFILE',['../glfw3_8h.html#ad6f2335d6f21cc9bab96633b1c111d5f',1,'glfw3.h']]], + ['glfw_5fopengl_5fapi_750',['GLFW_OPENGL_API',['../glfw3_8h.html#a01b3f66db266341425e9abee6b257db2',1,'glfw3.h']]], + ['glfw_5fopengl_5fcompat_5fprofile_751',['GLFW_OPENGL_COMPAT_PROFILE',['../glfw3_8h.html#ac06b663d79c8fcf04669cc8fcc0b7670',1,'glfw3.h']]], + ['glfw_5fopengl_5fcore_5fprofile_752',['GLFW_OPENGL_CORE_PROFILE',['../glfw3_8h.html#af094bb16da76f66ebceb19ee213b3de8',1,'glfw3.h']]], + ['glfw_5fopengl_5fes_5fapi_753',['GLFW_OPENGL_ES_API',['../glfw3_8h.html#a28d9b3bc6c2a522d815c8e146595051f',1,'glfw3.h']]], + ['glfw_5fosmesa_5fcontext_5fapi_754',['GLFW_OSMESA_CONTEXT_API',['../glfw3_8h.html#afd34a473af9fa81f317910ea371b19e3',1,'glfw3.h']]], + ['glfw_5fraw_5fmouse_5fmotion_755',['GLFW_RAW_MOUSE_MOTION',['../glfw3_8h.html#aeeda1be76a44a1fc97c1282e06281fbb',1,'glfw3.h']]], + ['glfw_5frelease_5fbehavior_5fflush_756',['GLFW_RELEASE_BEHAVIOR_FLUSH',['../glfw3_8h.html#a999961d391db49cb4f949c1dece0e13b',1,'glfw3.h']]], + ['glfw_5frelease_5fbehavior_5fnone_757',['GLFW_RELEASE_BEHAVIOR_NONE',['../glfw3_8h.html#afca09088eccacdce4b59036cfae349c5',1,'glfw3.h']]], + ['glfw_5fsticky_5fkeys_758',['GLFW_STICKY_KEYS',['../glfw3_8h.html#ae3bbe2315b7691ab088159eb6c9110fc',1,'glfw3.h']]], + ['glfw_5fsticky_5fmouse_5fbuttons_759',['GLFW_STICKY_MOUSE_BUTTONS',['../glfw3_8h.html#a4d7ce8ce71030c3b04e2b78145bc59d1',1,'glfw3.h']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_0.html b/external/glfw-3.3.4/docs/html/search/files_0.html new file mode 100644 index 0000000..9498842 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_0.js b/external/glfw-3.3.4/docs/html/search/files_0.js new file mode 100644 index 0000000..49f69d5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['build_2edox_531',['build.dox',['../build_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_1.html b/external/glfw-3.3.4/docs/html/search/files_1.html new file mode 100644 index 0000000..7050ef4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_1.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_1.js b/external/glfw-3.3.4/docs/html/search/files_1.js new file mode 100644 index 0000000..90ed3d2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_1.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['compat_2edox_532',['compat.dox',['../compat_8dox.html',1,'']]], + ['compile_2edox_533',['compile.dox',['../compile_8dox.html',1,'']]], + ['context_2edox_534',['context.dox',['../context_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_2.html b/external/glfw-3.3.4/docs/html/search/files_2.html new file mode 100644 index 0000000..497cdf5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_2.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_2.js b/external/glfw-3.3.4/docs/html/search/files_2.js new file mode 100644 index 0000000..d4c2a14 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['glfw3_2eh_535',['glfw3.h',['../glfw3_8h.html',1,'']]], + ['glfw3native_2eh_536',['glfw3native.h',['../glfw3native_8h.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_3.html b/external/glfw-3.3.4/docs/html/search/files_3.html new file mode 100644 index 0000000..1ba106b --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_3.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_3.js b/external/glfw-3.3.4/docs/html/search/files_3.js new file mode 100644 index 0000000..aab2bfc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_3.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['input_2edox_537',['input.dox',['../input_8dox.html',1,'']]], + ['internal_2edox_538',['internal.dox',['../internal_8dox.html',1,'']]], + ['intro_2edox_539',['intro.dox',['../intro_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_4.html b/external/glfw-3.3.4/docs/html/search/files_4.html new file mode 100644 index 0000000..753b7b1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_4.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_4.js b/external/glfw-3.3.4/docs/html/search/files_4.js new file mode 100644 index 0000000..947ad04 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_4.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['main_2edox_540',['main.dox',['../main_8dox.html',1,'']]], + ['monitor_2edox_541',['monitor.dox',['../monitor_8dox.html',1,'']]], + ['moving_2edox_542',['moving.dox',['../moving_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_5.html b/external/glfw-3.3.4/docs/html/search/files_5.html new file mode 100644 index 0000000..7b6affd --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_5.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_5.js b/external/glfw-3.3.4/docs/html/search/files_5.js new file mode 100644 index 0000000..01b83bc --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['news_2edox_543',['news.dox',['../news_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_6.html b/external/glfw-3.3.4/docs/html/search/files_6.html new file mode 100644 index 0000000..802ebf7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_6.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_6.js b/external/glfw-3.3.4/docs/html/search/files_6.js new file mode 100644 index 0000000..88ef51c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_6.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['quick_2edox_544',['quick.dox',['../quick_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_7.html b/external/glfw-3.3.4/docs/html/search/files_7.html new file mode 100644 index 0000000..365e648 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_7.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_7.js b/external/glfw-3.3.4/docs/html/search/files_7.js new file mode 100644 index 0000000..5bf62b2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['vulkan_2edox_545',['vulkan.dox',['../vulkan_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/files_8.html b/external/glfw-3.3.4/docs/html/search/files_8.html new file mode 100644 index 0000000..3df0f2f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_8.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/files_8.js b/external/glfw-3.3.4/docs/html/search/files_8.js new file mode 100644 index 0000000..252792b --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/files_8.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['window_2edox_546',['window.dox',['../window_8dox.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/functions_0.html b/external/glfw-3.3.4/docs/html/search/functions_0.html new file mode 100644 index 0000000..eb4c501 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/functions_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/functions_0.js b/external/glfw-3.3.4/docs/html/search/functions_0.js new file mode 100644 index 0000000..59cad20 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/functions_0.js @@ -0,0 +1,146 @@ +var searchData= +[ + ['glfwcreatecursor_547',['glfwCreateCursor',['../group__input.html#gafca356935e10135016aa49ffa464c355',1,'glfw3.h']]], + ['glfwcreatestandardcursor_548',['glfwCreateStandardCursor',['../group__input.html#gaa65f416d03ebbbb5b8db71a489fcb894',1,'glfw3.h']]], + ['glfwcreatewindow_549',['glfwCreateWindow',['../group__window.html#ga5c336fddf2cbb5b92f65f10fb6043344',1,'glfw3.h']]], + ['glfwcreatewindowsurface_550',['glfwCreateWindowSurface',['../group__vulkan.html#ga1a24536bec3f80b08ead18e28e6ae965',1,'glfw3.h']]], + ['glfwdefaultwindowhints_551',['glfwDefaultWindowHints',['../group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a',1,'glfw3.h']]], + ['glfwdestroycursor_552',['glfwDestroyCursor',['../group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a',1,'glfw3.h']]], + ['glfwdestroywindow_553',['glfwDestroyWindow',['../group__window.html#gacdf43e51376051d2c091662e9fe3d7b2',1,'glfw3.h']]], + ['glfwextensionsupported_554',['glfwExtensionSupported',['../group__context.html#ga87425065c011cef1ebd6aac75e059dfa',1,'glfw3.h']]], + ['glfwfocuswindow_555',['glfwFocusWindow',['../group__window.html#ga873780357abd3f3a081d71a40aae45a1',1,'glfw3.h']]], + ['glfwgetclipboardstring_556',['glfwGetClipboardString',['../group__input.html#ga5aba1d704d9ab539282b1fbe9f18bb94',1,'glfw3.h']]], + ['glfwgetcocoamonitor_557',['glfwGetCocoaMonitor',['../group__native.html#gaf22f429aec4b1aab316142d66d9be3e6',1,'glfw3native.h']]], + ['glfwgetcocoawindow_558',['glfwGetCocoaWindow',['../group__native.html#gac3ed9d495d0c2bb9652de5a50c648715',1,'glfw3native.h']]], + ['glfwgetcurrentcontext_559',['glfwGetCurrentContext',['../group__context.html#gac84759b1f6c2d271a4fea8ae89ec980d',1,'glfw3.h']]], + ['glfwgetcursorpos_560',['glfwGetCursorPos',['../group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc',1,'glfw3.h']]], + ['glfwgeteglcontext_561',['glfwGetEGLContext',['../group__native.html#ga671c5072becd085f4ab5771a9c8efcf1',1,'glfw3native.h']]], + ['glfwgetegldisplay_562',['glfwGetEGLDisplay',['../group__native.html#ga1cd8d973f47aacb5532d368147cc3138',1,'glfw3native.h']]], + ['glfwgeteglsurface_563',['glfwGetEGLSurface',['../group__native.html#ga2199b36117a6a695fec8441d8052eee6',1,'glfw3native.h']]], + ['glfwgeterror_564',['glfwGetError',['../group__init.html#ga944986b4ec0b928d488141f92982aa18',1,'glfw3.h']]], + ['glfwgetframebuffersize_565',['glfwGetFramebufferSize',['../group__window.html#ga0e2637a4161afb283f5300c7f94785c9',1,'glfw3.h']]], + ['glfwgetgamepadname_566',['glfwGetGamepadName',['../group__input.html#ga5c71e3533b2d384db9317fcd7661b210',1,'glfw3.h']]], + ['glfwgetgamepadstate_567',['glfwGetGamepadState',['../group__input.html#gadccddea8bce6113fa459de379ddaf051',1,'glfw3.h']]], + ['glfwgetgammaramp_568',['glfwGetGammaRamp',['../group__monitor.html#gab7c41deb2219bde3e1eb756ddaa9ec80',1,'glfw3.h']]], + ['glfwgetglxcontext_569',['glfwGetGLXContext',['../group__native.html#ga62d884114b0abfcdc2930e89f20867e2',1,'glfw3native.h']]], + ['glfwgetglxwindow_570',['glfwGetGLXWindow',['../group__native.html#ga1ed27b8766e859a21381e8f8ce18d049',1,'glfw3native.h']]], + ['glfwgetinputmode_571',['glfwGetInputMode',['../group__input.html#gaf5b859dbe19bdf434e42695ea45cc5f4',1,'glfw3.h']]], + ['glfwgetinstanceprocaddress_572',['glfwGetInstanceProcAddress',['../group__vulkan.html#gadf228fac94c5fd8f12423ec9af9ff1e9',1,'glfw3.h']]], + ['glfwgetjoystickaxes_573',['glfwGetJoystickAxes',['../group__input.html#gaa8806536731e92c061bc70bcff6edbd0',1,'glfw3.h']]], + ['glfwgetjoystickbuttons_574',['glfwGetJoystickButtons',['../group__input.html#gadb3cbf44af90a1536f519659a53bddd6',1,'glfw3.h']]], + ['glfwgetjoystickguid_575',['glfwGetJoystickGUID',['../group__input.html#gae168c2c0b8cf2a1cb67c6b3c00bdd543',1,'glfw3.h']]], + ['glfwgetjoystickhats_576',['glfwGetJoystickHats',['../group__input.html#ga2d8d0634bb81c180899aeb07477a67ea',1,'glfw3.h']]], + ['glfwgetjoystickname_577',['glfwGetJoystickName',['../group__input.html#gafbe3e51f670320908cfe4e20d3e5559e',1,'glfw3.h']]], + ['glfwgetjoystickuserpointer_578',['glfwGetJoystickUserPointer',['../group__input.html#ga06290acb7ed23895bf26b8e981827ebd',1,'glfw3.h']]], + ['glfwgetkey_579',['glfwGetKey',['../group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2',1,'glfw3.h']]], + ['glfwgetkeyname_580',['glfwGetKeyName',['../group__input.html#ga237a182e5ec0b21ce64543f3b5e7e2be',1,'glfw3.h']]], + ['glfwgetkeyscancode_581',['glfwGetKeyScancode',['../group__input.html#ga67ddd1b7dcbbaff03e4a76c0ea67103a',1,'glfw3.h']]], + ['glfwgetmonitorcontentscale_582',['glfwGetMonitorContentScale',['../group__monitor.html#gad3152e84465fa620b601265ebfcdb21b',1,'glfw3.h']]], + ['glfwgetmonitorname_583',['glfwGetMonitorName',['../group__monitor.html#ga79a34ee22ff080ca954a9663e4679daf',1,'glfw3.h']]], + ['glfwgetmonitorphysicalsize_584',['glfwGetMonitorPhysicalSize',['../group__monitor.html#ga7d8bffc6c55539286a6bd20d32a8d7ea',1,'glfw3.h']]], + ['glfwgetmonitorpos_585',['glfwGetMonitorPos',['../group__monitor.html#ga102f54e7acc9149edbcf0997152df8c9',1,'glfw3.h']]], + ['glfwgetmonitors_586',['glfwGetMonitors',['../group__monitor.html#ga3fba51c8bd36491d4712aa5bd074a537',1,'glfw3.h']]], + ['glfwgetmonitoruserpointer_587',['glfwGetMonitorUserPointer',['../group__monitor.html#gac2d4209016b049222877f620010ed0d8',1,'glfw3.h']]], + ['glfwgetmonitorworkarea_588',['glfwGetMonitorWorkarea',['../group__monitor.html#ga7387a3bdb64bfe8ebf2b9e54f5b6c9d0',1,'glfw3.h']]], + ['glfwgetmousebutton_589',['glfwGetMouseButton',['../group__input.html#gac1473feacb5996c01a7a5a33b5066704',1,'glfw3.h']]], + ['glfwgetnsglcontext_590',['glfwGetNSGLContext',['../group__native.html#ga559e002e3cd63c979881770cd4dc63bc',1,'glfw3native.h']]], + ['glfwgetosmesacolorbuffer_591',['glfwGetOSMesaColorBuffer',['../group__native.html#ga3b36e3e3dcf308b776427b6bd73cc132',1,'glfw3native.h']]], + ['glfwgetosmesacontext_592',['glfwGetOSMesaContext',['../group__native.html#ga9e47700080094eb569cb053afaa88773',1,'glfw3native.h']]], + ['glfwgetosmesadepthbuffer_593',['glfwGetOSMesaDepthBuffer',['../group__native.html#ga6b64039ffc88a7a2f57f0956c0c75d53',1,'glfw3native.h']]], + ['glfwgetphysicaldevicepresentationsupport_594',['glfwGetPhysicalDevicePresentationSupport',['../group__vulkan.html#gaff3823355cdd7e2f3f9f4d9ea9518d92',1,'glfw3.h']]], + ['glfwgetprimarymonitor_595',['glfwGetPrimaryMonitor',['../group__monitor.html#ga721867d84c6d18d6790d64d2847ca0b1',1,'glfw3.h']]], + ['glfwgetprocaddress_596',['glfwGetProcAddress',['../group__context.html#ga35f1837e6f666781842483937612f163',1,'glfw3.h']]], + ['glfwgetrequiredinstanceextensions_597',['glfwGetRequiredInstanceExtensions',['../group__vulkan.html#ga1abcbe61033958f22f63ef82008874b1',1,'glfw3.h']]], + ['glfwgettime_598',['glfwGetTime',['../group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a',1,'glfw3.h']]], + ['glfwgettimerfrequency_599',['glfwGetTimerFrequency',['../group__input.html#ga3289ee876572f6e91f06df3a24824443',1,'glfw3.h']]], + ['glfwgettimervalue_600',['glfwGetTimerValue',['../group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa',1,'glfw3.h']]], + ['glfwgetversion_601',['glfwGetVersion',['../group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197',1,'glfw3.h']]], + ['glfwgetversionstring_602',['glfwGetVersionString',['../group__init.html#ga23d47dc013fce2bf58036da66079a657',1,'glfw3.h']]], + ['glfwgetvideomode_603',['glfwGetVideoMode',['../group__monitor.html#gafc1bb972a921ad5b3bd5d63a95fc2d52',1,'glfw3.h']]], + ['glfwgetvideomodes_604',['glfwGetVideoModes',['../group__monitor.html#ga820b0ce9a5237d645ea7cbb4bd383458',1,'glfw3.h']]], + ['glfwgetwaylanddisplay_605',['glfwGetWaylandDisplay',['../group__native.html#gaaf8118a3c877f3a6bc8e7a649519de5e',1,'glfw3native.h']]], + ['glfwgetwaylandmonitor_606',['glfwGetWaylandMonitor',['../group__native.html#gab10427a667b6cd91eec7709f7a906bd3',1,'glfw3native.h']]], + ['glfwgetwaylandwindow_607',['glfwGetWaylandWindow',['../group__native.html#ga4738d7aca4191363519a9a641c3ab64c',1,'glfw3native.h']]], + ['glfwgetwglcontext_608',['glfwGetWGLContext',['../group__native.html#gadc4010d91d9cc1134d040eeb1202a143',1,'glfw3native.h']]], + ['glfwgetwin32adapter_609',['glfwGetWin32Adapter',['../group__native.html#gac84f63a3f9db145b9435e5e0dbc4183d',1,'glfw3native.h']]], + ['glfwgetwin32monitor_610',['glfwGetWin32Monitor',['../group__native.html#gac408b09a330749402d5d1fa1f5894dd9',1,'glfw3native.h']]], + ['glfwgetwin32window_611',['glfwGetWin32Window',['../group__native.html#gafe5079aa79038b0079fc09d5f0a8e667',1,'glfw3native.h']]], + ['glfwgetwindowattrib_612',['glfwGetWindowAttrib',['../group__window.html#gacccb29947ea4b16860ebef42c2cb9337',1,'glfw3.h']]], + ['glfwgetwindowcontentscale_613',['glfwGetWindowContentScale',['../group__window.html#gaf5d31de9c19c4f994facea64d2b3106c',1,'glfw3.h']]], + ['glfwgetwindowframesize_614',['glfwGetWindowFrameSize',['../group__window.html#ga1a9fd382058c53101b21cf211898f1f1',1,'glfw3.h']]], + ['glfwgetwindowmonitor_615',['glfwGetWindowMonitor',['../group__window.html#gaeac25e64789974ccbe0811766bd91a16',1,'glfw3.h']]], + ['glfwgetwindowopacity_616',['glfwGetWindowOpacity',['../group__window.html#gad09f0bd7a6307c4533b7061828480a84',1,'glfw3.h']]], + ['glfwgetwindowpos_617',['glfwGetWindowPos',['../group__window.html#ga73cb526c000876fd8ddf571570fdb634',1,'glfw3.h']]], + ['glfwgetwindowsize_618',['glfwGetWindowSize',['../group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6',1,'glfw3.h']]], + ['glfwgetwindowuserpointer_619',['glfwGetWindowUserPointer',['../group__window.html#ga17807ce0f45ac3f8bb50d6dcc59a4e06',1,'glfw3.h']]], + ['glfwgetx11adapter_620',['glfwGetX11Adapter',['../group__native.html#ga088fbfa80f50569402b41be71ad66e40',1,'glfw3native.h']]], + ['glfwgetx11display_621',['glfwGetX11Display',['../group__native.html#ga8519b66594ea3ef6eeafaa2e3ee37406',1,'glfw3native.h']]], + ['glfwgetx11monitor_622',['glfwGetX11Monitor',['../group__native.html#gab2f8cc043905e9fa9b12bfdbbcfe874c',1,'glfw3native.h']]], + ['glfwgetx11selectionstring_623',['glfwGetX11SelectionString',['../group__native.html#ga72f23e3980b83788c70aa854eca31430',1,'glfw3native.h']]], + ['glfwgetx11window_624',['glfwGetX11Window',['../group__native.html#ga90ca676322740842db446999a1b1f21d',1,'glfw3native.h']]], + ['glfwhidewindow_625',['glfwHideWindow',['../group__window.html#ga49401f82a1ba5f15db5590728314d47c',1,'glfw3.h']]], + ['glfwiconifywindow_626',['glfwIconifyWindow',['../group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4',1,'glfw3.h']]], + ['glfwinit_627',['glfwInit',['../group__init.html#ga317aac130a235ab08c6db0834907d85e',1,'glfw3.h']]], + ['glfwinithint_628',['glfwInitHint',['../group__init.html#ga110fd1d3f0412822b4f1908c026f724a',1,'glfw3.h']]], + ['glfwjoystickisgamepad_629',['glfwJoystickIsGamepad',['../group__input.html#gad0f676860f329d80f7e47e9f06a96f00',1,'glfw3.h']]], + ['glfwjoystickpresent_630',['glfwJoystickPresent',['../group__input.html#gaed0966cee139d815317f9ffcba64c9f1',1,'glfw3.h']]], + ['glfwmakecontextcurrent_631',['glfwMakeContextCurrent',['../group__context.html#ga1c04dc242268f827290fe40aa1c91157',1,'glfw3.h']]], + ['glfwmaximizewindow_632',['glfwMaximizeWindow',['../group__window.html#ga3f541387449d911274324ae7f17ec56b',1,'glfw3.h']]], + ['glfwpollevents_633',['glfwPollEvents',['../group__window.html#ga37bd57223967b4211d60ca1a0bf3c832',1,'glfw3.h']]], + ['glfwpostemptyevent_634',['glfwPostEmptyEvent',['../group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9',1,'glfw3.h']]], + ['glfwrawmousemotionsupported_635',['glfwRawMouseMotionSupported',['../group__input.html#gae4ee0dbd0d256183e1ea4026d897e1c2',1,'glfw3.h']]], + ['glfwrequestwindowattention_636',['glfwRequestWindowAttention',['../group__window.html#ga2f8d59323fc4692c1d54ba08c863a703',1,'glfw3.h']]], + ['glfwrestorewindow_637',['glfwRestoreWindow',['../group__window.html#ga52527a5904b47d802b6b4bb519cdebc7',1,'glfw3.h']]], + ['glfwsetcharcallback_638',['glfwSetCharCallback',['../group__input.html#gab25c4a220fd8f5717718dbc487828996',1,'glfw3.h']]], + ['glfwsetcharmodscallback_639',['glfwSetCharModsCallback',['../group__input.html#ga0b7f4ad13c2b17435ff13b6dcfb4e43c',1,'glfw3.h']]], + ['glfwsetclipboardstring_640',['glfwSetClipboardString',['../group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd',1,'glfw3.h']]], + ['glfwsetcursor_641',['glfwSetCursor',['../group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e',1,'glfw3.h']]], + ['glfwsetcursorentercallback_642',['glfwSetCursorEnterCallback',['../group__input.html#gad27f8ad0142c038a281466c0966817d8',1,'glfw3.h']]], + ['glfwsetcursorpos_643',['glfwSetCursorPos',['../group__input.html#ga04b03af936d906ca123c8f4ee08b39e7',1,'glfw3.h']]], + ['glfwsetcursorposcallback_644',['glfwSetCursorPosCallback',['../group__input.html#gac1f879ab7435d54d4d79bb469fe225d7',1,'glfw3.h']]], + ['glfwsetdropcallback_645',['glfwSetDropCallback',['../group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b',1,'glfw3.h']]], + ['glfwseterrorcallback_646',['glfwSetErrorCallback',['../group__init.html#gaff45816610d53f0b83656092a4034f40',1,'glfw3.h']]], + ['glfwsetframebuffersizecallback_647',['glfwSetFramebufferSizeCallback',['../group__window.html#gab3fb7c3366577daef18c0023e2a8591f',1,'glfw3.h']]], + ['glfwsetgamma_648',['glfwSetGamma',['../group__monitor.html#ga6ac582625c990220785ddd34efa3169a',1,'glfw3.h']]], + ['glfwsetgammaramp_649',['glfwSetGammaRamp',['../group__monitor.html#ga583f0ffd0d29613d8cd172b996bbf0dd',1,'glfw3.h']]], + ['glfwsetinputmode_650',['glfwSetInputMode',['../group__input.html#gaa92336e173da9c8834558b54ee80563b',1,'glfw3.h']]], + ['glfwsetjoystickcallback_651',['glfwSetJoystickCallback',['../group__input.html#ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c',1,'glfw3.h']]], + ['glfwsetjoystickuserpointer_652',['glfwSetJoystickUserPointer',['../group__input.html#ga6b2f72d64d636b48a727b437cbb7489e',1,'glfw3.h']]], + ['glfwsetkeycallback_653',['glfwSetKeyCallback',['../group__input.html#ga1caf18159767e761185e49a3be019f8d',1,'glfw3.h']]], + ['glfwsetmonitorcallback_654',['glfwSetMonitorCallback',['../group__monitor.html#gab39df645587c8518192aa746c2fb06c3',1,'glfw3.h']]], + ['glfwsetmonitoruserpointer_655',['glfwSetMonitorUserPointer',['../group__monitor.html#ga702750e24313a686d3637297b6e85fda',1,'glfw3.h']]], + ['glfwsetmousebuttoncallback_656',['glfwSetMouseButtonCallback',['../group__input.html#ga6ab84420974d812bee700e45284a723c',1,'glfw3.h']]], + ['glfwsetscrollcallback_657',['glfwSetScrollCallback',['../group__input.html#ga571e45a030ae4061f746ed56cb76aede',1,'glfw3.h']]], + ['glfwsettime_658',['glfwSetTime',['../group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0',1,'glfw3.h']]], + ['glfwsetwindowaspectratio_659',['glfwSetWindowAspectRatio',['../group__window.html#ga72ac8cb1ee2e312a878b55153d81b937',1,'glfw3.h']]], + ['glfwsetwindowattrib_660',['glfwSetWindowAttrib',['../group__window.html#gace2afda29b4116ec012e410a6819033e',1,'glfw3.h']]], + ['glfwsetwindowclosecallback_661',['glfwSetWindowCloseCallback',['../group__window.html#gada646d775a7776a95ac000cfc1885331',1,'glfw3.h']]], + ['glfwsetwindowcontentscalecallback_662',['glfwSetWindowContentScaleCallback',['../group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6',1,'glfw3.h']]], + ['glfwsetwindowfocuscallback_663',['glfwSetWindowFocusCallback',['../group__window.html#gac2d83c4a10f071baf841f6730528e66c',1,'glfw3.h']]], + ['glfwsetwindowicon_664',['glfwSetWindowIcon',['../group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5',1,'glfw3.h']]], + ['glfwsetwindowiconifycallback_665',['glfwSetWindowIconifyCallback',['../group__window.html#gac793e9efd255567b5fb8b445052cfd3e',1,'glfw3.h']]], + ['glfwsetwindowmaximizecallback_666',['glfwSetWindowMaximizeCallback',['../group__window.html#gacbe64c339fbd94885e62145563b6dc93',1,'glfw3.h']]], + ['glfwsetwindowmonitor_667',['glfwSetWindowMonitor',['../group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7',1,'glfw3.h']]], + ['glfwsetwindowopacity_668',['glfwSetWindowOpacity',['../group__window.html#gac31caeb3d1088831b13d2c8a156802e9',1,'glfw3.h']]], + ['glfwsetwindowpos_669',['glfwSetWindowPos',['../group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8',1,'glfw3.h']]], + ['glfwsetwindowposcallback_670',['glfwSetWindowPosCallback',['../group__window.html#ga08bdfbba88934f9c4f92fd757979ac74',1,'glfw3.h']]], + ['glfwsetwindowrefreshcallback_671',['glfwSetWindowRefreshCallback',['../group__window.html#ga1c5c7eb889c33c7f4d10dd35b327654e',1,'glfw3.h']]], + ['glfwsetwindowshouldclose_672',['glfwSetWindowShouldClose',['../group__window.html#ga49c449dde2a6f87d996f4daaa09d6708',1,'glfw3.h']]], + ['glfwsetwindowsize_673',['glfwSetWindowSize',['../group__window.html#ga371911f12c74c504dd8d47d832d095cb',1,'glfw3.h']]], + ['glfwsetwindowsizecallback_674',['glfwSetWindowSizeCallback',['../group__window.html#gad91b8b047a0c4c6033c38853864c34f8',1,'glfw3.h']]], + ['glfwsetwindowsizelimits_675',['glfwSetWindowSizeLimits',['../group__window.html#gac314fa6cec7d2d307be9963e2709cc90',1,'glfw3.h']]], + ['glfwsetwindowtitle_676',['glfwSetWindowTitle',['../group__window.html#ga5d877f09e968cef7a360b513306f17ff',1,'glfw3.h']]], + ['glfwsetwindowuserpointer_677',['glfwSetWindowUserPointer',['../group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651',1,'glfw3.h']]], + ['glfwsetx11selectionstring_678',['glfwSetX11SelectionString',['../group__native.html#ga55f879ab02d93367f966186b6f0133f7',1,'glfw3native.h']]], + ['glfwshowwindow_679',['glfwShowWindow',['../group__window.html#ga61be47917b72536a148300f46494fc66',1,'glfw3.h']]], + ['glfwswapbuffers_680',['glfwSwapBuffers',['../group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14',1,'glfw3.h']]], + ['glfwswapinterval_681',['glfwSwapInterval',['../group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed',1,'glfw3.h']]], + ['glfwterminate_682',['glfwTerminate',['../group__init.html#gaaae48c0a18607ea4a4ba951d939f0901',1,'glfw3.h']]], + ['glfwupdategamepadmappings_683',['glfwUpdateGamepadMappings',['../group__input.html#gaed5104612f2fa8e66aa6e846652ad00f',1,'glfw3.h']]], + ['glfwvulkansupported_684',['glfwVulkanSupported',['../group__vulkan.html#ga2e7f30931e02464b5bc8d0d4b6f9fe2b',1,'glfw3.h']]], + ['glfwwaitevents_685',['glfwWaitEvents',['../group__window.html#ga554e37d781f0a997656c26b2c56c835e',1,'glfw3.h']]], + ['glfwwaiteventstimeout_686',['glfwWaitEventsTimeout',['../group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf',1,'glfw3.h']]], + ['glfwwindowhint_687',['glfwWindowHint',['../group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033',1,'glfw3.h']]], + ['glfwwindowhintstring_688',['glfwWindowHintString',['../group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f',1,'glfw3.h']]], + ['glfwwindowshouldclose_689',['glfwWindowShouldClose',['../group__window.html#ga24e02fbfefbb81fc45320989f8140ab5',1,'glfw3.h']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_0.html b/external/glfw-3.3.4/docs/html/search/groups_0.html new file mode 100644 index 0000000..c600b49 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_0.js b/external/glfw-3.3.4/docs/html/search/groups_0.js new file mode 100644 index 0000000..54c4c34 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['context_20reference_760',['Context reference',['../group__context.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_1.html b/external/glfw-3.3.4/docs/html/search/groups_1.html new file mode 100644 index 0000000..2eb3550 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_1.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_1.js b/external/glfw-3.3.4/docs/html/search/groups_1.js new file mode 100644 index 0000000..8743706 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['error_20codes_761',['Error codes',['../group__errors.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_2.html b/external/glfw-3.3.4/docs/html/search/groups_2.html new file mode 100644 index 0000000..12f4af7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_2.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_2.js b/external/glfw-3.3.4/docs/html/search/groups_2.js new file mode 100644 index 0000000..957f23a --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['gamepad_20axes_762',['Gamepad axes',['../group__gamepad__axes.html',1,'']]], + ['gamepad_20buttons_763',['Gamepad buttons',['../group__gamepad__buttons.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_3.html b/external/glfw-3.3.4/docs/html/search/groups_3.html new file mode 100644 index 0000000..5e235b5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_3.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_3.js b/external/glfw-3.3.4/docs/html/search/groups_3.js new file mode 100644 index 0000000..41628d8 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_3.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['initialization_2c_20version_20and_20error_20reference_764',['Initialization, version and error reference',['../group__init.html',1,'']]], + ['input_20reference_765',['Input reference',['../group__input.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_4.html b/external/glfw-3.3.4/docs/html/search/groups_4.html new file mode 100644 index 0000000..99405e1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_4.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_4.js b/external/glfw-3.3.4/docs/html/search/groups_4.js new file mode 100644 index 0000000..b90c807 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_4.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['joystick_20hat_20states_766',['Joystick hat states',['../group__hat__state.html',1,'']]], + ['joysticks_767',['Joysticks',['../group__joysticks.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_5.html b/external/glfw-3.3.4/docs/html/search/groups_5.html new file mode 100644 index 0000000..583f5f5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_5.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_5.js b/external/glfw-3.3.4/docs/html/search/groups_5.js new file mode 100644 index 0000000..8018640 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['keyboard_20keys_768',['Keyboard keys',['../group__keys.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_6.html b/external/glfw-3.3.4/docs/html/search/groups_6.html new file mode 100644 index 0000000..df6a310 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_6.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_6.js b/external/glfw-3.3.4/docs/html/search/groups_6.js new file mode 100644 index 0000000..cc6cd33 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_6.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['modifier_20key_20flags_769',['Modifier key flags',['../group__mods.html',1,'']]], + ['monitor_20reference_770',['Monitor reference',['../group__monitor.html',1,'']]], + ['mouse_20buttons_771',['Mouse buttons',['../group__buttons.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_7.html b/external/glfw-3.3.4/docs/html/search/groups_7.html new file mode 100644 index 0000000..8964e05 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_7.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_7.js b/external/glfw-3.3.4/docs/html/search/groups_7.js new file mode 100644 index 0000000..6a3478f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['native_20access_772',['Native access',['../group__native.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_8.html b/external/glfw-3.3.4/docs/html/search/groups_8.html new file mode 100644 index 0000000..7987ca3 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_8.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_8.js b/external/glfw-3.3.4/docs/html/search/groups_8.js new file mode 100644 index 0000000..298b08e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_8.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['standard_20cursor_20shapes_773',['Standard cursor shapes',['../group__shapes.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_9.html b/external/glfw-3.3.4/docs/html/search/groups_9.html new file mode 100644 index 0000000..4567ddf --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_9.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_9.js b/external/glfw-3.3.4/docs/html/search/groups_9.js new file mode 100644 index 0000000..fd836a1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['vulkan_20support_20reference_774',['Vulkan support reference',['../group__vulkan.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/groups_a.html b/external/glfw-3.3.4/docs/html/search/groups_a.html new file mode 100644 index 0000000..31f0da4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_a.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/groups_a.js b/external/glfw-3.3.4/docs/html/search/groups_a.js new file mode 100644 index 0000000..d6ffb8d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/groups_a.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['window_20reference_775',['Window reference',['../group__window.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/mag_sel.svg b/external/glfw-3.3.4/docs/html/search/mag_sel.svg new file mode 100644 index 0000000..03626f6 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/mag_sel.svg @@ -0,0 +1,74 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/external/glfw-3.3.4/docs/html/search/nomatches.html b/external/glfw-3.3.4/docs/html/search/nomatches.html new file mode 100644 index 0000000..2b9360b --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/nomatches.html @@ -0,0 +1,13 @@ + + + + + + + + +
    +
    No Matches
    +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_0.html b/external/glfw-3.3.4/docs/html/search/pages_0.html new file mode 100644 index 0000000..8517b48 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_0.js b/external/glfw-3.3.4/docs/html/search/pages_0.js new file mode 100644 index 0000000..acb491e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_0.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['bug_20list_776',['Bug List',['../bug.html',1,'']]], + ['building_20applications_777',['Building applications',['../build_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_1.html b/external/glfw-3.3.4/docs/html/search/pages_1.html new file mode 100644 index 0000000..a0fb679 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_1.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_1.js b/external/glfw-3.3.4/docs/html/search/pages_1.js new file mode 100644 index 0000000..e0aa793 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_1.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['compiling_20glfw_778',['Compiling GLFW',['../compile_guide.html',1,'']]], + ['context_20guide_779',['Context guide',['../context_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_2.html b/external/glfw-3.3.4/docs/html/search/pages_2.html new file mode 100644 index 0000000..084edfd --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_2.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_2.js b/external/glfw-3.3.4/docs/html/search/pages_2.js new file mode 100644 index 0000000..20be980 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_2.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['deprecated_20list_780',['Deprecated List',['../deprecated.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_3.html b/external/glfw-3.3.4/docs/html/search/pages_3.html new file mode 100644 index 0000000..c0b45b0 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_3.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_3.js b/external/glfw-3.3.4/docs/html/search/pages_3.js new file mode 100644 index 0000000..0826ff2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['getting_20started_781',['Getting started',['../quick_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_4.html b/external/glfw-3.3.4/docs/html/search/pages_4.html new file mode 100644 index 0000000..0f05c2e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_4.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_4.js b/external/glfw-3.3.4/docs/html/search/pages_4.js new file mode 100644 index 0000000..e0a9cbe --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_4.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['input_20guide_782',['Input guide',['../input_guide.html',1,'']]], + ['internal_20structure_783',['Internal structure',['../internals_guide.html',1,'']]], + ['introduction_20to_20the_20api_784',['Introduction to the API',['../intro_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_5.html b/external/glfw-3.3.4/docs/html/search/pages_5.html new file mode 100644 index 0000000..27e2b6c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_5.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_5.js b/external/glfw-3.3.4/docs/html/search/pages_5.js new file mode 100644 index 0000000..7c9f329 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_5.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['monitor_20guide_785',['Monitor guide',['../monitor_guide.html',1,'']]], + ['moving_20from_20glfw_202_20to_203_786',['Moving from GLFW 2 to 3',['../moving_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_6.html b/external/glfw-3.3.4/docs/html/search/pages_6.html new file mode 100644 index 0000000..39300b6 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_6.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_6.js b/external/glfw-3.3.4/docs/html/search/pages_6.js new file mode 100644 index 0000000..b3ac062 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_6.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['notitle_787',['notitle',['../index.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_7.html b/external/glfw-3.3.4/docs/html/search/pages_7.html new file mode 100644 index 0000000..c005fe5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_7.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_7.js b/external/glfw-3.3.4/docs/html/search/pages_7.js new file mode 100644 index 0000000..90c6a3f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['release_20notes_788',['Release notes',['../news.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_8.html b/external/glfw-3.3.4/docs/html/search/pages_8.html new file mode 100644 index 0000000..c942aa2 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_8.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_8.js b/external/glfw-3.3.4/docs/html/search/pages_8.js new file mode 100644 index 0000000..d24ed05 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_8.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['standards_20conformance_789',['Standards conformance',['../compat_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_9.html b/external/glfw-3.3.4/docs/html/search/pages_9.html new file mode 100644 index 0000000..4199c40 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_9.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_9.js b/external/glfw-3.3.4/docs/html/search/pages_9.js new file mode 100644 index 0000000..0b20185 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['vulkan_20guide_790',['Vulkan guide',['../vulkan_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/pages_a.html b/external/glfw-3.3.4/docs/html/search/pages_a.html new file mode 100644 index 0000000..2cc9d19 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_a.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/pages_a.js b/external/glfw-3.3.4/docs/html/search/pages_a.js new file mode 100644 index 0000000..190771f --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/pages_a.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['window_20guide_791',['Window guide',['../window_guide.html',1,'']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/search.css b/external/glfw-3.3.4/docs/html/search/search.css new file mode 100644 index 0000000..9074198 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/search.css @@ -0,0 +1,257 @@ +/*---------------- Search Box */ + +#MSearchBox { + white-space : nowrap; + background: white; + border-radius: 0.65em; + box-shadow: inset 0.5px 0.5px 3px 0px #555; + z-index: 102; +} + +#MSearchBox .left { + display: inline-block; + vertical-align: middle; + height: 1.4em; +} + +#MSearchSelect { + display: inline-block; + vertical-align: middle; + height: 1.4em; + padding: 0 0 0 0.3em; + margin: 0; +} + +#MSearchField { + display: inline-block; + vertical-align: middle; + width: 7.5em; + height: 1.1em; + margin: 0 0.15em; + padding: 0; + line-height: 1em; + border:none; + color: #909090; + outline: none; + font-family: Arial, Verdana, sans-serif; + -webkit-border-radius: 0px; + border-radius: 0px; + background: none; +} + + +#MSearchBox .right { + display: inline-block; + vertical-align: middle; + width: 1.4em; + height: 1.4em; +} + +#MSearchClose { + display: none; + font-size: inherit; + background : none; + border: none; + margin: 0; + padding: 0; + outline: none; + +} + +#MSearchCloseImg { + height: 1.4em; + padding: 0.3em; + margin: 0; +} + +.MSearchBoxActive #MSearchField { + color: #000000; +} + +#main-menu > li:last-child { + /* This
  • object is the parent of the search bar */ + display: flex; + justify-content: center; + align-items: center; + height: 36px; + margin-right: 1em; +} + +/*---------------- Search filter selection */ + +#MSearchSelectWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #90A5CE; + background-color: #F9FAFC; + z-index: 10001; + padding-top: 4px; + padding-bottom: 4px; + -moz-border-radius: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +.SelectItem { + font: 8pt Arial, Verdana, sans-serif; + padding-left: 2px; + padding-right: 12px; + border: 0px; +} + +span.SelectionMark { + margin-right: 4px; + font-family: monospace; + outline-style: none; + text-decoration: none; +} + +a.SelectItem { + display: block; + outline-style: none; + color: #000000; + text-decoration: none; + padding-left: 6px; + padding-right: 12px; +} + +a.SelectItem:focus, +a.SelectItem:active { + color: #000000; + outline-style: none; + text-decoration: none; +} + +a.SelectItem:hover { + color: #FFFFFF; + background-color: #3D578C; + outline-style: none; + text-decoration: none; + cursor: pointer; + display: block; +} + +/*---------------- Search results window */ + +iframe#MSearchResults { + width: 60ex; + height: 15em; +} + +#MSearchResultsWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #000; + background-color: #EEF1F7; + z-index:10000; +} + +/* ----------------------------------- */ + + +#SRIndex { + clear:both; + padding-bottom: 15px; +} + +.SREntry { + font-size: 10pt; + padding-left: 1ex; +} + +.SRPage .SREntry { + font-size: 8pt; + padding: 1px 5px; +} + +body.SRPage { + margin: 5px 2px; +} + +.SRChildren { + padding-left: 3ex; padding-bottom: .5em +} + +.SRPage .SRChildren { + display: none; +} + +.SRSymbol { + font-weight: bold; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRScope { + display: block; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRSymbol:focus, a.SRSymbol:active, +a.SRScope:focus, a.SRScope:active { + text-decoration: underline; +} + +span.SRScope { + padding-left: 4px; + font-family: Arial, Verdana, sans-serif; +} + +.SRPage .SRStatus { + padding: 2px 5px; + font-size: 8pt; + font-style: italic; + font-family: Arial, Verdana, sans-serif; +} + +.SRResult { + display: none; +} + +div.searchresults { + margin-left: 10px; + margin-right: 10px; +} + +/*---------------- External search page results */ + +.searchresult { + background-color: #F0F3F8; +} + +.pages b { + color: white; + padding: 5px 5px 3px 5px; + background-image: url("../tab_a.png"); + background-repeat: repeat-x; + text-shadow: 0 1px 1px #000000; +} + +.pages { + line-height: 17px; + margin-left: 4px; + text-decoration: none; +} + +.hl { + font-weight: bold; +} + +#searchresults { + margin-bottom: 20px; +} + +.searchpages { + margin-top: 10px; +} + diff --git a/external/glfw-3.3.4/docs/html/search/search.js b/external/glfw-3.3.4/docs/html/search/search.js new file mode 100644 index 0000000..fb226f7 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/search.js @@ -0,0 +1,816 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + 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. + + @licend The above is the entire license notice for the JavaScript code in this file + */ +function convertToId(search) +{ + var result = ''; + for (i=0;i do a search + { + this.Search(); + } + } + + this.OnSearchSelectKey = function(evt) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==40 && this.searchIndex0) // Up + { + this.searchIndex--; + this.OnSelectItem(this.searchIndex); + } + else if (e.keyCode==13 || e.keyCode==27) + { + this.OnSelectItem(this.searchIndex); + this.CloseSelectionWindow(); + this.DOMSearchField().focus(); + } + return false; + } + + // --------- Actions + + // Closes the results window. + this.CloseResultsWindow = function() + { + this.DOMPopupSearchResultsWindow().style.display = 'none'; + this.DOMSearchClose().style.display = 'none'; + this.Activate(false); + } + + this.CloseSelectionWindow = function() + { + this.DOMSearchSelectWindow().style.display = 'none'; + } + + // Performs a search. + this.Search = function() + { + this.keyTimeout = 0; + + // strip leading whitespace + var searchValue = this.DOMSearchField().value.replace(/^ +/, ""); + + var code = searchValue.toLowerCase().charCodeAt(0); + var idxChar = searchValue.substr(0, 1).toLowerCase(); + if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair + { + idxChar = searchValue.substr(0, 2); + } + + var resultsPage; + var resultsPageWithSearch; + var hasResultsPage; + + var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar); + if (idx!=-1) + { + var hexCode=idx.toString(16); + resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + this.extension; + resultsPageWithSearch = resultsPage+'?'+escape(searchValue); + hasResultsPage = true; + } + else // nothing available for this search term + { + resultsPage = this.resultsPath + '/nomatches' + this.extension; + resultsPageWithSearch = resultsPage; + hasResultsPage = false; + } + + window.frames.MSearchResults.location = resultsPageWithSearch; + var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); + + if (domPopupSearchResultsWindow.style.display!='block') + { + var domSearchBox = this.DOMSearchBox(); + this.DOMSearchClose().style.display = 'inline-block'; + if (this.insideFrame) + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + domPopupSearchResultsWindow.style.position = 'relative'; + domPopupSearchResultsWindow.style.display = 'block'; + var width = document.body.clientWidth - 8; // the -8 is for IE :-( + domPopupSearchResultsWindow.style.width = width + 'px'; + domPopupSearchResults.style.width = width + 'px'; + } + else + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth; + var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1; + domPopupSearchResultsWindow.style.display = 'block'; + left -= domPopupSearchResults.offsetWidth; + domPopupSearchResultsWindow.style.top = top + 'px'; + domPopupSearchResultsWindow.style.left = left + 'px'; + } + } + + this.lastSearchValue = searchValue; + this.lastResultsPage = resultsPage; + } + + // -------- Activation Functions + + // Activates or deactivates the search panel, resetting things to + // their default values if necessary. + this.Activate = function(isActive) + { + if (isActive || // open it + this.DOMPopupSearchResultsWindow().style.display == 'block' + ) + { + this.DOMSearchBox().className = 'MSearchBoxActive'; + + var searchField = this.DOMSearchField(); + + if (searchField.value == this.searchLabel) // clear "Search" term upon entry + { + searchField.value = ''; + this.searchActive = true; + } + } + else if (!isActive) // directly remove the panel + { + this.DOMSearchBox().className = 'MSearchBoxInactive'; + this.DOMSearchField().value = this.searchLabel; + this.searchActive = false; + this.lastSearchValue = '' + this.lastResultsPage = ''; + } + } +} + +// ----------------------------------------------------------------------- + +// The class that handles everything on the search results page. +function SearchResults(name) +{ + // The number of matches from the last run of . + this.lastMatchCount = 0; + this.lastKey = 0; + this.repeatOn = false; + + // Toggles the visibility of the passed element ID. + this.FindChildElement = function(id) + { + var parentElement = document.getElementById(id); + var element = parentElement.firstChild; + + while (element && element!=parentElement) + { + if (element.nodeName.toLowerCase() == 'div' && element.className == 'SRChildren') + { + return element; + } + + if (element.nodeName.toLowerCase() == 'div' && element.hasChildNodes()) + { + element = element.firstChild; + } + else if (element.nextSibling) + { + element = element.nextSibling; + } + else + { + do + { + element = element.parentNode; + } + while (element && element!=parentElement && !element.nextSibling); + + if (element && element!=parentElement) + { + element = element.nextSibling; + } + } + } + } + + this.Toggle = function(id) + { + var element = this.FindChildElement(id); + if (element) + { + if (element.style.display == 'block') + { + element.style.display = 'none'; + } + else + { + element.style.display = 'block'; + } + } + } + + // Searches for the passed string. If there is no parameter, + // it takes it from the URL query. + // + // Always returns true, since other documents may try to call it + // and that may or may not be possible. + this.Search = function(search) + { + if (!search) // get search word from URL + { + search = window.location.search; + search = search.substring(1); // Remove the leading '?' + search = unescape(search); + } + + search = search.replace(/^ +/, ""); // strip leading spaces + search = search.replace(/ +$/, ""); // strip trailing spaces + search = search.toLowerCase(); + search = convertToId(search); + + var resultRows = document.getElementsByTagName("div"); + var matches = 0; + + var i = 0; + while (i < resultRows.length) + { + var row = resultRows.item(i); + if (row.className == "SRResult") + { + var rowMatchName = row.id.toLowerCase(); + rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_' + + if (search.length<=rowMatchName.length && + rowMatchName.substr(0, search.length)==search) + { + row.style.display = 'block'; + matches++; + } + else + { + row.style.display = 'none'; + } + } + i++; + } + document.getElementById("Searching").style.display='none'; + if (matches == 0) // no results + { + document.getElementById("NoMatches").style.display='block'; + } + else // at least one result + { + document.getElementById("NoMatches").style.display='none'; + } + this.lastMatchCount = matches; + return true; + } + + // return the first item with index index or higher that is visible + this.NavNext = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index++; + } + return focusItem; + } + + this.NavPrev = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index--; + } + return focusItem; + } + + this.ProcessKeys = function(e) + { + if (e.type == "keydown") + { + this.repeatOn = false; + this.lastKey = e.keyCode; + } + else if (e.type == "keypress") + { + if (!this.repeatOn) + { + if (this.lastKey) this.repeatOn = true; + return false; // ignore first keypress after keydown + } + } + else if (e.type == "keyup") + { + this.lastKey = 0; + this.repeatOn = false; + } + return this.lastKey!=0; + } + + this.Nav = function(evt,itemIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + var newIndex = itemIndex-1; + var focusItem = this.NavPrev(newIndex); + if (focusItem) + { + var child = this.FindChildElement(focusItem.parentNode.parentNode.id); + if (child && child.style.display == 'block') // children visible + { + var n=0; + var tmpElem; + while (1) // search for last child + { + tmpElem = document.getElementById('Item'+newIndex+'_c'+n); + if (tmpElem) + { + focusItem = tmpElem; + } + else // found it! + { + break; + } + n++; + } + } + } + if (focusItem) + { + focusItem.focus(); + } + else // return focus to search field + { + parent.document.getElementById("MSearchField").focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = itemIndex+1; + var focusItem; + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem && elem.style.display == 'block') // children visible + { + focusItem = document.getElementById('Item'+itemIndex+'_c0'); + } + if (!focusItem) focusItem = this.NavNext(newIndex); + if (focusItem) focusItem.focus(); + } + else if (this.lastKey==39) // Right + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'block'; + } + else if (this.lastKey==37) // Left + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'none'; + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } + + this.NavChild = function(evt,itemIndex,childIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + if (childIndex>0) + { + var newIndex = childIndex-1; + document.getElementById('Item'+itemIndex+'_c'+newIndex).focus(); + } + else // already at first child, jump to parent + { + document.getElementById('Item'+itemIndex).focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = childIndex+1; + var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex); + if (!elem) // last child, jump to parent next parent + { + elem = this.NavNext(itemIndex+1); + } + if (elem) + { + elem.focus(); + } + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } +} + +function setKeyActions(elem,action) +{ + elem.setAttribute('onkeydown',action); + elem.setAttribute('onkeypress',action); + elem.setAttribute('onkeyup',action); +} + +function setClassAttr(elem,attr) +{ + elem.setAttribute('class',attr); + elem.setAttribute('className',attr); +} + +function createResults() +{ + var results = document.getElementById("SRResults"); + for (var e=0; e + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/typedefs_0.js b/external/glfw-3.3.4/docs/html/search/typedefs_0.js new file mode 100644 index 0000000..e5f4884 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/typedefs_0.js @@ -0,0 +1,32 @@ +var searchData= +[ + ['glfwcharfun_703',['GLFWcharfun',['../group__input.html#ga2c4c70bfb3fb990182a4591cd21a374d',1,'glfw3.h']]], + ['glfwcharmodsfun_704',['GLFWcharmodsfun',['../group__input.html#ga78c3d45fdf9aaef0b8d670bf2a9519e2',1,'glfw3.h']]], + ['glfwcursor_705',['GLFWcursor',['../group__input.html#ga89261ae18c75e863aaf2656ecdd238f4',1,'glfw3.h']]], + ['glfwcursorenterfun_706',['GLFWcursorenterfun',['../group__input.html#ga945bb284410b64c49ecc50195692720a',1,'glfw3.h']]], + ['glfwcursorposfun_707',['GLFWcursorposfun',['../group__input.html#ga081a67dfb879e14707a5abd7de242b8a',1,'glfw3.h']]], + ['glfwdropfun_708',['GLFWdropfun',['../group__input.html#ga76a7371bc7edc035212b86ce85390fd2',1,'glfw3.h']]], + ['glfwerrorfun_709',['GLFWerrorfun',['../group__init.html#gaa684e3f8b44b6a35000119d524d49e6d',1,'glfw3.h']]], + ['glfwframebuffersizefun_710',['GLFWframebuffersizefun',['../group__window.html#ga54302eebe2f81518a544723a1d805388',1,'glfw3.h']]], + ['glfwgamepadstate_711',['GLFWgamepadstate',['../group__input.html#ga61acfb1f28f751438dd221225c5e725d',1,'glfw3.h']]], + ['glfwgammaramp_712',['GLFWgammaramp',['../group__monitor.html#ga939cf093cb0af0498b7b54dc2e181404',1,'glfw3.h']]], + ['glfwglproc_713',['GLFWglproc',['../group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c',1,'glfw3.h']]], + ['glfwimage_714',['GLFWimage',['../group__window.html#ga7cc0a09de172fa7250872046f8c4d2ca',1,'glfw3.h']]], + ['glfwjoystickfun_715',['GLFWjoystickfun',['../group__input.html#gafc05b099b23b3b23a992bdf6d77c191a',1,'glfw3.h']]], + ['glfwkeyfun_716',['GLFWkeyfun',['../group__input.html#ga9c6c9d019ac11d888e45b11b14772659',1,'glfw3.h']]], + ['glfwmonitor_717',['GLFWmonitor',['../group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3',1,'glfw3.h']]], + ['glfwmonitorfun_718',['GLFWmonitorfun',['../group__monitor.html#gacc7165513fd258601c4cb763c1369693',1,'glfw3.h']]], + ['glfwmousebuttonfun_719',['GLFWmousebuttonfun',['../group__input.html#gac4312f2199caa15988cebb59ec530373',1,'glfw3.h']]], + ['glfwscrollfun_720',['GLFWscrollfun',['../group__input.html#ga077345c3a10d906b2b3f2d550ae02971',1,'glfw3.h']]], + ['glfwvidmode_721',['GLFWvidmode',['../group__monitor.html#ga902c2816ac9b34b757282daab59b2565',1,'glfw3.h']]], + ['glfwvkproc_722',['GLFWvkproc',['../group__vulkan.html#ga70c01918dc9d233a4fbe0681a43018af',1,'glfw3.h']]], + ['glfwwindow_723',['GLFWwindow',['../group__window.html#ga3c96d80d363e67d13a41b5d1821f3242',1,'glfw3.h']]], + ['glfwwindowclosefun_724',['GLFWwindowclosefun',['../group__window.html#ga5c46f9d2435a22b531382ea642216a61',1,'glfw3.h']]], + ['glfwwindowcontentscalefun_725',['GLFWwindowcontentscalefun',['../group__window.html#gaca2e04ad85e70a646f07a870c2cad4ee',1,'glfw3.h']]], + ['glfwwindowfocusfun_726',['GLFWwindowfocusfun',['../group__window.html#ga6b15f80f61ff396d89720be2a183ca8a',1,'glfw3.h']]], + ['glfwwindowiconifyfun_727',['GLFWwindowiconifyfun',['../group__window.html#gaaa80beaa1d108e6bc09f666e186e735c',1,'glfw3.h']]], + ['glfwwindowmaximizefun_728',['GLFWwindowmaximizefun',['../group__window.html#ga82868db51248e7bc2deb2082336e6c70',1,'glfw3.h']]], + ['glfwwindowposfun_729',['GLFWwindowposfun',['../group__window.html#gaffb62b9d3f7dc2d6e7c89d3d76142f13',1,'glfw3.h']]], + ['glfwwindowrefreshfun_730',['GLFWwindowrefreshfun',['../group__window.html#ga7747bf66194241cff4f12d3500d8f9cd',1,'glfw3.h']]], + ['glfwwindowsizefun_731',['GLFWwindowsizefun',['../group__window.html#gaac00a2d1d82875c2bac1af223e9d3c58',1,'glfw3.h']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_0.html b/external/glfw-3.3.4/docs/html/search/variables_0.html new file mode 100644 index 0000000..1e477c0 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_0.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_0.js b/external/glfw-3.3.4/docs/html/search/variables_0.js new file mode 100644 index 0000000..161d776 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['axes_690',['axes',['../structGLFWgamepadstate.html#a8b2c8939b1d31458de5359998375c189',1,'GLFWgamepadstate']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_1.html b/external/glfw-3.3.4/docs/html/search/variables_1.html new file mode 100644 index 0000000..ea73d9a --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_1.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_1.js b/external/glfw-3.3.4/docs/html/search/variables_1.js new file mode 100644 index 0000000..3cbbfce --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_1.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['blue_691',['blue',['../structGLFWgammaramp.html#acf0c836d0efe29c392fe8d1a1042744b',1,'GLFWgammaramp']]], + ['bluebits_692',['blueBits',['../structGLFWvidmode.html#af310977f58d2e3b188175b6e3d314047',1,'GLFWvidmode']]], + ['buttons_693',['buttons',['../structGLFWgamepadstate.html#a27e9896b51c65df15fba2c7139bfdb9a',1,'GLFWgamepadstate']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_2.html b/external/glfw-3.3.4/docs/html/search/variables_2.html new file mode 100644 index 0000000..0580462 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_2.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_2.js b/external/glfw-3.3.4/docs/html/search/variables_2.js new file mode 100644 index 0000000..d3ce5c4 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['green_694',['green',['../structGLFWgammaramp.html#affccc6f5df47820b6562d709da3a5a3a',1,'GLFWgammaramp']]], + ['greenbits_695',['greenBits',['../structGLFWvidmode.html#a292fdd281f3485fb3ff102a5bda43faa',1,'GLFWvidmode']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_3.html b/external/glfw-3.3.4/docs/html/search/variables_3.html new file mode 100644 index 0000000..0d69e76 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_3.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_3.js b/external/glfw-3.3.4/docs/html/search/variables_3.js new file mode 100644 index 0000000..1d8bc16 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['height_696',['height',['../structGLFWvidmode.html#ac65942a5f6981695517437a9d571d03c',1,'GLFWvidmode::height()'],['../structGLFWimage.html#a0b7d95368f0c80d5e5c9875057c7dbec',1,'GLFWimage::height()']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_4.html b/external/glfw-3.3.4/docs/html/search/variables_4.html new file mode 100644 index 0000000..a4b6506 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_4.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_4.js b/external/glfw-3.3.4/docs/html/search/variables_4.js new file mode 100644 index 0000000..88ab5ec --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_4.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['pixels_697',['pixels',['../structGLFWimage.html#a0c532a5c2bb715555279b7817daba0fb',1,'GLFWimage']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_5.html b/external/glfw-3.3.4/docs/html/search/variables_5.html new file mode 100644 index 0000000..7e345d1 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_5.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_5.js b/external/glfw-3.3.4/docs/html/search/variables_5.js new file mode 100644 index 0000000..5fb8b13 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_5.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['red_698',['red',['../structGLFWgammaramp.html#a2cce5d968734b685623eef913e635138',1,'GLFWgammaramp']]], + ['redbits_699',['redBits',['../structGLFWvidmode.html#a6066c4ecd251098700062d3b735dba1b',1,'GLFWvidmode']]], + ['refreshrate_700',['refreshRate',['../structGLFWvidmode.html#a791bdd6c7697b09f7e9c97054bf05649',1,'GLFWvidmode']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_6.html b/external/glfw-3.3.4/docs/html/search/variables_6.html new file mode 100644 index 0000000..7d48e75 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_6.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_6.js b/external/glfw-3.3.4/docs/html/search/variables_6.js new file mode 100644 index 0000000..5c34f0d --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_6.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['size_701',['size',['../structGLFWgammaramp.html#ad620e1cffbff9a32c51bca46301b59a5',1,'GLFWgammaramp']]] +]; diff --git a/external/glfw-3.3.4/docs/html/search/variables_7.html b/external/glfw-3.3.4/docs/html/search/variables_7.html new file mode 100644 index 0000000..5c26340 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_7.html @@ -0,0 +1,37 @@ + + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glfw-3.3.4/docs/html/search/variables_7.js b/external/glfw-3.3.4/docs/html/search/variables_7.js new file mode 100644 index 0000000..c6cd71e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/search/variables_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['width_702',['width',['../structGLFWvidmode.html#a698dcb200562051a7249cb6ae154c71d',1,'GLFWvidmode::width()'],['../structGLFWimage.html#af6a71cc999fe6d3aea31dd7e9687d835',1,'GLFWimage::width()']]] +]; diff --git a/external/glfw-3.3.4/docs/html/spaces.svg b/external/glfw-3.3.4/docs/html/spaces.svg new file mode 100644 index 0000000..5b32646 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/spaces.svg @@ -0,0 +1,877 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/external/glm/doc/api/splitbar.png b/external/glfw-3.3.4/docs/html/splitbar.png similarity index 100% rename from external/glm/doc/api/splitbar.png rename to external/glfw-3.3.4/docs/html/splitbar.png diff --git a/external/glfw-3.3.4/docs/html/structGLFWgamepadstate.html b/external/glfw-3.3.4/docs/html/structGLFWgamepadstate.html new file mode 100644 index 0000000..4c54f15 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/structGLFWgamepadstate.html @@ -0,0 +1,127 @@ + + + + + + + +GLFW: GLFWgamepadstate Struct Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    + +
    +
    GLFWgamepadstate Struct Reference
    +
    +
    + +

    Gamepad input state. + More...

    + + + + + + +

    +Data Fields

    unsigned char buttons [15]
     
    float axes [6]
     
    +

    Detailed Description

    +

    This describes the input state of a gamepad.

    +
    See also
    Gamepad input
    +
    +glfwGetGamepadState
    +
    Since
    Added in version 3.3.
    +

    Field Documentation

    + +

    ◆ buttons

    + +
    +
    + + + + +
    unsigned char GLFWgamepadstate::buttons[15]
    +
    +

    The states of each gamepad button, GLFW_PRESS or GLFW_RELEASE.

    + +
    +
    + +

    ◆ axes

    + +
    +
    + + + + +
    float GLFWgamepadstate::axes[6]
    +
    +

    The states of each gamepad axis, in the range -1.0 to 1.0 inclusive.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    + + + diff --git a/external/glfw-3.3.4/docs/html/structGLFWgammaramp.html b/external/glfw-3.3.4/docs/html/structGLFWgammaramp.html new file mode 100644 index 0000000..2d3e362 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/structGLFWgammaramp.html @@ -0,0 +1,163 @@ + + + + + + + +GLFW: GLFWgammaramp Struct Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    + +
    +
    GLFWgammaramp Struct Reference
    +
    +
    + +

    Gamma ramp. + More...

    + + + + + + + + + + +

    +Data Fields

    unsigned short * red
     
    unsigned short * green
     
    unsigned short * blue
     
    unsigned int size
     
    +

    Detailed Description

    +

    This describes the gamma ramp for a monitor.

    +
    See also
    Gamma ramp
    +
    +glfwGetGammaRamp
    +
    +glfwSetGammaRamp
    +
    Since
    Added in version 3.0.
    +

    Field Documentation

    + +

    ◆ red

    + +
    +
    + + + + +
    unsigned short* GLFWgammaramp::red
    +
    +

    An array of value describing the response of the red channel.

    + +
    +
    + +

    ◆ green

    + +
    +
    + + + + +
    unsigned short* GLFWgammaramp::green
    +
    +

    An array of value describing the response of the green channel.

    + +
    +
    + +

    ◆ blue

    + +
    +
    + + + + +
    unsigned short* GLFWgammaramp::blue
    +
    +

    An array of value describing the response of the blue channel.

    + +
    +
    + +

    ◆ size

    + +
    +
    + + + + +
    unsigned int GLFWgammaramp::size
    +
    +

    The number of elements in each array.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    + + + diff --git a/external/glfw-3.3.4/docs/html/structGLFWimage.html b/external/glfw-3.3.4/docs/html/structGLFWimage.html new file mode 100644 index 0000000..34a3590 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/structGLFWimage.html @@ -0,0 +1,144 @@ + + + + + + + +GLFW: GLFWimage Struct Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    + +
    +
    GLFWimage Struct Reference
    +
    +
    + +

    Image data. + More...

    + + + + + + + + +

    +Data Fields

    int width
     
    int height
     
    unsigned char * pixels
     
    +

    Detailed Description

    +

    This describes a single 2D image. See the documentation for each related function what the expected pixel format is.

    +
    See also
    Custom cursor creation
    +
    +Window icon
    +
    Since
    Added in version 2.1. GLFW 3: Removed format and bytes-per-pixel members.
    +

    Field Documentation

    + +

    ◆ width

    + +
    +
    + + + + +
    int GLFWimage::width
    +
    +

    The width, in pixels, of this image.

    + +
    +
    + +

    ◆ height

    + +
    +
    + + + + +
    int GLFWimage::height
    +
    +

    The height, in pixels, of this image.

    + +
    +
    + +

    ◆ pixels

    + +
    +
    + + + + +
    unsigned char* GLFWimage::pixels
    +
    +

    The pixel data of this image, arranged left-to-right, top-to-bottom.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    + + + diff --git a/external/glfw-3.3.4/docs/html/structGLFWvidmode.html b/external/glfw-3.3.4/docs/html/structGLFWvidmode.html new file mode 100644 index 0000000..bc3fb54 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/structGLFWvidmode.html @@ -0,0 +1,197 @@ + + + + + + + +GLFW: GLFWvidmode Struct Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    + +
    +
    GLFWvidmode Struct Reference
    +
    +
    + +

    Video mode type. + More...

    + + + + + + + + + + + + + + +

    +Data Fields

    int width
     
    int height
     
    int redBits
     
    int greenBits
     
    int blueBits
     
    int refreshRate
     
    +

    Detailed Description

    +

    This describes a single video mode.

    +
    See also
    Video modes
    +
    +glfwGetVideoMode
    +
    +glfwGetVideoModes
    +
    Since
    Added in version 1.0. GLFW 3: Added refresh rate member.
    +

    Field Documentation

    + +

    ◆ width

    + +
    +
    + + + + +
    int GLFWvidmode::width
    +
    +

    The width, in screen coordinates, of the video mode.

    + +
    +
    + +

    ◆ height

    + +
    +
    + + + + +
    int GLFWvidmode::height
    +
    +

    The height, in screen coordinates, of the video mode.

    + +
    +
    + +

    ◆ redBits

    + +
    +
    + + + + +
    int GLFWvidmode::redBits
    +
    +

    The bit depth of the red channel of the video mode.

    + +
    +
    + +

    ◆ greenBits

    + +
    +
    + + + + +
    int GLFWvidmode::greenBits
    +
    +

    The bit depth of the green channel of the video mode.

    + +
    +
    + +

    ◆ blueBits

    + +
    +
    + + + + +
    int GLFWvidmode::blueBits
    +
    +

    The bit depth of the blue channel of the video mode.

    + +
    +
    + +

    ◆ refreshRate

    + +
    +
    + + + + +
    int GLFWvidmode::refreshRate
    +
    +

    The refresh rate, in Hz, of the video mode.

    + +
    +
    +
    The documentation for this struct was generated from the following file: +
    + + + diff --git a/external/glm/doc/api/sync_off.png b/external/glfw-3.3.4/docs/html/sync_off.png similarity index 100% rename from external/glm/doc/api/sync_off.png rename to external/glfw-3.3.4/docs/html/sync_off.png diff --git a/external/glm/doc/api/sync_on.png b/external/glfw-3.3.4/docs/html/sync_on.png similarity index 100% rename from external/glm/doc/api/sync_on.png rename to external/glfw-3.3.4/docs/html/sync_on.png diff --git a/external/glm/doc/api/tab_a.png b/external/glfw-3.3.4/docs/html/tab_a.png similarity index 100% rename from external/glm/doc/api/tab_a.png rename to external/glfw-3.3.4/docs/html/tab_a.png diff --git a/external/glm/doc/api/tab_b.png b/external/glfw-3.3.4/docs/html/tab_b.png similarity index 100% rename from external/glm/doc/api/tab_b.png rename to external/glfw-3.3.4/docs/html/tab_b.png diff --git a/external/glm/doc/api/tab_h.png b/external/glfw-3.3.4/docs/html/tab_h.png similarity index 100% rename from external/glm/doc/api/tab_h.png rename to external/glfw-3.3.4/docs/html/tab_h.png diff --git a/external/glm/doc/api/tab_s.png b/external/glfw-3.3.4/docs/html/tab_s.png similarity index 100% rename from external/glm/doc/api/tab_s.png rename to external/glfw-3.3.4/docs/html/tab_s.png diff --git a/external/glfw-3.3.4/docs/html/tabs.css b/external/glfw-3.3.4/docs/html/tabs.css new file mode 100644 index 0000000..85a0cd5 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/tabs.css @@ -0,0 +1 @@ +.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sm-dox{background-image:url("tab_b.png")}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0 12px;padding-right:43px;font-family:"Lucida Grande","Geneva","Helvetica",Arial,sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:0 1px 1px rgba(255,255,255,0.9);color:#283a5d;outline:0}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a.current{color:#d23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace!important;text-align:center;text-shadow:none;background:rgba(255,255,255,0.5);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px;border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0;border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox ul{background:rgba(162,162,162,0.1)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:white;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media(min-width:768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:url("tab_b.png");line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:#283a5d transparent transparent transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0 12px;background-image:url("tab_s.png");background-repeat:no-repeat;background-position:right;-moz-border-radius:0!important;-webkit-border-radius:0;border-radius:0!important}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a:hover span.sub-arrow{border-color:white transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent #fff transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:#fff;-moz-border-radius:5px!important;-webkit-border-radius:5px;border-radius:5px!important;-moz-box-shadow:0 5px 9px rgba(0,0,0,0.2);-webkit-box-shadow:0 5px 9px rgba(0,0,0,0.2);box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent #555;border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:#555;background-image:none;border:0!important;color:#555;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent white}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:#fff;height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #d23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#d23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent #555 transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:#555 transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px!important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:url("tab_b.png")}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:#fff}} \ No newline at end of file diff --git a/external/glfw-3.3.4/docs/html/vulkan_8dox.html b/external/glfw-3.3.4/docs/html/vulkan_8dox.html new file mode 100644 index 0000000..4f97c5c --- /dev/null +++ b/external/glfw-3.3.4/docs/html/vulkan_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: vulkan.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    vulkan.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/vulkan_guide.html b/external/glfw-3.3.4/docs/html/vulkan_guide.html new file mode 100644 index 0000000..8f52716 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/vulkan_guide.html @@ -0,0 +1,188 @@ + + + + + + + +GLFW: Vulkan guide + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Vulkan guide
    +
    +
    + +

    This guide is intended to fill the gaps between the official Vulkan resources and the rest of the GLFW documentation and is not a replacement for either. It assumes some familiarity with Vulkan concepts like loaders, devices, queues and surfaces and leaves it to the Vulkan documentation to explain the details of Vulkan functions.

    +

    To develop for Vulkan you should download the LunarG Vulkan SDK for your platform. Apart from headers and link libraries, they also provide the validation layers necessary for development.

    +

    The Vulkan Tutorial has more information on how to use GLFW and Vulkan. The Khronos Vulkan Samples also use GLFW, although with a small framework in between.

    +

    For details on a specific Vulkan support function, see the Vulkan support reference. There are also guides for the other areas of the GLFW API.

    + +

    +Linking against the Vulkan loader

    +

    By default, GLFW will look for the Vulkan loader on demand at runtime via its standard name (vulkan-1.dll on Windows, libvulkan.so.1 on Linux and other Unix-like systems and libvulkan.1.dylib on macOS). This means that GLFW does not need to be linked against the loader. However, it also means that if you are using the static library form of the Vulkan loader GLFW will either fail to find it or (worse) use the wrong one.

    +

    The GLFW_VULKAN_STATIC CMake option makes GLFW call the Vulkan loader directly instead of dynamically loading it at runtime. Not linking against the Vulkan loader will then be a compile-time error.

    +

    macOS: Because the Vulkan loader and ICD are not installed globally on macOS, you need to set up the application bundle according to the LunarG SDK documentation. This is explained in more detail in the SDK documentation for macOS.

    +

    +Including the Vulkan and GLFW header files

    +

    To include the Vulkan header, define GLFW_INCLUDE_VULKAN before including the GLFW header.

    +
    #define GLFW_INCLUDE_VULKAN
    +
    #include <GLFW/glfw3.h>
    +

    If you instead want to include the Vulkan header from a custom location or use your own custom Vulkan header then do this before the GLFW header.

    +
    #include <path/to/vulkan.h>
    +
    #include <GLFW/glfw3.h>
    +
    The header of the GLFW 3 API.
    +

    Unless a Vulkan header is included, either by the GLFW header or above it, any GLFW functions that take or return Vulkan types will not be declared.

    +

    The VK_USE_PLATFORM_*_KHR macros do not need to be defined for the Vulkan part of GLFW to work. Define them only if you are using these extensions directly.

    +

    +Querying for Vulkan support

    +

    If you are linking directly against the Vulkan loader then you can skip this section. The canonical desktop loader library exports all Vulkan core and Khronos extension functions, allowing them to be called directly.

    +

    If you are loading the Vulkan loader dynamically instead of linking directly against it, you can check for the availability of a loader and ICD with glfwVulkanSupported.

    +
    +
    {
    +
    // Vulkan is available, at least for compute
    +
    }
    +
    int glfwVulkanSupported(void)
    Returns whether the Vulkan loader and an ICD have been found.
    +

    This function returns GLFW_TRUE if the Vulkan loader and any minimally functional ICD was found.

    +

    If one or both were not found, calling any other Vulkan related GLFW function will generate a GLFW_API_UNAVAILABLE error.

    +

    +Querying Vulkan function pointers

    +

    To load any Vulkan core or extension function from the found loader, call glfwGetInstanceProcAddress. To load functions needed for instance creation, pass NULL as the instance.

    +
    PFN_vkCreateInstance pfnCreateInstance = (PFN_vkCreateInstance)
    +
    glfwGetInstanceProcAddress(NULL, "vkCreateInstance");
    +
    GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char *procname)
    Returns the address of the specified Vulkan instance function.
    +

    Once you have created an instance, you can load from it all other Vulkan core functions and functions from any instance extensions you enabled.

    +
    PFN_vkCreateDevice pfnCreateDevice = (PFN_vkCreateDevice)
    +
    glfwGetInstanceProcAddress(instance, "vkCreateDevice");
    +

    This function in turn calls vkGetInstanceProcAddr. If that fails, the function falls back to a platform-specific query of the Vulkan loader (i.e. dlsym or GetProcAddress). If that also fails, the function returns NULL. For more information about vkGetInstanceProcAddr, see the Vulkan documentation.

    +

    Vulkan also provides vkGetDeviceProcAddr for loading device-specific versions of Vulkan function. This function can be retrieved from an instance with glfwGetInstanceProcAddress.

    +
    PFN_vkGetDeviceProcAddr pfnGetDeviceProcAddr = (PFN_vkGetDeviceProcAddr)
    +
    glfwGetInstanceProcAddress(instance, "vkGetDeviceProcAddr");
    +

    Device-specific functions may execute a little bit faster, due to not having to dispatch internally based on the device passed to them. For more information about vkGetDeviceProcAddr, see the Vulkan documentation.

    +

    +Querying required Vulkan extensions

    +

    To do anything useful with Vulkan you need to create an instance. If you want to use Vulkan to render to a window, you must enable the instance extensions GLFW requires to create Vulkan surfaces.

    +

    To query the instance extensions required, call glfwGetRequiredInstanceExtensions.

    +
    uint32_t count;
    +
    const char** extensions = glfwGetRequiredInstanceExtensions(&count);
    +
    const char ** glfwGetRequiredInstanceExtensions(uint32_t *count)
    Returns the Vulkan instance extensions required by GLFW.
    +

    These extensions must all be enabled when creating instances that are going to be passed to glfwGetPhysicalDevicePresentationSupport and glfwCreateWindowSurface. The set of extensions will vary depending on platform and may also vary depending on graphics drivers and other factors.

    +

    If it fails it will return NULL and GLFW will not be able to create Vulkan window surfaces. You can still use Vulkan for off-screen rendering and compute work.

    +

    If successful the returned array will always include VK_KHR_surface, so if you don't require any additional extensions you can pass this list directly to the VkInstanceCreateInfo struct.

    +
    VkInstanceCreateInfo ici;
    +
    +
    memset(&ici, 0, sizeof(ici));
    +
    ici.enabledExtensionCount = count;
    +
    ici.ppEnabledExtensionNames = extensions;
    +
    ...
    +

    Additional extensions may be required by future versions of GLFW. You should check whether 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.

    +

    +Querying for Vulkan presentation support

    +

    Not every queue family of every Vulkan device can present images to surfaces. To check whether a specific queue family of a physical device supports image presentation without first having to create a window and surface, call glfwGetPhysicalDevicePresentationSupport.

    +
    if (glfwGetPhysicalDevicePresentationSupport(instance, physical_device, queue_family_index))
    +
    {
    +
    // Queue family supports image presentation
    +
    }
    +
    int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily)
    Returns whether the specified queue family can present images.
    +

    The VK_KHR_surface extension additionally provides the vkGetPhysicalDeviceSurfaceSupportKHR function, which performs the same test on an existing Vulkan surface.

    +

    +Creating the window

    +

    Unless you will be using OpenGL or OpenGL ES with the same window as Vulkan, there is no need to create a context. You can disable context creation with the GLFW_CLIENT_API hint.

    +
    +
    GLFWwindow* window = glfwCreateWindow(640, 480, "Window Title", NULL, NULL);
    +
    #define GLFW_NO_API
    Definition: glfw3.h:1033
    +
    struct GLFWwindow GLFWwindow
    Opaque window object.
    Definition: glfw3.h:1182
    +
    GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
    Creates a window and its associated context.
    +
    #define GLFW_CLIENT_API
    Context client API hint and attribute.
    Definition: glfw3.h:946
    +
    void glfwWindowHint(int hint, int value)
    Sets the specified window hint to the desired value.
    +

    See Windows without contexts for more information.

    +

    +Creating a Vulkan window surface

    +

    You can create a Vulkan surface (as defined by the VK_KHR_surface extension) for a GLFW window with glfwCreateWindowSurface.

    +
    VkSurfaceKHR surface;
    +
    VkResult err = glfwCreateWindowSurface(instance, window, NULL, &surface);
    +
    if (err)
    +
    {
    +
    // Window surface creation failed
    +
    }
    +
    VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow *window, const VkAllocationCallbacks *allocator, VkSurfaceKHR *surface)
    Creates a Vulkan surface for the specified window.
    +

    If an OpenGL or OpenGL ES context was created on the window, the context has ownership of the presentation on the window and a Vulkan surface cannot be created.

    +

    It is your responsibility to destroy the surface. GLFW does not destroy it for you. Call vkDestroySurfaceKHR function from the same extension to destroy it.

    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/window_8dox.html b/external/glfw-3.3.4/docs/html/window_8dox.html new file mode 100644 index 0000000..4cba264 --- /dev/null +++ b/external/glfw-3.3.4/docs/html/window_8dox.html @@ -0,0 +1,74 @@ + + + + + + + +GLFW: window.dox File Reference + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    window.dox File Reference
    +
    +
    +
    + + + diff --git a/external/glfw-3.3.4/docs/html/window_guide.html b/external/glfw-3.3.4/docs/html/window_guide.html new file mode 100644 index 0000000..0ee767e --- /dev/null +++ b/external/glfw-3.3.4/docs/html/window_guide.html @@ -0,0 +1,752 @@ + + + + + + + +GLFW: Window guide + + + + + + + + + + +
    + + + + + + + + + +
    +
    + + +
    + +
    + +
    +
    +
    +
    Window guide
    +
    +
    + +

    This guide introduces the window related functions of GLFW. For details on a specific function in this category, see the Window reference. There are also guides for the other areas of GLFW.

    + +

    +Window objects

    +

    The GLFWwindow object encapsulates both a window and a context. They are created with glfwCreateWindow and destroyed with glfwDestroyWindow, or glfwTerminate, if any remain. As the window and context are inseparably linked, the object pointer is used as both a context and window handle.

    +

    To see the event stream provided to the various window related callbacks, run the events test program.

    +

    +Window creation

    +

    A window and its OpenGL or OpenGL ES context are created with glfwCreateWindow, which returns a handle to the created window object. For example, this creates a 640 by 480 windowed mode window:

    +
    GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", NULL, NULL);
    +
    struct GLFWwindow GLFWwindow
    Opaque window object.
    Definition: glfw3.h:1182
    +
    GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)
    Creates a window and its associated context.
    +

    If window creation fails, NULL will be returned, so it is necessary to check the return value.

    +

    The window handle is passed to all window related functions and is provided to along with all input events, so event handlers can tell which window received the event.

    +

    +Full screen windows

    +

    To create a full screen window, you need to specify which monitor the window should use. In most cases, the user's primary monitor is a good choice. For more information about retrieving monitors, see Retrieving monitors.

    +
    GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", glfwGetPrimaryMonitor(), NULL);
    +
    GLFWmonitor * glfwGetPrimaryMonitor(void)
    Returns the primary monitor.
    +

    Full screen windows cover the entire display area of a monitor, have no border or decorations.

    +

    Windowed mode windows can be made full screen by setting a monitor with glfwSetWindowMonitor, and full screen ones can be made windowed by unsetting it with the same function.

    +

    Each field of the GLFWvidmode structure corresponds to a function parameter or window hint and combine to form the desired video mode for that window. The supported video mode most closely matching the desired video mode will be set for the chosen monitor as long as the window has input focus. For more information about retrieving video modes, see Video modes.

    + + + + + + + + + + + + + + + +
    Video mode field Corresponds to
    GLFWvidmode.width width parameter of glfwCreateWindow
    GLFWvidmode.height height parameter of glfwCreateWindow
    GLFWvidmode.redBits GLFW_RED_BITS hint
    GLFWvidmode.greenBits GLFW_GREEN_BITS hint
    GLFWvidmode.blueBits GLFW_BLUE_BITS hint
    GLFWvidmode.refreshRate GLFW_REFRESH_RATE hint
    +

    Once you have a full screen window, you can change its resolution, refresh rate and monitor with glfwSetWindowMonitor. If you only need change its resolution you can also call glfwSetWindowSize. In all cases, the new video mode will be selected the same way as the video mode chosen by glfwCreateWindow. If the window has an OpenGL or OpenGL ES context, it will be unaffected.

    +

    By default, the original video mode of the monitor will be restored and the window iconified if it loses input focus, to allow the user to switch back to the desktop. This behavior can be disabled with the GLFW_AUTO_ICONIFY window hint, for example if you wish to simultaneously cover multiple monitors with full screen windows.

    +

    If a monitor is disconnected, all windows that are full screen on that monitor will be switched to windowed mode. See Monitor configuration changes for more information.

    +

    +"Windowed full screen" windows

    +

    If the closest match for the desired video mode is the current one, the video mode will not be changed, making window creation faster and application switching much smoother. This is sometimes called windowed full screen or borderless full screen window and counts as a full screen window. To create such a window, request the current video mode.

    +
    const GLFWvidmode* mode = glfwGetVideoMode(monitor);
    +
    + + + + +
    +
    GLFWwindow* window = glfwCreateWindow(mode->width, mode->height, "My Title", monitor, NULL);
    +
    const GLFWvidmode * glfwGetVideoMode(GLFWmonitor *monitor)
    Returns the current mode of the specified monitor.
    +
    #define GLFW_REFRESH_RATE
    Monitor refresh rate hint.
    Definition: glfw3.h:934
    +
    void glfwWindowHint(int hint, int value)
    Sets the specified window hint to the desired value.
    +
    #define GLFW_BLUE_BITS
    Framebuffer bit depth hint.
    Definition: glfw3.h:874
    +
    #define GLFW_RED_BITS
    Framebuffer bit depth hint.
    Definition: glfw3.h:864
    +
    #define GLFW_GREEN_BITS
    Framebuffer bit depth hint.
    Definition: glfw3.h:869
    +
    Video mode type.
    Definition: glfw3.h:1655
    +
    int greenBits
    Definition: glfw3.h:1667
    +
    int redBits
    Definition: glfw3.h:1664
    +
    int width
    Definition: glfw3.h:1658
    +
    int refreshRate
    Definition: glfw3.h:1673
    +
    int height
    Definition: glfw3.h:1661
    +
    int blueBits
    Definition: glfw3.h:1670
    +

    This also works for windowed mode windows that are made full screen.

    +
    const GLFWvidmode* mode = glfwGetVideoMode(monitor);
    +
    +
    glfwSetWindowMonitor(window, monitor, 0, 0, mode->width, mode->height, mode->refreshRate);
    +
    void glfwSetWindowMonitor(GLFWwindow *window, GLFWmonitor *monitor, int xpos, int ypos, int width, int height, int refreshRate)
    Sets the mode, monitor, video mode and placement of a window.
    +

    Note that glfwGetVideoMode returns the current video mode of a monitor, so if you already have a full screen window on that monitor that you want to make windowed full screen, you need to have saved the desktop resolution before.

    +

    +Window destruction

    +

    When a window is no longer needed, destroy it with glfwDestroyWindow.

    +
    +
    void glfwDestroyWindow(GLFWwindow *window)
    Destroys the specified window and its context.
    +

    Window destruction always succeeds. Before the actual destruction, all callbacks are removed so no further events will be delivered for the window. All windows remaining when glfwTerminate is called are destroyed as well.

    +

    When a full screen window is destroyed, the original video mode of its monitor is restored, but the gamma ramp is left untouched.

    +

    +Window creation hints

    +

    There are a number of hints that can be set before the creation of a window and context. Some affect the window itself, others affect the framebuffer or context. These hints are set to their default values each time the library is initialized with glfwInit. Integer value hints can be set individually with glfwWindowHint and string value hints with glfwWindowHintString. You can reset all at once to their defaults with glfwDefaultWindowHints.

    +

    Some hints are platform specific. These are always valid to set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or calls.

    +
    Note
    Window hints need to be set before the creation of the window and context you wish to have the specified attributes. They function as additional arguments to glfwCreateWindow.
    +

    +Hard and soft constraints

    +

    Some window hints are hard constraints. These must match the available capabilities exactly for window and context creation to succeed. Hints that are not hard constraints are matched as closely as possible, but the resulting context and framebuffer may differ from what these hints requested.

    +

    The following hints are always hard constraints:

    +

    The following additional hints are hard constraints when requesting an OpenGL context, but are ignored when requesting an OpenGL ES context:

    +

    +Window related hints

    +

    GLFW_RESIZABLE specifies whether the windowed mode window will be resizable by the user. The window will still be resizable using the glfwSetWindowSize function. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen and undecorated windows.

    +

    GLFW_VISIBLE specifies whether the windowed mode window will be initially visible. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen windows.

    +

    GLFW_DECORATED specifies whether the windowed mode window will have window decorations such as a border, a close widget, etc. An undecorated window will not be resizable by the user but will still allow the user to generate close events on some platforms. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen windows.

    +

    GLFW_FOCUSED specifies whether the windowed mode window will be given input focus when created. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen and initially hidden windows.

    +

    GLFW_AUTO_ICONIFY specifies whether the full screen window will automatically iconify and restore the previous video mode on input focus loss. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for windowed mode windows.

    +

    GLFW_FLOATING specifies whether the windowed mode window will be floating above other regular windows, also called topmost or always-on-top. This is intended primarily for debugging purposes and cannot be used to implement proper full screen windows. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen windows.

    +

    GLFW_MAXIMIZED specifies whether the windowed mode window will be maximized when created. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for full screen windows.

    +

    GLFW_CENTER_CURSOR specifies whether the cursor should be centered over newly created full screen windows. Possible values are GLFW_TRUE and GLFW_FALSE. This hint is ignored for windowed mode windows.

    +

    GLFW_TRANSPARENT_FRAMEBUFFER specifies whether the window framebuffer will be transparent. If enabled and supported by the system, the window framebuffer alpha channel will be used to combine the framebuffer with the background. This does not affect window decorations. Possible values are GLFW_TRUE and GLFW_FALSE.

    +

    GLFW_FOCUS_ON_SHOW specifies whether the window will be given input focus when glfwShowWindow is called. Possible values are GLFW_TRUE and GLFW_FALSE.

    +

    GLFW_SCALE_TO_MONITOR specified whether the window content area should be resized based on the monitor content scale of any monitor it is placed on. This includes the initial placement when the window is created. Possible values are GLFW_TRUE and GLFW_FALSE.

    +

    This hint only has an effect on platforms where screen coordinates and pixels always map 1:1 such as Windows and X11. On platforms like macOS the resolution of the framebuffer is changed independently of the window size.

    +

    +Framebuffer related hints

    +

    GLFW_RED_BITS, GLFW_GREEN_BITS, GLFW_BLUE_BITS, GLFW_ALPHA_BITS, GLFW_DEPTH_BITS and GLFW_STENCIL_BITS specify the desired bit depths of the various components of the default framebuffer. A value of GLFW_DONT_CARE means the application has no preference.

    +

    GLFW_ACCUM_RED_BITS, GLFW_ACCUM_GREEN_BITS, GLFW_ACCUM_BLUE_BITS and GLFW_ACCUM_ALPHA_BITS specify the desired bit depths of the various components of the accumulation buffer. A value of GLFW_DONT_CARE means the application has no preference.

    +
    Accumulation buffers are a legacy OpenGL feature and should not be used in new code.
    +

    GLFW_AUX_BUFFERS specifies the desired number of auxiliary buffers. A value of GLFW_DONT_CARE means the application has no preference.

    +
    Auxiliary buffers are a legacy OpenGL feature and should not be used in new code.
    +

    GLFW_STEREO specifies whether to use OpenGL stereoscopic rendering. Possible values are GLFW_TRUE and GLFW_FALSE. This is a hard constraint.

    +

    GLFW_SAMPLES specifies the desired number of samples to use for multisampling. Zero disables multisampling. A value of GLFW_DONT_CARE means the application has no preference.

    +

    GLFW_SRGB_CAPABLE specifies whether the framebuffer should be sRGB capable. Possible values are GLFW_TRUE and GLFW_FALSE.

    +
    OpenGL: If enabled and supported by the system, the GL_FRAMEBUFFER_SRGB enable will control sRGB rendering. By default, sRGB rendering will be disabled.
    +
    OpenGL ES: If enabled and supported by the system, the context will always have sRGB rendering enabled.
    +

    GLFW_DOUBLEBUFFER specifies whether the framebuffer should be double buffered. You nearly always want to use double buffering. This is a hard constraint. Possible values are GLFW_TRUE and GLFW_FALSE.

    +

    +Monitor related hints

    +

    GLFW_REFRESH_RATE specifies the desired refresh rate for full screen windows. A value of GLFW_DONT_CARE means the highest available refresh rate will be used. This hint is ignored for windowed mode windows.

    +

    +Context related hints

    +

    GLFW_CLIENT_API specifies which client API to create the context for. Possible values are GLFW_OPENGL_API, GLFW_OPENGL_ES_API and GLFW_NO_API. This is a hard constraint.

    +

    GLFW_CONTEXT_CREATION_API specifies which context creation API to use to create the context. Possible values are GLFW_NATIVE_CONTEXT_API, GLFW_EGL_CONTEXT_API and GLFW_OSMESA_CONTEXT_API. This is a hard constraint. If no client API is requested, this hint is ignored.

    +
    macOS: The EGL API is not available on this platform and requests to use it will fail.
    +
    Wayland: The EGL API is the native context creation API, so this hint will have no effect.
    +
    OSMesa: As its name implies, an OpenGL context created with OSMesa does not update the window contents when its buffers are swapped. Use OpenGL functions or the OSMesa native access functions glfwGetOSMesaColorBuffer and glfwGetOSMesaDepthBuffer to retrieve the framebuffer contents.
    +
    Note
    An OpenGL extension loader library that assumes it knows which context creation API is used on a given platform may fail if you change this hint. This can be resolved by having it load via glfwGetProcAddress, which always uses the selected API.
    +
    Bug:
    On some Linux systems, creating contexts via both the native and EGL APIs in a single process will cause the application to segfault. Stick to one API or the other on Linux for now.
    +

    GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR specify the client API version that the created context must be compatible with. The exact behavior of these hints depend on the requested client API.

    +
    Note
    Do not confuse these hints with GLFW_VERSION_MAJOR and GLFW_VERSION_MINOR, which provide the API version of the GLFW header.
    +
    OpenGL: These hints are not hard constraints, but creation will fail if the OpenGL version of the created context is less than the one requested. It is therefore perfectly safe to use the default of version 1.0 for legacy code and you will still get backwards-compatible contexts of version 3.0 and above when available.
    +
    While there is no way to ask the driver for a context of the highest supported version, GLFW will attempt to provide this when you ask for a version 1.0 context, which is the default for these hints.
    +
    OpenGL ES: These hints are not hard constraints, but creation will fail if the OpenGL ES version of the created context is less than the one requested. Additionally, OpenGL ES 1.x cannot be returned if 2.0 or later was requested, and vice versa. This is because OpenGL ES 3.x is backward compatible with 2.0, but OpenGL ES 2.0 is not backward compatible with 1.x.
    +
    Note
    macOS: The OS only supports forward-compatible core profile contexts for OpenGL versions 3.2 and later. Before creating an OpenGL context of version 3.2 or later you must set the GLFW_OPENGL_FORWARD_COMPAT and GLFW_OPENGL_PROFILE hints accordingly. OpenGL 3.0 and 3.1 contexts are not supported at all on macOS.
    +

    GLFW_OPENGL_FORWARD_COMPAT specifies whether the OpenGL context should be forward-compatible, i.e. one where all functionality deprecated in the requested version of OpenGL is removed. This must only be used if the requested OpenGL version is 3.0 or above. If OpenGL ES is requested, this hint is ignored.

    +
    Forward-compatibility is described in detail in the OpenGL Reference Manual.
    +

    GLFW_OPENGL_DEBUG_CONTEXT specifies whether the context should be created in debug mode, which may provide additional error and diagnostic reporting functionality. Possible values are GLFW_TRUE and GLFW_FALSE.

    +
    Debug contexts for OpenGL and OpenGL ES are described in detail by the GL_KHR_debug extension.
    +

    GLFW_OPENGL_PROFILE specifies which OpenGL profile to create the context for. Possible values are one of GLFW_OPENGL_CORE_PROFILE or GLFW_OPENGL_COMPAT_PROFILE, or GLFW_OPENGL_ANY_PROFILE to not request a specific profile. If requesting an OpenGL version below 3.2, GLFW_OPENGL_ANY_PROFILE must be used. If OpenGL ES is requested, this hint is ignored.

    +
    OpenGL profiles are described in detail in the OpenGL Reference Manual.
    +

    GLFW_CONTEXT_ROBUSTNESS specifies the robustness strategy to be used by the context. This can be one of GLFW_NO_RESET_NOTIFICATION or GLFW_LOSE_CONTEXT_ON_RESET, or GLFW_NO_ROBUSTNESS to not request a robustness strategy.

    +

    GLFW_CONTEXT_RELEASE_BEHAVIOR specifies the release behavior to be used by the context. Possible values are one of GLFW_ANY_RELEASE_BEHAVIOR, GLFW_RELEASE_BEHAVIOR_FLUSH or GLFW_RELEASE_BEHAVIOR_NONE. If the behavior is GLFW_ANY_RELEASE_BEHAVIOR, the default behavior of the context creation API will be used. If the behavior is GLFW_RELEASE_BEHAVIOR_FLUSH, the pipeline will be flushed whenever the context is released from being the current one. If the behavior is GLFW_RELEASE_BEHAVIOR_NONE, the pipeline will not be flushed on release.

    +
    Context release behaviors are described in detail by the GL_KHR_context_flush_control extension.
    +

    GLFW_CONTEXT_NO_ERROR specifies whether errors should be generated by the context. Possible values are GLFW_TRUE and GLFW_FALSE. If enabled, situations that would have generated errors instead cause undefined behavior.

    +
    The no error mode for OpenGL and OpenGL ES is described in detail by the GL_KHR_no_error extension.
    +

    +macOS specific window hints

    +

    GLFW_COCOA_RETINA_FRAMEBUFFER specifies whether to use full resolution framebuffers on Retina displays. Possible values are GLFW_TRUE and GLFW_FALSE. This is ignored on other platforms.

    +

    GLFW_COCOA_FRAME_NAME specifies the UTF-8 encoded name to use for autosaving the window frame, or if empty disables frame autosaving for the window. This is ignored on other platforms. This is set with glfwWindowHintString.

    +

    GLFW_COCOA_GRAPHICS_SWITCHING specifies whether to in Automatic Graphics Switching, i.e. to allow the system to choose the integrated GPU for the OpenGL context and move it between GPUs if necessary or whether to force it to always run on the discrete GPU. This only affects systems with both integrated and discrete GPUs. Possible values are GLFW_TRUE and GLFW_FALSE. This is ignored on other platforms.

    +
    Simpler programs and tools may want to enable this to save power, while games and other applications performing advanced rendering will want to leave it disabled.
    +
    A bundled application that wishes to participate in Automatic Graphics Switching should also declare this in its Info.plist by setting the NSSupportsAutomaticGraphicsSwitching key to true.
    +

    +X11 specific window hints

    +

    GLFW_X11_CLASS_NAME and GLFW_X11_INSTANCE_NAME specifies the desired ASCII encoded class and instance parts of the ICCCM WM_CLASS window property. These are set with glfwWindowHintString.

    +

    +Supported and default values

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Window hint Default value Supported values
    GLFW_RESIZABLE GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_VISIBLE GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_DECORATED GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_FOCUSED GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_AUTO_ICONIFY GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_FLOATING GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_MAXIMIZED GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_CENTER_CURSOR GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_TRANSPARENT_FRAMEBUFFER GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_FOCUS_ON_SHOW GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_SCALE_TO_MONITOR GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_RED_BITS 8 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_GREEN_BITS 8 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_BLUE_BITS 8 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_ALPHA_BITS 8 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_DEPTH_BITS 24 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_STENCIL_BITS 8 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_ACCUM_RED_BITS 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_ACCUM_GREEN_BITS 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_ACCUM_BLUE_BITS 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_ACCUM_ALPHA_BITS 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_AUX_BUFFERS 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_SAMPLES 0 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_REFRESH_RATE GLFW_DONT_CARE 0 to INT_MAX or GLFW_DONT_CARE
    GLFW_STEREO GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_SRGB_CAPABLE GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_DOUBLEBUFFER GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_CLIENT_API GLFW_OPENGL_API GLFW_OPENGL_API, GLFW_OPENGL_ES_API or GLFW_NO_API
    GLFW_CONTEXT_CREATION_API GLFW_NATIVE_CONTEXT_API GLFW_NATIVE_CONTEXT_API, GLFW_EGL_CONTEXT_API or GLFW_OSMESA_CONTEXT_API
    GLFW_CONTEXT_VERSION_MAJOR 1 Any valid major version number of the chosen client API
    GLFW_CONTEXT_VERSION_MINOR 0 Any valid minor version number of the chosen client API
    GLFW_CONTEXT_ROBUSTNESS GLFW_NO_ROBUSTNESS GLFW_NO_ROBUSTNESS, GLFW_NO_RESET_NOTIFICATION or GLFW_LOSE_CONTEXT_ON_RESET
    GLFW_CONTEXT_RELEASE_BEHAVIOR GLFW_ANY_RELEASE_BEHAVIOR GLFW_ANY_RELEASE_BEHAVIOR, GLFW_RELEASE_BEHAVIOR_FLUSH or GLFW_RELEASE_BEHAVIOR_NONE
    GLFW_OPENGL_FORWARD_COMPAT GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_OPENGL_DEBUG_CONTEXT GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_OPENGL_PROFILE GLFW_OPENGL_ANY_PROFILE GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_COMPAT_PROFILE or GLFW_OPENGL_CORE_PROFILE
    GLFW_COCOA_RETINA_FRAMEBUFFER GLFW_TRUE GLFW_TRUE or GLFW_FALSE
    GLFW_COCOA_FRAME_NAME "" A UTF-8 encoded frame autosave name
    GLFW_COCOA_GRAPHICS_SWITCHING GLFW_FALSE GLFW_TRUE or GLFW_FALSE
    GLFW_X11_CLASS_NAME "" An ASCII encoded WM_CLASS class name
    GLFW_X11_INSTANCE_NAME "" An ASCII encoded WM_CLASS instance name
    +

    +Window event processing

    +

    See Event processing.

    +

    +Window properties and events

    +

    +User pointer

    +

    Each window has a user pointer that can be set with glfwSetWindowUserPointer and queried with glfwGetWindowUserPointer. This can be used for any purpose you need and will not be modified by GLFW throughout the life-time of the window.

    +

    The initial value of the pointer is NULL.

    +

    +Window closing and close flag

    +

    When the user attempts to close the window, for example by clicking the close widget or using a key chord like Alt+F4, the close flag of the window is set. The window is however not actually destroyed and, unless you watch for this state change, nothing further happens.

    +

    The current state of the close flag is returned by glfwWindowShouldClose and can be set or cleared directly with glfwSetWindowShouldClose. A common pattern is to use the close flag as a main loop condition.

    +
    while (!glfwWindowShouldClose(window))
    +
    {
    +
    render(window);
    +
    +
    glfwSwapBuffers(window);
    + +
    }
    +
    void glfwSwapBuffers(GLFWwindow *window)
    Swaps the front and back buffers of the specified window.
    +
    int glfwWindowShouldClose(GLFWwindow *window)
    Checks the close flag of the specified window.
    +
    void glfwPollEvents(void)
    Processes all pending events.
    +

    If you wish to be notified when the user attempts to close a window, set a close callback.

    +
    glfwSetWindowCloseCallback(window, window_close_callback);
    +
    GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow *window, GLFWwindowclosefun callback)
    Sets the close callback for the specified window.
    +

    The callback function is called directly after the close flag has been set. It can be used for example to filter close requests and clear the close flag again unless certain conditions are met.

    +
    void window_close_callback(GLFWwindow* window)
    +
    {
    +
    if (!time_to_close)
    + +
    }
    +
    #define GLFW_FALSE
    Zero.
    Definition: glfw3.h:318
    +
    void glfwSetWindowShouldClose(GLFWwindow *window, int value)
    Sets the close flag of the specified window.
    +

    +Window size

    +

    The size of a window can be changed with glfwSetWindowSize. For windowed mode windows, this sets the size, in screen coordinates of the content area or content area of the window. The window system may impose limits on window size.

    +
    glfwSetWindowSize(window, 640, 480);
    +
    void glfwSetWindowSize(GLFWwindow *window, int width, int height)
    Sets the size of the content area of the specified window.
    +

    For full screen windows, the specified size becomes the new resolution of the window's desired video mode. The video mode most closely matching the new desired video mode is set immediately. The window is resized to fit the resolution of the set video mode.

    +

    If you wish to be notified when a window is resized, whether by the user, the system or your own code, set a size callback.

    +
    glfwSetWindowSizeCallback(window, window_size_callback);
    +
    GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow *window, GLFWwindowsizefun callback)
    Sets the size callback for the specified window.
    +

    The callback function receives the new size, in screen coordinates, of the content area of the window when the window is resized.

    +
    void window_size_callback(GLFWwindow* window, int width, int height)
    +
    {
    +
    }
    +

    There is also glfwGetWindowSize for directly retrieving the current size of a window.

    +
    int width, height;
    +
    glfwGetWindowSize(window, &width, &height);
    +
    void glfwGetWindowSize(GLFWwindow *window, int *width, int *height)
    Retrieves the size of the content area of the specified window.
    +
    Note
    Do not pass the window size to glViewport or other pixel-based OpenGL calls. The window size is in screen coordinates, not pixels. Use the framebuffer size, which is in pixels, for pixel-based calls.
    +

    The above functions work with the size of the content area, but decorated windows typically have title bars and window frames around this rectangle. You can retrieve the extents of these with glfwGetWindowFrameSize.

    +
    int left, top, right, bottom;
    +
    glfwGetWindowFrameSize(window, &left, &top, &right, &bottom);
    +
    void glfwGetWindowFrameSize(GLFWwindow *window, int *left, int *top, int *right, int *bottom)
    Retrieves the size of the frame of the window.
    +

    The returned values are the distances, in screen coordinates, from the edges of the content area to the corresponding edges of the full window. As they are distances and not coordinates, they are always zero or positive.

    +

    +Framebuffer size

    +

    While the size of a window is measured in screen coordinates, OpenGL works with pixels. The size you pass into glViewport, for example, should be in pixels. On some machines screen coordinates and pixels are the same, but on others they will not be. There is a second set of functions to retrieve the size, in pixels, of the framebuffer of a window.

    +

    If you wish to be notified when the framebuffer of a window is resized, whether by the user or the system, set a size callback.

    +
    glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
    +
    GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow *window, GLFWframebuffersizefun callback)
    Sets the framebuffer resize callback for the specified window.
    +

    The callback function receives the new size of the framebuffer when it is resized, which can for example be used to update the OpenGL viewport.

    +
    void framebuffer_size_callback(GLFWwindow* window, int width, int height)
    +
    {
    +
    glViewport(0, 0, width, height);
    +
    }
    +

    There is also glfwGetFramebufferSize for directly retrieving the current size of the framebuffer of a window.

    +
    int width, height;
    +
    glfwGetFramebufferSize(window, &width, &height);
    +
    glViewport(0, 0, width, height);
    +
    void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)
    Retrieves the size of the framebuffer of the specified window.
    +

    The size of a framebuffer may change independently of the size of a window, for example if the window is dragged between a regular monitor and a high-DPI one.

    +

    +Window content scale

    +

    The content scale for a window can be retrieved with glfwGetWindowContentScale.

    +
    float xscale, yscale;
    +
    glfwGetWindowContentScale(window, &xscale, &yscale);
    +
    void glfwGetWindowContentScale(GLFWwindow *window, float *xscale, float *yscale)
    Retrieves the content scale for the specified window.
    +

    The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.

    +

    On systems where each monitors can have its own content scale, the window content scale will depend on which monitor the system considers the window to be on.

    +

    If you wish to be notified when the content scale of a window changes, whether because of a system setting change or because it was moved to a monitor with a different scale, set a content scale callback.

    +
    glfwSetWindowContentScaleCallback(window, window_content_scale_callback);
    +
    GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow *window, GLFWwindowcontentscalefun callback)
    Sets the window content scale callback for the specified window.
    +

    The callback function receives the new content scale of the window.

    +
    void window_content_scale_callback(GLFWwindow* window, float xscale, float yscale)
    +
    {
    +
    set_interface_scale(xscale, yscale);
    +
    }
    +

    On platforms where pixels and screen coordinates always map 1:1, the window will need to be resized to appear the same size when it is moved to a monitor with a different content scale. To have this done automatically both when the window is created and when its content scale later changes, set the GLFW_SCALE_TO_MONITOR window hint.

    +

    +Window size limits

    +

    The minimum and maximum size of the content area of a windowed mode window can be enforced with glfwSetWindowSizeLimits. The user may resize the window to any size and aspect ratio within the specified limits, unless the aspect ratio is also set.

    +
    glfwSetWindowSizeLimits(window, 200, 200, 400, 400);
    +
    void glfwSetWindowSizeLimits(GLFWwindow *window, int minwidth, int minheight, int maxwidth, int maxheight)
    Sets the size limits of the specified window.
    +

    To specify only a minimum size or only a maximum one, set the other pair to GLFW_DONT_CARE.

    +
    +
    #define GLFW_DONT_CARE
    Definition: glfw3.h:1125
    +

    To disable size limits for a window, set them all to GLFW_DONT_CARE.

    +

    The aspect ratio of the content area of a windowed mode window can be enforced with glfwSetWindowAspectRatio. The user may resize the window freely unless size limits are also set, but the size will be constrained to maintain the aspect ratio.

    +
    glfwSetWindowAspectRatio(window, 16, 9);
    +
    void glfwSetWindowAspectRatio(GLFWwindow *window, int numer, int denom)
    Sets the aspect ratio of the specified window.
    +

    The aspect ratio is specified as a numerator and denominator, corresponding to the width and height, respectively. If you want a window to maintain its current aspect ratio, use its current size as the ratio.

    +
    int width, height;
    +
    glfwGetWindowSize(window, &width, &height);
    +
    glfwSetWindowAspectRatio(window, width, height);
    +

    To disable the aspect ratio limit for a window, set both terms to GLFW_DONT_CARE.

    +

    You can have both size limits and aspect ratio set for a window, but the results are undefined if they conflict.

    +

    +Window position

    +

    The position of a windowed-mode window can be changed with glfwSetWindowPos. This moves the window so that the upper-left corner of its content area has the specified screen coordinates. The window system may put limitations on window placement.

    +
    glfwSetWindowPos(window, 100, 100);
    +
    void glfwSetWindowPos(GLFWwindow *window, int xpos, int ypos)
    Sets the position of the content area of the specified window.
    +

    If you wish to be notified when a window is moved, whether by the user, the system or your own code, set a position callback.

    +
    glfwSetWindowPosCallback(window, window_pos_callback);
    +
    GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow *window, GLFWwindowposfun callback)
    Sets the position callback for the specified window.
    +

    The callback function receives the new position, in screen coordinates, of the upper-left corner of the content area when the window is moved.

    +
    void window_pos_callback(GLFWwindow* window, int xpos, int ypos)
    +
    {
    +
    }
    +

    There is also glfwGetWindowPos for directly retrieving the current position of the content area of the window.

    +
    int xpos, ypos;
    +
    glfwGetWindowPos(window, &xpos, &ypos);
    +
    void glfwGetWindowPos(GLFWwindow *window, int *xpos, int *ypos)
    Retrieves the position of the content area of the specified window.
    +

    +Window title

    +

    All GLFW windows have a title, although undecorated or full screen windows may not display it or only display it in a task bar or similar interface. You can set a UTF-8 encoded window title with glfwSetWindowTitle.

    +
    glfwSetWindowTitle(window, "My Window");
    +
    void glfwSetWindowTitle(GLFWwindow *window, const char *title)
    Sets the title of the specified window.
    +

    The specified string is copied before the function returns, so there is no need to keep it around.

    +

    As long as your source file is encoded as UTF-8, you can use any Unicode characters directly in the source.

    +
    glfwSetWindowTitle(window, "ラストエグザイル");
    +

    If you are using C++11 or C11, you can use a UTF-8 string literal.

    +
    glfwSetWindowTitle(window, u8"This is always a UTF-8 string");
    +

    +Window icon

    +

    Decorated windows have icons on some platforms. You can set this icon by specifying a list of candidate images with glfwSetWindowIcon.

    +
    GLFWimage images[2];
    +
    images[0] = load_icon("my_icon.png");
    +
    images[1] = load_icon("my_icon_small.png");
    +
    +
    glfwSetWindowIcon(window, 2, images);
    +
    void glfwSetWindowIcon(GLFWwindow *window, int count, const GLFWimage *images)
    Sets the icon for the specified window.
    +
    Image data.
    Definition: glfw3.h:1718
    +

    The image data is 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. The pixels are arranged canonically as sequential rows, starting from the top-left corner.

    +

    To revert to the default window icon, pass in an empty image array.

    +
    glfwSetWindowIcon(window, 0, NULL);
    +

    +Window monitor

    +

    Full screen windows are associated with a specific monitor. You can get the handle for this monitor with glfwGetWindowMonitor.

    +
    GLFWmonitor* monitor = glfwGetWindowMonitor(window);
    +
    struct GLFWmonitor GLFWmonitor
    Opaque monitor object.
    Definition: glfw3.h:1170
    +
    GLFWmonitor * glfwGetWindowMonitor(GLFWwindow *window)
    Returns the monitor that the window uses for full screen mode.
    +

    This monitor handle is one of those returned by glfwGetMonitors.

    +

    For windowed mode windows, this function returns NULL. This is how to tell full screen windows from windowed mode windows.

    +

    You can move windows between monitors or between full screen and windowed mode with glfwSetWindowMonitor. When making a window full screen on the same or on a different monitor, specify the desired monitor, resolution and refresh rate. The position arguments are ignored.

    +
    const GLFWvidmode* mode = glfwGetVideoMode(monitor);
    +
    +
    glfwSetWindowMonitor(window, monitor, 0, 0, mode->width, mode->height, mode->refreshRate);
    +

    When making the window windowed, specify the desired position and size. The refresh rate argument is ignored.

    +
    glfwSetWindowMonitor(window, NULL, xpos, ypos, width, height, 0);
    +

    This restores any previous window settings such as whether it is decorated, floating, resizable, has size or aspect ratio limits, etc.. To restore a window that was originally windowed to its original size and position, save these before making it full screen and then pass them in as above.

    +

    +Window iconification

    +

    Windows can be iconified (i.e. minimized) with glfwIconifyWindow.

    +
    +
    void glfwIconifyWindow(GLFWwindow *window)
    Iconifies the specified window.
    +

    When a full screen window is iconified, the original video mode of its monitor is restored until the user or application restores the window.

    +

    Iconified windows can be restored with glfwRestoreWindow. This function also restores windows from maximization.

    +
    +
    void glfwRestoreWindow(GLFWwindow *window)
    Restores the specified window.
    +

    When a full screen window is restored, the desired video mode is restored to its monitor as well.

    +

    If you wish to be notified when a window is iconified or restored, whether by the user, system or your own code, set an iconify callback.

    +
    glfwSetWindowIconifyCallback(window, window_iconify_callback);
    +
    GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow *window, GLFWwindowiconifyfun callback)
    Sets the iconify callback for the specified window.
    +

    The callback function receives changes in the iconification state of the window.

    +
    void window_iconify_callback(GLFWwindow* window, int iconified)
    +
    {
    +
    if (iconified)
    +
    {
    +
    // The window was iconified
    +
    }
    +
    else
    +
    {
    +
    // The window was restored
    +
    }
    +
    }
    +

    You can also get the current iconification state with glfwGetWindowAttrib.

    +
    int iconified = glfwGetWindowAttrib(window, GLFW_ICONIFIED);
    +
    #define GLFW_ICONIFIED
    Window iconification window attribute.
    Definition: glfw3.h:799
    +
    int glfwGetWindowAttrib(GLFWwindow *window, int attrib)
    Returns an attribute of the specified window.
    +

    +Window maximization

    +

    Windows can be maximized (i.e. zoomed) with glfwMaximizeWindow.

    +
    +
    void glfwMaximizeWindow(GLFWwindow *window)
    Maximizes the specified window.
    +

    Full screen windows cannot be maximized and passing a full screen window to this function does nothing.

    +

    Maximized windows can be restored with glfwRestoreWindow. This function also restores windows from iconification.

    +

    If you wish to be notified when a window is maximized or restored, whether by the user, system or your own code, set a maximize callback.

    +
    glfwSetWindowMaximizeCallback(window, window_maximize_callback);
    +
    GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow *window, GLFWwindowmaximizefun callback)
    Sets the maximize callback for the specified window.
    +

    The callback function receives changes in the maximization state of the window.

    +
    void window_maximize_callback(GLFWwindow* window, int maximized)
    +
    {
    +
    if (maximized)
    +
    {
    +
    // The window was maximized
    +
    }
    +
    else
    +
    {
    +
    // The window was restored
    +
    }
    +
    }
    +

    You can also get the current maximization state with glfwGetWindowAttrib.

    +
    int maximized = glfwGetWindowAttrib(window, GLFW_MAXIMIZED);
    +
    #define GLFW_MAXIMIZED
    Window maximization window hint and attribute.
    Definition: glfw3.h:835
    +

    By default, newly created windows are not maximized. You can change this behavior by setting the GLFW_MAXIMIZED window hint before creating the window.

    +
    +
    #define GLFW_TRUE
    One.
    Definition: glfw3.h:309
    +

    +Window visibility

    +

    Windowed mode windows can be hidden with glfwHideWindow.

    +
    +
    void glfwHideWindow(GLFWwindow *window)
    Hides the specified window.
    +

    This makes the window completely invisible to the user, including removing it from the task bar, dock or window list. Full screen windows cannot be hidden and calling glfwHideWindow on a full screen window does nothing.

    +

    Hidden windows can be shown with glfwShowWindow.

    +
    +
    void glfwShowWindow(GLFWwindow *window)
    Makes the specified window visible.
    +

    By default, this function will also set the input focus to that window. Set the GLFW_FOCUS_ON_SHOW window hint to change this behavior for all newly created windows, or change the behavior for an existing window with glfwSetWindowAttrib.

    +

    You can also get the current visibility state with glfwGetWindowAttrib.

    +
    int visible = glfwGetWindowAttrib(window, GLFW_VISIBLE);
    +
    #define GLFW_VISIBLE
    Window visibility window hint and attribute.
    Definition: glfw3.h:811
    +

    By default, newly created windows are visible. You can change this behavior by setting the GLFW_VISIBLE window hint before creating the window.

    +

    Windows created hidden are completely invisible to the user until shown. This can be useful if you need to set up your window further before showing it, for example moving it to a specific location.

    +

    +Window input focus

    +

    Windows can be given input focus and brought to the front with glfwFocusWindow.

    +
    +
    void glfwFocusWindow(GLFWwindow *window)
    Brings the specified window to front and sets input focus.
    +

    Keep in mind that it can be very disruptive to the user when a window is forced to the top. For a less disruptive way of getting the user's attention, see attention requests.

    +

    If you wish to be notified when a window gains or loses input focus, whether by the user, system or your own code, set a focus callback.

    +
    glfwSetWindowFocusCallback(window, window_focus_callback);
    +
    GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow *window, GLFWwindowfocusfun callback)
    Sets the focus callback for the specified window.
    +

    The callback function receives changes in the input focus state of the window.

    +
    void window_focus_callback(GLFWwindow* window, int focused)
    +
    {
    +
    if (focused)
    +
    {
    +
    // The window gained input focus
    +
    }
    +
    else
    +
    {
    +
    // The window lost input focus
    +
    }
    +
    }
    +

    You can also get the current input focus state with glfwGetWindowAttrib.

    +
    int focused = glfwGetWindowAttrib(window, GLFW_FOCUSED);
    +
    #define GLFW_FOCUSED
    Input focus window hint and attribute.
    Definition: glfw3.h:794
    +

    By default, newly created windows are given input focus. You can change this behavior by setting the GLFW_FOCUSED window hint before creating the window.

    +

    +Window attention request

    +

    If you wish to notify the user of an event without interrupting, you can request attention with glfwRequestWindowAttention.

    +
    +
    void glfwRequestWindowAttention(GLFWwindow *window)
    Requests user attention to the specified window.
    +

    The system will highlight the specified window, or on platforms where this is not supported, the application as a whole. Once the user has given it attention, the system will automatically end the request.

    +

    +Window damage and refresh

    +

    If you wish to be notified when the contents of a window is damaged and needs to be refreshed, set a window refresh callback.

    +
    glfwSetWindowRefreshCallback(m_handle, window_refresh_callback);
    +
    GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow *window, GLFWwindowrefreshfun callback)
    Sets the refresh callback for the specified window.
    +

    The callback function is called when the contents of the window needs to be refreshed.

    +
    void window_refresh_callback(GLFWwindow* window)
    +
    {
    +
    draw_editor_ui(window);
    +
    glfwSwapBuffers(window);
    +
    }
    +
    Note
    On compositing window systems such as Aero, Compiz or Aqua, where the window contents are saved off-screen, this callback might only be called when the window or framebuffer is resized.
    +

    +Window transparency

    +

    GLFW supports two kinds of transparency for windows; framebuffer transparency and whole window transparency. A single window may not use both methods. The results of doing this are undefined.

    +

    Both methods require the platform to support it and not every version of every platform GLFW supports does this, so there are mechanisms to check whether the window really is transparent.

    +

    Window framebuffers can be made transparent on a per-pixel per-frame basis with the GLFW_TRANSPARENT_FRAMEBUFFER window hint.

    +
    +
    #define GLFW_TRANSPARENT_FRAMEBUFFER
    Window framebuffer transparency hint and attribute.
    Definition: glfw3.h:847
    +

    If supported by the system, the window content area will be composited with the background using the framebuffer per-pixel alpha channel. This requires desktop compositing to be enabled on the system. It does not affect window decorations.

    +

    You can check whether the window framebuffer was successfully made transparent with the GLFW_TRANSPARENT_FRAMEBUFFER window attribute.

    +
    +
    {
    +
    // window framebuffer is currently transparent
    +
    }
    +

    GLFW comes with an example that enabled framebuffer transparency called gears.

    +

    The opacity of the whole window, including any decorations, can be set with glfwSetWindowOpacity.

    +
    glfwSetWindowOpacity(window, 0.5f);
    +
    void glfwSetWindowOpacity(GLFWwindow *window, float opacity)
    Sets the opacity of the whole window.
    +

    The opacity (or alpha) value is a positive finite number between zero and one, where 0 (zero) is fully transparent and 1 (one) is fully opaque. The initial opacity value for newly created windows is 1.

    +

    The current opacity of a window can be queried with glfwGetWindowOpacity.

    +
    float opacity = glfwGetWindowOpacity(window);
    +
    float glfwGetWindowOpacity(GLFWwindow *window)
    Returns the opacity of the whole window.
    +

    If the system does not support whole window transparency, this function always returns one.

    +

    GLFW comes with a test program that lets you control whole window transparency at run-time called opacity.

    +

    +Window attributes

    +

    Windows have a number of attributes that can be returned using glfwGetWindowAttrib. Some reflect state that may change as a result of user interaction, (e.g. whether it has input focus), while others reflect inherent properties of the window (e.g. what kind of border it has). Some are related to the window and others to its OpenGL or OpenGL ES context.

    +
    +
    {
    +
    // window has input focus
    +
    }
    +

    The GLFW_DECORATED, GLFW_RESIZABLE, GLFW_FLOATING, GLFW_AUTO_ICONIFY and GLFW_FOCUS_ON_SHOW window attributes can be changed with glfwSetWindowAttrib.

    +
    +
    void glfwSetWindowAttrib(GLFWwindow *window, int attrib, int value)
    Sets an attribute of the specified window.
    +
    #define GLFW_RESIZABLE
    Window resize-ability window hint and attribute.
    Definition: glfw3.h:805
    +

    +Window related attributes

    +

    GLFW_FOCUSED indicates whether the specified window has input focus. See Window input focus for details.

    +

    GLFW_ICONIFIED indicates whether the specified window is iconified. See Window iconification for details.

    +

    GLFW_MAXIMIZED indicates whether the specified window is maximized. See Window maximization for details.

    +

    GLFW_HOVERED indicates whether the cursor is currently directly over the content area of the window, with no other windows between. See Cursor enter/leave events for details.

    +

    GLFW_VISIBLE indicates whether the specified window is visible. See Window visibility for details.

    +

    GLFW_RESIZABLE indicates whether the specified window is resizable by the user. This can be set before creation with the GLFW_RESIZABLE window hint or after with glfwSetWindowAttrib.

    +

    GLFW_DECORATED indicates whether the specified window has decorations such as a border, a close widget, etc. This can be set before creation with the GLFW_DECORATED window hint or after with glfwSetWindowAttrib.

    +

    GLFW_AUTO_ICONIFY indicates whether the specified full screen window is iconified on focus loss, a close widget, etc. This can be set before creation with the GLFW_AUTO_ICONIFY window hint or after with glfwSetWindowAttrib.

    +

    GLFW_FLOATING indicates whether the specified window is floating, also called topmost or always-on-top. This can be set before creation with the GLFW_FLOATING window hint or after with glfwSetWindowAttrib.

    +

    GLFW_TRANSPARENT_FRAMEBUFFER indicates whether the specified window has a transparent framebuffer, i.e. the window contents is composited with the background using the window framebuffer alpha channel. See Window transparency for details.

    +

    GLFW_FOCUS_ON_SHOW specifies whether the window will be given input focus when glfwShowWindow is called. This can be set before creation with the GLFW_FOCUS_ON_SHOW window hint or after with glfwSetWindowAttrib.

    +

    +Context related attributes

    +

    GLFW_CLIENT_API indicates the client API provided by the window's context; either GLFW_OPENGL_API, GLFW_OPENGL_ES_API or GLFW_NO_API.

    +

    GLFW_CONTEXT_CREATION_API indicates the context creation API used to create the window's context; either GLFW_NATIVE_CONTEXT_API, GLFW_EGL_CONTEXT_API or GLFW_OSMESA_CONTEXT_API.

    +

    GLFW_CONTEXT_VERSION_MAJOR, GLFW_CONTEXT_VERSION_MINOR and GLFW_CONTEXT_REVISION indicate the client API version of the window's context.

    +
    Note
    Do not confuse these attributes with GLFW_VERSION_MAJOR, GLFW_VERSION_MINOR and GLFW_VERSION_REVISION which provide the API version of the GLFW header.
    +

    GLFW_OPENGL_FORWARD_COMPAT is GLFW_TRUE if the window's context is an OpenGL forward-compatible one, or GLFW_FALSE otherwise.

    +

    GLFW_OPENGL_DEBUG_CONTEXT is GLFW_TRUE if the window's context is in debug mode, or GLFW_FALSE otherwise.

    +

    GLFW_OPENGL_PROFILE indicates the OpenGL profile used by the context. This is GLFW_OPENGL_CORE_PROFILE or GLFW_OPENGL_COMPAT_PROFILE if the context uses a known profile, or GLFW_OPENGL_ANY_PROFILE if the OpenGL profile is unknown or the context is an OpenGL ES context. Note that the returned profile may not match the profile bits of the context flags, as GLFW will try other means of detecting the profile when no bits are set.

    +

    GLFW_CONTEXT_RELEASE_BEHAVIOR indicates the release used by the context. Possible values are one of GLFW_ANY_RELEASE_BEHAVIOR, GLFW_RELEASE_BEHAVIOR_FLUSH or GLFW_RELEASE_BEHAVIOR_NONE. If the behavior is GLFW_ANY_RELEASE_BEHAVIOR, the default behavior of the context creation API will be used. If the behavior is GLFW_RELEASE_BEHAVIOR_FLUSH, the pipeline will be flushed whenever the context is released from being the current one. If the behavior is GLFW_RELEASE_BEHAVIOR_NONE, the pipeline will not be flushed on release.

    +

    GLFW_CONTEXT_NO_ERROR indicates whether errors are generated by the context. Possible values are GLFW_TRUE and GLFW_FALSE. If enabled, situations that would have generated errors instead cause undefined behavior.

    +

    GLFW_CONTEXT_ROBUSTNESS indicates the robustness strategy used by the context. This is GLFW_LOSE_CONTEXT_ON_RESET or GLFW_NO_RESET_NOTIFICATION if the window's context supports robustness, or GLFW_NO_ROBUSTNESS otherwise.

    +

    +Framebuffer related attributes

    +

    GLFW does not expose attributes of the default framebuffer (i.e. the framebuffer attached to the window) as these can be queried directly with either OpenGL, OpenGL ES or Vulkan.

    +

    If you are using version 3.0 or later of OpenGL or OpenGL ES, the glGetFramebufferAttachmentParameteriv function can be used to retrieve the number of bits for the red, green, blue, alpha, depth and stencil buffer channels. Otherwise, the glGetIntegerv function can be used.

    +

    The number of MSAA samples are always retrieved with glGetIntegerv. For contexts supporting framebuffer objects, the number of samples of the currently bound framebuffer is returned.

    + + + + + + + + + + + + + + + + + +
    Attribute glGetIntegerv glGetFramebufferAttachmentParameteriv
    Red bits GL_RED_BITS GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE
    Green bits GL_GREEN_BITS GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE
    Blue bits GL_BLUE_BITS GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE
    Alpha bits GL_ALPHA_BITS GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE
    Depth bits GL_DEPTH_BITS GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE
    Stencil bits GL_STENCIL_BITS GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE
    MSAA samples GL_SAMPLES Not provided by this function
    +

    When calling glGetFramebufferAttachmentParameteriv, the red, green, blue and alpha sizes are queried from the GL_BACK_LEFT, while the depth and stencil sizes are queried from the GL_DEPTH and GL_STENCIL attachments, respectively.

    +

    +Buffer swapping

    +

    GLFW windows are by default double buffered. That means that you have two rendering buffers; a front buffer and a back buffer. The front buffer is the one being displayed and the back buffer the one you render to.

    +

    When the entire frame has been rendered, it is time to swap the back and the front buffers in order to display what has been rendered and begin rendering a new frame. This is done with glfwSwapBuffers.

    +
    +

    Sometimes it can be useful to select when the buffer swap will occur. With the function glfwSwapInterval it is possible to select the minimum number of monitor refreshes the driver should wait from the time glfwSwapBuffers was called before swapping the buffers:

    +
    +
    void glfwSwapInterval(int interval)
    Sets the swap interval for the current context.
    +

    If the interval is zero, the swap will take place immediately when glfwSwapBuffers is called without waiting for a refresh. Otherwise at least interval retraces will pass between each buffer swap. Using a swap interval of zero can be useful for benchmarking purposes, when it is not desirable to measure the time it takes to wait for the vertical retrace. However, a swap interval of one lets you avoid tearing.

    +

    Note that this may not work on all machines, as some drivers have user-controlled settings that override any swap interval the application requests.

    +

    A context that supports either the WGL_EXT_swap_control_tear or the GLX_EXT_swap_control_tear extension also accepts negative swap intervals, which allows the driver to swap immediately even if a frame arrives a little bit late. This trades the risk of visible tears for greater framerate stability. You can check for these extensions with glfwExtensionSupported.

    +
    +
    + + + diff --git a/external/GLFW/docs/input.dox b/external/glfw-3.3.4/docs/input.dox similarity index 85% rename from external/GLFW/docs/input.dox rename to external/glfw-3.3.4/docs/input.dox index 318d48d..45ee07f 100644 --- a/external/GLFW/docs/input.dox +++ b/external/glfw-3.3.4/docs/input.dox @@ -1,7 +1,7 @@ /*! @page input_guide Input guide - + @tableofcontents This guide introduces the input related functions of GLFW. For details on @@ -57,8 +57,7 @@ glfwWaitEvents(); It puts the thread to sleep until at least one event has been received and then processes all received events. This saves a great deal of CPU cycles and is -useful for, for example, editing tools. There must be at least one GLFW window -for this function to sleep. +useful for, for example, editing tools. If you want to wait for events but have UI elements or other tasks that need periodic updates, @ref glfwWaitEventsTimeout lets you specify a timeout. @@ -162,7 +161,7 @@ missed the key press. The recommended solution for this is to use a key callback, but there is also the `GLFW_STICKY_KEYS` input mode. @code -glfwSetInputMode(window, GLFW_STICKY_KEYS, 1); +glfwSetInputMode(window, GLFW_STICKY_KEYS, GLFW_TRUE); @endcode When sticky keys mode is enabled, the pollable state of a key will remain @@ -170,6 +169,19 @@ When sticky keys mode is enabled, the pollable state of a key will remain it has been polled, if a key release event had been processed in the meantime, the state will reset to `GLFW_RELEASE`, otherwise it will remain `GLFW_PRESS`. +@anchor GLFW_LOCK_KEY_MODS +If you wish to know what the state of the Caps Lock and Num Lock keys was when +input events were generated, set the `GLFW_LOCK_KEY_MODS` input mode. + +@code +glfwSetInputMode(window, GLFW_LOCK_KEY_MODS, GLFW_TRUE); +@endcode + +When this input mode is enabled, any callback that receives +[modifier bits](@ref mods) will have the @ref GLFW_MOD_CAPS_LOCK bit set if Caps +Lock was on when the event occurred and the @ref GLFW_MOD_NUM_LOCK bit set if +Num Lock was on. + The `GLFW_KEY_LAST` constant holds the highest value of any [named key](@ref keys). @@ -186,8 +198,7 @@ encode the code points into UTF-8 or any other encoding you prefer. Because an `unsigned int` is 32 bits long on all platforms supported by GLFW, you can treat the code point argument as native endian UTF-32. -There are two callbacks for receiving Unicode code points. If you wish to -offer regular text input, set a character callback. +If you wish to offer regular text input, set a character callback. @code glfwSetCharCallback(window, character_callback); @@ -203,23 +214,6 @@ void character_callback(GLFWwindow* window, unsigned int codepoint) } @endcode -If you also wish to receive those Unicode code points generated with modifier -key combinations that a plain text field would ignore, or want to know exactly -what modifier keys were used, set a character with modifiers callback. - -@code -glfwSetCharModsCallback(window, charmods_callback); -@endcode - -The callback function receives Unicode code points and -[modifier bits](@ref mods). - -@code -void charmods_callback(GLFWwindow* window, unsigned int codepoint, int mods) -{ -} -@endcode - @subsection input_key_name Key names @@ -239,7 +233,7 @@ arguments can always be passed unmodified to this function. @section input_mouse Mouse input -Mouse input comes in many forms, including cursor motion, button presses and +Mouse input comes in many forms, including mouse motion, button presses and scrolling offsets. The cursor appearance can also be changed, either to a custom image or a standard cursor shape from the system theme. @@ -250,11 +244,11 @@ If you wish to be notified when the cursor moves over the window, set a cursor position callback. @code -glfwSetCursorPosCallback(window, cursor_pos_callback); +glfwSetCursorPosCallback(window, cursor_position_callback); @endcode The callback functions receives the cursor position, measured in screen -coordinates but relative to the top-left corner of the window client area. On +coordinates but relative to the top-left corner of the window content area. On platforms that provide it, the full sub-pixel cursor position is passed on. @code @@ -314,6 +308,31 @@ glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); @endcode +@anchor GLFW_RAW_MOUSE_MOTION +@subsection raw_mouse_motion Raw mouse motion + +When the cursor is disabled, raw (unscaled and unaccelerated) mouse motion can +be enabled if available. + +Raw mouse motion is closer to the actual motion of the mouse across a surface. +It is not affected by the scaling and acceleration applied to the motion of the +desktop cursor. That processing is suitable for a cursor while raw motion is +better for controlling for example a 3D camera. Because of this, raw mouse +motion is only provided when the cursor is disabled. + +Call @ref glfwRawMouseMotionSupported to check if the current machine provides +raw motion and set the `GLFW_RAW_MOUSE_MOTION` input mode to enable it. It is +disabled by default. + +@code +if (glfwRawMouseMotionSupported()) + glfwSetInputMode(window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); +@endcode + +If supported, raw mouse motion can be enabled or disabled per-window and at any +time but it will only be provided when the cursor is disabled. + + @subsection cursor_object Cursor objects GLFW supports creating both custom and system theme cursor images, encapsulated @@ -371,8 +390,7 @@ glfwDestroyCursor(cursor); Cursor destruction always succeeds. If the cursor is current for any window, that window will revert to the default cursor. This does not affect the cursor -mode. All remaining cursors remaining are destroyed when @ref glfwTerminate is -called. +mode. All remaining cursors are destroyed when @ref glfwTerminate is called. @subsubsection cursor_set Cursor setting @@ -384,7 +402,7 @@ glfwSetCursor(window, cursor); @endcode Once set, the cursor image will be used as long as the system cursor is over the -client area of the window and the [cursor mode](@ref cursor_mode) is set +content area of the window and the [cursor mode](@ref cursor_mode) is set to `GLFW_CURSOR_NORMAL`. A single cursor may be set for any number of windows. @@ -401,7 +419,7 @@ default cursor. This does not affect the cursor mode. @subsection cursor_enter Cursor enter/leave events -If you wish to be notified when the cursor enters or leaves the client area of +If you wish to be notified when the cursor enters or leaves the content area of a window, set a cursor enter/leave callback. @code @@ -415,15 +433,25 @@ void cursor_enter_callback(GLFWwindow* window, int entered) { if (entered) { - // The cursor entered the client area of the window + // The cursor entered the content area of the window } else { - // The cursor left the client area of the window + // The cursor left the content area of the window } } @endcode +You can query whether the cursor is currently inside the content area of the +window with the [GLFW_HOVERED](@ref GLFW_HOVERED_attrib) window attribute. + +@code +if (glfwGetWindowAttrib(window, GLFW_HOVERED)) +{ + highlight_interface(); +} +@endcode + @subsection input_mouse_button Mouse button input @@ -471,7 +499,7 @@ mouse button callback, but there is also the `GLFW_STICKY_MOUSE_BUTTONS` input mode. @code -glfwSetInputMode(window, GLFW_STICKY_MOUSE_BUTTONS, 1); +glfwSetInputMode(window, GLFW_STICKY_MOUSE_BUTTONS, GLFW_TRUE); @endcode When sticky mouse buttons mode is enabled, the pollable state of a mouse button @@ -516,7 +544,10 @@ present with @ref glfwJoystickPresent. int present = glfwJoystickPresent(GLFW_JOYSTICK_1); @endcode -When GLFW is initialized, detected joysticks are added to to the beginning of +Each joystick has zero or more axes, zero or more buttons, zero or more hats, +a human-readable name, a user pointer and an SDL compatible GUID. + +When GLFW is initialized, detected joysticks are added to the beginning of the array. Once a joystick is detected, it keeps its assigned ID until it is disconnected or the library is terminated, so as joysticks are connected and disconnected, there may appear gaps in the IDs. @@ -576,7 +607,7 @@ const unsigned char* hats = glfwGetJoystickHats(GLFW_JOYSTICK_7, &count); Each element in the returned array is one of the following: Name | Value ---------------------- | -------------------------------- +---- | ----- `GLFW_HAT_CENTERED` | 0 `GLFW_HAT_UP` | 1 `GLFW_HAT_RIGHT` | 2 @@ -607,17 +638,28 @@ See the reference documentation for @ref glfwGetJoystickButtons for details. The human-readable, UTF-8 encoded name of a joystick is returned by @ref glfwGetJoystickName. See the reference documentation for the lifetime of the -returned string. +returned string. @code const char* name = glfwGetJoystickName(GLFW_JOYSTICK_4); @endcode Joystick names are not guaranteed to be unique. Two joysticks of the same model -and make may have the same name. Only the [joystick token](@ref joysticks) is +and make may have the same name. Only the [joystick ID](@ref joysticks) is guaranteed to be unique, and only until that joystick is disconnected. +@subsection joystick_userptr Joystick user pointer + +Each joystick has a user pointer that can be set with @ref +glfwSetJoystickUserPointer and queried with @ref glfwGetJoystickUserPointer. +This can be used for any purpose you need and will not be modified by GLFW. The +value will be kept until the joystick is disconnected or until the library is +terminated. + +The initial value of the pointer is `NULL`. + + @subsection joystick_event Joystick configuration changes If you wish to be notified when a joystick is connected or disconnected, set @@ -650,6 +692,10 @@ functions. Joystick disconnection may also be detected and the callback called by joystick functions. The function will then return whatever it returns for a disconnected joystick. +Only @ref glfwGetJoystickName and @ref glfwGetJoystickUserPointer will return +useful values for a disconnected joystick and only before the monitor callback +returns. + @subsection gamepad Gamepad input @@ -740,7 +786,7 @@ time of release. Newer ones can be added at runtime with @ref glfwUpdateGamepadMappings. @code -const char* mappings = load_file_contents("gamecontrollerdb.txt"); +const char* mappings = load_file_contents("game/data/gamecontrollerdb.txt"); glfwUpdateGamepadMappings(mappings); @endcode @@ -781,6 +827,12 @@ a hat bitmask or empty. Joystick buttons are specified as `bN`, for example example `h0.8` for left on the first hat. More than one bit may be set in the mask. +Before an axis there may be a `+` or `-` range modifier, for example `+a3` for +the positive half of the fourth axis. This restricts input to only the positive +or negative halves of the joystick axis. After an axis or half-axis there may +be the `~` inversion modifier, for example `a2~` or `-a7~`. This negates the +values of the gamepad axis. + The hat bit mask match the [hat states](@ref hat_state) in the joystick functions. @@ -799,8 +851,9 @@ rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4, righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8, @endcode -@note GLFW does not yet support the range and inversion modifiers `+`, `-` and -`~` that were recently added to SDL. +@note GLFW does not yet support the output range and modifiers `+` and `-` that +were recently added to SDL. The input modifiers `+`, `-` and `~` are supported +and described above. @section time Time input @@ -811,31 +864,32 @@ GLFW provides high-resolution time input, in seconds, with @ref glfwGetTime. double seconds = glfwGetTime(); @endcode -It returns the number of seconds since the timer was started when the library -was initialized with @ref glfwInit. The platform-specific time sources used -usually have micro- or nanosecond resolution. +It returns the number of seconds since the library was initialized with @ref +glfwInit. The platform-specific time sources used typically have micro- or +nanosecond resolution. -You can modify the reference time with @ref glfwSetTime. +You can modify the base time with @ref glfwSetTime. @code glfwSetTime(4.0); @endcode -This sets the timer to the specified time, in seconds. +This sets the time to the specified time, in seconds, and it continues to count +from there. -You can also access the raw timer value, measured in 1 / frequency -seconds, with @ref glfwGetTimerValue. +You can also access the raw timer used to implement the functions above, +with @ref glfwGetTimerValue. @code uint64_t value = glfwGetTimerValue(); @endcode -The frequency of the raw timer varies depending on what time sources are -available on the machine. You can query its frequency, in Hz, with @ref -glfwGetTimerFrequency. +This value is in 1 / frequency seconds. The frequency of the raw +timer varies depending on the operating system and hardware. You can query the +frequency, in Hz, with @ref glfwGetTimerFrequency. @code -uint64_t freqency = glfwGetTimerFrequency(); +uint64_t frequency = glfwGetTimerFrequency(); @endcode @@ -846,7 +900,7 @@ converted to one, you can retrieve it with @ref glfwGetClipboardString. See the reference documentation for the lifetime of the returned string. @code -const char* text = glfwGetClipboardString(window); +const char* text = glfwGetClipboardString(NULL); if (text) { insert_text(text); @@ -860,13 +914,9 @@ The contents of the system clipboard can be set to a UTF-8 encoded string with @ref glfwSetClipboardString. @code -glfwSetClipboardString(window, "A string with words in it"); +glfwSetClipboardString(NULL, "A string with words in it"); @endcode -The clipboard functions take a window handle argument because some window -systems require a window to communicate with the system clipboard. Any valid -window may be used. - @section path_drop Path drop input diff --git a/external/GLFW/docs/internal.dox b/external/glfw-3.3.4/docs/internal.dox similarity index 89% rename from external/GLFW/docs/internal.dox rename to external/glfw-3.3.4/docs/internal.dox index 72a0954..685c6d1 100644 --- a/external/GLFW/docs/internal.dox +++ b/external/glfw-3.3.4/docs/internal.dox @@ -19,8 +19,7 @@ The public interface uses the OpenGL naming conventions except with GLFW and glfw instead of GL and gl. For struct members, where OpenGL sets no precedent, it use headless camel case. -Examples: @ref glfwCreateWindow, @ref GLFWwindow, @ref GLFWvidmode.redBits, -`GLFW_RED_BITS` +Examples: `glfwCreateWindow`, `GLFWwindow`, `GLFW_RED_BITS` @section internals_native Native interface @@ -34,7 +33,7 @@ The function names of the native interface are similar to those of the public interface, but embeds the name of the interface that the returned handle is from. -Examples: @ref glfwGetX11Window, @ref glfwGetWGLContext +Examples: `glfwGetX11Window`, `glfwGetWGLContext` @section internals_internal Internal interface @@ -50,7 +49,7 @@ a `_GLFWlibrary` struct named `_glfw`. The internal interface uses the same style as the public interface, except all global names have a leading underscore. -Examples: @ref _glfwIsValidContextConfig, @ref _GLFWwindow, `_glfw.currentRamp` +Examples: `_glfwIsValidContextConfig`, `_GLFWwindow`, `_glfw.monitorCount` @section internals_platform Platform interface @@ -67,7 +66,7 @@ perform platform-specific operations on some or all platforms. The are also named the same except that the glfw function prefix is replaced by _glfwPlatform. -Examples: @ref _glfwPlatformCreateWindow +Examples: `_glfwPlatformCreateWindow` The platform interface also defines structs that contain platform-specific global and per-object state. Their names mirror those of the internal @@ -79,7 +78,7 @@ These structs are incorporated as members into the internal interface structs using special macros that name them after the specific interface used. This prevents shared code from accidentally using these members. -Examples: `window.win32.handle`, `_glfw.x11.display` +Examples: `window->win32.handle`, `_glfw.x11.display` @section internals_event Event interface @@ -91,7 +90,7 @@ application, either via callbacks, via window state changes or both. The function names of the event interface use a `_glfwInput` prefix and the ObjectEvent pattern. -Examples: @ref _glfwInputWindowFocus, @ref _glfwInputCursorMotion +Examples: `_glfwInputWindowFocus`, `_glfwInputCursorPos` @section internals_static Static functions @@ -99,7 +98,7 @@ Examples: @ref _glfwInputWindowFocus, @ref _glfwInputCursorMotion Static functions may be used by any interface and have no prefixes or suffixes. These use headless camel case. -Examples: `clearScrollOffsets` +Examples: `isValidElementForJoystick` @section internals_config Configuration macros @@ -111,6 +110,6 @@ which is generated from the `glfw_config.h.in` file by CMake. Configuration macros the same style as tokens in the public interface, except with a leading underscore. -Examples: `_GLFW_USE_HYBRID_HPG` +Examples: `_GLFW_WIN32`, `_GLFW_BUILD_DLL` */ diff --git a/external/GLFW/docs/intro.dox b/external/glfw-3.3.4/docs/intro.dox similarity index 91% rename from external/GLFW/docs/intro.dox rename to external/glfw-3.3.4/docs/intro.dox index 46a445a..a72b620 100644 --- a/external/GLFW/docs/intro.dox +++ b/external/glfw-3.3.4/docs/intro.dox @@ -1,7 +1,7 @@ -/*! +/*! @page intro_guide Introduction to the API - + @tableofcontents This guide introduces the basic concepts of GLFW and describes initialization, @@ -33,7 +33,6 @@ successfully initialized, and only from the main thread. - @ref glfwGetError - @ref glfwSetErrorCallback - @ref glfwInitHint - - @ref glfwInitHintString - @ref glfwInit - @ref glfwTerminate @@ -67,8 +66,7 @@ settings and these might not be restored without termination. @subsection init_hints Initialization hints Initialization hints are set before @ref glfwInit and affect how the library -behaves until termination. Integer type hints are set with @ref glfwInitHint -and string type hints with @ref glfwInitHintString. +behaves until termination. Hints are set with @ref glfwInitHint. @code glfwInitHint(GLFW_JOYSTICK_HAT_BUTTONS, GLFW_FALSE); @@ -93,26 +91,17 @@ glfwGetJoystickHats. Set this with @ref glfwInitHint. @subsubsection init_hints_osx macOS specific init hints -@anchor GLFW_COCOA_CHDIR_RESOURCES +@anchor GLFW_COCOA_CHDIR_RESOURCES_hint __GLFW_COCOA_CHDIR_RESOURCES__ specifies whether to set the current directory to the application to the `Contents/Resources` subdirectory of the application's bundle, if present. Set this with @ref glfwInitHint. -@anchor GLFW_COCOA_MENUBAR +@anchor GLFW_COCOA_MENUBAR_hint __GLFW_COCOA_MENUBAR__ specifies whether to create a basic menu bar, either from a nib or manually, when the first window is created, which is when AppKit is initialized. Set this with @ref glfwInitHint. -@subsubsection init_hints_x11 X11 specific init hints - -@anchor GLFW_X11_WM_CLASS_NAME -@anchor GLFW_X11_WM_CLASS_CLASS -__GLFW_X11_WM_CLASS_NAME__ and __GLFW_X11_WM_CLASS_CLASS__ specifies the desired -ASCII encoded name and class parts of the ICCCM `WM_CLASS` hint for all windows. -Set this with @ref glfwInitHintString. - - @subsubsection init_hints_values Supported and default values Initialization hint | Default value | Supported values @@ -120,8 +109,6 @@ Initialization hint | Default value | Supported values @ref GLFW_JOYSTICK_HAT_BUTTONS | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` @ref GLFW_COCOA_CHDIR_RESOURCES | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` @ref GLFW_COCOA_MENUBAR | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` -@ref GLFW_X11_WM_CLASS_NAME | `""` | An ASCII encoded `WM_CLASS` name -@ref GLFW_X11_WM_CLASS_CLASS | `""` | An ASCII encoded `WM_CLASS` class @subsection intro_init_terminate Terminating GLFW @@ -140,7 +127,7 @@ any other resources allocated by GLFW. Once the library is terminated, it is as if it had never been initialized and you will need to initialize it again before being able to use GLFW. If the library was not initialized or had already been terminated, it return -immediately. +immediately. @section error_handling Error handling @@ -221,24 +208,24 @@ future that same call may generate a different error or become valid. @section coordinate_systems Coordinate systems GLFW has two primary coordinate systems: the _virtual screen_ and the window -_client area_ or _content area_. Both use the same unit: _virtual screen +_content area_ or _content area_. Both use the same unit: _virtual screen coordinates_, or just _screen coordinates_, which don't necessarily correspond to pixels. -Both the virtual screen and the client area coordinate systems have the X-axis +Both the virtual screen and the content area coordinate systems have the X-axis pointing to the right and the Y-axis pointing down. Window and monitor positions are specified as the position of the upper-left corners of their content areas relative to the virtual screen, while cursor -positions are specified relative to a window's client area. +positions are specified relative to a window's content area. -Because the origin of the window's client area coordinate system is also the -point from which the window position is specified, you can translate client area -coordinates to the virtual screen by adding the window position. The window -frame, when present, extends out from the client area but does not affect the -window position. +Because the origin of the window's content area coordinate system is also the +point from which the window position is specified, you can translate content +area coordinates to the virtual screen by adding the window position. The +window frame, when present, extends out from the content area but does not +affect the window position. Almost all positions and sizes in GLFW are measured in screen coordinates relative to one of the two origins above. This includes cursor positions, @@ -307,7 +294,7 @@ calls main), but some may be called from any thread once the library has been initialized. Before initialization the whole library is thread-unsafe. The reference documentation for every GLFW function states whether it is limited -to the main thread. +to the main thread. Initialization, termination, event processing and the creation and destruction of windows, cursors and OpenGL and OpenGL ES contexts are all @@ -378,10 +365,10 @@ allow calls from any thread in future releases. @subsection compatibility Version compatibility -GLFW guarantees source and binary backward compatibility with earlier minor -versions of the API. This means that you can drop in a newer version of the -library and existing programs will continue to compile and existing binaries -will continue to run. +GLFW uses [Semantic Versioning](https://semver.org/). This guarantees source +and binary backward compatibility with earlier minor versions of the API. This +means that you can drop in a newer version of the library and existing programs +will continue to compile and existing binaries will continue to run. Once a function or constant has been added, the signature of that function or value of that constant will remain unchanged until the next major version of diff --git a/external/GLFW/docs/main.dox b/external/glfw-3.3.4/docs/main.dox similarity index 86% rename from external/GLFW/docs/main.dox rename to external/glfw-3.3.4/docs/main.dox index a1a093f..bd563d9 100644 --- a/external/GLFW/docs/main.dox +++ b/external/glfw-3.3.4/docs/main.dox @@ -8,8 +8,7 @@ GLFW is a free, Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan application development. It provides a simple, platform-independent API for creating windows, contexts and surfaces, reading input, handling events, etc. -See @ref news_33 for highlights or the -[version history](http://www.glfw.org/changelog.html) for details. +@ref news_33 list new features, caveats and deprecations. @ref quick_guide is a guide for users new to GLFW. It takes you through how to write a small but complete program. @@ -34,14 +33,14 @@ use the new API. There is a section on @ref guarantees_limitations for pointer lifetimes, reentrancy, thread safety, event order and backward and forward compatibility. -The [FAQ](http://www.glfw.org/faq.html) answers many common questions about the +The [FAQ](https://www.glfw.org/faq.html) answers many common questions about the design, implementation and use of GLFW. Finally, @ref compat_guide explains what APIs, standards and protocols GLFW uses and what happens when they are not present on a given machine. This documentation was generated with Doxygen. The sources for it are available -in both the [source distribution](http://www.glfw.org/download.html) and +in both the [source distribution](https://www.glfw.org/download.html) and [GitHub repository](https://github.com/glfw/glfw). */ diff --git a/external/glfw-3.3.4/docs/monitor.dox b/external/glfw-3.3.4/docs/monitor.dox new file mode 100644 index 0000000..86eb454 --- /dev/null +++ b/external/glfw-3.3.4/docs/monitor.dox @@ -0,0 +1,268 @@ +/*! + +@page monitor_guide Monitor guide + +@tableofcontents + +This guide introduces the monitor related functions of GLFW. For details on +a specific function in this category, see the @ref monitor. There are also +guides for the other areas of GLFW. + + - @ref intro_guide + - @ref window_guide + - @ref context_guide + - @ref vulkan_guide + - @ref input_guide + + +@section monitor_object Monitor objects + +A monitor object represents a currently connected monitor and is represented as +a pointer to the [opaque](https://en.wikipedia.org/wiki/Opaque_data_type) type +@ref GLFWmonitor. Monitor objects cannot be created or destroyed by the +application and retain their addresses until the monitors they represent are +disconnected or until the library is [terminated](@ref intro_init_terminate). + +Each monitor has a current video mode, a list of supported video modes, +a virtual position, a human-readable name, an estimated physical size and +a gamma ramp. One of the monitors is the primary monitor. + +The virtual position of a monitor is in +[screen coordinates](@ref coordinate_systems) and, together with the current +video mode, describes the viewports that the connected monitors provide into the +virtual desktop that spans them. + +To see how GLFW views your monitor setup and its available video modes, run the +`monitors` test program. + + +@subsection monitor_monitors Retrieving monitors + +The primary monitor is returned by @ref glfwGetPrimaryMonitor. It is the user's +preferred monitor and is usually the one with global UI elements like task bar +or menu bar. + +@code +GLFWmonitor* primary = glfwGetPrimaryMonitor(); +@endcode + +You can retrieve all currently connected monitors with @ref glfwGetMonitors. +See the reference documentation for the lifetime of the returned array. + +@code +int count; +GLFWmonitor** monitors = glfwGetMonitors(&count); +@endcode + +The primary monitor is always the first monitor in the returned array, but other +monitors may be moved to a different index when a monitor is connected or +disconnected. + + +@subsection monitor_event Monitor configuration changes + +If you wish to be notified when a monitor is connected or disconnected, set +a monitor callback. + +@code +glfwSetMonitorCallback(monitor_callback); +@endcode + +The callback function receives the handle for the monitor that has been +connected or disconnected and the event that occurred. + +@code +void monitor_callback(GLFWmonitor* monitor, int event) +{ + if (event == GLFW_CONNECTED) + { + // The monitor was connected + } + else if (event == GLFW_DISCONNECTED) + { + // The monitor was disconnected + } +} +@endcode + +If a monitor is disconnected, all windows that are full screen on it will be +switched to windowed mode before the callback is called. Only @ref +glfwGetMonitorName and @ref glfwGetMonitorUserPointer will return useful values +for a disconnected monitor and only before the monitor callback returns. + + +@section monitor_properties Monitor properties + +Each monitor has a current video mode, a list of supported video modes, +a virtual position, a content scale, a human-readable name, a user pointer, an +estimated physical size and a gamma ramp. + + +@subsection monitor_modes Video modes + +GLFW generally does a good job selecting a suitable video mode when you create +a full screen window, change its video mode or make a windowed one full +screen, but it is sometimes useful to know exactly which video modes are +supported. + +Video modes are represented as @ref GLFWvidmode structures. You can get an +array of the video modes supported by a monitor with @ref glfwGetVideoModes. +See the reference documentation for the lifetime of the returned array. + +@code +int count; +GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); +@endcode + +To get the current video mode of a monitor call @ref glfwGetVideoMode. See the +reference documentation for the lifetime of the returned pointer. + +@code +const GLFWvidmode* mode = glfwGetVideoMode(monitor); +@endcode + +The resolution of a video mode is specified in +[screen coordinates](@ref coordinate_systems), not pixels. + + +@subsection monitor_size Physical size + +The physical size of a monitor in millimetres, or an estimation of it, can be +retrieved with @ref glfwGetMonitorPhysicalSize. This has no relation to its +current _resolution_, i.e. the width and height of its current +[video mode](@ref monitor_modes). + +@code +int width_mm, height_mm; +glfwGetMonitorPhysicalSize(monitor, &width_mm, &height_mm); +@endcode + +While this can be used to calculate the raw DPI of a monitor, this is often not +useful. Instead use the [monitor content scale](@ref monitor_scale) and +[window content scale](@ref window_scale) to scale your content. + + +@subsection monitor_scale Content scale + +The content scale for a monitor can be retrieved with @ref +glfwGetMonitorContentScale. + +@code +float xscale, yscale; +glfwGetMonitorContentScale(monitor, &xscale, &yscale); +@endcode + +The content scale is the ratio between the current DPI and the platform's +default DPI. This is especially important for text and any UI elements. If the +pixel dimensions of your UI scaled by this look appropriate on your machine then +it should appear at a reasonable size on other machines regardless of their DPI +and scaling settings. This relies on the system DPI and scaling settings being +somewhat correct. + +The content scale may depend on both the monitor resolution and pixel density +and on user settings. It may be very different from the raw DPI calculated from +the physical size and current resolution. + + +@subsection monitor_pos Virtual position + +The position of the monitor on the virtual desktop, in +[screen coordinates](@ref coordinate_systems), can be retrieved with @ref +glfwGetMonitorPos. + +@code +int xpos, ypos; +glfwGetMonitorPos(monitor, &xpos, &ypos); +@endcode + + +@subsection monitor_workarea Work area + +The area of a monitor not occupied by global task bars or menu bars is the work +area. This is specified in [screen coordinates](@ref coordinate_systems) and +can be retrieved with @ref glfwGetMonitorWorkarea. + +@code +int xpos, ypos, width, height; +glfwGetMonitorWorkarea(monitor, &xpos, &ypos, &width, &height); +@endcode + + +@subsection monitor_name Human-readable name + +The human-readable, UTF-8 encoded name of a monitor is returned by @ref +glfwGetMonitorName. See the reference documentation for the lifetime of the +returned string. + +@code +const char* name = glfwGetMonitorName(monitor); +@endcode + +Monitor names are not guaranteed to be unique. Two monitors of the same model +and make may have the same name. Only the monitor handle is guaranteed to be +unique, and only until that monitor is disconnected. + + +@subsection monitor_userptr User pointer + +Each monitor has a user pointer that can be set with @ref +glfwSetMonitorUserPointer and queried with @ref glfwGetMonitorUserPointer. This +can be used for any purpose you need and will not be modified by GLFW. The +value will be kept until the monitor is disconnected or until the library is +terminated. + +The initial value of the pointer is `NULL`. + + +@subsection monitor_gamma Gamma ramp + +The gamma ramp of a monitor can be set with @ref glfwSetGammaRamp, which accepts +a monitor handle and a pointer to a @ref GLFWgammaramp structure. + +@code +GLFWgammaramp ramp; +unsigned short red[256], green[256], blue[256]; + +ramp.size = 256; +ramp.red = red; +ramp.green = green; +ramp.blue = blue; + +for (i = 0; i < ramp.size; i++) +{ + // Fill out gamma ramp arrays as desired +} + +glfwSetGammaRamp(monitor, &ramp); +@endcode + +The gamma ramp data is copied before the function returns, so there is no need +to keep it around once the ramp has been set. + +It is recommended that your gamma ramp have the same size as the current gamma +ramp for that monitor. + +The current gamma ramp for a monitor is returned by @ref glfwGetGammaRamp. See +the reference documentation for the lifetime of the returned structure. + +@code +const GLFWgammaramp* ramp = glfwGetGammaRamp(monitor); +@endcode + +If you wish to set a regular gamma ramp, you can have GLFW calculate it for you +from the desired exponent with @ref glfwSetGamma, which in turn calls @ref +glfwSetGammaRamp with the resulting ramp. + +@code +glfwSetGamma(monitor, 1.0); +@endcode + +To experiment with gamma correction via the @ref glfwSetGamma function, run the +`gamma` test program. + +@note The software controlled gamma ramp is applied _in addition_ to the +hardware gamma correction, which today is usually an approximation of sRGB +gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will +produce the default (usually sRGB-like) behavior. + +*/ diff --git a/external/GLFW/docs/moving.dox b/external/glfw-3.3.4/docs/moving.dox similarity index 97% rename from external/GLFW/docs/moving.dox rename to external/glfw-3.3.4/docs/moving.dox index 0f33a7e..b80d84a 100644 --- a/external/GLFW/docs/moving.dox +++ b/external/glfw-3.3.4/docs/moving.dox @@ -38,9 +38,9 @@ The threading functions have been removed, including the per-thread sleep function. They were fairly primitive, under-used, poorly integrated and took time away from the focus of GLFW (i.e. context, input and window). There are better threading libraries available and native threading support is available -in both [C++11](http://en.cppreference.com/w/cpp/thread) and -[C11](http://en.cppreference.com/w/c/thread), both of which are gaining -traction. +in both [C++11](https://en.cppreference.com/w/cpp/thread) and +[C11](https://en.cppreference.com/w/c/thread), both of which are gaining +traction. If you wish to use the C++11 or C11 facilities but your compiler doesn't yet support them, see the @@ -73,7 +73,7 @@ To become of sufficiently high quality to warrant keeping them in GLFW 3, they would need not only to support other formats, but also modern extensions to OpenGL texturing. This would either add a number of external dependencies (libjpeg, libpng, etc.), or force GLFW to ship with inline versions -of these libraries. +of these libraries. As there already are libraries doing this, it is unnecessary both to duplicate the work and to tie the duplicate to GLFW. The resulting library would also be @@ -87,12 +87,12 @@ platform-independent, as both OpenGL and stdio are available wherever GLFW is. @subsection moving_stdcall Removal of GLFWCALL macro The `GLFWCALL` macro, which made callback functions use -[__stdcall](http://msdn.microsoft.com/en-us/library/zxk0tw93.aspx) on Windows, +[__stdcall](https://msdn.microsoft.com/en-us/library/zxk0tw93.aspx) on Windows, has been removed. GLFW is written in C, not Pascal. Removing this macro means there's one less thing for application programmers to remember, i.e. the requirement to mark all callback functions with `GLFWCALL`. It also simplifies the creation of DLLs and DLL link libraries, as there's no need to explicitly -disable `@n` entry point suffixes. +disable `@n` entry point suffixes. @par Old syntax @code @@ -362,8 +362,8 @@ should be using the character callback instead, on both GLFW 2 and 3. This will give you the characters being input, as opposed to the keys being pressed. GLFW 3 has key tokens for all keys on a standard 105 key keyboard, so instead of -having to remember whether to check for `'a'` or `'A'`, you now check for -`GLFW_KEY_A`. +having to remember whether to check for `a` or `A`, you now check for +@ref GLFW_KEY_A. @subsection moving_joystick Joystick function changes @@ -379,7 +379,7 @@ glfwGetJoystickAxes and @ref glfwGetJoystickButtons functions. @subsection moving_mbcs Win32 MBCS support The Win32 port of GLFW 3 will not compile in -[MBCS mode](http://msdn.microsoft.com/en-us/library/5z097dxa.aspx). +[MBCS mode](https://msdn.microsoft.com/en-us/library/5z097dxa.aspx). However, because the use of the Unicode version of the Win32 API doesn't affect the process as a whole, but only those windows created using it, it's perfectly possible to call MBCS functions from other parts of the same application. diff --git a/external/glfw-3.3.4/docs/news.dox b/external/glfw-3.3.4/docs/news.dox new file mode 100644 index 0000000..c21a8b8 --- /dev/null +++ b/external/glfw-3.3.4/docs/news.dox @@ -0,0 +1,863 @@ +/*! + +@page news Release notes + +@tableofcontents + + +@section news_33 Release notes for version 3.3 + +These are the release notes for version 3.3. For a more detailed view including +all fixed bugs see the [version history](https://www.glfw.org/changelog.html). + +Please review the caveats, deprecations and removals if your project was written +against an earlier version of GLFW 3. + + +@subsection features_33 New features in version 3.3 + +@subsubsection gamepad_33 Gamepad input via SDL_GameControllerDB + +GLFW can now remap game controllers to a standard Xbox-like layout using +a built-in copy of SDL_GameControllerDB. Call @ref glfwJoystickIsGamepad to +check if a joystick has a mapping, @ref glfwGetGamepadState to retrieve its +input state, @ref glfwUpdateGamepadMappings to add newer mappings and @ref +glfwGetGamepadName and @ref glfwGetJoystickGUID for mapping related information. + +For more information see @ref gamepad. + + +@subsubsection moltenvk_33 Support for Vulkan on macOS via MoltenVK + +GLFW now supports [MoltenVK](https://moltengl.com/moltenvk/), a Vulkan +implementation on top of the Metal API, and its `VK_MVK_macos_surface` window +surface creation extension. MoltenVK is included in the [macOS Vulkan +SDK](https://vulkan.lunarg.com/). + +For more information see @ref vulkan_guide. + + +@subsubsection content_scale_33 Content scale queries for DPI-aware rendering + +GLFW now provides content scales for windows and monitors, i.e. the ratio +between their current DPI and the platform's default DPI, with @ref +glfwGetWindowContentScale and @ref glfwGetMonitorContentScale. + +Changes of the content scale of a window can be received with the window content +scale callback, set with @ref glfwSetWindowContentScaleCallback. + +The @ref GLFW_SCALE_TO_MONITOR window hint enables automatic resizing of a +window by the content scale of the monitor it is placed, on platforms like +Windows where this is necessary. This takes effect both on creation and when +the window is moved between monitors. It is related to but different from +[GLFW_COCOA_RETINA_FRAMEBUFFER](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint). + +For more information see @ref window_scale. + + +@subsubsection setwindowattrib_33 Support for updating window attributes + +GLFW now supports changing the [GLFW_DECORATED](@ref GLFW_DECORATED_attrib), +[GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib), +[GLFW_FLOATING](@ref GLFW_FLOATING_attrib), +[GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) and +[GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_attrib) attributes for existing +windows with @ref glfwSetWindowAttrib. + +For more information see @ref window_attribs. + + +@subsubsection raw_motion_33 Support for raw mouse motion + +GLFW now supports raw (unscaled and unaccelerated) mouse motion in disabled +cursor mode with the [GLFW_RAW_MOUSE_MOTION](@ref GLFW_RAW_MOUSE_MOTION) input +mode. Raw mouse motion input is not yet implemented on macOS. Call @ref +glfwRawMouseMotionSupported to check if GLFW can provide raw mouse motion on the +current system. + +For more information see @ref raw_mouse_motion. + + +@subsubsection joysticks_33 Joystick hats + +GLFW can now return the state of hats (i.e. POVs or D-pads) of a joystick with +@ref glfwGetJoystickHats. For compatibility, hats are also exposed as buttons. +This can be disabled with the @ref GLFW_JOYSTICK_HAT_BUTTONS initialization +hint. + +For more information see @ref joystick_hat. + + +@subsubsection geterror_33 Error query + +GLFW now supports querying the last error code for the calling thread and its +human-readable description with @ref glfwGetError. This can be used instead of +or together with the error callback. + +For more information see @ref error_handling. + + +@subsubsection init_hints_33 Support for initialization hints + +GLFW now supports setting library initialization hints with @ref glfwInitHint. +These must be set before initialization to take effect. Some of these hints are +platform specific but are safe to set on any platform. + +For more information see @ref init_hints. + + +@subsubsection attention_33 User attention request + +GLFW now supports requesting user attention with @ref +glfwRequestWindowAttention. Where possible this calls attention to the +specified window. On platforms like macOS it calls attention to the whole +application. + +For more information see @ref window_attention. + + +@subsubsection maximize_33 Window maximization callback + +GLFW now supports notifying the application that the window has been maximized +@ref glfwSetWindowMaximizeCallback. This is called both when the window was +maximized by the user and when it was done with @ref glfwMaximizeWindow. + +For more information see @ref window_maximize. + + +@subsubsection workarea_33 Query for the monitor work area + +GLFW now supports querying the work area of a monitor, i.e. the area not +occupied by task bars or global menu bars, with @ref glfwGetMonitorWorkarea. On +platforms that lack this concept, the whole area of the monitor is returned. + +For more information see @ref monitor_workarea. + + +@subsubsection transparency_33 Transparent windows and framebuffers + +GLFW now supports the creation of windows with transparent framebuffers on +systems with desktop compositing enabled with the @ref +GLFW_TRANSPARENT_FRAMEBUFFER window hint and attribute. This hint must be set +before window creation and leaves any window decorations opaque. + +GLFW now also supports whole window transparency with @ref glfwGetWindowOpacity +and @ref glfwSetWindowOpacity. This value controls the opacity of the whole +window including decorations and unlike framebuffer transparency can be changed +at any time after window creation. + +For more information see @ref window_transparency. + + +@subsubsection key_scancode_33 Query for the scancode of a key + +GLFW now supports querying the platform dependent scancode of any physical key +with @ref glfwGetKeyScancode. + +For more information see @ref input_key. + + +@subsubsection center_cursor_33 Cursor centering window hint + +GLFW now supports controlling whether the cursor is centered over newly created +full screen windows with the [GLFW_CENTER_CURSOR](@ref GLFW_CENTER_CURSOR_hint) +window hint. It is enabled by default. + + +@subsubsection cursor_hover_33 Mouse cursor hover window attribute + +GLFW now supports polling whether the cursor is hovering over the window content +area with the [GLFW_HOVERED](@ref GLFW_HOVERED_attrib) window attribute. This +attribute corresponds to the [cursor enter/leave](@ref cursor_enter) event. + + +@subsubsection focusonshow_33 Window hint and attribute for input focus on show + +GLFW now has the [GLFW_FOCUS_ON_SHOW](@ref GLFW_DECORATED_hint) window hint and +attribute for controlling whether a window gets input focus when shown. It is +enabled by default. It applies both when creating an visible window with @ref +glfwCreateWindow and when showing it with @ref glfwShowWindow. + +This is a workaround for GLFW 3.0 lacking @ref glfwFocusWindow and will be +corrected in the next major version. + +For more information see @ref window_hide. + + +@subsubsection device_userptr_33 Monitor and joystick user pointers + +GLFW now supports setting and querying user pointers for connected monitors and +joysticks with @ref glfwSetMonitorUserPointer, @ref glfwGetMonitorUserPointer, +@ref glfwSetJoystickUserPointer and @ref glfwGetJoystickUserPointer. + +For more information see @ref monitor_userptr and @ref joystick_userptr. + + +@subsubsection macos_nib_33 macOS menu bar from nib file + +GLFW will now load a `MainMenu.nib` file if found in the `Contents/Resources` +directory of the application bundle, as a way to replace the GLFW menu bar +without recompiling GLFW. This behavior can be disabled with the +[GLFW_COCOA_MENUBAR](@ref GLFW_COCOA_MENUBAR_hint) initialization hint. + + +@subsubsection glext_33 Support for more context creation extensions + +The context hint @ref GLFW_SRGB_CAPABLE now supports OpenGL ES via +`WGL_EXT_colorspace`, the context hint @ref GLFW_CONTEXT_NO_ERROR now supports +`WGL_ARB_create_context_no_error` and `GLX_ARB_create_context_no_error`, the +context hint @ref GLFW_CONTEXT_RELEASE_BEHAVIOR now supports +`EGL_KHR_context_flush_control` and @ref glfwGetProcAddress now supports +`EGL_KHR_get_all_proc_addresses`. + + +@subsubsection osmesa_33 OSMesa off-screen context creation support + +GLFW now supports creating off-screen OpenGL contexts using +[OSMesa](https://www.mesa3d.org/osmesa.html) by setting +[GLFW_CONTEXT_CREATION_API](@ref GLFW_CONTEXT_CREATION_API_hint) to +`GLFW_OSMESA_CONTEXT_API`. Native access function have been added to retrieve +the OSMesa color and depth buffers. + +There is also a new null backend that uses OSMesa as its native context +creation API, intended for automated testing. This backend does not provide +input. + + +@subsection caveats_33 Caveats for version 3.3 + +@subsubsection joystick_layout_33 Layout of joysticks have changed + +The way joystick elements are arranged have changed to match SDL2 in order to +support SDL_GameControllerDB mappings. The layout of joysticks may +change again if required for compatibility with SDL2. If you need a known and +stable layout for game controllers, see if you can switch to @ref gamepad. + +Existing code that depends on a specific joystick layout will likely have to be +updated. + + +@subsubsection wait_events_33 No window required to wait for events + +The @ref glfwWaitEvents and @ref glfwWaitEventsTimeout functions no longer need +a window to be created to wait for events. Before version 3.3 these functions +would return immediately if there were no user-created windows. On platforms +where only windows can receive events, an internal helper window is used. + +Existing code that depends on the earlier behavior will likely have to be +updated. + + +@subsubsection gamma_ramp_size_33 Gamma ramp size of 256 may be rejected + +The documentation for versions before 3.3 stated that a gamma ramp size of 256 +would always be accepted. This was never the case on X11 and could lead to +artifacts on macOS. The @ref glfwSetGamma function has been updated to always +generate a ramp of the correct size. + +Existing code that hardcodes a size of 256 should be updated to use the size of +the current ramp of a monitor when setting a new ramp for that monitor. + + +@subsubsection xinput_deadzone_33 Windows XInput deadzone removed + +GLFW no longer applies any deadzone to the input state received from the XInput +API. This was never done for any other platform joystick API so this change +makes the behavior more consistent but you will need to apply your own deadzone +if desired. + + +@subsubsection x11_clipboard_33 X11 clipboard transfer limits + +GLFW now supports reading clipboard text via the `INCR` method, which removes +the limit on how much text can be read with @ref glfwGetClipboardString. +However, writing via this method is not yet supported, so you may not be able to +write a very large string with @ref glfwSetClipboardString even if you read it +from the clipboard earlier. + +The exact size limit for writing to the clipboard is negotiated with each +receiving application but is at least several tens of kilobytes. Note that only +the read limit has changed. Any string that could be written before still can +be. + + +@subsubsection x11_linking_33 X11 extension libraries are loaded dynamically + +GLFW now loads all X11 extension libraries at initialization. The only X11 +library you need to link against is `libX11`. The header files for the +extension libraries are still required for compilation. + +Existing projects and makefiles that link GLFW directly against the extension +libraries should still build correctly but will add these libraries as load-time +dependencies. + + +@subsubsection cmake_version_33 CMake 3.0 or later is required + +The minimum CMake version has been raised from 2.8.12 to 3.0. This is only +a requirement of the GLFW CMake files. The GLFW source files do not depend on +CMake. + + +@subsubsection caveat_fbtransparency_33 Framebuffer transparency requires DWM transparency + +GLFW no longer supports framebuffer transparency enabled via @ref +GLFW_TRANSPARENT_FRAMEBUFFER on Windows 7 if DWM transparency is off +(the Transparency setting under Personalization > Window Color). + + +@subsection deprecations_33 Deprecations in version 3.3 + +@subsubsection charmods_callback_33 Character with modifiers callback + +The character with modifiers callback set with @ref glfwSetCharModsCallback has +been deprecated and should if possible not be used. + +Existing code should still work but further bug fixes will likely not be made. +The callback will be removed in the next major version. + + +@subsubsection clipboard_window_33 Window parameter to clipboard functions + +The window parameter of the clipboard functions @ref glfwGetClipboardString and +@ref glfwSetClipboardString has been deprecated and is no longer used on any +platform. On platforms where the clipboard must be owned by a specific window, +an internal helper window is used. + +Existing code should still work unless it depends on a specific window owning +the clipboard. New code may pass `NULL` as the window argument. The parameter +will be removed in a future release. + + +@subsection removals_33 Removals in 3.3 + +@subsubsection macos_options_33 macOS specific CMake options and macros + +The `GLFW_USE_RETINA`, `GLFW_USE_CHDIR` and `GLFW_USE_MENUBAR` CMake options and +the `_GLFW_USE_RETINA`, `_GLFW_USE_CHDIR` and `_GLFW_USE_MENUBAR` compile-time +macros have been removed. + +These options and macros are replaced by the window hint +[GLFW_COCOA_RETINA_FRAMEBUFFER](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint) +and the init hints +[GLFW_COCOA_CHDIR_RESOURCES](@ref GLFW_COCOA_CHDIR_RESOURCES_hint) and +[GLFW_COCOA_MENUBAR](@ref GLFW_COCOA_MENUBAR_hint). + +Existing projects and makefiles that set these options or define these macros +during compilation of GLFW will still build but it will have no effect and the +default behaviors will be used. + + +@subsubsection vulkan_sdk_33 LunarG Vulkan SDK dependency + +The GLFW test programs that previously depended on the LunarG Vulkan SDK now +instead uses a Vulkan loader generated by +[glad2](https://github.com/Dav1dde/glad). This means the GLFW CMake files no +longer look for the Vulkan SDK. + +Existing CMake projects that depended on the Vulkan SDK cache variables from +GLFW will need to call `find_package(Vulkan)` themselves. CMake 3.7 and later +already comes with a +[Vulkan find module](https://cmake.org/cmake/help/latest/module/FindVulkan.html) +similar to the one GLFW previously included. + + +@subsubsection lib_suffix_33 CMake option LIB_SUFFIX + +The `LIB_SUFFIX` CMake option has been removed. GLFW now uses the +GNUInstallDirs CMake package to handle platform specific details like the +library directory suffix and the `LIB_SUFFIX` CMake option has been removed. + +Existing projects and makefiles that set the `LIB_SUFFIX` option will use the +suffix chosen by the GNUInstallDirs package and the option will be ignored. + + +@subsubsection mir_removed_33 Mir support + +The experimental Mir support has been completely removed as the Mir project has +implemented support for the Wayland protocol and is recommending that +applications use that instead. + +Existing projects and makefiles that select Mir when compiling GLFW will fail. +Use Wayland or X11 instead. + + +@subsection symbols_33 New symbols in version 3.3 + +@subsubsection functions_33 New functions in version 3.3 + + - @ref glfwInitHint + - @ref glfwGetError + - @ref glfwGetMonitorWorkarea + - @ref glfwGetMonitorContentScale + - @ref glfwGetMonitorUserPointer + - @ref glfwSetMonitorUserPointer + - @ref glfwWindowHintString + - @ref glfwGetWindowContentScale + - @ref glfwGetWindowOpacity + - @ref glfwSetWindowOpacity + - @ref glfwRequestWindowAttention + - @ref glfwSetWindowAttrib + - @ref glfwSetWindowMaximizeCallback + - @ref glfwSetWindowContentScaleCallback + - @ref glfwRawMouseMotionSupported + - @ref glfwGetKeyScancode + - @ref glfwGetJoystickHats + - @ref glfwGetJoystickGUID + - @ref glfwGetJoystickUserPointer + - @ref glfwSetJoystickUserPointer + - @ref glfwJoystickIsGamepad + - @ref glfwUpdateGamepadMappings + - @ref glfwGetGamepadName + - @ref glfwGetGamepadState + + +@subsubsection types_33 New types in version 3.3 + + - @ref GLFWwindowmaximizefun + - @ref GLFWwindowcontentscalefun + - @ref GLFWgamepadstate + + +@subsubsection constants_33 New constants in version 3.3 + + - @ref GLFW_NO_ERROR + - @ref GLFW_JOYSTICK_HAT_BUTTONS + - @ref GLFW_COCOA_CHDIR_RESOURCES + - @ref GLFW_COCOA_MENUBAR + - @ref GLFW_CENTER_CURSOR + - @ref GLFW_TRANSPARENT_FRAMEBUFFER + - @ref GLFW_HOVERED + - @ref GLFW_FOCUS_ON_SHOW + - @ref GLFW_SCALE_TO_MONITOR + - @ref GLFW_COCOA_RETINA_FRAMEBUFFER + - @ref GLFW_COCOA_FRAME_NAME + - @ref GLFW_COCOA_GRAPHICS_SWITCHING + - @ref GLFW_X11_CLASS_NAME + - @ref GLFW_X11_INSTANCE_NAME + - @ref GLFW_OSMESA_CONTEXT_API + - @ref GLFW_HAT_CENTERED + - @ref GLFW_HAT_UP + - @ref GLFW_HAT_RIGHT + - @ref GLFW_HAT_DOWN + - @ref GLFW_HAT_LEFT + - @ref GLFW_HAT_RIGHT_UP + - @ref GLFW_HAT_RIGHT_DOWN + - @ref GLFW_HAT_LEFT_UP + - @ref GLFW_HAT_LEFT_DOWN + - @ref GLFW_MOD_CAPS_LOCK + - @ref GLFW_MOD_NUM_LOCK + - @ref GLFW_LOCK_KEY_MODS + - @ref GLFW_RAW_MOUSE_MOTION + - @ref GLFW_GAMEPAD_BUTTON_A + - @ref GLFW_GAMEPAD_BUTTON_B + - @ref GLFW_GAMEPAD_BUTTON_X + - @ref GLFW_GAMEPAD_BUTTON_Y + - @ref GLFW_GAMEPAD_BUTTON_LEFT_BUMPER + - @ref GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER + - @ref GLFW_GAMEPAD_BUTTON_BACK + - @ref GLFW_GAMEPAD_BUTTON_START + - @ref GLFW_GAMEPAD_BUTTON_GUIDE + - @ref GLFW_GAMEPAD_BUTTON_LEFT_THUMB + - @ref GLFW_GAMEPAD_BUTTON_RIGHT_THUMB + - @ref GLFW_GAMEPAD_BUTTON_DPAD_UP + - @ref GLFW_GAMEPAD_BUTTON_DPAD_RIGHT + - @ref GLFW_GAMEPAD_BUTTON_DPAD_DOWN + - @ref GLFW_GAMEPAD_BUTTON_DPAD_LEFT + - @ref GLFW_GAMEPAD_BUTTON_LAST + - @ref GLFW_GAMEPAD_BUTTON_CROSS + - @ref GLFW_GAMEPAD_BUTTON_CIRCLE + - @ref GLFW_GAMEPAD_BUTTON_SQUARE + - @ref GLFW_GAMEPAD_BUTTON_TRIANGLE + - @ref GLFW_GAMEPAD_AXIS_LEFT_X + - @ref GLFW_GAMEPAD_AXIS_LEFT_Y + - @ref GLFW_GAMEPAD_AXIS_RIGHT_X + - @ref GLFW_GAMEPAD_AXIS_RIGHT_Y + - @ref GLFW_GAMEPAD_AXIS_LEFT_TRIGGER + - @ref GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER + - @ref GLFW_GAMEPAD_AXIS_LAST + + +@section news_32 Release notes for 3.2 + +These are the release notes for version 3.2. For a more detailed view including +all fixed bugs see the [version history](https://www.glfw.org/changelog.html). + + +@subsection features_32 New features in version 3.2 + +@subsubsection news_32_vulkan Support for Vulkan + +GLFW now supports basic integration with Vulkan with @ref glfwVulkanSupported, +@ref glfwGetRequiredInstanceExtensions, @ref glfwGetInstanceProcAddress, @ref +glfwGetPhysicalDevicePresentationSupport and @ref glfwCreateWindowSurface. +Vulkan header inclusion can be selected with +@ref GLFW_INCLUDE_VULKAN. + + +@subsubsection news_32_setwindowmonitor Window mode switching + +GLFW now supports switching between windowed and full screen modes and updating +the monitor and desired resolution and refresh rate of full screen windows with +@ref glfwSetWindowMonitor. + + +@subsubsection news_32_maximize Window maxmimization support + +GLFW now supports window maximization with @ref glfwMaximizeWindow and the +@ref GLFW_MAXIMIZED window hint and attribute. + + +@subsubsection news_32_focus Window input focus control + +GLFW now supports giving windows input focus with @ref glfwFocusWindow. + + +@subsubsection news_32_sizelimits Window size limit support + +GLFW now supports setting both absolute and relative window size limits with +@ref glfwSetWindowSizeLimits and @ref glfwSetWindowAspectRatio. + + +@subsubsection news_32_keyname Localized key names + +GLFW now supports querying the localized name of printable keys with @ref +glfwGetKeyName, either by key token or by scancode. + + +@subsubsection news_32_waittimeout Wait for events with timeout + +GLFW now supports waiting for events for a set amount of time with @ref +glfwWaitEventsTimeout. + + +@subsubsection news_32_icon Window icon support + +GLFW now supports setting the icon of windows with @ref glfwSetWindowIcon. + + +@subsubsection news_32_timer Raw timer access + +GLFW now supports raw timer values with @ref glfwGetTimerValue and @ref +glfwGetTimerFrequency. + + +@subsubsection news_32_joystick Joystick connection callback + +GLFW now supports notifying when a joystick has been connected or disconnected +with @ref glfwSetJoystickCallback. + + +@subsubsection news_32_noapi Context-less windows + +GLFW now supports creating windows without a OpenGL or OpenGL ES context by +setting the [GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_NO_API`. + + +@subsubsection news_32_contextapi Run-time context creation API selection + +GLFW now supports selecting and querying the context creation API at run-time +with the @ref GLFW_CONTEXT_CREATION_API hint and attribute. + + +@subsubsection news_32_noerror Error-free context creation + +GLFW now supports creating and querying OpenGL and OpenGL ES contexts that do +not emit errors with the @ref GLFW_CONTEXT_NO_ERROR hint, provided the machine +supports the `GL_KHR_no_error` extension. + + +@subsubsection news_32_cmake CMake config-file package support + +GLFW now supports being used as a +[config-file package](@ref build_link_cmake_package) from other projects for +easy linking with the library and its dependencies. + + +@section news_31 Release notes for 3.1 + +These are the release notes for version 3.1. For a more detailed view including +all fixed bugs see the [version history](https://www.glfw.org/changelog.html). + + +@subsection features_31 New features in version 3.1 + +@subsubsection news_31_cursor Custom mouse cursor images + +GLFW now supports creating and setting both custom cursor images and standard +cursor shapes. They are created with @ref glfwCreateCursor or @ref +glfwCreateStandardCursor, set with @ref glfwSetCursor and destroyed with @ref +glfwDestroyCursor. + +@see @ref cursor_object + + +@subsubsection news_31_drop Path drop event + +GLFW now provides a callback for receiving the paths of files and directories +dropped onto GLFW windows. The callback is set with @ref glfwSetDropCallback. + +@see @ref path_drop + + +@subsubsection news_31_emptyevent Main thread wake-up + +GLFW now provides the @ref glfwPostEmptyEvent function for posting an empty +event from another thread to the main thread event queue, causing @ref +glfwWaitEvents to return. + +@see @ref events + + +@subsubsection news_31_framesize Window frame size query + +GLFW now supports querying the size, on each side, of the frame around the +content area of a window, with @ref glfwGetWindowFrameSize. + +@see [Window size](@ref window_size) + + +@subsubsection news_31_autoiconify Simultaneous multi-monitor rendering + +GLFW now supports disabling auto-iconification of full screen windows with +the [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_hint) window hint. This is +intended for people building multi-monitor installations, where you need windows +to stay in full screen despite losing input focus. + + +@subsubsection news_31_floating Floating windows + +GLFW now supports floating windows, also called topmost or always on top, for +easier debugging with the @ref GLFW_FLOATING window hint and attribute. + + +@subsubsection news_31_focused Initially unfocused windows + +GLFW now supports preventing a windowed mode window from gaining input focus on +creation, with the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) window hint. + + +@subsubsection news_31_direct Direct access for window attributes and cursor position + +GLFW now queries the window input focus, visibility and iconification attributes +and the cursor position directly instead of returning cached data. + + +@subsubsection news_31_charmods Character with modifiers callback + +GLFW now provides a callback for character events with modifier key bits. The +callback is set with @ref glfwSetCharModsCallback. Unlike the regular character +callback, this will report character events that will not result in a character +being input, for example if the Control key is held down. + +@see @ref input_char + + +@subsubsection news_31_single Single buffered framebuffers + +GLFW now supports the creation of single buffered windows, with the @ref +GLFW_DOUBLEBUFFER hint. + + +@subsubsection news_31_glext Macro for including extension header + +GLFW now includes the extension header appropriate for the chosen OpenGL or +OpenGL ES header when @ref GLFW_INCLUDE_GLEXT is defined. GLFW does not provide +these headers. They must be provided by your development environment or your +OpenGL or OpenGL ES SDK. + + +@subsubsection news_31_release Context release behaviors + +GLFW now supports controlling and querying whether the pipeline is flushed when +a context is made non-current, with the @ref GLFW_CONTEXT_RELEASE_BEHAVIOR hint +and attribute, provided the machine supports the `GL_KHR_context_flush_control` +extension. + + +@subsubsection news_31_wayland (Experimental) Wayland support + +GLFW now has an _experimental_ Wayland display protocol backend that can be +selected on Linux with a CMake option. + + +@subsubsection news_31_mir (Experimental) Mir support + +GLFW now has an _experimental_ Mir display server backend that can be selected +on Linux with a CMake option. + + +@section news_30 Release notes for 3.0 + +These are the release notes for version 3.0. For a more detailed view including +all fixed bugs see the [version history](https://www.glfw.org/changelog.html). + + +@subsection features_30 New features in version 3.0 + +@subsubsection news_30_cmake CMake build system + +GLFW now uses the CMake build system instead of the various makefiles and +project files used by earlier versions. CMake is available for all platforms +supported by GLFW, is present in most package systems and can generate +makefiles and/or project files for most popular development environments. + +For more information on how to use CMake, see the +[CMake manual](https://cmake.org/cmake/help/documentation.html). + + +@subsubsection news_30_multiwnd Multi-window support + +GLFW now supports the creation of multiple windows, each with their own OpenGL +or OpenGL ES context, and all window functions now take a window handle. Event +callbacks are now per-window and are provided with the handle of the window that +received the event. The @ref glfwMakeContextCurrent function has been added to +select which context is current on a given thread. + + +@subsubsection news_30_multimon Multi-monitor support + +GLFW now explicitly supports multiple monitors. They can be enumerated with +@ref glfwGetMonitors, queried with @ref glfwGetVideoModes, @ref +glfwGetMonitorPos, @ref glfwGetMonitorName and @ref glfwGetMonitorPhysicalSize, +and specified at window creation to make the newly created window full screen on +that specific monitor. + + +@subsubsection news_30_unicode Unicode support + +All string arguments to GLFW functions and all strings returned by GLFW now use +the UTF-8 encoding. This includes the window title, error string, clipboard +text, monitor and joystick names as well as the extension function arguments (as +ASCII is a subset of UTF-8). + + +@subsubsection news_30_clipboard Clipboard text I/O + +GLFW now supports reading and writing plain text to and from the system +clipboard, with the @ref glfwGetClipboardString and @ref glfwSetClipboardString +functions. + + +@subsubsection news_30_gamma Gamma ramp support + +GLFW now supports setting and reading back the gamma ramp of monitors, with the +@ref glfwGetGammaRamp and @ref glfwSetGammaRamp functions. There is also @ref +glfwSetGamma, which generates a ramp from a gamma value and then sets it. + + +@subsubsection news_30_gles OpenGL ES support + +GLFW now supports the creation of OpenGL ES contexts, by setting the +[GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_OPENGL_ES_API`, where +creation of such contexts are supported. Note that GLFW _does not implement_ +OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern +Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and +WGL APIs, while AMD provides an EGL implementation instead. + + +@subsubsection news_30_egl (Experimental) EGL support + +GLFW now has an experimental EGL context creation back end that can be selected +through CMake options. + + +@subsubsection news_30_hidpi High-DPI support + +GLFW now supports high-DPI monitors on both Windows and macOS, giving windows +full resolution framebuffers where other UI elements are scaled up. To achieve +this, @ref glfwGetFramebufferSize and @ref glfwSetFramebufferSizeCallback have +been added. These work with pixels, while the rest of the GLFW API works with +screen coordinates. This is important as OpenGL uses pixels, not screen +coordinates. + + +@subsubsection news_30_error Error callback + +GLFW now has an error callback, which can provide your application with much +more detailed diagnostics than was previously possible. The callback is passed +an error code and a description string. + + +@subsubsection news_30_wndptr Per-window user pointer + +Each window now has a user-defined pointer, retrieved with @ref +glfwGetWindowUserPointer and set with @ref glfwSetWindowUserPointer, to make it +easier to integrate GLFW into C++ code. + + +@subsubsection news_30_iconifyfun Window iconification callback + +Each window now has a callback for iconification and restoration events, +which is set with @ref glfwSetWindowIconifyCallback. + + +@subsubsection news_30_wndposfun Window position callback + +Each window now has a callback for position events, which is set with @ref +glfwSetWindowPosCallback. + + +@subsubsection news_30_wndpos Window position query + +The position of a window can now be retrieved using @ref glfwGetWindowPos. + + +@subsubsection news_30_focusfun Window focus callback + +Each windows now has a callback for focus events, which is set with @ref +glfwSetWindowFocusCallback. + + +@subsubsection news_30_enterleave Cursor enter/leave callback + +Each window now has a callback for when the mouse cursor enters or leaves its +content area, which is set with @ref glfwSetCursorEnterCallback. + + +@subsubsection news_30_wndtitle Initial window title + +The title of a window is now specified at creation time, as one of the arguments +to @ref glfwCreateWindow. + + +@subsubsection news_30_hidden Hidden windows + +Windows can now be hidden with @ref glfwHideWindow, shown using @ref +glfwShowWindow and created initially hidden with the @ref GLFW_VISIBLE window +hint and attribute. This allows for off-screen rendering in a way compatible +with most drivers, as well as moving a window to a specific position before +showing it. + + +@subsubsection news_30_undecorated Undecorated windows + +Windowed mode windows can now be created without decorations, e.g. things like +a frame, a title bar, with the @ref GLFW_DECORATED window hint and attribute. +This allows for the creation of things like splash screens. + + +@subsubsection news_30_keymods Modifier key bit masks + +[Modifier key bit mask](@ref mods) parameters have been added to the +[mouse button](@ref GLFWmousebuttonfun) and [key](@ref GLFWkeyfun) callbacks. + + +@subsubsection news_30_scancode Platform-specific scancodes + +A scancode parameter has been added to the [key callback](@ref GLFWkeyfun). Keys +that don't have a [key token](@ref keys) still get passed on with the key +parameter set to `GLFW_KEY_UNKNOWN`. These scancodes will vary between machines +and are intended to be used for key bindings. + + +@subsubsection news_30_jsname Joystick names + +The name of a joystick can now be retrieved using @ref glfwGetJoystickName. + + +@subsubsection news_30_doxygen Doxygen documentation + +You are reading it. + +*/ diff --git a/external/GLFW/docs/quick.dox b/external/glfw-3.3.4/docs/quick.dox similarity index 84% rename from external/GLFW/docs/quick.dox rename to external/glfw-3.3.4/docs/quick.dox index ff2c6f0..3645fc0 100644 --- a/external/GLFW/docs/quick.dox +++ b/external/glfw-3.3.4/docs/quick.dox @@ -18,41 +18,40 @@ behave differently in GLFW 3. @subsection quick_include Including the GLFW header -In the source files of your application where you use OpenGL or GLFW, you need -to include the GLFW 3 header file. +In the source files of your application where you use GLFW, you need to include +its header file. @code #include @endcode -This defines all the constants, types and function prototypes of the GLFW API. -It also includes the OpenGL header from your development environment and -defines all the constants and types necessary for it to work on your platform -without including any platform-specific headers. +This header provides all the constants, types and function prototypes of the +GLFW API. -In other words: +By default it also includes the OpenGL header from your development environment. +On some platforms this header only supports older versions of OpenGL. The most +extreme case is Windows, where it typically only supports OpenGL 1.2. -- Do _not_ include the OpenGL header yourself, as GLFW does this for you in - a platform-independent way -- Do _not_ include `windows.h` or other platform-specific headers unless - you plan on using those APIs yourself -- If you _do_ need to include such headers, include them _before_ the GLFW - header and it will detect this +Most programs will instead use an +[extension loader library](@ref context_glext_auto) and include its header. +This example uses files generated by [glad](https://gen.glad.sh/). The GLFW +header can detect most such headers if they are included first and will then not +include the one from your development environment. -On some platforms supported by GLFW the OpenGL header and link library only -expose older versions of OpenGL. The most extreme case is Windows, which only -exposes OpenGL 1.2. The easiest way to work around this is to use an -[extension loader library](@ref context_glext_auto). +@code +#include +#include +@endcode -If you are using such a library then you should include its header _before_ the -GLFW header. This lets it replace the OpenGL header included by GLFW without -conflicts. This example uses -[glad](https://github.com/Dav1dde/glad), but the same rule applies to all such -libraries. +To make sure there will be no header conflicts, you can define @ref +GLFW_INCLUDE_NONE before the GLFW header to explicitly disable inclusion of the +development environment header. This also allows the two headers to be included +in any order. @code -#include +#define GLFW_INCLUDE_NONE #include +#include @endcode @@ -174,10 +173,10 @@ If you are using an [extension loader library](@ref context_glext_auto) to access modern OpenGL then this is when to initialize it, as the loader needs a current context to load from. This example uses [glad](https://github.com/Dav1dde/glad), but the same rule applies to all such -libraries. +libraries. @code -gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); +gladLoadGL(glfwGetProcAddress); @endcode @@ -246,12 +245,16 @@ glViewport(0, 0, width, height); You can also set a framebuffer size callback using @ref glfwSetFramebufferSizeCallback and be notified when the size changes. -Actual rendering with OpenGL is outside the scope of this tutorial, but there -are [many](https://open.gl/) [excellent](https://learnopengl.com/) -[tutorial](http://openglbook.com/) [sites](http://ogldev.atspace.co.uk/) that -teach modern OpenGL. Some of them use GLFW to create the context and window -while others use GLUT or SDL, but remember that OpenGL itself always works the -same. +The details of how to render with OpenGL is outside the scope of this tutorial, +but there are many excellent resources for learning modern OpenGL. Here are +a few of them: + + - [Anton's OpenGL 4 Tutorials](https://antongerdelan.net/opengl/) + - [Learn OpenGL](https://learnopengl.com/) + - [Open.GL](https://open.gl/) + +These all happen to use GLFW, but OpenGL itself works the same whatever API you +use to create the window and context. @subsection quick_timer Reading the timer @@ -309,7 +312,7 @@ done each frame after buffer swapping. There are two methods for processing pending events; polling and waiting. This example will use event polling, which processes only those events that have -already been received and then returns immediately. +already been received and then returns immediately. @code glfwPollEvents(); @@ -335,9 +338,9 @@ presses _Escape_ or closes the window. @snippet simple.c code The program above can be found in the -[source package](http://www.glfw.org/download.html) as `examples/simple.c` +[source package](https://www.glfw.org/download.html) as `examples/simple.c` and is compiled along with all other examples when you build GLFW. If you -built GLFW from the source package then already have this as `simple.exe` on +built GLFW from the source package then you already have this as `simple.exe` on Windows, `simple` on Linux or `simple.app` on macOS. This tutorial used only a few of the many functions GLFW provides. There are diff --git a/external/glfw-3.3.4/docs/spaces.svg b/external/glfw-3.3.4/docs/spaces.svg new file mode 100644 index 0000000..5b32646 --- /dev/null +++ b/external/glfw-3.3.4/docs/spaces.svg @@ -0,0 +1,877 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/external/GLFW/docs/vulkan.dox b/external/glfw-3.3.4/docs/vulkan.dox similarity index 78% rename from external/GLFW/docs/vulkan.dox rename to external/glfw-3.3.4/docs/vulkan.dox index 7de9cd6..68e3d5f 100644 --- a/external/GLFW/docs/vulkan.dox +++ b/external/glfw-3.3.4/docs/vulkan.dox @@ -1,31 +1,25 @@ /*! @page vulkan_guide Vulkan guide - + @tableofcontents -This guide is intended to fill the gaps between the [Vulkan -documentation](https://www.khronos.org/vulkan/) and the rest of the GLFW +This guide is intended to fill the gaps between the official [Vulkan +resources](https://www.khronos.org/vulkan/) and the rest of the GLFW documentation and is not a replacement for either. It assumes some familiarity with Vulkan concepts like loaders, devices, queues and surfaces and leaves it to the Vulkan documentation to explain the details of Vulkan functions. -To develop for Vulkan you should install an SDK for your platform, for example -the [LunarG Vulkan SDK](https://vulkan.lunarg.com/) for Windows and Linux or -[MoltenVK](https://moltengl.com/moltenvk/) for macOS. Apart from headers and -link libraries, they should also provide the validation layers necessary for -development. - -The GLFW library does not need the Vulkan SDK to enable support for Vulkan. -However, any Vulkan-specific test and example programs are built only if the -CMake files find a Vulkan SDK. +To develop for Vulkan you should download the [LunarG Vulkan +SDK](https://vulkan.lunarg.com/) for your platform. Apart from headers and link +libraries, they also provide the validation layers necessary for development. -@macos Because MoltenVK is typically not installed system-wide, you will need to -point CMake to it using the `CMAKE_FRAMEWORK_PATH` variable when configuring the -GLFW source tree. Set this variable to the `MoltenVK/macOS` subdirectory of the -SDK, either on the command-line or in the CMake GUI. +The [Vulkan Tutorial](https://vulkan-tutorial.com/) has more information on how +to use GLFW and Vulkan. The [Khronos Vulkan +Samples](https://github.com/KhronosGroup/Vulkan-Samples) also use GLFW, although +with a small framework in between. -For details on a specific function in this category, see the @ref vulkan. There +For details on a specific Vulkan support function, see the @ref vulkan. There are also guides for the other areas of the GLFW API. - @ref intro_guide @@ -39,18 +33,19 @@ are also guides for the other areas of the GLFW API. By default, GLFW will look for the Vulkan loader on demand at runtime via its standard name (`vulkan-1.dll` on Windows, `libvulkan.so.1` on Linux and other -Unix-like systems and `libMoltenVK.dylib` on macOS). This means that GLFW does +Unix-like systems and `libvulkan.1.dylib` on macOS). This means that GLFW does not need to be linked against the loader. However, it also means that if you are using the static library form of the Vulkan loader GLFW will either fail to find it or (worse) use the wrong one. -The @ref GLFW_VULKAN_STATIC CMake option makes GLFW link directly against the -static library form. Not linking against the Vulkan loader will then be -a compile-time error. +The @ref GLFW_VULKAN_STATIC CMake option makes GLFW call the Vulkan loader +directly instead of dynamically loading it at runtime. Not linking against the +Vulkan loader will then be a compile-time error. -@macos When using the static library form of MoltenVK (i.e. `MetalVK.framework` -and not `libMoltenVK.dylib`) you must also link against its dependencies: the -`Cocoa`, `Metal` and `QuartzCore` system frameworks and the `libc++` library. +@macos Because the Vulkan loader and ICD are not installed globally on macOS, +you need to set up the application bundle according to the LunarG SDK +documentation. This is explained in more detail in the +[SDK documentation for macOS](https://vulkan.lunarg.com/doc/sdk/latest/mac/getting_started.html). @section vulkan_include Including the Vulkan and GLFW header files @@ -98,7 +93,7 @@ if (glfwVulkanSupported()) This function returns `GLFW_TRUE` if the Vulkan loader and any minimally functional ICD was found. -If if one or both were not found, calling any other Vulkan related GLFW function +If one or both were not found, calling any other Vulkan related GLFW function will generate a @ref GLFW_API_UNAVAILABLE error. @@ -164,9 +159,9 @@ If it fails it will return `NULL` and GLFW will not be able to create Vulkan window surfaces. You can still use Vulkan for off-screen rendering and compute work. -The returned array will always contain `VK_KHR_surface`, so if you don't -require any additional extensions you can pass this list directly to the -`VkInstanceCreateInfo` struct. +If successful the returned array will always include `VK_KHR_surface`, so if +you don't require any additional extensions you can pass this list directly to +the `VkInstanceCreateInfo` struct. @code VkInstanceCreateInfo ici; @@ -180,7 +175,7 @@ ici.ppEnabledExtensionNames = extensions; Additional extensions may be required by future versions of GLFW. You should check whether 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. +`VkInstanceCreateInfo` struct. @section vulkan_present Querying for Vulkan presentation support @@ -197,7 +192,7 @@ if (glfwGetPhysicalDevicePresentationSupport(instance, physical_device, queue_fa } @endcode -The `VK_KHR_surface` extension additionally provides the +The `VK_KHR_surface` extension additionally provides the `vkGetPhysicalDeviceSurfaceSupportKHR` function, which performs the same test on an existing Vulkan surface. @@ -230,6 +225,10 @@ if (err) } @endcode +If an OpenGL or OpenGL ES context was created on the window, the context has +ownership of the presentation on the window and a Vulkan surface cannot be +created. + It is your responsibility to destroy the surface. GLFW does not destroy it for you. Call `vkDestroySurfaceKHR` function from the same extension to destroy it. diff --git a/external/GLFW/docs/window.dox b/external/glfw-3.3.4/docs/window.dox similarity index 81% rename from external/GLFW/docs/window.dox rename to external/glfw-3.3.4/docs/window.dox index 85663e7..ce85173 100644 --- a/external/GLFW/docs/window.dox +++ b/external/glfw-3.3.4/docs/window.dox @@ -1,7 +1,7 @@ /*! @page window_guide Window guide - + @tableofcontents This guide introduces the window related functions of GLFW. For details on @@ -48,7 +48,7 @@ the event. To create a full screen window, you need to specify which monitor the window should use. In most cases, the user's primary monitor is a good choice. -For more information about retrieving monitors, see @ref monitor_monitors. +For more information about retrieving monitors, see @ref monitor_monitors. @code GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", glfwGetPrimaryMonitor(), NULL); @@ -68,9 +68,9 @@ set for the chosen monitor as long as the window has input focus. For more information about retrieving video modes, see @ref monitor_modes. Video mode field | Corresponds to ------------------------ | ------------------------ -GLFWvidmode.width | `width` parameter -GLFWvidmode.height | `height` parameter +---------------- | -------------- +GLFWvidmode.width | `width` parameter of @ref glfwCreateWindow +GLFWvidmode.height | `height` parameter of @ref glfwCreateWindow GLFWvidmode.redBits | @ref GLFW_RED_BITS hint GLFWvidmode.greenBits | @ref GLFW_GREEN_BITS hint GLFWvidmode.blueBits | @ref GLFW_BLUE_BITS hint @@ -89,8 +89,8 @@ the desktop. This behavior can be disabled with the [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_hint) window hint, for example if you wish to simultaneously cover multiple monitors with full screen windows. -If a monitor is disconnected, any window that is full screen on that monitor -will be forced into windowed mode. See @ref monitor_event for more information. +If a monitor is disconnected, all windows that are full screen on that monitor +will be switched to windowed mode. See @ref monitor_event for more information. @subsubsection window_windowed_full_screen "Windowed full screen" windows @@ -146,16 +146,18 @@ is restored, but the gamma ramp is left untouched. There are a number of hints that can be set before the creation of a window and context. Some affect the window itself, others affect the framebuffer or context. These hints are set to their default values each time the library is -initialized with @ref glfwInit, can be set individually with @ref glfwWindowHint -and reset all at once to their defaults with @ref glfwDefaultWindowHints. +initialized with @ref glfwInit. Integer value hints can be set individually +with @ref glfwWindowHint and string value hints with @ref glfwWindowHintString. +You can reset all at once to their defaults with @ref glfwDefaultWindowHints. Some hints are platform specific. These are always valid to set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or calls. -Note that hints need to be set _before_ the creation of the window and context -you wish to have the specified attributes. +@note Window hints need to be set before the creation of the window and context +you wish to have the specified attributes. They function as additional +arguments to @ref glfwCreateWindow. @subsubsection window_hints_hard Hard and soft constraints @@ -225,13 +227,27 @@ __GLFW_CENTER_CURSOR__ specifies whether the cursor should be centered over newly created full screen windows. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This hint is ignored for windowed mode windows. -@anchor GLFW_TRANSPARENT_hint -__GLFW_TRANSPARENT__ specifies whether the window framebuffer will be -transparent. If enabled and supported by the system, the window framebuffer +@anchor GLFW_TRANSPARENT_FRAMEBUFFER_hint +__GLFW_TRANSPARENT_FRAMEBUFFER__ specifies whether the window framebuffer will +be transparent. If enabled and supported by the system, the window framebuffer alpha channel will be used to combine the framebuffer with the background. This does not affect window decorations. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. +@anchor GLFW_FOCUS_ON_SHOW_hint +__GLFW_FOCUS_ON_SHOW__ specifies whether the window will be given input +focus when @ref glfwShowWindow is called. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. + +@anchor GLFW_SCALE_TO_MONITOR +__GLFW_SCALE_TO_MONITOR__ specified whether the window content area should be +resized based on the [monitor content scale](@ref monitor_scale) of any monitor +it is placed on. This includes the initial placement when the window is +created. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. + +This hint only has an effect on platforms where screen coordinates and pixels +always map 1:1 such as Windows and X11. On platforms like macOS the resolution +of the framebuffer is changed independently of the window size. + @subsubsection window_hints_fb Framebuffer related hints @@ -321,7 +337,7 @@ constraint. If no client API is requested, this hint is ignored. will fail. @par -__Wayland, Mir:__ The EGL API _is_ the native context creation API, so this hint +__Wayland:__ The EGL API _is_ the native context creation API, so this hint will have no effect. @par @@ -385,10 +401,14 @@ Forward-compatibility is described in detail in the [OpenGL Reference Manual](https://www.opengl.org/registry/). @anchor GLFW_OPENGL_DEBUG_CONTEXT_hint -__GLFW_OPENGL_DEBUG_CONTEXT__ specifies whether to create a debug OpenGL -context, which may have additional error and performance issue reporting -functionality. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. If OpenGL ES -is requested, this hint is ignored. +__GLFW_OPENGL_DEBUG_CONTEXT__ specifies whether the context should be created +in debug mode, which may provide additional error and diagnostic reporting +functionality. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. + +@par +Debug contexts for OpenGL and OpenGL ES are described in detail by the +[GL_KHR_debug](https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_debug.txt) +extension. @anchor GLFW_OPENGL_PROFILE_hint __GLFW_OPENGL_PROFILE__ specifies which OpenGL profile to create the context @@ -441,10 +461,10 @@ __GLFW_COCOA_RETINA_FRAMEBUFFER__ specifies whether to use full resolution framebuffers on Retina displays. Possible values are `GLFW_TRUE` and `GLFW_FALSE`. This is ignored on other platforms. -@anchor GLFW_COCOA_FRAME_AUTOSAVE_hint -__GLFW_COCOA_FRAME_AUTOSAVE__ specifies whether to activate frame autosaving -using the window title specified at window creation. Possible values are -`GLFW_TRUE` and `GLFW_FALSE`. This is ignored on other platforms. +@anchor GLFW_COCOA_FRAME_NAME_hint +__GLFW_COCOA_FRAME_NAME__ specifies the UTF-8 encoded name to use for autosaving +the window frame, or if empty disables frame autosaving for the window. This is +ignored on other platforms. This is set with @ref glfwWindowHintString. @anchor GLFW_COCOA_GRAPHICS_SWITCHING_hint __GLFW_COCOA_GRAPHICS_SWITCHING__ specifies whether to in Automatic Graphics @@ -465,6 +485,15 @@ should also declare this in its `Info.plist` by setting the `NSSupportsAutomaticGraphicsSwitching` key to `true`. +@subsubsection window_hints_x11 X11 specific window hints + +@anchor GLFW_X11_CLASS_NAME_hint +@anchor GLFW_X11_INSTANCE_NAME_hint +__GLFW_X11_CLASS_NAME__ and __GLFW_X11_INSTANCE_NAME__ specifies the desired +ASCII encoded class and instance parts of the ICCCM `WM_CLASS` window property. +These are set with @ref glfwWindowHintString. + + @subsubsection window_hints_values Supported and default values Window hint | Default value | Supported values @@ -477,7 +506,9 @@ GLFW_AUTO_ICONIFY | `GLFW_TRUE` | `GLFW_TRUE` or `GL GLFW_FLOATING | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` GLFW_MAXIMIZED | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` GLFW_CENTER_CURSOR | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` -GLFW_TRANSPARENT | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` +GLFW_TRANSPARENT_FRAMEBUFFER | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` +GLFW_FOCUS_ON_SHOW | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` +GLFW_SCALE_TO_MONITOR | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` GLFW_RED_BITS | 8 | 0 to `INT_MAX` or `GLFW_DONT_CARE` GLFW_GREEN_BITS | 8 | 0 to `INT_MAX` or `GLFW_DONT_CARE` GLFW_BLUE_BITS | 8 | 0 to `INT_MAX` or `GLFW_DONT_CARE` @@ -504,8 +535,10 @@ GLFW_OPENGL_FORWARD_COMPAT | `GLFW_FALSE` | `GLFW_TRUE` or `GL GLFW_OPENGL_DEBUG_CONTEXT | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` GLFW_OPENGL_PROFILE | `GLFW_OPENGL_ANY_PROFILE` | `GLFW_OPENGL_ANY_PROFILE`, `GLFW_OPENGL_COMPAT_PROFILE` or `GLFW_OPENGL_CORE_PROFILE` GLFW_COCOA_RETINA_FRAMEBUFFER | `GLFW_TRUE` | `GLFW_TRUE` or `GLFW_FALSE` -GLFW_COCOA_FRAME_AUTOSAVE | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` +GLFW_COCOA_FRAME_NAME | `""` | A UTF-8 encoded frame autosave name GLFW_COCOA_GRAPHICS_SWITCHING | `GLFW_FALSE` | `GLFW_TRUE` or `GLFW_FALSE` +GLFW_X11_CLASS_NAME | `""` | An ASCII encoded `WM_CLASS` class name +GLFW_X11_INSTANCE_NAME | `""` | An ASCII encoded `WM_CLASS` instance name @section window_events Window event processing @@ -518,7 +551,7 @@ See @ref events. @subsection window_userptr User pointer Each window has a user pointer that can be set with @ref -glfwSetWindowUserPointer and fetched with @ref glfwGetWindowUserPointer. This +glfwSetWindowUserPointer and queried with @ref glfwGetWindowUserPointer. This can be used for any purpose you need and will not be modified by GLFW throughout the life-time of the window. @@ -570,7 +603,7 @@ void window_close_callback(GLFWwindow* window) The size of a window can be changed with @ref glfwSetWindowSize. For windowed mode windows, this sets the size, in -[screen coordinates](@ref coordinate_systems) of the _client area_ or _content +[screen coordinates](@ref coordinate_systems) of the _content area_ or _content area_ of the window. The window system may impose limits on window size. @code @@ -582,15 +615,15 @@ window's desired video mode. The video mode most closely matching the new desired video mode is set immediately. The window is resized to fit the resolution of the set video mode. -If you wish to be notified when a window is resized, whether by the user or -the system, set a size callback. +If you wish to be notified when a window is resized, whether by the user, the +system or your own code, set a size callback. @code glfwSetWindowSizeCallback(window, window_size_callback); @endcode The callback function receives the new size, in screen coordinates, of the -client area of the window when it is resized. +content area of the window when the window is resized. @code void window_size_callback(GLFWwindow* window, int width, int height) @@ -611,9 +644,9 @@ calls. The window size is in screen coordinates, not pixels. Use the [framebuffer size](@ref window_fbsize), which is in pixels, for pixel-based calls. -The above functions work with the size of the client area, but decorated windows -typically have title bars and window frames around this rectangle. You can -retrieve the extents of these with @ref glfwGetWindowFrameSize. +The above functions work with the size of the content area, but decorated +windows typically have title bars and window frames around this rectangle. You +can retrieve the extents of these with @ref glfwGetWindowFrameSize. @code int left, top, right, bottom; @@ -621,7 +654,7 @@ glfwGetWindowFrameSize(window, &left, &top, &right, &bottom); @endcode The returned values are the distances, in screen coordinates, from the edges of -the client area to the corresponding edges of the full window. As they are +the content area to the corresponding edges of the full window. As they are distances and not coordinates, they are always zero or positive. @@ -663,12 +696,57 @@ The size of a framebuffer may change independently of the size of a window, for example if the window is dragged between a regular monitor and a high-DPI one. +@subsection window_scale Window content scale + +The content scale for a window can be retrieved with @ref +glfwGetWindowContentScale. + +@code +float xscale, yscale; +glfwGetWindowContentScale(window, &xscale, &yscale); +@endcode + +The content scale is the ratio between the current DPI and the platform's +default DPI. This is especially important for text and any UI elements. If the +pixel dimensions of your UI scaled by this look appropriate on your machine then +it should appear at a reasonable size on other machines regardless of their DPI +and scaling settings. This relies on the system DPI and scaling settings being +somewhat correct. + +On systems where each monitors can have its own content scale, the window +content scale will depend on which monitor the system considers the window to be +on. + +If you wish to be notified when the content scale of a window changes, whether +because of a system setting change or because it was moved to a monitor with +a different scale, set a content scale callback. + +@code +glfwSetWindowContentScaleCallback(window, window_content_scale_callback); +@endcode + +The callback function receives the new content scale of the window. + +@code +void window_content_scale_callback(GLFWwindow* window, float xscale, float yscale) +{ + set_interface_scale(xscale, yscale); +} +@endcode + +On platforms where pixels and screen coordinates always map 1:1, the window +will need to be resized to appear the same size when it is moved to a monitor +with a different content scale. To have this done automatically both when the +window is created and when its content scale later changes, set the @ref +GLFW_SCALE_TO_MONITOR window hint. + + @subsection window_sizelimits Window size limits -The minimum and maximum size of the client area of a windowed mode window can be -enforced with @ref glfwSetWindowSizeLimits. The user may resize the window to -any size and aspect ratio within the specified limits, unless the aspect ratio -is also set. +The minimum and maximum size of the content area of a windowed mode window can +be enforced with @ref glfwSetWindowSizeLimits. The user may resize the window +to any size and aspect ratio within the specified limits, unless the aspect +ratio is also set. @code glfwSetWindowSizeLimits(window, 200, 200, 400, 400); @@ -683,7 +761,7 @@ glfwSetWindowSizeLimits(window, 640, 480, GLFW_DONT_CARE, GLFW_DONT_CARE); To disable size limits for a window, set them all to `GLFW_DONT_CARE`. -The aspect ratio of the client area of a windowed mode window can be enforced +The aspect ratio of the content area of a windowed mode window can be enforced with @ref glfwSetWindowAspectRatio. The user may resize the window freely unless size limits are also set, but the size will be constrained to maintain the aspect ratio. @@ -713,22 +791,22 @@ are undefined if they conflict. The position of a windowed-mode window can be changed with @ref glfwSetWindowPos. This moves the window so that the upper-left corner of its -client area has the specified [screen coordinates](@ref coordinate_systems). +content area has the specified [screen coordinates](@ref coordinate_systems). The window system may put limitations on window placement. @code glfwSetWindowPos(window, 100, 100); @endcode -If you wish to be notified when a window is moved, whether by the user, system -or your own code, set a position callback. +If you wish to be notified when a window is moved, whether by the user, the +system or your own code, set a position callback. @code glfwSetWindowPosCallback(window, window_pos_callback); @endcode -The callback function receives the new position of the upper-left corner of the -client area when the window is moved. +The callback function receives the new position, in screen coordinates, of the +upper-left corner of the content area when the window is moved. @code void window_pos_callback(GLFWwindow* window, int xpos, int ypos) @@ -737,7 +815,7 @@ void window_pos_callback(GLFWwindow* window, int xpos, int ypos) @endcode There is also @ref glfwGetWindowPos for directly retrieving the current position -of the client area of the window. +of the content area of the window. @code int xpos, ypos; @@ -856,7 +934,7 @@ When a full screen window is restored, the desired video mode is restored to its monitor as well. If you wish to be notified when a window is iconified or restored, whether by -the user, system or your own code, set a iconify callback. +the user, system or your own code, set an iconify callback. @code glfwSetWindowIconifyCallback(window, window_iconify_callback); @@ -959,6 +1037,10 @@ Hidden windows can be shown with @ref glfwShowWindow. glfwShowWindow(window); @endcode +By default, this function will also set the input focus to that window. Set +the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint to change +this behavior for all newly created windows, or change the behavior for an +existing window with @ref glfwSetWindowAttrib. You can also get the current visibility state with @ref glfwGetWindowAttrib. @@ -1071,27 +1153,63 @@ the window or framebuffer is resized. @subsection window_transparency Window transparency +GLFW supports two kinds of transparency for windows; framebuffer transparency +and whole window transparency. A single window may not use both methods. The +results of doing this are undefined. + +Both methods require the platform to support it and not every version of every +platform GLFW supports does this, so there are mechanisms to check whether the +window really is transparent. + Window framebuffers can be made transparent on a per-pixel per-frame basis with -the [GLFW_TRANSPARENT](@ref GLFW_TRANSPARENT_hint) window hint. +the [GLFW_TRANSPARENT_FRAMEBUFFER](@ref GLFW_TRANSPARENT_FRAMEBUFFER_hint) +window hint. @code -glfwWindowHint(GLFW_TRANSPARENT, GLFW_TRUE); +glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); @endcode -If supported by the system, the window framebuffer will be composited with the +If supported by the system, the window content area will be composited with the background using the framebuffer per-pixel alpha channel. This requires desktop compositing to be enabled on the system. It does not affect window decorations. You can check whether the window framebuffer was successfully made transparent -with the [GLFW_TRANSPARENT](@ref GLFW_TRANSPARENT_attrib) window attribute. +with the +[GLFW_TRANSPARENT_FRAMEBUFFER](@ref GLFW_TRANSPARENT_FRAMEBUFFER_attrib) +window attribute. @code -if (glfwGetWindowAttrib(window, GLFW_TRANSPARENT)) +if (glfwGetWindowAttrib(window, GLFW_TRANSPARENT_FRAMEBUFFER)) { // window framebuffer is currently transparent } @endcode +GLFW comes with an example that enabled framebuffer transparency called `gears`. + +The opacity of the whole window, including any decorations, can be set with @ref +glfwSetWindowOpacity. + +@code +glfwSetWindowOpacity(window, 0.5f); +@endcode + +The opacity (or alpha) value is a positive finite number between zero and one, +where 0 (zero) is fully transparent and 1 (one) is fully opaque. The initial +opacity value for newly created windows is 1. + +The current opacity of a window can be queried with @ref glfwGetWindowOpacity. + +@code +float opacity = glfwGetWindowOpacity(window); +@endcode + +If the system does not support whole window transparency, this function always +returns one. + +GLFW comes with a test program that lets you control whole window transparency +at run-time called `opacity`. + @subsection window_attribs Window attributes @@ -1110,8 +1228,9 @@ if (glfwGetWindowAttrib(window, GLFW_FOCUSED)) The [GLFW_DECORATED](@ref GLFW_DECORATED_attrib), [GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib), -[GLFW_FLOATING](@ref GLFW_FLOATING_attrib) and -[GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) window attributes can be +[GLFW_FLOATING](@ref GLFW_FLOATING_attrib), +[GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) and +[GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_attrib) window attributes can be changed with @ref glfwSetWindowAttrib. @code @@ -1134,6 +1253,11 @@ See @ref window_iconify for details. __GLFW_MAXIMIZED__ indicates whether the specified window is maximized. See @ref window_maximize for details. +@anchor GLFW_HOVERED_attrib +__GLFW_HOVERED__ indicates whether the cursor is currently directly over the +content area of the window, with no other windows between. See @ref +cursor_enter for details. + @anchor GLFW_VISIBLE_attrib __GLFW_VISIBLE__ indicates whether the specified window is visible. See @ref window_hide for details. @@ -1162,11 +1286,17 @@ called topmost or always-on-top. This can be set before creation with the [GLFW_FLOATING](@ref GLFW_FLOATING_hint) window hint or after with @ref glfwSetWindowAttrib. -@anchor GLFW_TRANSPARENT_attrib -__GLFW_TRANSPARENT__ indicates whether the specified window has a transparent -framebuffer, i.e. the window contents is composited with the background using -the window framebuffer alpha channel. See @ref window_transparency for details. +@anchor GLFW_TRANSPARENT_FRAMEBUFFER_attrib +__GLFW_TRANSPARENT_FRAMEBUFFER__ indicates whether the specified window has +a transparent framebuffer, i.e. the window contents is composited with the +background using the window framebuffer alpha channel. See @ref +window_transparency for details. +@anchor GLFW_FOCUS_ON_SHOW_attrib +__GLFW_FOCUS_ON_SHOW__ specifies whether the window will be given input +focus when @ref glfwShowWindow is called. This can be set before creation +with the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint or +after with @ref glfwSetWindowAttrib. @subsubsection window_attribs_ctx Context related attributes @@ -1195,8 +1325,8 @@ __GLFW_OPENGL_FORWARD_COMPAT__ is `GLFW_TRUE` if the window's context is an OpenGL forward-compatible one, or `GLFW_FALSE` otherwise. @anchor GLFW_OPENGL_DEBUG_CONTEXT_attrib -__GLFW_OPENGL_DEBUG_CONTEXT__ is `GLFW_TRUE` if the window's context is an -OpenGL debug context, or `GLFW_FALSE` otherwise. +__GLFW_OPENGL_DEBUG_CONTEXT__ is `GLFW_TRUE` if the window's context is in debug +mode, or `GLFW_FALSE` otherwise. @anchor GLFW_OPENGL_PROFILE_attrib __GLFW_OPENGL_PROFILE__ indicates the OpenGL profile used by the context. This @@ -1206,6 +1336,21 @@ unknown or the context is an OpenGL ES context. Note that the returned profile may not match the profile bits of the context flags, as GLFW will try other means of detecting the profile when no bits are set. +@anchor GLFW_CONTEXT_RELEASE_BEHAVIOR_attrib +__GLFW_CONTEXT_RELEASE_BEHAVIOR__ indicates the release used by the context. +Possible values are one of `GLFW_ANY_RELEASE_BEHAVIOR`, +`GLFW_RELEASE_BEHAVIOR_FLUSH` or `GLFW_RELEASE_BEHAVIOR_NONE`. If the +behavior is `GLFW_ANY_RELEASE_BEHAVIOR`, the default behavior of the context +creation API will be used. If the behavior is `GLFW_RELEASE_BEHAVIOR_FLUSH`, +the pipeline will be flushed whenever the context is released from being the +current one. If the behavior is `GLFW_RELEASE_BEHAVIOR_NONE`, the pipeline will +not be flushed on release. + +@anchor GLFW_CONTEXT_NO_ERROR_attrib +__GLFW_CONTEXT_NO_ERROR__ indicates whether errors are generated by the context. +Possible values are `GLFW_TRUE` and `GLFW_FALSE`. If enabled, situations that +would have generated errors instead cause undefined behavior. + @anchor GLFW_CONTEXT_ROBUSTNESS_attrib __GLFW_CONTEXT_ROBUSTNESS__ indicates the robustness strategy used by the context. This is `GLFW_LOSE_CONTEXT_ON_RESET` or `GLFW_NO_RESET_NOTIFICATION` @@ -1259,7 +1404,7 @@ glfwSwapBuffers(window); Sometimes it can be useful to select when the buffer swap will occur. With the function @ref glfwSwapInterval it is possible to select the minimum number of -monitor refreshes the driver wait should from the time @ref glfwSwapBuffers was +monitor refreshes the driver should wait from the time @ref glfwSwapBuffers was called before swapping the buffers: @code @@ -1277,4 +1422,10 @@ Note that this may not work on all machines, as some drivers have user-controlled settings that override any swap interval the application requests. +A context that supports either the `WGL_EXT_swap_control_tear` or the +`GLX_EXT_swap_control_tear` extension also accepts _negative_ swap intervals, +which allows the driver to swap immediately even if a frame arrives a little bit +late. This trades the risk of visible tears for greater framerate stability. +You can check for these extensions with @ref glfwExtensionSupported. + */ diff --git a/external/glfw-3.3.4/examples/CMakeLists.txt b/external/glfw-3.3.4/examples/CMakeLists.txt new file mode 100644 index 0000000..a884e6b --- /dev/null +++ b/external/glfw-3.3.4/examples/CMakeLists.txt @@ -0,0 +1,88 @@ + +link_libraries(glfw) + +include_directories("${GLFW_SOURCE_DIR}/deps") + +if (MATH_LIBRARY) + link_libraries("${MATH_LIBRARY}") +endif() + +if (MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +endif() + +if (WIN32) + set(ICON glfw.rc) +elseif (APPLE) + set(ICON glfw.icns) +endif() + +if (${CMAKE_VERSION} VERSION_EQUAL "3.1.0" OR + ${CMAKE_VERSION} VERSION_GREATER "3.1.0") + set(CMAKE_C_STANDARD 99) +else() + # Remove this fallback when removing support for CMake version less than 3.1 + add_compile_options("$<$:-std=c99>" + "$<$:-std=c99>" + "$<$:-std=c99>") + +endif() + +set(GLAD_GL "${GLFW_SOURCE_DIR}/deps/glad/gl.h" + "${GLFW_SOURCE_DIR}/deps/glad_gl.c") +set(GETOPT "${GLFW_SOURCE_DIR}/deps/getopt.h" + "${GLFW_SOURCE_DIR}/deps/getopt.c") +set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h" + "${GLFW_SOURCE_DIR}/deps/tinycthread.c") + +add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL}) +add_executable(gears WIN32 MACOSX_BUNDLE gears.c ${ICON} ${GLAD_GL}) +add_executable(heightmap WIN32 MACOSX_BUNDLE heightmap.c ${ICON} ${GLAD_GL}) +add_executable(offscreen offscreen.c ${ICON} ${GLAD_GL}) +add_executable(particles WIN32 MACOSX_BUNDLE particles.c ${ICON} ${TINYCTHREAD} ${GETOPT} ${GLAD_GL}) +add_executable(sharing WIN32 MACOSX_BUNDLE sharing.c ${ICON} ${GLAD_GL}) +add_executable(simple WIN32 MACOSX_BUNDLE simple.c ${ICON} ${GLAD_GL}) +add_executable(splitview WIN32 MACOSX_BUNDLE splitview.c ${ICON} ${GLAD_GL}) +add_executable(wave WIN32 MACOSX_BUNDLE wave.c ${ICON} ${GLAD_GL}) + +target_link_libraries(particles "${CMAKE_THREAD_LIBS_INIT}") +if (RT_LIBRARY) + target_link_libraries(particles "${RT_LIBRARY}") +endif() + +set(GUI_ONLY_BINARIES boing gears heightmap particles sharing simple splitview + wave) +set(CONSOLE_BINARIES offscreen) + +set_target_properties(${GUI_ONLY_BINARIES} ${CONSOLE_BINARIES} PROPERTIES + FOLDER "GLFW3/Examples") + +if (GLFW_USE_OSMESA) + target_compile_definitions(offscreen PRIVATE USE_NATIVE_OSMESA) +endif() + +if (MSVC) + # Tell MSVC to use main instead of WinMain for Windows subsystem executables + set_target_properties(${GUI_ONLY_BINARIES} PROPERTIES + LINK_FLAGS "/ENTRY:mainCRTStartup") +endif() + +if (APPLE) + set_target_properties(boing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Boing") + set_target_properties(gears PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Gears") + set_target_properties(heightmap PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Heightmap") + set_target_properties(particles PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Particles") + set_target_properties(sharing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Sharing") + set_target_properties(simple PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Simple") + set_target_properties(splitview PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "SplitView") + set_target_properties(wave PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Wave") + + set_source_files_properties(glfw.icns PROPERTIES + MACOSX_PACKAGE_LOCATION "Resources") + set_target_properties(${GUI_ONLY_BINARIES} PROPERTIES + MACOSX_BUNDLE_SHORT_VERSION_STRING ${GLFW_VERSION} + MACOSX_BUNDLE_LONG_VERSION_STRING ${GLFW_VERSION} + MACOSX_BUNDLE_ICON_FILE glfw.icns + MACOSX_BUNDLE_INFO_PLIST "${GLFW_SOURCE_DIR}/CMake/MacOSXBundleInfo.plist.in") +endif() + diff --git a/external/GLFW/examples/boing.c b/external/glfw-3.3.4/examples/boing.c similarity index 99% rename from external/GLFW/examples/boing.c rename to external/glfw-3.3.4/examples/boing.c index 45c867f..ca38908 100644 --- a/external/GLFW/examples/boing.c +++ b/external/glfw-3.3.4/examples/boing.c @@ -36,7 +36,8 @@ #include #include -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -165,7 +166,7 @@ void CrossProduct( vertex_t a, vertex_t b, vertex_t c, vertex_t *n ) v2 = c.y - a.y; v3 = c.z - a.z; - n->x = u2 * v3 - v2 * v3; + n->x = u2 * v3 - v2 * u3; n->y = u3 * v1 - v3 * u1; n->z = u1 * v2 - v1 * u2; } @@ -302,7 +303,7 @@ void cursor_position_callback( GLFWwindow* window, double x, double y ) * The Boing ball is sphere in which each facet is a rectangle. * Facet colors alternate between red and white. * The ball is built by stacking latitudinal circles. Each circle is composed - * of a widely-separated set of points, so that each facet is noticably large. + * of a widely-separated set of points, so that each facet is noticeably large. *****************************************************************************/ void DrawBoingBall( void ) { @@ -446,7 +447,7 @@ void DrawBoingBallBand( GLfloat long_lo, static int colorToggle = 0; /* - * Iterate thru the points of a latitude circle. + * Iterate through the points of a latitude circle. * A latitude circle is a 2D set of X,Z points. */ for ( lat_deg = 0; @@ -642,7 +643,7 @@ int main( void ) glfwSetCursorPosCallback(window, cursor_position_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval( 1 ); glfwGetFramebufferSize(window, &width, &height); diff --git a/external/GLFW/examples/gears.c b/external/glfw-3.3.4/examples/gears.c similarity index 98% rename from external/GLFW/examples/gears.c rename to external/glfw-3.3.4/examples/gears.c index f14b300..292f44b 100644 --- a/external/GLFW/examples/gears.c +++ b/external/glfw-3.3.4/examples/gears.c @@ -31,7 +31,8 @@ #include #include -#include +#include +#define GLFW_INCLUDE_NONE #include /** @@ -312,7 +313,7 @@ int main(int argc, char *argv[]) } glfwWindowHint(GLFW_DEPTH_BITS, 16); - glfwWindowHint(GLFW_TRANSPARENT, GLFW_TRUE); + glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); window = glfwCreateWindow( 300, 300, "Gears", NULL, NULL ); if (!window) @@ -327,7 +328,7 @@ int main(int argc, char *argv[]) glfwSetKeyCallback(window, key); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval( 1 ); glfwGetFramebufferSize(window, &width, &height); diff --git a/external/GLFW/examples/glfw.icns b/external/glfw-3.3.4/examples/glfw.icns similarity index 100% rename from external/GLFW/examples/glfw.icns rename to external/glfw-3.3.4/examples/glfw.icns diff --git a/external/GLFW/examples/glfw.ico b/external/glfw-3.3.4/examples/glfw.ico similarity index 100% rename from external/GLFW/examples/glfw.ico rename to external/glfw-3.3.4/examples/glfw.ico diff --git a/external/GLFW/examples/glfw.rc b/external/glfw-3.3.4/examples/glfw.rc similarity index 100% rename from external/GLFW/examples/glfw.rc rename to external/glfw-3.3.4/examples/glfw.rc diff --git a/external/GLFW/examples/heightmap.c b/external/glfw-3.3.4/examples/heightmap.c similarity index 99% rename from external/GLFW/examples/heightmap.c rename to external/glfw-3.3.4/examples/heightmap.c index b57815e..13a3c1e 100644 --- a/external/GLFW/examples/heightmap.c +++ b/external/glfw-3.3.4/examples/heightmap.c @@ -29,7 +29,8 @@ #include #include -#include +#include +#define GLFW_INCLUDE_NONE #include /* Map height updates */ @@ -432,7 +433,7 @@ int main(int argc, char** argv) glfwSetKeyCallback(window, key_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); /* Prepare opengl resources for rendering */ shader_program = make_shader_program(vertex_shader_text, fragment_shader_text); diff --git a/external/GLFW/examples/offscreen.c b/external/glfw-3.3.4/examples/offscreen.c similarity index 98% rename from external/GLFW/examples/offscreen.c rename to external/glfw-3.3.4/examples/offscreen.c index b19de0d..16b8f3c 100644 --- a/external/GLFW/examples/offscreen.c +++ b/external/glfw-3.3.4/examples/offscreen.c @@ -23,7 +23,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #if USE_NATIVE_OSMESA @@ -104,7 +105,7 @@ int main(void) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); // NOTE: OpenGL error checks have been omitted for brevity @@ -147,6 +148,7 @@ int main(void) glUseProgram(program); glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp); glDrawArrays(GL_TRIANGLES, 0, 3); + glFinish(); #if USE_NATIVE_OSMESA glfwGetOSMesaColorBuffer(window, &width, &height, NULL, (void**) &buffer); diff --git a/external/GLFW/examples/particles.c b/external/glfw-3.3.4/examples/particles.c similarity index 99% rename from external/GLFW/examples/particles.c rename to external/glfw-3.3.4/examples/particles.c index 488289a..9556cca 100644 --- a/external/GLFW/examples/particles.c +++ b/external/glfw-3.3.4/examples/particles.c @@ -39,7 +39,8 @@ #include #include -#include +#include +#define GLFW_INCLUDE_NONE #include // Define tokens for GL_EXT_separate_specular_color if not already defined @@ -443,7 +444,7 @@ static void draw_particles(GLFWwindow* window, double t, float dt) } // Set up vertex arrays. We use interleaved arrays, which is easier to - // handle (in most situations) and it gives a linear memeory access + // handle (in most situations) and it gives a linear memory access // access pattern (which may give better performance in some // situations). GL_T2F_C4UB_V3F means: 2 floats for texture coords, // 4 ubytes for color and 3 floats for vertex coord (in that order). @@ -653,7 +654,7 @@ static void draw_fountain(void) //======================================================================== -// Recursive function for building variable tesselated floor +// Recursive function for building variable tessellated floor //======================================================================== static void tessellate_floor(float x1, float y1, float x2, float y2, int depth) @@ -720,7 +721,7 @@ static void draw_floor(void) glMaterialfv(GL_FRONT, GL_SPECULAR, floor_specular); glMaterialf(GL_FRONT, GL_SHININESS, floor_shininess); - // Draw floor as a bunch of triangle strips (high tesselation + // Draw floor as a bunch of triangle strips (high tessellation // improves lighting) glNormal3f(0.f, 0.f, 1.f); glBegin(GL_QUADS); @@ -994,7 +995,7 @@ int main(int argc, char** argv) glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); glfwSetFramebufferSizeCallback(window, resize_callback); diff --git a/external/GLFW/tests/sharing.c b/external/glfw-3.3.4/examples/sharing.c similarity index 85% rename from external/GLFW/tests/sharing.c rename to external/glfw-3.3.4/examples/sharing.c index e5ffadc..4a1a232 100644 --- a/external/GLFW/tests/sharing.c +++ b/external/glfw-3.3.4/examples/sharing.c @@ -1,5 +1,5 @@ //======================================================================== -// Context sharing test program +// Context sharing example // Copyright (c) Camilla Löwy // // This software is provided 'as-is', without any express or implied @@ -22,15 +22,11 @@ // distribution. // //======================================================================== -// -// This program is used to test sharing of objects between contexts -// -//======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include -#include #include #include @@ -71,17 +67,6 @@ static void error_callback(int error, const char* description) fprintf(stderr, "Error: %s\n", description); } -void APIENTRY debug_callback(GLenum source, - GLenum type, - GLuint id, - GLenum severity, - GLsizei length, - const GLchar* message, - const void* user) -{ - fprintf(stderr, "Error: %s\n", message); -} - static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (action == GLFW_PRESS && key == GLFW_KEY_ESCAPE) @@ -90,28 +75,15 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, int main(int argc, char** argv) { - int ch; GLFWwindow* windows[2]; GLuint texture, program, vertex_buffer; GLint mvp_location, vpos_location, color_location, texture_location; - srand((unsigned int) time(NULL)); - glfwSetErrorCallback(error_callback); if (!glfwInit()) exit(EXIT_FAILURE); - while ((ch = getopt(argc, argv, "d")) != -1) - { - switch (ch) - { - case 'd': - glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE); - break; - } - } - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); @@ -132,13 +104,7 @@ int main(int argc, char** argv) // The contexts are created with the same APIs so the function // pointers should be re-usable between them - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); - - if (GLAD_GL_KHR_debug) - { - glDebugMessageCallback(debug_callback, NULL); - glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE); - } + gladLoadGL(glfwGetProcAddress); // Create the OpenGL objects inside the first context, created above // All objects will be shared with the second context, created below @@ -150,6 +116,8 @@ int main(int argc, char** argv) glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); + srand((unsigned int) glfwGetTimerValue()); + for (y = 0; y < 16; y++) { for (x = 0; x < 16; x++) @@ -235,8 +203,8 @@ int main(int argc, char** argv) int i; const vec3 colors[2] = { - { 0.3f, 0.4f, 1.f }, - { 0.8f, 0.4f, 1.f } + { 0.8f, 0.4f, 1.f }, + { 0.3f, 0.4f, 1.f } }; for (i = 0; i < 2; i++) diff --git a/external/GLFW/examples/simple.c b/external/glfw-3.3.4/examples/simple.c similarity index 98% rename from external/GLFW/examples/simple.c rename to external/glfw-3.3.4/examples/simple.c index 7752a36..95d8fe6 100644 --- a/external/GLFW/examples/simple.c +++ b/external/glfw-3.3.4/examples/simple.c @@ -24,7 +24,8 @@ //======================================================================== //! [code] -#include +#include +#define GLFW_INCLUDE_NONE #include #include "linmath.h" @@ -98,7 +99,7 @@ int main(void) glfwSetKeyCallback(window, key_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); // NOTE: OpenGL error checks have been omitted for brevity diff --git a/external/GLFW/examples/splitview.c b/external/glfw-3.3.4/examples/splitview.c similarity index 99% rename from external/GLFW/examples/splitview.c rename to external/glfw-3.3.4/examples/splitview.c index 12f837d..58441db 100644 --- a/external/GLFW/examples/splitview.c +++ b/external/glfw-3.3.4/examples/splitview.c @@ -3,14 +3,15 @@ // // The program uses a "split window" view, rendering four views of the // same scene in one window (e.g. uesful for 3D modelling software). This -// demo uses scissors to separete the four different rendering areas from +// demo uses scissors to separate the four different rendering areas from // each other. // // (If the code seems a little bit strange here and there, it may be // because I am not a friend of orthogonal projections) //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #if defined(_MSC_VER) @@ -513,7 +514,7 @@ int main(void) // Enable vsync glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); if (GLAD_GL_ARB_multisample || GLAD_GL_VERSION_1_3) diff --git a/external/GLFW/examples/wave.c b/external/glfw-3.3.4/examples/wave.c similarity index 99% rename from external/GLFW/examples/wave.c rename to external/glfw-3.3.4/examples/wave.c index f5af379..7acb8b9 100644 --- a/external/GLFW/examples/wave.c +++ b/external/glfw-3.3.4/examples/wave.c @@ -17,7 +17,8 @@ #include #include -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -412,7 +413,7 @@ int main(int argc, char* argv[]) glfwSetScrollCallback(window, scroll_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); glfwGetFramebufferSize(window, &width, &height); @@ -455,6 +456,7 @@ int main(int argc, char* argv[]) glfwPollEvents(); } + glfwTerminate(); exit(EXIT_SUCCESS); } diff --git a/external/GLFW/include/GLFW/glfw3.h b/external/glfw-3.3.4/include/GLFW/glfw3.h similarity index 80% rename from external/GLFW/include/GLFW/glfw3.h rename to external/glfw-3.3.4/include/GLFW/glfw3.h index 8e6bc42..c8d7cfa 100644 --- a/external/GLFW/include/GLFW/glfw3.h +++ b/external/glfw-3.3.4/include/GLFW/glfw3.h @@ -3,7 +3,7 @@ * A library for OpenGL, window and input *------------------------------------------------------------------------ * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2016 Camilla Löwy + * Copyright (c) 2006-2019 Camilla Löwy * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages @@ -52,7 +52,7 @@ extern "C" { * 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 +/*! @defgroup vulkan Vulkan support reference * @brief Functions and types related to Vulkan. * * This is the reference documentation for Vulkan related functions and types. @@ -96,11 +96,30 @@ extern "C" { #define _WIN32 #endif /* _WIN32 */ +/* Include because most Windows GLU headers need wchar_t and + * the macOS OpenGL header blocks the definition of ptrdiff_t by glext.h. + * Include it unconditionally to avoid surprising side-effects. + */ +#include + +/* Include because it is needed by Vulkan and related functions. + * Include it unconditionally to avoid surprising side-effects. + */ +#include + +#if defined(GLFW_INCLUDE_VULKAN) + #include +#endif /* Vulkan header */ + +/* The Vulkan header may have indirectly included windows.h (because of + * VK_USE_PLATFORM_WIN32_KHR) so we offer our replacement symbols after it. + */ + /* 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 +#if !defined(APIENTRY) + #if defined(_WIN32) #define APIENTRY __stdcall #else #define APIENTRY @@ -122,17 +141,6 @@ extern "C" { #define GLFW_CALLBACK_DEFINED #endif /* CALLBACK */ -/* Include because most Windows GLU headers need wchar_t and - * the macOS OpenGL header blocks the definition of ptrdiff_t by glext.h. - * Include it unconditionally to avoid surprising side-effects. - */ -#include - -/* Include because it is needed by Vulkan and related functions. - * Include it unconditionally to avoid surprising side-effects. - */ -#include - /* Include the chosen OpenGL or OpenGL ES headers. */ #if defined(GLFW_INCLUDE_ES1) @@ -185,7 +193,38 @@ extern "C" { #endif /*__APPLE__*/ -#elif !defined(GLFW_INCLUDE_NONE) +#elif defined(GLFW_INCLUDE_GLU) + + #if defined(__APPLE__) + + #if defined(GLFW_INCLUDE_GLU) + #include + #endif + + #else /*__APPLE__*/ + + #if defined(GLFW_INCLUDE_GLU) + #include + #endif + + #endif /*__APPLE__*/ + +#elif !defined(GLFW_INCLUDE_NONE) && \ + !defined(__gl_h_) && \ + !defined(__gles1_gl_h_) && \ + !defined(__gles2_gl2_h_) && \ + !defined(__gles2_gl3_h_) && \ + !defined(__gles2_gl31_h_) && \ + !defined(__gles2_gl32_h_) && \ + !defined(__gl_glcorearb_h_) && \ + !defined(__gl2_h_) /*legacy*/ && \ + !defined(__gl3_h_) /*legacy*/ && \ + !defined(__gl31_h_) /*legacy*/ && \ + !defined(__gl32_h_) /*legacy*/ && \ + !defined(__glcorearb_h_) /*legacy*/ && \ + !defined(__GL_H__) /*non-standard*/ && \ + !defined(__gltypes_h_) /*non-standard*/ && \ + !defined(__glee_h_) /*non-standard*/ #if defined(__APPLE__) @@ -193,9 +232,6 @@ extern "C" { #define GL_GLEXT_LEGACY #endif #include - #if defined(GLFW_INCLUDE_GLU) - #include - #endif #else /*__APPLE__*/ @@ -203,18 +239,11 @@ extern "C" { #if defined(GLFW_INCLUDE_GLEXT) #include #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif #endif /*__APPLE__*/ #endif /* OpenGL and OpenGL ES headers */ -#if defined(GLFW_INCLUDE_VULKAN) - #include -#endif /* Vulkan header */ - #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 @@ -266,26 +295,27 @@ extern "C" { * API changes. * @ingroup init */ -#define GLFW_VERSION_REVISION 0 +#define GLFW_VERSION_REVISION 4 /*! @} */ -/*! @name Boolean values - * @{ */ /*! @brief One. * - * One. Seriously. You don't _need_ to use this symbol in your code. It's - * semantic sugar for the number 1. You can also use `1` or `true` or `_True` - * or `GL_TRUE` or whatever you want. + * This is only semantic sugar for the number 1. You can instead use `1` or + * `true` or `_True` or `GL_TRUE` or `VK_TRUE` or anything else that is equal + * to one. + * + * @ingroup init */ #define GLFW_TRUE 1 /*! @brief Zero. * - * Zero. Seriously. You don't _need_ to use this symbol in your code. It's - * semantic sugar for the number 0. You can also use `0` or `false` or - * `_False` or `GL_FALSE` or whatever you want. + * This is only semantic sugar for the number 0. You can instead use `0` or + * `false` or `_False` or `GL_FALSE` or `VK_FALSE` or anything else that is + * equal to zero. + * + * @ingroup init */ #define GLFW_FALSE 0 -/*! @} */ /*! @name Key and button actions * @{ */ @@ -313,6 +343,7 @@ extern "C" { /*! @} */ /*! @defgroup hat_state Joystick hat states + * @brief Joystick hat states. * * See [joystick hat input](@ref joystick_hat) for how these are used. * @@ -493,17 +524,37 @@ extern "C" { * @{ */ /*! @brief If this bit is set one or more Shift keys were held down. + * + * 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. + * + * 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. + * + * 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. + * + * If this bit is set one or more Super keys were held down. */ #define GLFW_MOD_SUPER 0x0008 +/*! @brief If this bit is set the Caps Lock key is enabled. + * + * If this bit is set the Caps Lock key is enabled and the @ref + * GLFW_LOCK_KEY_MODS input mode is set. + */ +#define GLFW_MOD_CAPS_LOCK 0x0010 +/*! @brief If this bit is set the Num Lock key is enabled. + * + * If this bit is set the Num Lock key is enabled and the @ref + * GLFW_LOCK_KEY_MODS input mode is set. + */ +#define GLFW_MOD_NUM_LOCK 0x0020 /*! @} */ @@ -789,10 +840,22 @@ extern "C" { #define GLFW_CENTER_CURSOR 0x00020009 /*! @brief Window framebuffer transparency hint and attribute * - * Window framebuffer transparency [window hint](@ref GLFW_TRANSPARENT_hint) - * and [window attribute](@ref GLFW_TRANSPARENT_attrib). + * Window framebuffer transparency + * [window hint](@ref GLFW_TRANSPARENT_FRAMEBUFFER_hint) and + * [window attribute](@ref GLFW_TRANSPARENT_FRAMEBUFFER_attrib). + */ +#define GLFW_TRANSPARENT_FRAMEBUFFER 0x0002000A +/*! @brief Mouse cursor hover window attribute. + * + * Mouse cursor hover [window attribute](@ref GLFW_HOVERED_attrib). + */ +#define GLFW_HOVERED 0x0002000B +/*! @brief Input focus on calling show window hint and attribute + * + * Input focus [window hint](@ref GLFW_FOCUS_ON_SHOW_hint) or + * [window attribute](@ref GLFW_FOCUS_ON_SHOW_attrib). */ -#define GLFW_TRANSPARENT 0x0002000A +#define GLFW_FOCUS_ON_SHOW 0x0002000C /*! @brief Framebuffer bit depth hint. * @@ -883,68 +946,88 @@ extern "C" { #define GLFW_CLIENT_API 0x00022001 /*! @brief Context client API major version hint and attribute. * - * Context client API major version [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context client API major version [hint](@ref GLFW_CONTEXT_VERSION_MAJOR_hint) + * and [attribute](@ref GLFW_CONTEXT_VERSION_MAJOR_attrib). */ #define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 /*! @brief Context client API minor version hint and attribute. * - * Context client API minor version [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context client API minor version [hint](@ref GLFW_CONTEXT_VERSION_MINOR_hint) + * and [attribute](@ref GLFW_CONTEXT_VERSION_MINOR_attrib). */ #define GLFW_CONTEXT_VERSION_MINOR 0x00022003 /*! @brief Context client API revision number hint and attribute. * - * Context client API revision number [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context client API revision number + * [attribute](@ref GLFW_CONTEXT_REVISION_attrib). */ #define GLFW_CONTEXT_REVISION 0x00022004 /*! @brief Context robustness hint and attribute. * - * Context client API revision number [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context client API revision number [hint](@ref GLFW_CONTEXT_ROBUSTNESS_hint) + * and [attribute](@ref GLFW_CONTEXT_ROBUSTNESS_attrib). */ #define GLFW_CONTEXT_ROBUSTNESS 0x00022005 /*! @brief OpenGL forward-compatibility hint and attribute. * - * OpenGL forward-compatibility [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * OpenGL forward-compatibility [hint](@ref GLFW_OPENGL_FORWARD_COMPAT_hint) + * and [attribute](@ref GLFW_OPENGL_FORWARD_COMPAT_attrib). */ #define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 -/*! @brief OpenGL debug context hint and attribute. +/*! @brief Debug mode context hint and attribute. * - * OpenGL debug context [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Debug mode context [hint](@ref GLFW_OPENGL_DEBUG_CONTEXT_hint) and + * [attribute](@ref GLFW_OPENGL_DEBUG_CONTEXT_attrib). */ #define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007 /*! @brief OpenGL profile hint and attribute. * - * OpenGL profile [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * OpenGL profile [hint](@ref GLFW_OPENGL_PROFILE_hint) and + * [attribute](@ref GLFW_OPENGL_PROFILE_attrib). */ #define GLFW_OPENGL_PROFILE 0x00022008 /*! @brief Context flush-on-release hint and attribute. * - * Context flush-on-release [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context flush-on-release [hint](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_hint) and + * [attribute](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_attrib). */ #define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 /*! @brief Context error suppression hint and attribute. * - * Context error suppression [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context error suppression [hint](@ref GLFW_CONTEXT_NO_ERROR_hint) and + * [attribute](@ref GLFW_CONTEXT_NO_ERROR_attrib). */ #define GLFW_CONTEXT_NO_ERROR 0x0002200A /*! @brief Context creation API hint and attribute. * - * Context creation API [hint](@ref GLFW_CLIENT_API_hint) and - * [attribute](@ref GLFW_CLIENT_API_attrib). + * Context creation API [hint](@ref GLFW_CONTEXT_CREATION_API_hint) and + * [attribute](@ref GLFW_CONTEXT_CREATION_API_attrib). */ #define GLFW_CONTEXT_CREATION_API 0x0002200B - +/*! @brief Window content area scaling window + * [window hint](@ref GLFW_SCALE_TO_MONITOR). + */ +#define GLFW_SCALE_TO_MONITOR 0x0002200C +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint). + */ #define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001 -#define GLFW_COCOA_FRAME_AUTOSAVE 0x00023002 +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_FRAME_NAME_hint). + */ +#define GLFW_COCOA_FRAME_NAME 0x00023002 +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_GRAPHICS_SWITCHING_hint). + */ #define GLFW_COCOA_GRAPHICS_SWITCHING 0x00023003 +/*! @brief X11 specific + * [window hint](@ref GLFW_X11_CLASS_NAME_hint). + */ +#define GLFW_X11_CLASS_NAME 0x00024001 +/*! @brief X11 specific + * [window hint](@ref GLFW_X11_CLASS_NAME_hint). + */ +#define GLFW_X11_INSTANCE_NAME 0x00024002 /*! @} */ #define GLFW_NO_API 0 @@ -962,6 +1045,8 @@ extern "C" { #define GLFW_CURSOR 0x00033001 #define GLFW_STICKY_KEYS 0x00033002 #define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 +#define GLFW_LOCK_KEY_MODS 0x00033004 +#define GLFW_RAW_MOUSE_MOTION 0x00033005 #define GLFW_CURSOR_NORMAL 0x00034001 #define GLFW_CURSOR_HIDDEN 0x00034002 @@ -1020,13 +1105,21 @@ extern "C" { /*! @addtogroup init * @{ */ +/*! @brief Joystick hat buttons init hint. + * + * Joystick hat buttons [init hint](@ref GLFW_JOYSTICK_HAT_BUTTONS). + */ #define GLFW_JOYSTICK_HAT_BUTTONS 0x00050001 - +/*! @brief macOS specific init hint. + * + * macOS specific [init hint](@ref GLFW_COCOA_CHDIR_RESOURCES_hint). + */ #define GLFW_COCOA_CHDIR_RESOURCES 0x00051001 +/*! @brief macOS specific init hint. + * + * macOS specific [init hint](@ref GLFW_COCOA_MENUBAR_hint). + */ #define GLFW_COCOA_MENUBAR 0x00051002 - -#define GLFW_X11_WM_CLASS_NAME 0x00052001 -#define GLFW_X11_WM_CLASS_CLASS 0x00052002 /*! @} */ #define GLFW_DONT_CARE -1 @@ -1045,7 +1138,7 @@ extern "C" { * @sa @ref glfwGetProcAddress * * @since Added in version 3.0. - + * * @ingroup context */ typedef void (*GLFWglproc)(void); @@ -1096,17 +1189,25 @@ typedef struct GLFWwindow GLFWwindow; * * @since Added in version 3.1. * - * @ingroup cursor + * @ingroup input */ typedef struct GLFWcursor GLFWcursor; -/*! @brief The function signature for error callbacks. +/*! @brief The function pointer type for error callbacks. * - * This is the function signature for error callback functions. + * This is the function pointer type for error callbacks. An error callback + * function has the following signature: + * @code + * void callback_name(int error_code, const char* description) + * @endcode * - * @param[in] error An [error code](@ref errors). + * @param[in] error_code An [error code](@ref errors). Future releases may add + * more error codes. * @param[in] description A UTF-8 encoded string describing the error. * + * @pointer_lifetime The error description string is valid until the callback + * function returns. + * * @sa @ref error_handling * @sa @ref glfwSetErrorCallback * @@ -1116,15 +1217,19 @@ typedef struct GLFWcursor GLFWcursor; */ typedef void (* GLFWerrorfun)(int,const char*); -/*! @brief The function signature for window position callbacks. +/*! @brief The function pointer type for window position callbacks. * - * This is the function signature for window position callback functions. + * This is the function pointer type for window position callbacks. A window + * position callback function has the following signature: + * @code + * void callback_name(GLFWwindow* window, int xpos, int ypos) + * @endcode * * @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. + * upper-left corner of the content 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. + * upper-left corner of the content area of the window. * * @sa @ref window_pos * @sa @ref glfwSetWindowPosCallback @@ -1135,9 +1240,13 @@ typedef void (* GLFWerrorfun)(int,const char*); */ typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); -/*! @brief The function signature for window resize callbacks. +/*! @brief The function pointer type for window size callbacks. * - * This is the function signature for window size callback functions. + * This is the function pointer type for window size callbacks. A window size + * callback function has the following signature: + * @code + * void callback_name(GLFWwindow* window, int width, int height) + * @endcode * * @param[in] window The window that was resized. * @param[in] width The new width, in screen coordinates, of the window. @@ -1153,9 +1262,13 @@ typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); */ typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); -/*! @brief The function signature for window close callbacks. +/*! @brief The function pointer type for window close callbacks. * - * This is the function signature for window close callback functions. + * This is the function pointer type for window close callbacks. A window + * close callback function has the following signature: + * @code + * void function_name(GLFWwindow* window) + * @endcode * * @param[in] window The window that the user attempted to close. * @@ -1169,9 +1282,13 @@ typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); */ typedef void (* GLFWwindowclosefun)(GLFWwindow*); -/*! @brief The function signature for window content refresh callbacks. +/*! @brief The function pointer type for window content refresh callbacks. * - * This is the function signature for window refresh callback functions. + * This is the function pointer type for window content refresh callbacks. + * A window content refresh callback function has the following signature: + * @code + * void function_name(GLFWwindow* window); + * @endcode * * @param[in] window The window whose content needs to be refreshed. * @@ -1185,9 +1302,13 @@ typedef void (* GLFWwindowclosefun)(GLFWwindow*); */ typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); -/*! @brief The function signature for window focus/defocus callbacks. +/*! @brief The function pointer type for window focus callbacks. * - * This is the function signature for window focus callback functions. + * This is the function pointer type for window focus callbacks. A window + * focus callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int focused) + * @endcode * * @param[in] window The window that gained or lost input focus. * @param[in] focused `GLFW_TRUE` if the window was given input focus, or @@ -1202,10 +1323,13 @@ typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); */ typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); -/*! @brief The function signature for window iconify/restore callbacks. +/*! @brief The function pointer type for window iconify callbacks. * - * This is the function signature for window iconify/restore callback - * functions. + * This is the function pointer type for window iconify callbacks. A window + * iconify callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int iconified) + * @endcode * * @param[in] window The window that was iconified or restored. * @param[in] iconified `GLFW_TRUE` if the window was iconified, or @@ -1220,13 +1344,16 @@ typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); */ typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); -/*! @brief The function signature for window maximize/restore callbacks. +/*! @brief The function pointer type for window maximize callbacks. * - * This is the function signature for window maximize/restore callback - * functions. + * This is the function pointer type for window maximize callbacks. A window + * maximize callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int maximized) + * @endcode * * @param[in] window The window that was maximized or restored. - * @param[in] iconified `GLFW_TRUE` if the window was maximized, or + * @param[in] maximized `GLFW_TRUE` if the window was maximized, or * `GLFW_FALSE` if it was restored. * * @sa @ref window_maximize @@ -1238,10 +1365,13 @@ typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); */ typedef void (* GLFWwindowmaximizefun)(GLFWwindow*,int); -/*! @brief The function signature for framebuffer resize callbacks. +/*! @brief The function pointer type for framebuffer size callbacks. * - * This is the function signature for framebuffer resize callback - * functions. + * This is the function pointer type for framebuffer size callbacks. + * A framebuffer size callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode * * @param[in] window The window whose framebuffer was resized. * @param[in] width The new width, in pixels, of the framebuffer. @@ -1256,14 +1386,40 @@ typedef void (* GLFWwindowmaximizefun)(GLFWwindow*,int); */ typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); -/*! @brief The function signature for mouse button callbacks. +/*! @brief The function pointer type for window content scale callbacks. * - * This is the function signature for mouse button callback functions. + * This is the function pointer type for window content scale callbacks. + * A window content scale callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, float xscale, float yscale) + * @endcode + * + * @param[in] window The window whose content scale changed. + * @param[in] xscale The new x-axis content scale of the window. + * @param[in] yscale The new y-axis content scale of the window. + * + * @sa @ref window_scale + * @sa @ref glfwSetWindowContentScaleCallback + * + * @since Added in version 3.3. + * + * @ingroup window + */ +typedef void (* GLFWwindowcontentscalefun)(GLFWwindow*,float,float); + +/*! @brief The function pointer type for mouse button callbacks. + * + * This is the function pointer type for mouse button callback functions. + * A mouse button callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int button, int action, int mods) + * @endcode * * @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] action One of `GLFW_PRESS` or `GLFW_RELEASE`. Future releases + * may add more actions. * @param[in] mods Bit field describing which [modifier keys](@ref mods) were * held down. * @@ -1277,15 +1433,19 @@ typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); */ typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); -/*! @brief The function signature for cursor position callbacks. +/*! @brief The function pointer type for cursor position callbacks. * - * This is the function signature for cursor position callback functions. + * This is the function pointer type for cursor position callbacks. A cursor + * position callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, double xpos, double ypos); + * @endcode * * @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. + * the content area. * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the - * client area. + * content area. * * @sa @ref cursor_pos * @sa @ref glfwSetCursorPosCallback @@ -1296,12 +1456,16 @@ typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); */ typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); -/*! @brief The function signature for cursor enter/leave callbacks. +/*! @brief The function pointer type for cursor enter/leave callbacks. * - * This is the function signature for cursor enter/leave callback functions. + * This is the function pointer type for cursor enter/leave callbacks. + * A cursor enter/leave callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int entered) + * @endcode * * @param[in] window The window that received the event. - * @param[in] entered `GLFW_TRUE` if the cursor entered the window's client + * @param[in] entered `GLFW_TRUE` if the cursor entered the window's content * area, or `GLFW_FALSE` if it left it. * * @sa @ref cursor_enter @@ -1313,9 +1477,13 @@ typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); */ typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); -/*! @brief The function signature for scroll callbacks. +/*! @brief The function pointer type for scroll callbacks. * - * This is the function signature for scroll callback functions. + * This is the function pointer type for scroll callbacks. A scroll callback + * function has the following signature: + * @code + * void function_name(GLFWwindow* window, double xoffset, double yoffset) + * @endcode * * @param[in] window The window that received the event. * @param[in] xoffset The scroll offset along the x-axis. @@ -1330,14 +1498,19 @@ typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); */ typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); -/*! @brief The function signature for keyboard key callbacks. +/*! @brief The function pointer type for keyboard key callbacks. * - * This is the function signature for keyboard key callback functions. + * This is the function pointer type for keyboard key callbacks. A keyboard + * key callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods) + * @endcode * * @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] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. Future + * releases may add more actions. * @param[in] mods Bit field describing which [modifier keys](@ref mods) were * held down. * @@ -1351,9 +1524,13 @@ typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); */ typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); -/*! @brief The function signature for Unicode character callbacks. +/*! @brief The function pointer type for Unicode character callbacks. * - * This is the function signature for Unicode character callback functions. + * This is the function pointer type for Unicode character callbacks. + * A Unicode character callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint) + * @endcode * * @param[in] window The window that received the event. * @param[in] codepoint The Unicode code point of the character. @@ -1368,12 +1545,16 @@ typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); */ typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); -/*! @brief The function signature for Unicode character with modifiers +/*! @brief The function pointer type 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. + * This is the function pointer type for Unicode character with modifiers + * callbacks. It is called for each input character, regardless of what + * modifier keys are held down. A Unicode character with modifiers callback + * function has the following signature: + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint, int mods) + * @endcode * * @param[in] window The window that received the event. * @param[in] codepoint The Unicode code point of the character. @@ -1383,20 +1564,29 @@ typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); * @sa @ref input_char * @sa @ref glfwSetCharModsCallback * + * @deprecated Scheduled for removal in version 4.0. + * * @since Added in version 3.1. * * @ingroup input */ typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); -/*! @brief The function signature for file drop callbacks. +/*! @brief The function pointer type for path drop callbacks. * - * This is the function signature for file drop callbacks. + * This is the function pointer type for path drop callbacks. A path drop + * callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int path_count, const char* paths[]) + * @endcode * * @param[in] window The window that received the event. - * @param[in] count The number of dropped files. + * @param[in] path_count The number of dropped paths. * @param[in] paths The UTF-8 encoded file and/or directory path names. * + * @pointer_lifetime The path array and its strings are valid until the + * callback function returns. + * * @sa @ref path_drop * @sa @ref glfwSetDropCallback * @@ -1404,14 +1594,19 @@ typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); * * @ingroup input */ -typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); +typedef void (* GLFWdropfun)(GLFWwindow*,int,const char*[]); -/*! @brief The function signature for monitor configuration callbacks. +/*! @brief The function pointer type for monitor configuration callbacks. * - * This is the function signature for monitor configuration callback functions. + * This is the function pointer type for monitor configuration callbacks. + * A monitor callback function has the following signature: + * @code + * void function_name(GLFWmonitor* monitor, int event) + * @endcode * * @param[in] monitor The monitor that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future + * releases may add more events. * * @sa @ref monitor_event * @sa @ref glfwSetMonitorCallback @@ -1422,13 +1617,17 @@ typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); */ typedef void (* GLFWmonitorfun)(GLFWmonitor*,int); -/*! @brief The function signature for joystick configuration callbacks. +/*! @brief The function pointer type for joystick configuration callbacks. * - * This is the function signature for joystick configuration callback - * functions. + * This is the function pointer type for joystick configuration callbacks. + * A joystick configuration callback function has the following signature: + * @code + * void function_name(int jid, int event) + * @endcode * * @param[in] jid The joystick that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future + * releases may add more events. * * @sa @ref joystick_event * @sa @ref glfwSetJoystickCallback @@ -1512,6 +1711,8 @@ typedef struct GLFWgammaramp * * @since Added in version 2.1. * @glfw3 Removed format and bytes-per-pixel members. + * + * @ingroup window */ typedef struct GLFWimage { @@ -1534,6 +1735,8 @@ typedef struct GLFWimage * @sa @ref glfwGetGamepadState * * @since Added in version 3.3. + * + * @ingroup input */ typedef struct GLFWgamepadstate { @@ -1575,6 +1778,10 @@ typedef struct GLFWgamepadstate * bundle, if present. This can be disabled with the @ref * GLFW_COCOA_CHDIR_RESOURCES init hint. * + * @remark @x11 This function will set the `LC_CTYPE` category of the + * application locale according to the current environment if that category is + * still "C". This is because the "C" locale breaks Unicode text input. + * * @thread_safety This function must only be called from the main thread. * * @sa @ref intro_init @@ -1598,6 +1805,8 @@ GLFWAPI int glfwInit(void); * call this function, as it is called by @ref glfwInit before it returns * failure. * + * This function has no effect if GLFW is not initialized. + * * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. * * @remark This function may be called before @ref glfwInit. @@ -1620,8 +1829,7 @@ GLFWAPI void glfwTerminate(void); /*! @brief Sets the specified init hint to the desired value. * - * This function sets hints for the next initialization of GLFW. Only integer - * type hints can be set with this function. + * This function sets hints for the next initialization of GLFW. * * The values you set hints to are never reset by GLFW, but they only take * effect during initialization. Once GLFW has been initialized, any values @@ -1630,7 +1838,7 @@ GLFWAPI void glfwTerminate(void); * * Some hints are platform specific. These may be set on any platform but they * will only affect their specific platform. Other platforms will ignore them. - * Setting these hints requires no platform specific headers or functions. + * Setting these hints requires no platform specific headers or functions. * * @param[in] hint The [init hint](@ref init_hints) to set. * @param[in] value The new value of the init hint. @@ -1644,7 +1852,6 @@ GLFWAPI void glfwTerminate(void); * * @sa init_hints * @sa glfwInit - * @sa glfwInitHintString * * @since Added in version 3.3. * @@ -1652,40 +1859,6 @@ GLFWAPI void glfwTerminate(void); */ GLFWAPI void glfwInitHint(int hint, int value); -/*! @brief Sets the specified init hint to the desired value. - * - * This function sets hints for the next initialization of GLFW. Only string - * type hints can be set with this function. - * - * The values you set hints to are never reset by GLFW, but they only take - * effect during initialization. Once GLFW has been initialized, any values - * you set will be ignored until the library is terminated and initialized - * again. - * - * Some hints are platform specific. These may be set on any platform but they - * will only affect their specific platform. Other platforms will ignore them. - * Setting these hints requires no platform specific headers or functions. - * - * @param[in] hint The [init hint](@ref init_hints) to set. - * @param[in] value The new value of the init hint. - * - * @errors Possible errors include @ref GLFW_INVALID_ENUM and @ref - * GLFW_INVALID_VALUE. - * - * @remarks This function may be called before @ref glfwInit. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa init_hints - * @sa glfwInit - * @sa glfwInitHint - * - * @since Added in version 3.3. - * - * @ingroup init - */ -GLFWAPI void glfwInitHintString(int hint, const char* value); - /*! @brief Retrieves the version of the GLFW library. * * This function retrieves the major, minor and revision numbers of the GLFW @@ -1795,10 +1968,17 @@ GLFWAPI int glfwGetError(const char** description); * 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 + * @param[in] callback The new callback, or `NULL` to remove the currently set * callback. * @return The previously set callback, or `NULL` if no callback was set. * + * @callback_signature + * @code + * void callback_name(int error_code, const char* description) + * @endcode + * For more information about the callback parameters, see the + * [callback pointer type](@ref GLFWerrorfun). + * * @errors None. * * @remark This function may be called before @ref glfwInit. @@ -1812,7 +1992,7 @@ GLFWAPI int glfwGetError(const char** description); * * @ingroup init */ -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun); +GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback); /*! @brief Returns the currently connected monitors. * @@ -1892,6 +2072,37 @@ GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); */ GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); +/*! @brief Retrieves the work area of the monitor. + * + * This function returns the position, in screen coordinates, of the upper-left + * corner of the work area of the specified monitor along with the work area + * size in screen coordinates. The work area is defined as the area of the + * monitor not occluded by the operating system task bar where present. If no + * task bar exists then the work area is the monitor resolution in screen + * coordinates. + * + * Any or all of the position and size arguments may be `NULL`. If an error + * occurs, all non-`NULL` position and size 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`. + * @param[out] width Where to store the monitor width, or `NULL`. + * @param[out] height Where to store the monitor height, 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_workarea + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); + /*! @brief Returns the physical size of the monitor. * * This function returns the size, in millimetres, of the display area of the @@ -1926,6 +2137,38 @@ GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); */ GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); +/*! @brief Retrieves the content scale for the specified monitor. + * + * This function retrieves the content scale for the specified monitor. The + * content scale is the ratio between the current DPI and the platform's + * default DPI. This is especially important for text and any UI elements. If + * the pixel dimensions of your UI scaled by this look appropriate on your + * machine then it should appear at a reasonable size on other machines + * regardless of their DPI and scaling settings. This relies on the system DPI + * and scaling settings being somewhat correct. + * + * The content scale may depend on both the monitor resolution and pixel + * density and on user settings. It may be very different from the raw DPI + * calculated from the physical size and current resolution. + * + * @param[in] monitor The monitor to query. + * @param[out] xscale Where to store the x-axis content scale, or `NULL`. + * @param[out] yscale Where to store the y-axis content scale, 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_scale + * @sa @ref glfwGetWindowContentScale + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* monitor, float* xscale, float* yscale); + /*! @brief Returns the name of the specified monitor. * * This function returns a human-readable name, encoded as UTF-8, of the @@ -1952,17 +2195,74 @@ GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* */ GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); +/*! @brief Sets the user pointer of the specified monitor. + * + * This function sets the user-defined pointer of the specified monitor. The + * current value is retained until the monitor is disconnected. The initial + * value is `NULL`. + * + * This function may be called from the monitor callback, even for a monitor + * that is being disconnected. + * + * @param[in] monitor The monitor 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 monitor_userptr + * @sa @ref glfwGetMonitorUserPointer + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* monitor, void* pointer); + +/*! @brief Returns the user pointer of the specified monitor. + * + * This function returns the current value of the user-defined pointer of the + * specified monitor. The initial value is `NULL`. + * + * This function may be called from the monitor callback, even for a monitor + * that is being disconnected. + * + * @param[in] monitor The monitor 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 monitor_userptr + * @sa @ref glfwSetMonitorUserPointer + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void* glfwGetMonitorUserPointer(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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWmonitor* monitor, int event) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWmonitorfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -1973,7 +2273,7 @@ GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); * * @ingroup monitor */ -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun); +GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback); /*! @brief Returns the available video modes for the specified monitor. * @@ -2038,9 +2338,9 @@ 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. + * This function generates an appropriately sized gamma ramp from the specified + * exponent and then calls @ref glfwSetGammaRamp with it. The value must be + * a finite number greater than zero. * * The software controlled gamma ramp is applied _in addition_ to the hardware * gamma correction, which today is usually an approximation of sRGB gamma. @@ -2056,8 +2356,8 @@ GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. * - * @remark @wayland Gamma handling is currently unavailable, this function will - * always emit @ref GLFW_PLATFORM_ERROR. + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. * * @thread_safety This function must only be called from the main thread. * @@ -2080,8 +2380,9 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. * - * @remark @wayland Gamma handling is currently unavailable, this function will - * always return `NULL` and emit @ref GLFW_PLATFORM_ERROR. + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR while + * returning `NULL`. * * @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 @@ -2118,13 +2419,13 @@ GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); * @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 The size of the specified gamma ramp should match the size of the + * current ramp for that monitor. * * @remark @win32 The gamma ramp size must be 256. * - * @remark @wayland Gamma handling is currently unavailable, this function will - * always emit @ref GLFW_PLATFORM_ERROR. + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. * * @pointer_lifetime The specified gamma ramp is copied before this function * returns. @@ -2150,6 +2451,7 @@ GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); * * @sa @ref window_hints * @sa @ref glfwWindowHint + * @sa @ref glfwWindowHintString * * @since Added in version 3.0. * @@ -2160,14 +2462,20 @@ 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. + * hints, once set, retain their values until changed by a call to this + * function or @ref glfwDefaultWindowHints, or until the library is terminated. + * + * Only integer value hints can be set with this function. String value hints + * are set with @ref glfwWindowHintString. * * 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. * + * Some hints are platform specific. These may be set on any platform but they + * will only affect their specific platform. Other platforms will ignore them. + * Setting these hints requires no platform specific headers or functions. + * * @param[in] hint The [window hint](@ref window_hints) to set. * @param[in] value The new value of the window hint. * @@ -2177,6 +2485,7 @@ GLFWAPI void glfwDefaultWindowHints(void); * @thread_safety This function must only be called from the main thread. * * @sa @ref window_hints + * @sa @ref glfwWindowHintString * @sa @ref glfwDefaultWindowHints * * @since Added in version 3.0. Replaces `glfwOpenWindowHint`. @@ -2185,6 +2494,44 @@ GLFWAPI void glfwDefaultWindowHints(void); */ GLFWAPI void glfwWindowHint(int hint, int value); +/*! @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 this + * function or @ref glfwDefaultWindowHints, or until the library is terminated. + * + * Only string type hints can be set with this function. Integer value hints + * are set with @ref glfwWindowHint. + * + * 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. + * + * Some hints are platform specific. These may be set on any platform but they + * will only affect their specific platform. Other platforms will ignore them. + * Setting these hints requires no platform specific headers or functions. + * + * @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. + * + * @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 window_hints + * @sa @ref glfwWindowHint + * @sa @ref glfwDefaultWindowHints + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwWindowHintString(int hint, const char* value); + /*! @brief Creates a window and its associated context. * * This function creates a window and its associated OpenGL or OpenGL ES @@ -2258,8 +2605,8 @@ GLFWAPI void glfwWindowHint(int hint, int value); * * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` it * will be set as the initial icon for the window. If no such icon is present, - * the `IDI_WINLOGO` icon will be used instead. To set a different icon, see - * @ref glfwSetWindowIcon. + * the `IDI_APPLICATION` icon will be used instead. To set a different icon, + * see @ref glfwSetWindowIcon. * * @remark @win32 The context to share resources with must not be current on * any other thread. @@ -2295,9 +2642,8 @@ GLFWAPI void glfwWindowHint(int hint, int value); * `CMake/MacOSXBundleInfo.plist.in` in the source tree. * * @remark @macos When activating frame autosaving with - * [GLFW_COCOA_FRAME_AUTOSAVE](@ref GLFW_COCOA_FRAME_AUTOSAVE_hint), the - * specified window size may be overriden by a previously saved size and - * position. + * [GLFW_COCOA_FRAME_NAME](@ref GLFW_COCOA_FRAME_NAME_hint), the specified + * window size and position may be overridden by previously saved values. * * @remark @x11 Some window managers will not respect the placement of * initially hidden windows. @@ -2307,24 +2653,27 @@ GLFWAPI void glfwWindowHint(int hint, int value); * query the final size, position or other attributes directly after window * creation. * - * @remark @x11 The name and class of the `WM_CLASS` window property will by - * default be set to the window title passed to this function. Set the @ref - * GLFW_X11_WM_CLASS_NAME and @ref GLFW_X11_WM_CLASS_CLASS init hints before - * initialization to override this. - * - * @remark @wayland The window frame is currently unimplemented, as if - * [GLFW_DECORATED](@ref GLFW_DECORATED_hint) was always set to `GLFW_FALSE`. - * A compositor can still emit close, resize or maximize events, using for - * example a keybind mechanism. + * @remark @x11 The class part of the `WM_CLASS` window property will by + * default be set to the window title passed to this function. The instance + * part will use the contents of the `RESOURCE_NAME` environment variable, if + * present and not empty, or fall back to the window title. Set the + * [GLFW_X11_CLASS_NAME](@ref GLFW_X11_CLASS_NAME_hint) and + * [GLFW_X11_INSTANCE_NAME](@ref GLFW_X11_INSTANCE_NAME_hint) window hints to + * override this. + * + * @remark @wayland Compositors should implement the xdg-decoration protocol + * for GLFW to decorate the window properly. If this protocol isn't + * supported, or if the compositor prefers client-side decorations, a very + * simple fallback frame will be drawn using the wp_viewporter protocol. A + * compositor can still emit close, maximize or fullscreen events, using for + * instance a keybind mechanism. If neither of these protocols is supported, + * the window won't be decorated. * * @remark @wayland A full screen window will not attempt to change the mode, * no matter what the requested size or refresh rate. * - * @remark @wayland The wl_shell protocol does not support window - * icons, the window will inherit the one defined in the application's - * desktop file, so this function emits @ref GLFW_PLATFORM_ERROR. - * - * @remark @wayland Screensaver inhibition is currently unimplemented. + * @remark @wayland Screensaver inhibition requires the idle-inhibit protocol + * to be implemented in the user's compositor. * * @thread_safety This function must only be called from the main thread. * @@ -2466,9 +2815,9 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) * in the Mac Developer Library. * - * @remark @wayland The wl_shell protocol does not support icons, the window - * will inherit the one defined in the application's desktop file, so this - * function emits @ref GLFW_PLATFORM_ERROR. + * @remark @wayland There is no existing protocol to change an icon, the + * window will thus inherit the one defined in the application's desktop file. + * This function always emits @ref GLFW_PLATFORM_ERROR. * * @thread_safety This function must only be called from the main thread. * @@ -2480,19 +2829,19 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); */ GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images); -/*! @brief Retrieves the position of the client area of the specified window. +/*! @brief Retrieves the position of the content 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. + * upper-left corner of the content 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`. + * the content area, or `NULL`. * @param[out] ypos Where to store the y-coordinate of the upper-left corner of - * the client area, or `NULL`. + * the content area, or `NULL`. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -2512,10 +2861,10 @@ GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* i */ GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); -/*! @brief Sets the position of the client area of the specified window. +/*! @brief Sets the position of the content 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 + * corner of the content 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 @@ -2525,8 +2874,8 @@ GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); * 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. + * @param[in] xpos The x-coordinate of the upper-left corner of the content area. + * @param[in] ypos The y-coordinate of the upper-left corner of the content area. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -2547,9 +2896,9 @@ GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); */ GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); -/*! @brief Retrieves the size of the client area of the specified window. +/*! @brief Retrieves the size of the content area of the specified window. * - * This function retrieves the size, in screen coordinates, of the client area + * This function retrieves the size, in screen coordinates, of the content area * of the specified window. If you wish to retrieve the size of the * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. * @@ -2558,9 +2907,9 @@ GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); * * @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`. + * content area, or `NULL`. * @param[out] height Where to store the height, in screen coordinates, of the - * client area, or `NULL`. + * content area, or `NULL`. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -2579,7 +2928,7 @@ 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 + * This function sets the size limits of the content area of the specified * window. If the window is full screen, the size limits only take effect * once it is made windowed. If the window is not resizable, this function * does nothing. @@ -2591,14 +2940,14 @@ GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); * dimensions and all must be greater than or equal to zero. * * @param[in] window The window to set limits for. - * @param[in] minwidth The minimum width, in screen coordinates, of the client + * @param[in] minwidth The minimum width, in screen coordinates, of the content * 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 + * content area, or `GLFW_DONT_CARE`. + * @param[in] maxwidth The maximum width, in screen coordinates, of the content * area, or `GLFW_DONT_CARE`. * @param[in] maxheight The maximum height, in screen coordinates, of the - * client area, or `GLFW_DONT_CARE`. + * content area, or `GLFW_DONT_CARE`. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. @@ -2622,7 +2971,7 @@ GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minhe /*! @brief Sets the aspect ratio of the specified window. * - * This function sets the required aspect ratio of the client area of the + * This function sets the required aspect ratio of the content 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. @@ -2663,9 +3012,9 @@ GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minhe */ GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); -/*! @brief Sets the size of the client area of the specified window. +/*! @brief Sets the size of the content area of the specified window. * - * This function sets the size, in screen coordinates, of the client area of + * This function sets the size, in screen coordinates, of the content area of * the specified window. * * For full screen windows, this function updates the resolution of its desired @@ -2681,9 +3030,9 @@ GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); * * @param[in] window The window to resize. * @param[in] width The desired width, in screen coordinates, of the window - * client area. + * content area. * @param[in] height The desired height, in screen coordinates, of the window - * client area. + * content area. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -2760,10 +3109,6 @@ GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height) * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. * - * @remark @wayland The window frame is currently unimplemented, as if - * [GLFW_DECORATED](@ref GLFW_DECORATED_hint) was always set to `GLFW_FALSE`, - * so the returned values will always be zero. - * * @thread_safety This function must only be called from the main thread. * * @sa @ref window_size @@ -2774,6 +3119,95 @@ GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height) */ GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); +/*! @brief Retrieves the content scale for the specified window. + * + * This function retrieves the content scale for the specified window. The + * content scale is the ratio between the current DPI and the platform's + * default DPI. This is especially important for text and any UI elements. If + * the pixel dimensions of your UI scaled by this look appropriate on your + * machine then it should appear at a reasonable size on other machines + * regardless of their DPI and scaling settings. This relies on the system DPI + * and scaling settings being somewhat correct. + * + * On systems where each monitors can have its own content scale, the window + * content scale will depend on which monitor the system considers the window + * to be on. + * + * @param[in] window The window to query. + * @param[out] xscale Where to store the x-axis content scale, or `NULL`. + * @param[out] yscale Where to store the y-axis content scale, 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_scale + * @sa @ref glfwSetWindowContentScaleCallback + * @sa @ref glfwGetMonitorContentScale + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowContentScale(GLFWwindow* window, float* xscale, float* yscale); + +/*! @brief Returns the opacity of the whole window. + * + * This function returns the opacity of the window, including any decorations. + * + * The opacity (or alpha) value is a positive finite number between zero and + * one, where zero is fully transparent and one is fully opaque. If the system + * does not support whole window transparency, this function always returns one. + * + * The initial opacity value for newly created windows is one. + * + * @param[in] window The window to query. + * @return The opacity value of the specified window. + * + * @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_transparency + * @sa @ref glfwSetWindowOpacity + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI float glfwGetWindowOpacity(GLFWwindow* window); + +/*! @brief Sets the opacity of the whole window. + * + * This function sets the opacity of the window, including any decorations. + * + * The opacity (or alpha) value is a positive finite number between zero and + * one, where zero is fully transparent and one is fully opaque. + * + * The initial opacity value for newly created windows is one. + * + * A window created with framebuffer transparency may not use whole window + * transparency. The results of doing this are undefined. + * + * @param[in] window The window to set the opacity for. + * @param[in] opacity The desired opacity of the specified window. + * + * @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_transparency + * @sa @ref glfwGetWindowOpacity + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowOpacity(GLFWwindow* window, float opacity); + /*! @brief Iconifies the specified window. * * This function iconifies (minimizes) the specified window if it was @@ -2789,7 +3223,8 @@ GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int * GLFW_PLATFORM_ERROR. * * @remark @wayland There is no concept of iconification in wl_shell, this - * function will always emit @ref GLFW_PLATFORM_ERROR. + * function will emit @ref GLFW_PLATFORM_ERROR when using this deprecated + * protocol. * * @thread_safety This function must only be called from the main thread. * @@ -2862,6 +3297,11 @@ GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); * hidden. If the window is already visible or is in full screen mode, this * function does nothing. * + * By default, windowed mode windows are focused when shown + * Set the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint + * to change this behavior for all newly created windows, or change the + * behavior for an existing window with @ref glfwSetWindowAttrib. + * * @param[in] window The window to make visible. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref @@ -2909,6 +3349,10 @@ GLFWAPI void glfwHideWindow(GLFWwindow* window); * initially created. Set the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) to * disable this behavior. * + * Also by default, windowed mode windows are focused when shown + * with @ref glfwShowWindow. Set the + * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) 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. @@ -2994,7 +3438,7 @@ GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); * 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 + * place the window content 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 @@ -3007,12 +3451,12 @@ GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); * @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. + * content 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 + * content area. + * @param[in] width The desired with, in screen coordinates, of the content + * area or video mode. + * @param[in] height The desired height, in screen coordinates, of the content * area or video mode. * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode, * or `GLFW_DONT_CARE`. @@ -3083,8 +3527,9 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); * * The supported attributes are [GLFW_DECORATED](@ref GLFW_DECORATED_attrib), * [GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib), - * [GLFW_FLOATING](@ref GLFW_FLOATING_attrib) and - * [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib). + * [GLFW_FLOATING](@ref GLFW_FLOATING_attrib), + * [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) and + * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_attrib). * * Some of these attributes are ignored for full screen windows. The new * value will take effect if the window is later made windowed. @@ -3160,15 +3605,23 @@ 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. + * called when the window is moved. The callback is provided with the + * position, in screen coordinates, of the upper-left corner of the content + * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int xpos, int ypos) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowposfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @remark @wayland This callback will never be called, as there is no way for @@ -3182,20 +3635,27 @@ GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); * * @ingroup window */ -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun cbfun); +GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun callback); /*! @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. + * in screen coordinates, of the content 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowsizefun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3207,7 +3667,7 @@ GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindow * * @ingroup window */ -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun cbfun); +GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun callback); /*! @brief Sets the close callback for the specified window. * @@ -3221,11 +3681,18 @@ GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwind * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowclosefun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @remark @macos Selecting Quit from the application menu will trigger the @@ -3240,12 +3707,12 @@ GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwind * * @ingroup window */ -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun); +GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun callback); /*! @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 + * called when the content 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, Aqua or Wayland, where @@ -3253,11 +3720,18 @@ GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwi * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window); + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowrefreshfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3269,7 +3743,7 @@ GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwi * * @ingroup window */ -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); +GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun callback); /*! @brief Sets the focus callback for the specified window. * @@ -3282,11 +3756,18 @@ GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GL * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int focused) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowfocusfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3297,7 +3778,7 @@ GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GL * * @ingroup window */ -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun); +GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun callback); /*! @brief Sets the iconify callback for the specified window. * @@ -3305,15 +3786,22 @@ GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwi * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int iconified) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowiconifyfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @remark @wayland The wl_shell protocol has no concept of iconification, - * this callback will never be called. + * this callback will never be called when using this deprecated protocol. * * @thread_safety This function must only be called from the main thread. * @@ -3323,7 +3811,7 @@ GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwi * * @ingroup window */ -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun cbfun); +GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun callback); /*! @brief Sets the maximize callback for the specified window. * @@ -3331,11 +3819,18 @@ GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GL * is called when the window is maximized or restored. * * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int maximized) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowmaximizefun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3346,7 +3841,7 @@ GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GL * * @ingroup window */ -GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, GLFWwindowmaximizefun cbfun); +GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, GLFWwindowmaximizefun callback); /*! @brief Sets the framebuffer resize callback for the specified window. * @@ -3354,11 +3849,18 @@ GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWframebuffersizefun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3369,7 +3871,38 @@ GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, * * @ingroup window */ -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun); +GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun callback); + +/*! @brief Sets the window content scale callback for the specified window. + * + * This function sets the window content scale callback of the specified window, + * which is called when the content scale of the specified window changes. + * + * @param[in] window The window whose callback to set. + * @param[in] callback 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). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, float xscale, float yscale) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowcontentscalefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_scale + * @sa @ref glfwGetWindowContentScale + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow* window, GLFWwindowcontentscalefun callback); /*! @brief Processes all pending events. * @@ -3435,10 +3968,6 @@ GLFWAPI void glfwPollEvents(void); * GLFW will pass those events on to the application callbacks before * returning. * - * 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 @@ -3486,14 +4015,13 @@ GLFWAPI void glfwWaitEvents(void); * GLFW will pass those events on to the application callbacks before * returning. * - * 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. * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE 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. @@ -3513,10 +4041,6 @@ GLFWAPI void glfwWaitEventsTimeout(double timeout); * This function posts an empty event from the current thread to the event * queue, causing @ref glfwWaitEvents or @ref glfwWaitEventsTimeout 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. * @@ -3535,12 +4059,14 @@ 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 @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS or - * @ref GLFW_STICKY_MOUSE_BUTTONS. + * The mode must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS, + * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or + * @ref GLFW_RAW_MOUSE_MOTION. * * @param[in] window The window to query. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. + * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`, + * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or + * `GLFW_RAW_MOUSE_MOTION`. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_INVALID_ENUM. @@ -3558,14 +4084,15 @@ 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 @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS or - * @ref GLFW_STICKY_MOUSE_BUTTONS. + * must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS, + * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or + * @ref GLFW_RAW_MOUSE_MOTION. * * 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_HIDDEN` makes the cursor invisible when it is over the + * content 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. @@ -3585,9 +4112,22 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); * you are only interested in whether mouse buttons have been pressed but not * when or in which order. * + * If the mode is `GLFW_LOCK_KEY_MODS`, the value must be either `GLFW_TRUE` to + * enable lock key modifier bits, or `GLFW_FALSE` to disable them. If enabled, + * callbacks that receive modifier bits will also have the @ref + * GLFW_MOD_CAPS_LOCK bit set when the event was generated with Caps Lock on, + * and the @ref GLFW_MOD_NUM_LOCK bit when Num Lock was on. + * + * If the mode is `GLFW_RAW_MOUSE_MOTION`, the value must be either `GLFW_TRUE` + * to enable raw (unscaled and unaccelerated) mouse motion when the cursor is + * disabled, or `GLFW_FALSE` to disable it. If raw motion is not supported, + * attempting to set this will emit @ref GLFW_PLATFORM_ERROR. Call @ref + * glfwRawMouseMotionSupported to check for support. + * * @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] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`, + * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or + * `GLFW_RAW_MOUSE_MOTION`. * @param[in] value The new value of the specified input mode. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref @@ -3603,6 +4143,35 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); */ GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); +/*! @brief Returns whether raw mouse motion is supported. + * + * This function returns whether raw mouse motion is supported on the current + * system. This status does not change after GLFW has been initialized so you + * only need to check this once. If you attempt to enable raw motion on + * a system that does not support it, @ref GLFW_PLATFORM_ERROR will be emitted. + * + * Raw mouse motion is closer to the actual motion of the mouse across + * a surface. It is not affected by the scaling and acceleration applied to + * the motion of the desktop cursor. That processing is suitable for a cursor + * while raw motion is better for controlling for example a 3D camera. Because + * of this, raw mouse motion is only provided when the cursor is disabled. + * + * @return `GLFW_TRUE` if raw mouse motion is supported on the current machine, + * or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref raw_mouse_motion + * @sa @ref glfwSetInputMode + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwRawMouseMotionSupported(void); + /*! @brief Returns the layout-specific name of the specified printable key. * * This function returns the name of the specified printable key, encoded as @@ -3655,9 +4224,11 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. * + * @remark The contents of the returned string may change when a keyboard + * layout change event is received. + * * @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. + * should not free it yourself. It is valid until the library is terminated. * * @thread_safety This function must only be called from the main thread. * @@ -3741,8 +4312,8 @@ GLFWAPI int glfwGetKey(GLFWwindow* window, int key); * `GLFW_RELEASE`. * * If the @ref 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. + * returns `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). @@ -3762,11 +4333,11 @@ GLFWAPI int glfwGetKey(GLFWwindow* window, int key); */ GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); -/*! @brief Retrieves the position of the cursor relative to the client area of +/*! @brief Retrieves the position of the cursor relative to the content 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 + * relative to the upper-left corner of the content area of the specified * window. * * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor @@ -3782,9 +4353,9 @@ GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); * * @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`. + * left edge of the content 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`. + * top edge of the content area, or `NULL`. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -3800,11 +4371,11 @@ GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); */ GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); -/*! @brief Sets the position of the cursor, relative to the client area of the +/*! @brief Sets the position of the cursor, relative to the content 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 + * relative to the upper-left corner of the content 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. * @@ -3819,9 +4390,9 @@ GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); * * @param[in] window The desired window. * @param[in] xpos The desired x-coordinate, relative to the left edge of the - * client area. + * content area. * @param[in] ypos The desired y-coordinate, relative to the top edge of the - * client area. + * content area. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. @@ -3931,7 +4502,7 @@ 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 + * content 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`. * @@ -3980,11 +4551,18 @@ GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWkeyfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -3996,7 +4574,7 @@ GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); * * @ingroup input */ -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); +GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun callback); /*! @brief Sets the Unicode character callback. * @@ -4013,16 +4591,21 @@ GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); * 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 macOS or Alt key - * on Windows. There is a - * [character with modifiers callback](@ref glfwSetCharModsCallback) that - * receives these events. + * on Windows. * * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcharfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4034,7 +4617,7 @@ GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); * * @ingroup input */ -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); +GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun callback); /*! @brief Sets the Unicode character with modifiers callback. * @@ -4052,11 +4635,20 @@ GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); * [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 + * @param[in] callback 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](@ref error_handling) occurred. * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcharmodsfun). + * + * @deprecated Scheduled for removal in version 4.0. + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4067,7 +4659,7 @@ GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); * * @ingroup input */ -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun cbfun); +GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun callback); /*! @brief Sets the mouse button callback. * @@ -4081,11 +4673,18 @@ GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmods * [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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int button, int action, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWmousebuttonfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4097,21 +4696,28 @@ GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmods * * @ingroup input */ -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun cbfun); +GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun callback); /*! @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. + * content 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, double xpos, double ypos); + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcursorposfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4122,20 +4728,27 @@ GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmo * * @ingroup input */ -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun cbfun); +GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun callback); -/*! @brief Sets the cursor enter/exit callback. +/*! @brief Sets the cursor enter/leave 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 + * window, which is called when the cursor enters or leaves the content 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int entered) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcursorenterfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4146,7 +4759,7 @@ GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursor * * @ingroup input */ -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun cbfun); +GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun callback); /*! @brief Sets the scroll callback. * @@ -4158,11 +4771,18 @@ GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcu * 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. + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, double xoffset, double yoffset) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWscrollfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4173,12 +4793,12 @@ GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcu * * @ingroup input */ -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cbfun); +GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun callback); -/*! @brief Sets the file drop callback. +/*! @brief Sets the path 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. + * This function sets the path drop callback of the specified window, which is + * called when one or more dragged paths 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 @@ -4186,11 +4806,18 @@ GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cb * 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 + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int path_count, const char* paths[]) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWdropfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @remark @wayland File drop is currently unimplemented. @@ -4203,7 +4830,7 @@ GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cb * * @ingroup input */ -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun); +GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun callback); /*! @brief Returns whether the specified joystick is present. * @@ -4309,7 +4936,7 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count); * Each element in the array is one of the following values: * * Name | Value - * --------------------- | -------------------------------- + * ---- | ----- * `GLFW_HAT_CENTERED` | 0 * `GLFW_HAT_UP` | 1 * `GLFW_HAT_RIGHT` | 2 @@ -4325,10 +4952,10 @@ GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count); * it with the corresponding direction. * * @code - * if (hats[2] & GLFW_HAT_RIGHT) - * { - * // State of hat 2 could be right-up, right or right-down - * } + * if (hats[2] & GLFW_HAT_RIGHT) + * { + * // State of hat 2 could be right-up, right or right-down + * } * @endcode * * If the specified joystick is not present this function will return `NULL` @@ -4391,7 +5018,7 @@ GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count); */ GLFWAPI const char* glfwGetJoystickName(int jid); -/*! @brief Returns the SDL comaptible GUID of the specified joystick. +/*! @brief Returns the SDL compatible GUID of the specified joystick. * * This function returns the SDL compatible GUID, as a UTF-8 encoded * hexadecimal string, of the specified joystick. The returned string is @@ -4432,6 +5059,56 @@ GLFWAPI const char* glfwGetJoystickName(int jid); */ GLFWAPI const char* glfwGetJoystickGUID(int jid); +/*! @brief Sets the user pointer of the specified joystick. + * + * This function sets the user-defined pointer of the specified joystick. The + * current value is retained until the joystick is disconnected. The initial + * value is `NULL`. + * + * This function may be called from the joystick callback, even for a joystick + * that is being disconnected. + * + * @param[in] jid The joystick 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 joystick_userptr + * @sa @ref glfwGetJoystickUserPointer + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer); + +/*! @brief Returns the user pointer of the specified joystick. + * + * This function returns the current value of the user-defined pointer of the + * specified joystick. The initial value is `NULL`. + * + * This function may be called from the joystick callback, even for a joystick + * that is being disconnected. + * + * @param[in] jid The joystick 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 joystick_userptr + * @sa @ref glfwSetJoystickUserPointer + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI void* glfwGetJoystickUserPointer(int jid); + /*! @brief Returns whether the specified joystick has a gamepad mapping. * * This function returns whether the specified joystick is both present and has @@ -4472,11 +5149,18 @@ GLFWAPI int glfwJoystickIsGamepad(int jid); * called by joystick functions. The function will then return whatever it * returns if the joystick is not present. * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * @param[in] callback 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). * + * @callback_signature + * @code + * void function_name(int jid, int event) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWjoystickfun). + * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. * * @thread_safety This function must only be called from the main thread. @@ -4487,7 +5171,7 @@ GLFWAPI int glfwJoystickIsGamepad(int jid); * * @ingroup input */ -GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun); +GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun callback); /*! @brief Adds the specified SDL_GameControllerDB gamepad mappings. * @@ -4555,7 +5239,7 @@ GLFWAPI const char* glfwGetGamepadName(int jid); /*! @brief Retrieves the state of the specified joystick remapped as a gamepad. * - * This function retrives the state of the specified joystick remapped to + * This function retrieves the state of the specified joystick remapped to * an Xbox-like gamepad. * * If the specified joystick is not present or does not have a gamepad mapping @@ -4568,7 +5252,7 @@ GLFWAPI const char* glfwGetGamepadName(int jid); * * Not all devices have all the buttons or axes provided by @ref * GLFWgamepadstate. Unavailable buttons and axes will always report - * `GLFW_RELEASE` and 1.0 respectively. + * `GLFW_RELEASE` and 0.0 respectively. * * @param[in] jid The [joystick](@ref joysticks) to query. * @param[out] state The gamepad input state of the joystick. @@ -4579,6 +5263,8 @@ GLFWAPI const char* glfwGetGamepadName(int jid); * @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 gamepad * @sa @ref glfwUpdateGamepadMappings * @sa @ref glfwJoystickIsGamepad @@ -4594,14 +5280,12 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state); * 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] window Deprecated. Any valid window or `NULL`. * @param[in] string A UTF-8 encoded string. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. * - * @remark @wayland Clipboard is currently unimplemented. - * * @pointer_lifetime The specified string is copied before this function * returns. * @@ -4623,15 +5307,13 @@ GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); * 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. + * @param[in] window Deprecated. Any valid window or `NULL`. * @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. * - * @remark @wayland Clipboard is currently unimplemented. - * * @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 @@ -4648,23 +5330,26 @@ GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); */ GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); -/*! @brief Returns the value of the GLFW timer. +/*! @brief Returns the GLFW time. * - * 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. + * This function returns the current GLFW time, in seconds. Unless the time + * has been set using @ref glfwSetTime it measures time elapsed since GLFW was + * initialized. + * + * This function and @ref glfwSetTime are helper functions on top of @ref + * glfwGetTimerFrequency and @ref glfwGetTimerValue. * * 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 + * @return The current time, 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 and - * writing of the internal timer offset is not atomic, so it needs to be + * writing of the internal base time is not atomic, so it needs to be * externally synchronized with calls to @ref glfwSetTime. * * @sa @ref time @@ -4675,23 +5360,26 @@ GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); */ GLFWAPI double glfwGetTime(void); -/*! @brief Sets the GLFW timer. +/*! @brief Sets the GLFW time. + * + * This function sets the current GLFW time, in seconds. The value must be + * a positive finite number less than or equal to 18446744073.0, which is + * approximately 584.5 years. * - * 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. + * This function and @ref glfwGetTime are helper functions on top of @ref + * glfwGetTimerFrequency and @ref glfwGetTimerValue. * * @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 + * @remark The upper limit of GLFW time 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. Reading and - * writing of the internal timer offset is not atomic, so it needs to be + * writing of the internal base time is not atomic, so it needs to be * externally synchronized with calls to @ref glfwGetTime. * * @sa @ref time @@ -4708,7 +5396,7 @@ GLFWAPI void glfwSetTime(double time); * 1 / frequency seconds. To get the frequency, call @ref * glfwGetTimerFrequency. * - * @return The value of the timer, or zero if an + * @return The value of the timer, or zero if an * [error](@ref error_handling) occurred. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. @@ -4748,10 +5436,13 @@ GLFWAPI uint64_t glfwGetTimerFrequency(void); * 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 + * current on the calling thread. A context must only be made current on * a single thread at a time and each thread can have only a single current * context at a time. * + * When moving a context between threads, you must make it non-current on the + * old thread before making it current on the new one. + * * 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 @@ -4842,12 +5533,11 @@ GLFWAPI void glfwSwapBuffers(GLFWwindow* window); * 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 that supports either of the `WGL_EXT_swap_control_tear` and + * `GLX_EXT_swap_control_tear` extensions also accepts _negative_ swap + * intervals, which allows the driver to swap immediately even if a frame + * arrives a little bit late. You can check for these extensions with @ref + * glfwExtensionSupported. * * 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. @@ -4993,7 +5683,7 @@ GLFWAPI int glfwVulkanSupported(void); * * 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 + * list will always contain `VK_KHR_surface`, so if you don't require any * additional extensions you can pass this list directly to the * `VkInstanceCreateInfo` struct. * @@ -5018,8 +5708,9 @@ GLFWAPI int glfwVulkanSupported(void); * returned array, as it is an error to specify an extension more than once in * the `VkInstanceCreateInfo` struct. * - * @remark @macos This function currently only supports the - * `VK_MVK_macos_surface` extension from MoltenVK. + * @remark @macos This function currently supports either the + * `VK_MVK_macos_surface` extension from MoltenVK or `VK_EXT_metal_surface` + * extension. * * @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 @@ -5132,6 +5823,11 @@ GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhys * glfwGetRequiredInstanceExtensions to check what instance extensions are * required. * + * The window surface cannot be shared with another API so the window must + * have been created with the [client api hint](@ref GLFW_CLIENT_API_attrib) + * set to `GLFW_NO_API` otherwise it generates a @ref GLFW_INVALID_VALUE error + * and returns `VK_ERROR_NATIVE_WINDOW_IN_USE_KHR`. + * * 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 @@ -5147,7 +5843,7 @@ GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhys * [error](@ref error_handling) occurred. * * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. + * GLFW_API_UNAVAILABLE, @ref GLFW_PLATFORM_ERROR and @ref GLFW_INVALID_VALUE * * @remark If an error occurs before the creation call is made, GLFW returns * the Vulkan error code most appropriate for the error. Appropriate use of diff --git a/external/GLFW/include/GLFW/glfw3native.h b/external/glfw-3.3.4/include/GLFW/glfw3native.h similarity index 91% rename from external/GLFW/include/GLFW/glfw3native.h rename to external/glfw-3.3.4/include/GLFW/glfw3native.h index 4372cb7..267e75c 100644 --- a/external/GLFW/include/GLFW/glfw3native.h +++ b/external/glfw-3.3.4/include/GLFW/glfw3native.h @@ -3,7 +3,7 @@ * A library for OpenGL, window and input *------------------------------------------------------------------------ * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2016 Camilla Löwy + * Copyright (c) 2006-2018 Camilla Löwy * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages @@ -62,7 +62,6 @@ extern "C" { * * `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` @@ -82,7 +81,7 @@ extern "C" { * System headers and types *************************************************************************/ -#if defined(GLFW_EXPOSE_NATIVE_WIN32) +#if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL) // 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 @@ -91,20 +90,18 @@ extern "C" { #undef GLFW_APIENTRY_DEFINED #endif #include -#elif defined(GLFW_EXPOSE_NATIVE_COCOA) - #include +#elif defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL) #if defined(__OBJC__) #import #else + #include typedef void* id; #endif -#elif defined(GLFW_EXPOSE_NATIVE_X11) +#elif defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX) #include #include #elif defined(GLFW_EXPOSE_NATIVE_WAYLAND) #include -#elif defined(GLFW_EXPOSE_NATIVE_MIR) - #include #endif #if defined(GLFW_EXPOSE_NATIVE_WGL) @@ -418,50 +415,6 @@ GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor); 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 `MirWindow*` of the specified window. - * - * @return The `MirWindow*` 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 MirWindow* glfwGetMirWindow(GLFWwindow* window); -#endif - #if defined(GLFW_EXPOSE_NATIVE_EGL) /*! @brief Returns the `EGLDisplay` used by GLFW. * diff --git a/external/glfw-3.3.4/src/CMakeLists.txt b/external/glfw-3.3.4/src/CMakeLists.txt new file mode 100644 index 0000000..a409459 --- /dev/null +++ b/external/glfw-3.3.4/src/CMakeLists.txt @@ -0,0 +1,190 @@ + +set(common_HEADERS internal.h mappings.h + "${GLFW_BINARY_DIR}/src/glfw_config.h" + "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" + "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h") +set(common_SOURCES context.c init.c input.c monitor.c vulkan.c window.c) + +if (_GLFW_COCOA) + set(glfw_HEADERS ${common_HEADERS} cocoa_platform.h cocoa_joystick.h + posix_thread.h nsgl_context.h egl_context.h osmesa_context.h) + set(glfw_SOURCES ${common_SOURCES} cocoa_init.m cocoa_joystick.m + cocoa_monitor.m cocoa_window.m cocoa_time.c posix_thread.c + nsgl_context.m egl_context.c osmesa_context.c) +elseif (_GLFW_WIN32) + set(glfw_HEADERS ${common_HEADERS} win32_platform.h win32_joystick.h + wgl_context.h egl_context.h osmesa_context.h) + set(glfw_SOURCES ${common_SOURCES} win32_init.c win32_joystick.c + win32_monitor.c win32_time.c win32_thread.c win32_window.c + wgl_context.c egl_context.c osmesa_context.c) +elseif (_GLFW_X11) + set(glfw_HEADERS ${common_HEADERS} x11_platform.h xkb_unicode.h posix_time.h + posix_thread.h glx_context.h egl_context.h osmesa_context.h) + set(glfw_SOURCES ${common_SOURCES} x11_init.c x11_monitor.c x11_window.c + xkb_unicode.c posix_time.c posix_thread.c glx_context.c + egl_context.c osmesa_context.c) +elseif (_GLFW_WAYLAND) + set(glfw_HEADERS ${common_HEADERS} wl_platform.h + posix_time.h posix_thread.h xkb_unicode.h egl_context.h + osmesa_context.h) + set(glfw_SOURCES ${common_SOURCES} wl_init.c wl_monitor.c wl_window.c + posix_time.c posix_thread.c xkb_unicode.c + egl_context.c osmesa_context.c) + + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/stable/xdg-shell/xdg-shell.xml" + BASENAME xdg-shell) + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml" + BASENAME xdg-decoration) + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/stable/viewporter/viewporter.xml" + BASENAME viewporter) + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/relative-pointer/relative-pointer-unstable-v1.xml" + BASENAME relative-pointer-unstable-v1) + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml" + BASENAME pointer-constraints-unstable-v1) + ecm_add_wayland_client_protocol(glfw_SOURCES + PROTOCOL + "${WAYLAND_PROTOCOLS_PKGDATADIR}/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml" + BASENAME idle-inhibit-unstable-v1) +elseif (_GLFW_OSMESA) + set(glfw_HEADERS ${common_HEADERS} null_platform.h null_joystick.h + posix_time.h posix_thread.h osmesa_context.h) + set(glfw_SOURCES ${common_SOURCES} null_init.c null_monitor.c null_window.c + null_joystick.c posix_time.c posix_thread.c osmesa_context.c) +endif() + +if (_GLFW_X11 OR _GLFW_WAYLAND) + if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(glfw_HEADERS ${glfw_HEADERS} linux_joystick.h) + set(glfw_SOURCES ${glfw_SOURCES} linux_joystick.c) + else() + set(glfw_HEADERS ${glfw_HEADERS} null_joystick.h) + set(glfw_SOURCES ${glfw_SOURCES} null_joystick.c) + endif() +endif() + +# Workaround for CMake not knowing about .m files before version 3.16 +if (CMAKE_VERSION VERSION_LESS "3.16" AND APPLE) + set_source_files_properties(cocoa_init.m cocoa_joystick.m cocoa_monitor.m + cocoa_window.m nsgl_context.m PROPERTIES + LANGUAGE C) +endif() + +add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS}) +set_target_properties(glfw PROPERTIES + OUTPUT_NAME ${GLFW_LIB_NAME} + VERSION ${GLFW_VERSION_MAJOR}.${GLFW_VERSION_MINOR} + SOVERSION ${GLFW_VERSION_MAJOR} + POSITION_INDEPENDENT_CODE ON + FOLDER "GLFW3") + +if (CMAKE_VERSION VERSION_EQUAL "3.1.0" OR + CMAKE_VERSION VERSION_GREATER "3.1.0") + + set_target_properties(glfw PROPERTIES C_STANDARD 99) +else() + # Remove this fallback when removing support for CMake version less than 3.1 + target_compile_options(glfw PRIVATE + "$<$:-std=c99>" + "$<$:-std=c99>" + "$<$:-std=c99>") +endif() + +target_compile_definitions(glfw PRIVATE _GLFW_USE_CONFIG_H) +target_include_directories(glfw PUBLIC + "$" + "$") +target_include_directories(glfw PRIVATE + "${GLFW_SOURCE_DIR}/src" + "${GLFW_BINARY_DIR}/src" + ${glfw_INCLUDE_DIRS}) +target_link_libraries(glfw PRIVATE ${glfw_LIBRARIES}) + +# Make GCC warn about declarations that VS 2010 and 2012 won't accept for all +# source files that VS will build (Clang ignores this because we set -std=c99) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + set_source_files_properties(context.c init.c input.c monitor.c vulkan.c + window.c win32_init.c win32_joystick.c + win32_monitor.c win32_time.c win32_thread.c + win32_window.c wgl_context.c egl_context.c + osmesa_context.c PROPERTIES + COMPILE_FLAGS -Wdeclaration-after-statement) +endif() + +# Enable a reasonable set of warnings +if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR + CMAKE_C_COMPILER_ID STREQUAL "Clang" OR + CMAKE_C_COMPILER_ID STREQUAL "AppleClang") + + if (CMAKE_C_SIMULATE_ID STREQUAL "MSVC") + # Tell Clang-CL that this is a Clang flag + target_compile_options(glfw PRIVATE "/clang:-Wall") + else() + target_compile_options(glfw PRIVATE "-Wall") + endif() +elseif (MSVC) + target_compile_options(glfw PRIVATE "/W3") +endif() + +if (WIN32) + target_compile_definitions(glfw PRIVATE _UNICODE) +endif() + +# HACK: When building on MinGW, WINVER and UNICODE need to be defined before +# the inclusion of stddef.h (by glfw3.h), which is itself included before +# win32_platform.h. We define them here until a saner solution can be found +# NOTE: MinGW-w64 and Visual C++ do /not/ need this hack. +if (MINGW) + target_compile_definitions(glfw PRIVATE UNICODE WINVER=0x0501) +endif() + +if (BUILD_SHARED_LIBS) + if (WIN32) + if (MINGW) + # Remove the dependency on the shared version of libgcc + # NOTE: MinGW-w64 has the correct default but MinGW needs this + target_link_libraries(glfw PRIVATE "-static-libgcc") + + # Remove the lib prefix on the DLL (but not the import library) + set_target_properties(glfw PROPERTIES PREFIX "") + + # Add a suffix to the import library to avoid naming conflicts + set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.a") + else() + # Add a suffix to the import library to avoid naming conflicts + set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.lib") + endif() + + target_compile_definitions(glfw INTERFACE GLFW_DLL) + elseif (APPLE) + # Add -fno-common to work around a bug in Apple's GCC + target_compile_options(glfw PRIVATE "-fno-common") + endif() + + if (UNIX) + # Hide symbols not explicitly tagged for export from the shared library + target_compile_options(glfw PRIVATE "-fvisibility=hidden") + endif() +endif() + +if (MSVC) + target_compile_definitions(glfw PRIVATE _CRT_SECURE_NO_WARNINGS) +endif() + +if (GLFW_INSTALL) + install(TARGETS glfw + EXPORT glfwTargets + RUNTIME DESTINATION "bin" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") +endif() + diff --git a/external/glfw-3.3.4/src/cocoa_init.m b/external/glfw-3.3.4/src/cocoa_init.m new file mode 100644 index 0000000..209639e --- /dev/null +++ b/external/glfw-3.3.4/src/cocoa_init.m @@ -0,0 +1,623 @@ +//======================================================================== +// GLFW 3.3 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" +#include // For MAXPATHLEN + +// Needed for _NSGetProgname +#include + +// Change to our application bundle's resources directory, if present +// +static void changeToResourcesDirectory(void) +{ + char resourcesPath[MAXPATHLEN]; + + CFBundleRef bundle = CFBundleGetMainBundle(); + if (!bundle) + return; + + CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(bundle); + + CFStringRef last = CFURLCopyLastPathComponent(resourcesURL); + if (CFStringCompare(CFSTR("Resources"), last, 0) != kCFCompareEqualTo) + { + CFRelease(last); + CFRelease(resourcesURL); + return; + } + + CFRelease(last); + + if (!CFURLGetFileSystemRepresentation(resourcesURL, + true, + (UInt8*) resourcesPath, + MAXPATHLEN)) + { + CFRelease(resourcesURL); + return; + } + + CFRelease(resourcesURL); + + chdir(resourcesPath); +} + +// Set up the menu bar (manually) +// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that +// could go away at any moment, lots of stuff that really should be +// localize(d|able), etc. Add a nib to save us this horror. +// +static void createMenuBar(void) +{ + size_t i; + NSString* appName = nil; + NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; + NSString* nameKeys[] = + { + @"CFBundleDisplayName", + @"CFBundleName", + @"CFBundleExecutable", + }; + + // Try to figure out what the calling application is called + + for (i = 0; i < sizeof(nameKeys) / sizeof(nameKeys[0]); i++) + { + id name = bundleInfo[nameKeys[i]]; + if (name && + [name isKindOfClass:[NSString class]] && + ![name isEqualToString:@""]) + { + appName = name; + break; + } + } + + if (!appName) + { + char** progname = _NSGetProgname(); + if (progname && *progname) + appName = @(*progname); + else + appName = @"GLFW Application"; + } + + NSMenu* bar = [[NSMenu alloc] init]; + [NSApp setMainMenu:bar]; + + NSMenuItem* appMenuItem = + [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; + NSMenu* appMenu = [[NSMenu alloc] init]; + [appMenuItem setSubmenu:appMenu]; + + [appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName] + action:@selector(orderFrontStandardAboutPanel:) + keyEquivalent:@""]; + [appMenu addItem:[NSMenuItem separatorItem]]; + NSMenu* servicesMenu = [[NSMenu alloc] init]; + [NSApp setServicesMenu:servicesMenu]; + [[appMenu addItemWithTitle:@"Services" + action:NULL + keyEquivalent:@""] setSubmenu:servicesMenu]; + [servicesMenu release]; + [appMenu addItem:[NSMenuItem separatorItem]]; + [appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", appName] + action:@selector(hide:) + keyEquivalent:@"h"]; + [[appMenu addItemWithTitle:@"Hide Others" + action:@selector(hideOtherApplications:) + keyEquivalent:@"h"] + setKeyEquivalentModifierMask:NSEventModifierFlagOption | NSEventModifierFlagCommand]; + [appMenu addItemWithTitle:@"Show All" + action:@selector(unhideAllApplications:) + keyEquivalent:@""]; + [appMenu addItem:[NSMenuItem separatorItem]]; + [appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", appName] + action:@selector(terminate:) + keyEquivalent:@"q"]; + + NSMenuItem* windowMenuItem = + [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; + [bar release]; + NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; + [NSApp setWindowsMenu:windowMenu]; + [windowMenuItem setSubmenu:windowMenu]; + + [windowMenu addItemWithTitle:@"Minimize" + action:@selector(performMiniaturize:) + keyEquivalent:@"m"]; + [windowMenu addItemWithTitle:@"Zoom" + action:@selector(performZoom:) + keyEquivalent:@""]; + [windowMenu addItem:[NSMenuItem separatorItem]]; + [windowMenu addItemWithTitle:@"Bring All to Front" + action:@selector(arrangeInFront:) + keyEquivalent:@""]; + + // TODO: Make this appear at the bottom of the menu (for consistency) + [windowMenu addItem:[NSMenuItem separatorItem]]; + [[windowMenu addItemWithTitle:@"Enter Full Screen" + action:@selector(toggleFullScreen:) + keyEquivalent:@"f"] + setKeyEquivalentModifierMask:NSEventModifierFlagControl | NSEventModifierFlagCommand]; + + // Prior to Snow Leopard, we need to use this oddly-named semi-private API + // to get the application menu working properly. + SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:"); + [NSApp performSelector:setAppleMenuSelector withObject:appMenu]; +} + +// Create key code translation tables +// +static void createKeyTables(void) +{ + int scancode; + + memset(_glfw.ns.keycodes, -1, sizeof(_glfw.ns.keycodes)); + memset(_glfw.ns.scancodes, -1, sizeof(_glfw.ns.scancodes)); + + _glfw.ns.keycodes[0x1D] = GLFW_KEY_0; + _glfw.ns.keycodes[0x12] = GLFW_KEY_1; + _glfw.ns.keycodes[0x13] = GLFW_KEY_2; + _glfw.ns.keycodes[0x14] = GLFW_KEY_3; + _glfw.ns.keycodes[0x15] = GLFW_KEY_4; + _glfw.ns.keycodes[0x17] = GLFW_KEY_5; + _glfw.ns.keycodes[0x16] = GLFW_KEY_6; + _glfw.ns.keycodes[0x1A] = GLFW_KEY_7; + _glfw.ns.keycodes[0x1C] = GLFW_KEY_8; + _glfw.ns.keycodes[0x19] = GLFW_KEY_9; + _glfw.ns.keycodes[0x00] = GLFW_KEY_A; + _glfw.ns.keycodes[0x0B] = GLFW_KEY_B; + _glfw.ns.keycodes[0x08] = GLFW_KEY_C; + _glfw.ns.keycodes[0x02] = GLFW_KEY_D; + _glfw.ns.keycodes[0x0E] = GLFW_KEY_E; + _glfw.ns.keycodes[0x03] = GLFW_KEY_F; + _glfw.ns.keycodes[0x05] = GLFW_KEY_G; + _glfw.ns.keycodes[0x04] = GLFW_KEY_H; + _glfw.ns.keycodes[0x22] = GLFW_KEY_I; + _glfw.ns.keycodes[0x26] = GLFW_KEY_J; + _glfw.ns.keycodes[0x28] = GLFW_KEY_K; + _glfw.ns.keycodes[0x25] = GLFW_KEY_L; + _glfw.ns.keycodes[0x2E] = GLFW_KEY_M; + _glfw.ns.keycodes[0x2D] = GLFW_KEY_N; + _glfw.ns.keycodes[0x1F] = GLFW_KEY_O; + _glfw.ns.keycodes[0x23] = GLFW_KEY_P; + _glfw.ns.keycodes[0x0C] = GLFW_KEY_Q; + _glfw.ns.keycodes[0x0F] = GLFW_KEY_R; + _glfw.ns.keycodes[0x01] = GLFW_KEY_S; + _glfw.ns.keycodes[0x11] = GLFW_KEY_T; + _glfw.ns.keycodes[0x20] = GLFW_KEY_U; + _glfw.ns.keycodes[0x09] = GLFW_KEY_V; + _glfw.ns.keycodes[0x0D] = GLFW_KEY_W; + _glfw.ns.keycodes[0x07] = GLFW_KEY_X; + _glfw.ns.keycodes[0x10] = GLFW_KEY_Y; + _glfw.ns.keycodes[0x06] = GLFW_KEY_Z; + + _glfw.ns.keycodes[0x27] = GLFW_KEY_APOSTROPHE; + _glfw.ns.keycodes[0x2A] = GLFW_KEY_BACKSLASH; + _glfw.ns.keycodes[0x2B] = GLFW_KEY_COMMA; + _glfw.ns.keycodes[0x18] = GLFW_KEY_EQUAL; + _glfw.ns.keycodes[0x32] = GLFW_KEY_GRAVE_ACCENT; + _glfw.ns.keycodes[0x21] = GLFW_KEY_LEFT_BRACKET; + _glfw.ns.keycodes[0x1B] = GLFW_KEY_MINUS; + _glfw.ns.keycodes[0x2F] = GLFW_KEY_PERIOD; + _glfw.ns.keycodes[0x1E] = GLFW_KEY_RIGHT_BRACKET; + _glfw.ns.keycodes[0x29] = GLFW_KEY_SEMICOLON; + _glfw.ns.keycodes[0x2C] = GLFW_KEY_SLASH; + _glfw.ns.keycodes[0x0A] = GLFW_KEY_WORLD_1; + + _glfw.ns.keycodes[0x33] = GLFW_KEY_BACKSPACE; + _glfw.ns.keycodes[0x39] = GLFW_KEY_CAPS_LOCK; + _glfw.ns.keycodes[0x75] = GLFW_KEY_DELETE; + _glfw.ns.keycodes[0x7D] = GLFW_KEY_DOWN; + _glfw.ns.keycodes[0x77] = GLFW_KEY_END; + _glfw.ns.keycodes[0x24] = GLFW_KEY_ENTER; + _glfw.ns.keycodes[0x35] = GLFW_KEY_ESCAPE; + _glfw.ns.keycodes[0x7A] = GLFW_KEY_F1; + _glfw.ns.keycodes[0x78] = GLFW_KEY_F2; + _glfw.ns.keycodes[0x63] = GLFW_KEY_F3; + _glfw.ns.keycodes[0x76] = GLFW_KEY_F4; + _glfw.ns.keycodes[0x60] = GLFW_KEY_F5; + _glfw.ns.keycodes[0x61] = GLFW_KEY_F6; + _glfw.ns.keycodes[0x62] = GLFW_KEY_F7; + _glfw.ns.keycodes[0x64] = GLFW_KEY_F8; + _glfw.ns.keycodes[0x65] = GLFW_KEY_F9; + _glfw.ns.keycodes[0x6D] = GLFW_KEY_F10; + _glfw.ns.keycodes[0x67] = GLFW_KEY_F11; + _glfw.ns.keycodes[0x6F] = GLFW_KEY_F12; + _glfw.ns.keycodes[0x69] = GLFW_KEY_F13; + _glfw.ns.keycodes[0x6B] = GLFW_KEY_F14; + _glfw.ns.keycodes[0x71] = GLFW_KEY_F15; + _glfw.ns.keycodes[0x6A] = GLFW_KEY_F16; + _glfw.ns.keycodes[0x40] = GLFW_KEY_F17; + _glfw.ns.keycodes[0x4F] = GLFW_KEY_F18; + _glfw.ns.keycodes[0x50] = GLFW_KEY_F19; + _glfw.ns.keycodes[0x5A] = GLFW_KEY_F20; + _glfw.ns.keycodes[0x73] = GLFW_KEY_HOME; + _glfw.ns.keycodes[0x72] = GLFW_KEY_INSERT; + _glfw.ns.keycodes[0x7B] = GLFW_KEY_LEFT; + _glfw.ns.keycodes[0x3A] = GLFW_KEY_LEFT_ALT; + _glfw.ns.keycodes[0x3B] = GLFW_KEY_LEFT_CONTROL; + _glfw.ns.keycodes[0x38] = GLFW_KEY_LEFT_SHIFT; + _glfw.ns.keycodes[0x37] = GLFW_KEY_LEFT_SUPER; + _glfw.ns.keycodes[0x6E] = GLFW_KEY_MENU; + _glfw.ns.keycodes[0x47] = GLFW_KEY_NUM_LOCK; + _glfw.ns.keycodes[0x79] = GLFW_KEY_PAGE_DOWN; + _glfw.ns.keycodes[0x74] = GLFW_KEY_PAGE_UP; + _glfw.ns.keycodes[0x7C] = GLFW_KEY_RIGHT; + _glfw.ns.keycodes[0x3D] = GLFW_KEY_RIGHT_ALT; + _glfw.ns.keycodes[0x3E] = GLFW_KEY_RIGHT_CONTROL; + _glfw.ns.keycodes[0x3C] = GLFW_KEY_RIGHT_SHIFT; + _glfw.ns.keycodes[0x36] = GLFW_KEY_RIGHT_SUPER; + _glfw.ns.keycodes[0x31] = GLFW_KEY_SPACE; + _glfw.ns.keycodes[0x30] = GLFW_KEY_TAB; + _glfw.ns.keycodes[0x7E] = GLFW_KEY_UP; + + _glfw.ns.keycodes[0x52] = GLFW_KEY_KP_0; + _glfw.ns.keycodes[0x53] = GLFW_KEY_KP_1; + _glfw.ns.keycodes[0x54] = GLFW_KEY_KP_2; + _glfw.ns.keycodes[0x55] = GLFW_KEY_KP_3; + _glfw.ns.keycodes[0x56] = GLFW_KEY_KP_4; + _glfw.ns.keycodes[0x57] = GLFW_KEY_KP_5; + _glfw.ns.keycodes[0x58] = GLFW_KEY_KP_6; + _glfw.ns.keycodes[0x59] = GLFW_KEY_KP_7; + _glfw.ns.keycodes[0x5B] = GLFW_KEY_KP_8; + _glfw.ns.keycodes[0x5C] = GLFW_KEY_KP_9; + _glfw.ns.keycodes[0x45] = GLFW_KEY_KP_ADD; + _glfw.ns.keycodes[0x41] = GLFW_KEY_KP_DECIMAL; + _glfw.ns.keycodes[0x4B] = GLFW_KEY_KP_DIVIDE; + _glfw.ns.keycodes[0x4C] = GLFW_KEY_KP_ENTER; + _glfw.ns.keycodes[0x51] = GLFW_KEY_KP_EQUAL; + _glfw.ns.keycodes[0x43] = GLFW_KEY_KP_MULTIPLY; + _glfw.ns.keycodes[0x4E] = GLFW_KEY_KP_SUBTRACT; + + for (scancode = 0; scancode < 256; scancode++) + { + // Store the reverse translation for faster key name lookup + if (_glfw.ns.keycodes[scancode] >= 0) + _glfw.ns.scancodes[_glfw.ns.keycodes[scancode]] = scancode; + } +} + +// Retrieve Unicode data for the current keyboard layout +// +static GLFWbool updateUnicodeDataNS(void) +{ + if (_glfw.ns.inputSource) + { + CFRelease(_glfw.ns.inputSource); + _glfw.ns.inputSource = NULL; + _glfw.ns.unicodeData = nil; + } + + _glfw.ns.inputSource = TISCopyCurrentKeyboardLayoutInputSource(); + if (!_glfw.ns.inputSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve keyboard layout input source"); + return GLFW_FALSE; + } + + _glfw.ns.unicodeData = + TISGetInputSourceProperty(_glfw.ns.inputSource, + kTISPropertyUnicodeKeyLayoutData); + if (!_glfw.ns.unicodeData) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve keyboard layout Unicode data"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Load HIToolbox.framework and the TIS symbols we need from it +// +static GLFWbool initializeTIS(void) +{ + // This works only because Cocoa has already loaded it properly + _glfw.ns.tis.bundle = + CFBundleGetBundleWithIdentifier(CFSTR("com.apple.HIToolbox")); + if (!_glfw.ns.tis.bundle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to load HIToolbox.framework"); + return GLFW_FALSE; + } + + CFStringRef* kPropertyUnicodeKeyLayoutData = + CFBundleGetDataPointerForName(_glfw.ns.tis.bundle, + CFSTR("kTISPropertyUnicodeKeyLayoutData")); + _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("TISCopyCurrentKeyboardLayoutInputSource")); + _glfw.ns.tis.GetInputSourceProperty = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("TISGetInputSourceProperty")); + _glfw.ns.tis.GetKbdType = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("LMGetKbdType")); + + if (!kPropertyUnicodeKeyLayoutData || + !TISCopyCurrentKeyboardLayoutInputSource || + !TISGetInputSourceProperty || + !LMGetKbdType) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to load TIS API symbols"); + return GLFW_FALSE; + } + + _glfw.ns.tis.kPropertyUnicodeKeyLayoutData = + *kPropertyUnicodeKeyLayoutData; + + return updateUnicodeDataNS(); +} + +@interface GLFWHelper : NSObject +@end + +@implementation GLFWHelper + +- (void)selectedKeyboardInputSourceChanged:(NSObject* )object +{ + updateUnicodeDataNS(); +} + +- (void)doNothing:(id)object +{ +} + +@end // GLFWHelper + +@interface GLFWApplicationDelegate : NSObject +@end + +@implementation GLFWApplicationDelegate + +- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender +{ + _GLFWwindow* window; + + for (window = _glfw.windowListHead; window; window = window->next) + _glfwInputWindowCloseRequest(window); + + return NSTerminateCancel; +} + +- (void)applicationDidChangeScreenParameters:(NSNotification *) notification +{ + _GLFWwindow* window; + + for (window = _glfw.windowListHead; window; window = window->next) + { + if (window->context.client != GLFW_NO_API) + [window->context.nsgl.object update]; + } + + _glfwPollMonitorsNS(); +} + +- (void)applicationWillFinishLaunching:(NSNotification *)notification +{ + if (_glfw.hints.init.ns.menubar) + { + // Menu bar setup must go between sharedApplication and finishLaunching + // in order to properly emulate the behavior of NSApplicationMain + + if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"]) + { + [[NSBundle mainBundle] loadNibNamed:@"MainMenu" + owner:NSApp + topLevelObjects:&_glfw.ns.nibObjects]; + } + else + createMenuBar(); + } +} + +- (void)applicationDidFinishLaunching:(NSNotification *)notification +{ + _glfw.ns.finishedLaunching = GLFW_TRUE; + _glfwPlatformPostEmptyEvent(); + + // In case we are unbundled, make us a proper UI application + if (_glfw.hints.init.ns.menubar) + [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; + + [NSApp stop:nil]; +} + +- (void)applicationDidHide:(NSNotification *)notification +{ + int i; + + for (i = 0; i < _glfw.monitorCount; i++) + _glfwRestoreVideoModeNS(_glfw.monitors[i]); +} + +@end // GLFWApplicationDelegate + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void* _glfwLoadLocalVulkanLoaderNS(void) +{ + CFBundleRef bundle = CFBundleGetMainBundle(); + if (!bundle) + return NULL; + + CFURLRef url = + CFBundleCopyAuxiliaryExecutableURL(bundle, CFSTR("libvulkan.1.dylib")); + if (!url) + return NULL; + + char path[PATH_MAX]; + void* handle = NULL; + + if (CFURLGetFileSystemRepresentation(url, true, (UInt8*) path, sizeof(path) - 1)) + handle = _glfw_dlopen(path); + + CFRelease(url); + return handle; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformInit(void) +{ + @autoreleasepool { + + _glfw.ns.helper = [[GLFWHelper alloc] init]; + + [NSThread detachNewThreadSelector:@selector(doNothing:) + toTarget:_glfw.ns.helper + withObject:nil]; + + if (NSApp) + _glfw.ns.finishedLaunching = GLFW_TRUE; + + [NSApplication sharedApplication]; + + _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init]; + if (_glfw.ns.delegate == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create application delegate"); + return GLFW_FALSE; + } + + [NSApp setDelegate:_glfw.ns.delegate]; + + NSEvent* (^block)(NSEvent*) = ^ NSEvent* (NSEvent* event) + { + if ([event modifierFlags] & NSEventModifierFlagCommand) + [[NSApp keyWindow] sendEvent:event]; + + return event; + }; + + _glfw.ns.keyUpMonitor = + [NSEvent addLocalMonitorForEventsMatchingMask:NSEventMaskKeyUp + handler:block]; + + if (_glfw.hints.init.ns.chdir) + changeToResourcesDirectory(); + + // Press and Hold prevents some keys from emitting repeated characters + NSDictionary* defaults = @{@"ApplePressAndHoldEnabled":@NO}; + [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; + + [[NSNotificationCenter defaultCenter] + addObserver:_glfw.ns.helper + selector:@selector(selectedKeyboardInputSourceChanged:) + name:NSTextInputContextKeyboardSelectionDidChangeNotification + object:nil]; + + createKeyTables(); + + _glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); + if (!_glfw.ns.eventSource) + return GLFW_FALSE; + + CGEventSourceSetLocalEventsSuppressionInterval(_glfw.ns.eventSource, 0.0); + + if (!initializeTIS()) + return GLFW_FALSE; + + _glfwInitTimerNS(); + _glfwInitJoysticksNS(); + + _glfwPollMonitorsNS(); + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwPlatformTerminate(void) +{ + @autoreleasepool { + + if (_glfw.ns.inputSource) + { + CFRelease(_glfw.ns.inputSource); + _glfw.ns.inputSource = NULL; + _glfw.ns.unicodeData = nil; + } + + if (_glfw.ns.eventSource) + { + CFRelease(_glfw.ns.eventSource); + _glfw.ns.eventSource = NULL; + } + + if (_glfw.ns.delegate) + { + [NSApp setDelegate:nil]; + [_glfw.ns.delegate release]; + _glfw.ns.delegate = nil; + } + + if (_glfw.ns.helper) + { + [[NSNotificationCenter defaultCenter] + removeObserver:_glfw.ns.helper + name:NSTextInputContextKeyboardSelectionDidChangeNotification + object:nil]; + [[NSNotificationCenter defaultCenter] + removeObserver:_glfw.ns.helper]; + [_glfw.ns.helper release]; + _glfw.ns.helper = nil; + } + + if (_glfw.ns.keyUpMonitor) + [NSEvent removeMonitor:_glfw.ns.keyUpMonitor]; + + free(_glfw.ns.clipboardString); + + _glfwTerminateNSGL(); + _glfwTerminateJoysticksNS(); + + } // autoreleasepool +} + +const char* _glfwPlatformGetVersionString(void) +{ + return _GLFW_VERSION_NUMBER " Cocoa NSGL EGL OSMesa" +#if defined(_GLFW_BUILD_DLL) + " dynamic" +#endif + ; +} + diff --git a/external/GLFW/src/cocoa_joystick.h b/external/glfw-3.3.4/src/cocoa_joystick.h similarity index 92% rename from external/GLFW/src/cocoa_joystick.h rename to external/glfw-3.3.4/src/cocoa_joystick.h index d18d032..b444877 100644 --- a/external/GLFW/src/cocoa_joystick.h +++ b/external/glfw-3.3.4/src/cocoa_joystick.h @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 Cocoa - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -30,7 +30,7 @@ #include #define _GLFW_PLATFORM_JOYSTICK_STATE _GLFWjoystickNS ns -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE +#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE struct { int dummyJoystick; } #define _GLFW_PLATFORM_MAPPING_NAME "Mac OS X" diff --git a/external/GLFW/src/cocoa_joystick.m b/external/glfw-3.3.4/src/cocoa_joystick.m similarity index 88% rename from external/GLFW/src/cocoa_joystick.m rename to external/glfw-3.3.4/src/cocoa_joystick.m index 3a5751e..2c8d82d 100644 --- a/external/GLFW/src/cocoa_joystick.m +++ b/external/glfw-3.3.4/src/cocoa_joystick.m @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 Cocoa - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy +// Copyright (c) 2009-2019 Camilla Löwy // Copyright (c) 2012 Torsten Walluhn // // This software is provided 'as-is', without any express or implied @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" @@ -220,9 +222,31 @@ static void matchCallback(void* context, case kHIDUsage_GD_Hatswitch: target = hats; break; + case kHIDUsage_GD_DPadUp: + case kHIDUsage_GD_DPadRight: + case kHIDUsage_GD_DPadDown: + case kHIDUsage_GD_DPadLeft: + case kHIDUsage_GD_SystemMainMenu: + case kHIDUsage_GD_Select: + case kHIDUsage_GD_Start: + target = buttons; + break; + } + } + else if (page == kHIDPage_Simulation) + { + switch (usage) + { + case kHIDUsage_Sim_Accelerator: + case kHIDUsage_Sim_Brake: + case kHIDUsage_Sim_Throttle: + case kHIDUsage_Sim_Rudder: + case kHIDUsage_Sim_Steering: + target = axes; + break; } } - else if (page == kHIDPage_Button) + else if (page == kHIDPage_Button || page == kHIDPage_Consumer) target = buttons; if (target) @@ -247,9 +271,9 @@ static void matchCallback(void* context, compareElements, NULL); js = _glfwAllocJoystick(name, guid, - CFArrayGetCount(axes), - CFArrayGetCount(buttons), - CFArrayGetCount(hats)); + (int) CFArrayGetCount(axes), + (int) CFArrayGetCount(buttons), + (int) CFArrayGetCount(hats)); js->ns.device = device; js->ns.axes = axes; @@ -307,7 +331,7 @@ void _glfwInitJoysticksNS(void) return; } - for (int i = 0; i < sizeof(usages) / sizeof(long); i++) + for (size_t i = 0; i < sizeof(usages) / sizeof(long); i++) { const long page = kHIDPage_GenericDesktop; @@ -397,13 +421,13 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode) if (raw > axis->maximum) axis->maximum = raw; - const long delta = axis->maximum - axis->minimum; - if (delta == 0) - _glfwInputJoystickAxis(js, i, 0.f); + const long size = axis->maximum - axis->minimum; + if (size == 0) + _glfwInputJoystickAxis(js, (int) i, 0.f); else { - const float value = (2.f * (raw - axis->minimum) / delta) - 1.f; - _glfwInputJoystickAxis(js, i, value); + const float value = (2.f * (raw - axis->minimum) / size) - 1.f; + _glfwInputJoystickAxis(js, (int) i, value); } } } @@ -417,7 +441,8 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode) _GLFWjoyelementNS* button = (_GLFWjoyelementNS*) CFArrayGetValueAtIndex(js->ns.buttons, i); const char value = getElementValue(js, button) - button->minimum; - _glfwInputJoystickButton(js, i, value); + const int state = (value > 0) ? GLFW_PRESS : GLFW_RELEASE; + _glfwInputJoystickButton(js, (int) i, state); } for (i = 0; i < CFArrayGetCount(js->ns.hats); i++) @@ -441,7 +466,7 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode) if (state < 0 || state > 8) state = 8; - _glfwInputJoystickHat(js, i, states[state]); + _glfwInputJoystickHat(js, (int) i, states[state]); } } @@ -454,7 +479,7 @@ void _glfwPlatformUpdateGamepadGUID(char* guid) (strncmp(guid + 20, "000000000000", 12) == 0)) { char original[33]; - strcpy(original, guid); + strncpy(original, guid, sizeof(original) - 1); sprintf(guid, "03000000%.4s0000%.4s000000000000", original, original + 16); } diff --git a/external/glfw-3.3.4/src/cocoa_monitor.m b/external/glfw-3.3.4/src/cocoa_monitor.m new file mode 100644 index 0000000..55638cf --- /dev/null +++ b/external/glfw-3.3.4/src/cocoa_monitor.m @@ -0,0 +1,631 @@ +//======================================================================== +// GLFW 3.3 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#include +#include + + +// Get the name of the specified display, or NULL +// +static char* getMonitorName(CGDirectDisplayID displayID, NSScreen* screen) +{ + // IOKit doesn't work on Apple Silicon anymore + // Luckily, 10.15 introduced -[NSScreen localizedName]. + // Use it if available, and fall back to IOKit otherwise. + if (screen) + { + if ([screen respondsToSelector:@selector(localizedName)]) + { + NSString* name = [screen valueForKey:@"localizedName"]; + if (name) + return _glfw_strdup([name UTF8String]); + } + } + + io_iterator_t it; + io_service_t service; + CFDictionaryRef info; + + if (IOServiceGetMatchingServices(kIOMasterPortDefault, + IOServiceMatching("IODisplayConnect"), + &it) != 0) + { + // This may happen if a desktop Mac is running headless + return NULL; + } + + while ((service = IOIteratorNext(it)) != 0) + { + info = IODisplayCreateInfoDictionary(service, + kIODisplayOnlyPreferredName); + + CFNumberRef vendorIDRef = + CFDictionaryGetValue(info, CFSTR(kDisplayVendorID)); + CFNumberRef productIDRef = + CFDictionaryGetValue(info, CFSTR(kDisplayProductID)); + if (!vendorIDRef || !productIDRef) + { + CFRelease(info); + continue; + } + + unsigned int vendorID, productID; + CFNumberGetValue(vendorIDRef, kCFNumberIntType, &vendorID); + CFNumberGetValue(productIDRef, kCFNumberIntType, &productID); + + if (CGDisplayVendorNumber(displayID) == vendorID && + CGDisplayModelNumber(displayID) == productID) + { + // Info dictionary is used and freed below + break; + } + + CFRelease(info); + } + + IOObjectRelease(it); + + if (!service) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to find service port for display"); + return NULL; + } + + CFDictionaryRef names = + CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); + + CFStringRef nameRef; + + if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), + (const void**) &nameRef)) + { + // This may happen if a desktop Mac is running headless + CFRelease(info); + return NULL; + } + + const CFIndex size = + CFStringGetMaximumSizeForEncoding(CFStringGetLength(nameRef), + kCFStringEncodingUTF8); + char* name = calloc(size + 1, 1); + CFStringGetCString(nameRef, name, size, kCFStringEncodingUTF8); + + CFRelease(info); + return name; +} + +// Check whether the display mode should be included in enumeration +// +static GLFWbool modeIsGood(CGDisplayModeRef mode) +{ + uint32_t flags = CGDisplayModeGetIOFlags(mode); + + if (!(flags & kDisplayModeValidFlag) || !(flags & kDisplayModeSafeFlag)) + return GLFW_FALSE; + if (flags & kDisplayModeInterlacedFlag) + return GLFW_FALSE; + if (flags & kDisplayModeStretchedFlag) + return GLFW_FALSE; + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); + if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) && + CFStringCompare(format, CFSTR(IO32BitDirectPixels), 0)) + { + CFRelease(format); + return GLFW_FALSE; + } + + CFRelease(format); +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + return GLFW_TRUE; +} + +// Convert Core Graphics display mode to GLFW video mode +// +static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode, + double fallbackRefreshRate) +{ + GLFWvidmode result; + result.width = (int) CGDisplayModeGetWidth(mode); + result.height = (int) CGDisplayModeGetHeight(mode); + result.refreshRate = (int) round(CGDisplayModeGetRefreshRate(mode)); + + if (result.refreshRate == 0) + result.refreshRate = (int) round(fallbackRefreshRate); + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); + if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) == 0) + { + result.redBits = 5; + result.greenBits = 5; + result.blueBits = 5; + } + else +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + { + result.redBits = 8; + result.greenBits = 8; + result.blueBits = 8; + } + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFRelease(format); +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + return result; +} + +// Starts reservation for display fading +// +static CGDisplayFadeReservationToken beginFadeReservation(void) +{ + CGDisplayFadeReservationToken token = kCGDisplayFadeReservationInvalidToken; + + if (CGAcquireDisplayFadeReservation(5, &token) == kCGErrorSuccess) + { + CGDisplayFade(token, 0.3, + kCGDisplayBlendNormal, + kCGDisplayBlendSolidColor, + 0.0, 0.0, 0.0, + TRUE); + } + + return token; +} + +// Ends reservation for display fading +// +static void endFadeReservation(CGDisplayFadeReservationToken token) +{ + if (token != kCGDisplayFadeReservationInvalidToken) + { + CGDisplayFade(token, 0.5, + kCGDisplayBlendSolidColor, + kCGDisplayBlendNormal, + 0.0, 0.0, 0.0, + FALSE); + CGReleaseDisplayFadeReservation(token); + } +} + +// Returns the display refresh rate queried from the I/O registry +// +static double getFallbackRefreshRate(CGDirectDisplayID displayID) +{ + double refreshRate = 60.0; + + io_iterator_t it; + io_service_t service; + + if (IOServiceGetMatchingServices(kIOMasterPortDefault, + IOServiceMatching("IOFramebuffer"), + &it) != 0) + { + return refreshRate; + } + + while ((service = IOIteratorNext(it)) != 0) + { + const CFNumberRef indexRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFramebufferOpenGLIndex"), + kCFAllocatorDefault, + kNilOptions); + if (!indexRef) + continue; + + uint32_t index = 0; + CFNumberGetValue(indexRef, kCFNumberIntType, &index); + CFRelease(indexRef); + + if (CGOpenGLDisplayMaskToDisplayID(1 << index) != displayID) + continue; + + const CFNumberRef clockRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFBCurrentPixelClock"), + kCFAllocatorDefault, + kNilOptions); + const CFNumberRef countRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFBCurrentPixelCount"), + kCFAllocatorDefault, + kNilOptions); + + uint32_t clock = 0, count = 0; + + if (clockRef) + { + CFNumberGetValue(clockRef, kCFNumberIntType, &clock); + CFRelease(clockRef); + } + + if (countRef) + { + CFNumberGetValue(countRef, kCFNumberIntType, &count); + CFRelease(countRef); + } + + if (clock > 0 && count > 0) + refreshRate = clock / (double) count; + + break; + } + + IOObjectRelease(it); + return refreshRate; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Poll for changes in the set of connected monitors +// +void _glfwPollMonitorsNS(void) +{ + uint32_t displayCount; + CGGetOnlineDisplayList(0, NULL, &displayCount); + CGDirectDisplayID* displays = calloc(displayCount, sizeof(CGDirectDisplayID)); + CGGetOnlineDisplayList(displayCount, displays, &displayCount); + + for (int i = 0; i < _glfw.monitorCount; i++) + _glfw.monitors[i]->ns.screen = nil; + + _GLFWmonitor** disconnected = NULL; + uint32_t disconnectedCount = _glfw.monitorCount; + if (disconnectedCount) + { + disconnected = calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); + memcpy(disconnected, + _glfw.monitors, + _glfw.monitorCount * sizeof(_GLFWmonitor*)); + } + + for (uint32_t i = 0; i < displayCount; i++) + { + if (CGDisplayIsAsleep(displays[i])) + continue; + + const uint32_t unitNumber = CGDisplayUnitNumber(displays[i]); + NSScreen* screen = nil; + + for (screen in [NSScreen screens]) + { + NSNumber* screenNumber = [screen deviceDescription][@"NSScreenNumber"]; + + // HACK: Compare unit numbers instead of display IDs to work around + // display replacement on machines with automatic graphics + // switching + if (CGDisplayUnitNumber([screenNumber unsignedIntValue]) == unitNumber) + break; + } + + // HACK: Compare unit numbers instead of display IDs to work around + // display replacement on machines with automatic graphics + // switching + uint32_t j; + for (j = 0; j < disconnectedCount; j++) + { + if (disconnected[j] && disconnected[j]->ns.unitNumber == unitNumber) + { + disconnected[j]->ns.screen = screen; + disconnected[j] = NULL; + break; + } + } + + if (j < disconnectedCount) + continue; + + const CGSize size = CGDisplayScreenSize(displays[i]); + char* name = getMonitorName(displays[i], screen); + if (!name) + name = _glfw_strdup("Unknown"); + + _GLFWmonitor* monitor = _glfwAllocMonitor(name, size.width, size.height); + monitor->ns.displayID = displays[i]; + monitor->ns.unitNumber = unitNumber; + monitor->ns.screen = screen; + + free(name); + + CGDisplayModeRef mode = CGDisplayCopyDisplayMode(displays[i]); + if (CGDisplayModeGetRefreshRate(mode) == 0.0) + monitor->ns.fallbackRefreshRate = getFallbackRefreshRate(displays[i]); + CGDisplayModeRelease(mode); + + _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); + } + + for (uint32_t i = 0; i < disconnectedCount; i++) + { + if (disconnected[i]) + _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); + } + + free(disconnected); + free(displays); +} + +// Change the current video mode +// +void _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired) +{ + GLFWvidmode current; + _glfwPlatformGetVideoMode(monitor, ¤t); + + const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); + if (_glfwCompareVideoModes(¤t, best) == 0) + return; + + CFArrayRef modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); + const CFIndex count = CFArrayGetCount(modes); + CGDisplayModeRef native = NULL; + + for (CFIndex i = 0; i < count; i++) + { + CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); + if (!modeIsGood(dm)) + continue; + + const GLFWvidmode mode = + vidmodeFromCGDisplayMode(dm, monitor->ns.fallbackRefreshRate); + if (_glfwCompareVideoModes(best, &mode) == 0) + { + native = dm; + break; + } + } + + if (native) + { + if (monitor->ns.previousMode == NULL) + monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); + + CGDisplayFadeReservationToken token = beginFadeReservation(); + CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); + endFadeReservation(token); + } + + CFRelease(modes); +} + +// Restore the previously saved (original) video mode +// +void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor) +{ + if (monitor->ns.previousMode) + { + CGDisplayFadeReservationToken token = beginFadeReservation(); + CGDisplaySetDisplayMode(monitor->ns.displayID, + monitor->ns.previousMode, NULL); + endFadeReservation(token); + + CGDisplayModeRelease(monitor->ns.previousMode); + monitor->ns.previousMode = NULL; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor) +{ +} + +void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + @autoreleasepool { + + const CGRect bounds = CGDisplayBounds(monitor->ns.displayID); + + if (xpos) + *xpos = (int) bounds.origin.x; + if (ypos) + *ypos = (int) bounds.origin.y; + + } // autoreleasepool +} + +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + @autoreleasepool { + + if (!monitor->ns.screen) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Cannot query content scale without screen"); + } + + const NSRect points = [monitor->ns.screen frame]; + const NSRect pixels = [monitor->ns.screen convertRectToBacking:points]; + + if (xscale) + *xscale = (float) (pixels.size.width / points.size.width); + if (yscale) + *yscale = (float) (pixels.size.height / points.size.height); + + } // autoreleasepool +} + +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + @autoreleasepool { + + if (!monitor->ns.screen) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Cannot query workarea without screen"); + } + + const NSRect frameRect = [monitor->ns.screen visibleFrame]; + + if (xpos) + *xpos = frameRect.origin.x; + if (ypos) + *ypos = _glfwTransformYNS(frameRect.origin.y + frameRect.size.height - 1); + if (width) + *width = frameRect.size.width; + if (height) + *height = frameRect.size.height; + + } // autoreleasepool +} + +GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) +{ + @autoreleasepool { + + *count = 0; + + CFArrayRef modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); + const CFIndex found = CFArrayGetCount(modes); + GLFWvidmode* result = calloc(found, sizeof(GLFWvidmode)); + + for (CFIndex i = 0; i < found; i++) + { + CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); + if (!modeIsGood(dm)) + continue; + + const GLFWvidmode mode = + vidmodeFromCGDisplayMode(dm, monitor->ns.fallbackRefreshRate); + CFIndex j; + + for (j = 0; j < *count; j++) + { + if (_glfwCompareVideoModes(result + j, &mode) == 0) + break; + } + + // Skip duplicate modes + if (j < *count) + continue; + + (*count)++; + result[*count - 1] = mode; + } + + CFRelease(modes); + return result; + + } // autoreleasepool +} + +void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode *mode) +{ + @autoreleasepool { + + CGDisplayModeRef native = CGDisplayCopyDisplayMode(monitor->ns.displayID); + *mode = vidmodeFromCGDisplayMode(native, monitor->ns.fallbackRefreshRate); + CGDisplayModeRelease(native); + + } // autoreleasepool +} + +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + @autoreleasepool { + + uint32_t size = CGDisplayGammaTableCapacity(monitor->ns.displayID); + CGGammaValue* values = calloc(size * 3, sizeof(CGGammaValue)); + + CGGetDisplayTransferByTable(monitor->ns.displayID, + size, + values, + values + size, + values + size * 2, + &size); + + _glfwAllocGammaArrays(ramp, size); + + for (uint32_t i = 0; i < size; i++) + { + ramp->red[i] = (unsigned short) (values[i] * 65535); + ramp->green[i] = (unsigned short) (values[i + size] * 65535); + ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535); + } + + free(values); + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + @autoreleasepool { + + CGGammaValue* values = calloc(ramp->size * 3, sizeof(CGGammaValue)); + + for (unsigned int i = 0; i < ramp->size; i++) + { + values[i] = ramp->red[i] / 65535.f; + values[i + ramp->size] = ramp->green[i] / 65535.f; + values[i + ramp->size * 2] = ramp->blue[i] / 65535.f; + } + + CGSetDisplayTransferByTable(monitor->ns.displayID, + ramp->size, + values, + values + ramp->size, + values + ramp->size * 2); + + free(values); + + } // autoreleasepool +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); + return monitor->ns.displayID; +} + diff --git a/external/glfw-3.3.4/src/cocoa_platform.h b/external/glfw-3.3.4/src/cocoa_platform.h new file mode 100644 index 0000000..05c23b7 --- /dev/null +++ b/external/glfw-3.3.4/src/cocoa_platform.h @@ -0,0 +1,212 @@ +//======================================================================== +// GLFW 3.3 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// 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 +#include + +#include + +// NOTE: All of NSGL was deprecated in the 10.14 SDK +// This disables the pointless warnings for every symbol we use +#define GL_SILENCE_DEPRECATION + +#if defined(__OBJC__) +#import +#else +typedef void* id; +#endif + +// NOTE: Many Cocoa enum values have been renamed and we need to build across +// SDK versions where one is unavailable or the other deprecated +// We use the newer names in code and these macros to handle compatibility +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 + #define NSBitmapFormatAlphaNonpremultiplied NSAlphaNonpremultipliedBitmapFormat + #define NSEventMaskAny NSAnyEventMask + #define NSEventMaskKeyUp NSKeyUpMask + #define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask + #define NSEventModifierFlagCommand NSCommandKeyMask + #define NSEventModifierFlagControl NSControlKeyMask + #define NSEventModifierFlagDeviceIndependentFlagsMask NSDeviceIndependentModifierFlagsMask + #define NSEventModifierFlagOption NSAlternateKeyMask + #define NSEventModifierFlagShift NSShiftKeyMask + #define NSEventTypeApplicationDefined NSApplicationDefined + #define NSWindowStyleMaskBorderless NSBorderlessWindowMask + #define NSWindowStyleMaskClosable NSClosableWindowMask + #define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask + #define NSWindowStyleMaskResizable NSResizableWindowMask + #define NSWindowStyleMaskTitled NSTitledWindowMask +#endif + +typedef VkFlags VkMacOSSurfaceCreateFlagsMVK; +typedef VkFlags VkMetalSurfaceCreateFlagsEXT; + +typedef struct VkMacOSSurfaceCreateInfoMVK +{ + VkStructureType sType; + const void* pNext; + VkMacOSSurfaceCreateFlagsMVK flags; + const void* pView; +} VkMacOSSurfaceCreateInfoMVK; + +typedef struct VkMetalSurfaceCreateInfoEXT +{ + VkStructureType sType; + const void* pNext; + VkMetalSurfaceCreateFlagsEXT flags; + const void* pLayer; +} VkMetalSurfaceCreateInfoEXT; + +typedef VkResult (APIENTRY *PFN_vkCreateMacOSSurfaceMVK)(VkInstance,const VkMacOSSurfaceCreateInfoMVK*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkResult (APIENTRY *PFN_vkCreateMetalSurfaceEXT)(VkInstance,const VkMetalSurfaceCreateInfoEXT*,const VkAllocationCallbacks*,VkSurfaceKHR*); + +#include "posix_thread.h" +#include "cocoa_joystick.h" +#include "nsgl_context.h" +#include "egl_context.h" +#include "osmesa_context.h" + +#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) +#define _glfw_dlclose(handle) dlclose(handle) +#define _glfw_dlsym(handle, name) dlsym(handle, name) + +#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->ns.layer) +#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY + +#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNS ns +#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns +#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerNS ns +#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorNS ns +#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorNS ns + +// HIToolbox.framework pointer typedefs +#define kTISPropertyUnicodeKeyLayoutData _glfw.ns.tis.kPropertyUnicodeKeyLayoutData +typedef TISInputSourceRef (*PFN_TISCopyCurrentKeyboardLayoutInputSource)(void); +#define TISCopyCurrentKeyboardLayoutInputSource _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource +typedef void* (*PFN_TISGetInputSourceProperty)(TISInputSourceRef,CFStringRef); +#define TISGetInputSourceProperty _glfw.ns.tis.GetInputSourceProperty +typedef UInt8 (*PFN_LMGetKbdType)(void); +#define LMGetKbdType _glfw.ns.tis.GetKbdType + + +// Cocoa-specific per-window data +// +typedef struct _GLFWwindowNS +{ + id object; + id delegate; + id view; + id layer; + + GLFWbool maximized; + GLFWbool occluded; + GLFWbool retina; + + // Cached window properties to filter out duplicate events + int width, height; + int fbWidth, fbHeight; + float xscale, yscale; + + // The total sum of the distances the cursor has been warped + // since the last cursor motion event was processed + // This is kept to counteract Cocoa doing the same internally + double cursorWarpDeltaX, cursorWarpDeltaY; + +} _GLFWwindowNS; + +// Cocoa-specific global data +// +typedef struct _GLFWlibraryNS +{ + CGEventSourceRef eventSource; + id delegate; + GLFWbool finishedLaunching; + GLFWbool cursorHidden; + TISInputSourceRef inputSource; + IOHIDManagerRef hidManager; + id unicodeData; + id helper; + id keyUpMonitor; + id nibObjects; + + char keynames[GLFW_KEY_LAST + 1][17]; + short int keycodes[256]; + short int scancodes[GLFW_KEY_LAST + 1]; + char* clipboardString; + CGPoint cascadePoint; + // Where to place the cursor when re-enabled + double restoreCursorPosX, restoreCursorPosY; + // The window whose disabled cursor mode is active + _GLFWwindow* disabledCursorWindow; + + struct { + CFBundleRef bundle; + PFN_TISCopyCurrentKeyboardLayoutInputSource CopyCurrentKeyboardLayoutInputSource; + PFN_TISGetInputSourceProperty GetInputSourceProperty; + PFN_LMGetKbdType GetKbdType; + CFStringRef kPropertyUnicodeKeyLayoutData; + } tis; + +} _GLFWlibraryNS; + +// Cocoa-specific per-monitor data +// +typedef struct _GLFWmonitorNS +{ + CGDirectDisplayID displayID; + CGDisplayModeRef previousMode; + uint32_t unitNumber; + id screen; + double fallbackRefreshRate; + +} _GLFWmonitorNS; + +// Cocoa-specific per-cursor data +// +typedef struct _GLFWcursorNS +{ + id object; + +} _GLFWcursorNS; + +// Cocoa-specific global timer data +// +typedef struct _GLFWtimerNS +{ + uint64_t frequency; + +} _GLFWtimerNS; + + +void _glfwInitTimerNS(void); + +void _glfwPollMonitorsNS(void); +void _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor); + +float _glfwTransformYNS(float y); + +void* _glfwLoadLocalVulkanLoaderNS(void); + diff --git a/external/GLFW/src/cocoa_time.c b/external/glfw-3.3.4/src/cocoa_time.c similarity index 93% rename from external/GLFW/src/cocoa_time.c rename to external/glfw-3.3.4/src/cocoa_time.c index 3b27035..d390cdc 100644 --- a/external/GLFW/src/cocoa_time.c +++ b/external/glfw-3.3.4/src/cocoa_time.c @@ -23,6 +23,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/glfw-3.3.4/src/cocoa_window.m b/external/glfw-3.3.4/src/cocoa_window.m new file mode 100644 index 0000000..9fa72a6 --- /dev/null +++ b/external/glfw-3.3.4/src/cocoa_window.m @@ -0,0 +1,1843 @@ +//======================================================================== +// GLFW 3.3 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + +// Returns the style mask corresponding to the window settings +// +static NSUInteger getStyleMask(_GLFWwindow* window) +{ + NSUInteger styleMask = NSWindowStyleMaskMiniaturizable; + + if (window->monitor || !window->decorated) + styleMask |= NSWindowStyleMaskBorderless; + else + { + styleMask |= NSWindowStyleMaskTitled | + NSWindowStyleMaskClosable; + + if (window->resizable) + styleMask |= NSWindowStyleMaskResizable; + } + + return styleMask; +} + +// Returns whether the cursor is in the content area of the specified window +// +static GLFWbool cursorInContentArea(_GLFWwindow* window) +{ + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + return [window->ns.view mouse:pos inRect:[window->ns.view frame]]; +} + +// Hides the cursor if not already hidden +// +static void hideCursor(_GLFWwindow* window) +{ + if (!_glfw.ns.cursorHidden) + { + [NSCursor hide]; + _glfw.ns.cursorHidden = GLFW_TRUE; + } +} + +// Shows the cursor if not already shown +// +static void showCursor(_GLFWwindow* window) +{ + if (_glfw.ns.cursorHidden) + { + [NSCursor unhide]; + _glfw.ns.cursorHidden = GLFW_FALSE; + } +} + +// Updates the cursor image according to its cursor mode +// +static void updateCursorImage(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL) + { + showCursor(window); + + if (window->cursor) + [(NSCursor*) window->cursor->ns.object set]; + else + [[NSCursor arrowCursor] set]; + } + else + hideCursor(window); +} + +// Apply chosen cursor mode to a focused window +// +static void updateCursorMode(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + _glfw.ns.disabledCursorWindow = window; + _glfwPlatformGetCursorPos(window, + &_glfw.ns.restoreCursorPosX, + &_glfw.ns.restoreCursorPosY); + _glfwCenterCursorInContentArea(window); + CGAssociateMouseAndMouseCursorPosition(false); + } + else if (_glfw.ns.disabledCursorWindow == window) + { + _glfw.ns.disabledCursorWindow = NULL; + CGAssociateMouseAndMouseCursorPosition(true); + _glfwPlatformSetCursorPos(window, + _glfw.ns.restoreCursorPosX, + _glfw.ns.restoreCursorPosY); + } + + if (cursorInContentArea(window)) + updateCursorImage(window); +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + _glfwSetVideoModeNS(window->monitor, &window->videoMode); + const CGRect bounds = CGDisplayBounds(window->monitor->ns.displayID); + const NSRect frame = NSMakeRect(bounds.origin.x, + _glfwTransformYNS(bounds.origin.y + bounds.size.height - 1), + bounds.size.width, + bounds.size.height); + + [window->ns.object setFrame:frame display:YES]; + + _glfwInputMonitorWindow(window->monitor, window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfwInputMonitorWindow(window->monitor, NULL); + _glfwRestoreVideoModeNS(window->monitor); +} + +// Translates macOS key modifiers into GLFW ones +// +static int translateFlags(NSUInteger flags) +{ + int mods = 0; + + if (flags & NSEventModifierFlagShift) + mods |= GLFW_MOD_SHIFT; + if (flags & NSEventModifierFlagControl) + mods |= GLFW_MOD_CONTROL; + if (flags & NSEventModifierFlagOption) + mods |= GLFW_MOD_ALT; + if (flags & NSEventModifierFlagCommand) + mods |= GLFW_MOD_SUPER; + if (flags & NSEventModifierFlagCapsLock) + mods |= GLFW_MOD_CAPS_LOCK; + + return mods; +} + +// Translates a macOS keycode to a GLFW keycode +// +static int translateKey(unsigned int key) +{ + if (key >= sizeof(_glfw.ns.keycodes) / sizeof(_glfw.ns.keycodes[0])) + return GLFW_KEY_UNKNOWN; + + return _glfw.ns.keycodes[key]; +} + +// Translate a GLFW keycode to a Cocoa modifier flag +// +static NSUInteger translateKeyToModifierFlag(int key) +{ + switch (key) + { + case GLFW_KEY_LEFT_SHIFT: + case GLFW_KEY_RIGHT_SHIFT: + return NSEventModifierFlagShift; + case GLFW_KEY_LEFT_CONTROL: + case GLFW_KEY_RIGHT_CONTROL: + return NSEventModifierFlagControl; + case GLFW_KEY_LEFT_ALT: + case GLFW_KEY_RIGHT_ALT: + return NSEventModifierFlagOption; + case GLFW_KEY_LEFT_SUPER: + case GLFW_KEY_RIGHT_SUPER: + return NSEventModifierFlagCommand; + case GLFW_KEY_CAPS_LOCK: + return NSEventModifierFlagCapsLock; + } + + return 0; +} + +// Defines a constant for empty ranges in NSTextInputClient +// +static const NSRange kEmptyRange = { NSNotFound, 0 }; + + +//------------------------------------------------------------------------ +// Delegate for window related notifications +//------------------------------------------------------------------------ + +@interface GLFWWindowDelegate : NSObject +{ + _GLFWwindow* window; +} + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; + +@end + +@implementation GLFWWindowDelegate + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow +{ + self = [super init]; + if (self != nil) + window = initWindow; + + return self; +} + +- (BOOL)windowShouldClose:(id)sender +{ + _glfwInputWindowCloseRequest(window); + return NO; +} + +- (void)windowDidResize:(NSNotification *)notification +{ + if (window->context.client != GLFW_NO_API) + [window->context.nsgl.object update]; + + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + const int maximized = [window->ns.object isZoomed]; + if (window->ns.maximized != maximized) + { + window->ns.maximized = maximized; + _glfwInputWindowMaximize(window, maximized); + } + + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + + if (fbRect.size.width != window->ns.fbWidth || + fbRect.size.height != window->ns.fbHeight) + { + window->ns.fbWidth = fbRect.size.width; + window->ns.fbHeight = fbRect.size.height; + _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); + } + + if (contentRect.size.width != window->ns.width || + contentRect.size.height != window->ns.height) + { + window->ns.width = contentRect.size.width; + window->ns.height = contentRect.size.height; + _glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height); + } +} + +- (void)windowDidMove:(NSNotification *)notification +{ + if (window->context.client != GLFW_NO_API) + [window->context.nsgl.object update]; + + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + int x, y; + _glfwPlatformGetWindowPos(window, &x, &y); + _glfwInputWindowPos(window, x, y); +} + +- (void)windowDidMiniaturize:(NSNotification *)notification +{ + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowIconify(window, GLFW_TRUE); +} + +- (void)windowDidDeminiaturize:(NSNotification *)notification +{ + if (window->monitor) + acquireMonitor(window); + + _glfwInputWindowIconify(window, GLFW_FALSE); +} + +- (void)windowDidBecomeKey:(NSNotification *)notification +{ + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + _glfwInputWindowFocus(window, GLFW_TRUE); + updateCursorMode(window); +} + +- (void)windowDidResignKey:(NSNotification *)notification +{ + if (window->monitor && window->autoIconify) + _glfwPlatformIconifyWindow(window); + + _glfwInputWindowFocus(window, GLFW_FALSE); +} + +- (void)windowDidChangeOcclusionState:(NSNotification* )notification +{ + if ([window->ns.object occlusionState] & NSWindowOcclusionStateVisible) + window->ns.occluded = GLFW_FALSE; + else + window->ns.occluded = GLFW_TRUE; +} + +@end + + +//------------------------------------------------------------------------ +// Content view class for the GLFW window +//------------------------------------------------------------------------ + +@interface GLFWContentView : NSView +{ + _GLFWwindow* window; + NSTrackingArea* trackingArea; + NSMutableAttributedString* markedText; +} + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; + +@end + +@implementation GLFWContentView + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow +{ + self = [super init]; + if (self != nil) + { + window = initWindow; + trackingArea = nil; + markedText = [[NSMutableAttributedString alloc] init]; + + [self updateTrackingAreas]; + // NOTE: kUTTypeURL corresponds to NSPasteboardTypeURL but is available + // on 10.7 without having been deprecated yet + [self registerForDraggedTypes:@[(__bridge NSString*) kUTTypeURL]]; + } + + return self; +} + +- (void)dealloc +{ + [trackingArea release]; + [markedText release]; + [super dealloc]; +} + +- (BOOL)isOpaque +{ + return [window->ns.object isOpaque]; +} + +- (BOOL)canBecomeKeyView +{ + return YES; +} + +- (BOOL)acceptsFirstResponder +{ + return YES; +} + +- (BOOL)wantsUpdateLayer +{ + return YES; +} + +- (void)updateLayer +{ + if (window->context.client != GLFW_NO_API) + [window->context.nsgl.object update]; + + _glfwInputWindowDamage(window); +} + +- (void)cursorUpdate:(NSEvent *)event +{ + updateCursorImage(window); +} + +- (BOOL)acceptsFirstMouse:(NSEvent *)event +{ + return YES; +} + +- (void)mouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_LEFT, + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)mouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)mouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_LEFT, + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)mouseMoved:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + const double dx = [event deltaX] - window->ns.cursorWarpDeltaX; + const double dy = [event deltaY] - window->ns.cursorWarpDeltaY; + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + } + else + { + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [event locationInWindow]; + + _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); + } + + window->ns.cursorWarpDeltaX = 0; + window->ns.cursorWarpDeltaY = 0; +} + +- (void)rightMouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_RIGHT, + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)rightMouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)rightMouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_RIGHT, + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)otherMouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + (int) [event buttonNumber], + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)otherMouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)otherMouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + (int) [event buttonNumber], + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)mouseExited:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + showCursor(window); + + _glfwInputCursorEnter(window, GLFW_FALSE); +} + +- (void)mouseEntered:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + hideCursor(window); + + _glfwInputCursorEnter(window, GLFW_TRUE); +} + +- (void)viewDidChangeBackingProperties +{ + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + + if (fbRect.size.width != window->ns.fbWidth || + fbRect.size.height != window->ns.fbHeight) + { + window->ns.fbWidth = fbRect.size.width; + window->ns.fbHeight = fbRect.size.height; + _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); + } + + const float xscale = fbRect.size.width / contentRect.size.width; + const float yscale = fbRect.size.height / contentRect.size.height; + + if (xscale != window->ns.xscale || yscale != window->ns.yscale) + { + window->ns.xscale = xscale; + window->ns.yscale = yscale; + _glfwInputWindowContentScale(window, xscale, yscale); + + if (window->ns.retina && window->ns.layer) + [window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]]; + } +} + +- (void)drawRect:(NSRect)rect +{ + _glfwInputWindowDamage(window); +} + +- (void)updateTrackingAreas +{ + if (trackingArea != nil) + { + [self removeTrackingArea:trackingArea]; + [trackingArea release]; + } + + const NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | + NSTrackingActiveInKeyWindow | + NSTrackingEnabledDuringMouseDrag | + NSTrackingCursorUpdate | + NSTrackingInVisibleRect | + NSTrackingAssumeInside; + + trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] + options:options + owner:self + userInfo:nil]; + + [self addTrackingArea:trackingArea]; + [super updateTrackingAreas]; +} + +- (void)keyDown:(NSEvent *)event +{ + const int key = translateKey([event keyCode]); + const int mods = translateFlags([event modifierFlags]); + + _glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods); + + [self interpretKeyEvents:@[event]]; +} + +- (void)flagsChanged:(NSEvent *)event +{ + int action; + const unsigned int modifierFlags = + [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask; + const int key = translateKey([event keyCode]); + const int mods = translateFlags(modifierFlags); + const NSUInteger keyFlag = translateKeyToModifierFlag(key); + + if (keyFlag & modifierFlags) + { + if (window->keys[key] == GLFW_PRESS) + action = GLFW_RELEASE; + else + action = GLFW_PRESS; + } + else + action = GLFW_RELEASE; + + _glfwInputKey(window, key, [event keyCode], action, mods); +} + +- (void)keyUp:(NSEvent *)event +{ + const int key = translateKey([event keyCode]); + const int mods = translateFlags([event modifierFlags]); + _glfwInputKey(window, key, [event keyCode], GLFW_RELEASE, mods); +} + +- (void)scrollWheel:(NSEvent *)event +{ + double deltaX = [event scrollingDeltaX]; + double deltaY = [event scrollingDeltaY]; + + if ([event hasPreciseScrollingDeltas]) + { + deltaX *= 0.1; + deltaY *= 0.1; + } + + if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) + _glfwInputScroll(window, deltaX, deltaY); +} + +- (NSDragOperation)draggingEntered:(id )sender +{ + // HACK: We don't know what to say here because we don't know what the + // application wants to do with the paths + return NSDragOperationGeneric; +} + +- (BOOL)performDragOperation:(id )sender +{ + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [sender draggingLocation]; + _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); + + NSPasteboard* pasteboard = [sender draggingPasteboard]; + NSDictionary* options = @{NSPasteboardURLReadingFileURLsOnlyKey:@YES}; + NSArray* urls = [pasteboard readObjectsForClasses:@[[NSURL class]] + options:options]; + const NSUInteger count = [urls count]; + if (count) + { + char** paths = calloc(count, sizeof(char*)); + + for (NSUInteger i = 0; i < count; i++) + paths[i] = _glfw_strdup([urls[i] fileSystemRepresentation]); + + _glfwInputDrop(window, (int) count, (const char**) paths); + + for (NSUInteger i = 0; i < count; i++) + free(paths[i]); + free(paths); + } + + return YES; +} + +- (BOOL)hasMarkedText +{ + return [markedText length] > 0; +} + +- (NSRange)markedRange +{ + if ([markedText length] > 0) + return NSMakeRange(0, [markedText length] - 1); + else + return kEmptyRange; +} + +- (NSRange)selectedRange +{ + return kEmptyRange; +} + +- (void)setMarkedText:(id)string + selectedRange:(NSRange)selectedRange + replacementRange:(NSRange)replacementRange +{ + [markedText release]; + if ([string isKindOfClass:[NSAttributedString class]]) + markedText = [[NSMutableAttributedString alloc] initWithAttributedString:string]; + else + markedText = [[NSMutableAttributedString alloc] initWithString:string]; +} + +- (void)unmarkText +{ + [[markedText mutableString] setString:@""]; +} + +- (NSArray*)validAttributesForMarkedText +{ + return [NSArray array]; +} + +- (NSAttributedString*)attributedSubstringForProposedRange:(NSRange)range + actualRange:(NSRangePointer)actualRange +{ + return nil; +} + +- (NSUInteger)characterIndexForPoint:(NSPoint)point +{ + return 0; +} + +- (NSRect)firstRectForCharacterRange:(NSRange)range + actualRange:(NSRangePointer)actualRange +{ + const NSRect frame = [window->ns.view frame]; + return NSMakeRect(frame.origin.x, frame.origin.y, 0.0, 0.0); +} + +- (void)insertText:(id)string replacementRange:(NSRange)replacementRange +{ + NSString* characters; + NSEvent* event = [NSApp currentEvent]; + const int mods = translateFlags([event modifierFlags]); + const int plain = !(mods & GLFW_MOD_SUPER); + + if ([string isKindOfClass:[NSAttributedString class]]) + characters = [string string]; + else + characters = (NSString*) string; + + NSRange range = NSMakeRange(0, [characters length]); + while (range.length) + { + uint32_t codepoint = 0; + + if ([characters getBytes:&codepoint + maxLength:sizeof(codepoint) + usedLength:NULL + encoding:NSUTF32StringEncoding + options:0 + range:range + remainingRange:&range]) + { + if (codepoint >= 0xf700 && codepoint <= 0xf7ff) + continue; + + _glfwInputChar(window, codepoint, mods, plain); + } + } +} + +- (void)doCommandBySelector:(SEL)selector +{ +} + +@end + + +//------------------------------------------------------------------------ +// GLFW window class +//------------------------------------------------------------------------ + +@interface GLFWWindow : NSWindow {} +@end + +@implementation GLFWWindow + +- (BOOL)canBecomeKeyWindow +{ + // Required for NSWindowStyleMaskBorderless windows + return YES; +} + +- (BOOL)canBecomeMainWindow +{ + return YES; +} + +@end + + +// Create the Cocoa window +// +static GLFWbool createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + window->ns.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window]; + if (window->ns.delegate == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create window delegate"); + return GLFW_FALSE; + } + + NSRect contentRect; + + if (window->monitor) + { + GLFWvidmode mode; + int xpos, ypos; + + _glfwPlatformGetVideoMode(window->monitor, &mode); + _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); + + contentRect = NSMakeRect(xpos, ypos, mode.width, mode.height); + } + else + contentRect = NSMakeRect(0, 0, wndconfig->width, wndconfig->height); + + window->ns.object = [[GLFWWindow alloc] + initWithContentRect:contentRect + styleMask:getStyleMask(window) + backing:NSBackingStoreBuffered + defer:NO]; + + if (window->ns.object == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create window"); + return GLFW_FALSE; + } + + if (window->monitor) + [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; + else + { + [(NSWindow*) window->ns.object center]; + _glfw.ns.cascadePoint = + NSPointToCGPoint([window->ns.object cascadeTopLeftFromPoint: + NSPointFromCGPoint(_glfw.ns.cascadePoint)]); + + if (wndconfig->resizable) + { + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenPrimary | + NSWindowCollectionBehaviorManaged; + [window->ns.object setCollectionBehavior:behavior]; + } + + if (wndconfig->floating) + [window->ns.object setLevel:NSFloatingWindowLevel]; + + if (wndconfig->maximized) + [window->ns.object zoom:nil]; + } + + if (strlen(wndconfig->ns.frameName)) + [window->ns.object setFrameAutosaveName:@(wndconfig->ns.frameName)]; + + window->ns.view = [[GLFWContentView alloc] initWithGlfwWindow:window]; + window->ns.retina = wndconfig->ns.retina; + + if (fbconfig->transparent) + { + [window->ns.object setOpaque:NO]; + [window->ns.object setHasShadow:NO]; + [window->ns.object setBackgroundColor:[NSColor clearColor]]; + } + + [window->ns.object setContentView:window->ns.view]; + [window->ns.object makeFirstResponder:window->ns.view]; + [window->ns.object setTitle:@(wndconfig->title)]; + [window->ns.object setDelegate:window->ns.delegate]; + [window->ns.object setAcceptsMouseMovedEvents:YES]; + [window->ns.object setRestorable:NO]; + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 + if ([window->ns.object respondsToSelector:@selector(setTabbingMode:)]) + [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; +#endif + + _glfwPlatformGetWindowSize(window, &window->ns.width, &window->ns.height); + _glfwPlatformGetFramebufferSize(window, &window->ns.fbWidth, &window->ns.fbHeight); + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Transforms a y-coordinate between the CG display and NS screen spaces +// +float _glfwTransformYNS(float y) +{ + return CGDisplayBounds(CGMainDisplayID()).size.height - y - 1; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformCreateWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + @autoreleasepool { + + if (!_glfw.ns.finishedLaunching) + [NSApp run]; + + if (!createNativeWindow(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitNSGL()) + return GLFW_FALSE; + if (!_glfwCreateContextNSGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + // EGL implementation on macOS use CALayer* EGLNativeWindowType so we + // need to get the layer for EGL window surface creation. + [window->ns.view setWantsLayer:YES]; + window->ns.layer = [window->ns.view layer]; + + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + } + + if (window->monitor) + { + _glfwPlatformShowWindow(window); + _glfwPlatformFocusWindow(window); + acquireMonitor(window); + } + + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwPlatformDestroyWindow(_GLFWwindow* window) +{ + @autoreleasepool { + + if (_glfw.ns.disabledCursorWindow == window) + _glfw.ns.disabledCursorWindow = NULL; + + [window->ns.object orderOut:nil]; + + if (window->monitor) + releaseMonitor(window); + + if (window->context.destroy) + window->context.destroy(window); + + [window->ns.object setDelegate:nil]; + [window->ns.delegate release]; + window->ns.delegate = nil; + + [window->ns.view release]; + window->ns.view = nil; + + [window->ns.object close]; + window->ns.object = nil; + + // HACK: Allow Cocoa to catch up before returning + _glfwPlatformPollEvents(); + + } // autoreleasepool +} + +void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) +{ + @autoreleasepool { + NSString* string = @(title); + [window->ns.object setTitle:string]; + // HACK: Set the miniwindow title explicitly as setTitle: doesn't update it + // if the window lacks NSWindowStyleMaskTitled + [window->ns.object setMiniwindowTitle:string]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowIcon(_GLFWwindow* window, + int count, const GLFWimage* images) +{ + // Regular windows do not have icons +} + +void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) +{ + @autoreleasepool { + + const NSRect contentRect = + [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; + + if (xpos) + *xpos = contentRect.origin.x; + if (ypos) + *ypos = _glfwTransformYNS(contentRect.origin.y + contentRect.size.height - 1); + + } // autoreleasepool +} + +void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect dummyRect = NSMakeRect(x, _glfwTransformYNS(y + contentRect.size.height - 1), 0, 0); + const NSRect frameRect = [window->ns.object frameRectForContentRect:dummyRect]; + [window->ns.object setFrameOrigin:frameRect.origin]; + + } // autoreleasepool +} + +void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + + if (width) + *width = contentRect.size.width; + if (height) + *height = contentRect.size.height; + + } // autoreleasepool +} + +void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) +{ + @autoreleasepool { + + if (window->monitor) + { + if (window->monitor->window == window) + acquireMonitor(window); + } + else + { + NSRect contentRect = + [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; + contentRect.origin.y += contentRect.size.height - height; + contentRect.size = NSMakeSize(width, height); + [window->ns.object setFrame:[window->ns.object frameRectForContentRect:contentRect] + display:YES]; + } + + } // autoreleasepool +} + +void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + @autoreleasepool { + + if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) + [window->ns.object setContentMinSize:NSMakeSize(0, 0)]; + else + [window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)]; + + if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) + [window->ns.object setContentMaxSize:NSMakeSize(DBL_MAX, DBL_MAX)]; + else + [window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)]; + + } // autoreleasepool +} + +void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) +{ + @autoreleasepool { + if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) + [window->ns.object setResizeIncrements:NSMakeSize(1.0, 1.0)]; + else + [window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)]; + } // autoreleasepool +} + +void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + + if (width) + *width = (int) fbRect.size.width; + if (height) + *height = (int) fbRect.size.height; + + } // autoreleasepool +} + +void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect]; + + if (left) + *left = contentRect.origin.x - frameRect.origin.x; + if (top) + *top = frameRect.origin.y + frameRect.size.height - + contentRect.origin.y - contentRect.size.height; + if (right) + *right = frameRect.origin.x + frameRect.size.width - + contentRect.origin.x - contentRect.size.width; + if (bottom) + *bottom = contentRect.origin.y - frameRect.origin.y; + + } // autoreleasepool +} + +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale) +{ + @autoreleasepool { + + const NSRect points = [window->ns.view frame]; + const NSRect pixels = [window->ns.view convertRectToBacking:points]; + + if (xscale) + *xscale = (float) (pixels.size.width / points.size.width); + if (yscale) + *yscale = (float) (pixels.size.height / points.size.height); + + } // autoreleasepool +} + +void _glfwPlatformIconifyWindow(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object miniaturize:nil]; + } // autoreleasepool +} + +void _glfwPlatformRestoreWindow(_GLFWwindow* window) +{ + @autoreleasepool { + if ([window->ns.object isMiniaturized]) + [window->ns.object deminiaturize:nil]; + else if ([window->ns.object isZoomed]) + [window->ns.object zoom:nil]; + } // autoreleasepool +} + +void _glfwPlatformMaximizeWindow(_GLFWwindow* window) +{ + @autoreleasepool { + if (![window->ns.object isZoomed]) + [window->ns.object zoom:nil]; + } // autoreleasepool +} + +void _glfwPlatformShowWindow(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object orderFront:nil]; + } // autoreleasepool +} + +void _glfwPlatformHideWindow(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object orderOut:nil]; + } // autoreleasepool +} + +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ + @autoreleasepool { + [NSApp requestUserAttention:NSInformationalRequest]; + } // autoreleasepool +} + +void _glfwPlatformFocusWindow(_GLFWwindow* window) +{ + @autoreleasepool { + // Make us the active application + // HACK: This is here to prevent applications using only hidden windows from + // being activated, but should probably not be done every time any + // window is shown + [NSApp activateIgnoringOtherApps:YES]; + [window->ns.object makeKeyAndOrderFront:nil]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + @autoreleasepool { + + if (window->monitor == monitor) + { + if (monitor) + { + if (monitor->window == window) + acquireMonitor(window); + } + else + { + const NSRect contentRect = + NSMakeRect(xpos, _glfwTransformYNS(ypos + height - 1), width, height); + const NSRect frameRect = + [window->ns.object frameRectForContentRect:contentRect + styleMask:getStyleMask(window)]; + + [window->ns.object setFrame:frameRect display:YES]; + } + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + // HACK: Allow the state cached in Cocoa to catch up to reality + // TODO: Solve this in a less terrible way + _glfwPlatformPollEvents(); + + const NSUInteger styleMask = getStyleMask(window); + [window->ns.object setStyleMask:styleMask]; + // HACK: Changing the style mask can cause the first responder to be cleared + [window->ns.object makeFirstResponder:window->ns.view]; + + if (window->monitor) + { + [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; + [window->ns.object setHasShadow:NO]; + + acquireMonitor(window); + } + else + { + NSRect contentRect = NSMakeRect(xpos, _glfwTransformYNS(ypos + height - 1), + width, height); + NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect + styleMask:styleMask]; + [window->ns.object setFrame:frameRect display:YES]; + + if (window->numer != GLFW_DONT_CARE && + window->denom != GLFW_DONT_CARE) + { + [window->ns.object setContentAspectRatio:NSMakeSize(window->numer, + window->denom)]; + } + + if (window->minwidth != GLFW_DONT_CARE && + window->minheight != GLFW_DONT_CARE) + { + [window->ns.object setContentMinSize:NSMakeSize(window->minwidth, + window->minheight)]; + } + + if (window->maxwidth != GLFW_DONT_CARE && + window->maxheight != GLFW_DONT_CARE) + { + [window->ns.object setContentMaxSize:NSMakeSize(window->maxwidth, + window->maxheight)]; + } + + if (window->floating) + [window->ns.object setLevel:NSFloatingWindowLevel]; + else + [window->ns.object setLevel:NSNormalWindowLevel]; + + [window->ns.object setHasShadow:YES]; + // HACK: Clearing NSWindowStyleMaskTitled resets and disables the window + // title property but the miniwindow title property is unaffected + [window->ns.object setTitle:[window->ns.object miniwindowTitle]]; + } + + } // autoreleasepool +} + +int _glfwPlatformWindowFocused(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isKeyWindow]; + } // autoreleasepool +} + +int _glfwPlatformWindowIconified(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isMiniaturized]; + } // autoreleasepool +} + +int _glfwPlatformWindowVisible(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isVisible]; + } // autoreleasepool +} + +int _glfwPlatformWindowMaximized(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isZoomed]; + } // autoreleasepool +} + +int _glfwPlatformWindowHovered(_GLFWwindow* window) +{ + @autoreleasepool { + + const NSPoint point = [NSEvent mouseLocation]; + + if ([NSWindow windowNumberAtPoint:point belowWindowWithWindowNumber:0] != + [window->ns.object windowNumber]) + { + return GLFW_FALSE; + } + + return NSMouseInRect(point, + [window->ns.object convertRectToScreen:[window->ns.view frame]], NO); + + } // autoreleasepool +} + +int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) +{ + @autoreleasepool { + return ![window->ns.object isOpaque] && ![window->ns.view isOpaque]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + [window->ns.object setStyleMask:getStyleMask(window)]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + [window->ns.object setStyleMask:getStyleMask(window)]; + [window->ns.object makeFirstResponder:window->ns.view]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + if (enabled) + [window->ns.object setLevel:NSFloatingWindowLevel]; + else + [window->ns.object setLevel:NSNormalWindowLevel]; + } // autoreleasepool +} + +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window) +{ + @autoreleasepool { + return (float) [window->ns.object alphaValue]; + } // autoreleasepool +} + +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity) +{ + @autoreleasepool { + [window->ns.object setAlphaValue:opacity]; + } // autoreleasepool +} + +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled) +{ +} + +GLFWbool _glfwPlatformRawMouseMotionSupported(void) +{ + return GLFW_FALSE; +} + +void _glfwPlatformPollEvents(void) +{ + @autoreleasepool { + + if (!_glfw.ns.finishedLaunching) + [NSApp run]; + + for (;;) + { + NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:[NSDate distantPast] + inMode:NSDefaultRunLoopMode + dequeue:YES]; + if (event == nil) + break; + + [NSApp sendEvent:event]; + } + + } // autoreleasepool +} + +void _glfwPlatformWaitEvents(void) +{ + @autoreleasepool { + + if (!_glfw.ns.finishedLaunching) + [NSApp run]; + + // I wanted to pass NO to dequeue:, and rely on PollEvents to + // dequeue and send. For reasons not at all clear to me, passing + // NO to dequeue: causes this method never to return. + NSEvent *event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:[NSDate distantFuture] + inMode:NSDefaultRunLoopMode + dequeue:YES]; + [NSApp sendEvent:event]; + + _glfwPlatformPollEvents(); + + } // autoreleasepool +} + +void _glfwPlatformWaitEventsTimeout(double timeout) +{ + @autoreleasepool { + + if (!_glfw.ns.finishedLaunching) + [NSApp run]; + + NSDate* date = [NSDate dateWithTimeIntervalSinceNow:timeout]; + NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:date + inMode:NSDefaultRunLoopMode + dequeue:YES]; + if (event) + [NSApp sendEvent:event]; + + _glfwPlatformPollEvents(); + + } // autoreleasepool +} + +void _glfwPlatformPostEmptyEvent(void) +{ + @autoreleasepool { + + if (!_glfw.ns.finishedLaunching) + [NSApp run]; + + NSEvent* event = [NSEvent otherEventWithType:NSEventTypeApplicationDefined + location:NSMakePoint(0, 0) + modifierFlags:0 + timestamp:0 + windowNumber:0 + context:nil + subtype:0 + data1:0 + data2:0]; + [NSApp postEvent:event atStart:YES]; + + } // autoreleasepool +} + +void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = contentRect.size.height - pos.y; + + } // autoreleasepool +} + +void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) +{ + @autoreleasepool { + + updateCursorImage(window); + + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + + window->ns.cursorWarpDeltaX += x - pos.x; + window->ns.cursorWarpDeltaY += y - contentRect.size.height + pos.y; + + if (window->monitor) + { + CGDisplayMoveCursorToPoint(window->monitor->ns.displayID, + CGPointMake(x, y)); + } + else + { + const NSRect localRect = NSMakeRect(x, contentRect.size.height - y - 1, 0, 0); + const NSRect globalRect = [window->ns.object convertRectToScreen:localRect]; + const NSPoint globalPoint = globalRect.origin; + + CGWarpMouseCursorPosition(CGPointMake(globalPoint.x, + _glfwTransformYNS(globalPoint.y))); + } + + } // autoreleasepool +} + +void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) +{ + @autoreleasepool { + if (_glfwPlatformWindowFocused(window)) + updateCursorMode(window); + } // autoreleasepool +} + +const char* _glfwPlatformGetScancodeName(int scancode) +{ + @autoreleasepool { + + if (scancode < 0 || scancode > 0xff || + _glfw.ns.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode"); + return NULL; + } + + const int key = _glfw.ns.keycodes[scancode]; + + UInt32 deadKeyState = 0; + UniChar characters[4]; + UniCharCount characterCount = 0; + + if (UCKeyTranslate([(NSData*) _glfw.ns.unicodeData bytes], + scancode, + kUCKeyActionDisplay, + 0, + LMGetKbdType(), + kUCKeyTranslateNoDeadKeysBit, + &deadKeyState, + sizeof(characters) / sizeof(characters[0]), + &characterCount, + characters) != noErr) + { + return NULL; + } + + if (!characterCount) + return NULL; + + CFStringRef string = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, + characters, + characterCount, + kCFAllocatorNull); + CFStringGetCString(string, + _glfw.ns.keynames[key], + sizeof(_glfw.ns.keynames[key]), + kCFStringEncodingUTF8); + CFRelease(string); + + return _glfw.ns.keynames[key]; + + } // autoreleasepool +} + +int _glfwPlatformGetKeyScancode(int key) +{ + return _glfw.ns.scancodes[key]; +} + +int _glfwPlatformCreateCursor(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + @autoreleasepool { + + NSImage* native; + NSBitmapImageRep* rep; + + rep = [[NSBitmapImageRep alloc] + initWithBitmapDataPlanes:NULL + pixelsWide:image->width + pixelsHigh:image->height + bitsPerSample:8 + samplesPerPixel:4 + hasAlpha:YES + isPlanar:NO + colorSpaceName:NSCalibratedRGBColorSpace + bitmapFormat:NSBitmapFormatAlphaNonpremultiplied + bytesPerRow:image->width * 4 + bitsPerPixel:32]; + + if (rep == nil) + return GLFW_FALSE; + + memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); + + native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; + [native addRepresentation:rep]; + + cursor->ns.object = [[NSCursor alloc] initWithImage:native + hotSpot:NSMakePoint(xhot, yhot)]; + + [native release]; + [rep release]; + + if (cursor->ns.object == nil) + return GLFW_FALSE; + + return GLFW_TRUE; + + } // autoreleasepool +} + +int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) +{ + @autoreleasepool { + + if (shape == GLFW_ARROW_CURSOR) + cursor->ns.object = [NSCursor arrowCursor]; + else if (shape == GLFW_IBEAM_CURSOR) + cursor->ns.object = [NSCursor IBeamCursor]; + else if (shape == GLFW_CROSSHAIR_CURSOR) + cursor->ns.object = [NSCursor crosshairCursor]; + else if (shape == GLFW_HAND_CURSOR) + cursor->ns.object = [NSCursor pointingHandCursor]; + else if (shape == GLFW_HRESIZE_CURSOR) + cursor->ns.object = [NSCursor resizeLeftRightCursor]; + else if (shape == GLFW_VRESIZE_CURSOR) + cursor->ns.object = [NSCursor resizeUpDownCursor]; + + if (!cursor->ns.object) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve standard cursor"); + return GLFW_FALSE; + } + + [cursor->ns.object retain]; + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) +{ + @autoreleasepool { + if (cursor->ns.object) + [(NSCursor*) cursor->ns.object release]; + } // autoreleasepool +} + +void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) +{ + @autoreleasepool { + if (cursorInContentArea(window)) + updateCursorImage(window); + } // autoreleasepool +} + +void _glfwPlatformSetClipboardString(const char* string) +{ + @autoreleasepool { + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + [pasteboard declareTypes:@[NSPasteboardTypeString] owner:nil]; + [pasteboard setString:@(string) forType:NSPasteboardTypeString]; + } // autoreleasepool +} + +const char* _glfwPlatformGetClipboardString(void) +{ + @autoreleasepool { + + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + + if (![[pasteboard types] containsObject:NSPasteboardTypeString]) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "Cocoa: Failed to retrieve string from pasteboard"); + return NULL; + } + + NSString* object = [pasteboard stringForType:NSPasteboardTypeString]; + if (!object) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve object from pasteboard"); + return NULL; + } + + free(_glfw.ns.clipboardString); + _glfw.ns.clipboardString = _glfw_strdup([object UTF8String]); + + return _glfw.ns.clipboardString; + + } // autoreleasepool +} + +void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) +{ + if (_glfw.vk.KHR_surface && _glfw.vk.EXT_metal_surface) + { + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_EXT_metal_surface"; + } + else if (_glfw.vk.KHR_surface && _glfw.vk.MVK_macos_surface) + { + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_MVK_macos_surface"; + } +} + +int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + return GLFW_TRUE; +} + +VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + @autoreleasepool { + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 + // HACK: Dynamically load Core Animation to avoid adding an extra + // dependency for the majority who don't use MoltenVK + NSBundle* bundle = [NSBundle bundleWithPath:@"/System/Library/Frameworks/QuartzCore.framework"]; + if (!bundle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to find QuartzCore.framework"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + // NOTE: Create the layer here as makeBackingLayer should not return nil + window->ns.layer = [[bundle classNamed:@"CAMetalLayer"] layer]; + if (!window->ns.layer) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create layer for view"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + if (window->ns.retina) + [window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]]; + + [window->ns.view setLayer:window->ns.layer]; + [window->ns.view setWantsLayer:YES]; + + VkResult err; + + if (_glfw.vk.EXT_metal_surface) + { + VkMetalSurfaceCreateInfoEXT sci; + + PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT; + vkCreateMetalSurfaceEXT = (PFN_vkCreateMetalSurfaceEXT) + vkGetInstanceProcAddr(instance, "vkCreateMetalSurfaceEXT"); + if (!vkCreateMetalSurfaceEXT) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Cocoa: Vulkan instance missing VK_EXT_metal_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT; + sci.pLayer = window->ns.layer; + + err = vkCreateMetalSurfaceEXT(instance, &sci, allocator, surface); + } + else + { + VkMacOSSurfaceCreateInfoMVK sci; + + PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK; + vkCreateMacOSSurfaceMVK = (PFN_vkCreateMacOSSurfaceMVK) + vkGetInstanceProcAddr(instance, "vkCreateMacOSSurfaceMVK"); + if (!vkCreateMacOSSurfaceMVK) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Cocoa: Vulkan instance missing VK_MVK_macos_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK; + sci.pView = window->ns.view; + + err = vkCreateMacOSSurfaceMVK(instance, &sci, allocator, surface); + } + + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +#else + return VK_ERROR_EXTENSION_NOT_PRESENT; +#endif + + } // autoreleasepool +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(nil); + return window->ns.object; +} + diff --git a/external/GLFW/src/context.c b/external/glfw-3.3.4/src/context.c similarity index 91% rename from external/GLFW/src/context.c rename to external/glfw-3.3.4/src/context.c index 3842f0a..867e399 100644 --- a/external/GLFW/src/context.c +++ b/external/glfw-3.3.4/src/context.c @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -38,8 +40,24 @@ ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// +// Checks whether the desired context attributes are valid +// +// This function checks things like whether the specified client API version +// exists and whether all relevant options have supported and non-conflicting +// values +// GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) { + if (ctxconfig->share) + { + if (ctxconfig->client == GLFW_NO_API || + ctxconfig->share->context.client == GLFW_NO_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return GLFW_FALSE; + } + } + if (ctxconfig->source != GLFW_NATIVE_CONTEXT_API && ctxconfig->source != GLFW_EGL_CONTEXT_API && ctxconfig->source != GLFW_OSMESA_CONTEXT_API) @@ -155,6 +173,8 @@ GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) return GLFW_TRUE; } +// Chooses the framebuffer config that best matches the desired one +// const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, const _GLFWfbconfig* alternatives, unsigned int count) @@ -321,10 +341,13 @@ const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, return closest; } -GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) +// Retrieves the attributes of the current context +// +GLFWbool _glfwRefreshContextAttribs(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig) { int i; - _GLFWwindow* window; + _GLFWwindow* previous; const char* version; const char* prefixes[] = { @@ -334,11 +357,12 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) NULL }; - window = _glfwPlatformGetTls(&_glfw.contextSlot); - window->context.source = ctxconfig->source; window->context.client = GLFW_OPENGL_API; + previous = _glfwPlatformGetTls(&_glfw.contextSlot); + glfwMakeContextCurrent((GLFWwindow*) window); + window->context.GetIntegerv = (PFNGLGETINTEGERVPROC) window->context.getProcAddress("glGetIntegerv"); window->context.GetString = (PFNGLGETSTRINGPROC) @@ -346,6 +370,7 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) if (!window->context.GetIntegerv || !window->context.GetString) { _glfwInputError(GLFW_PLATFORM_ERROR, "Entry point retrieval is broken"); + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_FALSE; } @@ -363,6 +388,7 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) "OpenGL ES version string retrieval is broken"); } + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_FALSE; } @@ -394,6 +420,7 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) "No version found in OpenGL ES version string"); } + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_FALSE; } @@ -423,6 +450,7 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) window->context.major, window->context.minor); } + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_FALSE; } @@ -438,6 +466,7 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) { _glfwInputError(GLFW_PLATFORM_ERROR, "Entry point retrieval is broken"); + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_FALSE; } } @@ -544,9 +573,12 @@ GLFWbool _glfwRefreshContextAttribs(const _GLFWctxconfig* ctxconfig) window->context.swapBuffers(window); } + glfwMakeContextCurrent((GLFWwindow*) previous); return GLFW_TRUE; } +// Searches an extension string for the specified extension +// GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions) { const char* start = extensions; @@ -587,7 +619,8 @@ GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle) if (window && window->context.client == GLFW_NO_API) { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, + "Cannot make current with a window that has no OpenGL or OpenGL ES context"); return; } @@ -616,7 +649,8 @@ GLFWAPI void glfwSwapBuffers(GLFWwindow* handle) if (window->context.client == GLFW_NO_API) { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, + "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context"); return; } @@ -632,7 +666,8 @@ GLFWAPI void glfwSwapInterval(int interval) window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot set swap interval without a current OpenGL or OpenGL ES context"); return; } @@ -649,13 +684,14 @@ GLFWAPI int glfwExtensionSupported(const char* extension) window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot query extension without a current OpenGL or OpenGL ES context"); return GLFW_FALSE; } if (*extension == '\0') { - _glfwInputError(GLFW_INVALID_VALUE, "Extension name is empty string"); + _glfwInputError(GLFW_INVALID_VALUE, "Extension name cannot be an empty string"); return GLFW_FALSE; } @@ -714,7 +750,8 @@ GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname) window = _glfwPlatformGetTls(&_glfw.contextSlot); if (!window) { - _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot query entry point without a current OpenGL or OpenGL ES context"); return NULL; } diff --git a/external/GLFW/src/egl_context.c b/external/glfw-3.3.4/src/egl_context.c similarity index 95% rename from external/GLFW/src/egl_context.c rename to external/glfw-3.3.4/src/egl_context.c index b2d11a4..6288fb7 100644 --- a/external/GLFW/src/egl_context.c +++ b/external/glfw-3.3.4/src/egl_context.c @@ -2,7 +2,7 @@ // GLFW 3.3 EGL - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -121,23 +123,24 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, continue; #if defined(_GLFW_X11) - XVisualInfo vi = {0}; + { + XVisualInfo vi = {0}; - // Only consider EGLConfigs with associated Visuals - vi.visualid = getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID); - if (!vi.visualid) - continue; + // Only consider EGLConfigs with associated Visuals + vi.visualid = getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID); + if (!vi.visualid) + continue; - if (desired->transparent) - { - int count; - XVisualInfo* vis = XGetVisualInfo(_glfw.x11.display, - VisualIDMask, &vi, - &count); - if (vis) + if (desired->transparent) { - u->transparent = _glfwIsVisualTransparentX11(vis[0].visual); - XFree(vis); + int count; + XVisualInfo* vis = + XGetVisualInfo(_glfw.x11.display, VisualIDMask, &vi, &count); + if (vis) + { + u->transparent = _glfwIsVisualTransparentX11(vis[0].visual); + XFree(vis); + } } } #endif // _GLFW_X11 @@ -446,7 +449,7 @@ void _glfwTerminateEGL(void) #define setAttrib(a, v) \ { \ - assert((size_t) (index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ attribs[index++] = a; \ attribs[index++] = v; \ } @@ -585,18 +588,16 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, } // Set up attributes for surface creation - { - int index = 0; + index = 0; - if (fbconfig->sRGB) - { - if (_glfw.egl.KHR_gl_colorspace) - setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR); - } - - setAttrib(EGL_NONE, EGL_NONE); + if (fbconfig->sRGB) + { + if (_glfw.egl.KHR_gl_colorspace) + setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR); } + setAttrib(EGL_NONE, EGL_NONE); + window->context.egl.surface = eglCreateWindowSurface(_glfw.egl.display, config, diff --git a/external/GLFW/src/egl_context.h b/external/glfw-3.3.4/src/egl_context.h similarity index 94% rename from external/GLFW/src/egl_context.h rename to external/glfw-3.3.4/src/egl_context.h index aa339ba..6d42e11 100644 --- a/external/GLFW/src/egl_context.h +++ b/external/glfw-3.3.4/src/egl_context.h @@ -2,7 +2,7 @@ // GLFW 3.3 EGL - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -43,34 +43,30 @@ typedef Window EGLNativeWindowType; #define EGLAPIENTRY typedef struct wl_display* EGLNativeDisplayType; typedef struct wl_egl_window* EGLNativeWindowType; -#elif defined(_GLFW_MIR) - #define EGLAPIENTRY -typedef MirEGLNativeDisplayType EGLNativeDisplayType; -typedef MirEGLNativeWindowType EGLNativeWindowType; #else #error "No supported EGL platform selected" #endif -#define EGL_SUCCESS 0x3000 -#define EGL_NOT_INITIALIZED 0x3001 +#define EGL_SUCCESS 0x3000 +#define EGL_NOT_INITIALIZED 0x3001 #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_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_BAD_SURFACE 0x300d #define EGL_CONTEXT_LOST 0x300e #define EGL_COLOR_BUFFER_TYPE 0x303f #define EGL_RGB_BUFFER 0x308e #define EGL_SURFACE_TYPE 0x3033 #define EGL_WINDOW_BIT 0x0004 -#define EGL_RENDERABLE_TYPE 0x3040 +#define EGL_RENDERABLE_TYPE 0x3040 #define EGL_OPENGL_ES_BIT 0x0001 #define EGL_OPENGL_ES2_BIT 0x0004 #define EGL_OPENGL_BIT 0x0008 @@ -80,7 +76,7 @@ typedef MirEGLNativeWindowType EGLNativeWindowType; #define EGL_RED_SIZE 0x3024 #define EGL_DEPTH_SIZE 0x3025 #define EGL_STENCIL_SIZE 0x3026 -#define EGL_SAMPLES 0x3031 +#define EGL_SAMPLES 0x3031 #define EGL_OPENGL_ES_API 0x30a0 #define EGL_OPENGL_API 0x30a2 #define EGL_NONE 0x3038 diff --git a/external/glfw-3.3.4/src/glfw3.pc.in b/external/glfw-3.3.4/src/glfw3.pc.in new file mode 100644 index 0000000..f74298d --- /dev/null +++ b/external/glfw-3.3.4/src/glfw3.pc.in @@ -0,0 +1,13 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ + +Name: GLFW +Description: A multi-platform library for OpenGL, window and input +Version: @GLFW_VERSION@ +URL: https://www.glfw.org/ +Requires.private: @GLFW_PKG_DEPS@ +Libs: -L${libdir} -l@GLFW_LIB_NAME@ +Libs.private: @GLFW_PKG_LIBS@ +Cflags: -I${includedir} diff --git a/external/GLFW/src/glfw3Config.cmake.in b/external/glfw-3.3.4/src/glfw3Config.cmake.in similarity index 100% rename from external/GLFW/src/glfw3Config.cmake.in rename to external/glfw-3.3.4/src/glfw3Config.cmake.in diff --git a/external/GLFW/src/glfw_config.h.in b/external/glfw-3.3.4/src/glfw_config.h.in similarity index 93% rename from external/GLFW/src/glfw_config.h.in rename to external/glfw-3.3.4/src/glfw_config.h.in index bc9f5d3..f418c99 100644 --- a/external/GLFW/src/glfw_config.h.in +++ b/external/glfw-3.3.4/src/glfw_config.h.in @@ -42,8 +42,6 @@ #cmakedefine _GLFW_COCOA // Define this to 1 if building GLFW for Wayland #cmakedefine _GLFW_WAYLAND -// Define this to 1 if building GLFW for Mir -#cmakedefine _GLFW_MIR // Define this to 1 if building GLFW for OSMesa #cmakedefine _GLFW_OSMESA @@ -55,3 +53,8 @@ // Define this to 1 to force use of high-performance GPU on hybrid systems #cmakedefine _GLFW_USE_HYBRID_HPG +// Define this to 1 if xkbcommon supports the compose key +#cmakedefine HAVE_XKBCOMMON_COMPOSE_H +// Define this to 1 if the libc supports memfd_create() +#cmakedefine HAVE_MEMFD_CREATE + diff --git a/external/GLFW/src/glx_context.c b/external/glfw-3.3.4/src/glx_context.c similarity index 93% rename from external/GLFW/src/glx_context.c rename to external/glfw-3.3.4/src/glx_context.c index 708663a..fbbb897 100644 --- a/external/GLFW/src/glx_context.c +++ b/external/glfw-3.3.4/src/glx_context.c @@ -2,7 +2,7 @@ // GLFW 3.3 GLX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" @@ -223,11 +225,9 @@ static GLFWglproc getProcAddressGLX(const char* procname) else if (_glfw.glx.GetProcAddressARB) return _glfw.glx.GetProcAddressARB((const GLubyte*) procname); else - return dlsym(_glfw.glx.handle, procname); + return _glfw_dlsym(_glfw.glx.handle, procname); } -// Destroy the OpenGL context -// static void destroyContextGLX(_GLFWwindow* window) { if (window->context.glx.window) @@ -271,7 +271,7 @@ GLFWbool _glfwInitGLX(void) for (i = 0; sonames[i]; i++) { - _glfw.glx.handle = dlopen(sonames[i], RTLD_LAZY | RTLD_GLOBAL); + _glfw.glx.handle = _glfw_dlopen(sonames[i]); if (_glfw.glx.handle) break; } @@ -283,35 +283,35 @@ GLFWbool _glfwInitGLX(void) } _glfw.glx.GetFBConfigs = - dlsym(_glfw.glx.handle, "glXGetFBConfigs"); + _glfw_dlsym(_glfw.glx.handle, "glXGetFBConfigs"); _glfw.glx.GetFBConfigAttrib = - dlsym(_glfw.glx.handle, "glXGetFBConfigAttrib"); + _glfw_dlsym(_glfw.glx.handle, "glXGetFBConfigAttrib"); _glfw.glx.GetClientString = - dlsym(_glfw.glx.handle, "glXGetClientString"); + _glfw_dlsym(_glfw.glx.handle, "glXGetClientString"); _glfw.glx.QueryExtension = - dlsym(_glfw.glx.handle, "glXQueryExtension"); + _glfw_dlsym(_glfw.glx.handle, "glXQueryExtension"); _glfw.glx.QueryVersion = - dlsym(_glfw.glx.handle, "glXQueryVersion"); + _glfw_dlsym(_glfw.glx.handle, "glXQueryVersion"); _glfw.glx.DestroyContext = - dlsym(_glfw.glx.handle, "glXDestroyContext"); + _glfw_dlsym(_glfw.glx.handle, "glXDestroyContext"); _glfw.glx.MakeCurrent = - dlsym(_glfw.glx.handle, "glXMakeCurrent"); + _glfw_dlsym(_glfw.glx.handle, "glXMakeCurrent"); _glfw.glx.SwapBuffers = - dlsym(_glfw.glx.handle, "glXSwapBuffers"); + _glfw_dlsym(_glfw.glx.handle, "glXSwapBuffers"); _glfw.glx.QueryExtensionsString = - dlsym(_glfw.glx.handle, "glXQueryExtensionsString"); + _glfw_dlsym(_glfw.glx.handle, "glXQueryExtensionsString"); _glfw.glx.CreateNewContext = - dlsym(_glfw.glx.handle, "glXCreateNewContext"); + _glfw_dlsym(_glfw.glx.handle, "glXCreateNewContext"); _glfw.glx.CreateWindow = - dlsym(_glfw.glx.handle, "glXCreateWindow"); + _glfw_dlsym(_glfw.glx.handle, "glXCreateWindow"); _glfw.glx.DestroyWindow = - dlsym(_glfw.glx.handle, "glXDestroyWindow"); + _glfw_dlsym(_glfw.glx.handle, "glXDestroyWindow"); _glfw.glx.GetProcAddress = - dlsym(_glfw.glx.handle, "glXGetProcAddress"); + _glfw_dlsym(_glfw.glx.handle, "glXGetProcAddress"); _glfw.glx.GetProcAddressARB = - dlsym(_glfw.glx.handle, "glXGetProcAddressARB"); + _glfw_dlsym(_glfw.glx.handle, "glXGetProcAddressARB"); _glfw.glx.GetVisualFromFBConfig = - dlsym(_glfw.glx.handle, "glXGetVisualFromFBConfig"); + _glfw_dlsym(_glfw.glx.handle, "glXGetVisualFromFBConfig"); if (!_glfw.glx.GetFBConfigs || !_glfw.glx.GetFBConfigAttrib || @@ -428,14 +428,14 @@ void _glfwTerminateGLX(void) if (_glfw.glx.handle) { - dlclose(_glfw.glx.handle); + _glfw_dlclose(_glfw.glx.handle); _glfw.glx.handle = NULL; } } #define setAttrib(a, v) \ { \ - assert((size_t) (index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ attribs[index++] = a; \ attribs[index++] = v; \ } @@ -634,7 +634,7 @@ GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, // Returns the Visual and depth of the chosen GLXFBConfig // GLFWbool _glfwChooseVisualGLX(const _GLFWwndconfig* wndconfig, - const _GLFWctxconfig* ctxconfig, + const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig, Visual** visual, int* depth) { diff --git a/external/GLFW/src/glx_context.h b/external/glfw-3.3.4/src/glx_context.h similarity index 98% rename from external/GLFW/src/glx_context.h rename to external/glfw-3.3.4/src/glx_context.h index f767cb1..12af20e 100644 --- a/external/GLFW/src/glx_context.h +++ b/external/glfw-3.3.4/src/glx_context.h @@ -2,7 +2,7 @@ // GLFW 3.3 GLX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -29,11 +29,11 @@ #define GLX_RGBA_BIT 0x00000001 #define GLX_WINDOW_BIT 0x00000001 #define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 +#define GLX_RENDER_TYPE 0x8011 #define GLX_RGBA_TYPE 0x8014 #define GLX_DOUBLEBUFFER 5 #define GLX_STEREO 6 -#define GLX_AUX_BUFFERS 7 +#define GLX_AUX_BUFFERS 7 #define GLX_RED_SIZE 8 #define GLX_GREEN_SIZE 9 #define GLX_BLUE_SIZE 10 @@ -42,7 +42,7 @@ #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_BLUE_SIZE 16 #define GLX_ACCUM_ALPHA_SIZE 17 #define GLX_SAMPLES 0x186a1 #define GLX_VISUAL_ID 0x800b diff --git a/external/glfw-3.3.4/src/init.c b/external/glfw-3.3.4/src/init.c new file mode 100644 index 0000000..e44d0ca --- /dev/null +++ b/external/glfw-3.3.4/src/init.c @@ -0,0 +1,340 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// 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. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" +#include "mappings.h" + +#include +#include +#include +#include +#include + + +// The global variables below comprise all mutable global data in GLFW +// +// Any other global variable is a bug + +// Global state shared between compilation units of GLFW +// +_GLFWlibrary _glfw = { GLFW_FALSE }; + +// These are outside of _glfw so they can be used before initialization and +// after termination +// +static _GLFWerror _glfwMainThreadError; +static GLFWerrorfun _glfwErrorCallback; +static _GLFWinitconfig _glfwInitHints = +{ + GLFW_TRUE, // hat buttons + { + GLFW_TRUE, // macOS menu bar + GLFW_TRUE // macOS bundle chdir + } +}; + +// Terminate the library +// +static void terminate(void) +{ + int i; + + memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); + + while (_glfw.windowListHead) + glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); + + while (_glfw.cursorListHead) + glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); + + for (i = 0; i < _glfw.monitorCount; i++) + { + _GLFWmonitor* monitor = _glfw.monitors[i]; + if (monitor->originalRamp.size) + _glfwPlatformSetGammaRamp(monitor, &monitor->originalRamp); + _glfwFreeMonitor(monitor); + } + + free(_glfw.monitors); + _glfw.monitors = NULL; + _glfw.monitorCount = 0; + + free(_glfw.mappings); + _glfw.mappings = NULL; + _glfw.mappingCount = 0; + + _glfwTerminateVulkan(); + _glfwPlatformTerminate(); + + _glfw.initialized = GLFW_FALSE; + + while (_glfw.errorListHead) + { + _GLFWerror* error = _glfw.errorListHead; + _glfw.errorListHead = error->next; + free(error); + } + + _glfwPlatformDestroyTls(&_glfw.contextSlot); + _glfwPlatformDestroyTls(&_glfw.errorSlot); + _glfwPlatformDestroyMutex(&_glfw.errorLock); + + memset(&_glfw, 0, sizeof(_glfw)); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +char* _glfw_strdup(const char* source) +{ + const size_t length = strlen(source); + char* result = calloc(length + 1, 1); + strcpy(result, source); + return result; +} + +float _glfw_fminf(float a, float b) +{ + if (a != a) + return b; + else if (b != b) + return a; + else if (a < b) + return a; + else + return b; +} + +float _glfw_fmaxf(float a, float b) +{ + if (a != a) + return b; + else if (b != b) + return a; + else if (a > b) + return a; + else + return b; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code of an error +// +void _glfwInputError(int code, const char* format, ...) +{ + _GLFWerror* error; + char description[_GLFW_MESSAGE_SIZE]; + + if (format) + { + va_list vl; + + va_start(vl, format); + vsnprintf(description, sizeof(description), format, vl); + va_end(vl); + + description[sizeof(description) - 1] = '\0'; + } + else + { + if (code == GLFW_NOT_INITIALIZED) + strcpy(description, "The GLFW library is not initialized"); + else if (code == GLFW_NO_CURRENT_CONTEXT) + strcpy(description, "There is no current context"); + else if (code == GLFW_INVALID_ENUM) + strcpy(description, "Invalid argument for enum parameter"); + else if (code == GLFW_INVALID_VALUE) + strcpy(description, "Invalid value for parameter"); + else if (code == GLFW_OUT_OF_MEMORY) + strcpy(description, "Out of memory"); + else if (code == GLFW_API_UNAVAILABLE) + strcpy(description, "The requested API is unavailable"); + else if (code == GLFW_VERSION_UNAVAILABLE) + strcpy(description, "The requested API version is unavailable"); + else if (code == GLFW_PLATFORM_ERROR) + strcpy(description, "A platform-specific error occurred"); + else if (code == GLFW_FORMAT_UNAVAILABLE) + strcpy(description, "The requested format is unavailable"); + else if (code == GLFW_NO_WINDOW_CONTEXT) + strcpy(description, "The specified window has no context"); + else + strcpy(description, "ERROR: UNKNOWN GLFW ERROR"); + } + + if (_glfw.initialized) + { + error = _glfwPlatformGetTls(&_glfw.errorSlot); + if (!error) + { + error = calloc(1, sizeof(_GLFWerror)); + _glfwPlatformSetTls(&_glfw.errorSlot, error); + _glfwPlatformLockMutex(&_glfw.errorLock); + error->next = _glfw.errorListHead; + _glfw.errorListHead = error; + _glfwPlatformUnlockMutex(&_glfw.errorLock); + } + } + else + error = &_glfwMainThreadError; + + error->code = code; + strcpy(error->description, description); + + if (_glfwErrorCallback) + _glfwErrorCallback(code, description); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwInit(void) +{ + if (_glfw.initialized) + return GLFW_TRUE; + + memset(&_glfw, 0, sizeof(_glfw)); + _glfw.hints.init = _glfwInitHints; + + if (!_glfwPlatformInit()) + { + terminate(); + return GLFW_FALSE; + } + + if (!_glfwPlatformCreateMutex(&_glfw.errorLock) || + !_glfwPlatformCreateTls(&_glfw.errorSlot) || + !_glfwPlatformCreateTls(&_glfw.contextSlot)) + { + terminate(); + return GLFW_FALSE; + } + + _glfwPlatformSetTls(&_glfw.errorSlot, &_glfwMainThreadError); + + _glfw.initialized = GLFW_TRUE; + _glfw.timer.offset = _glfwPlatformGetTimerValue(); + + glfwDefaultWindowHints(); + + { + int i; + + for (i = 0; _glfwDefaultMappings[i]; i++) + { + if (!glfwUpdateGamepadMappings(_glfwDefaultMappings[i])) + { + terminate(); + return GLFW_FALSE; + } + } + } + + return GLFW_TRUE; +} + +GLFWAPI void glfwTerminate(void) +{ + if (!_glfw.initialized) + return; + + terminate(); +} + +GLFWAPI void glfwInitHint(int hint, int value) +{ + switch (hint) + { + case GLFW_JOYSTICK_HAT_BUTTONS: + _glfwInitHints.hatButtons = value; + return; + case GLFW_COCOA_CHDIR_RESOURCES: + _glfwInitHints.ns.chdir = value; + return; + case GLFW_COCOA_MENUBAR: + _glfwInitHints.ns.menubar = value; + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid init hint 0x%08X", hint); +} + +GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) +{ + if (major != NULL) + *major = GLFW_VERSION_MAJOR; + if (minor != NULL) + *minor = GLFW_VERSION_MINOR; + if (rev != NULL) + *rev = GLFW_VERSION_REVISION; +} + +GLFWAPI const char* glfwGetVersionString(void) +{ + return _glfwPlatformGetVersionString(); +} + +GLFWAPI int glfwGetError(const char** description) +{ + _GLFWerror* error; + int code = GLFW_NO_ERROR; + + if (description) + *description = NULL; + + if (_glfw.initialized) + error = _glfwPlatformGetTls(&_glfw.errorSlot); + else + error = &_glfwMainThreadError; + + if (error) + { + code = error->code; + error->code = GLFW_NO_ERROR; + if (description && code) + *description = error->description; + } + + return code; +} + +GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun) +{ + _GLFW_SWAP_POINTERS(_glfwErrorCallback, cbfun); + return cbfun; +} + diff --git a/external/GLFW/src/input.c b/external/glfw-3.3.4/src/input.c similarity index 77% rename from external/GLFW/src/input.c rename to external/glfw-3.3.4/src/input.c index 7d9ff77..337d5cf 100644 --- a/external/GLFW/src/input.c +++ b/external/glfw-3.3.4/src/input.c @@ -2,7 +2,7 @@ // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -32,7 +34,6 @@ #include #include #include -#include // Internal key state used for sticky keys #define _GLFW_STICK 3 @@ -57,6 +58,58 @@ static _GLFWmapping* findMapping(const char* guid) return NULL; } +// Checks whether a gamepad mapping element is present in the hardware +// +static GLFWbool isValidElementForJoystick(const _GLFWmapelement* e, + const _GLFWjoystick* js) +{ + if (e->type == _GLFW_JOYSTICK_HATBIT && (e->index >> 4) >= js->hatCount) + return GLFW_FALSE; + else if (e->type == _GLFW_JOYSTICK_BUTTON && e->index >= js->buttonCount) + return GLFW_FALSE; + else if (e->type == _GLFW_JOYSTICK_AXIS && e->index >= js->axisCount) + return GLFW_FALSE; + + return GLFW_TRUE; +} + +// Finds a mapping based on joystick GUID and verifies element indices +// +static _GLFWmapping* findValidMapping(const _GLFWjoystick* js) +{ + _GLFWmapping* mapping = findMapping(js->guid); + if (mapping) + { + int i; + + for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++) + { + if (!isValidElementForJoystick(mapping->buttons + i, js)) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid button in gamepad mapping %s (%s)", + mapping->guid, + mapping->name); + return NULL; + } + } + + for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++) + { + if (!isValidElementForJoystick(mapping->axes + i, js)) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid axis in gamepad mapping %s (%s)", + mapping->guid, + mapping->name); + return NULL; + } + } + } + + return mapping; +} + // Parses an SDL_GameControllerDB line and adds it to the mapping list // static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) @@ -115,6 +168,10 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) while (*c) { + // TODO: Implement output modifiers + if (*c == '+' || *c == '-') + return GLFW_FALSE; + for (i = 0; i < sizeof(fields) / sizeof(fields[0]); i++) { length = strlen(fields[i].name); @@ -125,23 +182,50 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) if (fields[i].element) { + _GLFWmapelement* e = fields[i].element; + int8_t minimum = -1; + int8_t maximum = 1; + + if (*c == '+') + { + minimum = 0; + c += 1; + } + else if (*c == '-') + { + maximum = 0; + c += 1; + } + if (*c == 'a') - fields[i].element->type = _GLFW_JOYSTICK_AXIS; + e->type = _GLFW_JOYSTICK_AXIS; else if (*c == 'b') - fields[i].element->type = _GLFW_JOYSTICK_BUTTON; + e->type = _GLFW_JOYSTICK_BUTTON; else if (*c == 'h') - fields[i].element->type = _GLFW_JOYSTICK_HATBIT; + e->type = _GLFW_JOYSTICK_HATBIT; else break; - if (fields[i].element->type == _GLFW_JOYSTICK_HATBIT) + if (e->type == _GLFW_JOYSTICK_HATBIT) { - const unsigned int hat = strtoul(c + 1, (char**) &c, 10); - const unsigned int bit = strtoul(c + 1, (char**) &c, 10); - fields[i].element->value = (hat << 4) | bit; + const unsigned long hat = strtoul(c + 1, (char**) &c, 10); + const unsigned long bit = strtoul(c + 1, (char**) &c, 10); + e->index = (uint8_t) ((hat << 4) | bit); } else - fields[i].element->value = (uint8_t) strtoul(c + 1, (char**) &c, 10); + e->index = (uint8_t) strtoul(c + 1, (char**) &c, 10); + + if (e->type == _GLFW_JOYSTICK_AXIS) + { + e->axisScale = 2 / (maximum - minimum); + e->axisOffset = -(maximum + minimum); + + if (*c == '~') + { + e->axisScale = -e->axisScale; + e->axisOffset = -e->axisOffset; + } + } } else { @@ -172,6 +256,8 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) ////// GLFW event API ////// ////////////////////////////////////////////////////////////////////////// +// Notifies shared code of a physical key event +// void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) { if (key >= 0 && key <= GLFW_KEY_LAST) @@ -193,15 +279,24 @@ void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int m action = GLFW_REPEAT; } + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + if (window->callbacks.key) window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); } +// Notifies shared code of a Unicode codepoint input event +// The 'plain' parameter determines whether to emit a regular character event +// void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain) { if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) return; + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + if (window->callbacks.charmods) window->callbacks.charmods((GLFWwindow*) window, codepoint, mods); @@ -212,17 +307,24 @@ void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWb } } +// Notifies shared code of a scroll event +// void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset) { if (window->callbacks.scroll) window->callbacks.scroll((GLFWwindow*) window, xoffset, yoffset); } +// Notifies shared code of a mouse button click event +// void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) { if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) return; + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + if (action == GLFW_RELEASE && window->stickyMouseButtons) window->mouseButtons[button] = _GLFW_STICK; else @@ -232,6 +334,9 @@ void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods); } +// Notifies shared code of a cursor motion event +// The position is specified in content area relative screen coordinates +// void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos) { if (window->virtualCursorPosX == xpos && window->virtualCursorPosY == ypos) @@ -244,18 +349,24 @@ void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos) window->callbacks.cursorPos((GLFWwindow*) window, xpos, ypos); } +// Notifies shared code of a cursor enter/leave event +// void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered) { if (window->callbacks.cursorEnter) window->callbacks.cursorEnter((GLFWwindow*) window, entered); } +// Notifies shared code of files or directories dropped on a window +// void _glfwInputDrop(_GLFWwindow* window, int count, const char** paths) { if (window->callbacks.drop) window->callbacks.drop((GLFWwindow*) window, count, paths); } +// Notifies shared code of a joystick connection or disconnection +// void _glfwInputJoystick(_GLFWjoystick* js, int event) { const int jid = (int) (js - _glfw.joysticks); @@ -264,16 +375,22 @@ void _glfwInputJoystick(_GLFWjoystick* js, int event) _glfw.callbacks.joystick(jid, event); } +// Notifies shared code of the new value of a joystick axis +// void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value) { js->axes[axis] = value; } +// Notifies shared code of the new value of a joystick button +// void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value) { js->buttons[button] = value; } +// Notifies shared code of the new value of a joystick hat +// void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value) { const int base = js->buttonCount + hat * 4; @@ -291,6 +408,8 @@ void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value) ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// +// Returns an available joystick object with arrays and name allocated +// _GLFWjoystick* _glfwAllocJoystick(const char* name, const char* guid, int axisCount, @@ -311,20 +430,22 @@ _GLFWjoystick* _glfwAllocJoystick(const char* name, js = _glfw.joysticks + jid; js->present = GLFW_TRUE; - js->name = strdup(name); + js->name = _glfw_strdup(name); js->axes = calloc(axisCount, sizeof(float)); - js->buttons = calloc(buttonCount + hatCount * 4, 1); + js->buttons = calloc(buttonCount + (size_t) hatCount * 4, 1); js->hats = calloc(hatCount, 1); js->axisCount = axisCount; js->buttonCount = buttonCount; js->hatCount = hatCount; - js->mapping = findMapping(guid); - strcpy(js->guid, guid); + strncpy(js->guid, guid, sizeof(js->guid) - 1); + js->mapping = findValidMapping(js); return js; } +// Frees arrays and name and flags the joystick object as unused +// void _glfwFreeJoystick(_GLFWjoystick* js) { free(js->name); @@ -334,6 +455,16 @@ void _glfwFreeJoystick(_GLFWjoystick* js) memset(js, 0, sizeof(_GLFWjoystick)); } +// Center the cursor in the content area of the specified window +// +void _glfwCenterCursorInContentArea(_GLFWwindow* window) +{ + int width, height; + + _glfwPlatformGetWindowSize(window, &width, &height); + _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); +} + ////////////////////////////////////////////////////////////////////////// ////// GLFW public API ////// @@ -354,6 +485,10 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode) return window->stickyKeys; case GLFW_STICKY_MOUSE_BUTTONS: return window->stickyMouseButtons; + case GLFW_LOCK_KEY_MODS: + return window->lockKeyMods; + case GLFW_RAW_MOUSE_MOTION: + return window->rawMouseMotion; } _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode 0x%08X", mode); @@ -387,9 +522,7 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) _glfwPlatformGetCursorPos(window, &window->virtualCursorPosX, &window->virtualCursorPosY); - - if (_glfwPlatformWindowFocused(window)) - _glfwPlatformSetCursorMode(window, value); + _glfwPlatformSetCursorMode(window, value); } else if (mode == GLFW_STICKY_KEYS) { @@ -409,7 +542,7 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) } } - window->stickyKeys = value ? GLFW_TRUE : GLFW_FALSE; + window->stickyKeys = value; } else if (mode == GLFW_STICKY_MOUSE_BUTTONS) { @@ -429,12 +562,38 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) } } - window->stickyMouseButtons = value ? GLFW_TRUE : GLFW_FALSE; + window->stickyMouseButtons = value; + } + else if (mode == GLFW_LOCK_KEY_MODS) + { + window->lockKeyMods = value ? GLFW_TRUE : GLFW_FALSE; + } + else if (mode == GLFW_RAW_MOUSE_MOTION) + { + if (!_glfwPlatformRawMouseMotionSupported()) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Raw mouse motion is not supported on this system"); + return; + } + + value = value ? GLFW_TRUE : GLFW_FALSE; + if (window->rawMouseMotion == value) + return; + + window->rawMouseMotion = value; + _glfwPlatformSetRawMouseMotion(window, value); } else _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode 0x%08X", mode); } +GLFWAPI int glfwRawMouseMotionSupported(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + return _glfwPlatformRawMouseMotionSupported(); +} + GLFWAPI const char* glfwGetKeyName(int key, int scancode) { _GLFW_REQUIRE_INIT_OR_RETURN(NULL); @@ -914,6 +1073,38 @@ GLFWAPI const char* glfwGetJoystickGUID(int jid) return js->guid; } +GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT(); + + js = _glfw.joysticks + jid; + if (!js->present) + return; + + js->userPointer = pointer; +} + +GLFWAPI void* glfwGetJoystickUserPointer(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + js = _glfw.joysticks + jid; + if (!js->present) + return NULL; + + return js->userPointer; +} + GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun) { _GLFW_REQUIRE_INIT_OR_RETURN(NULL); @@ -932,7 +1123,9 @@ GLFWAPI int glfwUpdateGamepadMappings(const char* string) while (*c) { - if (isxdigit(*c)) + if ((*c >= '0' && *c <= '9') || + (*c >= 'a' && *c <= 'f') || + (*c >= 'A' && *c <= 'F')) { char line[1024]; @@ -973,7 +1166,7 @@ GLFWAPI int glfwUpdateGamepadMappings(const char* string) { _GLFWjoystick* js = _glfw.joysticks + jid; if (js->present) - js->mapping = findMapping(js->guid); + js->mapping = findValidMapping(js); } return GLFW_TRUE; @@ -1063,35 +1256,53 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state) for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++) { - if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_AXIS) + const _GLFWmapelement* e = js->mapping->buttons + i; + if (e->type == _GLFW_JOYSTICK_AXIS) { - if (fabs(js->axes[js->mapping->buttons[i].value]) > 0.5) - state->buttons[i] = GLFW_PRESS; + const float value = js->axes[e->index] * e->axisScale + e->axisOffset; + // HACK: This should be baked into the value transform + // TODO: Bake into transform when implementing output modifiers + if (e->axisOffset < 0 || (e->axisOffset == 0 && e->axisScale > 0)) + { + if (value >= 0.f) + state->buttons[i] = GLFW_PRESS; + } + else + { + if (value <= 0.f) + state->buttons[i] = GLFW_PRESS; + } } - else if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_HATBIT) + else if (e->type == _GLFW_JOYSTICK_HATBIT) { - const unsigned int hat = js->mapping->buttons[i].value >> 4; - const unsigned int bit = js->mapping->buttons[i].value & 0xf; + const unsigned int hat = e->index >> 4; + const unsigned int bit = e->index & 0xf; if (js->hats[hat] & bit) state->buttons[i] = GLFW_PRESS; } - else if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_BUTTON) - state->buttons[i] = js->buttons[js->mapping->buttons[i].value]; + else if (e->type == _GLFW_JOYSTICK_BUTTON) + state->buttons[i] = js->buttons[e->index]; } for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++) { - if (js->mapping->axes[i].type == _GLFW_JOYSTICK_AXIS) - state->axes[i] = js->axes[js->mapping->axes[i].value]; - else if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_HATBIT) + const _GLFWmapelement* e = js->mapping->axes + i; + if (e->type == _GLFW_JOYSTICK_AXIS) + { + const float value = js->axes[e->index] * e->axisScale + e->axisOffset; + state->axes[i] = _glfw_fminf(_glfw_fmaxf(value, -1.f), 1.f); + } + else if (e->type == _GLFW_JOYSTICK_HATBIT) { - const unsigned int hat = js->mapping->buttons[i].value >> 4; - const unsigned int bit = js->mapping->buttons[i].value & 0xf; + const unsigned int hat = e->index >> 4; + const unsigned int bit = e->index & 0xf; if (js->hats[hat] & bit) state->axes[i] = 1.f; + else + state->axes[i] = -1.f; } - else if (js->mapping->buttons[i].type == _GLFW_JOYSTICK_BUTTON) - state->axes[i] = (float) js->buttons[js->mapping->axes[i].value]; + else if (e->type == _GLFW_JOYSTICK_BUTTON) + state->axes[i] = js->buttons[e->index] * 2.f - 1.f; } return GLFW_TRUE; @@ -1099,21 +1310,16 @@ GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state) GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string) { - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); assert(string != NULL); _GLFW_REQUIRE_INIT(); - _glfwPlatformSetClipboardString(window, string); + _glfwPlatformSetClipboardString(string); } GLFWAPI const char* glfwGetClipboardString(GLFWwindow* handle) { - _GLFWwindow* window = (_GLFWwindow*) handle; - assert(window != NULL); - _GLFW_REQUIRE_INIT_OR_RETURN(NULL); - return _glfwPlatformGetClipboardString(window); + return _glfwPlatformGetClipboardString(); } GLFWAPI double glfwGetTime(void) @@ -1148,4 +1354,3 @@ GLFWAPI uint64_t glfwGetTimerFrequency(void) _GLFW_REQUIRE_INIT_OR_RETURN(0); return _glfwPlatformGetTimerFrequency(); } - diff --git a/external/glfw-3.3.4/src/internal.h b/external/glfw-3.3.4/src/internal.h new file mode 100644 index 0000000..91631c0 --- /dev/null +++ b/external/glfw-3.3.4/src/internal.h @@ -0,0 +1,778 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== + +#pragma once + +#if defined(_GLFW_USE_CONFIG_H) + #include "glfw_config.h" +#endif + +#if defined(GLFW_INCLUDE_GLCOREARB) || \ + defined(GLFW_INCLUDE_ES1) || \ + defined(GLFW_INCLUDE_ES2) || \ + defined(GLFW_INCLUDE_ES3) || \ + defined(GLFW_INCLUDE_ES31) || \ + defined(GLFW_INCLUDE_ES32) || \ + defined(GLFW_INCLUDE_NONE) || \ + defined(GLFW_INCLUDE_GLEXT) || \ + defined(GLFW_INCLUDE_GLU) || \ + defined(GLFW_INCLUDE_VULKAN) || \ + defined(GLFW_DLL) + #error "You must not define any header option macros when compiling GLFW" +#endif + +#define GLFW_INCLUDE_NONE +#include "../include/GLFW/glfw3.h" + +#define _GLFW_INSERT_FIRST 0 +#define _GLFW_INSERT_LAST 1 + +#define _GLFW_POLL_PRESENCE 0 +#define _GLFW_POLL_AXES 1 +#define _GLFW_POLL_BUTTONS 2 +#define _GLFW_POLL_ALL (_GLFW_POLL_AXES | _GLFW_POLL_BUTTONS) + +#define _GLFW_MESSAGE_SIZE 1024 + +typedef int GLFWbool; + +typedef struct _GLFWerror _GLFWerror; +typedef struct _GLFWinitconfig _GLFWinitconfig; +typedef struct _GLFWwndconfig _GLFWwndconfig; +typedef struct _GLFWctxconfig _GLFWctxconfig; +typedef struct _GLFWfbconfig _GLFWfbconfig; +typedef struct _GLFWcontext _GLFWcontext; +typedef struct _GLFWwindow _GLFWwindow; +typedef struct _GLFWlibrary _GLFWlibrary; +typedef struct _GLFWmonitor _GLFWmonitor; +typedef struct _GLFWcursor _GLFWcursor; +typedef struct _GLFWmapelement _GLFWmapelement; +typedef struct _GLFWmapping _GLFWmapping; +typedef struct _GLFWjoystick _GLFWjoystick; +typedef struct _GLFWtls _GLFWtls; +typedef struct _GLFWmutex _GLFWmutex; + +typedef void (* _GLFWmakecontextcurrentfun)(_GLFWwindow*); +typedef void (* _GLFWswapbuffersfun)(_GLFWwindow*); +typedef void (* _GLFWswapintervalfun)(int); +typedef int (* _GLFWextensionsupportedfun)(const char*); +typedef GLFWglproc (* _GLFWgetprocaddressfun)(const char*); +typedef void (* _GLFWdestroycontextfun)(_GLFWwindow*); + +#define GL_VERSION 0x1f02 +#define GL_NONE 0 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_EXTENSIONS 0x1f03 +#define GL_NUM_EXTENSIONS 0x821d +#define GL_CONTEXT_FLAGS 0x821e +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 +#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 + +typedef int GLint; +typedef unsigned int GLuint; +typedef unsigned int GLenum; +typedef unsigned int GLbitfield; +typedef unsigned char GLubyte; + +typedef void (APIENTRY * PFNGLCLEARPROC)(GLbitfield); +typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGPROC)(GLenum); +typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*); +typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint); + +#define VK_NULL_HANDLE 0 + +typedef void* VkInstance; +typedef void* VkPhysicalDevice; +typedef uint64_t VkSurfaceKHR; +typedef uint32_t VkFlags; +typedef uint32_t VkBool32; + +typedef enum VkStructureType +{ + VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, + VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, + VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, + VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, + VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000123000, + VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT = 1000217000, + VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF +} VkStructureType; + +typedef enum VkResult +{ + VK_SUCCESS = 0, + VK_NOT_READY = 1, + VK_TIMEOUT = 2, + VK_EVENT_SET = 3, + VK_EVENT_RESET = 4, + VK_INCOMPLETE = 5, + VK_ERROR_OUT_OF_HOST_MEMORY = -1, + VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, + VK_ERROR_INITIALIZATION_FAILED = -3, + VK_ERROR_DEVICE_LOST = -4, + VK_ERROR_MEMORY_MAP_FAILED = -5, + VK_ERROR_LAYER_NOT_PRESENT = -6, + VK_ERROR_EXTENSION_NOT_PRESENT = -7, + VK_ERROR_FEATURE_NOT_PRESENT = -8, + VK_ERROR_INCOMPATIBLE_DRIVER = -9, + VK_ERROR_TOO_MANY_OBJECTS = -10, + VK_ERROR_FORMAT_NOT_SUPPORTED = -11, + VK_ERROR_SURFACE_LOST_KHR = -1000000000, + VK_SUBOPTIMAL_KHR = 1000001003, + VK_ERROR_OUT_OF_DATE_KHR = -1000001004, + VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, + VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, + VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, + VK_RESULT_MAX_ENUM = 0x7FFFFFFF +} VkResult; + +typedef struct VkAllocationCallbacks VkAllocationCallbacks; + +typedef struct VkExtensionProperties +{ + char extensionName[256]; + uint32_t specVersion; +} VkExtensionProperties; + +typedef void (APIENTRY * PFN_vkVoidFunction)(void); + +#if defined(_GLFW_VULKAN_STATIC) + PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance,const char*); + VkResult vkEnumerateInstanceExtensionProperties(const char*,uint32_t*,VkExtensionProperties*); +#else + typedef PFN_vkVoidFunction (APIENTRY * PFN_vkGetInstanceProcAddr)(VkInstance,const char*); + typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const char*,uint32_t*,VkExtensionProperties*); + #define vkEnumerateInstanceExtensionProperties _glfw.vk.EnumerateInstanceExtensionProperties + #define vkGetInstanceProcAddr _glfw.vk.GetInstanceProcAddr +#endif + +#if defined(_GLFW_COCOA) + #include "cocoa_platform.h" +#elif defined(_GLFW_WIN32) + #include "win32_platform.h" +#elif defined(_GLFW_X11) + #include "x11_platform.h" +#elif defined(_GLFW_WAYLAND) + #include "wl_platform.h" +#elif defined(_GLFW_OSMESA) + #include "null_platform.h" +#else + #error "No supported window creation API selected" +#endif + +// Constructs a version number string from the public header macros +#define _GLFW_CONCAT_VERSION(m, n, r) #m "." #n "." #r +#define _GLFW_MAKE_VERSION(m, n, r) _GLFW_CONCAT_VERSION(m, n, r) +#define _GLFW_VERSION_NUMBER _GLFW_MAKE_VERSION(GLFW_VERSION_MAJOR, \ + GLFW_VERSION_MINOR, \ + GLFW_VERSION_REVISION) + +// Checks for whether the library has been initialized +#define _GLFW_REQUIRE_INIT() \ + if (!_glfw.initialized) \ + { \ + _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ + return; \ + } +#define _GLFW_REQUIRE_INIT_OR_RETURN(x) \ + if (!_glfw.initialized) \ + { \ + _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ + return x; \ + } + +// Swaps the provided pointers +#define _GLFW_SWAP_POINTERS(x, y) \ + { \ + void* t; \ + t = x; \ + x = y; \ + y = t; \ + } + +// Per-thread error structure +// +struct _GLFWerror +{ + _GLFWerror* next; + int code; + char description[_GLFW_MESSAGE_SIZE]; +}; + +// Initialization configuration +// +// Parameters relating to the initialization of the library +// +struct _GLFWinitconfig +{ + GLFWbool hatButtons; + struct { + GLFWbool menubar; + GLFWbool chdir; + } ns; +}; + +// Window configuration +// +// Parameters relating to the creation of the window but not directly related +// to the framebuffer. This is used to pass window creation parameters from +// shared code to the platform API. +// +struct _GLFWwndconfig +{ + int width; + int height; + const char* title; + GLFWbool resizable; + GLFWbool visible; + GLFWbool decorated; + GLFWbool focused; + GLFWbool autoIconify; + GLFWbool floating; + GLFWbool maximized; + GLFWbool centerCursor; + GLFWbool focusOnShow; + GLFWbool scaleToMonitor; + struct { + GLFWbool retina; + char frameName[256]; + } ns; + struct { + char className[256]; + char instanceName[256]; + } x11; +}; + +// Context configuration +// +// Parameters relating to the creation of the context but not directly related +// to the framebuffer. This is used to pass context creation parameters from +// shared code to the platform API. +// +struct _GLFWctxconfig +{ + int client; + int source; + int major; + int minor; + GLFWbool forward; + GLFWbool debug; + GLFWbool noerror; + int profile; + int robustness; + int release; + _GLFWwindow* share; + struct { + GLFWbool offline; + } nsgl; +}; + +// Framebuffer configuration +// +// This describes buffers and their sizes. It also contains +// a platform-specific ID used to map back to the backend API object. +// +// It is used to pass framebuffer parameters from shared code to the platform +// API and also to enumerate and select available framebuffer configs. +// +struct _GLFWfbconfig +{ + int redBits; + int greenBits; + int blueBits; + int alphaBits; + int depthBits; + int stencilBits; + int accumRedBits; + int accumGreenBits; + int accumBlueBits; + int accumAlphaBits; + int auxBuffers; + GLFWbool stereo; + int samples; + GLFWbool sRGB; + GLFWbool doublebuffer; + GLFWbool transparent; + uintptr_t handle; +}; + +// Context structure +// +struct _GLFWcontext +{ + int client; + int source; + int major, minor, revision; + GLFWbool forward, debug, noerror; + int profile; + int robustness; + int release; + + PFNGLGETSTRINGIPROC GetStringi; + PFNGLGETINTEGERVPROC GetIntegerv; + PFNGLGETSTRINGPROC GetString; + + _GLFWmakecontextcurrentfun makeCurrent; + _GLFWswapbuffersfun swapBuffers; + _GLFWswapintervalfun swapInterval; + _GLFWextensionsupportedfun extensionSupported; + _GLFWgetprocaddressfun getProcAddress; + _GLFWdestroycontextfun destroy; + + // This is defined in the context API's context.h + _GLFW_PLATFORM_CONTEXT_STATE; + // This is defined in egl_context.h + _GLFW_EGL_CONTEXT_STATE; + // This is defined in osmesa_context.h + _GLFW_OSMESA_CONTEXT_STATE; +}; + +// Window and context structure +// +struct _GLFWwindow +{ + struct _GLFWwindow* next; + + // Window settings and state + GLFWbool resizable; + GLFWbool decorated; + GLFWbool autoIconify; + GLFWbool floating; + GLFWbool focusOnShow; + GLFWbool shouldClose; + void* userPointer; + GLFWvidmode videoMode; + _GLFWmonitor* monitor; + _GLFWcursor* cursor; + + int minwidth, minheight; + int maxwidth, maxheight; + int numer, denom; + + GLFWbool stickyKeys; + GLFWbool stickyMouseButtons; + GLFWbool lockKeyMods; + int cursorMode; + char mouseButtons[GLFW_MOUSE_BUTTON_LAST + 1]; + char keys[GLFW_KEY_LAST + 1]; + // Virtual cursor position when cursor is disabled + double virtualCursorPosX, virtualCursorPosY; + GLFWbool rawMouseMotion; + + _GLFWcontext context; + + struct { + GLFWwindowposfun pos; + GLFWwindowsizefun size; + GLFWwindowclosefun close; + GLFWwindowrefreshfun refresh; + GLFWwindowfocusfun focus; + GLFWwindowiconifyfun iconify; + GLFWwindowmaximizefun maximize; + GLFWframebuffersizefun fbsize; + GLFWwindowcontentscalefun scale; + GLFWmousebuttonfun mouseButton; + GLFWcursorposfun cursorPos; + GLFWcursorenterfun cursorEnter; + GLFWscrollfun scroll; + GLFWkeyfun key; + GLFWcharfun character; + GLFWcharmodsfun charmods; + GLFWdropfun drop; + } callbacks; + + // This is defined in the window API's platform.h + _GLFW_PLATFORM_WINDOW_STATE; +}; + +// Monitor structure +// +struct _GLFWmonitor +{ + char* name; + void* userPointer; + + // Physical dimensions in millimeters. + int widthMM, heightMM; + + // The window whose video mode is current on this monitor + _GLFWwindow* window; + + GLFWvidmode* modes; + int modeCount; + GLFWvidmode currentMode; + + GLFWgammaramp originalRamp; + GLFWgammaramp currentRamp; + + // This is defined in the window API's platform.h + _GLFW_PLATFORM_MONITOR_STATE; +}; + +// Cursor structure +// +struct _GLFWcursor +{ + _GLFWcursor* next; + + // This is defined in the window API's platform.h + _GLFW_PLATFORM_CURSOR_STATE; +}; + +// Gamepad mapping element structure +// +struct _GLFWmapelement +{ + uint8_t type; + uint8_t index; + int8_t axisScale; + int8_t axisOffset; +}; + +// Gamepad mapping structure +// +struct _GLFWmapping +{ + char name[128]; + char guid[33]; + _GLFWmapelement buttons[15]; + _GLFWmapelement axes[6]; +}; + +// Joystick structure +// +struct _GLFWjoystick +{ + GLFWbool present; + float* axes; + int axisCount; + unsigned char* buttons; + int buttonCount; + unsigned char* hats; + int hatCount; + char* name; + void* userPointer; + char guid[33]; + _GLFWmapping* mapping; + + // This is defined in the joystick API's joystick.h + _GLFW_PLATFORM_JOYSTICK_STATE; +}; + +// Thread local storage structure +// +struct _GLFWtls +{ + // This is defined in the platform's thread.h + _GLFW_PLATFORM_TLS_STATE; +}; + +// Mutex structure +// +struct _GLFWmutex +{ + // This is defined in the platform's thread.h + _GLFW_PLATFORM_MUTEX_STATE; +}; + +// Library global data +// +struct _GLFWlibrary +{ + GLFWbool initialized; + + struct { + _GLFWinitconfig init; + _GLFWfbconfig framebuffer; + _GLFWwndconfig window; + _GLFWctxconfig context; + int refreshRate; + } hints; + + _GLFWerror* errorListHead; + _GLFWcursor* cursorListHead; + _GLFWwindow* windowListHead; + + _GLFWmonitor** monitors; + int monitorCount; + + _GLFWjoystick joysticks[GLFW_JOYSTICK_LAST + 1]; + _GLFWmapping* mappings; + int mappingCount; + + _GLFWtls errorSlot; + _GLFWtls contextSlot; + _GLFWmutex errorLock; + + struct { + uint64_t offset; + // This is defined in the platform's time.h + _GLFW_PLATFORM_LIBRARY_TIMER_STATE; + } timer; + + struct { + GLFWbool available; + void* handle; + char* extensions[2]; +#if !defined(_GLFW_VULKAN_STATIC) + PFN_vkEnumerateInstanceExtensionProperties EnumerateInstanceExtensionProperties; + PFN_vkGetInstanceProcAddr GetInstanceProcAddr; +#endif + GLFWbool KHR_surface; +#if defined(_GLFW_WIN32) + GLFWbool KHR_win32_surface; +#elif defined(_GLFW_COCOA) + GLFWbool MVK_macos_surface; + GLFWbool EXT_metal_surface; +#elif defined(_GLFW_X11) + GLFWbool KHR_xlib_surface; + GLFWbool KHR_xcb_surface; +#elif defined(_GLFW_WAYLAND) + GLFWbool KHR_wayland_surface; +#endif + } vk; + + struct { + GLFWmonitorfun monitor; + GLFWjoystickfun joystick; + } callbacks; + + // This is defined in the window API's platform.h + _GLFW_PLATFORM_LIBRARY_WINDOW_STATE; + // This is defined in the context API's context.h + _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE; + // This is defined in the platform's joystick.h + _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE; + // This is defined in egl_context.h + _GLFW_EGL_LIBRARY_CONTEXT_STATE; + // This is defined in osmesa_context.h + _GLFW_OSMESA_LIBRARY_CONTEXT_STATE; +}; + +// Global state shared between compilation units of GLFW +// +extern _GLFWlibrary _glfw; + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformInit(void); +void _glfwPlatformTerminate(void); +const char* _glfwPlatformGetVersionString(void); + +void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos); +void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode); +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled); +GLFWbool _glfwPlatformRawMouseMotionSupported(void); +int _glfwPlatformCreateCursor(_GLFWcursor* cursor, + const GLFWimage* image, int xhot, int yhot); +int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape); +void _glfwPlatformDestroyCursor(_GLFWcursor* cursor); +void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor); + +const char* _glfwPlatformGetScancodeName(int scancode); +int _glfwPlatformGetKeyScancode(int key); + +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor); +void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale); +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int *width, int *height); +GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count); +void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +void _glfwPlatformSetClipboardString(const char* string); +const char* _glfwPlatformGetClipboardString(void); + +int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode); +void _glfwPlatformUpdateGamepadGUID(char* guid); + +uint64_t _glfwPlatformGetTimerValue(void); +uint64_t _glfwPlatformGetTimerFrequency(void); + +int _glfwPlatformCreateWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); +void _glfwPlatformDestroyWindow(_GLFWwindow* window); +void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title); +void _glfwPlatformSetWindowIcon(_GLFWwindow* window, + int count, const GLFWimage* images); +void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos); +void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height); +void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height); +void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight); +void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom); +void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height); +void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom); +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale); +void _glfwPlatformIconifyWindow(_GLFWwindow* window); +void _glfwPlatformRestoreWindow(_GLFWwindow* window); +void _glfwPlatformMaximizeWindow(_GLFWwindow* window); +void _glfwPlatformShowWindow(_GLFWwindow* window); +void _glfwPlatformHideWindow(_GLFWwindow* window); +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window); +void _glfwPlatformFocusWindow(_GLFWwindow* window); +void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor, + int xpos, int ypos, int width, int height, + int refreshRate); +int _glfwPlatformWindowFocused(_GLFWwindow* window); +int _glfwPlatformWindowIconified(_GLFWwindow* window); +int _glfwPlatformWindowVisible(_GLFWwindow* window); +int _glfwPlatformWindowMaximized(_GLFWwindow* window); +int _glfwPlatformWindowHovered(_GLFWwindow* window); +int _glfwPlatformFramebufferTransparent(_GLFWwindow* window); +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window); +void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled); +void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled); +void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled); +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity); + +void _glfwPlatformPollEvents(void); +void _glfwPlatformWaitEvents(void); +void _glfwPlatformWaitEventsTimeout(double timeout); +void _glfwPlatformPostEmptyEvent(void); + +void _glfwPlatformGetRequiredInstanceExtensions(char** extensions); +int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily); +VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface); + +GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls); +void _glfwPlatformDestroyTls(_GLFWtls* tls); +void* _glfwPlatformGetTls(_GLFWtls* tls); +void _glfwPlatformSetTls(_GLFWtls* tls, void* value); + +GLFWbool _glfwPlatformCreateMutex(_GLFWmutex* mutex); +void _glfwPlatformDestroyMutex(_GLFWmutex* mutex); +void _glfwPlatformLockMutex(_GLFWmutex* mutex); +void _glfwPlatformUnlockMutex(_GLFWmutex* mutex); + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused); +void _glfwInputWindowPos(_GLFWwindow* window, int xpos, int ypos); +void _glfwInputWindowSize(_GLFWwindow* window, int width, int height); +void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height); +void _glfwInputWindowContentScale(_GLFWwindow* window, + float xscale, float yscale); +void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified); +void _glfwInputWindowMaximize(_GLFWwindow* window, GLFWbool maximized); +void _glfwInputWindowDamage(_GLFWwindow* window); +void _glfwInputWindowCloseRequest(_GLFWwindow* window); +void _glfwInputWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor); + +void _glfwInputKey(_GLFWwindow* window, + int key, int scancode, int action, int mods); +void _glfwInputChar(_GLFWwindow* window, + unsigned int codepoint, int mods, GLFWbool plain); +void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset); +void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods); +void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos); +void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered); +void _glfwInputDrop(_GLFWwindow* window, int count, const char** names); +void _glfwInputJoystick(_GLFWjoystick* js, int event); +void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value); +void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value); +void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value); + +void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement); +void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window); + +#if defined(__GNUC__) +void _glfwInputError(int code, const char* format, ...) + __attribute__((format(printf, 2, 3))); +#else +void _glfwInputError(int code, const char* format, ...); +#endif + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions); +const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, + const _GLFWfbconfig* alternatives, + unsigned int count); +GLFWbool _glfwRefreshContextAttribs(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig); +GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig); + +const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, + const GLFWvidmode* desired); +int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second); +_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM); +void _glfwFreeMonitor(_GLFWmonitor* monitor); +void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size); +void _glfwFreeGammaArrays(GLFWgammaramp* ramp); +void _glfwSplitBPP(int bpp, int* red, int* green, int* blue); + +_GLFWjoystick* _glfwAllocJoystick(const char* name, + const char* guid, + int axisCount, + int buttonCount, + int hatCount); +void _glfwFreeJoystick(_GLFWjoystick* js); +void _glfwCenterCursorInContentArea(_GLFWwindow* window); + +GLFWbool _glfwInitVulkan(int mode); +void _glfwTerminateVulkan(void); +const char* _glfwGetVulkanResultString(VkResult result); + +char* _glfw_strdup(const char* source); +float _glfw_fminf(float a, float b); +float _glfw_fmaxf(float a, float b); + diff --git a/external/GLFW/src/linux_joystick.c b/external/glfw-3.3.4/src/linux_joystick.c similarity index 93% rename from external/GLFW/src/linux_joystick.c rename to external/glfw-3.3.4/src/linux_joystick.c index d73961f..5a3b806 100644 --- a/external/GLFW/src/linux_joystick.c +++ b/external/glfw-3.3.4/src/linux_joystick.c @@ -2,7 +2,7 @@ // GLFW 3.3 Linux - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" @@ -38,6 +40,11 @@ #include #include +#ifndef SYN_DROPPED // < v2.6.39 kernel headers +// Workaround for CentOS-6, which is supported till 2020-11-30, but still on v2.6.32 +#define SYN_DROPPED 3 +#endif + // Apply an EV_KEY event to the specified joystick // static void handleKeyEvent(_GLFWjoystick* js, int code, int value) @@ -99,9 +106,7 @@ static void handleAbsEvent(_GLFWjoystick* js, int code, int value) // static void pollAbsState(_GLFWjoystick* js) { - int code; - - for (code = 0; code < ABS_CNT; code++) + for (int code = 0; code < ABS_CNT; code++) { if (js->linjs.absMap[code] < 0) continue; @@ -121,18 +126,7 @@ static void pollAbsState(_GLFWjoystick* js) // static GLFWbool openJoystickDevice(const char* path) { - int jid, code; - char name[256] = ""; - char guid[33] = ""; - char evBits[(EV_CNT + 7) / 8] = {0}; - char keyBits[(KEY_CNT + 7) / 8] = {0}; - char absBits[(ABS_CNT + 7) / 8] = {0}; - int axisCount = 0, buttonCount = 0, hatCount = 0; - struct input_id id; - _GLFWjoystickLinux linjs = {0}; - _GLFWjoystick* js = NULL; - - for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) { if (!_glfw.joysticks[jid].present) continue; @@ -140,10 +134,16 @@ static GLFWbool openJoystickDevice(const char* path) return GLFW_FALSE; } + _GLFWjoystickLinux linjs = {0}; linjs.fd = open(path, O_RDONLY | O_NONBLOCK); if (linjs.fd == -1) return GLFW_FALSE; + char evBits[(EV_CNT + 7) / 8] = {0}; + char keyBits[(KEY_CNT + 7) / 8] = {0}; + char absBits[(ABS_CNT + 7) / 8] = {0}; + struct input_id id; + if (ioctl(linjs.fd, EVIOCGBIT(0, sizeof(evBits)), evBits) < 0 || ioctl(linjs.fd, EVIOCGBIT(EV_KEY, sizeof(keyBits)), keyBits) < 0 || ioctl(linjs.fd, EVIOCGBIT(EV_ABS, sizeof(absBits)), absBits) < 0 || @@ -163,9 +163,13 @@ static GLFWbool openJoystickDevice(const char* path) return GLFW_FALSE; } + char name[256] = ""; + if (ioctl(linjs.fd, EVIOCGNAME(sizeof(name)), name) < 0) strncpy(name, "Unknown", sizeof(name)); + char guid[33] = ""; + // Generate a joystick GUID that matches the SDL 2.0.5+ one if (id.vendor && id.product && id.version) { @@ -184,7 +188,9 @@ static GLFWbool openJoystickDevice(const char* path) name[8], name[9], name[10]); } - for (code = BTN_MISC; code < KEY_CNT; code++) + int axisCount = 0, buttonCount = 0, hatCount = 0; + + for (int code = BTN_MISC; code < KEY_CNT; code++) { if (!isBitSet(code, keyBits)) continue; @@ -193,7 +199,7 @@ static GLFWbool openJoystickDevice(const char* path) buttonCount++; } - for (code = 0; code < ABS_CNT; code++) + for (int code = 0; code < ABS_CNT; code++) { linjs.absMap[code] = -1; if (!isBitSet(code, absBits)) @@ -216,14 +222,15 @@ static GLFWbool openJoystickDevice(const char* path) } } - js = _glfwAllocJoystick(name, guid, axisCount, buttonCount, hatCount); + _GLFWjoystick* js = + _glfwAllocJoystick(name, guid, axisCount, buttonCount, hatCount); if (!js) { close(linjs.fd); return GLFW_FALSE; } - strncpy(linjs.path, path, sizeof(linjs.path)); + strncpy(linjs.path, path, sizeof(linjs.path) - 1); memcpy(&js->linjs, &linjs, sizeof(linjs)); pollAbsState(js); @@ -261,8 +268,6 @@ static int compareJoysticks(const void* fp, const void* sp) // GLFWbool _glfwInitJoysticksLinux(void) { - DIR* dir; - int count = 0; const char* dirname = "/dev/input"; _glfw.linjs.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); @@ -284,7 +289,9 @@ GLFWbool _glfwInitJoysticksLinux(void) return GLFW_FALSE; } - dir = opendir(dirname); + int count = 0; + + DIR* dir = opendir(dirname); if (dir) { struct dirent* entry; @@ -339,12 +346,11 @@ void _glfwTerminateJoysticksLinux(void) void _glfwDetectJoystickConnectionLinux(void) { - ssize_t offset = 0; - char buffer[16384]; - if (_glfw.linjs.inotify <= 0) return; + ssize_t offset = 0; + char buffer[16384]; const ssize_t size = read(_glfw.linjs.inotify, buffer, sizeof(buffer)); while (size > offset) @@ -364,9 +370,7 @@ void _glfwDetectJoystickConnectionLinux(void) openJoystickDevice(path); else if (e->mask & IN_DELETE) { - int jid; - - for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) { if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0) { diff --git a/external/GLFW/src/linux_joystick.h b/external/glfw-3.3.4/src/linux_joystick.h similarity index 100% rename from external/GLFW/src/linux_joystick.h rename to external/glfw-3.3.4/src/linux_joystick.h diff --git a/external/glfw-3.3.4/src/mappings.h b/external/glfw-3.3.4/src/mappings.h new file mode 100644 index 0000000..606824a --- /dev/null +++ b/external/glfw-3.3.4/src/mappings.h @@ -0,0 +1,476 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2018 Camilla Löwy +// +// 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. +// +//======================================================================== +// As mappings.h.in, this file is used by CMake to produce the mappings.h +// header file. If you are adding a GLFW specific gamepad mapping, this is +// where to put it. +//======================================================================== +// As mappings.h, this provides all pre-defined gamepad mappings, including +// all available in SDL_GameControllerDB. Do not edit this file. Any gamepad +// mappings not specific to GLFW should be submitted to SDL_GameControllerDB. +// This file can be re-generated from mappings.h.in and the upstream +// gamecontrollerdb.txt with the GenerateMappings.cmake script. +//======================================================================== + +// All gamepad mappings not labeled GLFW are copied from the +// SDL_GameControllerDB project under the following license: +// +// Simple DirectMedia Layer +// Copyright (C) 1997-2013 Sam Lantinga +// +// 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. + +const char* _glfwDefaultMappings[] = +{ +"03000000fa2d00000100000000000000,3DRUDDER,leftx:a0,lefty:a1,rightx:a5,righty:a2,platform:Windows,", +"03000000022000000090000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000203800000900000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000102800000900000000000000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000a00500003232000000000000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Windows,", +"030000008f0e00001200000000000000,Acme,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Windows,", +"03000000341a00003608000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000c01100001352000000000000,Battalife Joystick,a:b6,b:b7,back:b2,leftshoulder:b0,leftx:a0,lefty:a1,rightshoulder:b1,start:b3,x:b4,y:b5,platform:Windows,", +"030000006b1400000055000000000000,bigben ps3padstreetnew,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"0300000066f700000500000000000000,BrutalLegendTest,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d81d00000b00000000000000,BUFFALO BSGP1601 Series ,a:b5,b:b3,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b9,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b13,x:b4,y:b2,platform:Windows,", +"03000000e82000006058000000000000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"030000005e0400008e02000000000000,Controller (XBOX 360 For Windows),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000260900008888000000000000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a4,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Windows,", +"03000000a306000022f6000000000000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000791d00000103000000000000,Dual Box WII,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"030000004f04000023b3000000000000,Dual Trigger 3-in-1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000341a00000108000000000000,EXEQ RF USB Gamepad 8206,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000000d0f00008500000000000000,Fighting Commander 2016 PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008400000000000000,Fighting Commander 5,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008800000000000000,Fighting Stick mini 4,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b8,x:b0,y:b3,platform:Windows,", +"030000000d0f00008700000000000000,Fighting Stick mini 4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00002700000000000000,FIGHTING STICK V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"78696e70757403000000000000000000,Fightstick TES,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,start:b7,x:b2,y:b3,platform:Windows,", +"03000000260900002625000000000000,Gamecube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,lefttrigger:a4,leftx:a0,lefty:a1,righttrigger:a5,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Windows,", +"030000008f0e00000d31000000000000,GAMEPAD 3 TURBO,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000280400000140000000000000,GamePad Pro USB,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000ffff00000000000000000000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000451300000010000000000000,Generic USB Joystick,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000341a00000302000000000000,Hama Scorpad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004900000000000000,Hatsune Miku Sho Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d81400000862000000000000,HitBox Edition Cthulhu+,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b4,rightshoulder:b7,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005f00000000000000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005e00000000000000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004000000000000000,Hori Fighting Stick Mini 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b4,rightshoulder:b7,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006e00000000000000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006600000000000000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f0000ee00000000000000,HORIPAD mini4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004d00000000000000,HORIPAD3 A,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000250900000017000000000000,HRAP2 on PS/SS/N64 Joypad to USB BOX,a:b2,b:b1,back:b9,leftshoulder:b5,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b6,start:b8,x:b3,y:b0,platform:Windows,", +"030000008f0e00001330000000000000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d81d00000f00000000000000,iBUFFALO BSGP1204 Series,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d81d00001000000000000000,iBUFFALO BSGP1204P Series,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000830500006020000000000000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Windows,", +"03000000b50700001403000000000000,IMPACT BLACK,a:b2,b:b3,back:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"030000006f0e00002401000000000000,INJUSTICE FightStick for PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000491900000204000000000000,Ipega PG-9023,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"030000006d04000011c2000000000000,Logitech Cordless Wingman,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b5,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b2,righttrigger:b7,rightx:a3,righty:a4,x:b4,platform:Windows,", +"030000006d04000016c2000000000000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d04000018c2000000000000,Logitech F510 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d04000019c2000000000000,Logitech F710 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700005032000000000000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700005082000000000000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008433000000000000,Mad Catz FightStick TE S+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008483000000000000,Mad Catz FightStick TE S+ PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b6,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008134000000000000,Mad Catz FightStick TE2+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b7,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b4,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008184000000000000,Mad Catz FightStick TE2+ PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,leftstick:b10,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b4,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008034000000000000,Mad Catz TE2 PS3 Fightstick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008084000000000000,Mad Catz TE2 PS4 Fightstick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008532000000000000,Madcatz Arcade Fightstick TE S PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700003888000000000000,Madcatz Arcade Fightstick TE S+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700001888000000000000,MadCatz SFIV FightStick PS3,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b4,righttrigger:b6,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000380700008081000000000000,MADCATZ SFV Arcade FightStick Alpha PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000008305000031b0000000000000,MaxfireBlaze3,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000250900000128000000000000,Mayflash Arcade Stick,a:b1,b:b2,back:b8,leftshoulder:b0,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b3,righttrigger:b7,start:b9,x:b5,y:b6,platform:Windows,", +"03000000790000004418000000000000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000004318000000000000,Mayflash GameCube Controller Adapter,a:b1,b:b2,back:b0,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b0,leftshoulder:b4,leftstick:b0,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b0,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00001030000000000000,Mayflash USB Adapter for original Sega Saturn controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b5,rightshoulder:b2,righttrigger:b7,start:b9,x:b3,y:b4,platform:Windows,", +"0300000025090000e803000000000000,Mayflash Wii Classic Controller,a:b1,b:b0,back:b8,dpdown:b13,dpleft:b12,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Windows,", +"03000000790000000018000000000000,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000001008000001e5000000000000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bd12000015d0000000000000,Nintendo Retrolink USB Super SNES Classic Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Windows,", +"030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000004b120000014d000000000000,NYKO AIRFLO,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:a3,leftstick:a0,lefttrigger:b6,leftx:h0.6,lefty:h0.12,rightshoulder:b5,rightstick:a2,righttrigger:b7,rightx:h0.9,righty:h0.4,start:b9,x:b2,y:b3,platform:Windows,", +"03000000362800000100000000000000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:b13,rightx:a3,righty:a4,x:b1,y:b2,platform:Windows,", +"03000000120c0000f60e000000000000,P4 Wired Gamepad,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b5,lefttrigger:b7,rightshoulder:b4,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00000300000000000000,Piranha xtreme,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d62000006dca000000000000,PowerA Pro Ex,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00007530000000000000,PS (R) Gamepad,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b1,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000e30500009605000000000000,PS to USB convert cable,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000100800000100000000000000,PS1 USB,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000100800000300000000000000,PS2 USB,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a4,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000888800000803000000000000,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b9,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b0,y:b3,platform:Windows,", +"030000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Windows,", +"03000000250900000500000000000000,PS3 DualShock,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,platform:Windows,", +"03000000100000008200000000000000,PS360+ v1.66,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:h0.4,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000a00b000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000cc09000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00000011000000000000,QanBa Arcade JoyStick 1008,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b10,x:b0,y:b3,platform:Windows,", +"03000000300f00001611000000000000,QanBa Arcade JoyStick 4018,a:b1,b:b2,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b8,x:b0,y:b3,platform:Windows,", +"03000000222c00000020000000000000,QANBA DRONE ARCADE JOYSTICK,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,rightshoulder:b5,righttrigger:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001210000000000000,QanBa Joystick Plus,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Windows,", +"03000000341a00000104000000000000,QanBa Joystick Q4RAF,a:b5,b:b6,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b0,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b3,righttrigger:b7,start:b9,x:b1,y:b2,platform:Windows,", +"03000000222c00000223000000000000,Qanba Obsidian Arcade Joystick PS3 Mode,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000222c00000023000000000000,Qanba Obsidian Arcade Joystick PS4 Mode,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000321500000003000000000000,Razer Hydra,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000000d0f00001100000000000000,REAL ARCADE PRO.3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,rightstick:b11,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008b00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008a00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006b00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006a00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00007000000000000000,REAL ARCADE PRO.4 VLX,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,rightstick:b11,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00002200000000000000,REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005c00000000000000,Real Arcade Pro.V4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005b00000000000000,Real Arcade Pro.V4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000001100000000000000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Windows,", +"0300000000f000000300000000000000,RetroUSB.com RetroPad,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Windows,", +"0300000000f00000f100000000000000,RetroUSB.com Super RetroPort,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Windows,", +"030000006b140000010d000000000000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001e01000000000000,Rock Candy Gamepad for PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f04000003d0000000000000,run'n'drive,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b7,leftshoulder:a3,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:a4,rightstick:b11,righttrigger:b5,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a30600001af5000000000000,Saitek Cyborg,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a306000023f6000000000000,Saitek Cyborg V.1 Game pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001201000000000000,Saitek Dual Analog Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"03000000a30600000cff000000000000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,x:b0,y:b1,platform:Windows,", +"03000000a30600000c04000000000000,Saitek P2900,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001001000000000000,Saitek P480 Rumble Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"03000000a30600000b04000000000000,Saitek P990,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,platform:Windows,", +"03000000300f00001101000000000000,saitek rumble pad,a:b2,b:b3,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"0300000000050000289b000000000000,Saturn_Adapter_2.0,a:b1,b:b2,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b0,y:b3,platform:Windows,", +"030000009b2800000500000000000000,Saturn_Adapter_2.0,a:b1,b:b2,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000341a00000208000000000000,SL-6555-SBK,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:-a4,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a3,righty:a2,start:b7,x:b2,y:b3,platform:Windows,", +"030000008f0e00000800000000000000,SpeedLink Strike FX Wireless,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000ff1100003133000000000000,SVEN X-PAD,a:b2,b:b3,back:b4,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b9,rightx:a2,righty:a4,start:b5,x:b0,y:b1,platform:Windows,", +"03000000fa1900000706000000000000,Team 5,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000b50700001203000000000000,Techmobility X6-38V,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"030000004f04000015b3000000000000,Thrustmaster Dual Analog 2,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Windows,", +"030000004f04000000b3000000000000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Windows,", +"030000004f04000004b3000000000000,Thrustmaster Firestorm Dual Power 3,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Windows,", +"03000000666600000488000000000000,TigerGame PS/PS2 Game Controller Adapter,a:b2,b:b1,back:b9,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000d90400000200000000000000,TwinShock PS2,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000380700006652000000000000,UnKnown,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000632500002305000000000000,USB Vibration Joystick (BM),a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000790000001b18000000000000,Venom Arcade Joystick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000450c00002043000000000000,XEOX Gamepad SL-6556-BK,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000172700004431000000000000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a7,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Windows,", +"03000000786901006e70000000000000,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000022000000090000001000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000102800000900000000000000,8Bitdo SFC30 GamePad Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Mac OS X,", +"030000008305000031b0000000000000,Cideko AK08b,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000260900008888000088020000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Mac OS X,", +"03000000a306000022f6000001030000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000ad1b000001f9000000000000,Gamestop BB-070 X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"030000000d0f00005f00000000010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005e00000000010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005f00000000000000,HORI Fighting Commander 4 PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005e00000000000000,HORI Fighting Commander 4 PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00004d00000000000000,HORI Gem Pad 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006e00000000010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006600000000010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006600000000000000,HORIPAD FPS PLUS 4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008f0e00001330000011010000,HuiJia SNES Controller,a:b4,b:b2,back:b16,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b12,rightshoulder:b14,start:b18,x:b6,y:b0,platform:Mac OS X,", +"03000000830500006020000000010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Mac OS X,", +"03000000830500006020000000000000,iBuffalo USB 2-axis 8-button Gamepad,a:b1,b:b0,back:b6,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Mac OS X,", +"030000006d04000016c2000000020000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000000030000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000014040000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000000000000,Logitech F310 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000018c2000000000000,Logitech F510 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d0400001fc2000000000000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000006d04000019c2000000000000,Logitech Wireless Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700005032000000010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700005082000000010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000790000004418000000010000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Mac OS X,", +"0300000025090000e803000000000000,Mayflash Wii Classic Controller,a:b1,b:b0,back:b8,dpdown:b13,dpleft:b12,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Mac OS X,", +"03000000790000000018000000000000,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b4,b:b8,back:b32,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b16,leftstick:b40,lefttrigger:b24,leftx:a0,lefty:a4,rightshoulder:b20,rightstick:b44,righttrigger:b28,rightx:a8,righty:a12,start:b36,x:b0,y:b12,platform:Mac OS X,", +"03000000d8140000cecf000000000000,MC Cthulhu,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000001008000001e5000006010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"030000008f0e00000300000000000000,Piranha xtreme,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Mac OS X,", +"030000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Mac OS X,", +"030000004c050000a00b000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008916000000fd000000000000,Razer Onza TE,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000321500000010000000010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"0300000032150000030a000000000000,Razer Wildcat,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000790000001100000000000000,Retrolink Classic Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a3,lefty:a4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000790000001100000006010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000006b140000010d000000010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000811700007e05000000000000,Sega Saturn,a:b2,b:b4,dpdown:b16,dpleft:b15,dpright:b14,dpup:b17,leftshoulder:b8,lefttrigger:a5,leftx:a0,lefty:a2,rightshoulder:b9,righttrigger:a4,start:b13,x:b0,y:b6,platform:Mac OS X,", +"03000000b40400000a01000000000000,Sega Saturn USB Gamepad,a:b0,b:b1,back:b5,guide:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b8,x:b3,y:b4,platform:Mac OS X,", +"030000003512000021ab000000000000,SFC30 Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"030000004c050000cc09000000000000,Sony DualShock 4 V2,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000a00b000000000000,Sony DualShock 4 Wireless Adaptor,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000005e0400008e02000001000000,Steam Virtual GamePad,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000110100002014000000000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,platform:Mac OS X,", +"03000000110100002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,platform:Mac OS X,", +"03000000381000002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,platform:Mac OS X,", +"03000000110100001714000000000000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,platform:Mac OS X,", +"03000000110100001714000020010000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,platform:Mac OS X,", +"030000004f04000015b3000000000000,Thrustmaster Dual Analog 3.2,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Mac OS X,", +"030000004f04000000b3000000000000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Mac OS X,", +"03000000bd12000015d0000000010000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000bd12000015d0000000000000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000100800000100000000000000,Twin USB Joystick,a:b4,b:b2,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b12,leftstick:b20,lefttrigger:b8,leftx:a0,lefty:a2,rightshoulder:b14,rightstick:b22,righttrigger:b10,rightx:a6,righty:a4,start:b18,x:b6,y:b0,platform:Mac OS X,", +"050000005769696d6f74652028303000,Wii Remote,a:b4,b:b5,back:b7,dpdown:b3,dpleft:b0,dpright:b1,dpup:b2,guide:b8,leftshoulder:b11,lefttrigger:b12,leftx:a0,lefty:a1,start:b6,x:b10,y:b9,platform:Mac OS X,", +"050000005769696d6f74652028313800,Wii U Pro Controller,a:b16,b:b15,back:b7,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b8,leftshoulder:b19,leftstick:b23,lefttrigger:b21,leftx:a0,lefty:a1,rightshoulder:b20,rightstick:b24,righttrigger:b22,rightx:a2,righty:a3,start:b6,x:b18,y:b17,platform:Mac OS X,", +"030000005e0400008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000c6240000045d000000000000,Xbox 360 Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000e302000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000d102000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000dd02000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000e002000000000000,Xbox Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000fd02000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"030000005e040000ea02000000000000,Xbox Wireless Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000e002000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Mac OS X,", +"03000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000120c0000100e000000010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"05000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000022000000090000011010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00002038000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000190000011010000,8Bitdo NES30 Pro 8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00003028000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"05000000102800000900000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"05000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Linux,", +"05000000a00500003232000001000000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Linux,", +"030000006f0e00003901000020060000,Afterglow Wired Controller for Xbox One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000100000008200000011010000,Akishop Customs PS360+ v1.66,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"05000000050b00000045000031000000,ASUS Gamepad,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b10,x:b2,y:b3,platform:Linux,", +"03000000666600006706000000010000,boom PSX to PC Converter,a:b2,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a2,righty:a3,start:b11,x:b3,y:b0,platform:Linux,", +"03000000e82000006058000001010000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000260900008888000000010000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Linux,", +"03000000a306000022f6000011010000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000b40400000a01000000010000,CYPRESS USB Gamepad,a:b0,b:b1,back:b5,guide:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b8,x:b3,y:b4,platform:Linux,", +"03000000790000000600000010010000,DragonRise Inc. Generic USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e00003001000001010000,EA Sports PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000341a000005f7000010010000,GameCube {HuiJia USB box},a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Linux,", +"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000006f0e00000104000000010000,Gamestop Logic3 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00001304000000010000,Generic X-Box pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:a0,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:a3,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00001f01000000010000,Generic X-Box pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000f0250000c183000010010000,Goodbetterbest Ltd USB Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000280400000140000000010000,Gravis GamePad Pro USB ,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000008f0e00000610000000010000,GreenAsia Electronics 4Axes 12Keys GamePad ,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a3,righty:a2,start:b11,x:b3,y:b0,platform:Linux,", +"030000008f0e00001200000010010000,GreenAsia Inc. USB Joystick,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"030000008f0e00000300000010010000,GreenAsia Inc. USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"0500000047532067616d657061640000,GS gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"06000000adde0000efbe000002010000,Hidromancer Game Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000d81400000862000011010000,HitBox (PS3/PC) Analog Mode,a:b1,b:b2,back:b8,guide:b9,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b12,x:b0,y:b3,platform:Linux,", +"03000000c9110000f055000011010000,HJC Game GAMEPAD,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0f00000d00000000010000,hori,a:b0,b:b6,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b3,leftx:b4,lefty:b5,rightshoulder:b7,start:b9,x:b1,y:b2,platform:Linux,", +"030000000d0f00001000000011010000,HORI CO. LTD. FIGHTING STICK 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006a00000011010000,HORI CO. LTD. Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006b00000011010000,HORI CO. LTD. Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00002200000011010000,HORI CO. LTD. REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00005f00000011010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00005e00000011010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ad1b000001f5000033050000,Hori Pad EX Turbo 2,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000000d0f00006e00000011010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006600000011010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006700000001010000,HORIPAD ONE,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000008f0e00001330000010010000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,platform:Linux,", +"03000000830500006020000010010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Linux,", +"050000006964726f69643a636f6e0000,idroid:con,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000b50700001503000010010000,impact,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Linux,", +"03000000fd0500000030000000010000,InterAct GoPad I-73000 (Fighting Game Layout),a:b3,b:b4,back:b6,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:b5,start:b7,x:b0,y:b1,platform:Linux,", +"030000006e0500000320000010010000,JC-U3613M - DirectInput Mode,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b0,y:b1,platform:Linux,", +"03000000300f00001001000010010000,Jess Tech Dual Analog Rumble Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Linux,", +"03000000ba2200002010000001010000,Jess Technology USB Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e00000103000000020000,Logic3 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d04000019c2000010010000,Logitech Cordless RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000016c2000011010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000016c2000010010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d0400001dc2000014400000,Logitech F310 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d0400001ec2000020200000,Logitech F510 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d04000019c2000011010000,Logitech F710 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d0400001fc2000005030000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d04000015c2000010010000,Logitech Logitech Extreme 3D,a:b0,b:b4,back:b6,guide:b8,leftshoulder:b9,leftstick:h0.8,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:h0.2,start:b7,x:b2,y:b5,platform:Linux,", +"030000006d04000018c2000010010000,Logitech RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000011c2000010010000,Logitech WingMan Cordless RumblePad,a:b0,b:b1,back:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b6,lefttrigger:b9,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b10,rightx:a3,righty:a4,start:b8,x:b3,y:b4,platform:Linux,", +"05000000380700006652000025010000,Mad Catz C.T.R.L.R ,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700005032000011010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700005082000011010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ad1b00002ef0000090040000,Mad Catz Fightpad SFxT,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700008034000011010000,Mad Catz fightstick (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008084000011010000,Mad Catz fightstick (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008433000011010000,Mad Catz FightStick TE S+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008483000011010000,Mad Catz FightStick TE S+ PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700001647000010040000,Mad Catz Wired Xbox 360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700003847000090040000,Mad Catz Wired Xbox 360 Controller (SFIV),a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000ad1b000016f0000090040000,Mad Catz Xbox 360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700001888000010010000,MadCatz PC USB Wired Stick 8818,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700003888000010010000,MadCatz PC USB Wired Stick 8838,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:a0,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000790000004418000010010000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Linux,", +"03000000780000000600000010010000,Microntek USB Joystick,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"030000005e0400008e02000004010000,Microsoft X-Box 360 pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000062230000,Microsoft X-Box 360 pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000d102000001010000,Microsoft X-Box One pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000d102000003020000,Microsoft X-Box One pad v2,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008502000000010000,Microsoft X-Box pad (Japan),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"030000005e0400008902000021010000,Microsoft X-Box pad v2 (US),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"05000000d6200000ad0d000001000000,Moga Pro,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"030000001008000001e5000010010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b6,start:b9,x:b3,y:b0,platform:Linux,", +"050000007e0500000920000001000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"050000007e0500003003000001000000,Nintendo Wii Remote Pro Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Linux,", +"05000000010000000100000003000000,Nintendo Wiimote,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0500000308000010010000,Nostromo n45 Dual Analog Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b12,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b10,x:b2,y:b3,platform:Linux,", +"03000000550900001072000011010000,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b8,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000451300000830000010010000,NYKO CORE,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000005e0400000202000000010000,Old Xbox pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"05000000362800000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,platform:Linux,", +"05000000362800000100000003010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,platform:Linux,", +"03000000ff1100003133000010010000,PC Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e00006401000001010000,PDP Battlefield One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000ff1100004133000010010000,PS2 Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"030000004c0500006802000010010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"050000004c0500006802000000810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"03000000341a00003608000011010000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c0500006802000011810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:a12,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:a13,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"030000004c0500006802000010810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c0500006802000011010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"060000004c0500006802000000010000,PS3 Controller (Bluetooth),a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"05000000504c415953544154494f4e00,PS3 Controller (Bluetooth),a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"050000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000a00b000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"050000004c050000cc09000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000c405000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000c405000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000cc09000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000a00b000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000cc09000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000c405000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000300f00001211000011010000,QanBa Arcade JoyStick,a:b2,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b5,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b6,start:b9,x:b1,y:b3,platform:Linux,", +"030000009b2800000300000001010000,raphnet.net 4nes4snes v1.5,a:b0,b:b4,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b1,y:b5,platform:Linux,", +"030000008916000001fd000024010000,Razer Onza Classic Edition,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000008916000000fd000024010000,Razer Onza Tournament,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000321500000010000011010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000c6240000045d000025010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000321500000009000011010000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"050000003215000000090000163a0000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"0300000032150000030a000001010000,Razer Wildcat,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000790000001100000010010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Linux,", +"0300000000f000000300000000010000,RetroUSB.com RetroPad,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Linux,", +"0300000000f00000f100000000010000,RetroUSB.com Super RetroPort,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Linux,", +"030000006b140000010d000011010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00001e01000011010000,Rock Candy Gamepad for PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00004601000001010000,Rock Candy Wired Controller for Xbox One,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000a306000023f6000011010000,Saitek Cyborg V.1 Game Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000a30600000cff000010010000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,x:b0,y:b1,platform:Linux,", +"03000000a30600000c04000011010000,Saitek P2900 Wireless Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b12,x:b0,y:b3,platform:Linux,", +"03000000a30600000901000000010000,Saitek P880,a:b2,b:b3,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,x:b0,y:b1,platform:Linux,", +"03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,platform:Linux,", +"03000000a306000018f5000010010000,Saitek PLC Saitek P3200 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000c01600008704000011010000,Serial/Keyboard/Mouse/Joystick,a:b12,b:b10,back:b4,dpdown:b2,dpleft:b3,dpright:b1,dpup:b0,leftshoulder:b9,leftstick:b14,lefttrigger:b6,leftx:a1,lefty:a0,rightshoulder:b8,rightstick:b15,righttrigger:b7,rightx:a2,righty:a3,start:b5,x:b13,y:b11,platform:Linux,", +"03000000f025000021c1000010010000,ShanWan Gioteck PS3 Wired Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000250900000500000000010000,Sony PS2 pad with SmartJoy adapter,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Linux,", +"030000005e0400008e02000073050000,Speedlink TORID Wireless Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000020200000,SpeedLink XEOX Pro Analog Gamepad pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800000211000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800000112000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"05000000de2800000212000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de280000fc11000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800004211000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de280000ff11000001000000,Steam Virtual Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000666600000488000000010000,Super Joy Box 5 Pro,a:b2,b:b1,back:b9,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Linux,", +"030000004f04000020b3000010010000,Thrustmaster 2 in 1 DT,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"030000004f04000015b3000010010000,Thrustmaster Dual Analog 4,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"030000004f04000023b3000000010000,Thrustmaster Dual Trigger 3-in-1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000000b3000010010000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Linux,", +"030000004f04000008d0000000010000,Thrustmaster Run N Drive Wireless,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000009d0000000010000,Thrustmaster Run N Drive Wireless PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000bd12000015d0000010010000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Linux,", +"03000000d814000007cd000011010000,Toodles 2008 Chimp PC/PS3,a:b0,b:b1,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b3,y:b2,platform:Linux,", +"03000000100800000100000010010000,Twin USB PS2 Adapter,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"03000000100800000300000010010000,USB Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"03000000790000001100000000010000,USB Gamepad1,a:b2,b:b1,back:b8,dpdown:a0,dpleft:a1,dpright:a2,dpup:a4,start:b9,platform:Linux,", +"05000000ac0500003232000001000000,VR-BOX,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000014010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000010010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400001907000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400009102000007010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000a102000007010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000a102000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"0000000058626f782033363020576900,Xbox 360 Wireless Controller,a:b0,b:b1,back:b14,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,guide:b7,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b2,y:b3,platform:Linux,", +"0000000058626f782047616d65706100,Xbox Gamepad (userspace driver),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000e002000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000450c00002043000010010000,XEOX Gamepad SL-6556-BK,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"05000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:a7,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Linux,", +"03000000c0160000e105000001010000,Xin-Mo Xin-Mo Dual Arcade,a:b4,b:b3,back:b6,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b9,leftshoulder:b2,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b1,y:b0,platform:Linux,", +"03000000120c0000100e000011010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"64633436313965656664373634323364,Microsoft X-Box 360 pad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,x:b2,y:b3,platform:Android,", +"61363931656135336130663561616264,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Android,", +"4e564944494120436f72706f72617469,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Android,", +"37336435666338653565313731303834,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Android,", +"35643031303033326130316330353564,PS4 Controller,a:b1,b:b17,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b3,leftstick:b4,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b6,righttrigger:+a4,rightx:a2,righty:a5,start:b16,x:b0,y:b2,platform:Android,", +"05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Android,", +"5477696e20555342204a6f7973746963,Twin USB Joystick,a:b22,b:b21,back:b28,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b26,leftstick:b30,lefttrigger:b24,leftx:a0,lefty:a1,rightshoulder:b27,rightstick:b31,righttrigger:b25,rightx:a3,righty:a2,start:b29,x:b23,y:b20,platform:Android,", +"34356136633366613530316338376136,Xbox Wireless Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b3,leftstick:b15,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b18,rightstick:b16,righttrigger:a5,rightx:a3,righty:a4,x:b17,y:b2,platform:Android,", +"4d466947616d65706164010000000000,MFi Extended Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b2,y:b3,platform:iOS,", +"4d466947616d65706164020000000000,MFi Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b6,x:b2,y:b3,platform:iOS,", +"05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:iOS,", + +"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +NULL +}; + diff --git a/external/GLFW/src/mappings.h.in b/external/glfw-3.3.4/src/mappings.h.in similarity index 92% rename from external/GLFW/src/mappings.h.in rename to external/glfw-3.3.4/src/mappings.h.in index bf72067..72460b0 100644 --- a/external/GLFW/src/mappings.h.in +++ b/external/glfw-3.3.4/src/mappings.h.in @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2018 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -51,20 +51,23 @@ // 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. +// 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. -const char* _glfwDefaultMappings = +const char* _glfwDefaultMappings[] = +{ @GLFW_GAMEPAD_MAPPINGS@ -"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n" -"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,\n"; +"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +NULL +}; diff --git a/external/glfw-3.3.4/src/monitor.c b/external/glfw-3.3.4/src/monitor.c new file mode 100644 index 0000000..c6bcfd3 --- /dev/null +++ b/external/glfw-3.3.4/src/monitor.c @@ -0,0 +1,544 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include + + +// Lexically compare video modes, used by qsort +// +static int compareVideoModes(const void* fp, const void* sp) +{ + const GLFWvidmode* fm = fp; + const GLFWvidmode* sm = sp; + const int fbpp = fm->redBits + fm->greenBits + fm->blueBits; + const int sbpp = sm->redBits + sm->greenBits + sm->blueBits; + const int farea = fm->width * fm->height; + const int sarea = sm->width * sm->height; + + // First sort on color bits per pixel + if (fbpp != sbpp) + return fbpp - sbpp; + + // Then sort on screen area + if (farea != sarea) + return farea - sarea; + + // Then sort on width + if (fm->width != sm->width) + return fm->width - sm->width; + + // Lastly sort on refresh rate + return fm->refreshRate - sm->refreshRate; +} + +// Retrieves the available modes for the specified monitor +// +static GLFWbool refreshVideoModes(_GLFWmonitor* monitor) +{ + int modeCount; + GLFWvidmode* modes; + + if (monitor->modes) + return GLFW_TRUE; + + modes = _glfwPlatformGetVideoModes(monitor, &modeCount); + if (!modes) + return GLFW_FALSE; + + qsort(modes, modeCount, sizeof(GLFWvidmode), compareVideoModes); + + free(monitor->modes); + monitor->modes = modes; + monitor->modeCount = modeCount; + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code of a monitor connection or disconnection +// +void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement) +{ + if (action == GLFW_CONNECTED) + { + _glfw.monitorCount++; + _glfw.monitors = + realloc(_glfw.monitors, sizeof(_GLFWmonitor*) * _glfw.monitorCount); + + if (placement == _GLFW_INSERT_FIRST) + { + memmove(_glfw.monitors + 1, + _glfw.monitors, + ((size_t) _glfw.monitorCount - 1) * sizeof(_GLFWmonitor*)); + _glfw.monitors[0] = monitor; + } + else + _glfw.monitors[_glfw.monitorCount - 1] = monitor; + } + else if (action == GLFW_DISCONNECTED) + { + int i; + _GLFWwindow* window; + + for (window = _glfw.windowListHead; window; window = window->next) + { + if (window->monitor == monitor) + { + int width, height, xoff, yoff; + _glfwPlatformGetWindowSize(window, &width, &height); + _glfwPlatformSetWindowMonitor(window, NULL, 0, 0, width, height, 0); + _glfwPlatformGetWindowFrameSize(window, &xoff, &yoff, NULL, NULL); + _glfwPlatformSetWindowPos(window, xoff, yoff); + } + } + + for (i = 0; i < _glfw.monitorCount; i++) + { + if (_glfw.monitors[i] == monitor) + { + _glfw.monitorCount--; + memmove(_glfw.monitors + i, + _glfw.monitors + i + 1, + ((size_t) _glfw.monitorCount - i) * sizeof(_GLFWmonitor*)); + break; + } + } + } + + if (_glfw.callbacks.monitor) + _glfw.callbacks.monitor((GLFWmonitor*) monitor, action); + + if (action == GLFW_DISCONNECTED) + _glfwFreeMonitor(monitor); +} + +// Notifies shared code that a full screen window has acquired or released +// a monitor +// +void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window) +{ + monitor->window = window; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Allocates and returns a monitor object with the specified name and dimensions +// +_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM) +{ + _GLFWmonitor* monitor = calloc(1, sizeof(_GLFWmonitor)); + monitor->widthMM = widthMM; + monitor->heightMM = heightMM; + + if (name) + monitor->name = _glfw_strdup(name); + + return monitor; +} + +// Frees a monitor object and any data associated with it +// +void _glfwFreeMonitor(_GLFWmonitor* monitor) +{ + if (monitor == NULL) + return; + + _glfwPlatformFreeMonitor(monitor); + + _glfwFreeGammaArrays(&monitor->originalRamp); + _glfwFreeGammaArrays(&monitor->currentRamp); + + free(monitor->modes); + free(monitor->name); + free(monitor); +} + +// Allocates red, green and blue value arrays of the specified size +// +void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) +{ + ramp->red = calloc(size, sizeof(unsigned short)); + ramp->green = calloc(size, sizeof(unsigned short)); + ramp->blue = calloc(size, sizeof(unsigned short)); + ramp->size = size; +} + +// Frees the red, green and blue value arrays and clears the struct +// +void _glfwFreeGammaArrays(GLFWgammaramp* ramp) +{ + free(ramp->red); + free(ramp->green); + free(ramp->blue); + + memset(ramp, 0, sizeof(GLFWgammaramp)); +} + +// Chooses the video mode most closely matching the desired one +// +const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, + const GLFWvidmode* desired) +{ + int i; + unsigned int sizeDiff, leastSizeDiff = UINT_MAX; + unsigned int rateDiff, leastRateDiff = UINT_MAX; + unsigned int colorDiff, leastColorDiff = UINT_MAX; + const GLFWvidmode* current; + const GLFWvidmode* closest = NULL; + + if (!refreshVideoModes(monitor)) + return NULL; + + for (i = 0; i < monitor->modeCount; i++) + { + current = monitor->modes + i; + + colorDiff = 0; + + if (desired->redBits != GLFW_DONT_CARE) + colorDiff += abs(current->redBits - desired->redBits); + if (desired->greenBits != GLFW_DONT_CARE) + colorDiff += abs(current->greenBits - desired->greenBits); + if (desired->blueBits != GLFW_DONT_CARE) + colorDiff += abs(current->blueBits - desired->blueBits); + + sizeDiff = abs((current->width - desired->width) * + (current->width - desired->width) + + (current->height - desired->height) * + (current->height - desired->height)); + + if (desired->refreshRate != GLFW_DONT_CARE) + rateDiff = abs(current->refreshRate - desired->refreshRate); + else + rateDiff = UINT_MAX - current->refreshRate; + + if ((colorDiff < leastColorDiff) || + (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || + (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) + { + closest = current; + leastSizeDiff = sizeDiff; + leastRateDiff = rateDiff; + leastColorDiff = colorDiff; + } + } + + return closest; +} + +// Performs lexical comparison between two @ref GLFWvidmode structures +// +int _glfwCompareVideoModes(const GLFWvidmode* fm, const GLFWvidmode* sm) +{ + return compareVideoModes(fm, sm); +} + +// Splits a color depth into red, green and blue bit depths +// +void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) +{ + int delta; + + // We assume that by 32 the user really meant 24 + if (bpp == 32) + bpp = 24; + + // Convert "bits per pixel" to red, green & blue sizes + + *red = *green = *blue = bpp / 3; + delta = bpp - (*red * 3); + if (delta >= 1) + *green = *green + 1; + + if (delta == 2) + *red = *red + 1; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) +{ + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + *count = _glfw.monitorCount; + return (GLFWmonitor**) _glfw.monitors; +} + +GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfw.monitorCount) + return NULL; + + return (GLFWmonitor*) _glfw.monitors[0]; +} + +GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + + _GLFW_REQUIRE_INIT(); + + _glfwPlatformGetMonitorPos(monitor, xpos, ypos); +} + +GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* handle, + int* xpos, int* ypos, + int* width, int* height) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + if (width) + *width = 0; + if (height) + *height = 0; + + _GLFW_REQUIRE_INIT(); + + _glfwPlatformGetMonitorWorkarea(monitor, xpos, ypos, width, height); +} + +GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (widthMM) + *widthMM = 0; + if (heightMM) + *heightMM = 0; + + _GLFW_REQUIRE_INIT(); + + if (widthMM) + *widthMM = monitor->widthMM; + if (heightMM) + *heightMM = monitor->heightMM; +} + +GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* handle, + float* xscale, float* yscale) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xscale) + *xscale = 0.f; + if (yscale) + *yscale = 0.f; + + _GLFW_REQUIRE_INIT(); + _glfwPlatformGetMonitorContentScale(monitor, xscale, yscale); +} + +GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->name; +} + +GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* handle, void* pointer) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT(); + monitor->userPointer = pointer; +} + +GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->userPointer; +} + +GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP_POINTERS(_glfw.callbacks.monitor, cbfun); + return cbfun; +} + +GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!refreshVideoModes(monitor)) + return NULL; + + *count = monitor->modeCount; + return monitor->modes; +} + +GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + _glfwPlatformGetVideoMode(monitor, &monitor->currentMode); + return &monitor->currentMode; +} + +GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) +{ + unsigned int i; + unsigned short* values; + GLFWgammaramp ramp; + const GLFWgammaramp* original; + assert(handle != NULL); + assert(gamma > 0.f); + assert(gamma <= FLT_MAX); + + _GLFW_REQUIRE_INIT(); + + if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value %f", gamma); + return; + } + + original = glfwGetGammaRamp(handle); + if (!original) + return; + + values = calloc(original->size, sizeof(unsigned short)); + + for (i = 0; i < original->size; i++) + { + float value; + + // Calculate intensity + value = i / (float) (original->size - 1); + // Apply gamma curve + value = powf(value, 1.f / gamma) * 65535.f + 0.5f; + // Clamp to value range + value = _glfw_fminf(value, 65535.f); + + values[i] = (unsigned short) value; + } + + ramp.red = values; + ramp.green = values; + ramp.blue = values; + ramp.size = original->size; + + glfwSetGammaRamp(handle, &ramp); + free(values); +} + +GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + _glfwFreeGammaArrays(&monitor->currentRamp); + if (!_glfwPlatformGetGammaRamp(monitor, &monitor->currentRamp)) + return NULL; + + return &monitor->currentRamp; +} + +GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + assert(ramp != NULL); + assert(ramp->size > 0); + assert(ramp->red != NULL); + assert(ramp->green != NULL); + assert(ramp->blue != NULL); + + if (ramp->size <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid gamma ramp size %i", + ramp->size); + return; + } + + _GLFW_REQUIRE_INIT(); + + if (!monitor->originalRamp.size) + { + if (!_glfwPlatformGetGammaRamp(monitor, &monitor->originalRamp)) + return; + } + + _glfwPlatformSetGammaRamp(monitor, ramp); +} + diff --git a/external/GLFW/src/nsgl_context.h b/external/glfw-3.3.4/src/nsgl_context.h similarity index 76% rename from external/GLFW/src/nsgl_context.h rename to external/glfw-3.3.4/src/nsgl_context.h index 18042de..a772b51 100644 --- a/external/GLFW/src/nsgl_context.h +++ b/external/glfw-3.3.4/src/nsgl_context.h @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 macOS - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy +// Copyright (c) 2009-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,16 +24,26 @@ // //======================================================================== +// NOTE: Many Cocoa enum values have been renamed and we need to build across +// SDK versions where one is unavailable or the other deprecated +// We use the newer names in code and these macros to handle compatibility +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101400 + #define NSOpenGLContextParameterSwapInterval NSOpenGLCPSwapInterval + #define NSOpenGLContextParameterSurfaceOpacity NSOpenGLCPSurfaceOpacity +#endif + #define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl #define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryNSGL nsgl +#include + // NSGL-specific per-context data // typedef struct _GLFWcontextNSGL { - id pixelFormat; - id object; + id pixelFormat; + id object; } _GLFWcontextNSGL; diff --git a/external/GLFW/src/nsgl_context.m b/external/glfw-3.3.4/src/nsgl_context.m similarity index 85% rename from external/GLFW/src/nsgl_context.m rename to external/glfw-3.3.4/src/nsgl_context.m index a7cbf00..1028684 100644 --- a/external/GLFW/src/nsgl_context.m +++ b/external/glfw-3.3.4/src/nsgl_context.m @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 macOS - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy +// Copyright (c) 2009-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -23,33 +23,71 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" +#include +#include static void makeContextCurrentNSGL(_GLFWwindow* window) { + @autoreleasepool { + if (window) [window->context.nsgl.object makeCurrentContext]; else [NSOpenGLContext clearCurrentContext]; _glfwPlatformSetTls(&_glfw.contextSlot, window); + + } // autoreleasepool } static void swapBuffersNSGL(_GLFWwindow* window) { - // ARP appears to be unnecessary, but this is future-proof + @autoreleasepool { + + // HACK: Simulate vsync with usleep as NSGL swap interval does not apply to + // windows with a non-visible occlusion state + if (window->ns.occluded) + { + int interval = 0; + [window->context.nsgl.object getValues:&interval + forParameter:NSOpenGLContextParameterSwapInterval]; + + if (interval > 0) + { + const double framerate = 60.0; + const uint64_t frequency = _glfwPlatformGetTimerFrequency(); + const uint64_t value = _glfwPlatformGetTimerValue(); + + const double elapsed = value / (double) frequency; + const double period = 1.0 / framerate; + const double delay = period - fmod(elapsed, period); + + usleep(floorl(delay * 1e6)); + } + } + [window->context.nsgl.object flushBuffer]; + + } // autoreleasepool } static void swapIntervalNSGL(int interval) { + @autoreleasepool { + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + if (window) + { + [window->context.nsgl.object setValues:&interval + forParameter:NSOpenGLContextParameterSwapInterval]; + } - GLint sync = interval; - [window->context.nsgl.object setValues:&sync - forParameter:NSOpenGLCPSwapInterval]; + } // autoreleasepool } static int extensionSupportedNSGL(const char* extension) @@ -72,15 +110,17 @@ static GLFWglproc getProcAddressNSGL(const char* procname) return symbol; } -// Destroy the OpenGL context -// static void destroyContextNSGL(_GLFWwindow* window) { + @autoreleasepool { + [window->context.nsgl.pixelFormat release]; window->context.nsgl.pixelFormat = nil; [window->context.nsgl.object release]; window->context.nsgl.object = nil; + + } // autoreleasepool } @@ -175,9 +215,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, // Info.plist for unbundled applications // HACK: This assumes that NSOpenGLPixelFormat will remain // a straightforward wrapper of its CGL counterpart -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 100800 addAttrib(kCGLPFASupportsAutomaticGraphicsSwitching); -#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ } #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 @@ -281,7 +319,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, return GLFW_FALSE; } - NSOpenGLContext* share = NULL; + NSOpenGLContext* share = nil; if (ctxconfig->share) share = ctxconfig->share->context.nsgl.object; @@ -299,9 +337,12 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, if (fbconfig->transparent) { GLint opaque = 0; - [window->context.nsgl.object setValues:&opaque forParameter:NSOpenGLCPSurfaceOpacity]; + [window->context.nsgl.object setValues:&opaque + forParameter:NSOpenGLContextParameterSurfaceOpacity]; } + [window->ns.view setWantsBestResolutionOpenGLSurface:window->ns.retina]; + [window->context.nsgl.object setView:window->ns.view]; window->context.makeCurrent = makeContextCurrentNSGL; @@ -327,7 +368,7 @@ GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle) if (window->context.client == GLFW_NO_API) { _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; + return nil; } return window->context.nsgl.object; diff --git a/external/GLFW/src/null_init.c b/external/glfw-3.3.4/src/null_init.c similarity index 88% rename from external/GLFW/src/null_init.c rename to external/glfw-3.3.4/src/null_init.c index 3414738..569bc8c 100644 --- a/external/GLFW/src/null_init.c +++ b/external/glfw-3.3.4/src/null_init.c @@ -2,7 +2,7 @@ // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/null_joystick.c b/external/glfw-3.3.4/src/null_joystick.c similarity index 87% rename from external/GLFW/src/null_joystick.c rename to external/glfw-3.3.4/src/null_joystick.c index afd65e1..000faf2 100644 --- a/external/GLFW/src/null_joystick.c +++ b/external/glfw-3.3.4/src/null_joystick.c @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -23,6 +23,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/null_joystick.h b/external/glfw-3.3.4/src/null_joystick.h similarity index 84% rename from external/GLFW/src/null_joystick.h rename to external/glfw-3.3.4/src/null_joystick.h index 3075815..9307ae8 100644 --- a/external/GLFW/src/null_joystick.h +++ b/external/glfw-3.3.4/src/null_joystick.h @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,8 +24,8 @@ // //======================================================================== -#define _GLFW_PLATFORM_JOYSTICK_STATE int nulljs -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE int nulljs +#define _GLFW_PLATFORM_JOYSTICK_STATE struct { int dummyJoystick; } +#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE struct { int dummyLibraryJoystick; } #define _GLFW_PLATFORM_MAPPING_NAME "" diff --git a/external/glfw-3.3.4/src/null_monitor.c b/external/glfw-3.3.4/src/null_monitor.c new file mode 100644 index 0000000..4514dae --- /dev/null +++ b/external/glfw-3.3.4/src/null_monitor.c @@ -0,0 +1,77 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor) +{ +} + +void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ +} + +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = 1.f; + if (yscale) + *yscale = 1.f; +} + +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ +} + +GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) +{ + return NULL; +} + +void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ +} + +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + return GLFW_FALSE; +} + +void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ +} + diff --git a/external/GLFW/src/null_platform.h b/external/glfw-3.3.4/src/null_platform.h similarity index 75% rename from external/GLFW/src/null_platform.h rename to external/glfw-3.3.4/src/null_platform.h index 2d67c50..708975d 100644 --- a/external/GLFW/src/null_platform.h +++ b/external/glfw-3.3.4/src/null_platform.h @@ -2,7 +2,7 @@ // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -29,13 +29,13 @@ #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowNull null -#define _GLFW_PLATFORM_CONTEXT_STATE -#define _GLFW_PLATFORM_MONITOR_STATE -#define _GLFW_PLATFORM_CURSOR_STATE -#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE -#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE -#define _GLFW_EGL_CONTEXT_STATE -#define _GLFW_EGL_LIBRARY_CONTEXT_STATE +#define _GLFW_PLATFORM_CONTEXT_STATE struct { int dummyContext; } +#define _GLFW_PLATFORM_MONITOR_STATE struct { int dummyMonitor; } +#define _GLFW_PLATFORM_CURSOR_STATE struct { int dummyCursor; } +#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE struct { int dummyLibraryWindow; } +#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE struct { int dummyLibraryContext; } +#define _GLFW_EGL_CONTEXT_STATE struct { int dummyEGLContext; } +#define _GLFW_EGL_LIBRARY_CONTEXT_STATE struct { int dummyEGLLibraryContext; } #include "osmesa_context.h" #include "posix_time.h" diff --git a/external/GLFW/src/null_window.c b/external/glfw-3.3.4/src/null_window.c similarity index 88% rename from external/GLFW/src/null_window.c rename to external/glfw-3.3.4/src/null_window.c index 33ff6c3..045c76a 100644 --- a/external/GLFW/src/null_window.c +++ b/external/glfw-3.3.4/src/null_window.c @@ -2,7 +2,7 @@ // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" @@ -139,6 +141,15 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, { } +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = 1.f; + if (yscale) + *yscale = 1.f; +} + void _glfwPlatformIconifyWindow(_GLFWwindow* window) { } @@ -156,6 +167,11 @@ int _glfwPlatformWindowMaximized(_GLFWwindow* window) return GLFW_FALSE; } +int _glfwPlatformWindowHovered(_GLFWwindow* window) +{ + return GLFW_FALSE; +} + int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) { return GLFW_FALSE; @@ -173,6 +189,24 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) { } +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window) +{ + return 1.f; +} + +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity) +{ +} + +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled) +{ +} + +GLFWbool _glfwPlatformRawMouseMotionSupported(void) +{ + return GLFW_FALSE; +} + void _glfwPlatformShowWindow(_GLFWwindow* window) { } @@ -257,11 +291,11 @@ void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) { } -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) +void _glfwPlatformSetClipboardString(const char* string) { } -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) +const char* _glfwPlatformGetClipboardString(void) { return NULL; } diff --git a/external/GLFW/src/osmesa_context.c b/external/glfw-3.3.4/src/osmesa_context.c similarity index 96% rename from external/GLFW/src/osmesa_context.c rename to external/glfw-3.3.4/src/osmesa_context.c index a7de33f..c2fa49d 100644 --- a/external/GLFW/src/osmesa_context.c +++ b/external/glfw-3.3.4/src/osmesa_context.c @@ -2,7 +2,7 @@ // GLFW 3.3 OSMesa - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include #include @@ -47,7 +49,7 @@ static void makeContextCurrentOSMesa(_GLFWwindow* window) free(window->context.osmesa.buffer); // Allocate the new buffer (width * height * 8-bit RGBA) - window->context.osmesa.buffer = calloc(4, width * height); + window->context.osmesa.buffer = calloc(4, (size_t) width * height); window->context.osmesa.width = width; window->context.osmesa.height = height; } @@ -188,7 +190,7 @@ void _glfwTerminateOSMesa(void) #define setAttrib(a, v) \ { \ - assert((size_t) (index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ attribs[index++] = a; \ attribs[index++] = v; \ } @@ -240,7 +242,7 @@ GLFWbool _glfwCreateContextOSMesa(_GLFWwindow* window, if (ctxconfig->forward) { _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "OSMesa: Foward-compatible contexts not supported"); + "OSMesa: Forward-compatible contexts not supported"); return GLFW_FALSE; } diff --git a/external/GLFW/src/osmesa_context.h b/external/glfw-3.3.4/src/osmesa_context.h similarity index 97% rename from external/GLFW/src/osmesa_context.h rename to external/glfw-3.3.4/src/osmesa_context.h index e6ae578..2413188 100644 --- a/external/GLFW/src/osmesa_context.h +++ b/external/glfw-3.3.4/src/osmesa_context.h @@ -2,7 +2,7 @@ // GLFW 3.3 OSMesa - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2016 Google Inc. -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2016-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -37,7 +37,7 @@ #define OSMESA_CONTEXT_MINOR_VERSION 0x37 typedef void* OSMesaContext; -typedef void (*OSMESAproc)(); +typedef void (*OSMESAproc)(void); typedef OSMesaContext (GLAPIENTRY * PFN_OSMesaCreateContextExt)(GLenum,GLint,GLint,GLint,OSMesaContext); typedef OSMesaContext (GLAPIENTRY * PFN_OSMesaCreateContextAttribs)(const int*,OSMesaContext); diff --git a/external/GLFW/src/posix_thread.c b/external/glfw-3.3.4/src/posix_thread.c similarity index 93% rename from external/GLFW/src/posix_thread.c rename to external/glfw-3.3.4/src/posix_thread.c index ce0bc39..f1697dc 100644 --- a/external/GLFW/src/posix_thread.c +++ b/external/glfw-3.3.4/src/posix_thread.c @@ -2,7 +2,7 @@ // GLFW 3.3 POSIX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/posix_thread.h b/external/glfw-3.3.4/src/posix_thread.h similarity index 96% rename from external/GLFW/src/posix_thread.h rename to external/glfw-3.3.4/src/posix_thread.h index bdddf41..24452ba 100644 --- a/external/GLFW/src/posix_thread.h +++ b/external/glfw-3.3.4/src/posix_thread.h @@ -2,7 +2,7 @@ // GLFW 3.3 POSIX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages diff --git a/external/GLFW/src/posix_time.c b/external/glfw-3.3.4/src/posix_time.c similarity index 92% rename from external/GLFW/src/posix_time.c rename to external/glfw-3.3.4/src/posix_time.c index 00b2831..040c8f1 100644 --- a/external/GLFW/src/posix_time.c +++ b/external/glfw-3.3.4/src/posix_time.c @@ -2,7 +2,7 @@ // GLFW 3.3 POSIX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/posix_time.h b/external/glfw-3.3.4/src/posix_time.h similarity index 95% rename from external/GLFW/src/posix_time.h rename to external/glfw-3.3.4/src/posix_time.h index f1a69eb..08cf4fc 100644 --- a/external/GLFW/src/posix_time.h +++ b/external/glfw-3.3.4/src/posix_time.h @@ -2,7 +2,7 @@ // GLFW 3.3 POSIX - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages diff --git a/external/glfw-3.3.4/src/vulkan.c b/external/glfw-3.3.4/src/vulkan.c new file mode 100644 index 0000000..22c54e4 --- /dev/null +++ b/external/glfw-3.3.4/src/vulkan.c @@ -0,0 +1,332 @@ +//======================================================================== +// GLFW 3.3 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// 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. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#define _GLFW_FIND_LOADER 1 +#define _GLFW_REQUIRE_LOADER 2 + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitVulkan(int mode) +{ + VkResult err; + VkExtensionProperties* ep; + uint32_t i, count; + + if (_glfw.vk.available) + return GLFW_TRUE; + +#if !defined(_GLFW_VULKAN_STATIC) +#if defined(_GLFW_VULKAN_LIBRARY) + _glfw.vk.handle = _glfw_dlopen(_GLFW_VULKAN_LIBRARY); +#elif defined(_GLFW_WIN32) + _glfw.vk.handle = _glfw_dlopen("vulkan-1.dll"); +#elif defined(_GLFW_COCOA) + _glfw.vk.handle = _glfw_dlopen("libvulkan.1.dylib"); + if (!_glfw.vk.handle) + _glfw.vk.handle = _glfwLoadLocalVulkanLoaderNS(); +#else + _glfw.vk.handle = _glfw_dlopen("libvulkan.so.1"); +#endif + if (!_glfw.vk.handle) + { + if (mode == _GLFW_REQUIRE_LOADER) + _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Loader not found"); + + return GLFW_FALSE; + } + + _glfw.vk.GetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) + _glfw_dlsym(_glfw.vk.handle, "vkGetInstanceProcAddr"); + if (!_glfw.vk.GetInstanceProcAddr) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Loader does not export vkGetInstanceProcAddr"); + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + _glfw.vk.EnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties) + vkGetInstanceProcAddr(NULL, "vkEnumerateInstanceExtensionProperties"); + if (!_glfw.vk.EnumerateInstanceExtensionProperties) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to retrieve vkEnumerateInstanceExtensionProperties"); + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } +#endif // _GLFW_VULKAN_STATIC + + err = vkEnumerateInstanceExtensionProperties(NULL, &count, NULL); + if (err) + { + // NOTE: This happens on systems with a loader but without any Vulkan ICD + if (mode == _GLFW_REQUIRE_LOADER) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to query instance extension count: %s", + _glfwGetVulkanResultString(err)); + } + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + ep = calloc(count, sizeof(VkExtensionProperties)); + + err = vkEnumerateInstanceExtensionProperties(NULL, &count, ep); + if (err) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to query instance extensions: %s", + _glfwGetVulkanResultString(err)); + + free(ep); + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + for (i = 0; i < count; i++) + { + if (strcmp(ep[i].extensionName, "VK_KHR_surface") == 0) + _glfw.vk.KHR_surface = GLFW_TRUE; +#if defined(_GLFW_WIN32) + else if (strcmp(ep[i].extensionName, "VK_KHR_win32_surface") == 0) + _glfw.vk.KHR_win32_surface = GLFW_TRUE; +#elif defined(_GLFW_COCOA) + else if (strcmp(ep[i].extensionName, "VK_MVK_macos_surface") == 0) + _glfw.vk.MVK_macos_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_EXT_metal_surface") == 0) + _glfw.vk.EXT_metal_surface = GLFW_TRUE; +#elif defined(_GLFW_X11) + else if (strcmp(ep[i].extensionName, "VK_KHR_xlib_surface") == 0) + _glfw.vk.KHR_xlib_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_KHR_xcb_surface") == 0) + _glfw.vk.KHR_xcb_surface = GLFW_TRUE; +#elif defined(_GLFW_WAYLAND) + else if (strcmp(ep[i].extensionName, "VK_KHR_wayland_surface") == 0) + _glfw.vk.KHR_wayland_surface = GLFW_TRUE; +#endif + } + + free(ep); + + _glfw.vk.available = GLFW_TRUE; + + _glfwPlatformGetRequiredInstanceExtensions(_glfw.vk.extensions); + + return GLFW_TRUE; +} + +void _glfwTerminateVulkan(void) +{ +#if !defined(_GLFW_VULKAN_STATIC) + if (_glfw.vk.handle) + _glfw_dlclose(_glfw.vk.handle); +#endif +} + +const char* _glfwGetVulkanResultString(VkResult result) +{ + switch (result) + { + case VK_SUCCESS: + return "Success"; + case VK_NOT_READY: + return "A fence or query has not yet completed"; + case VK_TIMEOUT: + return "A wait operation has not completed in the specified time"; + case VK_EVENT_SET: + return "An event is signaled"; + case VK_EVENT_RESET: + return "An event is unsignaled"; + case VK_INCOMPLETE: + return "A return array was too small for the result"; + case VK_ERROR_OUT_OF_HOST_MEMORY: + return "A host memory allocation has failed"; + case VK_ERROR_OUT_OF_DEVICE_MEMORY: + return "A device memory allocation has failed"; + case VK_ERROR_INITIALIZATION_FAILED: + return "Initialization of an object could not be completed for implementation-specific reasons"; + case VK_ERROR_DEVICE_LOST: + return "The logical or physical device has been lost"; + case VK_ERROR_MEMORY_MAP_FAILED: + return "Mapping of a memory object has failed"; + case VK_ERROR_LAYER_NOT_PRESENT: + return "A requested layer is not present or could not be loaded"; + case VK_ERROR_EXTENSION_NOT_PRESENT: + return "A requested extension is not supported"; + case VK_ERROR_FEATURE_NOT_PRESENT: + return "A requested feature is not supported"; + case VK_ERROR_INCOMPATIBLE_DRIVER: + return "The requested version of Vulkan is not supported by the driver or is otherwise incompatible"; + case VK_ERROR_TOO_MANY_OBJECTS: + return "Too many objects of the type have already been created"; + case VK_ERROR_FORMAT_NOT_SUPPORTED: + return "A requested format is not supported on this device"; + case VK_ERROR_SURFACE_LOST_KHR: + return "A surface is no longer available"; + case VK_SUBOPTIMAL_KHR: + return "A swapchain no longer matches the surface properties exactly, but can still be used"; + case VK_ERROR_OUT_OF_DATE_KHR: + return "A surface has changed in such a way that it is no longer compatible with the swapchain"; + case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: + return "The display used by a swapchain does not use the same presentable image layout"; + case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: + return "The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API"; + case VK_ERROR_VALIDATION_FAILED_EXT: + return "A validation layer found an error"; + default: + return "ERROR: UNKNOWN VULKAN ERROR"; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwVulkanSupported(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + return _glfwInitVulkan(_GLFW_FIND_LOADER); +} + +GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count) +{ + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return NULL; + + if (!_glfw.vk.extensions[0]) + return NULL; + + *count = 2; + return (const char**) _glfw.vk.extensions; +} + +GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, + const char* procname) +{ + GLFWvkproc proc; + assert(procname != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return NULL; + + proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname); +#if defined(_GLFW_VULKAN_STATIC) + if (!proc) + { + if (strcmp(procname, "vkGetInstanceProcAddr") == 0) + return (GLFWvkproc) vkGetInstanceProcAddr; + } +#else + if (!proc) + proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname); +#endif + + return proc; +} + +GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + assert(instance != VK_NULL_HANDLE); + assert(device != VK_NULL_HANDLE); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return GLFW_FALSE; + + if (!_glfw.vk.extensions[0]) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Window surface creation extensions not found"); + return GLFW_FALSE; + } + + return _glfwPlatformGetPhysicalDevicePresentationSupport(instance, + device, + queuefamily); +} + +GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, + GLFWwindow* handle, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(instance != VK_NULL_HANDLE); + assert(window != NULL); + assert(surface != NULL); + + *surface = VK_NULL_HANDLE; + + _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return VK_ERROR_INITIALIZATION_FAILED; + + if (!_glfw.vk.extensions[0]) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Window surface creation extensions not found"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + if (window->context.client != GLFW_NO_API) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Vulkan: Window surface creation requires the window to have the client API set to GLFW_NO_API"); + return VK_ERROR_NATIVE_WINDOW_IN_USE_KHR; + } + + return _glfwPlatformCreateWindowSurface(instance, window, allocator, surface); +} + diff --git a/external/glfw-3.3.4/src/wgl_context.c b/external/glfw-3.3.4/src/wgl_context.c new file mode 100644 index 0000000..b7d1c4d --- /dev/null +++ b/external/glfw-3.3.4/src/wgl_context.c @@ -0,0 +1,796 @@ +//======================================================================== +// GLFW 3.3 WGL - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +// Return the value corresponding to the specified attribute +// +static int findPixelFormatAttribValue(const int* attribs, + int attribCount, + const int* values, + int attrib) +{ + int i; + + for (i = 0; i < attribCount; i++) + { + if (attribs[i] == attrib) + return values[i]; + } + + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Unknown pixel format attribute requested"); + return 0; +} + +#define addAttrib(a) \ +{ \ + assert((size_t) attribCount < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[attribCount++] = a; \ +} +#define findAttribValue(a) \ + findPixelFormatAttribValue(attribs, attribCount, values, a) + +// Return a list of available and usable framebuffer configs +// +static int choosePixelFormat(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + _GLFWfbconfig* usableConfigs; + const _GLFWfbconfig* closest; + int i, pixelFormat, nativeCount, usableCount = 0, attribCount = 0; + int attribs[40]; + int values[sizeof(attribs) / sizeof(attribs[0])]; + + if (_glfw.wgl.ARB_pixel_format) + { + const int attrib = WGL_NUMBER_PIXEL_FORMATS_ARB; + + if (!wglGetPixelFormatAttribivARB(window->context.wgl.dc, + 1, 0, 1, &attrib, &nativeCount)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve pixel format attribute"); + return 0; + } + + addAttrib(WGL_SUPPORT_OPENGL_ARB); + addAttrib(WGL_DRAW_TO_WINDOW_ARB); + addAttrib(WGL_PIXEL_TYPE_ARB); + addAttrib(WGL_ACCELERATION_ARB); + addAttrib(WGL_RED_BITS_ARB); + addAttrib(WGL_RED_SHIFT_ARB); + addAttrib(WGL_GREEN_BITS_ARB); + addAttrib(WGL_GREEN_SHIFT_ARB); + addAttrib(WGL_BLUE_BITS_ARB); + addAttrib(WGL_BLUE_SHIFT_ARB); + addAttrib(WGL_ALPHA_BITS_ARB); + addAttrib(WGL_ALPHA_SHIFT_ARB); + addAttrib(WGL_DEPTH_BITS_ARB); + addAttrib(WGL_STENCIL_BITS_ARB); + addAttrib(WGL_ACCUM_BITS_ARB); + addAttrib(WGL_ACCUM_RED_BITS_ARB); + addAttrib(WGL_ACCUM_GREEN_BITS_ARB); + addAttrib(WGL_ACCUM_BLUE_BITS_ARB); + addAttrib(WGL_ACCUM_ALPHA_BITS_ARB); + addAttrib(WGL_AUX_BUFFERS_ARB); + addAttrib(WGL_STEREO_ARB); + addAttrib(WGL_DOUBLE_BUFFER_ARB); + + if (_glfw.wgl.ARB_multisample) + addAttrib(WGL_SAMPLES_ARB); + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (_glfw.wgl.ARB_framebuffer_sRGB || _glfw.wgl.EXT_framebuffer_sRGB) + addAttrib(WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB); + } + else + { + if (_glfw.wgl.EXT_colorspace) + addAttrib(WGL_COLORSPACE_EXT); + } + } + else + { + nativeCount = DescribePixelFormat(window->context.wgl.dc, + 1, + sizeof(PIXELFORMATDESCRIPTOR), + NULL); + } + + usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); + + for (i = 0; i < nativeCount; i++) + { + _GLFWfbconfig* u = usableConfigs + usableCount; + pixelFormat = i + 1; + + if (_glfw.wgl.ARB_pixel_format) + { + // Get pixel format attributes through "modern" extension + + if (!wglGetPixelFormatAttribivARB(window->context.wgl.dc, + pixelFormat, 0, + attribCount, + attribs, values)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve pixel format attributes"); + + free(usableConfigs); + return 0; + } + + if (!findAttribValue(WGL_SUPPORT_OPENGL_ARB) || + !findAttribValue(WGL_DRAW_TO_WINDOW_ARB)) + { + continue; + } + + if (findAttribValue(WGL_PIXEL_TYPE_ARB) != WGL_TYPE_RGBA_ARB) + continue; + + if (findAttribValue(WGL_ACCELERATION_ARB) == WGL_NO_ACCELERATION_ARB) + continue; + + u->redBits = findAttribValue(WGL_RED_BITS_ARB); + u->greenBits = findAttribValue(WGL_GREEN_BITS_ARB); + u->blueBits = findAttribValue(WGL_BLUE_BITS_ARB); + u->alphaBits = findAttribValue(WGL_ALPHA_BITS_ARB); + + u->depthBits = findAttribValue(WGL_DEPTH_BITS_ARB); + u->stencilBits = findAttribValue(WGL_STENCIL_BITS_ARB); + + u->accumRedBits = findAttribValue(WGL_ACCUM_RED_BITS_ARB); + u->accumGreenBits = findAttribValue(WGL_ACCUM_GREEN_BITS_ARB); + u->accumBlueBits = findAttribValue(WGL_ACCUM_BLUE_BITS_ARB); + u->accumAlphaBits = findAttribValue(WGL_ACCUM_ALPHA_BITS_ARB); + + u->auxBuffers = findAttribValue(WGL_AUX_BUFFERS_ARB); + + if (findAttribValue(WGL_STEREO_ARB)) + u->stereo = GLFW_TRUE; + if (findAttribValue(WGL_DOUBLE_BUFFER_ARB)) + u->doublebuffer = GLFW_TRUE; + + if (_glfw.wgl.ARB_multisample) + u->samples = findAttribValue(WGL_SAMPLES_ARB); + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (_glfw.wgl.ARB_framebuffer_sRGB || + _glfw.wgl.EXT_framebuffer_sRGB) + { + if (findAttribValue(WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB)) + u->sRGB = GLFW_TRUE; + } + } + else + { + if (_glfw.wgl.EXT_colorspace) + { + if (findAttribValue(WGL_COLORSPACE_EXT) == WGL_COLORSPACE_SRGB_EXT) + u->sRGB = GLFW_TRUE; + } + } + } + else + { + // Get pixel format attributes through legacy PFDs + + PIXELFORMATDESCRIPTOR pfd; + + if (!DescribePixelFormat(window->context.wgl.dc, + pixelFormat, + sizeof(PIXELFORMATDESCRIPTOR), + &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to describe pixel format"); + + free(usableConfigs); + return 0; + } + + if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || + !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) + { + continue; + } + + if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && + (pfd.dwFlags & PFD_GENERIC_FORMAT)) + { + continue; + } + + if (pfd.iPixelType != PFD_TYPE_RGBA) + continue; + + u->redBits = pfd.cRedBits; + u->greenBits = pfd.cGreenBits; + u->blueBits = pfd.cBlueBits; + u->alphaBits = pfd.cAlphaBits; + + u->depthBits = pfd.cDepthBits; + u->stencilBits = pfd.cStencilBits; + + u->accumRedBits = pfd.cAccumRedBits; + u->accumGreenBits = pfd.cAccumGreenBits; + u->accumBlueBits = pfd.cAccumBlueBits; + u->accumAlphaBits = pfd.cAccumAlphaBits; + + u->auxBuffers = pfd.cAuxBuffers; + + if (pfd.dwFlags & PFD_STEREO) + u->stereo = GLFW_TRUE; + if (pfd.dwFlags & PFD_DOUBLEBUFFER) + u->doublebuffer = GLFW_TRUE; + } + + u->handle = pixelFormat; + usableCount++; + } + + if (!usableCount) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "WGL: The driver does not appear to support OpenGL"); + + free(usableConfigs); + return 0; + } + + closest = _glfwChooseFBConfig(fbconfig, usableConfigs, usableCount); + if (!closest) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "WGL: Failed to find a suitable pixel format"); + + free(usableConfigs); + return 0; + } + + pixelFormat = (int) closest->handle; + free(usableConfigs); + + return pixelFormat; +} + +#undef addAttrib +#undef findAttribValue + +static void makeContextCurrentWGL(_GLFWwindow* window) +{ + if (window) + { + if (wglMakeCurrent(window->context.wgl.dc, window->context.wgl.handle)) + _glfwPlatformSetTls(&_glfw.contextSlot, window); + else + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to make context current"); + _glfwPlatformSetTls(&_glfw.contextSlot, NULL); + } + } + else + { + if (!wglMakeCurrent(NULL, NULL)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to clear current context"); + } + + _glfwPlatformSetTls(&_glfw.contextSlot, NULL); + } +} + +static void swapBuffersWGL(_GLFWwindow* window) +{ + if (!window->monitor) + { + if (IsWindowsVistaOrGreater()) + { + // DWM Composition is always enabled on Win8+ + BOOL enabled = IsWindows8OrGreater(); + + // HACK: Use DwmFlush when desktop composition is enabled + if (enabled || + (SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled)) + { + int count = abs(window->context.wgl.interval); + while (count--) + DwmFlush(); + } + } + } + + SwapBuffers(window->context.wgl.dc); +} + +static void swapIntervalWGL(int interval) +{ + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + + window->context.wgl.interval = interval; + + if (!window->monitor) + { + if (IsWindowsVistaOrGreater()) + { + // DWM Composition is always enabled on Win8+ + BOOL enabled = IsWindows8OrGreater(); + + // HACK: Disable WGL swap interval when desktop composition is enabled to + // avoid interfering with DWM vsync + if (enabled || + (SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled)) + interval = 0; + } + } + + if (_glfw.wgl.EXT_swap_control) + wglSwapIntervalEXT(interval); +} + +static int extensionSupportedWGL(const char* extension) +{ + const char* extensions = NULL; + + if (_glfw.wgl.GetExtensionsStringARB) + extensions = wglGetExtensionsStringARB(wglGetCurrentDC()); + else if (_glfw.wgl.GetExtensionsStringEXT) + extensions = wglGetExtensionsStringEXT(); + + if (!extensions) + return GLFW_FALSE; + + return _glfwStringInExtensionString(extension, extensions); +} + +static GLFWglproc getProcAddressWGL(const char* procname) +{ + const GLFWglproc proc = (GLFWglproc) wglGetProcAddress(procname); + if (proc) + return proc; + + return (GLFWglproc) GetProcAddress(_glfw.wgl.instance, procname); +} + +static void destroyContextWGL(_GLFWwindow* window) +{ + if (window->context.wgl.handle) + { + wglDeleteContext(window->context.wgl.handle); + window->context.wgl.handle = NULL; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Initialize WGL +// +GLFWbool _glfwInitWGL(void) +{ + PIXELFORMATDESCRIPTOR pfd; + HGLRC prc, rc; + HDC pdc, dc; + + if (_glfw.wgl.instance) + return GLFW_TRUE; + + _glfw.wgl.instance = LoadLibraryA("opengl32.dll"); + if (!_glfw.wgl.instance) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to load opengl32.dll"); + return GLFW_FALSE; + } + + _glfw.wgl.CreateContext = (PFN_wglCreateContext) + GetProcAddress(_glfw.wgl.instance, "wglCreateContext"); + _glfw.wgl.DeleteContext = (PFN_wglDeleteContext) + GetProcAddress(_glfw.wgl.instance, "wglDeleteContext"); + _glfw.wgl.GetProcAddress = (PFN_wglGetProcAddress) + GetProcAddress(_glfw.wgl.instance, "wglGetProcAddress"); + _glfw.wgl.GetCurrentDC = (PFN_wglGetCurrentDC) + GetProcAddress(_glfw.wgl.instance, "wglGetCurrentDC"); + _glfw.wgl.GetCurrentContext = (PFN_wglGetCurrentContext) + GetProcAddress(_glfw.wgl.instance, "wglGetCurrentContext"); + _glfw.wgl.MakeCurrent = (PFN_wglMakeCurrent) + GetProcAddress(_glfw.wgl.instance, "wglMakeCurrent"); + _glfw.wgl.ShareLists = (PFN_wglShareLists) + GetProcAddress(_glfw.wgl.instance, "wglShareLists"); + + // NOTE: A dummy context has to be created for opengl32.dll to load the + // OpenGL ICD, from which we can then query WGL extensions + // NOTE: This code will accept the Microsoft GDI ICD; accelerated context + // creation failure occurs during manual pixel format enumeration + + dc = GetDC(_glfw.win32.helperWindowHandle); + + ZeroMemory(&pfd, sizeof(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.cColorBits = 24; + + if (!SetPixelFormat(dc, ChoosePixelFormat(dc, &pfd), &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to set pixel format for dummy context"); + return GLFW_FALSE; + } + + rc = wglCreateContext(dc); + if (!rc) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to create dummy context"); + return GLFW_FALSE; + } + + pdc = wglGetCurrentDC(); + prc = wglGetCurrentContext(); + + if (!wglMakeCurrent(dc, rc)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to make dummy context current"); + wglMakeCurrent(pdc, prc); + wglDeleteContext(rc); + return GLFW_FALSE; + } + + // NOTE: Functions must be loaded first as they're needed to retrieve the + // extension string that tells us whether the functions are supported + _glfw.wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) + wglGetProcAddress("wglGetExtensionsStringEXT"); + _glfw.wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) + wglGetProcAddress("wglGetExtensionsStringARB"); + _glfw.wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) + wglGetProcAddress("wglCreateContextAttribsARB"); + _glfw.wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) + wglGetProcAddress("wglSwapIntervalEXT"); + _glfw.wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) + wglGetProcAddress("wglGetPixelFormatAttribivARB"); + + // NOTE: WGL_ARB_extensions_string and WGL_EXT_extensions_string are not + // checked below as we are already using them + _glfw.wgl.ARB_multisample = + extensionSupportedWGL("WGL_ARB_multisample"); + _glfw.wgl.ARB_framebuffer_sRGB = + extensionSupportedWGL("WGL_ARB_framebuffer_sRGB"); + _glfw.wgl.EXT_framebuffer_sRGB = + extensionSupportedWGL("WGL_EXT_framebuffer_sRGB"); + _glfw.wgl.ARB_create_context = + extensionSupportedWGL("WGL_ARB_create_context"); + _glfw.wgl.ARB_create_context_profile = + extensionSupportedWGL("WGL_ARB_create_context_profile"); + _glfw.wgl.EXT_create_context_es2_profile = + extensionSupportedWGL("WGL_EXT_create_context_es2_profile"); + _glfw.wgl.ARB_create_context_robustness = + extensionSupportedWGL("WGL_ARB_create_context_robustness"); + _glfw.wgl.ARB_create_context_no_error = + extensionSupportedWGL("WGL_ARB_create_context_no_error"); + _glfw.wgl.EXT_swap_control = + extensionSupportedWGL("WGL_EXT_swap_control"); + _glfw.wgl.EXT_colorspace = + extensionSupportedWGL("WGL_EXT_colorspace"); + _glfw.wgl.ARB_pixel_format = + extensionSupportedWGL("WGL_ARB_pixel_format"); + _glfw.wgl.ARB_context_flush_control = + extensionSupportedWGL("WGL_ARB_context_flush_control"); + + wglMakeCurrent(pdc, prc); + wglDeleteContext(rc); + return GLFW_TRUE; +} + +// Terminate WGL +// +void _glfwTerminateWGL(void) +{ + if (_glfw.wgl.instance) + FreeLibrary(_glfw.wgl.instance); +} + +#define setAttrib(a, v) \ +{ \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ + attribs[index++] = v; \ +} + +// Create the OpenGL or OpenGL ES context +// +GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + int attribs[40]; + int pixelFormat; + PIXELFORMATDESCRIPTOR pfd; + HGLRC share = NULL; + + if (ctxconfig->share) + share = ctxconfig->share->context.wgl.handle; + + window->context.wgl.dc = GetDC(window->win32.handle); + if (!window->context.wgl.dc) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve DC for window"); + return GLFW_FALSE; + } + + pixelFormat = choosePixelFormat(window, ctxconfig, fbconfig); + if (!pixelFormat) + return GLFW_FALSE; + + if (!DescribePixelFormat(window->context.wgl.dc, + pixelFormat, sizeof(pfd), &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve PFD for selected pixel format"); + return GLFW_FALSE; + } + + if (!SetPixelFormat(window->context.wgl.dc, pixelFormat, &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to set selected pixel format"); + return GLFW_FALSE; + } + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + { + if (!_glfw.wgl.ARB_create_context) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable"); + return GLFW_FALSE; + } + } + + if (ctxconfig->profile) + { + if (!_glfw.wgl.ARB_create_context_profile) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable"); + return GLFW_FALSE; + } + } + } + else + { + if (!_glfw.wgl.ARB_create_context || + !_glfw.wgl.ARB_create_context_profile || + !_glfw.wgl.EXT_create_context_es2_profile) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable"); + return GLFW_FALSE; + } + } + + if (_glfw.wgl.ARB_create_context) + { + int index = 0, mask = 0, flags = 0; + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + flags |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; + + if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) + mask |= WGL_CONTEXT_CORE_PROFILE_BIT_ARB; + else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) + mask |= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; + } + else + mask |= WGL_CONTEXT_ES2_PROFILE_BIT_EXT; + + if (ctxconfig->debug) + flags |= WGL_CONTEXT_DEBUG_BIT_ARB; + + if (ctxconfig->robustness) + { + if (_glfw.wgl.ARB_create_context_robustness) + { + if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) + { + setAttrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + WGL_NO_RESET_NOTIFICATION_ARB); + } + else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) + { + setAttrib(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + WGL_LOSE_CONTEXT_ON_RESET_ARB); + } + + flags |= WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB; + } + } + + if (ctxconfig->release) + { + if (_glfw.wgl.ARB_context_flush_control) + { + if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) + { + setAttrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, + WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); + } + else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) + { + setAttrib(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, + WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); + } + } + } + + if (ctxconfig->noerror) + { + if (_glfw.wgl.ARB_create_context_no_error) + setAttrib(WGL_CONTEXT_OPENGL_NO_ERROR_ARB, GLFW_TRUE); + } + + // NOTE: Only request an explicitly versioned context when necessary, as + // explicitly requesting version 1.0 does not always return the + // highest version supported by the driver + if (ctxconfig->major != 1 || ctxconfig->minor != 0) + { + setAttrib(WGL_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); + setAttrib(WGL_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); + } + + if (flags) + setAttrib(WGL_CONTEXT_FLAGS_ARB, flags); + + if (mask) + setAttrib(WGL_CONTEXT_PROFILE_MASK_ARB, mask); + + setAttrib(0, 0); + + window->context.wgl.handle = + wglCreateContextAttribsARB(window->context.wgl.dc, share, attribs); + if (!window->context.wgl.handle) + { + const DWORD error = GetLastError(); + + if (error == (0xc0070000 | ERROR_INVALID_VERSION_ARB)) + { + if (ctxconfig->client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support OpenGL version %i.%i", + ctxconfig->major, + ctxconfig->minor); + } + else + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support OpenGL ES version %i.%i", + ctxconfig->major, + ctxconfig->minor); + } + } + else if (error == (0xc0070000 | ERROR_INVALID_PROFILE_ARB)) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support the requested OpenGL profile"); + } + else if (error == (0xc0070000 | ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB)) + { + _glfwInputError(GLFW_INVALID_VALUE, + "WGL: The share context is not compatible with the requested context"); + } + else + { + if (ctxconfig->client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL context"); + } + else + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL ES context"); + } + } + + return GLFW_FALSE; + } + } + else + { + window->context.wgl.handle = wglCreateContext(window->context.wgl.dc); + if (!window->context.wgl.handle) + { + _glfwInputErrorWin32(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL context"); + return GLFW_FALSE; + } + + if (share) + { + if (!wglShareLists(share, window->context.wgl.handle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to enable sharing with specified OpenGL context"); + return GLFW_FALSE; + } + } + } + + window->context.makeCurrent = makeContextCurrentWGL; + window->context.swapBuffers = swapBuffersWGL; + window->context.swapInterval = swapIntervalWGL; + window->context.extensionSupported = extensionSupportedWGL; + window->context.getProcAddress = getProcAddressWGL; + window->context.destroy = destroyContextWGL; + + return GLFW_TRUE; +} + +#undef setAttrib + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (window->context.client == GLFW_NO_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return NULL; + } + + return window->context.wgl.handle; +} + diff --git a/external/GLFW/src/wgl_context.h b/external/glfw-3.3.4/src/wgl_context.h similarity index 91% rename from external/GLFW/src/wgl_context.h rename to external/glfw-3.3.4/src/wgl_context.h index 9fae911..1603f15 100644 --- a/external/GLFW/src/wgl_context.h +++ b/external/glfw-3.3.4/src/wgl_context.h @@ -2,7 +2,7 @@ // GLFW 3.3 WGL - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2018 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -76,31 +76,34 @@ #define ERROR_INVALID_PROFILE_ARB 0x2096 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 +// WGL extension pointer typedefs typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC)(int); typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC,int,int,UINT,const int*,int*); typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void); typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC); typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC,HGLRC,const int*); +#define wglSwapIntervalEXT _glfw.wgl.SwapIntervalEXT +#define wglGetPixelFormatAttribivARB _glfw.wgl.GetPixelFormatAttribivARB +#define wglGetExtensionsStringEXT _glfw.wgl.GetExtensionsStringEXT +#define wglGetExtensionsStringARB _glfw.wgl.GetExtensionsStringARB +#define wglCreateContextAttribsARB _glfw.wgl.CreateContextAttribsARB +// opengl32.dll function pointer typedefs typedef HGLRC (WINAPI * PFN_wglCreateContext)(HDC); typedef BOOL (WINAPI * PFN_wglDeleteContext)(HGLRC); typedef PROC (WINAPI * PFN_wglGetProcAddress)(LPCSTR); typedef HDC (WINAPI * PFN_wglGetCurrentDC)(void); +typedef HGLRC (WINAPI * PFN_wglGetCurrentContext)(void); typedef BOOL (WINAPI * PFN_wglMakeCurrent)(HDC,HGLRC); typedef BOOL (WINAPI * PFN_wglShareLists)(HGLRC,HGLRC); - -// opengl32.dll function pointer typedefs #define wglCreateContext _glfw.wgl.CreateContext #define wglDeleteContext _glfw.wgl.DeleteContext #define wglGetProcAddress _glfw.wgl.GetProcAddress #define wglGetCurrentDC _glfw.wgl.GetCurrentDC +#define wglGetCurrentContext _glfw.wgl.GetCurrentContext #define wglMakeCurrent _glfw.wgl.MakeCurrent #define wglShareLists _glfw.wgl.ShareLists -#define _GLFW_RECREATION_NOT_NEEDED 0 -#define _GLFW_RECREATION_REQUIRED 1 -#define _GLFW_RECREATION_IMPOSSIBLE 2 - #define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextWGL wgl #define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryWGL wgl @@ -124,11 +127,10 @@ typedef struct _GLFWlibraryWGL PFN_wglDeleteContext DeleteContext; PFN_wglGetProcAddress GetProcAddress; PFN_wglGetCurrentDC GetCurrentDC; + PFN_wglGetCurrentContext GetCurrentContext; PFN_wglMakeCurrent MakeCurrent; PFN_wglShareLists ShareLists; - GLFWbool extensionsLoaded; - PFNWGLSWAPINTERVALEXTPROC SwapIntervalEXT; PFNWGLGETPIXELFORMATATTRIBIVARBPROC GetPixelFormatAttribivARB; PFNWGLGETEXTENSIONSSTRINGEXTPROC GetExtensionsStringEXT; diff --git a/external/GLFW/src/win32_init.c b/external/glfw-3.3.4/src/win32_init.c similarity index 81% rename from external/GLFW/src/win32_init.c rename to external/glfw-3.3.4/src/win32_init.c index 0531ff1..22c1ba7 100644 --- a/external/GLFW/src/win32_init.c +++ b/external/glfw-3.3.4/src/win32_init.c @@ -2,7 +2,7 @@ // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -37,6 +39,10 @@ static const GUID _glfw_GUID_DEVINTERFACE_HID = #if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) +#if defined(_GLFW_BUILD_DLL) + #warning "These symbols must be exported by the executable and have no effect in a DLL" +#endif + // Executables (but not DLLs) exporting this symbol with this value will be // automatically directed to the high-performance GPU on Nvidia Optimus systems // with up-to-date drivers @@ -62,17 +68,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) #endif // _GLFW_BUILD_DLL -// HACK: Define versionhelpers.h functions manually as MinGW lacks the header -BOOL IsWindowsVersionOrGreater(WORD major, WORD minor, WORD sp) -{ - OSVERSIONINFOEXW osvi = { sizeof(osvi), major, minor, 0, 0, {0}, sp }; - 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); -} - // Load necessary libraries (DLLs) // static GLFWbool loadLibraries(void) @@ -100,6 +95,14 @@ static GLFWbool loadLibraries(void) GetProcAddress(_glfw.win32.user32.instance, "SetProcessDPIAware"); _glfw.win32.user32.ChangeWindowMessageFilterEx_ = (PFN_ChangeWindowMessageFilterEx) GetProcAddress(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); + _glfw.win32.user32.EnableNonClientDpiScaling_ = (PFN_EnableNonClientDpiScaling) + GetProcAddress(_glfw.win32.user32.instance, "EnableNonClientDpiScaling"); + _glfw.win32.user32.SetProcessDpiAwarenessContext_ = (PFN_SetProcessDpiAwarenessContext) + GetProcAddress(_glfw.win32.user32.instance, "SetProcessDpiAwarenessContext"); + _glfw.win32.user32.GetDpiForWindow_ = (PFN_GetDpiForWindow) + GetProcAddress(_glfw.win32.user32.instance, "GetDpiForWindow"); + _glfw.win32.user32.AdjustWindowRectExForDpi_ = (PFN_AdjustWindowRectExForDpi) + GetProcAddress(_glfw.win32.user32.instance, "AdjustWindowRectExForDpi"); _glfw.win32.dinput8.instance = LoadLibraryA("dinput8.dll"); if (_glfw.win32.dinput8.instance) @@ -144,6 +147,8 @@ static GLFWbool loadLibraries(void) GetProcAddress(_glfw.win32.dwmapi.instance, "DwmFlush"); _glfw.win32.dwmapi.EnableBlurBehindWindow = (PFN_DwmEnableBlurBehindWindow) GetProcAddress(_glfw.win32.dwmapi.instance, "DwmEnableBlurBehindWindow"); + _glfw.win32.dwmapi.GetColorizationColor = (PFN_DwmGetColorizationColor) + GetProcAddress(_glfw.win32.dwmapi.instance, "DwmGetColorizationColor"); } _glfw.win32.shcore.instance = LoadLibraryA("shcore.dll"); @@ -151,6 +156,15 @@ static GLFWbool loadLibraries(void) { _glfw.win32.shcore.SetProcessDpiAwareness_ = (PFN_SetProcessDpiAwareness) GetProcAddress(_glfw.win32.shcore.instance, "SetProcessDpiAwareness"); + _glfw.win32.shcore.GetDpiForMonitor_ = (PFN_GetDpiForMonitor) + GetProcAddress(_glfw.win32.shcore.instance, "GetDpiForMonitor"); + } + + _glfw.win32.ntdll.instance = LoadLibraryA("ntdll.dll"); + if (_glfw.win32.ntdll.instance) + { + _glfw.win32.ntdll.RtlVerifyVersionInfo_ = (PFN_RtlVerifyVersionInfo) + GetProcAddress(_glfw.win32.ntdll.instance, "RtlVerifyVersionInfo"); } return GLFW_TRUE; @@ -177,6 +191,9 @@ static void freeLibraries(void) if (_glfw.win32.shcore.instance) FreeLibrary(_glfw.win32.shcore.instance); + + if (_glfw.win32.ntdll.instance) + FreeLibrary(_glfw.win32.ntdll.instance); } // Create key code translation tables @@ -307,6 +324,7 @@ static void createKeyTables(void) _glfw.win32.keycodes[0x053] = GLFW_KEY_KP_DECIMAL; _glfw.win32.keycodes[0x135] = GLFW_KEY_KP_DIVIDE; _glfw.win32.keycodes[0x11C] = GLFW_KEY_KP_ENTER; + _glfw.win32.keycodes[0x059] = GLFW_KEY_KP_EQUAL; _glfw.win32.keycodes[0x037] = GLFW_KEY_KP_MULTIPLY; _glfw.win32.keycodes[0x04A] = GLFW_KEY_KP_SUBTRACT; @@ -319,27 +337,30 @@ static void createKeyTables(void) // Creates a dummy window for behind-the-scenes work // -static HWND createHelperWindow(void) +static GLFWbool createHelperWindow(void) { MSG msg; - HWND window = CreateWindowExW(WS_EX_OVERLAPPEDWINDOW, - _GLFW_WNDCLASSNAME, - L"GLFW message window", - WS_CLIPSIBLINGS | WS_CLIPCHILDREN, - 0, 0, 1, 1, - NULL, NULL, - GetModuleHandleW(NULL), - NULL); - if (!window) + + _glfw.win32.helperWindowHandle = + CreateWindowExW(WS_EX_OVERLAPPEDWINDOW, + _GLFW_WNDCLASSNAME, + L"GLFW message window", + WS_CLIPSIBLINGS | WS_CLIPCHILDREN, + 0, 0, 1, 1, + NULL, NULL, + GetModuleHandleW(NULL), + NULL); + + if (!_glfw.win32.helperWindowHandle) { _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, "Win32: Failed to create helper window"); - return NULL; + return GLFW_FALSE; } - // HACK: The first call to ShowWindow is ignored if the parent process - // passed along a STARTUPINFO, so clear that flag with a no-op call - ShowWindow(window, SW_HIDE); + // HACK: The command to the first ShowWindow call is ignored if the parent + // process passed along a STARTUPINFO, so clear that with a no-op call + ShowWindow(_glfw.win32.helperWindowHandle, SW_HIDE); // Register for HID device notifications { @@ -349,9 +370,10 @@ static HWND createHelperWindow(void) dbi.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; dbi.dbcc_classguid = GUID_DEVINTERFACE_HID; - RegisterDeviceNotificationW(window, - (DEV_BROADCAST_HDR*) &dbi, - DEVICE_NOTIFY_WINDOW_HANDLE); + _glfw.win32.deviceNotificationHandle = + RegisterDeviceNotificationW(_glfw.win32.helperWindowHandle, + (DEV_BROADCAST_HDR*) &dbi, + DEVICE_NOTIFY_WINDOW_HANDLE); } while (PeekMessageW(&msg, _glfw.win32.helperWindowHandle, 0, 0, PM_REMOVE)) @@ -360,7 +382,7 @@ static HWND createHelperWindow(void) DispatchMessageW(&msg); } - return window; + return GLFW_TRUE; } @@ -438,7 +460,7 @@ void _glfwInputErrorWin32(int error, const char* description) GetLastError() & 0xffff, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buffer, - sizeof(buffer), + sizeof(buffer) / sizeof(WCHAR), NULL); WideCharToMultiByte(CP_UTF8, 0, buffer, -1, message, sizeof(message), NULL, NULL); @@ -499,6 +521,36 @@ void _glfwUpdateKeyNamesWin32(void) } } +// Replacement for IsWindowsVersionOrGreater as MinGW lacks versionhelpers.h +// +BOOL _glfwIsWindowsVersionOrGreaterWin32(WORD major, WORD minor, WORD sp) +{ + OSVERSIONINFOEXW osvi = { sizeof(osvi), major, minor, 0, 0, {0}, sp }; + 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); + // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the + // latter lies unless the user knew to embed a non-default manifest + // announcing support for Windows 10 via supportedOS GUID + return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; +} + +// Checks whether we are on at least the specified build of Windows 10 +// +BOOL _glfwIsWindows10BuildOrGreaterWin32(WORD build) +{ + OSVERSIONINFOEXW osvi = { sizeof(osvi), 10, 0, build }; + DWORD mask = VER_MAJORVERSION | VER_MINORVERSION | VER_BUILDNUMBER; + ULONGLONG cond = VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_BUILDNUMBER, VER_GREATER_EQUAL); + // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the + // latter lies unless the user knew to embed a non-default manifest + // announcing support for Windows 10 via supportedOS GUID + return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; +} + ////////////////////////////////////////////////////////////////////////// ////// GLFW platform API ////// @@ -520,7 +572,9 @@ int _glfwPlatformInit(void) createKeyTables(); _glfwUpdateKeyNamesWin32(); - if (IsWindows8Point1OrGreater()) + if (_glfwIsWindows10CreatorsUpdateOrGreaterWin32()) + SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + else if (IsWindows8Point1OrGreater()) SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE); else if (IsWindowsVistaOrGreater()) SetProcessDPIAware(); @@ -528,8 +582,7 @@ int _glfwPlatformInit(void) if (!_glfwRegisterWindowClassWin32()) return GLFW_FALSE; - _glfw.win32.helperWindowHandle = createHelperWindow(); - if (!_glfw.win32.helperWindowHandle) + if (!createHelperWindow()) return GLFW_FALSE; _glfwInitTimerWin32(); @@ -541,6 +594,9 @@ int _glfwPlatformInit(void) void _glfwPlatformTerminate(void) { + if (_glfw.win32.deviceNotificationHandle) + UnregisterDeviceNotification(_glfw.win32.deviceNotificationHandle); + if (_glfw.win32.helperWindowHandle) DestroyWindow(_glfw.win32.helperWindowHandle); @@ -564,7 +620,7 @@ void _glfwPlatformTerminate(void) const char* _glfwPlatformGetVersionString(void) { - return _GLFW_VERSION_NUMBER " Win32 WGL EGL" + return _GLFW_VERSION_NUMBER " Win32 WGL EGL OSMesa" #if defined(__MINGW32__) " MinGW" #elif defined(_MSC_VER) diff --git a/external/GLFW/src/win32_joystick.c b/external/glfw-3.3.4/src/win32_joystick.c similarity index 96% rename from external/GLFW/src/win32_joystick.c rename to external/glfw-3.3.4/src/win32_joystick.c index ad2dbb2..62ad7a5 100644 --- a/external/GLFW/src/win32_joystick.c +++ b/external/glfw-3.3.4/src/win32_joystick.c @@ -2,7 +2,7 @@ // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -260,6 +262,8 @@ static void closeJoystick(_GLFWjoystick* js) IDirectInputDevice8_Release(js->win32.device); } + free(js->win32.objects); + _glfwFreeJoystick(js); _glfwInputJoystick(js, GLFW_DISCONNECTED); } @@ -352,7 +356,7 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user) for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) { - _GLFWjoystick* js = _glfw.joysticks + jid; + js = _glfw.joysticks + jid; if (js->present) { if (memcmp(&js->win32.guid, &di->guidInstance, sizeof(GUID)) == 0) @@ -412,7 +416,7 @@ static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user) memset(&data, 0, sizeof(data)); data.device = device; - data.objects = calloc(dc.dwAxes + dc.dwButtons + dc.dwPOVs, + data.objects = calloc(dc.dwAxes + (size_t) dc.dwButtons + dc.dwPOVs, sizeof(_GLFWjoyobjectWin32)); if (FAILED(IDirectInputDevice8_EnumObjects(device, @@ -668,11 +672,11 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode) }; // Screams of horror are appropriate at this point - int state = LOWORD(*(DWORD*) data) / (45 * DI_DEGREES); - if (state < 0 || state > 8) - state = 8; + int stateIndex = LOWORD(*(DWORD*) data) / (45 * DI_DEGREES); + if (stateIndex < 0 || stateIndex > 8) + stateIndex = 8; - _glfwInputJoystickHat(js, pi, states[state]); + _glfwInputJoystickHat(js, pi, states[stateIndex]); pi++; break; } @@ -711,9 +715,9 @@ int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode) return GLFW_TRUE; _glfwInputJoystickAxis(js, 0, (xis.Gamepad.sThumbLX + 0.5f) / 32767.5f); - _glfwInputJoystickAxis(js, 1, (xis.Gamepad.sThumbLY + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 1, -(xis.Gamepad.sThumbLY + 0.5f) / 32767.5f); _glfwInputJoystickAxis(js, 2, (xis.Gamepad.sThumbRX + 0.5f) / 32767.5f); - _glfwInputJoystickAxis(js, 3, (xis.Gamepad.sThumbRY + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 3, -(xis.Gamepad.sThumbRY + 0.5f) / 32767.5f); _glfwInputJoystickAxis(js, 4, xis.Gamepad.bLeftTrigger / 127.5f - 1.f); _glfwInputJoystickAxis(js, 5, xis.Gamepad.bRightTrigger / 127.5f - 1.f); @@ -743,7 +747,7 @@ void _glfwPlatformUpdateGamepadGUID(char* guid) if (strcmp(guid + 20, "504944564944") == 0) { char original[33]; - strcpy(original, guid); + strncpy(original, guid, sizeof(original) - 1); sprintf(guid, "03000000%.4s0000%.4s000000000000", original, original + 4); } diff --git a/external/GLFW/src/win32_joystick.h b/external/glfw-3.3.4/src/win32_joystick.h similarity index 92% rename from external/GLFW/src/win32_joystick.h rename to external/glfw-3.3.4/src/win32_joystick.h index 9156f6c..9ba46d9 100644 --- a/external/GLFW/src/win32_joystick.h +++ b/external/glfw-3.3.4/src/win32_joystick.h @@ -1,7 +1,7 @@ //======================================================================== // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -25,7 +25,7 @@ //======================================================================== #define _GLFW_PLATFORM_JOYSTICK_STATE _GLFWjoystickWin32 win32 -#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE int dummy +#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE struct { int dummyLibraryJoystick; } #define _GLFW_PLATFORM_MAPPING_NAME "Windows" diff --git a/external/GLFW/src/win32_monitor.c b/external/glfw-3.3.4/src/win32_monitor.c similarity index 83% rename from external/GLFW/src/win32_monitor.c rename to external/glfw-3.3.4/src/win32_monitor.c index 76fbc0d..c8bae35 100644 --- a/external/GLFW/src/win32_monitor.c +++ b/external/glfw-3.3.4/src/win32_monitor.c @@ -2,7 +2,7 @@ // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -31,6 +33,7 @@ #include #include #include +#include // Callback for EnumDisplayMonitors in createMonitor @@ -60,6 +63,7 @@ static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, DISPLAY_DEVICEW* display) { _GLFWmonitor* monitor; + int widthMM, heightMM; char* name; HDC dc; DEVMODEW dm; @@ -72,13 +76,26 @@ static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, if (!name) return NULL; + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + EnumDisplaySettingsW(adapter->DeviceName, ENUM_CURRENT_SETTINGS, &dm); + dc = CreateDCW(L"DISPLAY", adapter->DeviceName, NULL, NULL); - monitor = _glfwAllocMonitor(name, - GetDeviceCaps(dc, HORZSIZE), - GetDeviceCaps(dc, VERTSIZE)); + if (IsWindows8Point1OrGreater()) + { + widthMM = GetDeviceCaps(dc, HORZSIZE); + heightMM = GetDeviceCaps(dc, VERTSIZE); + } + else + { + widthMM = (int) (dm.dmPelsWidth * 25.4f / GetDeviceCaps(dc, LOGPIXELSX)); + heightMM = (int) (dm.dmPelsHeight * 25.4f / GetDeviceCaps(dc, LOGPIXELSY)); + } DeleteDC(dc); + + monitor = _glfwAllocMonitor(name, widthMM, heightMM); free(name); if (adapter->StateFlags & DISPLAY_DEVICE_MODESPRUNED) @@ -101,10 +118,6 @@ static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, NULL, NULL); } - ZeroMemory(&dm, sizeof(dm)); - dm.dmSize = sizeof(dm); - EnumDisplaySettingsW(adapter->DeviceName, ENUM_CURRENT_SETTINGS, &dm); - rect.left = dm.dmPosition.x; rect.top = dm.dmPosition.y; rect.right = dm.dmPosition.x + dm.dmPelsWidth; @@ -172,6 +185,8 @@ void _glfwPollMonitorsWin32(void) display.DeviceName) == 0) { disconnected[i] = NULL; + // handle may have changed, update + EnumDisplayMonitors(NULL, NULL, monitorCallback, (LPARAM) _glfw.monitors[i]); break; } } @@ -231,7 +246,7 @@ void _glfwPollMonitorsWin32(void) // Change the current video mode // -GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired) +void _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired) { GLFWvidmode current; const GLFWvidmode* best; @@ -241,7 +256,7 @@ GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desire best = _glfwChooseVideoMode(monitor, desired); _glfwPlatformGetVideoMode(monitor, ¤t); if (_glfwCompareVideoModes(¤t, best) == 0) - return GLFW_TRUE; + return; ZeroMemory(&dm, sizeof(dm)); dm.dmSize = sizeof(dm); @@ -260,7 +275,9 @@ GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desire NULL, CDS_FULLSCREEN, NULL); - if (result != DISP_CHANGE_SUCCESSFUL) + if (result == DISP_CHANGE_SUCCESSFUL) + monitor->win32.modeChanged = GLFW_TRUE; + else { const char* description = "Unknown error"; @@ -282,12 +299,7 @@ GLFWbool _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desire _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to set video mode: %s", description); - - return GLFW_FALSE; } - - monitor->win32.modeChanged = GLFW_TRUE; - return GLFW_TRUE; } // Restore the previously saved (original) video mode @@ -302,11 +314,35 @@ void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor) } } +void _glfwGetMonitorContentScaleWin32(HMONITOR handle, float* xscale, float* yscale) +{ + UINT xdpi, ydpi; + + if (IsWindows8Point1OrGreater()) + GetDpiForMonitor(handle, MDT_EFFECTIVE_DPI, &xdpi, &ydpi); + else + { + const HDC dc = GetDC(NULL); + xdpi = GetDeviceCaps(dc, LOGPIXELSX); + ydpi = GetDeviceCaps(dc, LOGPIXELSY); + ReleaseDC(NULL, dc); + } + + if (xscale) + *xscale = xdpi / (float) USER_DEFAULT_SCREEN_DPI; + if (yscale) + *yscale = ydpi / (float) USER_DEFAULT_SCREEN_DPI; +} + ////////////////////////////////////////////////////////////////////////// ////// GLFW platform API ////// ////////////////////////////////////////////////////////////////////////// +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor) +{ +} + void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) { DEVMODEW dm; @@ -324,6 +360,29 @@ void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) *ypos = dm.dmPosition.y; } +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + _glfwGetMonitorContentScaleWin32(monitor->win32.handle, xscale, yscale); +} + +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfo(monitor->win32.handle, &mi); + + if (xpos) + *xpos = mi.rcWork.left; + if (ypos) + *ypos = mi.rcWork.top; + if (width) + *width = mi.rcWork.right - mi.rcWork.left; + if (height) + *height = mi.rcWork.bottom - mi.rcWork.top; +} + GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) { int modeIndex = 0, size = 0; @@ -418,10 +477,10 @@ void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) &mode->blueBits); } -void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) { HDC dc; - WORD values[768]; + WORD values[3][256]; dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); GetDeviceGammaRamp(dc, values); @@ -429,15 +488,17 @@ void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) _glfwAllocGammaArrays(ramp, 256); - memcpy(ramp->red, values + 0, 256 * sizeof(unsigned short)); - memcpy(ramp->green, values + 256, 256 * sizeof(unsigned short)); - memcpy(ramp->blue, values + 512, 256 * sizeof(unsigned short)); + memcpy(ramp->red, values[0], sizeof(values[0])); + memcpy(ramp->green, values[1], sizeof(values[1])); + memcpy(ramp->blue, values[2], sizeof(values[2])); + + return GLFW_TRUE; } void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) { HDC dc; - WORD values[768]; + WORD values[3][256]; if (ramp->size != 256) { @@ -446,9 +507,9 @@ void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) return; } - memcpy(values + 0, ramp->red, 256 * sizeof(unsigned short)); - memcpy(values + 256, ramp->green, 256 * sizeof(unsigned short)); - memcpy(values + 512, ramp->blue, 256 * sizeof(unsigned short)); + memcpy(values[0], ramp->red, sizeof(values[0])); + memcpy(values[1], ramp->green, sizeof(values[1])); + memcpy(values[2], ramp->blue, sizeof(values[2])); dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); SetDeviceGammaRamp(dc, values); diff --git a/external/glfw-3.3.4/src/win32_platform.h b/external/glfw-3.3.4/src/win32_platform.h new file mode 100644 index 0000000..003b8a1 --- /dev/null +++ b/external/glfw-3.3.4/src/win32_platform.h @@ -0,0 +1,469 @@ +//======================================================================== +// GLFW 3.3 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== + +// We don't need all the fancy stuff +#ifndef NOMINMAX + #define NOMINMAX +#endif + +#ifndef VC_EXTRALEAN + #define VC_EXTRALEAN +#endif + +#ifndef WIN32_LEAN_AND_MEAN + #define WIN32_LEAN_AND_MEAN +#endif + +// 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 + +// GLFW on Windows is Unicode only and does not work in MBCS mode +#ifndef UNICODE + #define UNICODE +#endif + +// GLFW requires Windows XP or later +#if WINVER < 0x0501 + #undef WINVER + #define WINVER 0x0501 +#endif +#if _WIN32_WINNT < 0x0501 + #undef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 +#endif + +// GLFW uses DirectInput8 interfaces +#define DIRECTINPUT_VERSION 0x0800 + +// GLFW uses OEM cursor resources +#define OEMRESOURCE + +#include +#include +#include +#include +#include + +// HACK: Define macros that some windows.h variants don't +#ifndef WM_MOUSEHWHEEL + #define WM_MOUSEHWHEEL 0x020E +#endif +#ifndef WM_DWMCOMPOSITIONCHANGED + #define WM_DWMCOMPOSITIONCHANGED 0x031E +#endif +#ifndef WM_DWMCOLORIZATIONCOLORCHANGED + #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 +#endif +#ifndef WM_COPYGLOBALDATA + #define WM_COPYGLOBALDATA 0x0049 +#endif +#ifndef WM_UNICHAR + #define WM_UNICHAR 0x0109 +#endif +#ifndef UNICODE_NOCHAR + #define UNICODE_NOCHAR 0xFFFF +#endif +#ifndef WM_DPICHANGED + #define WM_DPICHANGED 0x02E0 +#endif +#ifndef GET_XBUTTON_WPARAM + #define GET_XBUTTON_WPARAM(w) (HIWORD(w)) +#endif +#ifndef EDS_ROTATEDMODE + #define EDS_ROTATEDMODE 0x00000004 +#endif +#ifndef DISPLAY_DEVICE_ACTIVE + #define DISPLAY_DEVICE_ACTIVE 0x00000001 +#endif +#ifndef _WIN32_WINNT_WINBLUE + #define _WIN32_WINNT_WINBLUE 0x0603 +#endif +#ifndef _WIN32_WINNT_WIN8 + #define _WIN32_WINNT_WIN8 0x0602 +#endif +#ifndef WM_GETDPISCALEDSIZE + #define WM_GETDPISCALEDSIZE 0x02e4 +#endif +#ifndef USER_DEFAULT_SCREEN_DPI + #define USER_DEFAULT_SCREEN_DPI 96 +#endif +#ifndef OCR_HAND + #define OCR_HAND 32649 +#endif + +#if WINVER < 0x0601 +typedef struct +{ + DWORD cbSize; + DWORD ExtStatus; +} CHANGEFILTERSTRUCT; +#ifndef MSGFLT_ALLOW + #define MSGFLT_ALLOW 1 +#endif +#endif /*Windows 7*/ + +#if WINVER < 0x0600 +#define DWM_BB_ENABLE 0x00000001 +#define DWM_BB_BLURREGION 0x00000002 +typedef struct +{ + DWORD dwFlags; + BOOL fEnable; + HRGN hRgnBlur; + BOOL fTransitionOnMaximized; +} DWM_BLURBEHIND; +#else + #include +#endif /*Windows Vista*/ + +#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 /*DPI_ENUMS_DECLARED*/ + +#ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) +#endif /*DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2*/ + +// HACK: Define versionhelpers.h functions manually as MinGW lacks the header +#define IsWindowsXPOrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WINXP), \ + LOBYTE(_WIN32_WINNT_WINXP), 0) +#define IsWindowsVistaOrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_VISTA), \ + LOBYTE(_WIN32_WINNT_VISTA), 0) +#define IsWindows7OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN7), \ + LOBYTE(_WIN32_WINNT_WIN7), 0) +#define IsWindows8OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN8), \ + LOBYTE(_WIN32_WINNT_WIN8), 0) +#define IsWindows8Point1OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WINBLUE), \ + LOBYTE(_WIN32_WINNT_WINBLUE), 0) + +#define _glfwIsWindows10AnniversaryUpdateOrGreaterWin32() \ + _glfwIsWindows10BuildOrGreaterWin32(14393) +#define _glfwIsWindows10CreatorsUpdateOrGreaterWin32() \ + _glfwIsWindows10BuildOrGreaterWin32(15063) + +// HACK: Define macros that some xinput.h variants don't +#ifndef XINPUT_CAPS_WIRELESS + #define XINPUT_CAPS_WIRELESS 0x0002 +#endif +#ifndef XINPUT_DEVSUBTYPE_WHEEL + #define XINPUT_DEVSUBTYPE_WHEEL 0x02 +#endif +#ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK + #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 +#endif +#ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK + #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 +#endif +#ifndef XINPUT_DEVSUBTYPE_DANCE_PAD + #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 +#endif +#ifndef XINPUT_DEVSUBTYPE_GUITAR + #define XINPUT_DEVSUBTYPE_GUITAR 0x06 +#endif +#ifndef XINPUT_DEVSUBTYPE_DRUM_KIT + #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 +#endif +#ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD + #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 +#endif +#ifndef XUSER_MAX_COUNT + #define XUSER_MAX_COUNT 4 +#endif + +// HACK: Define macros that some dinput.h variants don't +#ifndef DIDFT_OPTIONAL + #define DIDFT_OPTIONAL 0x80000000 +#endif + +// winmm.dll function pointer typedefs +typedef DWORD (WINAPI * PFN_timeGetTime)(void); +#define timeGetTime _glfw.win32.winmm.GetTime + +// xinput.dll function pointer typedefs +typedef DWORD (WINAPI * PFN_XInputGetCapabilities)(DWORD,DWORD,XINPUT_CAPABILITIES*); +typedef DWORD (WINAPI * PFN_XInputGetState)(DWORD,XINPUT_STATE*); +#define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities +#define XInputGetState _glfw.win32.xinput.GetState + +// dinput8.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_DirectInput8Create)(HINSTANCE,DWORD,REFIID,LPVOID*,LPUNKNOWN); +#define DirectInput8Create _glfw.win32.dinput8.Create + +// user32.dll function pointer typedefs +typedef BOOL (WINAPI * PFN_SetProcessDPIAware)(void); +typedef BOOL (WINAPI * PFN_ChangeWindowMessageFilterEx)(HWND,UINT,DWORD,CHANGEFILTERSTRUCT*); +typedef BOOL (WINAPI * PFN_EnableNonClientDpiScaling)(HWND); +typedef BOOL (WINAPI * PFN_SetProcessDpiAwarenessContext)(HANDLE); +typedef UINT (WINAPI * PFN_GetDpiForWindow)(HWND); +typedef BOOL (WINAPI * PFN_AdjustWindowRectExForDpi)(LPRECT,DWORD,BOOL,DWORD,UINT); +#define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ +#define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ +#define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ +#define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ +#define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ +#define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ + +// dwmapi.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_DwmIsCompositionEnabled)(BOOL*); +typedef HRESULT (WINAPI * PFN_DwmFlush)(VOID); +typedef HRESULT(WINAPI * PFN_DwmEnableBlurBehindWindow)(HWND,const DWM_BLURBEHIND*); +typedef HRESULT (WINAPI * PFN_DwmGetColorizationColor)(DWORD*,BOOL*); +#define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled +#define DwmFlush _glfw.win32.dwmapi.Flush +#define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow +#define DwmGetColorizationColor _glfw.win32.dwmapi.GetColorizationColor + +// shcore.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); +typedef HRESULT (WINAPI * PFN_GetDpiForMonitor)(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*); +#define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ +#define GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ + +// ntdll.dll function pointer typedefs +typedef LONG (WINAPI * PFN_RtlVerifyVersionInfo)(OSVERSIONINFOEXW*,ULONG,ULONGLONG); +#define RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ + +typedef VkFlags VkWin32SurfaceCreateFlagsKHR; + +typedef struct VkWin32SurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkWin32SurfaceCreateFlagsKHR flags; + HINSTANCE hinstance; + HWND hwnd; +} VkWin32SurfaceCreateInfoKHR; + +typedef VkResult (APIENTRY *PFN_vkCreateWin32SurfaceKHR)(VkInstance,const VkWin32SurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice,uint32_t); + +#include "win32_joystick.h" +#include "wgl_context.h" +#include "egl_context.h" +#include "osmesa_context.h" + +#if !defined(_GLFW_WNDCLASSNAME) + #define _GLFW_WNDCLASSNAME L"GLFW30" +#endif + +#define _glfw_dlopen(name) LoadLibraryA(name) +#define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) +#define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) + +#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle) +#define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY + +#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 +#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 +#define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 +#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 +#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 +#define _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 +#define _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 + + +// Win32-specific per-window data +// +typedef struct _GLFWwindowWin32 +{ + HWND handle; + HICON bigIcon; + HICON smallIcon; + + GLFWbool cursorTracked; + GLFWbool frameAction; + GLFWbool iconified; + GLFWbool maximized; + // Whether to enable framebuffer transparency on DWM + GLFWbool transparent; + GLFWbool scaleToMonitor; + + // Cached size used to filter out duplicate events + int width, height; + + // The last received cursor position, regardless of source + int lastCursorPosX, lastCursorPosY; + // The last recevied high surrogate when decoding pairs of UTF-16 messages + WCHAR highSurrogate; + +} _GLFWwindowWin32; + +// Win32-specific global data +// +typedef struct _GLFWlibraryWin32 +{ + HWND helperWindowHandle; + HDEVNOTIFY deviceNotificationHandle; + DWORD foregroundLockTimeout; + int acquiredMonitorCount; + char* clipboardString; + short int keycodes[512]; + short int scancodes[GLFW_KEY_LAST + 1]; + char keynames[GLFW_KEY_LAST + 1][5]; + // Where to place the cursor when re-enabled + double restoreCursorPosX, restoreCursorPosY; + // The window whose disabled cursor mode is active + _GLFWwindow* disabledCursorWindow; + RAWINPUT* rawInput; + int rawInputSize; + UINT mouseTrailSize; + + struct { + HINSTANCE instance; + PFN_timeGetTime GetTime; + } winmm; + + struct { + HINSTANCE instance; + PFN_DirectInput8Create Create; + IDirectInput8W* api; + } dinput8; + + struct { + HINSTANCE instance; + PFN_XInputGetCapabilities GetCapabilities; + PFN_XInputGetState GetState; + } xinput; + + struct { + HINSTANCE instance; + PFN_SetProcessDPIAware SetProcessDPIAware_; + PFN_ChangeWindowMessageFilterEx ChangeWindowMessageFilterEx_; + PFN_EnableNonClientDpiScaling EnableNonClientDpiScaling_; + PFN_SetProcessDpiAwarenessContext SetProcessDpiAwarenessContext_; + PFN_GetDpiForWindow GetDpiForWindow_; + PFN_AdjustWindowRectExForDpi AdjustWindowRectExForDpi_; + } user32; + + struct { + HINSTANCE instance; + PFN_DwmIsCompositionEnabled IsCompositionEnabled; + PFN_DwmFlush Flush; + PFN_DwmEnableBlurBehindWindow EnableBlurBehindWindow; + PFN_DwmGetColorizationColor GetColorizationColor; + } dwmapi; + + struct { + HINSTANCE instance; + PFN_SetProcessDpiAwareness SetProcessDpiAwareness_; + PFN_GetDpiForMonitor GetDpiForMonitor_; + } shcore; + + struct { + HINSTANCE instance; + PFN_RtlVerifyVersionInfo RtlVerifyVersionInfo_; + } ntdll; + +} _GLFWlibraryWin32; + +// Win32-specific per-monitor data +// +typedef struct _GLFWmonitorWin32 +{ + HMONITOR handle; + // This size matches the static size of DISPLAY_DEVICE.DeviceName + WCHAR adapterName[32]; + WCHAR displayName[32]; + char publicAdapterName[32]; + char publicDisplayName[32]; + GLFWbool modesPruned; + GLFWbool modeChanged; + +} _GLFWmonitorWin32; + +// Win32-specific per-cursor data +// +typedef struct _GLFWcursorWin32 +{ + HCURSOR handle; + +} _GLFWcursorWin32; + +// Win32-specific global timer data +// +typedef struct _GLFWtimerWin32 +{ + GLFWbool hasPC; + uint64_t frequency; + +} _GLFWtimerWin32; + +// Win32-specific thread local storage data +// +typedef struct _GLFWtlsWin32 +{ + GLFWbool allocated; + DWORD index; + +} _GLFWtlsWin32; + +// Win32-specific mutex data +// +typedef struct _GLFWmutexWin32 +{ + GLFWbool allocated; + CRITICAL_SECTION section; + +} _GLFWmutexWin32; + + +GLFWbool _glfwRegisterWindowClassWin32(void); +void _glfwUnregisterWindowClassWin32(void); + +WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source); +char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source); +BOOL _glfwIsWindowsVersionOrGreaterWin32(WORD major, WORD minor, WORD sp); +BOOL _glfwIsWindows10BuildOrGreaterWin32(WORD build); +void _glfwInputErrorWin32(int error, const char* description); +void _glfwUpdateKeyNamesWin32(void); + +void _glfwInitTimerWin32(void); + +void _glfwPollMonitorsWin32(void); +void _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor); +void _glfwGetMonitorContentScaleWin32(HMONITOR handle, float* xscale, float* yscale); + diff --git a/external/GLFW/src/win32_thread.c b/external/glfw-3.3.4/src/win32_thread.c similarity index 93% rename from external/GLFW/src/win32_thread.c rename to external/glfw-3.3.4/src/win32_thread.c index 98231c1..ce0686d 100644 --- a/external/GLFW/src/win32_thread.c +++ b/external/glfw-3.3.4/src/win32_thread.c @@ -2,7 +2,7 @@ // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/win32_time.c b/external/glfw-3.3.4/src/win32_time.c similarity index 91% rename from external/GLFW/src/win32_time.c rename to external/glfw-3.3.4/src/win32_time.c index f333cd4..7559463 100644 --- a/external/GLFW/src/win32_time.c +++ b/external/glfw-3.3.4/src/win32_time.c @@ -2,7 +2,7 @@ // GLFW 3.3 Win32 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" diff --git a/external/glfw-3.3.4/src/win32_window.c b/external/glfw-3.3.4/src/win32_window.c new file mode 100644 index 0000000..d17b6da --- /dev/null +++ b/external/glfw-3.3.4/src/win32_window.c @@ -0,0 +1,2291 @@ +//======================================================================== +// GLFW 3.3 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include + +// Returns the window style for the specified window +// +static DWORD getWindowStyle(const _GLFWwindow* window) +{ + DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN; + + if (window->monitor) + style |= WS_POPUP; + else + { + style |= WS_SYSMENU | WS_MINIMIZEBOX; + + if (window->decorated) + { + style |= WS_CAPTION; + + if (window->resizable) + style |= WS_MAXIMIZEBOX | WS_THICKFRAME; + } + else + style |= WS_POPUP; + } + + return style; +} + +// Returns the extended window style for the specified window +// +static DWORD getWindowExStyle(const _GLFWwindow* window) +{ + DWORD style = WS_EX_APPWINDOW; + + if (window->monitor || window->floating) + style |= WS_EX_TOPMOST; + + return style; +} + +// Returns the image whose area most closely matches the desired one +// +static const GLFWimage* chooseImage(int count, const GLFWimage* images, + int width, int height) +{ + int i, leastDiff = INT_MAX; + const GLFWimage* closest = NULL; + + for (i = 0; i < count; i++) + { + const int currDiff = abs(images[i].width * images[i].height - + width * height); + if (currDiff < leastDiff) + { + closest = images + i; + leastDiff = currDiff; + } + } + + return closest; +} + +// Creates an RGBA icon or cursor +// +static HICON createIcon(const GLFWimage* image, + int xhot, int yhot, GLFWbool icon) +{ + int i; + HDC dc; + HICON handle; + HBITMAP color, mask; + BITMAPV5HEADER bi; + ICONINFO ii; + unsigned char* target = NULL; + unsigned char* source = image->pixels; + + ZeroMemory(&bi, sizeof(bi)); + bi.bV5Size = sizeof(bi); + bi.bV5Width = image->width; + bi.bV5Height = -image->height; + bi.bV5Planes = 1; + bi.bV5BitCount = 32; + bi.bV5Compression = BI_BITFIELDS; + bi.bV5RedMask = 0x00ff0000; + bi.bV5GreenMask = 0x0000ff00; + bi.bV5BlueMask = 0x000000ff; + bi.bV5AlphaMask = 0xff000000; + + dc = GetDC(NULL); + color = CreateDIBSection(dc, + (BITMAPINFO*) &bi, + DIB_RGB_COLORS, + (void**) &target, + NULL, + (DWORD) 0); + ReleaseDC(NULL, dc); + + if (!color) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create RGBA bitmap"); + return NULL; + } + + mask = CreateBitmap(image->width, image->height, 1, 1, NULL); + if (!mask) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create mask bitmap"); + DeleteObject(color); + return NULL; + } + + for (i = 0; i < image->width * image->height; i++) + { + target[0] = source[2]; + target[1] = source[1]; + target[2] = source[0]; + target[3] = source[3]; + target += 4; + source += 4; + } + + ZeroMemory(&ii, sizeof(ii)); + ii.fIcon = icon; + ii.xHotspot = xhot; + ii.yHotspot = yhot; + ii.hbmMask = mask; + ii.hbmColor = color; + + handle = CreateIconIndirect(&ii); + + DeleteObject(color); + DeleteObject(mask); + + if (!handle) + { + if (icon) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create icon"); + } + else + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create cursor"); + } + } + + return handle; +} + +// Translate content area size to full window size according to styles and DPI +// +static void getFullWindowSize(DWORD style, DWORD exStyle, + int contentWidth, int contentHeight, + int* fullWidth, int* fullHeight, + UINT dpi) +{ + RECT rect = { 0, 0, contentWidth, contentHeight }; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, dpi); + else + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + + *fullWidth = rect.right - rect.left; + *fullHeight = rect.bottom - rect.top; +} + +// Enforce the content area aspect ratio based on which edge is being dragged +// +static void applyAspectRatio(_GLFWwindow* window, int edge, RECT* area) +{ + int xoff, yoff; + UINT dpi = USER_DEFAULT_SCREEN_DPI; + const float ratio = (float) window->numer / (float) window->denom; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + dpi = GetDpiForWindow(window->win32.handle); + + getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), + 0, 0, &xoff, &yoff, dpi); + + if (edge == WMSZ_LEFT || edge == WMSZ_BOTTOMLEFT || + edge == WMSZ_RIGHT || edge == WMSZ_BOTTOMRIGHT) + { + area->bottom = area->top + yoff + + (int) ((area->right - area->left - xoff) / ratio); + } + else if (edge == WMSZ_TOPLEFT || edge == WMSZ_TOPRIGHT) + { + area->top = area->bottom - yoff - + (int) ((area->right - area->left - xoff) / ratio); + } + else if (edge == WMSZ_TOP || edge == WMSZ_BOTTOM) + { + area->right = area->left + xoff + + (int) ((area->bottom - area->top - yoff) * ratio); + } +} + +// Updates the cursor image according to its cursor mode +// +static void updateCursorImage(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL) + { + if (window->cursor) + SetCursor(window->cursor->win32.handle); + else + SetCursor(LoadCursorW(NULL, IDC_ARROW)); + } + else + SetCursor(NULL); +} + +// Updates the cursor clip rect +// +static void updateClipRect(_GLFWwindow* window) +{ + if (window) + { + RECT clipRect; + GetClientRect(window->win32.handle, &clipRect); + ClientToScreen(window->win32.handle, (POINT*) &clipRect.left); + ClientToScreen(window->win32.handle, (POINT*) &clipRect.right); + ClipCursor(&clipRect); + } + else + ClipCursor(NULL); +} + +// Enables WM_INPUT messages for the mouse for the specified window +// +static void enableRawMouseMotion(_GLFWwindow* window) +{ + const RAWINPUTDEVICE rid = { 0x01, 0x02, 0, window->win32.handle }; + + if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to register raw input device"); + } +} + +// Disables WM_INPUT messages for the mouse +// +static void disableRawMouseMotion(_GLFWwindow* window) +{ + const RAWINPUTDEVICE rid = { 0x01, 0x02, RIDEV_REMOVE, NULL }; + + if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to remove raw input device"); + } +} + +// Apply disabled cursor mode to a focused window +// +static void disableCursor(_GLFWwindow* window) +{ + _glfw.win32.disabledCursorWindow = window; + _glfwPlatformGetCursorPos(window, + &_glfw.win32.restoreCursorPosX, + &_glfw.win32.restoreCursorPosY); + updateCursorImage(window); + _glfwCenterCursorInContentArea(window); + updateClipRect(window); + + if (window->rawMouseMotion) + enableRawMouseMotion(window); +} + +// Exit disabled cursor mode for the specified window +// +static void enableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + disableRawMouseMotion(window); + + _glfw.win32.disabledCursorWindow = NULL; + updateClipRect(NULL); + _glfwPlatformSetCursorPos(window, + _glfw.win32.restoreCursorPosX, + _glfw.win32.restoreCursorPosY); + updateCursorImage(window); +} + +// Returns whether the cursor is in the content area of the specified window +// +static GLFWbool cursorInContentArea(_GLFWwindow* window) +{ + RECT area; + POINT pos; + + if (!GetCursorPos(&pos)) + return GLFW_FALSE; + + if (WindowFromPoint(pos) != window->win32.handle) + return GLFW_FALSE; + + GetClientRect(window->win32.handle, &area); + ClientToScreen(window->win32.handle, (POINT*) &area.left); + ClientToScreen(window->win32.handle, (POINT*) &area.right); + + return PtInRect(&area, pos); +} + +// Update native window styles to match attributes +// +static void updateWindowStyles(const _GLFWwindow* window) +{ + RECT rect; + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + style &= ~(WS_OVERLAPPEDWINDOW | WS_POPUP); + style |= getWindowStyle(window); + + GetClientRect(window->win32.handle, &rect); + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, style, FALSE, + getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + AdjustWindowRectEx(&rect, style, FALSE, getWindowExStyle(window)); + + ClientToScreen(window->win32.handle, (POINT*) &rect.left); + ClientToScreen(window->win32.handle, (POINT*) &rect.right); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + SetWindowPos(window->win32.handle, HWND_TOP, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOZORDER); +} + +// Update window framebuffer transparency +// +static void updateFramebufferTransparency(const _GLFWwindow* window) +{ + BOOL composition, opaque; + DWORD color; + + if (!IsWindowsVistaOrGreater()) + return; + + if (FAILED(DwmIsCompositionEnabled(&composition)) || !composition) + return; + + if (IsWindows8OrGreater() || + (SUCCEEDED(DwmGetColorizationColor(&color, &opaque)) && !opaque)) + { + HRGN region = CreateRectRgn(0, 0, -1, -1); + DWM_BLURBEHIND bb = {0}; + bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION; + bb.hRgnBlur = region; + bb.fEnable = TRUE; + + DwmEnableBlurBehindWindow(window->win32.handle, &bb); + DeleteObject(region); + } + else + { + // HACK: Disable framebuffer transparency on Windows 7 when the + // colorization color is opaque, because otherwise the window + // contents is blended additively with the previous frame instead + // of replacing it + DWM_BLURBEHIND bb = {0}; + bb.dwFlags = DWM_BB_ENABLE; + DwmEnableBlurBehindWindow(window->win32.handle, &bb); + } +} + +// Retrieves and translates modifier keys +// +static int getKeyMods(void) +{ + int mods = 0; + + if (GetKeyState(VK_SHIFT) & 0x8000) + mods |= GLFW_MOD_SHIFT; + if (GetKeyState(VK_CONTROL) & 0x8000) + mods |= GLFW_MOD_CONTROL; + if (GetKeyState(VK_MENU) & 0x8000) + mods |= GLFW_MOD_ALT; + if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & 0x8000) + mods |= GLFW_MOD_SUPER; + if (GetKeyState(VK_CAPITAL) & 1) + mods |= GLFW_MOD_CAPS_LOCK; + if (GetKeyState(VK_NUMLOCK) & 1) + mods |= GLFW_MOD_NUM_LOCK; + + return mods; +} + +static void fitToMonitor(_GLFWwindow* window) +{ + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfo(window->monitor->win32.handle, &mi); + SetWindowPos(window->win32.handle, HWND_TOPMOST, + mi.rcMonitor.left, + mi.rcMonitor.top, + mi.rcMonitor.right - mi.rcMonitor.left, + mi.rcMonitor.bottom - mi.rcMonitor.top, + SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS); +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + if (!_glfw.win32.acquiredMonitorCount) + { + SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED); + + // HACK: When mouse trails are enabled the cursor becomes invisible when + // the OpenGL ICD switches to page flipping + if (IsWindowsXPOrGreater()) + { + SystemParametersInfo(SPI_GETMOUSETRAILS, 0, &_glfw.win32.mouseTrailSize, 0); + SystemParametersInfo(SPI_SETMOUSETRAILS, 0, 0, 0); + } + } + + if (!window->monitor->window) + _glfw.win32.acquiredMonitorCount++; + + _glfwSetVideoModeWin32(window->monitor, &window->videoMode); + _glfwInputMonitorWindow(window->monitor, window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfw.win32.acquiredMonitorCount--; + if (!_glfw.win32.acquiredMonitorCount) + { + SetThreadExecutionState(ES_CONTINUOUS); + + // HACK: Restore mouse trail length saved in acquireMonitor + if (IsWindowsXPOrGreater()) + SystemParametersInfo(SPI_SETMOUSETRAILS, _glfw.win32.mouseTrailSize, 0, 0); + } + + _glfwInputMonitorWindow(window->monitor, NULL); + _glfwRestoreVideoModeWin32(window->monitor); +} + +// Window callback function (handles window messages) +// +static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, + WPARAM wParam, LPARAM lParam) +{ + _GLFWwindow* window = GetPropW(hWnd, L"GLFW"); + if (!window) + { + // This is the message handling for the hidden helper window + // and for a regular window during its initial creation + + switch (uMsg) + { + case WM_NCCREATE: + { + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + const CREATESTRUCTW* cs = (const CREATESTRUCTW*) lParam; + const _GLFWwndconfig* wndconfig = cs->lpCreateParams; + + // On per-monitor DPI aware V1 systems, only enable + // non-client scaling for windows that scale the client area + // We need WM_GETDPISCALEDSIZE from V2 to keep the client + // area static when the non-client area is scaled + if (wndconfig && wndconfig->scaleToMonitor) + EnableNonClientDpiScaling(hWnd); + } + + break; + } + + case WM_DISPLAYCHANGE: + _glfwPollMonitorsWin32(); + break; + + case WM_DEVICECHANGE: + { + if (wParam == DBT_DEVICEARRIVAL) + { + DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; + if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) + _glfwDetectJoystickConnectionWin32(); + } + else if (wParam == DBT_DEVICEREMOVECOMPLETE) + { + DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; + if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) + _glfwDetectJoystickDisconnectionWin32(); + } + + break; + } + } + + return DefWindowProcW(hWnd, uMsg, wParam, lParam); + } + + switch (uMsg) + { + case WM_MOUSEACTIVATE: + { + // HACK: Postpone cursor disabling when the window was activated by + // clicking a caption button + if (HIWORD(lParam) == WM_LBUTTONDOWN) + { + if (LOWORD(lParam) != HTCLIENT) + window->win32.frameAction = GLFW_TRUE; + } + + break; + } + + case WM_CAPTURECHANGED: + { + // HACK: Disable the cursor once the caption button action has been + // completed or cancelled + if (lParam == 0 && window->win32.frameAction) + { + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + + window->win32.frameAction = GLFW_FALSE; + } + + break; + } + + case WM_SETFOCUS: + { + _glfwInputWindowFocus(window, GLFW_TRUE); + + // HACK: Do not disable cursor while the user is interacting with + // a caption button + if (window->win32.frameAction) + break; + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + + return 0; + } + + case WM_KILLFOCUS: + { + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + + if (window->monitor && window->autoIconify) + _glfwPlatformIconifyWindow(window); + + _glfwInputWindowFocus(window, GLFW_FALSE); + return 0; + } + + case WM_SYSCOMMAND: + { + switch (wParam & 0xfff0) + { + case SC_SCREENSAVE: + case SC_MONITORPOWER: + { + if (window->monitor) + { + // We are running in full screen mode, so disallow + // screen saver and screen blanking + return 0; + } + else + break; + } + + // User trying to access application menu using ALT? + case SC_KEYMENU: + return 0; + } + break; + } + + case WM_CLOSE: + { + _glfwInputWindowCloseRequest(window); + return 0; + } + + case WM_INPUTLANGCHANGE: + { + _glfwUpdateKeyNamesWin32(); + break; + } + + case WM_CHAR: + case WM_SYSCHAR: + { + if (wParam >= 0xd800 && wParam <= 0xdbff) + window->win32.highSurrogate = (WCHAR) wParam; + else + { + unsigned int codepoint = 0; + + if (wParam >= 0xdc00 && wParam <= 0xdfff) + { + if (window->win32.highSurrogate) + { + codepoint += (window->win32.highSurrogate - 0xd800) << 10; + codepoint += (WCHAR) wParam - 0xdc00; + codepoint += 0x10000; + } + } + else + codepoint = (WCHAR) wParam; + + window->win32.highSurrogate = 0; + _glfwInputChar(window, codepoint, getKeyMods(), uMsg != WM_SYSCHAR); + } + + return 0; + } + + case WM_UNICHAR: + { + if (wParam == UNICODE_NOCHAR) + { + // WM_UNICHAR is not sent by Windows, but is sent by some + // third-party input method engine + // Returning TRUE here announces support for this message + return TRUE; + } + + _glfwInputChar(window, (unsigned int) wParam, getKeyMods(), GLFW_TRUE); + return 0; + } + + case WM_KEYDOWN: + case WM_SYSKEYDOWN: + case WM_KEYUP: + case WM_SYSKEYUP: + { + int key, scancode; + const int action = (HIWORD(lParam) & KF_UP) ? GLFW_RELEASE : GLFW_PRESS; + const int mods = getKeyMods(); + + scancode = (HIWORD(lParam) & (KF_EXTENDED | 0xff)); + if (!scancode) + { + // NOTE: Some synthetic key messages have a scancode of zero + // HACK: Map the virtual key back to a usable scancode + scancode = MapVirtualKeyW((UINT) wParam, MAPVK_VK_TO_VSC); + } + + key = _glfw.win32.keycodes[scancode]; + + // The Ctrl keys require special handling + if (wParam == VK_CONTROL) + { + if (HIWORD(lParam) & KF_EXTENDED) + { + // Right side keys have the extended key bit set + key = GLFW_KEY_RIGHT_CONTROL; + } + else + { + // NOTE: Alt Gr sends Left Ctrl followed by Right Alt + // HACK: We only want one event for Alt Gr, so if we detect + // this sequence we discard this Left Ctrl message now + // and later report Right Alt normally + MSG next; + const DWORD time = GetMessageTime(); + + if (PeekMessageW(&next, NULL, 0, 0, PM_NOREMOVE)) + { + if (next.message == WM_KEYDOWN || + next.message == WM_SYSKEYDOWN || + next.message == WM_KEYUP || + next.message == WM_SYSKEYUP) + { + if (next.wParam == VK_MENU && + (HIWORD(next.lParam) & KF_EXTENDED) && + next.time == time) + { + // Next message is Right Alt down so discard this + break; + } + } + } + + // This is a regular Left Ctrl message + key = GLFW_KEY_LEFT_CONTROL; + } + } + else if (wParam == VK_PROCESSKEY) + { + // IME notifies that keys have been filtered by setting the + // virtual key-code to VK_PROCESSKEY + break; + } + + if (action == GLFW_RELEASE && wParam == VK_SHIFT) + { + // HACK: Release both Shift keys on Shift up event, as when both + // are pressed the first release does not emit any event + // NOTE: The other half of this is in _glfwPlatformPollEvents + _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods); + _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods); + } + else if (wParam == VK_SNAPSHOT) + { + // HACK: Key down is not reported for the Print Screen key + _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); + _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); + } + else + _glfwInputKey(window, key, scancode, action, mods); + + break; + } + + case WM_LBUTTONDOWN: + case WM_RBUTTONDOWN: + case WM_MBUTTONDOWN: + case WM_XBUTTONDOWN: + case WM_LBUTTONUP: + case WM_RBUTTONUP: + case WM_MBUTTONUP: + case WM_XBUTTONUP: + { + int i, button, action; + + if (uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONUP) + button = GLFW_MOUSE_BUTTON_LEFT; + else if (uMsg == WM_RBUTTONDOWN || uMsg == WM_RBUTTONUP) + button = GLFW_MOUSE_BUTTON_RIGHT; + else if (uMsg == WM_MBUTTONDOWN || uMsg == WM_MBUTTONUP) + button = GLFW_MOUSE_BUTTON_MIDDLE; + else if (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) + button = GLFW_MOUSE_BUTTON_4; + else + button = GLFW_MOUSE_BUTTON_5; + + if (uMsg == WM_LBUTTONDOWN || uMsg == WM_RBUTTONDOWN || + uMsg == WM_MBUTTONDOWN || uMsg == WM_XBUTTONDOWN) + { + action = GLFW_PRESS; + } + else + action = GLFW_RELEASE; + + for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) + { + if (window->mouseButtons[i] == GLFW_PRESS) + break; + } + + if (i > GLFW_MOUSE_BUTTON_LAST) + SetCapture(hWnd); + + _glfwInputMouseClick(window, button, action, getKeyMods()); + + for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) + { + if (window->mouseButtons[i] == GLFW_PRESS) + break; + } + + if (i > GLFW_MOUSE_BUTTON_LAST) + ReleaseCapture(); + + if (uMsg == WM_XBUTTONDOWN || uMsg == WM_XBUTTONUP) + return TRUE; + + return 0; + } + + case WM_MOUSEMOVE: + { + const int x = GET_X_LPARAM(lParam); + const int y = GET_Y_LPARAM(lParam); + + if (!window->win32.cursorTracked) + { + TRACKMOUSEEVENT tme; + ZeroMemory(&tme, sizeof(tme)); + tme.cbSize = sizeof(tme); + tme.dwFlags = TME_LEAVE; + tme.hwndTrack = window->win32.handle; + TrackMouseEvent(&tme); + + window->win32.cursorTracked = GLFW_TRUE; + _glfwInputCursorEnter(window, GLFW_TRUE); + } + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + const int dx = x - window->win32.lastCursorPosX; + const int dy = y - window->win32.lastCursorPosY; + + if (_glfw.win32.disabledCursorWindow != window) + break; + if (window->rawMouseMotion) + break; + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + } + else + _glfwInputCursorPos(window, x, y); + + window->win32.lastCursorPosX = x; + window->win32.lastCursorPosY = y; + + return 0; + } + + case WM_INPUT: + { + UINT size = 0; + HRAWINPUT ri = (HRAWINPUT) lParam; + RAWINPUT* data = NULL; + int dx, dy; + + if (_glfw.win32.disabledCursorWindow != window) + break; + if (!window->rawMouseMotion) + break; + + GetRawInputData(ri, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER)); + if (size > (UINT) _glfw.win32.rawInputSize) + { + free(_glfw.win32.rawInput); + _glfw.win32.rawInput = calloc(size, 1); + _glfw.win32.rawInputSize = size; + } + + size = _glfw.win32.rawInputSize; + if (GetRawInputData(ri, RID_INPUT, + _glfw.win32.rawInput, &size, + sizeof(RAWINPUTHEADER)) == (UINT) -1) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to retrieve raw input data"); + break; + } + + data = _glfw.win32.rawInput; + if (data->data.mouse.usFlags & MOUSE_MOVE_ABSOLUTE) + { + dx = data->data.mouse.lLastX - window->win32.lastCursorPosX; + dy = data->data.mouse.lLastY - window->win32.lastCursorPosY; + } + else + { + dx = data->data.mouse.lLastX; + dy = data->data.mouse.lLastY; + } + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + + window->win32.lastCursorPosX += dx; + window->win32.lastCursorPosY += dy; + break; + } + + case WM_MOUSELEAVE: + { + window->win32.cursorTracked = GLFW_FALSE; + _glfwInputCursorEnter(window, GLFW_FALSE); + return 0; + } + + case WM_MOUSEWHEEL: + { + _glfwInputScroll(window, 0.0, (SHORT) HIWORD(wParam) / (double) WHEEL_DELTA); + return 0; + } + + case WM_MOUSEHWHEEL: + { + // This message is only sent on Windows Vista and later + // NOTE: The X-axis is inverted for consistency with macOS and X11 + _glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0); + return 0; + } + + case WM_ENTERSIZEMOVE: + case WM_ENTERMENULOOP: + { + if (window->win32.frameAction) + break; + + // HACK: Enable the cursor while the user is moving or + // resizing the window or using the window menu + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + + break; + } + + case WM_EXITSIZEMOVE: + case WM_EXITMENULOOP: + { + if (window->win32.frameAction) + break; + + // HACK: Disable the cursor once the user is done moving or + // resizing the window or using the menu + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + + break; + } + + case WM_SIZE: + { + const int width = LOWORD(lParam); + const int height = HIWORD(lParam); + const GLFWbool iconified = wParam == SIZE_MINIMIZED; + const GLFWbool maximized = wParam == SIZE_MAXIMIZED || + (window->win32.maximized && + wParam != SIZE_RESTORED); + + if (_glfw.win32.disabledCursorWindow == window) + updateClipRect(window); + + if (window->win32.iconified != iconified) + _glfwInputWindowIconify(window, iconified); + + if (window->win32.maximized != maximized) + _glfwInputWindowMaximize(window, maximized); + + if (width != window->win32.width || height != window->win32.height) + { + window->win32.width = width; + window->win32.height = height; + + _glfwInputFramebufferSize(window, width, height); + _glfwInputWindowSize(window, width, height); + } + + if (window->monitor && window->win32.iconified != iconified) + { + if (iconified) + releaseMonitor(window); + else + { + acquireMonitor(window); + fitToMonitor(window); + } + } + + window->win32.iconified = iconified; + window->win32.maximized = maximized; + return 0; + } + + case WM_MOVE: + { + if (_glfw.win32.disabledCursorWindow == window) + updateClipRect(window); + + // NOTE: This cannot use LOWORD/HIWORD recommended by MSDN, as + // those macros do not handle negative window positions correctly + _glfwInputWindowPos(window, + GET_X_LPARAM(lParam), + GET_Y_LPARAM(lParam)); + return 0; + } + + case WM_SIZING: + { + if (window->numer == GLFW_DONT_CARE || + window->denom == GLFW_DONT_CARE) + { + break; + } + + applyAspectRatio(window, (int) wParam, (RECT*) lParam); + return TRUE; + } + + case WM_GETMINMAXINFO: + { + int xoff, yoff; + UINT dpi = USER_DEFAULT_SCREEN_DPI; + MINMAXINFO* mmi = (MINMAXINFO*) lParam; + + if (window->monitor) + break; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + dpi = GetDpiForWindow(window->win32.handle); + + getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), + 0, 0, &xoff, &yoff, dpi); + + if (window->minwidth != GLFW_DONT_CARE && + window->minheight != GLFW_DONT_CARE) + { + mmi->ptMinTrackSize.x = window->minwidth + xoff; + mmi->ptMinTrackSize.y = window->minheight + yoff; + } + + if (window->maxwidth != GLFW_DONT_CARE && + window->maxheight != GLFW_DONT_CARE) + { + mmi->ptMaxTrackSize.x = window->maxwidth + xoff; + mmi->ptMaxTrackSize.y = window->maxheight + yoff; + } + + if (!window->decorated) + { + MONITORINFO mi; + const HMONITOR mh = MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST); + + ZeroMemory(&mi, sizeof(mi)); + mi.cbSize = sizeof(mi); + GetMonitorInfo(mh, &mi); + + mmi->ptMaxPosition.x = mi.rcWork.left - mi.rcMonitor.left; + mmi->ptMaxPosition.y = mi.rcWork.top - mi.rcMonitor.top; + mmi->ptMaxSize.x = mi.rcWork.right - mi.rcWork.left; + mmi->ptMaxSize.y = mi.rcWork.bottom - mi.rcWork.top; + } + + return 0; + } + + case WM_PAINT: + { + _glfwInputWindowDamage(window); + break; + } + + case WM_ERASEBKGND: + { + return TRUE; + } + + case WM_NCACTIVATE: + case WM_NCPAINT: + { + // Prevent title bar from being drawn after restoring a minimized + // undecorated window + if (!window->decorated) + return TRUE; + + break; + } + + case WM_DWMCOMPOSITIONCHANGED: + case WM_DWMCOLORIZATIONCOLORCHANGED: + { + if (window->win32.transparent) + updateFramebufferTransparency(window); + return 0; + } + + case WM_GETDPISCALEDSIZE: + { + if (window->win32.scaleToMonitor) + break; + + // Adjust the window size to keep the content area size constant + if (_glfwIsWindows10CreatorsUpdateOrGreaterWin32()) + { + RECT source = {0}, target = {0}; + SIZE* size = (SIZE*) lParam; + + AdjustWindowRectExForDpi(&source, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + AdjustWindowRectExForDpi(&target, getWindowStyle(window), + FALSE, getWindowExStyle(window), + LOWORD(wParam)); + + size->cx += (target.right - target.left) - + (source.right - source.left); + size->cy += (target.bottom - target.top) - + (source.bottom - source.top); + return TRUE; + } + + break; + } + + case WM_DPICHANGED: + { + const float xscale = HIWORD(wParam) / (float) USER_DEFAULT_SCREEN_DPI; + const float yscale = LOWORD(wParam) / (float) USER_DEFAULT_SCREEN_DPI; + + // Resize windowed mode windows that either permit rescaling or that + // need it to compensate for non-client area scaling + if (!window->monitor && + (window->win32.scaleToMonitor || + _glfwIsWindows10CreatorsUpdateOrGreaterWin32())) + { + RECT* suggested = (RECT*) lParam; + SetWindowPos(window->win32.handle, HWND_TOP, + suggested->left, + suggested->top, + suggested->right - suggested->left, + suggested->bottom - suggested->top, + SWP_NOACTIVATE | SWP_NOZORDER); + } + + _glfwInputWindowContentScale(window, xscale, yscale); + break; + } + + case WM_SETCURSOR: + { + if (LOWORD(lParam) == HTCLIENT) + { + updateCursorImage(window); + return TRUE; + } + + break; + } + + case WM_DROPFILES: + { + HDROP drop = (HDROP) wParam; + POINT pt; + int i; + + const int count = DragQueryFileW(drop, 0xffffffff, NULL, 0); + char** paths = calloc(count, sizeof(char*)); + + // Move the mouse to the position of the drop + DragQueryPoint(drop, &pt); + _glfwInputCursorPos(window, pt.x, pt.y); + + for (i = 0; i < count; i++) + { + const UINT length = DragQueryFileW(drop, i, NULL, 0); + WCHAR* buffer = calloc((size_t) length + 1, sizeof(WCHAR)); + + DragQueryFileW(drop, i, buffer, length + 1); + paths[i] = _glfwCreateUTF8FromWideStringWin32(buffer); + + free(buffer); + } + + _glfwInputDrop(window, count, (const char**) paths); + + for (i = 0; i < count; i++) + free(paths[i]); + free(paths); + + DragFinish(drop); + return 0; + } + } + + return DefWindowProcW(hWnd, uMsg, wParam, lParam); +} + +// Creates the GLFW window +// +static int createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + int xpos, ypos, fullWidth, fullHeight; + WCHAR* wideTitle; + DWORD style = getWindowStyle(window); + DWORD exStyle = getWindowExStyle(window); + + if (window->monitor) + { + GLFWvidmode mode; + + // NOTE: This window placement is temporary and approximate, as the + // correct position and size cannot be known until the monitor + // video mode has been picked in _glfwSetVideoModeWin32 + _glfwPlatformGetMonitorPos(window->monitor, &xpos, &ypos); + _glfwPlatformGetVideoMode(window->monitor, &mode); + fullWidth = mode.width; + fullHeight = mode.height; + } + else + { + xpos = CW_USEDEFAULT; + ypos = CW_USEDEFAULT; + + window->win32.maximized = wndconfig->maximized; + if (wndconfig->maximized) + style |= WS_MAXIMIZE; + + getFullWindowSize(style, exStyle, + wndconfig->width, wndconfig->height, + &fullWidth, &fullHeight, + USER_DEFAULT_SCREEN_DPI); + } + + wideTitle = _glfwCreateWideStringFromUTF8Win32(wndconfig->title); + if (!wideTitle) + return GLFW_FALSE; + + window->win32.handle = CreateWindowExW(exStyle, + _GLFW_WNDCLASSNAME, + wideTitle, + style, + xpos, ypos, + fullWidth, fullHeight, + NULL, // No parent window + NULL, // No window menu + GetModuleHandleW(NULL), + (LPVOID) wndconfig); + + free(wideTitle); + + if (!window->win32.handle) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create window"); + return GLFW_FALSE; + } + + SetPropW(window->win32.handle, L"GLFW", window); + + if (IsWindows7OrGreater()) + { + ChangeWindowMessageFilterEx(window->win32.handle, + WM_DROPFILES, MSGFLT_ALLOW, NULL); + ChangeWindowMessageFilterEx(window->win32.handle, + WM_COPYDATA, MSGFLT_ALLOW, NULL); + ChangeWindowMessageFilterEx(window->win32.handle, + WM_COPYGLOBALDATA, MSGFLT_ALLOW, NULL); + } + + window->win32.scaleToMonitor = wndconfig->scaleToMonitor; + + // Adjust window rect to account for DPI scaling of the window frame and + // (if enabled) DPI scaling of the content area + // This cannot be done until we know what monitor the window was placed on + if (!window->monitor) + { + RECT rect = { 0, 0, wndconfig->width, wndconfig->height }; + WINDOWPLACEMENT wp = { sizeof(wp) }; + + if (wndconfig->scaleToMonitor) + { + float xscale, yscale; + _glfwPlatformGetWindowContentScale(window, &xscale, &yscale); + rect.right = (int) (rect.right * xscale); + rect.bottom = (int) (rect.bottom * yscale); + } + + ClientToScreen(window->win32.handle, (POINT*) &rect.left); + ClientToScreen(window->win32.handle, (POINT*) &rect.right); + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, + GetDpiForWindow(window->win32.handle)); + } + else + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + + // Only update the restored window rect as the window may be maximized + GetWindowPlacement(window->win32.handle, &wp); + wp.rcNormalPosition = rect; + wp.showCmd = SW_HIDE; + SetWindowPlacement(window->win32.handle, &wp); + } + + DragAcceptFiles(window->win32.handle, TRUE); + + if (fbconfig->transparent) + { + updateFramebufferTransparency(window); + window->win32.transparent = GLFW_TRUE; + } + + _glfwPlatformGetWindowSize(window, &window->win32.width, &window->win32.height); + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Registers the GLFW window class +// +GLFWbool _glfwRegisterWindowClassWin32(void) +{ + WNDCLASSEXW wc; + + ZeroMemory(&wc, sizeof(wc)); + wc.cbSize = sizeof(wc); + wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; + wc.lpfnWndProc = (WNDPROC) windowProc; + wc.hInstance = GetModuleHandleW(NULL); + wc.hCursor = LoadCursorW(NULL, IDC_ARROW); + wc.lpszClassName = _GLFW_WNDCLASSNAME; + + // Load user-provided icon if available + wc.hIcon = LoadImageW(GetModuleHandleW(NULL), + L"GLFW_ICON", IMAGE_ICON, + 0, 0, LR_DEFAULTSIZE | LR_SHARED); + if (!wc.hIcon) + { + // No user-provided icon found, load default icon + wc.hIcon = LoadImageW(NULL, + IDI_APPLICATION, IMAGE_ICON, + 0, 0, LR_DEFAULTSIZE | LR_SHARED); + } + + if (!RegisterClassExW(&wc)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to register window class"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Unregisters the GLFW window class +// +void _glfwUnregisterWindowClassWin32(void) +{ + UnregisterClassW(_GLFW_WNDCLASSNAME, GetModuleHandleW(NULL)); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformCreateWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + if (!createNativeWindow(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitWGL()) + return GLFW_FALSE; + if (!_glfwCreateContextWGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + } + + if (window->monitor) + { + _glfwPlatformShowWindow(window); + _glfwPlatformFocusWindow(window); + acquireMonitor(window); + fitToMonitor(window); + } + + return GLFW_TRUE; +} + +void _glfwPlatformDestroyWindow(_GLFWwindow* window) +{ + if (window->monitor) + releaseMonitor(window); + + if (window->context.destroy) + window->context.destroy(window); + + if (_glfw.win32.disabledCursorWindow == window) + _glfw.win32.disabledCursorWindow = NULL; + + if (window->win32.handle) + { + RemovePropW(window->win32.handle, L"GLFW"); + DestroyWindow(window->win32.handle); + window->win32.handle = NULL; + } + + if (window->win32.bigIcon) + DestroyIcon(window->win32.bigIcon); + + if (window->win32.smallIcon) + DestroyIcon(window->win32.smallIcon); +} + +void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) +{ + WCHAR* wideTitle = _glfwCreateWideStringFromUTF8Win32(title); + if (!wideTitle) + return; + + SetWindowTextW(window->win32.handle, wideTitle); + free(wideTitle); +} + +void _glfwPlatformSetWindowIcon(_GLFWwindow* window, + int count, const GLFWimage* images) +{ + HICON bigIcon = NULL, smallIcon = NULL; + + if (count) + { + const GLFWimage* bigImage = chooseImage(count, images, + GetSystemMetrics(SM_CXICON), + GetSystemMetrics(SM_CYICON)); + const GLFWimage* smallImage = chooseImage(count, images, + GetSystemMetrics(SM_CXSMICON), + GetSystemMetrics(SM_CYSMICON)); + + bigIcon = createIcon(bigImage, 0, 0, GLFW_TRUE); + smallIcon = createIcon(smallImage, 0, 0, GLFW_TRUE); + } + else + { + bigIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICON); + smallIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICONSM); + } + + SendMessage(window->win32.handle, WM_SETICON, ICON_BIG, (LPARAM) bigIcon); + SendMessage(window->win32.handle, WM_SETICON, ICON_SMALL, (LPARAM) smallIcon); + + if (window->win32.bigIcon) + DestroyIcon(window->win32.bigIcon); + + if (window->win32.smallIcon) + DestroyIcon(window->win32.smallIcon); + + if (count) + { + window->win32.bigIcon = bigIcon; + window->win32.smallIcon = smallIcon; + } +} + +void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) +{ + POINT pos = { 0, 0 }; + ClientToScreen(window->win32.handle, &pos); + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = pos.y; +} + +void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) +{ + RECT rect = { xpos, ypos, xpos, ypos }; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0, + SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); +} + +void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) +{ + RECT area; + GetClientRect(window->win32.handle, &area); + + if (width) + *width = area.right; + if (height) + *height = area.bottom; +} + +void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) +{ + if (window->monitor) + { + if (window->monitor->window == window) + { + acquireMonitor(window); + fitToMonitor(window); + } + } + else + { + RECT rect = { 0, 0, width, height }; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, HWND_TOP, + 0, 0, rect.right - rect.left, rect.bottom - rect.top, + SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); + } +} + +void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + RECT area; + + if ((minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) && + (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)) + { + return; + } + + GetWindowRect(window->win32.handle, &area); + MoveWindow(window->win32.handle, + area.left, area.top, + area.right - area.left, + area.bottom - area.top, TRUE); +} + +void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, int numer, int denom) +{ + RECT area; + + if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) + return; + + GetWindowRect(window->win32.handle, &area); + applyAspectRatio(window, WMSZ_BOTTOMRIGHT, &area); + MoveWindow(window->win32.handle, + area.left, area.top, + area.right - area.left, + area.bottom - area.top, TRUE); +} + +void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, int* width, int* height) +{ + _glfwPlatformGetWindowSize(window, width, height); +} + +void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + RECT rect; + int width, height; + + _glfwPlatformGetWindowSize(window, &width, &height); + SetRect(&rect, 0, 0, width, height); + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + if (left) + *left = -rect.left; + if (top) + *top = -rect.top; + if (right) + *right = rect.right - width; + if (bottom) + *bottom = rect.bottom - height; +} + +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale) +{ + const HANDLE handle = MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST); + _glfwGetMonitorContentScaleWin32(handle, xscale, yscale); +} + +void _glfwPlatformIconifyWindow(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_MINIMIZE); +} + +void _glfwPlatformRestoreWindow(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_RESTORE); +} + +void _glfwPlatformMaximizeWindow(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_MAXIMIZE); +} + +void _glfwPlatformShowWindow(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_SHOWNA); +} + +void _glfwPlatformHideWindow(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_HIDE); +} + +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ + FlashWindow(window->win32.handle, TRUE); +} + +void _glfwPlatformFocusWindow(_GLFWwindow* window) +{ + BringWindowToTop(window->win32.handle); + SetForegroundWindow(window->win32.handle); + SetFocus(window->win32.handle); +} + +void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (window->monitor == monitor) + { + if (monitor) + { + if (monitor->window == window) + { + acquireMonitor(window); + fitToMonitor(window); + } + } + else + { + RECT rect = { xpos, ypos, xpos + width, ypos + height }; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, HWND_TOP, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + SWP_NOCOPYBITS | SWP_NOACTIVATE | SWP_NOZORDER); + } + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + if (window->monitor) + { + MONITORINFO mi = { sizeof(mi) }; + UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS; + + if (window->decorated) + { + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + style &= ~WS_OVERLAPPEDWINDOW; + style |= getWindowStyle(window); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + flags |= SWP_FRAMECHANGED; + } + + acquireMonitor(window); + + GetMonitorInfo(window->monitor->win32.handle, &mi); + SetWindowPos(window->win32.handle, HWND_TOPMOST, + mi.rcMonitor.left, + mi.rcMonitor.top, + mi.rcMonitor.right - mi.rcMonitor.left, + mi.rcMonitor.bottom - mi.rcMonitor.top, + flags); + } + else + { + HWND after; + RECT rect = { xpos, ypos, xpos + width, ypos + height }; + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS; + + if (window->decorated) + { + style &= ~WS_POPUP; + style |= getWindowStyle(window); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + + flags |= SWP_FRAMECHANGED; + } + + if (window->floating) + after = HWND_TOPMOST; + else + after = HWND_NOTOPMOST; + + if (_glfwIsWindows10AnniversaryUpdateOrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, after, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + flags); + } +} + +int _glfwPlatformWindowFocused(_GLFWwindow* window) +{ + return window->win32.handle == GetActiveWindow(); +} + +int _glfwPlatformWindowIconified(_GLFWwindow* window) +{ + return IsIconic(window->win32.handle); +} + +int _glfwPlatformWindowVisible(_GLFWwindow* window) +{ + return IsWindowVisible(window->win32.handle); +} + +int _glfwPlatformWindowMaximized(_GLFWwindow* window) +{ + return IsZoomed(window->win32.handle); +} + +int _glfwPlatformWindowHovered(_GLFWwindow* window) +{ + return cursorInContentArea(window); +} + +int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) +{ + BOOL composition, opaque; + DWORD color; + + if (!window->win32.transparent) + return GLFW_FALSE; + + if (!IsWindowsVistaOrGreater()) + return GLFW_FALSE; + + if (FAILED(DwmIsCompositionEnabled(&composition)) || !composition) + return GLFW_FALSE; + + if (!IsWindows8OrGreater()) + { + // HACK: Disable framebuffer transparency on Windows 7 when the + // colorization color is opaque, because otherwise the window + // contents is blended additively with the previous frame instead + // of replacing it + if (FAILED(DwmGetColorizationColor(&color, &opaque)) || opaque) + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) +{ + updateWindowStyles(window); +} + +void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) +{ + updateWindowStyles(window); +} + +void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) +{ + const HWND after = enabled ? HWND_TOPMOST : HWND_NOTOPMOST; + SetWindowPos(window->win32.handle, after, 0, 0, 0, 0, + SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); +} + +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window) +{ + BYTE alpha; + DWORD flags; + + if ((GetWindowLongW(window->win32.handle, GWL_EXSTYLE) & WS_EX_LAYERED) && + GetLayeredWindowAttributes(window->win32.handle, NULL, &alpha, &flags)) + { + if (flags & LWA_ALPHA) + return alpha / 255.f; + } + + return 1.f; +} + +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity) +{ + if (opacity < 1.f) + { + const BYTE alpha = (BYTE) (255 * opacity); + DWORD style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + style |= WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style); + SetLayeredWindowAttributes(window->win32.handle, 0, alpha, LWA_ALPHA); + } + else + { + DWORD style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + style &= ~WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style); + } +} + +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled) +{ + if (_glfw.win32.disabledCursorWindow != window) + return; + + if (enabled) + enableRawMouseMotion(window); + else + disableRawMouseMotion(window); +} + +GLFWbool _glfwPlatformRawMouseMotionSupported(void) +{ + return GLFW_TRUE; +} + +void _glfwPlatformPollEvents(void) +{ + MSG msg; + HWND handle; + _GLFWwindow* window; + + while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) + { + if (msg.message == WM_QUIT) + { + // NOTE: While GLFW does not itself post WM_QUIT, other processes + // may post it to this one, for example Task Manager + // HACK: Treat WM_QUIT as a close on all windows + + window = _glfw.windowListHead; + while (window) + { + _glfwInputWindowCloseRequest(window); + window = window->next; + } + } + else + { + TranslateMessage(&msg); + DispatchMessageW(&msg); + } + } + + // HACK: Release modifier keys that the system did not emit KEYUP for + // NOTE: Shift keys on Windows tend to "stick" when both are pressed as + // no key up message is generated by the first key release + // NOTE: Windows key is not reported as released by the Win+V hotkey + // Other Win hotkeys are handled implicitly by _glfwInputWindowFocus + // because they change the input focus + // NOTE: The other half of this is in the WM_*KEY* handler in windowProc + handle = GetActiveWindow(); + if (handle) + { + window = GetPropW(handle, L"GLFW"); + if (window) + { + int i; + const int keys[4][2] = + { + { VK_LSHIFT, GLFW_KEY_LEFT_SHIFT }, + { VK_RSHIFT, GLFW_KEY_RIGHT_SHIFT }, + { VK_LWIN, GLFW_KEY_LEFT_SUPER }, + { VK_RWIN, GLFW_KEY_RIGHT_SUPER } + }; + + for (i = 0; i < 4; i++) + { + const int vk = keys[i][0]; + const int key = keys[i][1]; + const int scancode = _glfw.win32.scancodes[key]; + + if ((GetKeyState(vk) & 0x8000)) + continue; + if (window->keys[key] != GLFW_PRESS) + continue; + + _glfwInputKey(window, key, scancode, GLFW_RELEASE, getKeyMods()); + } + } + } + + window = _glfw.win32.disabledCursorWindow; + if (window) + { + int width, height; + _glfwPlatformGetWindowSize(window, &width, &height); + + // NOTE: Re-center the cursor only if it has moved since the last call, + // to avoid breaking glfwWaitEvents with WM_MOUSEMOVE + if (window->win32.lastCursorPosX != width / 2 || + window->win32.lastCursorPosY != height / 2) + { + _glfwPlatformSetCursorPos(window, width / 2, height / 2); + } + } +} + +void _glfwPlatformWaitEvents(void) +{ + WaitMessage(); + + _glfwPlatformPollEvents(); +} + +void _glfwPlatformWaitEventsTimeout(double timeout) +{ + MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS); + + _glfwPlatformPollEvents(); +} + +void _glfwPlatformPostEmptyEvent(void) +{ + PostMessage(_glfw.win32.helperWindowHandle, WM_NULL, 0, 0); +} + +void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) +{ + POINT pos; + + if (GetCursorPos(&pos)) + { + ScreenToClient(window->win32.handle, &pos); + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = pos.y; + } +} + +void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos) +{ + POINT pos = { (int) xpos, (int) ypos }; + + // Store the new position so it can be recognized later + window->win32.lastCursorPosX = pos.x; + window->win32.lastCursorPosY = pos.y; + + ClientToScreen(window->win32.handle, &pos); + SetCursorPos(pos.x, pos.y); +} + +void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) +{ + if (mode == GLFW_CURSOR_DISABLED) + { + if (_glfwPlatformWindowFocused(window)) + disableCursor(window); + } + else if (_glfw.win32.disabledCursorWindow == window) + enableCursor(window); + else if (cursorInContentArea(window)) + updateCursorImage(window); +} + +const char* _glfwPlatformGetScancodeName(int scancode) +{ + if (scancode < 0 || scancode > (KF_EXTENDED | 0xff) || + _glfw.win32.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode"); + return NULL; + } + + return _glfw.win32.keynames[_glfw.win32.keycodes[scancode]]; +} + +int _glfwPlatformGetKeyScancode(int key) +{ + return _glfw.win32.scancodes[key]; +} + +int _glfwPlatformCreateCursor(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + cursor->win32.handle = (HCURSOR) createIcon(image, xhot, yhot, GLFW_FALSE); + if (!cursor->win32.handle) + return GLFW_FALSE; + + return GLFW_TRUE; +} + +int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) +{ + int id = 0; + + if (shape == GLFW_ARROW_CURSOR) + id = OCR_NORMAL; + else if (shape == GLFW_IBEAM_CURSOR) + id = OCR_IBEAM; + else if (shape == GLFW_CROSSHAIR_CURSOR) + id = OCR_CROSS; + else if (shape == GLFW_HAND_CURSOR) + id = OCR_HAND; + else if (shape == GLFW_HRESIZE_CURSOR) + id = OCR_SIZEWE; + else if (shape == GLFW_VRESIZE_CURSOR) + id = OCR_SIZENS; + else + return GLFW_FALSE; + + cursor->win32.handle = LoadImageW(NULL, + MAKEINTRESOURCEW(id), IMAGE_CURSOR, 0, 0, + LR_DEFAULTSIZE | LR_SHARED); + if (!cursor->win32.handle) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create standard cursor"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) +{ + if (cursor->win32.handle) + DestroyIcon((HICON) cursor->win32.handle); +} + +void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) +{ + if (cursorInContentArea(window)) + updateCursorImage(window); +} + +void _glfwPlatformSetClipboardString(const char* string) +{ + int characterCount; + HANDLE object; + WCHAR* buffer; + + characterCount = MultiByteToWideChar(CP_UTF8, 0, string, -1, NULL, 0); + if (!characterCount) + return; + + object = GlobalAlloc(GMEM_MOVEABLE, characterCount * sizeof(WCHAR)); + if (!object) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to allocate global handle for clipboard"); + return; + } + + buffer = GlobalLock(object); + if (!buffer) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to lock global handle"); + GlobalFree(object); + return; + } + + MultiByteToWideChar(CP_UTF8, 0, string, -1, buffer, characterCount); + GlobalUnlock(object); + + if (!OpenClipboard(_glfw.win32.helperWindowHandle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to open clipboard"); + GlobalFree(object); + return; + } + + EmptyClipboard(); + SetClipboardData(CF_UNICODETEXT, object); + CloseClipboard(); +} + +const char* _glfwPlatformGetClipboardString(void) +{ + HANDLE object; + WCHAR* buffer; + + if (!OpenClipboard(_glfw.win32.helperWindowHandle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to open clipboard"); + return NULL; + } + + object = GetClipboardData(CF_UNICODETEXT); + if (!object) + { + _glfwInputErrorWin32(GLFW_FORMAT_UNAVAILABLE, + "Win32: Failed to convert clipboard to string"); + CloseClipboard(); + return NULL; + } + + buffer = GlobalLock(object); + if (!buffer) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to lock global handle"); + CloseClipboard(); + return NULL; + } + + free(_glfw.win32.clipboardString); + _glfw.win32.clipboardString = _glfwCreateUTF8FromWideStringWin32(buffer); + + GlobalUnlock(object); + CloseClipboard(); + + return _glfw.win32.clipboardString; +} + +void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) +{ + if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_win32_surface) + return; + + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_KHR_win32_surface"; +} + +int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR + vkGetPhysicalDeviceWin32PresentationSupportKHR = + (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR"); + if (!vkGetPhysicalDeviceWin32PresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); + return GLFW_FALSE; + } + + return vkGetPhysicalDeviceWin32PresentationSupportKHR(device, queuefamily); +} + +VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + VkResult err; + VkWin32SurfaceCreateInfoKHR sci; + PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; + + vkCreateWin32SurfaceKHR = (PFN_vkCreateWin32SurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateWin32SurfaceKHR"); + if (!vkCreateWin32SurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; + sci.hinstance = GetModuleHandle(NULL); + sci.hwnd = window->win32.handle; + + err = vkCreateWin32SurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return window->win32.handle; +} + diff --git a/external/GLFW/src/window.c b/external/glfw-3.3.4/src/window.c similarity index 85% rename from external/GLFW/src/window.c rename to external/glfw-3.3.4/src/window.c index 5784557..44de03b 100644 --- a/external/GLFW/src/window.c +++ b/external/glfw-3.3.4/src/window.c @@ -2,7 +2,7 @@ // GLFW 3.3 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // Copyright (c) 2012 Torsten Walluhn // // This software is provided 'as-is', without any express or implied @@ -25,6 +25,8 @@ // distribution. // //======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== #include "internal.h" @@ -38,6 +40,8 @@ ////// GLFW event API ////// ////////////////////////////////////////////////////////////////////////// +// Notifies shared code that a window has lost or received input focus +// void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused) { if (window->callbacks.focus) @@ -64,42 +68,68 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused) } } +// Notifies shared code that a window has moved +// The position is specified in content area relative screen coordinates +// void _glfwInputWindowPos(_GLFWwindow* window, int x, int y) { if (window->callbacks.pos) window->callbacks.pos((GLFWwindow*) window, x, y); } +// Notifies shared code that a window has been resized +// The size is specified in screen coordinates +// void _glfwInputWindowSize(_GLFWwindow* window, int width, int height) { if (window->callbacks.size) window->callbacks.size((GLFWwindow*) window, width, height); } +// Notifies shared code that a window has been iconified or restored +// void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified) { if (window->callbacks.iconify) window->callbacks.iconify((GLFWwindow*) window, iconified); } +// Notifies shared code that a window has been maximized or restored +// void _glfwInputWindowMaximize(_GLFWwindow* window, GLFWbool maximized) { if (window->callbacks.maximize) window->callbacks.maximize((GLFWwindow*) window, maximized); } +// Notifies shared code that a window framebuffer has been resized +// The size is specified in pixels +// void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height) { if (window->callbacks.fbsize) window->callbacks.fbsize((GLFWwindow*) window, width, height); } +// Notifies shared code that a window content scale has changed +// The scale is specified as the ratio between the current and default DPI +// +void _glfwInputWindowContentScale(_GLFWwindow* window, float xscale, float yscale) +{ + if (window->callbacks.scale) + window->callbacks.scale((GLFWwindow*) window, xscale, yscale); +} + +// Notifies shared code that the window contents needs updating +// void _glfwInputWindowDamage(_GLFWwindow* window) { if (window->callbacks.refresh) window->callbacks.refresh((GLFWwindow*) window); } +// Notifies shared code that the user wishes to close a window +// void _glfwInputWindowCloseRequest(_GLFWwindow* window) { window->shouldClose = GLFW_TRUE; @@ -108,12 +138,13 @@ void _glfwInputWindowCloseRequest(_GLFWwindow* window) window->callbacks.close((GLFWwindow*) window); } -void _glfwInputWindowMonitorChange(_GLFWwindow* window, _GLFWmonitor* monitor) +// Notifies shared code that a window has changed its desired monitor +// +void _glfwInputWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor) { window->monitor = monitor; } - ////////////////////////////////////////////////////////////////////////// ////// GLFW public API ////// ////////////////////////////////////////////////////////////////////////// @@ -127,7 +158,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, _GLFWctxconfig ctxconfig; _GLFWwndconfig wndconfig; _GLFWwindow* window; - _GLFWwindow* previous; assert(title != NULL); assert(width >= 0); @@ -153,16 +183,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, wndconfig.title = title; ctxconfig.share = (_GLFWwindow*) share; - if (ctxconfig.share) - { - if (ctxconfig.client == GLFW_NO_API || - ctxconfig.share->context.client == GLFW_NO_API) - { - _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); - return NULL; - } - } - if (!_glfwIsValidContextConfig(&ctxconfig)) return NULL; @@ -182,6 +202,7 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, window->decorated = wndconfig.decorated; window->autoIconify = wndconfig.autoIconify; window->floating = wndconfig.floating; + window->focusOnShow = wndconfig.focusOnShow; window->cursorMode = GLFW_CURSOR_NORMAL; window->minwidth = GLFW_DONT_CARE; @@ -191,36 +212,28 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, window->numer = GLFW_DONT_CARE; window->denom = GLFW_DONT_CARE; - // Save the currently current context so it can be restored later - previous = _glfwPlatformGetTls(&_glfw.contextSlot); - if (ctxconfig.client != GLFW_NO_API) - glfwMakeContextCurrent(NULL); - // Open the actual window and create its context if (!_glfwPlatformCreateWindow(window, &wndconfig, &ctxconfig, &fbconfig)) { - glfwMakeContextCurrent((GLFWwindow*) previous); glfwDestroyWindow((GLFWwindow*) window); return NULL; } if (ctxconfig.client != GLFW_NO_API) { - window->context.makeCurrent(window); - - // Retrieve the actual (as opposed to requested) context attributes - if (!_glfwRefreshContextAttribs(&ctxconfig)) + if (!_glfwRefreshContextAttribs(window, &ctxconfig)) { - glfwMakeContextCurrent((GLFWwindow*) previous); glfwDestroyWindow((GLFWwindow*) window); return NULL; } - - // Restore the previously current context (or NULL) - glfwMakeContextCurrent((GLFWwindow*) previous); } - if (!window->monitor) + if (window->monitor) + { + if (wndconfig.centerCursor) + _glfwCenterCursorInContentArea(window); + } + else { if (wndconfig.visible) { @@ -246,11 +259,13 @@ void glfwDefaultWindowHints(void) // The default is a focused, visible, resizable window with decorations memset(&_glfw.hints.window, 0, sizeof(_glfw.hints.window)); - _glfw.hints.window.resizable = GLFW_TRUE; - _glfw.hints.window.visible = GLFW_TRUE; - _glfw.hints.window.decorated = GLFW_TRUE; - _glfw.hints.window.focused = GLFW_TRUE; - _glfw.hints.window.autoIconify = GLFW_TRUE; + _glfw.hints.window.resizable = GLFW_TRUE; + _glfw.hints.window.visible = GLFW_TRUE; + _glfw.hints.window.decorated = GLFW_TRUE; + _glfw.hints.window.focused = GLFW_TRUE; + _glfw.hints.window.autoIconify = GLFW_TRUE; + _glfw.hints.window.centerCursor = GLFW_TRUE; + _glfw.hints.window.focusOnShow = GLFW_TRUE; // The default is 24 bits of color, 24 bits of depth and 8 bits of stencil, // double buffered @@ -315,7 +330,7 @@ GLFWAPI void glfwWindowHint(int hint, int value) case GLFW_DOUBLEBUFFER: _glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE; return; - case GLFW_TRANSPARENT: + case GLFW_TRANSPARENT_FRAMEBUFFER: _glfw.hints.framebuffer.transparent = value ? GLFW_TRUE : GLFW_FALSE; return; case GLFW_SAMPLES: @@ -348,15 +363,18 @@ GLFWAPI void glfwWindowHint(int hint, int value) case GLFW_COCOA_RETINA_FRAMEBUFFER: _glfw.hints.window.ns.retina = value ? GLFW_TRUE : GLFW_FALSE; return; - case GLFW_COCOA_FRAME_AUTOSAVE: - _glfw.hints.window.ns.frame = value ? GLFW_TRUE : GLFW_FALSE; - return; case GLFW_COCOA_GRAPHICS_SWITCHING: _glfw.hints.context.nsgl.offline = value ? GLFW_TRUE : GLFW_FALSE; return; + case GLFW_SCALE_TO_MONITOR: + _glfw.hints.window.scaleToMonitor = value ? GLFW_TRUE : GLFW_FALSE; + return; case GLFW_CENTER_CURSOR: _glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE; return; + case GLFW_FOCUS_ON_SHOW: + _glfw.hints.window.focusOnShow = value ? GLFW_TRUE : GLFW_FALSE; + return; case GLFW_CLIENT_API: _glfw.hints.context.client = value; return; @@ -395,6 +413,31 @@ GLFWAPI void glfwWindowHint(int hint, int value) _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint 0x%08X", hint); } +GLFWAPI void glfwWindowHintString(int hint, const char* value) +{ + assert(value != NULL); + + _GLFW_REQUIRE_INIT(); + + switch (hint) + { + case GLFW_COCOA_FRAME_NAME: + strncpy(_glfw.hints.window.ns.frameName, value, + sizeof(_glfw.hints.window.ns.frameName) - 1); + return; + case GLFW_X11_CLASS_NAME: + strncpy(_glfw.hints.window.x11.className, value, + sizeof(_glfw.hints.window.x11.className) - 1); + return; + case GLFW_X11_INSTANCE_NAME: + strncpy(_glfw.hints.window.x11.instanceName, value, + sizeof(_glfw.hints.window.x11.instanceName) - 1); + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint string 0x%08X", hint); +} + GLFWAPI void glfwDestroyWindow(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; @@ -632,6 +675,49 @@ GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, _glfwPlatformGetWindowFrameSize(window, left, top, right, bottom); } +GLFWAPI void glfwGetWindowContentScale(GLFWwindow* handle, + float* xscale, float* yscale) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (xscale) + *xscale = 0.f; + if (yscale) + *yscale = 0.f; + + _GLFW_REQUIRE_INIT(); + _glfwPlatformGetWindowContentScale(window, xscale, yscale); +} + +GLFWAPI float glfwGetWindowOpacity(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(1.f); + return _glfwPlatformGetWindowOpacity(window); +} + +GLFWAPI void glfwSetWindowOpacity(GLFWwindow* handle, float opacity) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + assert(opacity == opacity); + assert(opacity >= 0.f); + assert(opacity <= 1.f); + + _GLFW_REQUIRE_INIT(); + + if (opacity != opacity || opacity < 0.f || opacity > 1.f) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid window opacity %f", opacity); + return; + } + + _glfwPlatformSetWindowOpacity(window, opacity); +} + GLFWAPI void glfwIconifyWindow(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; @@ -674,7 +760,9 @@ GLFWAPI void glfwShowWindow(GLFWwindow* handle) return; _glfwPlatformShowWindow(window); - _glfwPlatformFocusWindow(window); + + if (window->focusOnShow) + _glfwPlatformFocusWindow(window); } GLFWAPI void glfwRequestWindowAttention(GLFWwindow* handle) @@ -727,7 +815,11 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) return _glfwPlatformWindowVisible(window); case GLFW_MAXIMIZED: return _glfwPlatformWindowMaximized(window); - case GLFW_TRANSPARENT: + case GLFW_HOVERED: + return _glfwPlatformWindowHovered(window); + case GLFW_FOCUS_ON_SHOW: + return window->focusOnShow; + case GLFW_TRANSPARENT_FRAMEBUFFER: return _glfwPlatformFramebufferTransparent(window); case GLFW_RESIZABLE: return window->resizable; @@ -803,6 +895,8 @@ GLFWAPI void glfwSetWindowAttrib(GLFWwindow* handle, int attrib, int value) if (!window->monitor) _glfwPlatformSetWindowFloating(window, value); } + else if (attrib == GLFW_FOCUS_ON_SHOW) + window->focusOnShow = value; else _glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib); } @@ -961,6 +1055,17 @@ GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* handle return cbfun; } +GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow* handle, + GLFWwindowcontentscalefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP_POINTERS(window->callbacks.scale, cbfun); + return cbfun; +} + GLFWAPI void glfwPollEvents(void) { _GLFW_REQUIRE_INIT(); @@ -970,10 +1075,6 @@ GLFWAPI void glfwPollEvents(void) GLFWAPI void glfwWaitEvents(void) { _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - _glfwPlatformWaitEvents(); } @@ -996,10 +1097,6 @@ GLFWAPI void glfwWaitEventsTimeout(double timeout) GLFWAPI void glfwPostEmptyEvent(void) { _GLFW_REQUIRE_INIT(); - - if (!_glfw.windowListHead) - return; - _glfwPlatformPostEmptyEvent(); } diff --git a/external/glfw-3.3.4/src/wl_init.c b/external/glfw-3.3.4/src/wl_init.c new file mode 100644 index 0000000..49e7cc5 --- /dev/null +++ b/external/glfw-3.3.4/src/wl_init.c @@ -0,0 +1,1324 @@ +//======================================================================== +// GLFW 3.3 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +static inline int min(int n1, int n2) +{ + return n1 < n2 ? n1 : n2; +} + +static _GLFWwindow* findWindowFromDecorationSurface(struct wl_surface* surface, + int* which) +{ + int focus; + _GLFWwindow* window = _glfw.windowListHead; + if (!which) + which = &focus; + while (window) + { + if (surface == window->wl.decorations.top.surface) + { + *which = topDecoration; + break; + } + if (surface == window->wl.decorations.left.surface) + { + *which = leftDecoration; + break; + } + if (surface == window->wl.decorations.right.surface) + { + *which = rightDecoration; + break; + } + if (surface == window->wl.decorations.bottom.surface) + { + *which = bottomDecoration; + break; + } + window = window->next; + } + return window; +} + +static void pointerHandleEnter(void* data, + struct wl_pointer* pointer, + uint32_t serial, + struct wl_surface* surface, + wl_fixed_t sx, + wl_fixed_t sy) +{ + // Happens in the case we just destroyed the surface. + if (!surface) + return; + + int focus = 0; + _GLFWwindow* window = wl_surface_get_user_data(surface); + if (!window) + { + window = findWindowFromDecorationSurface(surface, &focus); + if (!window) + return; + } + + window->wl.decorations.focus = focus; + _glfw.wl.serial = serial; + _glfw.wl.pointerFocus = window; + + window->wl.hovered = GLFW_TRUE; + + _glfwPlatformSetCursor(window, window->wl.currentCursor); + _glfwInputCursorEnter(window, GLFW_TRUE); +} + +static void pointerHandleLeave(void* data, + struct wl_pointer* pointer, + uint32_t serial, + struct wl_surface* surface) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + + if (!window) + return; + + window->wl.hovered = GLFW_FALSE; + + _glfw.wl.serial = serial; + _glfw.wl.pointerFocus = NULL; + _glfwInputCursorEnter(window, GLFW_FALSE); + _glfw.wl.cursorPreviousName = NULL; +} + +static void setCursor(_GLFWwindow* window, const char* name) +{ + struct wl_buffer* buffer; + struct wl_cursor* cursor; + struct wl_cursor_image* image; + struct wl_surface* surface = _glfw.wl.cursorSurface; + struct wl_cursor_theme* theme = _glfw.wl.cursorTheme; + int scale = 1; + + if (window->wl.scale > 1 && _glfw.wl.cursorThemeHiDPI) + { + // We only support up to scale=2 for now, since libwayland-cursor + // requires us to load a different theme for each size. + scale = 2; + theme = _glfw.wl.cursorThemeHiDPI; + } + + cursor = wl_cursor_theme_get_cursor(theme, name); + if (!cursor) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Standard cursor not found"); + return; + } + // TODO: handle animated cursors too. + image = cursor->images[0]; + + if (!image) + return; + + buffer = wl_cursor_image_get_buffer(image); + if (!buffer) + return; + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.serial, + surface, + image->hotspot_x / scale, + image->hotspot_y / scale); + wl_surface_set_buffer_scale(surface, scale); + wl_surface_attach(surface, buffer, 0, 0); + wl_surface_damage(surface, 0, 0, + image->width, image->height); + wl_surface_commit(surface); + _glfw.wl.cursorPreviousName = name; +} + +static void pointerHandleMotion(void* data, + struct wl_pointer* pointer, + uint32_t time, + wl_fixed_t sx, + wl_fixed_t sy) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + const char* cursorName = NULL; + double x, y; + + if (!window) + return; + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + return; + x = wl_fixed_to_double(sx); + y = wl_fixed_to_double(sy); + + switch (window->wl.decorations.focus) + { + case mainWindow: + window->wl.cursorPosX = x; + window->wl.cursorPosY = y; + _glfwInputCursorPos(window, x, y); + _glfw.wl.cursorPreviousName = NULL; + return; + case topDecoration: + if (y < _GLFW_DECORATION_WIDTH) + cursorName = "n-resize"; + else + cursorName = "left_ptr"; + break; + case leftDecoration: + if (y < _GLFW_DECORATION_WIDTH) + cursorName = "nw-resize"; + else + cursorName = "w-resize"; + break; + case rightDecoration: + if (y < _GLFW_DECORATION_WIDTH) + cursorName = "ne-resize"; + else + cursorName = "e-resize"; + break; + case bottomDecoration: + if (x < _GLFW_DECORATION_WIDTH) + cursorName = "sw-resize"; + else if (x > window->wl.width + _GLFW_DECORATION_WIDTH) + cursorName = "se-resize"; + else + cursorName = "s-resize"; + break; + default: + assert(0); + } + if (_glfw.wl.cursorPreviousName != cursorName) + setCursor(window, cursorName); +} + +static void pointerHandleButton(void* data, + struct wl_pointer* pointer, + uint32_t serial, + uint32_t time, + uint32_t button, + uint32_t state) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + int glfwButton; + + // Both xdg-shell and wl_shell use the same values. + uint32_t edges = WL_SHELL_SURFACE_RESIZE_NONE; + + if (!window) + return; + if (button == BTN_LEFT) + { + switch (window->wl.decorations.focus) + { + case mainWindow: + break; + case topDecoration: + if (window->wl.cursorPosY < _GLFW_DECORATION_WIDTH) + edges = WL_SHELL_SURFACE_RESIZE_TOP; + else + { + if (window->wl.xdg.toplevel) + xdg_toplevel_move(window->wl.xdg.toplevel, _glfw.wl.seat, serial); + else + wl_shell_surface_move(window->wl.shellSurface, _glfw.wl.seat, serial); + } + break; + case leftDecoration: + if (window->wl.cursorPosY < _GLFW_DECORATION_WIDTH) + edges = WL_SHELL_SURFACE_RESIZE_TOP_LEFT; + else + edges = WL_SHELL_SURFACE_RESIZE_LEFT; + break; + case rightDecoration: + if (window->wl.cursorPosY < _GLFW_DECORATION_WIDTH) + edges = WL_SHELL_SURFACE_RESIZE_TOP_RIGHT; + else + edges = WL_SHELL_SURFACE_RESIZE_RIGHT; + break; + case bottomDecoration: + if (window->wl.cursorPosX < _GLFW_DECORATION_WIDTH) + edges = WL_SHELL_SURFACE_RESIZE_BOTTOM_LEFT; + else if (window->wl.cursorPosX > window->wl.width + _GLFW_DECORATION_WIDTH) + edges = WL_SHELL_SURFACE_RESIZE_BOTTOM_RIGHT; + else + edges = WL_SHELL_SURFACE_RESIZE_BOTTOM; + break; + default: + assert(0); + } + if (edges != WL_SHELL_SURFACE_RESIZE_NONE) + { + if (window->wl.xdg.toplevel) + xdg_toplevel_resize(window->wl.xdg.toplevel, _glfw.wl.seat, + serial, edges); + else + wl_shell_surface_resize(window->wl.shellSurface, _glfw.wl.seat, + serial, edges); + } + } + else if (button == BTN_RIGHT) + { + if (window->wl.decorations.focus != mainWindow && window->wl.xdg.toplevel) + { + xdg_toplevel_show_window_menu(window->wl.xdg.toplevel, + _glfw.wl.seat, serial, + window->wl.cursorPosX, + window->wl.cursorPosY); + return; + } + } + + // Don’t pass the button to the user if it was related to a decoration. + if (window->wl.decorations.focus != mainWindow) + return; + + _glfw.wl.serial = serial; + + /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev + * codes. */ + glfwButton = button - BTN_LEFT; + + _glfwInputMouseClick(window, + glfwButton, + state == WL_POINTER_BUTTON_STATE_PRESSED + ? GLFW_PRESS + : GLFW_RELEASE, + _glfw.wl.xkb.modifiers); +} + +static void pointerHandleAxis(void* data, + struct wl_pointer* pointer, + uint32_t time, + uint32_t axis, + wl_fixed_t value) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + double x = 0.0, y = 0.0; + // Wayland scroll events are in pointer motion coordinate space (think two + // finger scroll). The factor 10 is commonly used to convert to "scroll + // step means 1.0. + const double scrollFactor = 1.0 / 10.0; + + if (!window) + return; + + assert(axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL || + axis == WL_POINTER_AXIS_VERTICAL_SCROLL); + + if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) + x = -wl_fixed_to_double(value) * scrollFactor; + else if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) + y = -wl_fixed_to_double(value) * scrollFactor; + + _glfwInputScroll(window, x, y); +} + +static const struct wl_pointer_listener pointerListener = { + pointerHandleEnter, + pointerHandleLeave, + pointerHandleMotion, + pointerHandleButton, + pointerHandleAxis, +}; + +static void keyboardHandleKeymap(void* data, + struct wl_keyboard* keyboard, + uint32_t format, + int fd, + uint32_t size) +{ + struct xkb_keymap* keymap; + struct xkb_state* state; + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + struct xkb_compose_table* composeTable; + struct xkb_compose_state* composeState; +#endif + + char* mapStr; + const char* locale; + + if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) + { + close(fd); + return; + } + + mapStr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); + if (mapStr == MAP_FAILED) { + close(fd); + return; + } + + keymap = xkb_keymap_new_from_string(_glfw.wl.xkb.context, + mapStr, + XKB_KEYMAP_FORMAT_TEXT_V1, + 0); + munmap(mapStr, size); + close(fd); + + if (!keymap) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to compile keymap"); + return; + } + + state = xkb_state_new(keymap); + if (!state) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB state"); + xkb_keymap_unref(keymap); + return; + } + + // Look up the preferred locale, falling back to "C" as default. + locale = getenv("LC_ALL"); + if (!locale) + locale = getenv("LC_CTYPE"); + if (!locale) + locale = getenv("LANG"); + if (!locale) + locale = "C"; + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + composeTable = + xkb_compose_table_new_from_locale(_glfw.wl.xkb.context, locale, + XKB_COMPOSE_COMPILE_NO_FLAGS); + if (composeTable) + { + composeState = + xkb_compose_state_new(composeTable, XKB_COMPOSE_STATE_NO_FLAGS); + xkb_compose_table_unref(composeTable); + if (composeState) + _glfw.wl.xkb.composeState = composeState; + else + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB compose state"); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB compose table"); + } +#endif + + xkb_keymap_unref(_glfw.wl.xkb.keymap); + xkb_state_unref(_glfw.wl.xkb.state); + _glfw.wl.xkb.keymap = keymap; + _glfw.wl.xkb.state = state; + + _glfw.wl.xkb.controlMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Control"); + _glfw.wl.xkb.altMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod1"); + _glfw.wl.xkb.shiftMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Shift"); + _glfw.wl.xkb.superMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod4"); + _glfw.wl.xkb.capsLockMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Lock"); + _glfw.wl.xkb.numLockMask = + 1 << xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod2"); +} + +static void keyboardHandleEnter(void* data, + struct wl_keyboard* keyboard, + uint32_t serial, + struct wl_surface* surface, + struct wl_array* keys) +{ + // Happens in the case we just destroyed the surface. + if (!surface) + return; + + _GLFWwindow* window = wl_surface_get_user_data(surface); + if (!window) + { + window = findWindowFromDecorationSurface(surface, NULL); + if (!window) + return; + } + + _glfw.wl.serial = serial; + _glfw.wl.keyboardFocus = window; + _glfwInputWindowFocus(window, GLFW_TRUE); +} + +static void keyboardHandleLeave(void* data, + struct wl_keyboard* keyboard, + uint32_t serial, + struct wl_surface* surface) +{ + _GLFWwindow* window = _glfw.wl.keyboardFocus; + + if (!window) + return; + + _glfw.wl.serial = serial; + _glfw.wl.keyboardFocus = NULL; + _glfwInputWindowFocus(window, GLFW_FALSE); +} + +static int toGLFWKeyCode(uint32_t key) +{ + if (key < sizeof(_glfw.wl.keycodes) / sizeof(_glfw.wl.keycodes[0])) + return _glfw.wl.keycodes[key]; + + return GLFW_KEY_UNKNOWN; +} + +#ifdef HAVE_XKBCOMMON_COMPOSE_H +static xkb_keysym_t composeSymbol(xkb_keysym_t sym) +{ + if (sym == XKB_KEY_NoSymbol || !_glfw.wl.xkb.composeState) + return sym; + if (xkb_compose_state_feed(_glfw.wl.xkb.composeState, sym) + != XKB_COMPOSE_FEED_ACCEPTED) + return sym; + switch (xkb_compose_state_get_status(_glfw.wl.xkb.composeState)) + { + case XKB_COMPOSE_COMPOSED: + return xkb_compose_state_get_one_sym(_glfw.wl.xkb.composeState); + case XKB_COMPOSE_COMPOSING: + case XKB_COMPOSE_CANCELLED: + return XKB_KEY_NoSymbol; + case XKB_COMPOSE_NOTHING: + default: + return sym; + } +} +#endif + +static GLFWbool inputChar(_GLFWwindow* window, uint32_t key) +{ + uint32_t code, numSyms; + long cp; + const xkb_keysym_t *syms; + xkb_keysym_t sym; + + code = key + 8; + numSyms = xkb_state_key_get_syms(_glfw.wl.xkb.state, code, &syms); + + if (numSyms == 1) + { +#ifdef HAVE_XKBCOMMON_COMPOSE_H + sym = composeSymbol(syms[0]); +#else + sym = syms[0]; +#endif + cp = _glfwKeySym2Unicode(sym); + if (cp != -1) + { + const int mods = _glfw.wl.xkb.modifiers; + const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); + _glfwInputChar(window, cp, mods, plain); + } + } + + return xkb_keymap_key_repeats(_glfw.wl.xkb.keymap, syms[0]); +} + +static void keyboardHandleKey(void* data, + struct wl_keyboard* keyboard, + uint32_t serial, + uint32_t time, + uint32_t key, + uint32_t state) +{ + int keyCode; + int action; + _GLFWwindow* window = _glfw.wl.keyboardFocus; + GLFWbool shouldRepeat; + struct itimerspec timer = {}; + + if (!window) + return; + + keyCode = toGLFWKeyCode(key); + action = state == WL_KEYBOARD_KEY_STATE_PRESSED + ? GLFW_PRESS : GLFW_RELEASE; + + _glfw.wl.serial = serial; + _glfwInputKey(window, keyCode, key, action, + _glfw.wl.xkb.modifiers); + + if (action == GLFW_PRESS) + { + shouldRepeat = inputChar(window, key); + + if (shouldRepeat && _glfw.wl.keyboardRepeatRate > 0) + { + _glfw.wl.keyboardLastKey = keyCode; + _glfw.wl.keyboardLastScancode = key; + if (_glfw.wl.keyboardRepeatRate > 1) + timer.it_interval.tv_nsec = 1000000000 / _glfw.wl.keyboardRepeatRate; + else + timer.it_interval.tv_sec = 1; + timer.it_value.tv_sec = _glfw.wl.keyboardRepeatDelay / 1000; + timer.it_value.tv_nsec = (_glfw.wl.keyboardRepeatDelay % 1000) * 1000000; + } + } + timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL); +} + +static void keyboardHandleModifiers(void* data, + struct wl_keyboard* keyboard, + uint32_t serial, + uint32_t modsDepressed, + uint32_t modsLatched, + uint32_t modsLocked, + uint32_t group) +{ + xkb_mod_mask_t mask; + unsigned int modifiers = 0; + + _glfw.wl.serial = serial; + + if (!_glfw.wl.xkb.keymap) + return; + + xkb_state_update_mask(_glfw.wl.xkb.state, + modsDepressed, + modsLatched, + modsLocked, + 0, + 0, + group); + + mask = xkb_state_serialize_mods(_glfw.wl.xkb.state, + XKB_STATE_MODS_DEPRESSED | + XKB_STATE_LAYOUT_DEPRESSED | + XKB_STATE_MODS_LATCHED | + XKB_STATE_LAYOUT_LATCHED); + if (mask & _glfw.wl.xkb.controlMask) + modifiers |= GLFW_MOD_CONTROL; + if (mask & _glfw.wl.xkb.altMask) + modifiers |= GLFW_MOD_ALT; + if (mask & _glfw.wl.xkb.shiftMask) + modifiers |= GLFW_MOD_SHIFT; + if (mask & _glfw.wl.xkb.superMask) + modifiers |= GLFW_MOD_SUPER; + if (mask & _glfw.wl.xkb.capsLockMask) + modifiers |= GLFW_MOD_CAPS_LOCK; + if (mask & _glfw.wl.xkb.numLockMask) + modifiers |= GLFW_MOD_NUM_LOCK; + _glfw.wl.xkb.modifiers = modifiers; +} + +#ifdef WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION +static void keyboardHandleRepeatInfo(void* data, + struct wl_keyboard* keyboard, + int32_t rate, + int32_t delay) +{ + if (keyboard != _glfw.wl.keyboard) + return; + + _glfw.wl.keyboardRepeatRate = rate; + _glfw.wl.keyboardRepeatDelay = delay; +} +#endif + +static const struct wl_keyboard_listener keyboardListener = { + keyboardHandleKeymap, + keyboardHandleEnter, + keyboardHandleLeave, + keyboardHandleKey, + keyboardHandleModifiers, +#ifdef WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION + keyboardHandleRepeatInfo, +#endif +}; + +static void seatHandleCapabilities(void* data, + struct wl_seat* seat, + enum wl_seat_capability caps) +{ + if ((caps & WL_SEAT_CAPABILITY_POINTER) && !_glfw.wl.pointer) + { + _glfw.wl.pointer = wl_seat_get_pointer(seat); + wl_pointer_add_listener(_glfw.wl.pointer, &pointerListener, NULL); + } + else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && _glfw.wl.pointer) + { + wl_pointer_destroy(_glfw.wl.pointer); + _glfw.wl.pointer = NULL; + } + + if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard) + { + _glfw.wl.keyboard = wl_seat_get_keyboard(seat); + wl_keyboard_add_listener(_glfw.wl.keyboard, &keyboardListener, NULL); + } + else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && _glfw.wl.keyboard) + { + wl_keyboard_destroy(_glfw.wl.keyboard); + _glfw.wl.keyboard = NULL; + } +} + +static void seatHandleName(void* data, + struct wl_seat* seat, + const char* name) +{ +} + +static const struct wl_seat_listener seatListener = { + seatHandleCapabilities, + seatHandleName, +}; + +static void dataOfferHandleOffer(void* data, + struct wl_data_offer* dataOffer, + const char* mimeType) +{ +} + +static const struct wl_data_offer_listener dataOfferListener = { + dataOfferHandleOffer, +}; + +static void dataDeviceHandleDataOffer(void* data, + struct wl_data_device* dataDevice, + struct wl_data_offer* id) +{ + if (_glfw.wl.dataOffer) + wl_data_offer_destroy(_glfw.wl.dataOffer); + + _glfw.wl.dataOffer = id; + wl_data_offer_add_listener(_glfw.wl.dataOffer, &dataOfferListener, NULL); +} + +static void dataDeviceHandleEnter(void* data, + struct wl_data_device* dataDevice, + uint32_t serial, + struct wl_surface *surface, + wl_fixed_t x, + wl_fixed_t y, + struct wl_data_offer *id) +{ +} + +static void dataDeviceHandleLeave(void* data, + struct wl_data_device* dataDevice) +{ +} + +static void dataDeviceHandleMotion(void* data, + struct wl_data_device* dataDevice, + uint32_t time, + wl_fixed_t x, + wl_fixed_t y) +{ +} + +static void dataDeviceHandleDrop(void* data, + struct wl_data_device* dataDevice) +{ +} + +static void dataDeviceHandleSelection(void* data, + struct wl_data_device* dataDevice, + struct wl_data_offer* id) +{ +} + +static const struct wl_data_device_listener dataDeviceListener = { + dataDeviceHandleDataOffer, + dataDeviceHandleEnter, + dataDeviceHandleLeave, + dataDeviceHandleMotion, + dataDeviceHandleDrop, + dataDeviceHandleSelection, +}; + +static void wmBaseHandlePing(void* data, + struct xdg_wm_base* wmBase, + uint32_t serial) +{ + xdg_wm_base_pong(wmBase, serial); +} + +static const struct xdg_wm_base_listener wmBaseListener = { + wmBaseHandlePing +}; + +static void registryHandleGlobal(void* data, + struct wl_registry* registry, + uint32_t name, + const char* interface, + uint32_t version) +{ + if (strcmp(interface, "wl_compositor") == 0) + { + _glfw.wl.compositorVersion = min(3, version); + _glfw.wl.compositor = + wl_registry_bind(registry, name, &wl_compositor_interface, + _glfw.wl.compositorVersion); + } + else if (strcmp(interface, "wl_subcompositor") == 0) + { + _glfw.wl.subcompositor = + wl_registry_bind(registry, name, &wl_subcompositor_interface, 1); + } + else if (strcmp(interface, "wl_shm") == 0) + { + _glfw.wl.shm = + wl_registry_bind(registry, name, &wl_shm_interface, 1); + } + else if (strcmp(interface, "wl_shell") == 0) + { + _glfw.wl.shell = + wl_registry_bind(registry, name, &wl_shell_interface, 1); + } + else if (strcmp(interface, "wl_output") == 0) + { + _glfwAddOutputWayland(name, version); + } + else if (strcmp(interface, "wl_seat") == 0) + { + if (!_glfw.wl.seat) + { + _glfw.wl.seatVersion = min(4, version); + _glfw.wl.seat = + wl_registry_bind(registry, name, &wl_seat_interface, + _glfw.wl.seatVersion); + wl_seat_add_listener(_glfw.wl.seat, &seatListener, NULL); + } + } + else if (strcmp(interface, "wl_data_device_manager") == 0) + { + if (!_glfw.wl.dataDeviceManager) + { + _glfw.wl.dataDeviceManager = + wl_registry_bind(registry, name, + &wl_data_device_manager_interface, 1); + } + } + else if (strcmp(interface, "xdg_wm_base") == 0) + { + _glfw.wl.wmBase = + wl_registry_bind(registry, name, &xdg_wm_base_interface, 1); + xdg_wm_base_add_listener(_glfw.wl.wmBase, &wmBaseListener, NULL); + } + else if (strcmp(interface, "zxdg_decoration_manager_v1") == 0) + { + _glfw.wl.decorationManager = + wl_registry_bind(registry, name, + &zxdg_decoration_manager_v1_interface, + 1); + } + else if (strcmp(interface, "wp_viewporter") == 0) + { + _glfw.wl.viewporter = + wl_registry_bind(registry, name, &wp_viewporter_interface, 1); + } + else if (strcmp(interface, "zwp_relative_pointer_manager_v1") == 0) + { + _glfw.wl.relativePointerManager = + wl_registry_bind(registry, name, + &zwp_relative_pointer_manager_v1_interface, + 1); + } + else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) + { + _glfw.wl.pointerConstraints = + wl_registry_bind(registry, name, + &zwp_pointer_constraints_v1_interface, + 1); + } + else if (strcmp(interface, "zwp_idle_inhibit_manager_v1") == 0) + { + _glfw.wl.idleInhibitManager = + wl_registry_bind(registry, name, + &zwp_idle_inhibit_manager_v1_interface, + 1); + } +} + +static void registryHandleGlobalRemove(void *data, + struct wl_registry *registry, + uint32_t name) +{ + int i; + _GLFWmonitor* monitor; + + for (i = 0; i < _glfw.monitorCount; ++i) + { + monitor = _glfw.monitors[i]; + if (monitor->wl.name == name) + { + _glfwInputMonitor(monitor, GLFW_DISCONNECTED, 0); + return; + } + } +} + + +static const struct wl_registry_listener registryListener = { + registryHandleGlobal, + registryHandleGlobalRemove +}; + +// Create key code translation tables +// +static void createKeyTables(void) +{ + int scancode; + + memset(_glfw.wl.keycodes, -1, sizeof(_glfw.wl.keycodes)); + memset(_glfw.wl.scancodes, -1, sizeof(_glfw.wl.scancodes)); + + _glfw.wl.keycodes[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; + _glfw.wl.keycodes[KEY_1] = GLFW_KEY_1; + _glfw.wl.keycodes[KEY_2] = GLFW_KEY_2; + _glfw.wl.keycodes[KEY_3] = GLFW_KEY_3; + _glfw.wl.keycodes[KEY_4] = GLFW_KEY_4; + _glfw.wl.keycodes[KEY_5] = GLFW_KEY_5; + _glfw.wl.keycodes[KEY_6] = GLFW_KEY_6; + _glfw.wl.keycodes[KEY_7] = GLFW_KEY_7; + _glfw.wl.keycodes[KEY_8] = GLFW_KEY_8; + _glfw.wl.keycodes[KEY_9] = GLFW_KEY_9; + _glfw.wl.keycodes[KEY_0] = GLFW_KEY_0; + _glfw.wl.keycodes[KEY_SPACE] = GLFW_KEY_SPACE; + _glfw.wl.keycodes[KEY_MINUS] = GLFW_KEY_MINUS; + _glfw.wl.keycodes[KEY_EQUAL] = GLFW_KEY_EQUAL; + _glfw.wl.keycodes[KEY_Q] = GLFW_KEY_Q; + _glfw.wl.keycodes[KEY_W] = GLFW_KEY_W; + _glfw.wl.keycodes[KEY_E] = GLFW_KEY_E; + _glfw.wl.keycodes[KEY_R] = GLFW_KEY_R; + _glfw.wl.keycodes[KEY_T] = GLFW_KEY_T; + _glfw.wl.keycodes[KEY_Y] = GLFW_KEY_Y; + _glfw.wl.keycodes[KEY_U] = GLFW_KEY_U; + _glfw.wl.keycodes[KEY_I] = GLFW_KEY_I; + _glfw.wl.keycodes[KEY_O] = GLFW_KEY_O; + _glfw.wl.keycodes[KEY_P] = GLFW_KEY_P; + _glfw.wl.keycodes[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; + _glfw.wl.keycodes[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; + _glfw.wl.keycodes[KEY_A] = GLFW_KEY_A; + _glfw.wl.keycodes[KEY_S] = GLFW_KEY_S; + _glfw.wl.keycodes[KEY_D] = GLFW_KEY_D; + _glfw.wl.keycodes[KEY_F] = GLFW_KEY_F; + _glfw.wl.keycodes[KEY_G] = GLFW_KEY_G; + _glfw.wl.keycodes[KEY_H] = GLFW_KEY_H; + _glfw.wl.keycodes[KEY_J] = GLFW_KEY_J; + _glfw.wl.keycodes[KEY_K] = GLFW_KEY_K; + _glfw.wl.keycodes[KEY_L] = GLFW_KEY_L; + _glfw.wl.keycodes[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; + _glfw.wl.keycodes[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; + _glfw.wl.keycodes[KEY_Z] = GLFW_KEY_Z; + _glfw.wl.keycodes[KEY_X] = GLFW_KEY_X; + _glfw.wl.keycodes[KEY_C] = GLFW_KEY_C; + _glfw.wl.keycodes[KEY_V] = GLFW_KEY_V; + _glfw.wl.keycodes[KEY_B] = GLFW_KEY_B; + _glfw.wl.keycodes[KEY_N] = GLFW_KEY_N; + _glfw.wl.keycodes[KEY_M] = GLFW_KEY_M; + _glfw.wl.keycodes[KEY_COMMA] = GLFW_KEY_COMMA; + _glfw.wl.keycodes[KEY_DOT] = GLFW_KEY_PERIOD; + _glfw.wl.keycodes[KEY_SLASH] = GLFW_KEY_SLASH; + _glfw.wl.keycodes[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; + _glfw.wl.keycodes[KEY_ESC] = GLFW_KEY_ESCAPE; + _glfw.wl.keycodes[KEY_TAB] = GLFW_KEY_TAB; + _glfw.wl.keycodes[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; + _glfw.wl.keycodes[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; + _glfw.wl.keycodes[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; + _glfw.wl.keycodes[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; + _glfw.wl.keycodes[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; + _glfw.wl.keycodes[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; + _glfw.wl.keycodes[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; + _glfw.wl.keycodes[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; + _glfw.wl.keycodes[KEY_MENU] = GLFW_KEY_MENU; + _glfw.wl.keycodes[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; + _glfw.wl.keycodes[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; + _glfw.wl.keycodes[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; + _glfw.wl.keycodes[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; + _glfw.wl.keycodes[KEY_PAUSE] = GLFW_KEY_PAUSE; + _glfw.wl.keycodes[KEY_DELETE] = GLFW_KEY_DELETE; + _glfw.wl.keycodes[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; + _glfw.wl.keycodes[KEY_ENTER] = GLFW_KEY_ENTER; + _glfw.wl.keycodes[KEY_HOME] = GLFW_KEY_HOME; + _glfw.wl.keycodes[KEY_END] = GLFW_KEY_END; + _glfw.wl.keycodes[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; + _glfw.wl.keycodes[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; + _glfw.wl.keycodes[KEY_INSERT] = GLFW_KEY_INSERT; + _glfw.wl.keycodes[KEY_LEFT] = GLFW_KEY_LEFT; + _glfw.wl.keycodes[KEY_RIGHT] = GLFW_KEY_RIGHT; + _glfw.wl.keycodes[KEY_DOWN] = GLFW_KEY_DOWN; + _glfw.wl.keycodes[KEY_UP] = GLFW_KEY_UP; + _glfw.wl.keycodes[KEY_F1] = GLFW_KEY_F1; + _glfw.wl.keycodes[KEY_F2] = GLFW_KEY_F2; + _glfw.wl.keycodes[KEY_F3] = GLFW_KEY_F3; + _glfw.wl.keycodes[KEY_F4] = GLFW_KEY_F4; + _glfw.wl.keycodes[KEY_F5] = GLFW_KEY_F5; + _glfw.wl.keycodes[KEY_F6] = GLFW_KEY_F6; + _glfw.wl.keycodes[KEY_F7] = GLFW_KEY_F7; + _glfw.wl.keycodes[KEY_F8] = GLFW_KEY_F8; + _glfw.wl.keycodes[KEY_F9] = GLFW_KEY_F9; + _glfw.wl.keycodes[KEY_F10] = GLFW_KEY_F10; + _glfw.wl.keycodes[KEY_F11] = GLFW_KEY_F11; + _glfw.wl.keycodes[KEY_F12] = GLFW_KEY_F12; + _glfw.wl.keycodes[KEY_F13] = GLFW_KEY_F13; + _glfw.wl.keycodes[KEY_F14] = GLFW_KEY_F14; + _glfw.wl.keycodes[KEY_F15] = GLFW_KEY_F15; + _glfw.wl.keycodes[KEY_F16] = GLFW_KEY_F16; + _glfw.wl.keycodes[KEY_F17] = GLFW_KEY_F17; + _glfw.wl.keycodes[KEY_F18] = GLFW_KEY_F18; + _glfw.wl.keycodes[KEY_F19] = GLFW_KEY_F19; + _glfw.wl.keycodes[KEY_F20] = GLFW_KEY_F20; + _glfw.wl.keycodes[KEY_F21] = GLFW_KEY_F21; + _glfw.wl.keycodes[KEY_F22] = GLFW_KEY_F22; + _glfw.wl.keycodes[KEY_F23] = GLFW_KEY_F23; + _glfw.wl.keycodes[KEY_F24] = GLFW_KEY_F24; + _glfw.wl.keycodes[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; + _glfw.wl.keycodes[KEY_KPDOT] = GLFW_KEY_KP_MULTIPLY; + _glfw.wl.keycodes[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; + _glfw.wl.keycodes[KEY_KPPLUS] = GLFW_KEY_KP_ADD; + _glfw.wl.keycodes[KEY_KP0] = GLFW_KEY_KP_0; + _glfw.wl.keycodes[KEY_KP1] = GLFW_KEY_KP_1; + _glfw.wl.keycodes[KEY_KP2] = GLFW_KEY_KP_2; + _glfw.wl.keycodes[KEY_KP3] = GLFW_KEY_KP_3; + _glfw.wl.keycodes[KEY_KP4] = GLFW_KEY_KP_4; + _glfw.wl.keycodes[KEY_KP5] = GLFW_KEY_KP_5; + _glfw.wl.keycodes[KEY_KP6] = GLFW_KEY_KP_6; + _glfw.wl.keycodes[KEY_KP7] = GLFW_KEY_KP_7; + _glfw.wl.keycodes[KEY_KP8] = GLFW_KEY_KP_8; + _glfw.wl.keycodes[KEY_KP9] = GLFW_KEY_KP_9; + _glfw.wl.keycodes[KEY_KPCOMMA] = GLFW_KEY_KP_DECIMAL; + _glfw.wl.keycodes[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; + _glfw.wl.keycodes[KEY_KPENTER] = GLFW_KEY_KP_ENTER; + + for (scancode = 0; scancode < 256; scancode++) + { + if (_glfw.wl.keycodes[scancode] > 0) + _glfw.wl.scancodes[_glfw.wl.keycodes[scancode]] = scancode; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformInit(void) +{ + const char *cursorTheme; + const char *cursorSizeStr; + char *cursorSizeEnd; + long cursorSizeLong; + int cursorSize; + + _glfw.wl.cursor.handle = _glfw_dlopen("libwayland-cursor.so.0"); + if (!_glfw.wl.cursor.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to open libwayland-cursor"); + return GLFW_FALSE; + } + + _glfw.wl.cursor.theme_load = (PFN_wl_cursor_theme_load) + _glfw_dlsym(_glfw.wl.cursor.handle, "wl_cursor_theme_load"); + _glfw.wl.cursor.theme_destroy = (PFN_wl_cursor_theme_destroy) + _glfw_dlsym(_glfw.wl.cursor.handle, "wl_cursor_theme_destroy"); + _glfw.wl.cursor.theme_get_cursor = (PFN_wl_cursor_theme_get_cursor) + _glfw_dlsym(_glfw.wl.cursor.handle, "wl_cursor_theme_get_cursor"); + _glfw.wl.cursor.image_get_buffer = (PFN_wl_cursor_image_get_buffer) + _glfw_dlsym(_glfw.wl.cursor.handle, "wl_cursor_image_get_buffer"); + + _glfw.wl.egl.handle = _glfw_dlopen("libwayland-egl.so.1"); + if (!_glfw.wl.egl.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to open libwayland-egl"); + return GLFW_FALSE; + } + + _glfw.wl.egl.window_create = (PFN_wl_egl_window_create) + _glfw_dlsym(_glfw.wl.egl.handle, "wl_egl_window_create"); + _glfw.wl.egl.window_destroy = (PFN_wl_egl_window_destroy) + _glfw_dlsym(_glfw.wl.egl.handle, "wl_egl_window_destroy"); + _glfw.wl.egl.window_resize = (PFN_wl_egl_window_resize) + _glfw_dlsym(_glfw.wl.egl.handle, "wl_egl_window_resize"); + + _glfw.wl.xkb.handle = _glfw_dlopen("libxkbcommon.so.0"); + if (!_glfw.wl.xkb.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to open libxkbcommon"); + return GLFW_FALSE; + } + + _glfw.wl.xkb.context_new = (PFN_xkb_context_new) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_context_new"); + _glfw.wl.xkb.context_unref = (PFN_xkb_context_unref) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_context_unref"); + _glfw.wl.xkb.keymap_new_from_string = (PFN_xkb_keymap_new_from_string) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_keymap_new_from_string"); + _glfw.wl.xkb.keymap_unref = (PFN_xkb_keymap_unref) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_keymap_unref"); + _glfw.wl.xkb.keymap_mod_get_index = (PFN_xkb_keymap_mod_get_index) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_keymap_mod_get_index"); + _glfw.wl.xkb.keymap_key_repeats = (PFN_xkb_keymap_key_repeats) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_keymap_key_repeats"); + _glfw.wl.xkb.state_new = (PFN_xkb_state_new) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_state_new"); + _glfw.wl.xkb.state_unref = (PFN_xkb_state_unref) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_state_unref"); + _glfw.wl.xkb.state_key_get_syms = (PFN_xkb_state_key_get_syms) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_state_key_get_syms"); + _glfw.wl.xkb.state_update_mask = (PFN_xkb_state_update_mask) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_state_update_mask"); + _glfw.wl.xkb.state_serialize_mods = (PFN_xkb_state_serialize_mods) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_state_serialize_mods"); + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + _glfw.wl.xkb.compose_table_new_from_locale = (PFN_xkb_compose_table_new_from_locale) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_table_new_from_locale"); + _glfw.wl.xkb.compose_table_unref = (PFN_xkb_compose_table_unref) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_table_unref"); + _glfw.wl.xkb.compose_state_new = (PFN_xkb_compose_state_new) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_state_new"); + _glfw.wl.xkb.compose_state_unref = (PFN_xkb_compose_state_unref) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_state_unref"); + _glfw.wl.xkb.compose_state_feed = (PFN_xkb_compose_state_feed) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_state_feed"); + _glfw.wl.xkb.compose_state_get_status = (PFN_xkb_compose_state_get_status) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_state_get_status"); + _glfw.wl.xkb.compose_state_get_one_sym = (PFN_xkb_compose_state_get_one_sym) + _glfw_dlsym(_glfw.wl.xkb.handle, "xkb_compose_state_get_one_sym"); +#endif + + _glfw.wl.display = wl_display_connect(NULL); + if (!_glfw.wl.display) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to connect to display"); + return GLFW_FALSE; + } + + _glfw.wl.registry = wl_display_get_registry(_glfw.wl.display); + wl_registry_add_listener(_glfw.wl.registry, ®istryListener, NULL); + + createKeyTables(); + + _glfw.wl.xkb.context = xkb_context_new(0); + if (!_glfw.wl.xkb.context) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to initialize xkb context"); + return GLFW_FALSE; + } + + // Sync so we got all registry objects + wl_display_roundtrip(_glfw.wl.display); + + // Sync so we got all initial output events + wl_display_roundtrip(_glfw.wl.display); + +#ifdef __linux__ + if (!_glfwInitJoysticksLinux()) + return GLFW_FALSE; +#endif + + _glfwInitTimerPOSIX(); + + _glfw.wl.timerfd = -1; + if (_glfw.wl.seatVersion >= 4) + _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); + + if (_glfw.wl.pointer && _glfw.wl.shm) + { + cursorTheme = getenv("XCURSOR_THEME"); + cursorSizeStr = getenv("XCURSOR_SIZE"); + cursorSize = 32; + if (cursorSizeStr) + { + errno = 0; + cursorSizeLong = strtol(cursorSizeStr, &cursorSizeEnd, 10); + if (!*cursorSizeEnd && !errno && cursorSizeLong > 0 && cursorSizeLong <= INT_MAX) + cursorSize = (int)cursorSizeLong; + } + _glfw.wl.cursorTheme = + wl_cursor_theme_load(cursorTheme, cursorSize, _glfw.wl.shm); + if (!_glfw.wl.cursorTheme) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unable to load default cursor theme"); + return GLFW_FALSE; + } + // If this happens to be NULL, we just fallback to the scale=1 version. + _glfw.wl.cursorThemeHiDPI = + wl_cursor_theme_load(cursorTheme, 2 * cursorSize, _glfw.wl.shm); + _glfw.wl.cursorSurface = + wl_compositor_create_surface(_glfw.wl.compositor); + _glfw.wl.cursorTimerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); + } + + if (_glfw.wl.seat && _glfw.wl.dataDeviceManager) + { + _glfw.wl.dataDevice = + wl_data_device_manager_get_data_device(_glfw.wl.dataDeviceManager, + _glfw.wl.seat); + wl_data_device_add_listener(_glfw.wl.dataDevice, &dataDeviceListener, NULL); + _glfw.wl.clipboardString = malloc(4096); + if (!_glfw.wl.clipboardString) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unable to allocate clipboard memory"); + return GLFW_FALSE; + } + _glfw.wl.clipboardSize = 4096; + } + + return GLFW_TRUE; +} + +void _glfwPlatformTerminate(void) +{ +#ifdef __linux__ + _glfwTerminateJoysticksLinux(); +#endif + _glfwTerminateEGL(); + if (_glfw.wl.egl.handle) + { + _glfw_dlclose(_glfw.wl.egl.handle); + _glfw.wl.egl.handle = NULL; + } + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + if (_glfw.wl.xkb.composeState) + xkb_compose_state_unref(_glfw.wl.xkb.composeState); +#endif + if (_glfw.wl.xkb.keymap) + xkb_keymap_unref(_glfw.wl.xkb.keymap); + if (_glfw.wl.xkb.state) + xkb_state_unref(_glfw.wl.xkb.state); + if (_glfw.wl.xkb.context) + xkb_context_unref(_glfw.wl.xkb.context); + if (_glfw.wl.xkb.handle) + { + _glfw_dlclose(_glfw.wl.xkb.handle); + _glfw.wl.xkb.handle = NULL; + } + + if (_glfw.wl.cursorTheme) + wl_cursor_theme_destroy(_glfw.wl.cursorTheme); + if (_glfw.wl.cursorThemeHiDPI) + wl_cursor_theme_destroy(_glfw.wl.cursorThemeHiDPI); + if (_glfw.wl.cursor.handle) + { + _glfw_dlclose(_glfw.wl.cursor.handle); + _glfw.wl.cursor.handle = NULL; + } + + if (_glfw.wl.cursorSurface) + wl_surface_destroy(_glfw.wl.cursorSurface); + if (_glfw.wl.subcompositor) + wl_subcompositor_destroy(_glfw.wl.subcompositor); + if (_glfw.wl.compositor) + wl_compositor_destroy(_glfw.wl.compositor); + if (_glfw.wl.shm) + wl_shm_destroy(_glfw.wl.shm); + if (_glfw.wl.shell) + wl_shell_destroy(_glfw.wl.shell); + if (_glfw.wl.viewporter) + wp_viewporter_destroy(_glfw.wl.viewporter); + if (_glfw.wl.decorationManager) + zxdg_decoration_manager_v1_destroy(_glfw.wl.decorationManager); + if (_glfw.wl.wmBase) + xdg_wm_base_destroy(_glfw.wl.wmBase); + if (_glfw.wl.dataSource) + wl_data_source_destroy(_glfw.wl.dataSource); + if (_glfw.wl.dataDevice) + wl_data_device_destroy(_glfw.wl.dataDevice); + if (_glfw.wl.dataOffer) + wl_data_offer_destroy(_glfw.wl.dataOffer); + if (_glfw.wl.dataDeviceManager) + wl_data_device_manager_destroy(_glfw.wl.dataDeviceManager); + if (_glfw.wl.pointer) + wl_pointer_destroy(_glfw.wl.pointer); + if (_glfw.wl.keyboard) + wl_keyboard_destroy(_glfw.wl.keyboard); + if (_glfw.wl.seat) + wl_seat_destroy(_glfw.wl.seat); + if (_glfw.wl.relativePointerManager) + zwp_relative_pointer_manager_v1_destroy(_glfw.wl.relativePointerManager); + if (_glfw.wl.pointerConstraints) + zwp_pointer_constraints_v1_destroy(_glfw.wl.pointerConstraints); + if (_glfw.wl.idleInhibitManager) + zwp_idle_inhibit_manager_v1_destroy(_glfw.wl.idleInhibitManager); + if (_glfw.wl.registry) + wl_registry_destroy(_glfw.wl.registry); + if (_glfw.wl.display) + { + wl_display_flush(_glfw.wl.display); + wl_display_disconnect(_glfw.wl.display); + } + + if (_glfw.wl.timerfd >= 0) + close(_glfw.wl.timerfd); + if (_glfw.wl.cursorTimerfd >= 0) + close(_glfw.wl.cursorTimerfd); + + if (_glfw.wl.clipboardString) + free(_glfw.wl.clipboardString); + if (_glfw.wl.clipboardSendString) + free(_glfw.wl.clipboardSendString); +} + +const char* _glfwPlatformGetVersionString(void) +{ + return _GLFW_VERSION_NUMBER " Wayland EGL OSMesa" +#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) + " clock_gettime" +#else + " gettimeofday" +#endif + " evdev" +#if defined(_GLFW_BUILD_DLL) + " shared" +#endif + ; +} diff --git a/external/glfw-3.3.4/src/wl_monitor.c b/external/glfw-3.3.4/src/wl_monitor.c new file mode 100644 index 0000000..a7b05c6 --- /dev/null +++ b/external/glfw-3.3.4/src/wl_monitor.c @@ -0,0 +1,233 @@ +//======================================================================== +// GLFW 3.3 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include + + +static void outputHandleGeometry(void* data, + struct wl_output* output, + int32_t x, + int32_t y, + int32_t physicalWidth, + int32_t physicalHeight, + int32_t subpixel, + const char* make, + const char* model, + int32_t transform) +{ + struct _GLFWmonitor *monitor = data; + char name[1024]; + + monitor->wl.x = x; + monitor->wl.y = y; + monitor->widthMM = physicalWidth; + monitor->heightMM = physicalHeight; + + snprintf(name, sizeof(name), "%s %s", make, model); + monitor->name = _glfw_strdup(name); +} + +static void outputHandleMode(void* data, + struct wl_output* output, + uint32_t flags, + int32_t width, + int32_t height, + int32_t refresh) +{ + struct _GLFWmonitor *monitor = data; + GLFWvidmode mode; + + mode.width = width; + mode.height = height; + mode.redBits = 8; + mode.greenBits = 8; + mode.blueBits = 8; + mode.refreshRate = (int) round(refresh / 1000.0); + + monitor->modeCount++; + monitor->modes = + realloc(monitor->modes, monitor->modeCount * sizeof(GLFWvidmode)); + monitor->modes[monitor->modeCount - 1] = mode; + + if (flags & WL_OUTPUT_MODE_CURRENT) + monitor->wl.currentMode = monitor->modeCount - 1; +} + +static void outputHandleDone(void* data, struct wl_output* output) +{ + struct _GLFWmonitor *monitor = data; + + if (monitor->widthMM <= 0 || monitor->heightMM <= 0) + { + // If Wayland does not provide a physical size, assume the default 96 DPI + const GLFWvidmode* mode = &monitor->modes[monitor->wl.currentMode]; + monitor->widthMM = (int) (mode->width * 25.4f / 96.f); + monitor->heightMM = (int) (mode->height * 25.4f / 96.f); + } + + _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); +} + +static void outputHandleScale(void* data, + struct wl_output* output, + int32_t factor) +{ + struct _GLFWmonitor *monitor = data; + + monitor->wl.scale = factor; +} + +static const struct wl_output_listener outputListener = { + outputHandleGeometry, + outputHandleMode, + outputHandleDone, + outputHandleScale, +}; + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwAddOutputWayland(uint32_t name, uint32_t version) +{ + _GLFWmonitor *monitor; + struct wl_output *output; + + if (version < 2) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unsupported output interface version"); + return; + } + + // The actual name of this output will be set in the geometry handler. + monitor = _glfwAllocMonitor(NULL, 0, 0); + + output = wl_registry_bind(_glfw.wl.registry, + name, + &wl_output_interface, + 2); + if (!output) + { + _glfwFreeMonitor(monitor); + return; + } + + monitor->wl.scale = 1; + monitor->wl.output = output; + monitor->wl.name = name; + + wl_output_add_listener(output, &outputListener, monitor); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor) +{ + if (monitor->wl.output) + wl_output_destroy(monitor->wl.output); +} + +void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + if (xpos) + *xpos = monitor->wl.x; + if (ypos) + *ypos = monitor->wl.y; +} + +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = (float) monitor->wl.scale; + if (yscale) + *yscale = (float) monitor->wl.scale; +} + +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + if (xpos) + *xpos = monitor->wl.x; + if (ypos) + *ypos = monitor->wl.y; + if (width) + *width = monitor->modes[monitor->wl.currentMode].width; + if (height) + *height = monitor->modes[monitor->wl.currentMode].height; +} + +GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) +{ + *found = monitor->modeCount; + return monitor->modes; +} + +void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + *mode = monitor->modes[monitor->wl.currentMode]; +} + +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Gamma ramp access is not available"); + return GLFW_FALSE; +} + +void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, + const GLFWgammaramp* ramp) +{ + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Gamma ramp access is not available"); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->wl.output; +} + diff --git a/external/glfw-3.3.4/src/wl_platform.h b/external/glfw-3.3.4/src/wl_platform.h new file mode 100644 index 0000000..41a7fdf --- /dev/null +++ b/external/glfw-3.3.4/src/wl_platform.h @@ -0,0 +1,359 @@ +//======================================================================== +// GLFW 3.3 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// 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 +#include +#ifdef HAVE_XKBCOMMON_COMPOSE_H +#include +#endif +#include + +typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; + +typedef struct VkWaylandSurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkWaylandSurfaceCreateFlagsKHR flags; + struct wl_display* display; + struct wl_surface* surface; +} VkWaylandSurfaceCreateInfoKHR; + +typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*); + +#include "posix_thread.h" +#include "posix_time.h" +#ifdef __linux__ +#include "linux_joystick.h" +#else +#include "null_joystick.h" +#endif +#include "xkb_unicode.h" +#include "egl_context.h" +#include "osmesa_context.h" + +#include "wayland-xdg-shell-client-protocol.h" +#include "wayland-xdg-decoration-client-protocol.h" +#include "wayland-viewporter-client-protocol.h" +#include "wayland-relative-pointer-unstable-v1-client-protocol.h" +#include "wayland-pointer-constraints-unstable-v1-client-protocol.h" +#include "wayland-idle-inhibit-unstable-v1-client-protocol.h" + +#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) +#define _glfw_dlclose(handle) dlclose(handle) +#define _glfw_dlsym(handle, name) dlsym(handle, name) + +#define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->wl.native) +#define _GLFW_EGL_NATIVE_DISPLAY ((EGLNativeDisplayType) _glfw.wl.display) + +#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl +#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl +#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl +#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl + +#define _GLFW_PLATFORM_CONTEXT_STATE struct { int dummyContext; } +#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE struct { int dummyLibraryContext; } + +struct wl_cursor_image { + uint32_t width; + uint32_t height; + uint32_t hotspot_x; + uint32_t hotspot_y; + uint32_t delay; +}; +struct wl_cursor { + unsigned int image_count; + struct wl_cursor_image** images; + char* name; +}; +typedef struct wl_cursor_theme* (* PFN_wl_cursor_theme_load)(const char*, int, struct wl_shm*); +typedef void (* PFN_wl_cursor_theme_destroy)(struct wl_cursor_theme*); +typedef struct wl_cursor* (* PFN_wl_cursor_theme_get_cursor)(struct wl_cursor_theme*, const char*); +typedef struct wl_buffer* (* PFN_wl_cursor_image_get_buffer)(struct wl_cursor_image*); +#define wl_cursor_theme_load _glfw.wl.cursor.theme_load +#define wl_cursor_theme_destroy _glfw.wl.cursor.theme_destroy +#define wl_cursor_theme_get_cursor _glfw.wl.cursor.theme_get_cursor +#define wl_cursor_image_get_buffer _glfw.wl.cursor.image_get_buffer + +typedef struct wl_egl_window* (* PFN_wl_egl_window_create)(struct wl_surface*, int, int); +typedef void (* PFN_wl_egl_window_destroy)(struct wl_egl_window*); +typedef void (* PFN_wl_egl_window_resize)(struct wl_egl_window*, int, int, int, int); +#define wl_egl_window_create _glfw.wl.egl.window_create +#define wl_egl_window_destroy _glfw.wl.egl.window_destroy +#define wl_egl_window_resize _glfw.wl.egl.window_resize + +typedef struct xkb_context* (* PFN_xkb_context_new)(enum xkb_context_flags); +typedef void (* PFN_xkb_context_unref)(struct xkb_context*); +typedef struct xkb_keymap* (* PFN_xkb_keymap_new_from_string)(struct xkb_context*, const char*, enum xkb_keymap_format, enum xkb_keymap_compile_flags); +typedef void (* PFN_xkb_keymap_unref)(struct xkb_keymap*); +typedef xkb_mod_index_t (* PFN_xkb_keymap_mod_get_index)(struct xkb_keymap*, const char*); +typedef int (* PFN_xkb_keymap_key_repeats)(struct xkb_keymap*, xkb_keycode_t); +typedef struct xkb_state* (* PFN_xkb_state_new)(struct xkb_keymap*); +typedef void (* PFN_xkb_state_unref)(struct xkb_state*); +typedef int (* PFN_xkb_state_key_get_syms)(struct xkb_state*, xkb_keycode_t, const xkb_keysym_t**); +typedef enum xkb_state_component (* PFN_xkb_state_update_mask)(struct xkb_state*, xkb_mod_mask_t, xkb_mod_mask_t, xkb_mod_mask_t, xkb_layout_index_t, xkb_layout_index_t, xkb_layout_index_t); +typedef xkb_mod_mask_t (* PFN_xkb_state_serialize_mods)(struct xkb_state*, enum xkb_state_component); +#define xkb_context_new _glfw.wl.xkb.context_new +#define xkb_context_unref _glfw.wl.xkb.context_unref +#define xkb_keymap_new_from_string _glfw.wl.xkb.keymap_new_from_string +#define xkb_keymap_unref _glfw.wl.xkb.keymap_unref +#define xkb_keymap_mod_get_index _glfw.wl.xkb.keymap_mod_get_index +#define xkb_keymap_key_repeats _glfw.wl.xkb.keymap_key_repeats +#define xkb_state_new _glfw.wl.xkb.state_new +#define xkb_state_unref _glfw.wl.xkb.state_unref +#define xkb_state_key_get_syms _glfw.wl.xkb.state_key_get_syms +#define xkb_state_update_mask _glfw.wl.xkb.state_update_mask +#define xkb_state_serialize_mods _glfw.wl.xkb.state_serialize_mods + +#ifdef HAVE_XKBCOMMON_COMPOSE_H +typedef struct xkb_compose_table* (* PFN_xkb_compose_table_new_from_locale)(struct xkb_context*, const char*, enum xkb_compose_compile_flags); +typedef void (* PFN_xkb_compose_table_unref)(struct xkb_compose_table*); +typedef struct xkb_compose_state* (* PFN_xkb_compose_state_new)(struct xkb_compose_table*, enum xkb_compose_state_flags); +typedef void (* PFN_xkb_compose_state_unref)(struct xkb_compose_state*); +typedef enum xkb_compose_feed_result (* PFN_xkb_compose_state_feed)(struct xkb_compose_state*, xkb_keysym_t); +typedef enum xkb_compose_status (* PFN_xkb_compose_state_get_status)(struct xkb_compose_state*); +typedef xkb_keysym_t (* PFN_xkb_compose_state_get_one_sym)(struct xkb_compose_state*); +#define xkb_compose_table_new_from_locale _glfw.wl.xkb.compose_table_new_from_locale +#define xkb_compose_table_unref _glfw.wl.xkb.compose_table_unref +#define xkb_compose_state_new _glfw.wl.xkb.compose_state_new +#define xkb_compose_state_unref _glfw.wl.xkb.compose_state_unref +#define xkb_compose_state_feed _glfw.wl.xkb.compose_state_feed +#define xkb_compose_state_get_status _glfw.wl.xkb.compose_state_get_status +#define xkb_compose_state_get_one_sym _glfw.wl.xkb.compose_state_get_one_sym +#endif + +#define _GLFW_DECORATION_WIDTH 4 +#define _GLFW_DECORATION_TOP 24 +#define _GLFW_DECORATION_VERTICAL (_GLFW_DECORATION_TOP + _GLFW_DECORATION_WIDTH) +#define _GLFW_DECORATION_HORIZONTAL (2 * _GLFW_DECORATION_WIDTH) + +typedef enum _GLFWdecorationSideWayland +{ + mainWindow, + topDecoration, + leftDecoration, + rightDecoration, + bottomDecoration, + +} _GLFWdecorationSideWayland; + +typedef struct _GLFWdecorationWayland +{ + struct wl_surface* surface; + struct wl_subsurface* subsurface; + struct wp_viewport* viewport; + +} _GLFWdecorationWayland; + +// Wayland-specific per-window data +// +typedef struct _GLFWwindowWayland +{ + int width, height; + GLFWbool visible; + GLFWbool maximized; + GLFWbool hovered; + GLFWbool transparent; + struct wl_surface* surface; + struct wl_egl_window* native; + struct wl_shell_surface* shellSurface; + struct wl_callback* callback; + + struct { + struct xdg_surface* surface; + struct xdg_toplevel* toplevel; + struct zxdg_toplevel_decoration_v1* decoration; + } xdg; + + _GLFWcursor* currentCursor; + double cursorPosX, cursorPosY; + + char* title; + + // We need to track the monitors the window spans on to calculate the + // optimal scaling factor. + int scale; + _GLFWmonitor** monitors; + int monitorsCount; + int monitorsSize; + + struct { + struct zwp_relative_pointer_v1* relativePointer; + struct zwp_locked_pointer_v1* lockedPointer; + } pointerLock; + + struct zwp_idle_inhibitor_v1* idleInhibitor; + + GLFWbool wasFullscreen; + + struct { + GLFWbool serverSide; + struct wl_buffer* buffer; + _GLFWdecorationWayland top, left, right, bottom; + int focus; + } decorations; + +} _GLFWwindowWayland; + +// Wayland-specific global data +// +typedef struct _GLFWlibraryWayland +{ + struct wl_display* display; + struct wl_registry* registry; + struct wl_compositor* compositor; + struct wl_subcompositor* subcompositor; + struct wl_shell* shell; + struct wl_shm* shm; + struct wl_seat* seat; + struct wl_pointer* pointer; + struct wl_keyboard* keyboard; + struct wl_data_device_manager* dataDeviceManager; + struct wl_data_device* dataDevice; + struct wl_data_offer* dataOffer; + struct wl_data_source* dataSource; + struct xdg_wm_base* wmBase; + struct zxdg_decoration_manager_v1* decorationManager; + struct wp_viewporter* viewporter; + struct zwp_relative_pointer_manager_v1* relativePointerManager; + struct zwp_pointer_constraints_v1* pointerConstraints; + struct zwp_idle_inhibit_manager_v1* idleInhibitManager; + + int compositorVersion; + int seatVersion; + + struct wl_cursor_theme* cursorTheme; + struct wl_cursor_theme* cursorThemeHiDPI; + struct wl_surface* cursorSurface; + const char* cursorPreviousName; + int cursorTimerfd; + uint32_t serial; + + int32_t keyboardRepeatRate; + int32_t keyboardRepeatDelay; + int keyboardLastKey; + int keyboardLastScancode; + char* clipboardString; + size_t clipboardSize; + char* clipboardSendString; + size_t clipboardSendSize; + int timerfd; + short int keycodes[256]; + short int scancodes[GLFW_KEY_LAST + 1]; + + struct { + void* handle; + struct xkb_context* context; + struct xkb_keymap* keymap; + struct xkb_state* state; + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + struct xkb_compose_state* composeState; +#endif + + xkb_mod_mask_t controlMask; + xkb_mod_mask_t altMask; + xkb_mod_mask_t shiftMask; + xkb_mod_mask_t superMask; + xkb_mod_mask_t capsLockMask; + xkb_mod_mask_t numLockMask; + unsigned int modifiers; + + PFN_xkb_context_new context_new; + PFN_xkb_context_unref context_unref; + PFN_xkb_keymap_new_from_string keymap_new_from_string; + PFN_xkb_keymap_unref keymap_unref; + PFN_xkb_keymap_mod_get_index keymap_mod_get_index; + PFN_xkb_keymap_key_repeats keymap_key_repeats; + PFN_xkb_state_new state_new; + PFN_xkb_state_unref state_unref; + PFN_xkb_state_key_get_syms state_key_get_syms; + PFN_xkb_state_update_mask state_update_mask; + PFN_xkb_state_serialize_mods state_serialize_mods; + +#ifdef HAVE_XKBCOMMON_COMPOSE_H + PFN_xkb_compose_table_new_from_locale compose_table_new_from_locale; + PFN_xkb_compose_table_unref compose_table_unref; + PFN_xkb_compose_state_new compose_state_new; + PFN_xkb_compose_state_unref compose_state_unref; + PFN_xkb_compose_state_feed compose_state_feed; + PFN_xkb_compose_state_get_status compose_state_get_status; + PFN_xkb_compose_state_get_one_sym compose_state_get_one_sym; +#endif + } xkb; + + _GLFWwindow* pointerFocus; + _GLFWwindow* keyboardFocus; + + struct { + void* handle; + + PFN_wl_cursor_theme_load theme_load; + PFN_wl_cursor_theme_destroy theme_destroy; + PFN_wl_cursor_theme_get_cursor theme_get_cursor; + PFN_wl_cursor_image_get_buffer image_get_buffer; + } cursor; + + struct { + void* handle; + + PFN_wl_egl_window_create window_create; + PFN_wl_egl_window_destroy window_destroy; + PFN_wl_egl_window_resize window_resize; + } egl; + +} _GLFWlibraryWayland; + +// Wayland-specific per-monitor data +// +typedef struct _GLFWmonitorWayland +{ + struct wl_output* output; + uint32_t name; + int currentMode; + + int x; + int y; + int scale; + +} _GLFWmonitorWayland; + +// Wayland-specific per-cursor data +// +typedef struct _GLFWcursorWayland +{ + struct wl_cursor* cursor; + struct wl_cursor* cursorHiDPI; + struct wl_buffer* buffer; + int width, height; + int xhot, yhot; + int currentImage; +} _GLFWcursorWayland; + + +void _glfwAddOutputWayland(uint32_t name, uint32_t version); + diff --git a/external/glfw-3.3.4/src/wl_window.c b/external/glfw-3.3.4/src/wl_window.c new file mode 100644 index 0000000..d10861c --- /dev/null +++ b/external/glfw-3.3.4/src/wl_window.c @@ -0,0 +1,1903 @@ +//======================================================================== +// GLFW 3.3 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#define _GNU_SOURCE + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +static void shellSurfaceHandlePing(void* data, + struct wl_shell_surface* shellSurface, + uint32_t serial) +{ + wl_shell_surface_pong(shellSurface, serial); +} + +static void shellSurfaceHandleConfigure(void* data, + struct wl_shell_surface* shellSurface, + uint32_t edges, + int32_t width, + int32_t height) +{ + _GLFWwindow* window = data; + float aspectRatio; + float targetRatio; + + if (!window->monitor) + { + if (_glfw.wl.viewporter && window->decorated) + { + width -= _GLFW_DECORATION_HORIZONTAL; + height -= _GLFW_DECORATION_VERTICAL; + } + if (width < 1) + width = 1; + if (height < 1) + height = 1; + + if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) + { + aspectRatio = (float)width / (float)height; + targetRatio = (float)window->numer / (float)window->denom; + if (aspectRatio < targetRatio) + height = width / targetRatio; + else if (aspectRatio > targetRatio) + width = height * targetRatio; + } + + if (window->minwidth != GLFW_DONT_CARE && width < window->minwidth) + width = window->minwidth; + else if (window->maxwidth != GLFW_DONT_CARE && width > window->maxwidth) + width = window->maxwidth; + + if (window->minheight != GLFW_DONT_CARE && height < window->minheight) + height = window->minheight; + else if (window->maxheight != GLFW_DONT_CARE && height > window->maxheight) + height = window->maxheight; + } + + _glfwInputWindowSize(window, width, height); + _glfwPlatformSetWindowSize(window, width, height); + _glfwInputWindowDamage(window); +} + +static void shellSurfaceHandlePopupDone(void* data, + struct wl_shell_surface* shellSurface) +{ +} + +static const struct wl_shell_surface_listener shellSurfaceListener = { + shellSurfaceHandlePing, + shellSurfaceHandleConfigure, + shellSurfaceHandlePopupDone +}; + +static int createTmpfileCloexec(char* tmpname) +{ + int fd; + + fd = mkostemp(tmpname, O_CLOEXEC); + if (fd >= 0) + unlink(tmpname); + + return fd; +} + +/* + * Create a new, unique, anonymous file of the given size, and + * return the file descriptor for it. The file descriptor is set + * CLOEXEC. The file is immediately suitable for mmap()'ing + * the given size at offset zero. + * + * The file should not have a permanent backing store like a disk, + * but may have if XDG_RUNTIME_DIR is not properly implemented in OS. + * + * The file name is deleted from the file system. + * + * The file is suitable for buffer sharing between processes by + * transmitting the file descriptor over Unix sockets using the + * SCM_RIGHTS methods. + * + * posix_fallocate() is used to guarantee that disk space is available + * for the file at the given size. If disk space is insufficient, errno + * is set to ENOSPC. If posix_fallocate() is not supported, program may + * receive SIGBUS on accessing mmap()'ed file contents instead. + */ +static int createAnonymousFile(off_t size) +{ + static const char template[] = "/glfw-shared-XXXXXX"; + const char* path; + char* name; + int fd; + int ret; + +#ifdef HAVE_MEMFD_CREATE + fd = memfd_create("glfw-shared", MFD_CLOEXEC | MFD_ALLOW_SEALING); + if (fd >= 0) + { + // We can add this seal before calling posix_fallocate(), as the file + // is currently zero-sized anyway. + // + // There is also no need to check for the return value, we couldn’t do + // anything with it anyway. + fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); + } + else +#elif defined(SHM_ANON) + fd = shm_open(SHM_ANON, O_RDWR | O_CLOEXEC, 0600); + if (fd < 0) +#endif + { + path = getenv("XDG_RUNTIME_DIR"); + if (!path) + { + errno = ENOENT; + return -1; + } + + name = calloc(strlen(path) + sizeof(template), 1); + strcpy(name, path); + strcat(name, template); + + fd = createTmpfileCloexec(name); + free(name); + if (fd < 0) + return -1; + } + +#if defined(SHM_ANON) + // posix_fallocate does not work on SHM descriptors + ret = ftruncate(fd, size); +#else + ret = posix_fallocate(fd, 0, size); +#endif + if (ret != 0) + { + close(fd); + errno = ret; + return -1; + } + return fd; +} + +static struct wl_buffer* createShmBuffer(const GLFWimage* image) +{ + struct wl_shm_pool* pool; + struct wl_buffer* buffer; + int stride = image->width * 4; + int length = image->width * image->height * 4; + void* data; + int fd, i; + + fd = createAnonymousFile(length); + if (fd < 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Creating a buffer file for %d B failed: %s", + length, strerror(errno)); + return NULL; + } + + data = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (data == MAP_FAILED) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: mmap failed: %s", strerror(errno)); + close(fd); + return NULL; + } + + pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); + + close(fd); + unsigned char* source = (unsigned char*) image->pixels; + unsigned char* target = data; + for (i = 0; i < image->width * image->height; i++, source += 4) + { + unsigned int alpha = source[3]; + + *target++ = (unsigned char) ((source[2] * alpha) / 255); + *target++ = (unsigned char) ((source[1] * alpha) / 255); + *target++ = (unsigned char) ((source[0] * alpha) / 255); + *target++ = (unsigned char) alpha; + } + + buffer = + wl_shm_pool_create_buffer(pool, 0, + image->width, + image->height, + stride, WL_SHM_FORMAT_ARGB8888); + munmap(data, length); + wl_shm_pool_destroy(pool); + + return buffer; +} + +static void createDecoration(_GLFWdecorationWayland* decoration, + struct wl_surface* parent, + struct wl_buffer* buffer, GLFWbool opaque, + int x, int y, + int width, int height) +{ + struct wl_region* region; + + decoration->surface = wl_compositor_create_surface(_glfw.wl.compositor); + decoration->subsurface = + wl_subcompositor_get_subsurface(_glfw.wl.subcompositor, + decoration->surface, parent); + wl_subsurface_set_position(decoration->subsurface, x, y); + decoration->viewport = wp_viewporter_get_viewport(_glfw.wl.viewporter, + decoration->surface); + wp_viewport_set_destination(decoration->viewport, width, height); + wl_surface_attach(decoration->surface, buffer, 0, 0); + + if (opaque) + { + region = wl_compositor_create_region(_glfw.wl.compositor); + wl_region_add(region, 0, 0, width, height); + wl_surface_set_opaque_region(decoration->surface, region); + wl_surface_commit(decoration->surface); + wl_region_destroy(region); + } + else + wl_surface_commit(decoration->surface); +} + +static void createDecorations(_GLFWwindow* window) +{ + unsigned char data[] = { 224, 224, 224, 255 }; + const GLFWimage image = { 1, 1, data }; + GLFWbool opaque = (data[3] == 255); + + if (!_glfw.wl.viewporter || !window->decorated || window->wl.decorations.serverSide) + return; + + if (!window->wl.decorations.buffer) + window->wl.decorations.buffer = createShmBuffer(&image); + if (!window->wl.decorations.buffer) + return; + + createDecoration(&window->wl.decorations.top, window->wl.surface, + window->wl.decorations.buffer, opaque, + 0, -_GLFW_DECORATION_TOP, + window->wl.width, _GLFW_DECORATION_TOP); + createDecoration(&window->wl.decorations.left, window->wl.surface, + window->wl.decorations.buffer, opaque, + -_GLFW_DECORATION_WIDTH, -_GLFW_DECORATION_TOP, + _GLFW_DECORATION_WIDTH, window->wl.height + _GLFW_DECORATION_TOP); + createDecoration(&window->wl.decorations.right, window->wl.surface, + window->wl.decorations.buffer, opaque, + window->wl.width, -_GLFW_DECORATION_TOP, + _GLFW_DECORATION_WIDTH, window->wl.height + _GLFW_DECORATION_TOP); + createDecoration(&window->wl.decorations.bottom, window->wl.surface, + window->wl.decorations.buffer, opaque, + -_GLFW_DECORATION_WIDTH, window->wl.height, + window->wl.width + _GLFW_DECORATION_HORIZONTAL, _GLFW_DECORATION_WIDTH); +} + +static void destroyDecoration(_GLFWdecorationWayland* decoration) +{ + if (decoration->subsurface) + wl_subsurface_destroy(decoration->subsurface); + if (decoration->surface) + wl_surface_destroy(decoration->surface); + if (decoration->viewport) + wp_viewport_destroy(decoration->viewport); + decoration->surface = NULL; + decoration->subsurface = NULL; + decoration->viewport = NULL; +} + +static void destroyDecorations(_GLFWwindow* window) +{ + destroyDecoration(&window->wl.decorations.top); + destroyDecoration(&window->wl.decorations.left); + destroyDecoration(&window->wl.decorations.right); + destroyDecoration(&window->wl.decorations.bottom); +} + +static void xdgDecorationHandleConfigure(void* data, + struct zxdg_toplevel_decoration_v1* decoration, + uint32_t mode) +{ + _GLFWwindow* window = data; + + window->wl.decorations.serverSide = (mode == ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); + + if (!window->wl.decorations.serverSide) + createDecorations(window); +} + +static const struct zxdg_toplevel_decoration_v1_listener xdgDecorationListener = { + xdgDecorationHandleConfigure, +}; + +// Makes the surface considered as XRGB instead of ARGB. +static void setOpaqueRegion(_GLFWwindow* window) +{ + struct wl_region* region; + + region = wl_compositor_create_region(_glfw.wl.compositor); + if (!region) + return; + + wl_region_add(region, 0, 0, window->wl.width, window->wl.height); + wl_surface_set_opaque_region(window->wl.surface, region); + wl_surface_commit(window->wl.surface); + wl_region_destroy(region); +} + + +static void resizeWindow(_GLFWwindow* window) +{ + int scale = window->wl.scale; + int scaledWidth = window->wl.width * scale; + int scaledHeight = window->wl.height * scale; + wl_egl_window_resize(window->wl.native, scaledWidth, scaledHeight, 0, 0); + if (!window->wl.transparent) + setOpaqueRegion(window); + _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); + _glfwInputWindowContentScale(window, scale, scale); + + if (!window->wl.decorations.top.surface) + return; + + // Top decoration. + wp_viewport_set_destination(window->wl.decorations.top.viewport, + window->wl.width, _GLFW_DECORATION_TOP); + wl_surface_commit(window->wl.decorations.top.surface); + + // Left decoration. + wp_viewport_set_destination(window->wl.decorations.left.viewport, + _GLFW_DECORATION_WIDTH, window->wl.height + _GLFW_DECORATION_TOP); + wl_surface_commit(window->wl.decorations.left.surface); + + // Right decoration. + wl_subsurface_set_position(window->wl.decorations.right.subsurface, + window->wl.width, -_GLFW_DECORATION_TOP); + wp_viewport_set_destination(window->wl.decorations.right.viewport, + _GLFW_DECORATION_WIDTH, window->wl.height + _GLFW_DECORATION_TOP); + wl_surface_commit(window->wl.decorations.right.surface); + + // Bottom decoration. + wl_subsurface_set_position(window->wl.decorations.bottom.subsurface, + -_GLFW_DECORATION_WIDTH, window->wl.height); + wp_viewport_set_destination(window->wl.decorations.bottom.viewport, + window->wl.width + _GLFW_DECORATION_HORIZONTAL, _GLFW_DECORATION_WIDTH); + wl_surface_commit(window->wl.decorations.bottom.surface); +} + +static void checkScaleChange(_GLFWwindow* window) +{ + int scale = 1; + int i; + int monitorScale; + + // Check if we will be able to set the buffer scale or not. + if (_glfw.wl.compositorVersion < 3) + return; + + // Get the scale factor from the highest scale monitor. + for (i = 0; i < window->wl.monitorsCount; ++i) + { + monitorScale = window->wl.monitors[i]->wl.scale; + if (scale < monitorScale) + scale = monitorScale; + } + + // Only change the framebuffer size if the scale changed. + if (scale != window->wl.scale) + { + window->wl.scale = scale; + wl_surface_set_buffer_scale(window->wl.surface, scale); + resizeWindow(window); + } +} + +static void surfaceHandleEnter(void *data, + struct wl_surface *surface, + struct wl_output *output) +{ + _GLFWwindow* window = data; + _GLFWmonitor* monitor = wl_output_get_user_data(output); + + if (window->wl.monitorsCount + 1 > window->wl.monitorsSize) + { + ++window->wl.monitorsSize; + window->wl.monitors = + realloc(window->wl.monitors, + window->wl.monitorsSize * sizeof(_GLFWmonitor*)); + } + + window->wl.monitors[window->wl.monitorsCount++] = monitor; + + checkScaleChange(window); +} + +static void surfaceHandleLeave(void *data, + struct wl_surface *surface, + struct wl_output *output) +{ + _GLFWwindow* window = data; + _GLFWmonitor* monitor = wl_output_get_user_data(output); + GLFWbool found; + int i; + + for (i = 0, found = GLFW_FALSE; i < window->wl.monitorsCount - 1; ++i) + { + if (monitor == window->wl.monitors[i]) + found = GLFW_TRUE; + if (found) + window->wl.monitors[i] = window->wl.monitors[i + 1]; + } + window->wl.monitors[--window->wl.monitorsCount] = NULL; + + checkScaleChange(window); +} + +static const struct wl_surface_listener surfaceListener = { + surfaceHandleEnter, + surfaceHandleLeave +}; + +static void setIdleInhibitor(_GLFWwindow* window, GLFWbool enable) +{ + if (enable && !window->wl.idleInhibitor && _glfw.wl.idleInhibitManager) + { + window->wl.idleInhibitor = + zwp_idle_inhibit_manager_v1_create_inhibitor( + _glfw.wl.idleInhibitManager, window->wl.surface); + if (!window->wl.idleInhibitor) + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Idle inhibitor creation failed"); + } + else if (!enable && window->wl.idleInhibitor) + { + zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor); + window->wl.idleInhibitor = NULL; + } +} + +static GLFWbool createSurface(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig) +{ + window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor); + if (!window->wl.surface) + return GLFW_FALSE; + + wl_surface_add_listener(window->wl.surface, + &surfaceListener, + window); + + wl_surface_set_user_data(window->wl.surface, window); + + window->wl.native = wl_egl_window_create(window->wl.surface, + wndconfig->width, + wndconfig->height); + if (!window->wl.native) + return GLFW_FALSE; + + window->wl.width = wndconfig->width; + window->wl.height = wndconfig->height; + window->wl.scale = 1; + + if (!window->wl.transparent) + setOpaqueRegion(window); + + return GLFW_TRUE; +} + +static void setFullscreen(_GLFWwindow* window, _GLFWmonitor* monitor, + int refreshRate) +{ + if (window->wl.xdg.toplevel) + { + xdg_toplevel_set_fullscreen( + window->wl.xdg.toplevel, + monitor->wl.output); + } + else if (window->wl.shellSurface) + { + wl_shell_surface_set_fullscreen( + window->wl.shellSurface, + WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, + refreshRate * 1000, // Convert Hz to mHz. + monitor->wl.output); + } + setIdleInhibitor(window, GLFW_TRUE); + if (!window->wl.decorations.serverSide) + destroyDecorations(window); +} + +static GLFWbool createShellSurface(_GLFWwindow* window) +{ + if (!_glfw.wl.shell) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: wl_shell protocol not available"); + return GLFW_FALSE; + } + + window->wl.shellSurface = wl_shell_get_shell_surface(_glfw.wl.shell, + window->wl.surface); + if (!window->wl.shellSurface) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Shell surface creation failed"); + return GLFW_FALSE; + } + + wl_shell_surface_add_listener(window->wl.shellSurface, + &shellSurfaceListener, + window); + + if (window->wl.title) + wl_shell_surface_set_title(window->wl.shellSurface, window->wl.title); + + if (window->monitor) + { + setFullscreen(window, window->monitor, 0); + } + else if (window->wl.maximized) + { + wl_shell_surface_set_maximized(window->wl.shellSurface, NULL); + setIdleInhibitor(window, GLFW_FALSE); + createDecorations(window); + } + else + { + wl_shell_surface_set_toplevel(window->wl.shellSurface); + setIdleInhibitor(window, GLFW_FALSE); + createDecorations(window); + } + + wl_surface_commit(window->wl.surface); + + return GLFW_TRUE; +} + +static void xdgToplevelHandleConfigure(void* data, + struct xdg_toplevel* toplevel, + int32_t width, + int32_t height, + struct wl_array* states) +{ + _GLFWwindow* window = data; + float aspectRatio; + float targetRatio; + uint32_t* state; + GLFWbool maximized = GLFW_FALSE; + GLFWbool fullscreen = GLFW_FALSE; + GLFWbool activated = GLFW_FALSE; + + wl_array_for_each(state, states) + { + switch (*state) + { + case XDG_TOPLEVEL_STATE_MAXIMIZED: + maximized = GLFW_TRUE; + break; + case XDG_TOPLEVEL_STATE_FULLSCREEN: + fullscreen = GLFW_TRUE; + break; + case XDG_TOPLEVEL_STATE_RESIZING: + break; + case XDG_TOPLEVEL_STATE_ACTIVATED: + activated = GLFW_TRUE; + break; + } + } + + if (width != 0 && height != 0) + { + if (!maximized && !fullscreen) + { + if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) + { + aspectRatio = (float)width / (float)height; + targetRatio = (float)window->numer / (float)window->denom; + if (aspectRatio < targetRatio) + height = width / targetRatio; + else if (aspectRatio > targetRatio) + width = height * targetRatio; + } + } + + _glfwInputWindowSize(window, width, height); + _glfwPlatformSetWindowSize(window, width, height); + _glfwInputWindowDamage(window); + } + + if (window->wl.wasFullscreen && window->autoIconify) + { + if (!activated || !fullscreen) + { + _glfwPlatformIconifyWindow(window); + window->wl.wasFullscreen = GLFW_FALSE; + } + } + if (fullscreen && activated) + window->wl.wasFullscreen = GLFW_TRUE; + _glfwInputWindowFocus(window, activated); +} + +static void xdgToplevelHandleClose(void* data, + struct xdg_toplevel* toplevel) +{ + _GLFWwindow* window = data; + _glfwInputWindowCloseRequest(window); +} + +static const struct xdg_toplevel_listener xdgToplevelListener = { + xdgToplevelHandleConfigure, + xdgToplevelHandleClose +}; + +static void xdgSurfaceHandleConfigure(void* data, + struct xdg_surface* surface, + uint32_t serial) +{ + xdg_surface_ack_configure(surface, serial); +} + +static const struct xdg_surface_listener xdgSurfaceListener = { + xdgSurfaceHandleConfigure +}; + +static void setXdgDecorations(_GLFWwindow* window) +{ + if (_glfw.wl.decorationManager) + { + window->wl.xdg.decoration = + zxdg_decoration_manager_v1_get_toplevel_decoration( + _glfw.wl.decorationManager, window->wl.xdg.toplevel); + zxdg_toplevel_decoration_v1_add_listener(window->wl.xdg.decoration, + &xdgDecorationListener, + window); + zxdg_toplevel_decoration_v1_set_mode( + window->wl.xdg.decoration, + ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); + } + else + { + window->wl.decorations.serverSide = GLFW_FALSE; + createDecorations(window); + } +} + +static GLFWbool createXdgSurface(_GLFWwindow* window) +{ + window->wl.xdg.surface = xdg_wm_base_get_xdg_surface(_glfw.wl.wmBase, + window->wl.surface); + if (!window->wl.xdg.surface) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: xdg-surface creation failed"); + return GLFW_FALSE; + } + + xdg_surface_add_listener(window->wl.xdg.surface, + &xdgSurfaceListener, + window); + + window->wl.xdg.toplevel = xdg_surface_get_toplevel(window->wl.xdg.surface); + if (!window->wl.xdg.toplevel) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: xdg-toplevel creation failed"); + return GLFW_FALSE; + } + + xdg_toplevel_add_listener(window->wl.xdg.toplevel, + &xdgToplevelListener, + window); + + if (window->wl.title) + xdg_toplevel_set_title(window->wl.xdg.toplevel, window->wl.title); + + if (window->minwidth != GLFW_DONT_CARE && window->minheight != GLFW_DONT_CARE) + xdg_toplevel_set_min_size(window->wl.xdg.toplevel, + window->minwidth, window->minheight); + if (window->maxwidth != GLFW_DONT_CARE && window->maxheight != GLFW_DONT_CARE) + xdg_toplevel_set_max_size(window->wl.xdg.toplevel, + window->maxwidth, window->maxheight); + + if (window->monitor) + { + xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, + window->monitor->wl.output); + setIdleInhibitor(window, GLFW_TRUE); + } + else if (window->wl.maximized) + { + xdg_toplevel_set_maximized(window->wl.xdg.toplevel); + setIdleInhibitor(window, GLFW_FALSE); + setXdgDecorations(window); + } + else + { + setIdleInhibitor(window, GLFW_FALSE); + setXdgDecorations(window); + } + + wl_surface_commit(window->wl.surface); + wl_display_roundtrip(_glfw.wl.display); + + return GLFW_TRUE; +} + +static void setCursorImage(_GLFWwindow* window, + _GLFWcursorWayland* cursorWayland) +{ + struct itimerspec timer = {}; + struct wl_cursor* wlCursor = cursorWayland->cursor; + struct wl_cursor_image* image; + struct wl_buffer* buffer; + struct wl_surface* surface = _glfw.wl.cursorSurface; + int scale = 1; + + if (!wlCursor) + buffer = cursorWayland->buffer; + else + { + if (window->wl.scale > 1 && cursorWayland->cursorHiDPI) + { + wlCursor = cursorWayland->cursorHiDPI; + scale = 2; + } + + image = wlCursor->images[cursorWayland->currentImage]; + buffer = wl_cursor_image_get_buffer(image); + if (!buffer) + return; + + timer.it_value.tv_sec = image->delay / 1000; + timer.it_value.tv_nsec = (image->delay % 1000) * 1000000; + timerfd_settime(_glfw.wl.cursorTimerfd, 0, &timer, NULL); + + cursorWayland->width = image->width; + cursorWayland->height = image->height; + cursorWayland->xhot = image->hotspot_x; + cursorWayland->yhot = image->hotspot_y; + } + + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.serial, + surface, + cursorWayland->xhot / scale, + cursorWayland->yhot / scale); + wl_surface_set_buffer_scale(surface, scale); + wl_surface_attach(surface, buffer, 0, 0); + wl_surface_damage(surface, 0, 0, + cursorWayland->width, cursorWayland->height); + wl_surface_commit(surface); +} + +static void incrementCursorImage(_GLFWwindow* window) +{ + _GLFWcursor* cursor; + + if (!window || window->wl.decorations.focus != mainWindow) + return; + + cursor = window->wl.currentCursor; + if (cursor && cursor->wl.cursor) + { + cursor->wl.currentImage += 1; + cursor->wl.currentImage %= cursor->wl.cursor->image_count; + setCursorImage(window, &cursor->wl); + } +} + +static void handleEvents(int timeout) +{ + struct wl_display* display = _glfw.wl.display; + struct pollfd fds[] = { + { wl_display_get_fd(display), POLLIN }, + { _glfw.wl.timerfd, POLLIN }, + { _glfw.wl.cursorTimerfd, POLLIN }, + }; + ssize_t read_ret; + uint64_t repeats, i; + + while (wl_display_prepare_read(display) != 0) + wl_display_dispatch_pending(display); + + // If an error different from EAGAIN happens, we have likely been + // disconnected from the Wayland session, try to handle that the best we + // can. + if (wl_display_flush(display) < 0 && errno != EAGAIN) + { + _GLFWwindow* window = _glfw.windowListHead; + while (window) + { + _glfwInputWindowCloseRequest(window); + window = window->next; + } + wl_display_cancel_read(display); + return; + } + + if (poll(fds, 3, timeout) > 0) + { + if (fds[0].revents & POLLIN) + { + wl_display_read_events(display); + wl_display_dispatch_pending(display); + } + else + { + wl_display_cancel_read(display); + } + + if (fds[1].revents & POLLIN) + { + read_ret = read(_glfw.wl.timerfd, &repeats, sizeof(repeats)); + if (read_ret != 8) + return; + + if (_glfw.wl.keyboardFocus) + { + for (i = 0; i < repeats; ++i) + { + _glfwInputKey(_glfw.wl.keyboardFocus, + _glfw.wl.keyboardLastKey, + _glfw.wl.keyboardLastScancode, + GLFW_REPEAT, + _glfw.wl.xkb.modifiers); + } + } + } + + if (fds[2].revents & POLLIN) + { + read_ret = read(_glfw.wl.cursorTimerfd, &repeats, sizeof(repeats)); + if (read_ret != 8) + return; + + incrementCursorImage(_glfw.wl.pointerFocus); + } + } + else + { + wl_display_cancel_read(display); + } +} + +// Translates a GLFW standard cursor to a theme cursor name +// +static char *translateCursorShape(int shape) +{ + switch (shape) + { + case GLFW_ARROW_CURSOR: + return "left_ptr"; + case GLFW_IBEAM_CURSOR: + return "xterm"; + case GLFW_CROSSHAIR_CURSOR: + return "crosshair"; + case GLFW_HAND_CURSOR: + return "hand2"; + case GLFW_HRESIZE_CURSOR: + return "sb_h_double_arrow"; + case GLFW_VRESIZE_CURSOR: + return "sb_v_double_arrow"; + } + return NULL; +} + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformCreateWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + window->wl.transparent = fbconfig->transparent; + + if (!createSurface(window, wndconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_EGL_CONTEXT_API || + ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + } + + if (wndconfig->title) + window->wl.title = _glfw_strdup(wndconfig->title); + + if (wndconfig->visible) + { + if (_glfw.wl.wmBase) + { + if (!createXdgSurface(window)) + return GLFW_FALSE; + } + else + { + if (!createShellSurface(window)) + return GLFW_FALSE; + } + + window->wl.visible = GLFW_TRUE; + } + else + { + window->wl.xdg.surface = NULL; + window->wl.xdg.toplevel = NULL; + window->wl.shellSurface = NULL; + window->wl.visible = GLFW_FALSE; + } + + window->wl.currentCursor = NULL; + + window->wl.monitors = calloc(1, sizeof(_GLFWmonitor*)); + window->wl.monitorsCount = 0; + window->wl.monitorsSize = 1; + + return GLFW_TRUE; +} + +void _glfwPlatformDestroyWindow(_GLFWwindow* window) +{ + if (window == _glfw.wl.pointerFocus) + { + _glfw.wl.pointerFocus = NULL; + _glfwInputCursorEnter(window, GLFW_FALSE); + } + if (window == _glfw.wl.keyboardFocus) + { + _glfw.wl.keyboardFocus = NULL; + _glfwInputWindowFocus(window, GLFW_FALSE); + } + + if (window->wl.idleInhibitor) + zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor); + + if (window->context.destroy) + window->context.destroy(window); + + destroyDecorations(window); + if (window->wl.xdg.decoration) + zxdg_toplevel_decoration_v1_destroy(window->wl.xdg.decoration); + + if (window->wl.decorations.buffer) + wl_buffer_destroy(window->wl.decorations.buffer); + + if (window->wl.native) + wl_egl_window_destroy(window->wl.native); + + if (window->wl.shellSurface) + wl_shell_surface_destroy(window->wl.shellSurface); + + if (window->wl.xdg.toplevel) + xdg_toplevel_destroy(window->wl.xdg.toplevel); + + if (window->wl.xdg.surface) + xdg_surface_destroy(window->wl.xdg.surface); + + if (window->wl.surface) + wl_surface_destroy(window->wl.surface); + + free(window->wl.title); + free(window->wl.monitors); +} + +void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title) +{ + if (window->wl.title) + free(window->wl.title); + window->wl.title = _glfw_strdup(title); + if (window->wl.xdg.toplevel) + xdg_toplevel_set_title(window->wl.xdg.toplevel, title); + else if (window->wl.shellSurface) + wl_shell_surface_set_title(window->wl.shellSurface, title); +} + +void _glfwPlatformSetWindowIcon(_GLFWwindow* window, + int count, const GLFWimage* images) +{ + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Setting window icon not supported"); +} + +void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) +{ + // A Wayland client is not aware of its position, so just warn and leave it + // as (0, 0) + + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Window position retrieval not supported"); +} + +void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) +{ + // A Wayland client can not set its position, so just warn + + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Window position setting not supported"); +} + +void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) +{ + if (width) + *width = window->wl.width; + if (height) + *height = window->wl.height; +} + +void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) +{ + window->wl.width = width; + window->wl.height = height; + resizeWindow(window); +} + +void _glfwPlatformSetWindowSizeLimits(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + if (_glfw.wl.wmBase) + { + if (window->wl.xdg.toplevel) + { + if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) + minwidth = minheight = 0; + if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) + maxwidth = maxheight = 0; + xdg_toplevel_set_min_size(window->wl.xdg.toplevel, minwidth, minheight); + xdg_toplevel_set_max_size(window->wl.xdg.toplevel, maxwidth, maxheight); + wl_surface_commit(window->wl.surface); + } + } + else + { + // TODO: find out how to trigger a resize. + // The actual limits are checked in the wl_shell_surface::configure handler. + } +} + +void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window, + int numer, int denom) +{ + // TODO: find out how to trigger a resize. + // The actual limits are checked in the wl_shell_surface::configure handler. +} + +void _glfwPlatformGetFramebufferSize(_GLFWwindow* window, + int* width, int* height) +{ + _glfwPlatformGetWindowSize(window, width, height); + if (width) + *width *= window->wl.scale; + if (height) + *height *= window->wl.scale; +} + +void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + if (window->decorated && !window->monitor && !window->wl.decorations.serverSide) + { + if (top) + *top = _GLFW_DECORATION_TOP; + if (left) + *left = _GLFW_DECORATION_WIDTH; + if (right) + *right = _GLFW_DECORATION_WIDTH; + if (bottom) + *bottom = _GLFW_DECORATION_WIDTH; + } +} + +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = (float) window->wl.scale; + if (yscale) + *yscale = (float) window->wl.scale; +} + +void _glfwPlatformIconifyWindow(_GLFWwindow* window) +{ + if (_glfw.wl.wmBase) + { + if (window->wl.xdg.toplevel) + xdg_toplevel_set_minimized(window->wl.xdg.toplevel); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Iconify window not supported on wl_shell"); + } +} + +void _glfwPlatformRestoreWindow(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + { + if (window->monitor) + xdg_toplevel_unset_fullscreen(window->wl.xdg.toplevel); + if (window->wl.maximized) + xdg_toplevel_unset_maximized(window->wl.xdg.toplevel); + // There is no way to unset minimized, or even to know if we are + // minimized, so there is nothing to do here. + } + else if (window->wl.shellSurface) + { + if (window->monitor || window->wl.maximized) + wl_shell_surface_set_toplevel(window->wl.shellSurface); + } + _glfwInputWindowMonitor(window, NULL); + window->wl.maximized = GLFW_FALSE; +} + +void _glfwPlatformMaximizeWindow(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + { + xdg_toplevel_set_maximized(window->wl.xdg.toplevel); + } + else if (window->wl.shellSurface) + { + // Let the compositor select the best output. + wl_shell_surface_set_maximized(window->wl.shellSurface, NULL); + } + window->wl.maximized = GLFW_TRUE; +} + +void _glfwPlatformShowWindow(_GLFWwindow* window) +{ + if (!window->wl.visible) + { + if (_glfw.wl.wmBase) + createXdgSurface(window); + else if (!window->wl.shellSurface) + createShellSurface(window); + window->wl.visible = GLFW_TRUE; + } +} + +void _glfwPlatformHideWindow(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + { + xdg_toplevel_destroy(window->wl.xdg.toplevel); + xdg_surface_destroy(window->wl.xdg.surface); + window->wl.xdg.toplevel = NULL; + window->wl.xdg.surface = NULL; + } + else if (window->wl.shellSurface) + { + wl_shell_surface_destroy(window->wl.shellSurface); + window->wl.shellSurface = NULL; + } + window->wl.visible = GLFW_FALSE; +} + +void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) +{ + // TODO + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Window attention request not implemented yet"); +} + +void _glfwPlatformFocusWindow(_GLFWwindow* window) +{ + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Focusing a window requires user interaction"); +} + +void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (monitor) + { + setFullscreen(window, monitor, refreshRate); + } + else + { + if (window->wl.xdg.toplevel) + xdg_toplevel_unset_fullscreen(window->wl.xdg.toplevel); + else if (window->wl.shellSurface) + wl_shell_surface_set_toplevel(window->wl.shellSurface); + setIdleInhibitor(window, GLFW_FALSE); + if (!_glfw.wl.decorationManager) + createDecorations(window); + } + _glfwInputWindowMonitor(window, monitor); +} + +int _glfwPlatformWindowFocused(_GLFWwindow* window) +{ + return _glfw.wl.keyboardFocus == window; +} + +int _glfwPlatformWindowIconified(_GLFWwindow* window) +{ + // wl_shell doesn't have any iconified concept, and xdg-shell doesn’t give + // any way to request whether a surface is iconified. + return GLFW_FALSE; +} + +int _glfwPlatformWindowVisible(_GLFWwindow* window) +{ + return window->wl.visible; +} + +int _glfwPlatformWindowMaximized(_GLFWwindow* window) +{ + return window->wl.maximized; +} + +int _glfwPlatformWindowHovered(_GLFWwindow* window) +{ + return window->wl.hovered; +} + +int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) +{ + return window->wl.transparent; +} + +void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) +{ + // TODO + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Window attribute setting not implemented yet"); +} + +void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) +{ + if (!window->monitor) + { + if (enabled) + createDecorations(window); + else + destroyDecorations(window); + } +} + +void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) +{ + // TODO + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Window attribute setting not implemented yet"); +} + +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window) +{ + return 1.f; +} + +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity) +{ +} + +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled) +{ + // This is handled in relativePointerHandleRelativeMotion +} + +GLFWbool _glfwPlatformRawMouseMotionSupported(void) +{ + return GLFW_TRUE; +} + +void _glfwPlatformPollEvents(void) +{ + handleEvents(0); +} + +void _glfwPlatformWaitEvents(void) +{ + handleEvents(-1); +} + +void _glfwPlatformWaitEventsTimeout(double timeout) +{ + handleEvents((int) (timeout * 1e3)); +} + +void _glfwPlatformPostEmptyEvent(void) +{ + wl_display_sync(_glfw.wl.display); +} + +void _glfwPlatformGetCursorPos(_GLFWwindow* window, double* xpos, double* ypos) +{ + if (xpos) + *xpos = window->wl.cursorPosX; + if (ypos) + *ypos = window->wl.cursorPosY; +} + +static GLFWbool isPointerLocked(_GLFWwindow* window); + +void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y) +{ + if (isPointerLocked(window)) + { + zwp_locked_pointer_v1_set_cursor_position_hint( + window->wl.pointerLock.lockedPointer, + wl_fixed_from_double(x), wl_fixed_from_double(y)); + wl_surface_commit(window->wl.surface); + } +} + +void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) +{ + _glfwPlatformSetCursor(window, window->wl.currentCursor); +} + +const char* _glfwPlatformGetScancodeName(int scancode) +{ + // TODO + return NULL; +} + +int _glfwPlatformGetKeyScancode(int key) +{ + return _glfw.wl.scancodes[key]; +} + +int _glfwPlatformCreateCursor(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + cursor->wl.buffer = createShmBuffer(image); + if (!cursor->wl.buffer) + return GLFW_FALSE; + + cursor->wl.width = image->width; + cursor->wl.height = image->height; + cursor->wl.xhot = xhot; + cursor->wl.yhot = yhot; + return GLFW_TRUE; +} + +int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) +{ + struct wl_cursor* standardCursor; + + standardCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, + translateCursorShape(shape)); + if (!standardCursor) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Standard cursor \"%s\" not found", + translateCursorShape(shape)); + return GLFW_FALSE; + } + + cursor->wl.cursor = standardCursor; + cursor->wl.currentImage = 0; + + if (_glfw.wl.cursorThemeHiDPI) + { + standardCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorThemeHiDPI, + translateCursorShape(shape)); + cursor->wl.cursorHiDPI = standardCursor; + } + + return GLFW_TRUE; +} + +void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) +{ + // If it's a standard cursor we don't need to do anything here + if (cursor->wl.cursor) + return; + + if (cursor->wl.buffer) + wl_buffer_destroy(cursor->wl.buffer); +} + +static void relativePointerHandleRelativeMotion(void* data, + struct zwp_relative_pointer_v1* pointer, + uint32_t timeHi, + uint32_t timeLo, + wl_fixed_t dx, + wl_fixed_t dy, + wl_fixed_t dxUnaccel, + wl_fixed_t dyUnaccel) +{ + _GLFWwindow* window = data; + double xpos = window->virtualCursorPosX; + double ypos = window->virtualCursorPosY; + + if (window->cursorMode != GLFW_CURSOR_DISABLED) + return; + + if (window->rawMouseMotion) + { + xpos += wl_fixed_to_double(dxUnaccel); + ypos += wl_fixed_to_double(dyUnaccel); + } + else + { + xpos += wl_fixed_to_double(dx); + ypos += wl_fixed_to_double(dy); + } + + _glfwInputCursorPos(window, xpos, ypos); +} + +static const struct zwp_relative_pointer_v1_listener relativePointerListener = { + relativePointerHandleRelativeMotion +}; + +static void lockedPointerHandleLocked(void* data, + struct zwp_locked_pointer_v1* lockedPointer) +{ +} + +static void unlockPointer(_GLFWwindow* window) +{ + struct zwp_relative_pointer_v1* relativePointer = + window->wl.pointerLock.relativePointer; + struct zwp_locked_pointer_v1* lockedPointer = + window->wl.pointerLock.lockedPointer; + + zwp_relative_pointer_v1_destroy(relativePointer); + zwp_locked_pointer_v1_destroy(lockedPointer); + + window->wl.pointerLock.relativePointer = NULL; + window->wl.pointerLock.lockedPointer = NULL; +} + +static void lockPointer(_GLFWwindow* window); + +static void lockedPointerHandleUnlocked(void* data, + struct zwp_locked_pointer_v1* lockedPointer) +{ +} + +static const struct zwp_locked_pointer_v1_listener lockedPointerListener = { + lockedPointerHandleLocked, + lockedPointerHandleUnlocked +}; + +static void lockPointer(_GLFWwindow* window) +{ + struct zwp_relative_pointer_v1* relativePointer; + struct zwp_locked_pointer_v1* lockedPointer; + + if (!_glfw.wl.relativePointerManager) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: no relative pointer manager"); + return; + } + + relativePointer = + zwp_relative_pointer_manager_v1_get_relative_pointer( + _glfw.wl.relativePointerManager, + _glfw.wl.pointer); + zwp_relative_pointer_v1_add_listener(relativePointer, + &relativePointerListener, + window); + + lockedPointer = + zwp_pointer_constraints_v1_lock_pointer( + _glfw.wl.pointerConstraints, + window->wl.surface, + _glfw.wl.pointer, + NULL, + ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT); + zwp_locked_pointer_v1_add_listener(lockedPointer, + &lockedPointerListener, + window); + + window->wl.pointerLock.relativePointer = relativePointer; + window->wl.pointerLock.lockedPointer = lockedPointer; + + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.serial, + NULL, 0, 0); +} + +static GLFWbool isPointerLocked(_GLFWwindow* window) +{ + return window->wl.pointerLock.lockedPointer != NULL; +} + +void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) +{ + struct wl_cursor* defaultCursor; + struct wl_cursor* defaultCursorHiDPI = NULL; + + if (!_glfw.wl.pointer) + return; + + window->wl.currentCursor = cursor; + + // If we're not in the correct window just save the cursor + // the next time the pointer enters the window the cursor will change + if (window != _glfw.wl.pointerFocus || window->wl.decorations.focus != mainWindow) + return; + + // Unlock possible pointer lock if no longer disabled. + if (window->cursorMode != GLFW_CURSOR_DISABLED && isPointerLocked(window)) + unlockPointer(window); + + if (window->cursorMode == GLFW_CURSOR_NORMAL) + { + if (cursor) + setCursorImage(window, &cursor->wl); + else + { + defaultCursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, + "left_ptr"); + if (!defaultCursor) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Standard cursor not found"); + return; + } + if (_glfw.wl.cursorThemeHiDPI) + defaultCursorHiDPI = + wl_cursor_theme_get_cursor(_glfw.wl.cursorThemeHiDPI, + "left_ptr"); + _GLFWcursorWayland cursorWayland = { + defaultCursor, + defaultCursorHiDPI, + NULL, + 0, 0, + 0, 0, + 0 + }; + setCursorImage(window, &cursorWayland); + } + } + else if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + if (!isPointerLocked(window)) + lockPointer(window); + } + else if (window->cursorMode == GLFW_CURSOR_HIDDEN) + { + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.serial, NULL, 0, 0); + } +} + +static void dataSourceHandleTarget(void* data, + struct wl_data_source* dataSource, + const char* mimeType) +{ + if (_glfw.wl.dataSource != dataSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unknown clipboard data source"); + return; + } +} + +static void dataSourceHandleSend(void* data, + struct wl_data_source* dataSource, + const char* mimeType, + int fd) +{ + const char* string = _glfw.wl.clipboardSendString; + size_t len = _glfw.wl.clipboardSendSize; + int ret; + + if (_glfw.wl.dataSource != dataSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unknown clipboard data source"); + return; + } + + if (!string) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Copy requested from an invalid string"); + return; + } + + if (strcmp(mimeType, "text/plain;charset=utf-8") != 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Wrong MIME type asked from clipboard"); + close(fd); + return; + } + + while (len > 0) + { + ret = write(fd, string, len); + if (ret == -1 && errno == EINTR) + continue; + if (ret == -1) + { + // TODO: also report errno maybe. + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Error while writing the clipboard"); + close(fd); + return; + } + len -= ret; + } + close(fd); +} + +static void dataSourceHandleCancelled(void* data, + struct wl_data_source* dataSource) +{ + wl_data_source_destroy(dataSource); + + if (_glfw.wl.dataSource != dataSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unknown clipboard data source"); + return; + } + + _glfw.wl.dataSource = NULL; +} + +static const struct wl_data_source_listener dataSourceListener = { + dataSourceHandleTarget, + dataSourceHandleSend, + dataSourceHandleCancelled, +}; + +void _glfwPlatformSetClipboardString(const char* string) +{ + if (_glfw.wl.dataSource) + { + wl_data_source_destroy(_glfw.wl.dataSource); + _glfw.wl.dataSource = NULL; + } + + if (_glfw.wl.clipboardSendString) + { + free(_glfw.wl.clipboardSendString); + _glfw.wl.clipboardSendString = NULL; + } + + _glfw.wl.clipboardSendString = strdup(string); + if (!_glfw.wl.clipboardSendString) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Impossible to allocate clipboard string"); + return; + } + _glfw.wl.clipboardSendSize = strlen(string); + _glfw.wl.dataSource = + wl_data_device_manager_create_data_source(_glfw.wl.dataDeviceManager); + if (!_glfw.wl.dataSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Impossible to create clipboard source"); + free(_glfw.wl.clipboardSendString); + return; + } + wl_data_source_add_listener(_glfw.wl.dataSource, + &dataSourceListener, + NULL); + wl_data_source_offer(_glfw.wl.dataSource, "text/plain;charset=utf-8"); + wl_data_device_set_selection(_glfw.wl.dataDevice, + _glfw.wl.dataSource, + _glfw.wl.serial); +} + +static GLFWbool growClipboardString(void) +{ + char* clipboard = _glfw.wl.clipboardString; + + clipboard = realloc(clipboard, _glfw.wl.clipboardSize * 2); + if (!clipboard) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Impossible to grow clipboard string"); + return GLFW_FALSE; + } + _glfw.wl.clipboardString = clipboard; + _glfw.wl.clipboardSize = _glfw.wl.clipboardSize * 2; + return GLFW_TRUE; +} + +const char* _glfwPlatformGetClipboardString(void) +{ + int fds[2]; + int ret; + size_t len = 0; + + if (!_glfw.wl.dataOffer) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "No clipboard data has been sent yet"); + return NULL; + } + + ret = pipe2(fds, O_CLOEXEC); + if (ret < 0) + { + // TODO: also report errno maybe? + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Impossible to create clipboard pipe fds"); + return NULL; + } + + wl_data_offer_receive(_glfw.wl.dataOffer, "text/plain;charset=utf-8", fds[1]); + close(fds[1]); + + // XXX: this is a huge hack, this function shouldn’t be synchronous! + handleEvents(-1); + + while (1) + { + // Grow the clipboard if we need to paste something bigger, there is no + // shrink operation yet. + if (len + 4096 > _glfw.wl.clipboardSize) + { + if (!growClipboardString()) + { + close(fds[0]); + return NULL; + } + } + + // Then read from the fd to the clipboard, handling all known errors. + ret = read(fds[0], _glfw.wl.clipboardString + len, 4096); + if (ret == 0) + break; + if (ret == -1 && errno == EINTR) + continue; + if (ret == -1) + { + // TODO: also report errno maybe. + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Impossible to read from clipboard fd"); + close(fds[0]); + return NULL; + } + len += ret; + } + close(fds[0]); + if (len + 1 > _glfw.wl.clipboardSize) + { + if (!growClipboardString()) + return NULL; + } + _glfw.wl.clipboardString[len] = '\0'; + return _glfw.wl.clipboardString; +} + +void _glfwPlatformGetRequiredInstanceExtensions(char** extensions) +{ + if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_wayland_surface) + return; + + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_KHR_wayland_surface"; +} + +int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR + vkGetPhysicalDeviceWaylandPresentationSupportKHR = + (PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR"); + if (!vkGetPhysicalDeviceWaylandPresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); + return VK_NULL_HANDLE; + } + + return vkGetPhysicalDeviceWaylandPresentationSupportKHR(device, + queuefamily, + _glfw.wl.display); +} + +VkResult _glfwPlatformCreateWindowSurface(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + VkResult err; + VkWaylandSurfaceCreateInfoKHR sci; + PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR; + + vkCreateWaylandSurfaceKHR = (PFN_vkCreateWaylandSurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateWaylandSurfaceKHR"); + if (!vkCreateWaylandSurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR; + sci.display = _glfw.wl.display; + sci.surface = window->wl.surface; + + err = vkCreateWaylandSurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI struct wl_display* glfwGetWaylandDisplay(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return _glfw.wl.display; +} + +GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return window->wl.surface; +} + diff --git a/external/glfw-3.3.4/src/x11_init.c b/external/glfw-3.3.4/src/x11_init.c new file mode 100644 index 0000000..87b3eb7 --- /dev/null +++ b/external/glfw-3.3.4/src/x11_init.c @@ -0,0 +1,1211 @@ +//======================================================================== +// GLFW 3.3 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include + +#include +#include +#include +#include +#include + + +// Translate the X11 KeySyms for a key to a GLFW key code +// NOTE: This is only used as a fallback, in case the XKB method fails +// It is layout-dependent and will fail partially on most non-US layouts +// +static int translateKeySyms(const KeySym* keysyms, int width) +{ + if (width > 1) + { + switch (keysyms[1]) + { + case XK_KP_0: return GLFW_KEY_KP_0; + case XK_KP_1: return GLFW_KEY_KP_1; + case XK_KP_2: return GLFW_KEY_KP_2; + case XK_KP_3: return GLFW_KEY_KP_3; + case XK_KP_4: return GLFW_KEY_KP_4; + case XK_KP_5: return GLFW_KEY_KP_5; + case XK_KP_6: return GLFW_KEY_KP_6; + case XK_KP_7: return GLFW_KEY_KP_7; + case XK_KP_8: return GLFW_KEY_KP_8; + case XK_KP_9: return GLFW_KEY_KP_9; + case XK_KP_Separator: + case XK_KP_Decimal: return GLFW_KEY_KP_DECIMAL; + case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; + case XK_KP_Enter: return GLFW_KEY_KP_ENTER; + default: break; + } + } + + switch (keysyms[0]) + { + case XK_Escape: return GLFW_KEY_ESCAPE; + case XK_Tab: return GLFW_KEY_TAB; + case XK_Shift_L: return GLFW_KEY_LEFT_SHIFT; + case XK_Shift_R: return GLFW_KEY_RIGHT_SHIFT; + case XK_Control_L: return GLFW_KEY_LEFT_CONTROL; + case XK_Control_R: return GLFW_KEY_RIGHT_CONTROL; + case XK_Meta_L: + case XK_Alt_L: return GLFW_KEY_LEFT_ALT; + case XK_Mode_switch: // Mapped to Alt_R on many keyboards + case XK_ISO_Level3_Shift: // AltGr on at least some machines + case XK_Meta_R: + case XK_Alt_R: return GLFW_KEY_RIGHT_ALT; + case XK_Super_L: return GLFW_KEY_LEFT_SUPER; + case XK_Super_R: return GLFW_KEY_RIGHT_SUPER; + case XK_Menu: return GLFW_KEY_MENU; + case XK_Num_Lock: return GLFW_KEY_NUM_LOCK; + case XK_Caps_Lock: return GLFW_KEY_CAPS_LOCK; + case XK_Print: return GLFW_KEY_PRINT_SCREEN; + case XK_Scroll_Lock: return GLFW_KEY_SCROLL_LOCK; + case XK_Pause: return GLFW_KEY_PAUSE; + case XK_Delete: return GLFW_KEY_DELETE; + case XK_BackSpace: return GLFW_KEY_BACKSPACE; + case XK_Return: return GLFW_KEY_ENTER; + case XK_Home: return GLFW_KEY_HOME; + case XK_End: return GLFW_KEY_END; + case XK_Page_Up: return GLFW_KEY_PAGE_UP; + case XK_Page_Down: return GLFW_KEY_PAGE_DOWN; + case XK_Insert: return GLFW_KEY_INSERT; + case XK_Left: return GLFW_KEY_LEFT; + case XK_Right: return GLFW_KEY_RIGHT; + case XK_Down: return GLFW_KEY_DOWN; + case XK_Up: return GLFW_KEY_UP; + case XK_F1: return GLFW_KEY_F1; + case XK_F2: return GLFW_KEY_F2; + case XK_F3: return GLFW_KEY_F3; + case XK_F4: return GLFW_KEY_F4; + case XK_F5: return GLFW_KEY_F5; + case XK_F6: return GLFW_KEY_F6; + case XK_F7: return GLFW_KEY_F7; + case XK_F8: return GLFW_KEY_F8; + case XK_F9: return GLFW_KEY_F9; + case XK_F10: return GLFW_KEY_F10; + case XK_F11: return GLFW_KEY_F11; + case XK_F12: return GLFW_KEY_F12; + case XK_F13: return GLFW_KEY_F13; + case XK_F14: return GLFW_KEY_F14; + case XK_F15: return GLFW_KEY_F15; + case XK_F16: return GLFW_KEY_F16; + case XK_F17: return GLFW_KEY_F17; + case XK_F18: return GLFW_KEY_F18; + case XK_F19: return GLFW_KEY_F19; + case XK_F20: return GLFW_KEY_F20; + case XK_F21: return GLFW_KEY_F21; + case XK_F22: return GLFW_KEY_F22; + case XK_F23: return GLFW_KEY_F23; + case XK_F24: return GLFW_KEY_F24; + case XK_F25: return GLFW_KEY_F25; + + // Numeric keypad + case XK_KP_Divide: return GLFW_KEY_KP_DIVIDE; + case XK_KP_Multiply: return GLFW_KEY_KP_MULTIPLY; + case XK_KP_Subtract: return GLFW_KEY_KP_SUBTRACT; + case XK_KP_Add: return GLFW_KEY_KP_ADD; + + // These should have been detected in secondary keysym test above! + case XK_KP_Insert: return GLFW_KEY_KP_0; + case XK_KP_End: return GLFW_KEY_KP_1; + case XK_KP_Down: return GLFW_KEY_KP_2; + case XK_KP_Page_Down: return GLFW_KEY_KP_3; + case XK_KP_Left: return GLFW_KEY_KP_4; + case XK_KP_Right: return GLFW_KEY_KP_6; + case XK_KP_Home: return GLFW_KEY_KP_7; + case XK_KP_Up: return GLFW_KEY_KP_8; + case XK_KP_Page_Up: return GLFW_KEY_KP_9; + case XK_KP_Delete: return GLFW_KEY_KP_DECIMAL; + case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; + case XK_KP_Enter: return GLFW_KEY_KP_ENTER; + + // Last resort: Check for printable keys (should not happen if the XKB + // extension is available). This will give a layout dependent mapping + // (which is wrong, and we may miss some keys, especially on non-US + // keyboards), but it's better than nothing... + case XK_a: return GLFW_KEY_A; + case XK_b: return GLFW_KEY_B; + case XK_c: return GLFW_KEY_C; + case XK_d: return GLFW_KEY_D; + case XK_e: return GLFW_KEY_E; + case XK_f: return GLFW_KEY_F; + case XK_g: return GLFW_KEY_G; + case XK_h: return GLFW_KEY_H; + case XK_i: return GLFW_KEY_I; + case XK_j: return GLFW_KEY_J; + case XK_k: return GLFW_KEY_K; + case XK_l: return GLFW_KEY_L; + case XK_m: return GLFW_KEY_M; + case XK_n: return GLFW_KEY_N; + case XK_o: return GLFW_KEY_O; + case XK_p: return GLFW_KEY_P; + case XK_q: return GLFW_KEY_Q; + case XK_r: return GLFW_KEY_R; + case XK_s: return GLFW_KEY_S; + case XK_t: return GLFW_KEY_T; + case XK_u: return GLFW_KEY_U; + case XK_v: return GLFW_KEY_V; + case XK_w: return GLFW_KEY_W; + case XK_x: return GLFW_KEY_X; + case XK_y: return GLFW_KEY_Y; + case XK_z: return GLFW_KEY_Z; + case XK_1: return GLFW_KEY_1; + case XK_2: return GLFW_KEY_2; + case XK_3: return GLFW_KEY_3; + case XK_4: return GLFW_KEY_4; + case XK_5: return GLFW_KEY_5; + case XK_6: return GLFW_KEY_6; + case XK_7: return GLFW_KEY_7; + case XK_8: return GLFW_KEY_8; + case XK_9: return GLFW_KEY_9; + case XK_0: return GLFW_KEY_0; + case XK_space: return GLFW_KEY_SPACE; + case XK_minus: return GLFW_KEY_MINUS; + case XK_equal: return GLFW_KEY_EQUAL; + case XK_bracketleft: return GLFW_KEY_LEFT_BRACKET; + case XK_bracketright: return GLFW_KEY_RIGHT_BRACKET; + case XK_backslash: return GLFW_KEY_BACKSLASH; + case XK_semicolon: return GLFW_KEY_SEMICOLON; + case XK_apostrophe: return GLFW_KEY_APOSTROPHE; + case XK_grave: return GLFW_KEY_GRAVE_ACCENT; + case XK_comma: return GLFW_KEY_COMMA; + case XK_period: return GLFW_KEY_PERIOD; + case XK_slash: return GLFW_KEY_SLASH; + case XK_less: return GLFW_KEY_WORLD_1; // At least in some layouts... + default: break; + } + + // No matching translation was found + return GLFW_KEY_UNKNOWN; +} + +// Create key code translation tables +// +static void createKeyTables(void) +{ + int scancode, scancodeMin, scancodeMax; + + memset(_glfw.x11.keycodes, -1, sizeof(_glfw.x11.keycodes)); + memset(_glfw.x11.scancodes, -1, sizeof(_glfw.x11.scancodes)); + + if (_glfw.x11.xkb.available) + { + // Use XKB to determine physical key locations independently of the + // current keyboard layout + + XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); + XkbGetNames(_glfw.x11.display, XkbKeyNamesMask | XkbKeyAliasesMask, desc); + + scancodeMin = desc->min_key_code; + scancodeMax = desc->max_key_code; + + const struct + { + int key; + char* name; + } keymap[] = + { + { GLFW_KEY_GRAVE_ACCENT, "TLDE" }, + { GLFW_KEY_1, "AE01" }, + { GLFW_KEY_2, "AE02" }, + { GLFW_KEY_3, "AE03" }, + { GLFW_KEY_4, "AE04" }, + { GLFW_KEY_5, "AE05" }, + { GLFW_KEY_6, "AE06" }, + { GLFW_KEY_7, "AE07" }, + { GLFW_KEY_8, "AE08" }, + { GLFW_KEY_9, "AE09" }, + { GLFW_KEY_0, "AE10" }, + { GLFW_KEY_MINUS, "AE11" }, + { GLFW_KEY_EQUAL, "AE12" }, + { GLFW_KEY_Q, "AD01" }, + { GLFW_KEY_W, "AD02" }, + { GLFW_KEY_E, "AD03" }, + { GLFW_KEY_R, "AD04" }, + { GLFW_KEY_T, "AD05" }, + { GLFW_KEY_Y, "AD06" }, + { GLFW_KEY_U, "AD07" }, + { GLFW_KEY_I, "AD08" }, + { GLFW_KEY_O, "AD09" }, + { GLFW_KEY_P, "AD10" }, + { GLFW_KEY_LEFT_BRACKET, "AD11" }, + { GLFW_KEY_RIGHT_BRACKET, "AD12" }, + { GLFW_KEY_A, "AC01" }, + { GLFW_KEY_S, "AC02" }, + { GLFW_KEY_D, "AC03" }, + { GLFW_KEY_F, "AC04" }, + { GLFW_KEY_G, "AC05" }, + { GLFW_KEY_H, "AC06" }, + { GLFW_KEY_J, "AC07" }, + { GLFW_KEY_K, "AC08" }, + { GLFW_KEY_L, "AC09" }, + { GLFW_KEY_SEMICOLON, "AC10" }, + { GLFW_KEY_APOSTROPHE, "AC11" }, + { GLFW_KEY_Z, "AB01" }, + { GLFW_KEY_X, "AB02" }, + { GLFW_KEY_C, "AB03" }, + { GLFW_KEY_V, "AB04" }, + { GLFW_KEY_B, "AB05" }, + { GLFW_KEY_N, "AB06" }, + { GLFW_KEY_M, "AB07" }, + { GLFW_KEY_COMMA, "AB08" }, + { GLFW_KEY_PERIOD, "AB09" }, + { GLFW_KEY_SLASH, "AB10" }, + { GLFW_KEY_BACKSLASH, "BKSL" }, + { GLFW_KEY_WORLD_1, "LSGT" }, + { GLFW_KEY_SPACE, "SPCE" }, + { GLFW_KEY_ESCAPE, "ESC" }, + { GLFW_KEY_ENTER, "RTRN" }, + { GLFW_KEY_TAB, "TAB" }, + { GLFW_KEY_BACKSPACE, "BKSP" }, + { GLFW_KEY_INSERT, "INS" }, + { GLFW_KEY_DELETE, "DELE" }, + { GLFW_KEY_RIGHT, "RGHT" }, + { GLFW_KEY_LEFT, "LEFT" }, + { GLFW_KEY_DOWN, "DOWN" }, + { GLFW_KEY_UP, "UP" }, + { GLFW_KEY_PAGE_UP, "PGUP" }, + { GLFW_KEY_PAGE_DOWN, "PGDN" }, + { GLFW_KEY_HOME, "HOME" }, + { GLFW_KEY_END, "END" }, + { GLFW_KEY_CAPS_LOCK, "CAPS" }, + { GLFW_KEY_SCROLL_LOCK, "SCLK" }, + { GLFW_KEY_NUM_LOCK, "NMLK" }, + { GLFW_KEY_PRINT_SCREEN, "PRSC" }, + { GLFW_KEY_PAUSE, "PAUS" }, + { GLFW_KEY_F1, "FK01" }, + { GLFW_KEY_F2, "FK02" }, + { GLFW_KEY_F3, "FK03" }, + { GLFW_KEY_F4, "FK04" }, + { GLFW_KEY_F5, "FK05" }, + { GLFW_KEY_F6, "FK06" }, + { GLFW_KEY_F7, "FK07" }, + { GLFW_KEY_F8, "FK08" }, + { GLFW_KEY_F9, "FK09" }, + { GLFW_KEY_F10, "FK10" }, + { GLFW_KEY_F11, "FK11" }, + { GLFW_KEY_F12, "FK12" }, + { GLFW_KEY_F13, "FK13" }, + { GLFW_KEY_F14, "FK14" }, + { GLFW_KEY_F15, "FK15" }, + { GLFW_KEY_F16, "FK16" }, + { GLFW_KEY_F17, "FK17" }, + { GLFW_KEY_F18, "FK18" }, + { GLFW_KEY_F19, "FK19" }, + { GLFW_KEY_F20, "FK20" }, + { GLFW_KEY_F21, "FK21" }, + { GLFW_KEY_F22, "FK22" }, + { GLFW_KEY_F23, "FK23" }, + { GLFW_KEY_F24, "FK24" }, + { GLFW_KEY_F25, "FK25" }, + { GLFW_KEY_KP_0, "KP0" }, + { GLFW_KEY_KP_1, "KP1" }, + { GLFW_KEY_KP_2, "KP2" }, + { GLFW_KEY_KP_3, "KP3" }, + { GLFW_KEY_KP_4, "KP4" }, + { GLFW_KEY_KP_5, "KP5" }, + { GLFW_KEY_KP_6, "KP6" }, + { GLFW_KEY_KP_7, "KP7" }, + { GLFW_KEY_KP_8, "KP8" }, + { GLFW_KEY_KP_9, "KP9" }, + { GLFW_KEY_KP_DECIMAL, "KPDL" }, + { GLFW_KEY_KP_DIVIDE, "KPDV" }, + { GLFW_KEY_KP_MULTIPLY, "KPMU" }, + { GLFW_KEY_KP_SUBTRACT, "KPSU" }, + { GLFW_KEY_KP_ADD, "KPAD" }, + { GLFW_KEY_KP_ENTER, "KPEN" }, + { GLFW_KEY_KP_EQUAL, "KPEQ" }, + { GLFW_KEY_LEFT_SHIFT, "LFSH" }, + { GLFW_KEY_LEFT_CONTROL, "LCTL" }, + { GLFW_KEY_LEFT_ALT, "LALT" }, + { GLFW_KEY_LEFT_SUPER, "LWIN" }, + { GLFW_KEY_RIGHT_SHIFT, "RTSH" }, + { GLFW_KEY_RIGHT_CONTROL, "RCTL" }, + { GLFW_KEY_RIGHT_ALT, "RALT" }, + { GLFW_KEY_RIGHT_ALT, "LVL3" }, + { GLFW_KEY_RIGHT_ALT, "MDSW" }, + { GLFW_KEY_RIGHT_SUPER, "RWIN" }, + { GLFW_KEY_MENU, "MENU" } + }; + + // Find the X11 key code -> GLFW key code mapping + for (scancode = scancodeMin; scancode <= scancodeMax; scancode++) + { + int key = GLFW_KEY_UNKNOWN; + + // Map the key name to a GLFW key code. Note: We use the US + // keyboard layout. Because function keys aren't mapped correctly + // when using traditional KeySym translations, they are mapped + // here instead. + for (int i = 0; i < sizeof(keymap) / sizeof(keymap[0]); i++) + { + if (strncmp(desc->names->keys[scancode].name, + keymap[i].name, + XkbKeyNameLength) == 0) + { + key = keymap[i].key; + break; + } + } + + // Fall back to key aliases in case the key name did not match + for (int i = 0; i < desc->names->num_key_aliases; i++) + { + if (key != GLFW_KEY_UNKNOWN) + break; + + if (strncmp(desc->names->key_aliases[i].real, + desc->names->keys[scancode].name, + XkbKeyNameLength) != 0) + { + continue; + } + + for (int j = 0; j < sizeof(keymap) / sizeof(keymap[0]); j++) + { + if (strncmp(desc->names->key_aliases[i].alias, + keymap[j].name, + XkbKeyNameLength) == 0) + { + key = keymap[j].key; + break; + } + } + } + + _glfw.x11.keycodes[scancode] = key; + } + + XkbFreeNames(desc, XkbKeyNamesMask, True); + XkbFreeKeyboard(desc, 0, True); + } + else + XDisplayKeycodes(_glfw.x11.display, &scancodeMin, &scancodeMax); + + int width; + KeySym* keysyms = XGetKeyboardMapping(_glfw.x11.display, + scancodeMin, + scancodeMax - scancodeMin + 1, + &width); + + for (scancode = scancodeMin; scancode <= scancodeMax; scancode++) + { + // Translate the un-translated key codes using traditional X11 KeySym + // lookups + if (_glfw.x11.keycodes[scancode] < 0) + { + const size_t base = (scancode - scancodeMin) * width; + _glfw.x11.keycodes[scancode] = translateKeySyms(&keysyms[base], width); + } + + // Store the reverse translation for faster key name lookup + if (_glfw.x11.keycodes[scancode] > 0) + _glfw.x11.scancodes[_glfw.x11.keycodes[scancode]] = scancode; + } + + XFree(keysyms); +} + +// Check whether the IM has a usable style +// +static GLFWbool hasUsableInputMethodStyle(void) +{ + GLFWbool found = GLFW_FALSE; + XIMStyles* styles = NULL; + + if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) + return GLFW_FALSE; + + for (unsigned int i = 0; i < styles->count_styles; i++) + { + if (styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) + { + found = GLFW_TRUE; + break; + } + } + + XFree(styles); + return found; +} + +// Check whether the specified atom is supported +// +static Atom getAtomIfSupported(Atom* supportedAtoms, + unsigned long atomCount, + const char* atomName) +{ + const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); + + for (unsigned long i = 0; i < atomCount; i++) + { + if (supportedAtoms[i] == atom) + return atom; + } + + return None; +} + +// Check whether the running window manager is EWMH-compliant +// +static void detectEWMH(void) +{ + // First we read the _NET_SUPPORTING_WM_CHECK property on the root window + + Window* windowFromRoot = NULL; + if (!_glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_SUPPORTING_WM_CHECK, + XA_WINDOW, + (unsigned char**) &windowFromRoot)) + { + return; + } + + _glfwGrabErrorHandlerX11(); + + // If it exists, it should be the XID of a top-level window + // Then we look for the same property on that window + + Window* windowFromChild = NULL; + if (!_glfwGetWindowPropertyX11(*windowFromRoot, + _glfw.x11.NET_SUPPORTING_WM_CHECK, + XA_WINDOW, + (unsigned char**) &windowFromChild)) + { + XFree(windowFromRoot); + return; + } + + _glfwReleaseErrorHandlerX11(); + + // If the property exists, it should contain the XID of the window + + if (*windowFromRoot != *windowFromChild) + { + XFree(windowFromRoot); + XFree(windowFromChild); + return; + } + + XFree(windowFromRoot); + XFree(windowFromChild); + + // We are now fairly sure that an EWMH-compliant WM is currently running + // We can now start querying the WM about what features it supports by + // looking in the _NET_SUPPORTED property on the root window + // It should contain a list of supported EWMH protocol and state atoms + + Atom* supportedAtoms = NULL; + const unsigned long atomCount = + _glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_SUPPORTED, + XA_ATOM, + (unsigned char**) &supportedAtoms); + + // See which of the atoms we support that are supported by the WM + + _glfw.x11.NET_WM_STATE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE"); + _glfw.x11.NET_WM_STATE_ABOVE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE"); + _glfw.x11.NET_WM_STATE_FULLSCREEN = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN"); + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_VERT"); + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_HORZ"); + _glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_DEMANDS_ATTENTION"); + _glfw.x11.NET_WM_FULLSCREEN_MONITORS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_FULLSCREEN_MONITORS"); + _glfw.x11.NET_WM_WINDOW_TYPE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE"); + _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE_NORMAL"); + _glfw.x11.NET_WORKAREA = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WORKAREA"); + _glfw.x11.NET_CURRENT_DESKTOP = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_CURRENT_DESKTOP"); + _glfw.x11.NET_ACTIVE_WINDOW = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW"); + _glfw.x11.NET_FRAME_EXTENTS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_FRAME_EXTENTS"); + _glfw.x11.NET_REQUEST_FRAME_EXTENTS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_REQUEST_FRAME_EXTENTS"); + + if (supportedAtoms) + XFree(supportedAtoms); +} + +// Look for and initialize supported X11 extensions +// +static GLFWbool initExtensions(void) +{ + _glfw.x11.vidmode.handle = _glfw_dlopen("libXxf86vm.so.1"); + if (_glfw.x11.vidmode.handle) + { + _glfw.x11.vidmode.QueryExtension = (PFN_XF86VidModeQueryExtension) + _glfw_dlsym(_glfw.x11.vidmode.handle, "XF86VidModeQueryExtension"); + _glfw.x11.vidmode.GetGammaRamp = (PFN_XF86VidModeGetGammaRamp) + _glfw_dlsym(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRamp"); + _glfw.x11.vidmode.SetGammaRamp = (PFN_XF86VidModeSetGammaRamp) + _glfw_dlsym(_glfw.x11.vidmode.handle, "XF86VidModeSetGammaRamp"); + _glfw.x11.vidmode.GetGammaRampSize = (PFN_XF86VidModeGetGammaRampSize) + _glfw_dlsym(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRampSize"); + + _glfw.x11.vidmode.available = + XF86VidModeQueryExtension(_glfw.x11.display, + &_glfw.x11.vidmode.eventBase, + &_glfw.x11.vidmode.errorBase); + } + +#if defined(__CYGWIN__) + _glfw.x11.xi.handle = _glfw_dlopen("libXi-6.so"); +#else + _glfw.x11.xi.handle = _glfw_dlopen("libXi.so.6"); +#endif + if (_glfw.x11.xi.handle) + { + _glfw.x11.xi.QueryVersion = (PFN_XIQueryVersion) + _glfw_dlsym(_glfw.x11.xi.handle, "XIQueryVersion"); + _glfw.x11.xi.SelectEvents = (PFN_XISelectEvents) + _glfw_dlsym(_glfw.x11.xi.handle, "XISelectEvents"); + + if (XQueryExtension(_glfw.x11.display, + "XInputExtension", + &_glfw.x11.xi.majorOpcode, + &_glfw.x11.xi.eventBase, + &_glfw.x11.xi.errorBase)) + { + _glfw.x11.xi.major = 2; + _glfw.x11.xi.minor = 0; + + if (XIQueryVersion(_glfw.x11.display, + &_glfw.x11.xi.major, + &_glfw.x11.xi.minor) == Success) + { + _glfw.x11.xi.available = GLFW_TRUE; + } + } + } + +#if defined(__CYGWIN__) + _glfw.x11.randr.handle = _glfw_dlopen("libXrandr-2.so"); +#else + _glfw.x11.randr.handle = _glfw_dlopen("libXrandr.so.2"); +#endif + if (_glfw.x11.randr.handle) + { + _glfw.x11.randr.AllocGamma = (PFN_XRRAllocGamma) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRAllocGamma"); + _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRFreeGamma"); + _glfw.x11.randr.FreeCrtcInfo = (PFN_XRRFreeCrtcInfo) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRFreeCrtcInfo"); + _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRFreeGamma"); + _glfw.x11.randr.FreeOutputInfo = (PFN_XRRFreeOutputInfo) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRFreeOutputInfo"); + _glfw.x11.randr.FreeScreenResources = (PFN_XRRFreeScreenResources) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRFreeScreenResources"); + _glfw.x11.randr.GetCrtcGamma = (PFN_XRRGetCrtcGamma) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetCrtcGamma"); + _glfw.x11.randr.GetCrtcGammaSize = (PFN_XRRGetCrtcGammaSize) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetCrtcGammaSize"); + _glfw.x11.randr.GetCrtcInfo = (PFN_XRRGetCrtcInfo) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetCrtcInfo"); + _glfw.x11.randr.GetOutputInfo = (PFN_XRRGetOutputInfo) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetOutputInfo"); + _glfw.x11.randr.GetOutputPrimary = (PFN_XRRGetOutputPrimary) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetOutputPrimary"); + _glfw.x11.randr.GetScreenResourcesCurrent = (PFN_XRRGetScreenResourcesCurrent) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRGetScreenResourcesCurrent"); + _glfw.x11.randr.QueryExtension = (PFN_XRRQueryExtension) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRQueryExtension"); + _glfw.x11.randr.QueryVersion = (PFN_XRRQueryVersion) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRQueryVersion"); + _glfw.x11.randr.SelectInput = (PFN_XRRSelectInput) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRSelectInput"); + _glfw.x11.randr.SetCrtcConfig = (PFN_XRRSetCrtcConfig) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRSetCrtcConfig"); + _glfw.x11.randr.SetCrtcGamma = (PFN_XRRSetCrtcGamma) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRSetCrtcGamma"); + _glfw.x11.randr.UpdateConfiguration = (PFN_XRRUpdateConfiguration) + _glfw_dlsym(_glfw.x11.randr.handle, "XRRUpdateConfiguration"); + + if (XRRQueryExtension(_glfw.x11.display, + &_glfw.x11.randr.eventBase, + &_glfw.x11.randr.errorBase)) + { + if (XRRQueryVersion(_glfw.x11.display, + &_glfw.x11.randr.major, + &_glfw.x11.randr.minor)) + { + // The GLFW RandR path requires at least version 1.3 + if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) + _glfw.x11.randr.available = GLFW_TRUE; + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to query RandR version"); + } + } + } + + if (_glfw.x11.randr.available) + { + XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, + _glfw.x11.root); + + if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) + { + // This is likely an older Nvidia driver with broken gamma support + // Flag it as useless and fall back to xf86vm gamma, if available + _glfw.x11.randr.gammaBroken = GLFW_TRUE; + } + + if (!sr->ncrtc) + { + // A system without CRTCs is likely a system with broken RandR + // Disable the RandR monitor path and fall back to core functions + _glfw.x11.randr.monitorBroken = GLFW_TRUE; + } + + XRRFreeScreenResources(sr); + } + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRSelectInput(_glfw.x11.display, _glfw.x11.root, + RROutputChangeNotifyMask); + } + +#if defined(__CYGWIN__) + _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor-1.so"); +#else + _glfw.x11.xcursor.handle = _glfw_dlopen("libXcursor.so.1"); +#endif + if (_glfw.x11.xcursor.handle) + { + _glfw.x11.xcursor.ImageCreate = (PFN_XcursorImageCreate) + _glfw_dlsym(_glfw.x11.xcursor.handle, "XcursorImageCreate"); + _glfw.x11.xcursor.ImageDestroy = (PFN_XcursorImageDestroy) + _glfw_dlsym(_glfw.x11.xcursor.handle, "XcursorImageDestroy"); + _glfw.x11.xcursor.ImageLoadCursor = (PFN_XcursorImageLoadCursor) + _glfw_dlsym(_glfw.x11.xcursor.handle, "XcursorImageLoadCursor"); + } + +#if defined(__CYGWIN__) + _glfw.x11.xinerama.handle = _glfw_dlopen("libXinerama-1.so"); +#else + _glfw.x11.xinerama.handle = _glfw_dlopen("libXinerama.so.1"); +#endif + if (_glfw.x11.xinerama.handle) + { + _glfw.x11.xinerama.IsActive = (PFN_XineramaIsActive) + _glfw_dlsym(_glfw.x11.xinerama.handle, "XineramaIsActive"); + _glfw.x11.xinerama.QueryExtension = (PFN_XineramaQueryExtension) + _glfw_dlsym(_glfw.x11.xinerama.handle, "XineramaQueryExtension"); + _glfw.x11.xinerama.QueryScreens = (PFN_XineramaQueryScreens) + _glfw_dlsym(_glfw.x11.xinerama.handle, "XineramaQueryScreens"); + + if (XineramaQueryExtension(_glfw.x11.display, + &_glfw.x11.xinerama.major, + &_glfw.x11.xinerama.minor)) + { + if (XineramaIsActive(_glfw.x11.display)) + _glfw.x11.xinerama.available = GLFW_TRUE; + } + } + + _glfw.x11.xkb.major = 1; + _glfw.x11.xkb.minor = 0; + _glfw.x11.xkb.available = + XkbQueryExtension(_glfw.x11.display, + &_glfw.x11.xkb.majorOpcode, + &_glfw.x11.xkb.eventBase, + &_glfw.x11.xkb.errorBase, + &_glfw.x11.xkb.major, + &_glfw.x11.xkb.minor); + + if (_glfw.x11.xkb.available) + { + Bool supported; + + if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) + { + if (supported) + _glfw.x11.xkb.detectable = GLFW_TRUE; + } + + XkbStateRec state; + if (XkbGetState(_glfw.x11.display, XkbUseCoreKbd, &state) == Success) + _glfw.x11.xkb.group = (unsigned int)state.group; + + XkbSelectEventDetails(_glfw.x11.display, XkbUseCoreKbd, XkbStateNotify, + XkbGroupStateMask, XkbGroupStateMask); + } + +#if defined(__CYGWIN__) + _glfw.x11.x11xcb.handle = _glfw_dlopen("libX11-xcb-1.so"); +#else + _glfw.x11.x11xcb.handle = _glfw_dlopen("libX11-xcb.so.1"); +#endif + if (_glfw.x11.x11xcb.handle) + { + _glfw.x11.x11xcb.GetXCBConnection = (PFN_XGetXCBConnection) + _glfw_dlsym(_glfw.x11.x11xcb.handle, "XGetXCBConnection"); + } + +#if defined(__CYGWIN__) + _glfw.x11.xrender.handle = _glfw_dlopen("libXrender-1.so"); +#else + _glfw.x11.xrender.handle = _glfw_dlopen("libXrender.so.1"); +#endif + if (_glfw.x11.xrender.handle) + { + _glfw.x11.xrender.QueryExtension = (PFN_XRenderQueryExtension) + _glfw_dlsym(_glfw.x11.xrender.handle, "XRenderQueryExtension"); + _glfw.x11.xrender.QueryVersion = (PFN_XRenderQueryVersion) + _glfw_dlsym(_glfw.x11.xrender.handle, "XRenderQueryVersion"); + _glfw.x11.xrender.FindVisualFormat = (PFN_XRenderFindVisualFormat) + _glfw_dlsym(_glfw.x11.xrender.handle, "XRenderFindVisualFormat"); + + if (XRenderQueryExtension(_glfw.x11.display, + &_glfw.x11.xrender.errorBase, + &_glfw.x11.xrender.eventBase)) + { + if (XRenderQueryVersion(_glfw.x11.display, + &_glfw.x11.xrender.major, + &_glfw.x11.xrender.minor)) + { + _glfw.x11.xrender.available = GLFW_TRUE; + } + } + } + + // Update the key code LUT + // FIXME: We should listen to XkbMapNotify events to track changes to + // the keyboard mapping. + createKeyTables(); + + // String format atoms + _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); + _glfw.x11.UTF8_STRING = XInternAtom(_glfw.x11.display, "UTF8_STRING", False); + _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); + + // Custom selection property atom + _glfw.x11.GLFW_SELECTION = + XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); + + // ICCCM standard clipboard atoms + _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); + _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); + _glfw.x11.PRIMARY = XInternAtom(_glfw.x11.display, "PRIMARY", False); + _glfw.x11.INCR = XInternAtom(_glfw.x11.display, "INCR", False); + _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); + + // Clipboard manager atoms + _glfw.x11.CLIPBOARD_MANAGER = + XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); + _glfw.x11.SAVE_TARGETS = + XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); + + // Xdnd (drag and drop) atoms + _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", False); + _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", False); + _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", False); + _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", False); + _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", False); + _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", False); + _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", False); + _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", False); + _glfw.x11.XdndTypeList = XInternAtom(_glfw.x11.display, "XdndTypeList", False); + _glfw.x11.text_uri_list = XInternAtom(_glfw.x11.display, "text/uri-list", False); + + // ICCCM, EWMH and Motif window property atoms + // These can be set safely even without WM support + // The EWMH atoms that require WM support are handled in detectEWMH + _glfw.x11.WM_PROTOCOLS = + XInternAtom(_glfw.x11.display, "WM_PROTOCOLS", False); + _glfw.x11.WM_STATE = + XInternAtom(_glfw.x11.display, "WM_STATE", False); + _glfw.x11.WM_DELETE_WINDOW = + XInternAtom(_glfw.x11.display, "WM_DELETE_WINDOW", False); + _glfw.x11.NET_SUPPORTED = + XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", False); + _glfw.x11.NET_SUPPORTING_WM_CHECK = + XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", False); + _glfw.x11.NET_WM_ICON = + XInternAtom(_glfw.x11.display, "_NET_WM_ICON", False); + _glfw.x11.NET_WM_PING = + XInternAtom(_glfw.x11.display, "_NET_WM_PING", False); + _glfw.x11.NET_WM_PID = + XInternAtom(_glfw.x11.display, "_NET_WM_PID", False); + _glfw.x11.NET_WM_NAME = + XInternAtom(_glfw.x11.display, "_NET_WM_NAME", False); + _glfw.x11.NET_WM_ICON_NAME = + XInternAtom(_glfw.x11.display, "_NET_WM_ICON_NAME", False); + _glfw.x11.NET_WM_BYPASS_COMPOSITOR = + XInternAtom(_glfw.x11.display, "_NET_WM_BYPASS_COMPOSITOR", False); + _glfw.x11.NET_WM_WINDOW_OPACITY = + XInternAtom(_glfw.x11.display, "_NET_WM_WINDOW_OPACITY", False); + _glfw.x11.MOTIF_WM_HINTS = + XInternAtom(_glfw.x11.display, "_MOTIF_WM_HINTS", False); + + // The compositing manager selection name contains the screen number + { + char name[32]; + snprintf(name, sizeof(name), "_NET_WM_CM_S%u", _glfw.x11.screen); + _glfw.x11.NET_WM_CM_Sx = XInternAtom(_glfw.x11.display, name, False); + } + + // Detect whether an EWMH-conformant window manager is running + detectEWMH(); + + return GLFW_TRUE; +} + +// Retrieve system content scale via folklore heuristics +// +static void getSystemContentScale(float* xscale, float* yscale) +{ + // Start by assuming the default X11 DPI + // NOTE: Some desktop environments (KDE) may remove the Xft.dpi field when it + // would be set to 96, so assume that is the case if we cannot find it + float xdpi = 96.f, ydpi = 96.f; + + // NOTE: Basing the scale on Xft.dpi where available should provide the most + // consistent user experience (matches Qt, Gtk, etc), although not + // always the most accurate one + char* rms = XResourceManagerString(_glfw.x11.display); + if (rms) + { + XrmDatabase db = XrmGetStringDatabase(rms); + if (db) + { + XrmValue value; + char* type = NULL; + + if (XrmGetResource(db, "Xft.dpi", "Xft.Dpi", &type, &value)) + { + if (type && strcmp(type, "String") == 0) + xdpi = ydpi = atof(value.addr); + } + + XrmDestroyDatabase(db); + } + } + + *xscale = xdpi / 96.f; + *yscale = ydpi / 96.f; +} + +// Create a blank cursor for hidden and disabled cursor modes +// +static Cursor createHiddenCursor(void) +{ + unsigned char pixels[16 * 16 * 4] = { 0 }; + GLFWimage image = { 16, 16, pixels }; + return _glfwCreateCursorX11(&image, 0, 0); +} + +// Create a helper window for IPC +// +static Window createHelperWindow(void) +{ + XSetWindowAttributes wa; + wa.event_mask = PropertyChangeMask; + + return XCreateWindow(_glfw.x11.display, _glfw.x11.root, + 0, 0, 1, 1, 0, 0, + InputOnly, + DefaultVisual(_glfw.x11.display, _glfw.x11.screen), + CWEventMask, &wa); +} + +// X error handler +// +static int errorHandler(Display *display, XErrorEvent* event) +{ + if (_glfw.x11.display != display) + return 0; + + _glfw.x11.errorCode = event->error_code; + return 0; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Sets the X error handler callback +// +void _glfwGrabErrorHandlerX11(void) +{ + _glfw.x11.errorCode = Success; + XSetErrorHandler(errorHandler); +} + +// Clears the X error handler callback +// +void _glfwReleaseErrorHandlerX11(void) +{ + // Synchronize to make sure all commands are processed + XSync(_glfw.x11.display, False); + XSetErrorHandler(NULL); +} + +// Reports the specified error, appending information about the last X error +// +void _glfwInputErrorX11(int error, const char* message) +{ + char buffer[_GLFW_MESSAGE_SIZE]; + XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, + buffer, sizeof(buffer)); + + _glfwInputError(error, "%s: %s", message, buffer); +} + +// Creates a native cursor object from the specified image and hotspot +// +Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot) +{ + int i; + Cursor cursor; + + if (!_glfw.x11.xcursor.handle) + return None; + + XcursorImage* native = XcursorImageCreate(image->width, image->height); + if (native == NULL) + return None; + + native->xhot = xhot; + native->yhot = yhot; + + unsigned char* source = (unsigned char*) image->pixels; + XcursorPixel* target = native->pixels; + + for (i = 0; i < image->width * image->height; i++, target++, source += 4) + { + unsigned int alpha = source[3]; + + *target = (alpha << 24) | + ((unsigned char) ((source[0] * alpha) / 255) << 16) | + ((unsigned char) ((source[1] * alpha) / 255) << 8) | + ((unsigned char) ((source[2] * alpha) / 255) << 0); + } + + cursor = XcursorImageLoadCursor(_glfw.x11.display, native); + XcursorImageDestroy(native); + + return cursor; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +int _glfwPlatformInit(void) +{ + // HACK: If the application has left the locale as "C" then both wide + // character text input and explicit UTF-8 input via XIM will break + // This sets the CTYPE part of the current locale from the environment + // in the hope that it is set to something more sane than "C" + if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) + setlocale(LC_CTYPE, ""); + + XInitThreads(); + XrmInitialize(); + + _glfw.x11.display = XOpenDisplay(NULL); + if (!_glfw.x11.display) + { + const char* display = getenv("DISPLAY"); + if (display) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to open display %s", display); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: The DISPLAY environment variable is missing"); + } + + return GLFW_FALSE; + } + + _glfw.x11.screen = DefaultScreen(_glfw.x11.display); + _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); + _glfw.x11.context = XUniqueContext(); + + getSystemContentScale(&_glfw.x11.contentScaleX, &_glfw.x11.contentScaleY); + + if (!initExtensions()) + return GLFW_FALSE; + + _glfw.x11.helperWindowHandle = createHelperWindow(); + _glfw.x11.hiddenCursorHandle = createHiddenCursor(); + + if (XSupportsLocale()) + { + XSetLocaleModifiers(""); + + _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); + if (_glfw.x11.im) + { + if (!hasUsableInputMethodStyle()) + { + XCloseIM(_glfw.x11.im); + _glfw.x11.im = NULL; + } + } + } + +#if defined(__linux__) + if (!_glfwInitJoysticksLinux()) + return GLFW_FALSE; +#endif + + _glfwInitTimerPOSIX(); + + _glfwPollMonitorsX11(); + return GLFW_TRUE; +} + +void _glfwPlatformTerminate(void) +{ + if (_glfw.x11.helperWindowHandle) + { + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == + _glfw.x11.helperWindowHandle) + { + _glfwPushSelectionToManagerX11(); + } + + XDestroyWindow(_glfw.x11.display, _glfw.x11.helperWindowHandle); + _glfw.x11.helperWindowHandle = None; + } + + if (_glfw.x11.hiddenCursorHandle) + { + XFreeCursor(_glfw.x11.display, _glfw.x11.hiddenCursorHandle); + _glfw.x11.hiddenCursorHandle = (Cursor) 0; + } + + free(_glfw.x11.primarySelectionString); + free(_glfw.x11.clipboardString); + + if (_glfw.x11.im) + { + XCloseIM(_glfw.x11.im); + _glfw.x11.im = NULL; + } + + if (_glfw.x11.display) + { + XCloseDisplay(_glfw.x11.display); + _glfw.x11.display = NULL; + } + + if (_glfw.x11.x11xcb.handle) + { + _glfw_dlclose(_glfw.x11.x11xcb.handle); + _glfw.x11.x11xcb.handle = NULL; + } + + if (_glfw.x11.xcursor.handle) + { + _glfw_dlclose(_glfw.x11.xcursor.handle); + _glfw.x11.xcursor.handle = NULL; + } + + if (_glfw.x11.randr.handle) + { + _glfw_dlclose(_glfw.x11.randr.handle); + _glfw.x11.randr.handle = NULL; + } + + if (_glfw.x11.xinerama.handle) + { + _glfw_dlclose(_glfw.x11.xinerama.handle); + _glfw.x11.xinerama.handle = NULL; + } + + if (_glfw.x11.xrender.handle) + { + _glfw_dlclose(_glfw.x11.xrender.handle); + _glfw.x11.xrender.handle = NULL; + } + + if (_glfw.x11.vidmode.handle) + { + _glfw_dlclose(_glfw.x11.vidmode.handle); + _glfw.x11.vidmode.handle = NULL; + } + + if (_glfw.x11.xi.handle) + { + _glfw_dlclose(_glfw.x11.xi.handle); + _glfw.x11.xi.handle = NULL; + } + + // NOTE: These need to be unloaded after XCloseDisplay, as they register + // cleanup callbacks that get called by that function + _glfwTerminateEGL(); + _glfwTerminateGLX(); + +#if defined(__linux__) + _glfwTerminateJoysticksLinux(); +#endif +} + +const char* _glfwPlatformGetVersionString(void) +{ + return _GLFW_VERSION_NUMBER " X11 GLX EGL OSMesa" +#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) + " clock_gettime" +#else + " gettimeofday" +#endif +#if defined(__linux__) + " evdev" +#endif +#if defined(_GLFW_BUILD_DLL) + " shared" +#endif + ; +} + diff --git a/external/glfw-3.3.4/src/x11_monitor.c b/external/glfw-3.3.4/src/x11_monitor.c new file mode 100644 index 0000000..fb3a67b --- /dev/null +++ b/external/glfw-3.3.4/src/x11_monitor.c @@ -0,0 +1,614 @@ +//======================================================================== +// GLFW 3.3 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// 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. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include + + +// Check whether the display mode should be included in enumeration +// +static GLFWbool modeIsGood(const XRRModeInfo* mi) +{ + return (mi->modeFlags & RR_Interlace) == 0; +} + +// Calculates the refresh rate, in Hz, from the specified RandR mode info +// +static int calculateRefreshRate(const XRRModeInfo* mi) +{ + if (mi->hTotal && mi->vTotal) + return (int) round((double) mi->dotClock / ((double) mi->hTotal * (double) mi->vTotal)); + else + return 0; +} + +// Returns the mode info for a RandR mode XID +// +static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) +{ + for (int i = 0; i < sr->nmode; i++) + { + if (sr->modes[i].id == id) + return sr->modes + i; + } + + return NULL; +} + +// Convert RandR mode info to GLFW video mode +// +static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, + const XRRCrtcInfo* ci) +{ + GLFWvidmode mode; + + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + mode.width = mi->height; + mode.height = mi->width; + } + else + { + mode.width = mi->width; + mode.height = mi->height; + } + + mode.refreshRate = calculateRefreshRate(mi); + + _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), + &mode.redBits, &mode.greenBits, &mode.blueBits); + + return mode; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Poll for changes in the set of connected monitors +// +void _glfwPollMonitorsX11(void) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + int disconnectedCount, screenCount = 0; + _GLFWmonitor** disconnected = NULL; + XineramaScreenInfo* screens = NULL; + XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, + _glfw.x11.root); + RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, + _glfw.x11.root); + + if (_glfw.x11.xinerama.available) + screens = XineramaQueryScreens(_glfw.x11.display, &screenCount); + + disconnectedCount = _glfw.monitorCount; + if (disconnectedCount) + { + disconnected = calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); + memcpy(disconnected, + _glfw.monitors, + _glfw.monitorCount * sizeof(_GLFWmonitor*)); + } + + for (int i = 0; i < sr->noutput; i++) + { + int j, type, widthMM, heightMM; + + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]); + if (oi->connection != RR_Connected || oi->crtc == None) + { + XRRFreeOutputInfo(oi); + continue; + } + + for (j = 0; j < disconnectedCount; j++) + { + if (disconnected[j] && + disconnected[j]->x11.output == sr->outputs[i]) + { + disconnected[j] = NULL; + break; + } + } + + if (j < disconnectedCount) + { + XRRFreeOutputInfo(oi); + continue; + } + + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc); + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + widthMM = oi->mm_height; + heightMM = oi->mm_width; + } + else + { + widthMM = oi->mm_width; + heightMM = oi->mm_height; + } + + if (widthMM <= 0 || heightMM <= 0) + { + // HACK: If RandR does not provide a physical size, assume the + // X11 default 96 DPI and calculate from the CRTC viewport + // NOTE: These members are affected by rotation, unlike the mode + // info and output info members + widthMM = (int) (ci->width * 25.4f / 96.f); + heightMM = (int) (ci->height * 25.4f / 96.f); + } + + _GLFWmonitor* monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM); + monitor->x11.output = sr->outputs[i]; + monitor->x11.crtc = oi->crtc; + + for (j = 0; j < screenCount; j++) + { + if (screens[j].x_org == ci->x && + screens[j].y_org == ci->y && + screens[j].width == ci->width && + screens[j].height == ci->height) + { + monitor->x11.index = j; + break; + } + } + + if (monitor->x11.output == primary) + type = _GLFW_INSERT_FIRST; + else + type = _GLFW_INSERT_LAST; + + _glfwInputMonitor(monitor, GLFW_CONNECTED, type); + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + + if (screens) + XFree(screens); + + for (int i = 0; i < disconnectedCount; i++) + { + if (disconnected[i]) + _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); + } + + free(disconnected); + } + else + { + const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen); + const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen); + + _glfwInputMonitor(_glfwAllocMonitor("Display", widthMM, heightMM), + GLFW_CONNECTED, + _GLFW_INSERT_FIRST); + } +} + +// Set the current video mode for the specified monitor +// +void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + GLFWvidmode current; + RRMode native = None; + + const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); + _glfwPlatformGetVideoMode(monitor, ¤t); + if (_glfwCompareVideoModes(¤t, best) == 0) + return; + + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); + + for (int i = 0; i < oi->nmode; i++) + { + const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); + if (!modeIsGood(mi)) + continue; + + const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); + if (_glfwCompareVideoModes(best, &mode) == 0) + { + native = mi->id; + break; + } + } + + if (native) + { + if (monitor->x11.oldMode == None) + monitor->x11.oldMode = ci->mode; + + XRRSetCrtcConfig(_glfw.x11.display, + sr, monitor->x11.crtc, + CurrentTime, + ci->x, ci->y, + native, + ci->rotation, + ci->outputs, + ci->noutput); + } + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } +} + +// Restore the saved (original) video mode for the specified monitor +// +void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + if (monitor->x11.oldMode == None) + return; + + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + XRRSetCrtcConfig(_glfw.x11.display, + sr, monitor->x11.crtc, + CurrentTime, + ci->x, ci->y, + monitor->x11.oldMode, + ci->rotation, + ci->outputs, + ci->noutput); + + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + + monitor->x11.oldMode = None; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformFreeMonitor(_GLFWmonitor* monitor) +{ +} + +void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + if (ci) + { + if (xpos) + *xpos = ci->x; + if (ypos) + *ypos = ci->y; + + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + } +} + +void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = _glfw.x11.contentScaleX; + if (yscale) + *yscale = _glfw.x11.contentScaleY; +} + +void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height) +{ + int areaX = 0, areaY = 0, areaWidth = 0, areaHeight = 0; + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + areaX = ci->x; + areaY = ci->y; + + const XRRModeInfo* mi = getModeInfo(sr, ci->mode); + + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + areaWidth = mi->height; + areaHeight = mi->width; + } + else + { + areaWidth = mi->width; + areaHeight = mi->height; + } + + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } + else + { + areaWidth = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); + areaHeight = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); + } + + if (_glfw.x11.NET_WORKAREA && _glfw.x11.NET_CURRENT_DESKTOP) + { + Atom* extents = NULL; + Atom* desktop = NULL; + const unsigned long extentCount = + _glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_WORKAREA, + XA_CARDINAL, + (unsigned char**) &extents); + + if (_glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_CURRENT_DESKTOP, + XA_CARDINAL, + (unsigned char**) &desktop) > 0) + { + if (extentCount >= 4 && *desktop < extentCount / 4) + { + const int globalX = extents[*desktop * 4 + 0]; + const int globalY = extents[*desktop * 4 + 1]; + const int globalWidth = extents[*desktop * 4 + 2]; + const int globalHeight = extents[*desktop * 4 + 3]; + + if (areaX < globalX) + { + areaWidth -= globalX - areaX; + areaX = globalX; + } + + if (areaY < globalY) + { + areaHeight -= globalY - areaY; + areaY = globalY; + } + + if (areaX + areaWidth > globalX + globalWidth) + areaWidth = globalX - areaX + globalWidth; + if (areaY + areaHeight > globalY + globalHeight) + areaHeight = globalY - areaY + globalHeight; + } + } + + if (extents) + XFree(extents); + if (desktop) + XFree(desktop); + } + + if (xpos) + *xpos = areaX; + if (ypos) + *ypos = areaY; + if (width) + *width = areaWidth; + if (height) + *height = areaHeight; +} + +GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) +{ + GLFWvidmode* result; + + *count = 0; + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); + + result = calloc(oi->nmode, sizeof(GLFWvidmode)); + + for (int i = 0; i < oi->nmode; i++) + { + const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); + if (!modeIsGood(mi)) + continue; + + const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); + int j; + + for (j = 0; j < *count; j++) + { + if (_glfwCompareVideoModes(result + j, &mode) == 0) + break; + } + + // Skip duplicate modes + if (j < *count) + continue; + + (*count)++; + result[*count - 1] = mode; + } + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } + else + { + *count = 1; + result = calloc(1, sizeof(GLFWvidmode)); + _glfwPlatformGetVideoMode(monitor, result); + } + + return result; +} + +void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + if (ci) + { + const XRRModeInfo* mi = getModeInfo(sr, ci->mode); + if (mi) // mi can be NULL if the monitor has been disconnected + *mode = vidmodeFromModeInfo(mi, ci); + + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + } + else + { + mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); + mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); + mode->refreshRate = 0; + + _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), + &mode->redBits, &mode->greenBits, &mode->blueBits); + } +} + +GLFWbool _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) + { + const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display, + monitor->x11.crtc); + XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display, + monitor->x11.crtc); + + _glfwAllocGammaArrays(ramp, size); + + memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); + memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); + memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); + + XRRFreeGamma(gamma); + return GLFW_TRUE; + } + else if (_glfw.x11.vidmode.available) + { + int size; + XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size); + + _glfwAllocGammaArrays(ramp, size); + + XF86VidModeGetGammaRamp(_glfw.x11.display, + _glfw.x11.screen, + ramp->size, ramp->red, ramp->green, ramp->blue); + return GLFW_TRUE; + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp access not supported by server"); + return GLFW_FALSE; + } +} + +void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) + { + if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp size must match current ramp size"); + return; + } + + XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); + + memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); + memcpy(gamma->green, ramp->green, ramp->size * sizeof(unsigned short)); + memcpy(gamma->blue, ramp->blue, ramp->size * sizeof(unsigned short)); + + XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); + XRRFreeGamma(gamma); + } + else if (_glfw.x11.vidmode.available) + { + XF86VidModeSetGammaRamp(_glfw.x11.display, + _glfw.x11.screen, + ramp->size, + (unsigned short*) ramp->red, + (unsigned short*) ramp->green, + (unsigned short*) ramp->blue); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp access not supported by server"); + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + return monitor->x11.crtc; +} + +GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + return monitor->x11.output; +} + diff --git a/external/GLFW/src/x11_platform.h b/external/glfw-3.3.4/src/x11_platform.h similarity index 94% rename from external/GLFW/src/x11_platform.h rename to external/glfw-3.3.4/src/x11_platform.h index 2b1c0c6..4873bd7 100644 --- a/external/GLFW/src/x11_platform.h +++ b/external/glfw-3.3.4/src/x11_platform.h @@ -2,7 +2,7 @@ // GLFW 3.3 X11 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -180,6 +180,7 @@ typedef struct _GLFWwindowX11 { Colormap colormap; Window handle; + Window parent; XIC ic; GLFWbool overrideRedirect; @@ -198,8 +199,9 @@ typedef struct _GLFWwindowX11 // The last position the cursor was warped to by GLFW int warpCursorPosX, warpCursorPosY; - // The time of the last KeyPress event - Time lastKeyTime; + // The time of the last KeyPress event per keycode, for discarding + // duplicate key events generated for some keys by ibus + Time keyPressTimes[256]; } _GLFWwindowX11; @@ -211,6 +213,8 @@ typedef struct _GLFWlibraryX11 int screen; Window root; + // System content scale + float contentScaleX, contentScaleY; // Helper window for IPC Window helperWindowHandle; // Invisible cursor for hidden cursor mode @@ -226,7 +230,7 @@ typedef struct _GLFWlibraryX11 // Clipboard string (while the selection is owned) char* clipboardString; // Key name string - char keyName[5]; + char keynames[GLFW_KEY_LAST + 1][5]; // X11 keycode to GLFW key LUT short int keycodes[256]; // GLFW key to X11 keycode LUT @@ -237,6 +241,8 @@ typedef struct _GLFWlibraryX11 _GLFWwindow* disabledCursorWindow; // Window manager atoms + Atom NET_SUPPORTED; + Atom NET_SUPPORTING_WM_CHECK; Atom WM_PROTOCOLS; Atom WM_STATE; Atom WM_DELETE_WINDOW; @@ -255,6 +261,10 @@ typedef struct _GLFWlibraryX11 Atom NET_WM_STATE_DEMANDS_ATTENTION; Atom NET_WM_BYPASS_COMPOSITOR; Atom NET_WM_FULLSCREEN_MONITORS; + Atom NET_WM_WINDOW_OPACITY; + Atom NET_WM_CM_Sx; + Atom NET_WORKAREA; + Atom NET_CURRENT_DESKTOP; Atom NET_ACTIVE_WINDOW; Atom NET_FRAME_EXTENTS; Atom NET_REQUEST_FRAME_EXTENTS; @@ -315,13 +325,14 @@ typedef struct _GLFWlibraryX11 } randr; struct { - GLFWbool available; - GLFWbool detectable; - int majorOpcode; - int eventBase; - int errorBase; - int major; - int minor; + GLFWbool available; + GLFWbool detectable; + int majorOpcode; + int eventBase; + int errorBase; + int major; + int minor; + unsigned int group; } xkb; struct { @@ -421,7 +432,7 @@ typedef struct _GLFWcursorX11 void _glfwPollMonitorsX11(void); -GLFWbool _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired); void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor); Cursor _glfwCreateCursorX11(const GLFWimage* image, int xhot, int yhot); diff --git a/external/GLFW/src/x11_window.c b/external/glfw-3.3.4/src/x11_window.c similarity index 84% rename from external/GLFW/src/x11_window.c rename to external/glfw-3.3.4/src/x11_window.c index cf5483b..d52ebc4 100644 --- a/external/GLFW/src/x11_window.c +++ b/external/glfw-3.3.4/src/x11_window.c @@ -2,7 +2,7 @@ // GLFW 3.3 X11 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2019 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" @@ -48,6 +50,10 @@ #define Button6 6 #define Button7 7 +// Motif WM hints flags +#define MWM_HINTS_DECORATIONS 2 +#define MWM_DECOR_ALL 1 + #define _GLFW_XDND_VERSION 5 @@ -175,29 +181,6 @@ static Bool isSelPropNewValueNotify(Display* display, XEvent* event, XPointer po event->xproperty.atom == notification->xselection.property; } -// Translates a GLFW standard cursor to a font cursor shape -// -static int translateCursorShape(int shape) -{ - switch (shape) - { - case GLFW_ARROW_CURSOR: - return XC_left_ptr; - case GLFW_IBEAM_CURSOR: - return XC_xterm; - case GLFW_CROSSHAIR_CURSOR: - return XC_crosshair; - case GLFW_HAND_CURSOR: - return XC_hand1; - case GLFW_HRESIZE_CURSOR: - return XC_sb_h_double_arrow; - case GLFW_VRESIZE_CURSOR: - return XC_sb_v_double_arrow; - } - - return 0; -} - // Translates an X event modifier state mask // static int translateState(int state) @@ -212,6 +195,10 @@ static int translateState(int state) mods |= GLFW_MOD_ALT; if (state & Mod4Mask) mods |= GLFW_MOD_SUPER; + if (state & LockMask) + mods |= GLFW_MOD_CAPS_LOCK; + if (state & Mod2Mask) + mods |= GLFW_MOD_NUM_LOCK; return mods; } @@ -227,32 +214,12 @@ static int translateKey(int scancode) return _glfw.x11.keycodes[scancode]; } -// Return the GLFW window corresponding to the specified X11 window -// -static _GLFWwindow* findWindowByHandle(Window handle) -{ - _GLFWwindow* window; - - if (XFindContext(_glfw.x11.display, - handle, - _glfw.x11.context, - (XPointer*) &window) != 0) - { - return NULL; - } - - return window; -} - // Sends an EWMH or ICCCM event to the window manager // static void sendEventToWM(_GLFWwindow* window, Atom type, long a, long b, long c, long d, long e) { - XEvent event; - memset(&event, 0, sizeof(event)); - - event.type = ClientMessage; + XEvent event = { ClientMessage }; event.xclient.window = window->x11.handle; event.xclient.format = 32; // Data is 32-bit longs event.xclient.message_type = type; @@ -537,15 +504,6 @@ static char* convertLatin1toUTF8(const char* source) return target; } -// Centers the cursor over the window client area -// -static void centerCursor(_GLFWwindow* window) -{ - int width, height; - _glfwPlatformGetWindowSize(window, &width, &height); - _glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0); -} - // Updates the cursor image according to its cursor mode // static void updateCursorImage(_GLFWwindow* window) @@ -567,12 +525,86 @@ static void updateCursorImage(_GLFWwindow* window) } } +// Enable XI2 raw mouse motion events +// +static void enableRawMouseMotion(_GLFWwindow* window) +{ + XIEventMask em; + unsigned char mask[XIMaskLen(XI_RawMotion)] = { 0 }; + + em.deviceid = XIAllMasterDevices; + em.mask_len = sizeof(mask); + em.mask = mask; + XISetMask(mask, XI_RawMotion); + + XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); +} + +// Disable XI2 raw mouse motion events +// +static void disableRawMouseMotion(_GLFWwindow* window) +{ + XIEventMask em; + unsigned char mask[] = { 0 }; + + em.deviceid = XIAllMasterDevices; + em.mask_len = sizeof(mask); + em.mask = mask; + + XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); +} + +// Apply disabled cursor mode to a focused window +// +static void disableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + enableRawMouseMotion(window); + + _glfw.x11.disabledCursorWindow = window; + _glfwPlatformGetCursorPos(window, + &_glfw.x11.restoreCursorPosX, + &_glfw.x11.restoreCursorPosY); + updateCursorImage(window); + _glfwCenterCursorInContentArea(window); + XGrabPointer(_glfw.x11.display, window->x11.handle, True, + ButtonPressMask | ButtonReleaseMask | PointerMotionMask, + GrabModeAsync, GrabModeAsync, + window->x11.handle, + _glfw.x11.hiddenCursorHandle, + CurrentTime); +} + +// Exit disabled cursor mode for the specified window +// +static void enableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + disableRawMouseMotion(window); + + _glfw.x11.disabledCursorWindow = NULL; + XUngrabPointer(_glfw.x11.display, CurrentTime); + _glfwPlatformSetCursorPos(window, + _glfw.x11.restoreCursorPosX, + _glfw.x11.restoreCursorPosY); + updateCursorImage(window); +} + // Create the X11 window (and its colormap) // static GLFWbool createNativeWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, Visual* visual, int depth) { + int width = wndconfig->width; + int height = wndconfig->height; + + if (wndconfig->scaleToMonitor) + { + width *= _glfw.x11.contentScaleX; + height *= _glfw.x11.contentScaleY; + } + // Create a colormap based on the visual used by the current context window->x11.colormap = XCreateColormap(_glfw.x11.display, _glfw.x11.root, @@ -581,46 +613,41 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, window->x11.transparent = _glfwIsVisualTransparentX11(visual); - // Create the actual window - { - XSetWindowAttributes wa; - const unsigned long wamask = CWBorderPixel | CWColormap | CWEventMask; - - wa.colormap = window->x11.colormap; - wa.border_pixel = 0; - wa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask | - PointerMotionMask | ButtonPressMask | ButtonReleaseMask | - ExposureMask | FocusChangeMask | VisibilityChangeMask | - EnterWindowMask | LeaveWindowMask | PropertyChangeMask; - - _glfwGrabErrorHandlerX11(); - - window->x11.handle = XCreateWindow(_glfw.x11.display, - _glfw.x11.root, - 0, 0, - wndconfig->width, wndconfig->height, - 0, // Border width - depth, // Color depth - InputOutput, - visual, - wamask, - &wa); - - _glfwReleaseErrorHandlerX11(); - - if (!window->x11.handle) - { - _glfwInputErrorX11(GLFW_PLATFORM_ERROR, - "X11: Failed to create window"); - return GLFW_FALSE; - } - - XSaveContext(_glfw.x11.display, - window->x11.handle, - _glfw.x11.context, - (XPointer) window); + XSetWindowAttributes wa = { 0 }; + wa.colormap = window->x11.colormap; + wa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask | + PointerMotionMask | ButtonPressMask | ButtonReleaseMask | + ExposureMask | FocusChangeMask | VisibilityChangeMask | + EnterWindowMask | LeaveWindowMask | PropertyChangeMask; + + _glfwGrabErrorHandlerX11(); + + window->x11.parent = _glfw.x11.root; + window->x11.handle = XCreateWindow(_glfw.x11.display, + _glfw.x11.root, + 0, 0, // Position + width, height, + 0, // Border width + depth, // Color depth + InputOutput, + visual, + CWBorderPixel | CWColormap | CWEventMask, + &wa); + + _glfwReleaseErrorHandlerX11(); + + if (!window->x11.handle) + { + _glfwInputErrorX11(GLFW_PLATFORM_ERROR, + "X11: Failed to create window"); + return GLFW_FALSE; } + XSaveContext(_glfw.x11.display, + window->x11.handle, + _glfw.x11.context, + (XPointer) window); + if (!wndconfig->decorated) _glfwPlatformSetWindowDecorated(window, GLFW_FALSE); @@ -650,7 +677,7 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, { XChangeProperty(_glfw.x11.display, window->x11.handle, _glfw.x11.NET_WM_STATE, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &states, count); + PropModeReplace, (unsigned char*) states, count); } } @@ -701,27 +728,32 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, XFree(hints); } - updateNormalHints(window, wndconfig->width, wndconfig->height); + updateNormalHints(window, width, height); // Set ICCCM WM_CLASS property { XClassHint* hint = XAllocClassHint(); - if (strlen(_glfw.hints.init.x11.className) && - strlen(_glfw.hints.init.x11.classClass)) + if (strlen(wndconfig->x11.instanceName) && + strlen(wndconfig->x11.className)) { - hint->res_name = (char*) _glfw.hints.init.x11.className; - hint->res_class = (char*) _glfw.hints.init.x11.classClass; - } - else if (strlen(wndconfig->title)) - { - hint->res_name = (char*) wndconfig->title; - hint->res_class = (char*) wndconfig->title; + hint->res_name = (char*) wndconfig->x11.instanceName; + hint->res_class = (char*) wndconfig->x11.className; } else { - hint->res_name = (char*) "glfw-application"; - hint->res_class = (char*) "GLFW-Application"; + const char* resourceName = getenv("RESOURCE_NAME"); + if (resourceName && strlen(resourceName)) + hint->res_name = (char*) resourceName; + else if (strlen(wndconfig->title)) + hint->res_name = (char*) wndconfig->title; + else + hint->res_name = (char*) "glfw-application"; + + if (strlen(wndconfig->title)) + hint->res_class = (char*) wndconfig->title; + else + hint->res_class = (char*) "GLFW-Application"; } XSetClassHint(_glfw.x11.display, window->x11.handle, hint); @@ -750,6 +782,13 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, NULL); } + if (window->x11.ic) + { + unsigned long filter = 0; + if (XGetICValues(window->x11.ic, XNFilterEvents, &filter, NULL) == NULL) + XSelectInput(_glfw.x11.display, window->x11.handle, wa.event_mask | filter); + } + _glfwPlatformGetWindowPos(window, &window->x11.xpos, &window->x11.ypos); _glfwPlatformGetWindowSize(window, &window->x11.width, &window->x11.height); @@ -910,11 +949,8 @@ static void handleSelectionRequest(XEvent* event) { const XSelectionRequestEvent* request = &event->xselectionrequest; - XEvent reply; - memset(&reply, 0, sizeof(reply)); - + XEvent reply = { SelectionNotify }; reply.xselection.property = writeTargetToProperty(request); - reply.xselection.type = SelectionNotify; reply.xselection.display = request->display; reply.xselection.requestor = request->requestor; reply.xselection.selection = request->selection; @@ -926,7 +962,6 @@ static void handleSelectionRequest(XEvent* event) static const char* getSelectionString(Atom selection) { - size_t i; char** selectionString = NULL; const Atom targets[] = { _glfw.x11.UTF8_STRING, XA_STRING }; const size_t targetCount = sizeof(targets) / sizeof(targets[0]); @@ -947,7 +982,7 @@ static const char* getSelectionString(Atom selection) free(*selectionString); *selectionString = NULL; - for (i = 0; i < targetCount; i++) + for (size_t i = 0; i < targetCount; i++) { char* data; Atom actualType; @@ -1047,7 +1082,7 @@ static const char* getSelectionString(Atom selection) if (targets[i] == XA_STRING) *selectionString = convertLatin1toUTF8(data); else - *selectionString = strdup(data); + *selectionString = _glfw_strdup(data); } XFree(data); @@ -1067,10 +1102,8 @@ static const char* getSelectionString(Atom selection) // Make the specified window and its video mode active on its monitor // -static GLFWbool acquireMonitor(_GLFWwindow* window) +static void acquireMonitor(_GLFWwindow* window) { - GLFWbool status; - if (_glfw.x11.saver.count == 0) { // Remember old screen saver settings @@ -1088,7 +1121,7 @@ static GLFWbool acquireMonitor(_GLFWwindow* window) if (!window->monitor->window) _glfw.x11.saver.count++; - status = _glfwSetVideoModeX11(window->monitor, &window->videoMode); + _glfwSetVideoModeX11(window->monitor, &window->videoMode); if (window->x11.overrideRedirect) { @@ -1104,7 +1137,6 @@ static GLFWbool acquireMonitor(_GLFWwindow* window) } _glfwInputMonitorWindow(window->monitor, window); - return status; } // Remove the window and restore the original video mode @@ -1134,7 +1166,6 @@ static void releaseMonitor(_GLFWwindow* window) // static void processEvent(XEvent *event) { - _GLFWwindow* window = NULL; int keycode = 0; Bool filtered = False; @@ -1155,6 +1186,20 @@ static void processEvent(XEvent *event) } } + if (_glfw.x11.xkb.available) + { + if (event->type == _glfw.x11.xkb.eventBase + XkbEventCode) + { + if (((XkbEvent*) event)->any.xkb_type == XkbStateNotify && + (((XkbEvent*) event)->state.changed & XkbGroupStateMask)) + { + _glfw.x11.xkb.group = ((XkbEvent*) event)->state.group; + } + + return; + } + } + if (event->type == GenericEvent) { if (_glfw.x11.xi.available) @@ -1162,6 +1207,7 @@ static void processEvent(XEvent *event) _GLFWwindow* window = _glfw.x11.disabledCursorWindow; if (window && + window->rawMouseMotion && event->xcookie.extension == _glfw.x11.xi.majorOpcode && XGetEventData(_glfw.x11.display, &event->xcookie) && event->xcookie.evtype == XI_RawMotion) @@ -1203,8 +1249,11 @@ static void processEvent(XEvent *event) return; } - window = findWindowByHandle(event->xany.window); - if (window == NULL) + _GLFWwindow* window = NULL; + if (XFindContext(_glfw.x11.display, + event->xany.window, + _glfw.x11.context, + (XPointer*) &window) != 0) { // This is an event for a window that has already been destroyed return; @@ -1212,6 +1261,12 @@ static void processEvent(XEvent *event) switch (event->type) { + case ReparentNotify: + { + window->x11.parent = event->xreparent.parent; + return; + } + case KeyPress: { const int key = translateKey(keycode); @@ -1220,16 +1275,20 @@ static void processEvent(XEvent *event) if (window->x11.ic) { - // HACK: Ignore duplicate key press events generated by ibus - // These have the same timestamp as the original event - // Corresponding release events are filtered out - // implicitly by the GLFW key repeat logic - if (window->x11.lastKeyTime < event->xkey.time) + // HACK: Do not report the key press events duplicated by XIM + // Duplicate key releases are filtered out implicitly by + // the GLFW key repeat logic in _glfwInputKey + // A timestamp per key is used to handle simultaneous keys + // NOTE: Always allow the first event for each key through + // (the server never sends a timestamp of zero) + // NOTE: Timestamp difference is compared to handle wrap-around + Time diff = event->xkey.time - window->x11.keyPressTimes[keycode]; + if (diff == event->xkey.time || (diff > 0 && diff < (1 << 31))) { if (keycode) _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); - window->x11.lastKeyTime = event->xkey.time; + window->x11.keyPressTimes[keycode] = event->xkey.time; } if (!filtered) @@ -1423,12 +1482,20 @@ static void processEvent(XEvent *event) case EnterNotify: { + // XEnterWindowEvent is XCrossingEvent + const int x = event->xcrossing.x; + const int y = event->xcrossing.y; + // HACK: This is a workaround for WMs (KWM, Fluxbox) that otherwise // ignore the defined cursor for hidden cursor mode if (window->cursorMode == GLFW_CURSOR_HIDDEN) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_HIDDEN); + updateCursorImage(window); _glfwInputCursorEnter(window, GLFW_TRUE); + _glfwInputCursorPos(window, x, y); + + window->x11.lastCursorPosX = x; + window->x11.lastCursorPosY = y; return; } @@ -1452,7 +1519,7 @@ static void processEvent(XEvent *event) { if (_glfw.x11.disabledCursorWindow != window) return; - if (_glfw.x11.xi.available) + if (window->rawMouseMotion) return; const int dx = x - window->x11.lastCursorPosX; @@ -1488,18 +1555,34 @@ static void processEvent(XEvent *event) window->x11.height = event->xconfigure.height; } - if (event->xconfigure.x != window->x11.xpos || - event->xconfigure.y != window->x11.ypos) + int xpos = event->xconfigure.x; + int ypos = event->xconfigure.y; + + // NOTE: ConfigureNotify events from the server are in local + // coordinates, so if we are reparented we need to translate + // the position into root (screen) coordinates + if (!event->xany.send_event && window->x11.parent != _glfw.x11.root) { - if (window->x11.overrideRedirect || event->xany.send_event) - { - _glfwInputWindowPos(window, - event->xconfigure.x, - event->xconfigure.y); + _glfwGrabErrorHandlerX11(); - window->x11.xpos = event->xconfigure.x; - window->x11.ypos = event->xconfigure.y; - } + Window dummy; + XTranslateCoordinates(_glfw.x11.display, + window->x11.parent, + _glfw.x11.root, + xpos, ypos, + &xpos, &ypos, + &dummy); + + _glfwReleaseErrorHandlerX11(); + if (_glfw.x11.errorCode == BadWindow) + return; + } + + if (xpos != window->x11.xpos || ypos != window->x11.ypos) + { + _glfwInputWindowPos(window, xpos, ypos); + window->x11.xpos = xpos; + window->x11.ypos = ypos; } return; @@ -1604,10 +1687,7 @@ static void processEvent(XEvent *event) } else if (_glfw.x11.xdnd.version >= 2) { - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; + XEvent reply = { ClientMessage }; reply.xclient.window = _glfw.x11.xdnd.source; reply.xclient.message_type = _glfw.x11.XdndFinished; reply.xclient.format = 32; @@ -1640,10 +1720,7 @@ static void processEvent(XEvent *event) _glfwInputCursorPos(window, xpos, ypos); - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; + XEvent reply = { ClientMessage }; reply.xclient.window = _glfw.x11.xdnd.source; reply.xclient.message_type = _glfw.x11.XdndStatus; reply.xclient.format = 32; @@ -1696,10 +1773,7 @@ static void processEvent(XEvent *event) if (_glfw.x11.xdnd.version >= 2) { - XEvent reply; - memset(&reply, 0, sizeof(reply)); - - reply.type = ClientMessage; + XEvent reply = { ClientMessage }; reply.xclient.window = _glfw.x11.xdnd.source; reply.xclient.message_type = _glfw.x11.XdndFinished; reply.xclient.format = 32; @@ -1718,9 +1792,6 @@ static void processEvent(XEvent *event) case FocusIn: { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_DISABLED); - if (event->xfocus.mode == NotifyGrab || event->xfocus.mode == NotifyUngrab) { @@ -1729,6 +1800,9 @@ static void processEvent(XEvent *event) return; } + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + if (window->x11.ic) XSetICFocus(window->x11.ic); @@ -1738,9 +1812,6 @@ static void processEvent(XEvent *event) case FocusOut: { - if (window->cursorMode == GLFW_CURSOR_DISABLED) - _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL); - if (event->xfocus.mode == NotifyGrab || event->xfocus.mode == NotifyUngrab) { @@ -1749,6 +1820,9 @@ static void processEvent(XEvent *event) return; } + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + if (window->x11.ic) XUnsetICFocus(window->x11.ic); @@ -1909,7 +1983,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) { - Visual* visual; + Visual* visual = NULL; int depth; if (ctxconfig->client != GLFW_NO_API) @@ -1935,8 +2009,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, } } - if (ctxconfig->client == GLFW_NO_API || - ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + if (!visual) { visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen); depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen); @@ -1968,11 +2041,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, { _glfwPlatformShowWindow(window); updateWindowMode(window); - if (!acquireMonitor(window)) - return GLFW_FALSE; - - if (wndconfig->centerCursor) - centerCursor(window); + acquireMonitor(window); } XFlush(_glfw.x11.display); @@ -2240,6 +2309,15 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, XFree(extents); } +void _glfwPlatformGetWindowContentScale(_GLFWwindow* window, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = _glfw.x11.contentScaleX; + if (yscale) + *yscale = _glfw.x11.contentScaleY; +} + void _glfwPlatformIconifyWindow(_GLFWwindow* window) { if (window->x11.overrideRedirect) @@ -2291,18 +2369,67 @@ void _glfwPlatformRestoreWindow(_GLFWwindow* window) void _glfwPlatformMaximizeWindow(_GLFWwindow* window) { - if (_glfw.x11.NET_WM_STATE && - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + if (!_glfw.x11.NET_WM_STATE || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + return; + } + + if (_glfwPlatformWindowVisible(window)) { sendEventToWM(window, - _glfw.x11.NET_WM_STATE, - _NET_WM_STATE_ADD, - _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, - _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, - 1, 0); - XFlush(_glfw.x11.display); + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_ADD, + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, + 1, 0); } + else + { + Atom* states = NULL; + unsigned long count = + _glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_STATE, + XA_ATOM, + (unsigned char**) &states); + + // NOTE: We don't check for failure as this property may not exist yet + // and that's fine (and we'll create it implicitly with append) + + Atom missing[2] = + { + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ + }; + unsigned long missingCount = 2; + + for (unsigned long i = 0; i < count; i++) + { + for (unsigned long j = 0; j < missingCount; j++) + { + if (states[i] == missing[j]) + { + missing[j] = missing[missingCount - 1]; + missingCount--; + } + } + } + + if (states) + XFree(states); + + if (!missingCount) + return; + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeAppend, + (unsigned char*) missing, + missingCount); + } + + XFlush(_glfw.x11.display); } void _glfwPlatformShowWindow(_GLFWwindow* window) @@ -2322,6 +2449,9 @@ void _glfwPlatformHideWindow(_GLFWwindow* window) void _glfwPlatformRequestWindowAttention(_GLFWwindow* window) { + if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION) + return; + sendEventToWM(window, _glfw.x11.NET_WM_STATE, _NET_WM_STATE_ADD, @@ -2333,7 +2463,7 @@ void _glfwPlatformFocusWindow(_GLFWwindow* window) { if (_glfw.x11.NET_ACTIVE_WINDOW) sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0); - else + else if (_glfwPlatformWindowVisible(window)) { XRaiseWindow(_glfw.x11.display, window->x11.handle); XSetInputFocus(_glfw.x11.display, window->x11.handle, @@ -2358,28 +2488,41 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, } else { + if (!window->resizable) + updateNormalHints(window, width, height); + XMoveResizeWindow(_glfw.x11.display, window->x11.handle, xpos, ypos, width, height); } + XFlush(_glfw.x11.display); return; } if (window->monitor) + { + _glfwPlatformSetWindowDecorated(window, window->decorated); + _glfwPlatformSetWindowFloating(window, window->floating); releaseMonitor(window); + } - _glfwInputWindowMonitorChange(window, monitor); + _glfwInputWindowMonitor(window, monitor); updateNormalHints(window, width, height); - updateWindowMode(window); if (window->monitor) { - XMapRaised(_glfw.x11.display, window->x11.handle); - if (waitForVisibilityNotify(window)) - acquireMonitor(window); + if (!_glfwPlatformWindowVisible(window)) + { + XMapRaised(_glfw.x11.display, window->x11.handle); + waitForVisibilityNotify(window); + } + + updateWindowMode(window); + acquireMonitor(window); } else { + updateWindowMode(window); XMoveResizeWindow(_glfw.x11.display, window->x11.handle, xpos, ypos, width, height); } @@ -2413,6 +2556,14 @@ int _glfwPlatformWindowMaximized(_GLFWwindow* window) Atom* states; unsigned long i; GLFWbool maximized = GLFW_FALSE; + + if (!_glfw.x11.NET_WM_STATE || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + return maximized; + } + const unsigned long count = _glfwGetWindowPropertyX11(window->x11.handle, _glfw.x11.NET_WM_STATE, @@ -2435,16 +2586,40 @@ int _glfwPlatformWindowMaximized(_GLFWwindow* window) return maximized; } +int _glfwPlatformWindowHovered(_GLFWwindow* window) +{ + Window w = _glfw.x11.root; + while (w) + { + Window root; + int rootX, rootY, childX, childY; + unsigned int mask; + + _glfwGrabErrorHandlerX11(); + + const Bool result = XQueryPointer(_glfw.x11.display, w, + &root, &w, &rootX, &rootY, + &childX, &childY, &mask); + + _glfwReleaseErrorHandlerX11(); + + if (_glfw.x11.errorCode == BadWindow) + w = _glfw.x11.root; + else if (!result) + return GLFW_FALSE; + else if (w == window->x11.handle) + return GLFW_TRUE; + } + + return GLFW_FALSE; +} + int _glfwPlatformFramebufferTransparent(_GLFWwindow* window) { if (!window->x11.transparent) return GLFW_FALSE; - // Check whether a compositing manager is running - char name[32]; - snprintf(name, sizeof(name), "_NET_WM_CM_S%u", _glfw.x11.screen); - const Atom selection = XInternAtom(_glfw.x11.display, name, False); - return XGetSelectionOwner(_glfw.x11.display, selection) != None; + return XGetSelectionOwner(_glfw.x11.display, _glfw.x11.NET_WM_CM_Sx) != None; } void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) @@ -2456,33 +2631,24 @@ void _glfwPlatformSetWindowResizable(_GLFWwindow* window, GLFWbool enabled) void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled) { - if (enabled) + struct { - XDeleteProperty(_glfw.x11.display, - window->x11.handle, - _glfw.x11.MOTIF_WM_HINTS); - } - else - { - struct - { - unsigned long flags; - unsigned long functions; - unsigned long decorations; - long input_mode; - unsigned long status; - } hints; + unsigned long flags; + unsigned long functions; + unsigned long decorations; + long input_mode; + unsigned long status; + } hints = {0}; - hints.flags = 2; // Set decorations - hints.decorations = 0; // No decorations + hints.flags = MWM_HINTS_DECORATIONS; + hints.decorations = enabled ? MWM_DECOR_ALL : 0; - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.MOTIF_WM_HINTS, - _glfw.x11.MOTIF_WM_HINTS, 32, - PropModeReplace, - (unsigned char*) &hints, - sizeof(hints) / sizeof(long)); - } + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.MOTIF_WM_HINTS, + _glfw.x11.MOTIF_WM_HINTS, 32, + PropModeReplace, + (unsigned char*) &hints, + sizeof(hints) / sizeof(long)); } void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) @@ -2492,7 +2658,7 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) if (_glfwPlatformWindowVisible(window)) { - const Atom action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE; + const long action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE; sendEventToWM(window, _glfw.x11.NET_WM_STATE, action, @@ -2501,15 +2667,16 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) } else { - Atom* states; + Atom* states = NULL; unsigned long i, count; count = _glfwGetWindowPropertyX11(window->x11.handle, _glfw.x11.NET_WM_STATE, XA_ATOM, (unsigned char**) &states); - if (!states) - return; + + // NOTE: We don't check for failure as this property may not exist yet + // and that's fine (and we'll create it implicitly with append) if (enabled) { @@ -2519,37 +2686,91 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled) break; } - if (i == count) - { - XChangeProperty(_glfw.x11.display, window->x11.handle, - _glfw.x11.NET_WM_STATE, XA_ATOM, 32, - PropModeAppend, - (unsigned char*) &_glfw.x11.NET_WM_STATE_ABOVE, - 1); - } + if (i < count) + return; + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeAppend, + (unsigned char*) &_glfw.x11.NET_WM_STATE_ABOVE, + 1); } - else + else if (states) { for (i = 0; i < count; i++) { if (states[i] == _glfw.x11.NET_WM_STATE_ABOVE) - { - states[i] = states[count - 1]; - count--; - } + break; } + if (i == count) + return; + + states[i] = states[count - 1]; + count--; + XChangeProperty(_glfw.x11.display, window->x11.handle, _glfw.x11.NET_WM_STATE, XA_ATOM, 32, - PropModeReplace, (unsigned char*) &states, count); + PropModeReplace, (unsigned char*) states, count); } - XFree(states); + if (states) + XFree(states); } XFlush(_glfw.x11.display); } +float _glfwPlatformGetWindowOpacity(_GLFWwindow* window) +{ + float opacity = 1.f; + + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.NET_WM_CM_Sx)) + { + CARD32* value = NULL; + + if (_glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_WINDOW_OPACITY, + XA_CARDINAL, + (unsigned char**) &value)) + { + opacity = (float) (*value / (double) 0xffffffffu); + } + + if (value) + XFree(value); + } + + return opacity; +} + +void _glfwPlatformSetWindowOpacity(_GLFWwindow* window, float opacity) +{ + const CARD32 value = (CARD32) (0xffffffffu * (double) opacity); + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_WINDOW_OPACITY, XA_CARDINAL, 32, + PropModeReplace, (unsigned char*) &value, 1); +} + +void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled) +{ + if (!_glfw.x11.xi.available) + return; + + if (_glfw.x11.disabledCursorWindow != window) + return; + + if (enabled) + enableRawMouseMotion(window); + else + disableRawMouseMotion(window); +} + +GLFWbool _glfwPlatformRawMouseMotionSupported(void) +{ + return _glfw.x11.xi.available; +} + void _glfwPlatformPollEvents(void) { _GLFWwindow* window; @@ -2557,8 +2778,9 @@ void _glfwPlatformPollEvents(void) #if defined(__linux__) _glfwDetectJoystickConnectionLinux(); #endif - int count = XPending(_glfw.x11.display); - while (count--) + XPending(_glfw.x11.display); + + while (XQLength(_glfw.x11.display)) { XEvent event; XNextEvent(_glfw.x11.display, &event); @@ -2604,10 +2826,7 @@ void _glfwPlatformWaitEventsTimeout(double timeout) void _glfwPlatformPostEmptyEvent(void) { - XEvent event; - - memset(&event, 0, sizeof(event)); - event.type = ClientMessage; + XEvent event = { ClientMessage }; event.xclient.window = _glfw.x11.helperWindowHandle; event.xclient.format = 32; // Data is 32-bit longs event.xclient.message_type = _glfw.x11.NULL_; @@ -2648,53 +2867,14 @@ void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) { if (mode == GLFW_CURSOR_DISABLED) { - if (_glfw.x11.xi.available) - { - XIEventMask em; - unsigned char mask[XIMaskLen(XI_RawMotion)] = { 0 }; - - em.deviceid = XIAllMasterDevices; - em.mask_len = sizeof(mask); - em.mask = mask; - XISetMask(mask, XI_RawMotion); - - XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); - } - - _glfw.x11.disabledCursorWindow = window; - _glfwPlatformGetCursorPos(window, - &_glfw.x11.restoreCursorPosX, - &_glfw.x11.restoreCursorPosY); - centerCursor(window); - XGrabPointer(_glfw.x11.display, window->x11.handle, True, - ButtonPressMask | ButtonReleaseMask | PointerMotionMask, - GrabModeAsync, GrabModeAsync, - window->x11.handle, - _glfw.x11.hiddenCursorHandle, - CurrentTime); + if (_glfwPlatformWindowFocused(window)) + disableCursor(window); } else if (_glfw.x11.disabledCursorWindow == window) - { - if (_glfw.x11.xi.available) - { - XIEventMask em; - unsigned char mask[] = { 0 }; - - em.deviceid = XIAllMasterDevices; - em.mask_len = sizeof(mask); - em.mask = mask; - - XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); - } - - _glfw.x11.disabledCursorWindow = NULL; - XUngrabPointer(_glfw.x11.display, CurrentTime); - _glfwPlatformSetCursorPos(window, - _glfw.x11.restoreCursorPosX, - _glfw.x11.restoreCursorPosY); - } + enableCursor(window); + else + updateCursorImage(window); - updateCursorImage(window); XFlush(_glfw.x11.display); } @@ -2703,7 +2883,16 @@ const char* _glfwPlatformGetScancodeName(int scancode) if (!_glfw.x11.xkb.available) return NULL; - const KeySym keysym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); + if (scancode < 0 || scancode > 0xff || + _glfw.x11.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode"); + return NULL; + } + + const int key = _glfw.x11.keycodes[scancode]; + const KeySym keysym = XkbKeycodeToKeysym(_glfw.x11.display, + scancode, _glfw.x11.xkb.group, 0); if (keysym == NoSymbol) return NULL; @@ -2711,12 +2900,12 @@ const char* _glfwPlatformGetScancodeName(int scancode) if (ch == -1) return NULL; - const size_t count = encodeUTF8(_glfw.x11.keyName, (unsigned int) ch); + const size_t count = encodeUTF8(_glfw.x11.keynames[key], (unsigned int) ch); if (count == 0) return NULL; - _glfw.x11.keyName[count] = '\0'; - return _glfw.x11.keyName; + _glfw.x11.keynames[key][count] = '\0'; + return _glfw.x11.keynames[key]; } int _glfwPlatformGetKeyScancode(int key) @@ -2737,8 +2926,24 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor, int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape) { - cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, - translateCursorShape(shape)); + int native = 0; + + if (shape == GLFW_ARROW_CURSOR) + native = XC_left_ptr; + else if (shape == GLFW_IBEAM_CURSOR) + native = XC_xterm; + else if (shape == GLFW_CROSSHAIR_CURSOR) + native = XC_crosshair; + else if (shape == GLFW_HAND_CURSOR) + native = XC_hand2; + else if (shape == GLFW_HRESIZE_CURSOR) + native = XC_sb_h_double_arrow; + else if (shape == GLFW_VRESIZE_CURSOR) + native = XC_sb_v_double_arrow; + else + return GLFW_FALSE; + + cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, native); if (!cursor->x11.handle) { _glfwInputError(GLFW_PLATFORM_ERROR, @@ -2764,10 +2969,11 @@ void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) } } -void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) +void _glfwPlatformSetClipboardString(const char* string) { + char* copy = _glfw_strdup(string); free(_glfw.x11.clipboardString); - _glfw.x11.clipboardString = strdup(string); + _glfw.x11.clipboardString = copy; XSetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD, @@ -2782,7 +2988,7 @@ void _glfwPlatformSetClipboardString(_GLFWwindow* window, const char* string) } } -const char* _glfwPlatformGetClipboardString(_GLFWwindow* window) +const char* _glfwPlatformGetClipboardString(void) { return getSelectionString(_glfw.x11.CLIPBOARD); } @@ -2959,7 +3165,7 @@ GLFWAPI void glfwSetX11SelectionString(const char* string) _GLFW_REQUIRE_INIT(); free(_glfw.x11.primarySelectionString); - _glfw.x11.primarySelectionString = strdup(string); + _glfw.x11.primarySelectionString = _glfw_strdup(string); XSetSelectionOwner(_glfw.x11.display, _glfw.x11.PRIMARY, diff --git a/external/GLFW/src/xkb_unicode.c b/external/glfw-3.3.4/src/xkb_unicode.c similarity index 99% rename from external/GLFW/src/xkb_unicode.c rename to external/glfw-3.3.4/src/xkb_unicode.c index ecfdc2a..f30c4cd 100644 --- a/external/GLFW/src/xkb_unicode.c +++ b/external/glfw-3.3.4/src/xkb_unicode.c @@ -2,7 +2,7 @@ // GLFW 3.3 X11 - www.glfw.org //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy +// Copyright (c) 2006-2017 Camilla Löwy // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -24,6 +24,8 @@ // distribution. // //======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== #include "internal.h" diff --git a/external/GLFW/src/xkb_unicode.h b/external/glfw-3.3.4/src/xkb_unicode.h similarity index 100% rename from external/GLFW/src/xkb_unicode.h rename to external/glfw-3.3.4/src/xkb_unicode.h diff --git a/external/glfw-3.3.4/tests/CMakeLists.txt b/external/glfw-3.3.4/tests/CMakeLists.txt new file mode 100644 index 0000000..5232720 --- /dev/null +++ b/external/glfw-3.3.4/tests/CMakeLists.txt @@ -0,0 +1,94 @@ + +link_libraries(glfw) + +include_directories("${GLFW_SOURCE_DIR}/deps") + +if (MATH_LIBRARY) + link_libraries("${MATH_LIBRARY}") +endif() + +if (MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +endif() + +set(GLAD_GL "${GLFW_SOURCE_DIR}/deps/glad/gl.h" + "${GLFW_SOURCE_DIR}/deps/glad_gl.c") +set(GLAD_VULKAN "${GLFW_SOURCE_DIR}/deps/glad/vulkan.h" + "${GLFW_SOURCE_DIR}/deps/glad_vulkan.c") +set(GETOPT "${GLFW_SOURCE_DIR}/deps/getopt.h" + "${GLFW_SOURCE_DIR}/deps/getopt.c") +set(TINYCTHREAD "${GLFW_SOURCE_DIR}/deps/tinycthread.h" + "${GLFW_SOURCE_DIR}/deps/tinycthread.c") + +if (${CMAKE_VERSION} VERSION_EQUAL "3.1.0" OR + ${CMAKE_VERSION} VERSION_GREATER "3.1.0") + set(CMAKE_C_STANDARD 99) +else() + # Remove this fallback when removing support for CMake version less than 3.1 + add_compile_options("$<$:-std=c99>" + "$<$:-std=c99>" + "$<$:-std=c99>") + +endif() + +add_executable(clipboard clipboard.c ${GETOPT} ${GLAD_GL}) +add_executable(events events.c ${GETOPT} ${GLAD_GL}) +add_executable(msaa msaa.c ${GETOPT} ${GLAD_GL}) +add_executable(glfwinfo glfwinfo.c ${GETOPT} ${GLAD_GL} ${GLAD_VULKAN}) +add_executable(iconify iconify.c ${GETOPT} ${GLAD_GL}) +add_executable(monitors monitors.c ${GETOPT} ${GLAD_GL}) +add_executable(reopen reopen.c ${GLAD_GL}) +add_executable(cursor cursor.c ${GLAD_GL}) + +add_executable(empty WIN32 MACOSX_BUNDLE empty.c ${TINYCTHREAD} ${GLAD_GL}) +add_executable(gamma WIN32 MACOSX_BUNDLE gamma.c ${GLAD_GL}) +add_executable(icon WIN32 MACOSX_BUNDLE icon.c ${GLAD_GL}) +add_executable(inputlag WIN32 MACOSX_BUNDLE inputlag.c ${GETOPT} ${GLAD_GL}) +add_executable(joysticks WIN32 MACOSX_BUNDLE joysticks.c ${GLAD_GL}) +add_executable(opacity WIN32 MACOSX_BUNDLE opacity.c ${GLAD_GL}) +add_executable(tearing WIN32 MACOSX_BUNDLE tearing.c ${GLAD_GL}) +add_executable(threads WIN32 MACOSX_BUNDLE threads.c ${TINYCTHREAD} ${GLAD_GL}) +add_executable(timeout WIN32 MACOSX_BUNDLE timeout.c ${GLAD_GL}) +add_executable(title WIN32 MACOSX_BUNDLE title.c ${GLAD_GL}) +add_executable(triangle-vulkan WIN32 triangle-vulkan.c ${GLAD_VULKAN}) +add_executable(windows WIN32 MACOSX_BUNDLE windows.c ${GETOPT} ${GLAD_GL}) + +target_link_libraries(empty "${CMAKE_THREAD_LIBS_INIT}") +target_link_libraries(threads "${CMAKE_THREAD_LIBS_INIT}") +if (RT_LIBRARY) + target_link_libraries(empty "${RT_LIBRARY}") + target_link_libraries(threads "${RT_LIBRARY}") +endif() + +set(GUI_ONLY_BINARIES empty gamma icon inputlag joysticks opacity tearing + threads timeout title triangle-vulkan windows) +set(CONSOLE_BINARIES clipboard events msaa glfwinfo iconify monitors reopen + cursor) + +set_target_properties(${GUI_ONLY_BINARIES} ${CONSOLE_BINARIES} PROPERTIES + FOLDER "GLFW3/Tests") + +if (MSVC) + # Tell MSVC to use main instead of WinMain for Windows subsystem executables + set_target_properties(${GUI_ONLY_BINARIES} PROPERTIES + LINK_FLAGS "/ENTRY:mainCRTStartup") +endif() + +if (APPLE) + set_target_properties(empty PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Empty Event") + set_target_properties(gamma PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Gamma") + set_target_properties(inputlag PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Input Lag") + set_target_properties(joysticks PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Joysticks") + set_target_properties(opacity PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Opacity") + set_target_properties(tearing PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Tearing") + set_target_properties(threads PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Threads") + set_target_properties(timeout PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Timeout") + set_target_properties(title PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Title") + set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows") + + set_target_properties(${GUI_ONLY_BINARIES} PROPERTIES + MACOSX_BUNDLE_SHORT_VERSION_STRING ${GLFW_VERSION} + MACOSX_BUNDLE_LONG_VERSION_STRING ${GLFW_VERSION} + MACOSX_BUNDLE_INFO_PLIST "${GLFW_SOURCE_DIR}/CMake/MacOSXBundleInfo.plist.in") +endif() + diff --git a/external/GLFW/tests/clipboard.c b/external/glfw-3.3.4/tests/clipboard.c similarity index 90% rename from external/GLFW/tests/clipboard.c rename to external/glfw-3.3.4/tests/clipboard.c index a24d0c0..41454a3 100644 --- a/external/GLFW/tests/clipboard.c +++ b/external/glfw-3.3.4/tests/clipboard.c @@ -27,7 +27,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -67,7 +68,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, { const char* string; - string = glfwGetClipboardString(window); + string = glfwGetClipboardString(NULL); if (string) printf("Clipboard contains \"%s\"\n", string); else @@ -79,18 +80,13 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, if (mods == MODIFIER) { const char* string = "Hello GLFW World!"; - glfwSetClipboardString(window, string); + glfwSetClipboardString(NULL, string); printf("Setting clipboard to \"%s\"\n", string); } break; } } -static void framebuffer_size_callback(GLFWwindow* window, int width, int height) -{ - glViewport(0, 0, width, height); -} - int main(int argc, char** argv) { int ch; @@ -128,11 +124,10 @@ int main(int argc, char** argv) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); glfwSetKeyCallback(window, key_callback); - glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); glClearColor(0.5f, 0.5f, 0.5f, 0); diff --git a/external/glfw-3.3.4/tests/cursor.c b/external/glfw-3.3.4/tests/cursor.c new file mode 100644 index 0000000..b6288f6 --- /dev/null +++ b/external/glfw-3.3.4/tests/cursor.c @@ -0,0 +1,493 @@ +//======================================================================== +// Cursor & input mode tests +// Copyright (c) Camilla Löwy +// +// 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. +// +//======================================================================== +// +// This test provides an interface to the cursor image and cursor mode +// parts of the API. +// +// Custom cursor image generation by urraka. +// +//======================================================================== + +#include +#define GLFW_INCLUDE_NONE +#include + +#if defined(_MSC_VER) + // Make MS math.h define M_PI + #define _USE_MATH_DEFINES +#endif + +#include +#include +#include + +#include "linmath.h" + +#define CURSOR_FRAME_COUNT 60 + +static const char* vertex_shader_text = +"#version 110\n" +"uniform mat4 MVP;\n" +"attribute vec2 vPos;\n" +"void main()\n" +"{\n" +" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n" +"}\n"; + +static const char* fragment_shader_text = +"#version 110\n" +"void main()\n" +"{\n" +" gl_FragColor = vec4(1.0);\n" +"}\n"; + +static double cursor_x; +static double cursor_y; +static int swap_interval = 1; +static int wait_events = GLFW_TRUE; +static int animate_cursor = GLFW_FALSE; +static int track_cursor = GLFW_FALSE; +static GLFWcursor* standard_cursors[6]; +static GLFWcursor* tracking_cursor = NULL; + +static void error_callback(int error, const char* description) +{ + fprintf(stderr, "Error: %s\n", description); +} + +static float star(int x, int y, float t) +{ + const float c = 64 / 2.f; + + const float i = (0.25f * (float) sin(2.f * M_PI * t) + 0.75f); + const float k = 64 * 0.046875f * i; + + const float dist = (float) sqrt((x - c) * (x - c) + (y - c) * (y - c)); + + const float salpha = 1.f - dist / c; + const float xalpha = (float) x == c ? c : k / (float) fabs(x - c); + const float yalpha = (float) y == c ? c : k / (float) fabs(y - c); + + return (float) fmax(0.f, fmin(1.f, i * salpha * 0.2f + salpha * xalpha * yalpha)); +} + +static GLFWcursor* create_cursor_frame(float t) +{ + int i = 0, x, y; + unsigned char buffer[64 * 64 * 4]; + const GLFWimage image = { 64, 64, buffer }; + + for (y = 0; y < image.width; y++) + { + for (x = 0; x < image.height; x++) + { + buffer[i++] = 255; + buffer[i++] = 255; + buffer[i++] = 255; + buffer[i++] = (unsigned char) (255 * star(x, y, t)); + } + } + + return glfwCreateCursor(&image, image.width / 2, image.height / 2); +} + +static GLFWcursor* create_tracking_cursor(void) +{ + int i = 0, x, y; + unsigned char buffer[32 * 32 * 4]; + const GLFWimage image = { 32, 32, buffer }; + + for (y = 0; y < image.width; y++) + { + for (x = 0; x < image.height; x++) + { + if (x == 7 || y == 7) + { + buffer[i++] = 255; + buffer[i++] = 0; + buffer[i++] = 0; + buffer[i++] = 255; + } + else + { + buffer[i++] = 0; + buffer[i++] = 0; + buffer[i++] = 0; + buffer[i++] = 0; + } + } + } + + return glfwCreateCursor(&image, 7, 7); +} + +static void cursor_position_callback(GLFWwindow* window, double x, double y) +{ + printf("%0.3f: Cursor position: %f %f (%+f %+f)\n", + glfwGetTime(), + x, y, x - cursor_x, y - cursor_y); + + cursor_x = x; + cursor_y = y; +} + +static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) +{ + if (action != GLFW_PRESS) + return; + + switch (key) + { + case GLFW_KEY_A: + { + animate_cursor = !animate_cursor; + if (!animate_cursor) + glfwSetCursor(window, NULL); + + break; + } + + case GLFW_KEY_ESCAPE: + { + if (glfwGetInputMode(window, GLFW_CURSOR) != GLFW_CURSOR_DISABLED) + { + glfwSetWindowShouldClose(window, GLFW_TRUE); + break; + } + + /* FALLTHROUGH */ + } + + case GLFW_KEY_N: + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); + glfwGetCursorPos(window, &cursor_x, &cursor_y); + printf("(( cursor is normal ))\n"); + break; + + case GLFW_KEY_D: + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); + printf("(( cursor is disabled ))\n"); + break; + + case GLFW_KEY_H: + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); + printf("(( cursor is hidden ))\n"); + break; + + case GLFW_KEY_R: + if (!glfwRawMouseMotionSupported()) + break; + + if (glfwGetInputMode(window, GLFW_RAW_MOUSE_MOTION)) + { + glfwSetInputMode(window, GLFW_RAW_MOUSE_MOTION, GLFW_FALSE); + printf("(( raw input is disabled ))\n"); + } + else + { + glfwSetInputMode(window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE); + printf("(( raw input is enabled ))\n"); + } + break; + + case GLFW_KEY_SPACE: + swap_interval = 1 - swap_interval; + printf("(( swap interval: %i ))\n", swap_interval); + glfwSwapInterval(swap_interval); + break; + + case GLFW_KEY_W: + wait_events = !wait_events; + printf("(( %sing for events ))\n", wait_events ? "wait" : "poll"); + break; + + case GLFW_KEY_T: + track_cursor = !track_cursor; + if (track_cursor) + glfwSetCursor(window, tracking_cursor); + else + glfwSetCursor(window, NULL); + + break; + + case GLFW_KEY_P: + { + double x, y; + glfwGetCursorPos(window, &x, &y); + + printf("Query before set: %f %f (%+f %+f)\n", + x, y, x - cursor_x, y - cursor_y); + cursor_x = x; + cursor_y = y; + + glfwSetCursorPos(window, cursor_x, cursor_y); + glfwGetCursorPos(window, &x, &y); + + printf("Query after set: %f %f (%+f %+f)\n", + x, y, x - cursor_x, y - cursor_y); + cursor_x = x; + cursor_y = y; + break; + } + + case GLFW_KEY_UP: + glfwSetCursorPos(window, 0, 0); + glfwGetCursorPos(window, &cursor_x, &cursor_y); + break; + + case GLFW_KEY_DOWN: + { + int width, height; + glfwGetWindowSize(window, &width, &height); + glfwSetCursorPos(window, width - 1, height - 1); + glfwGetCursorPos(window, &cursor_x, &cursor_y); + break; + } + + case GLFW_KEY_0: + glfwSetCursor(window, NULL); + break; + + case GLFW_KEY_1: + glfwSetCursor(window, standard_cursors[0]); + break; + + case GLFW_KEY_2: + glfwSetCursor(window, standard_cursors[1]); + break; + + case GLFW_KEY_3: + glfwSetCursor(window, standard_cursors[2]); + break; + + case GLFW_KEY_4: + glfwSetCursor(window, standard_cursors[3]); + break; + + case GLFW_KEY_5: + glfwSetCursor(window, standard_cursors[4]); + break; + + case GLFW_KEY_6: + glfwSetCursor(window, standard_cursors[5]); + break; + + case GLFW_KEY_F11: + case GLFW_KEY_ENTER: + { + static int x, y, width, height; + + if (mods != GLFW_MOD_ALT) + return; + + if (glfwGetWindowMonitor(window)) + glfwSetWindowMonitor(window, NULL, x, y, width, height, 0); + else + { + GLFWmonitor* monitor = glfwGetPrimaryMonitor(); + const GLFWvidmode* mode = glfwGetVideoMode(monitor); + glfwGetWindowPos(window, &x, &y); + glfwGetWindowSize(window, &width, &height); + glfwSetWindowMonitor(window, monitor, + 0, 0, mode->width, mode->height, + mode->refreshRate); + } + + glfwGetCursorPos(window, &cursor_x, &cursor_y); + break; + } + } +} + +int main(void) +{ + int i; + GLFWwindow* window; + GLFWcursor* star_cursors[CURSOR_FRAME_COUNT]; + GLFWcursor* current_frame = NULL; + GLuint vertex_buffer, vertex_shader, fragment_shader, program; + GLint mvp_location, vpos_location; + + glfwSetErrorCallback(error_callback); + + if (!glfwInit()) + exit(EXIT_FAILURE); + + tracking_cursor = create_tracking_cursor(); + if (!tracking_cursor) + { + glfwTerminate(); + exit(EXIT_FAILURE); + } + + for (i = 0; i < CURSOR_FRAME_COUNT; i++) + { + star_cursors[i] = create_cursor_frame(i / (float) CURSOR_FRAME_COUNT); + if (!star_cursors[i]) + { + glfwTerminate(); + exit(EXIT_FAILURE); + } + } + + for (i = 0; i < sizeof(standard_cursors) / sizeof(standard_cursors[0]); i++) + { + const int shapes[] = { + GLFW_ARROW_CURSOR, + GLFW_IBEAM_CURSOR, + GLFW_CROSSHAIR_CURSOR, + GLFW_HAND_CURSOR, + GLFW_HRESIZE_CURSOR, + GLFW_VRESIZE_CURSOR + }; + + standard_cursors[i] = glfwCreateStandardCursor(shapes[i]); + if (!standard_cursors[i]) + { + glfwTerminate(); + exit(EXIT_FAILURE); + } + } + + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); + + window = glfwCreateWindow(640, 480, "Cursor Test", NULL, NULL); + if (!window) + { + glfwTerminate(); + exit(EXIT_FAILURE); + } + + glfwMakeContextCurrent(window); + gladLoadGL(glfwGetProcAddress); + + glGenBuffers(1, &vertex_buffer); + glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer); + + vertex_shader = glCreateShader(GL_VERTEX_SHADER); + glShaderSource(vertex_shader, 1, &vertex_shader_text, NULL); + glCompileShader(vertex_shader); + + fragment_shader = glCreateShader(GL_FRAGMENT_SHADER); + glShaderSource(fragment_shader, 1, &fragment_shader_text, NULL); + glCompileShader(fragment_shader); + + program = glCreateProgram(); + glAttachShader(program, vertex_shader); + glAttachShader(program, fragment_shader); + glLinkProgram(program); + + mvp_location = glGetUniformLocation(program, "MVP"); + vpos_location = glGetAttribLocation(program, "vPos"); + + glEnableVertexAttribArray(vpos_location); + glVertexAttribPointer(vpos_location, 2, GL_FLOAT, GL_FALSE, + sizeof(vec2), (void*) 0); + glUseProgram(program); + + glfwGetCursorPos(window, &cursor_x, &cursor_y); + printf("Cursor position: %f %f\n", cursor_x, cursor_y); + + glfwSetCursorPosCallback(window, cursor_position_callback); + glfwSetKeyCallback(window, key_callback); + + while (!glfwWindowShouldClose(window)) + { + glClear(GL_COLOR_BUFFER_BIT); + + if (track_cursor) + { + int wnd_width, wnd_height, fb_width, fb_height; + float scale; + vec2 vertices[4]; + mat4x4 mvp; + + glfwGetWindowSize(window, &wnd_width, &wnd_height); + glfwGetFramebufferSize(window, &fb_width, &fb_height); + + glViewport(0, 0, fb_width, fb_height); + + scale = (float) fb_width / (float) wnd_width; + vertices[0][0] = 0.5f; + vertices[0][1] = (float) (fb_height - floor(cursor_y * scale) - 1.f + 0.5f); + vertices[1][0] = (float) fb_width + 0.5f; + vertices[1][1] = (float) (fb_height - floor(cursor_y * scale) - 1.f + 0.5f); + vertices[2][0] = (float) floor(cursor_x * scale) + 0.5f; + vertices[2][1] = 0.5f; + vertices[3][0] = (float) floor(cursor_x * scale) + 0.5f; + vertices[3][1] = (float) fb_height + 0.5f; + + glBufferData(GL_ARRAY_BUFFER, + sizeof(vertices), + vertices, + GL_STREAM_DRAW); + + mat4x4_ortho(mvp, 0.f, (float) fb_width, 0.f, (float) fb_height, 0.f, 1.f); + glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (const GLfloat*) mvp); + + glDrawArrays(GL_LINES, 0, 4); + } + + glfwSwapBuffers(window); + + if (animate_cursor) + { + const int i = (int) (glfwGetTime() * 30.0) % CURSOR_FRAME_COUNT; + if (current_frame != star_cursors[i]) + { + glfwSetCursor(window, star_cursors[i]); + current_frame = star_cursors[i]; + } + } + else + current_frame = NULL; + + if (wait_events) + { + if (animate_cursor) + glfwWaitEventsTimeout(1.0 / 30.0); + else + glfwWaitEvents(); + } + else + glfwPollEvents(); + + // Workaround for an issue with msvcrt and mintty + fflush(stdout); + } + + glfwDestroyWindow(window); + + for (i = 0; i < CURSOR_FRAME_COUNT; i++) + glfwDestroyCursor(star_cursors[i]); + + for (i = 0; i < sizeof(standard_cursors) / sizeof(standard_cursors[0]); i++) + glfwDestroyCursor(standard_cursors[i]); + + glfwTerminate(); + exit(EXIT_SUCCESS); +} + diff --git a/external/GLFW/tests/empty.c b/external/glfw-3.3.4/tests/empty.c similarity index 97% rename from external/GLFW/tests/empty.c rename to external/glfw-3.3.4/tests/empty.c index e51cecb..c3877a7 100644 --- a/external/GLFW/tests/empty.c +++ b/external/glfw-3.3.4/tests/empty.c @@ -29,7 +29,8 @@ #include "tinycthread.h" -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -91,7 +92,7 @@ int main(void) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSetKeyCallback(window, key_callback); if (thrd_create(&thread, thread_main, NULL) != thrd_success) diff --git a/external/GLFW/tests/events.c b/external/glfw-3.3.4/tests/events.c similarity index 91% rename from external/GLFW/tests/events.c rename to external/glfw-3.3.4/tests/events.c index 7b42e4f..f29dfbb 100644 --- a/external/GLFW/tests/events.c +++ b/external/glfw-3.3.4/tests/events.c @@ -31,7 +31,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -174,7 +175,7 @@ static const char* get_key_name(int key) case GLFW_KEY_KP_8: return "KEYPAD 8"; case GLFW_KEY_KP_9: return "KEYPAD 9"; case GLFW_KEY_KP_DIVIDE: return "KEYPAD DIVIDE"; - case GLFW_KEY_KP_MULTIPLY: return "KEYPAD MULTPLY"; + case GLFW_KEY_KP_MULTIPLY: return "KEYPAD MULTIPLY"; case GLFW_KEY_KP_SUBTRACT: return "KEYPAD SUBTRACT"; case GLFW_KEY_KP_ADD: return "KEYPAD ADD"; case GLFW_KEY_KP_DECIMAL: return "KEYPAD DECIMAL"; @@ -244,21 +245,40 @@ static const char* get_mods_name(int mods) strcat(name, " alt"); if (mods & GLFW_MOD_SUPER) strcat(name, " super"); + if (mods & GLFW_MOD_CAPS_LOCK) + strcat(name, " capslock-on"); + if (mods & GLFW_MOD_NUM_LOCK) + strcat(name, " numlock-on"); return name; } -static const char* get_character_string(int codepoint) +static size_t encode_utf8(char* s, unsigned int ch) { - // This assumes UTF-8, which is stupid - static char result[6 + 1]; + size_t count = 0; - int length = wctomb(result, codepoint); - if (length == -1) - length = 0; + if (ch < 0x80) + s[count++] = (char) ch; + else if (ch < 0x800) + { + s[count++] = (ch >> 6) | 0xc0; + s[count++] = (ch & 0x3f) | 0x80; + } + else if (ch < 0x10000) + { + s[count++] = (ch >> 12) | 0xe0; + s[count++] = ((ch >> 6) & 0x3f) | 0x80; + s[count++] = (ch & 0x3f) | 0x80; + } + else if (ch < 0x110000) + { + s[count++] = (ch >> 18) | 0xf0; + s[count++] = ((ch >> 12) & 0x3f) | 0x80; + s[count++] = ((ch >> 6) & 0x3f) | 0x80; + s[count++] = (ch & 0x3f) | 0x80; + } - result[length] = '\0'; - return result; + return count; } static void error_callback(int error, const char* description) @@ -285,8 +305,13 @@ static void framebuffer_size_callback(GLFWwindow* window, int width, int height) Slot* slot = glfwGetWindowUserPointer(window); printf("%08x to %i at %0.3f: Framebuffer size: %i %i\n", counter++, slot->number, glfwGetTime(), width, height); +} - glViewport(0, 0, width, height); +static void window_content_scale_callback(GLFWwindow* window, float xscale, float yscale) +{ + Slot* slot = glfwGetWindowUserPointer(window); + printf("%08x to %i at %0.3f: Window content scale: %0.3f %0.3f\n", + counter++, slot->number, glfwGetTime(), xscale, yscale); } static void window_close_callback(GLFWwindow* window) @@ -400,27 +425,29 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, printf("(( closing %s ))\n", slot->closeable ? "enabled" : "disabled"); break; } + + case GLFW_KEY_L: + { + const int state = glfwGetInputMode(window, GLFW_LOCK_KEY_MODS); + glfwSetInputMode(window, GLFW_LOCK_KEY_MODS, !state); + + printf("(( lock key mods %s ))\n", !state ? "enabled" : "disabled"); + break; + } } } static void char_callback(GLFWwindow* window, unsigned int codepoint) { Slot* slot = glfwGetWindowUserPointer(window); - printf("%08x to %i at %0.3f: Character 0x%08x (%s) input\n", - counter++, slot->number, glfwGetTime(), codepoint, - get_character_string(codepoint)); -} + char string[5] = ""; -static void char_mods_callback(GLFWwindow* window, unsigned int codepoint, int mods) -{ - Slot* slot = glfwGetWindowUserPointer(window); - printf("%08x to %i at %0.3f: Character 0x%08x (%s) with modifiers (with%s) input\n", - counter++, slot->number, glfwGetTime(), codepoint, - get_character_string(codepoint), - get_mods_name(mods)); + encode_utf8(string, codepoint); + printf("%08x to %i at %0.3f: Character 0x%08x (%s) input\n", + counter++, slot->number, glfwGetTime(), codepoint, string); } -static void drop_callback(GLFWwindow* window, int count, const char** paths) +static void drop_callback(GLFWwindow* window, int count, const char* paths[]) { int i; Slot* slot = glfwGetWindowUserPointer(window); @@ -490,8 +517,6 @@ int main(int argc, char** argv) GLFWmonitor* monitor = NULL; int ch, i, width, height, count = 1; - setlocale(LC_ALL, ""); - glfwSetErrorCallback(error_callback); if (!glfwInit()) @@ -515,7 +540,7 @@ int main(int argc, char** argv) break; case 'n': - count = (int) strtol(optarg, NULL, 10); + count = (int) strtoul(optarg, NULL, 10); break; default: @@ -542,12 +567,6 @@ int main(int argc, char** argv) height = 480; } - if (!count) - { - fprintf(stderr, "Invalid user\n"); - exit(EXIT_FAILURE); - } - slots = calloc(count, sizeof(Slot)); for (i = 0; i < count; i++) @@ -586,6 +605,7 @@ int main(int argc, char** argv) glfwSetWindowPosCallback(slots[i].window, window_pos_callback); glfwSetWindowSizeCallback(slots[i].window, window_size_callback); glfwSetFramebufferSizeCallback(slots[i].window, framebuffer_size_callback); + glfwSetWindowContentScaleCallback(slots[i].window, window_content_scale_callback); glfwSetWindowCloseCallback(slots[i].window, window_close_callback); glfwSetWindowRefreshCallback(slots[i].window, window_refresh_callback); glfwSetWindowFocusCallback(slots[i].window, window_focus_callback); @@ -597,11 +617,10 @@ int main(int argc, char** argv) glfwSetScrollCallback(slots[i].window, scroll_callback); glfwSetKeyCallback(slots[i].window, key_callback); glfwSetCharCallback(slots[i].window, char_callback); - glfwSetCharModsCallback(slots[i].window, char_mods_callback); glfwSetDropCallback(slots[i].window, drop_callback); glfwMakeContextCurrent(slots[i].window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); } diff --git a/external/GLFW/tests/gamma.c b/external/glfw-3.3.4/tests/gamma.c similarity index 79% rename from external/GLFW/tests/gamma.c rename to external/glfw-3.3.4/tests/gamma.c index 500d41c..aa4c8b7 100644 --- a/external/GLFW/tests/gamma.c +++ b/external/glfw-3.3.4/tests/gamma.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #define NK_IMPLEMENTATION @@ -38,6 +39,7 @@ #define NK_INCLUDE_DEFAULT_ALLOCATOR #define NK_INCLUDE_VERTEX_BUFFER_OUTPUT #define NK_INCLUDE_STANDARD_VARARGS +#define NK_BUTTON_TRIGGER_ON_RELEASE #include #define NK_GLFW_GL2_IMPLEMENTATION @@ -45,6 +47,7 @@ #include #include +#include static void error_callback(int error, const char* description) { @@ -85,6 +88,7 @@ int main(int argc, char** argv) { GLFWmonitor* monitor = NULL; GLFWwindow* window; + GLFWgammaramp orig_ramp; struct nk_context* nk; struct nk_font_atlas* atlas; float gamma_value = 1.f; @@ -96,6 +100,8 @@ int main(int argc, char** argv) monitor = glfwGetPrimaryMonitor(); + glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); + window = glfwCreateWindow(800, 400, "Gamma Test", NULL, NULL); if (!window) { @@ -103,8 +109,20 @@ int main(int argc, char** argv) exit(EXIT_FAILURE); } + { + const GLFWgammaramp* ramp = glfwGetGammaRamp(monitor); + const size_t array_size = ramp->size * sizeof(short); + orig_ramp.size = ramp->size; + orig_ramp.red = malloc(array_size); + orig_ramp.green = malloc(array_size); + orig_ramp.blue = malloc(array_size); + memcpy(orig_ramp.red, ramp->red, array_size); + memcpy(orig_ramp.green, ramp->green, array_size); + memcpy(orig_ramp.blue, ramp->blue, array_size); + } + glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); nk = nk_glfw3_init(window, NK_GLFW3_INSTALL_CALLBACKS); @@ -120,23 +138,27 @@ int main(int argc, char** argv) glfwGetWindowSize(window, &width, &height); area = nk_rect(0.f, 0.f, (float) width, (float) height); + nk_window_set_bounds(nk, "", area); glClear(GL_COLOR_BUFFER_BIT); nk_glfw3_new_frame(); if (nk_begin(nk, "", area, 0)) { - const GLFWgammaramp* ramp = glfwGetGammaRamp(monitor); - nk_window_set_bounds(nk, area); + const GLFWgammaramp* ramp; - nk_layout_row_dynamic(nk, 30, 2); + nk_layout_row_dynamic(nk, 30, 3); if (nk_slider_float(nk, 0.1f, &gamma_value, 5.f, 0.1f)) glfwSetGamma(monitor, gamma_value); nk_labelf(nk, NK_TEXT_LEFT, "%0.1f", gamma_value); + if (nk_button_label(nk, "Revert")) + glfwSetGammaRamp(monitor, &orig_ramp); + + ramp = glfwGetGammaRamp(monitor); nk_layout_row_dynamic(nk, height - 60.f, 3); chart_ramp_array(nk, nk_rgb(255, 0, 0), ramp->size, ramp->red); chart_ramp_array(nk, nk_rgb(0, 255, 0), ramp->size, ramp->green); - chart_ramp_array(nk, nk_rgb(0,0, 255), ramp->size, ramp->blue); + chart_ramp_array(nk, nk_rgb(0, 0, 255), ramp->size, ramp->blue); } nk_end(nk); @@ -146,6 +168,10 @@ int main(int argc, char** argv) glfwWaitEventsTimeout(1.0); } + free(orig_ramp.red); + free(orig_ramp.green); + free(orig_ramp.blue); + nk_glfw3_shutdown(); glfwTerminate(); exit(EXIT_SUCCESS); diff --git a/external/GLFW/tests/glfwinfo.c b/external/glfw-3.3.4/tests/glfwinfo.c similarity index 88% rename from external/GLFW/tests/glfwinfo.c rename to external/glfw-3.3.4/tests/glfwinfo.c index da2e56e..074bcbd 100644 --- a/external/GLFW/tests/glfwinfo.c +++ b/external/glfw-3.3.4/tests/glfwinfo.c @@ -23,9 +23,9 @@ // //======================================================================== -#define VK_NO_PROTOTYPES -#include -#include +#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -100,6 +100,7 @@ static void usage(void) printf(" --srgb request an sRGB capable framebuffer\n"); printf(" --singlebuffer request single-buffering\n"); printf(" --no-error request a context that does not emit errors\n"); + printf(" --graphics-switching request macOS graphics switching\n"); } static void error_callback(int error, const char* description) @@ -213,9 +214,6 @@ static void list_vulkan_instance_extensions(void) { uint32_t i, ep_count = 0; VkExtensionProperties* ep; - PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties = - (PFN_vkEnumerateInstanceExtensionProperties) - glfwGetInstanceProcAddress(NULL, "vkEnumerateInstanceExtensionProperties"); printf("Vulkan instance extensions:\n"); @@ -240,9 +238,6 @@ static void list_vulkan_instance_layers(void) { uint32_t i, lp_count = 0; VkLayerProperties* lp; - PFN_vkEnumerateInstanceLayerProperties vkEnumerateInstanceLayerProperties = - (PFN_vkEnumerateInstanceLayerProperties) - glfwGetInstanceProcAddress(NULL, "vkEnumerateInstanceLayerProperties"); printf("Vulkan instance layers:\n"); @@ -272,9 +267,6 @@ static void list_vulkan_device_extensions(VkInstance instance, VkPhysicalDevice { uint32_t i, ep_count; VkExtensionProperties* ep; - PFN_vkEnumerateDeviceExtensionProperties vkEnumerateDeviceExtensionProperties = - (PFN_vkEnumerateDeviceExtensionProperties) - glfwGetInstanceProcAddress(instance, "vkEnumerateDeviceExtensionProperties"); printf("Vulkan device extensions:\n"); @@ -299,9 +291,6 @@ static void list_vulkan_device_layers(VkInstance instance, VkPhysicalDevice devi { uint32_t i, lp_count; VkLayerProperties* lp; - PFN_vkEnumerateDeviceLayerProperties vkEnumerateDeviceLayerProperties = - (PFN_vkEnumerateDeviceLayerProperties) - glfwGetInstanceProcAddress(instance, "vkEnumerateDeviceLayerProperties"); printf("Vulkan device layers:\n"); @@ -357,6 +346,11 @@ static void print_version(void) printf("GLFW library version string: \"%s\"\n", glfwGetVersionString()); } +static GLADapiproc glad_vulkan_callback(const char* name, void* user) +{ + return glfwGetInstanceProcAddress((VkInstance) user, name); +} + int main(int argc, char** argv) { int ch, client, major, minor, revision, profile; @@ -365,42 +359,45 @@ int main(int argc, char** argv) GLenum error; GLFWwindow* window; - enum { CLIENT, CONTEXT, BEHAVIOR, DEBUG, FORWARD, HELP, EXTENSIONS, LAYERS, + enum { CLIENT, CONTEXT, BEHAVIOR, DEBUG_CONTEXT, FORWARD, HELP, + EXTENSIONS, LAYERS, MAJOR, MINOR, PROFILE, ROBUSTNESS, VERSION, REDBITS, GREENBITS, BLUEBITS, ALPHABITS, DEPTHBITS, STENCILBITS, ACCUMREDBITS, ACCUMGREENBITS, ACCUMBLUEBITS, ACCUMALPHABITS, - AUXBUFFERS, SAMPLES, STEREO, SRGB, SINGLEBUFFER, NOERROR_SRSLY }; + AUXBUFFERS, SAMPLES, STEREO, SRGB, SINGLEBUFFER, NOERROR_SRSLY, + GRAPHICS_SWITCHING }; const struct option options[] = { - { "behavior", 1, NULL, BEHAVIOR }, - { "client-api", 1, NULL, CLIENT }, - { "context-api", 1, NULL, CONTEXT }, - { "debug", 0, NULL, DEBUG }, - { "forward", 0, NULL, FORWARD }, - { "help", 0, NULL, HELP }, - { "list-extensions", 0, NULL, EXTENSIONS }, - { "list-layers", 0, NULL, LAYERS }, - { "major", 1, NULL, MAJOR }, - { "minor", 1, NULL, MINOR }, - { "profile", 1, NULL, PROFILE }, - { "robustness", 1, NULL, ROBUSTNESS }, - { "version", 0, NULL, VERSION }, - { "red-bits", 1, NULL, REDBITS }, - { "green-bits", 1, NULL, GREENBITS }, - { "blue-bits", 1, NULL, BLUEBITS }, - { "alpha-bits", 1, NULL, ALPHABITS }, - { "depth-bits", 1, NULL, DEPTHBITS }, - { "stencil-bits", 1, NULL, STENCILBITS }, - { "accum-red-bits", 1, NULL, ACCUMREDBITS }, - { "accum-green-bits", 1, NULL, ACCUMGREENBITS }, - { "accum-blue-bits", 1, NULL, ACCUMBLUEBITS }, - { "accum-alpha-bits", 1, NULL, ACCUMALPHABITS }, - { "aux-buffers", 1, NULL, AUXBUFFERS }, - { "samples", 1, NULL, SAMPLES }, - { "stereo", 0, NULL, STEREO }, - { "srgb", 0, NULL, SRGB }, - { "singlebuffer", 0, NULL, SINGLEBUFFER }, - { "no-error", 0, NULL, NOERROR_SRSLY }, + { "behavior", 1, NULL, BEHAVIOR }, + { "client-api", 1, NULL, CLIENT }, + { "context-api", 1, NULL, CONTEXT }, + { "debug", 0, NULL, DEBUG_CONTEXT }, + { "forward", 0, NULL, FORWARD }, + { "help", 0, NULL, HELP }, + { "list-extensions", 0, NULL, EXTENSIONS }, + { "list-layers", 0, NULL, LAYERS }, + { "major", 1, NULL, MAJOR }, + { "minor", 1, NULL, MINOR }, + { "profile", 1, NULL, PROFILE }, + { "robustness", 1, NULL, ROBUSTNESS }, + { "version", 0, NULL, VERSION }, + { "red-bits", 1, NULL, REDBITS }, + { "green-bits", 1, NULL, GREENBITS }, + { "blue-bits", 1, NULL, BLUEBITS }, + { "alpha-bits", 1, NULL, ALPHABITS }, + { "depth-bits", 1, NULL, DEPTHBITS }, + { "stencil-bits", 1, NULL, STENCILBITS }, + { "accum-red-bits", 1, NULL, ACCUMREDBITS }, + { "accum-green-bits", 1, NULL, ACCUMGREENBITS }, + { "accum-blue-bits", 1, NULL, ACCUMBLUEBITS }, + { "accum-alpha-bits", 1, NULL, ACCUMALPHABITS }, + { "aux-buffers", 1, NULL, AUXBUFFERS }, + { "samples", 1, NULL, SAMPLES }, + { "stereo", 0, NULL, STEREO }, + { "srgb", 0, NULL, SRGB }, + { "singlebuffer", 0, NULL, SINGLEBUFFER }, + { "no-error", 0, NULL, NOERROR_SRSLY }, + { "graphics-switching", 0, NULL, GRAPHICS_SWITCHING }, { NULL, 0, NULL, 0 } }; @@ -465,7 +462,7 @@ int main(int argc, char** argv) } break; case 'd': - case DEBUG: + case DEBUG_CONTEXT: glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE); break; case 'f': @@ -615,6 +612,9 @@ int main(int argc, char** argv) case NOERROR_SRSLY: glfwWindowHint(GLFW_CONTEXT_NO_ERROR, GLFW_TRUE); break; + case GRAPHICS_SWITCHING: + glfwWindowHint(GLFW_COCOA_GRAPHICS_SWITCHING, GLFW_TRUE); + break; default: usage(); exit(EXIT_FAILURE); @@ -633,7 +633,7 @@ int main(int argc, char** argv) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); error = glGetError(); if (error != GL_NO_ERROR) @@ -811,17 +811,26 @@ int main(int argc, char** argv) if (glfwVulkanSupported()) { + uint32_t loader_version = VK_API_VERSION_1_0; uint32_t i, re_count, pd_count; const char** re; VkApplicationInfo ai = {0}; VkInstanceCreateInfo ici = {0}; VkInstance instance; VkPhysicalDevice* pd; - PFN_vkCreateInstance vkCreateInstance = (PFN_vkCreateInstance) - glfwGetInstanceProcAddress(NULL, "vkCreateInstance"); - PFN_vkDestroyInstance vkDestroyInstance; - PFN_vkEnumeratePhysicalDevices vkEnumeratePhysicalDevices; - PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties; + + gladLoadVulkanUserPtr(NULL, glad_vulkan_callback, NULL); + + if (vkEnumerateInstanceVersion) + { + uint32_t version; + if (vkEnumerateInstanceVersion(&version) == VK_SUCCESS) + loader_version = version; + } + + printf("Vulkan loader API version: %i.%i\n", + VK_VERSION_MAJOR(loader_version), + VK_VERSION_MINOR(loader_version)); re = glfwGetRequiredInstanceExtensions(&re_count); @@ -843,10 +852,14 @@ int main(int argc, char** argv) ai.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO; ai.pApplicationName = "glfwinfo"; - ai.applicationVersion = GLFW_VERSION_MAJOR; - ai.pEngineName = "GLFW"; - ai.engineVersion = GLFW_VERSION_MAJOR; - ai.apiVersion = VK_API_VERSION_1_0; + ai.applicationVersion = VK_MAKE_VERSION(GLFW_VERSION_MAJOR, + GLFW_VERSION_MINOR, + GLFW_VERSION_REVISION); + + if (loader_version >= VK_API_VERSION_1_1) + ai.apiVersion = VK_API_VERSION_1_1; + else + ai.apiVersion = VK_API_VERSION_1_0; ici.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; ici.pApplicationInfo = &ai; @@ -859,12 +872,7 @@ int main(int argc, char** argv) exit(EXIT_FAILURE); } - vkDestroyInstance = (PFN_vkDestroyInstance) - glfwGetInstanceProcAddress(instance, "vkDestroyInstance"); - vkEnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices) - glfwGetInstanceProcAddress(instance, "vkEnumeratePhysicalDevices"); - vkGetPhysicalDeviceProperties = (PFN_vkGetPhysicalDeviceProperties) - glfwGetInstanceProcAddress(instance, "vkGetPhysicalDeviceProperties"); + gladLoadVulkanUserPtr(NULL, glad_vulkan_callback, instance); if (vkEnumeratePhysicalDevices(instance, &pd_count, NULL) != VK_SUCCESS) { @@ -889,9 +897,11 @@ int main(int argc, char** argv) vkGetPhysicalDeviceProperties(pd[i], &pdp); - printf("Vulkan %s device: \"%s\"\n", + printf("Vulkan %s device: \"%s\" API version %i.%i\n", get_device_type_name(pdp.deviceType), - pdp.deviceName); + pdp.deviceName, + VK_VERSION_MAJOR(pdp.apiVersion), + VK_VERSION_MINOR(pdp.apiVersion)); if (list_extensions) list_vulkan_device_extensions(instance, pd[i]); diff --git a/external/GLFW/tests/icon.c b/external/glfw-3.3.4/tests/icon.c similarity index 97% rename from external/GLFW/tests/icon.c rename to external/glfw-3.3.4/tests/icon.c index 747630f..aa7ee18 100644 --- a/external/GLFW/tests/icon.c +++ b/external/glfw-3.3.4/tests/icon.c @@ -27,7 +27,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -129,7 +130,7 @@ int main(int argc, char** argv) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSetKeyCallback(window, key_callback); set_icon(window, cur_icon_color); diff --git a/external/GLFW/tests/iconify.c b/external/glfw-3.3.4/tests/iconify.c similarity index 98% rename from external/GLFW/tests/iconify.c rename to external/glfw-3.3.4/tests/iconify.c index 8de892e..ff446d2 100644 --- a/external/GLFW/tests/iconify.c +++ b/external/glfw-3.3.4/tests/iconify.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -127,8 +128,6 @@ static void window_size_callback(GLFWwindow* window, int width, int height) static void framebuffer_size_callback(GLFWwindow* window, int width, int height) { printf("%0.2f Framebuffer resized to %ix%i\n", glfwGetTime(), width, height); - - glViewport(0, 0, width, height); } static void window_focus_callback(GLFWwindow* window, int focused) @@ -193,7 +192,7 @@ static GLFWwindow* create_window(GLFWmonitor* monitor) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); return window; } diff --git a/external/GLFW/tests/inputlag.c b/external/glfw-3.3.4/tests/inputlag.c similarity index 98% rename from external/GLFW/tests/inputlag.c rename to external/glfw-3.3.4/tests/inputlag.c index eee4544..269a0c8 100644 --- a/external/GLFW/tests/inputlag.c +++ b/external/glfw-3.3.4/tests/inputlag.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #define NK_IMPLEMENTATION @@ -200,6 +201,8 @@ int main(int argc, char** argv) glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); + glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); + window = glfwCreateWindow(width, height, "Input lag test", monitor, NULL); if (!window) { @@ -208,7 +211,7 @@ int main(int argc, char** argv) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); update_vsync(); last_time = glfwGetTime(); diff --git a/external/GLFW/tests/joysticks.c b/external/glfw-3.3.4/tests/joysticks.c similarity index 88% rename from external/GLFW/tests/joysticks.c rename to external/glfw-3.3.4/tests/joysticks.c index d2be647..8eae021 100644 --- a/external/GLFW/tests/joysticks.c +++ b/external/glfw-3.3.4/tests/joysticks.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #define NK_IMPLEMENTATION @@ -85,6 +86,32 @@ static void joystick_callback(int jid, int event) glfwRequestWindowAttention(window); } +static void drop_callback(GLFWwindow* window, int count, const char* paths[]) +{ + int i; + + for (i = 0; i < count; i++) + { + long size; + char* text; + FILE* stream = fopen(paths[i], "rb"); + if (!stream) + continue; + + fseek(stream, 0, SEEK_END); + size = ftell(stream); + fseek(stream, 0, SEEK_SET); + + text = malloc(size + 1); + text[size] = '\0'; + if (fread(text, 1, size, stream) == size) + glfwUpdateGamepadMappings(text); + + free(text); + fclose(stream); + } +} + static const char* joystick_label(int jid) { static char label[1024]; @@ -131,13 +158,13 @@ static void hat_widget(struct nk_context* nk, unsigned char state) const struct nk_vec2 p2 = nk_vec2(-radius / 2.f, -radius / 3.f); nk_fill_triangle(nk_window_get_canvas(nk), - center.x + cosa * p0.x + sina * p0.y, - center.y + cosa * p0.y - sina * p0.x, - center.x + cosa * p1.x + sina * p1.y, - center.y + cosa * p1.y - sina * p1.x, - center.x + cosa * p2.x + sina * p2.y, - center.y + cosa * p2.y - sina * p2.x, - nk_rgb(175, 175, 175)); + center.x + cosa * p0.x + sina * p0.y, + center.y + cosa * p0.y - sina * p0.x, + center.x + cosa * p1.x + sina * p1.y, + center.y + cosa * p1.y - sina * p1.x, + center.x + cosa * p2.x + sina * p2.y, + center.y + cosa * p2.y - sina * p2.x, + nk_rgb(175, 175, 175)); } } @@ -154,6 +181,8 @@ int main(void) if (!glfwInit()) exit(EXIT_FAILURE); + glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); + window = glfwCreateWindow(800, 600, "Joystick Test", NULL, NULL); if (!window) { @@ -162,7 +191,7 @@ int main(void) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); nk = nk_glfw3_init(window, NK_GLFW3_INSTALL_CALLBACKS); @@ -176,6 +205,7 @@ int main(void) } glfwSetJoystickCallback(joystick_callback); + glfwSetDropCallback(window, drop_callback); while (!glfwWindowShouldClose(window)) { diff --git a/external/GLFW/tests/monitors.c b/external/glfw-3.3.4/tests/monitors.c similarity index 89% rename from external/GLFW/tests/monitors.c rename to external/glfw-3.3.4/tests/monitors.c index fc54c31..2b75d7b 100644 --- a/external/GLFW/tests/monitors.c +++ b/external/glfw-3.3.4/tests/monitors.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -92,21 +93,29 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, static void list_modes(GLFWmonitor* monitor) { - int count, x, y, widthMM, heightMM, i; + int count, x, y, width_mm, height_mm, i; + int workarea_x, workarea_y, workarea_width, workarea_height; + float xscale, yscale; + const GLFWvidmode* mode = glfwGetVideoMode(monitor); const GLFWvidmode* modes = glfwGetVideoModes(monitor, &count); glfwGetMonitorPos(monitor, &x, &y); - glfwGetMonitorPhysicalSize(monitor, &widthMM, &heightMM); + glfwGetMonitorPhysicalSize(monitor, &width_mm, &height_mm); + glfwGetMonitorContentScale(monitor, &xscale, &yscale); + glfwGetMonitorWorkarea(monitor, &workarea_x, &workarea_y, &workarea_width, &workarea_height); printf("Name: %s (%s)\n", glfwGetMonitorName(monitor), glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary"); printf("Current mode: %s\n", format_mode(mode)); - printf("Virtual position: %i %i\n", x, y); + printf("Virtual position: %i, %i\n", x, y); + printf("Content scale: %f x %f\n", xscale, yscale); - printf("Physical size: %i x %i mm (%0.2f dpi)\n", - widthMM, heightMM, mode->width * 25.4f / widthMM); + printf("Physical size: %i x %i mm (%0.2f dpi at %i x %i)\n", + width_mm, height_mm, mode->width * 25.4f / width_mm, mode->width, mode->height); + printf("Monitor work area: %i x %i starting at %i, %i\n", + workarea_width, workarea_height, workarea_x, workarea_y); printf("Modes:\n"); @@ -158,7 +167,7 @@ static void test_modes(GLFWmonitor* monitor) glfwSetKeyCallback(window, key_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); glfwSetTime(0.0); diff --git a/external/GLFW/tests/msaa.c b/external/glfw-3.3.4/tests/msaa.c similarity index 98% rename from external/GLFW/tests/msaa.c rename to external/glfw-3.3.4/tests/msaa.c index 86f1e92..33e2ccc 100644 --- a/external/GLFW/tests/msaa.c +++ b/external/glfw-3.3.4/tests/msaa.c @@ -29,7 +29,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #if defined(_MSC_VER) @@ -141,7 +142,7 @@ int main(int argc, char** argv) glfwSetKeyCallback(window, key_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); glGetIntegerv(GL_SAMPLES, &samples); diff --git a/external/glfw-3.3.4/tests/opacity.c b/external/glfw-3.3.4/tests/opacity.c new file mode 100644 index 0000000..47f28b1 --- /dev/null +++ b/external/glfw-3.3.4/tests/opacity.c @@ -0,0 +1,108 @@ +//======================================================================== +// Window opacity test program +// Copyright (c) Camilla Löwy +// +// 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 +#define GLFW_INCLUDE_NONE +#include + +#define NK_IMPLEMENTATION +#define NK_INCLUDE_FIXED_TYPES +#define NK_INCLUDE_FONT_BAKING +#define NK_INCLUDE_DEFAULT_FONT +#define NK_INCLUDE_DEFAULT_ALLOCATOR +#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT +#define NK_INCLUDE_STANDARD_VARARGS +#include + +#define NK_GLFW_GL2_IMPLEMENTATION +#include + +#include +#include + +static void error_callback(int error, const char* description) +{ + fprintf(stderr, "Error: %s\n", description); +} + +int main(int argc, char** argv) +{ + GLFWwindow* window; + struct nk_context* nk; + struct nk_font_atlas* atlas; + + glfwSetErrorCallback(error_callback); + + if (!glfwInit()) + exit(EXIT_FAILURE); + + glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); + + window = glfwCreateWindow(400, 400, "Opacity", NULL, NULL); + if (!window) + { + glfwTerminate(); + exit(EXIT_FAILURE); + } + + glfwMakeContextCurrent(window); + gladLoadGL(glfwGetProcAddress); + glfwSwapInterval(1); + + nk = nk_glfw3_init(window, NK_GLFW3_INSTALL_CALLBACKS); + nk_glfw3_font_stash_begin(&atlas); + nk_glfw3_font_stash_end(); + + while (!glfwWindowShouldClose(window)) + { + int width, height; + struct nk_rect area; + + glfwGetWindowSize(window, &width, &height); + area = nk_rect(0.f, 0.f, (float) width, (float) height); + + glClear(GL_COLOR_BUFFER_BIT); + nk_glfw3_new_frame(); + if (nk_begin(nk, "", area, 0)) + { + float opacity = glfwGetWindowOpacity(window); + nk_layout_row_dynamic(nk, 30, 2); + if (nk_slider_float(nk, 0.f, &opacity, 1.f, 0.001f)) + glfwSetWindowOpacity(window, opacity); + nk_labelf(nk, NK_TEXT_LEFT, "%0.3f", opacity); + } + + nk_end(nk); + nk_glfw3_render(NK_ANTI_ALIASING_ON); + + glfwSwapBuffers(window); + glfwWaitEventsTimeout(1.0); + } + + nk_glfw3_shutdown(); + glfwTerminate(); + exit(EXIT_SUCCESS); +} + diff --git a/external/GLFW/tests/reopen.c b/external/glfw-3.3.4/tests/reopen.c similarity index 98% rename from external/GLFW/tests/reopen.c rename to external/glfw-3.3.4/tests/reopen.c index 18810c3..10d22b2 100644 --- a/external/GLFW/tests/reopen.c +++ b/external/glfw-3.3.4/tests/reopen.c @@ -33,7 +33,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -164,7 +165,7 @@ int main(int argc, char** argv) glfwSetKeyCallback(window, key_callback); glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); vertex_shader = glCreateShader(GL_VERTEX_SHADER); diff --git a/external/GLFW/tests/tearing.c b/external/glfw-3.3.4/tests/tearing.c similarity index 81% rename from external/GLFW/tests/tearing.c rename to external/glfw-3.3.4/tests/tearing.c index 1d8a00a..1760121 100644 --- a/external/GLFW/tests/tearing.c +++ b/external/glfw-3.3.4/tests/tearing.c @@ -28,7 +28,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -36,7 +37,6 @@ #include #include "linmath.h" -#include "getopt.h" static const struct { @@ -69,14 +69,6 @@ static int swap_tear; static int swap_interval; static double frame_rate; -static void usage(void) -{ - printf("Usage: tearing [-h] [-f]\n"); - printf("Options:\n"); - printf(" -f create full screen window\n"); - printf(" -h show this help\n"); -} - static void update_window_title(GLFWwindow* window) { char title[256]; @@ -101,11 +93,6 @@ static void error_callback(int error, const char* description) fprintf(stderr, "Error: %s\n", description); } -static void framebuffer_size_callback(GLFWwindow* window, int width, int height) -{ - glViewport(0, 0, width, height); -} - static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (action != GLFW_PRESS) @@ -138,64 +125,50 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, case GLFW_KEY_ESCAPE: glfwSetWindowShouldClose(window, 1); break; + + case GLFW_KEY_F11: + case GLFW_KEY_ENTER: + { + static int x, y, width, height; + + if (mods != GLFW_MOD_ALT) + return; + + if (glfwGetWindowMonitor(window)) + glfwSetWindowMonitor(window, NULL, x, y, width, height, 0); + else + { + GLFWmonitor* monitor = glfwGetPrimaryMonitor(); + const GLFWvidmode* mode = glfwGetVideoMode(monitor); + glfwGetWindowPos(window, &x, &y); + glfwGetWindowSize(window, &width, &height); + glfwSetWindowMonitor(window, monitor, + 0, 0, mode->width, mode->height, + mode->refreshRate); + } + + break; + } } } int main(int argc, char** argv) { - int ch, width, height; unsigned long frame_count = 0; double last_time, current_time; - int fullscreen = GLFW_FALSE; - GLFWmonitor* monitor = NULL; GLFWwindow* window; GLuint vertex_buffer, vertex_shader, fragment_shader, program; GLint mvp_location, vpos_location; - while ((ch = getopt(argc, argv, "fh")) != -1) - { - switch (ch) - { - case 'h': - usage(); - exit(EXIT_SUCCESS); - - case 'f': - fullscreen = GLFW_TRUE; - break; - } - } - glfwSetErrorCallback(error_callback); if (!glfwInit()) exit(EXIT_FAILURE); - if (fullscreen) - { - const GLFWvidmode* mode; - - monitor = glfwGetPrimaryMonitor(); - mode = glfwGetVideoMode(monitor); - - glfwWindowHint(GLFW_RED_BITS, mode->redBits); - glfwWindowHint(GLFW_GREEN_BITS, mode->greenBits); - glfwWindowHint(GLFW_BLUE_BITS, mode->blueBits); - glfwWindowHint(GLFW_REFRESH_RATE, mode->refreshRate); - - width = mode->width; - height = mode->height; - } - else - { - width = 640; - height = 480; - } - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); - window = glfwCreateWindow(width, height, "", monitor, NULL); + window = glfwCreateWindow(640, 480, "Tearing detector", NULL, NULL); if (!window) { glfwTerminate(); @@ -203,7 +176,7 @@ int main(int argc, char** argv) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); set_swap_interval(window, 0); last_time = glfwGetTime(); @@ -211,7 +184,6 @@ int main(int argc, char** argv) swap_tear = (glfwExtensionSupported("WGL_EXT_swap_control_tear") || glfwExtensionSupported("GLX_EXT_swap_control_tear")); - glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); glfwSetKeyCallback(window, key_callback); glGenBuffers(1, &vertex_buffer); @@ -240,9 +212,13 @@ int main(int argc, char** argv) while (!glfwWindowShouldClose(window)) { + int width, height; mat4x4 m, p, mvp; float position = cosf((float) glfwGetTime() * 4.f) * 0.75f; + glfwGetFramebufferSize(window, &width, &height); + + glViewport(0, 0, width, height); glClear(GL_COLOR_BUFFER_BIT); mat4x4_ortho(p, -1.f, 1.f, -1.f, 1.f, 0.f, 1.f); diff --git a/external/GLFW/tests/threads.c b/external/glfw-3.3.4/tests/threads.c similarity index 97% rename from external/GLFW/tests/threads.c rename to external/glfw-3.3.4/tests/threads.c index 9c0f892..9829493 100644 --- a/external/GLFW/tests/threads.c +++ b/external/glfw-3.3.4/tests/threads.c @@ -30,7 +30,8 @@ #include "tinycthread.h" -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -114,7 +115,7 @@ int main(void) } glfwMakeContextCurrent(threads[0].window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwMakeContextCurrent(NULL); for (i = 0; i < count; i++) diff --git a/external/GLFW/tests/timeout.c b/external/glfw-3.3.4/tests/timeout.c similarity index 97% rename from external/GLFW/tests/timeout.c rename to external/glfw-3.3.4/tests/timeout.c index 22bee75..bda2560 100644 --- a/external/GLFW/tests/timeout.c +++ b/external/glfw-3.3.4/tests/timeout.c @@ -27,7 +27,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -70,7 +71,7 @@ int main(void) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSetKeyCallback(window, key_callback); while (!glfwWindowShouldClose(window)) diff --git a/external/GLFW/tests/title.c b/external/glfw-3.3.4/tests/title.c similarity index 87% rename from external/GLFW/tests/title.c rename to external/glfw-3.3.4/tests/title.c index 41e9171..a5bad34 100644 --- a/external/GLFW/tests/title.c +++ b/external/glfw-3.3.4/tests/title.c @@ -27,7 +27,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -38,11 +39,6 @@ static void error_callback(int error, const char* description) fprintf(stderr, "Error: %s\n", description); } -static void framebuffer_size_callback(GLFWwindow* window, int width, int height) -{ - glViewport(0, 0, width, height); -} - int main(void) { GLFWwindow* window; @@ -60,11 +56,9 @@ int main(void) } glfwMakeContextCurrent(window); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glfwSwapInterval(1); - glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); - while (!glfwWindowShouldClose(window)) { glClear(GL_COLOR_BUFFER_BIT); diff --git a/external/glfw-3.3.4/tests/triangle-vulkan.c b/external/glfw-3.3.4/tests/triangle-vulkan.c new file mode 100644 index 0000000..7f78369 --- /dev/null +++ b/external/glfw-3.3.4/tests/triangle-vulkan.c @@ -0,0 +1,2133 @@ +/* + * Copyright (c) 2015-2016 The Khronos Group Inc. + * Copyright (c) 2015-2016 Valve Corporation + * Copyright (c) 2015-2016 LunarG, Inc. + * + * 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. + * + * Author: Chia-I Wu + * Author: Cody Northrop + * Author: Courtney Goeltzenleuchter + * Author: Ian Elliott + * Author: Jon Ashburn + * Author: Piers Daniell + * Author: Gwan-gyeong Mun + * Porter: Camilla Löwy + */ +/* + * Draw a textured triangle with depth testing. This is written against Intel + * ICD. It does not do state transition nor object memory binding like it + * should. It also does no error checking. + */ + +#include +#include +#include +#include +#include +#include + +#ifdef _WIN32 +#include +#endif + +#include +#define GLFW_INCLUDE_NONE +#include + +#define DEMO_TEXTURE_COUNT 1 +#define VERTEX_BUFFER_BIND_ID 0 +#define APP_SHORT_NAME "tri" +#define APP_LONG_NAME "The Vulkan Triangle Demo Program" + +#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) + +#if defined(NDEBUG) && defined(__GNUC__) +#define U_ASSERT_ONLY __attribute__((unused)) +#else +#define U_ASSERT_ONLY +#endif + +#define ERR_EXIT(err_msg, err_class) \ + do { \ + printf(err_msg); \ + fflush(stdout); \ + exit(1); \ + } while (0) + +static GLADapiproc glad_vulkan_callback(const char* name, void* user) +{ + return glfwGetInstanceProcAddress((VkInstance) user, name); +} + +static const uint32_t fragShaderCode[] = { + 0x07230203,0x00010000,0x00080007,0x00000014,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x00000011,0x00030010, + 0x00000004,0x00000007,0x00030003,0x00000002,0x00000190,0x00090004,0x415f4c47,0x735f4252, + 0x72617065,0x5f657461,0x64616873,0x6f5f7265,0x63656a62,0x00007374,0x00090004,0x415f4c47, + 0x735f4252,0x69646168,0x6c5f676e,0x75676e61,0x5f656761,0x70303234,0x006b6361,0x00040005, + 0x00000004,0x6e69616d,0x00000000,0x00050005,0x00000009,0x61724675,0x6c6f4367,0x0000726f, + 0x00030005,0x0000000d,0x00786574,0x00050005,0x00000011,0x63786574,0x64726f6f,0x00000000, + 0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000d,0x00000022,0x00000000, + 0x00040047,0x0000000d,0x00000021,0x00000000,0x00040047,0x00000011,0x0000001e,0x00000000, + 0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020, + 0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008,0x00000003,0x00000007, + 0x0004003b,0x00000008,0x00000009,0x00000003,0x00090019,0x0000000a,0x00000006,0x00000001, + 0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x0000000b,0x0000000a, + 0x00040020,0x0000000c,0x00000000,0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000000, + 0x00040017,0x0000000f,0x00000006,0x00000002,0x00040020,0x00000010,0x00000001,0x0000000f, + 0x0004003b,0x00000010,0x00000011,0x00000001,0x00050036,0x00000002,0x00000004,0x00000000, + 0x00000003,0x000200f8,0x00000005,0x0004003d,0x0000000b,0x0000000e,0x0000000d,0x0004003d, + 0x0000000f,0x00000012,0x00000011,0x00050057,0x00000007,0x00000013,0x0000000e,0x00000012, + 0x0003003e,0x00000009,0x00000013,0x000100fd,0x00010038 +}; + +static const uint32_t vertShaderCode[] = { + 0x07230203,0x00010000,0x00080007,0x00000018,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0009000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000b,0x00000010, + 0x00000014,0x00030003,0x00000002,0x00000190,0x00090004,0x415f4c47,0x735f4252,0x72617065, + 0x5f657461,0x64616873,0x6f5f7265,0x63656a62,0x00007374,0x00090004,0x415f4c47,0x735f4252, + 0x69646168,0x6c5f676e,0x75676e61,0x5f656761,0x70303234,0x006b6361,0x00040005,0x00000004, + 0x6e69616d,0x00000000,0x00050005,0x00000009,0x63786574,0x64726f6f,0x00000000,0x00040005, + 0x0000000b,0x72747461,0x00000000,0x00060005,0x0000000e,0x505f6c67,0x65567265,0x78657472, + 0x00000000,0x00060006,0x0000000e,0x00000000,0x505f6c67,0x7469736f,0x006e6f69,0x00030005, + 0x00000010,0x00000000,0x00030005,0x00000014,0x00736f70,0x00040047,0x00000009,0x0000001e, + 0x00000000,0x00040047,0x0000000b,0x0000001e,0x00000001,0x00050048,0x0000000e,0x00000000, + 0x0000000b,0x00000000,0x00030047,0x0000000e,0x00000002,0x00040047,0x00000014,0x0000001e, + 0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006, + 0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000003, + 0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040020,0x0000000a,0x00000001, + 0x00000007,0x0004003b,0x0000000a,0x0000000b,0x00000001,0x00040017,0x0000000d,0x00000006, + 0x00000004,0x0003001e,0x0000000e,0x0000000d,0x00040020,0x0000000f,0x00000003,0x0000000e, + 0x0004003b,0x0000000f,0x00000010,0x00000003,0x00040015,0x00000011,0x00000020,0x00000001, + 0x0004002b,0x00000011,0x00000012,0x00000000,0x00040020,0x00000013,0x00000001,0x0000000d, + 0x0004003b,0x00000013,0x00000014,0x00000001,0x00040020,0x00000016,0x00000003,0x0000000d, + 0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003d, + 0x00000007,0x0000000c,0x0000000b,0x0003003e,0x00000009,0x0000000c,0x0004003d,0x0000000d, + 0x00000015,0x00000014,0x00050041,0x00000016,0x00000017,0x00000010,0x00000012,0x0003003e, + 0x00000017,0x00000015,0x000100fd,0x00010038 +}; + +struct texture_object { + VkSampler sampler; + + VkImage image; + VkImageLayout imageLayout; + + VkDeviceMemory mem; + VkImageView view; + int32_t tex_width, tex_height; +}; + +static int validation_error = 0; + +VKAPI_ATTR VkBool32 VKAPI_CALL +BreakCallback(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, + uint64_t srcObject, size_t location, int32_t msgCode, + const char *pLayerPrefix, const char *pMsg, + void *pUserData) { +#ifdef _WIN32 + DebugBreak(); +#else + raise(SIGTRAP); +#endif + + return false; +} + +typedef struct { + VkImage image; + VkCommandBuffer cmd; + VkImageView view; +} SwapchainBuffers; + +struct demo { + GLFWwindow* window; + VkSurfaceKHR surface; + bool use_staging_buffer; + + VkInstance inst; + VkPhysicalDevice gpu; + VkDevice device; + VkQueue queue; + VkPhysicalDeviceProperties gpu_props; + VkPhysicalDeviceFeatures gpu_features; + VkQueueFamilyProperties *queue_props; + uint32_t graphics_queue_node_index; + + uint32_t enabled_extension_count; + uint32_t enabled_layer_count; + const char *extension_names[64]; + const char *enabled_layers[64]; + + int width, height; + VkFormat format; + VkColorSpaceKHR color_space; + + uint32_t swapchainImageCount; + VkSwapchainKHR swapchain; + SwapchainBuffers *buffers; + + VkCommandPool cmd_pool; + + struct { + VkFormat format; + + VkImage image; + VkDeviceMemory mem; + VkImageView view; + } depth; + + struct texture_object textures[DEMO_TEXTURE_COUNT]; + + struct { + VkBuffer buf; + VkDeviceMemory mem; + + VkPipelineVertexInputStateCreateInfo vi; + VkVertexInputBindingDescription vi_bindings[1]; + VkVertexInputAttributeDescription vi_attrs[2]; + } vertices; + + VkCommandBuffer setup_cmd; // Command Buffer for initialization commands + VkCommandBuffer draw_cmd; // Command Buffer for drawing commands + VkPipelineLayout pipeline_layout; + VkDescriptorSetLayout desc_layout; + VkPipelineCache pipelineCache; + VkRenderPass render_pass; + VkPipeline pipeline; + + VkShaderModule vert_shader_module; + VkShaderModule frag_shader_module; + + VkDescriptorPool desc_pool; + VkDescriptorSet desc_set; + + VkFramebuffer *framebuffers; + + VkPhysicalDeviceMemoryProperties memory_properties; + + int32_t curFrame; + int32_t frameCount; + bool validate; + bool use_break; + VkDebugReportCallbackEXT msg_callback; + + float depthStencil; + float depthIncrement; + + uint32_t current_buffer; + uint32_t queue_count; +}; + +VKAPI_ATTR VkBool32 VKAPI_CALL +dbgFunc(VkFlags msgFlags, VkDebugReportObjectTypeEXT objType, + uint64_t srcObject, size_t location, int32_t msgCode, + const char *pLayerPrefix, const char *pMsg, void *pUserData) { + char *message = (char *)malloc(strlen(pMsg) + 100); + + assert(message); + + validation_error = 1; + + if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) { + sprintf(message, "ERROR: [%s] Code %d : %s", pLayerPrefix, msgCode, + pMsg); + } else if (msgFlags & VK_DEBUG_REPORT_WARNING_BIT_EXT) { + sprintf(message, "WARNING: [%s] Code %d : %s", pLayerPrefix, msgCode, + pMsg); + } else { + return false; + } + + printf("%s\n", message); + fflush(stdout); + free(message); + + /* + * false indicates that layer should not bail-out of an + * API call that had validation failures. This may mean that the + * app dies inside the driver due to invalid parameter(s). + * That's what would happen without validation layers, so we'll + * keep that behavior here. + */ + return false; +} + +// Forward declaration: +static void demo_resize(struct demo *demo); + +static bool memory_type_from_properties(struct demo *demo, uint32_t typeBits, + VkFlags requirements_mask, + uint32_t *typeIndex) { + uint32_t i; + // Search memtypes to find first index with those properties + for (i = 0; i < VK_MAX_MEMORY_TYPES; i++) { + if ((typeBits & 1) == 1) { + // Type is available, does it match user properties? + if ((demo->memory_properties.memoryTypes[i].propertyFlags & + requirements_mask) == requirements_mask) { + *typeIndex = i; + return true; + } + } + typeBits >>= 1; + } + // No memory types matched, return failure + return false; +} + +static void demo_flush_init_cmd(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + + if (demo->setup_cmd == VK_NULL_HANDLE) + return; + + err = vkEndCommandBuffer(demo->setup_cmd); + assert(!err); + + const VkCommandBuffer cmd_bufs[] = {demo->setup_cmd}; + VkFence nullFence = {VK_NULL_HANDLE}; + VkSubmitInfo submit_info = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, + .pNext = NULL, + .waitSemaphoreCount = 0, + .pWaitSemaphores = NULL, + .pWaitDstStageMask = NULL, + .commandBufferCount = 1, + .pCommandBuffers = cmd_bufs, + .signalSemaphoreCount = 0, + .pSignalSemaphores = NULL}; + + err = vkQueueSubmit(demo->queue, 1, &submit_info, nullFence); + assert(!err); + + err = vkQueueWaitIdle(demo->queue); + assert(!err); + + vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, cmd_bufs); + demo->setup_cmd = VK_NULL_HANDLE; +} + +static void demo_set_image_layout(struct demo *demo, VkImage image, + VkImageAspectFlags aspectMask, + VkImageLayout old_image_layout, + VkImageLayout new_image_layout, + VkAccessFlagBits srcAccessMask) { + + VkResult U_ASSERT_ONLY err; + + if (demo->setup_cmd == VK_NULL_HANDLE) { + const VkCommandBufferAllocateInfo cmd = { + .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, + .pNext = NULL, + .commandPool = demo->cmd_pool, + .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, + .commandBufferCount = 1, + }; + + err = vkAllocateCommandBuffers(demo->device, &cmd, &demo->setup_cmd); + assert(!err); + + VkCommandBufferBeginInfo cmd_buf_info = { + .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, + .pNext = NULL, + .flags = 0, + .pInheritanceInfo = NULL, + }; + err = vkBeginCommandBuffer(demo->setup_cmd, &cmd_buf_info); + assert(!err); + } + + VkImageMemoryBarrier image_memory_barrier = { + .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, + .pNext = NULL, + .srcAccessMask = srcAccessMask, + .dstAccessMask = 0, + .oldLayout = old_image_layout, + .newLayout = new_image_layout, + .image = image, + .subresourceRange = {aspectMask, 0, 1, 0, 1}}; + + if (new_image_layout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL) { + /* Make sure anything that was copying from this image has completed */ + image_memory_barrier.dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT; + } + + if (new_image_layout == VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL) { + image_memory_barrier.dstAccessMask = + VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; + } + + if (new_image_layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL) { + image_memory_barrier.dstAccessMask = + VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; + } + + if (new_image_layout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) { + /* Make sure any Copy or CPU writes to image are flushed */ + image_memory_barrier.dstAccessMask = + VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT; + } + + VkImageMemoryBarrier *pmemory_barrier = &image_memory_barrier; + + VkPipelineStageFlags src_stages = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; + VkPipelineStageFlags dest_stages = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; + + vkCmdPipelineBarrier(demo->setup_cmd, src_stages, dest_stages, 0, 0, NULL, + 0, NULL, 1, pmemory_barrier); +} + +static void demo_draw_build_cmd(struct demo *demo) { + const VkCommandBufferBeginInfo cmd_buf_info = { + .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, + .pNext = NULL, + .flags = 0, + .pInheritanceInfo = NULL, + }; + const VkClearValue clear_values[2] = { + [0] = {.color.float32 = {0.2f, 0.2f, 0.2f, 0.2f}}, + [1] = {.depthStencil = {demo->depthStencil, 0}}, + }; + const VkRenderPassBeginInfo rp_begin = { + .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO, + .pNext = NULL, + .renderPass = demo->render_pass, + .framebuffer = demo->framebuffers[demo->current_buffer], + .renderArea.offset.x = 0, + .renderArea.offset.y = 0, + .renderArea.extent.width = demo->width, + .renderArea.extent.height = demo->height, + .clearValueCount = 2, + .pClearValues = clear_values, + }; + VkResult U_ASSERT_ONLY err; + + err = vkBeginCommandBuffer(demo->draw_cmd, &cmd_buf_info); + assert(!err); + + // We can use LAYOUT_UNDEFINED as a wildcard here because we don't care what + // happens to the previous contents of the image + VkImageMemoryBarrier image_memory_barrier = { + .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, + .pNext = NULL, + .srcAccessMask = 0, + .dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, + .oldLayout = VK_IMAGE_LAYOUT_UNDEFINED, + .newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, + .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .image = demo->buffers[demo->current_buffer].image, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; + + vkCmdPipelineBarrier(demo->draw_cmd, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, + VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 0, NULL, 0, + NULL, 1, &image_memory_barrier); + vkCmdBeginRenderPass(demo->draw_cmd, &rp_begin, VK_SUBPASS_CONTENTS_INLINE); + vkCmdBindPipeline(demo->draw_cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, + demo->pipeline); + vkCmdBindDescriptorSets(demo->draw_cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, + demo->pipeline_layout, 0, 1, &demo->desc_set, 0, + NULL); + + VkViewport viewport; + memset(&viewport, 0, sizeof(viewport)); + viewport.height = (float)demo->height; + viewport.width = (float)demo->width; + viewport.minDepth = (float)0.0f; + viewport.maxDepth = (float)1.0f; + vkCmdSetViewport(demo->draw_cmd, 0, 1, &viewport); + + VkRect2D scissor; + memset(&scissor, 0, sizeof(scissor)); + scissor.extent.width = demo->width; + scissor.extent.height = demo->height; + scissor.offset.x = 0; + scissor.offset.y = 0; + vkCmdSetScissor(demo->draw_cmd, 0, 1, &scissor); + + VkDeviceSize offsets[1] = {0}; + vkCmdBindVertexBuffers(demo->draw_cmd, VERTEX_BUFFER_BIND_ID, 1, + &demo->vertices.buf, offsets); + + vkCmdDraw(demo->draw_cmd, 3, 1, 0, 0); + vkCmdEndRenderPass(demo->draw_cmd); + + VkImageMemoryBarrier prePresentBarrier = { + .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, + .pNext = NULL, + .srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, + .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, + .oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, + .newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, + .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}}; + + prePresentBarrier.image = demo->buffers[demo->current_buffer].image; + VkImageMemoryBarrier *pmemory_barrier = &prePresentBarrier; + vkCmdPipelineBarrier(demo->draw_cmd, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, + VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 0, NULL, 0, + NULL, 1, pmemory_barrier); + + err = vkEndCommandBuffer(demo->draw_cmd); + assert(!err); +} + +static void demo_draw(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + VkSemaphore imageAcquiredSemaphore, drawCompleteSemaphore; + VkSemaphoreCreateInfo semaphoreCreateInfo = { + .sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO, + .pNext = NULL, + .flags = 0, + }; + + err = vkCreateSemaphore(demo->device, &semaphoreCreateInfo, + NULL, &imageAcquiredSemaphore); + assert(!err); + + err = vkCreateSemaphore(demo->device, &semaphoreCreateInfo, + NULL, &drawCompleteSemaphore); + assert(!err); + + // Get the index of the next available swapchain image: + err = vkAcquireNextImageKHR(demo->device, demo->swapchain, UINT64_MAX, + imageAcquiredSemaphore, + (VkFence)0, // TODO: Show use of fence + &demo->current_buffer); + if (err == VK_ERROR_OUT_OF_DATE_KHR) { + // demo->swapchain is out of date (e.g. the window was resized) and + // must be recreated: + demo_resize(demo); + demo_draw(demo); + vkDestroySemaphore(demo->device, imageAcquiredSemaphore, NULL); + vkDestroySemaphore(demo->device, drawCompleteSemaphore, NULL); + return; + } else if (err == VK_SUBOPTIMAL_KHR) { + // demo->swapchain is not as optimal as it could be, but the platform's + // presentation engine will still present the image correctly. + } else { + assert(!err); + } + + demo_flush_init_cmd(demo); + + // Wait for the present complete semaphore to be signaled to ensure + // that the image won't be rendered to until the presentation + // engine has fully released ownership to the application, and it is + // okay to render to the image. + + demo_draw_build_cmd(demo); + VkFence nullFence = VK_NULL_HANDLE; + VkPipelineStageFlags pipe_stage_flags = + VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT; + VkSubmitInfo submit_info = {.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO, + .pNext = NULL, + .waitSemaphoreCount = 1, + .pWaitSemaphores = &imageAcquiredSemaphore, + .pWaitDstStageMask = &pipe_stage_flags, + .commandBufferCount = 1, + .pCommandBuffers = &demo->draw_cmd, + .signalSemaphoreCount = 1, + .pSignalSemaphores = &drawCompleteSemaphore}; + + err = vkQueueSubmit(demo->queue, 1, &submit_info, nullFence); + assert(!err); + + VkPresentInfoKHR present = { + .sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR, + .pNext = NULL, + .waitSemaphoreCount = 1, + .pWaitSemaphores = &drawCompleteSemaphore, + .swapchainCount = 1, + .pSwapchains = &demo->swapchain, + .pImageIndices = &demo->current_buffer, + }; + + err = vkQueuePresentKHR(demo->queue, &present); + if (err == VK_ERROR_OUT_OF_DATE_KHR) { + // demo->swapchain is out of date (e.g. the window was resized) and + // must be recreated: + demo_resize(demo); + } else if (err == VK_SUBOPTIMAL_KHR) { + // demo->swapchain is not as optimal as it could be, but the platform's + // presentation engine will still present the image correctly. + } else { + assert(!err); + } + + err = vkQueueWaitIdle(demo->queue); + assert(err == VK_SUCCESS); + + vkDestroySemaphore(demo->device, imageAcquiredSemaphore, NULL); + vkDestroySemaphore(demo->device, drawCompleteSemaphore, NULL); +} + +static void demo_prepare_buffers(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + VkSwapchainKHR oldSwapchain = demo->swapchain; + + // Check the surface capabilities and formats + VkSurfaceCapabilitiesKHR surfCapabilities; + err = vkGetPhysicalDeviceSurfaceCapabilitiesKHR( + demo->gpu, demo->surface, &surfCapabilities); + assert(!err); + + uint32_t presentModeCount; + err = vkGetPhysicalDeviceSurfacePresentModesKHR( + demo->gpu, demo->surface, &presentModeCount, NULL); + assert(!err); + VkPresentModeKHR *presentModes = + (VkPresentModeKHR *)malloc(presentModeCount * sizeof(VkPresentModeKHR)); + assert(presentModes); + err = vkGetPhysicalDeviceSurfacePresentModesKHR( + demo->gpu, demo->surface, &presentModeCount, presentModes); + assert(!err); + + VkExtent2D swapchainExtent; + // width and height are either both 0xFFFFFFFF, or both not 0xFFFFFFFF. + if (surfCapabilities.currentExtent.width == 0xFFFFFFFF) { + // If the surface size is undefined, the size is set to the size + // of the images requested, which must fit within the minimum and + // maximum values. + swapchainExtent.width = demo->width; + swapchainExtent.height = demo->height; + + if (swapchainExtent.width < surfCapabilities.minImageExtent.width) { + swapchainExtent.width = surfCapabilities.minImageExtent.width; + } else if (swapchainExtent.width > surfCapabilities.maxImageExtent.width) { + swapchainExtent.width = surfCapabilities.maxImageExtent.width; + } + + if (swapchainExtent.height < surfCapabilities.minImageExtent.height) { + swapchainExtent.height = surfCapabilities.minImageExtent.height; + } else if (swapchainExtent.height > surfCapabilities.maxImageExtent.height) { + swapchainExtent.height = surfCapabilities.maxImageExtent.height; + } + } else { + // If the surface size is defined, the swap chain size must match + swapchainExtent = surfCapabilities.currentExtent; + demo->width = surfCapabilities.currentExtent.width; + demo->height = surfCapabilities.currentExtent.height; + } + + VkPresentModeKHR swapchainPresentMode = VK_PRESENT_MODE_FIFO_KHR; + + // Determine the number of VkImage's to use in the swap chain. + // Application desires to only acquire 1 image at a time (which is + // "surfCapabilities.minImageCount"). + uint32_t desiredNumOfSwapchainImages = surfCapabilities.minImageCount; + // If maxImageCount is 0, we can ask for as many images as we want; + // otherwise we're limited to maxImageCount + if ((surfCapabilities.maxImageCount > 0) && + (desiredNumOfSwapchainImages > surfCapabilities.maxImageCount)) { + // Application must settle for fewer images than desired: + desiredNumOfSwapchainImages = surfCapabilities.maxImageCount; + } + + VkSurfaceTransformFlagsKHR preTransform; + if (surfCapabilities.supportedTransforms & + VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR) { + preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; + } else { + preTransform = surfCapabilities.currentTransform; + } + + const VkSwapchainCreateInfoKHR swapchain = { + .sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR, + .pNext = NULL, + .surface = demo->surface, + .minImageCount = desiredNumOfSwapchainImages, + .imageFormat = demo->format, + .imageColorSpace = demo->color_space, + .imageExtent = + { + .width = swapchainExtent.width, .height = swapchainExtent.height, + }, + .imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, + .preTransform = preTransform, + .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR, + .imageArrayLayers = 1, + .imageSharingMode = VK_SHARING_MODE_EXCLUSIVE, + .queueFamilyIndexCount = 0, + .pQueueFamilyIndices = NULL, + .presentMode = swapchainPresentMode, + .oldSwapchain = oldSwapchain, + .clipped = true, + }; + uint32_t i; + + err = vkCreateSwapchainKHR(demo->device, &swapchain, NULL, &demo->swapchain); + assert(!err); + + // If we just re-created an existing swapchain, we should destroy the old + // swapchain at this point. + // Note: destroying the swapchain also cleans up all its associated + // presentable images once the platform is done with them. + if (oldSwapchain != VK_NULL_HANDLE) { + vkDestroySwapchainKHR(demo->device, oldSwapchain, NULL); + } + + err = vkGetSwapchainImagesKHR(demo->device, demo->swapchain, + &demo->swapchainImageCount, NULL); + assert(!err); + + VkImage *swapchainImages = + (VkImage *)malloc(demo->swapchainImageCount * sizeof(VkImage)); + assert(swapchainImages); + err = vkGetSwapchainImagesKHR(demo->device, demo->swapchain, + &demo->swapchainImageCount, + swapchainImages); + assert(!err); + + demo->buffers = (SwapchainBuffers *)malloc(sizeof(SwapchainBuffers) * + demo->swapchainImageCount); + assert(demo->buffers); + + for (i = 0; i < demo->swapchainImageCount; i++) { + VkImageViewCreateInfo color_attachment_view = { + .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, + .pNext = NULL, + .format = demo->format, + .components = + { + .r = VK_COMPONENT_SWIZZLE_R, + .g = VK_COMPONENT_SWIZZLE_G, + .b = VK_COMPONENT_SWIZZLE_B, + .a = VK_COMPONENT_SWIZZLE_A, + }, + .subresourceRange = {.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = 0, + .layerCount = 1}, + .viewType = VK_IMAGE_VIEW_TYPE_2D, + .flags = 0, + }; + + demo->buffers[i].image = swapchainImages[i]; + + color_attachment_view.image = demo->buffers[i].image; + + err = vkCreateImageView(demo->device, &color_attachment_view, NULL, + &demo->buffers[i].view); + assert(!err); + } + + demo->current_buffer = 0; + + if (NULL != presentModes) { + free(presentModes); + } +} + +static void demo_prepare_depth(struct demo *demo) { + const VkFormat depth_format = VK_FORMAT_D16_UNORM; + const VkImageCreateInfo image = { + .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, + .pNext = NULL, + .imageType = VK_IMAGE_TYPE_2D, + .format = depth_format, + .extent = {demo->width, demo->height, 1}, + .mipLevels = 1, + .arrayLayers = 1, + .samples = VK_SAMPLE_COUNT_1_BIT, + .tiling = VK_IMAGE_TILING_OPTIMAL, + .usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, + .flags = 0, + }; + VkMemoryAllocateInfo mem_alloc = { + .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, + .pNext = NULL, + .allocationSize = 0, + .memoryTypeIndex = 0, + }; + VkImageViewCreateInfo view = { + .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, + .pNext = NULL, + .image = VK_NULL_HANDLE, + .format = depth_format, + .subresourceRange = {.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = 0, + .layerCount = 1}, + .flags = 0, + .viewType = VK_IMAGE_VIEW_TYPE_2D, + }; + + VkMemoryRequirements mem_reqs; + VkResult U_ASSERT_ONLY err; + bool U_ASSERT_ONLY pass; + + demo->depth.format = depth_format; + + /* create image */ + err = vkCreateImage(demo->device, &image, NULL, &demo->depth.image); + assert(!err); + + /* get memory requirements for this object */ + vkGetImageMemoryRequirements(demo->device, demo->depth.image, &mem_reqs); + + /* select memory size and type */ + mem_alloc.allocationSize = mem_reqs.size; + pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, + 0, /* No requirements */ + &mem_alloc.memoryTypeIndex); + assert(pass); + + /* allocate memory */ + err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &demo->depth.mem); + assert(!err); + + /* bind memory */ + err = + vkBindImageMemory(demo->device, demo->depth.image, demo->depth.mem, 0); + assert(!err); + + demo_set_image_layout(demo, demo->depth.image, VK_IMAGE_ASPECT_DEPTH_BIT, + VK_IMAGE_LAYOUT_UNDEFINED, + VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, + 0); + + /* create image view */ + view.image = demo->depth.image; + err = vkCreateImageView(demo->device, &view, NULL, &demo->depth.view); + assert(!err); +} + +static void +demo_prepare_texture_image(struct demo *demo, const uint32_t *tex_colors, + struct texture_object *tex_obj, VkImageTiling tiling, + VkImageUsageFlags usage, VkFlags required_props) { + const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM; + const int32_t tex_width = 2; + const int32_t tex_height = 2; + VkResult U_ASSERT_ONLY err; + bool U_ASSERT_ONLY pass; + + tex_obj->tex_width = tex_width; + tex_obj->tex_height = tex_height; + + const VkImageCreateInfo image_create_info = { + .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, + .pNext = NULL, + .imageType = VK_IMAGE_TYPE_2D, + .format = tex_format, + .extent = {tex_width, tex_height, 1}, + .mipLevels = 1, + .arrayLayers = 1, + .samples = VK_SAMPLE_COUNT_1_BIT, + .tiling = tiling, + .usage = usage, + .flags = 0, + .initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED + }; + VkMemoryAllocateInfo mem_alloc = { + .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, + .pNext = NULL, + .allocationSize = 0, + .memoryTypeIndex = 0, + }; + + VkMemoryRequirements mem_reqs; + + err = + vkCreateImage(demo->device, &image_create_info, NULL, &tex_obj->image); + assert(!err); + + vkGetImageMemoryRequirements(demo->device, tex_obj->image, &mem_reqs); + + mem_alloc.allocationSize = mem_reqs.size; + pass = + memory_type_from_properties(demo, mem_reqs.memoryTypeBits, + required_props, &mem_alloc.memoryTypeIndex); + assert(pass); + + /* allocate memory */ + err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &tex_obj->mem); + assert(!err); + + /* bind memory */ + err = vkBindImageMemory(demo->device, tex_obj->image, tex_obj->mem, 0); + assert(!err); + + if (required_props & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) { + const VkImageSubresource subres = { + .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, + .mipLevel = 0, + .arrayLayer = 0, + }; + VkSubresourceLayout layout; + void *data; + int32_t x, y; + + vkGetImageSubresourceLayout(demo->device, tex_obj->image, &subres, + &layout); + + err = vkMapMemory(demo->device, tex_obj->mem, 0, + mem_alloc.allocationSize, 0, &data); + assert(!err); + + for (y = 0; y < tex_height; y++) { + uint32_t *row = (uint32_t *)((char *)data + layout.rowPitch * y); + for (x = 0; x < tex_width; x++) + row[x] = tex_colors[(x & 1) ^ (y & 1)]; + } + + vkUnmapMemory(demo->device, tex_obj->mem); + } + + tex_obj->imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; + demo_set_image_layout(demo, tex_obj->image, VK_IMAGE_ASPECT_COLOR_BIT, + VK_IMAGE_LAYOUT_PREINITIALIZED, tex_obj->imageLayout, + VK_ACCESS_HOST_WRITE_BIT); + /* setting the image layout does not reference the actual memory so no need + * to add a mem ref */ +} + +static void demo_destroy_texture_image(struct demo *demo, + struct texture_object *tex_obj) { + /* clean up staging resources */ + vkDestroyImage(demo->device, tex_obj->image, NULL); + vkFreeMemory(demo->device, tex_obj->mem, NULL); +} + +static void demo_prepare_textures(struct demo *demo) { + const VkFormat tex_format = VK_FORMAT_B8G8R8A8_UNORM; + VkFormatProperties props; + const uint32_t tex_colors[DEMO_TEXTURE_COUNT][2] = { + {0xffff0000, 0xff00ff00}, + }; + uint32_t i; + VkResult U_ASSERT_ONLY err; + + vkGetPhysicalDeviceFormatProperties(demo->gpu, tex_format, &props); + + for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { + if ((props.linearTilingFeatures & + VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) && + !demo->use_staging_buffer) { + /* Device can texture using linear textures */ + demo_prepare_texture_image( + demo, tex_colors[i], &demo->textures[i], VK_IMAGE_TILING_LINEAR, + VK_IMAGE_USAGE_SAMPLED_BIT, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT); + } else if (props.optimalTilingFeatures & + VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) { + /* Must use staging buffer to copy linear texture to optimized */ + struct texture_object staging_texture; + + memset(&staging_texture, 0, sizeof(staging_texture)); + demo_prepare_texture_image( + demo, tex_colors[i], &staging_texture, VK_IMAGE_TILING_LINEAR, + VK_IMAGE_USAGE_TRANSFER_SRC_BIT, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT); + + demo_prepare_texture_image( + demo, tex_colors[i], &demo->textures[i], + VK_IMAGE_TILING_OPTIMAL, + (VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT), + VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); + + demo_set_image_layout(demo, staging_texture.image, + VK_IMAGE_ASPECT_COLOR_BIT, + staging_texture.imageLayout, + VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, + 0); + + demo_set_image_layout(demo, demo->textures[i].image, + VK_IMAGE_ASPECT_COLOR_BIT, + demo->textures[i].imageLayout, + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, + 0); + + VkImageCopy copy_region = { + .srcSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, + .srcOffset = {0, 0, 0}, + .dstSubresource = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, + .dstOffset = {0, 0, 0}, + .extent = {staging_texture.tex_width, + staging_texture.tex_height, 1}, + }; + vkCmdCopyImage( + demo->setup_cmd, staging_texture.image, + VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, demo->textures[i].image, + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ©_region); + + demo_set_image_layout(demo, demo->textures[i].image, + VK_IMAGE_ASPECT_COLOR_BIT, + VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, + demo->textures[i].imageLayout, + 0); + + demo_flush_init_cmd(demo); + + demo_destroy_texture_image(demo, &staging_texture); + } else { + /* Can't support VK_FORMAT_B8G8R8A8_UNORM !? */ + assert(!"No support for B8G8R8A8_UNORM as texture image format"); + } + + const VkSamplerCreateInfo sampler = { + .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO, + .pNext = NULL, + .magFilter = VK_FILTER_NEAREST, + .minFilter = VK_FILTER_NEAREST, + .mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST, + .addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT, + .addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT, + .addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT, + .mipLodBias = 0.0f, + .anisotropyEnable = VK_FALSE, + .maxAnisotropy = 1, + .compareOp = VK_COMPARE_OP_NEVER, + .minLod = 0.0f, + .maxLod = 0.0f, + .borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE, + .unnormalizedCoordinates = VK_FALSE, + }; + VkImageViewCreateInfo view = { + .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, + .pNext = NULL, + .image = VK_NULL_HANDLE, + .viewType = VK_IMAGE_VIEW_TYPE_2D, + .format = tex_format, + .components = + { + VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_G, + VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_A, + }, + .subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1}, + .flags = 0, + }; + + /* create sampler */ + err = vkCreateSampler(demo->device, &sampler, NULL, + &demo->textures[i].sampler); + assert(!err); + + /* create image view */ + view.image = demo->textures[i].image; + err = vkCreateImageView(demo->device, &view, NULL, + &demo->textures[i].view); + assert(!err); + } +} + +static void demo_prepare_vertices(struct demo *demo) { + // clang-format off + const float vb[3][5] = { + /* position texcoord */ + { -1.0f, -1.0f, 0.25f, 0.0f, 0.0f }, + { 1.0f, -1.0f, 0.25f, 1.0f, 0.0f }, + { 0.0f, 1.0f, 1.0f, 0.5f, 1.0f }, + }; + // clang-format on + const VkBufferCreateInfo buf_info = { + .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, + .pNext = NULL, + .size = sizeof(vb), + .usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, + .flags = 0, + }; + VkMemoryAllocateInfo mem_alloc = { + .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, + .pNext = NULL, + .allocationSize = 0, + .memoryTypeIndex = 0, + }; + VkMemoryRequirements mem_reqs; + VkResult U_ASSERT_ONLY err; + bool U_ASSERT_ONLY pass; + void *data; + + memset(&demo->vertices, 0, sizeof(demo->vertices)); + + err = vkCreateBuffer(demo->device, &buf_info, NULL, &demo->vertices.buf); + assert(!err); + + vkGetBufferMemoryRequirements(demo->device, demo->vertices.buf, &mem_reqs); + assert(!err); + + mem_alloc.allocationSize = mem_reqs.size; + pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, + VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, + &mem_alloc.memoryTypeIndex); + assert(pass); + + err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &demo->vertices.mem); + assert(!err); + + err = vkMapMemory(demo->device, demo->vertices.mem, 0, + mem_alloc.allocationSize, 0, &data); + assert(!err); + + memcpy(data, vb, sizeof(vb)); + + vkUnmapMemory(demo->device, demo->vertices.mem); + + err = vkBindBufferMemory(demo->device, demo->vertices.buf, + demo->vertices.mem, 0); + assert(!err); + + demo->vertices.vi.sType = + VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; + demo->vertices.vi.pNext = NULL; + demo->vertices.vi.vertexBindingDescriptionCount = 1; + demo->vertices.vi.pVertexBindingDescriptions = demo->vertices.vi_bindings; + demo->vertices.vi.vertexAttributeDescriptionCount = 2; + demo->vertices.vi.pVertexAttributeDescriptions = demo->vertices.vi_attrs; + + demo->vertices.vi_bindings[0].binding = VERTEX_BUFFER_BIND_ID; + demo->vertices.vi_bindings[0].stride = sizeof(vb[0]); + demo->vertices.vi_bindings[0].inputRate = VK_VERTEX_INPUT_RATE_VERTEX; + + demo->vertices.vi_attrs[0].binding = VERTEX_BUFFER_BIND_ID; + demo->vertices.vi_attrs[0].location = 0; + demo->vertices.vi_attrs[0].format = VK_FORMAT_R32G32B32_SFLOAT; + demo->vertices.vi_attrs[0].offset = 0; + + demo->vertices.vi_attrs[1].binding = VERTEX_BUFFER_BIND_ID; + demo->vertices.vi_attrs[1].location = 1; + demo->vertices.vi_attrs[1].format = VK_FORMAT_R32G32_SFLOAT; + demo->vertices.vi_attrs[1].offset = sizeof(float) * 3; +} + +static void demo_prepare_descriptor_layout(struct demo *demo) { + const VkDescriptorSetLayoutBinding layout_binding = { + .binding = 0, + .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, + .descriptorCount = DEMO_TEXTURE_COUNT, + .stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT, + .pImmutableSamplers = NULL, + }; + const VkDescriptorSetLayoutCreateInfo descriptor_layout = { + .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, + .pNext = NULL, + .bindingCount = 1, + .pBindings = &layout_binding, + }; + VkResult U_ASSERT_ONLY err; + + err = vkCreateDescriptorSetLayout(demo->device, &descriptor_layout, NULL, + &demo->desc_layout); + assert(!err); + + const VkPipelineLayoutCreateInfo pPipelineLayoutCreateInfo = { + .sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, + .pNext = NULL, + .setLayoutCount = 1, + .pSetLayouts = &demo->desc_layout, + }; + + err = vkCreatePipelineLayout(demo->device, &pPipelineLayoutCreateInfo, NULL, + &demo->pipeline_layout); + assert(!err); +} + +static void demo_prepare_render_pass(struct demo *demo) { + const VkAttachmentDescription attachments[2] = { + [0] = + { + .format = demo->format, + .samples = VK_SAMPLE_COUNT_1_BIT, + .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR, + .storeOp = VK_ATTACHMENT_STORE_OP_STORE, + .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, + .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, + .initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, + .finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, + }, + [1] = + { + .format = demo->depth.format, + .samples = VK_SAMPLE_COUNT_1_BIT, + .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR, + .storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, + .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, + .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, + .initialLayout = + VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, + .finalLayout = + VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, + }, + }; + const VkAttachmentReference color_reference = { + .attachment = 0, .layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, + }; + const VkAttachmentReference depth_reference = { + .attachment = 1, + .layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, + }; + const VkSubpassDescription subpass = { + .pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS, + .flags = 0, + .inputAttachmentCount = 0, + .pInputAttachments = NULL, + .colorAttachmentCount = 1, + .pColorAttachments = &color_reference, + .pResolveAttachments = NULL, + .pDepthStencilAttachment = &depth_reference, + .preserveAttachmentCount = 0, + .pPreserveAttachments = NULL, + }; + const VkRenderPassCreateInfo rp_info = { + .sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, + .pNext = NULL, + .attachmentCount = 2, + .pAttachments = attachments, + .subpassCount = 1, + .pSubpasses = &subpass, + .dependencyCount = 0, + .pDependencies = NULL, + }; + VkResult U_ASSERT_ONLY err; + + err = vkCreateRenderPass(demo->device, &rp_info, NULL, &demo->render_pass); + assert(!err); +} + +static VkShaderModule +demo_prepare_shader_module(struct demo *demo, const void *code, size_t size) { + VkShaderModuleCreateInfo moduleCreateInfo; + VkShaderModule module; + VkResult U_ASSERT_ONLY err; + + moduleCreateInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; + moduleCreateInfo.pNext = NULL; + + moduleCreateInfo.codeSize = size; + moduleCreateInfo.pCode = code; + moduleCreateInfo.flags = 0; + err = vkCreateShaderModule(demo->device, &moduleCreateInfo, NULL, &module); + assert(!err); + + return module; +} + +static VkShaderModule demo_prepare_vs(struct demo *demo) { + size_t size = sizeof(vertShaderCode); + + demo->vert_shader_module = + demo_prepare_shader_module(demo, vertShaderCode, size); + + return demo->vert_shader_module; +} + +static VkShaderModule demo_prepare_fs(struct demo *demo) { + size_t size = sizeof(fragShaderCode); + + demo->frag_shader_module = + demo_prepare_shader_module(demo, fragShaderCode, size); + + return demo->frag_shader_module; +} + +static void demo_prepare_pipeline(struct demo *demo) { + VkGraphicsPipelineCreateInfo pipeline; + VkPipelineCacheCreateInfo pipelineCache; + + VkPipelineVertexInputStateCreateInfo vi; + VkPipelineInputAssemblyStateCreateInfo ia; + VkPipelineRasterizationStateCreateInfo rs; + VkPipelineColorBlendStateCreateInfo cb; + VkPipelineDepthStencilStateCreateInfo ds; + VkPipelineViewportStateCreateInfo vp; + VkPipelineMultisampleStateCreateInfo ms; + VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE]; + VkPipelineDynamicStateCreateInfo dynamicState; + + VkResult U_ASSERT_ONLY err; + + memset(dynamicStateEnables, 0, sizeof dynamicStateEnables); + memset(&dynamicState, 0, sizeof dynamicState); + dynamicState.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO; + dynamicState.pDynamicStates = dynamicStateEnables; + + memset(&pipeline, 0, sizeof(pipeline)); + pipeline.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; + pipeline.layout = demo->pipeline_layout; + + vi = demo->vertices.vi; + + memset(&ia, 0, sizeof(ia)); + ia.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; + ia.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; + + memset(&rs, 0, sizeof(rs)); + rs.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; + rs.polygonMode = VK_POLYGON_MODE_FILL; + rs.cullMode = VK_CULL_MODE_BACK_BIT; + rs.frontFace = VK_FRONT_FACE_CLOCKWISE; + rs.depthClampEnable = VK_FALSE; + rs.rasterizerDiscardEnable = VK_FALSE; + rs.depthBiasEnable = VK_FALSE; + rs.lineWidth = 1.0f; + + memset(&cb, 0, sizeof(cb)); + cb.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; + VkPipelineColorBlendAttachmentState att_state[1]; + memset(att_state, 0, sizeof(att_state)); + att_state[0].colorWriteMask = 0xf; + att_state[0].blendEnable = VK_FALSE; + cb.attachmentCount = 1; + cb.pAttachments = att_state; + + memset(&vp, 0, sizeof(vp)); + vp.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO; + vp.viewportCount = 1; + dynamicStateEnables[dynamicState.dynamicStateCount++] = + VK_DYNAMIC_STATE_VIEWPORT; + vp.scissorCount = 1; + dynamicStateEnables[dynamicState.dynamicStateCount++] = + VK_DYNAMIC_STATE_SCISSOR; + + memset(&ds, 0, sizeof(ds)); + ds.sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; + ds.depthTestEnable = VK_TRUE; + ds.depthWriteEnable = VK_TRUE; + ds.depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL; + ds.depthBoundsTestEnable = VK_FALSE; + ds.back.failOp = VK_STENCIL_OP_KEEP; + ds.back.passOp = VK_STENCIL_OP_KEEP; + ds.back.compareOp = VK_COMPARE_OP_ALWAYS; + ds.stencilTestEnable = VK_FALSE; + ds.front = ds.back; + + memset(&ms, 0, sizeof(ms)); + ms.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; + ms.pSampleMask = NULL; + ms.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT; + + // Two stages: vs and fs + pipeline.stageCount = 2; + VkPipelineShaderStageCreateInfo shaderStages[2]; + memset(&shaderStages, 0, 2 * sizeof(VkPipelineShaderStageCreateInfo)); + + shaderStages[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; + shaderStages[0].stage = VK_SHADER_STAGE_VERTEX_BIT; + shaderStages[0].module = demo_prepare_vs(demo); + shaderStages[0].pName = "main"; + + shaderStages[1].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; + shaderStages[1].stage = VK_SHADER_STAGE_FRAGMENT_BIT; + shaderStages[1].module = demo_prepare_fs(demo); + shaderStages[1].pName = "main"; + + pipeline.pVertexInputState = &vi; + pipeline.pInputAssemblyState = &ia; + pipeline.pRasterizationState = &rs; + pipeline.pColorBlendState = &cb; + pipeline.pMultisampleState = &ms; + pipeline.pViewportState = &vp; + pipeline.pDepthStencilState = &ds; + pipeline.pStages = shaderStages; + pipeline.renderPass = demo->render_pass; + pipeline.pDynamicState = &dynamicState; + + memset(&pipelineCache, 0, sizeof(pipelineCache)); + pipelineCache.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO; + + err = vkCreatePipelineCache(demo->device, &pipelineCache, NULL, + &demo->pipelineCache); + assert(!err); + err = vkCreateGraphicsPipelines(demo->device, demo->pipelineCache, 1, + &pipeline, NULL, &demo->pipeline); + assert(!err); + + vkDestroyPipelineCache(demo->device, demo->pipelineCache, NULL); + + vkDestroyShaderModule(demo->device, demo->frag_shader_module, NULL); + vkDestroyShaderModule(demo->device, demo->vert_shader_module, NULL); +} + +static void demo_prepare_descriptor_pool(struct demo *demo) { + const VkDescriptorPoolSize type_count = { + .type = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, + .descriptorCount = DEMO_TEXTURE_COUNT, + }; + const VkDescriptorPoolCreateInfo descriptor_pool = { + .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, + .pNext = NULL, + .maxSets = 1, + .poolSizeCount = 1, + .pPoolSizes = &type_count, + }; + VkResult U_ASSERT_ONLY err; + + err = vkCreateDescriptorPool(demo->device, &descriptor_pool, NULL, + &demo->desc_pool); + assert(!err); +} + +static void demo_prepare_descriptor_set(struct demo *demo) { + VkDescriptorImageInfo tex_descs[DEMO_TEXTURE_COUNT]; + VkWriteDescriptorSet write; + VkResult U_ASSERT_ONLY err; + uint32_t i; + + VkDescriptorSetAllocateInfo alloc_info = { + .sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, + .pNext = NULL, + .descriptorPool = demo->desc_pool, + .descriptorSetCount = 1, + .pSetLayouts = &demo->desc_layout}; + err = vkAllocateDescriptorSets(demo->device, &alloc_info, &demo->desc_set); + assert(!err); + + memset(&tex_descs, 0, sizeof(tex_descs)); + for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { + tex_descs[i].sampler = demo->textures[i].sampler; + tex_descs[i].imageView = demo->textures[i].view; + tex_descs[i].imageLayout = VK_IMAGE_LAYOUT_GENERAL; + } + + memset(&write, 0, sizeof(write)); + write.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; + write.dstSet = demo->desc_set; + write.descriptorCount = DEMO_TEXTURE_COUNT; + write.descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; + write.pImageInfo = tex_descs; + + vkUpdateDescriptorSets(demo->device, 1, &write, 0, NULL); +} + +static void demo_prepare_framebuffers(struct demo *demo) { + VkImageView attachments[2]; + attachments[1] = demo->depth.view; + + const VkFramebufferCreateInfo fb_info = { + .sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, + .pNext = NULL, + .renderPass = demo->render_pass, + .attachmentCount = 2, + .pAttachments = attachments, + .width = demo->width, + .height = demo->height, + .layers = 1, + }; + VkResult U_ASSERT_ONLY err; + uint32_t i; + + demo->framebuffers = (VkFramebuffer *)malloc(demo->swapchainImageCount * + sizeof(VkFramebuffer)); + assert(demo->framebuffers); + + for (i = 0; i < demo->swapchainImageCount; i++) { + attachments[0] = demo->buffers[i].view; + err = vkCreateFramebuffer(demo->device, &fb_info, NULL, + &demo->framebuffers[i]); + assert(!err); + } +} + +static void demo_prepare(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + + const VkCommandPoolCreateInfo cmd_pool_info = { + .sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, + .pNext = NULL, + .queueFamilyIndex = demo->graphics_queue_node_index, + .flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, + }; + err = vkCreateCommandPool(demo->device, &cmd_pool_info, NULL, + &demo->cmd_pool); + assert(!err); + + const VkCommandBufferAllocateInfo cmd = { + .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, + .pNext = NULL, + .commandPool = demo->cmd_pool, + .level = VK_COMMAND_BUFFER_LEVEL_PRIMARY, + .commandBufferCount = 1, + }; + err = vkAllocateCommandBuffers(demo->device, &cmd, &demo->draw_cmd); + assert(!err); + + demo_prepare_buffers(demo); + demo_prepare_depth(demo); + demo_prepare_textures(demo); + demo_prepare_vertices(demo); + demo_prepare_descriptor_layout(demo); + demo_prepare_render_pass(demo); + demo_prepare_pipeline(demo); + + demo_prepare_descriptor_pool(demo); + demo_prepare_descriptor_set(demo); + + demo_prepare_framebuffers(demo); +} + +static void demo_error_callback(int error, const char* description) { + printf("GLFW error: %s\n", description); + fflush(stdout); +} + +static void demo_key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { + if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) + glfwSetWindowShouldClose(window, GLFW_TRUE); +} + +static void demo_refresh_callback(GLFWwindow* window) { + struct demo* demo = glfwGetWindowUserPointer(window); + demo_draw(demo); +} + +static void demo_resize_callback(GLFWwindow* window, int width, int height) { + struct demo* demo = glfwGetWindowUserPointer(window); + demo->width = width; + demo->height = height; + demo_resize(demo); +} + +static void demo_run(struct demo *demo) { + while (!glfwWindowShouldClose(demo->window)) { + glfwPollEvents(); + + demo_draw(demo); + + if (demo->depthStencil > 0.99f) + demo->depthIncrement = -0.001f; + if (demo->depthStencil < 0.8f) + demo->depthIncrement = 0.001f; + + demo->depthStencil += demo->depthIncrement; + + // Wait for work to finish before updating MVP. + vkDeviceWaitIdle(demo->device); + demo->curFrame++; + if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount) + glfwSetWindowShouldClose(demo->window, GLFW_TRUE); + } +} + +static void demo_create_window(struct demo *demo) { + glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); + + demo->window = glfwCreateWindow(demo->width, + demo->height, + APP_LONG_NAME, + NULL, + NULL); + if (!demo->window) { + // It didn't work, so try to give a useful error: + printf("Cannot create a window in which to draw!\n"); + fflush(stdout); + exit(1); + } + + glfwSetWindowUserPointer(demo->window, demo); + glfwSetWindowRefreshCallback(demo->window, demo_refresh_callback); + glfwSetFramebufferSizeCallback(demo->window, demo_resize_callback); + glfwSetKeyCallback(demo->window, demo_key_callback); +} + +/* + * Return 1 (true) if all layer names specified in check_names + * can be found in given layer properties. + */ +static VkBool32 demo_check_layers(uint32_t check_count, const char **check_names, + uint32_t layer_count, + VkLayerProperties *layers) { + uint32_t i, j; + for (i = 0; i < check_count; i++) { + VkBool32 found = 0; + for (j = 0; j < layer_count; j++) { + if (!strcmp(check_names[i], layers[j].layerName)) { + found = 1; + break; + } + } + if (!found) { + fprintf(stderr, "Cannot find layer: %s\n", check_names[i]); + return 0; + } + } + return 1; +} + +static void demo_init_vk(struct demo *demo) { + VkResult err; + uint32_t i = 0; + uint32_t required_extension_count = 0; + uint32_t instance_extension_count = 0; + uint32_t instance_layer_count = 0; + uint32_t validation_layer_count = 0; + const char **required_extensions = NULL; + const char **instance_validation_layers = NULL; + demo->enabled_extension_count = 0; + demo->enabled_layer_count = 0; + + char *instance_validation_layers_alt1[] = { + "VK_LAYER_LUNARG_standard_validation" + }; + + char *instance_validation_layers_alt2[] = { + "VK_LAYER_GOOGLE_threading", "VK_LAYER_LUNARG_parameter_validation", + "VK_LAYER_LUNARG_object_tracker", "VK_LAYER_LUNARG_image", + "VK_LAYER_LUNARG_core_validation", "VK_LAYER_LUNARG_swapchain", + "VK_LAYER_GOOGLE_unique_objects" + }; + + /* Look for validation layers */ + VkBool32 validation_found = 0; + if (demo->validate) { + + err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL); + assert(!err); + + instance_validation_layers = (const char**) instance_validation_layers_alt1; + if (instance_layer_count > 0) { + VkLayerProperties *instance_layers = + malloc(sizeof (VkLayerProperties) * instance_layer_count); + err = vkEnumerateInstanceLayerProperties(&instance_layer_count, + instance_layers); + assert(!err); + + + validation_found = demo_check_layers( + ARRAY_SIZE(instance_validation_layers_alt1), + instance_validation_layers, instance_layer_count, + instance_layers); + if (validation_found) { + demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt1); + demo->enabled_layers[0] = "VK_LAYER_LUNARG_standard_validation"; + validation_layer_count = 1; + } else { + // use alternative set of validation layers + instance_validation_layers = + (const char**) instance_validation_layers_alt2; + demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2); + validation_found = demo_check_layers( + ARRAY_SIZE(instance_validation_layers_alt2), + instance_validation_layers, instance_layer_count, + instance_layers); + validation_layer_count = + ARRAY_SIZE(instance_validation_layers_alt2); + for (i = 0; i < validation_layer_count; i++) { + demo->enabled_layers[i] = instance_validation_layers[i]; + } + } + free(instance_layers); + } + + if (!validation_found) { + ERR_EXIT("vkEnumerateInstanceLayerProperties failed to find " + "required validation layer.\n\n" + "Please look at the Getting Started guide for additional " + "information.\n", + "vkCreateInstance Failure"); + } + } + + /* Look for instance extensions */ + required_extensions = glfwGetRequiredInstanceExtensions(&required_extension_count); + if (!required_extensions) { + ERR_EXIT("glfwGetRequiredInstanceExtensions failed to find the " + "platform surface extensions.\n\nDo you have a compatible " + "Vulkan installable client driver (ICD) installed?\nPlease " + "look at the Getting Started guide for additional " + "information.\n", + "vkCreateInstance Failure"); + } + + for (i = 0; i < required_extension_count; i++) { + demo->extension_names[demo->enabled_extension_count++] = required_extensions[i]; + assert(demo->enabled_extension_count < 64); + } + + err = vkEnumerateInstanceExtensionProperties( + NULL, &instance_extension_count, NULL); + assert(!err); + + if (instance_extension_count > 0) { + VkExtensionProperties *instance_extensions = + malloc(sizeof(VkExtensionProperties) * instance_extension_count); + err = vkEnumerateInstanceExtensionProperties( + NULL, &instance_extension_count, instance_extensions); + assert(!err); + for (i = 0; i < instance_extension_count; i++) { + if (!strcmp(VK_EXT_DEBUG_REPORT_EXTENSION_NAME, + instance_extensions[i].extensionName)) { + if (demo->validate) { + demo->extension_names[demo->enabled_extension_count++] = + VK_EXT_DEBUG_REPORT_EXTENSION_NAME; + } + } + assert(demo->enabled_extension_count < 64); + } + + free(instance_extensions); + } + + const VkApplicationInfo app = { + .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, + .pNext = NULL, + .pApplicationName = APP_SHORT_NAME, + .applicationVersion = 0, + .pEngineName = APP_SHORT_NAME, + .engineVersion = 0, + .apiVersion = VK_API_VERSION_1_0, + }; + VkInstanceCreateInfo inst_info = { + .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, + .pNext = NULL, + .pApplicationInfo = &app, + .enabledLayerCount = demo->enabled_layer_count, + .ppEnabledLayerNames = (const char *const *)instance_validation_layers, + .enabledExtensionCount = demo->enabled_extension_count, + .ppEnabledExtensionNames = (const char *const *)demo->extension_names, + }; + + uint32_t gpu_count; + + err = vkCreateInstance(&inst_info, NULL, &demo->inst); + if (err == VK_ERROR_INCOMPATIBLE_DRIVER) { + ERR_EXIT("Cannot find a compatible Vulkan installable client driver " + "(ICD).\n\nPlease look at the Getting Started guide for " + "additional information.\n", + "vkCreateInstance Failure"); + } else if (err == VK_ERROR_EXTENSION_NOT_PRESENT) { + ERR_EXIT("Cannot find a specified extension library" + ".\nMake sure your layers path is set appropriately\n", + "vkCreateInstance Failure"); + } else if (err) { + ERR_EXIT("vkCreateInstance failed.\n\nDo you have a compatible Vulkan " + "installable client driver (ICD) installed?\nPlease look at " + "the Getting Started guide for additional information.\n", + "vkCreateInstance Failure"); + } + + gladLoadVulkanUserPtr(NULL, glad_vulkan_callback, demo->inst); + + /* Make initial call to query gpu_count, then second call for gpu info*/ + err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, NULL); + assert(!err && gpu_count > 0); + + if (gpu_count > 0) { + VkPhysicalDevice *physical_devices = + malloc(sizeof(VkPhysicalDevice) * gpu_count); + err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, + physical_devices); + assert(!err); + /* For tri demo we just grab the first physical device */ + demo->gpu = physical_devices[0]; + free(physical_devices); + } else { + ERR_EXIT("vkEnumeratePhysicalDevices reported zero accessible devices." + "\n\nDo you have a compatible Vulkan installable client" + " driver (ICD) installed?\nPlease look at the Getting Started" + " guide for additional information.\n", + "vkEnumeratePhysicalDevices Failure"); + } + + gladLoadVulkanUserPtr(demo->gpu, glad_vulkan_callback, demo->inst); + + /* Look for device extensions */ + uint32_t device_extension_count = 0; + VkBool32 swapchainExtFound = 0; + demo->enabled_extension_count = 0; + + err = vkEnumerateDeviceExtensionProperties(demo->gpu, NULL, + &device_extension_count, NULL); + assert(!err); + + if (device_extension_count > 0) { + VkExtensionProperties *device_extensions = + malloc(sizeof(VkExtensionProperties) * device_extension_count); + err = vkEnumerateDeviceExtensionProperties( + demo->gpu, NULL, &device_extension_count, device_extensions); + assert(!err); + + for (i = 0; i < device_extension_count; i++) { + if (!strcmp(VK_KHR_SWAPCHAIN_EXTENSION_NAME, + device_extensions[i].extensionName)) { + swapchainExtFound = 1; + demo->extension_names[demo->enabled_extension_count++] = + VK_KHR_SWAPCHAIN_EXTENSION_NAME; + } + assert(demo->enabled_extension_count < 64); + } + + free(device_extensions); + } + + if (!swapchainExtFound) { + ERR_EXIT("vkEnumerateDeviceExtensionProperties failed to find " + "the " VK_KHR_SWAPCHAIN_EXTENSION_NAME + " extension.\n\nDo you have a compatible " + "Vulkan installable client driver (ICD) installed?\nPlease " + "look at the Getting Started guide for additional " + "information.\n", + "vkCreateInstance Failure"); + } + + if (demo->validate) { + VkDebugReportCallbackCreateInfoEXT dbgCreateInfo; + dbgCreateInfo.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT; + dbgCreateInfo.flags = + VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT; + dbgCreateInfo.pfnCallback = demo->use_break ? BreakCallback : dbgFunc; + dbgCreateInfo.pUserData = demo; + dbgCreateInfo.pNext = NULL; + err = vkCreateDebugReportCallbackEXT(demo->inst, &dbgCreateInfo, NULL, + &demo->msg_callback); + switch (err) { + case VK_SUCCESS: + break; + case VK_ERROR_OUT_OF_HOST_MEMORY: + ERR_EXIT("CreateDebugReportCallback: out of host memory\n", + "CreateDebugReportCallback Failure"); + break; + default: + ERR_EXIT("CreateDebugReportCallback: unknown failure\n", + "CreateDebugReportCallback Failure"); + break; + } + } + + vkGetPhysicalDeviceProperties(demo->gpu, &demo->gpu_props); + + // Query with NULL data to get count + vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, + NULL); + + demo->queue_props = (VkQueueFamilyProperties *)malloc( + demo->queue_count * sizeof(VkQueueFamilyProperties)); + vkGetPhysicalDeviceQueueFamilyProperties(demo->gpu, &demo->queue_count, + demo->queue_props); + assert(demo->queue_count >= 1); + + vkGetPhysicalDeviceFeatures(demo->gpu, &demo->gpu_features); + + // Graphics queue and MemMgr queue can be separate. + // TODO: Add support for separate queues, including synchronization, + // and appropriate tracking for QueueSubmit +} + +static void demo_init_device(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + + float queue_priorities[1] = {0.0}; + const VkDeviceQueueCreateInfo queue = { + .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, + .pNext = NULL, + .queueFamilyIndex = demo->graphics_queue_node_index, + .queueCount = 1, + .pQueuePriorities = queue_priorities}; + + + VkPhysicalDeviceFeatures features; + memset(&features, 0, sizeof(features)); + if (demo->gpu_features.shaderClipDistance) { + features.shaderClipDistance = VK_TRUE; + } + + VkDeviceCreateInfo device = { + .sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, + .pNext = NULL, + .queueCreateInfoCount = 1, + .pQueueCreateInfos = &queue, + .enabledLayerCount = 0, + .ppEnabledLayerNames = NULL, + .enabledExtensionCount = demo->enabled_extension_count, + .ppEnabledExtensionNames = (const char *const *)demo->extension_names, + .pEnabledFeatures = &features, + }; + + err = vkCreateDevice(demo->gpu, &device, NULL, &demo->device); + assert(!err); +} + +static void demo_init_vk_swapchain(struct demo *demo) { + VkResult U_ASSERT_ONLY err; + uint32_t i; + + // Create a WSI surface for the window: + glfwCreateWindowSurface(demo->inst, demo->window, NULL, &demo->surface); + + // Iterate over each queue to learn whether it supports presenting: + VkBool32 *supportsPresent = + (VkBool32 *)malloc(demo->queue_count * sizeof(VkBool32)); + for (i = 0; i < demo->queue_count; i++) { + vkGetPhysicalDeviceSurfaceSupportKHR(demo->gpu, i, demo->surface, + &supportsPresent[i]); + } + + // Search for a graphics and a present queue in the array of queue + // families, try to find one that supports both + uint32_t graphicsQueueNodeIndex = UINT32_MAX; + uint32_t presentQueueNodeIndex = UINT32_MAX; + for (i = 0; i < demo->queue_count; i++) { + if ((demo->queue_props[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) != 0) { + if (graphicsQueueNodeIndex == UINT32_MAX) { + graphicsQueueNodeIndex = i; + } + + if (supportsPresent[i] == VK_TRUE) { + graphicsQueueNodeIndex = i; + presentQueueNodeIndex = i; + break; + } + } + } + if (presentQueueNodeIndex == UINT32_MAX) { + // If didn't find a queue that supports both graphics and present, then + // find a separate present queue. + for (i = 0; i < demo->queue_count; ++i) { + if (supportsPresent[i] == VK_TRUE) { + presentQueueNodeIndex = i; + break; + } + } + } + free(supportsPresent); + + // Generate error if could not find both a graphics and a present queue + if (graphicsQueueNodeIndex == UINT32_MAX || + presentQueueNodeIndex == UINT32_MAX) { + ERR_EXIT("Could not find a graphics and a present queue\n", + "Swapchain Initialization Failure"); + } + + // TODO: Add support for separate queues, including presentation, + // synchronization, and appropriate tracking for QueueSubmit. + // NOTE: While it is possible for an application to use a separate graphics + // and a present queues, this demo program assumes it is only using + // one: + if (graphicsQueueNodeIndex != presentQueueNodeIndex) { + ERR_EXIT("Could not find a common graphics and a present queue\n", + "Swapchain Initialization Failure"); + } + + demo->graphics_queue_node_index = graphicsQueueNodeIndex; + + demo_init_device(demo); + + vkGetDeviceQueue(demo->device, demo->graphics_queue_node_index, 0, + &demo->queue); + + // Get the list of VkFormat's that are supported: + uint32_t formatCount; + err = vkGetPhysicalDeviceSurfaceFormatsKHR(demo->gpu, demo->surface, + &formatCount, NULL); + assert(!err); + VkSurfaceFormatKHR *surfFormats = + (VkSurfaceFormatKHR *)malloc(formatCount * sizeof(VkSurfaceFormatKHR)); + err = vkGetPhysicalDeviceSurfaceFormatsKHR(demo->gpu, demo->surface, + &formatCount, surfFormats); + assert(!err); + // If the format list includes just one entry of VK_FORMAT_UNDEFINED, + // the surface has no preferred format. Otherwise, at least one + // supported format will be returned. + if (formatCount == 1 && surfFormats[0].format == VK_FORMAT_UNDEFINED) { + demo->format = VK_FORMAT_B8G8R8A8_UNORM; + } else { + assert(formatCount >= 1); + demo->format = surfFormats[0].format; + } + demo->color_space = surfFormats[0].colorSpace; + + demo->curFrame = 0; + + // Get Memory information and properties + vkGetPhysicalDeviceMemoryProperties(demo->gpu, &demo->memory_properties); +} + +static void demo_init_connection(struct demo *demo) { + glfwSetErrorCallback(demo_error_callback); + + if (!glfwInit()) { + printf("Cannot initialize GLFW.\nExiting ...\n"); + fflush(stdout); + exit(1); + } + + if (!glfwVulkanSupported()) { + printf("GLFW failed to find the Vulkan loader.\nExiting ...\n"); + fflush(stdout); + exit(1); + } + + gladLoadVulkanUserPtr(NULL, glad_vulkan_callback, NULL); +} + +static void demo_init(struct demo *demo, const int argc, const char *argv[]) +{ + int i; + memset(demo, 0, sizeof(*demo)); + demo->frameCount = INT32_MAX; + + for (i = 1; i < argc; i++) { + if (strcmp(argv[i], "--use_staging") == 0) { + demo->use_staging_buffer = true; + continue; + } + if (strcmp(argv[i], "--break") == 0) { + demo->use_break = true; + continue; + } + if (strcmp(argv[i], "--validate") == 0) { + demo->validate = true; + continue; + } + if (strcmp(argv[i], "--c") == 0 && demo->frameCount == INT32_MAX && + i < argc - 1 && sscanf(argv[i + 1], "%d", &demo->frameCount) == 1 && + demo->frameCount >= 0) { + i++; + continue; + } + + fprintf(stderr, "Usage:\n %s [--use_staging] [--validate] [--break] " + "[--c ]\n", + APP_SHORT_NAME); + fflush(stderr); + exit(1); + } + + demo_init_connection(demo); + demo_init_vk(demo); + + demo->width = 300; + demo->height = 300; + demo->depthStencil = 1.0; + demo->depthIncrement = -0.01f; +} + +static void demo_cleanup(struct demo *demo) { + uint32_t i; + + for (i = 0; i < demo->swapchainImageCount; i++) { + vkDestroyFramebuffer(demo->device, demo->framebuffers[i], NULL); + } + free(demo->framebuffers); + vkDestroyDescriptorPool(demo->device, demo->desc_pool, NULL); + + if (demo->setup_cmd) { + vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd); + } + vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd); + vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL); + + vkDestroyPipeline(demo->device, demo->pipeline, NULL); + vkDestroyRenderPass(demo->device, demo->render_pass, NULL); + vkDestroyPipelineLayout(demo->device, demo->pipeline_layout, NULL); + vkDestroyDescriptorSetLayout(demo->device, demo->desc_layout, NULL); + + vkDestroyBuffer(demo->device, demo->vertices.buf, NULL); + vkFreeMemory(demo->device, demo->vertices.mem, NULL); + + for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { + vkDestroyImageView(demo->device, demo->textures[i].view, NULL); + vkDestroyImage(demo->device, demo->textures[i].image, NULL); + vkFreeMemory(demo->device, demo->textures[i].mem, NULL); + vkDestroySampler(demo->device, demo->textures[i].sampler, NULL); + } + + for (i = 0; i < demo->swapchainImageCount; i++) { + vkDestroyImageView(demo->device, demo->buffers[i].view, NULL); + } + + vkDestroyImageView(demo->device, demo->depth.view, NULL); + vkDestroyImage(demo->device, demo->depth.image, NULL); + vkFreeMemory(demo->device, demo->depth.mem, NULL); + + vkDestroySwapchainKHR(demo->device, demo->swapchain, NULL); + free(demo->buffers); + + vkDestroyDevice(demo->device, NULL); + if (demo->validate) { + vkDestroyDebugReportCallbackEXT(demo->inst, demo->msg_callback, NULL); + } + vkDestroySurfaceKHR(demo->inst, demo->surface, NULL); + vkDestroyInstance(demo->inst, NULL); + + free(demo->queue_props); + + glfwDestroyWindow(demo->window); + glfwTerminate(); +} + +static void demo_resize(struct demo *demo) { + uint32_t i; + + // In order to properly resize the window, we must re-create the swapchain + // AND redo the command buffers, etc. + // + // First, perform part of the demo_cleanup() function: + + for (i = 0; i < demo->swapchainImageCount; i++) { + vkDestroyFramebuffer(demo->device, demo->framebuffers[i], NULL); + } + free(demo->framebuffers); + vkDestroyDescriptorPool(demo->device, demo->desc_pool, NULL); + + if (demo->setup_cmd) { + vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd); + demo->setup_cmd = VK_NULL_HANDLE; + } + vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd); + vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL); + + vkDestroyPipeline(demo->device, demo->pipeline, NULL); + vkDestroyRenderPass(demo->device, demo->render_pass, NULL); + vkDestroyPipelineLayout(demo->device, demo->pipeline_layout, NULL); + vkDestroyDescriptorSetLayout(demo->device, demo->desc_layout, NULL); + + vkDestroyBuffer(demo->device, demo->vertices.buf, NULL); + vkFreeMemory(demo->device, demo->vertices.mem, NULL); + + for (i = 0; i < DEMO_TEXTURE_COUNT; i++) { + vkDestroyImageView(demo->device, demo->textures[i].view, NULL); + vkDestroyImage(demo->device, demo->textures[i].image, NULL); + vkFreeMemory(demo->device, demo->textures[i].mem, NULL); + vkDestroySampler(demo->device, demo->textures[i].sampler, NULL); + } + + for (i = 0; i < demo->swapchainImageCount; i++) { + vkDestroyImageView(demo->device, demo->buffers[i].view, NULL); + } + + vkDestroyImageView(demo->device, demo->depth.view, NULL); + vkDestroyImage(demo->device, demo->depth.image, NULL); + vkFreeMemory(demo->device, demo->depth.mem, NULL); + + free(demo->buffers); + + // Second, re-perform the demo_prepare() function, which will re-create the + // swapchain: + demo_prepare(demo); +} + +int main(const int argc, const char *argv[]) { + struct demo demo; + + demo_init(&demo, argc, argv); + demo_create_window(&demo); + demo_init_vk_swapchain(&demo); + + demo_prepare(&demo); + demo_run(&demo); + + demo_cleanup(&demo); + + return validation_error; +} + diff --git a/external/GLFW/tests/windows.c b/external/glfw-3.3.4/tests/windows.c similarity index 90% rename from external/GLFW/tests/windows.c rename to external/glfw-3.3.4/tests/windows.c index 1c12973..6669856 100644 --- a/external/GLFW/tests/windows.c +++ b/external/glfw-3.3.4/tests/windows.c @@ -27,7 +27,8 @@ // //======================================================================== -#include +#include +#define GLFW_INCLUDE_NONE #include #include @@ -56,9 +57,10 @@ static const struct static void usage(void) { - printf("Usage: windows [-h] [-b]\n"); + printf("Usage: windows [-h] [-b] [-f] \n"); printf("Options:\n"); printf(" -b create decorated windows\n"); + printf(" -f set focus on show off for all but first window\n"); printf(" -h show this help\n"); } @@ -92,16 +94,20 @@ int main(int argc, char** argv) { int i, ch; int decorated = GLFW_FALSE; + int focusOnShow = GLFW_TRUE; int running = GLFW_TRUE; GLFWwindow* windows[4]; - while ((ch = getopt(argc, argv, "bh")) != -1) + while ((ch = getopt(argc, argv, "bfh")) != -1) { switch (ch) { case 'b': decorated = GLFW_TRUE; break; + case 'f': + focusOnShow = GLFW_FALSE; + break; case 'h': usage(); exit(EXIT_SUCCESS); @@ -122,6 +128,8 @@ int main(int argc, char** argv) for (i = 0; i < 4; i++) { int left, top, right, bottom; + if (i) + glfwWindowHint(GLFW_FOCUS_ON_SHOW, focusOnShow); windows[i] = glfwCreateWindow(200, 200, titles[i], NULL, NULL); if (!windows[i]) @@ -133,7 +141,7 @@ int main(int argc, char** argv) glfwSetKeyCallback(windows[i], key_callback); glfwMakeContextCurrent(windows[i]); - gladLoadGLLoader((GLADloadproc) glfwGetProcAddress); + gladLoadGL(glfwGetProcAddress); glClearColor(colors[i].r, colors[i].g, colors[i].b, 1.f); glfwGetWindowFrameSize(windows[i], &left, &top, &right, &bottom); diff --git a/external/glm-0.9.9.8/.appveyor.yml b/external/glm-0.9.9.8/.appveyor.yml new file mode 100644 index 0000000..62ead0e --- /dev/null +++ b/external/glm-0.9.9.8/.appveyor.yml @@ -0,0 +1,87 @@ +shallow_clone: true + +platform: + - x86 + - x64 + +configuration: + - Debug + - Release + +image: + - Visual Studio 2013 + - Visual Studio 2015 + - Visual Studio 2017 + - Visual Studio 2019 + +environment: + matrix: + - GLM_ARGUMENTS: -DGLM_TEST_FORCE_PURE=ON + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON + - GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON + +matrix: + exclude: + - image: Visual Studio 2013 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON + - image: Visual Studio 2013 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON + - image: Visual Studio 2013 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON + - image: Visual Studio 2013 + configuration: Debug + - image: Visual Studio 2015 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_SSE2=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON + - image: Visual Studio 2015 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_14=ON + - image: Visual Studio 2015 + GLM_ARGUMENTS: -DGLM_TEST_ENABLE_SIMD_AVX=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_CXX_17=ON + - image: Visual Studio 2015 + platform: x86 + - image: Visual Studio 2015 + configuration: Debug + - image: Visual Studio 2017 + platform: x86 + - image: Visual Studio 2017 + configuration: Debug + - image: Visual Studio 2019 + platform: x64 + +before_build: + - ps: | + mkdir build + cd build + + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2013") { + $env:generator="Visual Studio 12 2013" + } + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2015") { + $env:generator="Visual Studio 14 2015" + } + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2017") { + $env:generator="Visual Studio 15 2017" + } + if ("$env:APPVEYOR_JOB_NAME" -match "Image: Visual Studio 2019") { + $env:generator="Visual Studio 16 2019" + } + if ($env:PLATFORM -eq "x64") { + $env:generator="$env:generator Win64" + } + echo generator="$env:generator" + cmake .. -G "$env:generator" -DGLM_QUIET=ON -DGLM_TEST_ENABLE=ON "$env:GLM_ARGUMENTS" + +build_script: + - cmake --build . --config %CONFIGURATION% -- /m /v:minimal + +test_script: + - ctest -j4 -C %CONFIGURATION% + - cd .. + - ps: | + mkdir build_test_cmake + cd build_test_cmake + cmake ..\test\cmake\ -G "$env:generator" -Dglm_DIR="$env:APPVEYOR_BUILD_FOLDER/cmake/glm/" + - cmake --build . --config %CONFIGURATION% -- /m /v:minimal + +deploy: off diff --git a/external/glm-0.9.9.8/.gitignore b/external/glm-0.9.9.8/.gitignore new file mode 100644 index 0000000..4de8a4b --- /dev/null +++ b/external/glm-0.9.9.8/.gitignore @@ -0,0 +1,61 @@ +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +# CMake +CMakeCache.txt +CMakeFiles +cmake_install.cmake +install_manifest.txt +*.cmake +!glmConfig.cmake +!glmConfig-version.cmake +# ^ May need to add future .cmake files as exceptions + +# Test logs +Testing/* + +# Test input +test/gtc/*.dds + +# Project Files +Makefile +*.cbp +*.user + +# Misc. +*.log + +# local build(s) +build* + +/.vs +/.vscode +/CMakeSettings.json +.DS_Store +*.swp diff --git a/external/glm-0.9.9.8/.travis.yml b/external/glm-0.9.9.8/.travis.yml new file mode 100644 index 0000000..c567f8f --- /dev/null +++ b/external/glm-0.9.9.8/.travis.yml @@ -0,0 +1,735 @@ +language: cpp + +matrix: + include: + - os: osx + osx_image: xcode7.3 + script: + - cmake --version + - mkdir ./build_unknown_release + - cd ./build_unknown_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_DISABLE_AUTO_DETECTION=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++unknown-release" + + - os: osx + osx_image: xcode7.3 + script: + - cmake --version + - mkdir ./build_pure_98_release + - cd ./build_pure_98_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++98-pure-release" + + - os: osx + osx_image: xcode7.3 + script: + - cmake --version + - mkdir ./build_pure_ms_release + - cd ./build_pure_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++98-pure-ms-release" + + - os: osx + osx_image: xcode7.3 + script: + - cmake --version + - mkdir ./build_pure_11_release + - cd ./build_pure_11_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++11-pure-release" + + - os: osx + osx_image: xcode7.3 + script: + - cmake --version + - mkdir ./build_sse2_11_release + - cd ./build_sse2_11_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++11-sse2-release" + + - os: osx + osx_image: xcode8 + script: + - cmake --version + - mkdir ./build_pure_14_release + - cd ./build_pure_14_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++14-pure-release" + + - os: osx + osx_image: xcode8 + script: + - cmake --version + - mkdir ./build_sse3_14_release + - cd ./build_sse3_14_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++14-sse3-release" + + - os: osx + osx_image: xcode8 + script: + - cmake --version + - mkdir ./build_avx_14_release + - cd ./build_avx_14_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++14-avx-release" + + - os: osx + osx_image: xcode8 + script: + - cmake --version + - mkdir ./build_avx_14_debug + - cd ./build_avx_14_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++14-avx-debug" + + - os: osx + osx_image: xcode11 + script: + - cmake --version + - mkdir ./build_pure_17_release + - cd ./build_pure_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++17-pure-release" + + - os: osx + osx_image: xcode11 + script: + - cmake --version + - mkdir ./build_pure_17_debug + - cd ./build_pure_17_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++17-pure-debug" + + - os: osx + osx_image: xcode11 + script: + - cmake --version + - mkdir ./build_avx_17_release + - cd ./build_avx_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++17-avx-release" + + - os: osx + osx_image: xcode11 + script: + - cmake --version + - mkdir ./build_avx_17_debug + - cd ./build_avx_17_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + env: + - MATRIX_EVAL="INFO=C++17-avx-debug" + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + env: + - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9 && INFO=C++98-pure-release" + script: + - cmake --version + - mkdir ./build_pure_98_release + - cd ./build_pure_98_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + env: + - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9 && INFO=C++98-pure-debug" + script: + - cmake --version + - mkdir ./build_pure_98_debug + - cd ./build_pure_98_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + env: + - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9 && INFO=C++98-pure-ms" + script: + - cmake --version + - mkdir ./build_pure_ms_release + - cd ./build_pure_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5 + env: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5 && INFO=C++11-pure-release" + script: + - cmake --version + - mkdir ./build_pure_11_release + - cd ./build_pure_11_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5 + env: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5 && INFO=C++11-pure-debug" + script: + - cmake --version + - mkdir ./build_pure_11_debug + - cd ./build_pure_11_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5 + env: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5 && INFO=C++11-pure-ms" + script: + - cmake --version + - mkdir ./build_pure_ms_release + - cd ./build_pure_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5 + env: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5 && INFO=C++11-sse3-release" + script: + - cmake --version + - mkdir ./build_sse3_ms_release + - cd ./build_sse3_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + env: + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && INFO=C++14-pure-release" + script: + - cmake --version + - mkdir ./build_pure_14_release + - cd ./build_pure_14_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + env: + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && INFO=C++14-pure-debug" + script: + - cmake --version + - mkdir ./build_pure_14_debug + - cd ./build_pure_14_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + env: + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && INFO=C++14-pure-ms" + script: + - cmake --version + - mkdir ./build_pure_ms_release + - cd ./build_pure_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + env: + - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 && INFO=C++14-sse3-release" + script: + - cmake --version + - mkdir ./build_sse3_ms_release + - cd ./build_sse3_ms_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-7 + env: + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && INFO=C++17-pure-release" + script: + - cmake --version + - mkdir ./build_pure_17_release + - cd ./build_pure_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-7 + env: + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && INFO=C++17-sse2-release" + script: + - cmake --version + - mkdir ./build_sse2_17_release + - cd ./build_sse2_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE2=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-7 + env: + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && INFO=C++17-sse3-release" + script: + - cmake --version + - mkdir ./build_sse3_17_release + - cd ./build_sse3_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-7 + env: + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && INFO=C++17-avx-release" + script: + - cmake --version + - mkdir ./build_avx_17_release + - cd ./build_avx_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-7 + env: + - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && INFO=C++17-avx2-release" + script: + - cmake --version + - mkdir ./build_avx2_17_release + - cd ./build_avx2_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX2=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.6 + packages: + - clang-3.6 + env: + - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6 && INFO=C++14-pure-release" + script: + - cmake --version + - mkdir ./build_pure_14_release + - cd ./build_pure_14_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.6 + packages: + - clang-3.6 + env: + - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6 && INFO=C++14-pure-debug" + script: + - cmake --version + - mkdir ./build_pure_14_debug + - cd ./build_pure_14_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.6 + packages: + - clang-3.6 + env: + - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6 && INFO=C++14-avx-debug" + script: + - cmake --version + - mkdir ./build_avx_14_debug + - cd ./build_avx_14_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_14=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + dist: bionic + env: + - MATRIX_EVAL="CC=clang && CXX=clang++ && INFO=C++17-pure-release" + script: + - cmake --version + - mkdir ./build_pure_17_release + - cd ./build_pure_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + dist: bionic + env: + - MATRIX_EVAL="CC=clang && CXX=clang++ && INFO=C++17-pure-debug" + script: + - cmake --version + - mkdir ./build_pure_17_debug + - cd ./build_pure_17_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_FORCE_PURE=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + dist: bionic + env: + - MATRIX_EVAL="CC=clang && CXX=clang++ && INFO=C++17-sse3-release + script: + - cmake --version + - mkdir ./build_sse3_17_release + - cd ./build_sse3_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + dist: bionic + env: + - MATRIX_EVAL="CC=clang && CXX=clang++ && INFO=C++17-sse3-debug" + script: + - cmake --version + - mkdir ./build_sse3_17_debug + - cd ./build_sse3_17_debug + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + + - os: linux + dist: bionic + env: + - MATRIX_EVAL="CC=clang && CXX=clang++ && INFO=C++17-ssse3-release" + script: + - cmake --version + - mkdir ./build_ssse3_17_release + - cd ./build_ssse3_17_release + - cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_17=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_ENABLE_SIMD_SSSE3=ON .. + - cmake -E time cmake --build . + - ctest + - cd $TRAVIS_BUILD_DIR + - mkdir ./build_test_cmake + - cd ./build_test_cmake + - cmake -DCMAKE_CXX_COMPILER=$COMPILER $TRAVIS_BUILD_DIR/test/cmake/ -Dglm_DIR=$TRAVIS_BUILD_DIR/cmake/glm/ + - cmake --build . + +before_install: + - eval "${MATRIX_EVAL}" + + diff --git a/external/glm-0.9.9.8/CMakeLists.txt b/external/glm-0.9.9.8/CMakeLists.txt new file mode 100644 index 0000000..ebc30d0 --- /dev/null +++ b/external/glm-0.9.9.8/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.2 FATAL_ERROR) +cmake_policy(VERSION 3.2) + +set(GLM_VERSION "0.9.9") +project(glm VERSION ${GLM_VERSION} LANGUAGES CXX) +enable_testing() + +add_subdirectory(glm) +add_library(glm::glm ALIAS glm) + +if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) + +add_subdirectory(test) + +endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/external/glm-0.9.9.8/cmake/glm/glmConfig-version.cmake b/external/glm-0.9.9.8/cmake/glm/glmConfig-version.cmake new file mode 100644 index 0000000..d314ddb --- /dev/null +++ b/external/glm-0.9.9.8/cmake/glm/glmConfig-version.cmake @@ -0,0 +1,11 @@ +if(${PACKAGE_FIND_VERSION_MAJOR} EQUAL 0) + if (${PACKAGE_FIND_VERSION} VERSION_LESS ${GLM_VERSION}) + set(PACKAGE_VERSION_COMPATIBLE 1) + endif() + if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${GLM_VERSION}) + set(PACKAGE_VERSION_EXACT 1) + endif() +else() + set(PACKAGE_VERSION_UNSUITABLE 1) +endif() + diff --git a/external/glm-0.9.9.8/cmake/glm/glmConfig.cmake b/external/glm-0.9.9.8/cmake/glm/glmConfig.cmake new file mode 100644 index 0000000..b634379 --- /dev/null +++ b/external/glm-0.9.9.8/cmake/glm/glmConfig.cmake @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.2 FATAL_ERROR) +cmake_policy(VERSION 3.2) + +set(GLM_VERSION 0.9.9) + +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if (_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +# Set the old GLM_INCLUDE_DIRS variable for backwards compatibility +set(GLM_INCLUDE_DIRS ${_IMPORT_PREFIX}) + +add_library(glm::glm INTERFACE IMPORTED) +set_target_properties(glm::glm PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES ${GLM_INCLUDE_DIRS}) + +mark_as_advanced(glm_DIR) +set(_IMPORT_PREFIX) + diff --git a/external/glm-0.9.9.8/copying.txt b/external/glm-0.9.9.8/copying.txt new file mode 100644 index 0000000..5c43d39 --- /dev/null +++ b/external/glm-0.9.9.8/copying.txt @@ -0,0 +1,54 @@ +================================================================================ +OpenGL Mathematics (GLM) +-------------------------------------------------------------------------------- +GLM is licensed under The Happy Bunny License or MIT License + +================================================================================ +The Happy Bunny License (Modified MIT License) +-------------------------------------------------------------------------------- +Copyright (c) 2005 - G-Truc Creation + +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. + +Restrictions: + By making use of the Software for military purposes, you choose to make a + Bunny unhappy. + +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. + +================================================================================ +The MIT License +-------------------------------------------------------------------------------- +Copyright (c) 2005 - G-Truc Creation + +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/external/glm-0.9.9.8/doc/api/a00001_source.html b/external/glm-0.9.9.8/doc/api/a00001_source.html new file mode 100644 index 0000000..83240fb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00001_source.html @@ -0,0 +1,493 @@ + + + + + + +0.9.9 API documentation: _features.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _features.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 // #define GLM_CXX98_EXCEPTIONS
    +
    4 // #define GLM_CXX98_RTTI
    +
    5 
    +
    6 // #define GLM_CXX11_RVALUE_REFERENCES
    +
    7 // Rvalue references - GCC 4.3
    +
    8 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
    +
    9 
    +
    10 // GLM_CXX11_TRAILING_RETURN
    +
    11 // Rvalue references for *this - GCC not supported
    +
    12 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
    +
    13 
    +
    14 // GLM_CXX11_NONSTATIC_MEMBER_INIT
    +
    15 // Initialization of class objects by rvalues - GCC any
    +
    16 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1610.html
    +
    17 
    +
    18 // GLM_CXX11_NONSTATIC_MEMBER_INIT
    +
    19 // Non-static data member initializers - GCC 4.7
    +
    20 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2756.htm
    +
    21 
    +
    22 // #define GLM_CXX11_VARIADIC_TEMPLATE
    +
    23 // Variadic templates - GCC 4.3
    +
    24 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf
    +
    25 
    +
    26 //
    +
    27 // Extending variadic template template parameters - GCC 4.4
    +
    28 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf
    +
    29 
    +
    30 // #define GLM_CXX11_GENERALIZED_INITIALIZERS
    +
    31 // Initializer lists - GCC 4.4
    +
    32 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm
    +
    33 
    +
    34 // #define GLM_CXX11_STATIC_ASSERT
    +
    35 // Static assertions - GCC 4.3
    +
    36 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1720.html
    +
    37 
    +
    38 // #define GLM_CXX11_AUTO_TYPE
    +
    39 // auto-typed variables - GCC 4.4
    +
    40 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf
    +
    41 
    +
    42 // #define GLM_CXX11_AUTO_TYPE
    +
    43 // Multi-declarator auto - GCC 4.4
    +
    44 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1737.pdf
    +
    45 
    +
    46 // #define GLM_CXX11_AUTO_TYPE
    +
    47 // Removal of auto as a storage-class specifier - GCC 4.4
    +
    48 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2546.htm
    +
    49 
    +
    50 // #define GLM_CXX11_AUTO_TYPE
    +
    51 // New function declarator syntax - GCC 4.4
    +
    52 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm
    +
    53 
    +
    54 // #define GLM_CXX11_LAMBDAS
    +
    55 // New wording for C++0x lambdas - GCC 4.5
    +
    56 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf
    +
    57 
    +
    58 // #define GLM_CXX11_DECLTYPE
    +
    59 // Declared type of an expression - GCC 4.3
    +
    60 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2343.pdf
    +
    61 
    +
    62 //
    +
    63 // Right angle brackets - GCC 4.3
    +
    64 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html
    +
    65 
    +
    66 //
    +
    67 // Default template arguments for function templates DR226 GCC 4.3
    +
    68 // http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#226
    +
    69 
    +
    70 //
    +
    71 // Solving the SFINAE problem for expressions DR339 GCC 4.4
    +
    72 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2634.html
    +
    73 
    +
    74 // #define GLM_CXX11_ALIAS_TEMPLATE
    +
    75 // Template aliases N2258 GCC 4.7
    +
    76 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf
    +
    77 
    +
    78 //
    +
    79 // Extern templates N1987 Yes
    +
    80 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1987.htm
    +
    81 
    +
    82 // #define GLM_CXX11_NULLPTR
    +
    83 // Null pointer constant N2431 GCC 4.6
    +
    84 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf
    +
    85 
    +
    86 // #define GLM_CXX11_STRONG_ENUMS
    +
    87 // Strongly-typed enums N2347 GCC 4.4
    +
    88 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347.pdf
    +
    89 
    +
    90 //
    +
    91 // Forward declarations for enums N2764 GCC 4.6
    +
    92 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2764.pdf
    +
    93 
    +
    94 //
    +
    95 // Generalized attributes N2761 GCC 4.8
    +
    96 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf
    +
    97 
    +
    98 //
    +
    99 // Generalized constant expressions N2235 GCC 4.6
    +
    100 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf
    +
    101 
    +
    102 //
    +
    103 // Alignment support N2341 GCC 4.8
    +
    104 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf
    +
    105 
    +
    106 // #define GLM_CXX11_DELEGATING_CONSTRUCTORS
    +
    107 // Delegating constructors N1986 GCC 4.7
    +
    108 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf
    +
    109 
    +
    110 //
    +
    111 // Inheriting constructors N2540 GCC 4.8
    +
    112 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm
    +
    113 
    +
    114 // #define GLM_CXX11_EXPLICIT_CONVERSIONS
    +
    115 // Explicit conversion operators N2437 GCC 4.5
    +
    116 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf
    +
    117 
    +
    118 //
    +
    119 // New character types N2249 GCC 4.4
    +
    120 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2249.html
    +
    121 
    +
    122 //
    +
    123 // Unicode string literals N2442 GCC 4.5
    +
    124 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
    +
    125 
    +
    126 //
    +
    127 // Raw string literals N2442 GCC 4.5
    +
    128 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
    +
    129 
    +
    130 //
    +
    131 // Universal character name literals N2170 GCC 4.5
    +
    132 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html
    +
    133 
    +
    134 // #define GLM_CXX11_USER_LITERALS
    +
    135 // User-defined literals N2765 GCC 4.7
    +
    136 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf
    +
    137 
    +
    138 //
    +
    139 // Standard Layout Types N2342 GCC 4.5
    +
    140 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2342.htm
    +
    141 
    +
    142 // #define GLM_CXX11_DEFAULTED_FUNCTIONS
    +
    143 // #define GLM_CXX11_DELETED_FUNCTIONS
    +
    144 // Defaulted and deleted functions N2346 GCC 4.4
    +
    145 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm
    +
    146 
    +
    147 //
    +
    148 // Extended friend declarations N1791 GCC 4.7
    +
    149 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1791.pdf
    +
    150 
    +
    151 //
    +
    152 // Extending sizeof N2253 GCC 4.4
    +
    153 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2253.html
    +
    154 
    +
    155 // #define GLM_CXX11_INLINE_NAMESPACES
    +
    156 // Inline namespaces N2535 GCC 4.4
    +
    157 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2535.htm
    +
    158 
    +
    159 // #define GLM_CXX11_UNRESTRICTED_UNIONS
    +
    160 // Unrestricted unions N2544 GCC 4.6
    +
    161 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf
    +
    162 
    +
    163 // #define GLM_CXX11_LOCAL_TYPE_TEMPLATE_ARGS
    +
    164 // Local and unnamed types as template arguments N2657 GCC 4.5
    +
    165 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm
    +
    166 
    +
    167 // #define GLM_CXX11_RANGE_FOR
    +
    168 // Range-based for N2930 GCC 4.6
    +
    169 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html
    +
    170 
    +
    171 // #define GLM_CXX11_OVERRIDE_CONTROL
    +
    172 // Explicit virtual overrides N2928 N3206 N3272 GCC 4.7
    +
    173 // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm
    +
    174 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm
    +
    175 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm
    +
    176 
    +
    177 //
    +
    178 // Minimal support for garbage collection and reachability-based leak detection N2670 No
    +
    179 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2670.htm
    +
    180 
    +
    181 // #define GLM_CXX11_NOEXCEPT
    +
    182 // Allowing move constructors to throw [noexcept] N3050 GCC 4.6 (core language only)
    +
    183 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html
    +
    184 
    +
    185 //
    +
    186 // Defining move special member functions N3053 GCC 4.6
    +
    187 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html
    +
    188 
    +
    189 //
    +
    190 // Sequence points N2239 Yes
    +
    191 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html
    +
    192 
    +
    193 //
    +
    194 // Atomic operations N2427 GCC 4.4
    +
    195 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html
    +
    196 
    +
    197 //
    +
    198 // Strong Compare and Exchange N2748 GCC 4.5
    +
    199 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html
    +
    200 
    +
    201 //
    +
    202 // Bidirectional Fences N2752 GCC 4.8
    +
    203 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2752.htm
    +
    204 
    +
    205 //
    +
    206 // Memory model N2429 GCC 4.8
    +
    207 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2429.htm
    +
    208 
    +
    209 //
    +
    210 // Data-dependency ordering: atomics and memory model N2664 GCC 4.4
    +
    211 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2664.htm
    +
    212 
    +
    213 //
    +
    214 // Propagating exceptions N2179 GCC 4.4
    +
    215 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html
    +
    216 
    +
    217 //
    +
    218 // Abandoning a process and at_quick_exit N2440 GCC 4.8
    +
    219 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2440.htm
    +
    220 
    +
    221 //
    +
    222 // Allow atomics use in signal handlers N2547 Yes
    +
    223 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2547.htm
    +
    224 
    +
    225 //
    +
    226 // Thread-local storage N2659 GCC 4.8
    +
    227 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2659.htm
    +
    228 
    +
    229 //
    +
    230 // Dynamic initialization and destruction with concurrency N2660 GCC 4.3
    +
    231 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm
    +
    232 
    +
    233 //
    +
    234 // __func__ predefined identifier N2340 GCC 4.3
    +
    235 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2340.htm
    +
    236 
    +
    237 //
    +
    238 // C99 preprocessor N1653 GCC 4.3
    +
    239 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm
    +
    240 
    +
    241 //
    +
    242 // long long N1811 GCC 4.3
    +
    243 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1811.pdf
    +
    244 
    +
    245 //
    +
    246 // Extended integral types N1988 Yes
    +
    247 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1988.pdf
    +
    248 
    +
    249 #if(GLM_COMPILER & GLM_COMPILER_GCC)
    +
    250 
    +
    251 # define GLM_CXX11_STATIC_ASSERT
    +
    252 
    +
    253 #elif(GLM_COMPILER & GLM_COMPILER_CLANG)
    +
    254 # if(__has_feature(cxx_exceptions))
    +
    255 # define GLM_CXX98_EXCEPTIONS
    +
    256 # endif
    +
    257 
    +
    258 # if(__has_feature(cxx_rtti))
    +
    259 # define GLM_CXX98_RTTI
    +
    260 # endif
    +
    261 
    +
    262 # if(__has_feature(cxx_access_control_sfinae))
    +
    263 # define GLM_CXX11_ACCESS_CONTROL_SFINAE
    +
    264 # endif
    +
    265 
    +
    266 # if(__has_feature(cxx_alias_templates))
    +
    267 # define GLM_CXX11_ALIAS_TEMPLATE
    +
    268 # endif
    +
    269 
    +
    270 # if(__has_feature(cxx_alignas))
    +
    271 # define GLM_CXX11_ALIGNAS
    +
    272 # endif
    +
    273 
    +
    274 # if(__has_feature(cxx_attributes))
    +
    275 # define GLM_CXX11_ATTRIBUTES
    +
    276 # endif
    +
    277 
    +
    278 # if(__has_feature(cxx_constexpr))
    +
    279 # define GLM_CXX11_CONSTEXPR
    +
    280 # endif
    +
    281 
    +
    282 # if(__has_feature(cxx_decltype))
    +
    283 # define GLM_CXX11_DECLTYPE
    +
    284 # endif
    +
    285 
    +
    286 # if(__has_feature(cxx_default_function_template_args))
    +
    287 # define GLM_CXX11_DEFAULT_FUNCTION_TEMPLATE_ARGS
    +
    288 # endif
    +
    289 
    +
    290 # if(__has_feature(cxx_defaulted_functions))
    +
    291 # define GLM_CXX11_DEFAULTED_FUNCTIONS
    +
    292 # endif
    +
    293 
    +
    294 # if(__has_feature(cxx_delegating_constructors))
    +
    295 # define GLM_CXX11_DELEGATING_CONSTRUCTORS
    +
    296 # endif
    +
    297 
    +
    298 # if(__has_feature(cxx_deleted_functions))
    +
    299 # define GLM_CXX11_DELETED_FUNCTIONS
    +
    300 # endif
    +
    301 
    +
    302 # if(__has_feature(cxx_explicit_conversions))
    +
    303 # define GLM_CXX11_EXPLICIT_CONVERSIONS
    +
    304 # endif
    +
    305 
    +
    306 # if(__has_feature(cxx_generalized_initializers))
    +
    307 # define GLM_CXX11_GENERALIZED_INITIALIZERS
    +
    308 # endif
    +
    309 
    +
    310 # if(__has_feature(cxx_implicit_moves))
    +
    311 # define GLM_CXX11_IMPLICIT_MOVES
    +
    312 # endif
    +
    313 
    +
    314 # if(__has_feature(cxx_inheriting_constructors))
    +
    315 # define GLM_CXX11_INHERITING_CONSTRUCTORS
    +
    316 # endif
    +
    317 
    +
    318 # if(__has_feature(cxx_inline_namespaces))
    +
    319 # define GLM_CXX11_INLINE_NAMESPACES
    +
    320 # endif
    +
    321 
    +
    322 # if(__has_feature(cxx_lambdas))
    +
    323 # define GLM_CXX11_LAMBDAS
    +
    324 # endif
    +
    325 
    +
    326 # if(__has_feature(cxx_local_type_template_args))
    +
    327 # define GLM_CXX11_LOCAL_TYPE_TEMPLATE_ARGS
    +
    328 # endif
    +
    329 
    +
    330 # if(__has_feature(cxx_noexcept))
    +
    331 # define GLM_CXX11_NOEXCEPT
    +
    332 # endif
    +
    333 
    +
    334 # if(__has_feature(cxx_nonstatic_member_init))
    +
    335 # define GLM_CXX11_NONSTATIC_MEMBER_INIT
    +
    336 # endif
    +
    337 
    +
    338 # if(__has_feature(cxx_nullptr))
    +
    339 # define GLM_CXX11_NULLPTR
    +
    340 # endif
    +
    341 
    +
    342 # if(__has_feature(cxx_override_control))
    +
    343 # define GLM_CXX11_OVERRIDE_CONTROL
    +
    344 # endif
    +
    345 
    +
    346 # if(__has_feature(cxx_reference_qualified_functions))
    +
    347 # define GLM_CXX11_REFERENCE_QUALIFIED_FUNCTIONS
    +
    348 # endif
    +
    349 
    +
    350 # if(__has_feature(cxx_range_for))
    +
    351 # define GLM_CXX11_RANGE_FOR
    +
    352 # endif
    +
    353 
    +
    354 # if(__has_feature(cxx_raw_string_literals))
    +
    355 # define GLM_CXX11_RAW_STRING_LITERALS
    +
    356 # endif
    +
    357 
    +
    358 # if(__has_feature(cxx_rvalue_references))
    +
    359 # define GLM_CXX11_RVALUE_REFERENCES
    +
    360 # endif
    +
    361 
    +
    362 # if(__has_feature(cxx_static_assert))
    +
    363 # define GLM_CXX11_STATIC_ASSERT
    +
    364 # endif
    +
    365 
    +
    366 # if(__has_feature(cxx_auto_type))
    +
    367 # define GLM_CXX11_AUTO_TYPE
    +
    368 # endif
    +
    369 
    +
    370 # if(__has_feature(cxx_strong_enums))
    +
    371 # define GLM_CXX11_STRONG_ENUMS
    +
    372 # endif
    +
    373 
    +
    374 # if(__has_feature(cxx_trailing_return))
    +
    375 # define GLM_CXX11_TRAILING_RETURN
    +
    376 # endif
    +
    377 
    +
    378 # if(__has_feature(cxx_unicode_literals))
    +
    379 # define GLM_CXX11_UNICODE_LITERALS
    +
    380 # endif
    +
    381 
    +
    382 # if(__has_feature(cxx_unrestricted_unions))
    +
    383 # define GLM_CXX11_UNRESTRICTED_UNIONS
    +
    384 # endif
    +
    385 
    +
    386 # if(__has_feature(cxx_user_literals))
    +
    387 # define GLM_CXX11_USER_LITERALS
    +
    388 # endif
    +
    389 
    +
    390 # if(__has_feature(cxx_variadic_templates))
    +
    391 # define GLM_CXX11_VARIADIC_TEMPLATES
    +
    392 # endif
    +
    393 
    +
    394 #endif//(GLM_COMPILER & GLM_COMPILER_CLANG)
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00002_source.html b/external/glm-0.9.9.8/doc/api/a00002_source.html new file mode 100644 index 0000000..16fdd4e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00002_source.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: _fixes.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _fixes.hpp
    +
    +
    +
    1 #include <cmath>
    +
    2 
    +
    4 #ifdef max
    +
    5 #undef max
    +
    6 #endif
    +
    7 
    +
    9 #ifdef min
    +
    10 #undef min
    +
    11 #endif
    +
    12 
    +
    14 #ifdef isnan
    +
    15 #undef isnan
    +
    16 #endif
    +
    17 
    +
    19 #ifdef isinf
    +
    20 #undef isinf
    +
    21 #endif
    +
    22 
    +
    24 #ifdef log2
    +
    25 #undef log2
    +
    26 #endif
    +
    27 
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00003_source.html b/external/glm-0.9.9.8/doc/api/a00003_source.html new file mode 100644 index 0000000..90e5663 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00003_source.html @@ -0,0 +1,182 @@ + + + + + + +0.9.9 API documentation: _noise.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _noise.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "../common.hpp"
    +
    4 
    +
    5 namespace glm{
    +
    6 namespace detail
    +
    7 {
    +
    8  template<typename T>
    +
    9  GLM_FUNC_QUALIFIER T mod289(T const& x)
    +
    10  {
    +
    11  return x - floor(x * (static_cast<T>(1.0) / static_cast<T>(289.0))) * static_cast<T>(289.0);
    +
    12  }
    +
    13 
    +
    14  template<typename T>
    +
    15  GLM_FUNC_QUALIFIER T permute(T const& x)
    +
    16  {
    +
    17  return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x);
    +
    18  }
    +
    19 
    +
    20  template<typename T, qualifier Q>
    +
    21  GLM_FUNC_QUALIFIER vec<2, T, Q> permute(vec<2, T, Q> const& x)
    +
    22  {
    +
    23  return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x);
    +
    24  }
    +
    25 
    +
    26  template<typename T, qualifier Q>
    +
    27  GLM_FUNC_QUALIFIER vec<3, T, Q> permute(vec<3, T, Q> const& x)
    +
    28  {
    +
    29  return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x);
    +
    30  }
    +
    31 
    +
    32  template<typename T, qualifier Q>
    +
    33  GLM_FUNC_QUALIFIER vec<4, T, Q> permute(vec<4, T, Q> const& x)
    +
    34  {
    +
    35  return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x);
    +
    36  }
    +
    37 
    +
    38  template<typename T>
    +
    39  GLM_FUNC_QUALIFIER T taylorInvSqrt(T const& r)
    +
    40  {
    +
    41  return static_cast<T>(1.79284291400159) - static_cast<T>(0.85373472095314) * r;
    +
    42  }
    +
    43 
    +
    44  template<typename T, qualifier Q>
    +
    45  GLM_FUNC_QUALIFIER vec<2, T, Q> taylorInvSqrt(vec<2, T, Q> const& r)
    +
    46  {
    +
    47  return static_cast<T>(1.79284291400159) - static_cast<T>(0.85373472095314) * r;
    +
    48  }
    +
    49 
    +
    50  template<typename T, qualifier Q>
    +
    51  GLM_FUNC_QUALIFIER vec<3, T, Q> taylorInvSqrt(vec<3, T, Q> const& r)
    +
    52  {
    +
    53  return static_cast<T>(1.79284291400159) - static_cast<T>(0.85373472095314) * r;
    +
    54  }
    +
    55 
    +
    56  template<typename T, qualifier Q>
    +
    57  GLM_FUNC_QUALIFIER vec<4, T, Q> taylorInvSqrt(vec<4, T, Q> const& r)
    +
    58  {
    +
    59  return static_cast<T>(1.79284291400159) - static_cast<T>(0.85373472095314) * r;
    +
    60  }
    +
    61 
    +
    62  template<typename T, qualifier Q>
    +
    63  GLM_FUNC_QUALIFIER vec<2, T, Q> fade(vec<2, T, Q> const& t)
    +
    64  {
    +
    65  return (t * t * t) * (t * (t * static_cast<T>(6) - static_cast<T>(15)) + static_cast<T>(10));
    +
    66  }
    +
    67 
    +
    68  template<typename T, qualifier Q>
    +
    69  GLM_FUNC_QUALIFIER vec<3, T, Q> fade(vec<3, T, Q> const& t)
    +
    70  {
    +
    71  return (t * t * t) * (t * (t * static_cast<T>(6) - static_cast<T>(15)) + static_cast<T>(10));
    +
    72  }
    +
    73 
    +
    74  template<typename T, qualifier Q>
    +
    75  GLM_FUNC_QUALIFIER vec<4, T, Q> fade(vec<4, T, Q> const& t)
    +
    76  {
    +
    77  return (t * t * t) * (t * (t * static_cast<T>(6) - static_cast<T>(15)) + static_cast<T>(10));
    +
    78  }
    +
    79 }//namespace detail
    +
    80 }//namespace glm
    +
    81 
    +
    GLM_FUNC_DECL vec< L, T, Q > floor(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer that is less then or equal to x.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00004_source.html b/external/glm-0.9.9.8/doc/api/a00004_source.html similarity index 87% rename from external/glm/doc/api/a00004_source.html rename to external/glm-0.9.9.8/doc/api/a00004_source.html index f1ea296..110ffe4 100644 --- a/external/glm/doc/api/a00004_source.html +++ b/external/glm-0.9.9.8/doc/api/a00004_source.html @@ -1,895 +1,905 @@ - - - - - - -0.9.9 API documenation: _swizzle.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    _swizzle.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    4 #pragma once
    -
    5 
    -
    6 namespace glm{
    -
    7 namespace detail
    -
    8 {
    -
    9  // Internal class for implementing swizzle operators
    -
    10  template<typename T, int N>
    -
    11  struct _swizzle_base0
    -
    12  {
    -
    13  protected:
    -
    14  GLM_FUNC_QUALIFIER T& elem(size_t i){ return (reinterpret_cast<T*>(_buffer))[i]; }
    -
    15  GLM_FUNC_QUALIFIER T const& elem(size_t i) const{ return (reinterpret_cast<const T*>(_buffer))[i]; }
    -
    16 
    -
    17  // Use an opaque buffer to *ensure* the compiler doesn't call a constructor.
    -
    18  // The size 1 buffer is assumed to aligned to the actual members so that the
    -
    19  // elem()
    -
    20  char _buffer[1];
    -
    21  };
    -
    22 
    -
    23  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, bool Aligned>
    -
    24  struct _swizzle_base1 : public _swizzle_base0<T, N>
    -
    25  {
    -
    26  };
    -
    27 
    -
    28  template<typename T, qualifier Q, int E0, int E1, bool Aligned>
    -
    29  struct _swizzle_base1<2, T, Q, E0,E1,-1,-2, Aligned> : public _swizzle_base0<T, 2>
    -
    30  {
    -
    31  GLM_FUNC_QUALIFIER vec<2, T, Q> operator ()() const { return vec<2, T, Q>(this->elem(E0), this->elem(E1)); }
    -
    32  };
    -
    33 
    -
    34  template<typename T, qualifier Q, int E0, int E1, int E2, bool Aligned>
    -
    35  struct _swizzle_base1<3, T, Q, E0,E1,E2,-1, Aligned> : public _swizzle_base0<T, 3>
    -
    36  {
    -
    37  GLM_FUNC_QUALIFIER vec<3, T, Q> operator ()() const { return vec<3, T, Q>(this->elem(E0), this->elem(E1), this->elem(E2)); }
    -
    38  };
    -
    39 
    -
    40  template<typename T, qualifier Q, int E0, int E1, int E2, int E3, bool Aligned>
    -
    41  struct _swizzle_base1<4, T, Q, E0,E1,E2,E3, Aligned> : public _swizzle_base0<T, 4>
    -
    42  {
    -
    43  GLM_FUNC_QUALIFIER vec<4, T, Q> operator ()() const { return vec<4, T, Q>(this->elem(E0), this->elem(E1), this->elem(E2), this->elem(E3)); }
    -
    44  };
    -
    45 
    -
    46  // Internal class for implementing swizzle operators
    -
    47  /*
    -
    48  Template parameters:
    -
    49 
    -
    50  T = type of scalar values (e.g. float, double)
    -
    51  N = number of components in the vector (e.g. 3)
    -
    52  E0...3 = what index the n-th element of this swizzle refers to in the unswizzled vec
    -
    53 
    -
    54  DUPLICATE_ELEMENTS = 1 if there is a repeated element, 0 otherwise (used to specialize swizzles
    -
    55  containing duplicate elements so that they cannot be used as r-values).
    -
    56  */
    -
    57  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, int DUPLICATE_ELEMENTS>
    -
    58  struct _swizzle_base2 : public _swizzle_base1<N, T, Q, E0,E1,E2,E3, detail::is_aligned<Q>::value>
    -
    59  {
    -
    60  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (const T& t)
    -
    61  {
    -
    62  for (int i = 0; i < N; ++i)
    -
    63  (*this)[i] = t;
    -
    64  return *this;
    -
    65  }
    -
    66 
    -
    67  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (vec<N, T, Q> const& that)
    -
    68  {
    -
    69  struct op {
    -
    70  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) { e = t; }
    -
    71  };
    -
    72  _apply_op(that, op());
    -
    73  return *this;
    -
    74  }
    -
    75 
    -
    76  GLM_FUNC_QUALIFIER void operator -= (vec<N, T, Q> const& that)
    -
    77  {
    -
    78  struct op {
    -
    79  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) { e -= t; }
    -
    80  };
    -
    81  _apply_op(that, op());
    -
    82  }
    -
    83 
    -
    84  GLM_FUNC_QUALIFIER void operator += (vec<N, T, Q> const& that)
    -
    85  {
    -
    86  struct op {
    -
    87  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) { e += t; }
    -
    88  };
    -
    89  _apply_op(that, op());
    -
    90  }
    -
    91 
    -
    92  GLM_FUNC_QUALIFIER void operator *= (vec<N, T, Q> const& that)
    -
    93  {
    -
    94  struct op {
    -
    95  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) { e *= t; }
    -
    96  };
    -
    97  _apply_op(that, op());
    -
    98  }
    -
    99 
    -
    100  GLM_FUNC_QUALIFIER void operator /= (vec<N, T, Q> const& that)
    -
    101  {
    -
    102  struct op {
    -
    103  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) { e /= t; }
    -
    104  };
    -
    105  _apply_op(that, op());
    -
    106  }
    -
    107 
    -
    108  GLM_FUNC_QUALIFIER T& operator[](size_t i)
    -
    109  {
    -
    110  const int offset_dst[4] = { E0, E1, E2, E3 };
    -
    111  return this->elem(offset_dst[i]);
    -
    112  }
    -
    113  GLM_FUNC_QUALIFIER T operator[](size_t i) const
    -
    114  {
    -
    115  const int offset_dst[4] = { E0, E1, E2, E3 };
    -
    116  return this->elem(offset_dst[i]);
    -
    117  }
    -
    118 
    -
    119  protected:
    -
    120  template<typename U>
    -
    121  GLM_FUNC_QUALIFIER void _apply_op(vec<N, T, Q> const& that, U op)
    -
    122  {
    -
    123  // Make a copy of the data in this == &that.
    -
    124  // The copier should optimize out the copy in cases where the function is
    -
    125  // properly inlined and the copy is not necessary.
    -
    126  T t[N];
    -
    127  for (int i = 0; i < N; ++i)
    -
    128  t[i] = that[i];
    -
    129  for (int i = 0; i < N; ++i)
    -
    130  op( (*this)[i], t[i] );
    -
    131  }
    -
    132  };
    -
    133 
    -
    134  // Specialization for swizzles containing duplicate elements. These cannot be modified.
    -
    135  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    -
    136  struct _swizzle_base2<N, T, Q, E0,E1,E2,E3, 1> : public _swizzle_base1<N, T, Q, E0,E1,E2,E3, detail::is_aligned<Q>::value>
    -
    137  {
    -
    138  struct Stub {};
    -
    139 
    -
    140  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (Stub const&) { return *this; }
    -
    141 
    -
    142  GLM_FUNC_QUALIFIER T operator[] (size_t i) const
    -
    143  {
    -
    144  const int offset_dst[4] = { E0, E1, E2, E3 };
    -
    145  return this->elem(offset_dst[i]);
    -
    146  }
    -
    147  };
    -
    148 
    -
    149  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    -
    150  struct _swizzle : public _swizzle_base2<N, T, Q, E0, E1, E2, E3, (E0 == E1 || E0 == E2 || E0 == E3 || E1 == E2 || E1 == E3 || E2 == E3)>
    -
    151  {
    -
    152  typedef _swizzle_base2<N, T, Q, E0, E1, E2, E3, (E0 == E1 || E0 == E2 || E0 == E3 || E1 == E2 || E1 == E3 || E2 == E3)> base_type;
    -
    153 
    -
    154  using base_type::operator=;
    -
    155 
    -
    156  GLM_FUNC_QUALIFIER operator vec<N, T, Q> () const { return (*this)(); }
    -
    157  };
    -
    158 
    -
    159 //
    -
    160 // To prevent the C++ syntax from getting entirely overwhelming, define some alias macros
    -
    161 //
    -
    162 #define GLM_SWIZZLE_TEMPLATE1 template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    -
    163 #define GLM_SWIZZLE_TEMPLATE2 template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, int F0, int F1, int F2, int F3>
    -
    164 #define GLM_SWIZZLE_TYPE1 _swizzle<N, T, Q, E0, E1, E2, E3>
    -
    165 #define GLM_SWIZZLE_TYPE2 _swizzle<N, T, Q, F0, F1, F2, F3>
    -
    166 
    -
    167 //
    -
    168 // Wrapper for a binary operator (e.g. u.yy + v.zy)
    -
    169 //
    -
    170 #define GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND) \
    -
    171  GLM_SWIZZLE_TEMPLATE2 \
    -
    172  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b) \
    -
    173  { \
    -
    174  return a() OPERAND b(); \
    -
    175  } \
    -
    176  GLM_SWIZZLE_TEMPLATE1 \
    -
    177  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const vec<N, T, Q>& b) \
    -
    178  { \
    -
    179  return a() OPERAND b; \
    -
    180  } \
    -
    181  GLM_SWIZZLE_TEMPLATE1 \
    -
    182  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const vec<N, T, Q>& a, const GLM_SWIZZLE_TYPE1& b) \
    -
    183  { \
    -
    184  return a OPERAND b(); \
    -
    185  }
    -
    186 
    -
    187 //
    -
    188 // Wrapper for a operand between a swizzle and a binary (e.g. 1.0f - u.xyz)
    -
    189 //
    -
    190 #define GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND) \
    -
    191  GLM_SWIZZLE_TEMPLATE1 \
    -
    192  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const T& b) \
    -
    193  { \
    -
    194  return a() OPERAND b; \
    -
    195  } \
    -
    196  GLM_SWIZZLE_TEMPLATE1 \
    -
    197  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const T& a, const GLM_SWIZZLE_TYPE1& b) \
    -
    198  { \
    -
    199  return a OPERAND b(); \
    -
    200  }
    -
    201 
    -
    202 //
    -
    203 // Macro for wrapping a function taking one argument (e.g. abs())
    -
    204 //
    -
    205 #define GLM_SWIZZLE_FUNCTION_1_ARGS(RETURN_TYPE,FUNCTION) \
    -
    206  GLM_SWIZZLE_TEMPLATE1 \
    -
    207  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a) \
    -
    208  { \
    -
    209  return FUNCTION(a()); \
    -
    210  }
    -
    211 
    -
    212 //
    -
    213 // Macro for wrapping a function taking two vector arguments (e.g. dot()).
    -
    214 //
    -
    215 #define GLM_SWIZZLE_FUNCTION_2_ARGS(RETURN_TYPE,FUNCTION) \
    -
    216  GLM_SWIZZLE_TEMPLATE2 \
    -
    217  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b) \
    -
    218  { \
    -
    219  return FUNCTION(a(), b()); \
    -
    220  } \
    -
    221  GLM_SWIZZLE_TEMPLATE1 \
    -
    222  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE1& b) \
    -
    223  { \
    -
    224  return FUNCTION(a(), b()); \
    -
    225  } \
    -
    226  GLM_SWIZZLE_TEMPLATE1 \
    -
    227  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const typename V& b) \
    -
    228  { \
    -
    229  return FUNCTION(a(), b); \
    -
    230  } \
    -
    231  GLM_SWIZZLE_TEMPLATE1 \
    -
    232  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const V& a, const GLM_SWIZZLE_TYPE1& b) \
    -
    233  { \
    -
    234  return FUNCTION(a, b()); \
    -
    235  }
    -
    236 
    -
    237 //
    -
    238 // Macro for wrapping a function take 2 vec arguments followed by a scalar (e.g. mix()).
    -
    239 //
    -
    240 #define GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR(RETURN_TYPE,FUNCTION) \
    -
    241  GLM_SWIZZLE_TEMPLATE2 \
    -
    242  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b, const T& c) \
    -
    243  { \
    -
    244  return FUNCTION(a(), b(), c); \
    -
    245  } \
    -
    246  GLM_SWIZZLE_TEMPLATE1 \
    -
    247  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE1& b, const T& c) \
    -
    248  { \
    -
    249  return FUNCTION(a(), b(), c); \
    -
    250  } \
    -
    251  GLM_SWIZZLE_TEMPLATE1 \
    -
    252  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const typename S0::vec_type& b, const T& c)\
    -
    253  { \
    -
    254  return FUNCTION(a(), b, c); \
    -
    255  } \
    -
    256  GLM_SWIZZLE_TEMPLATE1 \
    -
    257  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const typename V& a, const GLM_SWIZZLE_TYPE1& b, const T& c) \
    -
    258  { \
    -
    259  return FUNCTION(a, b(), c); \
    -
    260  }
    -
    261 
    -
    262 }//namespace detail
    -
    263 }//namespace glm
    -
    264 
    -
    265 namespace glm
    -
    266 {
    -
    267  namespace detail
    -
    268  {
    -
    269  GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(-)
    -
    270  GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(*)
    -
    271  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(+)
    -
    272  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(-)
    -
    273  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(*)
    -
    274  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(/)
    -
    275  }
    -
    276 
    -
    277  //
    -
    278  // Swizzles are distinct types from the unswizzled type. The below macros will
    -
    279  // provide template specializations for the swizzle types for the given functions
    -
    280  // so that the compiler does not have any ambiguity to choosing how to handle
    -
    281  // the function.
    -
    282  //
    -
    283  // The alternative is to use the operator()() when calling the function in order
    -
    284  // to explicitly convert the swizzled type to the unswizzled type.
    -
    285  //
    -
    286 
    -
    287  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, abs);
    -
    288  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, acos);
    -
    289  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, acosh);
    -
    290  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, all);
    -
    291  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, any);
    -
    292 
    -
    293  //GLM_SWIZZLE_FUNCTION_2_ARGS(value_type, dot);
    -
    294  //GLM_SWIZZLE_FUNCTION_2_ARGS(vec_type, cross);
    -
    295  //GLM_SWIZZLE_FUNCTION_2_ARGS(vec_type, step);
    -
    296  //GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR(vec_type, mix);
    -
    297 }
    -
    298 
    -
    299 #define GLM_SWIZZLE2_2_MEMBERS(T, Q, E0,E1) \
    -
    300  struct { detail::_swizzle<2, T, Q, 0,0,-1,-2> E0 ## E0; }; \
    -
    301  struct { detail::_swizzle<2, T, Q, 0,1,-1,-2> E0 ## E1; }; \
    -
    302  struct { detail::_swizzle<2, T, Q, 1,0,-1,-2> E1 ## E0; }; \
    -
    303  struct { detail::_swizzle<2, T, Q, 1,1,-1,-2> E1 ## E1; };
    -
    304 
    -
    305 #define GLM_SWIZZLE2_3_MEMBERS(T, Q, E0,E1) \
    -
    306  struct { detail::_swizzle<3,T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    -
    307  struct { detail::_swizzle<3,T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    -
    308  struct { detail::_swizzle<3,T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    -
    309  struct { detail::_swizzle<3,T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    -
    310  struct { detail::_swizzle<3,T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    -
    311  struct { detail::_swizzle<3,T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    -
    312  struct { detail::_swizzle<3,T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    -
    313  struct { detail::_swizzle<3,T, Q, 1,1,1,-1> E1 ## E1 ## E1; };
    -
    314 
    -
    315 #define GLM_SWIZZLE2_4_MEMBERS(T, Q, E0,E1) \
    -
    316  struct { detail::_swizzle<4,T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    -
    317  struct { detail::_swizzle<4,T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    -
    318  struct { detail::_swizzle<4,T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    -
    319  struct { detail::_swizzle<4,T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    -
    320  struct { detail::_swizzle<4,T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    -
    321  struct { detail::_swizzle<4,T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    -
    322  struct { detail::_swizzle<4,T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    -
    323  struct { detail::_swizzle<4,T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    -
    324  struct { detail::_swizzle<4,T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    -
    325  struct { detail::_swizzle<4,T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    -
    326  struct { detail::_swizzle<4,T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    -
    327  struct { detail::_swizzle<4,T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    -
    328  struct { detail::_swizzle<4,T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    -
    329  struct { detail::_swizzle<4,T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    -
    330  struct { detail::_swizzle<4,T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    -
    331  struct { detail::_swizzle<4,T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; };
    -
    332 
    -
    333 #define GLM_SWIZZLE3_2_MEMBERS(T, Q, E0,E1,E2) \
    -
    334  struct { detail::_swizzle<2,T, Q, 0,0,-1,-2> E0 ## E0; }; \
    -
    335  struct { detail::_swizzle<2,T, Q, 0,1,-1,-2> E0 ## E1; }; \
    -
    336  struct { detail::_swizzle<2,T, Q, 0,2,-1,-2> E0 ## E2; }; \
    -
    337  struct { detail::_swizzle<2,T, Q, 1,0,-1,-2> E1 ## E0; }; \
    -
    338  struct { detail::_swizzle<2,T, Q, 1,1,-1,-2> E1 ## E1; }; \
    -
    339  struct { detail::_swizzle<2,T, Q, 1,2,-1,-2> E1 ## E2; }; \
    -
    340  struct { detail::_swizzle<2,T, Q, 2,0,-1,-2> E2 ## E0; }; \
    -
    341  struct { detail::_swizzle<2,T, Q, 2,1,-1,-2> E2 ## E1; }; \
    -
    342  struct { detail::_swizzle<2,T, Q, 2,2,-1,-2> E2 ## E2; };
    -
    343 
    -
    344 #define GLM_SWIZZLE3_3_MEMBERS(T, Q ,E0,E1,E2) \
    -
    345  struct { detail::_swizzle<3, T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    -
    346  struct { detail::_swizzle<3, T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    -
    347  struct { detail::_swizzle<3, T, Q, 0,0,2,-1> E0 ## E0 ## E2; }; \
    -
    348  struct { detail::_swizzle<3, T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    -
    349  struct { detail::_swizzle<3, T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    -
    350  struct { detail::_swizzle<3, T, Q, 0,1,2,-1> E0 ## E1 ## E2; }; \
    -
    351  struct { detail::_swizzle<3, T, Q, 0,2,0,-1> E0 ## E2 ## E0; }; \
    -
    352  struct { detail::_swizzle<3, T, Q, 0,2,1,-1> E0 ## E2 ## E1; }; \
    -
    353  struct { detail::_swizzle<3, T, Q, 0,2,2,-1> E0 ## E2 ## E2; }; \
    -
    354  struct { detail::_swizzle<3, T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    -
    355  struct { detail::_swizzle<3, T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    -
    356  struct { detail::_swizzle<3, T, Q, 1,0,2,-1> E1 ## E0 ## E2; }; \
    -
    357  struct { detail::_swizzle<3, T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    -
    358  struct { detail::_swizzle<3, T, Q, 1,1,1,-1> E1 ## E1 ## E1; }; \
    -
    359  struct { detail::_swizzle<3, T, Q, 1,1,2,-1> E1 ## E1 ## E2; }; \
    -
    360  struct { detail::_swizzle<3, T, Q, 1,2,0,-1> E1 ## E2 ## E0; }; \
    -
    361  struct { detail::_swizzle<3, T, Q, 1,2,1,-1> E1 ## E2 ## E1; }; \
    -
    362  struct { detail::_swizzle<3, T, Q, 1,2,2,-1> E1 ## E2 ## E2; }; \
    -
    363  struct { detail::_swizzle<3, T, Q, 2,0,0,-1> E2 ## E0 ## E0; }; \
    -
    364  struct { detail::_swizzle<3, T, Q, 2,0,1,-1> E2 ## E0 ## E1; }; \
    -
    365  struct { detail::_swizzle<3, T, Q, 2,0,2,-1> E2 ## E0 ## E2; }; \
    -
    366  struct { detail::_swizzle<3, T, Q, 2,1,0,-1> E2 ## E1 ## E0; }; \
    -
    367  struct { detail::_swizzle<3, T, Q, 2,1,1,-1> E2 ## E1 ## E1; }; \
    -
    368  struct { detail::_swizzle<3, T, Q, 2,1,2,-1> E2 ## E1 ## E2; }; \
    -
    369  struct { detail::_swizzle<3, T, Q, 2,2,0,-1> E2 ## E2 ## E0; }; \
    -
    370  struct { detail::_swizzle<3, T, Q, 2,2,1,-1> E2 ## E2 ## E1; }; \
    -
    371  struct { detail::_swizzle<3, T, Q, 2,2,2,-1> E2 ## E2 ## E2; };
    -
    372 
    -
    373 #define GLM_SWIZZLE3_4_MEMBERS(T, Q, E0,E1,E2) \
    -
    374  struct { detail::_swizzle<4,T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    -
    375  struct { detail::_swizzle<4,T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    -
    376  struct { detail::_swizzle<4,T, Q, 0,0,0,2> E0 ## E0 ## E0 ## E2; }; \
    -
    377  struct { detail::_swizzle<4,T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    -
    378  struct { detail::_swizzle<4,T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    -
    379  struct { detail::_swizzle<4,T, Q, 0,0,1,2> E0 ## E0 ## E1 ## E2; }; \
    -
    380  struct { detail::_swizzle<4,T, Q, 0,0,2,0> E0 ## E0 ## E2 ## E0; }; \
    -
    381  struct { detail::_swizzle<4,T, Q, 0,0,2,1> E0 ## E0 ## E2 ## E1; }; \
    -
    382  struct { detail::_swizzle<4,T, Q, 0,0,2,2> E0 ## E0 ## E2 ## E2; }; \
    -
    383  struct { detail::_swizzle<4,T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    -
    384  struct { detail::_swizzle<4,T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    -
    385  struct { detail::_swizzle<4,T, Q, 0,1,0,2> E0 ## E1 ## E0 ## E2; }; \
    -
    386  struct { detail::_swizzle<4,T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    -
    387  struct { detail::_swizzle<4,T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    -
    388  struct { detail::_swizzle<4,T, Q, 0,1,1,2> E0 ## E1 ## E1 ## E2; }; \
    -
    389  struct { detail::_swizzle<4,T, Q, 0,1,2,0> E0 ## E1 ## E2 ## E0; }; \
    -
    390  struct { detail::_swizzle<4,T, Q, 0,1,2,1> E0 ## E1 ## E2 ## E1; }; \
    -
    391  struct { detail::_swizzle<4,T, Q, 0,1,2,2> E0 ## E1 ## E2 ## E2; }; \
    -
    392  struct { detail::_swizzle<4,T, Q, 0,2,0,0> E0 ## E2 ## E0 ## E0; }; \
    -
    393  struct { detail::_swizzle<4,T, Q, 0,2,0,1> E0 ## E2 ## E0 ## E1; }; \
    -
    394  struct { detail::_swizzle<4,T, Q, 0,2,0,2> E0 ## E2 ## E0 ## E2; }; \
    -
    395  struct { detail::_swizzle<4,T, Q, 0,2,1,0> E0 ## E2 ## E1 ## E0; }; \
    -
    396  struct { detail::_swizzle<4,T, Q, 0,2,1,1> E0 ## E2 ## E1 ## E1; }; \
    -
    397  struct { detail::_swizzle<4,T, Q, 0,2,1,2> E0 ## E2 ## E1 ## E2; }; \
    -
    398  struct { detail::_swizzle<4,T, Q, 0,2,2,0> E0 ## E2 ## E2 ## E0; }; \
    -
    399  struct { detail::_swizzle<4,T, Q, 0,2,2,1> E0 ## E2 ## E2 ## E1; }; \
    -
    400  struct { detail::_swizzle<4,T, Q, 0,2,2,2> E0 ## E2 ## E2 ## E2; }; \
    -
    401  struct { detail::_swizzle<4,T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    -
    402  struct { detail::_swizzle<4,T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    -
    403  struct { detail::_swizzle<4,T, Q, 1,0,0,2> E1 ## E0 ## E0 ## E2; }; \
    -
    404  struct { detail::_swizzle<4,T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    -
    405  struct { detail::_swizzle<4,T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    -
    406  struct { detail::_swizzle<4,T, Q, 1,0,1,2> E1 ## E0 ## E1 ## E2; }; \
    -
    407  struct { detail::_swizzle<4,T, Q, 1,0,2,0> E1 ## E0 ## E2 ## E0; }; \
    -
    408  struct { detail::_swizzle<4,T, Q, 1,0,2,1> E1 ## E0 ## E2 ## E1; }; \
    -
    409  struct { detail::_swizzle<4,T, Q, 1,0,2,2> E1 ## E0 ## E2 ## E2; }; \
    -
    410  struct { detail::_swizzle<4,T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    -
    411  struct { detail::_swizzle<4,T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    -
    412  struct { detail::_swizzle<4,T, Q, 1,1,0,2> E1 ## E1 ## E0 ## E2; }; \
    -
    413  struct { detail::_swizzle<4,T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    -
    414  struct { detail::_swizzle<4,T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; }; \
    -
    415  struct { detail::_swizzle<4,T, Q, 1,1,1,2> E1 ## E1 ## E1 ## E2; }; \
    -
    416  struct { detail::_swizzle<4,T, Q, 1,1,2,0> E1 ## E1 ## E2 ## E0; }; \
    -
    417  struct { detail::_swizzle<4,T, Q, 1,1,2,1> E1 ## E1 ## E2 ## E1; }; \
    -
    418  struct { detail::_swizzle<4,T, Q, 1,1,2,2> E1 ## E1 ## E2 ## E2; }; \
    -
    419  struct { detail::_swizzle<4,T, Q, 1,2,0,0> E1 ## E2 ## E0 ## E0; }; \
    -
    420  struct { detail::_swizzle<4,T, Q, 1,2,0,1> E1 ## E2 ## E0 ## E1; }; \
    -
    421  struct { detail::_swizzle<4,T, Q, 1,2,0,2> E1 ## E2 ## E0 ## E2; }; \
    -
    422  struct { detail::_swizzle<4,T, Q, 1,2,1,0> E1 ## E2 ## E1 ## E0; }; \
    -
    423  struct { detail::_swizzle<4,T, Q, 1,2,1,1> E1 ## E2 ## E1 ## E1; }; \
    -
    424  struct { detail::_swizzle<4,T, Q, 1,2,1,2> E1 ## E2 ## E1 ## E2; }; \
    -
    425  struct { detail::_swizzle<4,T, Q, 1,2,2,0> E1 ## E2 ## E2 ## E0; }; \
    -
    426  struct { detail::_swizzle<4,T, Q, 1,2,2,1> E1 ## E2 ## E2 ## E1; }; \
    -
    427  struct { detail::_swizzle<4,T, Q, 1,2,2,2> E1 ## E2 ## E2 ## E2; }; \
    -
    428  struct { detail::_swizzle<4,T, Q, 2,0,0,0> E2 ## E0 ## E0 ## E0; }; \
    -
    429  struct { detail::_swizzle<4,T, Q, 2,0,0,1> E2 ## E0 ## E0 ## E1; }; \
    -
    430  struct { detail::_swizzle<4,T, Q, 2,0,0,2> E2 ## E0 ## E0 ## E2; }; \
    -
    431  struct { detail::_swizzle<4,T, Q, 2,0,1,0> E2 ## E0 ## E1 ## E0; }; \
    -
    432  struct { detail::_swizzle<4,T, Q, 2,0,1,1> E2 ## E0 ## E1 ## E1; }; \
    -
    433  struct { detail::_swizzle<4,T, Q, 2,0,1,2> E2 ## E0 ## E1 ## E2; }; \
    -
    434  struct { detail::_swizzle<4,T, Q, 2,0,2,0> E2 ## E0 ## E2 ## E0; }; \
    -
    435  struct { detail::_swizzle<4,T, Q, 2,0,2,1> E2 ## E0 ## E2 ## E1; }; \
    -
    436  struct { detail::_swizzle<4,T, Q, 2,0,2,2> E2 ## E0 ## E2 ## E2; }; \
    -
    437  struct { detail::_swizzle<4,T, Q, 2,1,0,0> E2 ## E1 ## E0 ## E0; }; \
    -
    438  struct { detail::_swizzle<4,T, Q, 2,1,0,1> E2 ## E1 ## E0 ## E1; }; \
    -
    439  struct { detail::_swizzle<4,T, Q, 2,1,0,2> E2 ## E1 ## E0 ## E2; }; \
    -
    440  struct { detail::_swizzle<4,T, Q, 2,1,1,0> E2 ## E1 ## E1 ## E0; }; \
    -
    441  struct { detail::_swizzle<4,T, Q, 2,1,1,1> E2 ## E1 ## E1 ## E1; }; \
    -
    442  struct { detail::_swizzle<4,T, Q, 2,1,1,2> E2 ## E1 ## E1 ## E2; }; \
    -
    443  struct { detail::_swizzle<4,T, Q, 2,1,2,0> E2 ## E1 ## E2 ## E0; }; \
    -
    444  struct { detail::_swizzle<4,T, Q, 2,1,2,1> E2 ## E1 ## E2 ## E1; }; \
    -
    445  struct { detail::_swizzle<4,T, Q, 2,1,2,2> E2 ## E1 ## E2 ## E2; }; \
    -
    446  struct { detail::_swizzle<4,T, Q, 2,2,0,0> E2 ## E2 ## E0 ## E0; }; \
    -
    447  struct { detail::_swizzle<4,T, Q, 2,2,0,1> E2 ## E2 ## E0 ## E1; }; \
    -
    448  struct { detail::_swizzle<4,T, Q, 2,2,0,2> E2 ## E2 ## E0 ## E2; }; \
    -
    449  struct { detail::_swizzle<4,T, Q, 2,2,1,0> E2 ## E2 ## E1 ## E0; }; \
    -
    450  struct { detail::_swizzle<4,T, Q, 2,2,1,1> E2 ## E2 ## E1 ## E1; }; \
    -
    451  struct { detail::_swizzle<4,T, Q, 2,2,1,2> E2 ## E2 ## E1 ## E2; }; \
    -
    452  struct { detail::_swizzle<4,T, Q, 2,2,2,0> E2 ## E2 ## E2 ## E0; }; \
    -
    453  struct { detail::_swizzle<4,T, Q, 2,2,2,1> E2 ## E2 ## E2 ## E1; }; \
    -
    454  struct { detail::_swizzle<4,T, Q, 2,2,2,2> E2 ## E2 ## E2 ## E2; };
    -
    455 
    -
    456 #define GLM_SWIZZLE4_2_MEMBERS(T, Q, E0,E1,E2,E3) \
    -
    457  struct { detail::_swizzle<2,T, Q, 0,0,-1,-2> E0 ## E0; }; \
    -
    458  struct { detail::_swizzle<2,T, Q, 0,1,-1,-2> E0 ## E1; }; \
    -
    459  struct { detail::_swizzle<2,T, Q, 0,2,-1,-2> E0 ## E2; }; \
    -
    460  struct { detail::_swizzle<2,T, Q, 0,3,-1,-2> E0 ## E3; }; \
    -
    461  struct { detail::_swizzle<2,T, Q, 1,0,-1,-2> E1 ## E0; }; \
    -
    462  struct { detail::_swizzle<2,T, Q, 1,1,-1,-2> E1 ## E1; }; \
    -
    463  struct { detail::_swizzle<2,T, Q, 1,2,-1,-2> E1 ## E2; }; \
    -
    464  struct { detail::_swizzle<2,T, Q, 1,3,-1,-2> E1 ## E3; }; \
    -
    465  struct { detail::_swizzle<2,T, Q, 2,0,-1,-2> E2 ## E0; }; \
    -
    466  struct { detail::_swizzle<2,T, Q, 2,1,-1,-2> E2 ## E1; }; \
    -
    467  struct { detail::_swizzle<2,T, Q, 2,2,-1,-2> E2 ## E2; }; \
    -
    468  struct { detail::_swizzle<2,T, Q, 2,3,-1,-2> E2 ## E3; }; \
    -
    469  struct { detail::_swizzle<2,T, Q, 3,0,-1,-2> E3 ## E0; }; \
    -
    470  struct { detail::_swizzle<2,T, Q, 3,1,-1,-2> E3 ## E1; }; \
    -
    471  struct { detail::_swizzle<2,T, Q, 3,2,-1,-2> E3 ## E2; }; \
    -
    472  struct { detail::_swizzle<2,T, Q, 3,3,-1,-2> E3 ## E3; };
    -
    473 
    -
    474 #define GLM_SWIZZLE4_3_MEMBERS(T, Q, E0,E1,E2,E3) \
    -
    475  struct { detail::_swizzle<3, T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    -
    476  struct { detail::_swizzle<3, T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    -
    477  struct { detail::_swizzle<3, T, Q, 0,0,2,-1> E0 ## E0 ## E2; }; \
    -
    478  struct { detail::_swizzle<3, T, Q, 0,0,3,-1> E0 ## E0 ## E3; }; \
    -
    479  struct { detail::_swizzle<3, T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    -
    480  struct { detail::_swizzle<3, T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    -
    481  struct { detail::_swizzle<3, T, Q, 0,1,2,-1> E0 ## E1 ## E2; }; \
    -
    482  struct { detail::_swizzle<3, T, Q, 0,1,3,-1> E0 ## E1 ## E3; }; \
    -
    483  struct { detail::_swizzle<3, T, Q, 0,2,0,-1> E0 ## E2 ## E0; }; \
    -
    484  struct { detail::_swizzle<3, T, Q, 0,2,1,-1> E0 ## E2 ## E1; }; \
    -
    485  struct { detail::_swizzle<3, T, Q, 0,2,2,-1> E0 ## E2 ## E2; }; \
    -
    486  struct { detail::_swizzle<3, T, Q, 0,2,3,-1> E0 ## E2 ## E3; }; \
    -
    487  struct { detail::_swizzle<3, T, Q, 0,3,0,-1> E0 ## E3 ## E0; }; \
    -
    488  struct { detail::_swizzle<3, T, Q, 0,3,1,-1> E0 ## E3 ## E1; }; \
    -
    489  struct { detail::_swizzle<3, T, Q, 0,3,2,-1> E0 ## E3 ## E2; }; \
    -
    490  struct { detail::_swizzle<3, T, Q, 0,3,3,-1> E0 ## E3 ## E3; }; \
    -
    491  struct { detail::_swizzle<3, T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    -
    492  struct { detail::_swizzle<3, T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    -
    493  struct { detail::_swizzle<3, T, Q, 1,0,2,-1> E1 ## E0 ## E2; }; \
    -
    494  struct { detail::_swizzle<3, T, Q, 1,0,3,-1> E1 ## E0 ## E3; }; \
    -
    495  struct { detail::_swizzle<3, T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    -
    496  struct { detail::_swizzle<3, T, Q, 1,1,1,-1> E1 ## E1 ## E1; }; \
    -
    497  struct { detail::_swizzle<3, T, Q, 1,1,2,-1> E1 ## E1 ## E2; }; \
    -
    498  struct { detail::_swizzle<3, T, Q, 1,1,3,-1> E1 ## E1 ## E3; }; \
    -
    499  struct { detail::_swizzle<3, T, Q, 1,2,0,-1> E1 ## E2 ## E0; }; \
    -
    500  struct { detail::_swizzle<3, T, Q, 1,2,1,-1> E1 ## E2 ## E1; }; \
    -
    501  struct { detail::_swizzle<3, T, Q, 1,2,2,-1> E1 ## E2 ## E2; }; \
    -
    502  struct { detail::_swizzle<3, T, Q, 1,2,3,-1> E1 ## E2 ## E3; }; \
    -
    503  struct { detail::_swizzle<3, T, Q, 1,3,0,-1> E1 ## E3 ## E0; }; \
    -
    504  struct { detail::_swizzle<3, T, Q, 1,3,1,-1> E1 ## E3 ## E1; }; \
    -
    505  struct { detail::_swizzle<3, T, Q, 1,3,2,-1> E1 ## E3 ## E2; }; \
    -
    506  struct { detail::_swizzle<3, T, Q, 1,3,3,-1> E1 ## E3 ## E3; }; \
    -
    507  struct { detail::_swizzle<3, T, Q, 2,0,0,-1> E2 ## E0 ## E0; }; \
    -
    508  struct { detail::_swizzle<3, T, Q, 2,0,1,-1> E2 ## E0 ## E1; }; \
    -
    509  struct { detail::_swizzle<3, T, Q, 2,0,2,-1> E2 ## E0 ## E2; }; \
    -
    510  struct { detail::_swizzle<3, T, Q, 2,0,3,-1> E2 ## E0 ## E3; }; \
    -
    511  struct { detail::_swizzle<3, T, Q, 2,1,0,-1> E2 ## E1 ## E0; }; \
    -
    512  struct { detail::_swizzle<3, T, Q, 2,1,1,-1> E2 ## E1 ## E1; }; \
    -
    513  struct { detail::_swizzle<3, T, Q, 2,1,2,-1> E2 ## E1 ## E2; }; \
    -
    514  struct { detail::_swizzle<3, T, Q, 2,1,3,-1> E2 ## E1 ## E3; }; \
    -
    515  struct { detail::_swizzle<3, T, Q, 2,2,0,-1> E2 ## E2 ## E0; }; \
    -
    516  struct { detail::_swizzle<3, T, Q, 2,2,1,-1> E2 ## E2 ## E1; }; \
    -
    517  struct { detail::_swizzle<3, T, Q, 2,2,2,-1> E2 ## E2 ## E2; }; \
    -
    518  struct { detail::_swizzle<3, T, Q, 2,2,3,-1> E2 ## E2 ## E3; }; \
    -
    519  struct { detail::_swizzle<3, T, Q, 2,3,0,-1> E2 ## E3 ## E0; }; \
    -
    520  struct { detail::_swizzle<3, T, Q, 2,3,1,-1> E2 ## E3 ## E1; }; \
    -
    521  struct { detail::_swizzle<3, T, Q, 2,3,2,-1> E2 ## E3 ## E2; }; \
    -
    522  struct { detail::_swizzle<3, T, Q, 2,3,3,-1> E2 ## E3 ## E3; }; \
    -
    523  struct { detail::_swizzle<3, T, Q, 3,0,0,-1> E3 ## E0 ## E0; }; \
    -
    524  struct { detail::_swizzle<3, T, Q, 3,0,1,-1> E3 ## E0 ## E1; }; \
    -
    525  struct { detail::_swizzle<3, T, Q, 3,0,2,-1> E3 ## E0 ## E2; }; \
    -
    526  struct { detail::_swizzle<3, T, Q, 3,0,3,-1> E3 ## E0 ## E3; }; \
    -
    527  struct { detail::_swizzle<3, T, Q, 3,1,0,-1> E3 ## E1 ## E0; }; \
    -
    528  struct { detail::_swizzle<3, T, Q, 3,1,1,-1> E3 ## E1 ## E1; }; \
    -
    529  struct { detail::_swizzle<3, T, Q, 3,1,2,-1> E3 ## E1 ## E2; }; \
    -
    530  struct { detail::_swizzle<3, T, Q, 3,1,3,-1> E3 ## E1 ## E3; }; \
    -
    531  struct { detail::_swizzle<3, T, Q, 3,2,0,-1> E3 ## E2 ## E0; }; \
    -
    532  struct { detail::_swizzle<3, T, Q, 3,2,1,-1> E3 ## E2 ## E1; }; \
    -
    533  struct { detail::_swizzle<3, T, Q, 3,2,2,-1> E3 ## E2 ## E2; }; \
    -
    534  struct { detail::_swizzle<3, T, Q, 3,2,3,-1> E3 ## E2 ## E3; }; \
    -
    535  struct { detail::_swizzle<3, T, Q, 3,3,0,-1> E3 ## E3 ## E0; }; \
    -
    536  struct { detail::_swizzle<3, T, Q, 3,3,1,-1> E3 ## E3 ## E1; }; \
    -
    537  struct { detail::_swizzle<3, T, Q, 3,3,2,-1> E3 ## E3 ## E2; }; \
    -
    538  struct { detail::_swizzle<3, T, Q, 3,3,3,-1> E3 ## E3 ## E3; };
    -
    539 
    -
    540 #define GLM_SWIZZLE4_4_MEMBERS(T, Q, E0,E1,E2,E3) \
    -
    541  struct { detail::_swizzle<4, T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    -
    542  struct { detail::_swizzle<4, T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    -
    543  struct { detail::_swizzle<4, T, Q, 0,0,0,2> E0 ## E0 ## E0 ## E2; }; \
    -
    544  struct { detail::_swizzle<4, T, Q, 0,0,0,3> E0 ## E0 ## E0 ## E3; }; \
    -
    545  struct { detail::_swizzle<4, T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    -
    546  struct { detail::_swizzle<4, T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    -
    547  struct { detail::_swizzle<4, T, Q, 0,0,1,2> E0 ## E0 ## E1 ## E2; }; \
    -
    548  struct { detail::_swizzle<4, T, Q, 0,0,1,3> E0 ## E0 ## E1 ## E3; }; \
    -
    549  struct { detail::_swizzle<4, T, Q, 0,0,2,0> E0 ## E0 ## E2 ## E0; }; \
    -
    550  struct { detail::_swizzle<4, T, Q, 0,0,2,1> E0 ## E0 ## E2 ## E1; }; \
    -
    551  struct { detail::_swizzle<4, T, Q, 0,0,2,2> E0 ## E0 ## E2 ## E2; }; \
    -
    552  struct { detail::_swizzle<4, T, Q, 0,0,2,3> E0 ## E0 ## E2 ## E3; }; \
    -
    553  struct { detail::_swizzle<4, T, Q, 0,0,3,0> E0 ## E0 ## E3 ## E0; }; \
    -
    554  struct { detail::_swizzle<4, T, Q, 0,0,3,1> E0 ## E0 ## E3 ## E1; }; \
    -
    555  struct { detail::_swizzle<4, T, Q, 0,0,3,2> E0 ## E0 ## E3 ## E2; }; \
    -
    556  struct { detail::_swizzle<4, T, Q, 0,0,3,3> E0 ## E0 ## E3 ## E3; }; \
    -
    557  struct { detail::_swizzle<4, T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    -
    558  struct { detail::_swizzle<4, T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    -
    559  struct { detail::_swizzle<4, T, Q, 0,1,0,2> E0 ## E1 ## E0 ## E2; }; \
    -
    560  struct { detail::_swizzle<4, T, Q, 0,1,0,3> E0 ## E1 ## E0 ## E3; }; \
    -
    561  struct { detail::_swizzle<4, T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    -
    562  struct { detail::_swizzle<4, T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    -
    563  struct { detail::_swizzle<4, T, Q, 0,1,1,2> E0 ## E1 ## E1 ## E2; }; \
    -
    564  struct { detail::_swizzle<4, T, Q, 0,1,1,3> E0 ## E1 ## E1 ## E3; }; \
    -
    565  struct { detail::_swizzle<4, T, Q, 0,1,2,0> E0 ## E1 ## E2 ## E0; }; \
    -
    566  struct { detail::_swizzle<4, T, Q, 0,1,2,1> E0 ## E1 ## E2 ## E1; }; \
    -
    567  struct { detail::_swizzle<4, T, Q, 0,1,2,2> E0 ## E1 ## E2 ## E2; }; \
    -
    568  struct { detail::_swizzle<4, T, Q, 0,1,2,3> E0 ## E1 ## E2 ## E3; }; \
    -
    569  struct { detail::_swizzle<4, T, Q, 0,1,3,0> E0 ## E1 ## E3 ## E0; }; \
    -
    570  struct { detail::_swizzle<4, T, Q, 0,1,3,1> E0 ## E1 ## E3 ## E1; }; \
    -
    571  struct { detail::_swizzle<4, T, Q, 0,1,3,2> E0 ## E1 ## E3 ## E2; }; \
    -
    572  struct { detail::_swizzle<4, T, Q, 0,1,3,3> E0 ## E1 ## E3 ## E3; }; \
    -
    573  struct { detail::_swizzle<4, T, Q, 0,2,0,0> E0 ## E2 ## E0 ## E0; }; \
    -
    574  struct { detail::_swizzle<4, T, Q, 0,2,0,1> E0 ## E2 ## E0 ## E1; }; \
    -
    575  struct { detail::_swizzle<4, T, Q, 0,2,0,2> E0 ## E2 ## E0 ## E2; }; \
    -
    576  struct { detail::_swizzle<4, T, Q, 0,2,0,3> E0 ## E2 ## E0 ## E3; }; \
    -
    577  struct { detail::_swizzle<4, T, Q, 0,2,1,0> E0 ## E2 ## E1 ## E0; }; \
    -
    578  struct { detail::_swizzle<4, T, Q, 0,2,1,1> E0 ## E2 ## E1 ## E1; }; \
    -
    579  struct { detail::_swizzle<4, T, Q, 0,2,1,2> E0 ## E2 ## E1 ## E2; }; \
    -
    580  struct { detail::_swizzle<4, T, Q, 0,2,1,3> E0 ## E2 ## E1 ## E3; }; \
    -
    581  struct { detail::_swizzle<4, T, Q, 0,2,2,0> E0 ## E2 ## E2 ## E0; }; \
    -
    582  struct { detail::_swizzle<4, T, Q, 0,2,2,1> E0 ## E2 ## E2 ## E1; }; \
    -
    583  struct { detail::_swizzle<4, T, Q, 0,2,2,2> E0 ## E2 ## E2 ## E2; }; \
    -
    584  struct { detail::_swizzle<4, T, Q, 0,2,2,3> E0 ## E2 ## E2 ## E3; }; \
    -
    585  struct { detail::_swizzle<4, T, Q, 0,2,3,0> E0 ## E2 ## E3 ## E0; }; \
    -
    586  struct { detail::_swizzle<4, T, Q, 0,2,3,1> E0 ## E2 ## E3 ## E1; }; \
    -
    587  struct { detail::_swizzle<4, T, Q, 0,2,3,2> E0 ## E2 ## E3 ## E2; }; \
    -
    588  struct { detail::_swizzle<4, T, Q, 0,2,3,3> E0 ## E2 ## E3 ## E3; }; \
    -
    589  struct { detail::_swizzle<4, T, Q, 0,3,0,0> E0 ## E3 ## E0 ## E0; }; \
    -
    590  struct { detail::_swizzle<4, T, Q, 0,3,0,1> E0 ## E3 ## E0 ## E1; }; \
    -
    591  struct { detail::_swizzle<4, T, Q, 0,3,0,2> E0 ## E3 ## E0 ## E2; }; \
    -
    592  struct { detail::_swizzle<4, T, Q, 0,3,0,3> E0 ## E3 ## E0 ## E3; }; \
    -
    593  struct { detail::_swizzle<4, T, Q, 0,3,1,0> E0 ## E3 ## E1 ## E0; }; \
    -
    594  struct { detail::_swizzle<4, T, Q, 0,3,1,1> E0 ## E3 ## E1 ## E1; }; \
    -
    595  struct { detail::_swizzle<4, T, Q, 0,3,1,2> E0 ## E3 ## E1 ## E2; }; \
    -
    596  struct { detail::_swizzle<4, T, Q, 0,3,1,3> E0 ## E3 ## E1 ## E3; }; \
    -
    597  struct { detail::_swizzle<4, T, Q, 0,3,2,0> E0 ## E3 ## E2 ## E0; }; \
    -
    598  struct { detail::_swizzle<4, T, Q, 0,3,2,1> E0 ## E3 ## E2 ## E1; }; \
    -
    599  struct { detail::_swizzle<4, T, Q, 0,3,2,2> E0 ## E3 ## E2 ## E2; }; \
    -
    600  struct { detail::_swizzle<4, T, Q, 0,3,2,3> E0 ## E3 ## E2 ## E3; }; \
    -
    601  struct { detail::_swizzle<4, T, Q, 0,3,3,0> E0 ## E3 ## E3 ## E0; }; \
    -
    602  struct { detail::_swizzle<4, T, Q, 0,3,3,1> E0 ## E3 ## E3 ## E1; }; \
    -
    603  struct { detail::_swizzle<4, T, Q, 0,3,3,2> E0 ## E3 ## E3 ## E2; }; \
    -
    604  struct { detail::_swizzle<4, T, Q, 0,3,3,3> E0 ## E3 ## E3 ## E3; }; \
    -
    605  struct { detail::_swizzle<4, T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    -
    606  struct { detail::_swizzle<4, T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    -
    607  struct { detail::_swizzle<4, T, Q, 1,0,0,2> E1 ## E0 ## E0 ## E2; }; \
    -
    608  struct { detail::_swizzle<4, T, Q, 1,0,0,3> E1 ## E0 ## E0 ## E3; }; \
    -
    609  struct { detail::_swizzle<4, T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    -
    610  struct { detail::_swizzle<4, T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    -
    611  struct { detail::_swizzle<4, T, Q, 1,0,1,2> E1 ## E0 ## E1 ## E2; }; \
    -
    612  struct { detail::_swizzle<4, T, Q, 1,0,1,3> E1 ## E0 ## E1 ## E3; }; \
    -
    613  struct { detail::_swizzle<4, T, Q, 1,0,2,0> E1 ## E0 ## E2 ## E0; }; \
    -
    614  struct { detail::_swizzle<4, T, Q, 1,0,2,1> E1 ## E0 ## E2 ## E1; }; \
    -
    615  struct { detail::_swizzle<4, T, Q, 1,0,2,2> E1 ## E0 ## E2 ## E2; }; \
    -
    616  struct { detail::_swizzle<4, T, Q, 1,0,2,3> E1 ## E0 ## E2 ## E3; }; \
    -
    617  struct { detail::_swizzle<4, T, Q, 1,0,3,0> E1 ## E0 ## E3 ## E0; }; \
    -
    618  struct { detail::_swizzle<4, T, Q, 1,0,3,1> E1 ## E0 ## E3 ## E1; }; \
    -
    619  struct { detail::_swizzle<4, T, Q, 1,0,3,2> E1 ## E0 ## E3 ## E2; }; \
    -
    620  struct { detail::_swizzle<4, T, Q, 1,0,3,3> E1 ## E0 ## E3 ## E3; }; \
    -
    621  struct { detail::_swizzle<4, T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    -
    622  struct { detail::_swizzle<4, T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    -
    623  struct { detail::_swizzle<4, T, Q, 1,1,0,2> E1 ## E1 ## E0 ## E2; }; \
    -
    624  struct { detail::_swizzle<4, T, Q, 1,1,0,3> E1 ## E1 ## E0 ## E3; }; \
    -
    625  struct { detail::_swizzle<4, T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    -
    626  struct { detail::_swizzle<4, T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; }; \
    -
    627  struct { detail::_swizzle<4, T, Q, 1,1,1,2> E1 ## E1 ## E1 ## E2; }; \
    -
    628  struct { detail::_swizzle<4, T, Q, 1,1,1,3> E1 ## E1 ## E1 ## E3; }; \
    -
    629  struct { detail::_swizzle<4, T, Q, 1,1,2,0> E1 ## E1 ## E2 ## E0; }; \
    -
    630  struct { detail::_swizzle<4, T, Q, 1,1,2,1> E1 ## E1 ## E2 ## E1; }; \
    -
    631  struct { detail::_swizzle<4, T, Q, 1,1,2,2> E1 ## E1 ## E2 ## E2; }; \
    -
    632  struct { detail::_swizzle<4, T, Q, 1,1,2,3> E1 ## E1 ## E2 ## E3; }; \
    -
    633  struct { detail::_swizzle<4, T, Q, 1,1,3,0> E1 ## E1 ## E3 ## E0; }; \
    -
    634  struct { detail::_swizzle<4, T, Q, 1,1,3,1> E1 ## E1 ## E3 ## E1; }; \
    -
    635  struct { detail::_swizzle<4, T, Q, 1,1,3,2> E1 ## E1 ## E3 ## E2; }; \
    -
    636  struct { detail::_swizzle<4, T, Q, 1,1,3,3> E1 ## E1 ## E3 ## E3; }; \
    -
    637  struct { detail::_swizzle<4, T, Q, 1,2,0,0> E1 ## E2 ## E0 ## E0; }; \
    -
    638  struct { detail::_swizzle<4, T, Q, 1,2,0,1> E1 ## E2 ## E0 ## E1; }; \
    -
    639  struct { detail::_swizzle<4, T, Q, 1,2,0,2> E1 ## E2 ## E0 ## E2; }; \
    -
    640  struct { detail::_swizzle<4, T, Q, 1,2,0,3> E1 ## E2 ## E0 ## E3; }; \
    -
    641  struct { detail::_swizzle<4, T, Q, 1,2,1,0> E1 ## E2 ## E1 ## E0; }; \
    -
    642  struct { detail::_swizzle<4, T, Q, 1,2,1,1> E1 ## E2 ## E1 ## E1; }; \
    -
    643  struct { detail::_swizzle<4, T, Q, 1,2,1,2> E1 ## E2 ## E1 ## E2; }; \
    -
    644  struct { detail::_swizzle<4, T, Q, 1,2,1,3> E1 ## E2 ## E1 ## E3; }; \
    -
    645  struct { detail::_swizzle<4, T, Q, 1,2,2,0> E1 ## E2 ## E2 ## E0; }; \
    -
    646  struct { detail::_swizzle<4, T, Q, 1,2,2,1> E1 ## E2 ## E2 ## E1; }; \
    -
    647  struct { detail::_swizzle<4, T, Q, 1,2,2,2> E1 ## E2 ## E2 ## E2; }; \
    -
    648  struct { detail::_swizzle<4, T, Q, 1,2,2,3> E1 ## E2 ## E2 ## E3; }; \
    -
    649  struct { detail::_swizzle<4, T, Q, 1,2,3,0> E1 ## E2 ## E3 ## E0; }; \
    -
    650  struct { detail::_swizzle<4, T, Q, 1,2,3,1> E1 ## E2 ## E3 ## E1; }; \
    -
    651  struct { detail::_swizzle<4, T, Q, 1,2,3,2> E1 ## E2 ## E3 ## E2; }; \
    -
    652  struct { detail::_swizzle<4, T, Q, 1,2,3,3> E1 ## E2 ## E3 ## E3; }; \
    -
    653  struct { detail::_swizzle<4, T, Q, 1,3,0,0> E1 ## E3 ## E0 ## E0; }; \
    -
    654  struct { detail::_swizzle<4, T, Q, 1,3,0,1> E1 ## E3 ## E0 ## E1; }; \
    -
    655  struct { detail::_swizzle<4, T, Q, 1,3,0,2> E1 ## E3 ## E0 ## E2; }; \
    -
    656  struct { detail::_swizzle<4, T, Q, 1,3,0,3> E1 ## E3 ## E0 ## E3; }; \
    -
    657  struct { detail::_swizzle<4, T, Q, 1,3,1,0> E1 ## E3 ## E1 ## E0; }; \
    -
    658  struct { detail::_swizzle<4, T, Q, 1,3,1,1> E1 ## E3 ## E1 ## E1; }; \
    -
    659  struct { detail::_swizzle<4, T, Q, 1,3,1,2> E1 ## E3 ## E1 ## E2; }; \
    -
    660  struct { detail::_swizzle<4, T, Q, 1,3,1,3> E1 ## E3 ## E1 ## E3; }; \
    -
    661  struct { detail::_swizzle<4, T, Q, 1,3,2,0> E1 ## E3 ## E2 ## E0; }; \
    -
    662  struct { detail::_swizzle<4, T, Q, 1,3,2,1> E1 ## E3 ## E2 ## E1; }; \
    -
    663  struct { detail::_swizzle<4, T, Q, 1,3,2,2> E1 ## E3 ## E2 ## E2; }; \
    -
    664  struct { detail::_swizzle<4, T, Q, 1,3,2,3> E1 ## E3 ## E2 ## E3; }; \
    -
    665  struct { detail::_swizzle<4, T, Q, 1,3,3,0> E1 ## E3 ## E3 ## E0; }; \
    -
    666  struct { detail::_swizzle<4, T, Q, 1,3,3,1> E1 ## E3 ## E3 ## E1; }; \
    -
    667  struct { detail::_swizzle<4, T, Q, 1,3,3,2> E1 ## E3 ## E3 ## E2; }; \
    -
    668  struct { detail::_swizzle<4, T, Q, 1,3,3,3> E1 ## E3 ## E3 ## E3; }; \
    -
    669  struct { detail::_swizzle<4, T, Q, 2,0,0,0> E2 ## E0 ## E0 ## E0; }; \
    -
    670  struct { detail::_swizzle<4, T, Q, 2,0,0,1> E2 ## E0 ## E0 ## E1; }; \
    -
    671  struct { detail::_swizzle<4, T, Q, 2,0,0,2> E2 ## E0 ## E0 ## E2; }; \
    -
    672  struct { detail::_swizzle<4, T, Q, 2,0,0,3> E2 ## E0 ## E0 ## E3; }; \
    -
    673  struct { detail::_swizzle<4, T, Q, 2,0,1,0> E2 ## E0 ## E1 ## E0; }; \
    -
    674  struct { detail::_swizzle<4, T, Q, 2,0,1,1> E2 ## E0 ## E1 ## E1; }; \
    -
    675  struct { detail::_swizzle<4, T, Q, 2,0,1,2> E2 ## E0 ## E1 ## E2; }; \
    -
    676  struct { detail::_swizzle<4, T, Q, 2,0,1,3> E2 ## E0 ## E1 ## E3; }; \
    -
    677  struct { detail::_swizzle<4, T, Q, 2,0,2,0> E2 ## E0 ## E2 ## E0; }; \
    -
    678  struct { detail::_swizzle<4, T, Q, 2,0,2,1> E2 ## E0 ## E2 ## E1; }; \
    -
    679  struct { detail::_swizzle<4, T, Q, 2,0,2,2> E2 ## E0 ## E2 ## E2; }; \
    -
    680  struct { detail::_swizzle<4, T, Q, 2,0,2,3> E2 ## E0 ## E2 ## E3; }; \
    -
    681  struct { detail::_swizzle<4, T, Q, 2,0,3,0> E2 ## E0 ## E3 ## E0; }; \
    -
    682  struct { detail::_swizzle<4, T, Q, 2,0,3,1> E2 ## E0 ## E3 ## E1; }; \
    -
    683  struct { detail::_swizzle<4, T, Q, 2,0,3,2> E2 ## E0 ## E3 ## E2; }; \
    -
    684  struct { detail::_swizzle<4, T, Q, 2,0,3,3> E2 ## E0 ## E3 ## E3; }; \
    -
    685  struct { detail::_swizzle<4, T, Q, 2,1,0,0> E2 ## E1 ## E0 ## E0; }; \
    -
    686  struct { detail::_swizzle<4, T, Q, 2,1,0,1> E2 ## E1 ## E0 ## E1; }; \
    -
    687  struct { detail::_swizzle<4, T, Q, 2,1,0,2> E2 ## E1 ## E0 ## E2; }; \
    -
    688  struct { detail::_swizzle<4, T, Q, 2,1,0,3> E2 ## E1 ## E0 ## E3; }; \
    -
    689  struct { detail::_swizzle<4, T, Q, 2,1,1,0> E2 ## E1 ## E1 ## E0; }; \
    -
    690  struct { detail::_swizzle<4, T, Q, 2,1,1,1> E2 ## E1 ## E1 ## E1; }; \
    -
    691  struct { detail::_swizzle<4, T, Q, 2,1,1,2> E2 ## E1 ## E1 ## E2; }; \
    -
    692  struct { detail::_swizzle<4, T, Q, 2,1,1,3> E2 ## E1 ## E1 ## E3; }; \
    -
    693  struct { detail::_swizzle<4, T, Q, 2,1,2,0> E2 ## E1 ## E2 ## E0; }; \
    -
    694  struct { detail::_swizzle<4, T, Q, 2,1,2,1> E2 ## E1 ## E2 ## E1; }; \
    -
    695  struct { detail::_swizzle<4, T, Q, 2,1,2,2> E2 ## E1 ## E2 ## E2; }; \
    -
    696  struct { detail::_swizzle<4, T, Q, 2,1,2,3> E2 ## E1 ## E2 ## E3; }; \
    -
    697  struct { detail::_swizzle<4, T, Q, 2,1,3,0> E2 ## E1 ## E3 ## E0; }; \
    -
    698  struct { detail::_swizzle<4, T, Q, 2,1,3,1> E2 ## E1 ## E3 ## E1; }; \
    -
    699  struct { detail::_swizzle<4, T, Q, 2,1,3,2> E2 ## E1 ## E3 ## E2; }; \
    -
    700  struct { detail::_swizzle<4, T, Q, 2,1,3,3> E2 ## E1 ## E3 ## E3; }; \
    -
    701  struct { detail::_swizzle<4, T, Q, 2,2,0,0> E2 ## E2 ## E0 ## E0; }; \
    -
    702  struct { detail::_swizzle<4, T, Q, 2,2,0,1> E2 ## E2 ## E0 ## E1; }; \
    -
    703  struct { detail::_swizzle<4, T, Q, 2,2,0,2> E2 ## E2 ## E0 ## E2; }; \
    -
    704  struct { detail::_swizzle<4, T, Q, 2,2,0,3> E2 ## E2 ## E0 ## E3; }; \
    -
    705  struct { detail::_swizzle<4, T, Q, 2,2,1,0> E2 ## E2 ## E1 ## E0; }; \
    -
    706  struct { detail::_swizzle<4, T, Q, 2,2,1,1> E2 ## E2 ## E1 ## E1; }; \
    -
    707  struct { detail::_swizzle<4, T, Q, 2,2,1,2> E2 ## E2 ## E1 ## E2; }; \
    -
    708  struct { detail::_swizzle<4, T, Q, 2,2,1,3> E2 ## E2 ## E1 ## E3; }; \
    -
    709  struct { detail::_swizzle<4, T, Q, 2,2,2,0> E2 ## E2 ## E2 ## E0; }; \
    -
    710  struct { detail::_swizzle<4, T, Q, 2,2,2,1> E2 ## E2 ## E2 ## E1; }; \
    -
    711  struct { detail::_swizzle<4, T, Q, 2,2,2,2> E2 ## E2 ## E2 ## E2; }; \
    -
    712  struct { detail::_swizzle<4, T, Q, 2,2,2,3> E2 ## E2 ## E2 ## E3; }; \
    -
    713  struct { detail::_swizzle<4, T, Q, 2,2,3,0> E2 ## E2 ## E3 ## E0; }; \
    -
    714  struct { detail::_swizzle<4, T, Q, 2,2,3,1> E2 ## E2 ## E3 ## E1; }; \
    -
    715  struct { detail::_swizzle<4, T, Q, 2,2,3,2> E2 ## E2 ## E3 ## E2; }; \
    -
    716  struct { detail::_swizzle<4, T, Q, 2,2,3,3> E2 ## E2 ## E3 ## E3; }; \
    -
    717  struct { detail::_swizzle<4, T, Q, 2,3,0,0> E2 ## E3 ## E0 ## E0; }; \
    -
    718  struct { detail::_swizzle<4, T, Q, 2,3,0,1> E2 ## E3 ## E0 ## E1; }; \
    -
    719  struct { detail::_swizzle<4, T, Q, 2,3,0,2> E2 ## E3 ## E0 ## E2; }; \
    -
    720  struct { detail::_swizzle<4, T, Q, 2,3,0,3> E2 ## E3 ## E0 ## E3; }; \
    -
    721  struct { detail::_swizzle<4, T, Q, 2,3,1,0> E2 ## E3 ## E1 ## E0; }; \
    -
    722  struct { detail::_swizzle<4, T, Q, 2,3,1,1> E2 ## E3 ## E1 ## E1; }; \
    -
    723  struct { detail::_swizzle<4, T, Q, 2,3,1,2> E2 ## E3 ## E1 ## E2; }; \
    -
    724  struct { detail::_swizzle<4, T, Q, 2,3,1,3> E2 ## E3 ## E1 ## E3; }; \
    -
    725  struct { detail::_swizzle<4, T, Q, 2,3,2,0> E2 ## E3 ## E2 ## E0; }; \
    -
    726  struct { detail::_swizzle<4, T, Q, 2,3,2,1> E2 ## E3 ## E2 ## E1; }; \
    -
    727  struct { detail::_swizzle<4, T, Q, 2,3,2,2> E2 ## E3 ## E2 ## E2; }; \
    -
    728  struct { detail::_swizzle<4, T, Q, 2,3,2,3> E2 ## E3 ## E2 ## E3; }; \
    -
    729  struct { detail::_swizzle<4, T, Q, 2,3,3,0> E2 ## E3 ## E3 ## E0; }; \
    -
    730  struct { detail::_swizzle<4, T, Q, 2,3,3,1> E2 ## E3 ## E3 ## E1; }; \
    -
    731  struct { detail::_swizzle<4, T, Q, 2,3,3,2> E2 ## E3 ## E3 ## E2; }; \
    -
    732  struct { detail::_swizzle<4, T, Q, 2,3,3,3> E2 ## E3 ## E3 ## E3; }; \
    -
    733  struct { detail::_swizzle<4, T, Q, 3,0,0,0> E3 ## E0 ## E0 ## E0; }; \
    -
    734  struct { detail::_swizzle<4, T, Q, 3,0,0,1> E3 ## E0 ## E0 ## E1; }; \
    -
    735  struct { detail::_swizzle<4, T, Q, 3,0,0,2> E3 ## E0 ## E0 ## E2; }; \
    -
    736  struct { detail::_swizzle<4, T, Q, 3,0,0,3> E3 ## E0 ## E0 ## E3; }; \
    -
    737  struct { detail::_swizzle<4, T, Q, 3,0,1,0> E3 ## E0 ## E1 ## E0; }; \
    -
    738  struct { detail::_swizzle<4, T, Q, 3,0,1,1> E3 ## E0 ## E1 ## E1; }; \
    -
    739  struct { detail::_swizzle<4, T, Q, 3,0,1,2> E3 ## E0 ## E1 ## E2; }; \
    -
    740  struct { detail::_swizzle<4, T, Q, 3,0,1,3> E3 ## E0 ## E1 ## E3; }; \
    -
    741  struct { detail::_swizzle<4, T, Q, 3,0,2,0> E3 ## E0 ## E2 ## E0; }; \
    -
    742  struct { detail::_swizzle<4, T, Q, 3,0,2,1> E3 ## E0 ## E2 ## E1; }; \
    -
    743  struct { detail::_swizzle<4, T, Q, 3,0,2,2> E3 ## E0 ## E2 ## E2; }; \
    -
    744  struct { detail::_swizzle<4, T, Q, 3,0,2,3> E3 ## E0 ## E2 ## E3; }; \
    -
    745  struct { detail::_swizzle<4, T, Q, 3,0,3,0> E3 ## E0 ## E3 ## E0; }; \
    -
    746  struct { detail::_swizzle<4, T, Q, 3,0,3,1> E3 ## E0 ## E3 ## E1; }; \
    -
    747  struct { detail::_swizzle<4, T, Q, 3,0,3,2> E3 ## E0 ## E3 ## E2; }; \
    -
    748  struct { detail::_swizzle<4, T, Q, 3,0,3,3> E3 ## E0 ## E3 ## E3; }; \
    -
    749  struct { detail::_swizzle<4, T, Q, 3,1,0,0> E3 ## E1 ## E0 ## E0; }; \
    -
    750  struct { detail::_swizzle<4, T, Q, 3,1,0,1> E3 ## E1 ## E0 ## E1; }; \
    -
    751  struct { detail::_swizzle<4, T, Q, 3,1,0,2> E3 ## E1 ## E0 ## E2; }; \
    -
    752  struct { detail::_swizzle<4, T, Q, 3,1,0,3> E3 ## E1 ## E0 ## E3; }; \
    -
    753  struct { detail::_swizzle<4, T, Q, 3,1,1,0> E3 ## E1 ## E1 ## E0; }; \
    -
    754  struct { detail::_swizzle<4, T, Q, 3,1,1,1> E3 ## E1 ## E1 ## E1; }; \
    -
    755  struct { detail::_swizzle<4, T, Q, 3,1,1,2> E3 ## E1 ## E1 ## E2; }; \
    -
    756  struct { detail::_swizzle<4, T, Q, 3,1,1,3> E3 ## E1 ## E1 ## E3; }; \
    -
    757  struct { detail::_swizzle<4, T, Q, 3,1,2,0> E3 ## E1 ## E2 ## E0; }; \
    -
    758  struct { detail::_swizzle<4, T, Q, 3,1,2,1> E3 ## E1 ## E2 ## E1; }; \
    -
    759  struct { detail::_swizzle<4, T, Q, 3,1,2,2> E3 ## E1 ## E2 ## E2; }; \
    -
    760  struct { detail::_swizzle<4, T, Q, 3,1,2,3> E3 ## E1 ## E2 ## E3; }; \
    -
    761  struct { detail::_swizzle<4, T, Q, 3,1,3,0> E3 ## E1 ## E3 ## E0; }; \
    -
    762  struct { detail::_swizzle<4, T, Q, 3,1,3,1> E3 ## E1 ## E3 ## E1; }; \
    -
    763  struct { detail::_swizzle<4, T, Q, 3,1,3,2> E3 ## E1 ## E3 ## E2; }; \
    -
    764  struct { detail::_swizzle<4, T, Q, 3,1,3,3> E3 ## E1 ## E3 ## E3; }; \
    -
    765  struct { detail::_swizzle<4, T, Q, 3,2,0,0> E3 ## E2 ## E0 ## E0; }; \
    -
    766  struct { detail::_swizzle<4, T, Q, 3,2,0,1> E3 ## E2 ## E0 ## E1; }; \
    -
    767  struct { detail::_swizzle<4, T, Q, 3,2,0,2> E3 ## E2 ## E0 ## E2; }; \
    -
    768  struct { detail::_swizzle<4, T, Q, 3,2,0,3> E3 ## E2 ## E0 ## E3; }; \
    -
    769  struct { detail::_swizzle<4, T, Q, 3,2,1,0> E3 ## E2 ## E1 ## E0; }; \
    -
    770  struct { detail::_swizzle<4, T, Q, 3,2,1,1> E3 ## E2 ## E1 ## E1; }; \
    -
    771  struct { detail::_swizzle<4, T, Q, 3,2,1,2> E3 ## E2 ## E1 ## E2; }; \
    -
    772  struct { detail::_swizzle<4, T, Q, 3,2,1,3> E3 ## E2 ## E1 ## E3; }; \
    -
    773  struct { detail::_swizzle<4, T, Q, 3,2,2,0> E3 ## E2 ## E2 ## E0; }; \
    -
    774  struct { detail::_swizzle<4, T, Q, 3,2,2,1> E3 ## E2 ## E2 ## E1; }; \
    -
    775  struct { detail::_swizzle<4, T, Q, 3,2,2,2> E3 ## E2 ## E2 ## E2; }; \
    -
    776  struct { detail::_swizzle<4, T, Q, 3,2,2,3> E3 ## E2 ## E2 ## E3; }; \
    -
    777  struct { detail::_swizzle<4, T, Q, 3,2,3,0> E3 ## E2 ## E3 ## E0; }; \
    -
    778  struct { detail::_swizzle<4, T, Q, 3,2,3,1> E3 ## E2 ## E3 ## E1; }; \
    -
    779  struct { detail::_swizzle<4, T, Q, 3,2,3,2> E3 ## E2 ## E3 ## E2; }; \
    -
    780  struct { detail::_swizzle<4, T, Q, 3,2,3,3> E3 ## E2 ## E3 ## E3; }; \
    -
    781  struct { detail::_swizzle<4, T, Q, 3,3,0,0> E3 ## E3 ## E0 ## E0; }; \
    -
    782  struct { detail::_swizzle<4, T, Q, 3,3,0,1> E3 ## E3 ## E0 ## E1; }; \
    -
    783  struct { detail::_swizzle<4, T, Q, 3,3,0,2> E3 ## E3 ## E0 ## E2; }; \
    -
    784  struct { detail::_swizzle<4, T, Q, 3,3,0,3> E3 ## E3 ## E0 ## E3; }; \
    -
    785  struct { detail::_swizzle<4, T, Q, 3,3,1,0> E3 ## E3 ## E1 ## E0; }; \
    -
    786  struct { detail::_swizzle<4, T, Q, 3,3,1,1> E3 ## E3 ## E1 ## E1; }; \
    -
    787  struct { detail::_swizzle<4, T, Q, 3,3,1,2> E3 ## E3 ## E1 ## E2; }; \
    -
    788  struct { detail::_swizzle<4, T, Q, 3,3,1,3> E3 ## E3 ## E1 ## E3; }; \
    -
    789  struct { detail::_swizzle<4, T, Q, 3,3,2,0> E3 ## E3 ## E2 ## E0; }; \
    -
    790  struct { detail::_swizzle<4, T, Q, 3,3,2,1> E3 ## E3 ## E2 ## E1; }; \
    -
    791  struct { detail::_swizzle<4, T, Q, 3,3,2,2> E3 ## E3 ## E2 ## E2; }; \
    -
    792  struct { detail::_swizzle<4, T, Q, 3,3,2,3> E3 ## E3 ## E2 ## E3; }; \
    -
    793  struct { detail::_swizzle<4, T, Q, 3,3,3,0> E3 ## E3 ## E3 ## E0; }; \
    -
    794  struct { detail::_swizzle<4, T, Q, 3,3,3,1> E3 ## E3 ## E3 ## E1; }; \
    -
    795  struct { detail::_swizzle<4, T, Q, 3,3,3,2> E3 ## E3 ## E3 ## E2; }; \
    -
    796  struct { detail::_swizzle<4, T, Q, 3,3,3,3> E3 ## E3 ## E3 ## E3; };
    -
    Definition: common.hpp:20
    -
    GLM_FUNC_DECL GLM_CONSTEXPR genType e()
    Return e constant.
    -
    - - - - + + + + + + +0.9.9 API documentation: _swizzle.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _swizzle.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 namespace glm{
    +
    4 namespace detail
    +
    5 {
    +
    6  // Internal class for implementing swizzle operators
    +
    7  template<typename T, int N>
    +
    8  struct _swizzle_base0
    +
    9  {
    +
    10  protected:
    +
    11  GLM_FUNC_QUALIFIER T& elem(size_t i){ return (reinterpret_cast<T*>(_buffer))[i]; }
    +
    12  GLM_FUNC_QUALIFIER T const& elem(size_t i) const{ return (reinterpret_cast<const T*>(_buffer))[i]; }
    +
    13 
    +
    14  // Use an opaque buffer to *ensure* the compiler doesn't call a constructor.
    +
    15  // The size 1 buffer is assumed to aligned to the actual members so that the
    +
    16  // elem()
    +
    17  char _buffer[1];
    +
    18  };
    +
    19 
    +
    20  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, bool Aligned>
    +
    21  struct _swizzle_base1 : public _swizzle_base0<T, N>
    +
    22  {
    +
    23  };
    +
    24 
    +
    25  template<typename T, qualifier Q, int E0, int E1, bool Aligned>
    +
    26  struct _swizzle_base1<2, T, Q, E0,E1,-1,-2, Aligned> : public _swizzle_base0<T, 2>
    +
    27  {
    +
    28  GLM_FUNC_QUALIFIER vec<2, T, Q> operator ()() const { return vec<2, T, Q>(this->elem(E0), this->elem(E1)); }
    +
    29  };
    +
    30 
    +
    31  template<typename T, qualifier Q, int E0, int E1, int E2, bool Aligned>
    +
    32  struct _swizzle_base1<3, T, Q, E0,E1,E2,-1, Aligned> : public _swizzle_base0<T, 3>
    +
    33  {
    +
    34  GLM_FUNC_QUALIFIER vec<3, T, Q> operator ()() const { return vec<3, T, Q>(this->elem(E0), this->elem(E1), this->elem(E2)); }
    +
    35  };
    +
    36 
    +
    37  template<typename T, qualifier Q, int E0, int E1, int E2, int E3, bool Aligned>
    +
    38  struct _swizzle_base1<4, T, Q, E0,E1,E2,E3, Aligned> : public _swizzle_base0<T, 4>
    +
    39  {
    +
    40  GLM_FUNC_QUALIFIER vec<4, T, Q> operator ()() const { return vec<4, T, Q>(this->elem(E0), this->elem(E1), this->elem(E2), this->elem(E3)); }
    +
    41  };
    +
    42 
    +
    43  // Internal class for implementing swizzle operators
    +
    44  /*
    +
    45  Template parameters:
    +
    46 
    +
    47  T = type of scalar values (e.g. float, double)
    +
    48  N = number of components in the vector (e.g. 3)
    +
    49  E0...3 = what index the n-th element of this swizzle refers to in the unswizzled vec
    +
    50 
    +
    51  DUPLICATE_ELEMENTS = 1 if there is a repeated element, 0 otherwise (used to specialize swizzles
    +
    52  containing duplicate elements so that they cannot be used as r-values).
    +
    53  */
    +
    54  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, int DUPLICATE_ELEMENTS>
    +
    55  struct _swizzle_base2 : public _swizzle_base1<N, T, Q, E0,E1,E2,E3, detail::is_aligned<Q>::value>
    +
    56  {
    +
    57  struct op_equal
    +
    58  {
    +
    59  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) const{ e = t; }
    +
    60  };
    +
    61 
    +
    62  struct op_minus
    +
    63  {
    +
    64  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) const{ e -= t; }
    +
    65  };
    +
    66 
    +
    67  struct op_plus
    +
    68  {
    +
    69  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) const{ e += t; }
    +
    70  };
    +
    71 
    +
    72  struct op_mul
    +
    73  {
    +
    74  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) const{ e *= t; }
    +
    75  };
    +
    76 
    +
    77  struct op_div
    +
    78  {
    +
    79  GLM_FUNC_QUALIFIER void operator() (T& e, T& t) const{ e /= t; }
    +
    80  };
    +
    81 
    +
    82  public:
    +
    83  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (const T& t)
    +
    84  {
    +
    85  for (int i = 0; i < N; ++i)
    +
    86  (*this)[i] = t;
    +
    87  return *this;
    +
    88  }
    +
    89 
    +
    90  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (vec<N, T, Q> const& that)
    +
    91  {
    +
    92  _apply_op(that, op_equal());
    +
    93  return *this;
    +
    94  }
    +
    95 
    +
    96  GLM_FUNC_QUALIFIER void operator -= (vec<N, T, Q> const& that)
    +
    97  {
    +
    98  _apply_op(that, op_minus());
    +
    99  }
    +
    100 
    +
    101  GLM_FUNC_QUALIFIER void operator += (vec<N, T, Q> const& that)
    +
    102  {
    +
    103  _apply_op(that, op_plus());
    +
    104  }
    +
    105 
    +
    106  GLM_FUNC_QUALIFIER void operator *= (vec<N, T, Q> const& that)
    +
    107  {
    +
    108  _apply_op(that, op_mul());
    +
    109  }
    +
    110 
    +
    111  GLM_FUNC_QUALIFIER void operator /= (vec<N, T, Q> const& that)
    +
    112  {
    +
    113  _apply_op(that, op_div());
    +
    114  }
    +
    115 
    +
    116  GLM_FUNC_QUALIFIER T& operator[](size_t i)
    +
    117  {
    +
    118  const int offset_dst[4] = { E0, E1, E2, E3 };
    +
    119  return this->elem(offset_dst[i]);
    +
    120  }
    +
    121  GLM_FUNC_QUALIFIER T operator[](size_t i) const
    +
    122  {
    +
    123  const int offset_dst[4] = { E0, E1, E2, E3 };
    +
    124  return this->elem(offset_dst[i]);
    +
    125  }
    +
    126 
    +
    127  protected:
    +
    128  template<typename U>
    +
    129  GLM_FUNC_QUALIFIER void _apply_op(vec<N, T, Q> const& that, const U& op)
    +
    130  {
    +
    131  // Make a copy of the data in this == &that.
    +
    132  // The copier should optimize out the copy in cases where the function is
    +
    133  // properly inlined and the copy is not necessary.
    +
    134  T t[N];
    +
    135  for (int i = 0; i < N; ++i)
    +
    136  t[i] = that[i];
    +
    137  for (int i = 0; i < N; ++i)
    +
    138  op( (*this)[i], t[i] );
    +
    139  }
    +
    140  };
    +
    141 
    +
    142  // Specialization for swizzles containing duplicate elements. These cannot be modified.
    +
    143  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    +
    144  struct _swizzle_base2<N, T, Q, E0,E1,E2,E3, 1> : public _swizzle_base1<N, T, Q, E0,E1,E2,E3, detail::is_aligned<Q>::value>
    +
    145  {
    +
    146  struct Stub {};
    +
    147 
    +
    148  GLM_FUNC_QUALIFIER _swizzle_base2& operator= (Stub const&) { return *this; }
    +
    149 
    +
    150  GLM_FUNC_QUALIFIER T operator[] (size_t i) const
    +
    151  {
    +
    152  const int offset_dst[4] = { E0, E1, E2, E3 };
    +
    153  return this->elem(offset_dst[i]);
    +
    154  }
    +
    155  };
    +
    156 
    +
    157  template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    +
    158  struct _swizzle : public _swizzle_base2<N, T, Q, E0, E1, E2, E3, (E0 == E1 || E0 == E2 || E0 == E3 || E1 == E2 || E1 == E3 || E2 == E3)>
    +
    159  {
    +
    160  typedef _swizzle_base2<N, T, Q, E0, E1, E2, E3, (E0 == E1 || E0 == E2 || E0 == E3 || E1 == E2 || E1 == E3 || E2 == E3)> base_type;
    +
    161 
    +
    162  using base_type::operator=;
    +
    163 
    +
    164  GLM_FUNC_QUALIFIER operator vec<N, T, Q> () const { return (*this)(); }
    +
    165  };
    +
    166 
    +
    167 //
    +
    168 // To prevent the C++ syntax from getting entirely overwhelming, define some alias macros
    +
    169 //
    +
    170 #define GLM_SWIZZLE_TEMPLATE1 template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3>
    +
    171 #define GLM_SWIZZLE_TEMPLATE2 template<int N, typename T, qualifier Q, int E0, int E1, int E2, int E3, int F0, int F1, int F2, int F3>
    +
    172 #define GLM_SWIZZLE_TYPE1 _swizzle<N, T, Q, E0, E1, E2, E3>
    +
    173 #define GLM_SWIZZLE_TYPE2 _swizzle<N, T, Q, F0, F1, F2, F3>
    +
    174 
    +
    175 //
    +
    176 // Wrapper for a binary operator (e.g. u.yy + v.zy)
    +
    177 //
    +
    178 #define GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND) \
    +
    179  GLM_SWIZZLE_TEMPLATE2 \
    +
    180  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b) \
    +
    181  { \
    +
    182  return a() OPERAND b(); \
    +
    183  } \
    +
    184  GLM_SWIZZLE_TEMPLATE1 \
    +
    185  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const vec<N, T, Q>& b) \
    +
    186  { \
    +
    187  return a() OPERAND b; \
    +
    188  } \
    +
    189  GLM_SWIZZLE_TEMPLATE1 \
    +
    190  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const vec<N, T, Q>& a, const GLM_SWIZZLE_TYPE1& b) \
    +
    191  { \
    +
    192  return a OPERAND b(); \
    +
    193  }
    +
    194 
    +
    195 //
    +
    196 // Wrapper for a operand between a swizzle and a binary (e.g. 1.0f - u.xyz)
    +
    197 //
    +
    198 #define GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND) \
    +
    199  GLM_SWIZZLE_TEMPLATE1 \
    +
    200  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const GLM_SWIZZLE_TYPE1& a, const T& b) \
    +
    201  { \
    +
    202  return a() OPERAND b; \
    +
    203  } \
    +
    204  GLM_SWIZZLE_TEMPLATE1 \
    +
    205  GLM_FUNC_QUALIFIER vec<N, T, Q> operator OPERAND ( const T& a, const GLM_SWIZZLE_TYPE1& b) \
    +
    206  { \
    +
    207  return a OPERAND b(); \
    +
    208  }
    +
    209 
    +
    210 //
    +
    211 // Macro for wrapping a function taking one argument (e.g. abs())
    +
    212 //
    +
    213 #define GLM_SWIZZLE_FUNCTION_1_ARGS(RETURN_TYPE,FUNCTION) \
    +
    214  GLM_SWIZZLE_TEMPLATE1 \
    +
    215  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a) \
    +
    216  { \
    +
    217  return FUNCTION(a()); \
    +
    218  }
    +
    219 
    +
    220 //
    +
    221 // Macro for wrapping a function taking two vector arguments (e.g. dot()).
    +
    222 //
    +
    223 #define GLM_SWIZZLE_FUNCTION_2_ARGS(RETURN_TYPE,FUNCTION) \
    +
    224  GLM_SWIZZLE_TEMPLATE2 \
    +
    225  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b) \
    +
    226  { \
    +
    227  return FUNCTION(a(), b()); \
    +
    228  } \
    +
    229  GLM_SWIZZLE_TEMPLATE1 \
    +
    230  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE1& b) \
    +
    231  { \
    +
    232  return FUNCTION(a(), b()); \
    +
    233  } \
    +
    234  GLM_SWIZZLE_TEMPLATE1 \
    +
    235  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const typename V& b) \
    +
    236  { \
    +
    237  return FUNCTION(a(), b); \
    +
    238  } \
    +
    239  GLM_SWIZZLE_TEMPLATE1 \
    +
    240  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const V& a, const GLM_SWIZZLE_TYPE1& b) \
    +
    241  { \
    +
    242  return FUNCTION(a, b()); \
    +
    243  }
    +
    244 
    +
    245 //
    +
    246 // Macro for wrapping a function take 2 vec arguments followed by a scalar (e.g. mix()).
    +
    247 //
    +
    248 #define GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR(RETURN_TYPE,FUNCTION) \
    +
    249  GLM_SWIZZLE_TEMPLATE2 \
    +
    250  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE2& b, const T& c) \
    +
    251  { \
    +
    252  return FUNCTION(a(), b(), c); \
    +
    253  } \
    +
    254  GLM_SWIZZLE_TEMPLATE1 \
    +
    255  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const GLM_SWIZZLE_TYPE1& b, const T& c) \
    +
    256  { \
    +
    257  return FUNCTION(a(), b(), c); \
    +
    258  } \
    +
    259  GLM_SWIZZLE_TEMPLATE1 \
    +
    260  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const GLM_SWIZZLE_TYPE1& a, const typename S0::vec_type& b, const T& c)\
    +
    261  { \
    +
    262  return FUNCTION(a(), b, c); \
    +
    263  } \
    +
    264  GLM_SWIZZLE_TEMPLATE1 \
    +
    265  GLM_FUNC_QUALIFIER typename GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const typename V& a, const GLM_SWIZZLE_TYPE1& b, const T& c) \
    +
    266  { \
    +
    267  return FUNCTION(a, b(), c); \
    +
    268  }
    +
    269 
    +
    270 }//namespace detail
    +
    271 }//namespace glm
    +
    272 
    +
    273 namespace glm
    +
    274 {
    +
    275  namespace detail
    +
    276  {
    +
    277  GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(-)
    +
    278  GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(*)
    +
    279  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(+)
    +
    280  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(-)
    +
    281  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(*)
    +
    282  GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(/)
    +
    283  }
    +
    284 
    +
    285  //
    +
    286  // Swizzles are distinct types from the unswizzled type. The below macros will
    +
    287  // provide template specializations for the swizzle types for the given functions
    +
    288  // so that the compiler does not have any ambiguity to choosing how to handle
    +
    289  // the function.
    +
    290  //
    +
    291  // The alternative is to use the operator()() when calling the function in order
    +
    292  // to explicitly convert the swizzled type to the unswizzled type.
    +
    293  //
    +
    294 
    +
    295  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, abs);
    +
    296  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, acos);
    +
    297  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, acosh);
    +
    298  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, all);
    +
    299  //GLM_SWIZZLE_FUNCTION_1_ARGS(vec_type, any);
    +
    300 
    +
    301  //GLM_SWIZZLE_FUNCTION_2_ARGS(value_type, dot);
    +
    302  //GLM_SWIZZLE_FUNCTION_2_ARGS(vec_type, cross);
    +
    303  //GLM_SWIZZLE_FUNCTION_2_ARGS(vec_type, step);
    +
    304  //GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR(vec_type, mix);
    +
    305 }
    +
    306 
    +
    307 #define GLM_SWIZZLE2_2_MEMBERS(T, Q, E0,E1) \
    +
    308  struct { detail::_swizzle<2, T, Q, 0,0,-1,-2> E0 ## E0; }; \
    +
    309  struct { detail::_swizzle<2, T, Q, 0,1,-1,-2> E0 ## E1; }; \
    +
    310  struct { detail::_swizzle<2, T, Q, 1,0,-1,-2> E1 ## E0; }; \
    +
    311  struct { detail::_swizzle<2, T, Q, 1,1,-1,-2> E1 ## E1; };
    +
    312 
    +
    313 #define GLM_SWIZZLE2_3_MEMBERS(T, Q, E0,E1) \
    +
    314  struct { detail::_swizzle<3,T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    +
    315  struct { detail::_swizzle<3,T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    +
    316  struct { detail::_swizzle<3,T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    +
    317  struct { detail::_swizzle<3,T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    +
    318  struct { detail::_swizzle<3,T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    +
    319  struct { detail::_swizzle<3,T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    +
    320  struct { detail::_swizzle<3,T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    +
    321  struct { detail::_swizzle<3,T, Q, 1,1,1,-1> E1 ## E1 ## E1; };
    +
    322 
    +
    323 #define GLM_SWIZZLE2_4_MEMBERS(T, Q, E0,E1) \
    +
    324  struct { detail::_swizzle<4,T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    +
    325  struct { detail::_swizzle<4,T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    +
    326  struct { detail::_swizzle<4,T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    +
    327  struct { detail::_swizzle<4,T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    +
    328  struct { detail::_swizzle<4,T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    +
    329  struct { detail::_swizzle<4,T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    +
    330  struct { detail::_swizzle<4,T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    +
    331  struct { detail::_swizzle<4,T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    +
    332  struct { detail::_swizzle<4,T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    +
    333  struct { detail::_swizzle<4,T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    +
    334  struct { detail::_swizzle<4,T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    +
    335  struct { detail::_swizzle<4,T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    +
    336  struct { detail::_swizzle<4,T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    +
    337  struct { detail::_swizzle<4,T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    +
    338  struct { detail::_swizzle<4,T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    +
    339  struct { detail::_swizzle<4,T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; };
    +
    340 
    +
    341 #define GLM_SWIZZLE3_2_MEMBERS(T, Q, E0,E1,E2) \
    +
    342  struct { detail::_swizzle<2,T, Q, 0,0,-1,-2> E0 ## E0; }; \
    +
    343  struct { detail::_swizzle<2,T, Q, 0,1,-1,-2> E0 ## E1; }; \
    +
    344  struct { detail::_swizzle<2,T, Q, 0,2,-1,-2> E0 ## E2; }; \
    +
    345  struct { detail::_swizzle<2,T, Q, 1,0,-1,-2> E1 ## E0; }; \
    +
    346  struct { detail::_swizzle<2,T, Q, 1,1,-1,-2> E1 ## E1; }; \
    +
    347  struct { detail::_swizzle<2,T, Q, 1,2,-1,-2> E1 ## E2; }; \
    +
    348  struct { detail::_swizzle<2,T, Q, 2,0,-1,-2> E2 ## E0; }; \
    +
    349  struct { detail::_swizzle<2,T, Q, 2,1,-1,-2> E2 ## E1; }; \
    +
    350  struct { detail::_swizzle<2,T, Q, 2,2,-1,-2> E2 ## E2; };
    +
    351 
    +
    352 #define GLM_SWIZZLE3_3_MEMBERS(T, Q ,E0,E1,E2) \
    +
    353  struct { detail::_swizzle<3, T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    +
    354  struct { detail::_swizzle<3, T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    +
    355  struct { detail::_swizzle<3, T, Q, 0,0,2,-1> E0 ## E0 ## E2; }; \
    +
    356  struct { detail::_swizzle<3, T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    +
    357  struct { detail::_swizzle<3, T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    +
    358  struct { detail::_swizzle<3, T, Q, 0,1,2,-1> E0 ## E1 ## E2; }; \
    +
    359  struct { detail::_swizzle<3, T, Q, 0,2,0,-1> E0 ## E2 ## E0; }; \
    +
    360  struct { detail::_swizzle<3, T, Q, 0,2,1,-1> E0 ## E2 ## E1; }; \
    +
    361  struct { detail::_swizzle<3, T, Q, 0,2,2,-1> E0 ## E2 ## E2; }; \
    +
    362  struct { detail::_swizzle<3, T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    +
    363  struct { detail::_swizzle<3, T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    +
    364  struct { detail::_swizzle<3, T, Q, 1,0,2,-1> E1 ## E0 ## E2; }; \
    +
    365  struct { detail::_swizzle<3, T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    +
    366  struct { detail::_swizzle<3, T, Q, 1,1,1,-1> E1 ## E1 ## E1; }; \
    +
    367  struct { detail::_swizzle<3, T, Q, 1,1,2,-1> E1 ## E1 ## E2; }; \
    +
    368  struct { detail::_swizzle<3, T, Q, 1,2,0,-1> E1 ## E2 ## E0; }; \
    +
    369  struct { detail::_swizzle<3, T, Q, 1,2,1,-1> E1 ## E2 ## E1; }; \
    +
    370  struct { detail::_swizzle<3, T, Q, 1,2,2,-1> E1 ## E2 ## E2; }; \
    +
    371  struct { detail::_swizzle<3, T, Q, 2,0,0,-1> E2 ## E0 ## E0; }; \
    +
    372  struct { detail::_swizzle<3, T, Q, 2,0,1,-1> E2 ## E0 ## E1; }; \
    +
    373  struct { detail::_swizzle<3, T, Q, 2,0,2,-1> E2 ## E0 ## E2; }; \
    +
    374  struct { detail::_swizzle<3, T, Q, 2,1,0,-1> E2 ## E1 ## E0; }; \
    +
    375  struct { detail::_swizzle<3, T, Q, 2,1,1,-1> E2 ## E1 ## E1; }; \
    +
    376  struct { detail::_swizzle<3, T, Q, 2,1,2,-1> E2 ## E1 ## E2; }; \
    +
    377  struct { detail::_swizzle<3, T, Q, 2,2,0,-1> E2 ## E2 ## E0; }; \
    +
    378  struct { detail::_swizzle<3, T, Q, 2,2,1,-1> E2 ## E2 ## E1; }; \
    +
    379  struct { detail::_swizzle<3, T, Q, 2,2,2,-1> E2 ## E2 ## E2; };
    +
    380 
    +
    381 #define GLM_SWIZZLE3_4_MEMBERS(T, Q, E0,E1,E2) \
    +
    382  struct { detail::_swizzle<4,T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    +
    383  struct { detail::_swizzle<4,T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    +
    384  struct { detail::_swizzle<4,T, Q, 0,0,0,2> E0 ## E0 ## E0 ## E2; }; \
    +
    385  struct { detail::_swizzle<4,T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    +
    386  struct { detail::_swizzle<4,T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    +
    387  struct { detail::_swizzle<4,T, Q, 0,0,1,2> E0 ## E0 ## E1 ## E2; }; \
    +
    388  struct { detail::_swizzle<4,T, Q, 0,0,2,0> E0 ## E0 ## E2 ## E0; }; \
    +
    389  struct { detail::_swizzle<4,T, Q, 0,0,2,1> E0 ## E0 ## E2 ## E1; }; \
    +
    390  struct { detail::_swizzle<4,T, Q, 0,0,2,2> E0 ## E0 ## E2 ## E2; }; \
    +
    391  struct { detail::_swizzle<4,T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    +
    392  struct { detail::_swizzle<4,T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    +
    393  struct { detail::_swizzle<4,T, Q, 0,1,0,2> E0 ## E1 ## E0 ## E2; }; \
    +
    394  struct { detail::_swizzle<4,T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    +
    395  struct { detail::_swizzle<4,T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    +
    396  struct { detail::_swizzle<4,T, Q, 0,1,1,2> E0 ## E1 ## E1 ## E2; }; \
    +
    397  struct { detail::_swizzle<4,T, Q, 0,1,2,0> E0 ## E1 ## E2 ## E0; }; \
    +
    398  struct { detail::_swizzle<4,T, Q, 0,1,2,1> E0 ## E1 ## E2 ## E1; }; \
    +
    399  struct { detail::_swizzle<4,T, Q, 0,1,2,2> E0 ## E1 ## E2 ## E2; }; \
    +
    400  struct { detail::_swizzle<4,T, Q, 0,2,0,0> E0 ## E2 ## E0 ## E0; }; \
    +
    401  struct { detail::_swizzle<4,T, Q, 0,2,0,1> E0 ## E2 ## E0 ## E1; }; \
    +
    402  struct { detail::_swizzle<4,T, Q, 0,2,0,2> E0 ## E2 ## E0 ## E2; }; \
    +
    403  struct { detail::_swizzle<4,T, Q, 0,2,1,0> E0 ## E2 ## E1 ## E0; }; \
    +
    404  struct { detail::_swizzle<4,T, Q, 0,2,1,1> E0 ## E2 ## E1 ## E1; }; \
    +
    405  struct { detail::_swizzle<4,T, Q, 0,2,1,2> E0 ## E2 ## E1 ## E2; }; \
    +
    406  struct { detail::_swizzle<4,T, Q, 0,2,2,0> E0 ## E2 ## E2 ## E0; }; \
    +
    407  struct { detail::_swizzle<4,T, Q, 0,2,2,1> E0 ## E2 ## E2 ## E1; }; \
    +
    408  struct { detail::_swizzle<4,T, Q, 0,2,2,2> E0 ## E2 ## E2 ## E2; }; \
    +
    409  struct { detail::_swizzle<4,T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    +
    410  struct { detail::_swizzle<4,T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    +
    411  struct { detail::_swizzle<4,T, Q, 1,0,0,2> E1 ## E0 ## E0 ## E2; }; \
    +
    412  struct { detail::_swizzle<4,T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    +
    413  struct { detail::_swizzle<4,T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    +
    414  struct { detail::_swizzle<4,T, Q, 1,0,1,2> E1 ## E0 ## E1 ## E2; }; \
    +
    415  struct { detail::_swizzle<4,T, Q, 1,0,2,0> E1 ## E0 ## E2 ## E0; }; \
    +
    416  struct { detail::_swizzle<4,T, Q, 1,0,2,1> E1 ## E0 ## E2 ## E1; }; \
    +
    417  struct { detail::_swizzle<4,T, Q, 1,0,2,2> E1 ## E0 ## E2 ## E2; }; \
    +
    418  struct { detail::_swizzle<4,T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    +
    419  struct { detail::_swizzle<4,T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    +
    420  struct { detail::_swizzle<4,T, Q, 1,1,0,2> E1 ## E1 ## E0 ## E2; }; \
    +
    421  struct { detail::_swizzle<4,T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    +
    422  struct { detail::_swizzle<4,T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; }; \
    +
    423  struct { detail::_swizzle<4,T, Q, 1,1,1,2> E1 ## E1 ## E1 ## E2; }; \
    +
    424  struct { detail::_swizzle<4,T, Q, 1,1,2,0> E1 ## E1 ## E2 ## E0; }; \
    +
    425  struct { detail::_swizzle<4,T, Q, 1,1,2,1> E1 ## E1 ## E2 ## E1; }; \
    +
    426  struct { detail::_swizzle<4,T, Q, 1,1,2,2> E1 ## E1 ## E2 ## E2; }; \
    +
    427  struct { detail::_swizzle<4,T, Q, 1,2,0,0> E1 ## E2 ## E0 ## E0; }; \
    +
    428  struct { detail::_swizzle<4,T, Q, 1,2,0,1> E1 ## E2 ## E0 ## E1; }; \
    +
    429  struct { detail::_swizzle<4,T, Q, 1,2,0,2> E1 ## E2 ## E0 ## E2; }; \
    +
    430  struct { detail::_swizzle<4,T, Q, 1,2,1,0> E1 ## E2 ## E1 ## E0; }; \
    +
    431  struct { detail::_swizzle<4,T, Q, 1,2,1,1> E1 ## E2 ## E1 ## E1; }; \
    +
    432  struct { detail::_swizzle<4,T, Q, 1,2,1,2> E1 ## E2 ## E1 ## E2; }; \
    +
    433  struct { detail::_swizzle<4,T, Q, 1,2,2,0> E1 ## E2 ## E2 ## E0; }; \
    +
    434  struct { detail::_swizzle<4,T, Q, 1,2,2,1> E1 ## E2 ## E2 ## E1; }; \
    +
    435  struct { detail::_swizzle<4,T, Q, 1,2,2,2> E1 ## E2 ## E2 ## E2; }; \
    +
    436  struct { detail::_swizzle<4,T, Q, 2,0,0,0> E2 ## E0 ## E0 ## E0; }; \
    +
    437  struct { detail::_swizzle<4,T, Q, 2,0,0,1> E2 ## E0 ## E0 ## E1; }; \
    +
    438  struct { detail::_swizzle<4,T, Q, 2,0,0,2> E2 ## E0 ## E0 ## E2; }; \
    +
    439  struct { detail::_swizzle<4,T, Q, 2,0,1,0> E2 ## E0 ## E1 ## E0; }; \
    +
    440  struct { detail::_swizzle<4,T, Q, 2,0,1,1> E2 ## E0 ## E1 ## E1; }; \
    +
    441  struct { detail::_swizzle<4,T, Q, 2,0,1,2> E2 ## E0 ## E1 ## E2; }; \
    +
    442  struct { detail::_swizzle<4,T, Q, 2,0,2,0> E2 ## E0 ## E2 ## E0; }; \
    +
    443  struct { detail::_swizzle<4,T, Q, 2,0,2,1> E2 ## E0 ## E2 ## E1; }; \
    +
    444  struct { detail::_swizzle<4,T, Q, 2,0,2,2> E2 ## E0 ## E2 ## E2; }; \
    +
    445  struct { detail::_swizzle<4,T, Q, 2,1,0,0> E2 ## E1 ## E0 ## E0; }; \
    +
    446  struct { detail::_swizzle<4,T, Q, 2,1,0,1> E2 ## E1 ## E0 ## E1; }; \
    +
    447  struct { detail::_swizzle<4,T, Q, 2,1,0,2> E2 ## E1 ## E0 ## E2; }; \
    +
    448  struct { detail::_swizzle<4,T, Q, 2,1,1,0> E2 ## E1 ## E1 ## E0; }; \
    +
    449  struct { detail::_swizzle<4,T, Q, 2,1,1,1> E2 ## E1 ## E1 ## E1; }; \
    +
    450  struct { detail::_swizzle<4,T, Q, 2,1,1,2> E2 ## E1 ## E1 ## E2; }; \
    +
    451  struct { detail::_swizzle<4,T, Q, 2,1,2,0> E2 ## E1 ## E2 ## E0; }; \
    +
    452  struct { detail::_swizzle<4,T, Q, 2,1,2,1> E2 ## E1 ## E2 ## E1; }; \
    +
    453  struct { detail::_swizzle<4,T, Q, 2,1,2,2> E2 ## E1 ## E2 ## E2; }; \
    +
    454  struct { detail::_swizzle<4,T, Q, 2,2,0,0> E2 ## E2 ## E0 ## E0; }; \
    +
    455  struct { detail::_swizzle<4,T, Q, 2,2,0,1> E2 ## E2 ## E0 ## E1; }; \
    +
    456  struct { detail::_swizzle<4,T, Q, 2,2,0,2> E2 ## E2 ## E0 ## E2; }; \
    +
    457  struct { detail::_swizzle<4,T, Q, 2,2,1,0> E2 ## E2 ## E1 ## E0; }; \
    +
    458  struct { detail::_swizzle<4,T, Q, 2,2,1,1> E2 ## E2 ## E1 ## E1; }; \
    +
    459  struct { detail::_swizzle<4,T, Q, 2,2,1,2> E2 ## E2 ## E1 ## E2; }; \
    +
    460  struct { detail::_swizzle<4,T, Q, 2,2,2,0> E2 ## E2 ## E2 ## E0; }; \
    +
    461  struct { detail::_swizzle<4,T, Q, 2,2,2,1> E2 ## E2 ## E2 ## E1; }; \
    +
    462  struct { detail::_swizzle<4,T, Q, 2,2,2,2> E2 ## E2 ## E2 ## E2; };
    +
    463 
    +
    464 #define GLM_SWIZZLE4_2_MEMBERS(T, Q, E0,E1,E2,E3) \
    +
    465  struct { detail::_swizzle<2,T, Q, 0,0,-1,-2> E0 ## E0; }; \
    +
    466  struct { detail::_swizzle<2,T, Q, 0,1,-1,-2> E0 ## E1; }; \
    +
    467  struct { detail::_swizzle<2,T, Q, 0,2,-1,-2> E0 ## E2; }; \
    +
    468  struct { detail::_swizzle<2,T, Q, 0,3,-1,-2> E0 ## E3; }; \
    +
    469  struct { detail::_swizzle<2,T, Q, 1,0,-1,-2> E1 ## E0; }; \
    +
    470  struct { detail::_swizzle<2,T, Q, 1,1,-1,-2> E1 ## E1; }; \
    +
    471  struct { detail::_swizzle<2,T, Q, 1,2,-1,-2> E1 ## E2; }; \
    +
    472  struct { detail::_swizzle<2,T, Q, 1,3,-1,-2> E1 ## E3; }; \
    +
    473  struct { detail::_swizzle<2,T, Q, 2,0,-1,-2> E2 ## E0; }; \
    +
    474  struct { detail::_swizzle<2,T, Q, 2,1,-1,-2> E2 ## E1; }; \
    +
    475  struct { detail::_swizzle<2,T, Q, 2,2,-1,-2> E2 ## E2; }; \
    +
    476  struct { detail::_swizzle<2,T, Q, 2,3,-1,-2> E2 ## E3; }; \
    +
    477  struct { detail::_swizzle<2,T, Q, 3,0,-1,-2> E3 ## E0; }; \
    +
    478  struct { detail::_swizzle<2,T, Q, 3,1,-1,-2> E3 ## E1; }; \
    +
    479  struct { detail::_swizzle<2,T, Q, 3,2,-1,-2> E3 ## E2; }; \
    +
    480  struct { detail::_swizzle<2,T, Q, 3,3,-1,-2> E3 ## E3; };
    +
    481 
    +
    482 #define GLM_SWIZZLE4_3_MEMBERS(T, Q, E0,E1,E2,E3) \
    +
    483  struct { detail::_swizzle<3, T, Q, 0,0,0,-1> E0 ## E0 ## E0; }; \
    +
    484  struct { detail::_swizzle<3, T, Q, 0,0,1,-1> E0 ## E0 ## E1; }; \
    +
    485  struct { detail::_swizzle<3, T, Q, 0,0,2,-1> E0 ## E0 ## E2; }; \
    +
    486  struct { detail::_swizzle<3, T, Q, 0,0,3,-1> E0 ## E0 ## E3; }; \
    +
    487  struct { detail::_swizzle<3, T, Q, 0,1,0,-1> E0 ## E1 ## E0; }; \
    +
    488  struct { detail::_swizzle<3, T, Q, 0,1,1,-1> E0 ## E1 ## E1; }; \
    +
    489  struct { detail::_swizzle<3, T, Q, 0,1,2,-1> E0 ## E1 ## E2; }; \
    +
    490  struct { detail::_swizzle<3, T, Q, 0,1,3,-1> E0 ## E1 ## E3; }; \
    +
    491  struct { detail::_swizzle<3, T, Q, 0,2,0,-1> E0 ## E2 ## E0; }; \
    +
    492  struct { detail::_swizzle<3, T, Q, 0,2,1,-1> E0 ## E2 ## E1; }; \
    +
    493  struct { detail::_swizzle<3, T, Q, 0,2,2,-1> E0 ## E2 ## E2; }; \
    +
    494  struct { detail::_swizzle<3, T, Q, 0,2,3,-1> E0 ## E2 ## E3; }; \
    +
    495  struct { detail::_swizzle<3, T, Q, 0,3,0,-1> E0 ## E3 ## E0; }; \
    +
    496  struct { detail::_swizzle<3, T, Q, 0,3,1,-1> E0 ## E3 ## E1; }; \
    +
    497  struct { detail::_swizzle<3, T, Q, 0,3,2,-1> E0 ## E3 ## E2; }; \
    +
    498  struct { detail::_swizzle<3, T, Q, 0,3,3,-1> E0 ## E3 ## E3; }; \
    +
    499  struct { detail::_swizzle<3, T, Q, 1,0,0,-1> E1 ## E0 ## E0; }; \
    +
    500  struct { detail::_swizzle<3, T, Q, 1,0,1,-1> E1 ## E0 ## E1; }; \
    +
    501  struct { detail::_swizzle<3, T, Q, 1,0,2,-1> E1 ## E0 ## E2; }; \
    +
    502  struct { detail::_swizzle<3, T, Q, 1,0,3,-1> E1 ## E0 ## E3; }; \
    +
    503  struct { detail::_swizzle<3, T, Q, 1,1,0,-1> E1 ## E1 ## E0; }; \
    +
    504  struct { detail::_swizzle<3, T, Q, 1,1,1,-1> E1 ## E1 ## E1; }; \
    +
    505  struct { detail::_swizzle<3, T, Q, 1,1,2,-1> E1 ## E1 ## E2; }; \
    +
    506  struct { detail::_swizzle<3, T, Q, 1,1,3,-1> E1 ## E1 ## E3; }; \
    +
    507  struct { detail::_swizzle<3, T, Q, 1,2,0,-1> E1 ## E2 ## E0; }; \
    +
    508  struct { detail::_swizzle<3, T, Q, 1,2,1,-1> E1 ## E2 ## E1; }; \
    +
    509  struct { detail::_swizzle<3, T, Q, 1,2,2,-1> E1 ## E2 ## E2; }; \
    +
    510  struct { detail::_swizzle<3, T, Q, 1,2,3,-1> E1 ## E2 ## E3; }; \
    +
    511  struct { detail::_swizzle<3, T, Q, 1,3,0,-1> E1 ## E3 ## E0; }; \
    +
    512  struct { detail::_swizzle<3, T, Q, 1,3,1,-1> E1 ## E3 ## E1; }; \
    +
    513  struct { detail::_swizzle<3, T, Q, 1,3,2,-1> E1 ## E3 ## E2; }; \
    +
    514  struct { detail::_swizzle<3, T, Q, 1,3,3,-1> E1 ## E3 ## E3; }; \
    +
    515  struct { detail::_swizzle<3, T, Q, 2,0,0,-1> E2 ## E0 ## E0; }; \
    +
    516  struct { detail::_swizzle<3, T, Q, 2,0,1,-1> E2 ## E0 ## E1; }; \
    +
    517  struct { detail::_swizzle<3, T, Q, 2,0,2,-1> E2 ## E0 ## E2; }; \
    +
    518  struct { detail::_swizzle<3, T, Q, 2,0,3,-1> E2 ## E0 ## E3; }; \
    +
    519  struct { detail::_swizzle<3, T, Q, 2,1,0,-1> E2 ## E1 ## E0; }; \
    +
    520  struct { detail::_swizzle<3, T, Q, 2,1,1,-1> E2 ## E1 ## E1; }; \
    +
    521  struct { detail::_swizzle<3, T, Q, 2,1,2,-1> E2 ## E1 ## E2; }; \
    +
    522  struct { detail::_swizzle<3, T, Q, 2,1,3,-1> E2 ## E1 ## E3; }; \
    +
    523  struct { detail::_swizzle<3, T, Q, 2,2,0,-1> E2 ## E2 ## E0; }; \
    +
    524  struct { detail::_swizzle<3, T, Q, 2,2,1,-1> E2 ## E2 ## E1; }; \
    +
    525  struct { detail::_swizzle<3, T, Q, 2,2,2,-1> E2 ## E2 ## E2; }; \
    +
    526  struct { detail::_swizzle<3, T, Q, 2,2,3,-1> E2 ## E2 ## E3; }; \
    +
    527  struct { detail::_swizzle<3, T, Q, 2,3,0,-1> E2 ## E3 ## E0; }; \
    +
    528  struct { detail::_swizzle<3, T, Q, 2,3,1,-1> E2 ## E3 ## E1; }; \
    +
    529  struct { detail::_swizzle<3, T, Q, 2,3,2,-1> E2 ## E3 ## E2; }; \
    +
    530  struct { detail::_swizzle<3, T, Q, 2,3,3,-1> E2 ## E3 ## E3; }; \
    +
    531  struct { detail::_swizzle<3, T, Q, 3,0,0,-1> E3 ## E0 ## E0; }; \
    +
    532  struct { detail::_swizzle<3, T, Q, 3,0,1,-1> E3 ## E0 ## E1; }; \
    +
    533  struct { detail::_swizzle<3, T, Q, 3,0,2,-1> E3 ## E0 ## E2; }; \
    +
    534  struct { detail::_swizzle<3, T, Q, 3,0,3,-1> E3 ## E0 ## E3; }; \
    +
    535  struct { detail::_swizzle<3, T, Q, 3,1,0,-1> E3 ## E1 ## E0; }; \
    +
    536  struct { detail::_swizzle<3, T, Q, 3,1,1,-1> E3 ## E1 ## E1; }; \
    +
    537  struct { detail::_swizzle<3, T, Q, 3,1,2,-1> E3 ## E1 ## E2; }; \
    +
    538  struct { detail::_swizzle<3, T, Q, 3,1,3,-1> E3 ## E1 ## E3; }; \
    +
    539  struct { detail::_swizzle<3, T, Q, 3,2,0,-1> E3 ## E2 ## E0; }; \
    +
    540  struct { detail::_swizzle<3, T, Q, 3,2,1,-1> E3 ## E2 ## E1; }; \
    +
    541  struct { detail::_swizzle<3, T, Q, 3,2,2,-1> E3 ## E2 ## E2; }; \
    +
    542  struct { detail::_swizzle<3, T, Q, 3,2,3,-1> E3 ## E2 ## E3; }; \
    +
    543  struct { detail::_swizzle<3, T, Q, 3,3,0,-1> E3 ## E3 ## E0; }; \
    +
    544  struct { detail::_swizzle<3, T, Q, 3,3,1,-1> E3 ## E3 ## E1; }; \
    +
    545  struct { detail::_swizzle<3, T, Q, 3,3,2,-1> E3 ## E3 ## E2; }; \
    +
    546  struct { detail::_swizzle<3, T, Q, 3,3,3,-1> E3 ## E3 ## E3; };
    +
    547 
    +
    548 #define GLM_SWIZZLE4_4_MEMBERS(T, Q, E0,E1,E2,E3) \
    +
    549  struct { detail::_swizzle<4, T, Q, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
    +
    550  struct { detail::_swizzle<4, T, Q, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
    +
    551  struct { detail::_swizzle<4, T, Q, 0,0,0,2> E0 ## E0 ## E0 ## E2; }; \
    +
    552  struct { detail::_swizzle<4, T, Q, 0,0,0,3> E0 ## E0 ## E0 ## E3; }; \
    +
    553  struct { detail::_swizzle<4, T, Q, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
    +
    554  struct { detail::_swizzle<4, T, Q, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
    +
    555  struct { detail::_swizzle<4, T, Q, 0,0,1,2> E0 ## E0 ## E1 ## E2; }; \
    +
    556  struct { detail::_swizzle<4, T, Q, 0,0,1,3> E0 ## E0 ## E1 ## E3; }; \
    +
    557  struct { detail::_swizzle<4, T, Q, 0,0,2,0> E0 ## E0 ## E2 ## E0; }; \
    +
    558  struct { detail::_swizzle<4, T, Q, 0,0,2,1> E0 ## E0 ## E2 ## E1; }; \
    +
    559  struct { detail::_swizzle<4, T, Q, 0,0,2,2> E0 ## E0 ## E2 ## E2; }; \
    +
    560  struct { detail::_swizzle<4, T, Q, 0,0,2,3> E0 ## E0 ## E2 ## E3; }; \
    +
    561  struct { detail::_swizzle<4, T, Q, 0,0,3,0> E0 ## E0 ## E3 ## E0; }; \
    +
    562  struct { detail::_swizzle<4, T, Q, 0,0,3,1> E0 ## E0 ## E3 ## E1; }; \
    +
    563  struct { detail::_swizzle<4, T, Q, 0,0,3,2> E0 ## E0 ## E3 ## E2; }; \
    +
    564  struct { detail::_swizzle<4, T, Q, 0,0,3,3> E0 ## E0 ## E3 ## E3; }; \
    +
    565  struct { detail::_swizzle<4, T, Q, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
    +
    566  struct { detail::_swizzle<4, T, Q, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
    +
    567  struct { detail::_swizzle<4, T, Q, 0,1,0,2> E0 ## E1 ## E0 ## E2; }; \
    +
    568  struct { detail::_swizzle<4, T, Q, 0,1,0,3> E0 ## E1 ## E0 ## E3; }; \
    +
    569  struct { detail::_swizzle<4, T, Q, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
    +
    570  struct { detail::_swizzle<4, T, Q, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
    +
    571  struct { detail::_swizzle<4, T, Q, 0,1,1,2> E0 ## E1 ## E1 ## E2; }; \
    +
    572  struct { detail::_swizzle<4, T, Q, 0,1,1,3> E0 ## E1 ## E1 ## E3; }; \
    +
    573  struct { detail::_swizzle<4, T, Q, 0,1,2,0> E0 ## E1 ## E2 ## E0; }; \
    +
    574  struct { detail::_swizzle<4, T, Q, 0,1,2,1> E0 ## E1 ## E2 ## E1; }; \
    +
    575  struct { detail::_swizzle<4, T, Q, 0,1,2,2> E0 ## E1 ## E2 ## E2; }; \
    +
    576  struct { detail::_swizzle<4, T, Q, 0,1,2,3> E0 ## E1 ## E2 ## E3; }; \
    +
    577  struct { detail::_swizzle<4, T, Q, 0,1,3,0> E0 ## E1 ## E3 ## E0; }; \
    +
    578  struct { detail::_swizzle<4, T, Q, 0,1,3,1> E0 ## E1 ## E3 ## E1; }; \
    +
    579  struct { detail::_swizzle<4, T, Q, 0,1,3,2> E0 ## E1 ## E3 ## E2; }; \
    +
    580  struct { detail::_swizzle<4, T, Q, 0,1,3,3> E0 ## E1 ## E3 ## E3; }; \
    +
    581  struct { detail::_swizzle<4, T, Q, 0,2,0,0> E0 ## E2 ## E0 ## E0; }; \
    +
    582  struct { detail::_swizzle<4, T, Q, 0,2,0,1> E0 ## E2 ## E0 ## E1; }; \
    +
    583  struct { detail::_swizzle<4, T, Q, 0,2,0,2> E0 ## E2 ## E0 ## E2; }; \
    +
    584  struct { detail::_swizzle<4, T, Q, 0,2,0,3> E0 ## E2 ## E0 ## E3; }; \
    +
    585  struct { detail::_swizzle<4, T, Q, 0,2,1,0> E0 ## E2 ## E1 ## E0; }; \
    +
    586  struct { detail::_swizzle<4, T, Q, 0,2,1,1> E0 ## E2 ## E1 ## E1; }; \
    +
    587  struct { detail::_swizzle<4, T, Q, 0,2,1,2> E0 ## E2 ## E1 ## E2; }; \
    +
    588  struct { detail::_swizzle<4, T, Q, 0,2,1,3> E0 ## E2 ## E1 ## E3; }; \
    +
    589  struct { detail::_swizzle<4, T, Q, 0,2,2,0> E0 ## E2 ## E2 ## E0; }; \
    +
    590  struct { detail::_swizzle<4, T, Q, 0,2,2,1> E0 ## E2 ## E2 ## E1; }; \
    +
    591  struct { detail::_swizzle<4, T, Q, 0,2,2,2> E0 ## E2 ## E2 ## E2; }; \
    +
    592  struct { detail::_swizzle<4, T, Q, 0,2,2,3> E0 ## E2 ## E2 ## E3; }; \
    +
    593  struct { detail::_swizzle<4, T, Q, 0,2,3,0> E0 ## E2 ## E3 ## E0; }; \
    +
    594  struct { detail::_swizzle<4, T, Q, 0,2,3,1> E0 ## E2 ## E3 ## E1; }; \
    +
    595  struct { detail::_swizzle<4, T, Q, 0,2,3,2> E0 ## E2 ## E3 ## E2; }; \
    +
    596  struct { detail::_swizzle<4, T, Q, 0,2,3,3> E0 ## E2 ## E3 ## E3; }; \
    +
    597  struct { detail::_swizzle<4, T, Q, 0,3,0,0> E0 ## E3 ## E0 ## E0; }; \
    +
    598  struct { detail::_swizzle<4, T, Q, 0,3,0,1> E0 ## E3 ## E0 ## E1; }; \
    +
    599  struct { detail::_swizzle<4, T, Q, 0,3,0,2> E0 ## E3 ## E0 ## E2; }; \
    +
    600  struct { detail::_swizzle<4, T, Q, 0,3,0,3> E0 ## E3 ## E0 ## E3; }; \
    +
    601  struct { detail::_swizzle<4, T, Q, 0,3,1,0> E0 ## E3 ## E1 ## E0; }; \
    +
    602  struct { detail::_swizzle<4, T, Q, 0,3,1,1> E0 ## E3 ## E1 ## E1; }; \
    +
    603  struct { detail::_swizzle<4, T, Q, 0,3,1,2> E0 ## E3 ## E1 ## E2; }; \
    +
    604  struct { detail::_swizzle<4, T, Q, 0,3,1,3> E0 ## E3 ## E1 ## E3; }; \
    +
    605  struct { detail::_swizzle<4, T, Q, 0,3,2,0> E0 ## E3 ## E2 ## E0; }; \
    +
    606  struct { detail::_swizzle<4, T, Q, 0,3,2,1> E0 ## E3 ## E2 ## E1; }; \
    +
    607  struct { detail::_swizzle<4, T, Q, 0,3,2,2> E0 ## E3 ## E2 ## E2; }; \
    +
    608  struct { detail::_swizzle<4, T, Q, 0,3,2,3> E0 ## E3 ## E2 ## E3; }; \
    +
    609  struct { detail::_swizzle<4, T, Q, 0,3,3,0> E0 ## E3 ## E3 ## E0; }; \
    +
    610  struct { detail::_swizzle<4, T, Q, 0,3,3,1> E0 ## E3 ## E3 ## E1; }; \
    +
    611  struct { detail::_swizzle<4, T, Q, 0,3,3,2> E0 ## E3 ## E3 ## E2; }; \
    +
    612  struct { detail::_swizzle<4, T, Q, 0,3,3,3> E0 ## E3 ## E3 ## E3; }; \
    +
    613  struct { detail::_swizzle<4, T, Q, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
    +
    614  struct { detail::_swizzle<4, T, Q, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
    +
    615  struct { detail::_swizzle<4, T, Q, 1,0,0,2> E1 ## E0 ## E0 ## E2; }; \
    +
    616  struct { detail::_swizzle<4, T, Q, 1,0,0,3> E1 ## E0 ## E0 ## E3; }; \
    +
    617  struct { detail::_swizzle<4, T, Q, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
    +
    618  struct { detail::_swizzle<4, T, Q, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
    +
    619  struct { detail::_swizzle<4, T, Q, 1,0,1,2> E1 ## E0 ## E1 ## E2; }; \
    +
    620  struct { detail::_swizzle<4, T, Q, 1,0,1,3> E1 ## E0 ## E1 ## E3; }; \
    +
    621  struct { detail::_swizzle<4, T, Q, 1,0,2,0> E1 ## E0 ## E2 ## E0; }; \
    +
    622  struct { detail::_swizzle<4, T, Q, 1,0,2,1> E1 ## E0 ## E2 ## E1; }; \
    +
    623  struct { detail::_swizzle<4, T, Q, 1,0,2,2> E1 ## E0 ## E2 ## E2; }; \
    +
    624  struct { detail::_swizzle<4, T, Q, 1,0,2,3> E1 ## E0 ## E2 ## E3; }; \
    +
    625  struct { detail::_swizzle<4, T, Q, 1,0,3,0> E1 ## E0 ## E3 ## E0; }; \
    +
    626  struct { detail::_swizzle<4, T, Q, 1,0,3,1> E1 ## E0 ## E3 ## E1; }; \
    +
    627  struct { detail::_swizzle<4, T, Q, 1,0,3,2> E1 ## E0 ## E3 ## E2; }; \
    +
    628  struct { detail::_swizzle<4, T, Q, 1,0,3,3> E1 ## E0 ## E3 ## E3; }; \
    +
    629  struct { detail::_swizzle<4, T, Q, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
    +
    630  struct { detail::_swizzle<4, T, Q, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
    +
    631  struct { detail::_swizzle<4, T, Q, 1,1,0,2> E1 ## E1 ## E0 ## E2; }; \
    +
    632  struct { detail::_swizzle<4, T, Q, 1,1,0,3> E1 ## E1 ## E0 ## E3; }; \
    +
    633  struct { detail::_swizzle<4, T, Q, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
    +
    634  struct { detail::_swizzle<4, T, Q, 1,1,1,1> E1 ## E1 ## E1 ## E1; }; \
    +
    635  struct { detail::_swizzle<4, T, Q, 1,1,1,2> E1 ## E1 ## E1 ## E2; }; \
    +
    636  struct { detail::_swizzle<4, T, Q, 1,1,1,3> E1 ## E1 ## E1 ## E3; }; \
    +
    637  struct { detail::_swizzle<4, T, Q, 1,1,2,0> E1 ## E1 ## E2 ## E0; }; \
    +
    638  struct { detail::_swizzle<4, T, Q, 1,1,2,1> E1 ## E1 ## E2 ## E1; }; \
    +
    639  struct { detail::_swizzle<4, T, Q, 1,1,2,2> E1 ## E1 ## E2 ## E2; }; \
    +
    640  struct { detail::_swizzle<4, T, Q, 1,1,2,3> E1 ## E1 ## E2 ## E3; }; \
    +
    641  struct { detail::_swizzle<4, T, Q, 1,1,3,0> E1 ## E1 ## E3 ## E0; }; \
    +
    642  struct { detail::_swizzle<4, T, Q, 1,1,3,1> E1 ## E1 ## E3 ## E1; }; \
    +
    643  struct { detail::_swizzle<4, T, Q, 1,1,3,2> E1 ## E1 ## E3 ## E2; }; \
    +
    644  struct { detail::_swizzle<4, T, Q, 1,1,3,3> E1 ## E1 ## E3 ## E3; }; \
    +
    645  struct { detail::_swizzle<4, T, Q, 1,2,0,0> E1 ## E2 ## E0 ## E0; }; \
    +
    646  struct { detail::_swizzle<4, T, Q, 1,2,0,1> E1 ## E2 ## E0 ## E1; }; \
    +
    647  struct { detail::_swizzle<4, T, Q, 1,2,0,2> E1 ## E2 ## E0 ## E2; }; \
    +
    648  struct { detail::_swizzle<4, T, Q, 1,2,0,3> E1 ## E2 ## E0 ## E3; }; \
    +
    649  struct { detail::_swizzle<4, T, Q, 1,2,1,0> E1 ## E2 ## E1 ## E0; }; \
    +
    650  struct { detail::_swizzle<4, T, Q, 1,2,1,1> E1 ## E2 ## E1 ## E1; }; \
    +
    651  struct { detail::_swizzle<4, T, Q, 1,2,1,2> E1 ## E2 ## E1 ## E2; }; \
    +
    652  struct { detail::_swizzle<4, T, Q, 1,2,1,3> E1 ## E2 ## E1 ## E3; }; \
    +
    653  struct { detail::_swizzle<4, T, Q, 1,2,2,0> E1 ## E2 ## E2 ## E0; }; \
    +
    654  struct { detail::_swizzle<4, T, Q, 1,2,2,1> E1 ## E2 ## E2 ## E1; }; \
    +
    655  struct { detail::_swizzle<4, T, Q, 1,2,2,2> E1 ## E2 ## E2 ## E2; }; \
    +
    656  struct { detail::_swizzle<4, T, Q, 1,2,2,3> E1 ## E2 ## E2 ## E3; }; \
    +
    657  struct { detail::_swizzle<4, T, Q, 1,2,3,0> E1 ## E2 ## E3 ## E0; }; \
    +
    658  struct { detail::_swizzle<4, T, Q, 1,2,3,1> E1 ## E2 ## E3 ## E1; }; \
    +
    659  struct { detail::_swizzle<4, T, Q, 1,2,3,2> E1 ## E2 ## E3 ## E2; }; \
    +
    660  struct { detail::_swizzle<4, T, Q, 1,2,3,3> E1 ## E2 ## E3 ## E3; }; \
    +
    661  struct { detail::_swizzle<4, T, Q, 1,3,0,0> E1 ## E3 ## E0 ## E0; }; \
    +
    662  struct { detail::_swizzle<4, T, Q, 1,3,0,1> E1 ## E3 ## E0 ## E1; }; \
    +
    663  struct { detail::_swizzle<4, T, Q, 1,3,0,2> E1 ## E3 ## E0 ## E2; }; \
    +
    664  struct { detail::_swizzle<4, T, Q, 1,3,0,3> E1 ## E3 ## E0 ## E3; }; \
    +
    665  struct { detail::_swizzle<4, T, Q, 1,3,1,0> E1 ## E3 ## E1 ## E0; }; \
    +
    666  struct { detail::_swizzle<4, T, Q, 1,3,1,1> E1 ## E3 ## E1 ## E1; }; \
    +
    667  struct { detail::_swizzle<4, T, Q, 1,3,1,2> E1 ## E3 ## E1 ## E2; }; \
    +
    668  struct { detail::_swizzle<4, T, Q, 1,3,1,3> E1 ## E3 ## E1 ## E3; }; \
    +
    669  struct { detail::_swizzle<4, T, Q, 1,3,2,0> E1 ## E3 ## E2 ## E0; }; \
    +
    670  struct { detail::_swizzle<4, T, Q, 1,3,2,1> E1 ## E3 ## E2 ## E1; }; \
    +
    671  struct { detail::_swizzle<4, T, Q, 1,3,2,2> E1 ## E3 ## E2 ## E2; }; \
    +
    672  struct { detail::_swizzle<4, T, Q, 1,3,2,3> E1 ## E3 ## E2 ## E3; }; \
    +
    673  struct { detail::_swizzle<4, T, Q, 1,3,3,0> E1 ## E3 ## E3 ## E0; }; \
    +
    674  struct { detail::_swizzle<4, T, Q, 1,3,3,1> E1 ## E3 ## E3 ## E1; }; \
    +
    675  struct { detail::_swizzle<4, T, Q, 1,3,3,2> E1 ## E3 ## E3 ## E2; }; \
    +
    676  struct { detail::_swizzle<4, T, Q, 1,3,3,3> E1 ## E3 ## E3 ## E3; }; \
    +
    677  struct { detail::_swizzle<4, T, Q, 2,0,0,0> E2 ## E0 ## E0 ## E0; }; \
    +
    678  struct { detail::_swizzle<4, T, Q, 2,0,0,1> E2 ## E0 ## E0 ## E1; }; \
    +
    679  struct { detail::_swizzle<4, T, Q, 2,0,0,2> E2 ## E0 ## E0 ## E2; }; \
    +
    680  struct { detail::_swizzle<4, T, Q, 2,0,0,3> E2 ## E0 ## E0 ## E3; }; \
    +
    681  struct { detail::_swizzle<4, T, Q, 2,0,1,0> E2 ## E0 ## E1 ## E0; }; \
    +
    682  struct { detail::_swizzle<4, T, Q, 2,0,1,1> E2 ## E0 ## E1 ## E1; }; \
    +
    683  struct { detail::_swizzle<4, T, Q, 2,0,1,2> E2 ## E0 ## E1 ## E2; }; \
    +
    684  struct { detail::_swizzle<4, T, Q, 2,0,1,3> E2 ## E0 ## E1 ## E3; }; \
    +
    685  struct { detail::_swizzle<4, T, Q, 2,0,2,0> E2 ## E0 ## E2 ## E0; }; \
    +
    686  struct { detail::_swizzle<4, T, Q, 2,0,2,1> E2 ## E0 ## E2 ## E1; }; \
    +
    687  struct { detail::_swizzle<4, T, Q, 2,0,2,2> E2 ## E0 ## E2 ## E2; }; \
    +
    688  struct { detail::_swizzle<4, T, Q, 2,0,2,3> E2 ## E0 ## E2 ## E3; }; \
    +
    689  struct { detail::_swizzle<4, T, Q, 2,0,3,0> E2 ## E0 ## E3 ## E0; }; \
    +
    690  struct { detail::_swizzle<4, T, Q, 2,0,3,1> E2 ## E0 ## E3 ## E1; }; \
    +
    691  struct { detail::_swizzle<4, T, Q, 2,0,3,2> E2 ## E0 ## E3 ## E2; }; \
    +
    692  struct { detail::_swizzle<4, T, Q, 2,0,3,3> E2 ## E0 ## E3 ## E3; }; \
    +
    693  struct { detail::_swizzle<4, T, Q, 2,1,0,0> E2 ## E1 ## E0 ## E0; }; \
    +
    694  struct { detail::_swizzle<4, T, Q, 2,1,0,1> E2 ## E1 ## E0 ## E1; }; \
    +
    695  struct { detail::_swizzle<4, T, Q, 2,1,0,2> E2 ## E1 ## E0 ## E2; }; \
    +
    696  struct { detail::_swizzle<4, T, Q, 2,1,0,3> E2 ## E1 ## E0 ## E3; }; \
    +
    697  struct { detail::_swizzle<4, T, Q, 2,1,1,0> E2 ## E1 ## E1 ## E0; }; \
    +
    698  struct { detail::_swizzle<4, T, Q, 2,1,1,1> E2 ## E1 ## E1 ## E1; }; \
    +
    699  struct { detail::_swizzle<4, T, Q, 2,1,1,2> E2 ## E1 ## E1 ## E2; }; \
    +
    700  struct { detail::_swizzle<4, T, Q, 2,1,1,3> E2 ## E1 ## E1 ## E3; }; \
    +
    701  struct { detail::_swizzle<4, T, Q, 2,1,2,0> E2 ## E1 ## E2 ## E0; }; \
    +
    702  struct { detail::_swizzle<4, T, Q, 2,1,2,1> E2 ## E1 ## E2 ## E1; }; \
    +
    703  struct { detail::_swizzle<4, T, Q, 2,1,2,2> E2 ## E1 ## E2 ## E2; }; \
    +
    704  struct { detail::_swizzle<4, T, Q, 2,1,2,3> E2 ## E1 ## E2 ## E3; }; \
    +
    705  struct { detail::_swizzle<4, T, Q, 2,1,3,0> E2 ## E1 ## E3 ## E0; }; \
    +
    706  struct { detail::_swizzle<4, T, Q, 2,1,3,1> E2 ## E1 ## E3 ## E1; }; \
    +
    707  struct { detail::_swizzle<4, T, Q, 2,1,3,2> E2 ## E1 ## E3 ## E2; }; \
    +
    708  struct { detail::_swizzle<4, T, Q, 2,1,3,3> E2 ## E1 ## E3 ## E3; }; \
    +
    709  struct { detail::_swizzle<4, T, Q, 2,2,0,0> E2 ## E2 ## E0 ## E0; }; \
    +
    710  struct { detail::_swizzle<4, T, Q, 2,2,0,1> E2 ## E2 ## E0 ## E1; }; \
    +
    711  struct { detail::_swizzle<4, T, Q, 2,2,0,2> E2 ## E2 ## E0 ## E2; }; \
    +
    712  struct { detail::_swizzle<4, T, Q, 2,2,0,3> E2 ## E2 ## E0 ## E3; }; \
    +
    713  struct { detail::_swizzle<4, T, Q, 2,2,1,0> E2 ## E2 ## E1 ## E0; }; \
    +
    714  struct { detail::_swizzle<4, T, Q, 2,2,1,1> E2 ## E2 ## E1 ## E1; }; \
    +
    715  struct { detail::_swizzle<4, T, Q, 2,2,1,2> E2 ## E2 ## E1 ## E2; }; \
    +
    716  struct { detail::_swizzle<4, T, Q, 2,2,1,3> E2 ## E2 ## E1 ## E3; }; \
    +
    717  struct { detail::_swizzle<4, T, Q, 2,2,2,0> E2 ## E2 ## E2 ## E0; }; \
    +
    718  struct { detail::_swizzle<4, T, Q, 2,2,2,1> E2 ## E2 ## E2 ## E1; }; \
    +
    719  struct { detail::_swizzle<4, T, Q, 2,2,2,2> E2 ## E2 ## E2 ## E2; }; \
    +
    720  struct { detail::_swizzle<4, T, Q, 2,2,2,3> E2 ## E2 ## E2 ## E3; }; \
    +
    721  struct { detail::_swizzle<4, T, Q, 2,2,3,0> E2 ## E2 ## E3 ## E0; }; \
    +
    722  struct { detail::_swizzle<4, T, Q, 2,2,3,1> E2 ## E2 ## E3 ## E1; }; \
    +
    723  struct { detail::_swizzle<4, T, Q, 2,2,3,2> E2 ## E2 ## E3 ## E2; }; \
    +
    724  struct { detail::_swizzle<4, T, Q, 2,2,3,3> E2 ## E2 ## E3 ## E3; }; \
    +
    725  struct { detail::_swizzle<4, T, Q, 2,3,0,0> E2 ## E3 ## E0 ## E0; }; \
    +
    726  struct { detail::_swizzle<4, T, Q, 2,3,0,1> E2 ## E3 ## E0 ## E1; }; \
    +
    727  struct { detail::_swizzle<4, T, Q, 2,3,0,2> E2 ## E3 ## E0 ## E2; }; \
    +
    728  struct { detail::_swizzle<4, T, Q, 2,3,0,3> E2 ## E3 ## E0 ## E3; }; \
    +
    729  struct { detail::_swizzle<4, T, Q, 2,3,1,0> E2 ## E3 ## E1 ## E0; }; \
    +
    730  struct { detail::_swizzle<4, T, Q, 2,3,1,1> E2 ## E3 ## E1 ## E1; }; \
    +
    731  struct { detail::_swizzle<4, T, Q, 2,3,1,2> E2 ## E3 ## E1 ## E2; }; \
    +
    732  struct { detail::_swizzle<4, T, Q, 2,3,1,3> E2 ## E3 ## E1 ## E3; }; \
    +
    733  struct { detail::_swizzle<4, T, Q, 2,3,2,0> E2 ## E3 ## E2 ## E0; }; \
    +
    734  struct { detail::_swizzle<4, T, Q, 2,3,2,1> E2 ## E3 ## E2 ## E1; }; \
    +
    735  struct { detail::_swizzle<4, T, Q, 2,3,2,2> E2 ## E3 ## E2 ## E2; }; \
    +
    736  struct { detail::_swizzle<4, T, Q, 2,3,2,3> E2 ## E3 ## E2 ## E3; }; \
    +
    737  struct { detail::_swizzle<4, T, Q, 2,3,3,0> E2 ## E3 ## E3 ## E0; }; \
    +
    738  struct { detail::_swizzle<4, T, Q, 2,3,3,1> E2 ## E3 ## E3 ## E1; }; \
    +
    739  struct { detail::_swizzle<4, T, Q, 2,3,3,2> E2 ## E3 ## E3 ## E2; }; \
    +
    740  struct { detail::_swizzle<4, T, Q, 2,3,3,3> E2 ## E3 ## E3 ## E3; }; \
    +
    741  struct { detail::_swizzle<4, T, Q, 3,0,0,0> E3 ## E0 ## E0 ## E0; }; \
    +
    742  struct { detail::_swizzle<4, T, Q, 3,0,0,1> E3 ## E0 ## E0 ## E1; }; \
    +
    743  struct { detail::_swizzle<4, T, Q, 3,0,0,2> E3 ## E0 ## E0 ## E2; }; \
    +
    744  struct { detail::_swizzle<4, T, Q, 3,0,0,3> E3 ## E0 ## E0 ## E3; }; \
    +
    745  struct { detail::_swizzle<4, T, Q, 3,0,1,0> E3 ## E0 ## E1 ## E0; }; \
    +
    746  struct { detail::_swizzle<4, T, Q, 3,0,1,1> E3 ## E0 ## E1 ## E1; }; \
    +
    747  struct { detail::_swizzle<4, T, Q, 3,0,1,2> E3 ## E0 ## E1 ## E2; }; \
    +
    748  struct { detail::_swizzle<4, T, Q, 3,0,1,3> E3 ## E0 ## E1 ## E3; }; \
    +
    749  struct { detail::_swizzle<4, T, Q, 3,0,2,0> E3 ## E0 ## E2 ## E0; }; \
    +
    750  struct { detail::_swizzle<4, T, Q, 3,0,2,1> E3 ## E0 ## E2 ## E1; }; \
    +
    751  struct { detail::_swizzle<4, T, Q, 3,0,2,2> E3 ## E0 ## E2 ## E2; }; \
    +
    752  struct { detail::_swizzle<4, T, Q, 3,0,2,3> E3 ## E0 ## E2 ## E3; }; \
    +
    753  struct { detail::_swizzle<4, T, Q, 3,0,3,0> E3 ## E0 ## E3 ## E0; }; \
    +
    754  struct { detail::_swizzle<4, T, Q, 3,0,3,1> E3 ## E0 ## E3 ## E1; }; \
    +
    755  struct { detail::_swizzle<4, T, Q, 3,0,3,2> E3 ## E0 ## E3 ## E2; }; \
    +
    756  struct { detail::_swizzle<4, T, Q, 3,0,3,3> E3 ## E0 ## E3 ## E3; }; \
    +
    757  struct { detail::_swizzle<4, T, Q, 3,1,0,0> E3 ## E1 ## E0 ## E0; }; \
    +
    758  struct { detail::_swizzle<4, T, Q, 3,1,0,1> E3 ## E1 ## E0 ## E1; }; \
    +
    759  struct { detail::_swizzle<4, T, Q, 3,1,0,2> E3 ## E1 ## E0 ## E2; }; \
    +
    760  struct { detail::_swizzle<4, T, Q, 3,1,0,3> E3 ## E1 ## E0 ## E3; }; \
    +
    761  struct { detail::_swizzle<4, T, Q, 3,1,1,0> E3 ## E1 ## E1 ## E0; }; \
    +
    762  struct { detail::_swizzle<4, T, Q, 3,1,1,1> E3 ## E1 ## E1 ## E1; }; \
    +
    763  struct { detail::_swizzle<4, T, Q, 3,1,1,2> E3 ## E1 ## E1 ## E2; }; \
    +
    764  struct { detail::_swizzle<4, T, Q, 3,1,1,3> E3 ## E1 ## E1 ## E3; }; \
    +
    765  struct { detail::_swizzle<4, T, Q, 3,1,2,0> E3 ## E1 ## E2 ## E0; }; \
    +
    766  struct { detail::_swizzle<4, T, Q, 3,1,2,1> E3 ## E1 ## E2 ## E1; }; \
    +
    767  struct { detail::_swizzle<4, T, Q, 3,1,2,2> E3 ## E1 ## E2 ## E2; }; \
    +
    768  struct { detail::_swizzle<4, T, Q, 3,1,2,3> E3 ## E1 ## E2 ## E3; }; \
    +
    769  struct { detail::_swizzle<4, T, Q, 3,1,3,0> E3 ## E1 ## E3 ## E0; }; \
    +
    770  struct { detail::_swizzle<4, T, Q, 3,1,3,1> E3 ## E1 ## E3 ## E1; }; \
    +
    771  struct { detail::_swizzle<4, T, Q, 3,1,3,2> E3 ## E1 ## E3 ## E2; }; \
    +
    772  struct { detail::_swizzle<4, T, Q, 3,1,3,3> E3 ## E1 ## E3 ## E3; }; \
    +
    773  struct { detail::_swizzle<4, T, Q, 3,2,0,0> E3 ## E2 ## E0 ## E0; }; \
    +
    774  struct { detail::_swizzle<4, T, Q, 3,2,0,1> E3 ## E2 ## E0 ## E1; }; \
    +
    775  struct { detail::_swizzle<4, T, Q, 3,2,0,2> E3 ## E2 ## E0 ## E2; }; \
    +
    776  struct { detail::_swizzle<4, T, Q, 3,2,0,3> E3 ## E2 ## E0 ## E3; }; \
    +
    777  struct { detail::_swizzle<4, T, Q, 3,2,1,0> E3 ## E2 ## E1 ## E0; }; \
    +
    778  struct { detail::_swizzle<4, T, Q, 3,2,1,1> E3 ## E2 ## E1 ## E1; }; \
    +
    779  struct { detail::_swizzle<4, T, Q, 3,2,1,2> E3 ## E2 ## E1 ## E2; }; \
    +
    780  struct { detail::_swizzle<4, T, Q, 3,2,1,3> E3 ## E2 ## E1 ## E3; }; \
    +
    781  struct { detail::_swizzle<4, T, Q, 3,2,2,0> E3 ## E2 ## E2 ## E0; }; \
    +
    782  struct { detail::_swizzle<4, T, Q, 3,2,2,1> E3 ## E2 ## E2 ## E1; }; \
    +
    783  struct { detail::_swizzle<4, T, Q, 3,2,2,2> E3 ## E2 ## E2 ## E2; }; \
    +
    784  struct { detail::_swizzle<4, T, Q, 3,2,2,3> E3 ## E2 ## E2 ## E3; }; \
    +
    785  struct { detail::_swizzle<4, T, Q, 3,2,3,0> E3 ## E2 ## E3 ## E0; }; \
    +
    786  struct { detail::_swizzle<4, T, Q, 3,2,3,1> E3 ## E2 ## E3 ## E1; }; \
    +
    787  struct { detail::_swizzle<4, T, Q, 3,2,3,2> E3 ## E2 ## E3 ## E2; }; \
    +
    788  struct { detail::_swizzle<4, T, Q, 3,2,3,3> E3 ## E2 ## E3 ## E3; }; \
    +
    789  struct { detail::_swizzle<4, T, Q, 3,3,0,0> E3 ## E3 ## E0 ## E0; }; \
    +
    790  struct { detail::_swizzle<4, T, Q, 3,3,0,1> E3 ## E3 ## E0 ## E1; }; \
    +
    791  struct { detail::_swizzle<4, T, Q, 3,3,0,2> E3 ## E3 ## E0 ## E2; }; \
    +
    792  struct { detail::_swizzle<4, T, Q, 3,3,0,3> E3 ## E3 ## E0 ## E3; }; \
    +
    793  struct { detail::_swizzle<4, T, Q, 3,3,1,0> E3 ## E3 ## E1 ## E0; }; \
    +
    794  struct { detail::_swizzle<4, T, Q, 3,3,1,1> E3 ## E3 ## E1 ## E1; }; \
    +
    795  struct { detail::_swizzle<4, T, Q, 3,3,1,2> E3 ## E3 ## E1 ## E2; }; \
    +
    796  struct { detail::_swizzle<4, T, Q, 3,3,1,3> E3 ## E3 ## E1 ## E3; }; \
    +
    797  struct { detail::_swizzle<4, T, Q, 3,3,2,0> E3 ## E3 ## E2 ## E0; }; \
    +
    798  struct { detail::_swizzle<4, T, Q, 3,3,2,1> E3 ## E3 ## E2 ## E1; }; \
    +
    799  struct { detail::_swizzle<4, T, Q, 3,3,2,2> E3 ## E3 ## E2 ## E2; }; \
    +
    800  struct { detail::_swizzle<4, T, Q, 3,3,2,3> E3 ## E3 ## E2 ## E3; }; \
    +
    801  struct { detail::_swizzle<4, T, Q, 3,3,3,0> E3 ## E3 ## E3 ## E0; }; \
    +
    802  struct { detail::_swizzle<4, T, Q, 3,3,3,1> E3 ## E3 ## E3 ## E1; }; \
    +
    803  struct { detail::_swizzle<4, T, Q, 3,3,3,2> E3 ## E3 ## E3 ## E2; }; \
    +
    804  struct { detail::_swizzle<4, T, Q, 3,3,3,3> E3 ## E3 ## E3 ## E3; };
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType e()
    Return e constant.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00005_source.html b/external/glm-0.9.9.8/doc/api/a00005_source.html similarity index 95% rename from external/glm/doc/api/a00005_source.html rename to external/glm-0.9.9.8/doc/api/a00005_source.html index a337f5f..b07f0b6 100644 --- a/external/glm/doc/api/a00005_source.html +++ b/external/glm-0.9.9.8/doc/api/a00005_source.html @@ -1,782 +1,781 @@ - - - - - - -0.9.9 API documenation: _swizzle_func.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    _swizzle_func.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    4 #pragma once
    -
    5 
    -
    6 #define GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, CONST, A, B) \
    -
    7  vec<2, T, Q> A ## B() CONST \
    -
    8  { \
    -
    9  return vec<2, T, Q>(this->A, this->B); \
    -
    10  }
    -
    11 
    -
    12 #define GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, CONST, A, B, C) \
    -
    13  vec<3, T, Q> A ## B ## C() CONST \
    -
    14  { \
    -
    15  return vec<3, T, Q>(this->A, this->B, this->C); \
    -
    16  }
    -
    17 
    -
    18 #define GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, CONST, A, B, C, D) \
    -
    19  vec<4, T, Q> A ## B ## C ## D() CONST \
    -
    20  { \
    -
    21  return vec<4, T, Q>(this->A, this->B, this->C, this->D); \
    -
    22  }
    -
    23 
    -
    24 #define GLM_SWIZZLE_GEN_VEC2_ENTRY_DEF(T, P, L, CONST, A, B) \
    -
    25  template<typename T> \
    -
    26  vec<L, T, Q> vec<L, T, Q>::A ## B() CONST \
    -
    27  { \
    -
    28  return vec<2, T, Q>(this->A, this->B); \
    -
    29  }
    -
    30 
    -
    31 #define GLM_SWIZZLE_GEN_VEC3_ENTRY_DEF(T, P, L, CONST, A, B, C) \
    -
    32  template<typename T> \
    -
    33  vec<3, T, Q> vec<L, T, Q>::A ## B ## C() CONST \
    -
    34  { \
    -
    35  return vec<3, T, Q>(this->A, this->B, this->C); \
    -
    36  }
    -
    37 
    -
    38 #define GLM_SWIZZLE_GEN_VEC4_ENTRY_DEF(T, P, L, CONST, A, B, C, D) \
    -
    39  template<typename T> \
    -
    40  vec<4, T, Q> vec<L, T, Q>::A ## B ## C ## D() CONST \
    -
    41  { \
    -
    42  return vec<4, T, Q>(this->A, this->B, this->C, this->D); \
    -
    43  }
    -
    44 
    -
    45 #define GLM_MUTABLE
    -
    46 
    -
    47 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    48  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, 2, GLM_MUTABLE, A, B) \
    -
    49  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, 2, GLM_MUTABLE, B, A)
    -
    50 
    -
    51 #define GLM_SWIZZLE_GEN_REF_FROM_VEC2(T, P) \
    -
    52  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, x, y) \
    -
    53  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, r, g) \
    -
    54  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, s, t)
    -
    55 
    -
    56 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    57  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, B) \
    -
    58  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, C) \
    -
    59  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, A) \
    -
    60  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, C) \
    -
    61  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, A) \
    -
    62  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, B)
    -
    63 
    -
    64 #define GLM_SWIZZLE_GEN_REF3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    65  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, A, B, C) \
    -
    66  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, A, C, B) \
    -
    67  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, B, A, C) \
    -
    68  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, B, C, A) \
    -
    69  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, C, A, B) \
    -
    70  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, C, B, A)
    -
    71 
    -
    72 #define GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, A, B, C) \
    -
    73  GLM_SWIZZLE_GEN_REF3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    74  GLM_SWIZZLE_GEN_REF2_FROM_VEC3_SWIZZLE(T, P, A, B, C)
    -
    75 
    -
    76 #define GLM_SWIZZLE_GEN_REF_FROM_VEC3(T, P) \
    -
    77  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, x, y, z) \
    -
    78  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, r, g, b) \
    -
    79  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, s, t, p)
    -
    80 
    -
    81 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    82  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, B) \
    -
    83  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, C) \
    -
    84  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, D) \
    -
    85  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, A) \
    -
    86  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, C) \
    -
    87  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, D) \
    -
    88  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, A) \
    -
    89  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, B) \
    -
    90  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, D) \
    -
    91  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, A) \
    -
    92  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, B) \
    -
    93  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, C)
    -
    94 
    -
    95 #define GLM_SWIZZLE_GEN_REF3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    96  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, B, C) \
    -
    97  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, B, D) \
    -
    98  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, C, B) \
    -
    99  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, C, D) \
    -
    100  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, D, B) \
    -
    101  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, D, C) \
    -
    102  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, A, C) \
    -
    103  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, A, D) \
    -
    104  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, C, A) \
    -
    105  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, C, D) \
    -
    106  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, D, A) \
    -
    107  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, D, C) \
    -
    108  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, A, B) \
    -
    109  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, A, D) \
    -
    110  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, B, A) \
    -
    111  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, B, D) \
    -
    112  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, D, A) \
    -
    113  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, D, B) \
    -
    114  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, A, B) \
    -
    115  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, A, C) \
    -
    116  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, B, A) \
    -
    117  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, B, C) \
    -
    118  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, C, A) \
    -
    119  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, C, B)
    -
    120 
    -
    121 #define GLM_SWIZZLE_GEN_REF4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    122  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, C, B, D) \
    -
    123  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, C, D, B) \
    -
    124  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, D, B, C) \
    -
    125  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, D, C, B) \
    -
    126  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, B, D, C) \
    -
    127  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, B, C, D) \
    -
    128  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, C, A, D) \
    -
    129  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, C, D, A) \
    -
    130  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, D, A, C) \
    -
    131  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, D, C, A) \
    -
    132  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, A, D, C) \
    -
    133  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, A, C, D) \
    -
    134  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, B, A, D) \
    -
    135  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, B, D, A) \
    -
    136  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, D, A, B) \
    -
    137  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, D, B, A) \
    -
    138  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, A, D, B) \
    -
    139  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, A, B, D) \
    -
    140  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, C, B, A) \
    -
    141  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, C, A, B) \
    -
    142  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, A, B, C) \
    -
    143  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, A, C, B) \
    -
    144  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, B, A, C) \
    -
    145  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, B, C, A)
    -
    146 
    -
    147 #define GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, A, B, C, D) \
    -
    148  GLM_SWIZZLE_GEN_REF2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    149  GLM_SWIZZLE_GEN_REF3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    150  GLM_SWIZZLE_GEN_REF4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D)
    -
    151 
    -
    152 #define GLM_SWIZZLE_GEN_REF_FROM_VEC4(T, P) \
    -
    153  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, x, y, z, w) \
    -
    154  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, r, g, b, a) \
    -
    155  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, s, t, p, q)
    -
    156 
    -
    157 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    158  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    -
    159  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    -
    160  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    -
    161  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B)
    -
    162 
    -
    163 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    164  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    -
    165  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    -
    166  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    -
    167  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    -
    168  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    -
    169  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    -
    170  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    -
    171  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B)
    -
    172 
    -
    173 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    174  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    -
    175  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    -
    176  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    -
    177  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    -
    178  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    -
    179  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    -
    180  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    -
    181  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    -
    182  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    -
    183  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    -
    184  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    -
    185  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    -
    186  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    -
    187  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    -
    188  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    -
    189  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B)
    -
    190 
    -
    191 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, A, B) \
    -
    192  GLM_SWIZZLE_GEN_VEC2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    193  GLM_SWIZZLE_GEN_VEC3_FROM_VEC2_SWIZZLE(T, P, A, B) \
    -
    194  GLM_SWIZZLE_GEN_VEC4_FROM_VEC2_SWIZZLE(T, P, A, B)
    -
    195 
    -
    196 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC2(T, P) \
    -
    197  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, x, y) \
    -
    198  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, r, g) \
    -
    199  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, s, t)
    -
    200 
    -
    201 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    202  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    -
    203  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    -
    204  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, C) \
    -
    205  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    -
    206  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B) \
    -
    207  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, C) \
    -
    208  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, A) \
    -
    209  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, B) \
    -
    210  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, C)
    -
    211 
    -
    212 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    213  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    -
    214  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    -
    215  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, C) \
    -
    216  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    -
    217  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    -
    218  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, C) \
    -
    219  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, A) \
    -
    220  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, B) \
    -
    221  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, C) \
    -
    222  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    -
    223  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    -
    224  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, C) \
    -
    225  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    -
    226  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B) \
    -
    227  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, C) \
    -
    228  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, A) \
    -
    229  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, B) \
    -
    230  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, C) \
    -
    231  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, A) \
    -
    232  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, B) \
    -
    233  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, C) \
    -
    234  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, A) \
    -
    235  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, B) \
    -
    236  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, C) \
    -
    237  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, A) \
    -
    238  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, B) \
    -
    239  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, C)
    -
    240 
    -
    241 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    242  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    -
    243  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    -
    244  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, C) \
    -
    245  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    -
    246  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    -
    247  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, C) \
    -
    248  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, A) \
    -
    249  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, B) \
    -
    250  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, C) \
    -
    251  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    -
    252  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    -
    253  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, C) \
    -
    254  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    -
    255  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    -
    256  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, C) \
    -
    257  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, A) \
    -
    258  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, B) \
    -
    259  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, C) \
    -
    260  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, A) \
    -
    261  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, B) \
    -
    262  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, C) \
    -
    263  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, A) \
    -
    264  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, B) \
    -
    265  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, C) \
    -
    266  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, A) \
    -
    267  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, B) \
    -
    268  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, C) \
    -
    269  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    -
    270  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    -
    271  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, C) \
    -
    272  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    -
    273  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    -
    274  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, C) \
    -
    275  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, A) \
    -
    276  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, B) \
    -
    277  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, C) \
    -
    278  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    -
    279  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    -
    280  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, C) \
    -
    281  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    -
    282  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B) \
    -
    283  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, C) \
    -
    284  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, A) \
    -
    285  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, B) \
    -
    286  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, C) \
    -
    287  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, A) \
    -
    288  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, B) \
    -
    289  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, C) \
    -
    290  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, A) \
    -
    291  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, B) \
    -
    292  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, C) \
    -
    293  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, A) \
    -
    294  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, B) \
    -
    295  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, C) \
    -
    296  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, A) \
    -
    297  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, B) \
    -
    298  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, C) \
    -
    299  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, A) \
    -
    300  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, B) \
    -
    301  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, C) \
    -
    302  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, A) \
    -
    303  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, B) \
    -
    304  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, C) \
    -
    305  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, A) \
    -
    306  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, B) \
    -
    307  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, C) \
    -
    308  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, A) \
    -
    309  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, B) \
    -
    310  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, C) \
    -
    311  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, A) \
    -
    312  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, B) \
    -
    313  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, C) \
    -
    314  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, A) \
    -
    315  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, B) \
    -
    316  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, C) \
    -
    317  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, A) \
    -
    318  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, B) \
    -
    319  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, C) \
    -
    320  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, A) \
    -
    321  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, B) \
    -
    322  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, C)
    -
    323 
    -
    324 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, A, B, C) \
    -
    325  GLM_SWIZZLE_GEN_VEC2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    326  GLM_SWIZZLE_GEN_VEC3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    -
    327  GLM_SWIZZLE_GEN_VEC4_FROM_VEC3_SWIZZLE(T, P, A, B, C)
    -
    328 
    -
    329 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P) \
    -
    330  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, x, y, z) \
    -
    331  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, r, g, b) \
    -
    332  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, s, t, p)
    -
    333 
    -
    334 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    335  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    -
    336  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    -
    337  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, C) \
    -
    338  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, D) \
    -
    339  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    -
    340  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B) \
    -
    341  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, C) \
    -
    342  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, D) \
    -
    343  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, A) \
    -
    344  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, B) \
    -
    345  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, C) \
    -
    346  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, D) \
    -
    347  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, A) \
    -
    348  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, B) \
    -
    349  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, C) \
    -
    350  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, D)
    -
    351 
    -
    352 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    353  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    -
    354  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    -
    355  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, C) \
    -
    356  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, D) \
    -
    357  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    -
    358  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    -
    359  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, C) \
    -
    360  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, D) \
    -
    361  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, A) \
    -
    362  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, B) \
    -
    363  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, C) \
    -
    364  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, D) \
    -
    365  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, A) \
    -
    366  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, B) \
    -
    367  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, C) \
    -
    368  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, D) \
    -
    369  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    -
    370  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    -
    371  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, C) \
    -
    372  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, D) \
    -
    373  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    -
    374  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B) \
    -
    375  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, C) \
    -
    376  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, D) \
    -
    377  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, A) \
    -
    378  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, B) \
    -
    379  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, C) \
    -
    380  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, D) \
    -
    381  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, A) \
    -
    382  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, B) \
    -
    383  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, C) \
    -
    384  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, D) \
    -
    385  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, A) \
    -
    386  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, B) \
    -
    387  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, C) \
    -
    388  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, D) \
    -
    389  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, A) \
    -
    390  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, B) \
    -
    391  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, C) \
    -
    392  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, D) \
    -
    393  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, A) \
    -
    394  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, B) \
    -
    395  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, C) \
    -
    396  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, D) \
    -
    397  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, A) \
    -
    398  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, B) \
    -
    399  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, C) \
    -
    400  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, D) \
    -
    401  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, A) \
    -
    402  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, B) \
    -
    403  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, C) \
    -
    404  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, D) \
    -
    405  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, A) \
    -
    406  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, B) \
    -
    407  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, C) \
    -
    408  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, D) \
    -
    409  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, A) \
    -
    410  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, B) \
    -
    411  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, C) \
    -
    412  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, D) \
    -
    413  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, A) \
    -
    414  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, B) \
    -
    415  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, C) \
    -
    416  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, D)
    -
    417 
    -
    418 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    419  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    -
    420  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    -
    421  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, C) \
    -
    422  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, D) \
    -
    423  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    -
    424  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    -
    425  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, C) \
    -
    426  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, D) \
    -
    427  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, A) \
    -
    428  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, B) \
    -
    429  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, C) \
    -
    430  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, D) \
    -
    431  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, A) \
    -
    432  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, B) \
    -
    433  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, C) \
    -
    434  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, D) \
    -
    435  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    -
    436  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    -
    437  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, C) \
    -
    438  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, D) \
    -
    439  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    -
    440  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    -
    441  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, C) \
    -
    442  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, D) \
    -
    443  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, A) \
    -
    444  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, B) \
    -
    445  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, C) \
    -
    446  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, D) \
    -
    447  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, A) \
    -
    448  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, B) \
    -
    449  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, C) \
    -
    450  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, D) \
    -
    451  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, A) \
    -
    452  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, B) \
    -
    453  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, C) \
    -
    454  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, D) \
    -
    455  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, A) \
    -
    456  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, B) \
    -
    457  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, C) \
    -
    458  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, D) \
    -
    459  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, A) \
    -
    460  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, B) \
    -
    461  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, C) \
    -
    462  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, D) \
    -
    463  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, A) \
    -
    464  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, B) \
    -
    465  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, C) \
    -
    466  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, D) \
    -
    467  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, A) \
    -
    468  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, B) \
    -
    469  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, C) \
    -
    470  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, D) \
    -
    471  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, A) \
    -
    472  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, B) \
    -
    473  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, C) \
    -
    474  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, D) \
    -
    475  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, A) \
    -
    476  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, B) \
    -
    477  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, C) \
    -
    478  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, D) \
    -
    479  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, A) \
    -
    480  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, B) \
    -
    481  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, C) \
    -
    482  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, D) \
    -
    483  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    -
    484  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    -
    485  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, C) \
    -
    486  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, D) \
    -
    487  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    -
    488  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    -
    489  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, C) \
    -
    490  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, D) \
    -
    491  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, A) \
    -
    492  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, B) \
    -
    493  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, C) \
    -
    494  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, D) \
    -
    495  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, A) \
    -
    496  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, B) \
    -
    497  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, C) \
    -
    498  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, D) \
    -
    499  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    -
    500  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    -
    501  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, C) \
    -
    502  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, D) \
    -
    503  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    -
    504  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B) \
    -
    505  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, C) \
    -
    506  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, D) \
    -
    507  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, A) \
    -
    508  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, B) \
    -
    509  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, C) \
    -
    510  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, D) \
    -
    511  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, A) \
    -
    512  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, B) \
    -
    513  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, C) \
    -
    514  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, D) \
    -
    515  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, A) \
    -
    516  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, B) \
    -
    517  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, C) \
    -
    518  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, D) \
    -
    519  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, A) \
    -
    520  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, B) \
    -
    521  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, C) \
    -
    522  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, D) \
    -
    523  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, A) \
    -
    524  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, B) \
    -
    525  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, C) \
    -
    526  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, D) \
    -
    527  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, A) \
    -
    528  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, B) \
    -
    529  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, C) \
    -
    530  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, D) \
    -
    531  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, A) \
    -
    532  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, B) \
    -
    533  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, C) \
    -
    534  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, D) \
    -
    535  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, A) \
    -
    536  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, B) \
    -
    537  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, C) \
    -
    538  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, D) \
    -
    539  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, A) \
    -
    540  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, B) \
    -
    541  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, C) \
    -
    542  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, D) \
    -
    543  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, A) \
    -
    544  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, B) \
    -
    545  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, C) \
    -
    546  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, D) \
    -
    547  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, A) \
    -
    548  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, B) \
    -
    549  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, C) \
    -
    550  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, D) \
    -
    551  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, A) \
    -
    552  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, B) \
    -
    553  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, C) \
    -
    554  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, D) \
    -
    555  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, A) \
    -
    556  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, B) \
    -
    557  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, C) \
    -
    558  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, D) \
    -
    559  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, A) \
    -
    560  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, B) \
    -
    561  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, C) \
    -
    562  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, D) \
    -
    563  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, A) \
    -
    564  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, B) \
    -
    565  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, C) \
    -
    566  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, D) \
    -
    567  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, A) \
    -
    568  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, B) \
    -
    569  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, C) \
    -
    570  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, D) \
    -
    571  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, A) \
    -
    572  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, B) \
    -
    573  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, C) \
    -
    574  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, D) \
    -
    575  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, A) \
    -
    576  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, B) \
    -
    577  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, C) \
    -
    578  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, D) \
    -
    579  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, A) \
    -
    580  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, B) \
    -
    581  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, C) \
    -
    582  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, D) \
    -
    583  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, A) \
    -
    584  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, B) \
    -
    585  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, C) \
    -
    586  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, D) \
    -
    587  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, A) \
    -
    588  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, B) \
    -
    589  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, C) \
    -
    590  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, D) \
    -
    591  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, A) \
    -
    592  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, B) \
    -
    593  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, C) \
    -
    594  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, D) \
    -
    595  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, A) \
    -
    596  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, B) \
    -
    597  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, C) \
    -
    598  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, D) \
    -
    599  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, A) \
    -
    600  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, B) \
    -
    601  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, C) \
    -
    602  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, D) \
    -
    603  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, A) \
    -
    604  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, B) \
    -
    605  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, C) \
    -
    606  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, D) \
    -
    607  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, A) \
    -
    608  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, B) \
    -
    609  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, C) \
    -
    610  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, D) \
    -
    611  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, A) \
    -
    612  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, B) \
    -
    613  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, C) \
    -
    614  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, D) \
    -
    615  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, A) \
    -
    616  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, B) \
    -
    617  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, C) \
    -
    618  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, D) \
    -
    619  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, A) \
    -
    620  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, B) \
    -
    621  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, C) \
    -
    622  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, D) \
    -
    623  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, A) \
    -
    624  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, B) \
    -
    625  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, C) \
    -
    626  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, D) \
    -
    627  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, A) \
    -
    628  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, B) \
    -
    629  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, C) \
    -
    630  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, D) \
    -
    631  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, A) \
    -
    632  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, B) \
    -
    633  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, C) \
    -
    634  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, D) \
    -
    635  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, A) \
    -
    636  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, B) \
    -
    637  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, C) \
    -
    638  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, D) \
    -
    639  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, A) \
    -
    640  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, B) \
    -
    641  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, C) \
    -
    642  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, D) \
    -
    643  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, A) \
    -
    644  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, B) \
    -
    645  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, C) \
    -
    646  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, D) \
    -
    647  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, A) \
    -
    648  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, B) \
    -
    649  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, C) \
    -
    650  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, D) \
    -
    651  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, A) \
    -
    652  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, B) \
    -
    653  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, C) \
    -
    654  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, D) \
    -
    655  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, A) \
    -
    656  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, B) \
    -
    657  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, C) \
    -
    658  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, D) \
    -
    659  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, A) \
    -
    660  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, B) \
    -
    661  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, C) \
    -
    662  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, D) \
    -
    663  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, A) \
    -
    664  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, B) \
    -
    665  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, C) \
    -
    666  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, D) \
    -
    667  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, A) \
    -
    668  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, B) \
    -
    669  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, C) \
    -
    670  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, D) \
    -
    671  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, A) \
    -
    672  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, B) \
    -
    673  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, C) \
    -
    674  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, D)
    -
    675 
    -
    676 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, A, B, C, D) \
    -
    677  GLM_SWIZZLE_GEN_VEC2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    678  GLM_SWIZZLE_GEN_VEC3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    -
    679  GLM_SWIZZLE_GEN_VEC4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D)
    -
    680 
    -
    681 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P) \
    -
    682  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, x, y, z, w) \
    -
    683  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, r, g, b, a) \
    -
    684  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, s, t, p, q)
    -
    685 
    -
    - - - - + + + + + + +0.9.9 API documentation: _swizzle_func.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _swizzle_func.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #define GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, CONST, A, B) \
    +
    4  vec<2, T, Q> A ## B() CONST \
    +
    5  { \
    +
    6  return vec<2, T, Q>(this->A, this->B); \
    +
    7  }
    +
    8 
    +
    9 #define GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, CONST, A, B, C) \
    +
    10  vec<3, T, Q> A ## B ## C() CONST \
    +
    11  { \
    +
    12  return vec<3, T, Q>(this->A, this->B, this->C); \
    +
    13  }
    +
    14 
    +
    15 #define GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, CONST, A, B, C, D) \
    +
    16  vec<4, T, Q> A ## B ## C ## D() CONST \
    +
    17  { \
    +
    18  return vec<4, T, Q>(this->A, this->B, this->C, this->D); \
    +
    19  }
    +
    20 
    +
    21 #define GLM_SWIZZLE_GEN_VEC2_ENTRY_DEF(T, P, L, CONST, A, B) \
    +
    22  template<typename T> \
    +
    23  vec<L, T, Q> vec<L, T, Q>::A ## B() CONST \
    +
    24  { \
    +
    25  return vec<2, T, Q>(this->A, this->B); \
    +
    26  }
    +
    27 
    +
    28 #define GLM_SWIZZLE_GEN_VEC3_ENTRY_DEF(T, P, L, CONST, A, B, C) \
    +
    29  template<typename T> \
    +
    30  vec<3, T, Q> vec<L, T, Q>::A ## B ## C() CONST \
    +
    31  { \
    +
    32  return vec<3, T, Q>(this->A, this->B, this->C); \
    +
    33  }
    +
    34 
    +
    35 #define GLM_SWIZZLE_GEN_VEC4_ENTRY_DEF(T, P, L, CONST, A, B, C, D) \
    +
    36  template<typename T> \
    +
    37  vec<4, T, Q> vec<L, T, Q>::A ## B ## C ## D() CONST \
    +
    38  { \
    +
    39  return vec<4, T, Q>(this->A, this->B, this->C, this->D); \
    +
    40  }
    +
    41 
    +
    42 #define GLM_MUTABLE
    +
    43 
    +
    44 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    45  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, 2, GLM_MUTABLE, A, B) \
    +
    46  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, 2, GLM_MUTABLE, B, A)
    +
    47 
    +
    48 #define GLM_SWIZZLE_GEN_REF_FROM_VEC2(T, P) \
    +
    49  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, x, y) \
    +
    50  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, r, g) \
    +
    51  GLM_SWIZZLE_GEN_REF2_FROM_VEC2_SWIZZLE(T, P, s, t)
    +
    52 
    +
    53 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    54  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, B) \
    +
    55  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, C) \
    +
    56  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, A) \
    +
    57  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, C) \
    +
    58  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, A) \
    +
    59  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, B)
    +
    60 
    +
    61 #define GLM_SWIZZLE_GEN_REF3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    62  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, A, B, C) \
    +
    63  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, A, C, B) \
    +
    64  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, B, A, C) \
    +
    65  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, B, C, A) \
    +
    66  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, C, A, B) \
    +
    67  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, GLM_MUTABLE, C, B, A)
    +
    68 
    +
    69 #define GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, A, B, C) \
    +
    70  GLM_SWIZZLE_GEN_REF3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    71  GLM_SWIZZLE_GEN_REF2_FROM_VEC3_SWIZZLE(T, P, A, B, C)
    +
    72 
    +
    73 #define GLM_SWIZZLE_GEN_REF_FROM_VEC3(T, P) \
    +
    74  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, x, y, z) \
    +
    75  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, r, g, b) \
    +
    76  GLM_SWIZZLE_GEN_REF_FROM_VEC3_COMP(T, P, s, t, p)
    +
    77 
    +
    78 #define GLM_SWIZZLE_GEN_REF2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    79  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, B) \
    +
    80  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, C) \
    +
    81  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, A, D) \
    +
    82  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, A) \
    +
    83  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, C) \
    +
    84  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, B, D) \
    +
    85  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, A) \
    +
    86  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, B) \
    +
    87  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, C, D) \
    +
    88  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, A) \
    +
    89  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, B) \
    +
    90  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, GLM_MUTABLE, D, C)
    +
    91 
    +
    92 #define GLM_SWIZZLE_GEN_REF3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    93  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, B, C) \
    +
    94  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, B, D) \
    +
    95  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, C, B) \
    +
    96  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, C, D) \
    +
    97  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, D, B) \
    +
    98  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , A, D, C) \
    +
    99  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, A, C) \
    +
    100  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, A, D) \
    +
    101  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, C, A) \
    +
    102  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, C, D) \
    +
    103  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, D, A) \
    +
    104  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , B, D, C) \
    +
    105  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, A, B) \
    +
    106  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, A, D) \
    +
    107  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, B, A) \
    +
    108  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, B, D) \
    +
    109  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, D, A) \
    +
    110  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , C, D, B) \
    +
    111  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, A, B) \
    +
    112  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, A, C) \
    +
    113  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, B, A) \
    +
    114  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, B, C) \
    +
    115  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, C, A) \
    +
    116  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, , D, C, B)
    +
    117 
    +
    118 #define GLM_SWIZZLE_GEN_REF4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    119  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, C, B, D) \
    +
    120  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, C, D, B) \
    +
    121  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, D, B, C) \
    +
    122  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, D, C, B) \
    +
    123  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, B, D, C) \
    +
    124  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , A, B, C, D) \
    +
    125  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, C, A, D) \
    +
    126  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, C, D, A) \
    +
    127  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, D, A, C) \
    +
    128  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, D, C, A) \
    +
    129  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, A, D, C) \
    +
    130  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , B, A, C, D) \
    +
    131  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, B, A, D) \
    +
    132  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, B, D, A) \
    +
    133  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, D, A, B) \
    +
    134  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, D, B, A) \
    +
    135  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, A, D, B) \
    +
    136  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , C, A, B, D) \
    +
    137  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, C, B, A) \
    +
    138  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, C, A, B) \
    +
    139  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, A, B, C) \
    +
    140  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, A, C, B) \
    +
    141  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, B, A, C) \
    +
    142  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, , D, B, C, A)
    +
    143 
    +
    144 #define GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, A, B, C, D) \
    +
    145  GLM_SWIZZLE_GEN_REF2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    146  GLM_SWIZZLE_GEN_REF3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    147  GLM_SWIZZLE_GEN_REF4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D)
    +
    148 
    +
    149 #define GLM_SWIZZLE_GEN_REF_FROM_VEC4(T, P) \
    +
    150  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, x, y, z, w) \
    +
    151  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, r, g, b, a) \
    +
    152  GLM_SWIZZLE_GEN_REF_FROM_VEC4_COMP(T, P, s, t, p, q)
    +
    153 
    +
    154 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    155  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    +
    156  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    +
    157  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    +
    158  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B)
    +
    159 
    +
    160 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    161  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    +
    162  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    +
    163  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    +
    164  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    +
    165  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    +
    166  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    +
    167  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    +
    168  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B)
    +
    169 
    +
    170 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    171  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    +
    172  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    +
    173  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    +
    174  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    +
    175  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    +
    176  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    +
    177  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    +
    178  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    +
    179  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    +
    180  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    +
    181  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    +
    182  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    +
    183  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    +
    184  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    +
    185  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    +
    186  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B)
    +
    187 
    +
    188 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, A, B) \
    +
    189  GLM_SWIZZLE_GEN_VEC2_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    190  GLM_SWIZZLE_GEN_VEC3_FROM_VEC2_SWIZZLE(T, P, A, B) \
    +
    191  GLM_SWIZZLE_GEN_VEC4_FROM_VEC2_SWIZZLE(T, P, A, B)
    +
    192 
    +
    193 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC2(T, P) \
    +
    194  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, x, y) \
    +
    195  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, r, g) \
    +
    196  GLM_SWIZZLE_GEN_VEC_FROM_VEC2_COMP(T, P, s, t)
    +
    197 
    +
    198 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    199  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    +
    200  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    +
    201  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, C) \
    +
    202  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    +
    203  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B) \
    +
    204  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, C) \
    +
    205  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, A) \
    +
    206  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, B) \
    +
    207  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, C)
    +
    208 
    +
    209 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    210  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    +
    211  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    +
    212  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, C) \
    +
    213  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    +
    214  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    +
    215  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, C) \
    +
    216  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, A) \
    +
    217  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, B) \
    +
    218  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, C) \
    +
    219  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    +
    220  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    +
    221  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, C) \
    +
    222  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    +
    223  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B) \
    +
    224  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, C) \
    +
    225  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, A) \
    +
    226  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, B) \
    +
    227  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, C) \
    +
    228  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, A) \
    +
    229  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, B) \
    +
    230  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, C) \
    +
    231  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, A) \
    +
    232  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, B) \
    +
    233  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, C) \
    +
    234  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, A) \
    +
    235  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, B) \
    +
    236  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, C)
    +
    237 
    +
    238 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    239  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    +
    240  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    +
    241  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, C) \
    +
    242  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    +
    243  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    +
    244  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, C) \
    +
    245  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, A) \
    +
    246  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, B) \
    +
    247  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, C) \
    +
    248  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    +
    249  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    +
    250  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, C) \
    +
    251  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    +
    252  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    +
    253  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, C) \
    +
    254  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, A) \
    +
    255  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, B) \
    +
    256  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, C) \
    +
    257  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, A) \
    +
    258  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, B) \
    +
    259  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, C) \
    +
    260  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, A) \
    +
    261  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, B) \
    +
    262  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, C) \
    +
    263  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, A) \
    +
    264  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, B) \
    +
    265  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, C) \
    +
    266  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    +
    267  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    +
    268  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, C) \
    +
    269  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    +
    270  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    +
    271  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, C) \
    +
    272  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, A) \
    +
    273  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, B) \
    +
    274  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, C) \
    +
    275  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    +
    276  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    +
    277  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, C) \
    +
    278  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    +
    279  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B) \
    +
    280  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, C) \
    +
    281  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, A) \
    +
    282  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, B) \
    +
    283  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, C) \
    +
    284  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, A) \
    +
    285  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, B) \
    +
    286  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, C) \
    +
    287  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, A) \
    +
    288  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, B) \
    +
    289  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, C) \
    +
    290  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, A) \
    +
    291  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, B) \
    +
    292  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, C) \
    +
    293  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, A) \
    +
    294  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, B) \
    +
    295  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, C) \
    +
    296  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, A) \
    +
    297  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, B) \
    +
    298  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, C) \
    +
    299  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, A) \
    +
    300  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, B) \
    +
    301  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, C) \
    +
    302  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, A) \
    +
    303  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, B) \
    +
    304  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, C) \
    +
    305  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, A) \
    +
    306  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, B) \
    +
    307  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, C) \
    +
    308  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, A) \
    +
    309  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, B) \
    +
    310  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, C) \
    +
    311  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, A) \
    +
    312  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, B) \
    +
    313  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, C) \
    +
    314  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, A) \
    +
    315  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, B) \
    +
    316  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, C) \
    +
    317  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, A) \
    +
    318  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, B) \
    +
    319  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, C)
    +
    320 
    +
    321 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, A, B, C) \
    +
    322  GLM_SWIZZLE_GEN_VEC2_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    323  GLM_SWIZZLE_GEN_VEC3_FROM_VEC3_SWIZZLE(T, P, A, B, C) \
    +
    324  GLM_SWIZZLE_GEN_VEC4_FROM_VEC3_SWIZZLE(T, P, A, B, C)
    +
    325 
    +
    326 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P) \
    +
    327  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, x, y, z) \
    +
    328  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, r, g, b) \
    +
    329  GLM_SWIZZLE_GEN_VEC_FROM_VEC3_COMP(T, P, s, t, p)
    +
    330 
    +
    331 #define GLM_SWIZZLE_GEN_VEC2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    332  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, A) \
    +
    333  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, B) \
    +
    334  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, C) \
    +
    335  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, A, D) \
    +
    336  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, A) \
    +
    337  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, B) \
    +
    338  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, C) \
    +
    339  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, B, D) \
    +
    340  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, A) \
    +
    341  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, B) \
    +
    342  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, C) \
    +
    343  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, C, D) \
    +
    344  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, A) \
    +
    345  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, B) \
    +
    346  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, C) \
    +
    347  GLM_SWIZZLE_GEN_VEC2_ENTRY(T, P, const, D, D)
    +
    348 
    +
    349 #define GLM_SWIZZLE_GEN_VEC3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    350  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, A) \
    +
    351  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, B) \
    +
    352  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, C) \
    +
    353  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, A, D) \
    +
    354  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, A) \
    +
    355  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, B) \
    +
    356  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, C) \
    +
    357  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, B, D) \
    +
    358  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, A) \
    +
    359  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, B) \
    +
    360  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, C) \
    +
    361  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, C, D) \
    +
    362  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, A) \
    +
    363  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, B) \
    +
    364  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, C) \
    +
    365  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, A, D, D) \
    +
    366  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, A) \
    +
    367  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, B) \
    +
    368  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, C) \
    +
    369  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, A, D) \
    +
    370  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, A) \
    +
    371  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, B) \
    +
    372  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, C) \
    +
    373  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, B, D) \
    +
    374  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, A) \
    +
    375  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, B) \
    +
    376  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, C) \
    +
    377  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, C, D) \
    +
    378  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, A) \
    +
    379  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, B) \
    +
    380  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, C) \
    +
    381  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, B, D, D) \
    +
    382  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, A) \
    +
    383  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, B) \
    +
    384  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, C) \
    +
    385  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, A, D) \
    +
    386  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, A) \
    +
    387  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, B) \
    +
    388  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, C) \
    +
    389  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, B, D) \
    +
    390  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, A) \
    +
    391  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, B) \
    +
    392  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, C) \
    +
    393  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, C, D) \
    +
    394  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, A) \
    +
    395  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, B) \
    +
    396  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, C) \
    +
    397  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, C, D, D) \
    +
    398  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, A) \
    +
    399  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, B) \
    +
    400  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, C) \
    +
    401  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, A, D) \
    +
    402  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, A) \
    +
    403  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, B) \
    +
    404  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, C) \
    +
    405  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, B, D) \
    +
    406  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, A) \
    +
    407  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, B) \
    +
    408  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, C) \
    +
    409  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, C, D) \
    +
    410  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, A) \
    +
    411  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, B) \
    +
    412  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, C) \
    +
    413  GLM_SWIZZLE_GEN_VEC3_ENTRY(T, P, const, D, D, D)
    +
    414 
    +
    415 #define GLM_SWIZZLE_GEN_VEC4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    416  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, A) \
    +
    417  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, B) \
    +
    418  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, C) \
    +
    419  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, A, D) \
    +
    420  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, A) \
    +
    421  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, B) \
    +
    422  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, C) \
    +
    423  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, B, D) \
    +
    424  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, A) \
    +
    425  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, B) \
    +
    426  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, C) \
    +
    427  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, C, D) \
    +
    428  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, A) \
    +
    429  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, B) \
    +
    430  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, C) \
    +
    431  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, A, D, D) \
    +
    432  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, A) \
    +
    433  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, B) \
    +
    434  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, C) \
    +
    435  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, A, D) \
    +
    436  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, A) \
    +
    437  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, B) \
    +
    438  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, C) \
    +
    439  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, B, D) \
    +
    440  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, A) \
    +
    441  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, B) \
    +
    442  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, C) \
    +
    443  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, C, D) \
    +
    444  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, A) \
    +
    445  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, B) \
    +
    446  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, C) \
    +
    447  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, B, D, D) \
    +
    448  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, A) \
    +
    449  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, B) \
    +
    450  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, C) \
    +
    451  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, A, D) \
    +
    452  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, A) \
    +
    453  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, B) \
    +
    454  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, C) \
    +
    455  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, B, D) \
    +
    456  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, A) \
    +
    457  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, B) \
    +
    458  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, C) \
    +
    459  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, C, D) \
    +
    460  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, A) \
    +
    461  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, B) \
    +
    462  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, C) \
    +
    463  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, C, D, D) \
    +
    464  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, A) \
    +
    465  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, B) \
    +
    466  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, C) \
    +
    467  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, A, D) \
    +
    468  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, A) \
    +
    469  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, B) \
    +
    470  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, C) \
    +
    471  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, B, D) \
    +
    472  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, A) \
    +
    473  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, B) \
    +
    474  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, C) \
    +
    475  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, C, D) \
    +
    476  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, A) \
    +
    477  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, B) \
    +
    478  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, C) \
    +
    479  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, A, D, D, D) \
    +
    480  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, A) \
    +
    481  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, B) \
    +
    482  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, C) \
    +
    483  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, A, D) \
    +
    484  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, A) \
    +
    485  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, B) \
    +
    486  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, C) \
    +
    487  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, B, D) \
    +
    488  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, A) \
    +
    489  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, B) \
    +
    490  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, C) \
    +
    491  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, C, D) \
    +
    492  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, A) \
    +
    493  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, B) \
    +
    494  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, C) \
    +
    495  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, A, D, D) \
    +
    496  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, A) \
    +
    497  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, B) \
    +
    498  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, C) \
    +
    499  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, A, D) \
    +
    500  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, A) \
    +
    501  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, B) \
    +
    502  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, C) \
    +
    503  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, B, D) \
    +
    504  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, A) \
    +
    505  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, B) \
    +
    506  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, C) \
    +
    507  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, C, D) \
    +
    508  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, A) \
    +
    509  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, B) \
    +
    510  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, C) \
    +
    511  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, B, D, D) \
    +
    512  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, A) \
    +
    513  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, B) \
    +
    514  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, C) \
    +
    515  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, A, D) \
    +
    516  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, A) \
    +
    517  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, B) \
    +
    518  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, C) \
    +
    519  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, B, D) \
    +
    520  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, A) \
    +
    521  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, B) \
    +
    522  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, C) \
    +
    523  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, C, D) \
    +
    524  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, A) \
    +
    525  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, B) \
    +
    526  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, C) \
    +
    527  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, C, D, D) \
    +
    528  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, A) \
    +
    529  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, B) \
    +
    530  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, C) \
    +
    531  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, A, D) \
    +
    532  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, A) \
    +
    533  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, B) \
    +
    534  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, C) \
    +
    535  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, B, D) \
    +
    536  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, A) \
    +
    537  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, B) \
    +
    538  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, C) \
    +
    539  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, C, D) \
    +
    540  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, A) \
    +
    541  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, B) \
    +
    542  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, C) \
    +
    543  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, B, D, D, D) \
    +
    544  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, A) \
    +
    545  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, B) \
    +
    546  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, C) \
    +
    547  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, A, D) \
    +
    548  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, A) \
    +
    549  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, B) \
    +
    550  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, C) \
    +
    551  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, B, D) \
    +
    552  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, A) \
    +
    553  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, B) \
    +
    554  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, C) \
    +
    555  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, C, D) \
    +
    556  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, A) \
    +
    557  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, B) \
    +
    558  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, C) \
    +
    559  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, A, D, D) \
    +
    560  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, A) \
    +
    561  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, B) \
    +
    562  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, C) \
    +
    563  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, A, D) \
    +
    564  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, A) \
    +
    565  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, B) \
    +
    566  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, C) \
    +
    567  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, B, D) \
    +
    568  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, A) \
    +
    569  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, B) \
    +
    570  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, C) \
    +
    571  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, C, D) \
    +
    572  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, A) \
    +
    573  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, B) \
    +
    574  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, C) \
    +
    575  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, B, D, D) \
    +
    576  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, A) \
    +
    577  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, B) \
    +
    578  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, C) \
    +
    579  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, A, D) \
    +
    580  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, A) \
    +
    581  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, B) \
    +
    582  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, C) \
    +
    583  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, B, D) \
    +
    584  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, A) \
    +
    585  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, B) \
    +
    586  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, C) \
    +
    587  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, C, D) \
    +
    588  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, A) \
    +
    589  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, B) \
    +
    590  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, C) \
    +
    591  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, C, D, D) \
    +
    592  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, A) \
    +
    593  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, B) \
    +
    594  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, C) \
    +
    595  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, A, D) \
    +
    596  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, A) \
    +
    597  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, B) \
    +
    598  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, C) \
    +
    599  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, B, D) \
    +
    600  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, A) \
    +
    601  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, B) \
    +
    602  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, C) \
    +
    603  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, C, D) \
    +
    604  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, A) \
    +
    605  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, B) \
    +
    606  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, C) \
    +
    607  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, C, D, D, D) \
    +
    608  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, A) \
    +
    609  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, B) \
    +
    610  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, C) \
    +
    611  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, A, D) \
    +
    612  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, A) \
    +
    613  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, B) \
    +
    614  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, C) \
    +
    615  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, B, D) \
    +
    616  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, A) \
    +
    617  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, B) \
    +
    618  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, C) \
    +
    619  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, C, D) \
    +
    620  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, A) \
    +
    621  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, B) \
    +
    622  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, C) \
    +
    623  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, A, D, D) \
    +
    624  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, A) \
    +
    625  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, B) \
    +
    626  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, C) \
    +
    627  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, A, D) \
    +
    628  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, A) \
    +
    629  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, B) \
    +
    630  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, C) \
    +
    631  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, B, D) \
    +
    632  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, A) \
    +
    633  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, B) \
    +
    634  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, C) \
    +
    635  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, C, D) \
    +
    636  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, A) \
    +
    637  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, B) \
    +
    638  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, C) \
    +
    639  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, B, D, D) \
    +
    640  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, A) \
    +
    641  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, B) \
    +
    642  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, C) \
    +
    643  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, A, D) \
    +
    644  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, A) \
    +
    645  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, B) \
    +
    646  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, C) \
    +
    647  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, B, D) \
    +
    648  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, A) \
    +
    649  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, B) \
    +
    650  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, C) \
    +
    651  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, C, D) \
    +
    652  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, A) \
    +
    653  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, B) \
    +
    654  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, C) \
    +
    655  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, C, D, D) \
    +
    656  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, A) \
    +
    657  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, B) \
    +
    658  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, C) \
    +
    659  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, A, D) \
    +
    660  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, A) \
    +
    661  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, B) \
    +
    662  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, C) \
    +
    663  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, B, D) \
    +
    664  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, A) \
    +
    665  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, B) \
    +
    666  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, C) \
    +
    667  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, C, D) \
    +
    668  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, A) \
    +
    669  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, B) \
    +
    670  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, C) \
    +
    671  GLM_SWIZZLE_GEN_VEC4_ENTRY(T, P, const, D, D, D, D)
    +
    672 
    +
    673 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, A, B, C, D) \
    +
    674  GLM_SWIZZLE_GEN_VEC2_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    675  GLM_SWIZZLE_GEN_VEC3_FROM_VEC4_SWIZZLE(T, P, A, B, C, D) \
    +
    676  GLM_SWIZZLE_GEN_VEC4_FROM_VEC4_SWIZZLE(T, P, A, B, C, D)
    +
    677 
    +
    678 #define GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P) \
    +
    679  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, x, y, z, w) \
    +
    680  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, r, g, b, a) \
    +
    681  GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, P, s, t, p, q)
    +
    682 
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00006_source.html b/external/glm-0.9.9.8/doc/api/a00006_source.html new file mode 100644 index 0000000..a40311e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00006_source.html @@ -0,0 +1,262 @@ + + + + + + +0.9.9 API documentation: _vectorize.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    _vectorize.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 namespace glm{
    +
    4 namespace detail
    +
    5 {
    +
    6  template<template<length_t L, typename T, qualifier Q> class vec, length_t L, typename R, typename T, qualifier Q>
    +
    7  struct functor1{};
    +
    8 
    +
    9  template<template<length_t L, typename T, qualifier Q> class vec, typename R, typename T, qualifier Q>
    +
    10  struct functor1<vec, 1, R, T, Q>
    +
    11  {
    +
    12  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<1, R, Q> call(R (*Func) (T x), vec<1, T, Q> const& v)
    +
    13  {
    +
    14  return vec<1, R, Q>(Func(v.x));
    +
    15  }
    +
    16  };
    +
    17 
    +
    18  template<template<length_t L, typename T, qualifier Q> class vec, typename R, typename T, qualifier Q>
    +
    19  struct functor1<vec, 2, R, T, Q>
    +
    20  {
    +
    21  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<2, R, Q> call(R (*Func) (T x), vec<2, T, Q> const& v)
    +
    22  {
    +
    23  return vec<2, R, Q>(Func(v.x), Func(v.y));
    +
    24  }
    +
    25  };
    +
    26 
    +
    27  template<template<length_t L, typename T, qualifier Q> class vec, typename R, typename T, qualifier Q>
    +
    28  struct functor1<vec, 3, R, T, Q>
    +
    29  {
    +
    30  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<3, R, Q> call(R (*Func) (T x), vec<3, T, Q> const& v)
    +
    31  {
    +
    32  return vec<3, R, Q>(Func(v.x), Func(v.y), Func(v.z));
    +
    33  }
    +
    34  };
    +
    35 
    +
    36  template<template<length_t L, typename T, qualifier Q> class vec, typename R, typename T, qualifier Q>
    +
    37  struct functor1<vec, 4, R, T, Q>
    +
    38  {
    +
    39  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<4, R, Q> call(R (*Func) (T x), vec<4, T, Q> const& v)
    +
    40  {
    +
    41  return vec<4, R, Q>(Func(v.x), Func(v.y), Func(v.z), Func(v.w));
    +
    42  }
    +
    43  };
    +
    44 
    +
    45  template<template<length_t L, typename T, qualifier Q> class vec, length_t L, typename T, qualifier Q>
    +
    46  struct functor2{};
    +
    47 
    +
    48  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    49  struct functor2<vec, 1, T, Q>
    +
    50  {
    +
    51  GLM_FUNC_QUALIFIER static vec<1, T, Q> call(T (*Func) (T x, T y), vec<1, T, Q> const& a, vec<1, T, Q> const& b)
    +
    52  {
    +
    53  return vec<1, T, Q>(Func(a.x, b.x));
    +
    54  }
    +
    55  };
    +
    56 
    +
    57  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    58  struct functor2<vec, 2, T, Q>
    +
    59  {
    +
    60  GLM_FUNC_QUALIFIER static vec<2, T, Q> call(T (*Func) (T x, T y), vec<2, T, Q> const& a, vec<2, T, Q> const& b)
    +
    61  {
    +
    62  return vec<2, T, Q>(Func(a.x, b.x), Func(a.y, b.y));
    +
    63  }
    +
    64  };
    +
    65 
    +
    66  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    67  struct functor2<vec, 3, T, Q>
    +
    68  {
    +
    69  GLM_FUNC_QUALIFIER static vec<3, T, Q> call(T (*Func) (T x, T y), vec<3, T, Q> const& a, vec<3, T, Q> const& b)
    +
    70  {
    +
    71  return vec<3, T, Q>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z));
    +
    72  }
    +
    73  };
    +
    74 
    +
    75  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    76  struct functor2<vec, 4, T, Q>
    +
    77  {
    +
    78  GLM_FUNC_QUALIFIER static vec<4, T, Q> call(T (*Func) (T x, T y), vec<4, T, Q> const& a, vec<4, T, Q> const& b)
    +
    79  {
    +
    80  return vec<4, T, Q>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z), Func(a.w, b.w));
    +
    81  }
    +
    82  };
    +
    83 
    +
    84  template<template<length_t L, typename T, qualifier Q> class vec, length_t L, typename T, qualifier Q>
    +
    85  struct functor2_vec_sca{};
    +
    86 
    +
    87  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    88  struct functor2_vec_sca<vec, 1, T, Q>
    +
    89  {
    +
    90  GLM_FUNC_QUALIFIER static vec<1, T, Q> call(T (*Func) (T x, T y), vec<1, T, Q> const& a, T b)
    +
    91  {
    +
    92  return vec<1, T, Q>(Func(a.x, b));
    +
    93  }
    +
    94  };
    +
    95 
    +
    96  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    97  struct functor2_vec_sca<vec, 2, T, Q>
    +
    98  {
    +
    99  GLM_FUNC_QUALIFIER static vec<2, T, Q> call(T (*Func) (T x, T y), vec<2, T, Q> const& a, T b)
    +
    100  {
    +
    101  return vec<2, T, Q>(Func(a.x, b), Func(a.y, b));
    +
    102  }
    +
    103  };
    +
    104 
    +
    105  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    106  struct functor2_vec_sca<vec, 3, T, Q>
    +
    107  {
    +
    108  GLM_FUNC_QUALIFIER static vec<3, T, Q> call(T (*Func) (T x, T y), vec<3, T, Q> const& a, T b)
    +
    109  {
    +
    110  return vec<3, T, Q>(Func(a.x, b), Func(a.y, b), Func(a.z, b));
    +
    111  }
    +
    112  };
    +
    113 
    +
    114  template<template<length_t L, typename T, qualifier Q> class vec, typename T, qualifier Q>
    +
    115  struct functor2_vec_sca<vec, 4, T, Q>
    +
    116  {
    +
    117  GLM_FUNC_QUALIFIER static vec<4, T, Q> call(T (*Func) (T x, T y), vec<4, T, Q> const& a, T b)
    +
    118  {
    +
    119  return vec<4, T, Q>(Func(a.x, b), Func(a.y, b), Func(a.z, b), Func(a.w, b));
    +
    120  }
    +
    121  };
    +
    122 
    +
    123  template<length_t L, typename T, qualifier Q>
    +
    124  struct functor2_vec_int {};
    +
    125 
    +
    126  template<typename T, qualifier Q>
    +
    127  struct functor2_vec_int<1, T, Q>
    +
    128  {
    +
    129  GLM_FUNC_QUALIFIER static vec<1, int, Q> call(int (*Func) (T x, int y), vec<1, T, Q> const& a, vec<1, int, Q> const& b)
    +
    130  {
    +
    131  return vec<1, int, Q>(Func(a.x, b.x));
    +
    132  }
    +
    133  };
    +
    134 
    +
    135  template<typename T, qualifier Q>
    +
    136  struct functor2_vec_int<2, T, Q>
    +
    137  {
    +
    138  GLM_FUNC_QUALIFIER static vec<2, int, Q> call(int (*Func) (T x, int y), vec<2, T, Q> const& a, vec<2, int, Q> const& b)
    +
    139  {
    +
    140  return vec<2, int, Q>(Func(a.x, b.x), Func(a.y, b.y));
    +
    141  }
    +
    142  };
    +
    143 
    +
    144  template<typename T, qualifier Q>
    +
    145  struct functor2_vec_int<3, T, Q>
    +
    146  {
    +
    147  GLM_FUNC_QUALIFIER static vec<3, int, Q> call(int (*Func) (T x, int y), vec<3, T, Q> const& a, vec<3, int, Q> const& b)
    +
    148  {
    +
    149  return vec<3, int, Q>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z));
    +
    150  }
    +
    151  };
    +
    152 
    +
    153  template<typename T, qualifier Q>
    +
    154  struct functor2_vec_int<4, T, Q>
    +
    155  {
    +
    156  GLM_FUNC_QUALIFIER static vec<4, int, Q> call(int (*Func) (T x, int y), vec<4, T, Q> const& a, vec<4, int, Q> const& b)
    +
    157  {
    +
    158  return vec<4, int, Q>(Func(a.x, b.x), Func(a.y, b.y), Func(a.z, b.z), Func(a.w, b.w));
    +
    159  }
    +
    160  };
    +
    161 }//namespace detail
    +
    162 }//namespace glm
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00007.html b/external/glm-0.9.9.8/doc/api/a00007.html similarity index 85% rename from external/glm/doc/api/a00007.html rename to external/glm-0.9.9.8/doc/api/a00007.html index 84614ce..4c642a6 100644 --- a/external/glm/doc/api/a00007.html +++ b/external/glm-0.9.9.8/doc/api/a00007.html @@ -1,205 +1,205 @@ - - - - - - -0.9.9 API documenation: associated_min_max.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    associated_min_max.hpp File Reference
    -
    -
    - -

    GLM_GTX_associated_min_max -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Functions

    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c, T w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, const vec< L, U, Q > &a, T y, const vec< L, U, Q > &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c, T w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    -

    Detailed Description

    -

    GLM_GTX_associated_min_max

    -
    See also
    Core features (dependence)
    -
    -gtx_extented_min_max (dependence)
    - -

    Definition in file associated_min_max.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: associated_min_max.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    associated_min_max.hpp File Reference
    +
    +
    + +

    GLM_GTX_associated_min_max +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c, T w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, const vec< L, U, Q > &a, T y, const vec< L, U, Q > &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c, T w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    +

    Detailed Description

    +

    GLM_GTX_associated_min_max

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file associated_min_max.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00007_source.html b/external/glm-0.9.9.8/doc/api/a00007_source.html similarity index 86% rename from external/glm/doc/api/a00007_source.html rename to external/glm-0.9.9.8/doc/api/a00007_source.html index f667e27..3cb39f7 100644 --- a/external/glm/doc/api/a00007_source.html +++ b/external/glm-0.9.9.8/doc/api/a00007_source.html @@ -1,250 +1,250 @@ - - - - - - -0.9.9 API documenation: associated_min_max.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    associated_min_max.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    14 #pragma once
    -
    15 
    -
    16 // Dependency:
    -
    17 #include "../glm.hpp"
    -
    18 
    -
    19 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    20 # error "GLM: GTX_associated_min_max is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    21 #endif
    -
    22 
    -
    23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    24 # pragma message("GLM: GLM_GTX_associated_min_max extension included")
    -
    25 #endif
    -
    26 
    -
    27 namespace glm
    -
    28 {
    -
    31 
    -
    34  template<typename T, typename U, qualifier Q>
    -
    35  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
    -
    36 
    -
    39  template<length_t L, typename T, typename U, qualifier Q>
    -
    40  GLM_FUNC_DECL vec<2, U, Q> associatedMin(
    -
    41  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    42  vec<L, T, Q> const& y, vec<L, U, Q> const& b);
    -
    43 
    -
    46  template<length_t L, typename T, typename U, qualifier Q>
    -
    47  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    48  T x, const vec<L, U, Q>& a,
    -
    49  T y, const vec<L, U, Q>& b);
    -
    50 
    -
    53  template<length_t L, typename T, typename U, qualifier Q>
    -
    54  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    55  vec<L, T, Q> const& x, U a,
    -
    56  vec<L, T, Q> const& y, U b);
    -
    57 
    -
    60  template<typename T, typename U>
    -
    61  GLM_FUNC_DECL U associatedMin(
    -
    62  T x, U a,
    -
    63  T y, U b,
    -
    64  T z, U c);
    -
    65 
    -
    68  template<length_t L, typename T, typename U, qualifier Q>
    -
    69  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    70  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    71  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    -
    72  vec<L, T, Q> const& z, vec<L, U, Q> const& c);
    -
    73 
    -
    76  template<typename T, typename U>
    -
    77  GLM_FUNC_DECL U associatedMin(
    -
    78  T x, U a,
    -
    79  T y, U b,
    -
    80  T z, U c,
    -
    81  T w, U d);
    -
    82 
    -
    85  template<length_t L, typename T, typename U, qualifier Q>
    -
    86  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    87  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    88  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    -
    89  vec<L, T, Q> const& z, vec<L, U, Q> const& c,
    -
    90  vec<L, T, Q> const& w, vec<L, U, Q> const& d);
    -
    91 
    -
    94  template<length_t L, typename T, typename U, qualifier Q>
    -
    95  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    96  T x, vec<L, U, Q> const& a,
    -
    97  T y, vec<L, U, Q> const& b,
    -
    98  T z, vec<L, U, Q> const& c,
    -
    99  T w, vec<L, U, Q> const& d);
    -
    100 
    -
    103  template<length_t L, typename T, typename U, qualifier Q>
    -
    104  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    -
    105  vec<L, T, Q> const& x, U a,
    -
    106  vec<L, T, Q> const& y, U b,
    -
    107  vec<L, T, Q> const& z, U c,
    -
    108  vec<L, T, Q> const& w, U d);
    -
    109 
    -
    112  template<typename T, typename U>
    -
    113  GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b);
    -
    114 
    -
    117  template<length_t L, typename T, typename U, qualifier Q>
    -
    118  GLM_FUNC_DECL vec<2, U, Q> associatedMax(
    -
    119  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    120  vec<L, T, Q> const& y, vec<L, U, Q> const& b);
    -
    121 
    -
    124  template<length_t L, typename T, typename U, qualifier Q>
    -
    125  GLM_FUNC_DECL vec<L, T, Q> associatedMax(
    -
    126  T x, vec<L, U, Q> const& a,
    -
    127  T y, vec<L, U, Q> const& b);
    -
    128 
    -
    131  template<length_t L, typename T, typename U, qualifier Q>
    -
    132  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    133  vec<L, T, Q> const& x, U a,
    -
    134  vec<L, T, Q> const& y, U b);
    -
    135 
    -
    138  template<typename T, typename U>
    -
    139  GLM_FUNC_DECL U associatedMax(
    -
    140  T x, U a,
    -
    141  T y, U b,
    -
    142  T z, U c);
    -
    143 
    -
    146  template<length_t L, typename T, typename U, qualifier Q>
    -
    147  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    148  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    149  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    -
    150  vec<L, T, Q> const& z, vec<L, U, Q> const& c);
    -
    151 
    -
    154  template<length_t L, typename T, typename U, qualifier Q>
    -
    155  GLM_FUNC_DECL vec<L, T, Q> associatedMax(
    -
    156  T x, vec<L, U, Q> const& a,
    -
    157  T y, vec<L, U, Q> const& b,
    -
    158  T z, vec<L, U, Q> const& c);
    -
    159 
    -
    162  template<length_t L, typename T, typename U, qualifier Q>
    -
    163  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    164  vec<L, T, Q> const& x, U a,
    -
    165  vec<L, T, Q> const& y, U b,
    -
    166  vec<L, T, Q> const& z, U c);
    -
    167 
    -
    170  template<typename T, typename U>
    -
    171  GLM_FUNC_DECL U associatedMax(
    -
    172  T x, U a,
    -
    173  T y, U b,
    -
    174  T z, U c,
    -
    175  T w, U d);
    -
    176 
    -
    179  template<length_t L, typename T, typename U, qualifier Q>
    -
    180  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    181  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    -
    182  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    -
    183  vec<L, T, Q> const& z, vec<L, U, Q> const& c,
    -
    184  vec<L, T, Q> const& w, vec<L, U, Q> const& d);
    -
    185 
    -
    188  template<length_t L, typename T, typename U, qualifier Q>
    -
    189  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    190  T x, vec<L, U, Q> const& a,
    -
    191  T y, vec<L, U, Q> const& b,
    -
    192  T z, vec<L, U, Q> const& c,
    -
    193  T w, vec<L, U, Q> const& d);
    -
    194 
    -
    197  template<length_t L, typename T, typename U, qualifier Q>
    -
    198  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    -
    199  vec<L, T, Q> const& x, U a,
    -
    200  vec<L, T, Q> const& y, U b,
    -
    201  vec<L, T, Q> const& z, U c,
    -
    202  vec<L, T, Q> const& w, U d);
    -
    203 
    -
    205 } //namespace glm
    -
    206 
    -
    207 #include "associated_min_max.inl"
    -
    GLM_FUNC_DECL vec< L, U, Q > associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
    Maximum comparison between 4 variables and returns 4 associated variable values.
    -
    GLM_FUNC_DECL vec< L, U, Q > associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
    Minimum comparison between 4 variables and returns 4 associated variable values.
    -
    Definition: common.hpp:20
    -
    - - - - + + + + + + +0.9.9 API documentation: associated_min_max.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    associated_min_max.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_associated_min_max is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_associated_min_max extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename T, typename U, qualifier Q>
    +
    35  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
    +
    36 
    +
    39  template<length_t L, typename T, typename U, qualifier Q>
    +
    40  GLM_FUNC_DECL vec<2, U, Q> associatedMin(
    +
    41  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    42  vec<L, T, Q> const& y, vec<L, U, Q> const& b);
    +
    43 
    +
    46  template<length_t L, typename T, typename U, qualifier Q>
    +
    47  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    48  T x, const vec<L, U, Q>& a,
    +
    49  T y, const vec<L, U, Q>& b);
    +
    50 
    +
    53  template<length_t L, typename T, typename U, qualifier Q>
    +
    54  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    55  vec<L, T, Q> const& x, U a,
    +
    56  vec<L, T, Q> const& y, U b);
    +
    57 
    +
    60  template<typename T, typename U>
    +
    61  GLM_FUNC_DECL U associatedMin(
    +
    62  T x, U a,
    +
    63  T y, U b,
    +
    64  T z, U c);
    +
    65 
    +
    68  template<length_t L, typename T, typename U, qualifier Q>
    +
    69  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    70  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    71  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    +
    72  vec<L, T, Q> const& z, vec<L, U, Q> const& c);
    +
    73 
    +
    76  template<typename T, typename U>
    +
    77  GLM_FUNC_DECL U associatedMin(
    +
    78  T x, U a,
    +
    79  T y, U b,
    +
    80  T z, U c,
    +
    81  T w, U d);
    +
    82 
    +
    85  template<length_t L, typename T, typename U, qualifier Q>
    +
    86  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    87  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    88  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    +
    89  vec<L, T, Q> const& z, vec<L, U, Q> const& c,
    +
    90  vec<L, T, Q> const& w, vec<L, U, Q> const& d);
    +
    91 
    +
    94  template<length_t L, typename T, typename U, qualifier Q>
    +
    95  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    96  T x, vec<L, U, Q> const& a,
    +
    97  T y, vec<L, U, Q> const& b,
    +
    98  T z, vec<L, U, Q> const& c,
    +
    99  T w, vec<L, U, Q> const& d);
    +
    100 
    +
    103  template<length_t L, typename T, typename U, qualifier Q>
    +
    104  GLM_FUNC_DECL vec<L, U, Q> associatedMin(
    +
    105  vec<L, T, Q> const& x, U a,
    +
    106  vec<L, T, Q> const& y, U b,
    +
    107  vec<L, T, Q> const& z, U c,
    +
    108  vec<L, T, Q> const& w, U d);
    +
    109 
    +
    112  template<typename T, typename U>
    +
    113  GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b);
    +
    114 
    +
    117  template<length_t L, typename T, typename U, qualifier Q>
    +
    118  GLM_FUNC_DECL vec<2, U, Q> associatedMax(
    +
    119  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    120  vec<L, T, Q> const& y, vec<L, U, Q> const& b);
    +
    121 
    +
    124  template<length_t L, typename T, typename U, qualifier Q>
    +
    125  GLM_FUNC_DECL vec<L, T, Q> associatedMax(
    +
    126  T x, vec<L, U, Q> const& a,
    +
    127  T y, vec<L, U, Q> const& b);
    +
    128 
    +
    131  template<length_t L, typename T, typename U, qualifier Q>
    +
    132  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    133  vec<L, T, Q> const& x, U a,
    +
    134  vec<L, T, Q> const& y, U b);
    +
    135 
    +
    138  template<typename T, typename U>
    +
    139  GLM_FUNC_DECL U associatedMax(
    +
    140  T x, U a,
    +
    141  T y, U b,
    +
    142  T z, U c);
    +
    143 
    +
    146  template<length_t L, typename T, typename U, qualifier Q>
    +
    147  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    148  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    149  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    +
    150  vec<L, T, Q> const& z, vec<L, U, Q> const& c);
    +
    151 
    +
    154  template<length_t L, typename T, typename U, qualifier Q>
    +
    155  GLM_FUNC_DECL vec<L, T, Q> associatedMax(
    +
    156  T x, vec<L, U, Q> const& a,
    +
    157  T y, vec<L, U, Q> const& b,
    +
    158  T z, vec<L, U, Q> const& c);
    +
    159 
    +
    162  template<length_t L, typename T, typename U, qualifier Q>
    +
    163  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    164  vec<L, T, Q> const& x, U a,
    +
    165  vec<L, T, Q> const& y, U b,
    +
    166  vec<L, T, Q> const& z, U c);
    +
    167 
    +
    170  template<typename T, typename U>
    +
    171  GLM_FUNC_DECL U associatedMax(
    +
    172  T x, U a,
    +
    173  T y, U b,
    +
    174  T z, U c,
    +
    175  T w, U d);
    +
    176 
    +
    179  template<length_t L, typename T, typename U, qualifier Q>
    +
    180  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    181  vec<L, T, Q> const& x, vec<L, U, Q> const& a,
    +
    182  vec<L, T, Q> const& y, vec<L, U, Q> const& b,
    +
    183  vec<L, T, Q> const& z, vec<L, U, Q> const& c,
    +
    184  vec<L, T, Q> const& w, vec<L, U, Q> const& d);
    +
    185 
    +
    188  template<length_t L, typename T, typename U, qualifier Q>
    +
    189  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    190  T x, vec<L, U, Q> const& a,
    +
    191  T y, vec<L, U, Q> const& b,
    +
    192  T z, vec<L, U, Q> const& c,
    +
    193  T w, vec<L, U, Q> const& d);
    +
    194 
    +
    197  template<length_t L, typename T, typename U, qualifier Q>
    +
    198  GLM_FUNC_DECL vec<L, U, Q> associatedMax(
    +
    199  vec<L, T, Q> const& x, U a,
    +
    200  vec<L, T, Q> const& y, U b,
    +
    201  vec<L, T, Q> const& z, U c,
    +
    202  vec<L, T, Q> const& w, U d);
    +
    203 
    +
    205 } //namespace glm
    +
    206 
    +
    207 #include "associated_min_max.inl"
    +
    GLM_FUNC_DECL vec< L, U, Q > associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
    Maximum comparison between 4 variables and returns 4 associated variable values.
    +
    GLM_FUNC_DECL vec< L, U, Q > associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
    Minimum comparison between 4 variables and returns 4 associated variable values.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00008.html b/external/glm-0.9.9.8/doc/api/a00008.html similarity index 82% rename from external/glm/doc/api/a00008.html rename to external/glm-0.9.9.8/doc/api/a00008.html index 1dc5fc8..62d6c5e 100644 --- a/external/glm/doc/api/a00008.html +++ b/external/glm-0.9.9.8/doc/api/a00008.html @@ -1,149 +1,149 @@ - - - - - - -0.9.9 API documenation: bit.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    bit.hpp File Reference
    -
    -
    - -

    GLM_GTX_bit -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Functions

    template<typename genIUType >
    GLM_FUNC_DECL genIUType highestBitValue (genIUType Value)
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > highestBitValue (vec< L, T, Q > const &value)
     Find the highest bit set to 1 in a integer variable and return its value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType lowestBitValue (genIUType Value)
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove (genIUType Value)
     Return the power of two number which value is just higher the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove (vec< L, T, Q > const &value)
     Return the power of two number which value is just higher the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow (genIUType Value)
     Return the power of two number which value is just lower the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow (vec< L, T, Q > const &value)
     Return the power of two number which value is just lower the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest (genIUType Value)
     Return the power of two number which value is the closet to the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoNearest (vec< L, T, Q > const &value)
     Return the power of two number which value is the closet to the input value. More...
     
    -

    Detailed Description

    -

    GLM_GTX_bit

    -
    See also
    Core features (dependence)
    - -

    Definition in file bit.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: bit.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    bit.hpp File Reference
    +
    +
    + +

    GLM_GTX_bit +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genIUType >
    GLM_FUNC_DECL genIUType highestBitValue (genIUType Value)
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > highestBitValue (vec< L, T, Q > const &value)
     Find the highest bit set to 1 in a integer variable and return its value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType lowestBitValue (genIUType Value)
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove (genIUType Value)
     Return the power of two number which value is just higher the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove (vec< L, T, Q > const &value)
     Return the power of two number which value is just higher the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow (genIUType Value)
     Return the power of two number which value is just lower the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow (vec< L, T, Q > const &value)
     Return the power of two number which value is just lower the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest (genIUType Value)
     Return the power of two number which value is the closet to the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoNearest (vec< L, T, Q > const &value)
     Return the power of two number which value is the closet to the input value. More...
     
    +

    Detailed Description

    +

    GLM_GTX_bit

    +
    See also
    Core features (dependence)
    + +

    Definition in file bit.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00008_source.html b/external/glm-0.9.9.8/doc/api/a00008_source.html similarity index 78% rename from external/glm/doc/api/a00008_source.html rename to external/glm-0.9.9.8/doc/api/a00008_source.html index 5fdd9e7..14bad17 100644 --- a/external/glm/doc/api/a00008_source.html +++ b/external/glm-0.9.9.8/doc/api/a00008_source.html @@ -1,154 +1,154 @@ - - - - - - -0.9.9 API documenation: bit.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    bit.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    13 #pragma once
    -
    14 
    -
    15 // Dependencies
    -
    16 #include "../gtc/bitfield.hpp"
    -
    17 
    -
    18 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    19 # error "GLM: GLM_GTX_bit is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    20 #endif
    -
    21 
    -
    22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    23 # pragma message("GLM: GLM_GTX_bit extension is deprecated, include GLM_GTC_bitfield and GLM_GTC_integer instead")
    -
    24 #endif
    -
    25 
    -
    26 namespace glm
    -
    27 {
    -
    30 
    -
    32  template<typename genIUType>
    -
    33  GLM_FUNC_DECL genIUType highestBitValue(genIUType Value);
    -
    34 
    -
    36  template<typename genIUType>
    -
    37  GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value);
    -
    38 
    -
    42  template<length_t L, typename T, qualifier Q>
    -
    43  GLM_FUNC_DECL vec<L, T, Q> highestBitValue(vec<L, T, Q> const& value);
    -
    44 
    -
    50  template<typename genIUType>
    -
    51  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value);
    -
    52 
    -
    58  template<length_t L, typename T, qualifier Q>
    -
    59  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoAbove(vec<L, T, Q> const& value);
    -
    60 
    -
    66  template<typename genIUType>
    -
    67  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value);
    -
    68 
    -
    74  template<length_t L, typename T, qualifier Q>
    -
    75  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoBelow(vec<L, T, Q> const& value);
    -
    76 
    -
    82  template<typename genIUType>
    -
    83  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value);
    -
    84 
    -
    90  template<length_t L, typename T, qualifier Q>
    -
    91  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoNearest(vec<L, T, Q> const& value);
    -
    92 
    -
    94 } //namespace glm
    -
    95 
    -
    96 
    -
    97 #include "bit.inl"
    -
    98 
    -
    GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value)
    -
    Definition: common.hpp:20
    -
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove(vec< L, T, Q > const &value)
    Return the power of two number which value is just higher the input value.
    -
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow(vec< L, T, Q > const &value)
    Return the power of two number which value is just lower the input value.
    -
    GLM_FUNC_DECL vec< L, T, Q > highestBitValue(vec< L, T, Q > const &value)
    Find the highest bit set to 1 in a integer variable and return its value.
    -
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoNearest(vec< L, T, Q > const &value)
    Return the power of two number which value is the closet to the input value.
    -
    - - - - + + + + + + +0.9.9 API documentation: bit.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    bit.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../gtc/bitfield.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_bit is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_bit extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    32  template<typename genIUType>
    +
    33  GLM_FUNC_DECL genIUType highestBitValue(genIUType Value);
    +
    34 
    +
    36  template<typename genIUType>
    +
    37  GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value);
    +
    38 
    +
    42  template<length_t L, typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL vec<L, T, Q> highestBitValue(vec<L, T, Q> const& value);
    +
    44 
    +
    50  template<typename genIUType>
    +
    51  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value);
    +
    52 
    +
    58  template<length_t L, typename T, qualifier Q>
    +
    59  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoAbove(vec<L, T, Q> const& value);
    +
    60 
    +
    66  template<typename genIUType>
    +
    67  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value);
    +
    68 
    +
    74  template<length_t L, typename T, qualifier Q>
    +
    75  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoBelow(vec<L, T, Q> const& value);
    +
    76 
    +
    82  template<typename genIUType>
    +
    83  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value);
    +
    84 
    +
    90  template<length_t L, typename T, qualifier Q>
    +
    91  GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> powerOfTwoNearest(vec<L, T, Q> const& value);
    +
    92 
    +
    94 } //namespace glm
    +
    95 
    +
    96 
    +
    97 #include "bit.inl"
    +
    98 
    +
    GLM_FUNC_DECL vec< L, T, Q > highestBitValue(vec< L, T, Q > const &value)
    Find the highest bit set to 1 in a integer variable and return its value.
    +
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow(vec< L, T, Q > const &value)
    Return the power of two number which value is just lower the input value.
    +
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove(vec< L, T, Q > const &value)
    Return the power of two number which value is just higher the input value.
    +
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoNearest(vec< L, T, Q > const &value)
    Return the power of two number which value is the closet to the input value.
    +
    GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value)
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00009.html b/external/glm-0.9.9.8/doc/api/a00009.html new file mode 100644 index 0000000..80d483f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00009.html @@ -0,0 +1,223 @@ + + + + + + +0.9.9 API documentation: bitfield.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    bitfield.hpp File Reference
    +
    +
    + +

    GLM_GTC_bitfield +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL glm::u8vec2 bitfieldDeinterleave (glm::uint16 x)
     Deinterleaves the bits of x. More...
     
    GLM_FUNC_DECL glm::u16vec2 bitfieldDeinterleave (glm::uint32 x)
     Deinterleaves the bits of x. More...
     
    GLM_FUNC_DECL glm::u32vec2 bitfieldDeinterleave (glm::uint64 x)
     Deinterleaves the bits of x. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldFillOne (genIUType Value, int FirstBit, int BitCount)
     Set to 1 a range of bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillOne (vec< L, T, Q > const &Value, int FirstBit, int BitCount)
     Set to 1 a range of bits. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldFillZero (genIUType Value, int FirstBit, int BitCount)
     Set to 0 a range of bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillZero (vec< L, T, Q > const &Value, int FirstBit, int BitCount)
     Set to 0 a range of bits. More...
     
    GLM_FUNC_DECL int16 bitfieldInterleave (int8 x, int8 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint16 bitfieldInterleave (uint8 x, uint8 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint16 bitfieldInterleave (u8vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int16 x, int16 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint16 x, uint16 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (u16vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (u32vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y, int32 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y, uint32 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z, int8 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z, int16 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w)
     Interleaves the bits of x, y, z and w. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldRotateLeft (genIUType In, int Shift)
     Rotate all bits to the left. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft (vec< L, T, Q > const &In, int Shift)
     Rotate all bits to the left. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldRotateRight (genIUType In, int Shift)
     Rotate all bits to the right. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateRight (vec< L, T, Q > const &In, int Shift)
     Rotate all bits to the right. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType mask (genIUType Bits)
     Build a mask of 'count' bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > mask (vec< L, T, Q > const &v)
     Build a mask of 'count' bits. More...
     
    +

    Detailed Description

    +

    GLM_GTC_bitfield

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_bitfield (dependence)
    + +

    Definition in file bitfield.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00009_source.html b/external/glm-0.9.9.8/doc/api/a00009_source.html new file mode 100644 index 0000000..7aa7e45 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00009_source.html @@ -0,0 +1,212 @@ + + + + + + +0.9.9 API documentation: bitfield.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    bitfield.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #include "../detail/setup.hpp"
    +
    15 
    +
    16 #pragma once
    +
    17 
    +
    18 // Dependencies
    +
    19 #include "../ext/scalar_int_sized.hpp"
    +
    20 #include "../ext/scalar_uint_sized.hpp"
    +
    21 #include "../detail/qualifier.hpp"
    +
    22 #include "../detail/_vectorize.hpp"
    +
    23 #include "type_precision.hpp"
    +
    24 #include <limits>
    +
    25 
    +
    26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    27 # pragma message("GLM: GLM_GTC_bitfield extension included")
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    38  template<typename genIUType>
    +
    39  GLM_FUNC_DECL genIUType mask(genIUType Bits);
    +
    40 
    +
    48  template<length_t L, typename T, qualifier Q>
    +
    49  GLM_FUNC_DECL vec<L, T, Q> mask(vec<L, T, Q> const& v);
    +
    50 
    +
    54  template<typename genIUType>
    +
    55  GLM_FUNC_DECL genIUType bitfieldRotateRight(genIUType In, int Shift);
    +
    56 
    +
    64  template<length_t L, typename T, qualifier Q>
    +
    65  GLM_FUNC_DECL vec<L, T, Q> bitfieldRotateRight(vec<L, T, Q> const& In, int Shift);
    +
    66 
    +
    70  template<typename genIUType>
    +
    71  GLM_FUNC_DECL genIUType bitfieldRotateLeft(genIUType In, int Shift);
    +
    72 
    +
    80  template<length_t L, typename T, qualifier Q>
    +
    81  GLM_FUNC_DECL vec<L, T, Q> bitfieldRotateLeft(vec<L, T, Q> const& In, int Shift);
    +
    82 
    +
    86  template<typename genIUType>
    +
    87  GLM_FUNC_DECL genIUType bitfieldFillOne(genIUType Value, int FirstBit, int BitCount);
    +
    88 
    +
    96  template<length_t L, typename T, qualifier Q>
    +
    97  GLM_FUNC_DECL vec<L, T, Q> bitfieldFillOne(vec<L, T, Q> const& Value, int FirstBit, int BitCount);
    +
    98 
    +
    102  template<typename genIUType>
    +
    103  GLM_FUNC_DECL genIUType bitfieldFillZero(genIUType Value, int FirstBit, int BitCount);
    +
    104 
    +
    112  template<length_t L, typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL vec<L, T, Q> bitfieldFillZero(vec<L, T, Q> const& Value, int FirstBit, int BitCount);
    +
    114 
    +
    120  GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y);
    +
    121 
    +
    127  GLM_FUNC_DECL uint16 bitfieldInterleave(uint8 x, uint8 y);
    +
    128 
    +
    134  GLM_FUNC_DECL uint16 bitfieldInterleave(u8vec2 const& v);
    +
    135 
    + +
    140 
    +
    146  GLM_FUNC_DECL int32 bitfieldInterleave(int16 x, int16 y);
    +
    147 
    +
    153  GLM_FUNC_DECL uint32 bitfieldInterleave(uint16 x, uint16 y);
    +
    154 
    +
    160  GLM_FUNC_DECL uint32 bitfieldInterleave(u16vec2 const& v);
    +
    161 
    + +
    166 
    +
    172  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y);
    +
    173 
    +
    179  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y);
    +
    180 
    +
    186  GLM_FUNC_DECL uint64 bitfieldInterleave(u32vec2 const& v);
    +
    187 
    + +
    192 
    +
    198  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z);
    +
    199 
    +
    205  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z);
    +
    206 
    +
    212  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z);
    +
    213 
    +
    219  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z);
    +
    220 
    +
    226  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y, int32 z);
    +
    227 
    +
    233  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y, uint32 z);
    +
    234 
    +
    240  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z, int8 w);
    +
    241 
    +
    247  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w);
    +
    248 
    +
    254  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z, int16 w);
    +
    255 
    +
    261  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w);
    +
    262 
    +
    264 } //namespace glm
    +
    265 
    +
    266 #include "bitfield.inl"
    +
    detail::uint32 uint32
    32 bit unsigned integer type.
    +
    GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
    Interleaves the bits of x, y, z and w.
    +
    GLM_FUNC_DECL glm::u32vec2 bitfieldDeinterleave(glm::uint64 x)
    Deinterleaves the bits of x.
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillZero(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
    Set to 0 a range of bits.
    +
    detail::uint16 uint16
    16 bit unsigned integer type.
    +
    vec< 2, u8, defaultp > u8vec2
    Default qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:340
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)
    Rotate all bits to the left.
    +
    GLM_FUNC_DECL vec< L, T, Q > mask(vec< L, T, Q > const &v)
    Build a mask of 'count' bits.
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillOne(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
    Set to 1 a range of bits.
    +
    GLM_GTC_type_precision
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    vec< 2, u32, defaultp > u32vec2
    Default qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:380
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateRight(vec< L, T, Q > const &In, int Shift)
    Rotate all bits to the right.
    +
    vec< 2, u16, defaultp > u16vec2
    Default qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:360
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00010.html b/external/glm-0.9.9.8/doc/api/a00010.html similarity index 80% rename from external/glm/doc/api/a00010.html rename to external/glm-0.9.9.8/doc/api/a00010.html index 56b2b0f..3d79423 100644 --- a/external/glm/doc/api/a00010.html +++ b/external/glm-0.9.9.8/doc/api/a00010.html @@ -1,124 +1,124 @@ - - - - - - -0.9.9 API documenation: closest_point.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    closest_point.hpp File Reference
    -
    -
    - -

    GLM_GTX_closest_point -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - -

    -Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > closestPointOnLine (vec< 3, T, Q > const &point, vec< 3, T, Q > const &a, vec< 3, T, Q > const &b)
     Find the point on a straight line which is the closet of a point. More...
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > closestPointOnLine (vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)
     2d lines work as well
     
    -

    Detailed Description

    -

    GLM_GTX_closest_point

    -
    See also
    Core features (dependence)
    - -

    Definition in file closest_point.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: closest_point.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    closest_point.hpp File Reference
    +
    +
    + +

    GLM_GTX_closest_point +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > closestPointOnLine (vec< 3, T, Q > const &point, vec< 3, T, Q > const &a, vec< 3, T, Q > const &b)
     Find the point on a straight line which is the closet of a point. More...
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > closestPointOnLine (vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)
     2d lines work as well
     
    +

    Detailed Description

    +

    GLM_GTX_closest_point

    +
    See also
    Core features (dependence)
    + +

    Definition in file closest_point.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00010_source.html b/external/glm-0.9.9.8/doc/api/a00010_source.html similarity index 77% rename from external/glm/doc/api/a00010_source.html rename to external/glm-0.9.9.8/doc/api/a00010_source.html index 391a278..33072da 100644 --- a/external/glm/doc/api/a00010_source.html +++ b/external/glm-0.9.9.8/doc/api/a00010_source.html @@ -1,133 +1,133 @@ - - - - - - -0.9.9 API documenation: closest_point.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    closest_point.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    13 #pragma once
    -
    14 
    -
    15 // Dependency:
    -
    16 #include "../glm.hpp"
    -
    17 
    -
    18 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    19 # error "GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    20 #endif
    -
    21 
    -
    22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    23 # pragma message("GLM: GLM_GTX_closest_point extension included")
    -
    24 #endif
    -
    25 
    -
    26 namespace glm
    -
    27 {
    -
    30 
    -
    33  template<typename T, qualifier Q>
    -
    34  GLM_FUNC_DECL vec<3, T, Q> closestPointOnLine(
    -
    35  vec<3, T, Q> const& point,
    -
    36  vec<3, T, Q> const& a,
    -
    37  vec<3, T, Q> const& b);
    -
    38 
    -
    40  template<typename T, qualifier Q>
    -
    41  GLM_FUNC_DECL vec<2, T, Q> closestPointOnLine(
    -
    42  vec<2, T, Q> const& point,
    -
    43  vec<2, T, Q> const& a,
    -
    44  vec<2, T, Q> const& b);
    -
    45 
    -
    47 }// namespace glm
    -
    48 
    -
    49 #include "closest_point.inl"
    -
    Definition: common.hpp:20
    -
    GLM_FUNC_DECL vec< 2, T, Q > closestPointOnLine(vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)
    2d lines work as well
    -
    - - - - + + + + + + +0.9.9 API documentation: closest_point.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    closest_point.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_closest_point extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL vec<3, T, Q> closestPointOnLine(
    +
    35  vec<3, T, Q> const& point,
    +
    36  vec<3, T, Q> const& a,
    +
    37  vec<3, T, Q> const& b);
    +
    38 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL vec<2, T, Q> closestPointOnLine(
    +
    42  vec<2, T, Q> const& point,
    +
    43  vec<2, T, Q> const& a,
    +
    44  vec<2, T, Q> const& b);
    +
    45 
    +
    47 }// namespace glm
    +
    48 
    +
    49 #include "closest_point.inl"
    +
    GLM_FUNC_DECL vec< 2, T, Q > closestPointOnLine(vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)
    2d lines work as well
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00011.html b/external/glm-0.9.9.8/doc/api/a00011.html similarity index 83% rename from external/glm/doc/api/a00011.html rename to external/glm-0.9.9.8/doc/api/a00011.html index f6a8a1d..790fb90 100644 --- a/external/glm/doc/api/a00011.html +++ b/external/glm-0.9.9.8/doc/api/a00011.html @@ -1,137 +1,137 @@ - - - - - - -0.9.9 API documenation: color_encoding.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    color_encoding.hpp File Reference
    -
    -
    - -

    GLM_GTX_color_encoding -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - -

    -Functions

    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToD50XYZ (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to D50 YUV.
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToLinearSRGB (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to linear sRGB.
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD50XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D50 YUV.
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD65XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D65 YUV.
     
    -

    Detailed Description

    -

    GLM_GTX_color_encoding

    -
    See also
    Core features (dependence)
    -
    -GLM_GTX_color_encoding (dependence)
    - -

    Definition in file color_encoding.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: color_encoding.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    color_encoding.hpp File Reference
    +
    +
    + +

    GLM_GTX_color_encoding +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToD50XYZ (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to D50 YUV.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToLinearSRGB (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to linear sRGB.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD50XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D50 YUV.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD65XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D65 YUV.
     
    +

    Detailed Description

    +

    GLM_GTX_color_encoding

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_color_encoding (dependence)
    + +

    Definition in file color_encoding.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00011_source.html b/external/glm-0.9.9.8/doc/api/a00011_source.html new file mode 100644 index 0000000..cea173e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00011_source.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: color_encoding.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    color_encoding.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 #include "../vec3.hpp"
    +
    20 #include <limits>
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTC_color_encoding is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTC_color_encoding extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    36  template<typename T, qualifier Q>
    +
    37  GLM_FUNC_DECL vec<3, T, Q> convertLinearSRGBToD65XYZ(vec<3, T, Q> const& ColorLinearSRGB);
    +
    38 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL vec<3, T, Q> convertLinearSRGBToD50XYZ(vec<3, T, Q> const& ColorLinearSRGB);
    +
    42 
    +
    44  template<typename T, qualifier Q>
    +
    45  GLM_FUNC_DECL vec<3, T, Q> convertD65XYZToLinearSRGB(vec<3, T, Q> const& ColorD65XYZ);
    +
    46 
    +
    48  template<typename T, qualifier Q>
    +
    49  GLM_FUNC_DECL vec<3, T, Q> convertD65XYZToD50XYZ(vec<3, T, Q> const& ColorD65XYZ);
    +
    50 
    +
    52 } //namespace glm
    +
    53 
    +
    54 #include "color_encoding.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToLinearSRGB(vec< 3, T, Q > const &ColorD65XYZ)
    Convert a D65 YUV color to linear sRGB.
    +
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD50XYZ(vec< 3, T, Q > const &ColorLinearSRGB)
    Convert a linear sRGB color to D50 YUV.
    +
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD65XYZ(vec< 3, T, Q > const &ColorLinearSRGB)
    Convert a linear sRGB color to D65 YUV.
    +
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToD50XYZ(vec< 3, T, Q > const &ColorD65XYZ)
    Convert a D65 YUV color to D50 YUV.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00012.html b/external/glm-0.9.9.8/doc/api/a00012.html similarity index 82% rename from external/glm/doc/api/a00012.html rename to external/glm-0.9.9.8/doc/api/a00012.html index 97e5348..5367559 100644 --- a/external/glm/doc/api/a00012.html +++ b/external/glm-0.9.9.8/doc/api/a00012.html @@ -1,134 +1,134 @@ - - - - - - -0.9.9 API documenation: color_space.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    gtc/color_space.hpp File Reference
    -
    -
    - -

    GLM_GTC_color_space -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - -

    -Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear)
     Convert a linear color to sRGB color using a standard gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear, T Gamma)
     Convert a linear color to sRGB color using a custom gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB)
     Convert a sRGB color to linear color using a standard gamma correction. More...
     
    -template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB, T Gamma)
     Convert a sRGB color to linear color using a custom gamma correction.
     
    -

    Detailed Description

    -

    GLM_GTC_color_space

    -
    See also
    Core features (dependence)
    -
    -GLM_GTC_color_space (dependence)
    - -

    Definition in file gtc/color_space.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: color_space.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtc/color_space.hpp File Reference
    +
    +
    + +

    GLM_GTC_color_space +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear)
     Convert a linear color to sRGB color using a standard gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear, T Gamma)
     Convert a linear color to sRGB color using a custom gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB)
     Convert a sRGB color to linear color using a standard gamma correction. More...
     
    +template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB, T Gamma)
     Convert a sRGB color to linear color using a custom gamma correction.
     
    +

    Detailed Description

    +

    GLM_GTC_color_space

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_color_space (dependence)
    + +

    Definition in file gtc/color_space.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00012_source.html b/external/glm-0.9.9.8/doc/api/a00012_source.html similarity index 84% rename from external/glm/doc/api/a00012_source.html rename to external/glm-0.9.9.8/doc/api/a00012_source.html index 6698ba3..c3a62a2 100644 --- a/external/glm/doc/api/a00012_source.html +++ b/external/glm-0.9.9.8/doc/api/a00012_source.html @@ -1,136 +1,136 @@ - - - - - - -0.9.9 API documenation: color_space.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    gtc/color_space.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    14 #pragma once
    -
    15 
    -
    16 // Dependencies
    -
    17 #include "../detail/setup.hpp"
    -
    18 #include "../detail/qualifier.hpp"
    -
    19 #include "../exponential.hpp"
    -
    20 #include "../vec3.hpp"
    -
    21 #include "../vec4.hpp"
    -
    22 #include <limits>
    -
    23 
    -
    24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    25 # pragma message("GLM: GLM_GTC_color_space extension included")
    -
    26 #endif
    -
    27 
    -
    28 namespace glm
    -
    29 {
    -
    32 
    -
    35  template<length_t L, typename T, qualifier Q>
    -
    36  GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear);
    -
    37 
    -
    40  template<length_t L, typename T, qualifier Q>
    -
    41  GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear, T Gamma);
    -
    42 
    -
    45  template<length_t L, typename T, qualifier Q>
    -
    46  GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB);
    -
    47 
    -
    49  // IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
    -
    50  template<length_t L, typename T, qualifier Q>
    -
    51  GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB, T Gamma);
    -
    52 
    -
    54 } //namespace glm
    -
    55 
    -
    56 #include "color_space.inl"
    -
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB(vec< L, T, Q > const &ColorLinear, T Gamma)
    Convert a linear color to sRGB color using a custom gamma correction.
    -
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB, T Gamma)
    Convert a sRGB color to linear color using a custom gamma correction.
    -
    Definition: common.hpp:20
    -
    - - - - + + + + + + +0.9.9 API documentation: color_space.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/color_space.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 #include "../exponential.hpp"
    +
    20 #include "../vec3.hpp"
    +
    21 #include "../vec4.hpp"
    +
    22 #include <limits>
    +
    23 
    +
    24 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    25 # pragma message("GLM: GLM_GTC_color_space extension included")
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<length_t L, typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear);
    +
    37 
    +
    40  template<length_t L, typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear, T Gamma);
    +
    42 
    +
    45  template<length_t L, typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB);
    +
    47 
    +
    49  // IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
    +
    50  template<length_t L, typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB, T Gamma);
    +
    52 
    +
    54 } //namespace glm
    +
    55 
    +
    56 #include "color_space.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB(vec< L, T, Q > const &ColorLinear, T Gamma)
    Convert a linear color to sRGB color using a custom gamma correction.
    +
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB, T Gamma)
    Convert a sRGB color to linear color using a custom gamma correction.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00013.html b/external/glm-0.9.9.8/doc/api/a00013.html similarity index 81% rename from external/glm/doc/api/a00013.html rename to external/glm-0.9.9.8/doc/api/a00013.html index 2d950ca..b689d83 100644 --- a/external/glm/doc/api/a00013.html +++ b/external/glm-0.9.9.8/doc/api/a00013.html @@ -1,139 +1,139 @@ - - - - - - -0.9.9 API documenation: color_space.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    gtx/color_space.hpp File Reference
    -
    -
    - -

    GLM_GTX_color_space -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > hsvColor (vec< 3, T, Q > const &rgbValue)
     Converts a color from RGB color space to its color in HSV color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T luminosity (vec< 3, T, Q > const &color)
     Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor (vec< 3, T, Q > const &hsvValue)
     Converts a color from HSV color space to its color in RGB color space. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > saturation (T const s)
     Build a saturation matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > saturation (T const s, vec< 3, T, Q > const &color)
     Modify the saturation of a color. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > saturation (T const s, vec< 4, T, Q > const &color)
     Modify the saturation of a color. More...
     
    -

    Detailed Description

    -

    GLM_GTX_color_space

    -
    See also
    Core features (dependence)
    - -

    Definition in file gtx/color_space.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: color_space.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtx/color_space.hpp File Reference
    +
    +
    + +

    GLM_GTX_color_space +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > hsvColor (vec< 3, T, Q > const &rgbValue)
     Converts a color from RGB color space to its color in HSV color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T luminosity (vec< 3, T, Q > const &color)
     Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor (vec< 3, T, Q > const &hsvValue)
     Converts a color from HSV color space to its color in RGB color space. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > saturation (T const s)
     Build a saturation matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > saturation (T const s, vec< 3, T, Q > const &color)
     Modify the saturation of a color. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > saturation (T const s, vec< 4, T, Q > const &color)
     Modify the saturation of a color. More...
     
    +

    Detailed Description

    +

    GLM_GTX_color_space

    +
    See also
    Core features (dependence)
    + +

    Definition in file gtx/color_space.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00013_source.html b/external/glm-0.9.9.8/doc/api/a00013_source.html similarity index 78% rename from external/glm/doc/api/a00013_source.html rename to external/glm-0.9.9.8/doc/api/a00013_source.html index de1a21b..d1ab3ee 100644 --- a/external/glm/doc/api/a00013_source.html +++ b/external/glm-0.9.9.8/doc/api/a00013_source.html @@ -1,150 +1,150 @@ - - - - - - -0.9.9 API documenation: color_space.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    gtx/color_space.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    13 #pragma once
    -
    14 
    -
    15 // Dependency:
    -
    16 #include "../glm.hpp"
    -
    17 
    -
    18 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    19 # error "GLM: GLM_GTX_color_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    20 #endif
    -
    21 
    -
    22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    23 # pragma message("GLM: GLM_GTX_color_space extension included")
    -
    24 #endif
    -
    25 
    -
    26 namespace glm
    -
    27 {
    -
    30 
    -
    33  template<typename T, qualifier Q>
    -
    34  GLM_FUNC_DECL vec<3, T, Q> rgbColor(
    -
    35  vec<3, T, Q> const& hsvValue);
    -
    36 
    -
    39  template<typename T, qualifier Q>
    -
    40  GLM_FUNC_DECL vec<3, T, Q> hsvColor(
    -
    41  vec<3, T, Q> const& rgbValue);
    -
    42 
    -
    45  template<typename T>
    -
    46  GLM_FUNC_DECL mat<4, 4, T, defaultp> saturation(
    -
    47  T const s);
    -
    48 
    -
    51  template<typename T, qualifier Q>
    -
    52  GLM_FUNC_DECL vec<3, T, Q> saturation(
    -
    53  T const s,
    -
    54  vec<3, T, Q> const& color);
    -
    55 
    -
    58  template<typename T, qualifier Q>
    -
    59  GLM_FUNC_DECL vec<4, T, Q> saturation(
    -
    60  T const s,
    -
    61  vec<4, T, Q> const& color);
    -
    62 
    -
    65  template<typename T, qualifier Q>
    -
    66  GLM_FUNC_DECL T luminosity(
    -
    67  vec<3, T, Q> const& color);
    -
    68 
    -
    70 }//namespace glm
    -
    71 
    -
    72 #include "color_space.inl"
    -
    Definition: common.hpp:20
    -
    GLM_FUNC_DECL vec< 4, T, Q > saturation(T const s, vec< 4, T, Q > const &color)
    Modify the saturation of a color.
    -
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)
    Converts a color from HSV color space to its color in RGB color space.
    -
    GLM_FUNC_DECL vec< 3, T, Q > hsvColor(vec< 3, T, Q > const &rgbValue)
    Converts a color from RGB color space to its color in HSV color space.
    -
    GLM_FUNC_DECL T luminosity(vec< 3, T, Q > const &color)
    Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals.
    -
    - - - - + + + + + + +0.9.9 API documentation: color_space.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/color_space.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_color_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_color_space extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL vec<3, T, Q> rgbColor(
    +
    35  vec<3, T, Q> const& hsvValue);
    +
    36 
    +
    39  template<typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL vec<3, T, Q> hsvColor(
    +
    41  vec<3, T, Q> const& rgbValue);
    +
    42 
    +
    45  template<typename T>
    +
    46  GLM_FUNC_DECL mat<4, 4, T, defaultp> saturation(
    +
    47  T const s);
    +
    48 
    +
    51  template<typename T, qualifier Q>
    +
    52  GLM_FUNC_DECL vec<3, T, Q> saturation(
    +
    53  T const s,
    +
    54  vec<3, T, Q> const& color);
    +
    55 
    +
    58  template<typename T, qualifier Q>
    +
    59  GLM_FUNC_DECL vec<4, T, Q> saturation(
    +
    60  T const s,
    +
    61  vec<4, T, Q> const& color);
    +
    62 
    +
    65  template<typename T, qualifier Q>
    +
    66  GLM_FUNC_DECL T luminosity(
    +
    67  vec<3, T, Q> const& color);
    +
    68 
    +
    70 }//namespace glm
    +
    71 
    +
    72 #include "color_space.inl"
    +
    GLM_FUNC_DECL T luminosity(vec< 3, T, Q > const &color)
    Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals.
    +
    GLM_FUNC_DECL vec< 4, T, Q > saturation(T const s, vec< 4, T, Q > const &color)
    Modify the saturation of a color.
    +
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)
    Converts a color from HSV color space to its color in RGB color space.
    +
    GLM_FUNC_DECL vec< 3, T, Q > hsvColor(vec< 3, T, Q > const &rgbValue)
    Converts a color from RGB color space to its color in HSV color space.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00014.html b/external/glm-0.9.9.8/doc/api/a00014.html similarity index 81% rename from external/glm/doc/api/a00014.html rename to external/glm-0.9.9.8/doc/api/a00014.html index d6fba82..ff1eceb 100644 --- a/external/glm/doc/api/a00014.html +++ b/external/glm-0.9.9.8/doc/api/a00014.html @@ -1,131 +1,131 @@ - - - - - - -0.9.9 API documenation: color_space_YCoCg.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    color_space_YCoCg.hpp File Reference
    -
    -
    - -

    GLM_GTX_color_space_YCoCg -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - -

    -Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCg color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCgR color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCg color space to RGB color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCgR color space to RGB color space. More...
     
    -

    Detailed Description

    -

    GLM_GTX_color_space_YCoCg

    -
    See also
    Core features (dependence)
    - -

    Definition in file color_space_YCoCg.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: color_space_YCoCg.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    color_space_YCoCg.hpp File Reference
    +
    +
    + +

    GLM_GTX_color_space_YCoCg +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCg color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCgR color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCg color space to RGB color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCgR color space to RGB color space. More...
     
    +

    Detailed Description

    +

    GLM_GTX_color_space_YCoCg

    +
    See also
    Core features (dependence)
    + +

    Definition in file color_space_YCoCg.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00014_source.html b/external/glm-0.9.9.8/doc/api/a00014_source.html similarity index 76% rename from external/glm/doc/api/a00014_source.html rename to external/glm-0.9.9.8/doc/api/a00014_source.html index 8e7325e..9e44fd5 100644 --- a/external/glm/doc/api/a00014_source.html +++ b/external/glm-0.9.9.8/doc/api/a00014_source.html @@ -1,141 +1,141 @@ - - - - - - -0.9.9 API documenation: color_space_YCoCg.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    color_space_YCoCg.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    13 #pragma once
    -
    14 
    -
    15 // Dependency:
    -
    16 #include "../glm.hpp"
    -
    17 
    -
    18 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    19 # error "GLM: GLM_GTX_color_space_YCoCg is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    20 #endif
    -
    21 
    -
    22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    23 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
    -
    24 #endif
    -
    25 
    -
    26 namespace glm
    -
    27 {
    -
    30 
    -
    33  template<typename T, qualifier Q>
    -
    34  GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCg(
    -
    35  vec<3, T, Q> const& rgbColor);
    -
    36 
    -
    39  template<typename T, qualifier Q>
    -
    40  GLM_FUNC_DECL vec<3, T, Q> YCoCg2rgb(
    -
    41  vec<3, T, Q> const& YCoCgColor);
    -
    42 
    -
    46  template<typename T, qualifier Q>
    -
    47  GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCgR(
    -
    48  vec<3, T, Q> const& rgbColor);
    -
    49 
    -
    53  template<typename T, qualifier Q>
    -
    54  GLM_FUNC_DECL vec<3, T, Q> YCoCgR2rgb(
    -
    55  vec<3, T, Q> const& YCoCgColor);
    -
    56 
    -
    58 }//namespace glm
    -
    59 
    -
    60 #include "color_space_YCoCg.inl"
    -
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR(vec< 3, T, Q > const &rgbColor)
    Convert a color from RGB color space to YCoCgR color space.
    -
    Definition: common.hpp:20
    -
    GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb(vec< 3, T, Q > const &YCoCgColor)
    Convert a color from YCoCg color space to RGB color space.
    -
    GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb(vec< 3, T, Q > const &YCoCgColor)
    Convert a color from YCoCgR color space to RGB color space.
    -
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)
    Converts a color from HSV color space to its color in RGB color space.
    -
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg(vec< 3, T, Q > const &rgbColor)
    Convert a color from RGB color space to YCoCg color space.
    -
    - - - - + + + + + + +0.9.9 API documentation: color_space_YCoCg.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    color_space_YCoCg.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_color_space_YCoCg is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCg(
    +
    35  vec<3, T, Q> const& rgbColor);
    +
    36 
    +
    39  template<typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL vec<3, T, Q> YCoCg2rgb(
    +
    41  vec<3, T, Q> const& YCoCgColor);
    +
    42 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCgR(
    +
    48  vec<3, T, Q> const& rgbColor);
    +
    49 
    +
    53  template<typename T, qualifier Q>
    +
    54  GLM_FUNC_DECL vec<3, T, Q> YCoCgR2rgb(
    +
    55  vec<3, T, Q> const& YCoCgColor);
    +
    56 
    +
    58 }//namespace glm
    +
    59 
    +
    60 #include "color_space_YCoCg.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb(vec< 3, T, Q > const &YCoCgColor)
    Convert a color from YCoCgR color space to RGB color space.
    +
    GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb(vec< 3, T, Q > const &YCoCgColor)
    Convert a color from YCoCg color space to RGB color space.
    +
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)
    Converts a color from HSV color space to its color in RGB color space.
    +
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg(vec< 3, T, Q > const &rgbColor)
    Convert a color from RGB color space to YCoCg color space.
    +
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR(vec< 3, T, Q > const &rgbColor)
    Convert a color from RGB color space to YCoCgR color space.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00015.html b/external/glm-0.9.9.8/doc/api/a00015.html new file mode 100644 index 0000000..f01298a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00015.html @@ -0,0 +1,267 @@ + + + + + + +0.9.9 API documentation: common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    common.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType abs (genType x)
     Returns x if x >= 0; otherwise, it returns -x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > abs (vec< L, T, Q > const &x)
     Returns x if x >= 0; otherwise, it returns -x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceil (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer that is greater than or equal to x. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType clamp (genType x, genType minVal, genType maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > clamp (vec< L, T, Q > const &x, T minVal, T maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > clamp (vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    GLM_FUNC_DECL int floatBitsToInt (float const &v)
     Returns a signed integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > floatBitsToInt (vec< L, float, Q > const &v)
     Returns a signed integer value representing the encoding of a floating-point value. More...
     
    GLM_FUNC_DECL uint floatBitsToUint (float const &v)
     Returns a unsigned integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > floatBitsToUint (vec< L, float, Q > const &v)
     Returns a unsigned integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floor (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer that is less then or equal to x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fma (genType const &a, genType const &b, genType const &c)
     Computes and returns a * b + c. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fract (genType x)
     Return x - floor(x). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fract (vec< L, T, Q > const &x)
     Return x - floor(x). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType frexp (genType x, int &exp)
     Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) More...
     
    GLM_FUNC_DECL float intBitsToFloat (int const &v)
     Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > intBitsToFloat (vec< L, int, Q > const &v)
     Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isinf (vec< L, T, Q > const &x)
     Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isnan (vec< L, T, Q > const &x)
     Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType ldexp (genType const &x, int const &exp)
     Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType max (genType x, genType y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, T y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType min (genType x, genType y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &x, T y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<typename genTypeT , typename genTypeU >
    GLM_FUNC_DECL genTypeT mix (genTypeT x, genTypeT y, genTypeU a)
     If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > mod (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Modulus. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType modf (genType x, genType &i)
     Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > round (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundEven (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sign (vec< L, T, Q > const &x)
     Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType smoothstep (genType edge0, genType edge1, genType x)
     Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType step (genType edge, genType x)
     Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > step (T edge, vec< L, T, Q > const &x)
     Returns 0.0 if x < edge, otherwise it returns 1.0. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > step (vec< L, T, Q > const &edge, vec< L, T, Q > const &x)
     Returns 0.0 if x < edge, otherwise it returns 1.0. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > trunc (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. More...
     
    GLM_FUNC_DECL float uintBitsToFloat (uint const &v)
     Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > uintBitsToFloat (vec< L, uint, Q > const &v)
     Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00015_source.html b/external/glm-0.9.9.8/doc/api/a00015_source.html new file mode 100644 index 0000000..97dfad2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00015_source.html @@ -0,0 +1,276 @@ + + + + + + +0.9.9 API documentation: common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 #include "detail/qualifier.hpp"
    +
    18 #include "detail/_fixes.hpp"
    +
    19 
    +
    20 namespace glm
    +
    21 {
    +
    24 
    +
    31  template<typename genType>
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR genType abs(genType x);
    +
    33 
    +
    42  template<length_t L, typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> abs(vec<L, T, Q> const& x);
    +
    44 
    +
    53  template<length_t L, typename T, qualifier Q>
    +
    54  GLM_FUNC_DECL vec<L, T, Q> sign(vec<L, T, Q> const& x);
    +
    55 
    +
    64  template<length_t L, typename T, qualifier Q>
    +
    65  GLM_FUNC_DECL vec<L, T, Q> floor(vec<L, T, Q> const& x);
    +
    66 
    +
    76  template<length_t L, typename T, qualifier Q>
    +
    77  GLM_FUNC_DECL vec<L, T, Q> trunc(vec<L, T, Q> const& x);
    +
    78 
    +
    91  template<length_t L, typename T, qualifier Q>
    +
    92  GLM_FUNC_DECL vec<L, T, Q> round(vec<L, T, Q> const& x);
    +
    93 
    +
    105  template<length_t L, typename T, qualifier Q>
    +
    106  GLM_FUNC_DECL vec<L, T, Q> roundEven(vec<L, T, Q> const& x);
    +
    107 
    +
    117  template<length_t L, typename T, qualifier Q>
    +
    118  GLM_FUNC_DECL vec<L, T, Q> ceil(vec<L, T, Q> const& x);
    +
    119 
    +
    126  template<typename genType>
    +
    127  GLM_FUNC_DECL genType fract(genType x);
    +
    128 
    +
    137  template<length_t L, typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL vec<L, T, Q> fract(vec<L, T, Q> const& x);
    +
    139 
    +
    140  template<typename genType>
    +
    141  GLM_FUNC_DECL genType mod(genType x, genType y);
    +
    142 
    +
    143  template<length_t L, typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL vec<L, T, Q> mod(vec<L, T, Q> const& x, T y);
    +
    145 
    +
    155  template<length_t L, typename T, qualifier Q>
    +
    156  GLM_FUNC_DECL vec<L, T, Q> mod(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    157 
    +
    167  template<typename genType>
    +
    168  GLM_FUNC_DECL genType modf(genType x, genType& i);
    +
    169 
    +
    176  template<typename genType>
    +
    177  GLM_FUNC_DECL GLM_CONSTEXPR genType min(genType x, genType y);
    +
    178 
    +
    187  template<length_t L, typename T, qualifier Q>
    +
    188  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& x, T y);
    +
    189 
    +
    198  template<length_t L, typename T, qualifier Q>
    +
    199  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    200 
    +
    207  template<typename genType>
    +
    208  GLM_FUNC_DECL GLM_CONSTEXPR genType max(genType x, genType y);
    +
    209 
    +
    218  template<length_t L, typename T, qualifier Q>
    +
    219  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, T y);
    +
    220 
    +
    229  template<length_t L, typename T, qualifier Q>
    +
    230  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    231 
    +
    239  template<typename genType>
    +
    240  GLM_FUNC_DECL GLM_CONSTEXPR genType clamp(genType x, genType minVal, genType maxVal);
    +
    241 
    +
    251  template<length_t L, typename T, qualifier Q>
    +
    252  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> clamp(vec<L, T, Q> const& x, T minVal, T maxVal);
    +
    253 
    +
    263  template<length_t L, typename T, qualifier Q>
    +
    264  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> clamp(vec<L, T, Q> const& x, vec<L, T, Q> const& minVal, vec<L, T, Q> const& maxVal);
    +
    265 
    +
    308  template<typename genTypeT, typename genTypeU>
    +
    309  GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a);
    +
    310 
    +
    311  template<length_t L, typename T, typename U, qualifier Q>
    +
    312  GLM_FUNC_DECL vec<L, T, Q> mix(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, U, Q> const& a);
    +
    313 
    +
    314  template<length_t L, typename T, typename U, qualifier Q>
    +
    315  GLM_FUNC_DECL vec<L, T, Q> mix(vec<L, T, Q> const& x, vec<L, T, Q> const& y, U a);
    +
    316 
    +
    321  template<typename genType>
    +
    322  GLM_FUNC_DECL genType step(genType edge, genType x);
    +
    323 
    +
    332  template<length_t L, typename T, qualifier Q>
    +
    333  GLM_FUNC_DECL vec<L, T, Q> step(T edge, vec<L, T, Q> const& x);
    +
    334 
    +
    343  template<length_t L, typename T, qualifier Q>
    +
    344  GLM_FUNC_DECL vec<L, T, Q> step(vec<L, T, Q> const& edge, vec<L, T, Q> const& x);
    +
    345 
    +
    360  template<typename genType>
    +
    361  GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x);
    +
    362 
    +
    363  template<length_t L, typename T, qualifier Q>
    +
    364  GLM_FUNC_DECL vec<L, T, Q> smoothstep(T edge0, T edge1, vec<L, T, Q> const& x);
    +
    365 
    +
    366  template<length_t L, typename T, qualifier Q>
    +
    367  GLM_FUNC_DECL vec<L, T, Q> smoothstep(vec<L, T, Q> const& edge0, vec<L, T, Q> const& edge1, vec<L, T, Q> const& x);
    +
    368 
    +
    383  template<length_t L, typename T, qualifier Q>
    +
    384  GLM_FUNC_DECL vec<L, bool, Q> isnan(vec<L, T, Q> const& x);
    +
    385 
    +
    398  template<length_t L, typename T, qualifier Q>
    +
    399  GLM_FUNC_DECL vec<L, bool, Q> isinf(vec<L, T, Q> const& x);
    +
    400 
    +
    407  GLM_FUNC_DECL int floatBitsToInt(float const& v);
    +
    408 
    +
    418  template<length_t L, qualifier Q>
    +
    419  GLM_FUNC_DECL vec<L, int, Q> floatBitsToInt(vec<L, float, Q> const& v);
    +
    420 
    +
    427  GLM_FUNC_DECL uint floatBitsToUint(float const& v);
    +
    428 
    +
    438  template<length_t L, qualifier Q>
    +
    439  GLM_FUNC_DECL vec<L, uint, Q> floatBitsToUint(vec<L, float, Q> const& v);
    +
    440 
    +
    449  GLM_FUNC_DECL float intBitsToFloat(int const& v);
    +
    450 
    +
    462  template<length_t L, qualifier Q>
    +
    463  GLM_FUNC_DECL vec<L, float, Q> intBitsToFloat(vec<L, int, Q> const& v);
    +
    464 
    +
    473  GLM_FUNC_DECL float uintBitsToFloat(uint const& v);
    +
    474 
    +
    486  template<length_t L, qualifier Q>
    +
    487  GLM_FUNC_DECL vec<L, float, Q> uintBitsToFloat(vec<L, uint, Q> const& v);
    +
    488 
    +
    495  template<typename genType>
    +
    496  GLM_FUNC_DECL genType fma(genType const& a, genType const& b, genType const& c);
    +
    497 
    +
    512  template<typename genType>
    +
    513  GLM_FUNC_DECL genType frexp(genType x, int& exp);
    +
    514 
    +
    515  template<length_t L, typename T, qualifier Q>
    +
    516  GLM_FUNC_DECL vec<L, T, Q> frexp(vec<L, T, Q> const& v, vec<L, int, Q>& exp);
    +
    517 
    +
    529  template<typename genType>
    +
    530  GLM_FUNC_DECL genType ldexp(genType const& x, int const& exp);
    +
    531 
    +
    532  template<length_t L, typename T, qualifier Q>
    +
    533  GLM_FUNC_DECL vec<L, T, Q> ldexp(vec<L, T, Q> const& v, vec<L, int, Q> const& exp);
    +
    534 
    +
    536 }//namespace glm
    +
    537 
    +
    538 #include "detail/func_common.inl"
    +
    539 
    +
    GLM_FUNC_DECL vec< L, T, Q > floor(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer that is less then or equal to x.
    +
    GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)
    Computes and returns a * b + c.
    +
    GLM_FUNC_DECL vec< L, T, Q > trunc(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...
    +
    GLM_FUNC_DECL vec< L, T, Q > mod(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Modulus.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > clamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
    Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...
    +
    GLM_FUNC_DECL vec< L, T, Q > round(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer to x.
    +
    GLM_FUNC_DECL vec< L, float, Q > uintBitsToFloat(vec< L, uint, Q > const &v)
    Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value...
    +
    GLM_FUNC_DECL vec< L, T, Q > sign(vec< L, T, Q > const &x)
    Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.
    +
    GLM_FUNC_DECL vec< L, bool, Q > isinf(vec< L, T, Q > const &x)
    Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...
    +
    GLM_FUNC_DECL vec< L, T, Q > roundEven(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer to x.
    +
    GLM_FUNC_DECL genType modf(genType x, genType &i)
    Returns the fractional part of x and sets i to the integer part (as a whole number floating point val...
    +
    GLM_FUNC_DECL vec< L, T, Q > ceil(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer that is greater than or equal to x.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns y if y < x; otherwise, it returns x.
    +
    GLM_FUNC_DECL vec< L, float, Q > intBitsToFloat(vec< L, int, Q > const &v)
    Returns a floating-point value corresponding to a signed integer encoding of a floating-point value...
    +
    GLM_FUNC_DECL vec< L, bool, Q > isnan(vec< L, T, Q > const &x)
    Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...
    +
    GLM_FUNC_DECL vec< L, T, Q > exp(vec< L, T, Q > const &v)
    Returns the natural exponentiation of x, i.e., e^x.
    +
    GLM_FUNC_DECL vec< L, uint, Q > floatBitsToUint(vec< L, float, Q > const &v)
    Returns a unsigned integer value representing the encoding of a floating-point value.
    +
    GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x)
    Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > abs(vec< L, T, Q > const &x)
    Returns x if x >= 0; otherwise, it returns -x.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns y if x < y; otherwise, it returns x.
    +
    GLM_FUNC_DECL vec< L, T, Q > step(vec< L, T, Q > const &edge, vec< L, T, Q > const &x)
    Returns 0.0 if x < edge, otherwise it returns 1.0.
    +
    GLM_FUNC_DECL vec< L, T, Q > fract(vec< L, T, Q > const &x)
    Return x - floor(x).
    +
    GLM_FUNC_DECL genType ldexp(genType const &x, int const &exp)
    Builds a floating-point number from x and the corresponding integral exponent of two in exp...
    +
    GLM_FUNC_DECL vec< L, int, Q > floatBitsToInt(vec< L, float, Q > const &v)
    Returns a signed integer value representing the encoding of a floating-point value.
    +
    GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a)
    If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...
    +
    GLM_FUNC_DECL genType frexp(genType x, int &exp)
    Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00016.html b/external/glm-0.9.9.8/doc/api/a00016.html new file mode 100644 index 0000000..087b7bd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00016.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtx/common.hpp File Reference
    +
    +
    + +

    GLM_GTX_common +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > closeBounded (vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Returns whether vector components values are within an interval. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmod (vec< L, T, Q > const &v)
     Similar to 'mod' but with a different rounding and integer support. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::bool_type isdenormal (genType const &x)
     Returns true if x is a denormalized number Numbers whose absolute value is too small to be represented in the normal format are represented in an alternate, denormalized format. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > openBounded (vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Returns whether vector components values are within an interval. More...
     
    +

    Detailed Description

    +

    GLM_GTX_common

    +
    See also
    Core features (dependence)
    + +

    Definition in file gtx/common.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00016_source.html b/external/glm-0.9.9.8/doc/api/a00016_source.html new file mode 100644 index 0000000..9d1538e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00016_source.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies:
    +
    16 #include "../vec2.hpp"
    +
    17 #include "../vec3.hpp"
    +
    18 #include "../vec4.hpp"
    +
    19 #include "../gtc/vec1.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_common is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_common extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    42  template<typename genType>
    +
    43  GLM_FUNC_DECL typename genType::bool_type isdenormal(genType const& x);
    +
    44 
    +
    50  template<length_t L, typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL vec<L, T, Q> fmod(vec<L, T, Q> const& v);
    +
    52 
    +
    60  template <length_t L, typename T, qualifier Q>
    +
    61  GLM_FUNC_DECL vec<L, bool, Q> openBounded(vec<L, T, Q> const& Value, vec<L, T, Q> const& Min, vec<L, T, Q> const& Max);
    +
    62 
    +
    70  template <length_t L, typename T, qualifier Q>
    +
    71  GLM_FUNC_DECL vec<L, bool, Q> closeBounded(vec<L, T, Q> const& Value, vec<L, T, Q> const& Min, vec<L, T, Q> const& Max);
    +
    72 
    +
    74 }//namespace glm
    +
    75 
    +
    76 #include "common.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > fmod(vec< L, T, Q > const &v)
    Similar to 'mod' but with a different rounding and integer support.
    +
    GLM_FUNC_DECL vec< L, bool, Q > openBounded(vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
    Returns whether vector components values are within an interval.
    +
    GLM_FUNC_DECL genType::bool_type isdenormal(genType const &x)
    Returns true if x is a denormalized number Numbers whose absolute value is too small to be represente...
    +
    Definition: common.hpp:20
    +
    GLM_FUNC_DECL vec< L, bool, Q > closeBounded(vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
    Returns whether vector components values are within an interval.
    +
    + + + + diff --git a/external/glm/doc/api/a00017.html b/external/glm-0.9.9.8/doc/api/a00017.html similarity index 89% rename from external/glm/doc/api/a00017.html rename to external/glm-0.9.9.8/doc/api/a00017.html index ed61c51..6be0c64 100644 --- a/external/glm/doc/api/a00017.html +++ b/external/glm-0.9.9.8/doc/api/a00017.html @@ -1,443 +1,443 @@ - - - - - - -0.9.9 API documenation: compatibility.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    compatibility.hpp File Reference
    -
    -
    - -

    GLM_GTX_compatibility -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Typedefs

    -typedef bool bool1
     boolean type with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef bool bool1x1
     boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 2, bool, highp > bool2
     boolean type with 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 2, bool, highp > bool2x2
     boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 3, bool, highp > bool2x3
     boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 4, bool, highp > bool2x4
     boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 3, bool, highp > bool3
     boolean type with 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 2, bool, highp > bool3x2
     boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 3, bool, highp > bool3x3
     boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 4, bool, highp > bool3x4
     boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 4, bool, highp > bool4
     boolean type with 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 2, bool, highp > bool4x2
     boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 3, bool, highp > bool4x3
     boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 4, bool, highp > bool4x4
     boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef double double1
     double-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef double double1x1
     double-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 2, double, highp > double2
     double-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 2, double, highp > double2x2
     double-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 3, double, highp > double2x3
     double-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 4, double, highp > double2x4
     double-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 3, double, highp > double3
     double-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 2, double, highp > double3x2
     double-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 3, double, highp > double3x3
     double-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 4, double, highp > double3x4
     double-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 4, double, highp > double4
     double-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 2, double, highp > double4x2
     double-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 3, double, highp > double4x3
     double-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 4, double, highp > double4x4
     double-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef float float1
     single-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef float float1x1
     single-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 2, float, highp > float2
     single-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 2, float, highp > float2x2
     single-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 3, float, highp > float2x3
     single-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 4, float, highp > float2x4
     single-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 3, float, highp > float3
     single-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 2, float, highp > float3x2
     single-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 3, float, highp > float3x3
     single-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 4, float, highp > float3x4
     single-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 4, float, highp > float4
     single-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 2, float, highp > float4x2
     single-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 3, float, highp > float4x3
     single-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 4, float, highp > float4x4
     single-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef int int1
     integer vector with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef int int1x1
     integer matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 2, int, highp > int2
     integer vector with 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 2, int, highp > int2x2
     integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 3, int, highp > int2x3
     integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 2, 4, int, highp > int2x4
     integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 3, int, highp > int3
     integer vector with 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 2, int, highp > int3x2
     integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 3, int, highp > int3x3
     integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 3, 4, int, highp > int3x4
     integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef vec< 4, int, highp > int4
     integer vector with 4 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 2, int, highp > int4x2
     integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 3, int, highp > int4x3
     integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    -typedef mat< 4, 4, int, highp > int4x4
     integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Functions

    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T atan2 (T x, T y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > atan2 (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > atan2 (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > atan2 (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    -template<typename genType >
    GLM_FUNC_DECL bool isfinite (genType const &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, bool, Q > isfinite (const vec< 1, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, bool, Q > isfinite (const vec< 2, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, bool, Q > isfinite (const vec< 3, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isfinite (const vec< 4, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    -template<typename T >
    GLM_FUNC_QUALIFIER T lerp (T x, T y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, const vec< 2, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, const vec< 3, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T saturate (T x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > saturate (const vec< 2, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > saturate (const vec< 3, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    -template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > saturate (const vec< 4, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    -

    Detailed Description

    -

    GLM_GTX_compatibility

    -
    See also
    Core features (dependence)
    - -

    Definition in file compatibility.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: compatibility.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    compatibility.hpp File Reference
    +
    +
    + +

    GLM_GTX_compatibility +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef bool bool1
     boolean type with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef bool bool1x1
     boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, bool, highp > bool2
     boolean type with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, bool, highp > bool2x2
     boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, bool, highp > bool2x3
     boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, bool, highp > bool2x4
     boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, bool, highp > bool3
     boolean type with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, bool, highp > bool3x2
     boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, bool, highp > bool3x3
     boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, bool, highp > bool3x4
     boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, bool, highp > bool4
     boolean type with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, bool, highp > bool4x2
     boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, bool, highp > bool4x3
     boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, bool, highp > bool4x4
     boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef double double1
     double-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef double double1x1
     double-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, double, highp > double2
     double-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, double, highp > double2x2
     double-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, double, highp > double2x3
     double-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, double, highp > double2x4
     double-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, double, highp > double3
     double-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, double, highp > double3x2
     double-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, double, highp > double3x3
     double-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, double, highp > double3x4
     double-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, double, highp > double4
     double-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, double, highp > double4x2
     double-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, double, highp > double4x3
     double-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, double, highp > double4x4
     double-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef float float1
     single-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef float float1x1
     single-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, float, highp > float2
     single-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, float, highp > float2x2
     single-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, float, highp > float2x3
     single-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, float, highp > float2x4
     single-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, float, highp > float3
     single-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, float, highp > float3x2
     single-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, float, highp > float3x3
     single-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, float, highp > float3x4
     single-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, float, highp > float4
     single-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, float, highp > float4x2
     single-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, float, highp > float4x3
     single-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, float, highp > float4x4
     single-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef int int1
     integer vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef int int1x1
     integer matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, int, highp > int2
     integer vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, int, highp > int2x2
     integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, int, highp > int2x3
     integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, int, highp > int2x4
     integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, int, highp > int3
     integer vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, int, highp > int3x2
     integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, int, highp > int3x3
     integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, int, highp > int3x4
     integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, int, highp > int4
     integer vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, int, highp > int4x2
     integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, int, highp > int4x3
     integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, int, highp > int4x4
     integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T atan2 (T x, T y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > atan2 (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > atan2 (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > atan2 (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename genType >
    GLM_FUNC_DECL bool isfinite (genType const &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, bool, Q > isfinite (const vec< 1, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, bool, Q > isfinite (const vec< 2, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, bool, Q > isfinite (const vec< 3, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isfinite (const vec< 4, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T >
    GLM_FUNC_QUALIFIER T lerp (T x, T y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, const vec< 2, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, const vec< 3, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T saturate (T x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > saturate (const vec< 2, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > saturate (const vec< 3, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > saturate (const vec< 4, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +

    Detailed Description

    +

    GLM_GTX_compatibility

    +
    See also
    Core features (dependence)
    + +

    Definition in file compatibility.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00017_source.html b/external/glm-0.9.9.8/doc/api/a00017_source.html new file mode 100644 index 0000000..f3f9477 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00017_source.html @@ -0,0 +1,282 @@ + + + + + + +0.9.9 API documentation: compatibility.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    compatibility.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include "../gtc/quaternion.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_compatibility is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_compatibility extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 #if GLM_COMPILER & GLM_COMPILER_VC
    +
    28 # include <cfloat>
    +
    29 #elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    30 # include <cmath>
    +
    31 # if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
    +
    32 # undef isfinite
    +
    33 # endif
    +
    34 #endif//GLM_COMPILER
    +
    35 
    +
    36 namespace glm
    +
    37 {
    +
    40 
    +
    41  template<typename T> GLM_FUNC_QUALIFIER T lerp(T x, T y, T a){return mix(x, y, a);}
    +
    42  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<2, T, Q> lerp(const vec<2, T, Q>& x, const vec<2, T, Q>& y, T a){return mix(x, y, a);}
    +
    43 
    +
    44  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<3, T, Q> lerp(const vec<3, T, Q>& x, const vec<3, T, Q>& y, T a){return mix(x, y, a);}
    +
    45  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<4, T, Q> lerp(const vec<4, T, Q>& x, const vec<4, T, Q>& y, T a){return mix(x, y, a);}
    +
    46  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<2, T, Q> lerp(const vec<2, T, Q>& x, const vec<2, T, Q>& y, const vec<2, T, Q>& a){return mix(x, y, a);}
    +
    47  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<3, T, Q> lerp(const vec<3, T, Q>& x, const vec<3, T, Q>& y, const vec<3, T, Q>& a){return mix(x, y, a);}
    +
    48  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<4, T, Q> lerp(const vec<4, T, Q>& x, const vec<4, T, Q>& y, const vec<4, T, Q>& a){return mix(x, y, a);}
    +
    49 
    +
    50  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER T saturate(T x){return clamp(x, T(0), T(1));}
    +
    51  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<2, T, Q> saturate(const vec<2, T, Q>& x){return clamp(x, T(0), T(1));}
    +
    52  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<3, T, Q> saturate(const vec<3, T, Q>& x){return clamp(x, T(0), T(1));}
    +
    53  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<4, T, Q> saturate(const vec<4, T, Q>& x){return clamp(x, T(0), T(1));}
    +
    54 
    +
    55  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER T atan2(T x, T y){return atan(x, y);}
    +
    56  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<2, T, Q> atan2(const vec<2, T, Q>& x, const vec<2, T, Q>& y){return atan(x, y);}
    +
    57  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<3, T, Q> atan2(const vec<3, T, Q>& x, const vec<3, T, Q>& y){return atan(x, y);}
    +
    58  template<typename T, qualifier Q> GLM_FUNC_QUALIFIER vec<4, T, Q> atan2(const vec<4, T, Q>& x, const vec<4, T, Q>& y){return atan(x, y);}
    +
    59 
    +
    60  template<typename genType> GLM_FUNC_DECL bool isfinite(genType const& x);
    +
    61  template<typename T, qualifier Q> GLM_FUNC_DECL vec<1, bool, Q> isfinite(const vec<1, T, Q>& x);
    +
    62  template<typename T, qualifier Q> GLM_FUNC_DECL vec<2, bool, Q> isfinite(const vec<2, T, Q>& x);
    +
    63  template<typename T, qualifier Q> GLM_FUNC_DECL vec<3, bool, Q> isfinite(const vec<3, T, Q>& x);
    +
    64  template<typename T, qualifier Q> GLM_FUNC_DECL vec<4, bool, Q> isfinite(const vec<4, T, Q>& x);
    +
    65 
    +
    66  typedef bool bool1;
    +
    67  typedef vec<2, bool, highp> bool2;
    +
    68  typedef vec<3, bool, highp> bool3;
    +
    69  typedef vec<4, bool, highp> bool4;
    +
    70 
    +
    71  typedef bool bool1x1;
    +
    72  typedef mat<2, 2, bool, highp> bool2x2;
    +
    73  typedef mat<2, 3, bool, highp> bool2x3;
    +
    74  typedef mat<2, 4, bool, highp> bool2x4;
    +
    75  typedef mat<3, 2, bool, highp> bool3x2;
    +
    76  typedef mat<3, 3, bool, highp> bool3x3;
    +
    77  typedef mat<3, 4, bool, highp> bool3x4;
    +
    78  typedef mat<4, 2, bool, highp> bool4x2;
    +
    79  typedef mat<4, 3, bool, highp> bool4x3;
    +
    80  typedef mat<4, 4, bool, highp> bool4x4;
    +
    81 
    +
    82  typedef int int1;
    +
    83  typedef vec<2, int, highp> int2;
    +
    84  typedef vec<3, int, highp> int3;
    +
    85  typedef vec<4, int, highp> int4;
    +
    86 
    +
    87  typedef int int1x1;
    +
    88  typedef mat<2, 2, int, highp> int2x2;
    +
    89  typedef mat<2, 3, int, highp> int2x3;
    +
    90  typedef mat<2, 4, int, highp> int2x4;
    +
    91  typedef mat<3, 2, int, highp> int3x2;
    +
    92  typedef mat<3, 3, int, highp> int3x3;
    +
    93  typedef mat<3, 4, int, highp> int3x4;
    +
    94  typedef mat<4, 2, int, highp> int4x2;
    +
    95  typedef mat<4, 3, int, highp> int4x3;
    +
    96  typedef mat<4, 4, int, highp> int4x4;
    +
    97 
    +
    98  typedef float float1;
    +
    99  typedef vec<2, float, highp> float2;
    +
    100  typedef vec<3, float, highp> float3;
    +
    101  typedef vec<4, float, highp> float4;
    +
    102 
    +
    103  typedef float float1x1;
    +
    104  typedef mat<2, 2, float, highp> float2x2;
    +
    105  typedef mat<2, 3, float, highp> float2x3;
    +
    106  typedef mat<2, 4, float, highp> float2x4;
    +
    107  typedef mat<3, 2, float, highp> float3x2;
    +
    108  typedef mat<3, 3, float, highp> float3x3;
    +
    109  typedef mat<3, 4, float, highp> float3x4;
    +
    110  typedef mat<4, 2, float, highp> float4x2;
    +
    111  typedef mat<4, 3, float, highp> float4x3;
    +
    112  typedef mat<4, 4, float, highp> float4x4;
    +
    113 
    +
    114  typedef double double1;
    +
    115  typedef vec<2, double, highp> double2;
    +
    116  typedef vec<3, double, highp> double3;
    +
    117  typedef vec<4, double, highp> double4;
    +
    118 
    +
    119  typedef double double1x1;
    +
    120  typedef mat<2, 2, double, highp> double2x2;
    +
    121  typedef mat<2, 3, double, highp> double2x3;
    +
    122  typedef mat<2, 4, double, highp> double2x4;
    +
    123  typedef mat<3, 2, double, highp> double3x2;
    +
    124  typedef mat<3, 3, double, highp> double3x3;
    +
    125  typedef mat<3, 4, double, highp> double3x4;
    +
    126  typedef mat<4, 2, double, highp> double4x2;
    +
    127  typedef mat<4, 3, double, highp> double4x3;
    +
    128  typedef mat<4, 4, double, highp> double4x4;
    +
    129 
    +
    131 }//namespace glm
    +
    132 
    +
    133 #include "compatibility.inl"
    +
    mat< 4, 4, double, highp > double4x4
    double-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 3, 4, int, highp > int3x4
    integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
    +
    GLM_FUNC_DECL vec< L, T, Q > atan(vec< L, T, Q > const &y, vec< L, T, Q > const &x)
    Arc tangent.
    +
    bool bool1
    boolean type with 1 component. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 3, float, highp > float4x3
    single-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 4, 4, float, highp > float4x4
    single-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 4, double, highp > double2x4
    double-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 2, double, highp > double2x2
    double-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 3, 2, double, highp > double3x2
    double-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    GLM_FUNC_QUALIFIER vec< 4, T, Q > atan2(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)
    Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what q...
    +
    double double1x1
    double-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension) ...
    +
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)
    Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using v...
    +
    mat< 3, 3, double, highp > double3x3
    double-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    vec< 4, float, highp > float4
    single-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension) ...
    +
    int int1x1
    integer matrix with 1 component. (From GLM_GTX_compatibility extension)
    +
    vec< 2, float, highp > float2
    single-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension) ...
    +
    GLM_FUNC_DECL vec< 4, bool, Q > isfinite(const vec< 4, T, Q > &x)
    Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)...
    +
    mat< 2, 3, bool, highp > bool2x3
    boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
    +
    mat< 2, 3, int, highp > int2x3
    integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
    +
    int int1
    integer vector with 1 component. (From GLM_GTX_compatibility extension)
    +
    vec< 3, float, highp > float3
    single-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 4, float, highp > float2x4
    single-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 2, bool, highp > bool2x2
    boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 4, bool, highp > bool4x4
    boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
    +
    float float1
    single-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension) ...
    +
    float float1x1
    single-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension) ...
    +
    mat< 4, 2, double, highp > double4x2
    double-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 4, 3, int, highp > int4x3
    integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 2, bool, highp > bool4x2
    boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
    +
    mat< 2, 2, float, highp > float2x2
    single-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    vec< 3, int, highp > int3
    integer vector with 3 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 2, float, highp > float4x2
    single-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 3, double, highp > double2x3
    double-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 2, 3, float, highp > float2x3
    single-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 3, 2, int, highp > int3x2
    integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
    +
    vec< 4, bool, highp > bool4
    boolean type with 4 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 2, int, highp > int4x2
    integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
    +
    bool bool1x1
    boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension)
    +
    GLM_FUNC_QUALIFIER vec< 4, T, Q > saturate(const vec< 4, T, Q > &x)
    Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
    +
    vec< 3, bool, highp > bool3
    boolean type with 3 components. (From GLM_GTX_compatibility extension)
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType clamp(genType x, genType minVal, genType maxVal)
    Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...
    +
    mat< 2, 2, int, highp > int2x2
    integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
    +
    vec< 2, int, highp > int2
    integer vector with 2 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 4, int, highp > int4x4
    integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
    +
    mat< 3, 2, bool, highp > bool3x2
    boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
    +
    mat< 4, 3, double, highp > double4x3
    double-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 4, 3, bool, highp > bool4x3
    boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
    +
    double double1
    double-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension) ...
    +
    vec< 3, double, highp > double3
    double-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension) ...
    +
    vec< 4, double, highp > double4
    double-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 3, 3, int, highp > int3x3
    integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
    +
    mat< 3, 3, bool, highp > bool3x3
    boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
    +
    mat< 3, 2, float, highp > float3x2
    single-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension) ...
    +
    vec< 4, int, highp > int4
    integer vector with 4 components. (From GLM_GTX_compatibility extension)
    +
    vec< 2, double, highp > double2
    double-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension) ...
    +
    mat< 3, 3, float, highp > float3x3
    single-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension) ...
    +
    GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a)
    If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...
    +
    vec< 2, bool, highp > bool2
    boolean type with 2 components. (From GLM_GTX_compatibility extension)
    +
    mat< 3, 4, bool, highp > bool3x4
    boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
    +
    mat< 2, 4, int, highp > int2x4
    integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
    +
    mat< 2, 4, bool, highp > bool2x4
    boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
    +
    mat< 3, 4, double, highp > double3x4
    double-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    Definition: common.hpp:20
    +
    mat< 3, 4, float, highp > float3x4
    single-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension) ...
    +
    + + + + diff --git a/external/glm/doc/api/a00018.html b/external/glm-0.9.9.8/doc/api/a00018.html similarity index 82% rename from external/glm/doc/api/a00018.html rename to external/glm-0.9.9.8/doc/api/a00018.html index c38e6f7..77c4ea4 100644 --- a/external/glm/doc/api/a00018.html +++ b/external/glm-0.9.9.8/doc/api/a00018.html @@ -1,141 +1,141 @@ - - - - - - -0.9.9 API documenation: component_wise.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    - -
    -
    component_wise.hpp File Reference
    -
    -
    - -

    GLM_GTX_component_wise -More...

    - -

    Go to the source code of this file.

    - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -Functions

    template<typename genType >
    GLM_FUNC_DECL genType::value_type compAdd (genType const &v)
     Add all vector components together. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMax (genType const &v)
     Find the maximum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMin (genType const &v)
     Find the minimum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMul (genType const &v)
     Multiply all vector components together. More...
     
    template<typename floatType , length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > compNormalize (vec< L, T, Q > const &v)
     Convert an integer vector to a normalized float vector. More...
     
    template<length_t L, typename T , typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > compScale (vec< L, floatType, Q > const &v)
     Convert a normalized float vector to an integer vector. More...
     
    -

    Detailed Description

    -

    GLM_GTX_component_wise

    -
    Date
    2007-05-21 / 2011-06-07
    -
    Author
    Christophe Riccio
    -
    See also
    Core features (dependence)
    - -

    Definition in file component_wise.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: component_wise.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    component_wise.hpp File Reference
    +
    +
    + +

    GLM_GTX_component_wise +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType::value_type compAdd (genType const &v)
     Add all vector components together. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMax (genType const &v)
     Find the maximum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMin (genType const &v)
     Find the minimum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMul (genType const &v)
     Multiply all vector components together. More...
     
    template<typename floatType , length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > compNormalize (vec< L, T, Q > const &v)
     Convert an integer vector to a normalized float vector. More...
     
    template<length_t L, typename T , typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > compScale (vec< L, floatType, Q > const &v)
     Convert a normalized float vector to an integer vector. More...
     
    +

    Detailed Description

    +

    GLM_GTX_component_wise

    +
    Date
    2007-05-21 / 2011-06-07
    +
    Author
    Christophe Riccio
    +
    See also
    Core features (dependence)
    + +

    Definition in file component_wise.hpp.

    +
    + + + + diff --git a/external/glm/doc/api/a00018_source.html b/external/glm-0.9.9.8/doc/api/a00018_source.html similarity index 75% rename from external/glm/doc/api/a00018_source.html rename to external/glm-0.9.9.8/doc/api/a00018_source.html index 406773b..f237688 100644 --- a/external/glm/doc/api/a00018_source.html +++ b/external/glm-0.9.9.8/doc/api/a00018_source.html @@ -1,145 +1,145 @@ - - - - - - -0.9.9 API documenation: component_wise.hpp Source File - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    component_wise.hpp
    -
    -
    -Go to the documentation of this file.
    1 
    -
    15 #pragma once
    -
    16 
    -
    17 // Dependencies
    -
    18 #include "../detail/setup.hpp"
    -
    19 #include "../detail/qualifier.hpp"
    -
    20 
    -
    21 #ifndef GLM_ENABLE_EXPERIMENTAL
    -
    22 # error "GLM: GLM_GTX_component_wise is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
    -
    23 #endif
    -
    24 
    -
    25 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
    -
    26 # pragma message("GLM: GLM_GTX_component_wise extension included")
    -
    27 #endif
    -
    28 
    -
    29 namespace glm
    -
    30 {
    -
    33 
    -
    37  template<typename floatType, length_t L, typename T, qualifier Q>
    -
    38  GLM_FUNC_DECL vec<L, floatType, Q> compNormalize(vec<L, T, Q> const& v);
    -
    39 
    -
    43  template<length_t L, typename T, typename floatType, qualifier Q>
    -
    44  GLM_FUNC_DECL vec<L, T, Q> compScale(vec<L, floatType, Q> const& v);
    -
    45 
    -
    48  template<typename genType>
    -
    49  GLM_FUNC_DECL typename genType::value_type compAdd(genType const& v);
    -
    50 
    -
    53  template<typename genType>
    -
    54  GLM_FUNC_DECL typename genType::value_type compMul(genType const& v);
    -
    55 
    -
    58  template<typename genType>
    -
    59  GLM_FUNC_DECL typename genType::value_type compMin(genType const& v);
    -
    60 
    -
    63  template<typename genType>
    -
    64  GLM_FUNC_DECL typename genType::value_type compMax(genType const& v);
    -
    65 
    -
    67 }//namespace glm
    -
    68 
    -
    69 #include "component_wise.inl"
    -
    GLM_FUNC_DECL vec< L, T, Q > compScale(vec< L, floatType, Q > const &v)
    Convert a normalized float vector to an integer vector.
    -
    GLM_FUNC_DECL genType::value_type compMax(genType const &v)
    Find the maximum value between single vector components.
    -
    GLM_FUNC_DECL genType::value_type compAdd(genType const &v)
    Add all vector components together.
    -
    Definition: common.hpp:20
    -
    GLM_FUNC_DECL genType::value_type compMul(genType const &v)
    Multiply all vector components together.
    -
    GLM_FUNC_DECL vec< L, floatType, Q > compNormalize(vec< L, T, Q > const &v)
    Convert an integer vector to a normalized float vector.
    -
    GLM_FUNC_DECL genType::value_type compMin(genType const &v)
    Find the minimum value between single vector components.
    -
    - - - - + + + + + + +0.9.9 API documentation: component_wise.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    component_wise.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependencies
    +
    18 #include "../detail/setup.hpp"
    +
    19 #include "../detail/qualifier.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_component_wise is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_component_wise extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    37  template<typename floatType, length_t L, typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL vec<L, floatType, Q> compNormalize(vec<L, T, Q> const& v);
    +
    39 
    +
    43  template<length_t L, typename T, typename floatType, qualifier Q>
    +
    44  GLM_FUNC_DECL vec<L, T, Q> compScale(vec<L, floatType, Q> const& v);
    +
    45 
    +
    48  template<typename genType>
    +
    49  GLM_FUNC_DECL typename genType::value_type compAdd(genType const& v);
    +
    50 
    +
    53  template<typename genType>
    +
    54  GLM_FUNC_DECL typename genType::value_type compMul(genType const& v);
    +
    55 
    +
    58  template<typename genType>
    +
    59  GLM_FUNC_DECL typename genType::value_type compMin(genType const& v);
    +
    60 
    +
    63  template<typename genType>
    +
    64  GLM_FUNC_DECL typename genType::value_type compMax(genType const& v);
    +
    65 
    +
    67 }//namespace glm
    +
    68 
    +
    69 #include "component_wise.inl"
    +
    GLM_FUNC_DECL genType::value_type compMax(genType const &v)
    Find the maximum value between single vector components.
    +
    GLM_FUNC_DECL genType::value_type compMul(genType const &v)
    Multiply all vector components together.
    +
    GLM_FUNC_DECL vec< L, T, Q > compScale(vec< L, floatType, Q > const &v)
    Convert a normalized float vector to an integer vector.
    +
    GLM_FUNC_DECL vec< L, floatType, Q > compNormalize(vec< L, T, Q > const &v)
    Convert an integer vector to a normalized float vector.
    +
    GLM_FUNC_DECL genType::value_type compMin(genType const &v)
    Find the minimum value between single vector components.
    +
    GLM_FUNC_DECL genType::value_type compAdd(genType const &v)
    Add all vector components together.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00019_source.html b/external/glm-0.9.9.8/doc/api/a00019_source.html new file mode 100644 index 0000000..4b53c55 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00019_source.html @@ -0,0 +1,150 @@ + + + + + + +0.9.9 API documentation: compute_common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    compute_common.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "setup.hpp"
    +
    4 #include <limits>
    +
    5 
    +
    6 namespace glm{
    +
    7 namespace detail
    +
    8 {
    +
    9  template<typename genFIType, bool /*signed*/>
    +
    10  struct compute_abs
    +
    11  {};
    +
    12 
    +
    13  template<typename genFIType>
    +
    14  struct compute_abs<genFIType, true>
    +
    15  {
    +
    16  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genFIType call(genFIType x)
    +
    17  {
    +
    18  GLM_STATIC_ASSERT(
    +
    19  std::numeric_limits<genFIType>::is_iec559 || std::numeric_limits<genFIType>::is_signed,
    +
    20  "'abs' only accept floating-point and integer scalar or vector inputs");
    +
    21 
    +
    22  return x >= genFIType(0) ? x : -x;
    +
    23  // TODO, perf comp with: *(((int *) &x) + 1) &= 0x7fffffff;
    +
    24  }
    +
    25  };
    +
    26 
    +
    27 #if GLM_COMPILER & GLM_COMPILER_CUDA
    +
    28  template<>
    +
    29  struct compute_abs<float, true>
    +
    30  {
    +
    31  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static float call(float x)
    +
    32  {
    +
    33  return fabsf(x);
    +
    34  }
    +
    35  };
    +
    36 #endif
    +
    37 
    +
    38  template<typename genFIType>
    +
    39  struct compute_abs<genFIType, false>
    +
    40  {
    +
    41  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genFIType call(genFIType x)
    +
    42  {
    +
    43  GLM_STATIC_ASSERT(
    +
    44  (!std::numeric_limits<genFIType>::is_signed && std::numeric_limits<genFIType>::is_integer),
    +
    45  "'abs' only accept floating-point and integer scalar or vector inputs");
    +
    46  return x;
    +
    47  }
    +
    48  };
    +
    49 }//namespace detail
    +
    50 }//namespace glm
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00020_source.html b/external/glm-0.9.9.8/doc/api/a00020_source.html new file mode 100644 index 0000000..872c780 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00020_source.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: compute_vector_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    compute_vector_relational.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 //#include "compute_common.hpp"
    +
    4 #include "setup.hpp"
    +
    5 #include <limits>
    +
    6 
    +
    7 namespace glm{
    +
    8 namespace detail
    +
    9 {
    +
    10  template <typename T, bool isFloat>
    +
    11  struct compute_equal
    +
    12  {
    +
    13  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(T a, T b)
    +
    14  {
    +
    15  return a == b;
    +
    16  }
    +
    17  };
    +
    18 /*
    +
    19  template <typename T>
    +
    20  struct compute_equal<T, true>
    +
    21  {
    +
    22  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static bool call(T a, T b)
    +
    23  {
    +
    24  return detail::compute_abs<T, std::numeric_limits<T>::is_signed>::call(b - a) <= static_cast<T>(0);
    +
    25  //return std::memcmp(&a, &b, sizeof(T)) == 0;
    +
    26  }
    +
    27  };
    +
    28 */
    +
    29 }//namespace detail
    +
    30 }//namespace glm
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00021.html b/external/glm-0.9.9.8/doc/api/a00021.html new file mode 100644 index 0000000..a86d944 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00021.html @@ -0,0 +1,223 @@ + + + + + + +0.9.9 API documentation: constants.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    constants.hpp File Reference
    +
    +
    + +

    GLM_GTC_constants +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType e ()
     Return e constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType euler ()
     Return Euler's constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi ()
     Return 4 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio ()
     Return the golden ratio constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi ()
     Return pi / 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two ()
     Return ln(ln(2)). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten ()
     Return ln(10). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two ()
     Return ln(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one ()
     Return 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi ()
     Return 1 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two ()
     Return 1 / sqrt(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi ()
     Return 1 / (pi * 2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi ()
     Return pi / 4. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_five ()
     Return sqrt(5). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi ()
     Return sqrt(pi / 2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four ()
     Return sqrt(ln(4)). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi ()
     Return square root of pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_three ()
     Return sqrt(3). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two ()
     Return sqrt(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi ()
     Return sqrt(2 * pi). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType third ()
     Return 1 / 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi ()
     Return pi / 2 * 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi ()
     Return 2 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi ()
     Return 2 / sqrt(pi). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi ()
     Return pi * 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds ()
     Return 2 / 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType zero ()
     Return 0. More...
     
    +

    Detailed Description

    +

    GLM_GTC_constants

    +
    See also
    Core features (dependence)
    + +

    Definition in file constants.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00021_source.html b/external/glm-0.9.9.8/doc/api/a00021_source.html new file mode 100644 index 0000000..f6688f8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00021_source.html @@ -0,0 +1,224 @@ + + + + + + +0.9.9 API documentation: constants.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    constants.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../ext/scalar_constants.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_GTC_constants extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    29  template<typename genType>
    +
    30  GLM_FUNC_DECL GLM_CONSTEXPR genType zero();
    +
    31 
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL GLM_CONSTEXPR genType one();
    +
    36 
    +
    39  template<typename genType>
    +
    40  GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi();
    +
    41 
    +
    44  template<typename genType>
    +
    45  GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi();
    +
    46 
    +
    49  template<typename genType>
    +
    50  GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi();
    +
    51 
    +
    54  template<typename genType>
    +
    55  GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi();
    +
    56 
    +
    59  template<typename genType>
    +
    60  GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi();
    +
    61 
    +
    64  template<typename genType>
    +
    65  GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi();
    +
    66 
    +
    69  template<typename genType>
    +
    70  GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi();
    +
    71 
    +
    74  template<typename genType>
    +
    75  GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi();
    +
    76 
    +
    79  template<typename genType>
    +
    80  GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi();
    +
    81 
    +
    84  template<typename genType>
    +
    85  GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi();
    +
    86 
    +
    89  template<typename genType>
    +
    90  GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two();
    +
    91 
    +
    94  template<typename genType>
    +
    95  GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi();
    +
    96 
    +
    99  template<typename genType>
    +
    100  GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi();
    +
    101 
    +
    104  template<typename genType>
    +
    105  GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four();
    +
    106 
    +
    109  template<typename genType>
    +
    110  GLM_FUNC_DECL GLM_CONSTEXPR genType e();
    +
    111 
    +
    114  template<typename genType>
    +
    115  GLM_FUNC_DECL GLM_CONSTEXPR genType euler();
    +
    116 
    +
    119  template<typename genType>
    +
    120  GLM_FUNC_DECL GLM_CONSTEXPR genType root_two();
    +
    121 
    +
    124  template<typename genType>
    +
    125  GLM_FUNC_DECL GLM_CONSTEXPR genType root_three();
    +
    126 
    +
    129  template<typename genType>
    +
    130  GLM_FUNC_DECL GLM_CONSTEXPR genType root_five();
    +
    131 
    +
    134  template<typename genType>
    +
    135  GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two();
    +
    136 
    +
    139  template<typename genType>
    +
    140  GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten();
    +
    141 
    +
    144  template<typename genType>
    +
    145  GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two();
    +
    146 
    +
    149  template<typename genType>
    +
    150  GLM_FUNC_DECL GLM_CONSTEXPR genType third();
    +
    151 
    +
    154  template<typename genType>
    +
    155  GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds();
    +
    156 
    +
    159  template<typename genType>
    +
    160  GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio();
    +
    161 
    +
    163 } //namespace glm
    +
    164 
    +
    165 #include "constants.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType third()
    Return 1 / 3.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two()
    Return sqrt(2).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two()
    Return 1 / sqrt(2).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType euler()
    Return Euler's constant.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds()
    Return 2 / 3.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi()
    Return pi * 2.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio()
    Return the golden ratio constant.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi()
    Return pi / 4.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType one()
    Return 1.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_five()
    Return sqrt(5).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi()
    Return pi / 2 * 3.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType zero()
    Return 0.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten()
    Return ln(10).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_three()
    Return sqrt(3).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi()
    Return square root of pi.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType e()
    Return e constant.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi()
    Return 1 / pi.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi()
    Return 2 / pi.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi()
    Return 4 / pi.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi()
    Return sqrt(2 * pi).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two()
    Return ln(2).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four()
    Return sqrt(ln(4)).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi()
    Return 2 / sqrt(pi).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two()
    Return ln(ln(2)).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi()
    Return sqrt(pi / 2).
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi()
    Return pi / 2.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi()
    Return 1 / (pi * 2).
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00022.html b/external/glm-0.9.9.8/doc/api/a00022.html new file mode 100644 index 0000000..42bef39 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00022.html @@ -0,0 +1,192 @@ + + + + + + +0.9.9 API documentation: dual_quaternion.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    dual_quaternion.hpp File Reference
    +
    +
    + +

    GLM_GTX_dual_quaternion +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef highp_ddualquat ddualquat
     Dual-quaternion of default double-qualifier floating-point numbers. More...
     
    typedef highp_fdualquat dualquat
     Dual-quaternion of floating-point numbers. More...
     
    typedef highp_fdualquat fdualquat
     Dual-quaternion of single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, highp > highp_ddualquat
     Dual-quaternion of high double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, highp > highp_dualquat
     Dual-quaternion of high single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, highp > highp_fdualquat
     Dual-quaternion of high single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, lowp > lowp_ddualquat
     Dual-quaternion of low double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, lowp > lowp_dualquat
     Dual-quaternion of low single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, lowp > lowp_fdualquat
     Dual-quaternion of low single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, mediump > mediump_ddualquat
     Dual-quaternion of medium double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, mediump > mediump_dualquat
     Dual-quaternion of medium single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, mediump > mediump_fdualquat
     Dual-quaternion of medium single-qualifier floating-point numbers. More...
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dual_quat_identity ()
     Creates an identity dual quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dualquat_cast (mat< 2, 4, T, Q > const &x)
     Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dualquat_cast (mat< 3, 4, T, Q > const &x)
     Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > inverse (tdualquat< T, Q > const &q)
     Returns the q inverse. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > lerp (tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)
     Returns the linear interpolation of two dual quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 4, T, Q > mat2x4_cast (tdualquat< T, Q > const &x)
     Converts a quaternion to a 2 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 4, T, Q > mat3x4_cast (tdualquat< T, Q > const &x)
     Converts a quaternion to a 3 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > normalize (tdualquat< T, Q > const &q)
     Returns the normalized quaternion. More...
     
    +

    Detailed Description

    +

    GLM_GTX_dual_quaternion

    +
    Author
    Maksim Vorobiev (msome.nosp@m.one@.nosp@m.gmail.nosp@m..com)
    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_constants (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file dual_quaternion.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00022_source.html b/external/glm-0.9.9.8/doc/api/a00022_source.html new file mode 100644 index 0000000..95f3255 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00022_source.html @@ -0,0 +1,317 @@ + + + + + + +0.9.9 API documentation: dual_quaternion.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    dual_quaternion.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    16 #pragma once
    +
    17 
    +
    18 // Dependency:
    +
    19 #include "../glm.hpp"
    +
    20 #include "../gtc/constants.hpp"
    +
    21 #include "../gtc/quaternion.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    25 # pragma message("GLM: GLM_GTX_dual_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    26 # else
    +
    27 # pragma message("GLM: GLM_GTX_dual_quaternion extension included")
    +
    28 # endif
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    36  template<typename T, qualifier Q = defaultp>
    +
    37  struct tdualquat
    +
    38  {
    +
    39  // -- Implementation detail --
    +
    40 
    +
    41  typedef T value_type;
    +
    42  typedef qua<T, Q> part_type;
    +
    43 
    +
    44  // -- Data --
    +
    45 
    +
    46  qua<T, Q> real, dual;
    +
    47 
    +
    48  // -- Component accesses --
    +
    49 
    +
    50  typedef length_t length_type;
    +
    52  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 2;}
    +
    53 
    +
    54  GLM_FUNC_DECL part_type & operator[](length_type i);
    +
    55  GLM_FUNC_DECL part_type const& operator[](length_type i) const;
    +
    56 
    +
    57  // -- Implicit basic constructors --
    +
    58 
    +
    59  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat() GLM_DEFAULT;
    +
    60  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, Q> const& d) GLM_DEFAULT;
    +
    61  template<qualifier P>
    +
    62  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, P> const& d);
    +
    63 
    +
    64  // -- Explicit basic constructors --
    +
    65 
    +
    66  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& real);
    +
    67  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& orientation, vec<3, T, Q> const& translation);
    +
    68  GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& real, qua<T, Q> const& dual);
    +
    69 
    +
    70  // -- Conversion constructors --
    +
    71 
    +
    72  template<typename U, qualifier P>
    +
    73  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT tdualquat(tdualquat<U, P> const& q);
    +
    74 
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR tdualquat(mat<2, 4, T, Q> const& holder_mat);
    +
    76  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR tdualquat(mat<3, 4, T, Q> const& aug_mat);
    +
    77 
    +
    78  // -- Unary arithmetic operators --
    +
    79 
    +
    80  GLM_FUNC_DECL tdualquat<T, Q> & operator=(tdualquat<T, Q> const& m) GLM_DEFAULT;
    +
    81 
    +
    82  template<typename U>
    +
    83  GLM_FUNC_DECL tdualquat<T, Q> & operator=(tdualquat<U, Q> const& m);
    +
    84  template<typename U>
    +
    85  GLM_FUNC_DECL tdualquat<T, Q> & operator*=(U s);
    +
    86  template<typename U>
    +
    87  GLM_FUNC_DECL tdualquat<T, Q> & operator/=(U s);
    +
    88  };
    +
    89 
    +
    90  // -- Unary bit operators --
    +
    91 
    +
    92  template<typename T, qualifier Q>
    +
    93  GLM_FUNC_DECL tdualquat<T, Q> operator+(tdualquat<T, Q> const& q);
    +
    94 
    +
    95  template<typename T, qualifier Q>
    +
    96  GLM_FUNC_DECL tdualquat<T, Q> operator-(tdualquat<T, Q> const& q);
    +
    97 
    +
    98  // -- Binary operators --
    +
    99 
    +
    100  template<typename T, qualifier Q>
    +
    101  GLM_FUNC_DECL tdualquat<T, Q> operator+(tdualquat<T, Q> const& q, tdualquat<T, Q> const& p);
    +
    102 
    +
    103  template<typename T, qualifier Q>
    +
    104  GLM_FUNC_DECL tdualquat<T, Q> operator*(tdualquat<T, Q> const& q, tdualquat<T, Q> const& p);
    +
    105 
    +
    106  template<typename T, qualifier Q>
    +
    107  GLM_FUNC_DECL vec<3, T, Q> operator*(tdualquat<T, Q> const& q, vec<3, T, Q> const& v);
    +
    108 
    +
    109  template<typename T, qualifier Q>
    +
    110  GLM_FUNC_DECL vec<3, T, Q> operator*(vec<3, T, Q> const& v, tdualquat<T, Q> const& q);
    +
    111 
    +
    112  template<typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL vec<4, T, Q> operator*(tdualquat<T, Q> const& q, vec<4, T, Q> const& v);
    +
    114 
    +
    115  template<typename T, qualifier Q>
    +
    116  GLM_FUNC_DECL vec<4, T, Q> operator*(vec<4, T, Q> const& v, tdualquat<T, Q> const& q);
    +
    117 
    +
    118  template<typename T, qualifier Q>
    +
    119  GLM_FUNC_DECL tdualquat<T, Q> operator*(tdualquat<T, Q> const& q, T const& s);
    +
    120 
    +
    121  template<typename T, qualifier Q>
    +
    122  GLM_FUNC_DECL tdualquat<T, Q> operator*(T const& s, tdualquat<T, Q> const& q);
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL tdualquat<T, Q> operator/(tdualquat<T, Q> const& q, T const& s);
    +
    126 
    +
    127  // -- Boolean operators --
    +
    128 
    +
    129  template<typename T, qualifier Q>
    +
    130  GLM_FUNC_DECL bool operator==(tdualquat<T, Q> const& q1, tdualquat<T, Q> const& q2);
    +
    131 
    +
    132  template<typename T, qualifier Q>
    +
    133  GLM_FUNC_DECL bool operator!=(tdualquat<T, Q> const& q1, tdualquat<T, Q> const& q2);
    +
    134 
    +
    138  template <typename T, qualifier Q>
    +
    139  GLM_FUNC_DECL tdualquat<T, Q> dual_quat_identity();
    +
    140 
    +
    144  template<typename T, qualifier Q>
    +
    145  GLM_FUNC_DECL tdualquat<T, Q> normalize(tdualquat<T, Q> const& q);
    +
    146 
    +
    150  template<typename T, qualifier Q>
    +
    151  GLM_FUNC_DECL tdualquat<T, Q> lerp(tdualquat<T, Q> const& x, tdualquat<T, Q> const& y, T const& a);
    +
    152 
    +
    156  template<typename T, qualifier Q>
    +
    157  GLM_FUNC_DECL tdualquat<T, Q> inverse(tdualquat<T, Q> const& q);
    +
    158 
    +
    162  template<typename T, qualifier Q>
    +
    163  GLM_FUNC_DECL mat<2, 4, T, Q> mat2x4_cast(tdualquat<T, Q> const& x);
    +
    164 
    +
    168  template<typename T, qualifier Q>
    +
    169  GLM_FUNC_DECL mat<3, 4, T, Q> mat3x4_cast(tdualquat<T, Q> const& x);
    +
    170 
    +
    174  template<typename T, qualifier Q>
    +
    175  GLM_FUNC_DECL tdualquat<T, Q> dualquat_cast(mat<2, 4, T, Q> const& x);
    +
    176 
    +
    180  template<typename T, qualifier Q>
    +
    181  GLM_FUNC_DECL tdualquat<T, Q> dualquat_cast(mat<3, 4, T, Q> const& x);
    +
    182 
    +
    183 
    +
    187  typedef tdualquat<float, lowp> lowp_dualquat;
    +
    188 
    +
    192  typedef tdualquat<float, mediump> mediump_dualquat;
    +
    193 
    +
    197  typedef tdualquat<float, highp> highp_dualquat;
    +
    198 
    +
    199 
    +
    203  typedef tdualquat<float, lowp> lowp_fdualquat;
    +
    204 
    +
    208  typedef tdualquat<float, mediump> mediump_fdualquat;
    +
    209 
    +
    213  typedef tdualquat<float, highp> highp_fdualquat;
    +
    214 
    +
    215 
    +
    219  typedef tdualquat<double, lowp> lowp_ddualquat;
    +
    220 
    +
    224  typedef tdualquat<double, mediump> mediump_ddualquat;
    +
    225 
    +
    229  typedef tdualquat<double, highp> highp_ddualquat;
    +
    230 
    +
    231 
    +
    232 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
    +
    233  typedef highp_fdualquat dualquat;
    +
    237 
    +
    241  typedef highp_fdualquat fdualquat;
    +
    242 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
    +
    243  typedef highp_fdualquat dualquat;
    +
    244  typedef highp_fdualquat fdualquat;
    +
    245 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
    +
    246  typedef mediump_fdualquat dualquat;
    +
    247  typedef mediump_fdualquat fdualquat;
    +
    248 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
    +
    249  typedef lowp_fdualquat dualquat;
    +
    250  typedef lowp_fdualquat fdualquat;
    +
    251 #else
    +
    252 # error "GLM error: multiple default precision requested for single-precision floating-point types"
    +
    253 #endif
    +
    254 
    +
    255 
    +
    256 #if(!defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
    +
    257  typedef highp_ddualquat ddualquat;
    +
    261 #elif(defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
    +
    262  typedef highp_ddualquat ddualquat;
    +
    263 #elif(!defined(GLM_PRECISION_HIGHP_DOUBLE) && defined(GLM_PRECISION_MEDIUMP_DOUBLE) && !defined(GLM_PRECISION_LOWP_DOUBLE))
    +
    264  typedef mediump_ddualquat ddualquat;
    +
    265 #elif(!defined(GLM_PRECISION_HIGHP_DOUBLE) && !defined(GLM_PRECISION_MEDIUMP_DOUBLE) && defined(GLM_PRECISION_LOWP_DOUBLE))
    +
    266  typedef lowp_ddualquat ddualquat;
    +
    267 #else
    +
    268 # error "GLM error: Multiple default precision requested for double-precision floating-point types"
    +
    269 #endif
    +
    270 
    +
    272 } //namespace glm
    +
    273 
    +
    274 #include "dual_quaternion.inl"
    +
    highp_ddualquat ddualquat
    Dual-quaternion of default double-qualifier floating-point numbers.
    +
    highp_fdualquat fdualquat
    Dual-quaternion of single-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL mat< 2, 4, T, Q > mat2x4_cast(tdualquat< T, Q > const &x)
    Converts a quaternion to a 2 * 4 matrix.
    +
    tdualquat< double, highp > highp_ddualquat
    Dual-quaternion of high double-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL tdualquat< T, Q > normalize(tdualquat< T, Q > const &q)
    Returns the normalized quaternion.
    +
    GLM_FUNC_DECL tdualquat< T, Q > dual_quat_identity()
    Creates an identity dual quaternion.
    +
    GLM_FUNC_DECL tdualquat< T, Q > inverse(tdualquat< T, Q > const &q)
    Returns the q inverse.
    +
    GLM_FUNC_DECL tdualquat< T, Q > lerp(tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)
    Returns the linear interpolation of two dual quaternion.
    +
    tdualquat< float, lowp > lowp_dualquat
    Dual-quaternion of low single-qualifier floating-point numbers.
    +
    tdualquat< float, lowp > lowp_fdualquat
    Dual-quaternion of low single-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    tdualquat< double, lowp > lowp_ddualquat
    Dual-quaternion of low double-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL mat< 3, 4, T, Q > mat3x4_cast(tdualquat< T, Q > const &x)
    Converts a quaternion to a 3 * 4 matrix.
    +
    highp_fdualquat dualquat
    Dual-quaternion of floating-point numbers.
    +
    tdualquat< float, highp > highp_fdualquat
    Dual-quaternion of high single-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientation(vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)
    Build a rotation matrix from a normal and a up vector.
    +
    tdualquat< float, mediump > mediump_dualquat
    Dual-quaternion of medium single-qualifier floating-point numbers.
    +
    tdualquat< float, mediump > mediump_fdualquat
    Dual-quaternion of medium single-qualifier floating-point numbers.
    +
    tdualquat< double, mediump > mediump_ddualquat
    Dual-quaternion of medium double-qualifier floating-point numbers.
    +
    GLM_FUNC_DECL tdualquat< T, Q > dualquat_cast(mat< 3, 4, T, Q > const &x)
    Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion.
    +
    tdualquat< float, highp > highp_dualquat
    Dual-quaternion of high single-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00023.html b/external/glm-0.9.9.8/doc/api/a00023.html new file mode 100644 index 0000000..6089667 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00023.html @@ -0,0 +1,244 @@ + + + + + + +0.9.9 API documentation: easing.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    easing.hpp File Reference
    +
    +
    + +

    GLM_GTX_easing +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType backEaseIn (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseIn (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseInOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseInOut (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseOut (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseIn (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseInOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseIn (genType const &a)
     Modelled after shifted quadrant IV of unit circle. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseInOut (genType const &a)
     Modelled after the piecewise circular function y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseOut (genType const &a)
     Modelled after shifted quadrant II of unit circle. More...
     
    +template<typename genType >
    GLM_FUNC_DECL genType cubicEaseIn (genType const &a)
     Modelled after the cubic y = x^3.
     
    template<typename genType >
    GLM_FUNC_DECL genType cubicEaseInOut (genType const &a)
     Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cubicEaseOut (genType const &a)
     Modelled after the cubic y = (x - 1)^3 + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseIn (genType const &a)
     Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1)) More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseInOut (genType const &a)
     Modelled after the piecewise exponentially-damped sine wave: y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseOut (genType const &a)
     Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseIn (genType const &a)
     Modelled after the exponential function y = 2^(10(x - 1)) More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseInOut (genType const &a)
     Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseOut (genType const &a)
     Modelled after the exponential function y = -2^(-10x) + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType linearInterpolation (genType const &a)
     Modelled after the line y = x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseIn (genType const &a)
     Modelled after the parabola y = x^2. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseInOut (genType const &a)
     Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseOut (genType const &a)
     Modelled after the parabola y = -x^2 + 2x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseIn (genType const &a)
     Modelled after the quartic x^4. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseInOut (genType const &a)
     Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseOut (genType const &a)
     Modelled after the quartic y = 1 - (x - 1)^4. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseIn (genType const &a)
     Modelled after the quintic y = x^5. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseInOut (genType const &a)
     Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseOut (genType const &a)
     Modelled after the quintic y = (x - 1)^5 + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseIn (genType const &a)
     Modelled after quarter-cycle of sine wave. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseInOut (genType const &a)
     Modelled after half sine wave. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseOut (genType const &a)
     Modelled after quarter-cycle of sine wave (different phase) More...
     
    +

    Detailed Description

    +

    GLM_GTX_easing

    +
    Author
    Robert Chisholm
    +
    See also
    Core features (dependence)
    + +

    Definition in file easing.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00023_source.html b/external/glm-0.9.9.8/doc/api/a00023_source.html new file mode 100644 index 0000000..e0c97f5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00023_source.html @@ -0,0 +1,254 @@ + + + + + + +0.9.9 API documentation: easing.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    easing.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 // Dependency:
    +
    20 #include "../glm.hpp"
    +
    21 #include "../gtc/constants.hpp"
    +
    22 #include "../detail/qualifier.hpp"
    +
    23 
    +
    24 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    25 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    26 # pragma message("GLM: GLM_GTX_easing is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    27 # else
    +
    28 # pragma message("GLM: GLM_GTX_easing extension included")
    +
    29 # endif
    +
    30 #endif
    +
    31 
    +
    32 namespace glm{
    +
    35 
    +
    38  template <typename genType>
    +
    39  GLM_FUNC_DECL genType linearInterpolation(genType const & a);
    +
    40 
    +
    43  template <typename genType>
    +
    44  GLM_FUNC_DECL genType quadraticEaseIn(genType const & a);
    +
    45 
    +
    48  template <typename genType>
    +
    49  GLM_FUNC_DECL genType quadraticEaseOut(genType const & a);
    +
    50 
    +
    55  template <typename genType>
    +
    56  GLM_FUNC_DECL genType quadraticEaseInOut(genType const & a);
    +
    57 
    +
    59  template <typename genType>
    +
    60  GLM_FUNC_DECL genType cubicEaseIn(genType const & a);
    +
    61 
    +
    64  template <typename genType>
    +
    65  GLM_FUNC_DECL genType cubicEaseOut(genType const & a);
    +
    66 
    +
    71  template <typename genType>
    +
    72  GLM_FUNC_DECL genType cubicEaseInOut(genType const & a);
    +
    73 
    +
    76  template <typename genType>
    +
    77  GLM_FUNC_DECL genType quarticEaseIn(genType const & a);
    +
    78 
    +
    81  template <typename genType>
    +
    82  GLM_FUNC_DECL genType quarticEaseOut(genType const & a);
    +
    83 
    +
    88  template <typename genType>
    +
    89  GLM_FUNC_DECL genType quarticEaseInOut(genType const & a);
    +
    90 
    +
    93  template <typename genType>
    +
    94  GLM_FUNC_DECL genType quinticEaseIn(genType const & a);
    +
    95 
    +
    98  template <typename genType>
    +
    99  GLM_FUNC_DECL genType quinticEaseOut(genType const & a);
    +
    100 
    +
    105  template <typename genType>
    +
    106  GLM_FUNC_DECL genType quinticEaseInOut(genType const & a);
    +
    107 
    +
    110  template <typename genType>
    +
    111  GLM_FUNC_DECL genType sineEaseIn(genType const & a);
    +
    112 
    +
    115  template <typename genType>
    +
    116  GLM_FUNC_DECL genType sineEaseOut(genType const & a);
    +
    117 
    +
    120  template <typename genType>
    +
    121  GLM_FUNC_DECL genType sineEaseInOut(genType const & a);
    +
    122 
    +
    125  template <typename genType>
    +
    126  GLM_FUNC_DECL genType circularEaseIn(genType const & a);
    +
    127 
    +
    130  template <typename genType>
    +
    131  GLM_FUNC_DECL genType circularEaseOut(genType const & a);
    +
    132 
    +
    137  template <typename genType>
    +
    138  GLM_FUNC_DECL genType circularEaseInOut(genType const & a);
    +
    139 
    +
    142  template <typename genType>
    +
    143  GLM_FUNC_DECL genType exponentialEaseIn(genType const & a);
    +
    144 
    +
    147  template <typename genType>
    +
    148  GLM_FUNC_DECL genType exponentialEaseOut(genType const & a);
    +
    149 
    +
    154  template <typename genType>
    +
    155  GLM_FUNC_DECL genType exponentialEaseInOut(genType const & a);
    +
    156 
    +
    159  template <typename genType>
    +
    160  GLM_FUNC_DECL genType elasticEaseIn(genType const & a);
    +
    161 
    +
    164  template <typename genType>
    +
    165  GLM_FUNC_DECL genType elasticEaseOut(genType const & a);
    +
    166 
    +
    171  template <typename genType>
    +
    172  GLM_FUNC_DECL genType elasticEaseInOut(genType const & a);
    +
    173 
    +
    175  template <typename genType>
    +
    176  GLM_FUNC_DECL genType backEaseIn(genType const& a);
    +
    177 
    +
    179  template <typename genType>
    +
    180  GLM_FUNC_DECL genType backEaseOut(genType const& a);
    +
    181 
    +
    183  template <typename genType>
    +
    184  GLM_FUNC_DECL genType backEaseInOut(genType const& a);
    +
    185 
    +
    189  template <typename genType>
    +
    190  GLM_FUNC_DECL genType backEaseIn(genType const& a, genType const& o);
    +
    191 
    +
    195  template <typename genType>
    +
    196  GLM_FUNC_DECL genType backEaseOut(genType const& a, genType const& o);
    +
    197 
    +
    201  template <typename genType>
    +
    202  GLM_FUNC_DECL genType backEaseInOut(genType const& a, genType const& o);
    +
    203 
    +
    205  template <typename genType>
    +
    206  GLM_FUNC_DECL genType bounceEaseIn(genType const& a);
    +
    207 
    +
    209  template <typename genType>
    +
    210  GLM_FUNC_DECL genType bounceEaseOut(genType const& a);
    +
    211 
    +
    213  template <typename genType>
    +
    214  GLM_FUNC_DECL genType bounceEaseInOut(genType const& a);
    +
    215 
    +
    217 }//namespace glm
    +
    218 
    +
    219 #include "easing.inl"
    +
    GLM_FUNC_DECL genType bounceEaseIn(genType const &a)
    +
    GLM_FUNC_DECL genType circularEaseInOut(genType const &a)
    Modelled after the piecewise circular function y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1].
    +
    GLM_FUNC_DECL genType cubicEaseIn(genType const &a)
    Modelled after the cubic y = x^3.
    +
    GLM_FUNC_DECL genType elasticEaseIn(genType const &a)
    Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1))
    +
    GLM_FUNC_DECL genType quinticEaseIn(genType const &a)
    Modelled after the quintic y = x^5.
    +
    GLM_FUNC_DECL genType sineEaseInOut(genType const &a)
    Modelled after half sine wave.
    +
    GLM_FUNC_DECL genType circularEaseOut(genType const &a)
    Modelled after shifted quadrant II of unit circle.
    +
    GLM_FUNC_DECL genType elasticEaseOut(genType const &a)
    Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1.
    +
    GLM_FUNC_DECL genType elasticEaseInOut(genType const &a)
    Modelled after the piecewise exponentially-damped sine wave: y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1].
    +
    GLM_FUNC_DECL genType sineEaseIn(genType const &a)
    Modelled after quarter-cycle of sine wave.
    +
    GLM_FUNC_DECL genType linearInterpolation(genType const &a)
    Modelled after the line y = x.
    +
    GLM_FUNC_DECL genType quarticEaseIn(genType const &a)
    Modelled after the quartic x^4.
    +
    GLM_FUNC_DECL genType quarticEaseOut(genType const &a)
    Modelled after the quartic y = 1 - (x - 1)^4.
    +
    GLM_FUNC_DECL genType sineEaseOut(genType const &a)
    Modelled after quarter-cycle of sine wave (different phase)
    +
    GLM_FUNC_DECL genType quadraticEaseInOut(genType const &a)
    Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [...
    +
    GLM_FUNC_DECL genType circularEaseIn(genType const &a)
    Modelled after shifted quadrant IV of unit circle.
    +
    GLM_FUNC_DECL genType quadraticEaseOut(genType const &a)
    Modelled after the parabola y = -x^2 + 2x.
    +
    GLM_FUNC_DECL genType exponentialEaseOut(genType const &a)
    Modelled after the exponential function y = -2^(-10x) + 1.
    +
    GLM_FUNC_DECL genType quinticEaseOut(genType const &a)
    Modelled after the quintic y = (x - 1)^5 + 1.
    +
    GLM_FUNC_DECL genType cubicEaseOut(genType const &a)
    Modelled after the cubic y = (x - 1)^3 + 1.
    +
    GLM_FUNC_DECL genType exponentialEaseInOut(genType const &a)
    Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))...
    +
    GLM_FUNC_DECL genType bounceEaseOut(genType const &a)
    +
    GLM_FUNC_DECL genType quinticEaseInOut(genType const &a)
    Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0...
    +
    GLM_FUNC_DECL genType backEaseIn(genType const &a, genType const &o)
    +
    GLM_FUNC_DECL genType exponentialEaseIn(genType const &a)
    Modelled after the exponential function y = 2^(10(x - 1))
    +
    GLM_FUNC_DECL genType quadraticEaseIn(genType const &a)
    Modelled after the parabola y = x^2.
    +
    GLM_FUNC_DECL genType quarticEaseInOut(genType const &a)
    Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0...
    +
    GLM_FUNC_DECL genType cubicEaseInOut(genType const &a)
    Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0...
    +
    GLM_FUNC_DECL genType bounceEaseInOut(genType const &a)
    +
    GLM_FUNC_DECL genType backEaseInOut(genType const &a, genType const &o)
    +
    GLM_FUNC_DECL genType backEaseOut(genType const &a, genType const &o)
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00024.html b/external/glm-0.9.9.8/doc/api/a00024.html new file mode 100644 index 0000000..2c756b5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00024.html @@ -0,0 +1,133 @@ + + + + + + +0.9.9 API documentation: epsilon.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    epsilon.hpp File Reference
    +
    +
    + +

    GLM_GTC_epsilon +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > epsilonEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool epsilonEqual (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > epsilonNotEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool epsilonNotEqual (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    +

    Detailed Description

    +

    GLM_GTC_epsilon

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file epsilon.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00024_source.html b/external/glm-0.9.9.8/doc/api/a00024_source.html new file mode 100644 index 0000000..081371b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00024_source.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: epsilon.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    epsilon.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # pragma message("GLM: GLM_GTC_epsilon extension included")
    +
    22 #endif
    +
    23 
    +
    24 namespace glm
    +
    25 {
    +
    28 
    +
    33  template<length_t L, typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL vec<L, bool, Q> epsilonEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T const& epsilon);
    +
    35 
    +
    40  template<typename genType>
    +
    41  GLM_FUNC_DECL bool epsilonEqual(genType const& x, genType const& y, genType const& epsilon);
    +
    42 
    +
    47  template<length_t L, typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL vec<L, bool, Q> epsilonNotEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T const& epsilon);
    +
    49 
    +
    54  template<typename genType>
    +
    55  GLM_FUNC_DECL bool epsilonNotEqual(genType const& x, genType const& y, genType const& epsilon);
    +
    56 
    +
    58 }//namespace glm
    +
    59 
    +
    60 #include "epsilon.inl"
    +
    GLM_FUNC_DECL bool epsilonEqual(genType const &x, genType const &y, genType const &epsilon)
    Returns the component-wise comparison of |x - y| < epsilon.
    +
    GLM_FUNC_DECL bool epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)
    Returns the component-wise comparison of |x - y| >= epsilon.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00025.html b/external/glm-0.9.9.8/doc/api/a00025.html new file mode 100644 index 0000000..ae15e18 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00025.html @@ -0,0 +1,279 @@ + + + + + + +0.9.9 API documentation: euler_angles.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    euler_angles.hpp File Reference
    +
    +
    + +

    GLM_GTX_euler_angles +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleX (T const &angleX, T const &angularVelocityX)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about X-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleY (T const &angleY, T const &angularVelocityY)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Y-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleZ (T const &angleZ, T const &angularVelocityZ)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Z-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleX (T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXY (T const &angleX, T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZ (T const &angleX, T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleY (T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYX (T const &angleY, T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXZ (T const &yaw, T const &pitch, T const &roll)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZ (T const &angleY, T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZ (T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZX (T const &angle, T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZY (T const &angleZ, T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXYX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Y * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXYZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Y * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXZX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Z * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXZY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Z * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYXY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * X * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYXZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * X * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYZX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * Z * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYZY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * Z * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZXY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * X * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZXZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * X * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZYX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * Y * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZYZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * Y * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > orientate2 (T const &angle)
     Creates a 2D 2 * 2 rotation matrix from an euler angle. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > orientate3 (T const &angle)
     Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > orientate3 (vec< 3, T, Q > const &angles)
     Creates a 3D 3 * 3 rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientate4 (vec< 3, T, Q > const &angles)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > yawPitchRoll (T const &yaw, T const &pitch, T const &roll)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    +

    Detailed Description

    +

    GLM_GTX_euler_angles

    +
    See also
    Core features (dependence)
    + +

    Definition in file euler_angles.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00025_source.html b/external/glm-0.9.9.8/doc/api/a00025_source.html new file mode 100644 index 0000000..01296f9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00025_source.html @@ -0,0 +1,380 @@ + + + + + + +0.9.9 API documentation: euler_angles.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    euler_angles.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    16 #pragma once
    +
    17 
    +
    18 // Dependency:
    +
    19 #include "../glm.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_euler_angles is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_euler_angles extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    36  template<typename T>
    +
    37  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleX(
    +
    38  T const& angleX);
    +
    39 
    +
    42  template<typename T>
    +
    43  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleY(
    +
    44  T const& angleY);
    +
    45 
    +
    48  template<typename T>
    +
    49  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZ(
    +
    50  T const& angleZ);
    +
    51 
    +
    54  template <typename T>
    +
    55  GLM_FUNC_DECL mat<4, 4, T, defaultp> derivedEulerAngleX(
    +
    56  T const & angleX, T const & angularVelocityX);
    +
    57 
    +
    60  template <typename T>
    +
    61  GLM_FUNC_DECL mat<4, 4, T, defaultp> derivedEulerAngleY(
    +
    62  T const & angleY, T const & angularVelocityY);
    +
    63 
    +
    66  template <typename T>
    +
    67  GLM_FUNC_DECL mat<4, 4, T, defaultp> derivedEulerAngleZ(
    +
    68  T const & angleZ, T const & angularVelocityZ);
    +
    69 
    +
    72  template<typename T>
    +
    73  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXY(
    +
    74  T const& angleX,
    +
    75  T const& angleY);
    +
    76 
    +
    79  template<typename T>
    +
    80  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYX(
    +
    81  T const& angleY,
    +
    82  T const& angleX);
    +
    83 
    +
    86  template<typename T>
    +
    87  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXZ(
    +
    88  T const& angleX,
    +
    89  T const& angleZ);
    +
    90 
    +
    93  template<typename T>
    +
    94  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZX(
    +
    95  T const& angle,
    +
    96  T const& angleX);
    +
    97 
    +
    100  template<typename T>
    +
    101  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYZ(
    +
    102  T const& angleY,
    +
    103  T const& angleZ);
    +
    104 
    +
    107  template<typename T>
    +
    108  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZY(
    +
    109  T const& angleZ,
    +
    110  T const& angleY);
    +
    111 
    +
    114  template<typename T>
    +
    115  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXYZ(
    +
    116  T const& t1,
    +
    117  T const& t2,
    +
    118  T const& t3);
    +
    119 
    +
    122  template<typename T>
    +
    123  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYXZ(
    +
    124  T const& yaw,
    +
    125  T const& pitch,
    +
    126  T const& roll);
    +
    127 
    +
    130  template <typename T>
    +
    131  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXZX(
    +
    132  T const & t1,
    +
    133  T const & t2,
    +
    134  T const & t3);
    +
    135 
    +
    138  template <typename T>
    +
    139  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXYX(
    +
    140  T const & t1,
    +
    141  T const & t2,
    +
    142  T const & t3);
    +
    143 
    +
    146  template <typename T>
    +
    147  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYXY(
    +
    148  T const & t1,
    +
    149  T const & t2,
    +
    150  T const & t3);
    +
    151 
    +
    154  template <typename T>
    +
    155  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYZY(
    +
    156  T const & t1,
    +
    157  T const & t2,
    +
    158  T const & t3);
    +
    159 
    +
    162  template <typename T>
    +
    163  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZYZ(
    +
    164  T const & t1,
    +
    165  T const & t2,
    +
    166  T const & t3);
    +
    167 
    +
    170  template <typename T>
    +
    171  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZXZ(
    +
    172  T const & t1,
    +
    173  T const & t2,
    +
    174  T const & t3);
    +
    175 
    +
    178  template <typename T>
    +
    179  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleXZY(
    +
    180  T const & t1,
    +
    181  T const & t2,
    +
    182  T const & t3);
    +
    183 
    +
    186  template <typename T>
    +
    187  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleYZX(
    +
    188  T const & t1,
    +
    189  T const & t2,
    +
    190  T const & t3);
    +
    191 
    +
    194  template <typename T>
    +
    195  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZYX(
    +
    196  T const & t1,
    +
    197  T const & t2,
    +
    198  T const & t3);
    +
    199 
    +
    202  template <typename T>
    +
    203  GLM_FUNC_DECL mat<4, 4, T, defaultp> eulerAngleZXY(
    +
    204  T const & t1,
    +
    205  T const & t2,
    +
    206  T const & t3);
    +
    207 
    +
    210  template<typename T>
    +
    211  GLM_FUNC_DECL mat<4, 4, T, defaultp> yawPitchRoll(
    +
    212  T const& yaw,
    +
    213  T const& pitch,
    +
    214  T const& roll);
    +
    215 
    +
    218  template<typename T>
    +
    219  GLM_FUNC_DECL mat<2, 2, T, defaultp> orientate2(T const& angle);
    +
    220 
    +
    223  template<typename T>
    +
    224  GLM_FUNC_DECL mat<3, 3, T, defaultp> orientate3(T const& angle);
    +
    225 
    +
    228  template<typename T, qualifier Q>
    +
    229  GLM_FUNC_DECL mat<3, 3, T, Q> orientate3(vec<3, T, Q> const& angles);
    +
    230 
    +
    233  template<typename T, qualifier Q>
    +
    234  GLM_FUNC_DECL mat<4, 4, T, Q> orientate4(vec<3, T, Q> const& angles);
    +
    235 
    +
    238  template<typename T>
    +
    239  GLM_FUNC_DECL void extractEulerAngleXYZ(mat<4, 4, T, defaultp> const& M,
    +
    240  T & t1,
    +
    241  T & t2,
    +
    242  T & t3);
    +
    243 
    +
    246  template <typename T>
    +
    247  GLM_FUNC_DECL void extractEulerAngleYXZ(mat<4, 4, T, defaultp> const & M,
    +
    248  T & t1,
    +
    249  T & t2,
    +
    250  T & t3);
    +
    251 
    +
    254  template <typename T>
    +
    255  GLM_FUNC_DECL void extractEulerAngleXZX(mat<4, 4, T, defaultp> const & M,
    +
    256  T & t1,
    +
    257  T & t2,
    +
    258  T & t3);
    +
    259 
    +
    262  template <typename T>
    +
    263  GLM_FUNC_DECL void extractEulerAngleXYX(mat<4, 4, T, defaultp> const & M,
    +
    264  T & t1,
    +
    265  T & t2,
    +
    266  T & t3);
    +
    267 
    +
    270  template <typename T>
    +
    271  GLM_FUNC_DECL void extractEulerAngleYXY(mat<4, 4, T, defaultp> const & M,
    +
    272  T & t1,
    +
    273  T & t2,
    +
    274  T & t3);
    +
    275 
    +
    278  template <typename T>
    +
    279  GLM_FUNC_DECL void extractEulerAngleYZY(mat<4, 4, T, defaultp> const & M,
    +
    280  T & t1,
    +
    281  T & t2,
    +
    282  T & t3);
    +
    283 
    +
    286  template <typename T>
    +
    287  GLM_FUNC_DECL void extractEulerAngleZYZ(mat<4, 4, T, defaultp> const & M,
    +
    288  T & t1,
    +
    289  T & t2,
    +
    290  T & t3);
    +
    291 
    +
    294  template <typename T>
    +
    295  GLM_FUNC_DECL void extractEulerAngleZXZ(mat<4, 4, T, defaultp> const & M,
    +
    296  T & t1,
    +
    297  T & t2,
    +
    298  T & t3);
    +
    299 
    +
    302  template <typename T>
    +
    303  GLM_FUNC_DECL void extractEulerAngleXZY(mat<4, 4, T, defaultp> const & M,
    +
    304  T & t1,
    +
    305  T & t2,
    +
    306  T & t3);
    +
    307 
    +
    310  template <typename T>
    +
    311  GLM_FUNC_DECL void extractEulerAngleYZX(mat<4, 4, T, defaultp> const & M,
    +
    312  T & t1,
    +
    313  T & t2,
    +
    314  T & t3);
    +
    315 
    +
    318  template <typename T>
    +
    319  GLM_FUNC_DECL void extractEulerAngleZYX(mat<4, 4, T, defaultp> const & M,
    +
    320  T & t1,
    +
    321  T & t2,
    +
    322  T & t3);
    +
    323 
    +
    326  template <typename T>
    +
    327  GLM_FUNC_DECL void extractEulerAngleZXY(mat<4, 4, T, defaultp> const & M,
    +
    328  T & t1,
    +
    329  T & t2,
    +
    330  T & t3);
    +
    331 
    +
    333 }//namespace glm
    +
    334 
    +
    335 #include "euler_angles.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXY(T const &angleX, T const &angleY)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZY(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * Y).
    +
    GLM_FUNC_DECL void extractEulerAngleYXZ(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Y * X * Z) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYZ(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * Z).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZY(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * Y).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleZ(T const &angleZ, T const &angularVelocityZ)
    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Z-axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYX(T const &angleY, T const &angleX)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleY(T const &angleY)
    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL void extractEulerAngleZYZ(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Z * Y * Z) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleX(T const &angleX, T const &angularVelocityX)
    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about X-axis.
    +
    GLM_FUNC_DECL void extractEulerAngleXYX(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (X * Y * X) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXY(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Y).
    +
    GLM_FUNC_DECL T roll(qua< T, Q > const &x)
    Returns roll value of euler angles expressed in radians.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleX(T const &angleX)
    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X.
    +
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > orientate2(T const &angle)
    Creates a 2D 2 * 2 rotation matrix from an euler angle.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYX(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * X).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXZ(T const &yaw, T const &pitch, T const &roll)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).
    +
    GLM_FUNC_DECL void extractEulerAngleXZX(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (X * Z * X) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL T yaw(qua< T, Q > const &x)
    Returns yaw value of euler angles expressed in radians.
    +
    GLM_FUNC_DECL void extractEulerAngleYXY(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Y * X * Y) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL void extractEulerAngleZXY(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Z * X * Y) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL void extractEulerAngleXZY(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (X * Z * Y) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL void extractEulerAngleYZX(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Y * Z * X) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZX(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * X).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYX(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * X).
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientate4(vec< 3, T, Q > const &angles)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).
    +
    GLM_FUNC_DECL void extractEulerAngleZYX(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Z * Y * X) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZ(T const &angleZ)
    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXY(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Y).
    +
    GLM_FUNC_DECL void extractEulerAngleYZY(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Y * Z * Y) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > yawPitchRoll(T const &yaw, T const &pitch, T const &roll)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZ(T const &angleX, T const &angleZ)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z).
    +
    GLM_FUNC_DECL void extractEulerAngleXYZ(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (X * Y * Z) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXZ(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Z).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZX(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * X).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZY(T const &angleZ, T const &angleY)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYZ(T const &t1, T const &t2, T const &t3)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * Z).
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZ(T const &angleY, T const &angleZ)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z).
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > orientate3(vec< 3, T, Q > const &angles)
    Creates a 3D 3 * 3 rotation matrix from euler angles (Y * X * Z).
    +
    GLM_FUNC_DECL void extractEulerAngleZXZ(mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
    Extracts the (Z * X * Z) Euler angles from the rotation matrix M.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleY(T const &angleY, T const &angularVelocityY)
    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Y-axis.
    +
    GLM_FUNC_DECL T pitch(qua< T, Q > const &x)
    Returns pitch value of euler angles expressed in radians.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZX(T const &angle, T const &angleX)
    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X).
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00026.html b/external/glm-0.9.9.8/doc/api/a00026.html new file mode 100644 index 0000000..e7827a9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00026.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: exponential.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    exponential.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > exp (vec< L, T, Q > const &v)
     Returns the natural exponentiation of x, i.e., e^x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > exp2 (vec< L, T, Q > const &v)
     Returns 2 raised to the v power. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > inversesqrt (vec< L, T, Q > const &v)
     Returns the reciprocal of the positive square root of v. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > log (vec< L, T, Q > const &v)
     Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > log2 (vec< L, T, Q > const &v)
     Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > pow (vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
     Returns 'base' raised to the power 'exponent'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sqrt (vec< L, T, Q > const &v)
     Returns the positive square root of v. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00026_source.html b/external/glm-0.9.9.8/doc/api/a00026_source.html new file mode 100644 index 0000000..8c2dbf5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00026_source.html @@ -0,0 +1,147 @@ + + + + + + +0.9.9 API documentation: exponential.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    exponential.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 #include "detail/type_vec1.hpp"
    +
    18 #include "detail/type_vec2.hpp"
    +
    19 #include "detail/type_vec3.hpp"
    +
    20 #include "detail/type_vec4.hpp"
    +
    21 #include <cmath>
    +
    22 
    +
    23 namespace glm
    +
    24 {
    +
    27 
    +
    35  template<length_t L, typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL vec<L, T, Q> pow(vec<L, T, Q> const& base, vec<L, T, Q> const& exponent);
    +
    37 
    +
    46  template<length_t L, typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL vec<L, T, Q> exp(vec<L, T, Q> const& v);
    +
    48 
    +
    59  template<length_t L, typename T, qualifier Q>
    +
    60  GLM_FUNC_DECL vec<L, T, Q> log(vec<L, T, Q> const& v);
    +
    61 
    +
    70  template<length_t L, typename T, qualifier Q>
    +
    71  GLM_FUNC_DECL vec<L, T, Q> exp2(vec<L, T, Q> const& v);
    +
    72 
    +
    82  template<length_t L, typename T, qualifier Q>
    +
    83  GLM_FUNC_DECL vec<L, T, Q> log2(vec<L, T, Q> const& v);
    +
    84 
    +
    93  template<length_t L, typename T, qualifier Q>
    +
    94  GLM_FUNC_DECL vec<L, T, Q> sqrt(vec<L, T, Q> const& v);
    +
    95 
    +
    104  template<length_t L, typename T, qualifier Q>
    +
    105  GLM_FUNC_DECL vec<L, T, Q> inversesqrt(vec<L, T, Q> const& v);
    +
    106 
    +
    108 }//namespace glm
    +
    109 
    +
    110 #include "detail/func_exponential.inl"
    +
    Core features
    +
    GLM_FUNC_DECL vec< L, T, Q > sqrt(vec< L, T, Q > const &v)
    Returns the positive square root of v.
    +
    GLM_FUNC_DECL vec< L, T, Q > exp2(vec< L, T, Q > const &v)
    Returns 2 raised to the v power.
    +
    GLM_FUNC_DECL vec< L, T, Q > inversesqrt(vec< L, T, Q > const &v)
    Returns the reciprocal of the positive square root of v.
    +
    Core features
    +
    Core features
    +
    GLM_FUNC_DECL vec< L, T, Q > pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
    Returns 'base' raised to the power 'exponent'.
    +
    GLM_FUNC_DECL vec< L, T, Q > exp(vec< L, T, Q > const &v)
    Returns the natural exponentiation of x, i.e., e^x.
    +
    GLM_FUNC_DECL vec< L, T, Q > log(vec< L, T, Q > const &v)
    Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y...
    +
    Core features
    +
    GLM_FUNC_DECL vec< L, T, Q > log2(vec< L, T, Q > const &v)
    Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00027.html b/external/glm-0.9.9.8/doc/api/a00027.html new file mode 100644 index 0000000..cd64255 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00027.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: ext.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext.hpp File Reference
    +
    +
    + +

    Core features (Dependence) +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features (Dependence)

    + +

    Definition in file ext.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00027_source.html b/external/glm-0.9.9.8/doc/api/a00027_source.html new file mode 100644 index 0000000..50ff9fb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00027_source.html @@ -0,0 +1,449 @@ + + + + + + +0.9.9 API documentation: ext.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    5 #include "detail/setup.hpp"
    +
    6 
    +
    7 #pragma once
    +
    8 
    +
    9 #include "glm.hpp"
    +
    10 
    +
    11 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_MESSAGE_EXT_INCLUDED_DISPLAYED)
    +
    12 # define GLM_MESSAGE_EXT_INCLUDED_DISPLAYED
    +
    13 # pragma message("GLM: All extensions included (not recommended)")
    +
    14 #endif//GLM_MESSAGES
    +
    15 
    + + + + + + + + + + + + + + + + + + +
    34 
    + + + + + + + + + + + + + +
    48 #include "./ext/matrix_float4x2_precision.hpp"
    + + + + +
    53 
    + +
    55 
    + + + + + + +
    62 
    + + + +
    66 
    +
    67 #include "./ext/vector_bool1.hpp"
    + +
    69 #include "./ext/vector_bool2.hpp"
    + +
    71 #include "./ext/vector_bool3.hpp"
    + +
    73 #include "./ext/vector_bool4.hpp"
    + +
    75 
    +
    76 #include "./ext/vector_double1.hpp"
    + +
    78 #include "./ext/vector_double2.hpp"
    + +
    80 #include "./ext/vector_double3.hpp"
    + +
    82 #include "./ext/vector_double4.hpp"
    + +
    84 
    +
    85 #include "./ext/vector_float1.hpp"
    + +
    87 #include "./ext/vector_float2.hpp"
    + +
    89 #include "./ext/vector_float3.hpp"
    + +
    91 #include "./ext/vector_float4.hpp"
    + +
    93 
    +
    94 #include "./ext/vector_int1.hpp"
    + +
    96 #include "./ext/vector_int2.hpp"
    + +
    98 #include "./ext/vector_int3.hpp"
    + +
    100 #include "./ext/vector_int4.hpp"
    + +
    102 
    + +
    104 
    +
    105 #include "./ext/vector_uint1.hpp"
    + +
    107 #include "./ext/vector_uint2.hpp"
    + +
    109 #include "./ext/vector_uint3.hpp"
    + +
    111 #include "./ext/vector_uint4.hpp"
    + +
    113 
    +
    114 #include "./gtc/bitfield.hpp"
    +
    115 #include "./gtc/color_space.hpp"
    +
    116 #include "./gtc/constants.hpp"
    +
    117 #include "./gtc/epsilon.hpp"
    +
    118 #include "./gtc/integer.hpp"
    +
    119 #include "./gtc/matrix_access.hpp"
    +
    120 #include "./gtc/matrix_integer.hpp"
    +
    121 #include "./gtc/matrix_inverse.hpp"
    + +
    123 #include "./gtc/noise.hpp"
    +
    124 #include "./gtc/packing.hpp"
    +
    125 #include "./gtc/quaternion.hpp"
    +
    126 #include "./gtc/random.hpp"
    +
    127 #include "./gtc/reciprocal.hpp"
    +
    128 #include "./gtc/round.hpp"
    +
    129 #include "./gtc/type_precision.hpp"
    +
    130 #include "./gtc/type_ptr.hpp"
    +
    131 #include "./gtc/ulp.hpp"
    +
    132 #include "./gtc/vec1.hpp"
    +
    133 #if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
    +
    134 # include "./gtc/type_aligned.hpp"
    +
    135 #endif
    +
    136 
    +
    137 #ifdef GLM_ENABLE_EXPERIMENTAL
    + +
    139 #include "./gtx/bit.hpp"
    +
    140 #include "./gtx/closest_point.hpp"
    +
    141 #include "./gtx/color_encoding.hpp"
    +
    142 #include "./gtx/color_space.hpp"
    + +
    144 #include "./gtx/compatibility.hpp"
    +
    145 #include "./gtx/component_wise.hpp"
    +
    146 #include "./gtx/dual_quaternion.hpp"
    +
    147 #include "./gtx/euler_angles.hpp"
    +
    148 #include "./gtx/extend.hpp"
    + + + + +
    153 #include "./gtx/functions.hpp"
    +
    154 #include "./gtx/gradient_paint.hpp"
    + +
    156 #include "./gtx/integer.hpp"
    +
    157 #include "./gtx/intersect.hpp"
    +
    158 #include "./gtx/log_base.hpp"
    + + + + +
    163 #include "./gtx/matrix_query.hpp"
    +
    164 #include "./gtx/mixed_product.hpp"
    +
    165 #include "./gtx/norm.hpp"
    +
    166 #include "./gtx/normal.hpp"
    +
    167 #include "./gtx/normalize_dot.hpp"
    + +
    169 #include "./gtx/optimum_pow.hpp"
    +
    170 #include "./gtx/orthonormalize.hpp"
    +
    171 #include "./gtx/perpendicular.hpp"
    + +
    173 #include "./gtx/projection.hpp"
    +
    174 #include "./gtx/quaternion.hpp"
    +
    175 #include "./gtx/raw_data.hpp"
    +
    176 #include "./gtx/rotate_vector.hpp"
    +
    177 #include "./gtx/spline.hpp"
    +
    178 #include "./gtx/std_based_type.hpp"
    +
    179 #if !(GLM_COMPILER & GLM_COMPILER_CUDA)
    +
    180 # include "./gtx/string_cast.hpp"
    +
    181 #endif
    +
    182 #include "./gtx/transform.hpp"
    +
    183 #include "./gtx/transform2.hpp"
    +
    184 #include "./gtx/vec_swizzle.hpp"
    +
    185 #include "./gtx/vector_angle.hpp"
    +
    186 #include "./gtx/vector_query.hpp"
    +
    187 #include "./gtx/wrap.hpp"
    +
    188 
    +
    189 #if GLM_HAS_TEMPLATE_ALIASES
    + +
    191 #endif
    +
    192 
    +
    193 #if GLM_HAS_RANGE_FOR
    +
    194 # include "./gtx/range.hpp"
    +
    195 #endif
    +
    196 #endif//GLM_ENABLE_EXPERIMENTAL
    +
    GLM_GTC_epsilon
    +
    GLM_EXT_vector_relational
    +
    GLM_GTX_dual_quaternion
    +
    GLM_GTX_polar_coordinates
    +
    GLM_GTX_closest_point
    +
    Core features
    + + +
    GLM_GTX_handed_coordinate_space
    +
    Core features
    +
    GLM_GTX_raw_data
    + +
    Core features
    +
    GLM_GTX_string_cast
    +
    GLM_EXT_vector_uint1_precision
    +
    GLM_GTX_intersect
    +
    GLM_EXT_vector_int1_precision
    +
    GLM_GTX_normalize_dot
    +
    GLM_GTX_integer
    +
    GLM_GTX_rotate_vector
    + +
    GLM_GTX_matrix_major_storage
    +
    Core features
    + +
    Core features
    +
    GLM_GTX_matrix_interpolation
    +
    GLM_GTX_vector_angle
    +
    GLM_GTX_transform2
    + + +
    GLM_GTX_wrap
    +
    GLM_GTX_vector_query
    +
    GLM_GTX_projection
    +
    GLM_GTC_constants
    + +
    GLM_GTX_perpendicular
    +
    Core features
    +
    Core features
    +
    Core features
    + +
    Core features
    +
    GLM_GTX_std_based_type
    +
    Core features
    +
    GLM_GTX_component_wise
    +
    GLM_GTC_ulp
    +
    GLM_GTC_round
    +
    Core features
    +
    GLM_GTX_orthonormalize
    + +
    GLM_GTC_integer
    +
    GLM_EXT_vector_float1
    + +
    GLM_GTX_matrix_query
    +
    GLM_EXT_vector_double1_precision
    + +
    GLM_GTX_vec_swizzle
    +
    Core features
    +
    GLM_GTC_type_ptr
    +
    Core features
    +
    GLM_GTX_gradient_paint
    +
    GLM_GTC_bitfield
    +
    GLM_GTX_range
    + +
    Core features
    +
    GLM_GTC_matrix_transform
    +
    GLM_GTX_matrix_cross_product
    +
    GLM_EXT_vector_bool1_precision
    +
    GLM_GTC_type_aligned
    +
    GLM_EXT_vector_uint1
    +
    GLM_GTX_quaternion
    +
    GLM_GTX_color_space_YCoCg
    +
    GLM_EXT_vector_int1
    +
    GLM_GTX_normal
    +
    GLM_GTC_color_space
    +
    Core features
    +
    GLM_GTC_noise
    +
    Core features
    +
    Core features
    + +
    GLM_GTC_matrix_integer
    +
    GLM_GTC_matrix_access
    +
    GLM_GTX_extented_min_max
    +
    GLM_GTC_vec1
    +
    GLM_GTX_transform
    + +
    GLM_EXT_quaternion_double_precision
    +
    GLM_GTX_log_base
    +
    GLM_GTX_compatibility
    +
    GLM_EXT_scalar_int_sized
    + +
    GLM_GTX_optimum_pow
    +
    GLM_GTX_functions
    +
    GLM_EXT_quaternion_relational
    + +
    GLM_GTX_fast_square_root
    +
    Core features
    +
    GLM_EXT_quaternion_float_precision
    +
    Core features
    + +
    GLM_EXT_scalar_relational
    + +
    Core features
    +
    GLM_GTC_random
    +
    GLM_GTX_euler_angles
    +
    GLM_GTX_spline
    +
    GLM_GTC_quaternion
    +
    GLM_GTX_color_space
    + +
    GLM_GTX_norm
    +
    GLM_GTX_color_encoding
    +
    GLM_GTC_reciprocal
    + +
    Core features
    +
    GLM_GTX_mixed_producte
    +
    Core features
    +
    GLM_EXT_vector_double1
    +
    Core features
    + +
    GLM_GTC_type_precision
    +
    GLM_EXT_scalar_constants
    + +
    GLM_GTX_fast_trigonometry
    +
    GLM_GTX_bit
    + +
    GLM_EXT_quaternion_geometric
    +
    Core features
    +
    GLM_GTX_fast_exponential
    + +
    GLM_EXT_quaternion_float
    + +
    GLM_EXT_vector_bool1
    +
    Core features
    +
    Core features
    +
    Core features
    + +
    Core features
    +
    GLM_GTX_extend
    + +
    Core features
    +
    GLM_EXT_quaternion_double
    + +
    Core features
    +
    GLM_GTX_number_precision
    +
    Core features
    + +
    GLM_GTX_matrix_operation
    +
    Core features
    + +
    GLM_GTC_matrix_inverse
    +
    Core features
    +
    Experimental extensions
    + +
    GLM_GTC_packing
    +
    Core features
    +
    GLM_GTX_associated_min_max
    +
    GLM_EXT_vector_float1_precision
    +
    GLM_EXT_matrix_relational
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00028.html b/external/glm-0.9.9.8/doc/api/a00028.html new file mode 100644 index 0000000..f6c7587 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00028.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: extend.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    extend.hpp File Reference
    +
    +
    + +

    GLM_GTX_extend +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType extend (genType const &Origin, genType const &Source, typename genType::value_type const Length)
     Extends of Length the Origin position using the (Source - Origin) direction. More...
     
    +

    Detailed Description

    +

    GLM_GTX_extend

    +
    See also
    Core features (dependence)
    + +

    Definition in file extend.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00028_source.html b/external/glm-0.9.9.8/doc/api/a00028_source.html new file mode 100644 index 0000000..3783148 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00028_source.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: extend.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    extend.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_extend is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_extend extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename genType>
    +
    34  GLM_FUNC_DECL genType extend(
    +
    35  genType const& Origin,
    +
    36  genType const& Source,
    +
    37  typename genType::value_type const Length);
    +
    38 
    +
    40 }//namespace glm
    +
    41 
    +
    42 #include "extend.inl"
    +
    GLM_FUNC_DECL genType extend(genType const &Origin, genType const &Source, typename genType::value_type const Length)
    Extends of Length the Origin position using the (Source - Origin) direction.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00029.html b/external/glm-0.9.9.8/doc/api/a00029.html new file mode 100644 index 0000000..7033603 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00029.html @@ -0,0 +1,183 @@ + + + + + + +0.9.9 API documentation: extended_min_max.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    extended_min_max.hpp File Reference
    +
    +
    + +

    GLM_GTX_extented_min_max +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType fclamp (genType x, genType minVal, genType maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fclamp (vec< L, T, Q > const &x, T minVal, T maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fclamp (vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fmax (genType x, genType y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fmin (genType x, genType y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T const &x, T const &y, T const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, C< T > const &y, C< T > const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T const &x, T const &y, T const &z, T const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T const &x, T const &y, T const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, C< T > const &y, C< T > const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T const &x, T const &y, T const &z, T const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    GLM_GTX_extented_min_max

    +
    See also
    Core features (dependence)
    + +

    Definition in file extended_min_max.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00029_source.html b/external/glm-0.9.9.8/doc/api/a00029_source.html new file mode 100644 index 0000000..18c9d6f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00029_source.html @@ -0,0 +1,219 @@ + + + + + + +0.9.9 API documentation: extended_min_max.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    extended_min_max.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_extented_min_max is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_extented_min_max extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T>
    +
    34  GLM_FUNC_DECL T min(
    +
    35  T const& x,
    +
    36  T const& y,
    +
    37  T const& z);
    +
    38 
    +
    41  template<typename T, template<typename> class C>
    +
    42  GLM_FUNC_DECL C<T> min(
    +
    43  C<T> const& x,
    +
    44  typename C<T>::T const& y,
    +
    45  typename C<T>::T const& z);
    +
    46 
    +
    49  template<typename T, template<typename> class C>
    +
    50  GLM_FUNC_DECL C<T> min(
    +
    51  C<T> const& x,
    +
    52  C<T> const& y,
    +
    53  C<T> const& z);
    +
    54 
    +
    57  template<typename T>
    +
    58  GLM_FUNC_DECL T min(
    +
    59  T const& x,
    +
    60  T const& y,
    +
    61  T const& z,
    +
    62  T const& w);
    +
    63 
    +
    66  template<typename T, template<typename> class C>
    +
    67  GLM_FUNC_DECL C<T> min(
    +
    68  C<T> const& x,
    +
    69  typename C<T>::T const& y,
    +
    70  typename C<T>::T const& z,
    +
    71  typename C<T>::T const& w);
    +
    72 
    +
    75  template<typename T, template<typename> class C>
    +
    76  GLM_FUNC_DECL C<T> min(
    +
    77  C<T> const& x,
    +
    78  C<T> const& y,
    +
    79  C<T> const& z,
    +
    80  C<T> const& w);
    +
    81 
    +
    84  template<typename T>
    +
    85  GLM_FUNC_DECL T max(
    +
    86  T const& x,
    +
    87  T const& y,
    +
    88  T const& z);
    +
    89 
    +
    92  template<typename T, template<typename> class C>
    +
    93  GLM_FUNC_DECL C<T> max(
    +
    94  C<T> const& x,
    +
    95  typename C<T>::T const& y,
    +
    96  typename C<T>::T const& z);
    +
    97 
    +
    100  template<typename T, template<typename> class C>
    +
    101  GLM_FUNC_DECL C<T> max(
    +
    102  C<T> const& x,
    +
    103  C<T> const& y,
    +
    104  C<T> const& z);
    +
    105 
    +
    108  template<typename T>
    +
    109  GLM_FUNC_DECL T max(
    +
    110  T const& x,
    +
    111  T const& y,
    +
    112  T const& z,
    +
    113  T const& w);
    +
    114 
    +
    117  template<typename T, template<typename> class C>
    +
    118  GLM_FUNC_DECL C<T> max(
    +
    119  C<T> const& x,
    +
    120  typename C<T>::T const& y,
    +
    121  typename C<T>::T const& z,
    +
    122  typename C<T>::T const& w);
    +
    123 
    +
    126  template<typename T, template<typename> class C>
    +
    127  GLM_FUNC_DECL C<T> max(
    +
    128  C<T> const& x,
    +
    129  C<T> const& y,
    +
    130  C<T> const& z,
    +
    131  C<T> const& w);
    +
    132 
    +
    138  template<typename genType>
    +
    139  GLM_FUNC_DECL genType fmin(genType x, genType y);
    +
    140 
    +
    147  template<typename genType>
    +
    148  GLM_FUNC_DECL genType fmax(genType x, genType y);
    +
    149 
    +
    155  template<typename genType>
    +
    156  GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal);
    +
    157 
    +
    165  template<length_t L, typename T, qualifier Q>
    +
    166  GLM_FUNC_DECL vec<L, T, Q> fclamp(vec<L, T, Q> const& x, T minVal, T maxVal);
    +
    167 
    +
    175  template<length_t L, typename T, qualifier Q>
    +
    176  GLM_FUNC_DECL vec<L, T, Q> fclamp(vec<L, T, Q> const& x, vec<L, T, Q> const& minVal, vec<L, T, Q> const& maxVal);
    +
    177 
    +
    178 
    +
    180 }//namespace glm
    +
    181 
    +
    182 #include "extended_min_max.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > fclamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
    Returns min(max(x, minVal), maxVal) for each component in x.
    +
    GLM_FUNC_DECL genType fmin(genType x, genType y)
    Returns y if y < x; otherwise, it returns x.
    +
    GLM_FUNC_DECL genType fmax(genType x, genType y)
    Returns y if x < y; otherwise, it returns x.
    +
    GLM_FUNC_DECL C< T > max(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
    Return the maximum component-wise values of 4 inputs.
    +
    GLM_FUNC_DECL C< T > min(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
    Return the minimum component-wise values of 4 inputs.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00030.html b/external/glm-0.9.9.8/doc/api/a00030.html new file mode 100644 index 0000000..b89551d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00030.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: exterior_product.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    exterior_product.hpp File Reference
    +
    +
    + +

    GLM_GTX_exterior_product +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T cross (vec< 2, T, Q > const &v, vec< 2, T, Q > const &u)
     Returns the cross product of x and y. More...
     
    +

    Detailed Description

    +

    GLM_GTX_exterior_product

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_exterior_product (dependence)
    + +

    Definition in file exterior_product.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00030_source.html b/external/glm-0.9.9.8/doc/api/a00030_source.html new file mode 100644 index 0000000..2322cd7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00030_source.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: exterior_product.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    exterior_product.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_exterior_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_exterior_product extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    39  template<typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL T cross(vec<2, T, Q> const& v, vec<2, T, Q> const& u);
    +
    41 
    +
    43 } //namespace glm
    +
    44 
    +
    45 #include "exterior_product.inl"
    +
    GLM_FUNC_DECL T cross(vec< 2, T, Q > const &v, vec< 2, T, Q > const &u)
    Returns the cross product of x and y.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00031.html b/external/glm-0.9.9.8/doc/api/a00031.html new file mode 100644 index 0000000..a5e07c3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00031.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: fast_exponential.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    fast_exponential.hpp File Reference
    +
    +
    + +

    GLM_GTX_fast_exponential +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fastExp (T x)
     Faster than the common exp function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastExp (vec< L, T, Q > const &x)
     Faster than the common exp function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastExp2 (T x)
     Faster than the common exp2 function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastExp2 (vec< L, T, Q > const &x)
     Faster than the common exp2 function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastLog (T x)
     Faster than the common log function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastLog (vec< L, T, Q > const &x)
     Faster than the common exp2 function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastLog2 (T x)
     Faster than the common log2 function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastLog2 (vec< L, T, Q > const &x)
     Faster than the common log2 function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastPow (genType x, genType y)
     Faster than the common pow function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastPow (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Faster than the common pow function but less accurate. More...
     
    template<typename genTypeT , typename genTypeU >
    GLM_FUNC_DECL genTypeT fastPow (genTypeT x, genTypeU y)
     Faster than the common pow function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastPow (vec< L, T, Q > const &x)
     Faster than the common pow function but less accurate. More...
     
    +

    Detailed Description

    +

    GLM_GTX_fast_exponential

    +
    See also
    Core features (dependence)
    +
    +gtx_half_float (dependence)
    + +

    Definition in file fast_exponential.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00031_source.html b/external/glm-0.9.9.8/doc/api/a00031_source.html new file mode 100644 index 0000000..3aa5649 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00031_source.html @@ -0,0 +1,161 @@ + + + + + + +0.9.9 API documentation: fast_exponential.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    fast_exponential.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_fast_exponential is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL genType fastPow(genType x, genType y);
    +
    36 
    +
    39  template<length_t L, typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL vec<L, T, Q> fastPow(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    41 
    +
    44  template<typename genTypeT, typename genTypeU>
    +
    45  GLM_FUNC_DECL genTypeT fastPow(genTypeT x, genTypeU y);
    +
    46 
    +
    49  template<length_t L, typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL vec<L, T, Q> fastPow(vec<L, T, Q> const& x);
    +
    51 
    +
    54  template<typename T>
    +
    55  GLM_FUNC_DECL T fastExp(T x);
    +
    56 
    +
    59  template<length_t L, typename T, qualifier Q>
    +
    60  GLM_FUNC_DECL vec<L, T, Q> fastExp(vec<L, T, Q> const& x);
    +
    61 
    +
    64  template<typename T>
    +
    65  GLM_FUNC_DECL T fastLog(T x);
    +
    66 
    +
    69  template<length_t L, typename T, qualifier Q>
    +
    70  GLM_FUNC_DECL vec<L, T, Q> fastLog(vec<L, T, Q> const& x);
    +
    71 
    +
    74  template<typename T>
    +
    75  GLM_FUNC_DECL T fastExp2(T x);
    +
    76 
    +
    79  template<length_t L, typename T, qualifier Q>
    +
    80  GLM_FUNC_DECL vec<L, T, Q> fastExp2(vec<L, T, Q> const& x);
    +
    81 
    +
    84  template<typename T>
    +
    85  GLM_FUNC_DECL T fastLog2(T x);
    +
    86 
    +
    89  template<length_t L, typename T, qualifier Q>
    +
    90  GLM_FUNC_DECL vec<L, T, Q> fastLog2(vec<L, T, Q> const& x);
    +
    91 
    +
    93 }//namespace glm
    +
    94 
    +
    95 #include "fast_exponential.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > fastLog(vec< L, T, Q > const &x)
    Faster than the common exp2 function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastPow(vec< L, T, Q > const &x)
    Faster than the common pow function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastLog2(vec< L, T, Q > const &x)
    Faster than the common log2 function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastExp2(vec< L, T, Q > const &x)
    Faster than the common exp2 function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastExp(vec< L, T, Q > const &x)
    Faster than the common exp function but less accurate.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00032.html b/external/glm-0.9.9.8/doc/api/a00032.html new file mode 100644 index 0000000..e5a7259 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00032.html @@ -0,0 +1,151 @@ + + + + + + +0.9.9 API documentation: fast_square_root.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    fast_square_root.hpp File Reference
    +
    +
    + +

    GLM_GTX_fast_square_root +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType fastDistance (genType x, genType y)
     Faster than the common distance function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastDistance (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Faster than the common distance function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastInverseSqrt (genType x)
     Faster than the common inversesqrt function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastInverseSqrt (vec< L, T, Q > const &x)
     Faster than the common inversesqrt function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastLength (genType x)
     Faster than the common length function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastLength (vec< L, T, Q > const &x)
     Faster than the common length function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastNormalize (genType const &x)
     Faster than the common normalize function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastSqrt (genType x)
     Faster than the common sqrt function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastSqrt (vec< L, T, Q > const &x)
     Faster than the common sqrt function but less accurate. More...
     
    +

    Detailed Description

    +

    GLM_GTX_fast_square_root

    +
    See also
    Core features (dependence)
    + +

    Definition in file fast_square_root.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00032_source.html b/external/glm-0.9.9.8/doc/api/a00032_source.html new file mode 100644 index 0000000..0e56eca --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00032_source.html @@ -0,0 +1,154 @@ + + + + + + +0.9.9 API documentation: fast_square_root.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    fast_square_root.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../common.hpp"
    +
    19 #include "../exponential.hpp"
    +
    20 #include "../geometric.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTX_fast_square_root is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTX_fast_square_root extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    38  template<typename genType>
    +
    39  GLM_FUNC_DECL genType fastSqrt(genType x);
    +
    40 
    +
    44  template<length_t L, typename T, qualifier Q>
    +
    45  GLM_FUNC_DECL vec<L, T, Q> fastSqrt(vec<L, T, Q> const& x);
    +
    46 
    +
    50  template<typename genType>
    +
    51  GLM_FUNC_DECL genType fastInverseSqrt(genType x);
    +
    52 
    +
    56  template<length_t L, typename T, qualifier Q>
    +
    57  GLM_FUNC_DECL vec<L, T, Q> fastInverseSqrt(vec<L, T, Q> const& x);
    +
    58 
    +
    62  template<typename genType>
    +
    63  GLM_FUNC_DECL genType fastLength(genType x);
    +
    64 
    +
    68  template<length_t L, typename T, qualifier Q>
    +
    69  GLM_FUNC_DECL T fastLength(vec<L, T, Q> const& x);
    +
    70 
    +
    74  template<typename genType>
    +
    75  GLM_FUNC_DECL genType fastDistance(genType x, genType y);
    +
    76 
    +
    80  template<length_t L, typename T, qualifier Q>
    +
    81  GLM_FUNC_DECL T fastDistance(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    82 
    +
    86  template<typename genType>
    +
    87  GLM_FUNC_DECL genType fastNormalize(genType const& x);
    +
    88 
    +
    90 }// namespace glm
    +
    91 
    +
    92 #include "fast_square_root.inl"
    +
    GLM_FUNC_DECL T fastLength(vec< L, T, Q > const &x)
    Faster than the common length function but less accurate.
    +
    GLM_FUNC_DECL T fastDistance(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Faster than the common distance function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastSqrt(vec< L, T, Q > const &x)
    Faster than the common sqrt function but less accurate.
    +
    GLM_FUNC_DECL genType fastNormalize(genType const &x)
    Faster than the common normalize function but less accurate.
    +
    GLM_FUNC_DECL vec< L, T, Q > fastInverseSqrt(vec< L, T, Q > const &x)
    Faster than the common inversesqrt function but less accurate.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00033.html b/external/glm-0.9.9.8/doc/api/a00033.html new file mode 100644 index 0000000..8c277a7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00033.html @@ -0,0 +1,147 @@ + + + + + + +0.9.9 API documentation: fast_trigonometry.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    fast_trigonometry.hpp File Reference
    +
    +
    + +

    GLM_GTX_fast_trigonometry +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fastAcos (T angle)
     Faster than the common acos function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAsin (T angle)
     Faster than the common asin function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAtan (T y, T x)
     Faster than the common atan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAtan (T angle)
     Faster than the common atan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastCos (T angle)
     Faster than the common cos function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastSin (T angle)
     Faster than the common sin function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastTan (T angle)
     Faster than the common tan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T wrapAngle (T angle)
     Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension. More...
     
    +

    Detailed Description

    +

    GLM_GTX_fast_trigonometry

    +
    See also
    Core features (dependence)
    + +

    Definition in file fast_trigonometry.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00033_source.html b/external/glm-0.9.9.8/doc/api/a00033_source.html new file mode 100644 index 0000000..e99d05f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00033_source.html @@ -0,0 +1,152 @@ + + + + + + +0.9.9 API documentation: fast_trigonometry.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    fast_trigonometry.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../gtc/constants.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_fast_trigonometry is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_fast_trigonometry extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T>
    +
    34  GLM_FUNC_DECL T wrapAngle(T angle);
    +
    35 
    +
    38  template<typename T>
    +
    39  GLM_FUNC_DECL T fastSin(T angle);
    +
    40 
    +
    43  template<typename T>
    +
    44  GLM_FUNC_DECL T fastCos(T angle);
    +
    45 
    +
    49  template<typename T>
    +
    50  GLM_FUNC_DECL T fastTan(T angle);
    +
    51 
    +
    55  template<typename T>
    +
    56  GLM_FUNC_DECL T fastAsin(T angle);
    +
    57 
    +
    61  template<typename T>
    +
    62  GLM_FUNC_DECL T fastAcos(T angle);
    +
    63 
    +
    67  template<typename T>
    +
    68  GLM_FUNC_DECL T fastAtan(T y, T x);
    +
    69 
    +
    73  template<typename T>
    +
    74  GLM_FUNC_DECL T fastAtan(T angle);
    +
    75 
    +
    77 }//namespace glm
    +
    78 
    +
    79 #include "fast_trigonometry.inl"
    +
    GLM_FUNC_DECL T fastAsin(T angle)
    Faster than the common asin function but less accurate.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL T fastAcos(T angle)
    Faster than the common acos function but less accurate.
    +
    GLM_FUNC_DECL T fastTan(T angle)
    Faster than the common tan function but less accurate.
    +
    GLM_FUNC_DECL T fastCos(T angle)
    Faster than the common cos function but less accurate.
    +
    GLM_FUNC_DECL T fastAtan(T angle)
    Faster than the common atan function but less accurate.
    +
    GLM_FUNC_DECL T fastSin(T angle)
    Faster than the common sin function but less accurate.
    +
    GLM_FUNC_DECL T wrapAngle(T angle)
    Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00034.html b/external/glm-0.9.9.8/doc/api/a00034.html new file mode 100644 index 0000000..674269a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00034.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: functions.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    functions.hpp File Reference
    +
    +
    + +

    GLM_GTX_functions +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T gauss (T x, T ExpectedValue, T StandardDeviation)
     1D gauss function More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T gauss (vec< 2, T, Q > const &Coord, vec< 2, T, Q > const &ExpectedValue, vec< 2, T, Q > const &StandardDeviation)
     2D gauss function More...
     
    +

    Detailed Description

    +

    GLM_GTX_functions

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file functions.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00034_source.html b/external/glm-0.9.9.8/doc/api/a00034_source.html new file mode 100644 index 0000000..8723755 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00034_source.html @@ -0,0 +1,136 @@ + + + + + + +0.9.9 API documentation: functions.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    functions.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 #include "../detail/type_vec2.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_functions is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_functions extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    37  template<typename T>
    +
    38  GLM_FUNC_DECL T gauss(
    +
    39  T x,
    +
    40  T ExpectedValue,
    +
    41  T StandardDeviation);
    +
    42 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL T gauss(
    +
    48  vec<2, T, Q> const& Coord,
    +
    49  vec<2, T, Q> const& ExpectedValue,
    +
    50  vec<2, T, Q> const& StandardDeviation);
    +
    51 
    +
    53 }//namespace glm
    +
    54 
    +
    55 #include "functions.inl"
    +
    56 
    +
    GLM_FUNC_DECL T gauss(vec< 2, T, Q > const &Coord, vec< 2, T, Q > const &ExpectedValue, vec< 2, T, Q > const &StandardDeviation)
    2D gauss function
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00035_source.html b/external/glm-0.9.9.8/doc/api/a00035_source.html new file mode 100644 index 0000000..51e2787 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00035_source.html @@ -0,0 +1,1544 @@ + + + + + + +0.9.9 API documentation: fwd.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    fwd.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "detail/qualifier.hpp"
    +
    4 
    +
    5 namespace glm
    +
    6 {
    +
    7 #if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    8  typedef std::int8_t int8;
    +
    9  typedef std::int16_t int16;
    +
    10  typedef std::int32_t int32;
    +
    11  typedef std::int64_t int64;
    +
    12 
    +
    13  typedef std::uint8_t uint8;
    +
    14  typedef std::uint16_t uint16;
    +
    15  typedef std::uint32_t uint32;
    +
    16  typedef std::uint64_t uint64;
    +
    17 #else
    +
    18  typedef signed char int8;
    +
    19  typedef signed short int16;
    +
    20  typedef signed int int32;
    +
    21  typedef detail::int64 int64;
    +
    22 
    +
    23  typedef unsigned char uint8;
    +
    24  typedef unsigned short uint16;
    +
    25  typedef unsigned int uint32;
    +
    26  typedef detail::uint64 uint64;
    +
    27 #endif
    +
    28 
    +
    29  // Scalar int
    +
    30 
    +
    31  typedef int8 lowp_i8;
    +
    32  typedef int8 mediump_i8;
    +
    33  typedef int8 highp_i8;
    +
    34  typedef int8 i8;
    +
    35 
    +
    36  typedef int8 lowp_int8;
    +
    37  typedef int8 mediump_int8;
    +
    38  typedef int8 highp_int8;
    +
    39 
    +
    40  typedef int8 lowp_int8_t;
    +
    41  typedef int8 mediump_int8_t;
    +
    42  typedef int8 highp_int8_t;
    +
    43  typedef int8 int8_t;
    +
    44 
    +
    45  typedef int16 lowp_i16;
    +
    46  typedef int16 mediump_i16;
    +
    47  typedef int16 highp_i16;
    +
    48  typedef int16 i16;
    +
    49 
    +
    50  typedef int16 lowp_int16;
    +
    51  typedef int16 mediump_int16;
    +
    52  typedef int16 highp_int16;
    +
    53 
    +
    54  typedef int16 lowp_int16_t;
    +
    55  typedef int16 mediump_int16_t;
    +
    56  typedef int16 highp_int16_t;
    +
    57  typedef int16 int16_t;
    +
    58 
    +
    59  typedef int32 lowp_i32;
    +
    60  typedef int32 mediump_i32;
    +
    61  typedef int32 highp_i32;
    +
    62  typedef int32 i32;
    +
    63 
    +
    64  typedef int32 lowp_int32;
    +
    65  typedef int32 mediump_int32;
    +
    66  typedef int32 highp_int32;
    +
    67 
    +
    68  typedef int32 lowp_int32_t;
    +
    69  typedef int32 mediump_int32_t;
    +
    70  typedef int32 highp_int32_t;
    +
    71  typedef int32 int32_t;
    +
    72 
    +
    73  typedef int64 lowp_i64;
    +
    74  typedef int64 mediump_i64;
    +
    75  typedef int64 highp_i64;
    +
    76  typedef int64 i64;
    +
    77 
    +
    78  typedef int64 lowp_int64;
    +
    79  typedef int64 mediump_int64;
    +
    80  typedef int64 highp_int64;
    +
    81 
    +
    82  typedef int64 lowp_int64_t;
    +
    83  typedef int64 mediump_int64_t;
    +
    84  typedef int64 highp_int64_t;
    +
    85  typedef int64 int64_t;
    +
    86 
    +
    87  // Scalar uint
    +
    88 
    +
    89  typedef uint8 lowp_u8;
    +
    90  typedef uint8 mediump_u8;
    +
    91  typedef uint8 highp_u8;
    +
    92  typedef uint8 u8;
    +
    93 
    +
    94  typedef uint8 lowp_uint8;
    +
    95  typedef uint8 mediump_uint8;
    +
    96  typedef uint8 highp_uint8;
    +
    97 
    +
    98  typedef uint8 lowp_uint8_t;
    +
    99  typedef uint8 mediump_uint8_t;
    +
    100  typedef uint8 highp_uint8_t;
    +
    101  typedef uint8 uint8_t;
    +
    102 
    +
    103  typedef uint16 lowp_u16;
    +
    104  typedef uint16 mediump_u16;
    +
    105  typedef uint16 highp_u16;
    +
    106  typedef uint16 u16;
    +
    107 
    +
    108  typedef uint16 lowp_uint16;
    +
    109  typedef uint16 mediump_uint16;
    +
    110  typedef uint16 highp_uint16;
    +
    111 
    +
    112  typedef uint16 lowp_uint16_t;
    +
    113  typedef uint16 mediump_uint16_t;
    +
    114  typedef uint16 highp_uint16_t;
    +
    115  typedef uint16 uint16_t;
    +
    116 
    +
    117  typedef uint32 lowp_u32;
    +
    118  typedef uint32 mediump_u32;
    +
    119  typedef uint32 highp_u32;
    +
    120  typedef uint32 u32;
    +
    121 
    +
    122  typedef uint32 lowp_uint32;
    +
    123  typedef uint32 mediump_uint32;
    +
    124  typedef uint32 highp_uint32;
    +
    125 
    +
    126  typedef uint32 lowp_uint32_t;
    +
    127  typedef uint32 mediump_uint32_t;
    +
    128  typedef uint32 highp_uint32_t;
    +
    129  typedef uint32 uint32_t;
    +
    130 
    +
    131  typedef uint64 lowp_u64;
    +
    132  typedef uint64 mediump_u64;
    +
    133  typedef uint64 highp_u64;
    +
    134  typedef uint64 u64;
    +
    135 
    +
    136  typedef uint64 lowp_uint64;
    +
    137  typedef uint64 mediump_uint64;
    +
    138  typedef uint64 highp_uint64;
    +
    139 
    +
    140  typedef uint64 lowp_uint64_t;
    +
    141  typedef uint64 mediump_uint64_t;
    +
    142  typedef uint64 highp_uint64_t;
    +
    143  typedef uint64 uint64_t;
    +
    144 
    +
    145  // Scalar float
    +
    146 
    +
    147  typedef float lowp_f32;
    +
    148  typedef float mediump_f32;
    +
    149  typedef float highp_f32;
    +
    150  typedef float f32;
    +
    151 
    +
    152  typedef float lowp_float32;
    +
    153  typedef float mediump_float32;
    +
    154  typedef float highp_float32;
    +
    155  typedef float float32;
    +
    156 
    +
    157  typedef float lowp_float32_t;
    +
    158  typedef float mediump_float32_t;
    +
    159  typedef float highp_float32_t;
    +
    160  typedef float float32_t;
    +
    161 
    +
    162 
    +
    163  typedef double lowp_f64;
    +
    164  typedef double mediump_f64;
    +
    165  typedef double highp_f64;
    +
    166  typedef double f64;
    +
    167 
    +
    168  typedef double lowp_float64;
    +
    169  typedef double mediump_float64;
    +
    170  typedef double highp_float64;
    +
    171  typedef double float64;
    +
    172 
    +
    173  typedef double lowp_float64_t;
    +
    174  typedef double mediump_float64_t;
    +
    175  typedef double highp_float64_t;
    +
    176  typedef double float64_t;
    +
    177 
    +
    178  // Vector bool
    +
    179 
    +
    180  typedef vec<1, bool, lowp> lowp_bvec1;
    +
    181  typedef vec<2, bool, lowp> lowp_bvec2;
    +
    182  typedef vec<3, bool, lowp> lowp_bvec3;
    +
    183  typedef vec<4, bool, lowp> lowp_bvec4;
    +
    184 
    +
    185  typedef vec<1, bool, mediump> mediump_bvec1;
    +
    186  typedef vec<2, bool, mediump> mediump_bvec2;
    +
    187  typedef vec<3, bool, mediump> mediump_bvec3;
    +
    188  typedef vec<4, bool, mediump> mediump_bvec4;
    +
    189 
    +
    190  typedef vec<1, bool, highp> highp_bvec1;
    +
    191  typedef vec<2, bool, highp> highp_bvec2;
    +
    192  typedef vec<3, bool, highp> highp_bvec3;
    +
    193  typedef vec<4, bool, highp> highp_bvec4;
    +
    194 
    +
    195  typedef vec<1, bool, defaultp> bvec1;
    +
    196  typedef vec<2, bool, defaultp> bvec2;
    +
    197  typedef vec<3, bool, defaultp> bvec3;
    +
    198  typedef vec<4, bool, defaultp> bvec4;
    +
    199 
    +
    200  // Vector int
    +
    201 
    +
    202  typedef vec<1, i32, lowp> lowp_ivec1;
    +
    203  typedef vec<2, i32, lowp> lowp_ivec2;
    +
    204  typedef vec<3, i32, lowp> lowp_ivec3;
    +
    205  typedef vec<4, i32, lowp> lowp_ivec4;
    +
    206 
    +
    207  typedef vec<1, i32, mediump> mediump_ivec1;
    +
    208  typedef vec<2, i32, mediump> mediump_ivec2;
    +
    209  typedef vec<3, i32, mediump> mediump_ivec3;
    +
    210  typedef vec<4, i32, mediump> mediump_ivec4;
    +
    211 
    +
    212  typedef vec<1, i32, highp> highp_ivec1;
    +
    213  typedef vec<2, i32, highp> highp_ivec2;
    +
    214  typedef vec<3, i32, highp> highp_ivec3;
    +
    215  typedef vec<4, i32, highp> highp_ivec4;
    +
    216 
    +
    217  typedef vec<1, i32, defaultp> ivec1;
    +
    218  typedef vec<2, i32, defaultp> ivec2;
    +
    219  typedef vec<3, i32, defaultp> ivec3;
    +
    220  typedef vec<4, i32, defaultp> ivec4;
    +
    221 
    +
    222  typedef vec<1, i8, lowp> lowp_i8vec1;
    +
    223  typedef vec<2, i8, lowp> lowp_i8vec2;
    +
    224  typedef vec<3, i8, lowp> lowp_i8vec3;
    +
    225  typedef vec<4, i8, lowp> lowp_i8vec4;
    +
    226 
    +
    227  typedef vec<1, i8, mediump> mediump_i8vec1;
    +
    228  typedef vec<2, i8, mediump> mediump_i8vec2;
    +
    229  typedef vec<3, i8, mediump> mediump_i8vec3;
    +
    230  typedef vec<4, i8, mediump> mediump_i8vec4;
    +
    231 
    +
    232  typedef vec<1, i8, highp> highp_i8vec1;
    +
    233  typedef vec<2, i8, highp> highp_i8vec2;
    +
    234  typedef vec<3, i8, highp> highp_i8vec3;
    +
    235  typedef vec<4, i8, highp> highp_i8vec4;
    +
    236 
    +
    237  typedef vec<1, i8, defaultp> i8vec1;
    +
    238  typedef vec<2, i8, defaultp> i8vec2;
    +
    239  typedef vec<3, i8, defaultp> i8vec3;
    +
    240  typedef vec<4, i8, defaultp> i8vec4;
    +
    241 
    +
    242  typedef vec<1, i16, lowp> lowp_i16vec1;
    +
    243  typedef vec<2, i16, lowp> lowp_i16vec2;
    +
    244  typedef vec<3, i16, lowp> lowp_i16vec3;
    +
    245  typedef vec<4, i16, lowp> lowp_i16vec4;
    +
    246 
    +
    247  typedef vec<1, i16, mediump> mediump_i16vec1;
    +
    248  typedef vec<2, i16, mediump> mediump_i16vec2;
    +
    249  typedef vec<3, i16, mediump> mediump_i16vec3;
    +
    250  typedef vec<4, i16, mediump> mediump_i16vec4;
    +
    251 
    +
    252  typedef vec<1, i16, highp> highp_i16vec1;
    +
    253  typedef vec<2, i16, highp> highp_i16vec2;
    +
    254  typedef vec<3, i16, highp> highp_i16vec3;
    +
    255  typedef vec<4, i16, highp> highp_i16vec4;
    +
    256 
    +
    257  typedef vec<1, i16, defaultp> i16vec1;
    +
    258  typedef vec<2, i16, defaultp> i16vec2;
    +
    259  typedef vec<3, i16, defaultp> i16vec3;
    +
    260  typedef vec<4, i16, defaultp> i16vec4;
    +
    261 
    +
    262  typedef vec<1, i32, lowp> lowp_i32vec1;
    +
    263  typedef vec<2, i32, lowp> lowp_i32vec2;
    +
    264  typedef vec<3, i32, lowp> lowp_i32vec3;
    +
    265  typedef vec<4, i32, lowp> lowp_i32vec4;
    +
    266 
    +
    267  typedef vec<1, i32, mediump> mediump_i32vec1;
    +
    268  typedef vec<2, i32, mediump> mediump_i32vec2;
    +
    269  typedef vec<3, i32, mediump> mediump_i32vec3;
    +
    270  typedef vec<4, i32, mediump> mediump_i32vec4;
    +
    271 
    +
    272  typedef vec<1, i32, highp> highp_i32vec1;
    +
    273  typedef vec<2, i32, highp> highp_i32vec2;
    +
    274  typedef vec<3, i32, highp> highp_i32vec3;
    +
    275  typedef vec<4, i32, highp> highp_i32vec4;
    +
    276 
    +
    277  typedef vec<1, i32, defaultp> i32vec1;
    +
    278  typedef vec<2, i32, defaultp> i32vec2;
    +
    279  typedef vec<3, i32, defaultp> i32vec3;
    +
    280  typedef vec<4, i32, defaultp> i32vec4;
    +
    281 
    +
    282  typedef vec<1, i64, lowp> lowp_i64vec1;
    +
    283  typedef vec<2, i64, lowp> lowp_i64vec2;
    +
    284  typedef vec<3, i64, lowp> lowp_i64vec3;
    +
    285  typedef vec<4, i64, lowp> lowp_i64vec4;
    +
    286 
    +
    287  typedef vec<1, i64, mediump> mediump_i64vec1;
    +
    288  typedef vec<2, i64, mediump> mediump_i64vec2;
    +
    289  typedef vec<3, i64, mediump> mediump_i64vec3;
    +
    290  typedef vec<4, i64, mediump> mediump_i64vec4;
    +
    291 
    +
    292  typedef vec<1, i64, highp> highp_i64vec1;
    +
    293  typedef vec<2, i64, highp> highp_i64vec2;
    +
    294  typedef vec<3, i64, highp> highp_i64vec3;
    +
    295  typedef vec<4, i64, highp> highp_i64vec4;
    +
    296 
    +
    297  typedef vec<1, i64, defaultp> i64vec1;
    +
    298  typedef vec<2, i64, defaultp> i64vec2;
    +
    299  typedef vec<3, i64, defaultp> i64vec3;
    +
    300  typedef vec<4, i64, defaultp> i64vec4;
    +
    301 
    +
    302  // Vector uint
    +
    303 
    +
    304  typedef vec<1, u32, lowp> lowp_uvec1;
    +
    305  typedef vec<2, u32, lowp> lowp_uvec2;
    +
    306  typedef vec<3, u32, lowp> lowp_uvec3;
    +
    307  typedef vec<4, u32, lowp> lowp_uvec4;
    +
    308 
    +
    309  typedef vec<1, u32, mediump> mediump_uvec1;
    +
    310  typedef vec<2, u32, mediump> mediump_uvec2;
    +
    311  typedef vec<3, u32, mediump> mediump_uvec3;
    +
    312  typedef vec<4, u32, mediump> mediump_uvec4;
    +
    313 
    +
    314  typedef vec<1, u32, highp> highp_uvec1;
    +
    315  typedef vec<2, u32, highp> highp_uvec2;
    +
    316  typedef vec<3, u32, highp> highp_uvec3;
    +
    317  typedef vec<4, u32, highp> highp_uvec4;
    +
    318 
    +
    319  typedef vec<1, u32, defaultp> uvec1;
    +
    320  typedef vec<2, u32, defaultp> uvec2;
    +
    321  typedef vec<3, u32, defaultp> uvec3;
    +
    322  typedef vec<4, u32, defaultp> uvec4;
    +
    323 
    +
    324  typedef vec<1, u8, lowp> lowp_u8vec1;
    +
    325  typedef vec<2, u8, lowp> lowp_u8vec2;
    +
    326  typedef vec<3, u8, lowp> lowp_u8vec3;
    +
    327  typedef vec<4, u8, lowp> lowp_u8vec4;
    +
    328 
    +
    329  typedef vec<1, u8, mediump> mediump_u8vec1;
    +
    330  typedef vec<2, u8, mediump> mediump_u8vec2;
    +
    331  typedef vec<3, u8, mediump> mediump_u8vec3;
    +
    332  typedef vec<4, u8, mediump> mediump_u8vec4;
    +
    333 
    +
    334  typedef vec<1, u8, highp> highp_u8vec1;
    +
    335  typedef vec<2, u8, highp> highp_u8vec2;
    +
    336  typedef vec<3, u8, highp> highp_u8vec3;
    +
    337  typedef vec<4, u8, highp> highp_u8vec4;
    +
    338 
    +
    339  typedef vec<1, u8, defaultp> u8vec1;
    +
    340  typedef vec<2, u8, defaultp> u8vec2;
    +
    341  typedef vec<3, u8, defaultp> u8vec3;
    +
    342  typedef vec<4, u8, defaultp> u8vec4;
    +
    343 
    +
    344  typedef vec<1, u16, lowp> lowp_u16vec1;
    +
    345  typedef vec<2, u16, lowp> lowp_u16vec2;
    +
    346  typedef vec<3, u16, lowp> lowp_u16vec3;
    +
    347  typedef vec<4, u16, lowp> lowp_u16vec4;
    +
    348 
    +
    349  typedef vec<1, u16, mediump> mediump_u16vec1;
    +
    350  typedef vec<2, u16, mediump> mediump_u16vec2;
    +
    351  typedef vec<3, u16, mediump> mediump_u16vec3;
    +
    352  typedef vec<4, u16, mediump> mediump_u16vec4;
    +
    353 
    +
    354  typedef vec<1, u16, highp> highp_u16vec1;
    +
    355  typedef vec<2, u16, highp> highp_u16vec2;
    +
    356  typedef vec<3, u16, highp> highp_u16vec3;
    +
    357  typedef vec<4, u16, highp> highp_u16vec4;
    +
    358 
    +
    359  typedef vec<1, u16, defaultp> u16vec1;
    +
    360  typedef vec<2, u16, defaultp> u16vec2;
    +
    361  typedef vec<3, u16, defaultp> u16vec3;
    +
    362  typedef vec<4, u16, defaultp> u16vec4;
    +
    363 
    +
    364  typedef vec<1, u32, lowp> lowp_u32vec1;
    +
    365  typedef vec<2, u32, lowp> lowp_u32vec2;
    +
    366  typedef vec<3, u32, lowp> lowp_u32vec3;
    +
    367  typedef vec<4, u32, lowp> lowp_u32vec4;
    +
    368 
    +
    369  typedef vec<1, u32, mediump> mediump_u32vec1;
    +
    370  typedef vec<2, u32, mediump> mediump_u32vec2;
    +
    371  typedef vec<3, u32, mediump> mediump_u32vec3;
    +
    372  typedef vec<4, u32, mediump> mediump_u32vec4;
    +
    373 
    +
    374  typedef vec<1, u32, highp> highp_u32vec1;
    +
    375  typedef vec<2, u32, highp> highp_u32vec2;
    +
    376  typedef vec<3, u32, highp> highp_u32vec3;
    +
    377  typedef vec<4, u32, highp> highp_u32vec4;
    +
    378 
    +
    379  typedef vec<1, u32, defaultp> u32vec1;
    +
    380  typedef vec<2, u32, defaultp> u32vec2;
    +
    381  typedef vec<3, u32, defaultp> u32vec3;
    +
    382  typedef vec<4, u32, defaultp> u32vec4;
    +
    383 
    +
    384  typedef vec<1, u64, lowp> lowp_u64vec1;
    +
    385  typedef vec<2, u64, lowp> lowp_u64vec2;
    +
    386  typedef vec<3, u64, lowp> lowp_u64vec3;
    +
    387  typedef vec<4, u64, lowp> lowp_u64vec4;
    +
    388 
    +
    389  typedef vec<1, u64, mediump> mediump_u64vec1;
    +
    390  typedef vec<2, u64, mediump> mediump_u64vec2;
    +
    391  typedef vec<3, u64, mediump> mediump_u64vec3;
    +
    392  typedef vec<4, u64, mediump> mediump_u64vec4;
    +
    393 
    +
    394  typedef vec<1, u64, highp> highp_u64vec1;
    +
    395  typedef vec<2, u64, highp> highp_u64vec2;
    +
    396  typedef vec<3, u64, highp> highp_u64vec3;
    +
    397  typedef vec<4, u64, highp> highp_u64vec4;
    +
    398 
    +
    399  typedef vec<1, u64, defaultp> u64vec1;
    +
    400  typedef vec<2, u64, defaultp> u64vec2;
    +
    401  typedef vec<3, u64, defaultp> u64vec3;
    +
    402  typedef vec<4, u64, defaultp> u64vec4;
    +
    403 
    +
    404  // Vector float
    +
    405 
    +
    406  typedef vec<1, float, lowp> lowp_vec1;
    +
    407  typedef vec<2, float, lowp> lowp_vec2;
    +
    408  typedef vec<3, float, lowp> lowp_vec3;
    +
    409  typedef vec<4, float, lowp> lowp_vec4;
    +
    410 
    +
    411  typedef vec<1, float, mediump> mediump_vec1;
    +
    412  typedef vec<2, float, mediump> mediump_vec2;
    +
    413  typedef vec<3, float, mediump> mediump_vec3;
    +
    414  typedef vec<4, float, mediump> mediump_vec4;
    +
    415 
    +
    416  typedef vec<1, float, highp> highp_vec1;
    +
    417  typedef vec<2, float, highp> highp_vec2;
    +
    418  typedef vec<3, float, highp> highp_vec3;
    +
    419  typedef vec<4, float, highp> highp_vec4;
    +
    420 
    +
    421  typedef vec<1, float, defaultp> vec1;
    +
    422  typedef vec<2, float, defaultp> vec2;
    +
    423  typedef vec<3, float, defaultp> vec3;
    +
    424  typedef vec<4, float, defaultp> vec4;
    +
    425 
    +
    426  typedef vec<1, float, lowp> lowp_fvec1;
    +
    427  typedef vec<2, float, lowp> lowp_fvec2;
    +
    428  typedef vec<3, float, lowp> lowp_fvec3;
    +
    429  typedef vec<4, float, lowp> lowp_fvec4;
    +
    430 
    +
    431  typedef vec<1, float, mediump> mediump_fvec1;
    +
    432  typedef vec<2, float, mediump> mediump_fvec2;
    +
    433  typedef vec<3, float, mediump> mediump_fvec3;
    +
    434  typedef vec<4, float, mediump> mediump_fvec4;
    +
    435 
    +
    436  typedef vec<1, float, highp> highp_fvec1;
    +
    437  typedef vec<2, float, highp> highp_fvec2;
    +
    438  typedef vec<3, float, highp> highp_fvec3;
    +
    439  typedef vec<4, float, highp> highp_fvec4;
    +
    440 
    +
    441  typedef vec<1, f32, defaultp> fvec1;
    +
    442  typedef vec<2, f32, defaultp> fvec2;
    +
    443  typedef vec<3, f32, defaultp> fvec3;
    +
    444  typedef vec<4, f32, defaultp> fvec4;
    +
    445 
    +
    446  typedef vec<1, f32, lowp> lowp_f32vec1;
    +
    447  typedef vec<2, f32, lowp> lowp_f32vec2;
    +
    448  typedef vec<3, f32, lowp> lowp_f32vec3;
    +
    449  typedef vec<4, f32, lowp> lowp_f32vec4;
    +
    450 
    +
    451  typedef vec<1, f32, mediump> mediump_f32vec1;
    +
    452  typedef vec<2, f32, mediump> mediump_f32vec2;
    +
    453  typedef vec<3, f32, mediump> mediump_f32vec3;
    +
    454  typedef vec<4, f32, mediump> mediump_f32vec4;
    +
    455 
    +
    456  typedef vec<1, f32, highp> highp_f32vec1;
    +
    457  typedef vec<2, f32, highp> highp_f32vec2;
    +
    458  typedef vec<3, f32, highp> highp_f32vec3;
    +
    459  typedef vec<4, f32, highp> highp_f32vec4;
    +
    460 
    +
    461  typedef vec<1, f32, defaultp> f32vec1;
    +
    462  typedef vec<2, f32, defaultp> f32vec2;
    +
    463  typedef vec<3, f32, defaultp> f32vec3;
    +
    464  typedef vec<4, f32, defaultp> f32vec4;
    +
    465 
    +
    466  typedef vec<1, f64, lowp> lowp_dvec1;
    +
    467  typedef vec<2, f64, lowp> lowp_dvec2;
    +
    468  typedef vec<3, f64, lowp> lowp_dvec3;
    +
    469  typedef vec<4, f64, lowp> lowp_dvec4;
    +
    470 
    +
    471  typedef vec<1, f64, mediump> mediump_dvec1;
    +
    472  typedef vec<2, f64, mediump> mediump_dvec2;
    +
    473  typedef vec<3, f64, mediump> mediump_dvec3;
    +
    474  typedef vec<4, f64, mediump> mediump_dvec4;
    +
    475 
    +
    476  typedef vec<1, f64, highp> highp_dvec1;
    +
    477  typedef vec<2, f64, highp> highp_dvec2;
    +
    478  typedef vec<3, f64, highp> highp_dvec3;
    +
    479  typedef vec<4, f64, highp> highp_dvec4;
    +
    480 
    +
    481  typedef vec<1, f64, defaultp> dvec1;
    +
    482  typedef vec<2, f64, defaultp> dvec2;
    +
    483  typedef vec<3, f64, defaultp> dvec3;
    +
    484  typedef vec<4, f64, defaultp> dvec4;
    +
    485 
    +
    486  typedef vec<1, f64, lowp> lowp_f64vec1;
    +
    487  typedef vec<2, f64, lowp> lowp_f64vec2;
    +
    488  typedef vec<3, f64, lowp> lowp_f64vec3;
    +
    489  typedef vec<4, f64, lowp> lowp_f64vec4;
    +
    490 
    +
    491  typedef vec<1, f64, mediump> mediump_f64vec1;
    +
    492  typedef vec<2, f64, mediump> mediump_f64vec2;
    +
    493  typedef vec<3, f64, mediump> mediump_f64vec3;
    +
    494  typedef vec<4, f64, mediump> mediump_f64vec4;
    +
    495 
    +
    496  typedef vec<1, f64, highp> highp_f64vec1;
    +
    497  typedef vec<2, f64, highp> highp_f64vec2;
    +
    498  typedef vec<3, f64, highp> highp_f64vec3;
    +
    499  typedef vec<4, f64, highp> highp_f64vec4;
    +
    500 
    +
    501  typedef vec<1, f64, defaultp> f64vec1;
    +
    502  typedef vec<2, f64, defaultp> f64vec2;
    +
    503  typedef vec<3, f64, defaultp> f64vec3;
    +
    504  typedef vec<4, f64, defaultp> f64vec4;
    +
    505 
    +
    506  // Matrix NxN
    +
    507 
    +
    508  typedef mat<2, 2, f32, lowp> lowp_mat2;
    +
    509  typedef mat<3, 3, f32, lowp> lowp_mat3;
    +
    510  typedef mat<4, 4, f32, lowp> lowp_mat4;
    +
    511 
    +
    512  typedef mat<2, 2, f32, mediump> mediump_mat2;
    +
    513  typedef mat<3, 3, f32, mediump> mediump_mat3;
    +
    514  typedef mat<4, 4, f32, mediump> mediump_mat4;
    +
    515 
    +
    516  typedef mat<2, 2, f32, highp> highp_mat2;
    +
    517  typedef mat<3, 3, f32, highp> highp_mat3;
    +
    518  typedef mat<4, 4, f32, highp> highp_mat4;
    +
    519 
    +
    520  typedef mat<2, 2, f32, defaultp> mat2;
    +
    521  typedef mat<3, 3, f32, defaultp> mat3;
    +
    522  typedef mat<4, 4, f32, defaultp> mat4;
    +
    523 
    +
    524  typedef mat<2, 2, f32, lowp> lowp_fmat2;
    +
    525  typedef mat<3, 3, f32, lowp> lowp_fmat3;
    +
    526  typedef mat<4, 4, f32, lowp> lowp_fmat4;
    +
    527 
    +
    528  typedef mat<2, 2, f32, mediump> mediump_fmat2;
    +
    529  typedef mat<3, 3, f32, mediump> mediump_fmat3;
    +
    530  typedef mat<4, 4, f32, mediump> mediump_fmat4;
    +
    531 
    +
    532  typedef mat<2, 2, f32, highp> highp_fmat2;
    +
    533  typedef mat<3, 3, f32, highp> highp_fmat3;
    +
    534  typedef mat<4, 4, f32, highp> highp_fmat4;
    +
    535 
    +
    536  typedef mat<2, 2, f32, defaultp> fmat2;
    +
    537  typedef mat<3, 3, f32, defaultp> fmat3;
    +
    538  typedef mat<4, 4, f32, defaultp> fmat4;
    +
    539 
    +
    540  typedef mat<2, 2, f32, lowp> lowp_f32mat2;
    +
    541  typedef mat<3, 3, f32, lowp> lowp_f32mat3;
    +
    542  typedef mat<4, 4, f32, lowp> lowp_f32mat4;
    +
    543 
    +
    544  typedef mat<2, 2, f32, mediump> mediump_f32mat2;
    +
    545  typedef mat<3, 3, f32, mediump> mediump_f32mat3;
    +
    546  typedef mat<4, 4, f32, mediump> mediump_f32mat4;
    +
    547 
    +
    548  typedef mat<2, 2, f32, highp> highp_f32mat2;
    +
    549  typedef mat<3, 3, f32, highp> highp_f32mat3;
    +
    550  typedef mat<4, 4, f32, highp> highp_f32mat4;
    +
    551 
    +
    552  typedef mat<2, 2, f32, defaultp> f32mat2;
    +
    553  typedef mat<3, 3, f32, defaultp> f32mat3;
    +
    554  typedef mat<4, 4, f32, defaultp> f32mat4;
    +
    555 
    +
    556  typedef mat<2, 2, f64, lowp> lowp_dmat2;
    +
    557  typedef mat<3, 3, f64, lowp> lowp_dmat3;
    +
    558  typedef mat<4, 4, f64, lowp> lowp_dmat4;
    +
    559 
    +
    560  typedef mat<2, 2, f64, mediump> mediump_dmat2;
    +
    561  typedef mat<3, 3, f64, mediump> mediump_dmat3;
    +
    562  typedef mat<4, 4, f64, mediump> mediump_dmat4;
    +
    563 
    +
    564  typedef mat<2, 2, f64, highp> highp_dmat2;
    +
    565  typedef mat<3, 3, f64, highp> highp_dmat3;
    +
    566  typedef mat<4, 4, f64, highp> highp_dmat4;
    +
    567 
    +
    568  typedef mat<2, 2, f64, defaultp> dmat2;
    +
    569  typedef mat<3, 3, f64, defaultp> dmat3;
    +
    570  typedef mat<4, 4, f64, defaultp> dmat4;
    +
    571 
    +
    572  typedef mat<2, 2, f64, lowp> lowp_f64mat2;
    +
    573  typedef mat<3, 3, f64, lowp> lowp_f64mat3;
    +
    574  typedef mat<4, 4, f64, lowp> lowp_f64mat4;
    +
    575 
    +
    576  typedef mat<2, 2, f64, mediump> mediump_f64mat2;
    +
    577  typedef mat<3, 3, f64, mediump> mediump_f64mat3;
    +
    578  typedef mat<4, 4, f64, mediump> mediump_f64mat4;
    +
    579 
    +
    580  typedef mat<2, 2, f64, highp> highp_f64mat2;
    +
    581  typedef mat<3, 3, f64, highp> highp_f64mat3;
    +
    582  typedef mat<4, 4, f64, highp> highp_f64mat4;
    +
    583 
    +
    584  typedef mat<2, 2, f64, defaultp> f64mat2;
    +
    585  typedef mat<3, 3, f64, defaultp> f64mat3;
    +
    586  typedef mat<4, 4, f64, defaultp> f64mat4;
    +
    587 
    +
    588  // Matrix MxN
    +
    589 
    +
    590  typedef mat<2, 2, f32, lowp> lowp_mat2x2;
    +
    591  typedef mat<2, 3, f32, lowp> lowp_mat2x3;
    +
    592  typedef mat<2, 4, f32, lowp> lowp_mat2x4;
    +
    593  typedef mat<3, 2, f32, lowp> lowp_mat3x2;
    +
    594  typedef mat<3, 3, f32, lowp> lowp_mat3x3;
    +
    595  typedef mat<3, 4, f32, lowp> lowp_mat3x4;
    +
    596  typedef mat<4, 2, f32, lowp> lowp_mat4x2;
    +
    597  typedef mat<4, 3, f32, lowp> lowp_mat4x3;
    +
    598  typedef mat<4, 4, f32, lowp> lowp_mat4x4;
    +
    599 
    +
    600  typedef mat<2, 2, f32, mediump> mediump_mat2x2;
    +
    601  typedef mat<2, 3, f32, mediump> mediump_mat2x3;
    +
    602  typedef mat<2, 4, f32, mediump> mediump_mat2x4;
    +
    603  typedef mat<3, 2, f32, mediump> mediump_mat3x2;
    +
    604  typedef mat<3, 3, f32, mediump> mediump_mat3x3;
    +
    605  typedef mat<3, 4, f32, mediump> mediump_mat3x4;
    +
    606  typedef mat<4, 2, f32, mediump> mediump_mat4x2;
    +
    607  typedef mat<4, 3, f32, mediump> mediump_mat4x3;
    +
    608  typedef mat<4, 4, f32, mediump> mediump_mat4x4;
    +
    609 
    +
    610  typedef mat<2, 2, f32, highp> highp_mat2x2;
    +
    611  typedef mat<2, 3, f32, highp> highp_mat2x3;
    +
    612  typedef mat<2, 4, f32, highp> highp_mat2x4;
    +
    613  typedef mat<3, 2, f32, highp> highp_mat3x2;
    +
    614  typedef mat<3, 3, f32, highp> highp_mat3x3;
    +
    615  typedef mat<3, 4, f32, highp> highp_mat3x4;
    +
    616  typedef mat<4, 2, f32, highp> highp_mat4x2;
    +
    617  typedef mat<4, 3, f32, highp> highp_mat4x3;
    +
    618  typedef mat<4, 4, f32, highp> highp_mat4x4;
    +
    619 
    +
    620  typedef mat<2, 2, f32, defaultp> mat2x2;
    +
    621  typedef mat<3, 2, f32, defaultp> mat3x2;
    +
    622  typedef mat<4, 2, f32, defaultp> mat4x2;
    +
    623  typedef mat<2, 3, f32, defaultp> mat2x3;
    +
    624  typedef mat<3, 3, f32, defaultp> mat3x3;
    +
    625  typedef mat<4, 3, f32, defaultp> mat4x3;
    +
    626  typedef mat<2, 4, f32, defaultp> mat2x4;
    +
    627  typedef mat<3, 4, f32, defaultp> mat3x4;
    +
    628  typedef mat<4, 4, f32, defaultp> mat4x4;
    +
    629 
    +
    630  typedef mat<2, 2, f32, lowp> lowp_fmat2x2;
    +
    631  typedef mat<2, 3, f32, lowp> lowp_fmat2x3;
    +
    632  typedef mat<2, 4, f32, lowp> lowp_fmat2x4;
    +
    633  typedef mat<3, 2, f32, lowp> lowp_fmat3x2;
    +
    634  typedef mat<3, 3, f32, lowp> lowp_fmat3x3;
    +
    635  typedef mat<3, 4, f32, lowp> lowp_fmat3x4;
    +
    636  typedef mat<4, 2, f32, lowp> lowp_fmat4x2;
    +
    637  typedef mat<4, 3, f32, lowp> lowp_fmat4x3;
    +
    638  typedef mat<4, 4, f32, lowp> lowp_fmat4x4;
    +
    639 
    +
    640  typedef mat<2, 2, f32, mediump> mediump_fmat2x2;
    +
    641  typedef mat<2, 3, f32, mediump> mediump_fmat2x3;
    +
    642  typedef mat<2, 4, f32, mediump> mediump_fmat2x4;
    +
    643  typedef mat<3, 2, f32, mediump> mediump_fmat3x2;
    +
    644  typedef mat<3, 3, f32, mediump> mediump_fmat3x3;
    +
    645  typedef mat<3, 4, f32, mediump> mediump_fmat3x4;
    +
    646  typedef mat<4, 2, f32, mediump> mediump_fmat4x2;
    +
    647  typedef mat<4, 3, f32, mediump> mediump_fmat4x3;
    +
    648  typedef mat<4, 4, f32, mediump> mediump_fmat4x4;
    +
    649 
    +
    650  typedef mat<2, 2, f32, highp> highp_fmat2x2;
    +
    651  typedef mat<2, 3, f32, highp> highp_fmat2x3;
    +
    652  typedef mat<2, 4, f32, highp> highp_fmat2x4;
    +
    653  typedef mat<3, 2, f32, highp> highp_fmat3x2;
    +
    654  typedef mat<3, 3, f32, highp> highp_fmat3x3;
    +
    655  typedef mat<3, 4, f32, highp> highp_fmat3x4;
    +
    656  typedef mat<4, 2, f32, highp> highp_fmat4x2;
    +
    657  typedef mat<4, 3, f32, highp> highp_fmat4x3;
    +
    658  typedef mat<4, 4, f32, highp> highp_fmat4x4;
    +
    659 
    +
    660  typedef mat<2, 2, f32, defaultp> fmat2x2;
    +
    661  typedef mat<3, 2, f32, defaultp> fmat3x2;
    +
    662  typedef mat<4, 2, f32, defaultp> fmat4x2;
    +
    663  typedef mat<2, 3, f32, defaultp> fmat2x3;
    +
    664  typedef mat<3, 3, f32, defaultp> fmat3x3;
    +
    665  typedef mat<4, 3, f32, defaultp> fmat4x3;
    +
    666  typedef mat<2, 4, f32, defaultp> fmat2x4;
    +
    667  typedef mat<3, 4, f32, defaultp> fmat3x4;
    +
    668  typedef mat<4, 4, f32, defaultp> fmat4x4;
    +
    669 
    +
    670  typedef mat<2, 2, f32, lowp> lowp_f32mat2x2;
    +
    671  typedef mat<2, 3, f32, lowp> lowp_f32mat2x3;
    +
    672  typedef mat<2, 4, f32, lowp> lowp_f32mat2x4;
    +
    673  typedef mat<3, 2, f32, lowp> lowp_f32mat3x2;
    +
    674  typedef mat<3, 3, f32, lowp> lowp_f32mat3x3;
    +
    675  typedef mat<3, 4, f32, lowp> lowp_f32mat3x4;
    +
    676  typedef mat<4, 2, f32, lowp> lowp_f32mat4x2;
    +
    677  typedef mat<4, 3, f32, lowp> lowp_f32mat4x3;
    +
    678  typedef mat<4, 4, f32, lowp> lowp_f32mat4x4;
    +
    679 
    +
    680  typedef mat<2, 2, f32, mediump> mediump_f32mat2x2;
    +
    681  typedef mat<2, 3, f32, mediump> mediump_f32mat2x3;
    +
    682  typedef mat<2, 4, f32, mediump> mediump_f32mat2x4;
    +
    683  typedef mat<3, 2, f32, mediump> mediump_f32mat3x2;
    +
    684  typedef mat<3, 3, f32, mediump> mediump_f32mat3x3;
    +
    685  typedef mat<3, 4, f32, mediump> mediump_f32mat3x4;
    +
    686  typedef mat<4, 2, f32, mediump> mediump_f32mat4x2;
    +
    687  typedef mat<4, 3, f32, mediump> mediump_f32mat4x3;
    +
    688  typedef mat<4, 4, f32, mediump> mediump_f32mat4x4;
    +
    689 
    +
    690  typedef mat<2, 2, f32, highp> highp_f32mat2x2;
    +
    691  typedef mat<2, 3, f32, highp> highp_f32mat2x3;
    +
    692  typedef mat<2, 4, f32, highp> highp_f32mat2x4;
    +
    693  typedef mat<3, 2, f32, highp> highp_f32mat3x2;
    +
    694  typedef mat<3, 3, f32, highp> highp_f32mat3x3;
    +
    695  typedef mat<3, 4, f32, highp> highp_f32mat3x4;
    +
    696  typedef mat<4, 2, f32, highp> highp_f32mat4x2;
    +
    697  typedef mat<4, 3, f32, highp> highp_f32mat4x3;
    +
    698  typedef mat<4, 4, f32, highp> highp_f32mat4x4;
    +
    699 
    +
    700  typedef mat<2, 2, f32, defaultp> f32mat2x2;
    +
    701  typedef mat<3, 2, f32, defaultp> f32mat3x2;
    +
    702  typedef mat<4, 2, f32, defaultp> f32mat4x2;
    +
    703  typedef mat<2, 3, f32, defaultp> f32mat2x3;
    +
    704  typedef mat<3, 3, f32, defaultp> f32mat3x3;
    +
    705  typedef mat<4, 3, f32, defaultp> f32mat4x3;
    +
    706  typedef mat<2, 4, f32, defaultp> f32mat2x4;
    +
    707  typedef mat<3, 4, f32, defaultp> f32mat3x4;
    +
    708  typedef mat<4, 4, f32, defaultp> f32mat4x4;
    +
    709 
    +
    710  typedef mat<2, 2, double, lowp> lowp_dmat2x2;
    +
    711  typedef mat<2, 3, double, lowp> lowp_dmat2x3;
    +
    712  typedef mat<2, 4, double, lowp> lowp_dmat2x4;
    +
    713  typedef mat<3, 2, double, lowp> lowp_dmat3x2;
    +
    714  typedef mat<3, 3, double, lowp> lowp_dmat3x3;
    +
    715  typedef mat<3, 4, double, lowp> lowp_dmat3x4;
    +
    716  typedef mat<4, 2, double, lowp> lowp_dmat4x2;
    +
    717  typedef mat<4, 3, double, lowp> lowp_dmat4x3;
    +
    718  typedef mat<4, 4, double, lowp> lowp_dmat4x4;
    +
    719 
    +
    720  typedef mat<2, 2, double, mediump> mediump_dmat2x2;
    +
    721  typedef mat<2, 3, double, mediump> mediump_dmat2x3;
    +
    722  typedef mat<2, 4, double, mediump> mediump_dmat2x4;
    +
    723  typedef mat<3, 2, double, mediump> mediump_dmat3x2;
    +
    724  typedef mat<3, 3, double, mediump> mediump_dmat3x3;
    +
    725  typedef mat<3, 4, double, mediump> mediump_dmat3x4;
    +
    726  typedef mat<4, 2, double, mediump> mediump_dmat4x2;
    +
    727  typedef mat<4, 3, double, mediump> mediump_dmat4x3;
    +
    728  typedef mat<4, 4, double, mediump> mediump_dmat4x4;
    +
    729 
    +
    730  typedef mat<2, 2, double, highp> highp_dmat2x2;
    +
    731  typedef mat<2, 3, double, highp> highp_dmat2x3;
    +
    732  typedef mat<2, 4, double, highp> highp_dmat2x4;
    +
    733  typedef mat<3, 2, double, highp> highp_dmat3x2;
    +
    734  typedef mat<3, 3, double, highp> highp_dmat3x3;
    +
    735  typedef mat<3, 4, double, highp> highp_dmat3x4;
    +
    736  typedef mat<4, 2, double, highp> highp_dmat4x2;
    +
    737  typedef mat<4, 3, double, highp> highp_dmat4x3;
    +
    738  typedef mat<4, 4, double, highp> highp_dmat4x4;
    +
    739 
    +
    740  typedef mat<2, 2, double, defaultp> dmat2x2;
    +
    741  typedef mat<3, 2, double, defaultp> dmat3x2;
    +
    742  typedef mat<4, 2, double, defaultp> dmat4x2;
    +
    743  typedef mat<2, 3, double, defaultp> dmat2x3;
    +
    744  typedef mat<3, 3, double, defaultp> dmat3x3;
    +
    745  typedef mat<4, 3, double, defaultp> dmat4x3;
    +
    746  typedef mat<2, 4, double, defaultp> dmat2x4;
    +
    747  typedef mat<3, 4, double, defaultp> dmat3x4;
    +
    748  typedef mat<4, 4, double, defaultp> dmat4x4;
    +
    749 
    +
    750  typedef mat<2, 2, f64, lowp> lowp_f64mat2x2;
    +
    751  typedef mat<2, 3, f64, lowp> lowp_f64mat2x3;
    +
    752  typedef mat<2, 4, f64, lowp> lowp_f64mat2x4;
    +
    753  typedef mat<3, 2, f64, lowp> lowp_f64mat3x2;
    +
    754  typedef mat<3, 3, f64, lowp> lowp_f64mat3x3;
    +
    755  typedef mat<3, 4, f64, lowp> lowp_f64mat3x4;
    +
    756  typedef mat<4, 2, f64, lowp> lowp_f64mat4x2;
    +
    757  typedef mat<4, 3, f64, lowp> lowp_f64mat4x3;
    +
    758  typedef mat<4, 4, f64, lowp> lowp_f64mat4x4;
    +
    759 
    +
    760  typedef mat<2, 2, f64, mediump> mediump_f64mat2x2;
    +
    761  typedef mat<2, 3, f64, mediump> mediump_f64mat2x3;
    +
    762  typedef mat<2, 4, f64, mediump> mediump_f64mat2x4;
    +
    763  typedef mat<3, 2, f64, mediump> mediump_f64mat3x2;
    +
    764  typedef mat<3, 3, f64, mediump> mediump_f64mat3x3;
    +
    765  typedef mat<3, 4, f64, mediump> mediump_f64mat3x4;
    +
    766  typedef mat<4, 2, f64, mediump> mediump_f64mat4x2;
    +
    767  typedef mat<4, 3, f64, mediump> mediump_f64mat4x3;
    +
    768  typedef mat<4, 4, f64, mediump> mediump_f64mat4x4;
    +
    769 
    +
    770  typedef mat<2, 2, f64, highp> highp_f64mat2x2;
    +
    771  typedef mat<2, 3, f64, highp> highp_f64mat2x3;
    +
    772  typedef mat<2, 4, f64, highp> highp_f64mat2x4;
    +
    773  typedef mat<3, 2, f64, highp> highp_f64mat3x2;
    +
    774  typedef mat<3, 3, f64, highp> highp_f64mat3x3;
    +
    775  typedef mat<3, 4, f64, highp> highp_f64mat3x4;
    +
    776  typedef mat<4, 2, f64, highp> highp_f64mat4x2;
    +
    777  typedef mat<4, 3, f64, highp> highp_f64mat4x3;
    +
    778  typedef mat<4, 4, f64, highp> highp_f64mat4x4;
    +
    779 
    +
    780  typedef mat<2, 2, f64, defaultp> f64mat2x2;
    +
    781  typedef mat<3, 2, f64, defaultp> f64mat3x2;
    +
    782  typedef mat<4, 2, f64, defaultp> f64mat4x2;
    +
    783  typedef mat<2, 3, f64, defaultp> f64mat2x3;
    +
    784  typedef mat<3, 3, f64, defaultp> f64mat3x3;
    +
    785  typedef mat<4, 3, f64, defaultp> f64mat4x3;
    +
    786  typedef mat<2, 4, f64, defaultp> f64mat2x4;
    +
    787  typedef mat<3, 4, f64, defaultp> f64mat3x4;
    +
    788  typedef mat<4, 4, f64, defaultp> f64mat4x4;
    +
    789 
    +
    790  // Quaternion
    +
    791 
    +
    792  typedef qua<float, lowp> lowp_quat;
    +
    793  typedef qua<float, mediump> mediump_quat;
    +
    794  typedef qua<float, highp> highp_quat;
    +
    795  typedef qua<float, defaultp> quat;
    +
    796 
    +
    797  typedef qua<float, lowp> lowp_fquat;
    +
    798  typedef qua<float, mediump> mediump_fquat;
    +
    799  typedef qua<float, highp> highp_fquat;
    +
    800  typedef qua<float, defaultp> fquat;
    +
    801 
    +
    802  typedef qua<f32, lowp> lowp_f32quat;
    +
    803  typedef qua<f32, mediump> mediump_f32quat;
    +
    804  typedef qua<f32, highp> highp_f32quat;
    +
    805  typedef qua<f32, defaultp> f32quat;
    +
    806 
    +
    807  typedef qua<double, lowp> lowp_dquat;
    +
    808  typedef qua<double, mediump> mediump_dquat;
    +
    809  typedef qua<double, highp> highp_dquat;
    +
    810  typedef qua<double, defaultp> dquat;
    +
    811 
    +
    812  typedef qua<f64, lowp> lowp_f64quat;
    +
    813  typedef qua<f64, mediump> mediump_f64quat;
    +
    814  typedef qua<f64, highp> highp_f64quat;
    +
    815  typedef qua<f64, defaultp> f64quat;
    +
    816 }//namespace glm
    +
    817 
    +
    818 
    +
    vec< 1, u16, highp > highp_u16vec1
    High qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:354
    +
    mat< 4, 2, float, mediump > mediump_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 2, f32, highp > highp_f32mat4x2
    High single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:696
    +
    mat< 4, 3, float, highp > highp_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 4, float, defaultp > mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    vec< 4, unsigned int, mediump > mediump_uvec4
    4 components vector of medium qualifier unsigned integer numbers.
    +
    uint64 highp_u64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:133
    +
    vec< 1, f64, mediump > mediump_f64vec1
    Medium double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:491
    +
    vec< 3, f32, defaultp > f32vec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:463
    +
    mat< 2, 2, f32, mediump > mediump_fmat2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:528
    +
    double highp_float64_t
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:175
    +
    mat< 4, 4, f64, defaultp > f64mat4
    Double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:586
    +
    vec< 1, int, mediump > mediump_ivec1
    1 component vector of signed integer values.
    +
    vec< 4, double, mediump > mediump_dvec4
    4 components vector of medium double-qualifier floating-point numbers.
    +
    vec< 3, float, highp > highp_vec3
    3 components vector of high single-qualifier floating-point numbers.
    +
    mat< 4, 2, double, lowp > lowp_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 2, 2, float, defaultp > mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    mat< 2, 2, f64, defaultp > f64mat2
    Double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:584
    +
    mat< 4, 3, f32, mediump > mediump_fmat4x3
    Medium single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:647
    +
    mat< 3, 3, f32, mediump > mediump_f32mat3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:545
    +
    uint32 mediump_uint32_t
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:127
    +
    uint64 lowp_uint64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:136
    +
    mat< 3, 3, float, mediump > mediump_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, f32, mediump > mediump_fmat2x2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:640
    +
    vec< 1, f32, defaultp > f32vec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:461
    +
    mat< 4, 4, f32, highp > highp_f32mat4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:550
    +
    qua< float, highp > highp_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    double highp_float64
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:170
    +
    mat< 3, 2, double, mediump > mediump_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    uint8 lowp_u8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:89
    +
    mat< 3, 2, double, lowp > lowp_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    uint32 u32
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:120
    +
    mat< 3, 3, f64, defaultp > f64mat3
    Double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:585
    +
    vec< 2, int, highp > highp_ivec2
    2 components vector of high qualifier signed integer numbers.
    +
    mat< 4, 3, double, highp > highp_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 3, float, mediump > mediump_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    double lowp_float64
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:168
    +
    vec< 1, i32, defaultp > i32vec1
    32 bit signed integer scalar type.
    Definition: fwd.hpp:277
    +
    uint16 highp_uint16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:110
    +
    mat< 2, 4, f64, mediump > mediump_f64mat2x4
    Medium double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:762
    +
    vec< 4, i64, highp > highp_i64vec4
    High qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:295
    +
    mat< 4, 4, double, mediump > mediump_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 4, f64, defaultp > f64mat3x4
    Double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:787
    +
    vec< 4, double, highp > highp_dvec4
    4 components vector of high double-qualifier floating-point numbers.
    +
    mat< 2, 2, f32, defaultp > fmat2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:536
    +
    mat< 3, 4, double, lowp > lowp_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    vec< 3, i16, defaultp > i16vec3
    16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:259
    +
    uint32 lowp_uint32_t
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:126
    +
    vec< 2, float, lowp > lowp_fvec2
    Low single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:427
    +
    uint32 mediump_uint32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:123
    +
    mat< 4, 4, f32, mediump > mediump_fmat4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:530
    +
    uint64 highp_uint64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:138
    +
    mat< 2, 2, f32, lowp > lowp_fmat2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:524
    +
    uint32 lowp_uint32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:122
    +
    vec< 3, float, lowp > lowp_fvec3
    Low single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:428
    +
    vec< 2, float, mediump > mediump_fvec2
    Medium Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:432
    +
    mat< 2, 3, float, highp > highp_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 3, 4, f32, lowp > lowp_fmat3x4
    Low single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:635
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    mat< 2, 2, f64, lowp > lowp_f64mat2x2
    Low double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:750
    +
    vec< 4, i64, defaultp > i64vec4
    64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:300
    +
    vec< 3, u16, defaultp > u16vec3
    Default qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:361
    +
    vec< 1, u64, lowp > lowp_u64vec1
    Low qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:384
    +
    mat< 2, 2, double, mediump > mediump_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 1, u16, mediump > mediump_u16vec1
    Medium qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:349
    +
    vec< 2, float, highp > highp_vec2
    2 components vector of high single-qualifier floating-point numbers.
    +
    vec< 2, i8, defaultp > i8vec2
    8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:238
    +
    mat< 2, 3, f64, mediump > mediump_f64mat2x3
    Medium double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:761
    +
    vec< 4, u32, lowp > lowp_u32vec4
    Low qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:367
    +
    vec< 4, f32, highp > highp_f32vec4
    High single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:459
    +
    vec< 3, unsigned int, defaultp > uvec3
    3 components vector of unsigned integer numbers.
    +
    vec< 1, f32, lowp > lowp_f32vec1
    Low single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:446
    +
    mat< 2, 3, f32, highp > highp_f32mat2x3
    High single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:691
    +
    int64 highp_int64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:80
    +
    vec< 2, i32, mediump > mediump_i32vec2
    Medium qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:268
    +
    vec< 1, double, lowp > lowp_dvec1
    1 component vector of double-precision floating-point numbers using low precision arithmetic in term ...
    +
    mat< 4, 4, f64, lowp > lowp_f64mat4
    Low double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:574
    +
    mat< 4, 4, f32, defaultp > fmat4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:538
    +
    mat< 3, 4, f32, mediump > mediump_fmat3x4
    Medium single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:645
    +
    mat< 3, 3, double, lowp > lowp_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    int16 lowp_int16_t
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:54
    +
    vec< 4, i32, highp > highp_i32vec4
    High qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:275
    +
    mat< 4, 2, f32, defaultp > f32mat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:702
    +
    mat< 3, 2, f32, highp > highp_fmat3x2
    High single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:653
    +
    mat< 2, 4, float, defaultp > mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers.
    +
    mat< 2, 3, f32, mediump > mediump_fmat2x3
    Medium single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:641
    +
    uint32 mediump_u32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:118
    +
    mat< 3, 2, f32, lowp > lowp_fmat3x2
    Low single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:633
    +
    mat< 2, 3, float, lowp > lowp_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 2, 2, float, lowp > lowp_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 2, f64, mediump > mediump_f64mat4x2
    Medium double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:766
    +
    vec< 4, bool, lowp > lowp_bvec4
    4 components vector of low qualifier bool numbers.
    +
    vec< 2, u16, highp > highp_u16vec2
    High qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:355
    +
    vec< 1, f64, highp > highp_f64vec1
    High double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:496
    +
    vec< 3, int, defaultp > ivec3
    3 components vector of signed integer numbers.
    Definition: vector_int3.hpp:15
    +
    vec< 2, i16, mediump > mediump_i16vec2
    Medium qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:248
    +
    mat< 2, 4, f32, highp > highp_fmat2x4
    High single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:652
    +
    vec< 3, u64, defaultp > u64vec3
    Default qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:401
    +
    uint8 lowp_uint8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:94
    +
    mat< 3, 2, f32, lowp > lowp_f32mat3x2
    Low single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:673
    +
    vec< 4, bool, mediump > mediump_bvec4
    4 components vector of medium qualifier bool numbers.
    +
    mat< 3, 2, float, defaultp > mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers.
    +
    uint64 lowp_u64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:131
    +
    vec< 1, unsigned int, mediump > mediump_uvec1
    1 component vector of unsigned integer values.
    +
    vec< 3, i64, highp > highp_i64vec3
    High qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:294
    +
    int8 mediump_int8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:37
    +
    int64 lowp_int64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:78
    +
    vec< 1, float, lowp > lowp_vec1
    1 component vector of single-precision floating-point numbers using low precision arithmetic in term ...
    +
    mat< 4, 2, f32, mediump > mediump_f32mat4x2
    Medium single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:686
    +
    mat< 3, 3, float, highp > highp_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    vec< 3, f64, lowp > lowp_f64vec3
    Low double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:488
    +
    mat< 3, 4, float, defaultp > mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 3, float, lowp > lowp_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 2, u64, defaultp > u64vec2
    Default qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:400
    +
    vec< 3, i64, lowp > lowp_i64vec3
    Low qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:284
    +
    vec< 2, i8, mediump > mediump_i8vec2
    Medium qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:228
    +
    vec< 4, float, lowp > lowp_vec4
    4 components vector of low single-qualifier floating-point numbers.
    +
    mat< 4, 3, float, defaultp > mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 4, f32, defaultp > f32mat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:707
    +
    mat< 4, 2, double, mediump > mediump_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 2, float, lowp > lowp_vec2
    2 components vector of low single-qualifier floating-point numbers.
    +
    vec< 3, i16, highp > highp_i16vec3
    High qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:254
    +
    mat< 2, 3, double, mediump > mediump_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 3, i16, mediump > mediump_i16vec3
    Medium qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:249
    +
    uint64 u64
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:134
    +
    vec< 2, int, mediump > mediump_ivec2
    2 components vector of medium qualifier signed integer numbers.
    +
    mat< 3, 2, f32, mediump > mediump_fmat3x2
    Medium single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:643
    +
    vec< 1, f64, defaultp > f64vec1
    Double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:501
    +
    vec< 1, i64, mediump > mediump_i64vec1
    Medium qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:287
    +
    vec< 1, i16, defaultp > i16vec1
    16 bit signed integer scalar type.
    Definition: fwd.hpp:257
    +
    mat< 2, 2, double, lowp > lowp_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 2, 4, double, highp > highp_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, f64, lowp > lowp_f64mat3x3
    Low double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:754
    +
    vec< 2, f64, lowp > lowp_f64vec2
    Low double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:487
    +
    mat< 2, 3, f32, highp > highp_fmat2x3
    High single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:651
    +
    mat< 4, 3, f32, lowp > lowp_f32mat4x3
    Low single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:677
    +
    mat< 3, 3, f64, lowp > lowp_f64mat3
    Low double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:573
    +
    vec< 3, u64, mediump > mediump_u64vec3
    Medium qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:391
    +
    double mediump_float64
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:169
    +
    double float64
    Double-qualifier floating-point scalar.
    Definition: fwd.hpp:171
    +
    vec< 2, bool, highp > highp_bvec2
    2 components vector of high qualifier bool numbers.
    +
    vec< 2, i16, highp > highp_i16vec2
    High qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:253
    +
    mat< 4, 2, f32, defaultp > fmat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:662
    +
    mat< 2, 3, f64, lowp > lowp_f64mat2x3
    Low double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:751
    +
    mat< 3, 4, f32, defaultp > fmat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:667
    +
    mat< 3, 3, double, lowp > lowp_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    vec< 3, u32, lowp > lowp_u32vec3
    Low qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:366
    +
    mat< 2, 4, f32, defaultp > f32mat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:706
    +
    vec< 4, float, lowp > lowp_fvec4
    Low single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:429
    +
    vec< 4, f32, mediump > mediump_f32vec4
    Medium single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:454
    +
    vec< 4, i16, defaultp > i16vec4
    16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:260
    +
    uint8 lowp_uint8_t
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:98
    +
    uint32 highp_uint32_t
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:128
    +
    mat< 3, 3, f32, defaultp > fmat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:664
    +
    mat< 3, 4, f64, mediump > mediump_f64mat3x4
    Medium double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:765
    +
    mat< 2, 3, f32, lowp > lowp_fmat2x3
    Low single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:631
    +
    vec< 1, u32, lowp > lowp_u32vec1
    Low qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:364
    +
    mat< 3, 2, float, lowp > lowp_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 2, 3, f32, defaultp > f32mat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:703
    +
    vec< 1, i32, mediump > mediump_i32vec1
    Medium qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:267
    +
    vec< 4, u16, highp > highp_u16vec4
    High qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:357
    +
    vec< 1, i32, lowp > lowp_i32vec1
    Low qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:262
    +
    vec< 1, i64, lowp > lowp_i64vec1
    Low qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:282
    +
    vec< 1, u32, highp > highp_u32vec1
    High qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:374
    +
    vec< 1, bool, highp > highp_bvec1
    1 component vector of bool values.
    +
    int16 mediump_int16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:51
    +
    uint16 mediump_u16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:104
    +
    qua< f64, defaultp > f64quat
    Double-qualifier floating-point quaternion.
    Definition: fwd.hpp:815
    +
    vec< 4, float, mediump > mediump_vec4
    4 components vector of medium single-qualifier floating-point numbers.
    +
    vec< 3, f64, mediump > mediump_f64vec3
    Medium double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:493
    +
    qua< double, defaultp > dquat
    Quaternion of double-precision floating-point numbers.
    +
    vec< 1, u64, defaultp > u64vec1
    Default qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:399
    +
    int64 int64_t
    64 bit signed integer type.
    Definition: fwd.hpp:85
    +
    vec< 1, u8, defaultp > u8vec1
    Default qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:339
    +
    vec< 1, i8, highp > highp_i8vec1
    High qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:232
    +
    vec< 4, u8, defaultp > u8vec4
    Default qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:342
    +
    int8 int8_t
    8 bit signed integer type.
    Definition: fwd.hpp:43
    +
    int32 i32
    32 bit signed integer type.
    Definition: fwd.hpp:62
    +
    vec< 1, u32, mediump > mediump_u32vec1
    Medium qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:369
    +
    mat< 2, 2, f64, defaultp > f64mat2x2
    Double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:780
    +
    mat< 2, 2, f32, lowp > lowp_f32mat2x2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:670
    +
    vec< 4, f32, lowp > lowp_f32vec4
    Low single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:449
    +
    vec< 3, float, highp > highp_fvec3
    High Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:438
    +
    mat< 4, 2, f64, lowp > lowp_f64mat4x2
    Low double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:756
    +
    mat< 3, 3, f32, mediump > mediump_fmat3x3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:644
    +
    vec< 1, i64, highp > highp_i64vec1
    High qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:292
    +
    vec< 4, i8, defaultp > i8vec4
    8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:240
    +
    vec< 1, int, highp > highp_ivec1
    1 component vector of signed integer values.
    +
    vec< 3, bool, mediump > mediump_bvec3
    3 components vector of medium qualifier bool numbers.
    +
    int32 highp_int32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:66
    +
    mat< 2, 3, f32, mediump > mediump_f32mat2x3
    Medium single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:681
    +
    mat< 3, 4, double, mediump > mediump_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 2, f64, lowp > lowp_f64mat3x2
    Low double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:753
    +
    mat< 4, 2, float, defaultp > mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers.
    +
    vec< 1, float, mediump > mediump_vec1
    1 component vector of single-precision floating-point numbers using medium precision arithmetic in te...
    +
    uint32 highp_u32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:119
    +
    int32 highp_i32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:61
    +
    vec< 4, int, defaultp > ivec4
    4 components vector of signed integer numbers.
    Definition: vector_int4.hpp:15
    +
    mat< 4, 4, float, mediump > mediump_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 4, u64, defaultp > u64vec4
    Default qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:402
    +
    vec< 2, int, lowp > lowp_ivec2
    2 components vector of low qualifier signed integer numbers.
    +
    vec< 4, f32, defaultp > f32vec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:464
    +
    mat< 2, 3, f64, defaultp > f64mat2x3
    Double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:783
    +
    mat< 4, 4, f64, mediump > mediump_f64mat4x4
    Medium double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:768
    +
    mat< 2, 2, double, mediump > mediump_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 4, u16, lowp > lowp_u16vec4
    Low qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:347
    +
    vec< 4, unsigned int, highp > highp_uvec4
    4 components vector of high qualifier unsigned integer numbers.
    +
    uint32 highp_uint32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:124
    +
    mat< 4, 4, f32, lowp > lowp_f32mat4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:542
    +
    mat< 3, 2, f64, defaultp > f64mat3x2
    Double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:781
    +
    float mediump_float32
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:153
    +
    vec< 1, u32, defaultp > u32vec1
    Default qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:379
    +
    mat< 4, 2, float, lowp > lowp_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 4, f64, mediump > mediump_f64vec4
    Medium double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:494
    +
    mat< 3, 3, f64, defaultp > f64mat3x3
    Double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:784
    +
    float highp_float32
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:154
    +
    uint8 highp_uint8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:96
    +
    int8 highp_i8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:33
    +
    mat< 2, 4, f64, lowp > lowp_f64mat2x4
    Low double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:752
    +
    mat< 3, 4, f64, lowp > lowp_f64mat3x4
    Low double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:755
    +
    vec< 3, float, lowp > lowp_vec3
    3 components vector of low single-qualifier floating-point numbers.
    +
    mat< 3, 4, float, highp > highp_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 4, float, lowp > lowp_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    int8 mediump_i8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:32
    +
    int64 highp_int64_t
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:84
    +
    mat< 4, 4, f32, defaultp > f32mat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:708
    +
    float float32_t
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:160
    +
    mat< 2, 2, f32, defaultp > f32mat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:700
    +
    vec< 2, i64, lowp > lowp_i64vec2
    Low qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:283
    +
    mat< 2, 4, f32, lowp > lowp_f32mat2x4
    Low single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:672
    +
    vec< 4, bool, highp > highp_bvec4
    4 components vector of high qualifier bool numbers.
    +
    uint32 uint32_t
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:129
    +
    mat< 3, 3, f32, highp > highp_f32mat3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:549
    +
    mat< 3, 3, f64, mediump > mediump_f64mat3x3
    Medium double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:764
    +
    vec< 2, bool, defaultp > bvec2
    2 components vector of boolean.
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    uint8 u8
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:92
    +
    vec< 3, i32, highp > highp_i32vec3
    High qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:274
    +
    float float32
    Single-qualifier floating-point scalar.
    Definition: fwd.hpp:155
    +
    vec< 4, f32, defaultp > fvec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:444
    +
    vec< 1, i32, highp > highp_i32vec1
    High qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:272
    +
    mat< 3, 3, double, highp > highp_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, f32, lowp > lowp_f32mat3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:541
    +
    vec< 1, u16, defaultp > u16vec1
    Default qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:359
    +
    mat< 2, 4, float, lowp > lowp_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 1, double, defaultp > dvec1
    1 components vector of double-precision floating-point numbers.
    +
    vec< 1, i8, defaultp > i8vec1
    8 bit signed integer scalar type.
    Definition: fwd.hpp:237
    +
    vec< 3, i32, mediump > mediump_i32vec3
    Medium qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:269
    +
    vec< 2, i32, defaultp > i32vec2
    32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:278
    +
    vec< 2, bool, mediump > mediump_bvec2
    2 components vector of medium qualifier bool numbers.
    +
    vec< 2, i16, lowp > lowp_i16vec2
    Low qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:243
    +
    vec< 2, float, mediump > mediump_vec2
    2 components vector of medium single-qualifier floating-point numbers.
    +
    vec< 2, u64, mediump > mediump_u64vec2
    Medium qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:390
    +
    vec< 4, u8, lowp > lowp_u8vec4
    Low qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:327
    +
    mat< 3, 3, f32, highp > highp_f32mat3x3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:694
    +
    vec< 1, u8, highp > highp_u8vec1
    High qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:334
    +
    uint8 highp_uint8_t
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:100
    +
    vec< 4, u32, mediump > mediump_u32vec4
    Medium qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:372
    +
    mat< 2, 2, f32, highp > highp_f32mat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:690
    +
    vec< 4, f64, highp > highp_f64vec4
    High double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:499
    +
    mat< 3, 3, double, highp > highp_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 3, u8, lowp > lowp_u8vec3
    Low qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:326
    +
    float highp_f32
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:149
    +
    uint64 mediump_uint64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:137
    +
    int32 highp_int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:70
    +
    mat< 2, 3, f32, lowp > lowp_f32mat2x3
    Low single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:671
    +
    vec< 3, f64, defaultp > f64vec3
    Double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:503
    +
    vec< 3, u16, mediump > mediump_u16vec3
    Medium qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:351
    +
    mat< 2, 4, f64, defaultp > f64mat2x4
    Double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:786
    +
    qua< double, mediump > mediump_dquat
    Quaternion of medium double-qualifier floating-point numbers using high precision arithmetic in term ...
    +
    mat< 3, 3, f32, defaultp > f32mat3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:553
    +
    mat< 2, 2, f64, mediump > mediump_f64mat2x2
    Medium double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:760
    +
    vec< 1, double, highp > highp_dvec1
    1 component vector of double-precision floating-point numbers using high precision arithmetic in term...
    +
    mat< 3, 3, float, defaultp > mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    uint64 mediump_u64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:132
    +
    mat< 4, 4, float, mediump > mediump_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 4, i16, highp > highp_i16vec4
    High qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:255
    +
    mat< 4, 4, f32, lowp > lowp_fmat4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:526
    +
    vec< 2, u32, mediump > mediump_u32vec2
    Medium qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:370
    +
    vec< 3, u64, highp > highp_u64vec3
    High qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:396
    +
    vec< 2, unsigned int, defaultp > uvec2
    2 components vector of unsigned integer numbers.
    +
    uint16 lowp_u16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:103
    +
    vec< 3, i16, lowp > lowp_i16vec3
    Low qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:244
    +
    vec< 3, u16, lowp > lowp_u16vec3
    Low qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:346
    +
    vec< 1, unsigned int, defaultp > uvec1
    1 component vector of unsigned integer numbers.
    +
    vec< 3, f32, lowp > lowp_f32vec3
    Low single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:448
    +
    mat< 4, 4, f32, highp > highp_fmat4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:534
    +
    mat< 3, 3, f32, lowp > lowp_fmat3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:525
    +
    int16 highp_i16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:47
    +
    qua< f32, mediump > mediump_f32quat
    Medium single-qualifier floating-point quaternion.
    Definition: fwd.hpp:803
    +
    int8 highp_int8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:38
    +
    mat< 4, 4, f64, defaultp > f64mat4x4
    Double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:788
    +
    mat< 4, 3, f32, defaultp > fmat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:665
    +
    mat< 2, 4, f32, lowp > lowp_fmat2x4
    Low single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:632
    +
    mat< 3, 3, f64, highp > highp_f64mat3
    High double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:581
    +
    vec< 3, i8, mediump > mediump_i8vec3
    Medium qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:229
    +
    vec< 1, f32, highp > highp_f32vec1
    High single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:456
    +
    vec< 3, i8, lowp > lowp_i8vec3
    Low qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:224
    +
    mat< 3, 3, double, mediump > mediump_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 3, f64, lowp > lowp_f64mat4x3
    Low double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:757
    +
    vec< 4, u64, highp > highp_u64vec4
    High qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:397
    +
    mat< 3, 3, float, mediump > mediump_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 3, f32, defaultp > fvec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:443
    +
    vec< 2, i16, defaultp > i16vec2
    16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:258
    +
    vec< 1, bool, mediump > mediump_bvec1
    1 component vector of bool values.
    +
    mat< 4, 4, double, lowp > lowp_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 4, double, highp > highp_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 3, f32, defaultp > f32mat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:705
    +
    mat< 2, 2, f32, defaultp > f32mat2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:552
    +
    mat< 2, 4, f32, mediump > mediump_fmat2x4
    Medium single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:642
    +
    vec< 2, u16, mediump > mediump_u16vec2
    Medium qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:350
    +
    mat< 4, 4, f32, lowp > lowp_f32mat4x4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:678
    +
    vec< 2, unsigned int, lowp > lowp_uvec2
    2 components vector of low qualifier unsigned integer numbers.
    +
    mat< 3, 3, float, lowp > lowp_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 2, u8, lowp > lowp_u8vec2
    Low qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:325
    +
    vec< 2, double, lowp > lowp_dvec2
    2 components vector of low double-qualifier floating-point numbers.
    +
    mat< 3, 3, f64, mediump > mediump_f64mat3
    Medium double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:577
    +
    int16 lowp_i16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:45
    +
    vec< 1, float, defaultp > vec1
    1 components vector of single-precision floating-point numbers.
    +
    vec< 3, unsigned int, mediump > mediump_uvec3
    3 components vector of medium qualifier unsigned integer numbers.
    +
    mat< 3, 4, f32, highp > highp_fmat3x4
    High single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:655
    +
    double float64_t
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:176
    +
    mat< 4, 4, f64, highp > highp_f64mat4x4
    High double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:778
    +
    mat< 2, 2, float, highp > highp_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 3, f32, mediump > mediump_f32mat4x3
    Medium single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:687
    +
    int16 lowp_int16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:50
    +
    vec< 3, int, lowp > lowp_ivec3
    3 components vector of low qualifier signed integer numbers.
    +
    mat< 3, 3, f32, mediump > mediump_fmat3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:529
    +
    mat< 4, 4, double, mediump > mediump_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, f32, highp > highp_f32mat4x4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:698
    +
    int64 lowp_int64_t
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:82
    +
    vec< 4, int, lowp > lowp_ivec4
    4 components vector of low qualifier signed integer numbers.
    +
    uint16 uint16_t
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:115
    +
    vec< 4, unsigned int, lowp > lowp_uvec4
    4 components vector of low qualifier unsigned integer numbers.
    +
    vec< 2, f64, highp > highp_f64vec2
    High double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:497
    +
    vec< 2, u64, lowp > lowp_u64vec2
    Low qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:385
    +
    mat< 3, 3, f32, defaultp > fmat3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:537
    +
    mat< 3, 2, f32, mediump > mediump_f32mat3x2
    Medium single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:683
    +
    mat< 3, 3, double, defaultp > dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers.
    +
    mat< 3, 3, double, defaultp > dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers.
    +
    mat< 4, 2, f32, lowp > lowp_f32mat4x2
    Low single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:676
    +
    int32 lowp_int32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:64
    +
    vec< 4, i64, mediump > mediump_i64vec4
    Medium qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:290
    +
    vec< 4, bool, defaultp > bvec4
    4 components vector of boolean.
    +
    uint8 uint8_t
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:101
    +
    vec< 1, i8, mediump > mediump_i8vec1
    Medium qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:227
    +
    int32 mediump_int32_t
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:69
    +
    mat< 4, 3, double, mediump > mediump_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    float highp_float32_t
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:159
    +
    mat< 3, 3, f32, defaultp > f32mat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:704
    +
    mat< 4, 4, double, highp > highp_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    uint8 highp_u8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:91
    +
    mat< 2, 3, double, highp > highp_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    uint8 mediump_uint8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:95
    +
    mat< 4, 2, f32, highp > highp_fmat4x2
    High single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:656
    +
    vec< 2, f32, highp > highp_f32vec2
    High single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:457
    +
    mat< 2, 4, double, mediump > mediump_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, double, defaultp > dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers.
    +
    vec< 4, float, highp > highp_vec4
    4 components vector of high single-qualifier floating-point numbers.
    +
    int64 mediump_int64_t
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:83
    +
    vec< 3, u64, lowp > lowp_u64vec3
    Low qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:386
    +
    mat< 4, 4, double, defaultp > dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers.
    +
    vec< 1, bool, lowp > lowp_bvec1
    1 component vector of bool values.
    +
    mat< 2, 2, f64, highp > highp_f64mat2x2
    High double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:770
    +
    vec< 3, u32, highp > highp_u32vec3
    High qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:376
    +
    vec< 3, bool, highp > highp_bvec3
    3 components vector of high qualifier bool numbers.
    +
    int8 highp_int8_t
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:42
    +
    qua< f32, lowp > lowp_f32quat
    Low single-qualifier floating-point quaternion.
    Definition: fwd.hpp:802
    +
    vec< 4, i32, lowp > lowp_i32vec4
    Low qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:265
    +
    vec< 1, i16, highp > highp_i16vec1
    High qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:252
    +
    mat< 4, 4, f32, lowp > lowp_fmat4x4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:638
    +
    mat< 4, 3, double, lowp > lowp_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 2, f32, defaultp > f32mat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:701
    +
    mat< 3, 3, f32, lowp > lowp_f32mat3x3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:674
    +
    vec< 2, i8, lowp > lowp_i8vec2
    Low qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:223
    +
    vec< 4, i32, defaultp > i32vec4
    32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:280
    +
    mat< 2, 2, f32, highp > highp_f32mat2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:548
    +
    float lowp_f32
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:147
    +
    vec< 1, unsigned int, highp > highp_uvec1
    1 component vector of unsigned integer values.
    +
    vec< 4, u16, mediump > mediump_u16vec4
    Medium qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:352
    +
    vec< 3, unsigned int, highp > highp_uvec3
    3 components vector of high qualifier unsigned integer numbers.
    +
    vec< 3, u32, defaultp > u32vec3
    Default qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:381
    +
    vec< 2, u8, defaultp > u8vec2
    Default qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:340
    +
    vec< 3, double, mediump > mediump_dvec3
    3 components vector of medium double-qualifier floating-point numbers.
    +
    int16 mediump_i16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:46
    +
    vec< 2, u64, highp > highp_u64vec2
    High qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:395
    +
    vec< 1, int, lowp > lowp_ivec1
    1 component vector of signed integer values.
    +
    vec< 3, i8, defaultp > i8vec3
    8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:239
    +
    mat< 2, 2, f32, mediump > mediump_f32mat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:680
    +
    mat< 4, 4, float, defaultp > mat4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    uint16 mediump_uint16_t
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:113
    +
    mat< 4, 3, f64, mediump > mediump_f64mat4x3
    Medium double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:767
    +
    vec< 3, u8, defaultp > u8vec3
    Default qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:341
    +
    double highp_f64
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:165
    +
    vec< 3, float, mediump > mediump_fvec3
    Medium Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:433
    +
    int64 mediump_int64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:79
    +
    vec< 4, u64, mediump > mediump_u64vec4
    Medium qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:392
    +
    mat< 2, 2, double, highp > highp_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    uint64 uint64_t
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:143
    +
    vec< 2, u32, highp > highp_u32vec2
    High qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:375
    +
    vec< 1, double, mediump > mediump_dvec1
    1 component vector of double-precision floating-point numbers using medium precision arithmetic in te...
    +
    vec< 1, float, highp > highp_fvec1
    High single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:436
    +
    vec< 4, i64, lowp > lowp_i64vec4
    Low qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:285
    +
    vec< 4, int, highp > highp_ivec4
    4 components vector of high qualifier signed integer numbers.
    +
    vec< 3, i32, defaultp > i32vec3
    32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:279
    +
    mat< 2, 4, f32, highp > highp_f32mat2x4
    High single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:692
    +
    vec< 1, i8, lowp > lowp_i8vec1
    Low qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:222
    +
    mat< 2, 2, f64, highp > highp_f64mat2
    High double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:580
    +
    vec< 3, double, lowp > lowp_dvec3
    3 components vector of low double-qualifier floating-point numbers.
    +
    uint16 lowp_uint16_t
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:112
    +
    vec< 2, double, defaultp > dvec2
    2 components vector of double-precision floating-point numbers.
    +
    mat< 3, 2, f64, highp > highp_f64mat3x2
    High double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:773
    +
    vec< 3, u32, mediump > mediump_u32vec3
    Medium qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:371
    +
    uint16 lowp_uint16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:108
    +
    mat< 3, 3, float, highp > highp_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    vec< 3, u8, highp > highp_u8vec3
    High qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:336
    +
    vec< 4, f64, defaultp > f64vec4
    Double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:504
    +
    vec< 2, i8, highp > highp_i8vec2
    High qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:233
    +
    mat< 2, 2, double, highp > highp_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 3, i32, lowp > lowp_i32vec3
    Low qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:264
    +
    int32 lowp_i32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:59
    +
    mat< 4, 4, f32, mediump > mediump_fmat4x4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:648
    +
    vec< 3, float, defaultp > vec3
    3 components vector of single-precision floating-point numbers.
    +
    mat< 4, 4, double, lowp > lowp_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    int64 mediump_i64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:74
    +
    mat< 4, 4, double, highp > highp_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 4, i16, lowp > lowp_i16vec4
    Low qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:245
    +
    vec< 1, bool, defaultp > bvec1
    1 components vector of boolean.
    +
    mat< 4, 3, f64, highp > highp_f64mat4x3
    High double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:777
    +
    vec< 2, u8, highp > highp_u8vec2
    High qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:335
    +
    vec< 3, int, mediump > mediump_ivec3
    3 components vector of medium qualifier signed integer numbers.
    +
    vec< 3, i8, highp > highp_i8vec3
    High qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:234
    +
    vec< 3, f64, highp > highp_f64vec3
    High double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:498
    +
    vec< 2, f32, defaultp > fvec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:442
    +
    vec< 4, f64, lowp > lowp_f64vec4
    Low double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:489
    +
    qua< double, highp > highp_dquat
    Quaternion of high double-qualifier floating-point numbers using high precision arithmetic in term of...
    +
    vec< 3, f32, mediump > mediump_f32vec3
    Medium single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:453
    +
    double lowp_f64
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:163
    +
    mat< 4, 2, f32, lowp > lowp_fmat4x2
    Low single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:636
    +
    vec< 3, int, highp > highp_ivec3
    3 components vector of high qualifier signed integer numbers.
    +
    mat< 2, 4, f64, highp > highp_f64mat2x4
    High double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:772
    +
    mat< 4, 4, f64, highp > highp_f64mat4
    High double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:582
    +
    vec< 4, i32, mediump > mediump_i32vec4
    Medium qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:270
    +
    mat< 2, 2, f32, lowp > lowp_f32mat2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:540
    +
    int16 int16_t
    16 bit signed integer type.
    Definition: fwd.hpp:57
    +
    mat< 3, 4, double, defaultp > dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers.
    +
    mat< 2, 3, double, lowp > lowp_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    int64 highp_i64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:75
    +
    mat< 2, 4, float, mediump > mediump_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 4, f64, highp > highp_f64mat3x4
    High double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:775
    +
    mat< 3, 3, f32, highp > highp_fmat3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:533
    +
    mat< 3, 3, f32, mediump > mediump_f32mat3x3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:684
    +
    qua< f64, mediump > mediump_f64quat
    Medium double-qualifier floating-point quaternion.
    Definition: fwd.hpp:813
    +
    int32 int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:71
    +
    vec< 2, f64, defaultp > f64vec2
    Double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:502
    +
    vec< 4, unsigned int, defaultp > uvec4
    4 components vector of unsigned integer numbers.
    +
    uint64 lowp_uint64_t
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:140
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    int16 highp_int16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:52
    +
    mat< 2, 2, double, defaultp > dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers.
    +
    vec< 1, i16, mediump > mediump_i16vec1
    Medium qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:247
    +
    mat< 2, 4, double, defaultp > dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers.
    +
    mat< 3, 2, double, highp > highp_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 4, f32, defaultp > fmat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:666
    +
    mat< 2, 2, f32, highp > highp_fmat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:650
    +
    vec< 4, float, highp > highp_fvec4
    High Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:439
    +
    mat< 3, 3, f64, highp > highp_f64mat3x3
    High double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:774
    +
    int32 mediump_i32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:60
    +
    vec< 3, float, mediump > mediump_vec3
    3 components vector of medium single-qualifier floating-point numbers.
    +
    vec< 2, u16, lowp > lowp_u16vec2
    Low qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:345
    +
    vec< 4, u32, highp > highp_u32vec4
    High qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:377
    +
    mat< 4, 2, double, defaultp > dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers.
    +
    vec< 4, double, lowp > lowp_dvec4
    4 components vector of low double-qualifier floating-point numbers.
    +
    float lowp_float32_t
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:157
    +
    uint64 highp_uint64_t
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:142
    +
    vec< 2, f32, lowp > lowp_f32vec2
    Low single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:447
    +
    vec< 4, u32, defaultp > u32vec4
    Default qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:382
    +
    mat< 2, 2, f64, mediump > mediump_f64mat2
    Medium double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:576
    +
    qua< float, mediump > mediump_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    mat< 4, 3, f32, highp > highp_f32mat4x3
    High single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:697
    +
    vec< 3, unsigned int, lowp > lowp_uvec3
    3 components vector of low qualifier unsigned integer numbers.
    +
    mat< 2, 2, float, lowp > lowp_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    qua< f32, defaultp > f32quat
    Single-qualifier floating-point quaternion.
    Definition: fwd.hpp:805
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    qua< double, lowp > lowp_dquat
    Quaternion of double-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    vec< 1, u64, highp > highp_u64vec1
    High qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:394
    +
    mat< 3, 4, float, mediump > mediump_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 3, f64, highp > highp_f64mat2x3
    High double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:771
    +
    vec< 4, i8, lowp > lowp_i8vec4
    Low qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:225
    +
    mat< 4, 3, f32, lowp > lowp_fmat4x3
    Low single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:637
    +
    float f32
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:150
    +
    vec< 2, i32, highp > highp_i32vec2
    High qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:273
    +
    vec< 1, u8, mediump > mediump_u8vec1
    Medium qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:329
    +
    mat< 4, 3, f32, highp > highp_fmat4x3
    High single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:657
    +
    mat< 3, 2, double, defaultp > dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers.
    +
    vec< 4, i16, mediump > mediump_i16vec4
    Medium qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:250
    +
    mat< 4, 2, f64, defaultp > f64mat4x2
    Double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:782
    +
    mat< 2, 3, f32, defaultp > fmat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:663
    +
    mat< 4, 4, f64, mediump > mediump_f64mat4
    Medium double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:578
    +
    vec< 4, u8, mediump > mediump_u8vec4
    Medium qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:332
    +
    vec< 3, double, highp > highp_dvec3
    3 components vector of high double-qualifier floating-point numbers.
    +
    mat< 3, 4, f32, lowp > lowp_f32mat3x4
    Low single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:675
    +
    double mediump_float64_t
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:174
    +
    mat< 2, 2, float, highp > highp_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 3, float, lowp > lowp_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 2, float, highp > highp_fvec2
    High Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:437
    +
    uint16 u16
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:106
    +
    int64 lowp_i64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:73
    +
    vec< 1, unsigned int, lowp > lowp_uvec1
    1 component vector of unsigned integer values.
    +
    vec< 2, int, defaultp > ivec2
    2 components vector of signed integer numbers.
    Definition: vector_int2.hpp:15
    +
    mat< 4, 4, f32, defaultp > f32mat4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:554
    +
    mat< 4, 2, f32, mediump > mediump_fmat4x2
    Medium single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:646
    +
    mat< 2, 2, f64, lowp > lowp_f64mat2
    Low double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:572
    +
    int8 mediump_int8_t
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:41
    +
    mat< 3, 3, f32, lowp > lowp_fmat3x3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:634
    +
    double lowp_float64_t
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:173
    +
    int16 highp_int16_t
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:56
    +
    mat< 3, 3, f32, highp > highp_fmat3x3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:654
    +
    mat< 4, 4, double, defaultp > dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers.
    +
    vec< 1, i64, defaultp > i64vec1
    64 bit signed integer scalar type.
    Definition: fwd.hpp:297
    +
    uint32 lowp_u32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:117
    +
    mat< 4, 3, float, mediump > mediump_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 1, u8, lowp > lowp_u8vec1
    Low qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:324
    +
    vec< 3, i64, mediump > mediump_i64vec3
    Medium qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:289
    +
    vec< 1, int, defaultp > ivec1
    1 component vector of signed integer numbers.
    Definition: vector_int1.hpp:28
    +
    qua< f32, highp > highp_f32quat
    High single-qualifier floating-point quaternion.
    Definition: fwd.hpp:804
    +
    uint16 highp_u16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:105
    +
    vec< 1, f32, defaultp > fvec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:441
    +
    mat< 3, 2, float, mediump > mediump_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 2, bool, lowp > lowp_bvec2
    2 components vector of low qualifier bool numbers.
    +
    vec< 2, u8, mediump > mediump_u8vec2
    Medium qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:330
    +
    int32 lowp_int32_t
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:68
    +
    vec< 1, u16, lowp > lowp_u16vec1
    Low qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:344
    +
    mat< 4, 4, f32, highp > highp_fmat4x4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:658
    +
    mat< 3, 4, f32, highp > highp_f32mat3x4
    High single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:695
    +
    vec< 3, bool, defaultp > bvec3
    3 components vector of boolean.
    +
    vec< 2, f32, defaultp > f32vec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:462
    +
    vec< 3, u16, highp > highp_u16vec3
    High qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:356
    +
    float mediump_float32_t
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:158
    +
    mat< 2, 2, f32, defaultp > fmat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:660
    +
    float mediump_f32
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:148
    +
    mat< 4, 4, f32, mediump > mediump_f32mat4x4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:688
    +
    qua< float, lowp > lowp_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    vec< 2, f32, mediump > mediump_f32vec2
    Medium single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:452
    +
    int8 lowp_int8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:36
    +
    mat< 2, 3, float, defaultp > mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers.
    +
    vec< 1, f64, lowp > lowp_f64vec1
    Low double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:486
    +
    mat< 3, 2, f32, highp > highp_f32mat3x2
    High single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:693
    +
    mat< 3, 2, f64, mediump > mediump_f64mat3x2
    Medium double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:763
    +
    mat< 3, 3, double, mediump > mediump_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 3, u8, mediump > mediump_u8vec3
    Medium qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:331
    +
    mat< 2, 3, double, defaultp > dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers.
    +
    mat< 4, 4, f64, lowp > lowp_f64mat4x4
    Low double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:758
    +
    vec< 1, i16, lowp > lowp_i16vec1
    Low qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:242
    +
    vec< 3, double, defaultp > dvec3
    3 components vector of double-precision floating-point numbers.
    +
    mat< 2, 4, double, lowp > lowp_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    int8 lowp_int8_t
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:40
    +
    vec< 2, u32, lowp > lowp_u32vec2
    Low qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:365
    +
    mat< 2, 4, f32, mediump > mediump_f32mat2x4
    Medium single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:682
    +
    mat< 4, 3, f64, defaultp > f64mat4x3
    Double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:785
    +
    vec< 2, i64, highp > highp_i64vec2
    High qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:293
    +
    mat< 4, 4, f32, mediump > mediump_f32mat4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:546
    +
    mat< 3, 2, float, highp > highp_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 4, float, highp > highp_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    vec< 2, double, mediump > mediump_dvec2
    2 components vector of medium double-qualifier floating-point numbers.
    +
    mat< 2, 2, double, lowp > lowp_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    int64 i64
    64 bit signed integer type.
    Definition: fwd.hpp:76
    +
    double f64
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:166
    +
    vec< 3, bool, lowp > lowp_bvec3
    3 components vector of low qualifier bool numbers.
    +
    mat< 3, 4, float, lowp > lowp_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 4, float, lowp > lowp_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    vec< 1, float, highp > highp_vec1
    1 component vector of single-precision floating-point numbers using high precision arithmetic in term...
    +
    vec< 1, f32, mediump > mediump_f32vec1
    Medium single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:451
    +
    mat< 3, 4, f32, mediump > mediump_f32mat3x4
    Medium single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:685
    +
    mat< 2, 2, f32, highp > highp_fmat2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:532
    +
    vec< 2, unsigned int, highp > highp_uvec2
    2 components vector of high qualifier unsigned integer numbers.
    +
    vec< 3, f32, highp > highp_f32vec3
    High single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:458
    +
    mat< 2, 2, float, mediump > mediump_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    vec< 4, i8, mediump > mediump_i8vec4
    Medium qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:230
    +
    float lowp_float32
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:152
    +
    vec< 2, u32, defaultp > u32vec2
    Default qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:380
    +
    vec< 2, unsigned int, mediump > mediump_uvec2
    2 components vector of medium qualifier unsigned integer numbers.
    +
    qua< float, defaultp > quat
    Quaternion of single-precision floating-point numbers.
    +
    vec< 2, double, highp > highp_dvec2
    2 components vector of high double-qualifier floating-point numbers.
    +
    vec< 4, float, mediump > mediump_fvec4
    Medium Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:434
    +
    int32 mediump_int32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:65
    +
    vec< 2, i64, defaultp > i64vec2
    64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:298
    +
    int16 i16
    16 bit signed integer type.
    Definition: fwd.hpp:48
    +
    vec< 4, double, defaultp > dvec4
    4 components vector of double-precision floating-point numbers.
    +
    mat< 4, 4, f32, defaultp > fmat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:668
    +
    mat< 2, 2, float, mediump > mediump_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    qua< f64, lowp > lowp_f64quat
    Low double-qualifier floating-point quaternion.
    Definition: fwd.hpp:812
    +
    mat< 2, 2, float, defaultp > mat2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 2, f32, defaultp > fmat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:661
    +
    mat< 4, 3, double, defaultp > dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers.
    +
    mat< 4, 2, double, highp > highp_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    vec< 4, u16, defaultp > u16vec4
    Default qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:362
    +
    vec< 2, u16, defaultp > u16vec2
    Default qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:360
    +
    uint8 mediump_u8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:90
    +
    mat< 2, 2, f32, lowp > lowp_fmat2x2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:630
    +
    vec< 4, i8, highp > highp_i8vec4
    High qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:235
    +
    vec< 4, u64, lowp > lowp_u64vec4
    Low qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:387
    +
    vec< 2, i64, mediump > mediump_i64vec2
    Medium qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:288
    +
    mat< 4, 2, f64, highp > highp_f64mat4x2
    High double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:776
    +
    mat< 4, 4, float, highp > highp_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    int16 mediump_int16_t
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:55
    +
    int8 lowp_i8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:31
    +
    mat< 4, 2, float, highp > highp_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    vec< 3, i64, defaultp > i64vec3
    64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:299
    +
    vec< 2, i32, lowp > lowp_i32vec2
    Low qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:263
    +
    qua< f64, highp > highp_f64quat
    High double-qualifier floating-point quaternion.
    Definition: fwd.hpp:814
    +
    mat< 3, 3, float, defaultp > mat3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    vec< 2, f64, mediump > mediump_f64vec2
    Medium double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:492
    +
    uint16 highp_uint16_t
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:114
    +
    vec< 1, float, lowp > lowp_fvec1
    Low single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:426
    +
    int8 i8
    8 bit signed integer type.
    Definition: fwd.hpp:34
    +
    uint64 mediump_uint64_t
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:141
    +
    vec< 1, u64, mediump > mediump_u64vec1
    Medium qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:389
    +
    mat< 2, 2, f32, mediump > mediump_f32mat2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:544
    +
    vec< 4, int, mediump > mediump_ivec4
    4 components vector of medium qualifier signed integer numbers.
    +
    mat< 2, 4, float, highp > highp_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    uint8 mediump_uint8_t
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:99
    +
    Definition: common.hpp:20
    +
    double mediump_f64
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:164
    +
    vec< 1, float, mediump > mediump_fvec1
    Medium single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:431
    +
    uint16 mediump_uint16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:109
    +
    vec< 4, u8, highp > highp_u8vec4
    High qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:337
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00036.html b/external/glm-0.9.9.8/doc/api/a00036.html new file mode 100644 index 0000000..e1ea0eb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00036.html @@ -0,0 +1,147 @@ + + + + + + +0.9.9 API documentation: geometric.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    geometric.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the cross product of x and y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T distance (vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
     Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T dot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the dot product of x and y, i.e., result = x * y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > faceforward (vec< L, T, Q > const &N, vec< L, T, Q > const &I, vec< L, T, Q > const &Nref)
     If dot(Nref, I) < 0.0, return N, otherwise, return -N. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T length (vec< L, T, Q > const &x)
     Returns the length of x, i.e., sqrt(x * x). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > normalize (vec< L, T, Q > const &x)
     Returns a vector in the same direction as x but with length of 1. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > reflect (vec< L, T, Q > const &I, vec< L, T, Q > const &N)
     For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > refract (vec< L, T, Q > const &I, vec< L, T, Q > const &N, T eta)
     For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00036_source.html b/external/glm-0.9.9.8/doc/api/a00036_source.html new file mode 100644 index 0000000..05ac173 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00036_source.html @@ -0,0 +1,152 @@ + + + + + + +0.9.9 API documentation: geometric.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    geometric.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "detail/type_vec3.hpp"
    +
    16 
    +
    17 namespace glm
    +
    18 {
    +
    21 
    +
    29  template<length_t L, typename T, qualifier Q>
    +
    30  GLM_FUNC_DECL T length(vec<L, T, Q> const& x);
    +
    31 
    +
    39  template<length_t L, typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL T distance(vec<L, T, Q> const& p0, vec<L, T, Q> const& p1);
    +
    41 
    +
    49  template<length_t L, typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL T dot(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    51 
    +
    58  template<typename T, qualifier Q>
    +
    59  GLM_FUNC_DECL vec<3, T, Q> cross(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
    +
    60 
    +
    69  template<length_t L, typename T, qualifier Q>
    +
    70  GLM_FUNC_DECL vec<L, T, Q> normalize(vec<L, T, Q> const& x);
    +
    71 
    +
    79  template<length_t L, typename T, qualifier Q>
    +
    80  GLM_FUNC_DECL vec<L, T, Q> faceforward(
    +
    81  vec<L, T, Q> const& N,
    +
    82  vec<L, T, Q> const& I,
    +
    83  vec<L, T, Q> const& Nref);
    +
    84 
    +
    93  template<length_t L, typename T, qualifier Q>
    +
    94  GLM_FUNC_DECL vec<L, T, Q> reflect(
    +
    95  vec<L, T, Q> const& I,
    +
    96  vec<L, T, Q> const& N);
    +
    97 
    +
    107  template<length_t L, typename T, qualifier Q>
    +
    108  GLM_FUNC_DECL vec<L, T, Q> refract(
    +
    109  vec<L, T, Q> const& I,
    +
    110  vec<L, T, Q> const& N,
    +
    111  T eta);
    +
    112 
    +
    114 }//namespace glm
    +
    115 
    +
    116 #include "detail/func_geometric.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > reflect(vec< L, T, Q > const &I, vec< L, T, Q > const &N)
    For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...
    +
    GLM_FUNC_DECL vec< L, T, Q > faceforward(vec< L, T, Q > const &N, vec< L, T, Q > const &I, vec< L, T, Q > const &Nref)
    If dot(Nref, I) < 0.0, return N, otherwise, return -N.
    +
    GLM_FUNC_DECL T length(vec< L, T, Q > const &x)
    Returns the length of x, i.e., sqrt(x * x).
    +
    GLM_FUNC_DECL vec< 3, T, Q > cross(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
    Returns the cross product of x and y.
    +
    GLM_FUNC_DECL vec< L, T, Q > refract(vec< L, T, Q > const &I, vec< L, T, Q > const &N, T eta)
    For the incident vector I and surface normal N, and the ratio of indices of refraction eta...
    +
    GLM_FUNC_DECL vec< L, T, Q > normalize(vec< L, T, Q > const &x)
    Returns a vector in the same direction as x but with length of 1.
    +
    Core features
    +
    GLM_FUNC_DECL T distance(vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
    Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).
    +
    GLM_FUNC_DECL T dot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the dot product of x and y, i.e., result = x * y.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00037.html b/external/glm-0.9.9.8/doc/api/a00037.html new file mode 100644 index 0000000..dae8e8f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00037.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: glm.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    glm.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file glm.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00037_source.html b/external/glm-0.9.9.8/doc/api/a00037_source.html new file mode 100644 index 0000000..fc0aec0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00037_source.html @@ -0,0 +1,154 @@ + + + + + + +0.9.9 API documentation: glm.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    glm.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    103 #include "detail/_fixes.hpp"
    +
    104 
    +
    105 #include "detail/setup.hpp"
    +
    106 
    +
    107 #pragma once
    +
    108 
    +
    109 #include <cmath>
    +
    110 #include <climits>
    +
    111 #include <cfloat>
    +
    112 #include <limits>
    +
    113 #include <cassert>
    +
    114 #include "fwd.hpp"
    +
    115 
    +
    116 #include "vec2.hpp"
    +
    117 #include "vec3.hpp"
    +
    118 #include "vec4.hpp"
    +
    119 #include "mat2x2.hpp"
    +
    120 #include "mat2x3.hpp"
    +
    121 #include "mat2x4.hpp"
    +
    122 #include "mat3x2.hpp"
    +
    123 #include "mat3x3.hpp"
    +
    124 #include "mat3x4.hpp"
    +
    125 #include "mat4x2.hpp"
    +
    126 #include "mat4x3.hpp"
    +
    127 #include "mat4x4.hpp"
    +
    128 
    +
    129 #include "trigonometric.hpp"
    +
    130 #include "exponential.hpp"
    +
    131 #include "common.hpp"
    +
    132 #include "packing.hpp"
    +
    133 #include "geometric.hpp"
    +
    134 #include "matrix.hpp"
    +
    135 #include "vector_relational.hpp"
    +
    136 #include "integer.hpp"
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00038.html b/external/glm-0.9.9.8/doc/api/a00038.html new file mode 100644 index 0000000..102d6ba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00038.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: gradient_paint.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gradient_paint.hpp File Reference
    +
    +
    + +

    GLM_GTX_gradient_paint +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T linearGradient (vec< 2, T, Q > const &Point0, vec< 2, T, Q > const &Point1, vec< 2, T, Q > const &Position)
     Return a color from a linear gradient. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T radialGradient (vec< 2, T, Q > const &Center, T const &Radius, vec< 2, T, Q > const &Focal, vec< 2, T, Q > const &Position)
     Return a color from a radial gradient. More...
     
    +

    Detailed Description

    +

    GLM_GTX_gradient_paint

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_optimum_pow (dependence)
    + +

    Definition in file gradient_paint.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00038_source.html b/external/glm-0.9.9.8/doc/api/a00038_source.html new file mode 100644 index 0000000..b9cd951 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00038_source.html @@ -0,0 +1,136 @@ + + + + + + +0.9.9 API documentation: gradient_paint.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gradient_paint.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include "../gtx/optimum_pow.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_gradient_paint is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL T radialGradient(
    +
    37  vec<2, T, Q> const& Center,
    +
    38  T const& Radius,
    +
    39  vec<2, T, Q> const& Focal,
    +
    40  vec<2, T, Q> const& Position);
    +
    41 
    +
    44  template<typename T, qualifier Q>
    +
    45  GLM_FUNC_DECL T linearGradient(
    +
    46  vec<2, T, Q> const& Point0,
    +
    47  vec<2, T, Q> const& Point1,
    +
    48  vec<2, T, Q> const& Position);
    +
    49 
    +
    51 }// namespace glm
    +
    52 
    +
    53 #include "gradient_paint.inl"
    +
    GLM_FUNC_DECL T radialGradient(vec< 2, T, Q > const &Center, T const &Radius, vec< 2, T, Q > const &Focal, vec< 2, T, Q > const &Position)
    Return a color from a radial gradient.
    +
    GLM_FUNC_DECL T linearGradient(vec< 2, T, Q > const &Point0, vec< 2, T, Q > const &Point1, vec< 2, T, Q > const &Position)
    Return a color from a linear gradient.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00039.html b/external/glm-0.9.9.8/doc/api/a00039.html new file mode 100644 index 0000000..20125a7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00039.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: handed_coordinate_space.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    handed_coordinate_space.hpp File Reference
    +
    +
    + +

    GLM_GTX_handed_coordinate_space +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool leftHanded (vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
     Return if a trihedron left handed or not. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool rightHanded (vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
     Return if a trihedron right handed or not. More...
     
    +

    Detailed Description

    +

    GLM_GTX_handed_coordinate_space

    +
    See also
    Core features (dependence)
    + +

    Definition in file handed_coordinate_space.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00039_source.html b/external/glm-0.9.9.8/doc/api/a00039_source.html new file mode 100644 index 0000000..db8a63a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00039_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: handed_coordinate_space.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    handed_coordinate_space.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_handed_coordinate_space is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL bool rightHanded(
    +
    35  vec<3, T, Q> const& tangent,
    +
    36  vec<3, T, Q> const& binormal,
    +
    37  vec<3, T, Q> const& normal);
    +
    38 
    +
    41  template<typename T, qualifier Q>
    +
    42  GLM_FUNC_DECL bool leftHanded(
    +
    43  vec<3, T, Q> const& tangent,
    +
    44  vec<3, T, Q> const& binormal,
    +
    45  vec<3, T, Q> const& normal);
    +
    46 
    +
    48 }// namespace glm
    +
    49 
    +
    50 #include "handed_coordinate_space.inl"
    +
    GLM_FUNC_DECL bool leftHanded(vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
    Return if a trihedron left handed or not.
    +
    GLM_FUNC_DECL bool rightHanded(vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
    Return if a trihedron right handed or not.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00040.html b/external/glm-0.9.9.8/doc/api/a00040.html new file mode 100644 index 0000000..bf8a302 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00040.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: hash.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    hash.hpp File Reference
    +
    +
    + +

    GLM_GTX_hash +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTX_hash

    +
    See also
    Core features (dependence)
    + +

    Definition in file hash.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00040_source.html b/external/glm-0.9.9.8/doc/api/a00040_source.html new file mode 100644 index 0000000..23f049b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00040_source.html @@ -0,0 +1,232 @@ + + + + + + +0.9.9 API documentation: hash.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    hash.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    16 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    17 # pragma message("GLM: GLM_GTX_hash is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    18 # else
    +
    19 # pragma message("GLM: GLM_GTX_hash extension included")
    +
    20 # endif
    +
    21 #endif
    +
    22 
    +
    23 #include <functional>
    +
    24 
    +
    25 #include "../vec2.hpp"
    +
    26 #include "../vec3.hpp"
    +
    27 #include "../vec4.hpp"
    +
    28 #include "../gtc/vec1.hpp"
    +
    29 
    +
    30 #include "../gtc/quaternion.hpp"
    +
    31 #include "../gtx/dual_quaternion.hpp"
    +
    32 
    +
    33 #include "../mat2x2.hpp"
    +
    34 #include "../mat2x3.hpp"
    +
    35 #include "../mat2x4.hpp"
    +
    36 
    +
    37 #include "../mat3x2.hpp"
    +
    38 #include "../mat3x3.hpp"
    +
    39 #include "../mat3x4.hpp"
    +
    40 
    +
    41 #include "../mat4x2.hpp"
    +
    42 #include "../mat4x3.hpp"
    +
    43 #include "../mat4x4.hpp"
    +
    44 
    +
    45 #if !GLM_HAS_CXX11_STL
    +
    46 # error "GLM_GTX_hash requires C++11 standard library support"
    +
    47 #endif
    +
    48 
    +
    49 namespace std
    +
    50 {
    +
    51  template<typename T, glm::qualifier Q>
    +
    52  struct hash<glm::vec<1, T,Q> >
    +
    53  {
    +
    54  GLM_FUNC_DECL size_t operator()(glm::vec<1, T, Q> const& v) const;
    +
    55  };
    +
    56 
    +
    57  template<typename T, glm::qualifier Q>
    +
    58  struct hash<glm::vec<2, T,Q> >
    +
    59  {
    +
    60  GLM_FUNC_DECL size_t operator()(glm::vec<2, T, Q> const& v) const;
    +
    61  };
    +
    62 
    +
    63  template<typename T, glm::qualifier Q>
    +
    64  struct hash<glm::vec<3, T,Q> >
    +
    65  {
    +
    66  GLM_FUNC_DECL size_t operator()(glm::vec<3, T, Q> const& v) const;
    +
    67  };
    +
    68 
    +
    69  template<typename T, glm::qualifier Q>
    +
    70  struct hash<glm::vec<4, T,Q> >
    +
    71  {
    +
    72  GLM_FUNC_DECL size_t operator()(glm::vec<4, T, Q> const& v) const;
    +
    73  };
    +
    74 
    +
    75  template<typename T, glm::qualifier Q>
    +
    76  struct hash<glm::qua<T,Q>>
    +
    77  {
    +
    78  GLM_FUNC_DECL size_t operator()(glm::qua<T, Q> const& q) const;
    +
    79  };
    +
    80 
    +
    81  template<typename T, glm::qualifier Q>
    +
    82  struct hash<glm::tdualquat<T,Q> >
    +
    83  {
    +
    84  GLM_FUNC_DECL size_t operator()(glm::tdualquat<T,Q> const& q) const;
    +
    85  };
    +
    86 
    +
    87  template<typename T, glm::qualifier Q>
    +
    88  struct hash<glm::mat<2, 2, T,Q> >
    +
    89  {
    +
    90  GLM_FUNC_DECL size_t operator()(glm::mat<2, 2, T,Q> const& m) const;
    +
    91  };
    +
    92 
    +
    93  template<typename T, glm::qualifier Q>
    +
    94  struct hash<glm::mat<2, 3, T,Q> >
    +
    95  {
    +
    96  GLM_FUNC_DECL size_t operator()(glm::mat<2, 3, T,Q> const& m) const;
    +
    97  };
    +
    98 
    +
    99  template<typename T, glm::qualifier Q>
    +
    100  struct hash<glm::mat<2, 4, T,Q> >
    +
    101  {
    +
    102  GLM_FUNC_DECL size_t operator()(glm::mat<2, 4, T,Q> const& m) const;
    +
    103  };
    +
    104 
    +
    105  template<typename T, glm::qualifier Q>
    +
    106  struct hash<glm::mat<3, 2, T,Q> >
    +
    107  {
    +
    108  GLM_FUNC_DECL size_t operator()(glm::mat<3, 2, T,Q> const& m) const;
    +
    109  };
    +
    110 
    +
    111  template<typename T, glm::qualifier Q>
    +
    112  struct hash<glm::mat<3, 3, T,Q> >
    +
    113  {
    +
    114  GLM_FUNC_DECL size_t operator()(glm::mat<3, 3, T,Q> const& m) const;
    +
    115  };
    +
    116 
    +
    117  template<typename T, glm::qualifier Q>
    +
    118  struct hash<glm::mat<3, 4, T,Q> >
    +
    119  {
    +
    120  GLM_FUNC_DECL size_t operator()(glm::mat<3, 4, T,Q> const& m) const;
    +
    121  };
    +
    122 
    +
    123  template<typename T, glm::qualifier Q>
    +
    124  struct hash<glm::mat<4, 2, T,Q> >
    +
    125  {
    +
    126  GLM_FUNC_DECL size_t operator()(glm::mat<4, 2, T,Q> const& m) const;
    +
    127  };
    +
    128 
    +
    129  template<typename T, glm::qualifier Q>
    +
    130  struct hash<glm::mat<4, 3, T,Q> >
    +
    131  {
    +
    132  GLM_FUNC_DECL size_t operator()(glm::mat<4, 3, T,Q> const& m) const;
    +
    133  };
    +
    134 
    +
    135  template<typename T, glm::qualifier Q>
    +
    136  struct hash<glm::mat<4, 4, T,Q> >
    +
    137  {
    +
    138  GLM_FUNC_DECL size_t operator()(glm::mat<4, 4, T,Q> const& m) const;
    +
    139  };
    +
    140 } // namespace std
    +
    141 
    +
    142 #include "hash.inl"
    +
    Definition: hash.hpp:49
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00041.html b/external/glm-0.9.9.8/doc/api/a00041.html new file mode 100644 index 0000000..8c68a76 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00041.html @@ -0,0 +1,129 @@ + + + + + + +0.9.9 API documentation: integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtc/integer.hpp File Reference
    +
    +
    + +

    GLM_GTC_integer +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > iround (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType log2 (genIUType x)
     Returns the log2 of x for integer values. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > uround (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    +

    Detailed Description

    +

    GLM_GTC_integer

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_integer (dependence)
    + +

    Definition in file gtc/integer.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00041_source.html b/external/glm-0.9.9.8/doc/api/a00041_source.html new file mode 100644 index 0000000..0c5af7c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00041_source.html @@ -0,0 +1,133 @@ + + + + + + +0.9.9 API documentation: integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 #include "../common.hpp"
    +
    20 #include "../integer.hpp"
    +
    21 #include "../exponential.hpp"
    +
    22 #include <limits>
    +
    23 
    +
    24 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    25 # pragma message("GLM: GLM_GTC_integer extension included")
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<typename genIUType>
    +
    36  GLM_FUNC_DECL genIUType log2(genIUType x);
    +
    37 
    +
    47  template<length_t L, typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL vec<L, int, Q> iround(vec<L, T, Q> const& x);
    +
    49 
    +
    59  template<length_t L, typename T, qualifier Q>
    +
    60  GLM_FUNC_DECL vec<L, uint, Q> uround(vec<L, T, Q> const& x);
    +
    61 
    +
    63 } //namespace glm
    +
    64 
    +
    65 #include "integer.inl"
    +
    GLM_FUNC_DECL vec< L, uint, Q > uround(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer to x.
    +
    GLM_FUNC_DECL genIUType log2(genIUType x)
    Returns the log2 of x for integer values.
    +
    GLM_FUNC_DECL vec< L, int, Q > iround(vec< L, T, Q > const &x)
    Returns a value equal to the nearest integer to x.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00042.html b/external/glm-0.9.9.8/doc/api/a00042.html new file mode 100644 index 0000000..773d76d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00042.html @@ -0,0 +1,150 @@ + + + + + + +0.9.9 API documentation: integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtx/integer.hpp File Reference
    +
    +
    + +

    GLM_GTX_integer +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef signed int sint
     32bit signed integer. More...
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType factorial (genType const &x)
     Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension. More...
     
    GLM_FUNC_DECL unsigned int floor_log2 (unsigned int x)
     Returns the floor log2 of x. More...
     
    GLM_FUNC_DECL int mod (int x, int y)
     Modulus. More...
     
    GLM_FUNC_DECL uint mod (uint x, uint y)
     Modulus. More...
     
    GLM_FUNC_DECL uint nlz (uint x)
     Returns the number of leading zeros. More...
     
    GLM_FUNC_DECL int pow (int x, uint y)
     Returns x raised to the y power. More...
     
    GLM_FUNC_DECL uint pow (uint x, uint y)
     Returns x raised to the y power. More...
     
    GLM_FUNC_DECL int sqrt (int x)
     Returns the positive square root of x. More...
     
    GLM_FUNC_DECL uint sqrt (uint x)
     Returns the positive square root of x. More...
     
    +

    Detailed Description

    +

    GLM_GTX_integer

    +
    See also
    Core features (dependence)
    + +

    Definition in file gtx/integer.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00042_source.html b/external/glm-0.9.9.8/doc/api/a00042_source.html new file mode 100644 index 0000000..28f5995 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00042_source.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include "../gtc/integer.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_integer is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_integer extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  GLM_FUNC_DECL int pow(int x, uint y);
    +
    35 
    +
    38  GLM_FUNC_DECL int sqrt(int x);
    +
    39 
    +
    42  GLM_FUNC_DECL unsigned int floor_log2(unsigned int x);
    +
    43 
    +
    46  GLM_FUNC_DECL int mod(int x, int y);
    +
    47 
    +
    50  template<typename genType>
    +
    51  GLM_FUNC_DECL genType factorial(genType const& x);
    +
    52 
    +
    55  typedef signed int sint;
    +
    56 
    +
    59  GLM_FUNC_DECL uint pow(uint x, uint y);
    +
    60 
    +
    63  GLM_FUNC_DECL uint sqrt(uint x);
    +
    64 
    +
    67  GLM_FUNC_DECL uint mod(uint x, uint y);
    +
    68 
    +
    71  GLM_FUNC_DECL uint nlz(uint x);
    +
    72 
    +
    74 }//namespace glm
    +
    75 
    +
    76 #include "integer.inl"
    +
    GLM_FUNC_DECL uint nlz(uint x)
    Returns the number of leading zeros.
    +
    GLM_FUNC_DECL uint mod(uint x, uint y)
    Modulus.
    +
    GLM_FUNC_DECL unsigned int floor_log2(unsigned int x)
    Returns the floor log2 of x.
    +
    signed int sint
    32bit signed integer.
    Definition: gtx/integer.hpp:55
    +
    GLM_FUNC_DECL genType factorial(genType const &x)
    Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension...
    +
    GLM_FUNC_DECL uint pow(uint x, uint y)
    Returns x raised to the y power.
    +
    GLM_FUNC_DECL uint sqrt(uint x)
    Returns the positive square root of x.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00043.html b/external/glm-0.9.9.8/doc/api/a00043.html new file mode 100644 index 0000000..58e2ddb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00043.html @@ -0,0 +1,167 @@ + + + + + + +0.9.9 API documentation: integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    integer.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL int bitCount (genType v)
     Returns the number of bits set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > bitCount (vec< L, T, Q > const &v)
     Returns the number of bits set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldExtract (vec< L, T, Q > const &Value, int Offset, int Bits)
     Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldInsert (vec< L, T, Q > const &Base, vec< L, T, Q > const &Insert, int Offset, int Bits)
     Returns the insertion the bits least-significant bits of insert into base. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldReverse (vec< L, T, Q > const &v)
     Returns the reversal of the bits of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL int findLSB (genIUType x)
     Returns the bit number of the least significant bit set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findLSB (vec< L, T, Q > const &v)
     Returns the bit number of the least significant bit set to 1 in the binary representation of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL int findMSB (genIUType x)
     Returns the bit number of the most significant bit in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findMSB (vec< L, T, Q > const &v)
     Returns the bit number of the most significant bit in the binary representation of value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL void imulExtended (vec< L, int, Q > const &x, vec< L, int, Q > const &y, vec< L, int, Q > &msb, vec< L, int, Q > &lsb)
     Multiplies 32-bit integers x and y, producing a 64-bit result. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > uaddCarry (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &carry)
     Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL void umulExtended (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &msb, vec< L, uint, Q > &lsb)
     Multiplies 32-bit integers x and y, producing a 64-bit result. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > usubBorrow (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &borrow)
     Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00043_source.html b/external/glm-0.9.9.8/doc/api/a00043_source.html new file mode 100644 index 0000000..7f01223 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00043_source.html @@ -0,0 +1,185 @@ + + + + + + +0.9.9 API documentation: integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 #include "detail/qualifier.hpp"
    +
    20 #include "common.hpp"
    +
    21 #include "vector_relational.hpp"
    +
    22 
    +
    23 namespace glm
    +
    24 {
    +
    27 
    +
    36  template<length_t L, qualifier Q>
    +
    37  GLM_FUNC_DECL vec<L, uint, Q> uaddCarry(
    +
    38  vec<L, uint, Q> const& x,
    +
    39  vec<L, uint, Q> const& y,
    +
    40  vec<L, uint, Q> & carry);
    +
    41 
    +
    50  template<length_t L, qualifier Q>
    +
    51  GLM_FUNC_DECL vec<L, uint, Q> usubBorrow(
    +
    52  vec<L, uint, Q> const& x,
    +
    53  vec<L, uint, Q> const& y,
    +
    54  vec<L, uint, Q> & borrow);
    +
    55 
    +
    64  template<length_t L, qualifier Q>
    +
    65  GLM_FUNC_DECL void umulExtended(
    +
    66  vec<L, uint, Q> const& x,
    +
    67  vec<L, uint, Q> const& y,
    +
    68  vec<L, uint, Q> & msb,
    +
    69  vec<L, uint, Q> & lsb);
    +
    70 
    +
    79  template<length_t L, qualifier Q>
    +
    80  GLM_FUNC_DECL void imulExtended(
    +
    81  vec<L, int, Q> const& x,
    +
    82  vec<L, int, Q> const& y,
    +
    83  vec<L, int, Q> & msb,
    +
    84  vec<L, int, Q> & lsb);
    +
    85 
    +
    102  template<length_t L, typename T, qualifier Q>
    +
    103  GLM_FUNC_DECL vec<L, T, Q> bitfieldExtract(
    +
    104  vec<L, T, Q> const& Value,
    +
    105  int Offset,
    +
    106  int Bits);
    +
    107 
    +
    123  template<length_t L, typename T, qualifier Q>
    +
    124  GLM_FUNC_DECL vec<L, T, Q> bitfieldInsert(
    +
    125  vec<L, T, Q> const& Base,
    +
    126  vec<L, T, Q> const& Insert,
    +
    127  int Offset,
    +
    128  int Bits);
    +
    129 
    +
    139  template<length_t L, typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL vec<L, T, Q> bitfieldReverse(vec<L, T, Q> const& v);
    +
    141 
    +
    148  template<typename genType>
    +
    149  GLM_FUNC_DECL int bitCount(genType v);
    +
    150 
    +
    158  template<length_t L, typename T, qualifier Q>
    +
    159  GLM_FUNC_DECL vec<L, int, Q> bitCount(vec<L, T, Q> const& v);
    +
    160 
    +
    169  template<typename genIUType>
    +
    170  GLM_FUNC_DECL int findLSB(genIUType x);
    +
    171 
    +
    181  template<length_t L, typename T, qualifier Q>
    +
    182  GLM_FUNC_DECL vec<L, int, Q> findLSB(vec<L, T, Q> const& v);
    +
    183 
    +
    193  template<typename genIUType>
    +
    194  GLM_FUNC_DECL int findMSB(genIUType x);
    +
    195 
    +
    206  template<length_t L, typename T, qualifier Q>
    +
    207  GLM_FUNC_DECL vec<L, int, Q> findMSB(vec<L, T, Q> const& v);
    +
    208 
    +
    210 }//namespace glm
    +
    211 
    +
    212 #include "detail/func_integer.inl"
    +
    Core features
    +
    GLM_FUNC_DECL vec< L, int, Q > findMSB(vec< L, T, Q > const &v)
    Returns the bit number of the most significant bit in the binary representation of value...
    +
    GLM_FUNC_DECL void umulExtended(vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &msb, vec< L, uint, Q > &lsb)
    Multiplies 32-bit integers x and y, producing a 64-bit result.
    +
    GLM_FUNC_DECL void imulExtended(vec< L, int, Q > const &x, vec< L, int, Q > const &y, vec< L, int, Q > &msb, vec< L, int, Q > &lsb)
    Multiplies 32-bit integers x and y, producing a 64-bit result.
    +
    GLM_FUNC_DECL vec< L, int, Q > bitCount(vec< L, T, Q > const &v)
    Returns the number of bits set to 1 in the binary representation of value.
    +
    GLM_FUNC_DECL vec< L, uint, Q > uaddCarry(vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &carry)
    Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32).
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldExtract(vec< L, T, Q > const &Value, int Offset, int Bits)
    Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of...
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldInsert(vec< L, T, Q > const &Base, vec< L, T, Q > const &Insert, int Offset, int Bits)
    Returns the insertion the bits least-significant bits of insert into base.
    +
    Core features
    +
    GLM_FUNC_DECL vec< L, T, Q > bitfieldReverse(vec< L, T, Q > const &v)
    Returns the reversal of the bits of value.
    +
    GLM_FUNC_DECL vec< L, uint, Q > usubBorrow(vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &borrow)
    Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise.
    +
    GLM_FUNC_DECL vec< L, int, Q > findLSB(vec< L, T, Q > const &v)
    Returns the bit number of the least significant bit set to 1 in the binary representation of value...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00044.html b/external/glm-0.9.9.8/doc/api/a00044.html new file mode 100644 index 0000000..10c7b18 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00044.html @@ -0,0 +1,141 @@ + + + + + + +0.9.9 API documentation: intersect.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    intersect.hpp File Reference
    +
    +
    + +

    GLM_GTX_intersect +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL bool intersectLineSphere (genType const &point0, genType const &point1, genType const &sphereCenter, typename genType::value_type sphereRadius, genType &intersectionPosition1, genType &intersectionNormal1, genType &intersectionPosition2=genType(), genType &intersectionNormal2=genType())
     Compute the intersection of a line and a sphere. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectLineTriangle (genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &position)
     Compute the intersection of a line and a triangle. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRayPlane (genType const &orig, genType const &dir, genType const &planeOrig, genType const &planeNormal, typename genType::value_type &intersectionDistance)
     Compute the intersection of a ray and a plane. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRaySphere (genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, typename genType::value_type const sphereRadiusSquered, typename genType::value_type &intersectionDistance)
     Compute the intersection distance of a ray and a sphere. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRaySphere (genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, const typename genType::value_type sphereRadius, genType &intersectionPosition, genType &intersectionNormal)
     Compute the intersection of a ray and a sphere. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool intersectRayTriangle (vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dir, vec< 3, T, Q > const &v0, vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 2, T, Q > &baryPosition, T &distance)
     Compute the intersection of a ray and a triangle. More...
     
    +

    Detailed Description

    +

    GLM_GTX_intersect

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_closest_point (dependence)
    + +

    Definition in file intersect.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00044_source.html b/external/glm-0.9.9.8/doc/api/a00044_source.html new file mode 100644 index 0000000..492ad35 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00044_source.html @@ -0,0 +1,168 @@ + + + + + + +0.9.9 API documentation: intersect.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    intersect.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include <cfloat>
    +
    18 #include <limits>
    +
    19 #include "../glm.hpp"
    +
    20 #include "../geometric.hpp"
    +
    21 #include "../gtx/closest_point.hpp"
    +
    22 #include "../gtx/vector_query.hpp"
    +
    23 
    +
    24 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    25 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    26 # pragma message("GLM: GLM_GTX_closest_point is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    27 # else
    +
    28 # pragma message("GLM: GLM_GTX_closest_point extension included")
    +
    29 # endif
    +
    30 #endif
    +
    31 
    +
    32 namespace glm
    +
    33 {
    +
    36 
    +
    40  template<typename genType>
    +
    41  GLM_FUNC_DECL bool intersectRayPlane(
    +
    42  genType const& orig, genType const& dir,
    +
    43  genType const& planeOrig, genType const& planeNormal,
    +
    44  typename genType::value_type & intersectionDistance);
    +
    45 
    +
    49  template<typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL bool intersectRayTriangle(
    +
    51  vec<3, T, Q> const& orig, vec<3, T, Q> const& dir,
    +
    52  vec<3, T, Q> const& v0, vec<3, T, Q> const& v1, vec<3, T, Q> const& v2,
    +
    53  vec<2, T, Q>& baryPosition, T& distance);
    +
    54 
    +
    57  template<typename genType>
    +
    58  GLM_FUNC_DECL bool intersectLineTriangle(
    +
    59  genType const& orig, genType const& dir,
    +
    60  genType const& vert0, genType const& vert1, genType const& vert2,
    +
    61  genType & position);
    +
    62 
    +
    66  template<typename genType>
    +
    67  GLM_FUNC_DECL bool intersectRaySphere(
    +
    68  genType const& rayStarting, genType const& rayNormalizedDirection,
    +
    69  genType const& sphereCenter, typename genType::value_type const sphereRadiusSquered,
    +
    70  typename genType::value_type & intersectionDistance);
    +
    71 
    +
    74  template<typename genType>
    +
    75  GLM_FUNC_DECL bool intersectRaySphere(
    +
    76  genType const& rayStarting, genType const& rayNormalizedDirection,
    +
    77  genType const& sphereCenter, const typename genType::value_type sphereRadius,
    +
    78  genType & intersectionPosition, genType & intersectionNormal);
    +
    79 
    +
    82  template<typename genType>
    +
    83  GLM_FUNC_DECL bool intersectLineSphere(
    +
    84  genType const& point0, genType const& point1,
    +
    85  genType const& sphereCenter, typename genType::value_type sphereRadius,
    +
    86  genType & intersectionPosition1, genType & intersectionNormal1,
    +
    87  genType & intersectionPosition2 = genType(), genType & intersectionNormal2 = genType());
    +
    88 
    +
    90 }//namespace glm
    +
    91 
    +
    92 #include "intersect.inl"
    +
    GLM_FUNC_DECL bool intersectRayTriangle(vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dir, vec< 3, T, Q > const &v0, vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 2, T, Q > &baryPosition, T &distance)
    Compute the intersection of a ray and a triangle.
    +
    GLM_FUNC_DECL bool intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, const typename genType::value_type sphereRadius, genType &intersectionPosition, genType &intersectionNormal)
    Compute the intersection of a ray and a sphere.
    +
    GLM_FUNC_DECL bool intersectRayPlane(genType const &orig, genType const &dir, genType const &planeOrig, genType const &planeNormal, typename genType::value_type &intersectionDistance)
    Compute the intersection of a ray and a plane.
    +
    GLM_FUNC_DECL bool intersectLineTriangle(genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &position)
    Compute the intersection of a line and a triangle.
    +
    GLM_FUNC_DECL bool intersectLineSphere(genType const &point0, genType const &point1, genType const &sphereCenter, typename genType::value_type sphereRadius, genType &intersectionPosition1, genType &intersectionNormal1, genType &intersectionPosition2=genType(), genType &intersectionNormal2=genType())
    Compute the intersection of a line and a sphere.
    +
    GLM_FUNC_DECL T distance(vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
    Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00045.html b/external/glm-0.9.9.8/doc/api/a00045.html new file mode 100644 index 0000000..d0a736a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00045.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: io.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    io.hpp File Reference
    +
    +
    + +

    GLM_GTX_io +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTX_io

    +
    Author
    Jan P Springer (regni.nosp@m.rpsj.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_matrix_access (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file io.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00045_source.html b/external/glm-0.9.9.8/doc/api/a00045_source.html new file mode 100644 index 0000000..bebe106 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00045_source.html @@ -0,0 +1,280 @@ + + + + + + +0.9.9 API documentation: io.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    io.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependency:
    +
    23 #include "../glm.hpp"
    +
    24 #include "../gtx/quaternion.hpp"
    +
    25 
    +
    26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    27 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    28 # pragma message("GLM: GLM_GTX_io is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    29 # else
    +
    30 # pragma message("GLM: GLM_GTX_io extension included")
    +
    31 # endif
    +
    32 #endif
    +
    33 
    +
    34 #include <iosfwd> // std::basic_ostream<> (fwd)
    +
    35 #include <locale> // std::locale, std::locale::facet, std::locale::id
    +
    36 #include <utility> // std::pair<>
    +
    37 
    +
    38 namespace glm
    +
    39 {
    +
    42 
    +
    43  namespace io
    +
    44  {
    +
    45  enum order_type { column_major, row_major};
    +
    46 
    +
    47  template<typename CTy>
    +
    48  class format_punct : public std::locale::facet
    +
    49  {
    +
    50  typedef CTy char_type;
    +
    51 
    +
    52  public:
    +
    53 
    +
    54  static std::locale::id id;
    +
    55 
    +
    56  bool formatted;
    +
    57  unsigned precision;
    +
    58  unsigned width;
    +
    59  char_type separator;
    +
    60  char_type delim_left;
    +
    61  char_type delim_right;
    +
    62  char_type space;
    +
    63  char_type newline;
    +
    64  order_type order;
    +
    65 
    +
    66  GLM_FUNC_DECL explicit format_punct(size_t a = 0);
    +
    67  GLM_FUNC_DECL explicit format_punct(format_punct const&);
    +
    68  };
    +
    69 
    +
    70  template<typename CTy, typename CTr = std::char_traits<CTy> >
    +
    71  class basic_state_saver {
    +
    72 
    +
    73  public:
    +
    74 
    +
    75  GLM_FUNC_DECL explicit basic_state_saver(std::basic_ios<CTy,CTr>&);
    +
    76  GLM_FUNC_DECL ~basic_state_saver();
    +
    77 
    +
    78  private:
    +
    79 
    +
    80  typedef ::std::basic_ios<CTy,CTr> state_type;
    +
    81  typedef typename state_type::char_type char_type;
    +
    82  typedef ::std::ios_base::fmtflags flags_type;
    +
    83  typedef ::std::streamsize streamsize_type;
    +
    84  typedef ::std::locale const locale_type;
    +
    85 
    +
    86  state_type& state_;
    +
    87  flags_type flags_;
    +
    88  streamsize_type precision_;
    +
    89  streamsize_type width_;
    +
    90  char_type fill_;
    +
    91  locale_type locale_;
    +
    92 
    +
    93  GLM_FUNC_DECL basic_state_saver& operator=(basic_state_saver const&);
    +
    94  };
    +
    95 
    +
    96  typedef basic_state_saver<char> state_saver;
    +
    97  typedef basic_state_saver<wchar_t> wstate_saver;
    +
    98 
    +
    99  template<typename CTy, typename CTr = std::char_traits<CTy> >
    +
    100  class basic_format_saver
    +
    101  {
    +
    102  public:
    +
    103 
    +
    104  GLM_FUNC_DECL explicit basic_format_saver(std::basic_ios<CTy,CTr>&);
    +
    105  GLM_FUNC_DECL ~basic_format_saver();
    +
    106 
    +
    107  private:
    +
    108 
    +
    109  basic_state_saver<CTy> const bss_;
    +
    110 
    +
    111  GLM_FUNC_DECL basic_format_saver& operator=(basic_format_saver const&);
    +
    112  };
    +
    113 
    +
    114  typedef basic_format_saver<char> format_saver;
    +
    115  typedef basic_format_saver<wchar_t> wformat_saver;
    +
    116 
    +
    117  struct precision
    +
    118  {
    +
    119  unsigned value;
    +
    120 
    +
    121  GLM_FUNC_DECL explicit precision(unsigned);
    +
    122  };
    +
    123 
    +
    124  struct width
    +
    125  {
    +
    126  unsigned value;
    +
    127 
    +
    128  GLM_FUNC_DECL explicit width(unsigned);
    +
    129  };
    +
    130 
    +
    131  template<typename CTy>
    +
    132  struct delimeter
    +
    133  {
    +
    134  CTy value[3];
    +
    135 
    +
    136  GLM_FUNC_DECL explicit delimeter(CTy /* left */, CTy /* right */, CTy /* separator */ = ',');
    +
    137  };
    +
    138 
    +
    139  struct order
    +
    140  {
    +
    141  order_type value;
    +
    142 
    +
    143  GLM_FUNC_DECL explicit order(order_type);
    +
    144  };
    +
    145 
    +
    146  // functions, inlined (inline)
    +
    147 
    +
    148  template<typename FTy, typename CTy, typename CTr>
    +
    149  FTy const& get_facet(std::basic_ios<CTy,CTr>&);
    +
    150  template<typename FTy, typename CTy, typename CTr>
    +
    151  std::basic_ios<CTy,CTr>& formatted(std::basic_ios<CTy,CTr>&);
    +
    152  template<typename FTy, typename CTy, typename CTr>
    +
    153  std::basic_ios<CTy,CTr>& unformattet(std::basic_ios<CTy,CTr>&);
    +
    154 
    +
    155  template<typename CTy, typename CTr>
    +
    156  std::basic_ostream<CTy, CTr>& operator<<(std::basic_ostream<CTy, CTr>&, precision const&);
    +
    157  template<typename CTy, typename CTr>
    +
    158  std::basic_ostream<CTy, CTr>& operator<<(std::basic_ostream<CTy, CTr>&, width const&);
    +
    159  template<typename CTy, typename CTr>
    +
    160  std::basic_ostream<CTy, CTr>& operator<<(std::basic_ostream<CTy, CTr>&, delimeter<CTy> const&);
    +
    161  template<typename CTy, typename CTr>
    +
    162  std::basic_ostream<CTy, CTr>& operator<<(std::basic_ostream<CTy, CTr>&, order const&);
    +
    163  }//namespace io
    +
    164 
    +
    165  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    166  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, qua<T, Q> const&);
    +
    167  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    168  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<1, T, Q> const&);
    +
    169  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    170  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<2, T, Q> const&);
    +
    171  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    172  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<3, T, Q> const&);
    +
    173  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    174  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<4, T, Q> const&);
    +
    175  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    176  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 2, T, Q> const&);
    +
    177  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    178  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 3, T, Q> const&);
    +
    179  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    180  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 4, T, Q> const&);
    +
    181  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    182  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 2, T, Q> const&);
    +
    183  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    184  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 3, T, Q> const&);
    +
    185  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    186  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 4, T, Q> const&);
    +
    187  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    188  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 2, T, Q> const&);
    +
    189  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    190  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 3, T, Q> const&);
    +
    191  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    192  GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 4, T, Q> const&);
    +
    193 
    +
    194  template<typename CTy, typename CTr, typename T, qualifier Q>
    +
    195  GLM_FUNC_DECL std::basic_ostream<CTy,CTr> & operator<<(std::basic_ostream<CTy,CTr> &,
    +
    196  std::pair<mat<4, 4, T, Q> const, mat<4, 4, T, Q> const> const&);
    +
    197 
    +
    199 }//namespace glm
    +
    200 
    +
    201 #include "io.inl"
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00046.html b/external/glm-0.9.9.8/doc/api/a00046.html new file mode 100644 index 0000000..b88a2ad --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00046.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: log_base.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    log_base.hpp File Reference
    +
    +
    + +

    GLM_GTX_log_base +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType log (genType const &x, genType const &base)
     Logarithm for any base. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sign (vec< L, T, Q > const &x, vec< L, T, Q > const &base)
     Logarithm for any base. More...
     
    +

    Detailed Description

    +

    GLM_GTX_log_base

    +
    See also
    Core features (dependence)
    + +

    Definition in file log_base.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00046_source.html b/external/glm-0.9.9.8/doc/api/a00046_source.html new file mode 100644 index 0000000..fb1a631 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00046_source.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: log_base.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    log_base.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_log_base is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_log_base extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename genType>
    +
    34  GLM_FUNC_DECL genType log(
    +
    35  genType const& x,
    +
    36  genType const& base);
    +
    37 
    +
    40  template<length_t L, typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL vec<L, T, Q> sign(
    +
    42  vec<L, T, Q> const& x,
    +
    43  vec<L, T, Q> const& base);
    +
    44 
    +
    46 }//namespace glm
    +
    47 
    +
    48 #include "log_base.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > sign(vec< L, T, Q > const &x, vec< L, T, Q > const &base)
    Logarithm for any base.
    +
    GLM_FUNC_DECL genType log(genType const &x, genType const &base)
    Logarithm for any base.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00047_source.html b/external/glm-0.9.9.8/doc/api/a00047_source.html new file mode 100644 index 0000000..f131267 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00047_source.html @@ -0,0 +1,2515 @@ + + + + + + +0.9.9 API documentation: man.doxy Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    man.doxy
    +
    +
    +
    1 # Doxyfile 1.8.10
    +
    2 
    +
    3 # This file describes the settings to be used by the documentation system
    +
    4 # doxygen (www.doxygen.org) for a project.
    +
    5 #
    +
    6 # All text after a double hash (##) is considered a comment and is placed in
    +
    7 # front of the TAG it is preceding.
    +
    8 #
    +
    9 # All text after a single hash (#) is considered a comment and will be ignored.
    +
    10 # The format is:
    +
    11 # TAG = value [value, ...]
    +
    12 # For lists, items can also be appended using:
    +
    13 # TAG += value [value, ...]
    +
    14 # Values that contain spaces should be placed between quotes (\" \").
    +
    15 
    +
    16 #---------------------------------------------------------------------------
    +
    17 # Project related configuration options
    +
    18 #---------------------------------------------------------------------------
    +
    19 
    +
    20 # This tag specifies the encoding used for all characters in the config file
    +
    21 # that follow. The default is UTF-8 which is also the encoding used for all text
    +
    22 # before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
    +
    23 # built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
    +
    24 # for the list of possible encodings.
    +
    25 # The default value is: UTF-8.
    +
    26 
    +
    27 DOXYFILE_ENCODING = UTF-8
    +
    28 
    +
    29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
    +
    30 # double-quotes, unless you are using Doxywizard) that should identify the
    +
    31 # project for which the documentation is generated. This name is used in the
    +
    32 # title of most generated pages and in a few other places.
    +
    33 # The default value is: My Project.
    +
    34 
    +
    35 PROJECT_NAME = "0.9.9 API documentation"
    +
    36 
    +
    37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
    +
    38 # could be handy for archiving the generated documentation or if some version
    +
    39 # control system is used.
    +
    40 
    +
    41 PROJECT_NUMBER =
    +
    42 
    +
    43 # Using the PROJECT_BRIEF tag one can provide an optional one line description
    +
    44 # for a project that appears at the top of each page and should give viewer a
    +
    45 # quick idea about the purpose of the project. Keep the description short.
    +
    46 
    +
    47 PROJECT_BRIEF =
    +
    48 
    +
    49 # With the PROJECT_LOGO tag one can specify a logo or an icon that is included
    +
    50 # in the documentation. The maximum height of the logo should not exceed 55
    +
    51 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
    +
    52 # the logo to the output directory.
    +
    53 
    +
    54 PROJECT_LOGO = theme/logo-mini.png
    +
    55 
    +
    56 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
    +
    57 # into which the generated documentation will be written. If a relative path is
    +
    58 # entered, it will be relative to the location where doxygen was started. If
    +
    59 # left blank the current directory will be used.
    +
    60 
    +
    61 OUTPUT_DIRECTORY = .
    +
    62 
    +
    63 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
    +
    64 # directories (in 2 levels) under the output directory of each output format and
    +
    65 # will distribute the generated files over these directories. Enabling this
    +
    66 # option can be useful when feeding doxygen a huge amount of source files, where
    +
    67 # putting all generated files in the same directory would otherwise causes
    +
    68 # performance problems for the file system.
    +
    69 # The default value is: NO.
    +
    70 
    +
    71 CREATE_SUBDIRS = NO
    +
    72 
    +
    73 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
    +
    74 # characters to appear in the names of generated files. If set to NO, non-ASCII
    +
    75 # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
    +
    76 # U+3044.
    +
    77 # The default value is: NO.
    +
    78 
    +
    79 ALLOW_UNICODE_NAMES = NO
    +
    80 
    +
    81 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
    +
    82 # documentation generated by doxygen is written. Doxygen will use this
    +
    83 # information to generate all constant output in the proper language.
    +
    84 # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
    +
    85 # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
    +
    86 # Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
    +
    87 # Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
    +
    88 # Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
    +
    89 # Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
    +
    90 # Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
    +
    91 # Ukrainian and Vietnamese.
    +
    92 # The default value is: English.
    +
    93 
    +
    94 OUTPUT_LANGUAGE = English
    +
    95 
    +
    96 # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
    +
    97 # descriptions after the members that are listed in the file and class
    +
    98 # documentation (similar to Javadoc). Set to NO to disable this.
    +
    99 # The default value is: YES.
    +
    100 
    +
    101 BRIEF_MEMBER_DESC = YES
    +
    102 
    +
    103 # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
    +
    104 # description of a member or function before the detailed description
    +
    105 #
    +
    106 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
    +
    107 # brief descriptions will be completely suppressed.
    +
    108 # The default value is: YES.
    +
    109 
    +
    110 REPEAT_BRIEF = YES
    +
    111 
    +
    112 # This tag implements a quasi-intelligent brief description abbreviator that is
    +
    113 # used to form the text in various listings. Each string in this list, if found
    +
    114 # as the leading text of the brief description, will be stripped from the text
    +
    115 # and the result, after processing the whole list, is used as the annotated
    +
    116 # text. Otherwise, the brief description is used as-is. If left blank, the
    +
    117 # following values are used ($name is automatically replaced with the name of
    +
    118 # the entity):The $name class, The $name widget, The $name file, is, provides,
    +
    119 # specifies, contains, represents, a, an and the.
    +
    120 
    +
    121 ABBREVIATE_BRIEF = "The $name class " \
    +
    122  "The $name widget " \
    +
    123  "The $name file " \
    +
    124  is \
    +
    125  provides \
    +
    126  specifies \
    +
    127  contains \
    +
    128  represents \
    +
    129  a \
    +
    130  an \
    +
    131  the
    +
    132 
    +
    133 # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
    +
    134 # doxygen will generate a detailed section even if there is only a brief
    +
    135 # description.
    +
    136 # The default value is: NO.
    +
    137 
    +
    138 ALWAYS_DETAILED_SEC = NO
    +
    139 
    +
    140 # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
    +
    141 # inherited members of a class in the documentation of that class as if those
    +
    142 # members were ordinary class members. Constructors, destructors and assignment
    +
    143 # operators of the base classes will not be shown.
    +
    144 # The default value is: NO.
    +
    145 
    +
    146 INLINE_INHERITED_MEMB = NO
    +
    147 
    +
    148 # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
    +
    149 # before files name in the file list and in the header files. If set to NO the
    +
    150 # shortest path that makes the file name unique will be used
    +
    151 # The default value is: YES.
    +
    152 
    +
    153 FULL_PATH_NAMES = NO
    +
    154 
    +
    155 # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
    +
    156 # Stripping is only done if one of the specified strings matches the left-hand
    +
    157 # part of the path. The tag can be used to show relative paths in the file list.
    +
    158 # If left blank the directory from which doxygen is run is used as the path to
    +
    159 # strip.
    +
    160 #
    +
    161 # Note that you can specify absolute paths here, but also relative paths, which
    +
    162 # will be relative from the directory where doxygen is started.
    +
    163 # This tag requires that the tag FULL_PATH_NAMES is set to YES.
    +
    164 
    +
    165 STRIP_FROM_PATH = "C:/Documents and Settings/Groove/ "
    +
    166 
    +
    167 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
    +
    168 # path mentioned in the documentation of a class, which tells the reader which
    +
    169 # header file to include in order to use a class. If left blank only the name of
    +
    170 # the header file containing the class definition is used. Otherwise one should
    +
    171 # specify the list of include paths that are normally passed to the compiler
    +
    172 # using the -I flag.
    +
    173 
    +
    174 STRIP_FROM_INC_PATH =
    +
    175 
    +
    176 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
    +
    177 # less readable) file names. This can be useful is your file systems doesn't
    +
    178 # support long names like on DOS, Mac, or CD-ROM.
    +
    179 # The default value is: NO.
    +
    180 
    +
    181 SHORT_NAMES = YES
    +
    182 
    +
    183 # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
    +
    184 # first line (until the first dot) of a Javadoc-style comment as the brief
    +
    185 # description. If set to NO, the Javadoc-style will behave just like regular Qt-
    +
    186 # style comments (thus requiring an explicit @brief command for a brief
    +
    187 # description.)
    +
    188 # The default value is: NO.
    +
    189 
    +
    190 JAVADOC_AUTOBRIEF = YES
    +
    191 
    +
    192 # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
    +
    193 # line (until the first dot) of a Qt-style comment as the brief description. If
    +
    194 # set to NO, the Qt-style will behave just like regular Qt-style comments (thus
    +
    195 # requiring an explicit \brief command for a brief description.)
    +
    196 # The default value is: NO.
    +
    197 
    +
    198 QT_AUTOBRIEF = NO
    +
    199 
    +
    200 # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
    +
    201 # multi-line C++ special comment block (i.e. a block of
    +
    202 # a brief description. This used to be the default behavior. The new default is
    +
    203 # to treat a multi-line C++ comment block as a detailed description. Set this
    +
    204 # tag to YES if you prefer the old behavior instead.
    +
    205 #
    +
    206 # Note that setting this tag to YES also means that rational rose comments are
    +
    207 # not recognized any more.
    +
    208 # The default value is: NO.
    +
    209 
    +
    210 MULTILINE_CPP_IS_BRIEF = NO
    +
    211 
    +
    212 # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
    +
    213 # documentation from any documented member that it re-implements.
    +
    214 # The default value is: YES.
    +
    215 
    +
    216 INHERIT_DOCS = YES
    +
    217 
    +
    218 # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
    +
    219 # page for each member. If set to NO, the documentation of a member will be part
    +
    220 # of the file/class/namespace that contains it.
    +
    221 # The default value is: NO.
    +
    222 
    +
    223 SEPARATE_MEMBER_PAGES = NO
    +
    224 
    +
    225 # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
    +
    226 # uses this value to replace tabs by spaces in code fragments.
    +
    227 # Minimum value: 1, maximum value: 16, default value: 4.
    +
    228 
    +
    229 TAB_SIZE = 8
    +
    230 
    +
    231 # This tag can be used to specify a number of aliases that act as commands in
    +
    232 # the documentation. An alias has the form:
    +
    233 # name=value
    +
    234 # For example adding
    +
    235 # "sideeffect=@par Side Effects:\n"
    +
    236 # will allow you to put the command \sideeffect (or @sideeffect) in the
    +
    237 # documentation, which will result in a user-defined paragraph with heading
    +
    238 # "Side Effects:". You can put \n's in the value part of an alias to insert
    +
    239 # newlines.
    +
    240 
    +
    241 ALIASES =
    +
    242 
    +
    243 # This tag can be used to specify a number of word-keyword mappings (TCL only).
    +
    244 # A mapping has the form "name=value". For example adding "class=itcl::class"
    +
    245 # will allow you to use the command class in the itcl::class meaning.
    +
    246 
    +
    247 TCL_SUBST =
    +
    248 
    +
    249 # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
    +
    250 # only. Doxygen will then generate output that is more tailored for C. For
    +
    251 # instance, some of the names that are used will be different. The list of all
    +
    252 # members will be omitted, etc.
    +
    253 # The default value is: NO.
    +
    254 
    +
    255 OPTIMIZE_OUTPUT_FOR_C = NO
    +
    256 
    +
    257 # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
    +
    258 # Python sources only. Doxygen will then generate output that is more tailored
    +
    259 # for that language. For instance, namespaces will be presented as packages,
    +
    260 # qualified scopes will look different, etc.
    +
    261 # The default value is: NO.
    +
    262 
    +
    263 OPTIMIZE_OUTPUT_JAVA = NO
    +
    264 
    +
    265 # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
    +
    266 # sources. Doxygen will then generate output that is tailored for Fortran.
    +
    267 # The default value is: NO.
    +
    268 
    +
    269 OPTIMIZE_FOR_FORTRAN = NO
    +
    270 
    +
    271 # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
    +
    272 # sources. Doxygen will then generate output that is tailored for VHDL.
    +
    273 # The default value is: NO.
    +
    274 
    +
    275 OPTIMIZE_OUTPUT_VHDL = NO
    +
    276 
    +
    277 # Doxygen selects the parser to use depending on the extension of the files it
    +
    278 # parses. With this tag you can assign which parser to use for a given
    +
    279 # extension. Doxygen has a built-in mapping, but you can override or extend it
    +
    280 # using this tag. The format is ext=language, where ext is a file extension, and
    +
    281 # language is one of the parsers supported by doxygen: IDL, Java, Javascript,
    +
    282 # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
    +
    283 # FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
    +
    284 # Fortran. In the later case the parser tries to guess whether the code is fixed
    +
    285 # or free formatted code, this is the default for Fortran type files), VHDL. For
    +
    286 # instance to make doxygen treat .inc files as Fortran files (default is PHP),
    +
    287 # and .f files as C (default is Fortran), use: inc=Fortran f=C.
    +
    288 #
    +
    289 # Note: For files without extension you can use no_extension as a placeholder.
    +
    290 #
    +
    291 # Note that for custom extensions you also need to set FILE_PATTERNS otherwise
    +
    292 # the files are not read by doxygen.
    +
    293 
    +
    294 EXTENSION_MAPPING =
    +
    295 
    +
    296 # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
    +
    297 # according to the Markdown format, which allows for more readable
    +
    298 # documentation. See http://daringfireball.net/projects/markdown/ for details.
    +
    299 # The output of markdown processing is further processed by doxygen, so you can
    +
    300 # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
    +
    301 # case of backward compatibilities issues.
    +
    302 # The default value is: YES.
    +
    303 
    +
    304 MARKDOWN_SUPPORT = YES
    +
    305 
    +
    306 # When enabled doxygen tries to link words that correspond to documented
    +
    307 # classes, or namespaces to their corresponding documentation. Such a link can
    +
    308 # be prevented in individual cases by putting a % sign in front of the word or
    +
    309 # globally by setting AUTOLINK_SUPPORT to NO.
    +
    310 # The default value is: YES.
    +
    311 
    +
    312 AUTOLINK_SUPPORT = YES
    +
    313 
    +
    314 # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
    +
    315 # to include (a tag file for) the STL sources as input, then you should set this
    +
    316 # tag to YES in order to let doxygen match functions declarations and
    +
    317 # definitions whose arguments contain STL classes (e.g. func(std::string);
    +
    318 # versus func(std::string) {}). This also make the inheritance and collaboration
    +
    319 # diagrams that involve STL classes more complete and accurate.
    +
    320 # The default value is: NO.
    +
    321 
    +
    322 BUILTIN_STL_SUPPORT = NO
    +
    323 
    +
    324 # If you use Microsoft's C++/CLI language, you should set this option to YES to
    +
    325 # enable parsing support.
    +
    326 # The default value is: NO.
    +
    327 
    +
    328 CPP_CLI_SUPPORT = NO
    +
    329 
    +
    330 # Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
    +
    331 # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
    +
    332 # will parse them like normal C++ but will assume all classes use public instead
    +
    333 # of private inheritance when no explicit protection keyword is present.
    +
    334 # The default value is: NO.
    +
    335 
    +
    336 SIP_SUPPORT = NO
    +
    337 
    +
    338 # For Microsoft's IDL there are propget and propput attributes to indicate
    +
    339 # getter and setter methods for a property. Setting this option to YES will make
    +
    340 # doxygen to replace the get and set methods by a property in the documentation.
    +
    341 # This will only work if the methods are indeed getting or setting a simple
    +
    342 # type. If this is not the case, or you want to show the methods anyway, you
    +
    343 # should set this option to NO.
    +
    344 # The default value is: YES.
    +
    345 
    +
    346 IDL_PROPERTY_SUPPORT = YES
    +
    347 
    +
    348 # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
    +
    349 # tag is set to YES then doxygen will reuse the documentation of the first
    +
    350 # member in the group (if any) for the other members of the group. By default
    +
    351 # all members of a group must be documented explicitly.
    +
    352 # The default value is: NO.
    +
    353 
    +
    354 DISTRIBUTE_GROUP_DOC = NO
    +
    355 
    +
    356 # If one adds a struct or class to a group and this option is enabled, then also
    +
    357 # any nested class or struct is added to the same group. By default this option
    +
    358 # is disabled and one has to add nested compounds explicitly via \ingroup.
    +
    359 # The default value is: NO.
    +
    360 
    +
    361 GROUP_NESTED_COMPOUNDS = NO
    +
    362 
    +
    363 # Set the SUBGROUPING tag to YES to allow class member groups of the same type
    +
    364 # (for instance a group of public functions) to be put as a subgroup of that
    +
    365 # type (e.g. under the Public Functions section). Set it to NO to prevent
    +
    366 # subgrouping. Alternatively, this can be done per class using the
    +
    367 # \nosubgrouping command.
    +
    368 # The default value is: YES.
    +
    369 
    +
    370 SUBGROUPING = NO
    +
    371 
    +
    372 # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
    +
    373 # are shown inside the group in which they are included (e.g. using \ingroup)
    +
    374 # instead of on a separate page (for HTML and Man pages) or section (for LaTeX
    +
    375 # and RTF).
    +
    376 #
    +
    377 # Note that this feature does not work in combination with
    +
    378 # SEPARATE_MEMBER_PAGES.
    +
    379 # The default value is: NO.
    +
    380 
    +
    381 INLINE_GROUPED_CLASSES = NO
    +
    382 
    +
    383 # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
    +
    384 # with only public data fields or simple typedef fields will be shown inline in
    +
    385 # the documentation of the scope in which they are defined (i.e. file,
    +
    386 # namespace, or group documentation), provided this scope is documented. If set
    +
    387 # to NO, structs, classes, and unions are shown on a separate page (for HTML and
    +
    388 # Man pages) or section (for LaTeX and RTF).
    +
    389 # The default value is: NO.
    +
    390 
    +
    391 INLINE_SIMPLE_STRUCTS = NO
    +
    392 
    +
    393 # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
    +
    394 # enum is documented as struct, union, or enum with the name of the typedef. So
    +
    395 # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
    +
    396 # with name TypeT. When disabled the typedef will appear as a member of a file,
    +
    397 # namespace, or class. And the struct will be named TypeS. This can typically be
    +
    398 # useful for C code in case the coding convention dictates that all compound
    +
    399 # types are typedef'ed and only the typedef is referenced, never the tag name.
    +
    400 # The default value is: NO.
    +
    401 
    +
    402 TYPEDEF_HIDES_STRUCT = NO
    +
    403 
    +
    404 # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
    +
    405 # cache is used to resolve symbols given their name and scope. Since this can be
    +
    406 # an expensive process and often the same symbol appears multiple times in the
    +
    407 # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
    +
    408 # doxygen will become slower. If the cache is too large, memory is wasted. The
    +
    409 # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
    +
    410 # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
    +
    411 # symbols. At the end of a run doxygen will report the cache usage and suggest
    +
    412 # the optimal cache size from a speed point of view.
    +
    413 # Minimum value: 0, maximum value: 9, default value: 0.
    +
    414 
    +
    415 LOOKUP_CACHE_SIZE = 0
    +
    416 
    +
    417 #---------------------------------------------------------------------------
    +
    418 # Build related configuration options
    +
    419 #---------------------------------------------------------------------------
    +
    420 
    +
    421 # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
    +
    422 # documentation are documented, even if no documentation was available. Private
    +
    423 # class members and static file members will be hidden unless the
    +
    424 # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
    +
    425 # Note: This will also disable the warnings about undocumented members that are
    +
    426 # normally produced when WARNINGS is set to YES.
    +
    427 # The default value is: NO.
    +
    428 
    +
    429 EXTRACT_ALL = NO
    +
    430 
    +
    431 # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
    +
    432 # be included in the documentation.
    +
    433 # The default value is: NO.
    +
    434 
    +
    435 EXTRACT_PRIVATE = NO
    +
    436 
    +
    437 # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
    +
    438 # scope will be included in the documentation.
    +
    439 # The default value is: NO.
    +
    440 
    +
    441 EXTRACT_PACKAGE = NO
    +
    442 
    +
    443 # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
    +
    444 # included in the documentation.
    +
    445 # The default value is: NO.
    +
    446 
    +
    447 EXTRACT_STATIC = YES
    +
    448 
    +
    449 # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
    +
    450 # locally in source files will be included in the documentation. If set to NO,
    +
    451 # only classes defined in header files are included. Does not have any effect
    +
    452 # for Java sources.
    +
    453 # The default value is: YES.
    +
    454 
    +
    455 EXTRACT_LOCAL_CLASSES = NO
    +
    456 
    +
    457 # This flag is only useful for Objective-C code. If set to YES, local methods,
    +
    458 # which are defined in the implementation section but not in the interface are
    +
    459 # included in the documentation. If set to NO, only methods in the interface are
    +
    460 # included.
    +
    461 # The default value is: NO.
    +
    462 
    +
    463 EXTRACT_LOCAL_METHODS = NO
    +
    464 
    +
    465 # If this flag is set to YES, the members of anonymous namespaces will be
    +
    466 # extracted and appear in the documentation as a namespace called
    +
    467 # 'anonymous_namespace{file}', where file will be replaced with the base name of
    +
    468 # the file that contains the anonymous namespace. By default anonymous namespace
    +
    469 # are hidden.
    +
    470 # The default value is: NO.
    +
    471 
    +
    472 EXTRACT_ANON_NSPACES = NO
    +
    473 
    +
    474 # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
    +
    475 # undocumented members inside documented classes or files. If set to NO these
    +
    476 # members will be included in the various overviews, but no documentation
    +
    477 # section is generated. This option has no effect if EXTRACT_ALL is enabled.
    +
    478 # The default value is: NO.
    +
    479 
    +
    480 HIDE_UNDOC_MEMBERS = YES
    +
    481 
    +
    482 # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
    +
    483 # undocumented classes that are normally visible in the class hierarchy. If set
    +
    484 # to NO, these classes will be included in the various overviews. This option
    +
    485 # has no effect if EXTRACT_ALL is enabled.
    +
    486 # The default value is: NO.
    +
    487 
    +
    488 HIDE_UNDOC_CLASSES = YES
    +
    489 
    +
    490 # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
    +
    491 # (class|struct|union) declarations. If set to NO, these declarations will be
    +
    492 # included in the documentation.
    +
    493 # The default value is: NO.
    +
    494 
    +
    495 HIDE_FRIEND_COMPOUNDS = YES
    +
    496 
    +
    497 # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
    +
    498 # documentation blocks found inside the body of a function. If set to NO, these
    +
    499 # blocks will be appended to the function's detailed documentation block.
    +
    500 # The default value is: NO.
    +
    501 
    +
    502 HIDE_IN_BODY_DOCS = YES
    +
    503 
    +
    504 # The INTERNAL_DOCS tag determines if documentation that is typed after a
    +
    505 # \internal command is included. If the tag is set to NO then the documentation
    +
    506 # will be excluded. Set it to YES to include the internal documentation.
    +
    507 # The default value is: NO.
    +
    508 
    +
    509 INTERNAL_DOCS = NO
    +
    510 
    +
    511 # If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
    +
    512 # names in lower-case letters. If set to YES, upper-case letters are also
    +
    513 # allowed. This is useful if you have classes or files whose names only differ
    +
    514 # in case and if your file system supports case sensitive file names. Windows
    +
    515 # and Mac users are advised to set this option to NO.
    +
    516 # The default value is: system dependent.
    +
    517 
    +
    518 CASE_SENSE_NAMES = YES
    +
    519 
    +
    520 # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
    +
    521 # their full class and namespace scopes in the documentation. If set to YES, the
    +
    522 # scope will be hidden.
    +
    523 # The default value is: NO.
    +
    524 
    +
    525 HIDE_SCOPE_NAMES = YES
    +
    526 
    +
    527 # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
    +
    528 # append additional text to a page's title, such as Class Reference. If set to
    +
    529 # YES the compound reference will be hidden.
    +
    530 # The default value is: NO.
    +
    531 
    +
    532 HIDE_COMPOUND_REFERENCE= NO
    +
    533 
    +
    534 # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
    +
    535 # the files that are included by a file in the documentation of that file.
    +
    536 # The default value is: YES.
    +
    537 
    +
    538 SHOW_INCLUDE_FILES = NO
    +
    539 
    +
    540 # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
    +
    541 # grouped member an include statement to the documentation, telling the reader
    +
    542 # which file to include in order to use the member.
    +
    543 # The default value is: NO.
    +
    544 
    +
    545 SHOW_GROUPED_MEMB_INC = NO
    +
    546 
    +
    547 # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
    +
    548 # files with double quotes in the documentation rather than with sharp brackets.
    +
    549 # The default value is: NO.
    +
    550 
    +
    551 FORCE_LOCAL_INCLUDES = NO
    +
    552 
    +
    553 # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
    +
    554 # documentation for inline members.
    +
    555 # The default value is: YES.
    +
    556 
    +
    557 INLINE_INFO = NO
    +
    558 
    +
    559 # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
    +
    560 # (detailed) documentation of file and class members alphabetically by member
    +
    561 # name. If set to NO, the members will appear in declaration order.
    +
    562 # The default value is: YES.
    +
    563 
    +
    564 SORT_MEMBER_DOCS = YES
    +
    565 
    +
    566 # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
    +
    567 # descriptions of file, namespace and class members alphabetically by member
    +
    568 # name. If set to NO, the members will appear in declaration order. Note that
    +
    569 # this will also influence the order of the classes in the class list.
    +
    570 # The default value is: NO.
    +
    571 
    +
    572 SORT_BRIEF_DOCS = YES
    +
    573 
    +
    574 # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
    +
    575 # (brief and detailed) documentation of class members so that constructors and
    +
    576 # destructors are listed first. If set to NO the constructors will appear in the
    +
    577 # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
    +
    578 # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
    +
    579 # member documentation.
    +
    580 # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
    +
    581 # detailed member documentation.
    +
    582 # The default value is: NO.
    +
    583 
    +
    584 SORT_MEMBERS_CTORS_1ST = NO
    +
    585 
    +
    586 # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
    +
    587 # of group names into alphabetical order. If set to NO the group names will
    +
    588 # appear in their defined order.
    +
    589 # The default value is: NO.
    +
    590 
    +
    591 SORT_GROUP_NAMES = NO
    +
    592 
    +
    593 # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
    +
    594 # fully-qualified names, including namespaces. If set to NO, the class list will
    +
    595 # be sorted only by class name, not including the namespace part.
    +
    596 # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
    +
    597 # Note: This option applies only to the class list, not to the alphabetical
    +
    598 # list.
    +
    599 # The default value is: NO.
    +
    600 
    +
    601 SORT_BY_SCOPE_NAME = YES
    +
    602 
    +
    603 # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
    +
    604 # type resolution of all parameters of a function it will reject a match between
    +
    605 # the prototype and the implementation of a member function even if there is
    +
    606 # only one candidate or it is obvious which candidate to choose by doing a
    +
    607 # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
    +
    608 # accept a match between prototype and implementation in such cases.
    +
    609 # The default value is: NO.
    +
    610 
    +
    611 STRICT_PROTO_MATCHING = NO
    +
    612 
    +
    613 # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
    +
    614 # list. This list is created by putting \todo commands in the documentation.
    +
    615 # The default value is: YES.
    +
    616 
    +
    617 GENERATE_TODOLIST = YES
    +
    618 
    +
    619 # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
    +
    620 # list. This list is created by putting \test commands in the documentation.
    +
    621 # The default value is: YES.
    +
    622 
    +
    623 GENERATE_TESTLIST = YES
    +
    624 
    +
    625 # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
    +
    626 # list. This list is created by putting \bug commands in the documentation.
    +
    627 # The default value is: YES.
    +
    628 
    +
    629 GENERATE_BUGLIST = YES
    +
    630 
    +
    631 # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
    +
    632 # the deprecated list. This list is created by putting \deprecated commands in
    +
    633 # the documentation.
    +
    634 # The default value is: YES.
    +
    635 
    +
    636 GENERATE_DEPRECATEDLIST= YES
    +
    637 
    +
    638 # The ENABLED_SECTIONS tag can be used to enable conditional documentation
    +
    639 # sections, marked by \if <section_label> ... \endif and \cond <section_label>
    +
    640 # ... \endcond blocks.
    +
    641 
    +
    642 ENABLED_SECTIONS =
    +
    643 
    +
    644 # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
    +
    645 # initial value of a variable or macro / define can have for it to appear in the
    +
    646 # documentation. If the initializer consists of more lines than specified here
    +
    647 # it will be hidden. Use a value of 0 to hide initializers completely. The
    +
    648 # appearance of the value of individual variables and macros / defines can be
    +
    649 # controlled using \showinitializer or \hideinitializer command in the
    +
    650 # documentation regardless of this setting.
    +
    651 # Minimum value: 0, maximum value: 10000, default value: 30.
    +
    652 
    +
    653 MAX_INITIALIZER_LINES = 30
    +
    654 
    +
    655 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
    +
    656 # the bottom of the documentation of classes and structs. If set to YES, the
    +
    657 # list will mention the files that were used to generate the documentation.
    +
    658 # The default value is: YES.
    +
    659 
    +
    660 SHOW_USED_FILES = NO
    +
    661 
    +
    662 # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
    +
    663 # will remove the Files entry from the Quick Index and from the Folder Tree View
    +
    664 # (if specified).
    +
    665 # The default value is: YES.
    +
    666 
    +
    667 SHOW_FILES = YES
    +
    668 
    +
    669 # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
    +
    670 # page. This will remove the Namespaces entry from the Quick Index and from the
    +
    671 # Folder Tree View (if specified).
    +
    672 # The default value is: YES.
    +
    673 
    +
    674 SHOW_NAMESPACES = YES
    +
    675 
    +
    676 # The FILE_VERSION_FILTER tag can be used to specify a program or script that
    +
    677 # doxygen should invoke to get the current version for each file (typically from
    +
    678 # the version control system). Doxygen will invoke the program by executing (via
    +
    679 # popen()) the command command input-file, where command is the value of the
    +
    680 # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
    +
    681 # by doxygen. Whatever the program writes to standard output is used as the file
    +
    682 # version. For an example see the documentation.
    +
    683 
    +
    684 FILE_VERSION_FILTER =
    +
    685 
    +
    686 # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
    +
    687 # by doxygen. The layout file controls the global structure of the generated
    +
    688 # output files in an output format independent way. To create the layout file
    +
    689 # that represents doxygen's defaults, run doxygen with the -l option. You can
    +
    690 # optionally specify a file name after the option, if omitted DoxygenLayout.xml
    +
    691 # will be used as the name of the layout file.
    +
    692 #
    +
    693 # Note that if you run doxygen from a directory containing a file called
    +
    694 # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
    +
    695 # tag is left empty.
    +
    696 
    +
    697 LAYOUT_FILE =
    +
    698 
    +
    699 # The CITE_BIB_FILES tag can be used to specify one or more bib files containing
    +
    700 # the reference definitions. This must be a list of .bib files. The .bib
    +
    701 # extension is automatically appended if omitted. This requires the bibtex tool
    +
    702 # to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
    +
    703 # For LaTeX the style of the bibliography can be controlled using
    +
    704 # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
    +
    705 # search path. See also \cite for info how to create references.
    +
    706 
    +
    707 CITE_BIB_FILES =
    +
    708 
    +
    709 #---------------------------------------------------------------------------
    +
    710 # Configuration options related to warning and progress messages
    +
    711 #---------------------------------------------------------------------------
    +
    712 
    +
    713 # The QUIET tag can be used to turn on/off the messages that are generated to
    +
    714 # standard output by doxygen. If QUIET is set to YES this implies that the
    +
    715 # messages are off.
    +
    716 # The default value is: NO.
    +
    717 
    +
    718 QUIET = NO
    +
    719 
    +
    720 # The WARNINGS tag can be used to turn on/off the warning messages that are
    +
    721 # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
    +
    722 # this implies that the warnings are on.
    +
    723 #
    +
    724 # Tip: Turn warnings on while writing the documentation.
    +
    725 # The default value is: YES.
    +
    726 
    +
    727 WARNINGS = YES
    +
    728 
    +
    729 # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
    +
    730 # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
    +
    731 # will automatically be disabled.
    +
    732 # The default value is: YES.
    +
    733 
    +
    734 WARN_IF_UNDOCUMENTED = YES
    +
    735 
    +
    736 # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
    +
    737 # potential errors in the documentation, such as not documenting some parameters
    +
    738 # in a documented function, or documenting parameters that don't exist or using
    +
    739 # markup commands wrongly.
    +
    740 # The default value is: YES.
    +
    741 
    +
    742 WARN_IF_DOC_ERROR = YES
    +
    743 
    +
    744 # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
    +
    745 # are documented, but have no documentation for their parameters or return
    +
    746 # value. If set to NO, doxygen will only warn about wrong or incomplete
    +
    747 # parameter documentation, but not about the absence of documentation.
    +
    748 # The default value is: NO.
    +
    749 
    +
    750 WARN_NO_PARAMDOC = NO
    +
    751 
    +
    752 # The WARN_FORMAT tag determines the format of the warning messages that doxygen
    +
    753 # can produce. The string should contain the $file, $line, and $text tags, which
    +
    754 # will be replaced by the file and line number from which the warning originated
    +
    755 # and the warning text. Optionally the format may contain $version, which will
    +
    756 # be replaced by the version of the file (if it could be obtained via
    +
    757 # FILE_VERSION_FILTER)
    +
    758 # The default value is: $file:$line: $text.
    +
    759 
    +
    760 WARN_FORMAT = "$file:$line: $text"
    +
    761 
    +
    762 # The WARN_LOGFILE tag can be used to specify a file to which warning and error
    +
    763 # messages should be written. If left blank the output is written to standard
    +
    764 # error (stderr).
    +
    765 
    +
    766 WARN_LOGFILE =
    +
    767 
    +
    768 #---------------------------------------------------------------------------
    +
    769 # Configuration options related to the input files
    +
    770 #---------------------------------------------------------------------------
    +
    771 
    +
    772 # The INPUT tag is used to specify the files and/or directories that contain
    +
    773 # documented source files. You may enter file names like myfile.cpp or
    +
    774 # directories like /usr/src/myproject. Separate the files or directories with
    +
    775 # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
    +
    776 # Note: If this tag is empty the current directory is searched.
    +
    777 
    +
    778 INPUT = ../glm \
    +
    779  .
    +
    780 
    +
    781 # This tag can be used to specify the character encoding of the source files
    +
    782 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
    +
    783 # libiconv (or the iconv built into libc) for the transcoding. See the libiconv
    +
    784 # documentation (see: http://www.gnu.org/software/libiconv) for the list of
    +
    785 # possible encodings.
    +
    786 # The default value is: UTF-8.
    +
    787 
    +
    788 INPUT_ENCODING = UTF-8
    +
    789 
    +
    790 # If the value of the INPUT tag contains directories, you can use the
    +
    791 # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
    +
    792 # *.h) to filter out the source-files in the directories.
    +
    793 #
    +
    794 # Note that for custom extensions or not directly supported extensions you also
    +
    795 # need to set EXTENSION_MAPPING for the extension otherwise the files are not
    +
    796 # read by doxygen.
    +
    797 #
    +
    798 # If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
    +
    799 # *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
    +
    800 # *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
    +
    801 # *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd,
    +
    802 # *.vhdl, *.ucf, *.qsf, *.as and *.js.
    +
    803 
    +
    804 FILE_PATTERNS = *.hpp \
    +
    805  *.doxy
    +
    806 
    +
    807 # The RECURSIVE tag can be used to specify whether or not subdirectories should
    +
    808 # be searched for input files as well.
    +
    809 # The default value is: NO.
    +
    810 
    +
    811 RECURSIVE = YES
    +
    812 
    +
    813 # The EXCLUDE tag can be used to specify files and/or directories that should be
    +
    814 # excluded from the INPUT source files. This way you can easily exclude a
    +
    815 # subdirectory from a directory tree whose root is specified with the INPUT tag.
    +
    816 #
    +
    817 # Note that relative paths are relative to the directory from which doxygen is
    +
    818 # run.
    +
    819 
    +
    820 EXCLUDE =
    +
    821 
    +
    822 # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
    +
    823 # directories that are symbolic links (a Unix file system feature) are excluded
    +
    824 # from the input.
    +
    825 # The default value is: NO.
    +
    826 
    +
    827 EXCLUDE_SYMLINKS = NO
    +
    828 
    +
    829 # If the value of the INPUT tag contains directories, you can use the
    +
    830 # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
    +
    831 # certain files from those directories.
    +
    832 #
    +
    833 # Note that the wildcards are matched against the file with absolute path, so to
    +
    834 # exclude all test directories for example use the pattern */test/*
    +
    835 
    +
    836 EXCLUDE_PATTERNS =
    +
    837 
    +
    838 # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
    +
    839 # (namespaces, classes, functions, etc.) that should be excluded from the
    +
    840 # output. The symbol name can be a fully qualified name, a word, or if the
    +
    841 # wildcard * is used, a substring. Examples: ANamespace, AClass,
    +
    842 # AClass::ANamespace, ANamespace::*Test
    +
    843 #
    +
    844 # Note that the wildcards are matched against the file with absolute path, so to
    +
    845 # exclude all test directories use the pattern */test/*
    +
    846 
    +
    847 EXCLUDE_SYMBOLS =
    +
    848 
    +
    849 # The EXAMPLE_PATH tag can be used to specify one or more files or directories
    +
    850 # that contain example code fragments that are included (see the \include
    +
    851 # command).
    +
    852 
    +
    853 EXAMPLE_PATH =
    +
    854 
    +
    855 # If the value of the EXAMPLE_PATH tag contains directories, you can use the
    +
    856 # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
    +
    857 # *.h) to filter out the source-files in the directories. If left blank all
    +
    858 # files are included.
    +
    859 
    +
    860 EXAMPLE_PATTERNS = *
    +
    861 
    +
    862 # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
    +
    863 # searched for input files to be used with the \include or \dontinclude commands
    +
    864 # irrespective of the value of the RECURSIVE tag.
    +
    865 # The default value is: NO.
    +
    866 
    +
    867 EXAMPLE_RECURSIVE = NO
    +
    868 
    +
    869 # The IMAGE_PATH tag can be used to specify one or more files or directories
    +
    870 # that contain images that are to be included in the documentation (see the
    +
    871 # \image command).
    +
    872 
    +
    873 IMAGE_PATH =
    +
    874 
    +
    875 # The INPUT_FILTER tag can be used to specify a program that doxygen should
    +
    876 # invoke to filter for each input file. Doxygen will invoke the filter program
    +
    877 # by executing (via popen()) the command:
    +
    878 #
    +
    879 # <filter> <input-file>
    +
    880 #
    +
    881 # where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
    +
    882 # name of an input file. Doxygen will then use the output that the filter
    +
    883 # program writes to standard output. If FILTER_PATTERNS is specified, this tag
    +
    884 # will be ignored.
    +
    885 #
    +
    886 # Note that the filter must not add or remove lines; it is applied before the
    +
    887 # code is scanned, but not when the output code is generated. If lines are added
    +
    888 # or removed, the anchors will not be placed correctly.
    +
    889 
    +
    890 INPUT_FILTER =
    +
    891 
    +
    892 # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
    +
    893 # basis. Doxygen will compare the file name with each pattern and apply the
    +
    894 # filter if there is a match. The filters are a list of the form: pattern=filter
    +
    895 # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
    +
    896 # filters are used. If the FILTER_PATTERNS tag is empty or if none of the
    +
    897 # patterns match the file name, INPUT_FILTER is applied.
    +
    898 
    +
    899 FILTER_PATTERNS =
    +
    900 
    +
    901 # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
    +
    902 # INPUT_FILTER) will also be used to filter the input files that are used for
    +
    903 # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
    +
    904 # The default value is: NO.
    +
    905 
    +
    906 FILTER_SOURCE_FILES = NO
    +
    907 
    +
    908 # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
    +
    909 # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
    +
    910 # it is also possible to disable source filtering for a specific pattern using
    +
    911 # *.ext= (so without naming a filter).
    +
    912 # This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
    +
    913 
    +
    914 FILTER_SOURCE_PATTERNS =
    +
    915 
    +
    916 # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
    +
    917 # is part of the input, its contents will be placed on the main page
    +
    918 # (index.html). This can be useful if you have a project on for instance GitHub
    +
    919 # and want to reuse the introduction page also for the doxygen output.
    +
    920 
    +
    921 USE_MDFILE_AS_MAINPAGE =
    +
    922 
    +
    923 #---------------------------------------------------------------------------
    +
    924 # Configuration options related to source browsing
    +
    925 #---------------------------------------------------------------------------
    +
    926 
    +
    927 # If the SOURCE_BROWSER tag is set to YES then a list of source files will be
    +
    928 # generated. Documented entities will be cross-referenced with these sources.
    +
    929 #
    +
    930 # Note: To get rid of all source code in the generated output, make sure that
    +
    931 # also VERBATIM_HEADERS is set to NO.
    +
    932 # The default value is: NO.
    +
    933 
    +
    934 SOURCE_BROWSER = YES
    +
    935 
    +
    936 # Setting the INLINE_SOURCES tag to YES will include the body of functions,
    +
    937 # classes and enums directly into the documentation.
    +
    938 # The default value is: NO.
    +
    939 
    +
    940 INLINE_SOURCES = NO
    +
    941 
    +
    942 # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
    +
    943 # special comment blocks from generated source code fragments. Normal C, C++ and
    +
    944 # Fortran comments will always remain visible.
    +
    945 # The default value is: YES.
    +
    946 
    +
    947 STRIP_CODE_COMMENTS = YES
    +
    948 
    +
    949 # If the REFERENCED_BY_RELATION tag is set to YES then for each documented
    +
    950 # function all documented functions referencing it will be listed.
    +
    951 # The default value is: NO.
    +
    952 
    +
    953 REFERENCED_BY_RELATION = YES
    +
    954 
    +
    955 # If the REFERENCES_RELATION tag is set to YES then for each documented function
    +
    956 # all documented entities called/used by that function will be listed.
    +
    957 # The default value is: NO.
    +
    958 
    +
    959 REFERENCES_RELATION = YES
    +
    960 
    +
    961 # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
    +
    962 # to YES then the hyperlinks from functions in REFERENCES_RELATION and
    +
    963 # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
    +
    964 # link to the documentation.
    +
    965 # The default value is: YES.
    +
    966 
    +
    967 REFERENCES_LINK_SOURCE = YES
    +
    968 
    +
    969 # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
    +
    970 # source code will show a tooltip with additional information such as prototype,
    +
    971 # brief description and links to the definition and documentation. Since this
    +
    972 # will make the HTML file larger and loading of large files a bit slower, you
    +
    973 # can opt to disable this feature.
    +
    974 # The default value is: YES.
    +
    975 # This tag requires that the tag SOURCE_BROWSER is set to YES.
    +
    976 
    +
    977 SOURCE_TOOLTIPS = YES
    +
    978 
    +
    979 # If the USE_HTAGS tag is set to YES then the references to source code will
    +
    980 # point to the HTML generated by the htags(1) tool instead of doxygen built-in
    +
    981 # source browser. The htags tool is part of GNU's global source tagging system
    +
    982 # (see http://www.gnu.org/software/global/global.html). You will need version
    +
    983 # 4.8.6 or higher.
    +
    984 #
    +
    985 # To use it do the following:
    +
    986 # - Install the latest version of global
    +
    987 # - Enable SOURCE_BROWSER and USE_HTAGS in the config file
    +
    988 # - Make sure the INPUT points to the root of the source tree
    +
    989 # - Run doxygen as normal
    +
    990 #
    +
    991 # Doxygen will invoke htags (and that will in turn invoke gtags), so these
    +
    992 # tools must be available from the command line (i.e. in the search path).
    +
    993 #
    +
    994 # The result: instead of the source browser generated by doxygen, the links to
    +
    995 # source code will now point to the output of htags.
    +
    996 # The default value is: NO.
    +
    997 # This tag requires that the tag SOURCE_BROWSER is set to YES.
    +
    998 
    +
    999 USE_HTAGS = NO
    +
    1000 
    +
    1001 # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
    +
    1002 # verbatim copy of the header file for each class for which an include is
    +
    1003 # specified. Set to NO to disable this.
    +
    1004 # See also: Section \class.
    +
    1005 # The default value is: YES.
    +
    1006 
    +
    1007 VERBATIM_HEADERS = YES
    +
    1008 
    +
    1009 # If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
    +
    1010 # clang parser (see: http://clang.llvm.org/) for more accurate parsing at the
    +
    1011 # cost of reduced performance. This can be particularly helpful with template
    +
    1012 # rich C++ code for which doxygen's built-in parser lacks the necessary type
    +
    1013 # information.
    +
    1014 # Note: The availability of this option depends on whether or not doxygen was
    +
    1015 # compiled with the --with-libclang option.
    +
    1016 # The default value is: NO.
    +
    1017 
    +
    1018 CLANG_ASSISTED_PARSING = NO
    +
    1019 
    +
    1020 # If clang assisted parsing is enabled you can provide the compiler with command
    +
    1021 # line options that you would normally use when invoking the compiler. Note that
    +
    1022 # the include paths will already be set by doxygen for the files and directories
    +
    1023 # specified with INPUT and INCLUDE_PATH.
    +
    1024 # This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
    +
    1025 
    +
    1026 CLANG_OPTIONS =
    +
    1027 
    +
    1028 #---------------------------------------------------------------------------
    +
    1029 # Configuration options related to the alphabetical class index
    +
    1030 #---------------------------------------------------------------------------
    +
    1031 
    +
    1032 # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
    +
    1033 # compounds will be generated. Enable this if the project contains a lot of
    +
    1034 # classes, structs, unions or interfaces.
    +
    1035 # The default value is: YES.
    +
    1036 
    +
    1037 ALPHABETICAL_INDEX = NO
    +
    1038 
    +
    1039 # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
    +
    1040 # which the alphabetical index list will be split.
    +
    1041 # Minimum value: 1, maximum value: 20, default value: 5.
    +
    1042 # This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
    +
    1043 
    +
    1044 COLS_IN_ALPHA_INDEX = 5
    +
    1045 
    +
    1046 # In case all classes in a project start with a common prefix, all classes will
    +
    1047 # be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
    +
    1048 # can be used to specify a prefix (or a list of prefixes) that should be ignored
    +
    1049 # while generating the index headers.
    +
    1050 # This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
    +
    1051 
    +
    1052 IGNORE_PREFIX =
    +
    1053 
    +
    1054 #---------------------------------------------------------------------------
    +
    1055 # Configuration options related to the HTML output
    +
    1056 #---------------------------------------------------------------------------
    +
    1057 
    +
    1058 # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
    +
    1059 # The default value is: YES.
    +
    1060 
    +
    1061 GENERATE_HTML = YES
    +
    1062 
    +
    1063 # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
    +
    1064 # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
    +
    1065 # it.
    +
    1066 # The default directory is: html.
    +
    1067 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1068 
    +
    1069 HTML_OUTPUT = html
    +
    1070 
    +
    1071 # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
    +
    1072 # generated HTML page (for example: .htm, .php, .asp).
    +
    1073 # The default value is: .html.
    +
    1074 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1075 
    +
    1076 HTML_FILE_EXTENSION = .html
    +
    1077 
    +
    1078 # The HTML_HEADER tag can be used to specify a user-defined HTML header file for
    +
    1079 # each generated HTML page. If the tag is left blank doxygen will generate a
    +
    1080 # standard header.
    +
    1081 #
    +
    1082 # To get valid HTML the header file that includes any scripts and style sheets
    +
    1083 # that doxygen needs, which is dependent on the configuration options used (e.g.
    +
    1084 # the setting GENERATE_TREEVIEW). It is highly recommended to start with a
    +
    1085 # default header using
    +
    1086 # doxygen -w html new_header.html new_footer.html new_stylesheet.css
    +
    1087 # YourConfigFile
    +
    1088 # and then modify the file new_header.html. See also section "Doxygen usage"
    +
    1089 # for information on how to generate the default header that doxygen normally
    +
    1090 # uses.
    +
    1091 # Note: The header is subject to change so you typically have to regenerate the
    +
    1092 # default header when upgrading to a newer version of doxygen. For a description
    +
    1093 # of the possible markers and block names see the documentation.
    +
    1094 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1095 
    +
    1096 HTML_HEADER =
    +
    1097 
    +
    1098 # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
    +
    1099 # generated HTML page. If the tag is left blank doxygen will generate a standard
    +
    1100 # footer. See HTML_HEADER for more information on how to generate a default
    +
    1101 # footer and what special commands can be used inside the footer. See also
    +
    1102 # section "Doxygen usage" for information on how to generate the default footer
    +
    1103 # that doxygen normally uses.
    +
    1104 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1105 
    +
    1106 HTML_FOOTER =
    +
    1107 
    +
    1108 # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
    +
    1109 # sheet that is used by each HTML page. It can be used to fine-tune the look of
    +
    1110 # the HTML output. If left blank doxygen will generate a default style sheet.
    +
    1111 # See also section "Doxygen usage" for information on how to generate the style
    +
    1112 # sheet that doxygen normally uses.
    +
    1113 # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
    +
    1114 # it is more robust and this tag (HTML_STYLESHEET) will in the future become
    +
    1115 # obsolete.
    +
    1116 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1117 
    +
    1118 HTML_STYLESHEET =
    +
    1119 
    +
    1120 # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
    +
    1121 # cascading style sheets that are included after the standard style sheets
    +
    1122 # created by doxygen. Using this option one can overrule certain style aspects.
    +
    1123 # This is preferred over using HTML_STYLESHEET since it does not replace the
    +
    1124 # standard style sheet and is therefore more robust against future updates.
    +
    1125 # Doxygen will copy the style sheet files to the output directory.
    +
    1126 # Note: The order of the extra style sheet files is of importance (e.g. the last
    +
    1127 # style sheet in the list overrules the setting of the previous ones in the
    +
    1128 # list). For an example see the documentation.
    +
    1129 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1130 
    +
    1131 HTML_EXTRA_STYLESHEET =
    +
    1132 
    +
    1133 # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
    +
    1134 # other source files which should be copied to the HTML output directory. Note
    +
    1135 # that these files will be copied to the base HTML output directory. Use the
    +
    1136 # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
    +
    1137 # files. In the HTML_STYLESHEET file, use the file name only. Also note that the
    +
    1138 # files will be copied as-is; there are no commands or markers available.
    +
    1139 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1140 
    +
    1141 HTML_EXTRA_FILES =
    +
    1142 
    +
    1143 # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
    +
    1144 # will adjust the colors in the style sheet and background images according to
    +
    1145 # this color. Hue is specified as an angle on a colorwheel, see
    +
    1146 # http://en.wikipedia.org/wiki/Hue for more information. For instance the value
    +
    1147 # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
    +
    1148 # purple, and 360 is red again.
    +
    1149 # Minimum value: 0, maximum value: 359, default value: 220.
    +
    1150 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1151 
    +
    1152 HTML_COLORSTYLE_HUE = 220
    +
    1153 
    +
    1154 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
    +
    1155 # in the HTML output. For a value of 0 the output will use grayscales only. A
    +
    1156 # value of 255 will produce the most vivid colors.
    +
    1157 # Minimum value: 0, maximum value: 255, default value: 100.
    +
    1158 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1159 
    +
    1160 HTML_COLORSTYLE_SAT = 100
    +
    1161 
    +
    1162 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
    +
    1163 # luminance component of the colors in the HTML output. Values below 100
    +
    1164 # gradually make the output lighter, whereas values above 100 make the output
    +
    1165 # darker. The value divided by 100 is the actual gamma applied, so 80 represents
    +
    1166 # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
    +
    1167 # change the gamma.
    +
    1168 # Minimum value: 40, maximum value: 240, default value: 80.
    +
    1169 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1170 
    +
    1171 HTML_COLORSTYLE_GAMMA = 80
    +
    1172 
    +
    1173 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
    +
    1174 # page will contain the date and time when the page was generated. Setting this
    +
    1175 # to YES can help to show when doxygen was last run and thus if the
    +
    1176 # documentation is up to date.
    +
    1177 # The default value is: NO.
    +
    1178 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1179 
    +
    1180 HTML_TIMESTAMP = NO
    +
    1181 
    +
    1182 # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
    +
    1183 # documentation will contain sections that can be hidden and shown after the
    +
    1184 # page has loaded.
    +
    1185 # The default value is: NO.
    +
    1186 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1187 
    +
    1188 HTML_DYNAMIC_SECTIONS = NO
    +
    1189 
    +
    1190 # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
    +
    1191 # shown in the various tree structured indices initially; the user can expand
    +
    1192 # and collapse entries dynamically later on. Doxygen will expand the tree to
    +
    1193 # such a level that at most the specified number of entries are visible (unless
    +
    1194 # a fully collapsed tree already exceeds this amount). So setting the number of
    +
    1195 # entries 1 will produce a full collapsed tree by default. 0 is a special value
    +
    1196 # representing an infinite number of entries and will result in a full expanded
    +
    1197 # tree by default.
    +
    1198 # Minimum value: 0, maximum value: 9999, default value: 100.
    +
    1199 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1200 
    +
    1201 HTML_INDEX_NUM_ENTRIES = 100
    +
    1202 
    +
    1203 # If the GENERATE_DOCSET tag is set to YES, additional index files will be
    +
    1204 # generated that can be used as input for Apple's Xcode 3 integrated development
    +
    1205 # environment (see: http://developer.apple.com/tools/xcode/), introduced with
    +
    1206 # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
    +
    1207 # Makefile in the HTML output directory. Running make will produce the docset in
    +
    1208 # that directory and running make install will install the docset in
    +
    1209 # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
    +
    1210 # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
    +
    1211 # for more information.
    +
    1212 # The default value is: NO.
    +
    1213 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1214 
    +
    1215 GENERATE_DOCSET = NO
    +
    1216 
    +
    1217 # This tag determines the name of the docset feed. A documentation feed provides
    +
    1218 # an umbrella under which multiple documentation sets from a single provider
    +
    1219 # (such as a company or product suite) can be grouped.
    +
    1220 # The default value is: Doxygen generated docs.
    +
    1221 # This tag requires that the tag GENERATE_DOCSET is set to YES.
    +
    1222 
    +
    1223 DOCSET_FEEDNAME = "Doxygen generated docs"
    +
    1224 
    +
    1225 # This tag specifies a string that should uniquely identify the documentation
    +
    1226 # set bundle. This should be a reverse domain-name style string, e.g.
    +
    1227 # com.mycompany.MyDocSet. Doxygen will append .docset to the name.
    +
    1228 # The default value is: org.doxygen.Project.
    +
    1229 # This tag requires that the tag GENERATE_DOCSET is set to YES.
    +
    1230 
    +
    1231 DOCSET_BUNDLE_ID = org.doxygen.Project
    +
    1232 
    +
    1233 # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
    +
    1234 # the documentation publisher. This should be a reverse domain-name style
    +
    1235 # string, e.g. com.mycompany.MyDocSet.documentation.
    +
    1236 # The default value is: org.doxygen.Publisher.
    +
    1237 # This tag requires that the tag GENERATE_DOCSET is set to YES.
    +
    1238 
    +
    1239 DOCSET_PUBLISHER_ID = org.doxygen.Publisher
    +
    1240 
    +
    1241 # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
    +
    1242 # The default value is: Publisher.
    +
    1243 # This tag requires that the tag GENERATE_DOCSET is set to YES.
    +
    1244 
    +
    1245 DOCSET_PUBLISHER_NAME = Publisher
    +
    1246 
    +
    1247 # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
    +
    1248 # additional HTML index files: index.hhp, index.hhc, and index.hhk. The
    +
    1249 # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
    +
    1250 # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
    +
    1251 # Windows.
    +
    1252 #
    +
    1253 # The HTML Help Workshop contains a compiler that can convert all HTML output
    +
    1254 # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
    +
    1255 # files are now used as the Windows 98 help format, and will replace the old
    +
    1256 # Windows help format (.hlp) on all Windows platforms in the future. Compressed
    +
    1257 # HTML files also contain an index, a table of contents, and you can search for
    +
    1258 # words in the documentation. The HTML workshop also contains a viewer for
    +
    1259 # compressed HTML files.
    +
    1260 # The default value is: NO.
    +
    1261 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1262 
    +
    1263 GENERATE_HTMLHELP = NO
    +
    1264 
    +
    1265 # The CHM_FILE tag can be used to specify the file name of the resulting .chm
    +
    1266 # file. You can add a path in front of the file if the result should not be
    +
    1267 # written to the html output directory.
    +
    1268 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1269 
    +
    1270 CHM_FILE =
    +
    1271 
    +
    1272 # The HHC_LOCATION tag can be used to specify the location (absolute path
    +
    1273 # including file name) of the HTML help compiler (hhc.exe). If non-empty,
    +
    1274 # doxygen will try to run the HTML help compiler on the generated index.hhp.
    +
    1275 # The file has to be specified with full path.
    +
    1276 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1277 
    +
    1278 HHC_LOCATION =
    +
    1279 
    +
    1280 # The GENERATE_CHI flag controls if a separate .chi index file is generated
    +
    1281 # (YES) or that it should be included in the master .chm file (NO).
    +
    1282 # The default value is: NO.
    +
    1283 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1284 
    +
    1285 GENERATE_CHI = NO
    +
    1286 
    +
    1287 # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
    +
    1288 # and project file content.
    +
    1289 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1290 
    +
    1291 CHM_INDEX_ENCODING =
    +
    1292 
    +
    1293 # The BINARY_TOC flag controls whether a binary table of contents is generated
    +
    1294 # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
    +
    1295 # enables the Previous and Next buttons.
    +
    1296 # The default value is: NO.
    +
    1297 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1298 
    +
    1299 BINARY_TOC = NO
    +
    1300 
    +
    1301 # The TOC_EXPAND flag can be set to YES to add extra items for group members to
    +
    1302 # the table of contents of the HTML help documentation and to the tree view.
    +
    1303 # The default value is: NO.
    +
    1304 # This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    +
    1305 
    +
    1306 TOC_EXPAND = NO
    +
    1307 
    +
    1308 # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
    +
    1309 # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
    +
    1310 # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
    +
    1311 # (.qch) of the generated HTML documentation.
    +
    1312 # The default value is: NO.
    +
    1313 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1314 
    +
    1315 GENERATE_QHP = NO
    +
    1316 
    +
    1317 # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
    +
    1318 # the file name of the resulting .qch file. The path specified is relative to
    +
    1319 # the HTML output folder.
    +
    1320 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1321 
    +
    1322 QCH_FILE =
    +
    1323 
    +
    1324 # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
    +
    1325 # Project output. For more information please see Qt Help Project / Namespace
    +
    1326 # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
    +
    1327 # The default value is: org.doxygen.Project.
    +
    1328 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1329 
    +
    1330 QHP_NAMESPACE = org.doxygen.Project
    +
    1331 
    +
    1332 # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
    +
    1333 # Help Project output. For more information please see Qt Help Project / Virtual
    +
    1334 # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
    +
    1335 # folders).
    +
    1336 # The default value is: doc.
    +
    1337 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1338 
    +
    1339 QHP_VIRTUAL_FOLDER = doc
    +
    1340 
    +
    1341 # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
    +
    1342 # filter to add. For more information please see Qt Help Project / Custom
    +
    1343 # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
    +
    1344 # filters).
    +
    1345 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1346 
    +
    1347 QHP_CUST_FILTER_NAME =
    +
    1348 
    +
    1349 # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
    +
    1350 # custom filter to add. For more information please see Qt Help Project / Custom
    +
    1351 # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
    +
    1352 # filters).
    +
    1353 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1354 
    +
    1355 QHP_CUST_FILTER_ATTRS =
    +
    1356 
    +
    1357 # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
    +
    1358 # project's filter section matches. Qt Help Project / Filter Attributes (see:
    +
    1359 # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
    +
    1360 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1361 
    +
    1362 QHP_SECT_FILTER_ATTRS =
    +
    1363 
    +
    1364 # The QHG_LOCATION tag can be used to specify the location of Qt's
    +
    1365 # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
    +
    1366 # generated .qhp file.
    +
    1367 # This tag requires that the tag GENERATE_QHP is set to YES.
    +
    1368 
    +
    1369 QHG_LOCATION =
    +
    1370 
    +
    1371 # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
    +
    1372 # generated, together with the HTML files, they form an Eclipse help plugin. To
    +
    1373 # install this plugin and make it available under the help contents menu in
    +
    1374 # Eclipse, the contents of the directory containing the HTML and XML files needs
    +
    1375 # to be copied into the plugins directory of eclipse. The name of the directory
    +
    1376 # within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
    +
    1377 # After copying Eclipse needs to be restarted before the help appears.
    +
    1378 # The default value is: NO.
    +
    1379 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1380 
    +
    1381 GENERATE_ECLIPSEHELP = NO
    +
    1382 
    +
    1383 # A unique identifier for the Eclipse help plugin. When installing the plugin
    +
    1384 # the directory name containing the HTML and XML files should also have this
    +
    1385 # name. Each documentation set should have its own identifier.
    +
    1386 # The default value is: org.doxygen.Project.
    +
    1387 # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
    +
    1388 
    +
    1389 ECLIPSE_DOC_ID = org.doxygen.Project
    +
    1390 
    +
    1391 # If you want full control over the layout of the generated HTML pages it might
    +
    1392 # be necessary to disable the index and replace it with your own. The
    +
    1393 # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
    +
    1394 # of each HTML page. A value of NO enables the index and the value YES disables
    +
    1395 # it. Since the tabs in the index contain the same information as the navigation
    +
    1396 # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
    +
    1397 # The default value is: NO.
    +
    1398 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1399 
    +
    1400 DISABLE_INDEX = NO
    +
    1401 
    +
    1402 # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
    +
    1403 # structure should be generated to display hierarchical information. If the tag
    +
    1404 # value is set to YES, a side panel will be generated containing a tree-like
    +
    1405 # index structure (just like the one that is generated for HTML Help). For this
    +
    1406 # to work a browser that supports JavaScript, DHTML, CSS and frames is required
    +
    1407 # (i.e. any modern browser). Windows users are probably better off using the
    +
    1408 # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
    +
    1409 # further fine-tune the look of the index. As an example, the default style
    +
    1410 # sheet generated by doxygen has an example that shows how to put an image at
    +
    1411 # the root of the tree instead of the PROJECT_NAME. Since the tree basically has
    +
    1412 # the same information as the tab index, you could consider setting
    +
    1413 # DISABLE_INDEX to YES when enabling this option.
    +
    1414 # The default value is: NO.
    +
    1415 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1416 
    +
    1417 GENERATE_TREEVIEW = NO
    +
    1418 
    +
    1419 # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
    +
    1420 # doxygen will group on one line in the generated HTML documentation.
    +
    1421 #
    +
    1422 # Note that a value of 0 will completely suppress the enum values from appearing
    +
    1423 # in the overview section.
    +
    1424 # Minimum value: 0, maximum value: 20, default value: 4.
    +
    1425 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1426 
    +
    1427 ENUM_VALUES_PER_LINE = 4
    +
    1428 
    +
    1429 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
    +
    1430 # to set the initial width (in pixels) of the frame in which the tree is shown.
    +
    1431 # Minimum value: 0, maximum value: 1500, default value: 250.
    +
    1432 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1433 
    +
    1434 TREEVIEW_WIDTH = 250
    +
    1435 
    +
    1436 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
    +
    1437 # external symbols imported via tag files in a separate window.
    +
    1438 # The default value is: NO.
    +
    1439 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1440 
    +
    1441 EXT_LINKS_IN_WINDOW = NO
    +
    1442 
    +
    1443 # Use this tag to change the font size of LaTeX formulas included as images in
    +
    1444 # the HTML documentation. When you change the font size after a successful
    +
    1445 # doxygen run you need to manually remove any form_*.png images from the HTML
    +
    1446 # output directory to force them to be regenerated.
    +
    1447 # Minimum value: 8, maximum value: 50, default value: 10.
    +
    1448 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1449 
    +
    1450 FORMULA_FONTSIZE = 10
    +
    1451 
    +
    1452 # Use the FORMULA_TRANPARENT tag to determine whether or not the images
    +
    1453 # generated for formulas are transparent PNGs. Transparent PNGs are not
    +
    1454 # supported properly for IE 6.0, but are supported on all modern browsers.
    +
    1455 #
    +
    1456 # Note that when changing this option you need to delete any form_*.png files in
    +
    1457 # the HTML output directory before the changes have effect.
    +
    1458 # The default value is: YES.
    +
    1459 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1460 
    +
    1461 FORMULA_TRANSPARENT = YES
    +
    1462 
    +
    1463 # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
    +
    1464 # http://www.mathjax.org) which uses client side Javascript for the rendering
    +
    1465 # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
    +
    1466 # installed or if you want to formulas look prettier in the HTML output. When
    +
    1467 # enabled you may also need to install MathJax separately and configure the path
    +
    1468 # to it using the MATHJAX_RELPATH option.
    +
    1469 # The default value is: NO.
    +
    1470 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1471 
    +
    1472 USE_MATHJAX = NO
    +
    1473 
    +
    1474 # When MathJax is enabled you can set the default output format to be used for
    +
    1475 # the MathJax output. See the MathJax site (see:
    +
    1476 # http://docs.mathjax.org/en/latest/output.html) for more details.
    +
    1477 # Possible values are: HTML-CSS (which is slower, but has the best
    +
    1478 # compatibility), NativeMML (i.e. MathML) and SVG.
    +
    1479 # The default value is: HTML-CSS.
    +
    1480 # This tag requires that the tag USE_MATHJAX is set to YES.
    +
    1481 
    +
    1482 MATHJAX_FORMAT = HTML-CSS
    +
    1483 
    +
    1484 # When MathJax is enabled you need to specify the location relative to the HTML
    +
    1485 # output directory using the MATHJAX_RELPATH option. The destination directory
    +
    1486 # should contain the MathJax.js script. For instance, if the mathjax directory
    +
    1487 # is located at the same level as the HTML output directory, then
    +
    1488 # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
    +
    1489 # Content Delivery Network so you can quickly see the result without installing
    +
    1490 # MathJax. However, it is strongly recommended to install a local copy of
    +
    1491 # MathJax from http://www.mathjax.org before deployment.
    +
    1492 # The default value is: http://cdn.mathjax.org/mathjax/latest.
    +
    1493 # This tag requires that the tag USE_MATHJAX is set to YES.
    +
    1494 
    +
    1495 MATHJAX_RELPATH = http://www.mathjax.org/mathjax
    +
    1496 
    +
    1497 # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
    +
    1498 # extension names that should be enabled during MathJax rendering. For example
    +
    1499 # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
    +
    1500 # This tag requires that the tag USE_MATHJAX is set to YES.
    +
    1501 
    +
    1502 MATHJAX_EXTENSIONS =
    +
    1503 
    +
    1504 # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
    +
    1505 # of code that will be used on startup of the MathJax code. See the MathJax site
    +
    1506 # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
    +
    1507 # example see the documentation.
    +
    1508 # This tag requires that the tag USE_MATHJAX is set to YES.
    +
    1509 
    +
    1510 MATHJAX_CODEFILE =
    +
    1511 
    +
    1512 # When the SEARCHENGINE tag is enabled doxygen will generate a search box for
    +
    1513 # the HTML output. The underlying search engine uses javascript and DHTML and
    +
    1514 # should work on any modern browser. Note that when using HTML help
    +
    1515 # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
    +
    1516 # there is already a search function so this one should typically be disabled.
    +
    1517 # For large projects the javascript based search engine can be slow, then
    +
    1518 # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
    +
    1519 # search using the keyboard; to jump to the search box use <access key> + S
    +
    1520 # (what the <access key> is depends on the OS and browser, but it is typically
    +
    1521 # <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
    +
    1522 # key> to jump into the search results window, the results can be navigated
    +
    1523 # using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
    +
    1524 # the search. The filter options can be selected when the cursor is inside the
    +
    1525 # search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
    +
    1526 # to select a filter and <Enter> or <escape> to activate or cancel the filter
    +
    1527 # option.
    +
    1528 # The default value is: YES.
    +
    1529 # This tag requires that the tag GENERATE_HTML is set to YES.
    +
    1530 
    +
    1531 SEARCHENGINE = YES
    +
    1532 
    +
    1533 # When the SERVER_BASED_SEARCH tag is enabled the search engine will be
    +
    1534 # implemented using a web server instead of a web client using Javascript. There
    +
    1535 # are two flavors of web server based searching depending on the EXTERNAL_SEARCH
    +
    1536 # setting. When disabled, doxygen will generate a PHP script for searching and
    +
    1537 # an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
    +
    1538 # and searching needs to be provided by external tools. See the section
    +
    1539 # "External Indexing and Searching" for details.
    +
    1540 # The default value is: NO.
    +
    1541 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1542 
    +
    1543 SERVER_BASED_SEARCH = NO
    +
    1544 
    +
    1545 # When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
    +
    1546 # script for searching. Instead the search results are written to an XML file
    +
    1547 # which needs to be processed by an external indexer. Doxygen will invoke an
    +
    1548 # external search engine pointed to by the SEARCHENGINE_URL option to obtain the
    +
    1549 # search results.
    +
    1550 #
    +
    1551 # Doxygen ships with an example indexer (doxyindexer) and search engine
    +
    1552 # (doxysearch.cgi) which are based on the open source search engine library
    +
    1553 # Xapian (see: http://xapian.org/).
    +
    1554 #
    +
    1555 # See the section "External Indexing and Searching" for details.
    +
    1556 # The default value is: NO.
    +
    1557 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1558 
    +
    1559 EXTERNAL_SEARCH = NO
    +
    1560 
    +
    1561 # The SEARCHENGINE_URL should point to a search engine hosted by a web server
    +
    1562 # which will return the search results when EXTERNAL_SEARCH is enabled.
    +
    1563 #
    +
    1564 # Doxygen ships with an example indexer (doxyindexer) and search engine
    +
    1565 # (doxysearch.cgi) which are based on the open source search engine library
    +
    1566 # Xapian (see: http://xapian.org/). See the section "External Indexing and
    +
    1567 # Searching" for details.
    +
    1568 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1569 
    +
    1570 SEARCHENGINE_URL =
    +
    1571 
    +
    1572 # When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
    +
    1573 # search data is written to a file for indexing by an external tool. With the
    +
    1574 # SEARCHDATA_FILE tag the name of this file can be specified.
    +
    1575 # The default file is: searchdata.xml.
    +
    1576 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1577 
    +
    1578 SEARCHDATA_FILE = searchdata.xml
    +
    1579 
    +
    1580 # When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
    +
    1581 # EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
    +
    1582 # useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
    +
    1583 # projects and redirect the results back to the right project.
    +
    1584 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1585 
    +
    1586 EXTERNAL_SEARCH_ID =
    +
    1587 
    +
    1588 # The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
    +
    1589 # projects other than the one defined by this configuration file, but that are
    +
    1590 # all added to the same external search index. Each project needs to have a
    +
    1591 # unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
    +
    1592 # to a relative location where the documentation can be found. The format is:
    +
    1593 # EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
    +
    1594 # This tag requires that the tag SEARCHENGINE is set to YES.
    +
    1595 
    +
    1596 EXTRA_SEARCH_MAPPINGS =
    +
    1597 
    +
    1598 #---------------------------------------------------------------------------
    +
    1599 # Configuration options related to the LaTeX output
    +
    1600 #---------------------------------------------------------------------------
    +
    1601 
    +
    1602 # If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
    +
    1603 # The default value is: YES.
    +
    1604 
    +
    1605 GENERATE_LATEX = NO
    +
    1606 
    +
    1607 # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
    +
    1608 # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
    +
    1609 # it.
    +
    1610 # The default directory is: latex.
    +
    1611 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1612 
    +
    1613 LATEX_OUTPUT = latex
    +
    1614 
    +
    1615 # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
    +
    1616 # invoked.
    +
    1617 #
    +
    1618 # Note that when enabling USE_PDFLATEX this option is only used for generating
    +
    1619 # bitmaps for formulas in the HTML output, but not in the Makefile that is
    +
    1620 # written to the output directory.
    +
    1621 # The default file is: latex.
    +
    1622 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1623 
    +
    1624 LATEX_CMD_NAME = latex
    +
    1625 
    +
    1626 # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
    +
    1627 # index for LaTeX.
    +
    1628 # The default file is: makeindex.
    +
    1629 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1630 
    +
    1631 MAKEINDEX_CMD_NAME = makeindex
    +
    1632 
    +
    1633 # If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
    +
    1634 # documents. This may be useful for small projects and may help to save some
    +
    1635 # trees in general.
    +
    1636 # The default value is: NO.
    +
    1637 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1638 
    +
    1639 COMPACT_LATEX = NO
    +
    1640 
    +
    1641 # The PAPER_TYPE tag can be used to set the paper type that is used by the
    +
    1642 # printer.
    +
    1643 # Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
    +
    1644 # 14 inches) and executive (7.25 x 10.5 inches).
    +
    1645 # The default value is: a4.
    +
    1646 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1647 
    +
    1648 PAPER_TYPE = a4wide
    +
    1649 
    +
    1650 # The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
    +
    1651 # that should be included in the LaTeX output. The package can be specified just
    +
    1652 # by its name or with the correct syntax as to be used with the LaTeX
    +
    1653 # \usepackage command. To get the times font for instance you can specify :
    +
    1654 # EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
    +
    1655 # To use the option intlimits with the amsmath package you can specify:
    +
    1656 # EXTRA_PACKAGES=[intlimits]{amsmath}
    +
    1657 # If left blank no extra packages will be included.
    +
    1658 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1659 
    +
    1660 EXTRA_PACKAGES =
    +
    1661 
    +
    1662 # The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
    +
    1663 # generated LaTeX document. The header should contain everything until the first
    +
    1664 # chapter. If it is left blank doxygen will generate a standard header. See
    +
    1665 # section "Doxygen usage" for information on how to let doxygen write the
    +
    1666 # default header to a separate file.
    +
    1667 #
    +
    1668 # Note: Only use a user-defined header if you know what you are doing! The
    +
    1669 # following commands have a special meaning inside the header: $title,
    +
    1670 # $datetime, $date, $doxygenversion, $projectname, $projectnumber,
    +
    1671 # $projectbrief, $projectlogo. Doxygen will replace $title with the empty
    +
    1672 # string, for the replacement values of the other commands the user is referred
    +
    1673 # to HTML_HEADER.
    +
    1674 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1675 
    +
    1676 LATEX_HEADER =
    +
    1677 
    +
    1678 # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
    +
    1679 # generated LaTeX document. The footer should contain everything after the last
    +
    1680 # chapter. If it is left blank doxygen will generate a standard footer. See
    +
    1681 # LATEX_HEADER for more information on how to generate a default footer and what
    +
    1682 # special commands can be used inside the footer.
    +
    1683 #
    +
    1684 # Note: Only use a user-defined footer if you know what you are doing!
    +
    1685 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1686 
    +
    1687 LATEX_FOOTER =
    +
    1688 
    +
    1689 # The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
    +
    1690 # LaTeX style sheets that are included after the standard style sheets created
    +
    1691 # by doxygen. Using this option one can overrule certain style aspects. Doxygen
    +
    1692 # will copy the style sheet files to the output directory.
    +
    1693 # Note: The order of the extra style sheet files is of importance (e.g. the last
    +
    1694 # style sheet in the list overrules the setting of the previous ones in the
    +
    1695 # list).
    +
    1696 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1697 
    +
    1698 LATEX_EXTRA_STYLESHEET =
    +
    1699 
    +
    1700 # The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
    +
    1701 # other source files which should be copied to the LATEX_OUTPUT output
    +
    1702 # directory. Note that the files will be copied as-is; there are no commands or
    +
    1703 # markers available.
    +
    1704 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1705 
    +
    1706 LATEX_EXTRA_FILES =
    +
    1707 
    +
    1708 # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
    +
    1709 # prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
    +
    1710 # contain links (just like the HTML output) instead of page references. This
    +
    1711 # makes the output suitable for online browsing using a PDF viewer.
    +
    1712 # The default value is: YES.
    +
    1713 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1714 
    +
    1715 PDF_HYPERLINKS = NO
    +
    1716 
    +
    1717 # If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
    +
    1718 # the PDF file directly from the LaTeX files. Set this option to YES, to get a
    +
    1719 # higher quality PDF documentation.
    +
    1720 # The default value is: YES.
    +
    1721 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1722 
    +
    1723 USE_PDFLATEX = YES
    +
    1724 
    +
    1725 # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
    +
    1726 # command to the generated LaTeX files. This will instruct LaTeX to keep running
    +
    1727 # if errors occur, instead of asking the user for help. This option is also used
    +
    1728 # when generating formulas in HTML.
    +
    1729 # The default value is: NO.
    +
    1730 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1731 
    +
    1732 LATEX_BATCHMODE = NO
    +
    1733 
    +
    1734 # If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
    +
    1735 # index chapters (such as File Index, Compound Index, etc.) in the output.
    +
    1736 # The default value is: NO.
    +
    1737 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1738 
    +
    1739 LATEX_HIDE_INDICES = NO
    +
    1740 
    +
    1741 # If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
    +
    1742 # code with syntax highlighting in the LaTeX output.
    +
    1743 #
    +
    1744 # Note that which sources are shown also depends on other settings such as
    +
    1745 # SOURCE_BROWSER.
    +
    1746 # The default value is: NO.
    +
    1747 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1748 
    +
    1749 LATEX_SOURCE_CODE = NO
    +
    1750 
    +
    1751 # The LATEX_BIB_STYLE tag can be used to specify the style to use for the
    +
    1752 # bibliography, e.g. plainnat, or ieeetr. See
    +
    1753 # http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
    +
    1754 # The default value is: plain.
    +
    1755 # This tag requires that the tag GENERATE_LATEX is set to YES.
    +
    1756 
    +
    1757 LATEX_BIB_STYLE = plain
    +
    1758 
    +
    1759 #---------------------------------------------------------------------------
    +
    1760 # Configuration options related to the RTF output
    +
    1761 #---------------------------------------------------------------------------
    +
    1762 
    +
    1763 # If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
    +
    1764 # RTF output is optimized for Word 97 and may not look too pretty with other RTF
    +
    1765 # readers/editors.
    +
    1766 # The default value is: NO.
    +
    1767 
    +
    1768 GENERATE_RTF = NO
    +
    1769 
    +
    1770 # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
    +
    1771 # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
    +
    1772 # it.
    +
    1773 # The default directory is: rtf.
    +
    1774 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1775 
    +
    1776 RTF_OUTPUT = glm.rtf
    +
    1777 
    +
    1778 # If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
    +
    1779 # documents. This may be useful for small projects and may help to save some
    +
    1780 # trees in general.
    +
    1781 # The default value is: NO.
    +
    1782 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1783 
    +
    1784 COMPACT_RTF = NO
    +
    1785 
    +
    1786 # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
    +
    1787 # contain hyperlink fields. The RTF file will contain links (just like the HTML
    +
    1788 # output) instead of page references. This makes the output suitable for online
    +
    1789 # browsing using Word or some other Word compatible readers that support those
    +
    1790 # fields.
    +
    1791 #
    +
    1792 # Note: WordPad (write) and others do not support links.
    +
    1793 # The default value is: NO.
    +
    1794 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1795 
    +
    1796 RTF_HYPERLINKS = YES
    +
    1797 
    +
    1798 # Load stylesheet definitions from file. Syntax is similar to doxygen's config
    +
    1799 # file, i.e. a series of assignments. You only have to provide replacements,
    +
    1800 # missing definitions are set to their default value.
    +
    1801 #
    +
    1802 # See also section "Doxygen usage" for information on how to generate the
    +
    1803 # default style sheet that doxygen normally uses.
    +
    1804 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1805 
    +
    1806 RTF_STYLESHEET_FILE =
    +
    1807 
    +
    1808 # Set optional variables used in the generation of an RTF document. Syntax is
    +
    1809 # similar to doxygen's config file. A template extensions file can be generated
    +
    1810 # using doxygen -e rtf extensionFile.
    +
    1811 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1812 
    +
    1813 RTF_EXTENSIONS_FILE =
    +
    1814 
    +
    1815 # If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
    +
    1816 # with syntax highlighting in the RTF output.
    +
    1817 #
    +
    1818 # Note that which sources are shown also depends on other settings such as
    +
    1819 # SOURCE_BROWSER.
    +
    1820 # The default value is: NO.
    +
    1821 # This tag requires that the tag GENERATE_RTF is set to YES.
    +
    1822 
    +
    1823 RTF_SOURCE_CODE = NO
    +
    1824 
    +
    1825 #---------------------------------------------------------------------------
    +
    1826 # Configuration options related to the man page output
    +
    1827 #---------------------------------------------------------------------------
    +
    1828 
    +
    1829 # If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
    +
    1830 # classes and files.
    +
    1831 # The default value is: NO.
    +
    1832 
    +
    1833 GENERATE_MAN = NO
    +
    1834 
    +
    1835 # The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
    +
    1836 # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
    +
    1837 # it. A directory man3 will be created inside the directory specified by
    +
    1838 # MAN_OUTPUT.
    +
    1839 # The default directory is: man.
    +
    1840 # This tag requires that the tag GENERATE_MAN is set to YES.
    +
    1841 
    +
    1842 MAN_OUTPUT = man
    +
    1843 
    +
    1844 # The MAN_EXTENSION tag determines the extension that is added to the generated
    +
    1845 # man pages. In case the manual section does not start with a number, the number
    +
    1846 # 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
    +
    1847 # optional.
    +
    1848 # The default value is: .3.
    +
    1849 # This tag requires that the tag GENERATE_MAN is set to YES.
    +
    1850 
    +
    1851 MAN_EXTENSION = .3
    +
    1852 
    +
    1853 # The MAN_SUBDIR tag determines the name of the directory created within
    +
    1854 # MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
    +
    1855 # MAN_EXTENSION with the initial . removed.
    +
    1856 # This tag requires that the tag GENERATE_MAN is set to YES.
    +
    1857 
    +
    1858 MAN_SUBDIR =
    +
    1859 
    +
    1860 # If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
    +
    1861 # will generate one additional man file for each entity documented in the real
    +
    1862 # man page(s). These additional files only source the real man page, but without
    +
    1863 # them the man command would be unable to find the correct page.
    +
    1864 # The default value is: NO.
    +
    1865 # This tag requires that the tag GENERATE_MAN is set to YES.
    +
    1866 
    +
    1867 MAN_LINKS = NO
    +
    1868 
    +
    1869 #---------------------------------------------------------------------------
    +
    1870 # Configuration options related to the XML output
    +
    1871 #---------------------------------------------------------------------------
    +
    1872 
    +
    1873 # If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
    +
    1874 # captures the structure of the code including all documentation.
    +
    1875 # The default value is: NO.
    +
    1876 
    +
    1877 GENERATE_XML = NO
    +
    1878 
    +
    1879 # The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
    +
    1880 # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
    +
    1881 # it.
    +
    1882 # The default directory is: xml.
    +
    1883 # This tag requires that the tag GENERATE_XML is set to YES.
    +
    1884 
    +
    1885 XML_OUTPUT = xml
    +
    1886 
    +
    1887 # If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
    +
    1888 # listings (including syntax highlighting and cross-referencing information) to
    +
    1889 # the XML output. Note that enabling this will significantly increase the size
    +
    1890 # of the XML output.
    +
    1891 # The default value is: YES.
    +
    1892 # This tag requires that the tag GENERATE_XML is set to YES.
    +
    1893 
    +
    1894 XML_PROGRAMLISTING = YES
    +
    1895 
    +
    1896 #---------------------------------------------------------------------------
    +
    1897 # Configuration options related to the DOCBOOK output
    +
    1898 #---------------------------------------------------------------------------
    +
    1899 
    +
    1900 # If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
    +
    1901 # that can be used to generate PDF.
    +
    1902 # The default value is: NO.
    +
    1903 
    +
    1904 GENERATE_DOCBOOK = NO
    +
    1905 
    +
    1906 # The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
    +
    1907 # If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
    +
    1908 # front of it.
    +
    1909 # The default directory is: docbook.
    +
    1910 # This tag requires that the tag GENERATE_DOCBOOK is set to YES.
    +
    1911 
    +
    1912 DOCBOOK_OUTPUT = docbook
    +
    1913 
    +
    1914 # If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
    +
    1915 # program listings (including syntax highlighting and cross-referencing
    +
    1916 # information) to the DOCBOOK output. Note that enabling this will significantly
    +
    1917 # increase the size of the DOCBOOK output.
    +
    1918 # The default value is: NO.
    +
    1919 # This tag requires that the tag GENERATE_DOCBOOK is set to YES.
    +
    1920 
    +
    1921 DOCBOOK_PROGRAMLISTING = NO
    +
    1922 
    +
    1923 #---------------------------------------------------------------------------
    +
    1924 # Configuration options for the AutoGen Definitions output
    +
    1925 #---------------------------------------------------------------------------
    +
    1926 
    +
    1927 # If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
    +
    1928 # AutoGen Definitions (see http://autogen.sf.net) file that captures the
    +
    1929 # structure of the code including all documentation. Note that this feature is
    +
    1930 # still experimental and incomplete at the moment.
    +
    1931 # The default value is: NO.
    +
    1932 
    +
    1933 GENERATE_AUTOGEN_DEF = NO
    +
    1934 
    +
    1935 #---------------------------------------------------------------------------
    +
    1936 # Configuration options related to the Perl module output
    +
    1937 #---------------------------------------------------------------------------
    +
    1938 
    +
    1939 # If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
    +
    1940 # file that captures the structure of the code including all documentation.
    +
    1941 #
    +
    1942 # Note that this feature is still experimental and incomplete at the moment.
    +
    1943 # The default value is: NO.
    +
    1944 
    +
    1945 GENERATE_PERLMOD = NO
    +
    1946 
    +
    1947 # If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
    +
    1948 # Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
    +
    1949 # output from the Perl module output.
    +
    1950 # The default value is: NO.
    +
    1951 # This tag requires that the tag GENERATE_PERLMOD is set to YES.
    +
    1952 
    +
    1953 PERLMOD_LATEX = NO
    +
    1954 
    +
    1955 # If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
    +
    1956 # formatted so it can be parsed by a human reader. This is useful if you want to
    +
    1957 # understand what is going on. On the other hand, if this tag is set to NO, the
    +
    1958 # size of the Perl module output will be much smaller and Perl will parse it
    +
    1959 # just the same.
    +
    1960 # The default value is: YES.
    +
    1961 # This tag requires that the tag GENERATE_PERLMOD is set to YES.
    +
    1962 
    +
    1963 PERLMOD_PRETTY = YES
    +
    1964 
    +
    1965 # The names of the make variables in the generated doxyrules.make file are
    +
    1966 # prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
    +
    1967 # so different doxyrules.make files included by the same Makefile don't
    +
    1968 # overwrite each other's variables.
    +
    1969 # This tag requires that the tag GENERATE_PERLMOD is set to YES.
    +
    1970 
    +
    1971 PERLMOD_MAKEVAR_PREFIX =
    +
    1972 
    +
    1973 #---------------------------------------------------------------------------
    +
    1974 # Configuration options related to the preprocessor
    +
    1975 #---------------------------------------------------------------------------
    +
    1976 
    +
    1977 # If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
    +
    1978 # C-preprocessor directives found in the sources and include files.
    +
    1979 # The default value is: YES.
    +
    1980 
    +
    1981 ENABLE_PREPROCESSING = YES
    +
    1982 
    +
    1983 # If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
    +
    1984 # in the source code. If set to NO, only conditional compilation will be
    +
    1985 # performed. Macro expansion can be done in a controlled way by setting
    +
    1986 # EXPAND_ONLY_PREDEF to YES.
    +
    1987 # The default value is: NO.
    +
    1988 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    1989 
    +
    1990 MACRO_EXPANSION = NO
    +
    1991 
    +
    1992 # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
    +
    1993 # the macro expansion is limited to the macros specified with the PREDEFINED and
    +
    1994 # EXPAND_AS_DEFINED tags.
    +
    1995 # The default value is: NO.
    +
    1996 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    1997 
    +
    1998 EXPAND_ONLY_PREDEF = NO
    +
    1999 
    +
    2000 # If the SEARCH_INCLUDES tag is set to YES, the include files in the
    +
    2001 # INCLUDE_PATH will be searched if a #include is found.
    +
    2002 # The default value is: YES.
    +
    2003 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    2004 
    +
    2005 SEARCH_INCLUDES = YES
    +
    2006 
    +
    2007 # The INCLUDE_PATH tag can be used to specify one or more directories that
    +
    2008 # contain include files that are not input files but should be processed by the
    +
    2009 # preprocessor.
    +
    2010 # This tag requires that the tag SEARCH_INCLUDES is set to YES.
    +
    2011 
    +
    2012 INCLUDE_PATH =
    +
    2013 
    +
    2014 # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
    +
    2015 # patterns (like *.h and *.hpp) to filter out the header-files in the
    +
    2016 # directories. If left blank, the patterns specified with FILE_PATTERNS will be
    +
    2017 # used.
    +
    2018 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    2019 
    +
    2020 INCLUDE_FILE_PATTERNS =
    +
    2021 
    +
    2022 # The PREDEFINED tag can be used to specify one or more macro names that are
    +
    2023 # defined before the preprocessor is started (similar to the -D option of e.g.
    +
    2024 # gcc). The argument of the tag is a list of macros of the form: name or
    +
    2025 # name=definition (no spaces). If the definition and the "=" are omitted, "=1"
    +
    2026 # is assumed. To prevent a macro definition from being undefined via #undef or
    +
    2027 # recursively expanded use the := operator instead of the = operator.
    +
    2028 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    2029 
    +
    2030 PREDEFINED =
    +
    2031 
    +
    2032 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
    +
    2033 # tag can be used to specify a list of macro names that should be expanded. The
    +
    2034 # macro definition that is found in the sources will be used. Use the PREDEFINED
    +
    2035 # tag if you want to use a different macro definition that overrules the
    +
    2036 # definition found in the source code.
    +
    2037 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    2038 
    +
    2039 EXPAND_AS_DEFINED =
    +
    2040 
    +
    2041 # If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
    +
    2042 # remove all references to function-like macros that are alone on a line, have
    +
    2043 # an all uppercase name, and do not end with a semicolon. Such function macros
    +
    2044 # are typically used for boiler-plate code, and will confuse the parser if not
    +
    2045 # removed.
    +
    2046 # The default value is: YES.
    +
    2047 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
    +
    2048 
    +
    2049 SKIP_FUNCTION_MACROS = YES
    +
    2050 
    +
    2051 #---------------------------------------------------------------------------
    +
    2052 # Configuration options related to external references
    +
    2053 #---------------------------------------------------------------------------
    +
    2054 
    +
    2055 # The TAGFILES tag can be used to specify one or more tag files. For each tag
    +
    2056 # file the location of the external documentation should be added. The format of
    +
    2057 # a tag file without this location is as follows:
    +
    2058 # TAGFILES = file1 file2 ...
    +
    2059 # Adding location for the tag files is done as follows:
    +
    2060 # TAGFILES = file1=loc1 "file2 = loc2" ...
    +
    2061 # where loc1 and loc2 can be relative or absolute paths or URLs. See the
    +
    2062 # section "Linking to external documentation" for more information about the use
    +
    2063 # of tag files.
    +
    2064 # Note: Each tag file must have a unique name (where the name does NOT include
    +
    2065 # the path). If a tag file is not located in the directory in which doxygen is
    +
    2066 # run, you must also specify the path to the tagfile here.
    +
    2067 
    +
    2068 TAGFILES =
    +
    2069 
    +
    2070 # When a file name is specified after GENERATE_TAGFILE, doxygen will create a
    +
    2071 # tag file that is based on the input files it reads. See section "Linking to
    +
    2072 # external documentation" for more information about the usage of tag files.
    +
    2073 
    +
    2074 GENERATE_TAGFILE =
    +
    2075 
    +
    2076 # If the ALLEXTERNALS tag is set to YES, all external class will be listed in
    +
    2077 # the class index. If set to NO, only the inherited external classes will be
    +
    2078 # listed.
    +
    2079 # The default value is: NO.
    +
    2080 
    +
    2081 ALLEXTERNALS = NO
    +
    2082 
    +
    2083 # If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
    +
    2084 # in the modules index. If set to NO, only the current project's groups will be
    +
    2085 # listed.
    +
    2086 # The default value is: YES.
    +
    2087 
    +
    2088 EXTERNAL_GROUPS = YES
    +
    2089 
    +
    2090 # If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
    +
    2091 # the related pages index. If set to NO, only the current project's pages will
    +
    2092 # be listed.
    +
    2093 # The default value is: YES.
    +
    2094 
    +
    2095 EXTERNAL_PAGES = YES
    +
    2096 
    +
    2097 # The PERL_PATH should be the absolute path and name of the perl script
    +
    2098 # interpreter (i.e. the result of 'which perl').
    +
    2099 # The default file (with absolute path) is: /usr/bin/perl.
    +
    2100 
    +
    2101 PERL_PATH = /usr/bin/perl
    +
    2102 
    +
    2103 #---------------------------------------------------------------------------
    +
    2104 # Configuration options related to the dot tool
    +
    2105 #---------------------------------------------------------------------------
    +
    2106 
    +
    2107 # If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
    +
    2108 # (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
    +
    2109 # NO turns the diagrams off. Note that this option also works with HAVE_DOT
    +
    2110 # disabled, but it is recommended to install and use dot, since it yields more
    +
    2111 # powerful graphs.
    +
    2112 # The default value is: YES.
    +
    2113 
    +
    2114 CLASS_DIAGRAMS = YES
    +
    2115 
    +
    2116 # You can define message sequence charts within doxygen comments using the \msc
    +
    2117 # command. Doxygen will then run the mscgen tool (see:
    +
    2118 # http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
    +
    2119 # documentation. The MSCGEN_PATH tag allows you to specify the directory where
    +
    2120 # the mscgen tool resides. If left empty the tool is assumed to be found in the
    +
    2121 # default search path.
    +
    2122 
    +
    2123 MSCGEN_PATH =
    +
    2124 
    +
    2125 # You can include diagrams made with dia in doxygen documentation. Doxygen will
    +
    2126 # then run dia to produce the diagram and insert it in the documentation. The
    +
    2127 # DIA_PATH tag allows you to specify the directory where the dia binary resides.
    +
    2128 # If left empty dia is assumed to be found in the default search path.
    +
    2129 
    +
    2130 DIA_PATH =
    +
    2131 
    +
    2132 # If set to YES the inheritance and collaboration graphs will hide inheritance
    +
    2133 # and usage relations if the target is undocumented or is not a class.
    +
    2134 # The default value is: YES.
    +
    2135 
    +
    2136 HIDE_UNDOC_RELATIONS = YES
    +
    2137 
    +
    2138 # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
    +
    2139 # available from the path. This tool is part of Graphviz (see:
    +
    2140 # http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
    +
    2141 # Bell Labs. The other options in this section have no effect if this option is
    +
    2142 # set to NO
    +
    2143 # The default value is: NO.
    +
    2144 
    +
    2145 HAVE_DOT = NO
    +
    2146 
    +
    2147 # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
    +
    2148 # to run in parallel. When set to 0 doxygen will base this on the number of
    +
    2149 # processors available in the system. You can set it explicitly to a value
    +
    2150 # larger than 0 to get control over the balance between CPU load and processing
    +
    2151 # speed.
    +
    2152 # Minimum value: 0, maximum value: 32, default value: 0.
    +
    2153 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2154 
    +
    2155 DOT_NUM_THREADS = 0
    +
    2156 
    +
    2157 # When you want a differently looking font in the dot files that doxygen
    +
    2158 # generates you can specify the font name using DOT_FONTNAME. You need to make
    +
    2159 # sure dot is able to find the font, which can be done by putting it in a
    +
    2160 # standard location or by setting the DOTFONTPATH environment variable or by
    +
    2161 # setting DOT_FONTPATH to the directory containing the font.
    +
    2162 # The default value is: Helvetica.
    +
    2163 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2164 
    +
    2165 DOT_FONTNAME = Helvetica
    +
    2166 
    +
    2167 # The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
    +
    2168 # dot graphs.
    +
    2169 # Minimum value: 4, maximum value: 24, default value: 10.
    +
    2170 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2171 
    +
    2172 DOT_FONTSIZE = 10
    +
    2173 
    +
    2174 # By default doxygen will tell dot to use the default font as specified with
    +
    2175 # DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
    +
    2176 # the path where dot can find it using this tag.
    +
    2177 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2178 
    +
    2179 DOT_FONTPATH =
    +
    2180 
    +
    2181 # If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
    +
    2182 # each documented class showing the direct and indirect inheritance relations.
    +
    2183 # Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
    +
    2184 # The default value is: YES.
    +
    2185 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2186 
    +
    2187 CLASS_GRAPH = YES
    +
    2188 
    +
    2189 # If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
    +
    2190 # graph for each documented class showing the direct and indirect implementation
    +
    2191 # dependencies (inheritance, containment, and class references variables) of the
    +
    2192 # class with other documented classes.
    +
    2193 # The default value is: YES.
    +
    2194 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2195 
    +
    2196 COLLABORATION_GRAPH = YES
    +
    2197 
    +
    2198 # If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
    +
    2199 # groups, showing the direct groups dependencies.
    +
    2200 # The default value is: YES.
    +
    2201 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2202 
    +
    2203 GROUP_GRAPHS = YES
    +
    2204 
    +
    2205 # If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
    +
    2206 # collaboration diagrams in a style similar to the OMG's Unified Modeling
    +
    2207 # Language.
    +
    2208 # The default value is: NO.
    +
    2209 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2210 
    +
    2211 UML_LOOK = NO
    +
    2212 
    +
    2213 # If the UML_LOOK tag is enabled, the fields and methods are shown inside the
    +
    2214 # class node. If there are many fields or methods and many nodes the graph may
    +
    2215 # become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
    +
    2216 # number of items for each type to make the size more manageable. Set this to 0
    +
    2217 # for no limit. Note that the threshold may be exceeded by 50% before the limit
    +
    2218 # is enforced. So when you set the threshold to 10, up to 15 fields may appear,
    +
    2219 # but if the number exceeds 15, the total amount of fields shown is limited to
    +
    2220 # 10.
    +
    2221 # Minimum value: 0, maximum value: 100, default value: 10.
    +
    2222 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2223 
    +
    2224 UML_LIMIT_NUM_FIELDS = 10
    +
    2225 
    +
    2226 # If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
    +
    2227 # collaboration graphs will show the relations between templates and their
    +
    2228 # instances.
    +
    2229 # The default value is: NO.
    +
    2230 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2231 
    +
    2232 TEMPLATE_RELATIONS = NO
    +
    2233 
    +
    2234 # If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
    +
    2235 # YES then doxygen will generate a graph for each documented file showing the
    +
    2236 # direct and indirect include dependencies of the file with other documented
    +
    2237 # files.
    +
    2238 # The default value is: YES.
    +
    2239 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2240 
    +
    2241 INCLUDE_GRAPH = YES
    +
    2242 
    +
    2243 # If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
    +
    2244 # set to YES then doxygen will generate a graph for each documented file showing
    +
    2245 # the direct and indirect include dependencies of the file with other documented
    +
    2246 # files.
    +
    2247 # The default value is: YES.
    +
    2248 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2249 
    +
    2250 INCLUDED_BY_GRAPH = YES
    +
    2251 
    +
    2252 # If the CALL_GRAPH tag is set to YES then doxygen will generate a call
    +
    2253 # dependency graph for every global function or class method.
    +
    2254 #
    +
    2255 # Note that enabling this option will significantly increase the time of a run.
    +
    2256 # So in most cases it will be better to enable call graphs for selected
    +
    2257 # functions only using the \callgraph command. Disabling a call graph can be
    +
    2258 # accomplished by means of the command \hidecallgraph.
    +
    2259 # The default value is: NO.
    +
    2260 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2261 
    +
    2262 CALL_GRAPH = YES
    +
    2263 
    +
    2264 # If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
    +
    2265 # dependency graph for every global function or class method.
    +
    2266 #
    +
    2267 # Note that enabling this option will significantly increase the time of a run.
    +
    2268 # So in most cases it will be better to enable caller graphs for selected
    +
    2269 # functions only using the \callergraph command. Disabling a caller graph can be
    +
    2270 # accomplished by means of the command \hidecallergraph.
    +
    2271 # The default value is: NO.
    +
    2272 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2273 
    +
    2274 CALLER_GRAPH = YES
    +
    2275 
    +
    2276 # If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
    +
    2277 # hierarchy of all classes instead of a textual one.
    +
    2278 # The default value is: YES.
    +
    2279 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2280 
    +
    2281 GRAPHICAL_HIERARCHY = YES
    +
    2282 
    +
    2283 # If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
    +
    2284 # dependencies a directory has on other directories in a graphical way. The
    +
    2285 # dependency relations are determined by the #include relations between the
    +
    2286 # files in the directories.
    +
    2287 # The default value is: YES.
    +
    2288 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2289 
    +
    2290 DIRECTORY_GRAPH = YES
    +
    2291 
    +
    2292 # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
    +
    2293 # generated by dot. For an explanation of the image formats see the section
    +
    2294 # output formats in the documentation of the dot tool (Graphviz (see:
    +
    2295 # http://www.graphviz.org/)).
    +
    2296 # Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
    +
    2297 # to make the SVG files visible in IE 9+ (other browsers do not have this
    +
    2298 # requirement).
    +
    2299 # Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
    +
    2300 # png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
    +
    2301 # png:gdiplus:gdiplus.
    +
    2302 # The default value is: png.
    +
    2303 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2304 
    +
    2305 DOT_IMAGE_FORMAT = png
    +
    2306 
    +
    2307 # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
    +
    2308 # enable generation of interactive SVG images that allow zooming and panning.
    +
    2309 #
    +
    2310 # Note that this requires a modern browser other than Internet Explorer. Tested
    +
    2311 # and working are Firefox, Chrome, Safari, and Opera.
    +
    2312 # Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
    +
    2313 # the SVG files visible. Older versions of IE do not have SVG support.
    +
    2314 # The default value is: NO.
    +
    2315 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2316 
    +
    2317 INTERACTIVE_SVG = NO
    +
    2318 
    +
    2319 # The DOT_PATH tag can be used to specify the path where the dot tool can be
    +
    2320 # found. If left blank, it is assumed the dot tool can be found in the path.
    +
    2321 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2322 
    +
    2323 DOT_PATH =
    +
    2324 
    +
    2325 # The DOTFILE_DIRS tag can be used to specify one or more directories that
    +
    2326 # contain dot files that are included in the documentation (see the \dotfile
    +
    2327 # command).
    +
    2328 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2329 
    +
    2330 DOTFILE_DIRS =
    +
    2331 
    +
    2332 # The MSCFILE_DIRS tag can be used to specify one or more directories that
    +
    2333 # contain msc files that are included in the documentation (see the \mscfile
    +
    2334 # command).
    +
    2335 
    +
    2336 MSCFILE_DIRS =
    +
    2337 
    +
    2338 # The DIAFILE_DIRS tag can be used to specify one or more directories that
    +
    2339 # contain dia files that are included in the documentation (see the \diafile
    +
    2340 # command).
    +
    2341 
    +
    2342 DIAFILE_DIRS =
    +
    2343 
    +
    2344 # When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
    +
    2345 # path where java can find the plantuml.jar file. If left blank, it is assumed
    +
    2346 # PlantUML is not used or called during a preprocessing step. Doxygen will
    +
    2347 # generate a warning when it encounters a \startuml command in this case and
    +
    2348 # will not generate output for the diagram.
    +
    2349 
    +
    2350 PLANTUML_JAR_PATH =
    +
    2351 
    +
    2352 # When using plantuml, the specified paths are searched for files specified by
    +
    2353 # the !include statement in a plantuml block.
    +
    2354 
    +
    2355 PLANTUML_INCLUDE_PATH =
    +
    2356 
    +
    2357 # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
    +
    2358 # that will be shown in the graph. If the number of nodes in a graph becomes
    +
    2359 # larger than this value, doxygen will truncate the graph, which is visualized
    +
    2360 # by representing a node as a red box. Note that doxygen if the number of direct
    +
    2361 # children of the root node in a graph is already larger than
    +
    2362 # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
    +
    2363 # the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
    +
    2364 # Minimum value: 0, maximum value: 10000, default value: 50.
    +
    2365 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2366 
    +
    2367 DOT_GRAPH_MAX_NODES = 50
    +
    2368 
    +
    2369 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
    +
    2370 # generated by dot. A depth value of 3 means that only nodes reachable from the
    +
    2371 # root by following a path via at most 3 edges will be shown. Nodes that lay
    +
    2372 # further from the root node will be omitted. Note that setting this option to 1
    +
    2373 # or 2 may greatly reduce the computation time needed for large code bases. Also
    +
    2374 # note that the size of a graph can be further restricted by
    +
    2375 # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
    +
    2376 # Minimum value: 0, maximum value: 1000, default value: 0.
    +
    2377 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2378 
    +
    2379 MAX_DOT_GRAPH_DEPTH = 1000
    +
    2380 
    +
    2381 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
    +
    2382 # background. This is disabled by default, because dot on Windows does not seem
    +
    2383 # to support this out of the box.
    +
    2384 #
    +
    2385 # Warning: Depending on the platform used, enabling this option may lead to
    +
    2386 # badly anti-aliased labels on the edges of a graph (i.e. they become hard to
    +
    2387 # read).
    +
    2388 # The default value is: NO.
    +
    2389 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2390 
    +
    2391 DOT_TRANSPARENT = NO
    +
    2392 
    +
    2393 # Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
    +
    2394 # files in one run (i.e. multiple -o and -T options on the command line). This
    +
    2395 # makes dot run faster, but since only newer versions of dot (>1.8.10) support
    +
    2396 # this, this feature is disabled by default.
    +
    2397 # The default value is: NO.
    +
    2398 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2399 
    +
    2400 DOT_MULTI_TARGETS = NO
    +
    2401 
    +
    2402 # If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
    +
    2403 # explaining the meaning of the various boxes and arrows in the dot generated
    +
    2404 # graphs.
    +
    2405 # The default value is: YES.
    +
    2406 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2407 
    +
    2408 GENERATE_LEGEND = YES
    +
    2409 
    +
    2410 # If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
    +
    2411 # files that are used to generate the various graphs.
    +
    2412 # The default value is: YES.
    +
    2413 # This tag requires that the tag HAVE_DOT is set to YES.
    +
    2414 
    +
    2415 DOT_CLEANUP = YES
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm/doc/api/a00048.html b/external/glm-0.9.9.8/doc/api/a00048.html similarity index 79% rename from external/glm/doc/api/a00048.html rename to external/glm-0.9.9.8/doc/api/a00048.html index 12baf6b..7b7f27b 100644 --- a/external/glm/doc/api/a00048.html +++ b/external/glm-0.9.9.8/doc/api/a00048.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat2x4.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat2x4.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat2x4.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat2x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat2x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00048_source.html b/external/glm-0.9.9.8/doc/api/a00048_source.html new file mode 100644 index 0000000..619ceb0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00048_source.html @@ -0,0 +1,110 @@ + + + + + + +0.9.9 API documentation: mat2x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x2.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00049.html b/external/glm-0.9.9.8/doc/api/a00049.html similarity index 79% rename from external/glm/doc/api/a00049.html rename to external/glm-0.9.9.8/doc/api/a00049.html index 71d5193..28f0b0a 100644 --- a/external/glm/doc/api/a00049.html +++ b/external/glm-0.9.9.8/doc/api/a00049.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat3x2.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat3x2.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat3x2.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat2x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat2x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00049_source.html b/external/glm-0.9.9.8/doc/api/a00049_source.html new file mode 100644 index 0000000..da8bfe6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00049_source.html @@ -0,0 +1,110 @@ + + + + + + +0.9.9 API documentation: mat2x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x3.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00050.html b/external/glm-0.9.9.8/doc/api/a00050.html similarity index 79% rename from external/glm/doc/api/a00050.html rename to external/glm-0.9.9.8/doc/api/a00050.html index fbf5d88..8750381 100644 --- a/external/glm/doc/api/a00050.html +++ b/external/glm-0.9.9.8/doc/api/a00050.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat3x3.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat3x3.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat3x3.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat2x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat2x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00050_source.html b/external/glm-0.9.9.8/doc/api/a00050_source.html new file mode 100644 index 0000000..2b02edb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00050_source.html @@ -0,0 +1,110 @@ + + + + + + +0.9.9 API documentation: mat2x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat2x4.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00051.html b/external/glm-0.9.9.8/doc/api/a00051.html similarity index 79% rename from external/glm/doc/api/a00051.html rename to external/glm-0.9.9.8/doc/api/a00051.html index 23303d9..082e706 100644 --- a/external/glm/doc/api/a00051.html +++ b/external/glm-0.9.9.8/doc/api/a00051.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat3x4.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat3x4.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat3x4.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat3x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat3x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00051_source.html b/external/glm-0.9.9.8/doc/api/a00051_source.html new file mode 100644 index 0000000..ba2e396 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00051_source.html @@ -0,0 +1,110 @@ + + + + + + +0.9.9 API documentation: mat3x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x2.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00052.html b/external/glm-0.9.9.8/doc/api/a00052.html similarity index 79% rename from external/glm/doc/api/a00052.html rename to external/glm-0.9.9.8/doc/api/a00052.html index 213bcc2..8eb68ef 100644 --- a/external/glm/doc/api/a00052.html +++ b/external/glm-0.9.9.8/doc/api/a00052.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat4x2.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat4x2.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat4x2.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat3x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat3x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00052_source.html b/external/glm-0.9.9.8/doc/api/a00052_source.html new file mode 100644 index 0000000..e5f0a05 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00052_source.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: mat3x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x3.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00053.html b/external/glm-0.9.9.8/doc/api/a00053.html similarity index 79% rename from external/glm/doc/api/a00053.html rename to external/glm-0.9.9.8/doc/api/a00053.html index c52a7b3..0121278 100644 --- a/external/glm/doc/api/a00053.html +++ b/external/glm-0.9.9.8/doc/api/a00053.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat4x3.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat4x3.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat4x3.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat3x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat3x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00053_source.html b/external/glm-0.9.9.8/doc/api/a00053_source.html new file mode 100644 index 0000000..ee4eea4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00053_source.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: mat3x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat3x4.hpp
    +
    + + + + + diff --git a/external/glm/doc/api/a00054.html b/external/glm-0.9.9.8/doc/api/a00054.html similarity index 79% rename from external/glm/doc/api/a00054.html rename to external/glm-0.9.9.8/doc/api/a00054.html index 6238783..4a6224f 100644 --- a/external/glm/doc/api/a00054.html +++ b/external/glm-0.9.9.8/doc/api/a00054.html @@ -1,108 +1,108 @@ - - - - - - -0.9.9 API documenation: mat4x4.hpp File Reference - - - - - - - - - - -
    -
    - - - - - - - -
    -
    0.9.9 API documenation -
    -
    -
    - - - - - - -
    -
    - - -
    - -
    - - -
    -
    -
    -
    mat4x4.hpp File Reference
    -
    -
    - -

    Core features -More...

    - -

    Go to the source code of this file.

    -

    Detailed Description

    -

    Core features

    - -

    Definition in file mat4x4.hpp.

    -
    - - - - + + + + + + +0.9.9 API documentation: mat4x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat4x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00054_source.html b/external/glm-0.9.9.8/doc/api/a00054_source.html new file mode 100644 index 0000000..17d3970 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00054_source.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: mat4x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    + + + +
    8 #include "./ext/matrix_float4x2_precision.hpp"
    +
    9 
    + +
    Core features
    +
    Core features
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00055.html b/external/glm-0.9.9.8/doc/api/a00055.html new file mode 100644 index 0000000..046270b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00055.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: mat4x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat4x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00055_source.html b/external/glm-0.9.9.8/doc/api/a00055_source.html new file mode 100644 index 0000000..2141901 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00055_source.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: mat4x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x3.hpp
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00056.html b/external/glm-0.9.9.8/doc/api/a00056.html new file mode 100644 index 0000000..96f2273 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00056.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: mat4x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file mat4x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00056_source.html b/external/glm-0.9.9.8/doc/api/a00056_source.html new file mode 100644 index 0000000..b190906 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00056_source.html @@ -0,0 +1,110 @@ + + + + + + +0.9.9 API documentation: mat4x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mat4x4.hpp
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00057.html b/external/glm-0.9.9.8/doc/api/a00057.html new file mode 100644 index 0000000..f21a7e7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00057.html @@ -0,0 +1,135 @@ + + + + + + +0.9.9 API documentation: matrix.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL T determinant (mat< C, R, T, Q > const &m)
     Return the determinant of a squared matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > inverse (mat< C, R, T, Q > const &m)
     Return the inverse of a squared matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > matrixCompMult (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j]. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL detail::outerProduct_trait< C, R, T, Q >::type outerProduct (vec< C, T, Q > const &c, vec< R, T, Q > const &r)
     Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q >::transpose_type transpose (mat< C, R, T, Q > const &x)
     Returns the transposed matrix of x. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00057_source.html b/external/glm-0.9.9.8/doc/api/a00057_source.html new file mode 100644 index 0000000..103e461 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00057_source.html @@ -0,0 +1,216 @@ + + + + + + +0.9.9 API documentation: matrix.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "detail/qualifier.hpp"
    +
    17 #include "detail/setup.hpp"
    +
    18 #include "vec2.hpp"
    +
    19 #include "vec3.hpp"
    +
    20 #include "vec4.hpp"
    +
    21 #include "mat2x2.hpp"
    +
    22 #include "mat2x3.hpp"
    +
    23 #include "mat2x4.hpp"
    +
    24 #include "mat3x2.hpp"
    +
    25 #include "mat3x3.hpp"
    +
    26 #include "mat3x4.hpp"
    +
    27 #include "mat4x2.hpp"
    +
    28 #include "mat4x3.hpp"
    +
    29 #include "mat4x4.hpp"
    +
    30 
    +
    31 namespace glm {
    +
    32 namespace detail
    +
    33 {
    +
    34  template<length_t C, length_t R, typename T, qualifier Q>
    +
    35  struct outerProduct_trait{};
    +
    36 
    +
    37  template<typename T, qualifier Q>
    +
    38  struct outerProduct_trait<2, 2, T, Q>
    +
    39  {
    +
    40  typedef mat<2, 2, T, Q> type;
    +
    41  };
    +
    42 
    +
    43  template<typename T, qualifier Q>
    +
    44  struct outerProduct_trait<2, 3, T, Q>
    +
    45  {
    +
    46  typedef mat<3, 2, T, Q> type;
    +
    47  };
    +
    48 
    +
    49  template<typename T, qualifier Q>
    +
    50  struct outerProduct_trait<2, 4, T, Q>
    +
    51  {
    +
    52  typedef mat<4, 2, T, Q> type;
    +
    53  };
    +
    54 
    +
    55  template<typename T, qualifier Q>
    +
    56  struct outerProduct_trait<3, 2, T, Q>
    +
    57  {
    +
    58  typedef mat<2, 3, T, Q> type;
    +
    59  };
    +
    60 
    +
    61  template<typename T, qualifier Q>
    +
    62  struct outerProduct_trait<3, 3, T, Q>
    +
    63  {
    +
    64  typedef mat<3, 3, T, Q> type;
    +
    65  };
    +
    66 
    +
    67  template<typename T, qualifier Q>
    +
    68  struct outerProduct_trait<3, 4, T, Q>
    +
    69  {
    +
    70  typedef mat<4, 3, T, Q> type;
    +
    71  };
    +
    72 
    +
    73  template<typename T, qualifier Q>
    +
    74  struct outerProduct_trait<4, 2, T, Q>
    +
    75  {
    +
    76  typedef mat<2, 4, T, Q> type;
    +
    77  };
    +
    78 
    +
    79  template<typename T, qualifier Q>
    +
    80  struct outerProduct_trait<4, 3, T, Q>
    +
    81  {
    +
    82  typedef mat<3, 4, T, Q> type;
    +
    83  };
    +
    84 
    +
    85  template<typename T, qualifier Q>
    +
    86  struct outerProduct_trait<4, 4, T, Q>
    +
    87  {
    +
    88  typedef mat<4, 4, T, Q> type;
    +
    89  };
    +
    90 }//namespace detail
    +
    91 
    +
    94 
    +
    105  template<length_t C, length_t R, typename T, qualifier Q>
    +
    106  GLM_FUNC_DECL mat<C, R, T, Q> matrixCompMult(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y);
    +
    107 
    +
    119  template<length_t C, length_t R, typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL typename detail::outerProduct_trait<C, R, T, Q>::type outerProduct(vec<C, T, Q> const& c, vec<R, T, Q> const& r);
    +
    121 
    +
    131  template<length_t C, length_t R, typename T, qualifier Q>
    +
    132  GLM_FUNC_DECL typename mat<C, R, T, Q>::transpose_type transpose(mat<C, R, T, Q> const& x);
    +
    133 
    +
    143  template<length_t C, length_t R, typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL T determinant(mat<C, R, T, Q> const& m);
    +
    145 
    +
    155  template<length_t C, length_t R, typename T, qualifier Q>
    +
    156  GLM_FUNC_DECL mat<C, R, T, Q> inverse(mat<C, R, T, Q> const& m);
    +
    157 
    +
    159 }//namespace glm
    +
    160 
    +
    161 #include "detail/func_matrix.inl"
    +
    GLM_FUNC_DECL mat< C, R, T, Q > matrixCompMult(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
    Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...
    +
    Core features
    +
    GLM_FUNC_DECL T determinant(mat< C, R, T, Q > const &m)
    Return the determinant of a squared matrix.
    +
    Core features
    +
    GLM_FUNC_DECL detail::outerProduct_trait< C, R, T, Q >::type outerProduct(vec< C, T, Q > const &c, vec< R, T, Q > const &r)
    Treats the first parameter c as a column vector and the second parameter r as a row vector and does a...
    +
    Core features
    +
    Core features
    +
    GLM_FUNC_DECL mat< C, R, T, Q >::transpose_type transpose(mat< C, R, T, Q > const &x)
    Returns the transposed matrix of x.
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    GLM_FUNC_DECL mat< C, R, T, Q > inverse(mat< C, R, T, Q > const &m)
    Return the inverse of a squared matrix.
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00058.html b/external/glm-0.9.9.8/doc/api/a00058.html new file mode 100644 index 0000000..8ea0590 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00058.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: matrix_access.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_access.hpp File Reference
    +
    +
    + +

    GLM_GTC_matrix_access +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType::col_type column (genType const &m, length_t index)
     Get a specific column of a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType column (genType const &m, length_t index, typename genType::col_type const &x)
     Set a specific column to a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::row_type row (genType const &m, length_t index)
     Get a specific row of a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType row (genType const &m, length_t index, typename genType::row_type const &x)
     Set a specific row to a matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTC_matrix_access

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_access.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00058_source.html b/external/glm-0.9.9.8/doc/api/a00058_source.html new file mode 100644 index 0000000..a509181 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00058_source.html @@ -0,0 +1,140 @@ + + + + + + +0.9.9 API documentation: matrix_access.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_access.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../detail/setup.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_GTC_matrix_access extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    29  template<typename genType>
    +
    30  GLM_FUNC_DECL typename genType::row_type row(
    +
    31  genType const& m,
    +
    32  length_t index);
    +
    33 
    +
    36  template<typename genType>
    +
    37  GLM_FUNC_DECL genType row(
    +
    38  genType const& m,
    +
    39  length_t index,
    +
    40  typename genType::row_type const& x);
    +
    41 
    +
    44  template<typename genType>
    +
    45  GLM_FUNC_DECL typename genType::col_type column(
    +
    46  genType const& m,
    +
    47  length_t index);
    +
    48 
    +
    51  template<typename genType>
    +
    52  GLM_FUNC_DECL genType column(
    +
    53  genType const& m,
    +
    54  length_t index,
    +
    55  typename genType::col_type const& x);
    +
    56 
    +
    58 }//namespace glm
    +
    59 
    +
    60 #include "matrix_access.inl"
    +
    GLM_FUNC_DECL genType row(genType const &m, length_t index, typename genType::row_type const &x)
    Set a specific row to a matrix.
    +
    GLM_FUNC_DECL genType column(genType const &m, length_t index, typename genType::col_type const &x)
    Set a specific column to a matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00059.html b/external/glm-0.9.9.8/doc/api/a00059.html new file mode 100644 index 0000000..02145b2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00059.html @@ -0,0 +1,282 @@ + + + + + + +0.9.9 API documentation: matrix_clip_space.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_clip_space.hpp File Reference
    +
    +
    + +

    GLM_EXT_matrix_clip_space +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustum (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix with default handedness, using the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_NO (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_ZO (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumNO (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_NO (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_ZO (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumZO (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspective (T fovy, T aspect, T near)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite with default handedness. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveLH (T fovy, T aspect, T near)
     Creates a matrix for a left handed, symmetric perspective-view frustum with far plane at infinite. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveRH (T fovy, T aspect, T near)
     Creates a matrix for a right handed, symmetric perspective-view frustum with far plane at infinite. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > ortho (T left, T right, T bottom, T top)
     Creates a matrix for projecting two-dimensional coordinates onto the screen. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > ortho (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_NO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_ZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoNO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_NO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_ZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspective (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum based on the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFov (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view and the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH (T fov, T width, T height, T near, T far)
     Builds a left handed perspective projection matrix based on a field of view. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_NO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_ZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovNO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH (T fov, T width, T height, T near, T far)
     Builds a right handed perspective projection matrix based on a field of view. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_NO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_ZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_NO (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_ZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveNO (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_NO (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_ZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > tweakedInfinitePerspective (T fovy, T aspect, T near)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > tweakedInfinitePerspective (T fovy, T aspect, T near, T ep)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00059_source.html b/external/glm-0.9.9.8/doc/api/a00059_source.html new file mode 100644 index 0000000..b99391b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00059_source.html @@ -0,0 +1,327 @@ + + + + + + +0.9.9 API documentation: matrix_clip_space.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_clip_space.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependencies
    +
    23 #include "../ext/scalar_constants.hpp"
    +
    24 #include "../geometric.hpp"
    +
    25 #include "../trigonometric.hpp"
    +
    26 
    +
    27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    28 # pragma message("GLM: GLM_EXT_matrix_clip_space extension included")
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    42  template<typename T>
    +
    43  GLM_FUNC_DECL mat<4, 4, T, defaultp> ortho(
    +
    44  T left, T right, T bottom, T top);
    +
    45 
    +
    52  template<typename T>
    +
    53  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoLH_ZO(
    +
    54  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    55 
    +
    62  template<typename T>
    +
    63  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoLH_NO(
    +
    64  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    65 
    +
    72  template<typename T>
    +
    73  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoRH_ZO(
    +
    74  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    75 
    +
    82  template<typename T>
    +
    83  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoRH_NO(
    +
    84  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    85 
    +
    92  template<typename T>
    +
    93  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoZO(
    +
    94  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    95 
    +
    102  template<typename T>
    +
    103  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoNO(
    +
    104  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    105 
    +
    113  template<typename T>
    +
    114  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoLH(
    +
    115  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    116 
    +
    124  template<typename T>
    +
    125  GLM_FUNC_DECL mat<4, 4, T, defaultp> orthoRH(
    +
    126  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    127 
    +
    135  template<typename T>
    +
    136  GLM_FUNC_DECL mat<4, 4, T, defaultp> ortho(
    +
    137  T left, T right, T bottom, T top, T zNear, T zFar);
    +
    138 
    +
    143  template<typename T>
    +
    144  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumLH_ZO(
    +
    145  T left, T right, T bottom, T top, T near, T far);
    +
    146 
    +
    151  template<typename T>
    +
    152  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumLH_NO(
    +
    153  T left, T right, T bottom, T top, T near, T far);
    +
    154 
    +
    159  template<typename T>
    +
    160  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumRH_ZO(
    +
    161  T left, T right, T bottom, T top, T near, T far);
    +
    162 
    +
    167  template<typename T>
    +
    168  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumRH_NO(
    +
    169  T left, T right, T bottom, T top, T near, T far);
    +
    170 
    +
    175  template<typename T>
    +
    176  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumZO(
    +
    177  T left, T right, T bottom, T top, T near, T far);
    +
    178 
    +
    183  template<typename T>
    +
    184  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumNO(
    +
    185  T left, T right, T bottom, T top, T near, T far);
    +
    186 
    +
    192  template<typename T>
    +
    193  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumLH(
    +
    194  T left, T right, T bottom, T top, T near, T far);
    +
    195 
    +
    201  template<typename T>
    +
    202  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustumRH(
    +
    203  T left, T right, T bottom, T top, T near, T far);
    +
    204 
    +
    210  template<typename T>
    +
    211  GLM_FUNC_DECL mat<4, 4, T, defaultp> frustum(
    +
    212  T left, T right, T bottom, T top, T near, T far);
    +
    213 
    +
    214 
    +
    224  template<typename T>
    +
    225  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveRH_ZO(
    +
    226  T fovy, T aspect, T near, T far);
    +
    227 
    +
    237  template<typename T>
    +
    238  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveRH_NO(
    +
    239  T fovy, T aspect, T near, T far);
    +
    240 
    +
    250  template<typename T>
    +
    251  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveLH_ZO(
    +
    252  T fovy, T aspect, T near, T far);
    +
    253 
    +
    263  template<typename T>
    +
    264  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveLH_NO(
    +
    265  T fovy, T aspect, T near, T far);
    +
    266 
    +
    276  template<typename T>
    +
    277  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveZO(
    +
    278  T fovy, T aspect, T near, T far);
    +
    279 
    +
    289  template<typename T>
    +
    290  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveNO(
    +
    291  T fovy, T aspect, T near, T far);
    +
    292 
    +
    303  template<typename T>
    +
    304  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveRH(
    +
    305  T fovy, T aspect, T near, T far);
    +
    306 
    +
    317  template<typename T>
    +
    318  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveLH(
    +
    319  T fovy, T aspect, T near, T far);
    +
    320 
    +
    331  template<typename T>
    +
    332  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspective(
    +
    333  T fovy, T aspect, T near, T far);
    +
    334 
    +
    345  template<typename T>
    +
    346  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovRH_ZO(
    +
    347  T fov, T width, T height, T near, T far);
    +
    348 
    +
    359  template<typename T>
    +
    360  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovRH_NO(
    +
    361  T fov, T width, T height, T near, T far);
    +
    362 
    +
    373  template<typename T>
    +
    374  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovLH_ZO(
    +
    375  T fov, T width, T height, T near, T far);
    +
    376 
    +
    387  template<typename T>
    +
    388  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovLH_NO(
    +
    389  T fov, T width, T height, T near, T far);
    +
    390 
    +
    401  template<typename T>
    +
    402  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovZO(
    +
    403  T fov, T width, T height, T near, T far);
    +
    404 
    +
    415  template<typename T>
    +
    416  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovNO(
    +
    417  T fov, T width, T height, T near, T far);
    +
    418 
    +
    430  template<typename T>
    +
    431  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovRH(
    +
    432  T fov, T width, T height, T near, T far);
    +
    433 
    +
    445  template<typename T>
    +
    446  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFovLH(
    +
    447  T fov, T width, T height, T near, T far);
    +
    448 
    +
    459  template<typename T>
    +
    460  GLM_FUNC_DECL mat<4, 4, T, defaultp> perspectiveFov(
    +
    461  T fov, T width, T height, T near, T far);
    +
    462 
    +
    470  template<typename T>
    +
    471  GLM_FUNC_DECL mat<4, 4, T, defaultp> infinitePerspectiveLH(
    +
    472  T fovy, T aspect, T near);
    +
    473 
    +
    481  template<typename T>
    +
    482  GLM_FUNC_DECL mat<4, 4, T, defaultp> infinitePerspectiveRH(
    +
    483  T fovy, T aspect, T near);
    +
    484 
    +
    492  template<typename T>
    +
    493  GLM_FUNC_DECL mat<4, 4, T, defaultp> infinitePerspective(
    +
    494  T fovy, T aspect, T near);
    +
    495 
    +
    503  template<typename T>
    +
    504  GLM_FUNC_DECL mat<4, 4, T, defaultp> tweakedInfinitePerspective(
    +
    505  T fovy, T aspect, T near);
    +
    506 
    +
    515  template<typename T>
    +
    516  GLM_FUNC_DECL mat<4, 4, T, defaultp> tweakedInfinitePerspective(
    +
    517  T fovy, T aspect, T near, T ep);
    +
    518 
    +
    520 }//namespace glm
    +
    521 
    +
    522 #include "matrix_clip_space.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_NO(T left, T right, T bottom, T top, T near, T far)
    Creates a right handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspective(T fovy, T aspect, T near)
    Creates a matrix for a symmetric perspective-view frustum with far plane at infinite with default han...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoZO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > tweakedInfinitePerspective(T fovy, T aspect, T near, T ep)
    Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics har...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH(T fov, T width, T height, T near, T far)
    Builds a left handed perspective projection matrix based on a field of view.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_ZO(T left, T right, T bottom, T top, T near, T far)
    Creates a left handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_NO(T left, T right, T bottom, T top, T near, T far)
    Creates a left handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumNO(T left, T right, T bottom, T top, T near, T far)
    Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-h...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH(T left, T right, T bottom, T top, T near, T far)
    Creates a right handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH(T left, T right, T bottom, T top, T near, T far)
    Creates a left handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_NO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using right-handed coordinates...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFov(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view and the default handedness and defaul...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH(T fov, T width, T height, T near, T far)
    Builds a right handed perspective projection matrix based on a field of view.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_ZO(T left, T right, T bottom, T top, T near, T far)
    Creates a right handed frustum matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_ZO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_ZO(T fovy, T aspect, T near, T far)
    Creates a matrix for a left handed, symetric perspective-view frustum.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_NO(T fovy, T aspect, T near, T far)
    Creates a matrix for a right handed, symetric perspective-view frustum.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_NO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_NO(T fovy, T aspect, T near, T far)
    Creates a matrix for a left handed, symetric perspective-view frustum.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > ortho(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using the default handedness and defaul...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_ZO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using left-handed coordinates...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumZO(T left, T right, T bottom, T top, T near, T far)
    Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-h...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoNO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates if GLM_FO...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_NO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume using right-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovNO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspective(T fovy, T aspect, T near, T far)
    Creates a matrix for a symetric perspective-view frustum based on the default handedness and default ...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_ZO(T left, T right, T bottom, T top, T zNear, T zFar)
    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovZO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveRH(T fovy, T aspect, T near)
    Creates a matrix for a right handed, symmetric perspective-view frustum with far plane at infinite...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveNO(T fovy, T aspect, T near, T far)
    Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_L...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_NO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using left-handed coordinates...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_ZO(T fovy, T aspect, T near, T far)
    Creates a matrix for a right handed, symetric perspective-view frustum.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveZO(T fovy, T aspect, T near, T far)
    Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_L...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveLH(T fovy, T aspect, T near)
    Creates a matrix for a left handed, symmetric perspective-view frustum with far plane at infinite...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH(T fovy, T aspect, T near, T far)
    Creates a matrix for a left handed, symetric perspective-view frustum.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_ZO(T fov, T width, T height, T near, T far)
    Builds a perspective projection matrix based on a field of view using right-handed coordinates...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustum(T left, T right, T bottom, T top, T near, T far)
    Creates a frustum matrix with default handedness, using the default handedness and default near and f...
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH(T fovy, T aspect, T near, T far)
    Creates a matrix for a right handed, symetric perspective-view frustum.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00060.html b/external/glm-0.9.9.8/doc/api/a00060.html new file mode 100644 index 0000000..f902956 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00060.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: matrix_common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_common.hpp File Reference
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00060_source.html b/external/glm-0.9.9.8/doc/api/a00060_source.html new file mode 100644 index 0000000..7f947e7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00060_source.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/qualifier.hpp"
    +
    16 #include "../detail/_fixes.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_EXT_matrix_transform extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    27  template<length_t C, length_t R, typename T, typename U, qualifier Q>
    +
    28  GLM_FUNC_DECL mat<C, R, T, Q> mix(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, mat<C, R, U, Q> const& a);
    +
    29 
    +
    30  template<length_t C, length_t R, typename T, typename U, qualifier Q>
    +
    31  GLM_FUNC_DECL mat<C, R, T, Q> mix(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, U a);
    +
    32 
    +
    34 }//namespace glm
    +
    35 
    +
    36 #include "matrix_common.inl"
    +
    GLM_FUNC_DECL genTypeT mix(genTypeT x, genTypeT y, genTypeU a)
    If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00061.html b/external/glm-0.9.9.8/doc/api/a00061.html new file mode 100644 index 0000000..150ee79 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00061.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: matrix_cross_product.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_cross_product.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_cross_product +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > matrixCross3 (vec< 3, T, Q > const &x)
     Build a cross product matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > matrixCross4 (vec< 3, T, Q > const &x)
     Build a cross product matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_cross_product

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file matrix_cross_product.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00061_source.html b/external/glm-0.9.9.8/doc/api/a00061_source.html new file mode 100644 index 0000000..7eafc7a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00061_source.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: matrix_cross_product.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_cross_product.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_matrix_cross_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_matrix_cross_product extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename T, qualifier Q>
    +
    35  GLM_FUNC_DECL mat<3, 3, T, Q> matrixCross3(
    +
    36  vec<3, T, Q> const& x);
    +
    37 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL mat<4, 4, T, Q> matrixCross4(
    +
    42  vec<3, T, Q> const& x);
    +
    43 
    +
    45 }//namespace glm
    +
    46 
    +
    47 #include "matrix_cross_product.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > matrixCross4(vec< 3, T, Q > const &x)
    Build a cross product matrix.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > matrixCross3(vec< 3, T, Q > const &x)
    Build a cross product matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00062.html b/external/glm-0.9.9.8/doc/api/a00062.html new file mode 100644 index 0000000..9ec0888 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00062.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: matrix_decompose.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_decompose.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_decompose +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool decompose (mat< 4, 4, T, Q > const &modelMatrix, vec< 3, T, Q > &scale, qua< T, Q > &orientation, vec< 3, T, Q > &translation, vec< 3, T, Q > &skew, vec< 4, T, Q > &perspective)
     Decomposes a model matrix to translations, rotation and scale components. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_decompose

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_decompose.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00062_source.html b/external/glm-0.9.9.8/doc/api/a00062_source.html new file mode 100644 index 0000000..d48f1b8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00062_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: matrix_decompose.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_decompose.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../mat4x4.hpp"
    +
    17 #include "../vec3.hpp"
    +
    18 #include "../vec4.hpp"
    +
    19 #include "../geometric.hpp"
    +
    20 #include "../gtc/quaternion.hpp"
    +
    21 #include "../gtc/matrix_transform.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    25 # pragma message("GLM: GLM_GTX_matrix_decompose is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    26 # else
    +
    27 # pragma message("GLM: GLM_GTX_matrix_decompose extension included")
    +
    28 # endif
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    38  template<typename T, qualifier Q>
    +
    39  GLM_FUNC_DECL bool decompose(
    +
    40  mat<4, 4, T, Q> const& modelMatrix,
    +
    41  vec<3, T, Q> & scale, qua<T, Q> & orientation, vec<3, T, Q> & translation, vec<3, T, Q> & skew, vec<4, T, Q> & perspective);
    +
    42 
    +
    44 }//namespace glm
    +
    45 
    +
    46 #include "matrix_decompose.inl"
    +
    GLM_FUNC_DECL bool decompose(mat< 4, 4, T, Q > const &modelMatrix, vec< 3, T, Q > &scale, qua< T, Q > &orientation, vec< 3, T, Q > &translation, vec< 3, T, Q > &skew, vec< 4, T, Q > &perspective)
    Decomposes a model matrix to translations, rotation and scale components.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
    Builds a scale 4 * 4 matrix created from 3 scalars.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspective(T fovy, T aspect, T near, T far)
    Creates a matrix for a symetric perspective-view frustum based on the default handedness and default ...
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientation(vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)
    Build a rotation matrix from a normal and a up vector.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00063.html b/external/glm-0.9.9.8/doc/api/a00063.html new file mode 100644 index 0000000..0d5958a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00063.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: matrix_double2x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, double, defaultp > dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 2, 2, double, defaultp > dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double2x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00063_source.html b/external/glm-0.9.9.8/doc/api/a00063_source.html new file mode 100644 index 0000000..3370f96 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00063_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_double2x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 2, double, defaultp> dmat2x2;
    +
    16 
    +
    20  typedef mat<2, 2, double, defaultp> dmat2;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 2, 2, double, defaultp > dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers.
    +
    mat< 2, 2, double, defaultp > dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00064.html b/external/glm-0.9.9.8/doc/api/a00064.html new file mode 100644 index 0000000..c1b68e0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00064.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_double2x2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, double, highp > highp_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, highp > highp_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, lowp > lowp_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, lowp > lowp_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, mediump > mediump_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, mediump > mediump_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00064_source.html b/external/glm-0.9.9.8/doc/api/a00064_source.html new file mode 100644 index 0000000..24e0d9c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00064_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_double2x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 2, double, lowp> lowp_dmat2;
    +
    17 
    +
    22  typedef mat<2, 2, double, mediump> mediump_dmat2;
    +
    23 
    +
    28  typedef mat<2, 2, double, highp> highp_dmat2;
    +
    29 
    +
    34  typedef mat<2, 2, double, lowp> lowp_dmat2x2;
    +
    35 
    +
    40  typedef mat<2, 2, double, mediump> mediump_dmat2x2;
    +
    41 
    +
    46  typedef mat<2, 2, double, highp> highp_dmat2x2;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 2, 2, double, mediump > mediump_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, double, lowp > lowp_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 2, 2, double, mediump > mediump_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, double, highp > highp_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, double, highp > highp_dmat2
    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, double, lowp > lowp_dmat2x2
    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00065.html b/external/glm-0.9.9.8/doc/api/a00065.html new file mode 100644 index 0000000..78c97f6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00065.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double2x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 2, 3, double, defaultp > dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double2x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00065_source.html b/external/glm-0.9.9.8/doc/api/a00065_source.html new file mode 100644 index 0000000..48b8809 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00065_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double2x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 3, double, defaultp> dmat2x3;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 2, 3, double, defaultp > dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00066.html b/external/glm-0.9.9.8/doc/api/a00066.html new file mode 100644 index 0000000..12abb3a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00066.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double2x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 3, double, highp > highp_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, double, lowp > lowp_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, double, mediump > mediump_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00066_source.html b/external/glm-0.9.9.8/doc/api/a00066_source.html new file mode 100644 index 0000000..1bfeadf --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00066_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double2x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 3, double, lowp> lowp_dmat2x3;
    +
    17 
    +
    22  typedef mat<2, 3, double, mediump> mediump_dmat2x3;
    +
    23 
    +
    28  typedef mat<2, 3, double, highp> highp_dmat2x3;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 2, 3, double, mediump > mediump_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 3, double, highp > highp_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 3, double, lowp > lowp_dmat2x3
    2 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00067.html b/external/glm-0.9.9.8/doc/api/a00067.html new file mode 100644 index 0000000..ef07ea7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00067.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double2x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 2, 4, double, defaultp > dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double2x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00067_source.html b/external/glm-0.9.9.8/doc/api/a00067_source.html new file mode 100644 index 0000000..bc9cfba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00067_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double2x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 4, double, defaultp> dmat2x4;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 2, 4, double, defaultp > dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00068.html b/external/glm-0.9.9.8/doc/api/a00068.html new file mode 100644 index 0000000..d65221e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00068.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double2x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double2x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 4, double, highp > highp_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, double, lowp > lowp_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, double, mediump > mediump_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00068_source.html b/external/glm-0.9.9.8/doc/api/a00068_source.html new file mode 100644 index 0000000..a340888 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00068_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double2x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double2x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 4, double, lowp> lowp_dmat2x4;
    +
    17 
    +
    22  typedef mat<2, 4, double, mediump> mediump_dmat2x4;
    +
    23 
    +
    28  typedef mat<2, 4, double, highp> highp_dmat2x4;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 2, 4, double, highp > highp_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 4, double, mediump > mediump_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 4, double, lowp > lowp_dmat2x4
    2 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00069.html b/external/glm-0.9.9.8/doc/api/a00069.html new file mode 100644 index 0000000..44db1f9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00069.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double3x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 3, 2, double, defaultp > dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double3x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00069_source.html b/external/glm-0.9.9.8/doc/api/a00069_source.html new file mode 100644 index 0000000..bee6c7e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00069_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double3x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 2, double, defaultp> dmat3x2;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 3, 2, double, defaultp > dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00070.html b/external/glm-0.9.9.8/doc/api/a00070.html new file mode 100644 index 0000000..201c303 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00070.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double3x2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 2, double, highp > highp_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, double, lowp > lowp_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, double, mediump > mediump_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00070_source.html b/external/glm-0.9.9.8/doc/api/a00070_source.html new file mode 100644 index 0000000..c0cd719 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00070_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double3x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 2, double, lowp> lowp_dmat3x2;
    +
    17 
    +
    22  typedef mat<3, 2, double, mediump> mediump_dmat3x2;
    +
    23 
    +
    28  typedef mat<3, 2, double, highp> highp_dmat3x2;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 3, 2, double, mediump > mediump_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 2, double, lowp > lowp_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 2, double, highp > highp_dmat3x2
    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00071.html b/external/glm-0.9.9.8/doc/api/a00071.html new file mode 100644 index 0000000..818dada --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00071.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: matrix_double3x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + +

    +Typedefs

    typedef mat< 3, 3, double, defaultp > dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 3, 3, double, defaultp > dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double3x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00071_source.html b/external/glm-0.9.9.8/doc/api/a00071_source.html new file mode 100644 index 0000000..37dbbce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00071_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_double3x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 3, double, defaultp> dmat3x3;
    +
    16 
    +
    20  typedef mat<3, 3, double, defaultp> dmat3;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 3, 3, double, defaultp > dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers.
    +
    mat< 3, 3, double, defaultp > dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00072.html b/external/glm-0.9.9.8/doc/api/a00072.html new file mode 100644 index 0000000..1dcb39b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00072.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_double3x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 3, double, highp > highp_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, highp > highp_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, lowp > lowp_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, lowp > lowp_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, mediump > mediump_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, mediump > mediump_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00072_source.html b/external/glm-0.9.9.8/doc/api/a00072_source.html new file mode 100644 index 0000000..421371a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00072_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_double3x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 3, double, lowp> lowp_dmat3;
    +
    17 
    +
    22  typedef mat<3, 3, double, mediump> mediump_dmat3;
    +
    23 
    +
    28  typedef mat<3, 3, double, highp> highp_dmat3;
    +
    29 
    +
    34  typedef mat<3, 3, double, lowp> lowp_dmat3x3;
    +
    35 
    +
    40  typedef mat<3, 3, double, mediump> mediump_dmat3x3;
    +
    41 
    +
    46  typedef mat<3, 3, double, highp> highp_dmat3x3;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 3, 3, double, lowp > lowp_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 3, double, lowp > lowp_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 3, double, highp > highp_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, double, highp > highp_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, double, mediump > mediump_dmat3x3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, double, mediump > mediump_dmat3
    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00073.html b/external/glm-0.9.9.8/doc/api/a00073.html new file mode 100644 index 0000000..2026bd4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00073.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double3x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 3, 4, double, defaultp > dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double3x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00073_source.html b/external/glm-0.9.9.8/doc/api/a00073_source.html new file mode 100644 index 0000000..9298fb2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00073_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double3x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 4, double, defaultp> dmat3x4;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 3, 4, double, defaultp > dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00074.html b/external/glm-0.9.9.8/doc/api/a00074.html new file mode 100644 index 0000000..9c16c9f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00074.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double3x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double3x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 4, double, highp > highp_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, double, lowp > lowp_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, double, mediump > mediump_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00074_source.html b/external/glm-0.9.9.8/doc/api/a00074_source.html new file mode 100644 index 0000000..92690b4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00074_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double3x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double3x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 4, double, lowp> lowp_dmat3x4;
    +
    17 
    +
    22  typedef mat<3, 4, double, mediump> mediump_dmat3x4;
    +
    23 
    +
    28  typedef mat<3, 4, double, highp> highp_dmat3x4;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 3, 4, double, lowp > lowp_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 3, 4, double, mediump > mediump_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 4, double, highp > highp_dmat3x4
    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00075.html b/external/glm-0.9.9.8/doc/api/a00075.html new file mode 100644 index 0000000..8346ff9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00075.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double4x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 4, 2, double, defaultp > dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double4x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00075_source.html b/external/glm-0.9.9.8/doc/api/a00075_source.html new file mode 100644 index 0000000..dbecc9c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00075_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double4x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 2, double, defaultp> dmat4x2;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 4, 2, double, defaultp > dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00076.html b/external/glm-0.9.9.8/doc/api/a00076.html new file mode 100644 index 0000000..afa207d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00076.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double4x2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 4, 2, double, highp > highp_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, double, lowp > lowp_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, double, mediump > mediump_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00076_source.html b/external/glm-0.9.9.8/doc/api/a00076_source.html new file mode 100644 index 0000000..dd69ec9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00076_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double4x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 2, double, lowp> lowp_dmat4x2;
    +
    17 
    +
    22  typedef mat<4, 2, double, mediump> mediump_dmat4x2;
    +
    23 
    +
    28  typedef mat<4, 2, double, highp> highp_dmat4x2;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 4, 2, double, lowp > lowp_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 4, 2, double, mediump > mediump_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 2, double, highp > highp_dmat4x2
    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00077.html b/external/glm-0.9.9.8/doc/api/a00077.html new file mode 100644 index 0000000..73c3f20 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00077.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double4x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 4, 3, double, defaultp > dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double4x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00077_source.html b/external/glm-0.9.9.8/doc/api/a00077_source.html new file mode 100644 index 0000000..10bdf20 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00077_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_double4x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 3, double, defaultp> dmat4x3;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 4, 3, double, defaultp > dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00078.html b/external/glm-0.9.9.8/doc/api/a00078.html new file mode 100644 index 0000000..f62d7fe --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00078.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_double4x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 4, 3, double, highp > highp_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, double, lowp > lowp_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, double, mediump > mediump_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00078_source.html b/external/glm-0.9.9.8/doc/api/a00078_source.html new file mode 100644 index 0000000..8f8f2d0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00078_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_double4x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 3, double, lowp> lowp_dmat4x3;
    +
    17 
    +
    22  typedef mat<4, 3, double, mediump> mediump_dmat4x3;
    +
    23 
    +
    28  typedef mat<4, 3, double, highp> highp_dmat4x3;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 4, 3, double, highp > highp_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 3, double, mediump > mediump_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 3, double, lowp > lowp_dmat4x3
    4 columns of 3 components matrix of double-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00079.html b/external/glm-0.9.9.8/doc/api/a00079.html new file mode 100644 index 0000000..7b50fd0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00079.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: matrix_double4x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + +

    +Typedefs

    typedef mat< 4, 4, double, defaultp > dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 4, 4, double, defaultp > dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_double4x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00079_source.html b/external/glm-0.9.9.8/doc/api/a00079_source.html new file mode 100644 index 0000000..6525483 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00079_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_double4x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 4, double, defaultp> dmat4x4;
    +
    16 
    +
    20  typedef mat<4, 4, double, defaultp> dmat4;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 4, 4, double, defaultp > dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers.
    +
    mat< 4, 4, double, defaultp > dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00080.html b/external/glm-0.9.9.8/doc/api/a00080.html new file mode 100644 index 0000000..3ee0d3a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00080.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_double4x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_double4x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 4, 4, double, highp > highp_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, highp > highp_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, lowp > lowp_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, lowp > lowp_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, mediump > mediump_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, mediump > mediump_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00080_source.html b/external/glm-0.9.9.8/doc/api/a00080_source.html new file mode 100644 index 0000000..f092d0e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00080_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_double4x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_double4x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 4, double, lowp> lowp_dmat4;
    +
    17 
    +
    22  typedef mat<4, 4, double, mediump> mediump_dmat4;
    +
    23 
    +
    28  typedef mat<4, 4, double, highp> highp_dmat4;
    +
    29 
    +
    34  typedef mat<4, 4, double, lowp> lowp_dmat4x4;
    +
    35 
    +
    40  typedef mat<4, 4, double, mediump> mediump_dmat4x4;
    +
    41 
    +
    46  typedef mat<4, 4, double, highp> highp_dmat4x4;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 4, 4, double, mediump > mediump_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, double, lowp > lowp_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 4, 4, double, mediump > mediump_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, double, highp > highp_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, double, lowp > lowp_dmat4x4
    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arith...
    +
    mat< 4, 4, double, highp > highp_dmat4
    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00081.html b/external/glm-0.9.9.8/doc/api/a00081.html new file mode 100644 index 0000000..f3b362f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00081.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: matrix_factorisation.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_factorisation.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_factorisation +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > fliplr (mat< C, R, T, Q > const &in)
     Flips the matrix columns right and left. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > flipud (mat< C, R, T, Q > const &in)
     Flips the matrix rows up and down. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL void qr_decompose (mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &q, mat< C,(C< R?C:R), T, Q > &r)
     Performs QR factorisation of a matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL void rq_decompose (mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &r, mat< C,(C< R?C:R), T, Q > &q)
     Performs RQ factorisation of a matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_factorisation

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_factorisation.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00081_source.html b/external/glm-0.9.9.8/doc/api/a00081_source.html new file mode 100644 index 0000000..cffa1f4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00081_source.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: matrix_factorisation.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_factorisation.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_matrix_factorisation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_matrix_factorisation extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 /*
    +
    27 Suggestions:
    +
    28  - Move helper functions flipud and fliplr to another file: They may be helpful in more general circumstances.
    +
    29  - Implement other types of matrix factorisation, such as: QL and LQ, L(D)U, eigendecompositions, etc...
    +
    30 */
    +
    31 
    +
    32 namespace glm
    +
    33 {
    +
    36 
    +
    40  template <length_t C, length_t R, typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL mat<C, R, T, Q> flipud(mat<C, R, T, Q> const& in);
    +
    42 
    +
    46  template <length_t C, length_t R, typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL mat<C, R, T, Q> fliplr(mat<C, R, T, Q> const& in);
    +
    48 
    +
    54  template <length_t C, length_t R, typename T, qualifier Q>
    +
    55  GLM_FUNC_DECL void qr_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& q, mat<C, (C < R ? C : R), T, Q>& r);
    +
    56 
    +
    63  template <length_t C, length_t R, typename T, qualifier Q>
    +
    64  GLM_FUNC_DECL void rq_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& r, mat<C, (C < R ? C : R), T, Q>& q);
    +
    65 
    +
    67 }
    +
    68 
    +
    69 #include "matrix_factorisation.inl"
    +
    GLM_FUNC_DECL void rq_decompose(mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &r, mat< C,(C< R?C:R), T, Q > &q)
    Performs RQ factorisation of a matrix.
    +
    GLM_FUNC_DECL void qr_decompose(mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &q, mat< C,(C< R?C:R), T, Q > &r)
    Performs QR factorisation of a matrix.
    +
    GLM_FUNC_DECL mat< C, R, T, Q > flipud(mat< C, R, T, Q > const &in)
    Flips the matrix rows up and down.
    +
    GLM_FUNC_DECL mat< C, R, T, Q > fliplr(mat< C, R, T, Q > const &in)
    Flips the matrix columns right and left.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00082.html b/external/glm-0.9.9.8/doc/api/a00082.html new file mode 100644 index 0000000..4609c85 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00082.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: matrix_float2x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, float, defaultp > mat2
     2 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 2, 2, float, defaultp > mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float2x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00082_source.html b/external/glm-0.9.9.8/doc/api/a00082_source.html new file mode 100644 index 0000000..98f4f75 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00082_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_float2x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 2, float, defaultp> mat2x2;
    +
    16 
    +
    20  typedef mat<2, 2, float, defaultp> mat2;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 2, 2, float, defaultp > mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    mat< 2, 2, float, defaultp > mat2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00083.html b/external/glm-0.9.9.8/doc/api/a00083.html new file mode 100644 index 0000000..8c96df0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00083.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_float2x2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, float, highp > highp_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, highp > highp_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, lowp > lowp_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, lowp > lowp_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, mediump > mediump_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, mediump > mediump_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00083_source.html b/external/glm-0.9.9.8/doc/api/a00083_source.html new file mode 100644 index 0000000..a99a2e8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00083_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_float2x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 2, float, lowp> lowp_mat2;
    +
    17 
    +
    22  typedef mat<2, 2, float, mediump> mediump_mat2;
    +
    23 
    +
    28  typedef mat<2, 2, float, highp> highp_mat2;
    +
    29 
    +
    34  typedef mat<2, 2, float, lowp> lowp_mat2x2;
    +
    35 
    +
    40  typedef mat<2, 2, float, mediump> mediump_mat2x2;
    +
    41 
    +
    46  typedef mat<2, 2, float, highp> highp_mat2x2;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 2, 2, float, lowp > lowp_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 2, 2, float, highp > highp_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 2, 2, float, lowp > lowp_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 2, 2, float, highp > highp_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 2, 2, float, mediump > mediump_mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 2, float, mediump > mediump_mat2
    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00084.html b/external/glm-0.9.9.8/doc/api/a00084.html new file mode 100644 index 0000000..cffdd33 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00084.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float2x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 2, 3, float, defaultp > mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float2x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00084_source.html b/external/glm-0.9.9.8/doc/api/a00084_source.html new file mode 100644 index 0000000..67cfa88 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00084_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float2x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 3, float, defaultp> mat2x3;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 2, 3, float, defaultp > mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00085.html b/external/glm-0.9.9.8/doc/api/a00085.html new file mode 100644 index 0000000..b33e8c9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00085.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_float2x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 3, float, highp > highp_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, float, lowp > lowp_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, float, mediump > mediump_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00085_source.html b/external/glm-0.9.9.8/doc/api/a00085_source.html new file mode 100644 index 0000000..bfee5c6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00085_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float2x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 3, float, lowp> lowp_mat2x3;
    +
    17 
    +
    22  typedef mat<2, 3, float, mediump> mediump_mat2x3;
    +
    23 
    +
    28  typedef mat<2, 3, float, highp> highp_mat2x3;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 2, 3, float, mediump > mediump_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 3, float, highp > highp_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 2, 3, float, lowp > lowp_mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00086.html b/external/glm-0.9.9.8/doc/api/a00086.html new file mode 100644 index 0000000..bd952ef --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00086.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float2x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 2, 4, float, defaultp > mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float2x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00086_source.html b/external/glm-0.9.9.8/doc/api/a00086_source.html new file mode 100644 index 0000000..d2f7ec8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00086_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float2x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<2, 4, float, defaultp> mat2x4;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 2, 4, float, defaultp > mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00087.html b/external/glm-0.9.9.8/doc/api/a00087.html new file mode 100644 index 0000000..e61d2ea --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00087.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_float2x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float2x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 4, float, highp > highp_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, float, lowp > lowp_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, float, mediump > mediump_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00087_source.html b/external/glm-0.9.9.8/doc/api/a00087_source.html new file mode 100644 index 0000000..9c7b054 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00087_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float2x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float2x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<2, 4, float, lowp> lowp_mat2x4;
    +
    17 
    +
    22  typedef mat<2, 4, float, mediump> mediump_mat2x4;
    +
    23 
    +
    28  typedef mat<2, 4, float, highp> highp_mat2x4;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 2, 4, float, lowp > lowp_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 2, 4, float, mediump > mediump_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 2, 4, float, highp > highp_mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00088.html b/external/glm-0.9.9.8/doc/api/a00088.html new file mode 100644 index 0000000..c86b46a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00088.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float3x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 3, 2, float, defaultp > mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float3x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00088_source.html b/external/glm-0.9.9.8/doc/api/a00088_source.html new file mode 100644 index 0000000..9caa026 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00088_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float3x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 2, float, defaultp> mat3x2;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 3, 2, float, defaultp > mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00089.html b/external/glm-0.9.9.8/doc/api/a00089.html new file mode 100644 index 0000000..b90ee2d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00089.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_float3x2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 2, float, highp > highp_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, float, lowp > lowp_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, float, mediump > mediump_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00089_source.html b/external/glm-0.9.9.8/doc/api/a00089_source.html new file mode 100644 index 0000000..110538d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00089_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float3x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 2, float, lowp> lowp_mat3x2;
    +
    17 
    +
    22  typedef mat<3, 2, float, mediump> mediump_mat3x2;
    +
    23 
    +
    28  typedef mat<3, 2, float, highp> highp_mat3x2;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 3, 2, float, lowp > lowp_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 3, 2, float, mediump > mediump_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 2, float, highp > highp_mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00090.html b/external/glm-0.9.9.8/doc/api/a00090.html new file mode 100644 index 0000000..c4725c6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00090.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: matrix_float3x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + +

    +Typedefs

    typedef mat< 3, 3, float, defaultp > mat3
     3 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 3, 3, float, defaultp > mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float3x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00090_source.html b/external/glm-0.9.9.8/doc/api/a00090_source.html new file mode 100644 index 0000000..79ecd3d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00090_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_float3x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 3, float, defaultp> mat3x3;
    +
    16 
    +
    20  typedef mat<3, 3, float, defaultp> mat3;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 3, 3, float, defaultp > mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 3, float, defaultp > mat3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00091.html b/external/glm-0.9.9.8/doc/api/a00091.html new file mode 100644 index 0000000..8d4f40a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00091.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_float3x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 3, float, highp > highp_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, highp > highp_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, lowp > lowp_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, lowp > lowp_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, mediump > mediump_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, mediump > mediump_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00091_source.html b/external/glm-0.9.9.8/doc/api/a00091_source.html new file mode 100644 index 0000000..f1e16ca --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00091_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_float3x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 3, float, lowp> lowp_mat3;
    +
    17 
    +
    22  typedef mat<3, 3, float, mediump> mediump_mat3;
    +
    23 
    +
    28  typedef mat<3, 3, float, highp> highp_mat3;
    +
    29 
    +
    34  typedef mat<3, 3, float, lowp> lowp_mat3x3;
    +
    35 
    +
    40  typedef mat<3, 3, float, mediump> mediump_mat3x3;
    +
    41 
    +
    46  typedef mat<3, 3, float, highp> highp_mat3x3;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 3, 3, float, mediump > mediump_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, float, highp > highp_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 3, 3, float, lowp > lowp_mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 3, 3, float, mediump > mediump_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 3, float, lowp > lowp_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 3, 3, float, highp > highp_mat3
    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00092.html b/external/glm-0.9.9.8/doc/api/a00092.html new file mode 100644 index 0000000..aab77db --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00092.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float3x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 3, 4, float, defaultp > mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float3x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00092_source.html b/external/glm-0.9.9.8/doc/api/a00092_source.html new file mode 100644 index 0000000..f3699ac --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00092_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float3x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<3, 4, float, defaultp> mat3x4;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 3, 4, float, defaultp > mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00093.html b/external/glm-0.9.9.8/doc/api/a00093.html new file mode 100644 index 0000000..cc1ec20 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00093.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_float3x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float3x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 3, 4, float, highp > highp_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, float, lowp > lowp_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, float, mediump > mediump_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00093_source.html b/external/glm-0.9.9.8/doc/api/a00093_source.html new file mode 100644 index 0000000..0792a39 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00093_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float3x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float3x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat3x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<3, 4, float, lowp> lowp_mat3x4;
    +
    17 
    +
    22  typedef mat<3, 4, float, mediump> mediump_mat3x4;
    +
    23 
    +
    28  typedef mat<3, 4, float, highp> highp_mat3x4;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 3, 4, float, highp > highp_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 3, 4, float, mediump > mediump_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 3, 4, float, lowp > lowp_mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00094.html b/external/glm-0.9.9.8/doc/api/a00094.html new file mode 100644 index 0000000..b5b5c20 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00094.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float4x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float4x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 4, 2, float, defaultp > mat4x2
     4 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float4x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00094_source.html b/external/glm-0.9.9.8/doc/api/a00094_source.html new file mode 100644 index 0000000..2d07d3d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00094_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float4x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 2, float, defaultp> mat4x2;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 4, 2, float, defaultp > mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00095_source.html b/external/glm-0.9.9.8/doc/api/a00095_source.html new file mode 100644 index 0000000..6a5d89f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00095_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float4x2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x2_precision.hpp
    +
    +
    +
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat2x2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 2, float, lowp> lowp_mat4x2;
    +
    17 
    +
    22  typedef mat<4, 2, float, mediump> mediump_mat4x2;
    +
    23 
    +
    28  typedef mat<4, 2, float, highp> highp_mat4x2;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 4, 2, float, mediump > mediump_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 2, float, lowp > lowp_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 2, float, highp > highp_mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers using high precision arit...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00096.html b/external/glm-0.9.9.8/doc/api/a00096.html new file mode 100644 index 0000000..889b379 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00096.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float4x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float4x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef mat< 4, 3, float, defaultp > mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float4x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00096_source.html b/external/glm-0.9.9.8/doc/api/a00096_source.html new file mode 100644 index 0000000..a067d53 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00096_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: matrix_float4x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 3, float, defaultp> mat4x3;
    +
    16 
    +
    18 }//namespace glm
    +
    mat< 4, 3, float, defaultp > mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00097.html b/external/glm-0.9.9.8/doc/api/a00097.html new file mode 100644 index 0000000..3639ee9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00097.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_float4x3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float4x3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef mat< 4, 3, float, highp > highp_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, float, lowp > lowp_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, float, mediump > mediump_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00097_source.html b/external/glm-0.9.9.8/doc/api/a00097_source.html new file mode 100644 index 0000000..188cea6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00097_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: matrix_float4x3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 3, float, lowp> lowp_mat4x3;
    +
    17 
    +
    22  typedef mat<4, 3, float, mediump> mediump_mat4x3;
    +
    23 
    +
    28  typedef mat<4, 3, float, highp> highp_mat4x3;
    +
    29 
    +
    31 }//namespace glm
    +
    mat< 4, 3, float, highp > highp_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 3, float, lowp > lowp_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 3, float, mediump > mediump_mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00098.html b/external/glm-0.9.9.8/doc/api/a00098.html new file mode 100644 index 0000000..82c738b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00098.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: matrix_float4x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + +
    typedef mat< 4, 4, float, defaultp > mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 4, 4, float, defaultp > mat4
     4 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file matrix_float4x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00098_source.html b/external/glm-0.9.9.8/doc/api/a00098_source.html new file mode 100644 index 0000000..b972f6a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00098_source.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: matrix_float4x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef mat<4, 4, float, defaultp> mat4x4;
    +
    16 
    +
    20  typedef mat<4, 4, float, defaultp> mat4;
    +
    21 
    +
    23 }//namespace glm
    +
    mat< 4, 4, float, defaultp > mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    mat< 4, 4, float, defaultp > mat4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00099.html b/external/glm-0.9.9.8/doc/api/a00099.html new file mode 100644 index 0000000..91b553f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00099.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_float4x4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_float4x4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 4, 4, float, highp > highp_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, highp > highp_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, lowp > lowp_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, lowp > lowp_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, mediump > mediump_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, mediump > mediump_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00099_source.html b/external/glm-0.9.9.8/doc/api/a00099_source.html new file mode 100644 index 0000000..6ef18e5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00099_source.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: matrix_float4x4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_float4x4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_mat4x4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef mat<4, 4, float, lowp> lowp_mat4;
    +
    17 
    +
    22  typedef mat<4, 4, float, mediump> mediump_mat4;
    +
    23 
    +
    28  typedef mat<4, 4, float, highp> highp_mat4;
    +
    29 
    +
    34  typedef mat<4, 4, float, lowp> lowp_mat4x4;
    +
    35 
    +
    40  typedef mat<4, 4, float, mediump> mediump_mat4x4;
    +
    41 
    +
    46  typedef mat<4, 4, float, highp> highp_mat4x4;
    +
    47 
    +
    49 }//namespace glm
    +
    mat< 4, 4, float, mediump > mediump_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, float, lowp > lowp_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 4, float, mediump > mediump_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision ar...
    +
    mat< 4, 4, float, highp > highp_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    mat< 4, 4, float, lowp > lowp_mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arith...
    +
    mat< 4, 4, float, highp > highp_mat4
    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arit...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00100.html b/external/glm-0.9.9.8/doc/api/a00100.html new file mode 100644 index 0000000..24d1763 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00100.html @@ -0,0 +1,403 @@ + + + + + + +0.9.9 API documentation: matrix_integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_integer.hpp File Reference
    +
    +
    + +

    GLM_GTC_matrix_integer +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, int, highp > highp_imat2
     High-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, highp > highp_imat2x2
     High-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, highp > highp_imat2x3
     High-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, highp > highp_imat2x4
     High-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, highp > highp_imat3
     High-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, highp > highp_imat3x2
     High-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, highp > highp_imat3x3
     High-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, highp > highp_imat3x4
     High-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, highp > highp_imat4
     High-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, highp > highp_imat4x2
     High-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, highp > highp_imat4x3
     High-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, highp > highp_imat4x4
     High-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, highp > highp_umat2
     High-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, highp > highp_umat2x2
     High-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, highp > highp_umat2x3
     High-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, highp > highp_umat2x4
     High-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, highp > highp_umat3
     High-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, highp > highp_umat3x2
     High-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, highp > highp_umat3x3
     High-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, highp > highp_umat3x4
     High-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, highp > highp_umat4
     High-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, highp > highp_umat4x2
     High-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, highp > highp_umat4x3
     High-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, highp > highp_umat4x4
     High-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mediump_imat2 imat2
     Signed integer 2x2 matrix. More...
     
    typedef mediump_imat2x2 imat2x2
     Signed integer 2x2 matrix. More...
     
    typedef mediump_imat2x3 imat2x3
     Signed integer 2x3 matrix. More...
     
    typedef mediump_imat2x4 imat2x4
     Signed integer 2x4 matrix. More...
     
    typedef mediump_imat3 imat3
     Signed integer 3x3 matrix. More...
     
    typedef mediump_imat3x2 imat3x2
     Signed integer 3x2 matrix. More...
     
    typedef mediump_imat3x3 imat3x3
     Signed integer 3x3 matrix. More...
     
    typedef mediump_imat3x4 imat3x4
     Signed integer 3x4 matrix. More...
     
    typedef mediump_imat4 imat4
     Signed integer 4x4 matrix. More...
     
    typedef mediump_imat4x2 imat4x2
     Signed integer 4x2 matrix. More...
     
    typedef mediump_imat4x3 imat4x3
     Signed integer 4x3 matrix. More...
     
    typedef mediump_imat4x4 imat4x4
     Signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, int, lowp > lowp_imat2
     Low-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, lowp > lowp_imat2x2
     Low-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, lowp > lowp_imat2x3
     Low-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, lowp > lowp_imat2x4
     Low-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, lowp > lowp_imat3
     Low-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, lowp > lowp_imat3x2
     Low-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, lowp > lowp_imat3x3
     Low-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, lowp > lowp_imat3x4
     Low-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, lowp > lowp_imat4
     Low-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, lowp > lowp_imat4x2
     Low-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, lowp > lowp_imat4x3
     Low-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, lowp > lowp_imat4x4
     Low-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, lowp > lowp_umat2
     Low-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, lowp > lowp_umat2x2
     Low-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, lowp > lowp_umat2x3
     Low-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, lowp > lowp_umat2x4
     Low-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, lowp > lowp_umat3
     Low-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, lowp > lowp_umat3x2
     Low-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, lowp > lowp_umat3x3
     Low-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, lowp > lowp_umat3x4
     Low-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, lowp > lowp_umat4
     Low-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, lowp > lowp_umat4x2
     Low-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, lowp > lowp_umat4x3
     Low-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, lowp > lowp_umat4x4
     Low-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 2, 2, int, mediump > mediump_imat2
     Medium-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, mediump > mediump_imat2x2
     Medium-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, mediump > mediump_imat2x3
     Medium-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, mediump > mediump_imat2x4
     Medium-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, mediump > mediump_imat3
     Medium-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, mediump > mediump_imat3x2
     Medium-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, mediump > mediump_imat3x3
     Medium-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, mediump > mediump_imat3x4
     Medium-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, mediump > mediump_imat4
     Medium-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, mediump > mediump_imat4x2
     Medium-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, mediump > mediump_imat4x3
     Medium-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, mediump > mediump_imat4x4
     Medium-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, mediump > mediump_umat2
     Medium-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, mediump > mediump_umat2x2
     Medium-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, mediump > mediump_umat2x3
     Medium-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, mediump > mediump_umat2x4
     Medium-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, mediump > mediump_umat3
     Medium-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, mediump > mediump_umat3x2
     Medium-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, mediump > mediump_umat3x3
     Medium-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, mediump > mediump_umat3x4
     Medium-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, mediump > mediump_umat4
     Medium-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, mediump > mediump_umat4x2
     Medium-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, mediump > mediump_umat4x3
     Medium-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, mediump > mediump_umat4x4
     Medium-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mediump_umat2 umat2
     Unsigned integer 2x2 matrix. More...
     
    typedef mediump_umat2x2 umat2x2
     Unsigned integer 2x2 matrix. More...
     
    typedef mediump_umat2x3 umat2x3
     Unsigned integer 2x3 matrix. More...
     
    typedef mediump_umat2x4 umat2x4
     Unsigned integer 2x4 matrix. More...
     
    typedef mediump_umat3 umat3
     Unsigned integer 3x3 matrix. More...
     
    typedef mediump_umat3x2 umat3x2
     Unsigned integer 3x2 matrix. More...
     
    typedef mediump_umat3x3 umat3x3
     Unsigned integer 3x3 matrix. More...
     
    typedef mediump_umat3x4 umat3x4
     Unsigned integer 3x4 matrix. More...
     
    typedef mediump_umat4 umat4
     Unsigned integer 4x4 matrix. More...
     
    typedef mediump_umat4x2 umat4x2
     Unsigned integer 4x2 matrix. More...
     
    typedef mediump_umat4x3 umat4x3
     Unsigned integer 4x3 matrix. More...
     
    typedef mediump_umat4x4 umat4x4
     Unsigned integer 4x4 matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTC_matrix_integer

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_integer.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00100_source.html b/external/glm-0.9.9.8/doc/api/a00100_source.html new file mode 100644 index 0000000..443db31 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00100_source.html @@ -0,0 +1,477 @@ + + + + + + +0.9.9 API documentation: matrix_integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../mat2x2.hpp"
    +
    17 #include "../mat2x3.hpp"
    +
    18 #include "../mat2x4.hpp"
    +
    19 #include "../mat3x2.hpp"
    +
    20 #include "../mat3x3.hpp"
    +
    21 #include "../mat3x4.hpp"
    +
    22 #include "../mat4x2.hpp"
    +
    23 #include "../mat4x3.hpp"
    +
    24 #include "../mat4x4.hpp"
    +
    25 
    +
    26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    27 # pragma message("GLM: GLM_GTC_matrix_integer extension included")
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    37  typedef mat<2, 2, int, highp> highp_imat2;
    +
    38 
    +
    41  typedef mat<3, 3, int, highp> highp_imat3;
    +
    42 
    +
    45  typedef mat<4, 4, int, highp> highp_imat4;
    +
    46 
    +
    49  typedef mat<2, 2, int, highp> highp_imat2x2;
    +
    50 
    +
    53  typedef mat<2, 3, int, highp> highp_imat2x3;
    +
    54 
    +
    57  typedef mat<2, 4, int, highp> highp_imat2x4;
    +
    58 
    +
    61  typedef mat<3, 2, int, highp> highp_imat3x2;
    +
    62 
    +
    65  typedef mat<3, 3, int, highp> highp_imat3x3;
    +
    66 
    +
    69  typedef mat<3, 4, int, highp> highp_imat3x4;
    +
    70 
    +
    73  typedef mat<4, 2, int, highp> highp_imat4x2;
    +
    74 
    +
    77  typedef mat<4, 3, int, highp> highp_imat4x3;
    +
    78 
    +
    81  typedef mat<4, 4, int, highp> highp_imat4x4;
    +
    82 
    +
    83 
    +
    86  typedef mat<2, 2, int, mediump> mediump_imat2;
    +
    87 
    +
    90  typedef mat<3, 3, int, mediump> mediump_imat3;
    +
    91 
    +
    94  typedef mat<4, 4, int, mediump> mediump_imat4;
    +
    95 
    +
    96 
    +
    99  typedef mat<2, 2, int, mediump> mediump_imat2x2;
    +
    100 
    +
    103  typedef mat<2, 3, int, mediump> mediump_imat2x3;
    +
    104 
    +
    107  typedef mat<2, 4, int, mediump> mediump_imat2x4;
    +
    108 
    +
    111  typedef mat<3, 2, int, mediump> mediump_imat3x2;
    +
    112 
    +
    115  typedef mat<3, 3, int, mediump> mediump_imat3x3;
    +
    116 
    +
    119  typedef mat<3, 4, int, mediump> mediump_imat3x4;
    +
    120 
    +
    123  typedef mat<4, 2, int, mediump> mediump_imat4x2;
    +
    124 
    +
    127  typedef mat<4, 3, int, mediump> mediump_imat4x3;
    +
    128 
    +
    131  typedef mat<4, 4, int, mediump> mediump_imat4x4;
    +
    132 
    +
    133 
    +
    136  typedef mat<2, 2, int, lowp> lowp_imat2;
    +
    137 
    +
    140  typedef mat<3, 3, int, lowp> lowp_imat3;
    +
    141 
    +
    144  typedef mat<4, 4, int, lowp> lowp_imat4;
    +
    145 
    +
    146 
    +
    149  typedef mat<2, 2, int, lowp> lowp_imat2x2;
    +
    150 
    +
    153  typedef mat<2, 3, int, lowp> lowp_imat2x3;
    +
    154 
    +
    157  typedef mat<2, 4, int, lowp> lowp_imat2x4;
    +
    158 
    +
    161  typedef mat<3, 2, int, lowp> lowp_imat3x2;
    +
    162 
    +
    165  typedef mat<3, 3, int, lowp> lowp_imat3x3;
    +
    166 
    +
    169  typedef mat<3, 4, int, lowp> lowp_imat3x4;
    +
    170 
    +
    173  typedef mat<4, 2, int, lowp> lowp_imat4x2;
    +
    174 
    +
    177  typedef mat<4, 3, int, lowp> lowp_imat4x3;
    +
    178 
    +
    181  typedef mat<4, 4, int, lowp> lowp_imat4x4;
    +
    182 
    +
    183 
    +
    186  typedef mat<2, 2, uint, highp> highp_umat2;
    +
    187 
    +
    190  typedef mat<3, 3, uint, highp> highp_umat3;
    +
    191 
    +
    194  typedef mat<4, 4, uint, highp> highp_umat4;
    +
    195 
    +
    198  typedef mat<2, 2, uint, highp> highp_umat2x2;
    +
    199 
    +
    202  typedef mat<2, 3, uint, highp> highp_umat2x3;
    +
    203 
    +
    206  typedef mat<2, 4, uint, highp> highp_umat2x4;
    +
    207 
    +
    210  typedef mat<3, 2, uint, highp> highp_umat3x2;
    +
    211 
    +
    214  typedef mat<3, 3, uint, highp> highp_umat3x3;
    +
    215 
    +
    218  typedef mat<3, 4, uint, highp> highp_umat3x4;
    +
    219 
    +
    222  typedef mat<4, 2, uint, highp> highp_umat4x2;
    +
    223 
    +
    226  typedef mat<4, 3, uint, highp> highp_umat4x3;
    +
    227 
    +
    230  typedef mat<4, 4, uint, highp> highp_umat4x4;
    +
    231 
    +
    232 
    +
    235  typedef mat<2, 2, uint, mediump> mediump_umat2;
    +
    236 
    +
    239  typedef mat<3, 3, uint, mediump> mediump_umat3;
    +
    240 
    +
    243  typedef mat<4, 4, uint, mediump> mediump_umat4;
    +
    244 
    +
    245 
    +
    248  typedef mat<2, 2, uint, mediump> mediump_umat2x2;
    +
    249 
    +
    252  typedef mat<2, 3, uint, mediump> mediump_umat2x3;
    +
    253 
    +
    256  typedef mat<2, 4, uint, mediump> mediump_umat2x4;
    +
    257 
    +
    260  typedef mat<3, 2, uint, mediump> mediump_umat3x2;
    +
    261 
    +
    264  typedef mat<3, 3, uint, mediump> mediump_umat3x3;
    +
    265 
    +
    268  typedef mat<3, 4, uint, mediump> mediump_umat3x4;
    +
    269 
    +
    272  typedef mat<4, 2, uint, mediump> mediump_umat4x2;
    +
    273 
    +
    276  typedef mat<4, 3, uint, mediump> mediump_umat4x3;
    +
    277 
    +
    280  typedef mat<4, 4, uint, mediump> mediump_umat4x4;
    +
    281 
    +
    282 
    +
    285  typedef mat<2, 2, uint, lowp> lowp_umat2;
    +
    286 
    +
    289  typedef mat<3, 3, uint, lowp> lowp_umat3;
    +
    290 
    +
    293  typedef mat<4, 4, uint, lowp> lowp_umat4;
    +
    294 
    +
    295 
    +
    298  typedef mat<2, 2, uint, lowp> lowp_umat2x2;
    +
    299 
    +
    302  typedef mat<2, 3, uint, lowp> lowp_umat2x3;
    +
    303 
    +
    306  typedef mat<2, 4, uint, lowp> lowp_umat2x4;
    +
    307 
    +
    310  typedef mat<3, 2, uint, lowp> lowp_umat3x2;
    +
    311 
    +
    314  typedef mat<3, 3, uint, lowp> lowp_umat3x3;
    +
    315 
    +
    318  typedef mat<3, 4, uint, lowp> lowp_umat3x4;
    +
    319 
    +
    322  typedef mat<4, 2, uint, lowp> lowp_umat4x2;
    +
    323 
    +
    326  typedef mat<4, 3, uint, lowp> lowp_umat4x3;
    +
    327 
    +
    330  typedef mat<4, 4, uint, lowp> lowp_umat4x4;
    +
    331 
    +
    332 #if(defined(GLM_PRECISION_HIGHP_INT))
    +
    333  typedef highp_imat2 imat2;
    +
    334  typedef highp_imat3 imat3;
    +
    335  typedef highp_imat4 imat4;
    +
    336  typedef highp_imat2x2 imat2x2;
    +
    337  typedef highp_imat2x3 imat2x3;
    +
    338  typedef highp_imat2x4 imat2x4;
    +
    339  typedef highp_imat3x2 imat3x2;
    +
    340  typedef highp_imat3x3 imat3x3;
    +
    341  typedef highp_imat3x4 imat3x4;
    +
    342  typedef highp_imat4x2 imat4x2;
    +
    343  typedef highp_imat4x3 imat4x3;
    +
    344  typedef highp_imat4x4 imat4x4;
    +
    345 #elif(defined(GLM_PRECISION_LOWP_INT))
    +
    346  typedef lowp_imat2 imat2;
    +
    347  typedef lowp_imat3 imat3;
    +
    348  typedef lowp_imat4 imat4;
    +
    349  typedef lowp_imat2x2 imat2x2;
    +
    350  typedef lowp_imat2x3 imat2x3;
    +
    351  typedef lowp_imat2x4 imat2x4;
    +
    352  typedef lowp_imat3x2 imat3x2;
    +
    353  typedef lowp_imat3x3 imat3x3;
    +
    354  typedef lowp_imat3x4 imat3x4;
    +
    355  typedef lowp_imat4x2 imat4x2;
    +
    356  typedef lowp_imat4x3 imat4x3;
    +
    357  typedef lowp_imat4x4 imat4x4;
    +
    358 #else //if(defined(GLM_PRECISION_MEDIUMP_INT))
    +
    359 
    +
    362  typedef mediump_imat2 imat2;
    +
    363 
    +
    366  typedef mediump_imat3 imat3;
    +
    367 
    +
    370  typedef mediump_imat4 imat4;
    +
    371 
    +
    374  typedef mediump_imat2x2 imat2x2;
    +
    375 
    +
    378  typedef mediump_imat2x3 imat2x3;
    +
    379 
    +
    382  typedef mediump_imat2x4 imat2x4;
    +
    383 
    +
    386  typedef mediump_imat3x2 imat3x2;
    +
    387 
    +
    390  typedef mediump_imat3x3 imat3x3;
    +
    391 
    +
    394  typedef mediump_imat3x4 imat3x4;
    +
    395 
    +
    398  typedef mediump_imat4x2 imat4x2;
    +
    399 
    +
    402  typedef mediump_imat4x3 imat4x3;
    +
    403 
    +
    406  typedef mediump_imat4x4 imat4x4;
    +
    407 #endif//GLM_PRECISION
    +
    408 
    +
    409 #if(defined(GLM_PRECISION_HIGHP_UINT))
    +
    410  typedef highp_umat2 umat2;
    +
    411  typedef highp_umat3 umat3;
    +
    412  typedef highp_umat4 umat4;
    +
    413  typedef highp_umat2x2 umat2x2;
    +
    414  typedef highp_umat2x3 umat2x3;
    +
    415  typedef highp_umat2x4 umat2x4;
    +
    416  typedef highp_umat3x2 umat3x2;
    +
    417  typedef highp_umat3x3 umat3x3;
    +
    418  typedef highp_umat3x4 umat3x4;
    +
    419  typedef highp_umat4x2 umat4x2;
    +
    420  typedef highp_umat4x3 umat4x3;
    +
    421  typedef highp_umat4x4 umat4x4;
    +
    422 #elif(defined(GLM_PRECISION_LOWP_UINT))
    +
    423  typedef lowp_umat2 umat2;
    +
    424  typedef lowp_umat3 umat3;
    +
    425  typedef lowp_umat4 umat4;
    +
    426  typedef lowp_umat2x2 umat2x2;
    +
    427  typedef lowp_umat2x3 umat2x3;
    +
    428  typedef lowp_umat2x4 umat2x4;
    +
    429  typedef lowp_umat3x2 umat3x2;
    +
    430  typedef lowp_umat3x3 umat3x3;
    +
    431  typedef lowp_umat3x4 umat3x4;
    +
    432  typedef lowp_umat4x2 umat4x2;
    +
    433  typedef lowp_umat4x3 umat4x3;
    +
    434  typedef lowp_umat4x4 umat4x4;
    +
    435 #else //if(defined(GLM_PRECISION_MEDIUMP_UINT))
    +
    436 
    +
    439  typedef mediump_umat2 umat2;
    +
    440 
    +
    443  typedef mediump_umat3 umat3;
    +
    444 
    +
    447  typedef mediump_umat4 umat4;
    +
    448 
    +
    451  typedef mediump_umat2x2 umat2x2;
    +
    452 
    +
    455  typedef mediump_umat2x3 umat2x3;
    +
    456 
    +
    459  typedef mediump_umat2x4 umat2x4;
    +
    460 
    +
    463  typedef mediump_umat3x2 umat3x2;
    +
    464 
    +
    467  typedef mediump_umat3x3 umat3x3;
    +
    468 
    +
    471  typedef mediump_umat3x4 umat3x4;
    +
    472 
    +
    475  typedef mediump_umat4x2 umat4x2;
    +
    476 
    +
    479  typedef mediump_umat4x3 umat4x3;
    +
    480 
    +
    483  typedef mediump_umat4x4 umat4x4;
    +
    484 #endif//GLM_PRECISION
    +
    485 
    +
    487 }//namespace glm
    +
    mediump_imat4x4 imat4x4
    Signed integer 4x4 matrix.
    +
    mediump_imat2x2 imat2x2
    Signed integer 2x2 matrix.
    +
    mediump_umat4 umat4
    Unsigned integer 4x4 matrix.
    +
    mediump_umat4x2 umat4x2
    Unsigned integer 4x2 matrix.
    +
    mat< 4, 4, uint, lowp > lowp_umat4x4
    Low-qualifier unsigned integer 4x4 matrix.
    +
    mat< 4, 2, int, mediump > mediump_imat4x2
    Medium-qualifier signed integer 4x2 matrix.
    +
    mat< 4, 4, uint, lowp > lowp_umat4
    Low-qualifier unsigned integer 4x4 matrix.
    +
    mat< 3, 2, int, highp > highp_imat3x2
    High-qualifier signed integer 3x2 matrix.
    +
    mat< 3, 3, uint, highp > highp_umat3x3
    High-qualifier unsigned integer 3x3 matrix.
    +
    mat< 2, 2, uint, lowp > lowp_umat2x2
    Low-qualifier unsigned integer 2x2 matrix.
    +
    mediump_umat3x3 umat3x3
    Unsigned integer 3x3 matrix.
    +
    mat< 2, 4, uint, highp > highp_umat2x4
    High-qualifier unsigned integer 2x4 matrix.
    +
    mediump_umat3x2 umat3x2
    Unsigned integer 3x2 matrix.
    +
    mat< 3, 2, int, lowp > lowp_imat3x2
    Low-qualifier signed integer 3x2 matrix.
    +
    mat< 3, 3, uint, highp > highp_umat3
    High-qualifier unsigned integer 3x3 matrix.
    +
    mat< 4, 3, int, mediump > mediump_imat4x3
    Medium-qualifier signed integer 4x3 matrix.
    +
    mediump_imat3 imat3
    Signed integer 3x3 matrix.
    +
    mat< 2, 2, int, mediump > mediump_imat2
    Medium-qualifier signed integer 2x2 matrix.
    +
    mat< 3, 4, uint, mediump > mediump_umat3x4
    Medium-qualifier unsigned integer 3x4 matrix.
    +
    mat< 4, 4, int, lowp > lowp_imat4x4
    Low-qualifier signed integer 4x4 matrix.
    +
    mat< 2, 4, int, highp > highp_imat2x4
    High-qualifier signed integer 2x4 matrix.
    +
    mediump_umat2x3 umat2x3
    Unsigned integer 2x3 matrix.
    +
    mat< 4, 3, int, lowp > lowp_imat4x3
    Low-qualifier signed integer 4x3 matrix.
    +
    mat< 3, 3, uint, lowp > lowp_umat3
    Low-qualifier unsigned integer 3x3 matrix.
    +
    mat< 4, 4, uint, mediump > mediump_umat4x4
    Medium-qualifier unsigned integer 4x4 matrix.
    +
    mat< 3, 2, uint, mediump > mediump_umat3x2
    Medium-qualifier unsigned integer 3x2 matrix.
    +
    mat< 2, 4, uint, mediump > mediump_umat2x4
    Medium-qualifier unsigned integer 2x4 matrix.
    +
    mat< 4, 4, int, highp > highp_imat4x4
    High-qualifier signed integer 4x4 matrix.
    +
    mat< 2, 4, uint, lowp > lowp_umat2x4
    Low-qualifier unsigned integer 2x4 matrix.
    +
    mediump_imat4x3 imat4x3
    Signed integer 4x3 matrix.
    +
    mat< 3, 3, uint, mediump > mediump_umat3x3
    Medium-qualifier unsigned integer 3x3 matrix.
    +
    mat< 2, 2, int, highp > highp_imat2
    High-qualifier signed integer 2x2 matrix.
    +
    mediump_umat2 umat2
    Unsigned integer 2x2 matrix.
    +
    mat< 3, 4, uint, lowp > lowp_umat3x4
    Low-qualifier unsigned integer 3x4 matrix.
    +
    mat< 4, 2, uint, mediump > mediump_umat4x2
    Medium-qualifier unsigned integer 4x2 matrix.
    +
    mediump_imat4x2 imat4x2
    Signed integer 4x2 matrix.
    +
    mat< 2, 3, int, mediump > mediump_imat2x3
    Medium-qualifier signed integer 2x3 matrix.
    +
    mat< 2, 2, uint, mediump > mediump_umat2
    Medium-qualifier unsigned integer 2x2 matrix.
    +
    mediump_imat2 imat2
    Signed integer 2x2 matrix.
    +
    mat< 4, 3, uint, mediump > mediump_umat4x3
    Medium-qualifier unsigned integer 4x3 matrix.
    +
    mat< 3, 3, int, mediump > mediump_imat3
    Medium-qualifier signed integer 3x3 matrix.
    +
    mat< 2, 2, uint, highp > highp_umat2
    High-qualifier unsigned integer 2x2 matrix.
    +
    mediump_imat3x4 imat3x4
    Signed integer 3x4 matrix.
    +
    mat< 3, 2, uint, highp > highp_umat3x2
    High-qualifier unsigned integer 3x2 matrix.
    +
    mat< 2, 2, int, highp > highp_imat2x2
    High-qualifier signed integer 2x2 matrix.
    +
    mat< 3, 4, uint, highp > highp_umat3x4
    High-qualifier unsigned integer 3x4 matrix.
    +
    mat< 3, 3, int, mediump > mediump_imat3x3
    Medium-qualifier signed integer 3x3 matrix.
    +
    mat< 4, 4, uint, highp > highp_umat4x4
    High-qualifier unsigned integer 4x4 matrix.
    +
    mediump_imat2x4 imat2x4
    Signed integer 2x4 matrix.
    +
    mediump_umat2x4 umat2x4
    Unsigned integer 2x4 matrix.
    +
    mat< 2, 4, int, mediump > mediump_imat2x4
    Medium-qualifier signed integer 2x4 matrix.
    +
    mat< 2, 2, int, lowp > lowp_imat2
    Low-qualifier signed integer 2x2 matrix.
    +
    mat< 4, 2, int, lowp > lowp_imat4x2
    Low-qualifier signed integer 4x2 matrix.
    +
    mat< 4, 3, uint, lowp > lowp_umat4x3
    Low-qualifier unsigned integer 4x3 matrix.
    +
    mediump_imat4 imat4
    Signed integer 4x4 matrix.
    +
    mediump_imat3x2 imat3x2
    Signed integer 3x2 matrix.
    +
    mat< 2, 3, uint, lowp > lowp_umat2x3
    Low-qualifier unsigned integer 2x3 matrix.
    +
    mat< 3, 2, int, mediump > mediump_imat3x2
    Medium-qualifier signed integer 3x2 matrix.
    +
    mediump_umat4x4 umat4x4
    Unsigned integer 4x4 matrix.
    +
    mat< 4, 3, int, highp > highp_imat4x3
    High-qualifier signed integer 4x3 matrix.
    +
    mediump_umat4x3 umat4x3
    Unsigned integer 4x3 matrix.
    +
    mat< 4, 2, uint, lowp > lowp_umat4x2
    Low-qualifier unsigned integer 4x2 matrix.
    +
    mat< 3, 2, uint, lowp > lowp_umat3x2
    Low-qualifier unsigned integer 3x2 matrix.
    +
    mat< 2, 2, uint, highp > highp_umat2x2
    High-qualifier unsigned integer 2x2 matrix.
    +
    mat< 3, 3, int, lowp > lowp_imat3x3
    Low-qualifier signed integer 3x3 matrix.
    +
    mat< 3, 3, int, highp > highp_imat3x3
    High-qualifier signed integer 3x3 matrix.
    +
    mat< 2, 3, uint, mediump > mediump_umat2x3
    Medium-qualifier unsigned integer 2x3 matrix.
    +
    mat< 4, 2, uint, highp > highp_umat4x2
    High-qualifier unsigned integer 4x2 matrix.
    +
    mat< 3, 3, uint, lowp > lowp_umat3x3
    Low-qualifier unsigned integer 3x3 matrix.
    +
    mediump_imat2x3 imat2x3
    Signed integer 2x3 matrix.
    +
    mat< 2, 3, int, lowp > lowp_imat2x3
    Low-qualifier signed integer 2x3 matrix.
    +
    mat< 4, 4, uint, highp > highp_umat4
    High-qualifier unsigned integer 4x4 matrix.
    +
    mat< 3, 3, int, highp > highp_imat3
    High-qualifier signed integer 3x3 matrix.
    +
    mat< 3, 3, uint, mediump > mediump_umat3
    Medium-qualifier unsigned integer 3x3 matrix.
    +
    mat< 2, 2, int, mediump > mediump_imat2x2
    Medium-qualifier signed integer 2x2 matrix.
    +
    mat< 2, 3, int, highp > highp_imat2x3
    High-qualifier signed integer 2x3 matrix.
    +
    mat< 4, 2, int, highp > highp_imat4x2
    High-qualifier signed integer 4x2 matrix.
    +
    mat< 3, 4, int, lowp > lowp_imat3x4
    Low-qualifier signed integer 3x4 matrix.
    +
    mediump_umat3 umat3
    Unsigned integer 3x3 matrix.
    +
    mat< 2, 2, int, lowp > lowp_imat2x2
    Low-qualifier signed integer 2x2 matrix.
    +
    mat< 2, 3, uint, highp > highp_umat2x3
    High-qualifier unsigned integer 2x3 matrix.
    +
    mat< 4, 4, int, highp > highp_imat4
    High-qualifier signed integer 4x4 matrix.
    +
    mat< 2, 4, int, lowp > lowp_imat2x4
    Low-qualifier signed integer 2x4 matrix.
    +
    mat< 3, 4, int, mediump > mediump_imat3x4
    Medium-qualifier signed integer 3x4 matrix.
    +
    mat< 4, 4, int, mediump > mediump_imat4x4
    Medium-qualifier signed integer 4x4 matrix.
    +
    mat< 4, 4, int, mediump > mediump_imat4
    Medium-qualifier signed integer 4x4 matrix.
    +
    mediump_imat3x3 imat3x3
    Signed integer 3x3 matrix.
    +
    mat< 3, 3, int, lowp > lowp_imat3
    Low-qualifier signed integer 3x3 matrix.
    +
    mat< 2, 2, uint, lowp > lowp_umat2
    Low-qualifier unsigned integer 2x2 matrix.
    +
    mat< 4, 3, uint, highp > highp_umat4x3
    High-qualifier unsigned integer 4x3 matrix.
    +
    mediump_umat2x2 umat2x2
    Unsigned integer 2x2 matrix.
    +
    mat< 4, 4, uint, mediump > mediump_umat4
    Medium-qualifier unsigned integer 4x4 matrix.
    +
    mat< 4, 4, int, lowp > lowp_imat4
    Low-qualifier signed integer 4x4 matrix.
    +
    mediump_umat3x4 umat3x4
    Unsigned integer 3x4 matrix.
    +
    mat< 3, 4, int, highp > highp_imat3x4
    High-qualifier signed integer 3x4 matrix.
    +
    mat< 2, 2, uint, mediump > mediump_umat2x2
    Medium-qualifier unsigned integer 2x2 matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00101.html b/external/glm-0.9.9.8/doc/api/a00101.html new file mode 100644 index 0000000..59352ab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00101.html @@ -0,0 +1,132 @@ + + + + + + +0.9.9 API documentation: matrix_interpolation.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_interpolation.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_interpolation +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL void axisAngle (mat< 4, 4, T, Q > const &Mat, vec< 3, T, Q > &Axis, T &Angle)
     Get the axis and angle of the rotation from a matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > axisAngleMatrix (vec< 3, T, Q > const &Axis, T const Angle)
     Build a matrix from axis and angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > extractMatrixRotation (mat< 4, 4, T, Q > const &Mat)
     Extracts the rotation part of a matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > interpolate (mat< 4, 4, T, Q > const &m1, mat< 4, 4, T, Q > const &m2, T const Delta)
     Build a interpolation of 4 * 4 matrixes. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00101_source.html b/external/glm-0.9.9.8/doc/api/a00101_source.html new file mode 100644 index 0000000..cb79859 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00101_source.html @@ -0,0 +1,140 @@ + + + + + + +0.9.9 API documentation: matrix_interpolation.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_interpolation.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_matrix_interpolation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_matrix_interpolation extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename T, qualifier Q>
    +
    35  GLM_FUNC_DECL void axisAngle(
    +
    36  mat<4, 4, T, Q> const& Mat, vec<3, T, Q> & Axis, T & Angle);
    +
    37 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL mat<4, 4, T, Q> axisAngleMatrix(
    +
    42  vec<3, T, Q> const& Axis, T const Angle);
    +
    43 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL mat<4, 4, T, Q> extractMatrixRotation(
    +
    48  mat<4, 4, T, Q> const& Mat);
    +
    49 
    +
    53  template<typename T, qualifier Q>
    +
    54  GLM_FUNC_DECL mat<4, 4, T, Q> interpolate(
    +
    55  mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2, T const Delta);
    +
    56 
    +
    58 }//namespace glm
    +
    59 
    +
    60 #include "matrix_interpolation.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > extractMatrixRotation(mat< 4, 4, T, Q > const &Mat)
    Extracts the rotation part of a matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > interpolate(mat< 4, 4, T, Q > const &m1, mat< 4, 4, T, Q > const &m2, T const Delta)
    Build a interpolation of 4 * 4 matrixes.
    +
    GLM_FUNC_DECL void axisAngle(mat< 4, 4, T, Q > const &Mat, vec< 3, T, Q > &Axis, T &Angle)
    Get the axis and angle of the rotation from a matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > axisAngleMatrix(vec< 3, T, Q > const &Axis, T const Angle)
    Build a matrix from axis and angle.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00102.html b/external/glm-0.9.9.8/doc/api/a00102.html new file mode 100644 index 0000000..ddd4ae0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00102.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: matrix_inverse.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_inverse.hpp File Reference
    +
    +
    + +

    GLM_GTC_matrix_inverse +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType affineInverse (genType const &m)
     Fast matrix inverse for affine matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType inverseTranspose (genType const &m)
     Compute the inverse transpose of a matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTC_matrix_inverse

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_inverse.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00102_source.html b/external/glm-0.9.9.8/doc/api/a00102_source.html new file mode 100644 index 0000000..dca059e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00102_source.html @@ -0,0 +1,128 @@ + + + + + + +0.9.9 API documentation: matrix_inverse.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_inverse.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../detail/setup.hpp"
    +
    17 #include "../matrix.hpp"
    +
    18 #include "../mat2x2.hpp"
    +
    19 #include "../mat3x3.hpp"
    +
    20 #include "../mat4x4.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_GTC_matrix_inverse extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    36  template<typename genType>
    +
    37  GLM_FUNC_DECL genType affineInverse(genType const& m);
    +
    38 
    +
    44  template<typename genType>
    +
    45  GLM_FUNC_DECL genType inverseTranspose(genType const& m);
    +
    46 
    +
    48 }//namespace glm
    +
    49 
    +
    50 #include "matrix_inverse.inl"
    +
    GLM_FUNC_DECL genType inverseTranspose(genType const &m)
    Compute the inverse transpose of a matrix.
    +
    GLM_FUNC_DECL genType affineInverse(genType const &m)
    Fast matrix inverse for affine matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00103.html b/external/glm-0.9.9.8/doc/api/a00103.html new file mode 100644 index 0000000..df4e8a2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00103.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: matrix_major_storage.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_major_storage.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_major_storage +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > colMajor2 (vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > colMajor2 (mat< 2, 2, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > colMajor3 (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > colMajor3 (mat< 3, 3, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > colMajor4 (vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > colMajor4 (mat< 4, 4, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > rowMajor2 (vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > rowMajor2 (mat< 2, 2, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > rowMajor3 (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > rowMajor3 (mat< 3, 3, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rowMajor4 (vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rowMajor4 (mat< 4, 4, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_major_storage

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file matrix_major_storage.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00103_source.html b/external/glm-0.9.9.8/doc/api/a00103_source.html new file mode 100644 index 0000000..df95a07 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00103_source.html @@ -0,0 +1,186 @@ + + + + + + +0.9.9 API documentation: matrix_major_storage.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_major_storage.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_matrix_major_storage is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_matrix_major_storage extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename T, qualifier Q>
    +
    35  GLM_FUNC_DECL mat<2, 2, T, Q> rowMajor2(
    +
    36  vec<2, T, Q> const& v1,
    +
    37  vec<2, T, Q> const& v2);
    +
    38 
    +
    41  template<typename T, qualifier Q>
    +
    42  GLM_FUNC_DECL mat<2, 2, T, Q> rowMajor2(
    +
    43  mat<2, 2, T, Q> const& m);
    +
    44 
    +
    47  template<typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL mat<3, 3, T, Q> rowMajor3(
    +
    49  vec<3, T, Q> const& v1,
    +
    50  vec<3, T, Q> const& v2,
    +
    51  vec<3, T, Q> const& v3);
    +
    52 
    +
    55  template<typename T, qualifier Q>
    +
    56  GLM_FUNC_DECL mat<3, 3, T, Q> rowMajor3(
    +
    57  mat<3, 3, T, Q> const& m);
    +
    58 
    +
    61  template<typename T, qualifier Q>
    +
    62  GLM_FUNC_DECL mat<4, 4, T, Q> rowMajor4(
    +
    63  vec<4, T, Q> const& v1,
    +
    64  vec<4, T, Q> const& v2,
    +
    65  vec<4, T, Q> const& v3,
    +
    66  vec<4, T, Q> const& v4);
    +
    67 
    +
    70  template<typename T, qualifier Q>
    +
    71  GLM_FUNC_DECL mat<4, 4, T, Q> rowMajor4(
    +
    72  mat<4, 4, T, Q> const& m);
    +
    73 
    +
    76  template<typename T, qualifier Q>
    +
    77  GLM_FUNC_DECL mat<2, 2, T, Q> colMajor2(
    +
    78  vec<2, T, Q> const& v1,
    +
    79  vec<2, T, Q> const& v2);
    +
    80 
    +
    83  template<typename T, qualifier Q>
    +
    84  GLM_FUNC_DECL mat<2, 2, T, Q> colMajor2(
    +
    85  mat<2, 2, T, Q> const& m);
    +
    86 
    +
    89  template<typename T, qualifier Q>
    +
    90  GLM_FUNC_DECL mat<3, 3, T, Q> colMajor3(
    +
    91  vec<3, T, Q> const& v1,
    +
    92  vec<3, T, Q> const& v2,
    +
    93  vec<3, T, Q> const& v3);
    +
    94 
    +
    97  template<typename T, qualifier Q>
    +
    98  GLM_FUNC_DECL mat<3, 3, T, Q> colMajor3(
    +
    99  mat<3, 3, T, Q> const& m);
    +
    100 
    +
    103  template<typename T, qualifier Q>
    +
    104  GLM_FUNC_DECL mat<4, 4, T, Q> colMajor4(
    +
    105  vec<4, T, Q> const& v1,
    +
    106  vec<4, T, Q> const& v2,
    +
    107  vec<4, T, Q> const& v3,
    +
    108  vec<4, T, Q> const& v4);
    +
    109 
    +
    112  template<typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL mat<4, 4, T, Q> colMajor4(
    +
    114  mat<4, 4, T, Q> const& m);
    +
    115 
    +
    117 }//namespace glm
    +
    118 
    +
    119 #include "matrix_major_storage.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > rowMajor4(mat< 4, 4, T, Q > const &m)
    Build a row major matrix from other matrix.
    +
    GLM_FUNC_DECL mat< 2, 2, T, Q > rowMajor2(mat< 2, 2, T, Q > const &m)
    Build a row major matrix from other matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > colMajor4(mat< 4, 4, T, Q > const &m)
    Build a column major matrix from other matrix.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > colMajor3(mat< 3, 3, T, Q > const &m)
    Build a column major matrix from other matrix.
    +
    GLM_FUNC_DECL mat< 2, 2, T, Q > colMajor2(mat< 2, 2, T, Q > const &m)
    Build a column major matrix from other matrix.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > rowMajor3(mat< 3, 3, T, Q > const &m)
    Build a row major matrix from other matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00104.html b/external/glm-0.9.9.8/doc/api/a00104.html new file mode 100644 index 0000000..4dca33c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00104.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: matrix_operation.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_operation.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_operation +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > adjugate (mat< 2, 2, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > adjugate (mat< 3, 3, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > adjugate (mat< 4, 4, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > diagonal2x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 3, T, Q > diagonal2x3 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 4, T, Q > diagonal2x4 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 2, T, Q > diagonal3x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > diagonal3x3 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 4, T, Q > diagonal3x4 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 2, T, Q > diagonal4x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 3, T, Q > diagonal4x3 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > diagonal4x4 (vec< 4, T, Q > const &v)
     Build a diagonal matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_operation

    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_operation.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00104_source.html b/external/glm-0.9.9.8/doc/api/a00104_source.html new file mode 100644 index 0000000..1b67a0a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00104_source.html @@ -0,0 +1,175 @@ + + + + + + +0.9.9 API documentation: matrix_operation.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_operation.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_matrix_operation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_matrix_operation extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    33  template<typename T, qualifier Q>
    +
    34  GLM_FUNC_DECL mat<2, 2, T, Q> diagonal2x2(
    +
    35  vec<2, T, Q> const& v);
    +
    36 
    +
    39  template<typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL mat<2, 3, T, Q> diagonal2x3(
    +
    41  vec<2, T, Q> const& v);
    +
    42 
    +
    45  template<typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL mat<2, 4, T, Q> diagonal2x4(
    +
    47  vec<2, T, Q> const& v);
    +
    48 
    +
    51  template<typename T, qualifier Q>
    +
    52  GLM_FUNC_DECL mat<3, 2, T, Q> diagonal3x2(
    +
    53  vec<2, T, Q> const& v);
    +
    54 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL mat<3, 3, T, Q> diagonal3x3(
    +
    59  vec<3, T, Q> const& v);
    +
    60 
    +
    63  template<typename T, qualifier Q>
    +
    64  GLM_FUNC_DECL mat<3, 4, T, Q> diagonal3x4(
    +
    65  vec<3, T, Q> const& v);
    +
    66 
    +
    69  template<typename T, qualifier Q>
    +
    70  GLM_FUNC_DECL mat<4, 2, T, Q> diagonal4x2(
    +
    71  vec<2, T, Q> const& v);
    +
    72 
    +
    75  template<typename T, qualifier Q>
    +
    76  GLM_FUNC_DECL mat<4, 3, T, Q> diagonal4x3(
    +
    77  vec<3, T, Q> const& v);
    +
    78 
    +
    81  template<typename T, qualifier Q>
    +
    82  GLM_FUNC_DECL mat<4, 4, T, Q> diagonal4x4(
    +
    83  vec<4, T, Q> const& v);
    +
    84 
    +
    87  template<typename T, qualifier Q>
    +
    88  GLM_FUNC_DECL mat<2, 2, T, Q> adjugate(mat<2, 2, T, Q> const& m);
    +
    89 
    +
    92  template<typename T, qualifier Q>
    +
    93  GLM_FUNC_DECL mat<3, 3, T, Q> adjugate(mat<3, 3, T, Q> const& m);
    +
    94 
    +
    97  template<typename T, qualifier Q>
    +
    98  GLM_FUNC_DECL mat<4, 4, T, Q> adjugate(mat<4, 4, T, Q> const& m);
    +
    99 
    +
    101 }//namespace glm
    +
    102 
    +
    103 #include "matrix_operation.inl"
    +
    GLM_FUNC_DECL mat< 4, 3, T, Q > diagonal4x3(vec< 3, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 2, 2, T, Q > diagonal2x2(vec< 2, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 3, 4, T, Q > diagonal3x4(vec< 3, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 3, 2, T, Q > diagonal3x2(vec< 2, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 2, 3, T, Q > diagonal2x3(vec< 2, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > diagonal3x3(vec< 3, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > adjugate(mat< 4, 4, T, Q > const &m)
    Build an adjugate matrix.
    +
    GLM_FUNC_DECL mat< 2, 4, T, Q > diagonal2x4(vec< 2, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 4, 2, T, Q > diagonal4x2(vec< 2, T, Q > const &v)
    Build a diagonal matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > diagonal4x4(vec< 4, T, Q > const &v)
    Build a diagonal matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00105.html b/external/glm-0.9.9.8/doc/api/a00105.html new file mode 100644 index 0000000..66c6e59 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00105.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: matrix_projection.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_projection.hpp File Reference
    +
    +
    + +

    GLM_EXT_matrix_projection +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q, typename U >
    GLM_FUNC_DECL mat< 4, 4, T, Q > pickMatrix (vec< 2, T, Q > const &center, vec< 2, T, Q > const &delta, vec< 4, U, Q > const &viewport)
     Define a picking region. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > project (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates using default near and far clip planes definition. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > projectNO (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > projectZO (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProject (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using default near and far clip planes definition. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProjectNO (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProjectZO (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00105_source.html b/external/glm-0.9.9.8/doc/api/a00105_source.html new file mode 100644 index 0000000..7c59725 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00105_source.html @@ -0,0 +1,155 @@ + + + + + + +0.9.9 API documentation: matrix_projection.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_projection.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependencies
    +
    23 #include "../gtc/constants.hpp"
    +
    24 #include "../geometric.hpp"
    +
    25 #include "../trigonometric.hpp"
    +
    26 #include "../matrix.hpp"
    +
    27 
    +
    28 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    29 # pragma message("GLM: GLM_EXT_matrix_projection extension included")
    +
    30 #endif
    +
    31 
    +
    32 namespace glm
    +
    33 {
    +
    36 
    +
    49  template<typename T, typename U, qualifier Q>
    +
    50  GLM_FUNC_DECL vec<3, T, Q> projectZO(
    +
    51  vec<3, T, Q> const& obj, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    52 
    +
    65  template<typename T, typename U, qualifier Q>
    +
    66  GLM_FUNC_DECL vec<3, T, Q> projectNO(
    +
    67  vec<3, T, Q> const& obj, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    68 
    +
    81  template<typename T, typename U, qualifier Q>
    +
    82  GLM_FUNC_DECL vec<3, T, Q> project(
    +
    83  vec<3, T, Q> const& obj, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    84 
    +
    97  template<typename T, typename U, qualifier Q>
    +
    98  GLM_FUNC_DECL vec<3, T, Q> unProjectZO(
    +
    99  vec<3, T, Q> const& win, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    100 
    +
    113  template<typename T, typename U, qualifier Q>
    +
    114  GLM_FUNC_DECL vec<3, T, Q> unProjectNO(
    +
    115  vec<3, T, Q> const& win, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    116 
    +
    129  template<typename T, typename U, qualifier Q>
    +
    130  GLM_FUNC_DECL vec<3, T, Q> unProject(
    +
    131  vec<3, T, Q> const& win, mat<4, 4, T, Q> const& model, mat<4, 4, T, Q> const& proj, vec<4, U, Q> const& viewport);
    +
    132 
    +
    142  template<typename T, qualifier Q, typename U>
    +
    143  GLM_FUNC_DECL mat<4, 4, T, Q> pickMatrix(
    +
    144  vec<2, T, Q> const& center, vec<2, T, Q> const& delta, vec<4, U, Q> const& viewport);
    +
    145 
    +
    147 }//namespace glm
    +
    148 
    +
    149 #include "matrix_projection.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > unProjectZO(vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.
    +
    GLM_FUNC_DECL genType proj(genType const &x, genType const &Normal)
    Projects x on Normal.
    +
    GLM_FUNC_DECL vec< 3, T, Q > projectZO(vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.
    +
    GLM_FUNC_DECL vec< 3, T, Q > projectNO(vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.
    +
    GLM_FUNC_DECL vec< 3, T, Q > project(vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates using default near...
    +
    GLM_FUNC_DECL vec< 3, T, Q > unProjectNO(vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.
    +
    GLM_FUNC_DECL vec< 3, T, Q > unProject(vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using default near...
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > pickMatrix(vec< 2, T, Q > const &center, vec< 2, T, Q > const &delta, vec< 4, U, Q > const &viewport)
    Define a picking region.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00106.html b/external/glm-0.9.9.8/doc/api/a00106.html new file mode 100644 index 0000000..ffc5c9b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00106.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: matrix_query.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_query.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_query +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q, template< length_t, length_t, typename, qualifier > class matType>
    GLM_FUNC_DECL bool isIdentity (matType< C, R, T, Q > const &m, T const &epsilon)
     Return whether a matrix is an identity matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 2, 2, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 3, 3, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 4, 4, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 2, 2, T, Q > const &m, T const &epsilon)
     Return whether a matrix a null matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 3, 3, T, Q > const &m, T const &epsilon)
     Return whether a matrix a null matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 4, 4, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a null matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q, template< length_t, length_t, typename, qualifier > class matType>
    GLM_FUNC_DECL bool isOrthogonal (matType< C, R, T, Q > const &m, T const &epsilon)
     Return whether a matrix is an orthonormalized matrix. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_query

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_vector_query (dependence)
    + +

    Definition in file matrix_query.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00106_source.html b/external/glm-0.9.9.8/doc/api/a00106_source.html new file mode 100644 index 0000000..25778d9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00106_source.html @@ -0,0 +1,151 @@ + + + + + + +0.9.9 API documentation: matrix_query.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_query.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include "../gtx/vector_query.hpp"
    +
    19 #include <limits>
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_matrix_query is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_matrix_query extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    36  template<typename T, qualifier Q>
    +
    37  GLM_FUNC_DECL bool isNull(mat<2, 2, T, Q> const& m, T const& epsilon);
    +
    38 
    +
    41  template<typename T, qualifier Q>
    +
    42  GLM_FUNC_DECL bool isNull(mat<3, 3, T, Q> const& m, T const& epsilon);
    +
    43 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL bool isNull(mat<4, 4, T, Q> const& m, T const& epsilon);
    +
    48 
    +
    51  template<length_t C, length_t R, typename T, qualifier Q, template<length_t, length_t, typename, qualifier> class matType>
    +
    52  GLM_FUNC_DECL bool isIdentity(matType<C, R, T, Q> const& m, T const& epsilon);
    +
    53 
    +
    56  template<typename T, qualifier Q>
    +
    57  GLM_FUNC_DECL bool isNormalized(mat<2, 2, T, Q> const& m, T const& epsilon);
    +
    58 
    +
    61  template<typename T, qualifier Q>
    +
    62  GLM_FUNC_DECL bool isNormalized(mat<3, 3, T, Q> const& m, T const& epsilon);
    +
    63 
    +
    66  template<typename T, qualifier Q>
    +
    67  GLM_FUNC_DECL bool isNormalized(mat<4, 4, T, Q> const& m, T const& epsilon);
    +
    68 
    +
    71  template<length_t C, length_t R, typename T, qualifier Q, template<length_t, length_t, typename, qualifier> class matType>
    +
    72  GLM_FUNC_DECL bool isOrthogonal(matType<C, R, T, Q> const& m, T const& epsilon);
    +
    73 
    +
    75 }//namespace glm
    +
    76 
    +
    77 #include "matrix_query.inl"
    +
    GLM_FUNC_DECL bool isNormalized(mat< 4, 4, T, Q > const &m, T const &epsilon)
    Return whether a matrix is a normalized matrix.
    +
    GLM_FUNC_DECL bool isIdentity(matType< C, R, T, Q > const &m, T const &epsilon)
    Return whether a matrix is an identity matrix.
    +
    GLM_FUNC_DECL bool isNull(mat< 4, 4, T, Q > const &m, T const &epsilon)
    Return whether a matrix is a null matrix.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    GLM_FUNC_DECL bool isOrthogonal(matType< C, R, T, Q > const &m, T const &epsilon)
    Return whether a matrix is an orthonormalized matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00107.html b/external/glm-0.9.9.8/doc/api/a00107.html new file mode 100644 index 0000000..2f011f9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00107.html @@ -0,0 +1,154 @@ + + + + + + +0.9.9 API documentation: matrix_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_relational.hpp File Reference
    +
    +
    + +

    GLM_EXT_matrix_relational +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Perform a component-wise equal-to comparison of two matrices. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Perform a component-wise not-equal-to comparison of two matrices. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00107_source.html b/external/glm-0.9.9.8/doc/api/a00107_source.html new file mode 100644 index 0000000..884b22d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00107_source.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: matrix_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependencies
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # pragma message("GLM: GLM_EXT_matrix_relational extension included")
    +
    22 #endif
    +
    23 
    +
    24 namespace glm
    +
    25 {
    +
    28 
    +
    36  template<length_t C, length_t R, typename T, qualifier Q>
    +
    37  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> equal(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y);
    +
    38 
    +
    46  template<length_t C, length_t R, typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> notEqual(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y);
    +
    48 
    +
    56  template<length_t C, length_t R, typename T, qualifier Q>
    +
    57  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> equal(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, T epsilon);
    +
    58 
    +
    66  template<length_t C, length_t R, typename T, qualifier Q>
    +
    67  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> equal(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, vec<C, T, Q> const& epsilon);
    +
    68 
    +
    76  template<length_t C, length_t R, typename T, qualifier Q>
    +
    77  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> notEqual(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, T epsilon);
    +
    78 
    +
    86  template<length_t C, length_t R, typename T, qualifier Q>
    +
    87  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> notEqual(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, vec<C, T, Q> const& epsilon);
    +
    88 
    +
    96  template<length_t C, length_t R, typename T, qualifier Q>
    +
    97  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> equal(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, int ULPs);
    +
    98 
    +
    106  template<length_t C, length_t R, typename T, qualifier Q>
    +
    107  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> equal(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, vec<C, int, Q> const& ULPs);
    +
    108 
    +
    116  template<length_t C, length_t R, typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> notEqual(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, int ULPs);
    +
    118 
    +
    126  template<length_t C, length_t R, typename T, qualifier Q>
    +
    127  GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> notEqual(mat<C, R, T, Q> const& x, mat<C, R, T, Q> const& y, vec<C, int, Q> const& ULPs);
    +
    128 
    +
    130 }//namespace glm
    +
    131 
    +
    132 #include "matrix_relational.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
    Returns the component-wise comparison between two vectors in term of ULPs.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
    Returns the component-wise comparison between two vectors in term of ULPs.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00108.html b/external/glm-0.9.9.8/doc/api/a00108.html new file mode 100644 index 0000000..b91ec52 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00108.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: matrix_transform.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    ext/matrix_transform.hpp File Reference
    +
    +
    + +

    GLM_EXT_matrix_transform +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType identity ()
     Builds an identity matrix.
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAt (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a look at view matrix based on the default handedness. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtLH (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a left handed look at view matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtRH (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a right handed look at view matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate (mat< 4, 4, T, Q > const &m, T angle, vec< 3, T, Q > const &axis)
     Builds a rotation 4 * 4 matrix created from an axis vector and an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
     Builds a scale 4 * 4 matrix created from 3 scalars. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
     Builds a translation 4 * 4 matrix created from a vector of 3 components. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00108_source.html b/external/glm-0.9.9.8/doc/api/a00108_source.html new file mode 100644 index 0000000..9381d5f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00108_source.html @@ -0,0 +1,155 @@ + + + + + + +0.9.9 API documentation: matrix_transform.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext/matrix_transform.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependencies
    +
    23 #include "../gtc/constants.hpp"
    +
    24 #include "../geometric.hpp"
    +
    25 #include "../trigonometric.hpp"
    +
    26 #include "../matrix.hpp"
    +
    27 
    +
    28 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    29 # pragma message("GLM: GLM_EXT_matrix_transform extension included")
    +
    30 #endif
    +
    31 
    +
    32 namespace glm
    +
    33 {
    +
    36 
    +
    38  template<typename genType>
    +
    39  GLM_FUNC_DECL GLM_CONSTEXPR genType identity();
    +
    40 
    +
    63  template<typename T, qualifier Q>
    +
    64  GLM_FUNC_DECL mat<4, 4, T, Q> translate(
    +
    65  mat<4, 4, T, Q> const& m, vec<3, T, Q> const& v);
    +
    66 
    +
    79  template<typename T, qualifier Q>
    +
    80  GLM_FUNC_DECL mat<4, 4, T, Q> rotate(
    +
    81  mat<4, 4, T, Q> const& m, T angle, vec<3, T, Q> const& axis);
    +
    82 
    +
    94  template<typename T, qualifier Q>
    +
    95  GLM_FUNC_DECL mat<4, 4, T, Q> scale(
    +
    96  mat<4, 4, T, Q> const& m, vec<3, T, Q> const& v);
    +
    97 
    +
    108  template<typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL mat<4, 4, T, Q> lookAtRH(
    +
    110  vec<3, T, Q> const& eye, vec<3, T, Q> const& center, vec<3, T, Q> const& up);
    +
    111 
    +
    122  template<typename T, qualifier Q>
    +
    123  GLM_FUNC_DECL mat<4, 4, T, Q> lookAtLH(
    +
    124  vec<3, T, Q> const& eye, vec<3, T, Q> const& center, vec<3, T, Q> const& up);
    +
    125 
    +
    137  template<typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL mat<4, 4, T, Q> lookAt(
    +
    139  vec<3, T, Q> const& eye, vec<3, T, Q> const& center, vec<3, T, Q> const& up);
    +
    140 
    +
    142 }//namespace glm
    +
    143 
    +
    144 #include "matrix_transform.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtLH(vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
    Build a left handed look at view matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtRH(vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
    Build a right handed look at view matrix.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
    Builds a translation 4 * 4 matrix created from a vector of 3 components.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate(mat< 4, 4, T, Q > const &m, T angle, vec< 3, T, Q > const &axis)
    Builds a rotation 4 * 4 matrix created from an axis vector and an angle.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType identity()
    Builds an identity matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
    Builds a scale 4 * 4 matrix created from 3 scalars.
    +
    GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
    Returns the q rotation axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAt(vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
    Build a look at view matrix based on the default handedness.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00109.html b/external/glm-0.9.9.8/doc/api/a00109.html new file mode 100644 index 0000000..521bb53 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00109.html @@ -0,0 +1,113 @@ + + + + + + +0.9.9 API documentation: matrix_transform.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/matrix_transform.hpp File Reference
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00109_source.html b/external/glm-0.9.9.8/doc/api/a00109_source.html new file mode 100644 index 0000000..07e642e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00109_source.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: matrix_transform.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/matrix_transform.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    21 #pragma once
    +
    22 
    +
    23 // Dependencies
    +
    24 #include "../mat4x4.hpp"
    +
    25 #include "../vec2.hpp"
    +
    26 #include "../vec3.hpp"
    +
    27 #include "../vec4.hpp"
    +
    28 #include "../ext/matrix_projection.hpp"
    +
    29 #include "../ext/matrix_clip_space.hpp"
    +
    30 #include "../ext/matrix_transform.hpp"
    +
    31 
    +
    32 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    33 # pragma message("GLM: GLM_GTC_matrix_transform extension included")
    +
    34 #endif
    +
    35 
    +
    36 #include "matrix_transform.inl"
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00110.html b/external/glm-0.9.9.8/doc/api/a00110.html new file mode 100644 index 0000000..f319ef2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00110.html @@ -0,0 +1,136 @@ + + + + + + +0.9.9 API documentation: matrix_transform_2d.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    matrix_transform_2d.hpp File Reference
    +
    +
    + +

    GLM_GTX_matrix_transform_2d +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > rotate (mat< 3, 3, T, Q > const &m, T angle)
     Builds a rotation 3 * 3 matrix created from an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > scale (mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
     Builds a scale 3 * 3 matrix created from a vector of 2 components. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearX (mat< 3, 3, T, Q > const &m, T y)
     Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearY (mat< 3, 3, T, Q > const &m, T x)
     Builds a vertical (parallel to the y axis) shear 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > translate (mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
     Builds a translation 3 * 3 matrix created from a vector of 2 components. More...
     
    +

    Detailed Description

    +

    GLM_GTX_matrix_transform_2d

    +
    Author
    Miguel Ángel Pérez Martínez
    +
    See also
    Core features (dependence)
    + +

    Definition in file matrix_transform_2d.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00110_source.html b/external/glm-0.9.9.8/doc/api/a00110_source.html new file mode 100644 index 0000000..9e189b0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00110_source.html @@ -0,0 +1,152 @@ + + + + + + +0.9.9 API documentation: matrix_transform_2d.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    matrix_transform_2d.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../mat3x3.hpp"
    +
    18 #include "../vec2.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_matrix_transform_2d is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    37  template<typename T, qualifier Q>
    +
    38  GLM_FUNC_QUALIFIER mat<3, 3, T, Q> translate(
    +
    39  mat<3, 3, T, Q> const& m,
    +
    40  vec<2, T, Q> const& v);
    +
    41 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_QUALIFIER mat<3, 3, T, Q> rotate(
    +
    48  mat<3, 3, T, Q> const& m,
    +
    49  T angle);
    +
    50 
    +
    55  template<typename T, qualifier Q>
    +
    56  GLM_FUNC_QUALIFIER mat<3, 3, T, Q> scale(
    +
    57  mat<3, 3, T, Q> const& m,
    +
    58  vec<2, T, Q> const& v);
    +
    59 
    +
    64  template<typename T, qualifier Q>
    +
    65  GLM_FUNC_QUALIFIER mat<3, 3, T, Q> shearX(
    +
    66  mat<3, 3, T, Q> const& m,
    +
    67  T y);
    +
    68 
    +
    73  template<typename T, qualifier Q>
    +
    74  GLM_FUNC_QUALIFIER mat<3, 3, T, Q> shearY(
    +
    75  mat<3, 3, T, Q> const& m,
    +
    76  T x);
    +
    77 
    +
    79 }//namespace glm
    +
    80 
    +
    81 #include "matrix_transform_2d.inl"
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > translate(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
    Builds a translation 3 * 3 matrix created from a vector of 2 components.
    +
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > rotate(mat< 3, 3, T, Q > const &m, T angle)
    Builds a rotation 3 * 3 matrix created from an angle.
    +
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearY(mat< 3, 3, T, Q > const &m, T x)
    Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.
    +
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > scale(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
    Builds a scale 3 * 3 matrix created from a vector of 2 components.
    +
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearX(mat< 3, 3, T, Q > const &m, T y)
    Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00111.html b/external/glm-0.9.9.8/doc/api/a00111.html new file mode 100644 index 0000000..46c10fa --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00111.html @@ -0,0 +1,120 @@ + + + + + + +0.9.9 API documentation: mixed_product.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    mixed_product.hpp File Reference
    +
    +
    + +

    GLM_GTX_mixed_producte +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_DECL T mixedProduct (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)
     
    +

    Detailed Description

    +

    GLM_GTX_mixed_producte

    +
    See also
    Core features (dependence)
    + +

    Definition in file mixed_product.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00111_source.html b/external/glm-0.9.9.8/doc/api/a00111_source.html new file mode 100644 index 0000000..d1c7ed5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00111_source.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: mixed_product.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    mixed_product.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_mixed_product is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_mixed_product extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    32  template<typename T, qualifier Q>
    +
    33  GLM_FUNC_DECL T mixedProduct(
    +
    34  vec<3, T, Q> const& v1,
    +
    35  vec<3, T, Q> const& v2,
    +
    36  vec<3, T, Q> const& v3);
    +
    37 
    +
    39 }// namespace glm
    +
    40 
    +
    41 #include "mixed_product.inl"
    +
    GLM_FUNC_DECL T mixedProduct(vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
    Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00112.html b/external/glm-0.9.9.8/doc/api/a00112.html new file mode 100644 index 0000000..c90ced2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00112.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: noise.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    noise.hpp File Reference
    +
    +
    + +

    GLM_GTC_noise +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T perlin (vec< L, T, Q > const &p)
     Classic perlin noise. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T perlin (vec< L, T, Q > const &p, vec< L, T, Q > const &rep)
     Periodic perlin noise. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T simplex (vec< L, T, Q > const &p)
     Simplex noise. More...
     
    +

    Detailed Description

    +

    GLM_GTC_noise

    +
    See also
    Core features (dependence)
    + +

    Definition in file noise.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00112_source.html b/external/glm-0.9.9.8/doc/api/a00112_source.html new file mode 100644 index 0000000..053831d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00112_source.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: noise.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    noise.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 // Dependencies
    +
    20 #include "../detail/setup.hpp"
    +
    21 #include "../detail/qualifier.hpp"
    +
    22 #include "../detail/_noise.hpp"
    +
    23 #include "../geometric.hpp"
    +
    24 #include "../common.hpp"
    +
    25 #include "../vector_relational.hpp"
    +
    26 #include "../vec2.hpp"
    +
    27 #include "../vec3.hpp"
    +
    28 #include "../vec4.hpp"
    +
    29 
    +
    30 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    31 # pragma message("GLM: GLM_GTC_noise extension included")
    +
    32 #endif
    +
    33 
    +
    34 namespace glm
    +
    35 {
    +
    38 
    +
    41  template<length_t L, typename T, qualifier Q>
    +
    42  GLM_FUNC_DECL T perlin(
    +
    43  vec<L, T, Q> const& p);
    +
    44 
    +
    47  template<length_t L, typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL T perlin(
    +
    49  vec<L, T, Q> const& p,
    +
    50  vec<L, T, Q> const& rep);
    +
    51 
    +
    54  template<length_t L, typename T, qualifier Q>
    +
    55  GLM_FUNC_DECL T simplex(
    +
    56  vec<L, T, Q> const& p);
    +
    57 
    +
    59 }//namespace glm
    +
    60 
    +
    61 #include "noise.inl"
    +
    GLM_FUNC_DECL T simplex(vec< L, T, Q > const &p)
    Simplex noise.
    +
    GLM_FUNC_DECL T perlin(vec< L, T, Q > const &p, vec< L, T, Q > const &rep)
    Periodic perlin noise.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00113.html b/external/glm-0.9.9.8/doc/api/a00113.html new file mode 100644 index 0000000..ff90f1e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00113.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: norm.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    norm.hpp File Reference
    +
    +
    + +

    GLM_GTX_norm +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T distance2 (vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
     Returns the squared distance between p0 and p1, i.e., length2(p0 - p1). More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l1Norm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the L1 norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l1Norm (vec< 3, T, Q > const &v)
     Returns the L1 norm of v. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l2Norm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the L2 norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l2Norm (vec< 3, T, Q > const &x)
     Returns the L2 norm of v. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T length2 (vec< L, T, Q > const &x)
     Returns the squared length of x. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lMaxNorm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the LMax norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lMaxNorm (vec< 3, T, Q > const &x)
     Returns the LMax norm of v. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lxNorm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, unsigned int Depth)
     Returns the L norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lxNorm (vec< 3, T, Q > const &x, unsigned int Depth)
     Returns the L norm of v. More...
     
    +

    Detailed Description

    +

    GLM_GTX_norm

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_quaternion (dependence)
    +
    +GLM_GTX_component_wise (dependence)
    + +

    Definition in file norm.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00113_source.html b/external/glm-0.9.9.8/doc/api/a00113_source.html new file mode 100644 index 0000000..3e09cb6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00113_source.html @@ -0,0 +1,158 @@ + + + + + + +0.9.9 API documentation: norm.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    norm.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../geometric.hpp"
    +
    19 #include "../gtx/quaternion.hpp"
    +
    20 #include "../gtx/component_wise.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTX_norm is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTX_norm extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    37  template<length_t L, typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL T length2(vec<L, T, Q> const& x);
    +
    39 
    +
    42  template<length_t L, typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL T distance2(vec<L, T, Q> const& p0, vec<L, T, Q> const& p1);
    +
    44 
    +
    47  template<typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL T l1Norm(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
    +
    49 
    +
    52  template<typename T, qualifier Q>
    +
    53  GLM_FUNC_DECL T l1Norm(vec<3, T, Q> const& v);
    +
    54 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL T l2Norm(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
    +
    59 
    +
    62  template<typename T, qualifier Q>
    +
    63  GLM_FUNC_DECL T l2Norm(vec<3, T, Q> const& x);
    +
    64 
    +
    67  template<typename T, qualifier Q>
    +
    68  GLM_FUNC_DECL T lxNorm(vec<3, T, Q> const& x, vec<3, T, Q> const& y, unsigned int Depth);
    +
    69 
    +
    72  template<typename T, qualifier Q>
    +
    73  GLM_FUNC_DECL T lxNorm(vec<3, T, Q> const& x, unsigned int Depth);
    +
    74 
    +
    77  template<typename T, qualifier Q>
    +
    78  GLM_FUNC_DECL T lMaxNorm(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
    +
    79 
    +
    82  template<typename T, qualifier Q>
    +
    83  GLM_FUNC_DECL T lMaxNorm(vec<3, T, Q> const& x);
    +
    84 
    +
    86 }//namespace glm
    +
    87 
    +
    88 #include "norm.inl"
    +
    GLM_FUNC_DECL T length2(vec< L, T, Q > const &x)
    Returns the squared length of x.
    +
    GLM_FUNC_DECL T l1Norm(vec< 3, T, Q > const &v)
    Returns the L1 norm of v.
    +
    GLM_FUNC_DECL T distance2(vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
    Returns the squared distance between p0 and p1, i.e., length2(p0 - p1).
    +
    GLM_FUNC_DECL T lMaxNorm(vec< 3, T, Q > const &x)
    Returns the LMax norm of v.
    +
    GLM_FUNC_DECL T lxNorm(vec< 3, T, Q > const &x, unsigned int Depth)
    Returns the L norm of v.
    +
    GLM_FUNC_DECL T l2Norm(vec< 3, T, Q > const &x)
    Returns the L2 norm of v.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00114.html b/external/glm-0.9.9.8/doc/api/a00114.html new file mode 100644 index 0000000..f472205 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00114.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: normal.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    normal.hpp File Reference
    +
    +
    + +

    GLM_GTX_normal +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > triangleNormal (vec< 3, T, Q > const &p1, vec< 3, T, Q > const &p2, vec< 3, T, Q > const &p3)
     Computes triangle normal from triangle points. More...
     
    +

    Detailed Description

    +

    GLM_GTX_normal

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file normal.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00114_source.html b/external/glm-0.9.9.8/doc/api/a00114_source.html new file mode 100644 index 0000000..16dd224 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00114_source.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: normal.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    normal.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_normal is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_normal extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    35  template<typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL vec<3, T, Q> triangleNormal(vec<3, T, Q> const& p1, vec<3, T, Q> const& p2, vec<3, T, Q> const& p3);
    +
    37 
    +
    39 }//namespace glm
    +
    40 
    +
    41 #include "normal.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > triangleNormal(vec< 3, T, Q > const &p1, vec< 3, T, Q > const &p2, vec< 3, T, Q > const &p3)
    Computes triangle normal from triangle points.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00115.html b/external/glm-0.9.9.8/doc/api/a00115.html new file mode 100644 index 0000000..df48642 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00115.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: normalize_dot.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    normalize_dot.hpp File Reference
    +
    +
    + +

    GLM_GTX_normalize_dot +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastNormalizeDot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Normalize parameters and returns the dot product of x and y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T normalizeDot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Normalize parameters and returns the dot product of x and y. More...
     
    +

    Detailed Description

    +

    GLM_GTX_normalize_dot

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_fast_square_root (dependence)
    + +

    Definition in file normalize_dot.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00115_source.html b/external/glm-0.9.9.8/doc/api/a00115_source.html new file mode 100644 index 0000000..78e37e2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00115_source.html @@ -0,0 +1,128 @@ + + + + + + +0.9.9 API documentation: normalize_dot.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    normalize_dot.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../gtx/fast_square_root.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_normalize_dot is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_normalize_dot extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    36  template<length_t L, typename T, qualifier Q>
    +
    37  GLM_FUNC_DECL T normalizeDot(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    38 
    +
    43  template<length_t L, typename T, qualifier Q>
    +
    44  GLM_FUNC_DECL T fastNormalizeDot(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    45 
    +
    47 }//namespace glm
    +
    48 
    +
    49 #include "normalize_dot.inl"
    +
    GLM_FUNC_DECL T normalizeDot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Normalize parameters and returns the dot product of x and y.
    +
    GLM_FUNC_DECL T fastNormalizeDot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Normalize parameters and returns the dot product of x and y.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00116.html b/external/glm-0.9.9.8/doc/api/a00116.html new file mode 100644 index 0000000..aafcad1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00116.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: number_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    number_precision.hpp File Reference
    +
    +
    + +

    GLM_GTX_number_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef f32 f32mat1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f32 f32mat1x1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f32 f32vec1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64mat1
     Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64mat1x1
     Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64vec1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u16 u16vec1
     16bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u32 u32vec1
     32bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u64 u64vec1
     64bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u8 u8vec1
     8bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +

    Detailed Description

    +

    GLM_GTX_number_precision

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_type_precision (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file number_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00116_source.html b/external/glm-0.9.9.8/doc/api/a00116_source.html new file mode 100644 index 0000000..bce7c5f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00116_source.html @@ -0,0 +1,158 @@ + + + + + + +0.9.9 API documentation: number_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    number_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../glm.hpp"
    +
    19 #include "../gtc/type_precision.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_number_precision is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_number_precision extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm{
    +
    30 namespace gtx
    +
    31 {
    +
    33  // Unsigned int vector types
    +
    34 
    +
    37 
    +
    38  typedef u8 u8vec1;
    +
    39  typedef u16 u16vec1;
    +
    40  typedef u32 u32vec1;
    +
    41  typedef u64 u64vec1;
    +
    42 
    +
    44  // Float vector types
    +
    45 
    +
    46  typedef f32 f32vec1;
    +
    47  typedef f64 f64vec1;
    +
    48 
    +
    50  // Float matrix types
    +
    51 
    +
    52  typedef f32 f32mat1;
    +
    53  typedef f32 f32mat1x1;
    +
    54  typedef f64 f64mat1;
    +
    55  typedef f64 f64mat1x1;
    +
    56 
    +
    58 }//namespace gtx
    +
    59 }//namespace glm
    +
    60 
    +
    61 #include "number_precision.inl"
    +
    uint32 u32
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:120
    +
    uint64 u64
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:134
    +
    f32 f32mat1x1
    Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    f64 f64mat1
    Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    u16 u16vec1
    16bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
    +
    uint8 u8
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:92
    +
    f32 f32mat1
    Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    f32 f32vec1
    Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    f64 f64vec1
    Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    f64 f64mat1x1
    Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension) ...
    +
    u64 u64vec1
    64bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
    +
    u32 u32vec1
    32bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
    +
    float f32
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:150
    +
    uint16 u16
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:106
    +
    u8 u8vec1
    8bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
    +
    double f64
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:166
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00117.html b/external/glm-0.9.9.8/doc/api/a00117.html new file mode 100644 index 0000000..7b47bba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00117.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: optimum_pow.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    optimum_pow.hpp File Reference
    +
    +
    + +

    GLM_GTX_optimum_pow +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType pow2 (genType const &x)
     Returns x raised to the power of 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType pow3 (genType const &x)
     Returns x raised to the power of 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType pow4 (genType const &x)
     Returns x raised to the power of 4. More...
     
    +

    Detailed Description

    +

    GLM_GTX_optimum_pow

    +
    See also
    Core features (dependence)
    + +

    Definition in file optimum_pow.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00117_source.html b/external/glm-0.9.9.8/doc/api/a00117_source.html new file mode 100644 index 0000000..c0c9911 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00117_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: optimum_pow.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    optimum_pow.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_optimum_pow is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_optimum_pow extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm{
    +
    27 namespace gtx
    +
    28 {
    +
    31 
    +
    35  template<typename genType>
    +
    36  GLM_FUNC_DECL genType pow2(genType const& x);
    +
    37 
    +
    41  template<typename genType>
    +
    42  GLM_FUNC_DECL genType pow3(genType const& x);
    +
    43 
    +
    47  template<typename genType>
    +
    48  GLM_FUNC_DECL genType pow4(genType const& x);
    +
    49 
    +
    51 }//namespace gtx
    +
    52 }//namespace glm
    +
    53 
    +
    54 #include "optimum_pow.inl"
    +
    GLM_FUNC_DECL genType pow3(genType const &x)
    Returns x raised to the power of 3.
    +
    GLM_FUNC_DECL genType pow4(genType const &x)
    Returns x raised to the power of 4.
    +
    GLM_FUNC_DECL genType pow2(genType const &x)
    Returns x raised to the power of 2.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00118.html b/external/glm-0.9.9.8/doc/api/a00118.html new file mode 100644 index 0000000..7c1a215 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00118.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: orthonormalize.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    orthonormalize.hpp File Reference
    +
    +
    + +

    GLM_GTX_orthonormalize +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > orthonormalize (mat< 3, 3, T, Q > const &m)
     Returns the orthonormalized matrix of m. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > orthonormalize (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Orthonormalizes x according y. More...
     
    +

    Detailed Description

    +

    GLM_GTX_orthonormalize

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file orthonormalize.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00118_source.html b/external/glm-0.9.9.8/doc/api/a00118_source.html new file mode 100644 index 0000000..264c740 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00118_source.html @@ -0,0 +1,129 @@ + + + + + + +0.9.9 API documentation: orthonormalize.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    orthonormalize.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../vec3.hpp"
    +
    18 #include "../mat3x3.hpp"
    +
    19 #include "../geometric.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    23 # pragma message("GLM: GLM_GTX_orthonormalize is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    24 # else
    +
    25 # pragma message("GLM: GLM_GTX_orthonormalize extension included")
    +
    26 # endif
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    37  template<typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL mat<3, 3, T, Q> orthonormalize(mat<3, 3, T, Q> const& m);
    +
    39 
    +
    43  template<typename T, qualifier Q>
    +
    44  GLM_FUNC_DECL vec<3, T, Q> orthonormalize(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
    +
    45 
    +
    47 }//namespace glm
    +
    48 
    +
    49 #include "orthonormalize.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > orthonormalize(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
    Orthonormalizes x according y.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00119.html b/external/glm-0.9.9.8/doc/api/a00119.html new file mode 100644 index 0000000..2a8f6e2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00119.html @@ -0,0 +1,333 @@ + + + + + + +0.9.9 API documentation: packing.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtc/packing.hpp File Reference
    +
    +
    + +

    GLM_GTC_packing +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL uint32 packF2x11_1x10 (vec3 const &v)
     First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. More...
     
    GLM_FUNC_DECL uint32 packF3x9_E1x5 (vec3 const &v)
     First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint16, Q > packHalf (vec< L, float, Q > const &v)
     Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. More...
     
    GLM_FUNC_DECL uint16 packHalf1x16 (float v)
     Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 16-bit floating-point representation found in the OpenGL Specification, and then packing this 16-bit value into a 16-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packHalf4x16 (vec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these four 16-bit values into a 64-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint32 packI3x10_1x2 (ivec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component signed integer vector to the 10-10-10-2-bit signed integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL int packInt2x16 (i16vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int64 packInt2x32 (i32vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int16 packInt2x8 (i8vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int64 packInt4x16 (i16vec4 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int32 packInt4x8 (i8vec4 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > packRGBM (vec< 3, T, Q > const &rgb)
     Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. More...
     
    template<typename intType , length_t L, typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, intType, Q > packSnorm (vec< L, floatType, Q > const &v)
     Convert each component of the normalized floating-point vector into signed integer values. More...
     
    GLM_FUNC_DECL uint16 packSnorm1x16 (float v)
     First, converts the normalized floating-point value v into 16-bit integer value. More...
     
    GLM_FUNC_DECL uint8 packSnorm1x8 (float s)
     First, converts the normalized floating-point value v into 8-bit integer value. More...
     
    GLM_FUNC_DECL uint16 packSnorm2x8 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packSnorm3x10_1x2 (vec4 const &v)
     First, converts the first three components of the normalized floating-point value v into 10-bit signed integer values. More...
     
    GLM_FUNC_DECL uint64 packSnorm4x16 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 16-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packU3x10_1x2 (uvec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component unsigned integer vector to the 10-10-10-2-bit unsigned integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint packUint2x16 (u16vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packUint2x32 (u32vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint16 packUint2x8 (u8vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packUint4x16 (u16vec4 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint32 packUint4x8 (u8vec4 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    template<typename uintType , length_t L, typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, uintType, Q > packUnorm (vec< L, floatType, Q > const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm1x16 (float v)
     First, converts the normalized floating-point value v into a 16-bit integer value. More...
     
    GLM_FUNC_DECL uint16 packUnorm1x5_1x6_1x5 (vec3 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint8 packUnorm1x8 (float v)
     First, converts the normalized floating-point value v into a 8-bit integer value. More...
     
    GLM_FUNC_DECL uint8 packUnorm2x3_1x2 (vec3 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint8 packUnorm2x4 (vec2 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm2x8 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packUnorm3x10_1x2 (vec4 const &v)
     First, converts the first three components of the normalized floating-point value v into 10-bit unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm3x5_1x1 (vec4 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint64 packUnorm4x16 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 16-bit integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm4x4 (vec4 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL vec3 unpackF2x11_1x10 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . More...
     
    GLM_FUNC_DECL vec3 unpackF3x9_E1x5 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > unpackHalf (vec< L, uint16, Q > const &p)
     Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL float unpackHalf1x16 (uint16 v)
     Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into a 16-bit value, interpreted as a 16-bit floating-point number according to the OpenGL Specification, and converting it to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL vec4 unpackHalf4x16 (uint64 p)
     Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigned integer into four 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL ivec4 unpackI3x10_1x2 (uint32 p)
     Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers. More...
     
    GLM_FUNC_DECL i16vec2 unpackInt2x16 (int p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i32vec2 unpackInt2x32 (int64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i8vec2 unpackInt2x8 (int16 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i16vec4 unpackInt4x16 (int64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i8vec4 unpackInt4x8 (int32 p)
     Convert a packed integer into an integer vector. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unpackRGBM (vec< 4, T, Q > const &rgbm)
     Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. More...
     
    template<typename floatType , length_t L, typename intType , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > unpackSnorm (vec< L, intType, Q > const &v)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackSnorm1x16 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers. More...
     
    GLM_FUNC_DECL float unpackSnorm1x8 (uint8 p)
     First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec2 unpackSnorm2x8 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm3x10_1x2 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm4x16 (uint64 p)
     First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL uvec4 unpackU3x10_1x2 (uint32 p)
     Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers. More...
     
    GLM_FUNC_DECL u16vec2 unpackUint2x16 (uint p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u32vec2 unpackUint2x32 (uint64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u8vec2 unpackUint2x8 (uint16 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u16vec4 unpackUint4x16 (uint64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u8vec4 unpackUint4x8 (uint32 p)
     Convert a packed integer into an integer vector. More...
     
    template<typename floatType , length_t L, typename uintType , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > unpackUnorm (vec< L, uintType, Q > const &v)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackUnorm1x16 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec3 unpackUnorm1x5_1x6_1x5 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackUnorm1x8 (uint8 p)
     Convert a single 8-bit integer to a normalized floating-point value. More...
     
    GLM_FUNC_DECL vec3 unpackUnorm2x3_1x2 (uint8 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x4 (uint8 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x8 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm3x10_1x2 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm3x5_1x1 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x16 (uint64 p)
     First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x4 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    +

    Detailed Description

    +

    GLM_GTC_packing

    +
    See also
    Core features (dependence)
    + +

    Definition in file gtc/packing.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00119_source.html b/external/glm-0.9.9.8/doc/api/a00119_source.html new file mode 100644 index 0000000..412e8fc --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00119_source.html @@ -0,0 +1,356 @@ + + + + + + +0.9.9 API documentation: packing.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/packing.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "type_precision.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # pragma message("GLM: GLM_GTC_packing extension included")
    +
    21 #endif
    +
    22 
    +
    23 namespace glm
    +
    24 {
    +
    27 
    +
    39  GLM_FUNC_DECL uint8 packUnorm1x8(float v);
    +
    40 
    +
    51  GLM_FUNC_DECL float unpackUnorm1x8(uint8 p);
    +
    52 
    +
    67  GLM_FUNC_DECL uint16 packUnorm2x8(vec2 const& v);
    +
    68 
    +
    83  GLM_FUNC_DECL vec2 unpackUnorm2x8(uint16 p);
    +
    84 
    +
    96  GLM_FUNC_DECL uint8 packSnorm1x8(float s);
    +
    97 
    +
    109  GLM_FUNC_DECL float unpackSnorm1x8(uint8 p);
    +
    110 
    +
    125  GLM_FUNC_DECL uint16 packSnorm2x8(vec2 const& v);
    +
    126 
    +
    141  GLM_FUNC_DECL vec2 unpackSnorm2x8(uint16 p);
    +
    142 
    +
    154  GLM_FUNC_DECL uint16 packUnorm1x16(float v);
    +
    155 
    +
    167  GLM_FUNC_DECL float unpackUnorm1x16(uint16 p);
    +
    168 
    +
    183  GLM_FUNC_DECL uint64 packUnorm4x16(vec4 const& v);
    +
    184 
    +
    199  GLM_FUNC_DECL vec4 unpackUnorm4x16(uint64 p);
    +
    200 
    +
    212  GLM_FUNC_DECL uint16 packSnorm1x16(float v);
    +
    213 
    +
    225  GLM_FUNC_DECL float unpackSnorm1x16(uint16 p);
    +
    226 
    +
    241  GLM_FUNC_DECL uint64 packSnorm4x16(vec4 const& v);
    +
    242 
    +
    257  GLM_FUNC_DECL vec4 unpackSnorm4x16(uint64 p);
    +
    258 
    +
    268  GLM_FUNC_DECL uint16 packHalf1x16(float v);
    +
    269 
    +
    279  GLM_FUNC_DECL float unpackHalf1x16(uint16 v);
    +
    280 
    +
    292  GLM_FUNC_DECL uint64 packHalf4x16(vec4 const& v);
    +
    293 
    +
    305  GLM_FUNC_DECL vec4 unpackHalf4x16(uint64 p);
    +
    306 
    +
    318  GLM_FUNC_DECL uint32 packI3x10_1x2(ivec4 const& v);
    +
    319 
    +
    329  GLM_FUNC_DECL ivec4 unpackI3x10_1x2(uint32 p);
    +
    330 
    +
    342  GLM_FUNC_DECL uint32 packU3x10_1x2(uvec4 const& v);
    +
    343 
    +
    353  GLM_FUNC_DECL uvec4 unpackU3x10_1x2(uint32 p);
    +
    354 
    +
    371  GLM_FUNC_DECL uint32 packSnorm3x10_1x2(vec4 const& v);
    +
    372 
    +
    388  GLM_FUNC_DECL vec4 unpackSnorm3x10_1x2(uint32 p);
    +
    389 
    +
    406  GLM_FUNC_DECL uint32 packUnorm3x10_1x2(vec4 const& v);
    +
    407 
    +
    423  GLM_FUNC_DECL vec4 unpackUnorm3x10_1x2(uint32 p);
    +
    424 
    +
    434  GLM_FUNC_DECL uint32 packF2x11_1x10(vec3 const& v);
    +
    435 
    +
    444  GLM_FUNC_DECL vec3 unpackF2x11_1x10(uint32 p);
    +
    445 
    +
    446 
    +
    458  GLM_FUNC_DECL uint32 packF3x9_E1x5(vec3 const& v);
    +
    459 
    +
    470  GLM_FUNC_DECL vec3 unpackF3x9_E1x5(uint32 p);
    +
    471 
    +
    480  template<length_t L, typename T, qualifier Q>
    +
    481  GLM_FUNC_DECL vec<4, T, Q> packRGBM(vec<3, T, Q> const& rgb);
    +
    482 
    +
    490  template<length_t L, typename T, qualifier Q>
    +
    491  GLM_FUNC_DECL vec<3, T, Q> unpackRGBM(vec<4, T, Q> const& rgbm);
    +
    492 
    +
    501  template<length_t L, qualifier Q>
    +
    502  GLM_FUNC_DECL vec<L, uint16, Q> packHalf(vec<L, float, Q> const& v);
    +
    503 
    +
    511  template<length_t L, qualifier Q>
    +
    512  GLM_FUNC_DECL vec<L, float, Q> unpackHalf(vec<L, uint16, Q> const& p);
    +
    513 
    +
    518  template<typename uintType, length_t L, typename floatType, qualifier Q>
    +
    519  GLM_FUNC_DECL vec<L, uintType, Q> packUnorm(vec<L, floatType, Q> const& v);
    +
    520 
    +
    525  template<typename floatType, length_t L, typename uintType, qualifier Q>
    +
    526  GLM_FUNC_DECL vec<L, floatType, Q> unpackUnorm(vec<L, uintType, Q> const& v);
    +
    527 
    +
    532  template<typename intType, length_t L, typename floatType, qualifier Q>
    +
    533  GLM_FUNC_DECL vec<L, intType, Q> packSnorm(vec<L, floatType, Q> const& v);
    +
    534 
    +
    539  template<typename floatType, length_t L, typename intType, qualifier Q>
    +
    540  GLM_FUNC_DECL vec<L, floatType, Q> unpackSnorm(vec<L, intType, Q> const& v);
    +
    541 
    +
    546  GLM_FUNC_DECL uint8 packUnorm2x4(vec2 const& v);
    +
    547 
    +
    552  GLM_FUNC_DECL vec2 unpackUnorm2x4(uint8 p);
    +
    553 
    +
    558  GLM_FUNC_DECL uint16 packUnorm4x4(vec4 const& v);
    +
    559 
    +
    564  GLM_FUNC_DECL vec4 unpackUnorm4x4(uint16 p);
    +
    565 
    +
    570  GLM_FUNC_DECL uint16 packUnorm1x5_1x6_1x5(vec3 const& v);
    +
    571 
    +
    576  GLM_FUNC_DECL vec3 unpackUnorm1x5_1x6_1x5(uint16 p);
    +
    577 
    +
    582  GLM_FUNC_DECL uint16 packUnorm3x5_1x1(vec4 const& v);
    +
    583 
    +
    588  GLM_FUNC_DECL vec4 unpackUnorm3x5_1x1(uint16 p);
    +
    589 
    +
    594  GLM_FUNC_DECL uint8 packUnorm2x3_1x2(vec3 const& v);
    +
    595 
    +
    600  GLM_FUNC_DECL vec3 unpackUnorm2x3_1x2(uint8 p);
    +
    601 
    +
    602 
    +
    603 
    +
    608  GLM_FUNC_DECL int16 packInt2x8(i8vec2 const& v);
    +
    609 
    +
    614  GLM_FUNC_DECL i8vec2 unpackInt2x8(int16 p);
    +
    615 
    +
    620  GLM_FUNC_DECL uint16 packUint2x8(u8vec2 const& v);
    +
    621 
    +
    626  GLM_FUNC_DECL u8vec2 unpackUint2x8(uint16 p);
    +
    627 
    +
    632  GLM_FUNC_DECL int32 packInt4x8(i8vec4 const& v);
    +
    633 
    +
    638  GLM_FUNC_DECL i8vec4 unpackInt4x8(int32 p);
    +
    639 
    +
    644  GLM_FUNC_DECL uint32 packUint4x8(u8vec4 const& v);
    +
    645 
    +
    650  GLM_FUNC_DECL u8vec4 unpackUint4x8(uint32 p);
    +
    651 
    +
    656  GLM_FUNC_DECL int packInt2x16(i16vec2 const& v);
    +
    657 
    +
    662  GLM_FUNC_DECL i16vec2 unpackInt2x16(int p);
    +
    663 
    +
    668  GLM_FUNC_DECL int64 packInt4x16(i16vec4 const& v);
    +
    669 
    +
    674  GLM_FUNC_DECL i16vec4 unpackInt4x16(int64 p);
    +
    675 
    +
    680  GLM_FUNC_DECL uint packUint2x16(u16vec2 const& v);
    +
    681 
    +
    686  GLM_FUNC_DECL u16vec2 unpackUint2x16(uint p);
    +
    687 
    +
    692  GLM_FUNC_DECL uint64 packUint4x16(u16vec4 const& v);
    +
    693 
    +
    698  GLM_FUNC_DECL u16vec4 unpackUint4x16(uint64 p);
    +
    699 
    +
    704  GLM_FUNC_DECL int64 packInt2x32(i32vec2 const& v);
    +
    705 
    +
    710  GLM_FUNC_DECL i32vec2 unpackInt2x32(int64 p);
    +
    711 
    +
    716  GLM_FUNC_DECL uint64 packUint2x32(u32vec2 const& v);
    +
    717 
    +
    722  GLM_FUNC_DECL u32vec2 unpackUint2x32(uint64 p);
    +
    723 
    +
    724 
    +
    726 }// namespace glm
    +
    727 
    +
    728 #include "packing.inl"
    +
    GLM_FUNC_DECL uint16 packUnorm4x4(vec4 const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL uint16 packUint2x8(u8vec2 const &v)
    Convert each component from an integer vector into a packed unsigned integer.
    +
    GLM_FUNC_DECL uint8 packUnorm2x4(vec2 const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL vec4 unpackUnorm4x16(uint64 p)
    First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers.
    +
    GLM_FUNC_DECL i16vec2 unpackInt2x16(int p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL i8vec4 unpackInt4x8(int32 p)
    Convert a packed integer into an integer vector.
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    GLM_FUNC_DECL u16vec4 unpackUint4x16(uint64 p)
    Convert a packed integer into an integer vector.
    +
    vec< 2, i8, defaultp > i8vec2
    8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:238
    +
    GLM_FUNC_DECL u32vec2 unpackUint2x32(uint64 p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL vec< L, float, Q > unpackHalf(vec< L, uint16, Q > const &p)
    Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bi...
    +
    GLM_FUNC_DECL uint64 packUnorm4x16(vec4 const &v)
    First, converts each component of the normalized floating-point value v into 16-bit integer values...
    +
    GLM_FUNC_DECL vec< L, uintType, Q > packUnorm(vec< L, floatType, Q > const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL vec3 unpackF2x11_1x10(uint32 p)
    First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and ...
    +
    GLM_FUNC_DECL uint8 packUnorm1x8(float v)
    First, converts the normalized floating-point value v into a 8-bit integer value. ...
    +
    GLM_FUNC_DECL u8vec2 unpackUint2x8(uint16 p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL vec4 unpackUnorm3x10_1x2(uint32 p)
    First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers.
    +
    GLM_FUNC_DECL vec2 unpackUnorm2x4(uint8 p)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL vec< 4, T, Q > packRGBM(vec< 3, T, Q > const &rgb)
    Returns an unsigned integer vector obtained by converting the components of a floating-point vector t...
    +
    vec< 4, i16, defaultp > i16vec4
    16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:260
    +
    GLM_FUNC_DECL vec4 unpackSnorm4x16(uint64 p)
    First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers.
    +
    GLM_FUNC_DECL uint32 packUnorm3x10_1x2(vec4 const &v)
    First, converts the first three components of the normalized floating-point value v into 10-bit unsig...
    +
    vec< 4, u8, defaultp > u8vec4
    Default qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:342
    +
    vec< 4, i8, defaultp > i8vec4
    8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:240
    +
    vec< 4, int, defaultp > ivec4
    4 components vector of signed integer numbers.
    Definition: vector_int4.hpp:15
    +
    GLM_FUNC_DECL i32vec2 unpackInt2x32(int64 p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL uint8 packUnorm2x3_1x2(vec3 const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL uint16 packUnorm1x16(float v)
    First, converts the normalized floating-point value v into a 16-bit integer value.
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    vec< 2, i32, defaultp > i32vec2
    32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:278
    +
    GLM_FUNC_DECL float unpackUnorm1x8(uint8 p)
    Convert a single 8-bit integer to a normalized floating-point value.
    +
    GLM_FUNC_DECL float unpackSnorm1x8(uint8 p)
    First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers.
    +
    GLM_FUNC_DECL float unpackHalf1x16(uint16 v)
    Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into ...
    +
    GLM_FUNC_DECL i16vec4 unpackInt4x16(int64 p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL float unpackUnorm1x16(uint16 p)
    First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers.
    +
    GLM_FUNC_DECL vec2 unpackSnorm2x8(uint16 p)
    First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers.
    +
    vec< 2, i16, defaultp > i16vec2
    16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:258
    +
    GLM_FUNC_DECL ivec4 unpackI3x10_1x2(uint32 p)
    Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...
    +
    GLM_FUNC_DECL uint16 packSnorm1x16(float v)
    First, converts the normalized floating-point value v into 16-bit integer value.
    +
    GLM_FUNC_DECL vec3 unpackF3x9_E1x5(uint32 p)
    First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and ...
    +
    GLM_FUNC_DECL vec< L, floatType, Q > unpackUnorm(vec< L, uintType, Q > const &v)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL vec< L, intType, Q > packSnorm(vec< L, floatType, Q > const &v)
    Convert each component of the normalized floating-point vector into signed integer values...
    +
    GLM_FUNC_DECL uint16 packUnorm1x5_1x6_1x5(vec3 const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL vec4 unpackUnorm3x5_1x1(uint16 p)
    Convert a packed integer to a normalized floating-point vector.
    +
    vec< 2, u8, defaultp > u8vec2
    Default qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:340
    +
    GLM_FUNC_DECL vec4 unpackSnorm3x10_1x2(uint32 p)
    First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers.
    +
    GLM_FUNC_DECL uint32 packSnorm3x10_1x2(vec4 const &v)
    First, converts the first three components of the normalized floating-point value v into 10-bit signe...
    +
    GLM_FUNC_DECL int64 packInt4x16(i16vec4 const &v)
    Convert each component from an integer vector into a packed integer.
    +
    GLM_FUNC_DECL vec3 unpackUnorm1x5_1x6_1x5(uint16 p)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL uint32 packF3x9_E1x5(vec3 const &v)
    First, converts the first two components of the normalized floating-point value v into 11-bit signles...
    +
    GLM_FUNC_DECL uint16 packUnorm2x8(vec2 const &v)
    First, converts each component of the normalized floating-point value v into 8-bit integer values...
    +
    GLM_FUNC_DECL uint64 packUint4x16(u16vec4 const &v)
    Convert each component from an integer vector into a packed unsigned integer.
    +
    vec< 3, float, defaultp > vec3
    3 components vector of single-precision floating-point numbers.
    +
    GLM_FUNC_DECL uint16 packUnorm3x5_1x1(vec4 const &v)
    Convert each component of the normalized floating-point vector into unsigned integer values...
    +
    GLM_FUNC_DECL vec2 unpackUnorm2x8(uint16 p)
    First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers.
    +
    GLM_FUNC_DECL u16vec2 unpackUint2x16(uint p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL uint packUint2x16(u16vec2 const &v)
    Convert each component from an integer vector into a packed unsigned integer.
    +
    GLM_FUNC_DECL uint64 packSnorm4x16(vec4 const &v)
    First, converts each component of the normalized floating-point value v into 16-bit integer values...
    +
    GLM_FUNC_DECL uint64 packUint2x32(u32vec2 const &v)
    Convert each component from an integer vector into a packed unsigned integer.
    +
    vec< 4, unsigned int, defaultp > uvec4
    4 components vector of unsigned integer numbers.
    +
    GLM_FUNC_DECL vec4 unpackHalf4x16(uint64 p)
    Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigne...
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    GLM_FUNC_DECL vec4 unpackUnorm4x4(uint16 p)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL uint64 packHalf4x16(vec4 const &v)
    Returns an unsigned integer obtained by converting the components of a four-component floating-point ...
    +
    GLM_GTC_type_precision
    +
    GLM_FUNC_DECL i8vec2 unpackInt2x8(int16 p)
    Convert a packed integer into an integer vector.
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    GLM_FUNC_DECL vec3 unpackUnorm2x3_1x2(uint8 p)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL uint32 packF2x11_1x10(vec3 const &v)
    First, converts the first two components of the normalized floating-point value v into 11-bit signles...
    +
    GLM_FUNC_DECL uvec4 unpackU3x10_1x2(uint32 p)
    Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers...
    +
    GLM_FUNC_DECL uint16 packHalf1x16(float v)
    Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 1...
    +
    GLM_FUNC_DECL vec< L, floatType, Q > unpackSnorm(vec< L, intType, Q > const &v)
    Convert a packed integer to a normalized floating-point vector.
    +
    GLM_FUNC_DECL vec< 3, T, Q > unpackRGBM(vec< 4, T, Q > const &rgbm)
    Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bi...
    +
    GLM_FUNC_DECL uint16 packSnorm2x8(vec2 const &v)
    First, converts each component of the normalized floating-point value v into 8-bit integer values...
    +
    GLM_FUNC_DECL uint8 packSnorm1x8(float s)
    First, converts the normalized floating-point value v into 8-bit integer value.
    +
    GLM_FUNC_DECL u8vec4 unpackUint4x8(uint32 p)
    Convert a packed integer into an integer vector.
    +
    GLM_FUNC_DECL uint32 packI3x10_1x2(ivec4 const &v)
    Returns an unsigned integer obtained by converting the components of a four-component signed integer ...
    +
    GLM_FUNC_DECL int16 packInt2x8(i8vec2 const &v)
    Convert each component from an integer vector into a packed integer.
    +
    GLM_FUNC_DECL int64 packInt2x32(i32vec2 const &v)
    Convert each component from an integer vector into a packed integer.
    +
    GLM_FUNC_DECL uint32 packUint4x8(u8vec4 const &v)
    Convert each component from an integer vector into a packed unsigned integer.
    +
    GLM_FUNC_DECL uint32 packU3x10_1x2(uvec4 const &v)
    Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...
    +
    vec< 2, u32, defaultp > u32vec2
    Default qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:380
    +
    GLM_FUNC_DECL int packInt2x16(i16vec2 const &v)
    Convert each component from an integer vector into a packed integer.
    +
    GLM_FUNC_DECL vec< L, uint16, Q > packHalf(vec< L, float, Q > const &v)
    Returns an unsigned integer vector obtained by converting the components of a floating-point vector t...
    +
    vec< 4, u16, defaultp > u16vec4
    Default qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:362
    +
    GLM_FUNC_DECL int32 packInt4x8(i8vec4 const &v)
    Convert each component from an integer vector into a packed integer.
    +
    vec< 2, u16, defaultp > u16vec2
    Default qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:360
    +
    GLM_FUNC_DECL float unpackSnorm1x16(uint16 p)
    First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00120.html b/external/glm-0.9.9.8/doc/api/a00120.html new file mode 100644 index 0000000..079d9ae --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00120.html @@ -0,0 +1,153 @@ + + + + + + +0.9.9 API documentation: packing.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    packing.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL double packDouble2x32 (uvec2 const &v)
     Returns a double-qualifier value obtained by packing the components of v into a 64-bit value. More...
     
    GLM_FUNC_DECL uint packHalf2x16 (vec2 const &v)
     Returns an unsigned integer obtained by converting the components of a two-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these two 16- bit integers into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint packSnorm2x16 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packSnorm4x8 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packUnorm2x16 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packUnorm4x8 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uvec2 unpackDouble2x32 (double v)
     Returns a two-component unsigned integer vector representation of v. More...
     
    GLM_FUNC_DECL vec2 unpackHalf2x16 (uint v)
     Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned integer into a pair of 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL vec2 unpackSnorm2x16 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm4x8 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x16 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x8 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00120_source.html b/external/glm-0.9.9.8/doc/api/a00120_source.html new file mode 100644 index 0000000..159c40f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00120_source.html @@ -0,0 +1,155 @@ + + + + + + +0.9.9 API documentation: packing.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    packing.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    16 #pragma once
    +
    17 
    +
    18 #include "./ext/vector_uint2.hpp"
    +
    19 #include "./ext/vector_float2.hpp"
    +
    20 #include "./ext/vector_float4.hpp"
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    38  GLM_FUNC_DECL uint packUnorm2x16(vec2 const& v);
    +
    39 
    +
    51  GLM_FUNC_DECL uint packSnorm2x16(vec2 const& v);
    +
    52 
    +
    64  GLM_FUNC_DECL uint packUnorm4x8(vec4 const& v);
    +
    65 
    +
    77  GLM_FUNC_DECL uint packSnorm4x8(vec4 const& v);
    +
    78 
    +
    90  GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p);
    +
    91 
    +
    103  GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p);
    +
    104 
    +
    116  GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p);
    +
    117 
    +
    129  GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p);
    +
    130 
    +
    139  GLM_FUNC_DECL double packDouble2x32(uvec2 const& v);
    +
    140 
    +
    148  GLM_FUNC_DECL uvec2 unpackDouble2x32(double v);
    +
    149 
    +
    158  GLM_FUNC_DECL uint packHalf2x16(vec2 const& v);
    +
    159 
    +
    168  GLM_FUNC_DECL vec2 unpackHalf2x16(uint v);
    +
    169 
    +
    171 }//namespace glm
    +
    172 
    +
    173 #include "detail/func_packing.inl"
    +
    GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p)
    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    GLM_FUNC_DECL uint packSnorm2x16(vec2 const &v)
    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
    +
    GLM_FUNC_DECL uint packSnorm4x8(vec4 const &v)
    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
    +
    GLM_FUNC_DECL uint packUnorm2x16(vec2 const &v)
    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
    +
    GLM_FUNC_DECL uvec2 unpackDouble2x32(double v)
    Returns a two-component unsigned integer vector representation of v.
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p)
    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
    +
    vec< 2, unsigned int, defaultp > uvec2
    2 components vector of unsigned integer numbers.
    +
    GLM_FUNC_DECL vec2 unpackHalf2x16(uint v)
    Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...
    +
    Core features
    +
    GLM_FUNC_DECL uint packUnorm4x8(vec4 const &v)
    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
    +
    GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p)
    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
    +
    GLM_FUNC_DECL double packDouble2x32(uvec2 const &v)
    Returns a double-qualifier value obtained by packing the components of v into a 64-bit value...
    +
    GLM_FUNC_DECL uint packHalf2x16(vec2 const &v)
    Returns an unsigned integer obtained by converting the components of a two-component floating-point v...
    +
    Core features
    +
    GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p)
    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00121.html b/external/glm-0.9.9.8/doc/api/a00121.html new file mode 100644 index 0000000..4bca5a6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00121.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: perpendicular.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    perpendicular.hpp File Reference
    +
    +
    + +

    GLM_GTX_perpendicular +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType perp (genType const &x, genType const &Normal)
     Projects x a perpendicular axis of Normal. More...
     
    +

    Detailed Description

    +

    GLM_GTX_perpendicular

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_projection (dependence)
    + +

    Definition in file perpendicular.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00121_source.html b/external/glm-0.9.9.8/doc/api/a00121_source.html new file mode 100644 index 0000000..aab91a1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00121_source.html @@ -0,0 +1,125 @@ + + + + + + +0.9.9 API documentation: perpendicular.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    perpendicular.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include "../gtx/projection.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_perpendicular is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_perpendicular extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<typename genType>
    +
    36  GLM_FUNC_DECL genType perp(genType const& x, genType const& Normal);
    +
    37 
    +
    39 }//namespace glm
    +
    40 
    +
    41 #include "perpendicular.inl"
    +
    GLM_FUNC_DECL genType perp(genType const &x, genType const &Normal)
    Projects x a perpendicular axis of Normal.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00122.html b/external/glm-0.9.9.8/doc/api/a00122.html new file mode 100644 index 0000000..537b6de --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00122.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: polar_coordinates.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    polar_coordinates.hpp File Reference
    +
    +
    + +

    GLM_GTX_polar_coordinates +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > euclidean (vec< 2, T, Q > const &polar)
     Convert Polar to Euclidean coordinates. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > polar (vec< 3, T, Q > const &euclidean)
     Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude. More...
     
    +

    Detailed Description

    +

    GLM_GTX_polar_coordinates

    +
    See also
    Core features (dependence)
    + +

    Definition in file polar_coordinates.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00122_source.html b/external/glm-0.9.9.8/doc/api/a00122_source.html new file mode 100644 index 0000000..85bc08c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00122_source.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: polar_coordinates.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    polar_coordinates.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_polar_coordinates is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_polar_coordinates extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    34  template<typename T, qualifier Q>
    +
    35  GLM_FUNC_DECL vec<3, T, Q> polar(
    +
    36  vec<3, T, Q> const& euclidean);
    +
    37 
    +
    41  template<typename T, qualifier Q>
    +
    42  GLM_FUNC_DECL vec<3, T, Q> euclidean(
    +
    43  vec<2, T, Q> const& polar);
    +
    44 
    +
    46 }//namespace glm
    +
    47 
    +
    48 #include "polar_coordinates.inl"
    +
    GLM_FUNC_DECL vec< 3, T, Q > polar(vec< 3, T, Q > const &euclidean)
    Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude...
    +
    GLM_FUNC_DECL vec< 3, T, Q > euclidean(vec< 2, T, Q > const &polar)
    Convert Polar to Euclidean coordinates.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00123.html b/external/glm-0.9.9.8/doc/api/a00123.html new file mode 100644 index 0000000..5dda94d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00123.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: projection.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    projection.hpp File Reference
    +
    +
    + +

    GLM_GTX_projection +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType proj (genType const &x, genType const &Normal)
     Projects x on Normal. More...
     
    +

    Detailed Description

    +

    GLM_GTX_projection

    +
    See also
    Core features (dependence)
    + +

    Definition in file projection.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00123_source.html b/external/glm-0.9.9.8/doc/api/a00123_source.html new file mode 100644 index 0000000..626af2c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00123_source.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: projection.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    projection.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../geometric.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_projection is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_projection extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    37  template<typename genType>
    +
    38  GLM_FUNC_DECL genType proj(genType const& x, genType const& Normal);
    +
    39 
    +
    41 }//namespace glm
    +
    42 
    +
    43 #include "projection.inl"
    +
    GLM_FUNC_DECL genType proj(genType const &x, genType const &Normal)
    Projects x on Normal.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00124_source.html b/external/glm-0.9.9.8/doc/api/a00124_source.html new file mode 100644 index 0000000..b36efee --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00124_source.html @@ -0,0 +1,332 @@ + + + + + + +0.9.9 API documentation: qualifier.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    qualifier.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "setup.hpp"
    +
    4 
    +
    5 namespace glm
    +
    6 {
    +
    8  enum qualifier
    +
    9  {
    +
    10  packed_highp,
    +
    11  packed_mediump,
    +
    12  packed_lowp,
    +
    13 
    +
    14 # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
    +
    15  aligned_highp,
    +
    16  aligned_mediump,
    +
    17  aligned_lowp, // ///< Typed data is aligned in memory allowing SIMD optimizations and operations are executed with high precision in term of ULPs to maximize performance
    +
    18  aligned = aligned_highp,
    +
    19 # endif
    +
    20 
    +
    21  highp = packed_highp,
    +
    22  mediump = packed_mediump,
    +
    23  lowp = packed_lowp,
    +
    24  packed = packed_highp,
    +
    25 
    +
    26 # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE && defined(GLM_FORCE_DEFAULT_ALIGNED_GENTYPES)
    +
    27  defaultp = aligned_highp
    +
    28 # else
    +
    29  defaultp = highp
    +
    30 # endif
    +
    31  };
    +
    32 
    +
    33  typedef qualifier precision;
    +
    34 
    +
    35  template<length_t L, typename T, qualifier Q = defaultp> struct vec;
    +
    36  template<length_t C, length_t R, typename T, qualifier Q = defaultp> struct mat;
    +
    37  template<typename T, qualifier Q = defaultp> struct qua;
    +
    38 
    +
    39 # if GLM_HAS_TEMPLATE_ALIASES
    +
    40  template <typename T, qualifier Q = defaultp> using tvec1 = vec<1, T, Q>;
    +
    41  template <typename T, qualifier Q = defaultp> using tvec2 = vec<2, T, Q>;
    +
    42  template <typename T, qualifier Q = defaultp> using tvec3 = vec<3, T, Q>;
    +
    43  template <typename T, qualifier Q = defaultp> using tvec4 = vec<4, T, Q>;
    +
    44  template <typename T, qualifier Q = defaultp> using tmat2x2 = mat<2, 2, T, Q>;
    +
    45  template <typename T, qualifier Q = defaultp> using tmat2x3 = mat<2, 3, T, Q>;
    +
    46  template <typename T, qualifier Q = defaultp> using tmat2x4 = mat<2, 4, T, Q>;
    +
    47  template <typename T, qualifier Q = defaultp> using tmat3x2 = mat<3, 2, T, Q>;
    +
    48  template <typename T, qualifier Q = defaultp> using tmat3x3 = mat<3, 3, T, Q>;
    +
    49  template <typename T, qualifier Q = defaultp> using tmat3x4 = mat<3, 4, T, Q>;
    +
    50  template <typename T, qualifier Q = defaultp> using tmat4x2 = mat<4, 2, T, Q>;
    +
    51  template <typename T, qualifier Q = defaultp> using tmat4x3 = mat<4, 3, T, Q>;
    +
    52  template <typename T, qualifier Q = defaultp> using tmat4x4 = mat<4, 4, T, Q>;
    +
    53  template <typename T, qualifier Q = defaultp> using tquat = qua<T, Q>;
    +
    54 # endif
    +
    55 
    +
    56 namespace detail
    +
    57 {
    +
    58  template<glm::qualifier P>
    +
    59  struct is_aligned
    +
    60  {
    +
    61  static const bool value = false;
    +
    62  };
    +
    63 
    +
    64 # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
    +
    65  template<>
    +
    66  struct is_aligned<glm::aligned_lowp>
    +
    67  {
    +
    68  static const bool value = true;
    +
    69  };
    +
    70 
    +
    71  template<>
    +
    72  struct is_aligned<glm::aligned_mediump>
    +
    73  {
    +
    74  static const bool value = true;
    +
    75  };
    +
    76 
    +
    77  template<>
    +
    78  struct is_aligned<glm::aligned_highp>
    +
    79  {
    +
    80  static const bool value = true;
    +
    81  };
    +
    82 # endif
    +
    83 
    +
    84  template<length_t L, typename T, bool is_aligned>
    +
    85  struct storage
    +
    86  {
    +
    87  typedef struct type {
    +
    88  T data[L];
    +
    89  } type;
    +
    90  };
    +
    91 
    +
    92 # if GLM_HAS_ALIGNOF
    +
    93  template<length_t L, typename T>
    +
    94  struct storage<L, T, true>
    +
    95  {
    +
    96  typedef struct alignas(L * sizeof(T)) type {
    +
    97  T data[L];
    +
    98  } type;
    +
    99  };
    +
    100 
    +
    101  template<typename T>
    +
    102  struct storage<3, T, true>
    +
    103  {
    +
    104  typedef struct alignas(4 * sizeof(T)) type {
    +
    105  T data[4];
    +
    106  } type;
    +
    107  };
    +
    108 # endif
    +
    109 
    +
    110 # if GLM_ARCH & GLM_ARCH_SSE2_BIT
    +
    111  template<>
    +
    112  struct storage<4, float, true>
    +
    113  {
    +
    114  typedef glm_f32vec4 type;
    +
    115  };
    +
    116 
    +
    117  template<>
    +
    118  struct storage<4, int, true>
    +
    119  {
    +
    120  typedef glm_i32vec4 type;
    +
    121  };
    +
    122 
    +
    123  template<>
    +
    124  struct storage<4, unsigned int, true>
    +
    125  {
    +
    126  typedef glm_u32vec4 type;
    +
    127  };
    +
    128 
    +
    129  template<>
    +
    130  struct storage<2, double, true>
    +
    131  {
    +
    132  typedef glm_f64vec2 type;
    +
    133  };
    +
    134 
    +
    135  template<>
    +
    136  struct storage<2, detail::int64, true>
    +
    137  {
    +
    138  typedef glm_i64vec2 type;
    +
    139  };
    +
    140 
    +
    141  template<>
    +
    142  struct storage<2, detail::uint64, true>
    +
    143  {
    +
    144  typedef glm_u64vec2 type;
    +
    145  };
    +
    146 # endif
    +
    147 
    +
    148 # if (GLM_ARCH & GLM_ARCH_AVX_BIT)
    +
    149  template<>
    +
    150  struct storage<4, double, true>
    +
    151  {
    +
    152  typedef glm_f64vec4 type;
    +
    153  };
    +
    154 # endif
    +
    155 
    +
    156 # if (GLM_ARCH & GLM_ARCH_AVX2_BIT)
    +
    157  template<>
    +
    158  struct storage<4, detail::int64, true>
    +
    159  {
    +
    160  typedef glm_i64vec4 type;
    +
    161  };
    +
    162 
    +
    163  template<>
    +
    164  struct storage<4, detail::uint64, true>
    +
    165  {
    +
    166  typedef glm_u64vec4 type;
    +
    167  };
    +
    168 # endif
    +
    169 
    +
    170 # if GLM_ARCH & GLM_ARCH_NEON_BIT
    +
    171  template<>
    +
    172  struct storage<4, float, true>
    +
    173  {
    +
    174  typedef glm_f32vec4 type;
    +
    175  };
    +
    176 
    +
    177  template<>
    +
    178  struct storage<4, int, true>
    +
    179  {
    +
    180  typedef glm_i32vec4 type;
    +
    181  };
    +
    182 
    +
    183  template<>
    +
    184  struct storage<4, unsigned int, true>
    +
    185  {
    +
    186  typedef glm_u32vec4 type;
    +
    187  };
    +
    188 # endif
    +
    189 
    +
    190  enum genTypeEnum
    +
    191  {
    +
    192  GENTYPE_VEC,
    +
    193  GENTYPE_MAT,
    +
    194  GENTYPE_QUAT
    +
    195  };
    +
    196 
    +
    197  template <typename genType>
    +
    198  struct genTypeTrait
    +
    199  {};
    +
    200 
    +
    201  template <length_t C, length_t R, typename T>
    +
    202  struct genTypeTrait<mat<C, R, T> >
    +
    203  {
    +
    204  static const genTypeEnum GENTYPE = GENTYPE_MAT;
    +
    205  };
    +
    206 
    +
    207  template<typename genType, genTypeEnum type>
    +
    208  struct init_gentype
    +
    209  {
    +
    210  };
    +
    211 
    +
    212  template<typename genType>
    +
    213  struct init_gentype<genType, GENTYPE_QUAT>
    +
    214  {
    +
    215  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genType identity()
    +
    216  {
    +
    217  return genType(1, 0, 0, 0);
    +
    218  }
    +
    219  };
    +
    220 
    +
    221  template<typename genType>
    +
    222  struct init_gentype<genType, GENTYPE_MAT>
    +
    223  {
    +
    224  GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genType identity()
    +
    225  {
    +
    226  return genType(1);
    +
    227  }
    +
    228  };
    +
    229 }//namespace detail
    +
    230 }//namespace glm
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType identity()
    Builds an identity matrix.
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00125.html b/external/glm-0.9.9.8/doc/api/a00125.html new file mode 100644 index 0000000..e78bf25 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00125.html @@ -0,0 +1,177 @@ + + + + + + +0.9.9 API documentation: quaternion.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtc/quaternion.hpp File Reference
    +
    +
    + +

    GLM_GTC_quaternion +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > eulerAngles (qua< T, Q > const &x)
     Returns euler angles, pitch as x, yaw as y, roll as z. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThan (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x > y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThanEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x >= y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > lessThan (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison result of x < y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > lessThanEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x <= y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > mat3_cast (qua< T, Q > const &x)
     Converts a quaternion to a 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > mat4_cast (qua< T, Q > const &x)
     Converts a quaternion to a 4 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T pitch (qua< T, Q > const &x)
     Returns pitch value of euler angles expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_cast (mat< 3, 3, T, Q > const &x)
     Converts a pure rotation 3 * 3 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_cast (mat< 4, 4, T, Q > const &x)
     Converts a pure rotation 4 * 4 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAt (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a look at quaternion based on the default handedness. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAtLH (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a left-handed look at quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAtRH (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a right-handed look at quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T roll (qua< T, Q > const &x)
     Returns roll value of euler angles expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T yaw (qua< T, Q > const &x)
     Returns yaw value of euler angles expressed in radians. More...
     
    +

    Detailed Description

    +

    GLM_GTC_quaternion

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_constants (dependence)
    + +

    Definition in file gtc/quaternion.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00125_source.html b/external/glm-0.9.9.8/doc/api/a00125_source.html new file mode 100644 index 0000000..85befcb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00125_source.html @@ -0,0 +1,195 @@ + + + + + + +0.9.9 API documentation: quaternion.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/quaternion.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../gtc/constants.hpp"
    +
    18 #include "../gtc/matrix_transform.hpp"
    +
    19 #include "../ext/vector_relational.hpp"
    +
    20 #include "../ext/quaternion_common.hpp"
    +
    21 #include "../ext/quaternion_float.hpp"
    +
    22 #include "../ext/quaternion_float_precision.hpp"
    +
    23 #include "../ext/quaternion_double.hpp"
    +
    24 #include "../ext/quaternion_double_precision.hpp"
    +
    25 #include "../ext/quaternion_relational.hpp"
    +
    26 #include "../ext/quaternion_geometric.hpp"
    +
    27 #include "../ext/quaternion_trigonometric.hpp"
    +
    28 #include "../ext/quaternion_transform.hpp"
    +
    29 #include "../detail/type_mat3x3.hpp"
    +
    30 #include "../detail/type_mat4x4.hpp"
    +
    31 #include "../detail/type_vec3.hpp"
    +
    32 #include "../detail/type_vec4.hpp"
    +
    33 
    +
    34 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    35 # pragma message("GLM: GLM_GTC_quaternion extension included")
    +
    36 #endif
    +
    37 
    +
    38 namespace glm
    +
    39 {
    +
    42 
    +
    49  template<typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL vec<3, T, Q> eulerAngles(qua<T, Q> const& x);
    +
    51 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL T roll(qua<T, Q> const& x);
    +
    59 
    +
    65  template<typename T, qualifier Q>
    +
    66  GLM_FUNC_DECL T pitch(qua<T, Q> const& x);
    +
    67 
    +
    73  template<typename T, qualifier Q>
    +
    74  GLM_FUNC_DECL T yaw(qua<T, Q> const& x);
    +
    75 
    +
    81  template<typename T, qualifier Q>
    +
    82  GLM_FUNC_DECL mat<3, 3, T, Q> mat3_cast(qua<T, Q> const& x);
    +
    83 
    +
    89  template<typename T, qualifier Q>
    +
    90  GLM_FUNC_DECL mat<4, 4, T, Q> mat4_cast(qua<T, Q> const& x);
    +
    91 
    +
    97  template<typename T, qualifier Q>
    +
    98  GLM_FUNC_DECL qua<T, Q> quat_cast(mat<3, 3, T, Q> const& x);
    +
    99 
    +
    105  template<typename T, qualifier Q>
    +
    106  GLM_FUNC_DECL qua<T, Q> quat_cast(mat<4, 4, T, Q> const& x);
    +
    107 
    +
    114  template<typename T, qualifier Q>
    +
    115  GLM_FUNC_DECL vec<4, bool, Q> lessThan(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    116 
    +
    123  template<typename T, qualifier Q>
    +
    124  GLM_FUNC_DECL vec<4, bool, Q> lessThanEqual(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    125 
    +
    132  template<typename T, qualifier Q>
    +
    133  GLM_FUNC_DECL vec<4, bool, Q> greaterThan(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    134 
    +
    141  template<typename T, qualifier Q>
    +
    142  GLM_FUNC_DECL vec<4, bool, Q> greaterThanEqual(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    143 
    +
    148  template<typename T, qualifier Q>
    +
    149  GLM_FUNC_DECL qua<T, Q> quatLookAt(
    +
    150  vec<3, T, Q> const& direction,
    +
    151  vec<3, T, Q> const& up);
    +
    152 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL qua<T, Q> quatLookAtRH(
    +
    159  vec<3, T, Q> const& direction,
    +
    160  vec<3, T, Q> const& up);
    +
    161 
    +
    166  template<typename T, qualifier Q>
    +
    167  GLM_FUNC_DECL qua<T, Q> quatLookAtLH(
    +
    168  vec<3, T, Q> const& direction,
    +
    169  vec<3, T, Q> const& up);
    +
    171 } //namespace glm
    +
    172 
    +
    173 #include "quaternion.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > mat4_cast(qua< T, Q > const &x)
    Converts a quaternion to a 4 * 4 matrix.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThan(qua< T, Q > const &x, qua< T, Q > const &y)
    Returns the component-wise comparison of result x > y.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)
    Returns the component-wise comparison of result x >= y.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > lessThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)
    Returns the component-wise comparison of result x <= y.
    +
    GLM_FUNC_DECL T roll(qua< T, Q > const &x)
    Returns roll value of euler angles expressed in radians.
    +
    GLM_FUNC_DECL qua< T, Q > quatLookAt(vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
    Build a look at quaternion based on the default handedness.
    +
    GLM_FUNC_DECL qua< T, Q > quat_cast(mat< 4, 4, T, Q > const &x)
    Converts a pure rotation 4 * 4 matrix to a quaternion.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > mat3_cast(qua< T, Q > const &x)
    Converts a quaternion to a 3 * 3 matrix.
    +
    GLM_FUNC_DECL vec< 3, T, Q > eulerAngles(qua< T, Q > const &x)
    Returns euler angles, pitch as x, yaw as y, roll as z.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > lessThan(qua< T, Q > const &x, qua< T, Q > const &y)
    Returns the component-wise comparison result of x < y.
    +
    GLM_FUNC_DECL T yaw(qua< T, Q > const &x)
    Returns yaw value of euler angles expressed in radians.
    +
    GLM_FUNC_DECL qua< T, Q > quatLookAtLH(vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
    Build a left-handed look at quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > quatLookAtRH(vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
    Build a right-handed look at quaternion.
    +
    GLM_FUNC_DECL T pitch(qua< T, Q > const &x)
    Returns pitch value of euler angles expressed in radians.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00126.html b/external/glm-0.9.9.8/doc/api/a00126.html new file mode 100644 index 0000000..9290a1f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00126.html @@ -0,0 +1,181 @@ + + + + + + +0.9.9 API documentation: quaternion.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtx/quaternion.hpp File Reference
    +
    +
    + +

    GLM_GTX_quaternion +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (qua< T, Q > const &q, vec< 3, T, Q > const &v)
     Compute a cross product between a quaternion and a vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (vec< 3, T, Q > const &v, qua< T, Q > const &q)
     Compute a cross product between a vector and a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T extractRealComponent (qua< T, Q > const &q)
     Extract the real component of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > fastMix (qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
     Quaternion normalized linear interpolation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > intermediate (qua< T, Q > const &prev, qua< T, Q > const &curr, qua< T, Q > const &next)
     Returns an intermediate control point for squad interpolation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T length2 (qua< T, Q > const &q)
     Returns the squared length of x. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_identity ()
     Create an identity quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotate (qua< T, Q > const &q, vec< 3, T, Q > const &v)
     Returns quarternion square root. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotate (qua< T, Q > const &q, vec< 4, T, Q > const &v)
     Rotates a 4 components vector by a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotation (vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dest)
     Compute the rotation between two vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > shortMix (qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
     Quaternion interpolation using the rotation short path. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > squad (qua< T, Q > const &q1, qua< T, Q > const &q2, qua< T, Q > const &s1, qua< T, Q > const &s2, T const &h)
     Compute a point on a path according squad equation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > toMat3 (qua< T, Q > const &x)
     Converts a quaternion to a 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > toMat4 (qua< T, Q > const &x)
     Converts a quaternion to a 4 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > toQuat (mat< 3, 3, T, Q > const &x)
     Converts a 3 * 3 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > toQuat (mat< 4, 4, T, Q > const &x)
     Converts a 4 * 4 matrix to a quaternion. More...
     
    +

    Detailed Description

    +

    GLM_GTX_quaternion

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file gtx/quaternion.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00126_source.html b/external/glm-0.9.9.8/doc/api/a00126_source.html new file mode 100644 index 0000000..d6eaf92 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00126_source.html @@ -0,0 +1,221 @@ + + + + + + +0.9.9 API documentation: quaternion.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/quaternion.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include "../gtc/constants.hpp"
    +
    19 #include "../gtc/quaternion.hpp"
    +
    20 #include "../ext/quaternion_exponential.hpp"
    +
    21 #include "../gtx/norm.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    25 # pragma message("GLM: GLM_GTX_quaternion is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    26 # else
    +
    27 # pragma message("GLM: GLM_GTX_quaternion extension included")
    +
    28 # endif
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    39  template<typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL qua<T, Q> quat_identity();
    +
    41 
    +
    45  template<typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL vec<3, T, Q> cross(
    +
    47  qua<T, Q> const& q,
    +
    48  vec<3, T, Q> const& v);
    +
    49 
    +
    53  template<typename T, qualifier Q>
    +
    54  GLM_FUNC_DECL vec<3, T, Q> cross(
    +
    55  vec<3, T, Q> const& v,
    +
    56  qua<T, Q> const& q);
    +
    57 
    +
    62  template<typename T, qualifier Q>
    +
    63  GLM_FUNC_DECL qua<T, Q> squad(
    +
    64  qua<T, Q> const& q1,
    +
    65  qua<T, Q> const& q2,
    +
    66  qua<T, Q> const& s1,
    +
    67  qua<T, Q> const& s2,
    +
    68  T const& h);
    +
    69 
    +
    73  template<typename T, qualifier Q>
    +
    74  GLM_FUNC_DECL qua<T, Q> intermediate(
    +
    75  qua<T, Q> const& prev,
    +
    76  qua<T, Q> const& curr,
    +
    77  qua<T, Q> const& next);
    +
    78 
    +
    82  //template<typename T, qualifier Q>
    +
    83  //qua<T, Q> sqrt(
    +
    84  // qua<T, Q> const& q);
    +
    85 
    +
    89  template<typename T, qualifier Q>
    +
    90  GLM_FUNC_DECL vec<3, T, Q> rotate(
    +
    91  qua<T, Q> const& q,
    +
    92  vec<3, T, Q> const& v);
    +
    93 
    +
    97  template<typename T, qualifier Q>
    +
    98  GLM_FUNC_DECL vec<4, T, Q> rotate(
    +
    99  qua<T, Q> const& q,
    +
    100  vec<4, T, Q> const& v);
    +
    101 
    +
    105  template<typename T, qualifier Q>
    +
    106  GLM_FUNC_DECL T extractRealComponent(
    +
    107  qua<T, Q> const& q);
    +
    108 
    +
    112  template<typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL mat<3, 3, T, Q> toMat3(
    +
    114  qua<T, Q> const& x){return mat3_cast(x);}
    +
    115 
    +
    119  template<typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL mat<4, 4, T, Q> toMat4(
    +
    121  qua<T, Q> const& x){return mat4_cast(x);}
    +
    122 
    +
    126  template<typename T, qualifier Q>
    +
    127  GLM_FUNC_DECL qua<T, Q> toQuat(
    +
    128  mat<3, 3, T, Q> const& x){return quat_cast(x);}
    +
    129 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL qua<T, Q> toQuat(
    +
    135  mat<4, 4, T, Q> const& x){return quat_cast(x);}
    +
    136 
    +
    140  template<typename T, qualifier Q>
    +
    141  GLM_FUNC_DECL qua<T, Q> shortMix(
    +
    142  qua<T, Q> const& x,
    +
    143  qua<T, Q> const& y,
    +
    144  T const& a);
    +
    145 
    +
    149  template<typename T, qualifier Q>
    +
    150  GLM_FUNC_DECL qua<T, Q> fastMix(
    +
    151  qua<T, Q> const& x,
    +
    152  qua<T, Q> const& y,
    +
    153  T const& a);
    +
    154 
    +
    160  template<typename T, qualifier Q>
    +
    161  GLM_FUNC_DECL qua<T, Q> rotation(
    +
    162  vec<3, T, Q> const& orig,
    +
    163  vec<3, T, Q> const& dest);
    +
    164 
    +
    168  template<typename T, qualifier Q>
    +
    169  GLM_FUNC_DECL T length2(qua<T, Q> const& q);
    +
    170 
    +
    172 }//namespace glm
    +
    173 
    +
    174 #include "quaternion.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > mat4_cast(qua< T, Q > const &x)
    Converts a quaternion to a 4 * 4 matrix.
    +
    GLM_FUNC_DECL qua< T, Q > shortMix(qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
    Quaternion interpolation using the rotation short path.
    +
    GLM_FUNC_DECL qua< T, Q > quat_identity()
    Create an identity quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > quat_cast(mat< 3, 3, T, Q > const &x)
    Converts a pure rotation 3 * 3 matrix to a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > intermediate(qua< T, Q > const &prev, qua< T, Q > const &curr, qua< T, Q > const &next)
    Returns an intermediate control point for squad interpolation.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > mat3_cast(qua< T, Q > const &x)
    Converts a quaternion to a 3 * 3 matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > toMat4(qua< T, Q > const &x)
    Converts a quaternion to a 4 * 4 matrix.
    +
    GLM_FUNC_DECL T extractRealComponent(qua< T, Q > const &q)
    Extract the real component of a quaternion.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > toMat3(qua< T, Q > const &x)
    Converts a quaternion to a 3 * 3 matrix.
    +
    GLM_FUNC_DECL qua< T, Q > squad(qua< T, Q > const &q1, qua< T, Q > const &q2, qua< T, Q > const &s1, qua< T, Q > const &s2, T const &h)
    Compute a point on a path according squad equation.
    +
    GLM_FUNC_DECL vec< 3, T, Q > cross(vec< 3, T, Q > const &v, qua< T, Q > const &q)
    Compute a cross product between a vector and a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > toQuat(mat< 4, 4, T, Q > const &x)
    Converts a 4 * 4 matrix to a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > rotation(vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dest)
    Compute the rotation between two vectors.
    +
    GLM_FUNC_DECL vec< 4, T, Q > rotate(qua< T, Q > const &q, vec< 4, T, Q > const &v)
    Rotates a 4 components vector by a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > fastMix(qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
    Quaternion normalized linear interpolation.
    +
    GLM_FUNC_DECL T length2(qua< T, Q > const &q)
    Returns the squared length of x.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00127.html b/external/glm-0.9.9.8/doc/api/a00127.html new file mode 100644 index 0000000..2b513c2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00127.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: quaternion_common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_common.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_common +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > conjugate (qua< T, Q > const &q)
     Returns the q conjugate. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > inverse (qua< T, Q > const &q)
     Returns the q inverse. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isinf (qua< T, Q > const &x)
     Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isnan (qua< T, Q > const &x)
     Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > lerp (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Linear interpolation of two quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > mix (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Spherical linear interpolation of two quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > slerp (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Spherical linear interpolation of two quaternions. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00127_source.html b/external/glm-0.9.9.8/doc/api/a00127_source.html new file mode 100644 index 0000000..c3a70f6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00127_source.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: quaternion_common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    21 #pragma once
    +
    22 
    +
    23 // Dependency:
    +
    24 #include "../ext/scalar_constants.hpp"
    +
    25 #include "../ext/quaternion_geometric.hpp"
    +
    26 #include "../common.hpp"
    +
    27 #include "../trigonometric.hpp"
    +
    28 #include "../exponential.hpp"
    +
    29 #include <limits>
    +
    30 
    +
    31 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    32 # pragma message("GLM: GLM_EXT_quaternion_common extension included")
    +
    33 #endif
    +
    34 
    +
    35 namespace glm
    +
    36 {
    +
    39 
    +
    52  template<typename T, qualifier Q>
    +
    53  GLM_FUNC_DECL qua<T, Q> mix(qua<T, Q> const& x, qua<T, Q> const& y, T a);
    +
    54 
    +
    64  template<typename T, qualifier Q>
    +
    65  GLM_FUNC_DECL qua<T, Q> lerp(qua<T, Q> const& x, qua<T, Q> const& y, T a);
    +
    66 
    +
    76  template<typename T, qualifier Q>
    +
    77  GLM_FUNC_DECL qua<T, Q> slerp(qua<T, Q> const& x, qua<T, Q> const& y, T a);
    +
    78 
    +
    83  template<typename T, qualifier Q>
    +
    84  GLM_FUNC_DECL qua<T, Q> conjugate(qua<T, Q> const& q);
    +
    85 
    +
    90  template<typename T, qualifier Q>
    +
    91  GLM_FUNC_DECL qua<T, Q> inverse(qua<T, Q> const& q);
    +
    92 
    +
    103  template<typename T, qualifier Q>
    +
    104  GLM_FUNC_DECL vec<4, bool, Q> isnan(qua<T, Q> const& x);
    +
    105 
    +
    114  template<typename T, qualifier Q>
    +
    115  GLM_FUNC_DECL vec<4, bool, Q> isinf(qua<T, Q> const& x);
    +
    116 
    +
    118 } //namespace glm
    +
    119 
    +
    120 #include "quaternion_common.inl"
    +
    GLM_FUNC_DECL vec< 4, bool, Q > isinf(qua< T, Q > const &x)
    Returns true if x holds a positive infinity or negative infinity representation in the underlying imp...
    +
    GLM_FUNC_DECL vec< 4, bool, Q > isnan(qua< T, Q > const &x)
    Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of...
    +
    GLM_FUNC_DECL qua< T, Q > conjugate(qua< T, Q > const &q)
    Returns the q conjugate.
    +
    GLM_FUNC_DECL qua< T, Q > slerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)
    Spherical linear interpolation of two quaternions.
    +
    GLM_FUNC_DECL qua< T, Q > inverse(qua< T, Q > const &q)
    Returns the q inverse.
    +
    GLM_FUNC_DECL qua< T, Q > lerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)
    Linear interpolation of two quaternions.
    +
    GLM_FUNC_DECL qua< T, Q > mix(qua< T, Q > const &x, qua< T, Q > const &y, T a)
    Spherical linear interpolation of two quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00128.html b/external/glm-0.9.9.8/doc/api/a00128.html new file mode 100644 index 0000000..2c40585 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00128.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: quaternion_double.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_double.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_double +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef qua< double, defaultp > dquat
     Quaternion of double-precision floating-point numbers.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00128_source.html b/external/glm-0.9.9.8/doc/api/a00128_source.html new file mode 100644 index 0000000..71bca6a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00128_source.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: quaternion_double.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_double.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependency:
    +
    23 #include "../detail/type_quat.hpp"
    +
    24 
    +
    25 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    26 # pragma message("GLM: GLM_EXT_quaternion_double extension included")
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    35  typedef qua<double, defaultp> dquat;
    +
    36 
    +
    38 } //namespace glm
    +
    39 
    +
    qua< double, defaultp > dquat
    Quaternion of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00129.html b/external/glm-0.9.9.8/doc/api/a00129.html new file mode 100644 index 0000000..04a3546 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00129.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: quaternion_double_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_double_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_double_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef qua< double, highp > highp_dquat
     Quaternion of high double-qualifier floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef qua< double, lowp > lowp_dquat
     Quaternion of double-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef qua< double, mediump > mediump_dquat
     Quaternion of medium double-qualifier floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00129_source.html b/external/glm-0.9.9.8/doc/api/a00129_source.html new file mode 100644 index 0000000..e8de484 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00129_source.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: quaternion_double_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_double_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 // Dependency:
    +
    14 #include "../detail/type_quat.hpp"
    +
    15 
    +
    16 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    17 # pragma message("GLM: GLM_EXT_quaternion_double_precision extension included")
    +
    18 #endif
    +
    19 
    +
    20 namespace glm
    +
    21 {
    +
    24 
    +
    28  typedef qua<double, lowp> lowp_dquat;
    +
    29 
    +
    33  typedef qua<double, mediump> mediump_dquat;
    +
    34 
    +
    38  typedef qua<double, highp> highp_dquat;
    +
    39 
    +
    41 } //namespace glm
    +
    42 
    +
    qua< double, mediump > mediump_dquat
    Quaternion of medium double-qualifier floating-point numbers using high precision arithmetic in term ...
    +
    qua< double, highp > highp_dquat
    Quaternion of high double-qualifier floating-point numbers using high precision arithmetic in term of...
    +
    qua< double, lowp > lowp_dquat
    Quaternion of double-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00130.html b/external/glm-0.9.9.8/doc/api/a00130.html new file mode 100644 index 0000000..ac51d6b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00130.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: quaternion_exponential.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_exponential.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_exponential +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > exp (qua< T, Q > const &q)
     Returns a exponential of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > log (qua< T, Q > const &q)
     Returns a logarithm of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > pow (qua< T, Q > const &q, T y)
     Returns a quaternion raised to a power. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > sqrt (qua< T, Q > const &q)
     Returns the square root of a quaternion. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00130_source.html b/external/glm-0.9.9.8/doc/api/a00130_source.html new file mode 100644 index 0000000..bccb772 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00130_source.html @@ -0,0 +1,135 @@ + + + + + + +0.9.9 API documentation: quaternion_exponential.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_exponential.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../common.hpp"
    +
    19 #include "../trigonometric.hpp"
    +
    20 #include "../geometric.hpp"
    +
    21 #include "../ext/scalar_constants.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # pragma message("GLM: GLM_EXT_quaternion_exponential extension included")
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    36  template<typename T, qualifier Q>
    +
    37  GLM_FUNC_DECL qua<T, Q> exp(qua<T, Q> const& q);
    +
    38 
    +
    43  template<typename T, qualifier Q>
    +
    44  GLM_FUNC_DECL qua<T, Q> log(qua<T, Q> const& q);
    +
    45 
    +
    50  template<typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL qua<T, Q> pow(qua<T, Q> const& q, T y);
    +
    52 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL qua<T, Q> sqrt(qua<T, Q> const& q);
    +
    59 
    +
    61 } //namespace glm
    +
    62 
    +
    63 #include "quaternion_exponential.inl"
    +
    GLM_FUNC_DECL qua< T, Q > log(qua< T, Q > const &q)
    Returns a logarithm of a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > pow(qua< T, Q > const &q, T y)
    Returns a quaternion raised to a power.
    +
    GLM_FUNC_DECL qua< T, Q > sqrt(qua< T, Q > const &q)
    Returns the square root of a quaternion.
    +
    GLM_FUNC_DECL qua< T, Q > exp(qua< T, Q > const &q)
    Returns a exponential of a quaternion.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00131.html b/external/glm-0.9.9.8/doc/api/a00131.html new file mode 100644 index 0000000..c3950a6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00131.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: quaternion_float.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_float.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_float +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef qua< float, defaultp > quat
     Quaternion of single-precision floating-point numbers.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00131_source.html b/external/glm-0.9.9.8/doc/api/a00131_source.html new file mode 100644 index 0000000..67259a8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00131_source.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: quaternion_float.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_float.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 // Dependency:
    +
    23 #include "../detail/type_quat.hpp"
    +
    24 
    +
    25 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    26 # pragma message("GLM: GLM_EXT_quaternion_float extension included")
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    35  typedef qua<float, defaultp> quat;
    +
    36 
    +
    38 } //namespace glm
    +
    39 
    +
    qua< float, defaultp > quat
    Quaternion of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00132.html b/external/glm-0.9.9.8/doc/api/a00132.html new file mode 100644 index 0000000..39fefd0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00132.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: quaternion_float_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_float_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_float_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    +typedef qua< float, highp > highp_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef qua< float, lowp > lowp_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef qua< float, mediump > mediump_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00132_source.html b/external/glm-0.9.9.8/doc/api/a00132_source.html new file mode 100644 index 0000000..6e7462c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00132_source.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: quaternion_float_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_float_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 // Dependency:
    +
    14 #include "../detail/type_quat.hpp"
    +
    15 
    +
    16 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    17 # pragma message("GLM: GLM_EXT_quaternion_float_precision extension included")
    +
    18 #endif
    +
    19 
    +
    20 namespace glm
    +
    21 {
    +
    24 
    +
    26  typedef qua<float, lowp> lowp_quat;
    +
    27 
    +
    29  typedef qua<float, mediump> mediump_quat;
    +
    30 
    +
    32  typedef qua<float, highp> highp_quat;
    +
    33 
    +
    35 } //namespace glm
    +
    36 
    +
    qua< float, highp > highp_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    qua< float, mediump > mediump_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    qua< float, lowp > lowp_quat
    Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00133.html b/external/glm-0.9.9.8/doc/api/a00133.html new file mode 100644 index 0000000..e380899 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00133.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: quaternion_geometric.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_geometric.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_geometric +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER qua< T, Q > cross (qua< T, Q > const &q1, qua< T, Q > const &q2)
     Compute a cross product. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T dot (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ... More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T length (qua< T, Q > const &q)
     Returns the norm of a quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > normalize (qua< T, Q > const &q)
     Returns the normalized quaternion. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00133_source.html b/external/glm-0.9.9.8/doc/api/a00133_source.html new file mode 100644 index 0000000..a78453b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00133_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: quaternion_geometric.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_geometric.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../geometric.hpp"
    +
    19 #include "../exponential.hpp"
    +
    20 #include "../ext/vector_relational.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_EXT_quaternion_geometric extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    37  template<typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL T length(qua<T, Q> const& q);
    +
    39 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL qua<T, Q> normalize(qua<T, Q> const& q);
    +
    48 
    +
    55  template<typename T, qualifier Q>
    +
    56  GLM_FUNC_DECL T dot(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    57 
    +
    64  template<typename T, qualifier Q>
    +
    65  GLM_FUNC_QUALIFIER qua<T, Q> cross(qua<T, Q> const& q1, qua<T, Q> const& q2);
    +
    66 
    +
    68 } //namespace glm
    +
    69 
    +
    70 #include "quaternion_geometric.inl"
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    GLM_FUNC_DECL T dot(qua< T, Q > const &x, qua< T, Q > const &y)
    Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ...
    +
    GLM_FUNC_QUALIFIER qua< T, Q > cross(qua< T, Q > const &q1, qua< T, Q > const &q2)
    Compute a cross product.
    +
    GLM_FUNC_DECL qua< T, Q > normalize(qua< T, Q > const &q)
    Returns the normalized quaternion.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00134.html b/external/glm-0.9.9.8/doc/api/a00134.html new file mode 100644 index 0000000..856556b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00134.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: quaternion_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_relational.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_relational +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > equal (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x == y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > equal (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > notEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x != y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > notEqual (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00134_source.html b/external/glm-0.9.9.8/doc/api/a00134_source.html new file mode 100644 index 0000000..6e4826b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00134_source.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: quaternion_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 // Dependency:
    +
    20 #include "../vector_relational.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_EXT_quaternion_relational extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    35  template<typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL vec<4, bool, Q> equal(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    37 
    +
    42  template<typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL vec<4, bool, Q> equal(qua<T, Q> const& x, qua<T, Q> const& y, T epsilon);
    +
    44 
    +
    49  template<typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL vec<4, bool, Q> notEqual(qua<T, Q> const& x, qua<T, Q> const& y);
    +
    51 
    +
    56  template<typename T, qualifier Q>
    +
    57  GLM_FUNC_DECL vec<4, bool, Q> notEqual(qua<T, Q> const& x, qua<T, Q> const& y, T epsilon);
    +
    58 
    +
    60 } //namespace glm
    +
    61 
    +
    62 #include "quaternion_relational.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > notEqual(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
    Returns the component-wise comparison of |x - y| >= epsilon.
    +
    GLM_FUNC_DECL vec< 4, bool, Q > equal(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
    Returns the component-wise comparison of |x - y| < epsilon.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00135.html b/external/glm-0.9.9.8/doc/api/a00135.html new file mode 100644 index 0000000..443c0bb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00135.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: quaternion_transform.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_transform.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_transform +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotate (qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
     Rotates a quaternion from a vector of 3 components axis and an angle. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00135_source.html b/external/glm-0.9.9.8/doc/api/a00135_source.html new file mode 100644 index 0000000..7e7c2ce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00135_source.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: quaternion_transform.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_transform.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    18 #pragma once
    +
    19 
    +
    20 // Dependency:
    +
    21 #include "../common.hpp"
    +
    22 #include "../trigonometric.hpp"
    +
    23 #include "../geometric.hpp"
    +
    24 
    +
    25 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    26 # pragma message("GLM: GLM_EXT_quaternion_transform extension included")
    +
    27 #endif
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    42  template<typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL qua<T, Q> rotate(qua<T, Q> const& q, T const& angle, vec<3, T, Q> const& axis);
    +
    45 } //namespace glm
    +
    46 
    +
    47 #include "quaternion_transform.inl"
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL qua< T, Q > rotate(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
    Rotates a quaternion from a vector of 3 components axis and an angle.
    +
    GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
    Returns the q rotation axis.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00136.html b/external/glm-0.9.9.8/doc/api/a00136.html new file mode 100644 index 0000000..82bedcf --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00136.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: quaternion_trigonometric.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    quaternion_trigonometric.hpp File Reference
    +
    +
    + +

    GLM_EXT_quaternion_trigonometric +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T angle (qua< T, Q > const &x)
     Returns the quaternion rotation angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > angleAxis (T const &angle, vec< 3, T, Q > const &axis)
     Build a quaternion from an angle and a normalized axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > axis (qua< T, Q > const &x)
     Returns the q rotation axis. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00136_source.html b/external/glm-0.9.9.8/doc/api/a00136_source.html new file mode 100644 index 0000000..c67347e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00136_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: quaternion_trigonometric.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    quaternion_trigonometric.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    18 #pragma once
    +
    19 
    +
    20 // Dependency:
    +
    21 #include "../trigonometric.hpp"
    +
    22 #include "../exponential.hpp"
    +
    23 #include "scalar_constants.hpp"
    +
    24 #include "vector_relational.hpp"
    +
    25 #include <limits>
    +
    26 
    +
    27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    28 # pragma message("GLM: GLM_EXT_quaternion_trigonometric extension included")
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL T angle(qua<T, Q> const& x);
    +
    42 
    +
    47  template<typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL vec<3, T, Q> axis(qua<T, Q> const& x);
    +
    49 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL qua<T, Q> angleAxis(T const& angle, vec<3, T, Q> const& axis);
    +
    59 
    +
    61 } //namespace glm
    +
    62 
    +
    63 #include "quaternion_trigonometric.inl"
    +
    GLM_EXT_vector_relational
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL qua< T, Q > angleAxis(T const &angle, vec< 3, T, Q > const &axis)
    Build a quaternion from an angle and a normalized axis.
    +
    GLM_EXT_scalar_constants
    +
    GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
    Returns the q rotation axis.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00137.html b/external/glm-0.9.9.8/doc/api/a00137.html new file mode 100644 index 0000000..054fd83 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00137.html @@ -0,0 +1,145 @@ + + + + + + +0.9.9 API documentation: random.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    random.hpp File Reference
    +
    +
    + +

    GLM_GTC_random +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > ballRand (T Radius)
     Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > circularRand (T Radius)
     Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > diskRand (T Radius)
     Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType gaussRand (genType Mean, genType Deviation)
     Generate random numbers in the interval [Min, Max], according a gaussian distribution. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType linearRand (genType Min, genType Max)
     Generate random numbers in the interval [Min, Max], according a linear distribution. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > linearRand (vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Generate random numbers in the interval [Min, Max], according a linear distribution. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > sphericalRand (T Radius)
     Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius. More...
     
    +

    Detailed Description

    +

    GLM_GTC_random

    +
    See also
    Core features (dependence)
    +
    +gtx_random (extended)
    + +

    Definition in file random.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00137_source.html b/external/glm-0.9.9.8/doc/api/a00137_source.html new file mode 100644 index 0000000..1188b36 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00137_source.html @@ -0,0 +1,145 @@ + + + + + + +0.9.9 API documentation: random.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    random.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../ext/scalar_int_sized.hpp"
    +
    18 #include "../ext/scalar_uint_sized.hpp"
    +
    19 #include "../detail/qualifier.hpp"
    +
    20 
    +
    21 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    22 # pragma message("GLM: GLM_GTC_random extension included")
    +
    23 #endif
    +
    24 
    +
    25 namespace glm
    +
    26 {
    +
    29 
    +
    36  template<typename genType>
    +
    37  GLM_FUNC_DECL genType linearRand(genType Min, genType Max);
    +
    38 
    +
    46  template<length_t L, typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL vec<L, T, Q> linearRand(vec<L, T, Q> const& Min, vec<L, T, Q> const& Max);
    +
    48 
    +
    52  template<typename genType>
    +
    53  GLM_FUNC_DECL genType gaussRand(genType Mean, genType Deviation);
    +
    54 
    +
    58  template<typename T>
    +
    59  GLM_FUNC_DECL vec<2, T, defaultp> circularRand(T Radius);
    +
    60 
    +
    64  template<typename T>
    +
    65  GLM_FUNC_DECL vec<3, T, defaultp> sphericalRand(T Radius);
    +
    66 
    +
    70  template<typename T>
    +
    71  GLM_FUNC_DECL vec<2, T, defaultp> diskRand(T Radius);
    +
    72 
    +
    76  template<typename T>
    +
    77  GLM_FUNC_DECL vec<3, T, defaultp> ballRand(T Radius);
    +
    78 
    +
    80 }//namespace glm
    +
    81 
    +
    82 #include "random.inl"
    +
    GLM_FUNC_DECL vec< 2, T, defaultp > circularRand(T Radius)
    Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius...
    +
    GLM_FUNC_DECL vec< 2, T, defaultp > diskRand(T Radius)
    Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a...
    +
    GLM_FUNC_DECL genType gaussRand(genType Mean, genType Deviation)
    Generate random numbers in the interval [Min, Max], according a gaussian distribution.
    +
    GLM_FUNC_DECL vec< 3, T, defaultp > sphericalRand(T Radius)
    Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius...
    +
    GLM_FUNC_DECL vec< 3, T, defaultp > ballRand(T Radius)
    Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of...
    +
    GLM_FUNC_DECL vec< L, T, Q > linearRand(vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
    Generate random numbers in the interval [Min, Max], according a linear distribution.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00138.html b/external/glm-0.9.9.8/doc/api/a00138.html new file mode 100644 index 0000000..8c578cd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00138.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: range.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    range.hpp File Reference
    +
    +
    + +

    GLM_GTX_range +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTX_range

    +
    Author
    Joshua Moerman
    + +

    Definition in file range.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00138_source.html b/external/glm-0.9.9.8/doc/api/a00138_source.html new file mode 100644 index 0000000..b127fbc --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00138_source.html @@ -0,0 +1,185 @@ + + + + + + +0.9.9 API documentation: range.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    range.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../detail/setup.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_range is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_range extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 #include "../gtc/type_ptr.hpp"
    +
    27 #include "../gtc/vec1.hpp"
    +
    28 
    +
    29 namespace glm
    +
    30 {
    +
    33 
    +
    34 # if GLM_COMPILER & GLM_COMPILER_VC
    +
    35 # pragma warning(push)
    +
    36 # pragma warning(disable : 4100) // unreferenced formal parameter
    +
    37 # endif
    +
    38 
    +
    39  template<typename T, qualifier Q>
    +
    40  inline length_t components(vec<1, T, Q> const& v)
    +
    41  {
    +
    42  return v.length();
    +
    43  }
    +
    44 
    +
    45  template<typename T, qualifier Q>
    +
    46  inline length_t components(vec<2, T, Q> const& v)
    +
    47  {
    +
    48  return v.length();
    +
    49  }
    +
    50 
    +
    51  template<typename T, qualifier Q>
    +
    52  inline length_t components(vec<3, T, Q> const& v)
    +
    53  {
    +
    54  return v.length();
    +
    55  }
    +
    56 
    +
    57  template<typename T, qualifier Q>
    +
    58  inline length_t components(vec<4, T, Q> const& v)
    +
    59  {
    +
    60  return v.length();
    +
    61  }
    +
    62 
    +
    63  template<typename genType>
    +
    64  inline length_t components(genType const& m)
    +
    65  {
    +
    66  return m.length() * m[0].length();
    +
    67  }
    +
    68 
    +
    69  template<typename genType>
    +
    70  inline typename genType::value_type const * begin(genType const& v)
    +
    71  {
    +
    72  return value_ptr(v);
    +
    73  }
    +
    74 
    +
    75  template<typename genType>
    +
    76  inline typename genType::value_type const * end(genType const& v)
    +
    77  {
    +
    78  return begin(v) + components(v);
    +
    79  }
    +
    80 
    +
    81  template<typename genType>
    +
    82  inline typename genType::value_type * begin(genType& v)
    +
    83  {
    +
    84  return value_ptr(v);
    +
    85  }
    +
    86 
    +
    87  template<typename genType>
    +
    88  inline typename genType::value_type * end(genType& v)
    +
    89  {
    +
    90  return begin(v) + components(v);
    +
    91  }
    +
    92 
    +
    93 # if GLM_COMPILER & GLM_COMPILER_VC
    +
    94 # pragma warning(pop)
    +
    95 # endif
    +
    96 
    +
    98 }//namespace glm
    +
    GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &v)
    Return the constant address to the data of the input parameter.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00139.html b/external/glm-0.9.9.8/doc/api/a00139.html new file mode 100644 index 0000000..d2d77d0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00139.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: raw_data.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    raw_data.hpp File Reference
    +
    +
    + +

    GLM_GTX_raw_data +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Typedefs

    typedef detail::uint8 byte
     Type for byte numbers. More...
     
    typedef detail::uint32 dword
     Type for dword numbers. More...
     
    typedef detail::uint64 qword
     Type for qword numbers. More...
     
    typedef detail::uint16 word
     Type for word numbers. More...
     
    +

    Detailed Description

    +

    GLM_GTX_raw_data

    +
    See also
    Core features (dependence)
    + +

    Definition in file raw_data.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00139_source.html b/external/glm-0.9.9.8/doc/api/a00139_source.html new file mode 100644 index 0000000..91b3389 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00139_source.html @@ -0,0 +1,133 @@ + + + + + + +0.9.9 API documentation: raw_data.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    raw_data.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../ext/scalar_uint_sized.hpp"
    +
    17 #include "../detail/setup.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_raw_data is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_raw_data extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  typedef detail::uint8 byte;
    +
    35 
    +
    38  typedef detail::uint16 word;
    +
    39 
    +
    42  typedef detail::uint32 dword;
    +
    43 
    +
    46  typedef detail::uint64 qword;
    +
    47 
    +
    49 }// namespace glm
    +
    50 
    +
    51 #include "raw_data.inl"
    +
    detail::uint32 dword
    Type for dword numbers.
    Definition: raw_data.hpp:42
    +
    detail::uint8 byte
    Type for byte numbers.
    Definition: raw_data.hpp:34
    +
    detail::uint64 qword
    Type for qword numbers.
    Definition: raw_data.hpp:46
    +
    detail::uint16 word
    Type for word numbers.
    Definition: raw_data.hpp:38
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00140.html b/external/glm-0.9.9.8/doc/api/a00140.html new file mode 100644 index 0000000..61423a1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00140.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: reciprocal.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    reciprocal.hpp File Reference
    +
    +
    + +

    GLM_GTC_reciprocal +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType acot (genType x)
     Inverse cotangent function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acoth (genType x)
     Inverse cotangent hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acsc (genType x)
     Inverse cosecant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acsch (genType x)
     Inverse cosecant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType asec (genType x)
     Inverse secant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType asech (genType x)
     Inverse secant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cot (genType angle)
     Cotangent function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType coth (genType angle)
     Cotangent hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType csc (genType angle)
     Cosecant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType csch (genType angle)
     Cosecant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sec (genType angle)
     Secant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sech (genType angle)
     Secant hyperbolic function. More...
     
    +

    Detailed Description

    +

    GLM_GTC_reciprocal

    +
    See also
    Core features (dependence)
    + +

    Definition in file reciprocal.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00140_source.html b/external/glm-0.9.9.8/doc/api/a00140_source.html new file mode 100644 index 0000000..2826f72 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00140_source.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: reciprocal.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    reciprocal.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependencies
    +
    16 #include "../detail/setup.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_GTC_reciprocal extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    33  template<typename genType>
    +
    34  GLM_FUNC_DECL genType sec(genType angle);
    +
    35 
    +
    42  template<typename genType>
    +
    43  GLM_FUNC_DECL genType csc(genType angle);
    +
    44 
    +
    51  template<typename genType>
    +
    52  GLM_FUNC_DECL genType cot(genType angle);
    +
    53 
    +
    60  template<typename genType>
    +
    61  GLM_FUNC_DECL genType asec(genType x);
    +
    62 
    +
    69  template<typename genType>
    +
    70  GLM_FUNC_DECL genType acsc(genType x);
    +
    71 
    +
    78  template<typename genType>
    +
    79  GLM_FUNC_DECL genType acot(genType x);
    +
    80 
    +
    86  template<typename genType>
    +
    87  GLM_FUNC_DECL genType sech(genType angle);
    +
    88 
    +
    94  template<typename genType>
    +
    95  GLM_FUNC_DECL genType csch(genType angle);
    +
    96 
    +
    102  template<typename genType>
    +
    103  GLM_FUNC_DECL genType coth(genType angle);
    +
    104 
    +
    111  template<typename genType>
    +
    112  GLM_FUNC_DECL genType asech(genType x);
    +
    113 
    +
    120  template<typename genType>
    +
    121  GLM_FUNC_DECL genType acsch(genType x);
    +
    122 
    +
    129  template<typename genType>
    +
    130  GLM_FUNC_DECL genType acoth(genType x);
    +
    131 
    +
    133 }//namespace glm
    +
    134 
    +
    135 #include "reciprocal.inl"
    +
    GLM_FUNC_DECL genType sec(genType angle)
    Secant function.
    +
    GLM_FUNC_DECL genType csc(genType angle)
    Cosecant function.
    +
    GLM_FUNC_DECL genType coth(genType angle)
    Cotangent hyperbolic function.
    +
    GLM_FUNC_DECL genType asec(genType x)
    Inverse secant function.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL genType cot(genType angle)
    Cotangent function.
    +
    GLM_FUNC_DECL genType acsc(genType x)
    Inverse cosecant function.
    +
    GLM_FUNC_DECL genType sech(genType angle)
    Secant hyperbolic function.
    +
    GLM_FUNC_DECL genType csch(genType angle)
    Cosecant hyperbolic function.
    +
    GLM_FUNC_DECL genType acoth(genType x)
    Inverse cotangent hyperbolic function.
    +
    GLM_FUNC_DECL genType acot(genType x)
    Inverse cotangent function.
    +
    GLM_FUNC_DECL genType asech(genType x)
    Inverse secant hyperbolic function.
    +
    GLM_FUNC_DECL genType acsch(genType x)
    Inverse cosecant hyperbolic function.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00141.html b/external/glm-0.9.9.8/doc/api/a00141.html new file mode 100644 index 0000000..f5efe4e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00141.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: rotate_normalized_axis.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    rotate_normalized_axis.hpp File Reference
    +
    +
    + +

    GLM_GTX_rotate_normalized_axis +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotateNormalizedAxis (mat< 4, 4, T, Q > const &m, T const &angle, vec< 3, T, Q > const &axis)
     Builds a rotation 4 * 4 matrix created from a normalized axis and an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotateNormalizedAxis (qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
     Rotates a quaternion from a vector of 3 components normalized axis and an angle. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00141_source.html b/external/glm-0.9.9.8/doc/api/a00141_source.html new file mode 100644 index 0000000..b172012 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00141_source.html @@ -0,0 +1,137 @@ + + + + + + +0.9.9 API documentation: rotate_normalized_axis.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    rotate_normalized_axis.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../glm.hpp"
    +
    19 #include "../gtc/epsilon.hpp"
    +
    20 #include "../gtc/quaternion.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTX_rotate_normalized_axis is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTX_rotate_normalized_axis extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    46  template<typename T, qualifier Q>
    +
    47  GLM_FUNC_DECL mat<4, 4, T, Q> rotateNormalizedAxis(
    +
    48  mat<4, 4, T, Q> const& m,
    +
    49  T const& angle,
    +
    50  vec<3, T, Q> const& axis);
    +
    51 
    +
    59  template<typename T, qualifier Q>
    +
    60  GLM_FUNC_DECL qua<T, Q> rotateNormalizedAxis(
    +
    61  qua<T, Q> const& q,
    +
    62  T const& angle,
    +
    63  vec<3, T, Q> const& axis);
    +
    64 
    +
    66 }//namespace glm
    +
    67 
    +
    68 #include "rotate_normalized_axis.inl"
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL qua< T, Q > rotateNormalizedAxis(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
    Rotates a quaternion from a vector of 3 components normalized axis and an angle.
    +
    GLM_FUNC_DECL vec< 3, T, Q > axis(qua< T, Q > const &x)
    Returns the q rotation axis.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00142.html b/external/glm-0.9.9.8/doc/api/a00142.html new file mode 100644 index 0000000..3c27392 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00142.html @@ -0,0 +1,161 @@ + + + + + + +0.9.9 API documentation: rotate_vector.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    rotate_vector.hpp File Reference
    +
    +
    + +

    GLM_GTX_rotate_vector +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientation (vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)
     Build a rotation matrix from a normal and a up vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > rotate (vec< 2, T, Q > const &v, T const &angle)
     Rotate a two dimensional vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotate (vec< 3, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)
     Rotate a three dimensional vector around an axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotate (vec< 4, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)
     Rotate a four dimensional vector around an axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateX (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateX (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateY (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateY (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateZ (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the Z axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateZ (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the Z axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > slerp (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, T const &a)
     Returns Spherical interpolation between two vectors. More...
     
    +

    Detailed Description

    +

    GLM_GTX_rotate_vector

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_transform (dependence)
    + +

    Definition in file rotate_vector.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00142_source.html b/external/glm-0.9.9.8/doc/api/a00142_source.html new file mode 100644 index 0000000..1667d98 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00142_source.html @@ -0,0 +1,188 @@ + + + + + + +0.9.9 API documentation: rotate_vector.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    rotate_vector.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../gtx/transform.hpp"
    +
    18 #include "../gtc/epsilon.hpp"
    +
    19 #include "../ext/vector_relational.hpp"
    +
    20 #include "../glm.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTX_rotate_vector is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTX_rotate_vector extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    42  template<typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL vec<3, T, Q> slerp(
    +
    44  vec<3, T, Q> const& x,
    +
    45  vec<3, T, Q> const& y,
    +
    46  T const& a);
    +
    47 
    +
    50  template<typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL vec<2, T, Q> rotate(
    +
    52  vec<2, T, Q> const& v,
    +
    53  T const& angle);
    +
    54 
    +
    57  template<typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL vec<3, T, Q> rotate(
    +
    59  vec<3, T, Q> const& v,
    +
    60  T const& angle,
    +
    61  vec<3, T, Q> const& normal);
    +
    62 
    +
    65  template<typename T, qualifier Q>
    +
    66  GLM_FUNC_DECL vec<4, T, Q> rotate(
    +
    67  vec<4, T, Q> const& v,
    +
    68  T const& angle,
    +
    69  vec<3, T, Q> const& normal);
    +
    70 
    +
    73  template<typename T, qualifier Q>
    +
    74  GLM_FUNC_DECL vec<3, T, Q> rotateX(
    +
    75  vec<3, T, Q> const& v,
    +
    76  T const& angle);
    +
    77 
    +
    80  template<typename T, qualifier Q>
    +
    81  GLM_FUNC_DECL vec<3, T, Q> rotateY(
    +
    82  vec<3, T, Q> const& v,
    +
    83  T const& angle);
    +
    84 
    +
    87  template<typename T, qualifier Q>
    +
    88  GLM_FUNC_DECL vec<3, T, Q> rotateZ(
    +
    89  vec<3, T, Q> const& v,
    +
    90  T const& angle);
    +
    91 
    +
    94  template<typename T, qualifier Q>
    +
    95  GLM_FUNC_DECL vec<4, T, Q> rotateX(
    +
    96  vec<4, T, Q> const& v,
    +
    97  T const& angle);
    +
    98 
    +
    101  template<typename T, qualifier Q>
    +
    102  GLM_FUNC_DECL vec<4, T, Q> rotateY(
    +
    103  vec<4, T, Q> const& v,
    +
    104  T const& angle);
    +
    105 
    +
    108  template<typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL vec<4, T, Q> rotateZ(
    +
    110  vec<4, T, Q> const& v,
    +
    111  T const& angle);
    +
    112 
    +
    115  template<typename T, qualifier Q>
    +
    116  GLM_FUNC_DECL mat<4, 4, T, Q> orientation(
    +
    117  vec<3, T, Q> const& Normal,
    +
    118  vec<3, T, Q> const& Up);
    +
    119 
    +
    121 }//namespace glm
    +
    122 
    +
    123 #include "rotate_vector.inl"
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL vec< 4, T, Q > rotateZ(vec< 4, T, Q > const &v, T const &angle)
    Rotate a four dimensional vector around the Z axis.
    +
    GLM_FUNC_DECL vec< 4, T, Q > rotateY(vec< 4, T, Q > const &v, T const &angle)
    Rotate a four dimensional vector around the Y axis.
    +
    GLM_FUNC_DECL vec< 4, T, Q > rotateX(vec< 4, T, Q > const &v, T const &angle)
    Rotate a four dimensional vector around the X axis.
    +
    GLM_FUNC_DECL vec< 3, T, Q > slerp(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, T const &a)
    Returns Spherical interpolation between two vectors.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientation(vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)
    Build a rotation matrix from a normal and a up vector.
    +
    GLM_FUNC_DECL vec< 4, T, Q > rotate(vec< 4, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)
    Rotate a four dimensional vector around an axis.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00143.html b/external/glm-0.9.9.8/doc/api/a00143.html new file mode 100644 index 0000000..fae2d54 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00143.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: round.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    round.hpp File Reference
    +
    +
    + +

    GLM_GTC_round +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType ceilMultiple (genType v, genType Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceilMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Higher multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType ceilPowerOfTwo (genIUType v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceilPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType floorMultiple (genType v, genType Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floorMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType floorPowerOfTwo (genIUType v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floorPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType roundMultiple (genType v, genType Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType roundPowerOfTwo (genIUType v)
     Return the power of two number which value is the closet to the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is the closet to the input value. More...
     
    +

    Detailed Description

    +

    GLM_GTC_round

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_round (dependence)
    + +

    Definition in file round.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00143_source.html b/external/glm-0.9.9.8/doc/api/a00143_source.html new file mode 100644 index 0000000..f97d76a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00143_source.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: round.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    round.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependencies
    +
    17 #include "../detail/setup.hpp"
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 #include "../detail/_vectorize.hpp"
    +
    20 #include "../vector_relational.hpp"
    +
    21 #include "../common.hpp"
    +
    22 #include <limits>
    +
    23 
    +
    24 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    25 # pragma message("GLM: GLM_GTC_round extension included")
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    37  template<typename genIUType>
    +
    38  GLM_FUNC_DECL genIUType ceilPowerOfTwo(genIUType v);
    +
    39 
    +
    48  template<length_t L, typename T, qualifier Q>
    +
    49  GLM_FUNC_DECL vec<L, T, Q> ceilPowerOfTwo(vec<L, T, Q> const& v);
    +
    50 
    +
    55  template<typename genIUType>
    +
    56  GLM_FUNC_DECL genIUType floorPowerOfTwo(genIUType v);
    +
    57 
    +
    66  template<length_t L, typename T, qualifier Q>
    +
    67  GLM_FUNC_DECL vec<L, T, Q> floorPowerOfTwo(vec<L, T, Q> const& v);
    +
    68 
    +
    72  template<typename genIUType>
    +
    73  GLM_FUNC_DECL genIUType roundPowerOfTwo(genIUType v);
    +
    74 
    +
    82  template<length_t L, typename T, qualifier Q>
    +
    83  GLM_FUNC_DECL vec<L, T, Q> roundPowerOfTwo(vec<L, T, Q> const& v);
    +
    84 
    +
    93  template<typename genType>
    +
    94  GLM_FUNC_DECL genType ceilMultiple(genType v, genType Multiple);
    +
    95 
    +
    106  template<length_t L, typename T, qualifier Q>
    +
    107  GLM_FUNC_DECL vec<L, T, Q> ceilMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    108 
    +
    117  template<typename genType>
    +
    118  GLM_FUNC_DECL genType floorMultiple(genType v, genType Multiple);
    +
    119 
    +
    130  template<length_t L, typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL vec<L, T, Q> floorMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    132 
    +
    141  template<typename genType>
    +
    142  GLM_FUNC_DECL genType roundMultiple(genType v, genType Multiple);
    +
    143 
    +
    154  template<length_t L, typename T, qualifier Q>
    +
    155  GLM_FUNC_DECL vec<L, T, Q> roundMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    156 
    +
    158 } //namespace glm
    +
    159 
    +
    160 #include "round.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > roundPowerOfTwo(vec< L, T, Q > const &v)
    Return the power of two number which value is the closet to the input value.
    +
    GLM_FUNC_DECL vec< L, T, Q > ceilMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Higher multiple number of Source.
    +
    GLM_FUNC_DECL vec< L, T, Q > floorPowerOfTwo(vec< L, T, Q > const &v)
    Return the power of two number which value is just lower the input value, round down to a power of tw...
    +
    GLM_FUNC_DECL vec< L, T, Q > roundMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Lower multiple number of Source.
    +
    GLM_FUNC_DECL vec< L, T, Q > ceilPowerOfTwo(vec< L, T, Q > const &v)
    Return the power of two number which value is just higher the input value, round up to a power of two...
    +
    GLM_FUNC_DECL vec< L, T, Q > floorMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Lower multiple number of Source.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00144.html b/external/glm-0.9.9.8/doc/api/a00144.html new file mode 100644 index 0000000..c9b0190 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00144.html @@ -0,0 +1,154 @@ + + + + + + +0.9.9 API documentation: scalar_common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_common.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_common +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b)
     Returns the maximum component-wise values of 2 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b, T C)
     Returns the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b, T C, T D)
     Returns the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b)
     Returns the minimum component-wise values of 2 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b, T c)
     Returns the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b, T c, T d)
     Returns the minimum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T a, T b, T c)
     Returns the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T a, T b, T c, T d)
     Returns the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T a, T b, T c)
     Returns the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T a, T b, T c, T d)
     Returns the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    GLM_EXT_scalar_common

    + +

    Definition in file scalar_common.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00144_source.html b/external/glm-0.9.9.8/doc/api/a00144_source.html new file mode 100644 index 0000000..daf7fce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00144_source.html @@ -0,0 +1,150 @@ + + + + + + +0.9.9 API documentation: scalar_common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../common.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # pragma message("GLM: GLM_EXT_scalar_common extension included")
    +
    21 #endif
    +
    22 
    +
    23 namespace glm
    +
    24 {
    +
    27 
    +
    31  template<typename T>
    +
    32  GLM_FUNC_DECL T min(T a, T b, T c);
    +
    33 
    +
    37  template<typename T>
    +
    38  GLM_FUNC_DECL T min(T a, T b, T c, T d);
    +
    39 
    +
    43  template<typename T>
    +
    44  GLM_FUNC_DECL T max(T a, T b, T c);
    +
    45 
    +
    49  template<typename T>
    +
    50  GLM_FUNC_DECL T max(T a, T b, T c, T d);
    +
    51 
    +
    57  template<typename T>
    +
    58  GLM_FUNC_DECL T fmin(T a, T b);
    +
    59 
    +
    65  template<typename T>
    +
    66  GLM_FUNC_DECL T fmin(T a, T b, T c);
    +
    67 
    +
    73  template<typename T>
    +
    74  GLM_FUNC_DECL T fmin(T a, T b, T c, T d);
    +
    75 
    +
    81  template<typename T>
    +
    82  GLM_FUNC_DECL T fmax(T a, T b);
    +
    83 
    +
    89  template<typename T>
    +
    90  GLM_FUNC_DECL T fmax(T a, T b, T C);
    +
    91 
    +
    97  template<typename T>
    +
    98  GLM_FUNC_DECL T fmax(T a, T b, T C, T D);
    +
    99 
    +
    101 }//namespace glm
    +
    102 
    +
    103 #include "scalar_common.inl"
    +
    GLM_FUNC_DECL T min(T a, T b, T c, T d)
    Returns the minimum component-wise values of 4 inputs.
    +
    GLM_FUNC_DECL T max(T a, T b, T c, T d)
    Returns the maximum component-wise values of 4 inputs.
    +
    GLM_FUNC_DECL T fmax(T a, T b, T C, T D)
    Returns the maximum component-wise values of 4 inputs.
    +
    GLM_FUNC_DECL T fmin(T a, T b, T c, T d)
    Returns the minimum component-wise values of 4 inputs.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00145.html b/external/glm-0.9.9.8/doc/api/a00145.html new file mode 100644 index 0000000..715a85f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00145.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: scalar_constants.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_constants.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_constants +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Functions

    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon ()
     Return the epsilon constant for floating point types.
     
    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType pi ()
     Return the pi constant for floating point types.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00145_source.html b/external/glm-0.9.9.8/doc/api/a00145_source.html new file mode 100644 index 0000000..4919628 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00145_source.html @@ -0,0 +1,124 @@ + + + + + + +0.9.9 API documentation: scalar_constants.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_constants.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 // Dependencies
    +
    14 #include "../detail/setup.hpp"
    +
    15 
    +
    16 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    17 # pragma message("GLM: GLM_EXT_scalar_constants extension included")
    +
    18 #endif
    +
    19 
    +
    20 namespace glm
    +
    21 {
    +
    24 
    +
    26  template<typename genType>
    +
    27  GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon();
    +
    28 
    +
    30  template<typename genType>
    +
    31  GLM_FUNC_DECL GLM_CONSTEXPR genType pi();
    +
    32 
    +
    34 } //namespace glm
    +
    35 
    +
    36 #include "scalar_constants.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType pi()
    Return the pi constant for floating point types.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00146.html b/external/glm-0.9.9.8/doc/api/a00146.html new file mode 100644 index 0000000..6a7dd2f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00146.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: scalar_int_sized.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_int_sized.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_int_sized +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Typedefs

    +typedef detail::int16 int16
     16 bit signed integer type.
     
    +typedef detail::int32 int32
     32 bit signed integer type.
     
    +typedef detail::int64 int64
     64 bit signed integer type.
     
    +typedef detail::int8 int8
     8 bit signed integer type.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00146_source.html b/external/glm-0.9.9.8/doc/api/a00146_source.html new file mode 100644 index 0000000..1fcdb95 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00146_source.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: scalar_int_sized.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_int_sized.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/setup.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # pragma message("GLM: GLM_EXT_scalar_int_sized extension included")
    +
    19 #endif
    +
    20 
    +
    21 namespace glm{
    +
    22 namespace detail
    +
    23 {
    +
    24 # if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    25  typedef std::int8_t int8;
    +
    26  typedef std::int16_t int16;
    +
    27  typedef std::int32_t int32;
    +
    28 # else
    +
    29  typedef signed char int8;
    +
    30  typedef signed short int16;
    +
    31  typedef signed int int32;
    +
    32 #endif//
    +
    33 
    +
    34  template<>
    +
    35  struct is_int<int8>
    +
    36  {
    +
    37  enum test {value = ~0};
    +
    38  };
    +
    39 
    +
    40  template<>
    +
    41  struct is_int<int16>
    +
    42  {
    +
    43  enum test {value = ~0};
    +
    44  };
    +
    45 
    +
    46  template<>
    +
    47  struct is_int<int64>
    +
    48  {
    +
    49  enum test {value = ~0};
    +
    50  };
    +
    51 }//namespace detail
    +
    52 
    +
    53 
    +
    56 
    +
    58  typedef detail::int8 int8;
    +
    59 
    +
    61  typedef detail::int16 int16;
    +
    62 
    +
    64  typedef detail::int32 int32;
    +
    65 
    +
    67  typedef detail::int64 int64;
    +
    68 
    +
    70 }//namespace glm
    +
    int8 int8_t
    8 bit signed integer type.
    Definition: fwd.hpp:43
    +
    detail::int8 int8
    8 bit signed integer type.
    +
    int16 int16_t
    16 bit signed integer type.
    Definition: fwd.hpp:57
    +
    int32 int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:71
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    detail::int32 int32
    32 bit signed integer type.
    +
    detail::int16 int16
    16 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00147.html b/external/glm-0.9.9.8/doc/api/a00147.html new file mode 100644 index 0000000..e779c67 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00147.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: scalar_integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_integer.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_integer +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genIUType >
    GLM_FUNC_DECL int findNSB (genIUType x, int significantBitCount)
     Returns the bit number of the Nth significant bit set to 1 in the binary representation of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL bool isMultiple (genIUType v, genIUType Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL bool isPowerOfTwo (genIUType v)
     Return true if the value is a power of two number. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType nextMultiple (genIUType v, genIUType Multiple)
     Higher multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType nextPowerOfTwo (genIUType v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType prevMultiple (genIUType v, genIUType Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType prevPowerOfTwo (genIUType v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    +

    Detailed Description

    +

    GLM_EXT_scalar_integer

    +
    See also
    Core features (dependence)
    + +

    Definition in file scalar_integer.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00147_source.html b/external/glm-0.9.9.8/doc/api/a00147_source.html new file mode 100644 index 0000000..48c4cf8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00147_source.html @@ -0,0 +1,150 @@ + + + + + + +0.9.9 API documentation: scalar_integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 // Dependencies
    +
    14 #include "../detail/setup.hpp"
    +
    15 #include "../detail/qualifier.hpp"
    +
    16 #include "../detail/_vectorize.hpp"
    +
    17 #include "../detail/type_float.hpp"
    +
    18 #include "../vector_relational.hpp"
    +
    19 #include "../common.hpp"
    +
    20 #include <limits>
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_EXT_scalar_integer extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    34  template<typename genIUType>
    +
    35  GLM_FUNC_DECL bool isPowerOfTwo(genIUType v);
    +
    36 
    +
    41  template<typename genIUType>
    +
    42  GLM_FUNC_DECL genIUType nextPowerOfTwo(genIUType v);
    +
    43 
    +
    48  template<typename genIUType>
    +
    49  GLM_FUNC_DECL genIUType prevPowerOfTwo(genIUType v);
    +
    50 
    +
    54  template<typename genIUType>
    +
    55  GLM_FUNC_DECL bool isMultiple(genIUType v, genIUType Multiple);
    +
    56 
    +
    65  template<typename genIUType>
    +
    66  GLM_FUNC_DECL genIUType nextMultiple(genIUType v, genIUType Multiple);
    +
    67 
    +
    76  template<typename genIUType>
    +
    77  GLM_FUNC_DECL genIUType prevMultiple(genIUType v, genIUType Multiple);
    +
    78 
    +
    86  template<typename genIUType>
    +
    87  GLM_FUNC_DECL int findNSB(genIUType x, int significantBitCount);
    +
    88 
    +
    90 } //namespace glm
    +
    91 
    +
    92 #include "scalar_integer.inl"
    +
    GLM_FUNC_DECL genIUType prevPowerOfTwo(genIUType v)
    Return the power of two number which value is just lower the input value, round down to a power of tw...
    +
    GLM_FUNC_DECL genIUType prevMultiple(genIUType v, genIUType Multiple)
    Lower multiple number of Source.
    +
    GLM_FUNC_DECL bool isMultiple(genIUType v, genIUType Multiple)
    Return true if the 'Value' is a multiple of 'Multiple'.
    +
    GLM_FUNC_DECL int findNSB(genIUType x, int significantBitCount)
    Returns the bit number of the Nth significant bit set to 1 in the binary representation of value...
    +
    GLM_FUNC_DECL genIUType nextMultiple(genIUType v, genIUType Multiple)
    Higher multiple number of Source.
    +
    GLM_FUNC_DECL bool isPowerOfTwo(genIUType v)
    Return true if the value is a power of two number.
    +
    GLM_FUNC_DECL genIUType nextPowerOfTwo(genIUType v)
    Return the power of two number which value is just higher the input value, round up to a power of two...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00148.html b/external/glm-0.9.9.8/doc/api/a00148.html new file mode 100644 index 0000000..922ceb6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00148.html @@ -0,0 +1,112 @@ + + + + + + +0.9.9 API documentation: scalar_multiplication.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_multiplication.hpp File Reference
    +
    +
    + +

    Experimental extensions +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Experimental extensions

    +
    Author
    Joshua Moerman
    +

    Include <glm/gtx/scalar_multiplication.hpp> to use the features of this extension.

    +

    Enables scalar multiplication for all types

    +

    Since GLSL is very strict about types, the following (often used) combinations do not work: double * vec4 int * vec4 vec4 / int So we'll fix that! Of course "float * vec4" should remain the same (hence the enable_if magic)

    + +

    Definition in file scalar_multiplication.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00148_source.html b/external/glm-0.9.9.8/doc/api/a00148_source.html new file mode 100644 index 0000000..965eab1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00148_source.html @@ -0,0 +1,174 @@ + + + + + + +0.9.9 API documentation: scalar_multiplication.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_multiplication.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 #include "../detail/setup.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_scalar_multiplication is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_scalar_multiplication extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 #include "../vec2.hpp"
    +
    28 #include "../vec3.hpp"
    +
    29 #include "../vec4.hpp"
    +
    30 #include "../mat2x2.hpp"
    +
    31 #include <type_traits>
    +
    32 
    +
    33 namespace glm
    +
    34 {
    +
    35  template<typename T, typename Vec>
    +
    36  using return_type_scalar_multiplication = typename std::enable_if<
    +
    37  !std::is_same<T, float>::value // T may not be a float
    +
    38  && std::is_arithmetic<T>::value, Vec // But it may be an int or double (no vec3 or mat3, ...)
    +
    39  >::type;
    +
    40 
    +
    41 #define GLM_IMPLEMENT_SCAL_MULT(Vec) \
    +
    42  template<typename T> \
    +
    43  return_type_scalar_multiplication<T, Vec> \
    +
    44  operator*(T const& s, Vec rh){ \
    +
    45  return rh *= static_cast<float>(s); \
    +
    46  } \
    +
    47  \
    +
    48  template<typename T> \
    +
    49  return_type_scalar_multiplication<T, Vec> \
    +
    50  operator*(Vec lh, T const& s){ \
    +
    51  return lh *= static_cast<float>(s); \
    +
    52  } \
    +
    53  \
    +
    54  template<typename T> \
    +
    55  return_type_scalar_multiplication<T, Vec> \
    +
    56  operator/(Vec lh, T const& s){ \
    +
    57  return lh *= 1.0f / s; \
    +
    58  }
    +
    59 
    +
    60 GLM_IMPLEMENT_SCAL_MULT(vec2)
    +
    61 GLM_IMPLEMENT_SCAL_MULT(vec3)
    +
    62 GLM_IMPLEMENT_SCAL_MULT(vec4)
    +
    63 
    +
    64 GLM_IMPLEMENT_SCAL_MULT(mat2)
    +
    65 GLM_IMPLEMENT_SCAL_MULT(mat2x3)
    +
    66 GLM_IMPLEMENT_SCAL_MULT(mat2x4)
    +
    67 GLM_IMPLEMENT_SCAL_MULT(mat3x2)
    +
    68 GLM_IMPLEMENT_SCAL_MULT(mat3)
    +
    69 GLM_IMPLEMENT_SCAL_MULT(mat3x4)
    +
    70 GLM_IMPLEMENT_SCAL_MULT(mat4x2)
    +
    71 GLM_IMPLEMENT_SCAL_MULT(mat4x3)
    +
    72 GLM_IMPLEMENT_SCAL_MULT(mat4)
    +
    73 
    +
    74 #undef GLM_IMPLEMENT_SCAL_MULT
    +
    75 } // namespace glm
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    mat< 2, 4, float, defaultp > mat2x4
    2 columns of 4 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 2, float, defaultp > mat3x2
    3 columns of 2 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 4, float, defaultp > mat3x4
    3 columns of 4 components matrix of single-precision floating-point numbers.
    +
    mat< 4, 3, float, defaultp > mat4x3
    4 columns of 3 components matrix of single-precision floating-point numbers.
    +
    mat< 4, 2, float, defaultp > mat4x2
    4 columns of 2 components matrix of single-precision floating-point numbers.
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    mat< 4, 4, float, defaultp > mat4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    vec< 3, float, defaultp > vec3
    3 components vector of single-precision floating-point numbers.
    +
    mat< 2, 3, float, defaultp > mat2x3
    2 columns of 3 components matrix of single-precision floating-point numbers.
    +
    mat< 2, 2, float, defaultp > mat2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    mat< 3, 3, float, defaultp > mat3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00149.html b/external/glm-0.9.9.8/doc/api/a00149.html new file mode 100644 index 0000000..8d4fbc9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00149.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: scalar_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    ext/scalar_relational.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_relational +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR bool equal (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR bool equal (genType const &x, genType const &y, int ULPs)
     Returns the component-wise comparison between two scalars in term of ULPs. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual (genType const &x, genType const &y, int ULPs)
     Returns the component-wise comparison between two scalars in term of ULPs. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00149_source.html b/external/glm-0.9.9.8/doc/api/a00149_source.html new file mode 100644 index 0000000..e4bf4a2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00149_source.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: scalar_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext/scalar_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependencies
    +
    18 #include "../detail/qualifier.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # pragma message("GLM: GLM_EXT_scalar_relational extension included")
    +
    22 #endif
    +
    23 
    +
    24 namespace glm
    +
    25 {
    +
    30  template<typename genType>
    +
    31  GLM_FUNC_DECL GLM_CONSTEXPR bool equal(genType const& x, genType const& y, genType const& epsilon);
    +
    32 
    +
    37  template<typename genType>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual(genType const& x, genType const& y, genType const& epsilon);
    +
    39 
    +
    48  template<typename genType>
    +
    49  GLM_FUNC_DECL GLM_CONSTEXPR bool equal(genType const& x, genType const& y, int ULPs);
    +
    50 
    +
    59  template<typename genType>
    +
    60  GLM_FUNC_DECL GLM_CONSTEXPR bool notEqual(genType const& x, genType const& y, int ULPs);
    +
    61 
    +
    63 }//namespace glm
    +
    64 
    +
    65 #include "scalar_relational.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
    Perform a component-wise not-equal-to comparison of two matrices.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
    Perform a component-wise equal-to comparison of two matrices.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00150.html b/external/glm-0.9.9.8/doc/api/a00150.html new file mode 100644 index 0000000..4c7c79e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00150.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: scalar_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/scalar_relational.hpp File Reference
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00150_source.html b/external/glm-0.9.9.8/doc/api/a00150_source.html new file mode 100644 index 0000000..affb976 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00150_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: scalar_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/scalar_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    20 # pragma message("GLM: GLM_GTX_extend is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    21 # else
    +
    22 # pragma message("GLM: GLM_GTX_extend extension included")
    +
    23 # endif
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    31 
    +
    32 
    +
    34 }//namespace glm
    +
    35 
    +
    36 #include "scalar_relational.inl"
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00151.html b/external/glm-0.9.9.8/doc/api/a00151.html new file mode 100644 index 0000000..bed79f5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00151.html @@ -0,0 +1,130 @@ + + + + + + +0.9.9 API documentation: scalar_uint_sized.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_uint_sized.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_uint_sized +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Typedefs

    +typedef detail::uint16 uint16
     16 bit unsigned integer type.
     
    +typedef detail::uint32 uint32
     32 bit unsigned integer type.
     
    +typedef detail::uint64 uint64
     64 bit unsigned integer type.
     
    +typedef detail::uint8 uint8
     8 bit unsigned integer type.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00151_source.html b/external/glm-0.9.9.8/doc/api/a00151_source.html new file mode 100644 index 0000000..6210cb3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00151_source.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: scalar_uint_sized.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_uint_sized.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/setup.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # pragma message("GLM: GLM_EXT_scalar_uint_sized extension included")
    +
    19 #endif
    +
    20 
    +
    21 namespace glm{
    +
    22 namespace detail
    +
    23 {
    +
    24 # if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    25  typedef std::uint8_t uint8;
    +
    26  typedef std::uint16_t uint16;
    +
    27  typedef std::uint32_t uint32;
    +
    28 # else
    +
    29  typedef unsigned char uint8;
    +
    30  typedef unsigned short uint16;
    +
    31  typedef unsigned int uint32;
    +
    32 #endif
    +
    33 
    +
    34  template<>
    +
    35  struct is_int<uint8>
    +
    36  {
    +
    37  enum test {value = ~0};
    +
    38  };
    +
    39 
    +
    40  template<>
    +
    41  struct is_int<uint16>
    +
    42  {
    +
    43  enum test {value = ~0};
    +
    44  };
    +
    45 
    +
    46  template<>
    +
    47  struct is_int<uint64>
    +
    48  {
    +
    49  enum test {value = ~0};
    +
    50  };
    +
    51 }//namespace detail
    +
    52 
    +
    53 
    +
    56 
    +
    58  typedef detail::uint8 uint8;
    +
    59 
    +
    61  typedef detail::uint16 uint16;
    +
    62 
    +
    64  typedef detail::uint32 uint32;
    +
    65 
    +
    67  typedef detail::uint64 uint64;
    +
    68 
    +
    70 }//namespace glm
    +
    detail::uint32 uint32
    32 bit unsigned integer type.
    +
    uint32 uint32_t
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:129
    +
    detail::uint16 uint16
    16 bit unsigned integer type.
    +
    uint16 uint16_t
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:115
    +
    uint8 uint8_t
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:101
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    detail::uint8 uint8
    8 bit unsigned integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00152.html b/external/glm-0.9.9.8/doc/api/a00152.html new file mode 100644 index 0000000..803cc48 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00152.html @@ -0,0 +1,136 @@ + + + + + + +0.9.9 API documentation: scalar_ulp.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    scalar_ulp.hpp File Reference
    +
    +
    + +

    GLM_EXT_scalar_ulp +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL int floatDistance (float x, float y)
     Return the distance in the number of ULP between 2 single-precision floating-point scalars. More...
     
    GLM_FUNC_DECL int64 floatDistance (double x, double y)
     Return the distance in the number of ULP between 2 double-precision floating-point scalars. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType nextFloat (genType x)
     Return the next ULP value(s) after the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType nextFloat (genType x, int ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType prevFloat (genType x)
     Return the previous ULP value(s) before the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType prevFloat (genType x, int ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    +

    Detailed Description

    +

    GLM_EXT_scalar_ulp

    + +

    Definition in file scalar_ulp.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00152_source.html b/external/glm-0.9.9.8/doc/api/a00152_source.html new file mode 100644 index 0000000..31e2218 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00152_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: scalar_ulp.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    scalar_ulp.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    16 #pragma once
    +
    17 
    +
    18 // Dependencies
    +
    19 #include "../ext/scalar_int_sized.hpp"
    +
    20 #include "../common.hpp"
    +
    21 #include "../detail/qualifier.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # pragma message("GLM: GLM_EXT_scalar_ulp extension included")
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL genType nextFloat(genType x);
    +
    36 
    +
    42  template<typename genType>
    +
    43  GLM_FUNC_DECL genType prevFloat(genType x);
    +
    44 
    +
    50  template<typename genType>
    +
    51  GLM_FUNC_DECL genType nextFloat(genType x, int ULPs);
    +
    52 
    +
    58  template<typename genType>
    +
    59  GLM_FUNC_DECL genType prevFloat(genType x, int ULPs);
    +
    60 
    +
    64  GLM_FUNC_DECL int floatDistance(float x, float y);
    +
    65 
    +
    69  GLM_FUNC_DECL int64 floatDistance(double x, double y);
    +
    70 
    +
    72 }//namespace glm
    +
    73 
    +
    74 #include "scalar_ulp.inl"
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00153_source.html b/external/glm-0.9.9.8/doc/api/a00153_source.html new file mode 100644 index 0000000..4b93aad --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00153_source.html @@ -0,0 +1,1212 @@ + + + + + + +0.9.9 API documentation: setup.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    setup.hpp
    +
    +
    +
    1 #ifndef GLM_SETUP_INCLUDED
    +
    2 
    +
    3 #include <cassert>
    +
    4 #include <cstddef>
    +
    5 
    +
    6 #define GLM_VERSION_MAJOR 0
    +
    7 #define GLM_VERSION_MINOR 9
    +
    8 #define GLM_VERSION_PATCH 9
    +
    9 #define GLM_VERSION_REVISION 6
    +
    10 #define GLM_VERSION 996
    +
    11 #define GLM_VERSION_MESSAGE "GLM: version 0.9.9.6"
    +
    12 
    +
    13 #define GLM_SETUP_INCLUDED GLM_VERSION
    +
    14 
    +
    16 // Active states
    +
    17 
    +
    18 #define GLM_DISABLE 0
    +
    19 #define GLM_ENABLE 1
    +
    20 
    +
    22 // Messages
    +
    23 
    +
    24 #if defined(GLM_FORCE_MESSAGES)
    +
    25 # define GLM_MESSAGES GLM_ENABLE
    +
    26 #else
    +
    27 # define GLM_MESSAGES GLM_DISABLE
    +
    28 #endif
    +
    29 
    +
    31 // Detect the platform
    +
    32 
    +
    33 #include "../simd/platform.h"
    +
    34 
    +
    36 // Build model
    +
    37 
    +
    38 #if defined(__arch64__) || defined(__LP64__) || defined(_M_X64) || defined(__ppc64__) || defined(__x86_64__)
    +
    39 # define GLM_MODEL GLM_MODEL_64
    +
    40 #elif defined(__i386__) || defined(__ppc__)
    +
    41 # define GLM_MODEL GLM_MODEL_32
    +
    42 #else
    +
    43 # define GLM_MODEL GLM_MODEL_32
    +
    44 #endif//
    +
    45 
    +
    46 #if !defined(GLM_MODEL) && GLM_COMPILER != 0
    +
    47 # error "GLM_MODEL undefined, your compiler may not be supported by GLM. Add #define GLM_MODEL 0 to ignore this message."
    +
    48 #endif//GLM_MODEL
    +
    49 
    +
    51 // C++ Version
    +
    52 
    +
    53 // User defines: GLM_FORCE_CXX98, GLM_FORCE_CXX03, GLM_FORCE_CXX11, GLM_FORCE_CXX14, GLM_FORCE_CXX17, GLM_FORCE_CXX2A
    +
    54 
    +
    55 #define GLM_LANG_CXX98_FLAG (1 << 1)
    +
    56 #define GLM_LANG_CXX03_FLAG (1 << 2)
    +
    57 #define GLM_LANG_CXX0X_FLAG (1 << 3)
    +
    58 #define GLM_LANG_CXX11_FLAG (1 << 4)
    +
    59 #define GLM_LANG_CXX14_FLAG (1 << 5)
    +
    60 #define GLM_LANG_CXX17_FLAG (1 << 6)
    +
    61 #define GLM_LANG_CXX2A_FLAG (1 << 7)
    +
    62 #define GLM_LANG_CXXMS_FLAG (1 << 8)
    +
    63 #define GLM_LANG_CXXGNU_FLAG (1 << 9)
    +
    64 
    +
    65 #define GLM_LANG_CXX98 GLM_LANG_CXX98_FLAG
    +
    66 #define GLM_LANG_CXX03 (GLM_LANG_CXX98 | GLM_LANG_CXX03_FLAG)
    +
    67 #define GLM_LANG_CXX0X (GLM_LANG_CXX03 | GLM_LANG_CXX0X_FLAG)
    +
    68 #define GLM_LANG_CXX11 (GLM_LANG_CXX0X | GLM_LANG_CXX11_FLAG)
    +
    69 #define GLM_LANG_CXX14 (GLM_LANG_CXX11 | GLM_LANG_CXX14_FLAG)
    +
    70 #define GLM_LANG_CXX17 (GLM_LANG_CXX14 | GLM_LANG_CXX17_FLAG)
    +
    71 #define GLM_LANG_CXX2A (GLM_LANG_CXX17 | GLM_LANG_CXX2A_FLAG)
    +
    72 #define GLM_LANG_CXXMS GLM_LANG_CXXMS_FLAG
    +
    73 #define GLM_LANG_CXXGNU GLM_LANG_CXXGNU_FLAG
    +
    74 
    +
    75 #if (defined(_MSC_EXTENSIONS))
    +
    76 # define GLM_LANG_EXT GLM_LANG_CXXMS_FLAG
    +
    77 #elif ((GLM_COMPILER & (GLM_COMPILER_CLANG | GLM_COMPILER_GCC)) && (GLM_ARCH & GLM_ARCH_SIMD_BIT))
    +
    78 # define GLM_LANG_EXT GLM_LANG_CXXMS_FLAG
    +
    79 #else
    +
    80 # define GLM_LANG_EXT 0
    +
    81 #endif
    +
    82 
    +
    83 #if (defined(GLM_FORCE_CXX_UNKNOWN))
    +
    84 # define GLM_LANG 0
    +
    85 #elif defined(GLM_FORCE_CXX2A)
    +
    86 # define GLM_LANG (GLM_LANG_CXX2A | GLM_LANG_EXT)
    +
    87 # define GLM_LANG_STL11_FORCED
    +
    88 #elif defined(GLM_FORCE_CXX17)
    +
    89 # define GLM_LANG (GLM_LANG_CXX17 | GLM_LANG_EXT)
    +
    90 # define GLM_LANG_STL11_FORCED
    +
    91 #elif defined(GLM_FORCE_CXX14)
    +
    92 # define GLM_LANG (GLM_LANG_CXX14 | GLM_LANG_EXT)
    +
    93 # define GLM_LANG_STL11_FORCED
    +
    94 #elif defined(GLM_FORCE_CXX11)
    +
    95 # define GLM_LANG (GLM_LANG_CXX11 | GLM_LANG_EXT)
    +
    96 # define GLM_LANG_STL11_FORCED
    +
    97 #elif defined(GLM_FORCE_CXX03)
    +
    98 # define GLM_LANG (GLM_LANG_CXX03 | GLM_LANG_EXT)
    +
    99 #elif defined(GLM_FORCE_CXX98)
    +
    100 # define GLM_LANG (GLM_LANG_CXX98 | GLM_LANG_EXT)
    +
    101 #else
    +
    102 # if GLM_COMPILER & GLM_COMPILER_VC && defined(_MSVC_LANG)
    +
    103 # if GLM_COMPILER >= GLM_COMPILER_VC15_7
    +
    104 # define GLM_LANG_PLATFORM _MSVC_LANG
    +
    105 # elif GLM_COMPILER >= GLM_COMPILER_VC15
    +
    106 # if _MSVC_LANG > 201402L
    +
    107 # define GLM_LANG_PLATFORM 201402L
    +
    108 # else
    +
    109 # define GLM_LANG_PLATFORM _MSVC_LANG
    +
    110 # endif
    +
    111 # else
    +
    112 # define GLM_LANG_PLATFORM 0
    +
    113 # endif
    +
    114 # else
    +
    115 # define GLM_LANG_PLATFORM 0
    +
    116 # endif
    +
    117 
    +
    118 # if __cplusplus > 201703L || GLM_LANG_PLATFORM > 201703L
    +
    119 # define GLM_LANG (GLM_LANG_CXX2A | GLM_LANG_EXT)
    +
    120 # elif __cplusplus == 201703L || GLM_LANG_PLATFORM == 201703L
    +
    121 # define GLM_LANG (GLM_LANG_CXX17 | GLM_LANG_EXT)
    +
    122 # elif __cplusplus == 201402L || __cplusplus == 201500L || GLM_LANG_PLATFORM == 201402L
    +
    123 # define GLM_LANG (GLM_LANG_CXX14 | GLM_LANG_EXT)
    +
    124 # elif __cplusplus == 201103L || GLM_LANG_PLATFORM == 201103L
    +
    125 # define GLM_LANG (GLM_LANG_CXX11 | GLM_LANG_EXT)
    +
    126 # elif defined(__INTEL_CXX11_MODE__) || defined(_MSC_VER) || defined(__GXX_EXPERIMENTAL_CXX0X__)
    +
    127 # define GLM_LANG (GLM_LANG_CXX0X | GLM_LANG_EXT)
    +
    128 # elif __cplusplus == 199711L
    +
    129 # define GLM_LANG (GLM_LANG_CXX98 | GLM_LANG_EXT)
    +
    130 # else
    +
    131 # define GLM_LANG (0 | GLM_LANG_EXT)
    +
    132 # endif
    +
    133 #endif
    +
    134 
    +
    136 // Has of C++ features
    +
    137 
    +
    138 // http://clang.llvm.org/cxx_status.html
    +
    139 // http://gcc.gnu.org/projects/cxx0x.html
    +
    140 // http://msdn.microsoft.com/en-us/library/vstudio/hh567368(v=vs.120).aspx
    +
    141 
    +
    142 // Android has multiple STLs but C++11 STL detection doesn't always work #284 #564
    +
    143 #if GLM_PLATFORM == GLM_PLATFORM_ANDROID && !defined(GLM_LANG_STL11_FORCED)
    +
    144 # define GLM_HAS_CXX11_STL 0
    +
    145 #elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    146 # if (defined(_LIBCPP_VERSION) || (GLM_LANG & GLM_LANG_CXX11_FLAG) || defined(GLM_LANG_STL11_FORCED))
    +
    147 # define GLM_HAS_CXX11_STL 1
    +
    148 # else
    +
    149 # define GLM_HAS_CXX11_STL 0
    +
    150 # endif
    +
    151 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    152 # define GLM_HAS_CXX11_STL 1
    +
    153 #else
    +
    154 # define GLM_HAS_CXX11_STL ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    155  ((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC48)) || \
    +
    156  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
    +
    157  ((GLM_PLATFORM != GLM_PLATFORM_WINDOWS) && (GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL15))))
    +
    158 #endif
    +
    159 
    +
    160 // N1720
    +
    161 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    162 # define GLM_HAS_STATIC_ASSERT __has_feature(cxx_static_assert)
    +
    163 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    164 # define GLM_HAS_STATIC_ASSERT 1
    +
    165 #else
    +
    166 # define GLM_HAS_STATIC_ASSERT ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    167  ((GLM_COMPILER & GLM_COMPILER_CUDA)) || \
    +
    168  ((GLM_COMPILER & GLM_COMPILER_VC))))
    +
    169 #endif
    +
    170 
    +
    171 // N1988
    +
    172 #if GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    173 # define GLM_HAS_EXTENDED_INTEGER_TYPE 1
    +
    174 #else
    +
    175 # define GLM_HAS_EXTENDED_INTEGER_TYPE (\
    +
    176  ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_VC)) || \
    +
    177  ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_CUDA)) || \
    +
    178  ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_COMPILER & GLM_COMPILER_CLANG)))
    +
    179 #endif
    +
    180 
    +
    181 // N2672 Initializer lists http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm
    +
    182 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    183 # define GLM_HAS_INITIALIZER_LISTS __has_feature(cxx_generalized_initializers)
    +
    184 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    185 # define GLM_HAS_INITIALIZER_LISTS 1
    +
    186 #else
    +
    187 # define GLM_HAS_INITIALIZER_LISTS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    188  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC15)) || \
    +
    189  ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL14)) || \
    +
    190  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    191 #endif
    +
    192 
    +
    193 // N2544 Unrestricted unions http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf
    +
    194 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    195 # define GLM_HAS_UNRESTRICTED_UNIONS __has_feature(cxx_unrestricted_unions)
    +
    196 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    197 # define GLM_HAS_UNRESTRICTED_UNIONS 1
    +
    198 #else
    +
    199 # define GLM_HAS_UNRESTRICTED_UNIONS (GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    200  (GLM_COMPILER & GLM_COMPILER_VC) || \
    +
    201  ((GLM_COMPILER & GLM_COMPILER_CUDA)))
    +
    202 #endif
    +
    203 
    +
    204 // N2346
    +
    205 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    206 # define GLM_HAS_DEFAULTED_FUNCTIONS __has_feature(cxx_defaulted_functions)
    +
    207 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    208 # define GLM_HAS_DEFAULTED_FUNCTIONS 1
    +
    209 #else
    +
    210 # define GLM_HAS_DEFAULTED_FUNCTIONS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    211  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
    +
    212  ((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
    +
    213  (GLM_COMPILER & GLM_COMPILER_CUDA)))
    +
    214 #endif
    +
    215 
    +
    216 // N2118
    +
    217 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    218 # define GLM_HAS_RVALUE_REFERENCES __has_feature(cxx_rvalue_references)
    +
    219 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    220 # define GLM_HAS_RVALUE_REFERENCES 1
    +
    221 #else
    +
    222 # define GLM_HAS_RVALUE_REFERENCES ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    223  ((GLM_COMPILER & GLM_COMPILER_VC)) || \
    +
    224  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    225 #endif
    +
    226 
    +
    227 // N2437 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf
    +
    228 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    229 # define GLM_HAS_EXPLICIT_CONVERSION_OPERATORS __has_feature(cxx_explicit_conversions)
    +
    230 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    231 # define GLM_HAS_EXPLICIT_CONVERSION_OPERATORS 1
    +
    232 #else
    +
    233 # define GLM_HAS_EXPLICIT_CONVERSION_OPERATORS ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    234  ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL14)) || \
    +
    235  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
    +
    236  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    237 #endif
    +
    238 
    +
    239 // N2258 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf
    +
    240 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    241 # define GLM_HAS_TEMPLATE_ALIASES __has_feature(cxx_alias_templates)
    +
    242 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    243 # define GLM_HAS_TEMPLATE_ALIASES 1
    +
    244 #else
    +
    245 # define GLM_HAS_TEMPLATE_ALIASES ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    246  ((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
    +
    247  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
    +
    248  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    249 #endif
    +
    250 
    +
    251 // N2930 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2930.html
    +
    252 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    253 # define GLM_HAS_RANGE_FOR __has_feature(cxx_range_for)
    +
    254 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    255 # define GLM_HAS_RANGE_FOR 1
    +
    256 #else
    +
    257 # define GLM_HAS_RANGE_FOR ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    258  ((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
    +
    259  ((GLM_COMPILER & GLM_COMPILER_VC)) || \
    +
    260  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    261 #endif
    +
    262 
    +
    263 // N2341 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf
    +
    264 #if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    265 # define GLM_HAS_ALIGNOF __has_feature(cxx_alignas)
    +
    266 #elif GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    267 # define GLM_HAS_ALIGNOF 1
    +
    268 #else
    +
    269 # define GLM_HAS_ALIGNOF ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    270  ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL15)) || \
    +
    271  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC14)) || \
    +
    272  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    273 #endif
    +
    274 
    +
    275 // N2235 Generalized Constant Expressions http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf
    +
    276 // N3652 Extended Constant Expressions http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html
    +
    277 #if (GLM_ARCH & GLM_ARCH_SIMD_BIT) // Compiler SIMD intrinsics don't support constexpr...
    +
    278 # define GLM_HAS_CONSTEXPR 0
    +
    279 #elif (GLM_COMPILER & GLM_COMPILER_CLANG)
    +
    280 # define GLM_HAS_CONSTEXPR __has_feature(cxx_relaxed_constexpr)
    +
    281 #elif (GLM_LANG & GLM_LANG_CXX14_FLAG)
    +
    282 # define GLM_HAS_CONSTEXPR 1
    +
    283 #else
    +
    284 # define GLM_HAS_CONSTEXPR ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && GLM_HAS_INITIALIZER_LISTS && (\
    +
    285  ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_COMPILER >= GLM_COMPILER_INTEL17)) || \
    +
    286  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC15))))
    +
    287 #endif
    +
    288 
    +
    289 #if GLM_HAS_CONSTEXPR
    +
    290 # define GLM_CONSTEXPR constexpr
    +
    291 #else
    +
    292 # define GLM_CONSTEXPR
    +
    293 #endif
    +
    294 
    +
    295 //
    +
    296 #if GLM_HAS_CONSTEXPR
    +
    297 # if (GLM_COMPILER & GLM_COMPILER_CLANG)
    +
    298 # if __has_feature(cxx_if_constexpr)
    +
    299 # define GLM_HAS_IF_CONSTEXPR 1
    +
    300 # else
    +
    301 # define GLM_HAS_IF_CONSTEXPR 0
    +
    302 # endif
    +
    303 # elif (GLM_LANG & GLM_LANG_CXX17_FLAG)
    +
    304 # define GLM_HAS_IF_CONSTEXPR 1
    +
    305 # else
    +
    306 # define GLM_HAS_IF_CONSTEXPR 0
    +
    307 # endif
    +
    308 #else
    +
    309 # define GLM_HAS_IF_CONSTEXPR 0
    +
    310 #endif
    +
    311 
    +
    312 #if GLM_HAS_IF_CONSTEXPR
    +
    313 # define GLM_IF_CONSTEXPR if constexpr
    +
    314 #else
    +
    315 # define GLM_IF_CONSTEXPR if
    +
    316 #endif
    +
    317 
    +
    318 //
    +
    319 #if GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    320 # define GLM_HAS_ASSIGNABLE 1
    +
    321 #else
    +
    322 # define GLM_HAS_ASSIGNABLE ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    323  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC15)) || \
    +
    324  ((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC49))))
    +
    325 #endif
    +
    326 
    +
    327 //
    +
    328 #define GLM_HAS_TRIVIAL_QUERIES 0
    +
    329 
    +
    330 //
    +
    331 #if GLM_LANG & GLM_LANG_CXX11_FLAG
    +
    332 # define GLM_HAS_MAKE_SIGNED 1
    +
    333 #else
    +
    334 # define GLM_HAS_MAKE_SIGNED ((GLM_LANG & GLM_LANG_CXX0X_FLAG) && (\
    +
    335  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC12)) || \
    +
    336  ((GLM_COMPILER & GLM_COMPILER_CUDA))))
    +
    337 #endif
    +
    338 
    +
    339 //
    +
    340 #if defined(GLM_FORCE_INTRINSICS)
    +
    341 # define GLM_HAS_BITSCAN_WINDOWS ((GLM_PLATFORM & GLM_PLATFORM_WINDOWS) && (\
    +
    342  ((GLM_COMPILER & GLM_COMPILER_INTEL)) || \
    +
    343  ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC14) && (GLM_ARCH & GLM_ARCH_X86_BIT))))
    +
    344 #else
    +
    345 # define GLM_HAS_BITSCAN_WINDOWS 0
    +
    346 #endif
    +
    347 
    +
    349 // OpenMP
    +
    350 #ifdef _OPENMP
    +
    351 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    352 # if GLM_COMPILER >= GLM_COMPILER_GCC61
    +
    353 # define GLM_HAS_OPENMP 45
    +
    354 # elif GLM_COMPILER >= GLM_COMPILER_GCC49
    +
    355 # define GLM_HAS_OPENMP 40
    +
    356 # elif GLM_COMPILER >= GLM_COMPILER_GCC47
    +
    357 # define GLM_HAS_OPENMP 31
    +
    358 # else
    +
    359 # define GLM_HAS_OPENMP 0
    +
    360 # endif
    +
    361 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    362 # if GLM_COMPILER >= GLM_COMPILER_CLANG38
    +
    363 # define GLM_HAS_OPENMP 31
    +
    364 # else
    +
    365 # define GLM_HAS_OPENMP 0
    +
    366 # endif
    +
    367 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    368 # define GLM_HAS_OPENMP 20
    +
    369 # elif GLM_COMPILER & GLM_COMPILER_INTEL
    +
    370 # if GLM_COMPILER >= GLM_COMPILER_INTEL16
    +
    371 # define GLM_HAS_OPENMP 40
    +
    372 # else
    +
    373 # define GLM_HAS_OPENMP 0
    +
    374 # endif
    +
    375 # else
    +
    376 # define GLM_HAS_OPENMP 0
    +
    377 # endif
    +
    378 #else
    +
    379 # define GLM_HAS_OPENMP 0
    +
    380 #endif
    +
    381 
    +
    383 // nullptr
    +
    384 
    +
    385 #if GLM_LANG & GLM_LANG_CXX0X_FLAG
    +
    386 # define GLM_CONFIG_NULLPTR GLM_ENABLE
    +
    387 #else
    +
    388 # define GLM_CONFIG_NULLPTR GLM_DISABLE
    +
    389 #endif
    +
    390 
    +
    391 #if GLM_CONFIG_NULLPTR == GLM_ENABLE
    +
    392 # define GLM_NULLPTR nullptr
    +
    393 #else
    +
    394 # define GLM_NULLPTR 0
    +
    395 #endif
    +
    396 
    +
    398 // Static assert
    +
    399 
    +
    400 #if GLM_HAS_STATIC_ASSERT
    +
    401 # define GLM_STATIC_ASSERT(x, message) static_assert(x, message)
    +
    402 #elif GLM_COMPILER & GLM_COMPILER_VC
    +
    403 # define GLM_STATIC_ASSERT(x, message) typedef char __CASSERT__##__LINE__[(x) ? 1 : -1]
    +
    404 #else
    +
    405 # define GLM_STATIC_ASSERT(x, message) assert(x)
    +
    406 #endif//GLM_LANG
    +
    407 
    +
    409 // Qualifiers
    +
    410 
    +
    411 #if GLM_COMPILER & GLM_COMPILER_CUDA
    +
    412 # define GLM_CUDA_FUNC_DEF __device__ __host__
    +
    413 # define GLM_CUDA_FUNC_DECL __device__ __host__
    +
    414 #else
    +
    415 # define GLM_CUDA_FUNC_DEF
    +
    416 # define GLM_CUDA_FUNC_DECL
    +
    417 #endif
    +
    418 
    +
    419 #if defined(GLM_FORCE_INLINE)
    +
    420 # if GLM_COMPILER & GLM_COMPILER_VC
    +
    421 # define GLM_INLINE __forceinline
    +
    422 # define GLM_NEVER_INLINE __declspec((noinline))
    +
    423 # elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG)
    +
    424 # define GLM_INLINE inline __attribute__((__always_inline__))
    +
    425 # define GLM_NEVER_INLINE __attribute__((__noinline__))
    +
    426 # elif GLM_COMPILER & GLM_COMPILER_CUDA
    +
    427 # define GLM_INLINE __forceinline__
    +
    428 # define GLM_NEVER_INLINE __noinline__
    +
    429 # else
    +
    430 # define GLM_INLINE inline
    +
    431 # define GLM_NEVER_INLINE
    +
    432 # endif//GLM_COMPILER
    +
    433 #else
    +
    434 # define GLM_INLINE inline
    +
    435 # define GLM_NEVER_INLINE
    +
    436 #endif//defined(GLM_FORCE_INLINE)
    +
    437 
    +
    438 #define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL
    +
    439 #define GLM_FUNC_QUALIFIER GLM_CUDA_FUNC_DEF GLM_INLINE
    +
    440 
    +
    442 // Swizzle operators
    +
    443 
    +
    444 // User defines: GLM_FORCE_SWIZZLE
    +
    445 
    +
    446 #define GLM_SWIZZLE_DISABLED 0
    +
    447 #define GLM_SWIZZLE_OPERATOR 1
    +
    448 #define GLM_SWIZZLE_FUNCTION 2
    +
    449 
    +
    450 #if defined(GLM_FORCE_XYZW_ONLY)
    +
    451 # undef GLM_FORCE_SWIZZLE
    +
    452 #endif
    +
    453 
    +
    454 #if defined(GLM_SWIZZLE)
    +
    455 # pragma message("GLM: GLM_SWIZZLE is deprecated, use GLM_FORCE_SWIZZLE instead.")
    +
    456 # define GLM_FORCE_SWIZZLE
    +
    457 #endif
    +
    458 
    +
    459 #if defined(GLM_FORCE_SWIZZLE) && (GLM_LANG & GLM_LANG_CXXMS_FLAG)
    +
    460 # define GLM_CONFIG_SWIZZLE GLM_SWIZZLE_OPERATOR
    +
    461 #elif defined(GLM_FORCE_SWIZZLE)
    +
    462 # define GLM_CONFIG_SWIZZLE GLM_SWIZZLE_FUNCTION
    +
    463 #else
    +
    464 # define GLM_CONFIG_SWIZZLE GLM_SWIZZLE_DISABLED
    +
    465 #endif
    +
    466 
    +
    468 // Allows using not basic types as genType
    +
    469 
    +
    470 // #define GLM_FORCE_UNRESTRICTED_GENTYPE
    +
    471 
    +
    472 #ifdef GLM_FORCE_UNRESTRICTED_GENTYPE
    +
    473 # define GLM_CONFIG_UNRESTRICTED_GENTYPE GLM_ENABLE
    +
    474 #else
    +
    475 # define GLM_CONFIG_UNRESTRICTED_GENTYPE GLM_DISABLE
    +
    476 #endif
    +
    477 
    +
    479 // Clip control, define GLM_FORCE_DEPTH_ZERO_TO_ONE before including GLM
    +
    480 // to use a clip space between 0 to 1.
    +
    481 // Coordinate system, define GLM_FORCE_LEFT_HANDED before including GLM
    +
    482 // to use left handed coordinate system by default.
    +
    483 
    +
    484 #define GLM_CLIP_CONTROL_ZO_BIT (1 << 0) // ZERO_TO_ONE
    +
    485 #define GLM_CLIP_CONTROL_NO_BIT (1 << 1) // NEGATIVE_ONE_TO_ONE
    +
    486 #define GLM_CLIP_CONTROL_LH_BIT (1 << 2) // LEFT_HANDED, For DirectX, Metal, Vulkan
    +
    487 #define GLM_CLIP_CONTROL_RH_BIT (1 << 3) // RIGHT_HANDED, For OpenGL, default in GLM
    +
    488 
    +
    489 #define GLM_CLIP_CONTROL_LH_ZO (GLM_CLIP_CONTROL_LH_BIT | GLM_CLIP_CONTROL_ZO_BIT)
    +
    490 #define GLM_CLIP_CONTROL_LH_NO (GLM_CLIP_CONTROL_LH_BIT | GLM_CLIP_CONTROL_NO_BIT)
    +
    491 #define GLM_CLIP_CONTROL_RH_ZO (GLM_CLIP_CONTROL_RH_BIT | GLM_CLIP_CONTROL_ZO_BIT)
    +
    492 #define GLM_CLIP_CONTROL_RH_NO (GLM_CLIP_CONTROL_RH_BIT | GLM_CLIP_CONTROL_NO_BIT)
    +
    493 
    +
    494 #ifdef GLM_FORCE_DEPTH_ZERO_TO_ONE
    +
    495 # ifdef GLM_FORCE_LEFT_HANDED
    +
    496 # define GLM_CONFIG_CLIP_CONTROL GLM_CLIP_CONTROL_LH_ZO
    +
    497 # else
    +
    498 # define GLM_CONFIG_CLIP_CONTROL GLM_CLIP_CONTROL_RH_ZO
    +
    499 # endif
    +
    500 #else
    +
    501 # ifdef GLM_FORCE_LEFT_HANDED
    +
    502 # define GLM_CONFIG_CLIP_CONTROL GLM_CLIP_CONTROL_LH_NO
    +
    503 # else
    +
    504 # define GLM_CONFIG_CLIP_CONTROL GLM_CLIP_CONTROL_RH_NO
    +
    505 # endif
    +
    506 #endif
    +
    507 
    +
    509 // Qualifiers
    +
    510 
    +
    511 #if (GLM_COMPILER & GLM_COMPILER_VC) || ((GLM_COMPILER & GLM_COMPILER_INTEL) && (GLM_PLATFORM & GLM_PLATFORM_WINDOWS))
    +
    512 # define GLM_DEPRECATED __declspec(deprecated)
    +
    513 # define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef __declspec(align(alignment)) type name
    +
    514 #elif GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_CLANG | GLM_COMPILER_INTEL)
    +
    515 # define GLM_DEPRECATED __attribute__((__deprecated__))
    +
    516 # define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name __attribute__((aligned(alignment)))
    +
    517 #elif GLM_COMPILER & GLM_COMPILER_CUDA
    +
    518 # define GLM_DEPRECATED
    +
    519 # define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name __align__(x)
    +
    520 #else
    +
    521 # define GLM_DEPRECATED
    +
    522 # define GLM_ALIGNED_TYPEDEF(type, name, alignment) typedef type name
    +
    523 #endif
    +
    524 
    +
    526 
    +
    527 #ifdef GLM_FORCE_EXPLICIT_CTOR
    +
    528 # define GLM_EXPLICIT explicit
    +
    529 #else
    +
    530 # define GLM_EXPLICIT
    +
    531 #endif
    +
    532 
    +
    534 // SYCL
    +
    535 
    +
    536 #if GLM_COMPILER==GLM_COMPILER_SYCL
    +
    537 
    +
    538 #include <CL/sycl.hpp>
    +
    539 #include <limits>
    +
    540 
    +
    541 namespace glm {
    +
    542 namespace std {
    +
    543  // Import SYCL's functions into the namespace glm::std to force their usages.
    +
    544  // It's important to use the math built-in function (sin, exp, ...)
    +
    545  // of SYCL instead the std ones.
    +
    546  using namespace cl::sycl;
    +
    547 
    +
    549  // Import some "harmless" std's stuffs used by glm into
    +
    550  // the new glm::std namespace.
    +
    551  template<typename T>
    +
    552  using numeric_limits = ::std::numeric_limits<T>;
    +
    553 
    +
    554  using ::std::size_t;
    +
    555 
    + + + + +
    560 
    + + + + +
    565 
    +
    566  using ::std::make_unsigned;
    +
    568 } //namespace std
    +
    569 } //namespace glm
    +
    570 
    +
    571 #endif
    +
    572 
    +
    574 
    +
    576 // Length type: all length functions returns a length_t type.
    +
    577 // When GLM_FORCE_SIZE_T_LENGTH is defined, length_t is a typedef of size_t otherwise
    +
    578 // length_t is a typedef of int like GLSL defines it.
    +
    579 
    +
    580 #define GLM_LENGTH_INT 1
    +
    581 #define GLM_LENGTH_SIZE_T 2
    +
    582 
    +
    583 #ifdef GLM_FORCE_SIZE_T_LENGTH
    +
    584 # define GLM_CONFIG_LENGTH_TYPE GLM_LENGTH_SIZE_T
    +
    585 #else
    +
    586 # define GLM_CONFIG_LENGTH_TYPE GLM_LENGTH_INT
    +
    587 #endif
    +
    588 
    +
    589 namespace glm
    +
    590 {
    +
    591  using std::size_t;
    +
    592 # if GLM_CONFIG_LENGTH_TYPE == GLM_LENGTH_SIZE_T
    +
    593  typedef size_t length_t;
    +
    594 # else
    +
    595  typedef int length_t;
    +
    596 # endif
    +
    597 }//namespace glm
    +
    598 
    +
    600 // constexpr
    +
    601 
    +
    602 #if GLM_HAS_CONSTEXPR
    +
    603 # define GLM_CONFIG_CONSTEXP GLM_ENABLE
    +
    604 
    +
    605  namespace glm
    +
    606  {
    +
    607  template<typename T, std::size_t N>
    +
    608  constexpr std::size_t countof(T const (&)[N])
    +
    609  {
    +
    610  return N;
    +
    611  }
    +
    612  }//namespace glm
    +
    613 # define GLM_COUNTOF(arr) glm::countof(arr)
    +
    614 #elif defined(_MSC_VER)
    +
    615 # define GLM_CONFIG_CONSTEXP GLM_DISABLE
    +
    616 
    +
    617 # define GLM_COUNTOF(arr) _countof(arr)
    +
    618 #else
    +
    619 # define GLM_CONFIG_CONSTEXP GLM_DISABLE
    +
    620 
    +
    621 # define GLM_COUNTOF(arr) sizeof(arr) / sizeof(arr[0])
    +
    622 #endif
    +
    623 
    +
    625 // uint
    +
    626 
    +
    627 namespace glm{
    +
    628 namespace detail
    +
    629 {
    +
    630  template<typename T>
    +
    631  struct is_int
    +
    632  {
    +
    633  enum test {value = 0};
    +
    634  };
    +
    635 
    +
    636  template<>
    +
    637  struct is_int<unsigned int>
    +
    638  {
    +
    639  enum test {value = ~0};
    +
    640  };
    +
    641 
    +
    642  template<>
    +
    643  struct is_int<signed int>
    +
    644  {
    +
    645  enum test {value = ~0};
    +
    646  };
    +
    647 }//namespace detail
    +
    648 
    +
    649  typedef unsigned int uint;
    +
    650 }//namespace glm
    +
    651 
    +
    653 // 64-bit int
    +
    654 
    +
    655 #if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    656 # include <cstdint>
    +
    657 #endif
    +
    658 
    +
    659 namespace glm{
    +
    660 namespace detail
    +
    661 {
    +
    662 # if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    663  typedef std::uint64_t uint64;
    +
    664  typedef std::int64_t int64;
    +
    665 # elif (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) // C99 detected, 64 bit types available
    +
    666  typedef uint64_t uint64;
    +
    667  typedef int64_t int64;
    +
    668 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    669  typedef unsigned __int64 uint64;
    +
    670  typedef signed __int64 int64;
    +
    671 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    672 # pragma GCC diagnostic ignored "-Wlong-long"
    +
    673  __extension__ typedef unsigned long long uint64;
    +
    674  __extension__ typedef signed long long int64;
    +
    675 # elif (GLM_COMPILER & GLM_COMPILER_CLANG)
    +
    676 # pragma clang diagnostic ignored "-Wc++11-long-long"
    +
    677  typedef unsigned long long uint64;
    +
    678  typedef signed long long int64;
    +
    679 # else//unknown compiler
    +
    680  typedef unsigned long long uint64;
    +
    681  typedef signed long long int64;
    +
    682 # endif
    +
    683 }//namespace detail
    +
    684 }//namespace glm
    +
    685 
    +
    687 // make_unsigned
    +
    688 
    +
    689 #if GLM_HAS_MAKE_SIGNED
    +
    690 # include <type_traits>
    +
    691 
    +
    692 namespace glm{
    +
    693 namespace detail
    +
    694 {
    +
    695  using std::make_unsigned;
    +
    696 }//namespace detail
    +
    697 }//namespace glm
    +
    698 
    +
    699 #else
    +
    700 
    +
    701 namespace glm{
    +
    702 namespace detail
    +
    703 {
    +
    704  template<typename genType>
    +
    705  struct make_unsigned
    +
    706  {};
    +
    707 
    +
    708  template<>
    +
    709  struct make_unsigned<char>
    +
    710  {
    +
    711  typedef unsigned char type;
    +
    712  };
    +
    713 
    +
    714  template<>
    +
    715  struct make_unsigned<signed char>
    +
    716  {
    +
    717  typedef unsigned char type;
    +
    718  };
    +
    719 
    +
    720  template<>
    +
    721  struct make_unsigned<short>
    +
    722  {
    +
    723  typedef unsigned short type;
    +
    724  };
    +
    725 
    +
    726  template<>
    +
    727  struct make_unsigned<int>
    +
    728  {
    +
    729  typedef unsigned int type;
    +
    730  };
    +
    731 
    +
    732  template<>
    +
    733  struct make_unsigned<long>
    +
    734  {
    +
    735  typedef unsigned long type;
    +
    736  };
    +
    737 
    +
    738  template<>
    +
    739  struct make_unsigned<int64>
    +
    740  {
    +
    741  typedef uint64 type;
    +
    742  };
    +
    743 
    +
    744  template<>
    +
    745  struct make_unsigned<unsigned char>
    +
    746  {
    +
    747  typedef unsigned char type;
    +
    748  };
    +
    749 
    +
    750  template<>
    +
    751  struct make_unsigned<unsigned short>
    +
    752  {
    +
    753  typedef unsigned short type;
    +
    754  };
    +
    755 
    +
    756  template<>
    +
    757  struct make_unsigned<unsigned int>
    +
    758  {
    +
    759  typedef unsigned int type;
    +
    760  };
    +
    761 
    +
    762  template<>
    +
    763  struct make_unsigned<unsigned long>
    +
    764  {
    +
    765  typedef unsigned long type;
    +
    766  };
    +
    767 
    +
    768  template<>
    +
    769  struct make_unsigned<uint64>
    +
    770  {
    +
    771  typedef uint64 type;
    +
    772  };
    +
    773 }//namespace detail
    +
    774 }//namespace glm
    +
    775 #endif
    +
    776 
    +
    778 // Only use x, y, z, w as vector type components
    +
    779 
    +
    780 #ifdef GLM_FORCE_XYZW_ONLY
    +
    781 # define GLM_CONFIG_XYZW_ONLY GLM_ENABLE
    +
    782 #else
    +
    783 # define GLM_CONFIG_XYZW_ONLY GLM_DISABLE
    +
    784 #endif
    +
    785 
    +
    787 // Configure the use of defaulted initialized types
    +
    788 
    +
    789 #define GLM_CTOR_INIT_DISABLE 0
    +
    790 #define GLM_CTOR_INITIALIZER_LIST 1
    +
    791 #define GLM_CTOR_INITIALISATION 2
    +
    792 
    +
    793 #if defined(GLM_FORCE_CTOR_INIT) && GLM_HAS_INITIALIZER_LISTS
    +
    794 # define GLM_CONFIG_CTOR_INIT GLM_CTOR_INITIALIZER_LIST
    +
    795 #elif defined(GLM_FORCE_CTOR_INIT) && !GLM_HAS_INITIALIZER_LISTS
    +
    796 # define GLM_CONFIG_CTOR_INIT GLM_CTOR_INITIALISATION
    +
    797 #else
    +
    798 # define GLM_CONFIG_CTOR_INIT GLM_CTOR_INIT_DISABLE
    +
    799 #endif
    +
    800 
    +
    802 // Use SIMD instruction sets
    +
    803 
    +
    804 #if GLM_HAS_ALIGNOF && (GLM_LANG & GLM_LANG_CXXMS_FLAG) && (GLM_ARCH & GLM_ARCH_SIMD_BIT)
    +
    805 # define GLM_CONFIG_SIMD GLM_ENABLE
    +
    806 #else
    +
    807 # define GLM_CONFIG_SIMD GLM_DISABLE
    +
    808 #endif
    +
    809 
    +
    811 // Configure the use of defaulted function
    +
    812 
    +
    813 #if GLM_HAS_DEFAULTED_FUNCTIONS && GLM_CONFIG_CTOR_INIT == GLM_CTOR_INIT_DISABLE
    +
    814 # define GLM_CONFIG_DEFAULTED_FUNCTIONS GLM_ENABLE
    +
    815 # define GLM_DEFAULT = default
    +
    816 #else
    +
    817 # define GLM_CONFIG_DEFAULTED_FUNCTIONS GLM_DISABLE
    +
    818 # define GLM_DEFAULT
    +
    819 #endif
    +
    820 
    +
    822 // Configure the use of aligned gentypes
    +
    823 
    +
    824 #ifdef GLM_FORCE_ALIGNED // Legacy define
    +
    825 # define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
    +
    826 #endif
    +
    827 
    +
    828 #ifdef GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
    +
    829 # define GLM_FORCE_ALIGNED_GENTYPES
    +
    830 #endif
    +
    831 
    +
    832 #if GLM_HAS_ALIGNOF && (GLM_LANG & GLM_LANG_CXXMS_FLAG) && (defined(GLM_FORCE_ALIGNED_GENTYPES) || (GLM_CONFIG_SIMD == GLM_ENABLE))
    +
    833 # define GLM_CONFIG_ALIGNED_GENTYPES GLM_ENABLE
    +
    834 #else
    +
    835 # define GLM_CONFIG_ALIGNED_GENTYPES GLM_DISABLE
    +
    836 #endif
    +
    837 
    +
    839 // Configure the use of anonymous structure as implementation detail
    +
    840 
    +
    841 #if ((GLM_CONFIG_SIMD == GLM_ENABLE) || (GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR) || (GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE))
    +
    842 # define GLM_CONFIG_ANONYMOUS_STRUCT GLM_ENABLE
    +
    843 #else
    +
    844 # define GLM_CONFIG_ANONYMOUS_STRUCT GLM_DISABLE
    +
    845 #endif
    +
    846 
    +
    848 // Silent warnings
    +
    849 
    +
    850 #ifdef GLM_FORCE_SILENT_WARNINGS
    +
    851 # define GLM_SILENT_WARNINGS GLM_ENABLE
    +
    852 #else
    +
    853 # define GLM_SILENT_WARNINGS GLM_DISABLE
    +
    854 #endif
    +
    855 
    +
    857 // Precision
    +
    858 
    +
    859 #define GLM_HIGHP 1
    +
    860 #define GLM_MEDIUMP 2
    +
    861 #define GLM_LOWP 3
    +
    862 
    +
    863 #if defined(GLM_FORCE_PRECISION_HIGHP_BOOL) || defined(GLM_PRECISION_HIGHP_BOOL)
    +
    864 # define GLM_CONFIG_PRECISION_BOOL GLM_HIGHP
    +
    865 #elif defined(GLM_FORCE_PRECISION_MEDIUMP_BOOL) || defined(GLM_PRECISION_MEDIUMP_BOOL)
    +
    866 # define GLM_CONFIG_PRECISION_BOOL GLM_MEDIUMP
    +
    867 #elif defined(GLM_FORCE_PRECISION_LOWP_BOOL) || defined(GLM_PRECISION_LOWP_BOOL)
    +
    868 # define GLM_CONFIG_PRECISION_BOOL GLM_LOWP
    +
    869 #else
    +
    870 # define GLM_CONFIG_PRECISION_BOOL GLM_HIGHP
    +
    871 #endif
    +
    872 
    +
    873 #if defined(GLM_FORCE_PRECISION_HIGHP_INT) || defined(GLM_PRECISION_HIGHP_INT)
    +
    874 # define GLM_CONFIG_PRECISION_INT GLM_HIGHP
    +
    875 #elif defined(GLM_FORCE_PRECISION_MEDIUMP_INT) || defined(GLM_PRECISION_MEDIUMP_INT)
    +
    876 # define GLM_CONFIG_PRECISION_INT GLM_MEDIUMP
    +
    877 #elif defined(GLM_FORCE_PRECISION_LOWP_INT) || defined(GLM_PRECISION_LOWP_INT)
    +
    878 # define GLM_CONFIG_PRECISION_INT GLM_LOWP
    +
    879 #else
    +
    880 # define GLM_CONFIG_PRECISION_INT GLM_HIGHP
    +
    881 #endif
    +
    882 
    +
    883 #if defined(GLM_FORCE_PRECISION_HIGHP_UINT) || defined(GLM_PRECISION_HIGHP_UINT)
    +
    884 # define GLM_CONFIG_PRECISION_UINT GLM_HIGHP
    +
    885 #elif defined(GLM_FORCE_PRECISION_MEDIUMP_UINT) || defined(GLM_PRECISION_MEDIUMP_UINT)
    +
    886 # define GLM_CONFIG_PRECISION_UINT GLM_MEDIUMP
    +
    887 #elif defined(GLM_FORCE_PRECISION_LOWP_UINT) || defined(GLM_PRECISION_LOWP_UINT)
    +
    888 # define GLM_CONFIG_PRECISION_UINT GLM_LOWP
    +
    889 #else
    +
    890 # define GLM_CONFIG_PRECISION_UINT GLM_HIGHP
    +
    891 #endif
    +
    892 
    +
    893 #if defined(GLM_FORCE_PRECISION_HIGHP_FLOAT) || defined(GLM_PRECISION_HIGHP_FLOAT)
    +
    894 # define GLM_CONFIG_PRECISION_FLOAT GLM_HIGHP
    +
    895 #elif defined(GLM_FORCE_PRECISION_MEDIUMP_FLOAT) || defined(GLM_PRECISION_MEDIUMP_FLOAT)
    +
    896 # define GLM_CONFIG_PRECISION_FLOAT GLM_MEDIUMP
    +
    897 #elif defined(GLM_FORCE_PRECISION_LOWP_FLOAT) || defined(GLM_PRECISION_LOWP_FLOAT)
    +
    898 # define GLM_CONFIG_PRECISION_FLOAT GLM_LOWP
    +
    899 #else
    +
    900 # define GLM_CONFIG_PRECISION_FLOAT GLM_HIGHP
    +
    901 #endif
    +
    902 
    +
    903 #if defined(GLM_FORCE_PRECISION_HIGHP_DOUBLE) || defined(GLM_PRECISION_HIGHP_DOUBLE)
    +
    904 # define GLM_CONFIG_PRECISION_DOUBLE GLM_HIGHP
    +
    905 #elif defined(GLM_FORCE_PRECISION_MEDIUMP_DOUBLE) || defined(GLM_PRECISION_MEDIUMP_DOUBLE)
    +
    906 # define GLM_CONFIG_PRECISION_DOUBLE GLM_MEDIUMP
    +
    907 #elif defined(GLM_FORCE_PRECISION_LOWP_DOUBLE) || defined(GLM_PRECISION_LOWP_DOUBLE)
    +
    908 # define GLM_CONFIG_PRECISION_DOUBLE GLM_LOWP
    +
    909 #else
    +
    910 # define GLM_CONFIG_PRECISION_DOUBLE GLM_HIGHP
    +
    911 #endif
    +
    912 
    +
    914 // Check inclusions of different versions of GLM
    +
    915 
    +
    916 #elif ((GLM_SETUP_INCLUDED != GLM_VERSION) && !defined(GLM_FORCE_IGNORE_VERSION))
    +
    917 # error "GLM error: A different version of GLM is already included. Define GLM_FORCE_IGNORE_VERSION before including GLM headers to ignore this error."
    +
    918 #elif GLM_SETUP_INCLUDED == GLM_VERSION
    +
    919 
    +
    921 // Messages
    +
    922 
    +
    923 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_MESSAGE_DISPLAYED)
    +
    924 # define GLM_MESSAGE_DISPLAYED
    +
    925 # define GLM_STR_HELPER(x) #x
    +
    926 # define GLM_STR(x) GLM_STR_HELPER(x)
    +
    927 
    +
    928  // Report GLM version
    +
    929 # pragma message (GLM_STR(GLM_VERSION_MESSAGE))
    +
    930 
    +
    931  // Report C++ language
    +
    932 # if (GLM_LANG & GLM_LANG_CXX2A_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    933 # pragma message("GLM: C++ 2A with extensions")
    +
    934 # elif (GLM_LANG & GLM_LANG_CXX2A_FLAG)
    +
    935 # pragma message("GLM: C++ 2A")
    +
    936 # elif (GLM_LANG & GLM_LANG_CXX17_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    937 # pragma message("GLM: C++ 17 with extensions")
    +
    938 # elif (GLM_LANG & GLM_LANG_CXX17_FLAG)
    +
    939 # pragma message("GLM: C++ 17")
    +
    940 # elif (GLM_LANG & GLM_LANG_CXX14_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    941 # pragma message("GLM: C++ 14 with extensions")
    +
    942 # elif (GLM_LANG & GLM_LANG_CXX14_FLAG)
    +
    943 # pragma message("GLM: C++ 14")
    +
    944 # elif (GLM_LANG & GLM_LANG_CXX11_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    945 # pragma message("GLM: C++ 11 with extensions")
    +
    946 # elif (GLM_LANG & GLM_LANG_CXX11_FLAG)
    +
    947 # pragma message("GLM: C++ 11")
    +
    948 # elif (GLM_LANG & GLM_LANG_CXX0X_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    949 # pragma message("GLM: C++ 0x with extensions")
    +
    950 # elif (GLM_LANG & GLM_LANG_CXX0X_FLAG)
    +
    951 # pragma message("GLM: C++ 0x")
    +
    952 # elif (GLM_LANG & GLM_LANG_CXX03_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    953 # pragma message("GLM: C++ 03 with extensions")
    +
    954 # elif (GLM_LANG & GLM_LANG_CXX03_FLAG)
    +
    955 # pragma message("GLM: C++ 03")
    +
    956 # elif (GLM_LANG & GLM_LANG_CXX98_FLAG) && (GLM_LANG & GLM_LANG_EXT)
    +
    957 # pragma message("GLM: C++ 98 with extensions")
    +
    958 # elif (GLM_LANG & GLM_LANG_CXX98_FLAG)
    +
    959 # pragma message("GLM: C++ 98")
    +
    960 # else
    +
    961 # pragma message("GLM: C++ language undetected")
    +
    962 # endif//GLM_LANG
    +
    963 
    +
    964  // Report compiler detection
    +
    965 # if GLM_COMPILER & GLM_COMPILER_CUDA
    +
    966 # pragma message("GLM: CUDA compiler detected")
    +
    967 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    968 # pragma message("GLM: Visual C++ compiler detected")
    +
    969 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    970 # pragma message("GLM: Clang compiler detected")
    +
    971 # elif GLM_COMPILER & GLM_COMPILER_INTEL
    +
    972 # pragma message("GLM: Intel Compiler detected")
    +
    973 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    974 # pragma message("GLM: GCC compiler detected")
    +
    975 # else
    +
    976 # pragma message("GLM: Compiler not detected")
    +
    977 # endif
    +
    978 
    +
    979  // Report build target
    +
    980 # if (GLM_ARCH & GLM_ARCH_AVX2_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    981 # pragma message("GLM: x86 64 bits with AVX2 instruction set build target")
    +
    982 # elif (GLM_ARCH & GLM_ARCH_AVX2_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    983 # pragma message("GLM: x86 32 bits with AVX2 instruction set build target")
    +
    984 
    +
    985 # elif (GLM_ARCH & GLM_ARCH_AVX_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    986 # pragma message("GLM: x86 64 bits with AVX instruction set build target")
    +
    987 # elif (GLM_ARCH & GLM_ARCH_AVX_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    988 # pragma message("GLM: x86 32 bits with AVX instruction set build target")
    +
    989 
    +
    990 # elif (GLM_ARCH & GLM_ARCH_SSE42_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    991 # pragma message("GLM: x86 64 bits with SSE4.2 instruction set build target")
    +
    992 # elif (GLM_ARCH & GLM_ARCH_SSE42_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    993 # pragma message("GLM: x86 32 bits with SSE4.2 instruction set build target")
    +
    994 
    +
    995 # elif (GLM_ARCH & GLM_ARCH_SSE41_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    996 # pragma message("GLM: x86 64 bits with SSE4.1 instruction set build target")
    +
    997 # elif (GLM_ARCH & GLM_ARCH_SSE41_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    998 # pragma message("GLM: x86 32 bits with SSE4.1 instruction set build target")
    +
    999 
    +
    1000 # elif (GLM_ARCH & GLM_ARCH_SSSE3_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1001 # pragma message("GLM: x86 64 bits with SSSE3 instruction set build target")
    +
    1002 # elif (GLM_ARCH & GLM_ARCH_SSSE3_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1003 # pragma message("GLM: x86 32 bits with SSSE3 instruction set build target")
    +
    1004 
    +
    1005 # elif (GLM_ARCH & GLM_ARCH_SSE3_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1006 # pragma message("GLM: x86 64 bits with SSE3 instruction set build target")
    +
    1007 # elif (GLM_ARCH & GLM_ARCH_SSE3_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1008 # pragma message("GLM: x86 32 bits with SSE3 instruction set build target")
    +
    1009 
    +
    1010 # elif (GLM_ARCH & GLM_ARCH_SSE2_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1011 # pragma message("GLM: x86 64 bits with SSE2 instruction set build target")
    +
    1012 # elif (GLM_ARCH & GLM_ARCH_SSE2_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1013 # pragma message("GLM: x86 32 bits with SSE2 instruction set build target")
    +
    1014 
    +
    1015 # elif (GLM_ARCH & GLM_ARCH_X86_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1016 # pragma message("GLM: x86 64 bits build target")
    +
    1017 # elif (GLM_ARCH & GLM_ARCH_X86_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1018 # pragma message("GLM: x86 32 bits build target")
    +
    1019 
    +
    1020 # elif (GLM_ARCH & GLM_ARCH_NEON_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1021 # pragma message("GLM: ARM 64 bits with Neon instruction set build target")
    +
    1022 # elif (GLM_ARCH & GLM_ARCH_NEON_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1023 # pragma message("GLM: ARM 32 bits with Neon instruction set build target")
    +
    1024 
    +
    1025 # elif (GLM_ARCH & GLM_ARCH_ARM_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1026 # pragma message("GLM: ARM 64 bits build target")
    +
    1027 # elif (GLM_ARCH & GLM_ARCH_ARM_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1028 # pragma message("GLM: ARM 32 bits build target")
    +
    1029 
    +
    1030 # elif (GLM_ARCH & GLM_ARCH_MIPS_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1031 # pragma message("GLM: MIPS 64 bits build target")
    +
    1032 # elif (GLM_ARCH & GLM_ARCH_MIPS_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1033 # pragma message("GLM: MIPS 32 bits build target")
    +
    1034 
    +
    1035 # elif (GLM_ARCH & GLM_ARCH_PPC_BIT) && (GLM_MODEL == GLM_MODEL_64)
    +
    1036 # pragma message("GLM: PowerPC 64 bits build target")
    +
    1037 # elif (GLM_ARCH & GLM_ARCH_PPC_BIT) && (GLM_MODEL == GLM_MODEL_32)
    +
    1038 # pragma message("GLM: PowerPC 32 bits build target")
    +
    1039 # else
    +
    1040 # pragma message("GLM: Unknown build target")
    +
    1041 # endif//GLM_ARCH
    +
    1042 
    +
    1043  // Report platform name
    +
    1044 # if(GLM_PLATFORM & GLM_PLATFORM_QNXNTO)
    +
    1045 # pragma message("GLM: QNX platform detected")
    +
    1046 //# elif(GLM_PLATFORM & GLM_PLATFORM_IOS)
    +
    1047 //# pragma message("GLM: iOS platform detected")
    +
    1048 # elif(GLM_PLATFORM & GLM_PLATFORM_APPLE)
    +
    1049 # pragma message("GLM: Apple platform detected")
    +
    1050 # elif(GLM_PLATFORM & GLM_PLATFORM_WINCE)
    +
    1051 # pragma message("GLM: WinCE platform detected")
    +
    1052 # elif(GLM_PLATFORM & GLM_PLATFORM_WINDOWS)
    +
    1053 # pragma message("GLM: Windows platform detected")
    +
    1054 # elif(GLM_PLATFORM & GLM_PLATFORM_CHROME_NACL)
    +
    1055 # pragma message("GLM: Native Client detected")
    +
    1056 # elif(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
    +
    1057 # pragma message("GLM: Android platform detected")
    +
    1058 # elif(GLM_PLATFORM & GLM_PLATFORM_LINUX)
    +
    1059 # pragma message("GLM: Linux platform detected")
    +
    1060 # elif(GLM_PLATFORM & GLM_PLATFORM_UNIX)
    +
    1061 # pragma message("GLM: UNIX platform detected")
    +
    1062 # elif(GLM_PLATFORM & GLM_PLATFORM_UNKNOWN)
    +
    1063 # pragma message("GLM: platform unknown")
    +
    1064 # else
    +
    1065 # pragma message("GLM: platform not detected")
    +
    1066 # endif
    +
    1067 
    +
    1068  // Report whether only xyzw component are used
    +
    1069 # if defined GLM_FORCE_XYZW_ONLY
    +
    1070 # pragma message("GLM: GLM_FORCE_XYZW_ONLY is defined. Only x, y, z and w component are available in vector type. This define disables swizzle operators and SIMD instruction sets.")
    +
    1071 # endif
    +
    1072 
    +
    1073  // Report swizzle operator support
    +
    1074 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    1075 # pragma message("GLM: GLM_FORCE_SWIZZLE is defined, swizzling operators enabled.")
    +
    1076 # elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    1077 # pragma message("GLM: GLM_FORCE_SWIZZLE is defined, swizzling functions enabled. Enable compiler C++ language extensions to enable swizzle operators.")
    +
    1078 # else
    +
    1079 # pragma message("GLM: GLM_FORCE_SWIZZLE is undefined. swizzling functions or operators are disabled.")
    +
    1080 # endif
    +
    1081 
    +
    1082  // Report .length() type
    +
    1083 # if GLM_CONFIG_LENGTH_TYPE == GLM_LENGTH_SIZE_T
    +
    1084 # pragma message("GLM: GLM_FORCE_SIZE_T_LENGTH is defined. .length() returns a glm::length_t, a typedef of std::size_t.")
    +
    1085 # else
    +
    1086 # pragma message("GLM: GLM_FORCE_SIZE_T_LENGTH is undefined. .length() returns a glm::length_t, a typedef of int following GLSL.")
    +
    1087 # endif
    +
    1088 
    +
    1089 # if GLM_CONFIG_UNRESTRICTED_GENTYPE == GLM_ENABLE
    +
    1090 # pragma message("GLM: GLM_FORCE_UNRESTRICTED_GENTYPE is defined. Removes GLSL restrictions on valid function genTypes.")
    +
    1091 # else
    +
    1092 # pragma message("GLM: GLM_FORCE_UNRESTRICTED_GENTYPE is undefined. Follows strictly GLSL on valid function genTypes.")
    +
    1093 # endif
    +
    1094 
    +
    1095 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    1096 # pragma message("GLM: GLM_FORCE_SILENT_WARNINGS is defined. Ignores C++ warnings from using C++ language extensions.")
    +
    1097 # else
    +
    1098 # pragma message("GLM: GLM_FORCE_SILENT_WARNINGS is undefined. Shows C++ warnings from using C++ language extensions.")
    +
    1099 # endif
    +
    1100 
    +
    1101 # ifdef GLM_FORCE_SINGLE_ONLY
    +
    1102 # pragma message("GLM: GLM_FORCE_SINGLE_ONLY is defined. Using only single precision floating-point types.")
    +
    1103 # endif
    +
    1104 
    +
    1105 # if defined(GLM_FORCE_ALIGNED_GENTYPES) && (GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE)
    +
    1106 # undef GLM_FORCE_ALIGNED_GENTYPES
    +
    1107 # pragma message("GLM: GLM_FORCE_ALIGNED_GENTYPES is defined, allowing aligned types. This prevents the use of C++ constexpr.")
    +
    1108 # elif defined(GLM_FORCE_ALIGNED_GENTYPES) && (GLM_CONFIG_ALIGNED_GENTYPES == GLM_DISABLE)
    +
    1109 # undef GLM_FORCE_ALIGNED_GENTYPES
    +
    1110 # pragma message("GLM: GLM_FORCE_ALIGNED_GENTYPES is defined but is disabled. It requires C++11 and language extensions.")
    +
    1111 # endif
    +
    1112 
    +
    1113 # if defined(GLM_FORCE_DEFAULT_ALIGNED_GENTYPES)
    +
    1114 # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_DISABLE
    +
    1115 # undef GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
    +
    1116 # pragma message("GLM: GLM_FORCE_DEFAULT_ALIGNED_GENTYPES is defined but is disabled. It requires C++11 and language extensions.")
    +
    1117 # elif GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
    +
    1118 # pragma message("GLM: GLM_FORCE_DEFAULT_ALIGNED_GENTYPES is defined. All gentypes (e.g. vec3) will be aligned and padded by default.")
    +
    1119 # endif
    +
    1120 # endif
    +
    1121 
    +
    1122 # if GLM_CONFIG_CLIP_CONTROL & GLM_CLIP_CONTROL_ZO_BIT
    +
    1123 # pragma message("GLM: GLM_FORCE_DEPTH_ZERO_TO_ONE is defined. Using zero to one depth clip space.")
    +
    1124 # else
    +
    1125 # pragma message("GLM: GLM_FORCE_DEPTH_ZERO_TO_ONE is undefined. Using negative one to one depth clip space.")
    +
    1126 # endif
    +
    1127 
    +
    1128 # if GLM_CONFIG_CLIP_CONTROL & GLM_CLIP_CONTROL_LH_BIT
    +
    1129 # pragma message("GLM: GLM_FORCE_LEFT_HANDED is defined. Using left handed coordinate system.")
    +
    1130 # else
    +
    1131 # pragma message("GLM: GLM_FORCE_LEFT_HANDED is undefined. Using right handed coordinate system.")
    +
    1132 # endif
    +
    1133 #endif//GLM_MESSAGES
    +
    1134 
    +
    1135 #endif//GLM_SETUP_INCLUDED
    +
    int64 int64_t
    64 bit signed integer type.
    Definition: fwd.hpp:85
    +
    int8 int8_t
    8 bit signed integer type.
    Definition: fwd.hpp:43
    +
    uint32 uint32_t
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:129
    +
    uint16 uint16_t
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:115
    +
    uint8 uint8_t
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:101
    +
    uint64 uint64_t
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:143
    +
    int16 int16_t
    16 bit signed integer type.
    Definition: fwd.hpp:57
    +
    Definition: hash.hpp:49
    +
    int32 int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:71
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00154.html b/external/glm-0.9.9.8/doc/api/a00154.html new file mode 100644 index 0000000..c465f06 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00154.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: spline.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    spline.hpp File Reference
    +
    +
    + +

    GLM_GTX_spline +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType catmullRom (genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
     Return a point from a catmull rom curve. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cubic (genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
     Return a point from a cubic curve. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType hermite (genType const &v1, genType const &t1, genType const &v2, genType const &t2, typename genType::value_type const &s)
     Return a point from a hermite curve. More...
     
    +

    Detailed Description

    +

    GLM_GTX_spline

    +
    See also
    Core features (dependence)
    + +

    Definition in file spline.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00154_source.html b/external/glm-0.9.9.8/doc/api/a00154_source.html new file mode 100644 index 0000000..6b1da0f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00154_source.html @@ -0,0 +1,148 @@ + + + + + + +0.9.9 API documentation: spline.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    spline.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include "../gtx/optimum_pow.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_spline is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_spline extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL genType catmullRom(
    +
    36  genType const& v1,
    +
    37  genType const& v2,
    +
    38  genType const& v3,
    +
    39  genType const& v4,
    +
    40  typename genType::value_type const& s);
    +
    41 
    +
    44  template<typename genType>
    +
    45  GLM_FUNC_DECL genType hermite(
    +
    46  genType const& v1,
    +
    47  genType const& t1,
    +
    48  genType const& v2,
    +
    49  genType const& t2,
    +
    50  typename genType::value_type const& s);
    +
    51 
    +
    54  template<typename genType>
    +
    55  GLM_FUNC_DECL genType cubic(
    +
    56  genType const& v1,
    +
    57  genType const& v2,
    +
    58  genType const& v3,
    +
    59  genType const& v4,
    +
    60  typename genType::value_type const& s);
    +
    61 
    +
    63 }//namespace glm
    +
    64 
    +
    65 #include "spline.inl"
    +
    GLM_FUNC_DECL genType hermite(genType const &v1, genType const &t1, genType const &v2, genType const &t2, typename genType::value_type const &s)
    Return a point from a hermite curve.
    +
    GLM_FUNC_DECL genType cubic(genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
    Return a point from a cubic curve.
    +
    GLM_FUNC_DECL genType catmullRom(genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
    Return a point from a catmull rom curve.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00155.html b/external/glm-0.9.9.8/doc/api/a00155.html new file mode 100644 index 0000000..4b3c5fc --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00155.html @@ -0,0 +1,141 @@ + + + + + + +0.9.9 API documentation: std_based_type.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    std_based_type.hpp File Reference
    +
    +
    + +

    GLM_GTX_std_based_type +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef vec< 1, std::size_t, defaultp > size1
     Vector type based of one std::size_t component. More...
     
    typedef vec< 1, std::size_t, defaultp > size1_t
     Vector type based of one std::size_t component. More...
     
    typedef vec< 2, std::size_t, defaultp > size2
     Vector type based of two std::size_t components. More...
     
    typedef vec< 2, std::size_t, defaultp > size2_t
     Vector type based of two std::size_t components. More...
     
    typedef vec< 3, std::size_t, defaultp > size3
     Vector type based of three std::size_t components. More...
     
    typedef vec< 3, std::size_t, defaultp > size3_t
     Vector type based of three std::size_t components. More...
     
    typedef vec< 4, std::size_t, defaultp > size4
     Vector type based of four std::size_t components. More...
     
    typedef vec< 4, std::size_t, defaultp > size4_t
     Vector type based of four std::size_t components. More...
     
    +

    Detailed Description

    +

    GLM_GTX_std_based_type

    +
    See also
    Core features (dependence)
    +
    +gtx_extented_min_max (dependence)
    + +

    Definition in file std_based_type.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00155_source.html b/external/glm-0.9.9.8/doc/api/a00155_source.html new file mode 100644 index 0000000..b31f418 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00155_source.html @@ -0,0 +1,145 @@ + + + + + + +0.9.9 API documentation: std_based_type.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    std_based_type.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include <cstdlib>
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_std_based_type is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_std_based_type extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  typedef vec<1, std::size_t, defaultp> size1;
    +
    36 
    +
    39  typedef vec<2, std::size_t, defaultp> size2;
    +
    40 
    +
    43  typedef vec<3, std::size_t, defaultp> size3;
    +
    44 
    +
    47  typedef vec<4, std::size_t, defaultp> size4;
    +
    48 
    +
    51  typedef vec<1, std::size_t, defaultp> size1_t;
    +
    52 
    +
    55  typedef vec<2, std::size_t, defaultp> size2_t;
    +
    56 
    +
    59  typedef vec<3, std::size_t, defaultp> size3_t;
    +
    60 
    +
    63  typedef vec<4, std::size_t, defaultp> size4_t;
    +
    64 
    +
    66 }//namespace glm
    +
    67 
    +
    68 #include "std_based_type.inl"
    +
    vec< 1, std::size_t, defaultp > size1
    Vector type based of one std::size_t component.
    +
    vec< 3, std::size_t, defaultp > size3_t
    Vector type based of three std::size_t components.
    +
    vec< 2, std::size_t, defaultp > size2_t
    Vector type based of two std::size_t components.
    +
    vec< 4, std::size_t, defaultp > size4
    Vector type based of four std::size_t components.
    +
    vec< 1, std::size_t, defaultp > size1_t
    Vector type based of one std::size_t component.
    +
    vec< 3, std::size_t, defaultp > size3
    Vector type based of three std::size_t components.
    +
    vec< 2, std::size_t, defaultp > size2
    Vector type based of two std::size_t components.
    +
    vec< 4, std::size_t, defaultp > size4_t
    Vector type based of four std::size_t components.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00156.html b/external/glm-0.9.9.8/doc/api/a00156.html new file mode 100644 index 0000000..ff1f864 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00156.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: string_cast.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    string_cast.hpp File Reference
    +
    +
    + +

    GLM_GTX_string_cast +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL std::string to_string (genType const &x)
     Create a string from a GLM vector or matrix typed variable. More...
     
    +

    Detailed Description

    +

    GLM_GTX_string_cast

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_integer (dependence)
    +
    +GLM_GTX_quaternion (dependence)
    + +

    Definition in file string_cast.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00156_source.html b/external/glm-0.9.9.8/doc/api/a00156_source.html new file mode 100644 index 0000000..51df24b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00156_source.html @@ -0,0 +1,133 @@ + + + + + + +0.9.9 API documentation: string_cast.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    string_cast.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 // Dependency:
    +
    20 #include "../glm.hpp"
    +
    21 #include "../gtc/type_precision.hpp"
    +
    22 #include "../gtc/quaternion.hpp"
    +
    23 #include "../gtx/dual_quaternion.hpp"
    +
    24 #include <string>
    +
    25 #include <cmath>
    +
    26 
    +
    27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    28 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    29 # pragma message("GLM: GLM_GTX_string_cast is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    30 # else
    +
    31 # pragma message("GLM: GLM_GTX_string_cast extension included")
    +
    32 # endif
    +
    33 #endif
    +
    34 
    +
    35 #if(GLM_COMPILER & GLM_COMPILER_CUDA)
    +
    36 # error "GLM_GTX_string_cast is not supported on CUDA compiler"
    +
    37 #endif
    +
    38 
    +
    39 namespace glm
    +
    40 {
    +
    43 
    +
    46  template<typename genType>
    +
    47  GLM_FUNC_DECL std::string to_string(genType const& x);
    +
    48 
    +
    50 }//namespace glm
    +
    51 
    +
    52 #include "string_cast.inl"
    +
    GLM_FUNC_DECL std::string to_string(genType const &x)
    Create a string from a GLM vector or matrix typed variable.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00157.html b/external/glm-0.9.9.8/doc/api/a00157.html new file mode 100644 index 0000000..8c1060b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00157.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: texture.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    texture.hpp File Reference
    +
    +
    + +

    GLM_GTX_texture +More...

    + +

    Go to the source code of this file.

    + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    levels (vec< L, T, Q > const &Extent)
     Compute the number of mipmaps levels necessary to create a mipmap complete texture. More...
     
    +

    Detailed Description

    +

    GLM_GTX_texture

    +
    See also
    Core features (dependence)
    + +

    Definition in file texture.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00157_source.html b/external/glm-0.9.9.8/doc/api/a00157_source.html new file mode 100644 index 0000000..9eb0cef --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00157_source.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: texture.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    texture.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include "../gtc/integer.hpp"
    +
    18 #include "../gtx/component_wise.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_texture is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_texture extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    39  template <length_t L, typename T, qualifier Q>
    +
    40  T levels(vec<L, T, Q> const& Extent);
    +
    41 
    +
    43 }// namespace glm
    +
    44 
    +
    45 #include "texture.inl"
    +
    46 
    +
    T levels(vec< L, T, Q > const &Extent)
    Compute the number of mipmaps levels necessary to create a mipmap complete texture.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00158.html b/external/glm-0.9.9.8/doc/api/a00158.html new file mode 100644 index 0000000..a831de0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00158.html @@ -0,0 +1,133 @@ + + + + + + +0.9.9 API documentation: transform.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    transform.hpp File Reference
    +
    +
    + +

    GLM_GTX_transform +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate (T angle, vec< 3, T, Q > const &v)
     Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale (vec< 3, T, Q > const &v)
     Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate (vec< 3, T, Q > const &v)
     Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars. More...
     
    +

    Detailed Description

    +

    GLM_GTX_transform

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_matrix_transform (dependence)
    +
    +GLM_GTX_transform
    +
    +GLM_GTX_transform2
    + +

    Definition in file transform.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00158_source.html b/external/glm-0.9.9.8/doc/api/a00158_source.html new file mode 100644 index 0000000..4f9db7f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00158_source.html @@ -0,0 +1,138 @@ + + + + + + +0.9.9 API documentation: transform.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    transform.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    16 #pragma once
    +
    17 
    +
    18 // Dependency:
    +
    19 #include "../glm.hpp"
    +
    20 #include "../gtc/matrix_transform.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    24 # pragma message("GLM: GLM_GTX_transform is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    25 # else
    +
    26 # pragma message("GLM: GLM_GTX_transform extension included")
    +
    27 # endif
    +
    28 #endif
    +
    29 
    +
    30 namespace glm
    +
    31 {
    +
    34 
    +
    38  template<typename T, qualifier Q>
    +
    39  GLM_FUNC_DECL mat<4, 4, T, Q> translate(
    +
    40  vec<3, T, Q> const& v);
    +
    41 
    +
    45  template<typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL mat<4, 4, T, Q> rotate(
    +
    47  T angle,
    +
    48  vec<3, T, Q> const& v);
    +
    49 
    +
    53  template<typename T, qualifier Q>
    +
    54  GLM_FUNC_DECL mat<4, 4, T, Q> scale(
    +
    55  vec<3, T, Q> const& v);
    +
    56 
    +
    58 }// namespace glm
    +
    59 
    +
    60 #include "transform.inl"
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate(vec< 3, T, Q > const &v)
    Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale(vec< 3, T, Q > const &v)
    Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate(T angle, vec< 3, T, Q > const &v)
    Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in radians...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00159.html b/external/glm-0.9.9.8/doc/api/a00159.html new file mode 100644 index 0000000..834630c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00159.html @@ -0,0 +1,153 @@ + + + + + + +0.9.9 API documentation: transform2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    transform2.hpp File Reference
    +
    +
    + +

    GLM_GTX_transform2 +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > proj2D (mat< 3, 3, T, Q > const &m, vec< 3, T, Q > const &normal)
     Build planar projection matrix along normal axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > proj3D (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &normal)
     Build planar projection matrix along normal axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (T scale, T bias)
     Build a scale bias matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (mat< 4, 4, T, Q > const &m, T scale, T bias)
     Build a scale bias matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearX2D (mat< 3, 3, T, Q > const &m, T y)
     Transforms a matrix with a shearing on X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearX3D (mat< 4, 4, T, Q > const &m, T y, T z)
     Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearY2D (mat< 3, 3, T, Q > const &m, T x)
     Transforms a matrix with a shearing on Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearY3D (mat< 4, 4, T, Q > const &m, T x, T z)
     Transforms a matrix with a shearing on Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearZ3D (mat< 4, 4, T, Q > const &m, T x, T y)
     Transforms a matrix with a shearing on Z axis. More...
     
    +

    Detailed Description

    +

    GLM_GTX_transform2

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_transform (dependence)
    + +

    Definition in file transform2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00159_source.html b/external/glm-0.9.9.8/doc/api/a00159_source.html new file mode 100644 index 0000000..46de7f5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00159_source.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: transform2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    transform2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../glm.hpp"
    +
    18 #include "../gtx/transform.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_transform2 is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_transform2 extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL mat<3, 3, T, Q> shearX2D(mat<3, 3, T, Q> const& m, T y);
    +
    37 
    +
    40  template<typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL mat<3, 3, T, Q> shearY2D(mat<3, 3, T, Q> const& m, T x);
    +
    42 
    +
    45  template<typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL mat<4, 4, T, Q> shearX3D(mat<4, 4, T, Q> const& m, T y, T z);
    +
    47 
    +
    50  template<typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL mat<4, 4, T, Q> shearY3D(mat<4, 4, T, Q> const& m, T x, T z);
    +
    52 
    +
    55  template<typename T, qualifier Q>
    +
    56  GLM_FUNC_DECL mat<4, 4, T, Q> shearZ3D(mat<4, 4, T, Q> const& m, T x, T y);
    +
    57 
    +
    58  //template<typename T> GLM_FUNC_QUALIFIER mat<4, 4, T, Q> shear(const mat<4, 4, T, Q> & m, shearPlane, planePoint, angle)
    +
    59  // Identity + tan(angle) * cross(Normal, OnPlaneVector) 0
    +
    60  // - dot(PointOnPlane, normal) * OnPlaneVector 1
    +
    61 
    +
    62  // Reflect functions seem to don't work
    +
    63  //template<typename T> mat<3, 3, T, Q> reflect2D(const mat<3, 3, T, Q> & m, const vec<3, T, Q>& normal){return reflect2DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
    +
    64  //template<typename T> mat<4, 4, T, Q> reflect3D(const mat<4, 4, T, Q> & m, const vec<3, T, Q>& normal){return reflect3DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
    +
    65 
    +
    68  template<typename T, qualifier Q>
    +
    69  GLM_FUNC_DECL mat<3, 3, T, Q> proj2D(mat<3, 3, T, Q> const& m, vec<3, T, Q> const& normal);
    +
    70 
    +
    73  template<typename T, qualifier Q>
    +
    74  GLM_FUNC_DECL mat<4, 4, T, Q> proj3D(mat<4, 4, T, Q> const & m, vec<3, T, Q> const& normal);
    +
    75 
    +
    78  template<typename T, qualifier Q>
    +
    79  GLM_FUNC_DECL mat<4, 4, T, Q> scaleBias(T scale, T bias);
    +
    80 
    +
    83  template<typename T, qualifier Q>
    +
    84  GLM_FUNC_DECL mat<4, 4, T, Q> scaleBias(mat<4, 4, T, Q> const& m, T scale, T bias);
    +
    85 
    +
    87 }// namespace glm
    +
    88 
    +
    89 #include "transform2.inl"
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearX2D(mat< 3, 3, T, Q > const &m, T y)
    Transforms a matrix with a shearing on X axis.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearY2D(mat< 3, 3, T, Q > const &m, T x)
    Transforms a matrix with a shearing on Y axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > proj3D(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &normal)
    Build planar projection matrix along normal axis.
    +
    GLM_FUNC_DECL mat< 3, 3, T, Q > proj2D(mat< 3, 3, T, Q > const &m, vec< 3, T, Q > const &normal)
    Build planar projection matrix along normal axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearZ3D(mat< 4, 4, T, Q > const &m, T x, T y)
    Transforms a matrix with a shearing on Z axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
    Builds a scale 4 * 4 matrix created from 3 scalars.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearY3D(mat< 4, 4, T, Q > const &m, T x, T z)
    Transforms a matrix with a shearing on Y axis.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias(mat< 4, 4, T, Q > const &m, T scale, T bias)
    Build a scale bias matrix.
    +
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearX3D(mat< 4, 4, T, Q > const &m, T y, T z)
    Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00160.html b/external/glm-0.9.9.8/doc/api/a00160.html new file mode 100644 index 0000000..4e2aeb8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00160.html @@ -0,0 +1,175 @@ + + + + + + +0.9.9 API documentation: trigonometric.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    trigonometric.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > acos (vec< L, T, Q > const &x)
     Arc cosine. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > acosh (vec< L, T, Q > const &x)
     Arc hyperbolic cosine; returns the non-negative inverse of cosh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > asin (vec< L, T, Q > const &x)
     Arc sine. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > asinh (vec< L, T, Q > const &x)
     Arc hyperbolic sine; returns the inverse of sinh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atan (vec< L, T, Q > const &y, vec< L, T, Q > const &x)
     Arc tangent. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atan (vec< L, T, Q > const &y_over_x)
     Arc tangent. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atanh (vec< L, T, Q > const &x)
     Arc hyperbolic tangent; returns the inverse of tanh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > cos (vec< L, T, Q > const &angle)
     The standard trigonometric cosine function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > cosh (vec< L, T, Q > const &angle)
     Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > degrees (vec< L, T, Q > const &radians)
     Converts radians to degrees and returns the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > radians (vec< L, T, Q > const &degrees)
     Converts degrees to radians and returns the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sin (vec< L, T, Q > const &angle)
     The standard trigonometric sine function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sinh (vec< L, T, Q > const &angle)
     Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > tan (vec< L, T, Q > const &angle)
     The standard trigonometric tangent function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > tanh (vec< L, T, Q > const &angle)
     Returns the hyperbolic tangent function, sinh(angle) / cosh(angle) More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00160_source.html b/external/glm-0.9.9.8/doc/api/a00160_source.html new file mode 100644 index 0000000..67678d1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00160_source.html @@ -0,0 +1,172 @@ + + + + + + +0.9.9 API documentation: trigonometric.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    trigonometric.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    19 #pragma once
    +
    20 
    +
    21 #include "detail/setup.hpp"
    +
    22 #include "detail/qualifier.hpp"
    +
    23 
    +
    24 namespace glm
    +
    25 {
    +
    28 
    +
    37  template<length_t L, typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> radians(vec<L, T, Q> const& degrees);
    +
    39 
    +
    48  template<length_t L, typename T, qualifier Q>
    +
    49  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> degrees(vec<L, T, Q> const& radians);
    +
    50 
    +
    60  template<length_t L, typename T, qualifier Q>
    +
    61  GLM_FUNC_DECL vec<L, T, Q> sin(vec<L, T, Q> const& angle);
    +
    62 
    +
    72  template<length_t L, typename T, qualifier Q>
    +
    73  GLM_FUNC_DECL vec<L, T, Q> cos(vec<L, T, Q> const& angle);
    +
    74 
    +
    83  template<length_t L, typename T, qualifier Q>
    +
    84  GLM_FUNC_DECL vec<L, T, Q> tan(vec<L, T, Q> const& angle);
    +
    85 
    +
    96  template<length_t L, typename T, qualifier Q>
    +
    97  GLM_FUNC_DECL vec<L, T, Q> asin(vec<L, T, Q> const& x);
    +
    98 
    +
    109  template<length_t L, typename T, qualifier Q>
    +
    110  GLM_FUNC_DECL vec<L, T, Q> acos(vec<L, T, Q> const& x);
    +
    111 
    +
    124  template<length_t L, typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y, vec<L, T, Q> const& x);
    +
    126 
    +
    136  template<length_t L, typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y_over_x);
    +
    138 
    +
    147  template<length_t L, typename T, qualifier Q>
    +
    148  GLM_FUNC_DECL vec<L, T, Q> sinh(vec<L, T, Q> const& angle);
    +
    149 
    +
    158  template<length_t L, typename T, qualifier Q>
    +
    159  GLM_FUNC_DECL vec<L, T, Q> cosh(vec<L, T, Q> const& angle);
    +
    160 
    +
    169  template<length_t L, typename T, qualifier Q>
    +
    170  GLM_FUNC_DECL vec<L, T, Q> tanh(vec<L, T, Q> const& angle);
    +
    171 
    +
    180  template<length_t L, typename T, qualifier Q>
    +
    181  GLM_FUNC_DECL vec<L, T, Q> asinh(vec<L, T, Q> const& x);
    +
    182 
    +
    192  template<length_t L, typename T, qualifier Q>
    +
    193  GLM_FUNC_DECL vec<L, T, Q> acosh(vec<L, T, Q> const& x);
    +
    194 
    +
    204  template<length_t L, typename T, qualifier Q>
    +
    205  GLM_FUNC_DECL vec<L, T, Q> atanh(vec<L, T, Q> const& x);
    +
    206 
    +
    208 }//namespace glm
    +
    209 
    +
    210 #include "detail/func_trigonometric.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > degrees(vec< L, T, Q > const &radians)
    Converts radians to degrees and returns the result.
    +
    GLM_FUNC_DECL vec< L, T, Q > cosh(vec< L, T, Q > const &angle)
    Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
    +
    GLM_FUNC_DECL vec< L, T, Q > acos(vec< L, T, Q > const &x)
    Arc cosine.
    +
    GLM_FUNC_DECL vec< L, T, Q > sin(vec< L, T, Q > const &angle)
    The standard trigonometric sine function.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > radians(vec< L, T, Q > const &degrees)
    Converts degrees to radians and returns the result.
    +
    GLM_FUNC_DECL T angle(qua< T, Q > const &x)
    Returns the quaternion rotation angle.
    +
    GLM_FUNC_DECL vec< L, T, Q > asin(vec< L, T, Q > const &x)
    Arc sine.
    +
    GLM_FUNC_DECL vec< L, T, Q > tanh(vec< L, T, Q > const &angle)
    Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
    +
    GLM_FUNC_DECL vec< L, T, Q > sinh(vec< L, T, Q > const &angle)
    Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
    +
    GLM_FUNC_DECL vec< L, T, Q > asinh(vec< L, T, Q > const &x)
    Arc hyperbolic sine; returns the inverse of sinh.
    +
    GLM_FUNC_DECL vec< L, T, Q > atanh(vec< L, T, Q > const &x)
    Arc hyperbolic tangent; returns the inverse of tanh.
    +
    GLM_FUNC_DECL vec< L, T, Q > cos(vec< L, T, Q > const &angle)
    The standard trigonometric cosine function.
    +
    GLM_FUNC_DECL vec< L, T, Q > atan(vec< L, T, Q > const &y_over_x)
    Arc tangent.
    +
    GLM_FUNC_DECL vec< L, T, Q > acosh(vec< L, T, Q > const &x)
    Arc hyperbolic cosine; returns the non-negative inverse of cosh.
    +
    GLM_FUNC_DECL vec< L, T, Q > tan(vec< L, T, Q > const &angle)
    The standard trigonometric tangent function.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00161.html b/external/glm-0.9.9.8/doc/api/a00161.html new file mode 100644 index 0000000..7e741bb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00161.html @@ -0,0 +1,1523 @@ + + + + + + +0.9.9 API documentation: type_aligned.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtc/type_aligned.hpp File Reference
    +
    +
    + +

    GLM_GTC_type_aligned +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef aligned_highp_bvec1 aligned_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec2 aligned_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec3 aligned_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec4 aligned_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_dmat2 aligned_dmat2
     2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x2 aligned_dmat2x2
     2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x3 aligned_dmat2x3
     2 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x4 aligned_dmat2x4
     2 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3 aligned_dmat3
     3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x2 aligned_dmat3x2
     3 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x3 aligned_dmat3x3
     3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x4 aligned_dmat3x4
     3 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4 aligned_dmat4
     4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x2 aligned_dmat4x2
     4 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x3 aligned_dmat4x3
     4 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x4 aligned_dmat4x4
     4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec1 aligned_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec2 aligned_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec3 aligned_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec4 aligned_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef vec< 1, bool, aligned_highp > aligned_highp_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_highp > aligned_highp_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_highp > aligned_highp_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_highp > aligned_highp_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_highp > aligned_highp_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_highp > aligned_highp_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_highp > aligned_highp_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_highp > aligned_highp_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_highp > aligned_highp_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_highp > aligned_highp_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_highp > aligned_highp_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_highp > aligned_highp_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_highp > aligned_highp_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_highp > aligned_highp_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_highp > aligned_highp_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_highp > aligned_highp_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_highp > aligned_highp_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_highp > aligned_highp_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_highp > aligned_highp_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_highp > aligned_highp_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_highp > aligned_highp_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_highp > aligned_highp_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_highp > aligned_highp_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_highp > aligned_highp_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_highp > aligned_highp_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_highp > aligned_highp_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_highp > aligned_highp_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_highp > aligned_highp_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_highp > aligned_highp_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_highp > aligned_highp_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_highp > aligned_highp_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_highp > aligned_highp_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_highp > aligned_highp_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_highp > aligned_highp_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_highp > aligned_highp_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_highp > aligned_highp_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_highp > aligned_highp_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_highp > aligned_highp_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_highp > aligned_highp_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_highp > aligned_highp_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_highp > aligned_highp_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_highp > aligned_highp_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_highp > aligned_highp_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_highp > aligned_highp_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_ivec1 aligned_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec2 aligned_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec3 aligned_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec4 aligned_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 1, bool, aligned_lowp > aligned_lowp_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_lowp > aligned_lowp_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_lowp > aligned_lowp_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_lowp > aligned_lowp_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_lowp > aligned_lowp_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_lowp > aligned_lowp_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_lowp > aligned_lowp_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_lowp > aligned_lowp_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_lowp > aligned_lowp_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_lowp > aligned_lowp_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_lowp > aligned_lowp_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_lowp > aligned_lowp_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_lowp > aligned_lowp_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_lowp > aligned_lowp_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_lowp > aligned_lowp_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_lowp > aligned_lowp_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_lowp > aligned_lowp_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_lowp > aligned_lowp_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_lowp > aligned_lowp_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_lowp > aligned_lowp_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_lowp > aligned_lowp_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_lowp > aligned_lowp_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_lowp > aligned_lowp_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_lowp > aligned_lowp_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_lowp > aligned_lowp_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_lowp > aligned_lowp_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_lowp > aligned_lowp_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_lowp > aligned_lowp_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_lowp > aligned_lowp_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_lowp > aligned_lowp_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_lowp > aligned_lowp_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_lowp > aligned_lowp_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_mat2 aligned_mat2
     2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x2 aligned_mat2x2
     2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x3 aligned_mat2x3
     2 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x4 aligned_mat2x4
     2 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3 aligned_mat3
     3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x2 aligned_mat3x2
     3 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x3 aligned_mat3x3
     3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x4 aligned_mat3x4
     3 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4 aligned_mat4
     4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x2 aligned_mat4x2
     4 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x3 aligned_mat4x3
     4 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x4 aligned_mat4x4
     4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef vec< 1, bool, aligned_mediump > aligned_mediump_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_mediump > aligned_mediump_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_mediump > aligned_mediump_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_mediump > aligned_mediump_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_mediump > aligned_mediump_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_mediump > aligned_mediump_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_mediump > aligned_mediump_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_mediump > aligned_mediump_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_mediump > aligned_mediump_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_mediump > aligned_mediump_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_mediump > aligned_mediump_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_mediump > aligned_mediump_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_mediump > aligned_mediump_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_mediump > aligned_mediump_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_mediump > aligned_mediump_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_mediump > aligned_mediump_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_mediump > aligned_mediump_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_mediump > aligned_mediump_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_mediump > aligned_mediump_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_mediump > aligned_mediump_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_mediump > aligned_mediump_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_mediump > aligned_mediump_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_mediump > aligned_mediump_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_mediump > aligned_mediump_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_mediump > aligned_mediump_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_mediump > aligned_mediump_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_mediump > aligned_mediump_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_mediump > aligned_mediump_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_mediump > aligned_mediump_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_mediump > aligned_mediump_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_mediump > aligned_mediump_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_mediump > aligned_mediump_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_uvec1 aligned_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec2 aligned_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec3 aligned_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec4 aligned_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_vec1 aligned_vec1
     1 component vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec2 aligned_vec2
     2 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec3 aligned_vec3
     3 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec4 aligned_vec4
     4 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_bvec1 packed_bvec1
     1 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec2 packed_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec3 packed_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec4 packed_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_dmat2 packed_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x2 packed_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x3 packed_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x4 packed_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3 packed_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x2 packed_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x3 packed_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x4 packed_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4 packed_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x2 packed_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x3 packed_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x4 packed_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec1 packed_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec2 packed_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec3 packed_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec4 packed_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef vec< 1, bool, packed_highp > packed_highp_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_highp > packed_highp_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_highp > packed_highp_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_highp > packed_highp_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_highp > packed_highp_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_highp > packed_highp_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_highp > packed_highp_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_highp > packed_highp_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_highp > packed_highp_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_highp > packed_highp_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_highp > packed_highp_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_highp > packed_highp_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_highp > packed_highp_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_highp > packed_highp_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_highp > packed_highp_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_highp > packed_highp_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_highp > packed_highp_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_highp > packed_highp_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_highp > packed_highp_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_highp > packed_highp_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_highp > packed_highp_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_highp > packed_highp_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_highp > packed_highp_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_highp > packed_highp_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_highp > packed_highp_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_highp > packed_highp_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_highp > packed_highp_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_highp > packed_highp_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_highp > packed_highp_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_highp > packed_highp_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_highp > packed_highp_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_highp > packed_highp_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_highp > packed_highp_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_highp > packed_highp_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_highp > packed_highp_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_highp > packed_highp_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_highp > packed_highp_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_highp > packed_highp_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_highp > packed_highp_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_highp > packed_highp_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_highp > packed_highp_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_highp > packed_highp_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_highp > packed_highp_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_highp > packed_highp_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef packed_highp_ivec1 packed_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec2 packed_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec3 packed_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec4 packed_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 1, bool, packed_lowp > packed_lowp_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_lowp > packed_lowp_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_lowp > packed_lowp_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_lowp > packed_lowp_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_lowp > packed_lowp_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_lowp > packed_lowp_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_lowp > packed_lowp_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_lowp > packed_lowp_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_lowp > packed_lowp_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_lowp > packed_lowp_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_lowp > packed_lowp_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_lowp > packed_lowp_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_lowp > packed_lowp_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_lowp > packed_lowp_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_lowp > packed_lowp_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_lowp > packed_lowp_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_lowp > packed_lowp_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_lowp > packed_lowp_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_lowp > packed_lowp_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_lowp > packed_lowp_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_lowp > packed_lowp_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_lowp > packed_lowp_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_lowp > packed_lowp_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_lowp > packed_lowp_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_lowp > packed_lowp_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_lowp > packed_lowp_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_lowp > packed_lowp_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_lowp > packed_lowp_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_lowp > packed_lowp_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_lowp > packed_lowp_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_lowp > packed_lowp_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_lowp > packed_lowp_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_lowp > packed_lowp_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_lowp > packed_lowp_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_lowp > packed_lowp_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_lowp > packed_lowp_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_lowp > packed_lowp_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_lowp > packed_lowp_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_lowp > packed_lowp_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_lowp > packed_lowp_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_lowp > packed_lowp_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_lowp > packed_lowp_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_lowp > packed_lowp_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_lowp > packed_lowp_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef packed_highp_mat2 packed_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x2 packed_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x3 packed_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x4 packed_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3 packed_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x2 packed_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x3 packed_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x4 packed_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4 packed_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x2 packed_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x3 packed_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x4 packed_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef vec< 1, bool, packed_mediump > packed_mediump_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_mediump > packed_mediump_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_mediump > packed_mediump_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_mediump > packed_mediump_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_mediump > packed_mediump_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_mediump > packed_mediump_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_mediump > packed_mediump_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_mediump > packed_mediump_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_mediump > packed_mediump_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_mediump > packed_mediump_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_mediump > packed_mediump_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_mediump > packed_mediump_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_mediump > packed_mediump_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_mediump > packed_mediump_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_mediump > packed_mediump_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_mediump > packed_mediump_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_mediump > packed_mediump_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_mediump > packed_mediump_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_mediump > packed_mediump_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_mediump > packed_mediump_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_mediump > packed_mediump_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_mediump > packed_mediump_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_mediump > packed_mediump_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_mediump > packed_mediump_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_mediump > packed_mediump_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_mediump > packed_mediump_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_mediump > packed_mediump_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_mediump > packed_mediump_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_mediump > packed_mediump_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_mediump > packed_mediump_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_mediump > packed_mediump_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_mediump > packed_mediump_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_mediump > packed_mediump_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_mediump > packed_mediump_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_mediump > packed_mediump_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_mediump > packed_mediump_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_mediump > packed_mediump_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_mediump > packed_mediump_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_mediump > packed_mediump_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_mediump > packed_mediump_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_mediump > packed_mediump_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_mediump > packed_mediump_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_mediump > packed_mediump_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_mediump > packed_mediump_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef packed_highp_uvec1 packed_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec2 packed_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec3 packed_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec4 packed_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_vec1 packed_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec2 packed_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec3 packed_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec4 packed_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +

    Detailed Description

    +

    GLM_GTC_type_aligned

    +
    See also
    Core features (dependence)
    + +

    Definition in file gtc/type_aligned.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00161_source.html b/external/glm-0.9.9.8/doc/api/a00161_source.html new file mode 100644 index 0000000..5c5bb8b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00161_source.html @@ -0,0 +1,1401 @@ + + + + + + +0.9.9 API documentation: type_aligned.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc/type_aligned.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #if (GLM_CONFIG_ALIGNED_GENTYPES == GLM_DISABLE)
    +
    16 # error "GLM: Aligned gentypes require to enable C++ language extensions. Define GLM_FORCE_ALIGNED_GENTYPES before including GLM headers to use aligned types."
    +
    17 #endif
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # pragma message("GLM: GLM_GTC_type_aligned extension included")
    +
    21 #endif
    +
    22 
    +
    23 #include "../mat4x4.hpp"
    +
    24 #include "../mat4x3.hpp"
    +
    25 #include "../mat4x2.hpp"
    +
    26 #include "../mat3x4.hpp"
    +
    27 #include "../mat3x3.hpp"
    +
    28 #include "../mat3x2.hpp"
    +
    29 #include "../mat2x4.hpp"
    +
    30 #include "../mat2x3.hpp"
    +
    31 #include "../mat2x2.hpp"
    +
    32 #include "../gtc/vec1.hpp"
    +
    33 #include "../vec2.hpp"
    +
    34 #include "../vec3.hpp"
    +
    35 #include "../vec4.hpp"
    +
    36 
    +
    37 namespace glm
    +
    38 {
    +
    41 
    +
    42  // -- *vec1 --
    +
    43 
    +
    45  typedef vec<1, float, aligned_highp> aligned_highp_vec1;
    +
    46 
    +
    48  typedef vec<1, float, aligned_mediump> aligned_mediump_vec1;
    +
    49 
    +
    51  typedef vec<1, float, aligned_lowp> aligned_lowp_vec1;
    +
    52 
    +
    54  typedef vec<1, double, aligned_highp> aligned_highp_dvec1;
    +
    55 
    +
    57  typedef vec<1, double, aligned_mediump> aligned_mediump_dvec1;
    +
    58 
    +
    60  typedef vec<1, double, aligned_lowp> aligned_lowp_dvec1;
    +
    61 
    +
    63  typedef vec<1, int, aligned_highp> aligned_highp_ivec1;
    +
    64 
    +
    66  typedef vec<1, int, aligned_mediump> aligned_mediump_ivec1;
    +
    67 
    +
    69  typedef vec<1, int, aligned_lowp> aligned_lowp_ivec1;
    +
    70 
    +
    72  typedef vec<1, uint, aligned_highp> aligned_highp_uvec1;
    +
    73 
    +
    75  typedef vec<1, uint, aligned_mediump> aligned_mediump_uvec1;
    +
    76 
    +
    78  typedef vec<1, uint, aligned_lowp> aligned_lowp_uvec1;
    +
    79 
    +
    81  typedef vec<1, bool, aligned_highp> aligned_highp_bvec1;
    +
    82 
    +
    84  typedef vec<1, bool, aligned_mediump> aligned_mediump_bvec1;
    +
    85 
    +
    87  typedef vec<1, bool, aligned_lowp> aligned_lowp_bvec1;
    +
    88 
    +
    90  typedef vec<1, float, packed_highp> packed_highp_vec1;
    +
    91 
    +
    93  typedef vec<1, float, packed_mediump> packed_mediump_vec1;
    +
    94 
    +
    96  typedef vec<1, float, packed_lowp> packed_lowp_vec1;
    +
    97 
    +
    99  typedef vec<1, double, packed_highp> packed_highp_dvec1;
    +
    100 
    +
    102  typedef vec<1, double, packed_mediump> packed_mediump_dvec1;
    +
    103 
    +
    105  typedef vec<1, double, packed_lowp> packed_lowp_dvec1;
    +
    106 
    +
    108  typedef vec<1, int, packed_highp> packed_highp_ivec1;
    +
    109 
    +
    111  typedef vec<1, int, packed_mediump> packed_mediump_ivec1;
    +
    112 
    +
    114  typedef vec<1, int, packed_lowp> packed_lowp_ivec1;
    +
    115 
    +
    117  typedef vec<1, uint, packed_highp> packed_highp_uvec1;
    +
    118 
    +
    120  typedef vec<1, uint, packed_mediump> packed_mediump_uvec1;
    +
    121 
    +
    123  typedef vec<1, uint, packed_lowp> packed_lowp_uvec1;
    +
    124 
    +
    126  typedef vec<1, bool, packed_highp> packed_highp_bvec1;
    +
    127 
    +
    129  typedef vec<1, bool, packed_mediump> packed_mediump_bvec1;
    +
    130 
    +
    132  typedef vec<1, bool, packed_lowp> packed_lowp_bvec1;
    +
    133 
    +
    134  // -- *vec2 --
    +
    135 
    +
    137  typedef vec<2, float, aligned_highp> aligned_highp_vec2;
    +
    138 
    +
    140  typedef vec<2, float, aligned_mediump> aligned_mediump_vec2;
    +
    141 
    +
    143  typedef vec<2, float, aligned_lowp> aligned_lowp_vec2;
    +
    144 
    +
    146  typedef vec<2, double, aligned_highp> aligned_highp_dvec2;
    +
    147 
    +
    149  typedef vec<2, double, aligned_mediump> aligned_mediump_dvec2;
    +
    150 
    +
    152  typedef vec<2, double, aligned_lowp> aligned_lowp_dvec2;
    +
    153 
    +
    155  typedef vec<2, int, aligned_highp> aligned_highp_ivec2;
    +
    156 
    +
    158  typedef vec<2, int, aligned_mediump> aligned_mediump_ivec2;
    +
    159 
    +
    161  typedef vec<2, int, aligned_lowp> aligned_lowp_ivec2;
    +
    162 
    +
    164  typedef vec<2, uint, aligned_highp> aligned_highp_uvec2;
    +
    165 
    +
    167  typedef vec<2, uint, aligned_mediump> aligned_mediump_uvec2;
    +
    168 
    +
    170  typedef vec<2, uint, aligned_lowp> aligned_lowp_uvec2;
    +
    171 
    +
    173  typedef vec<2, bool, aligned_highp> aligned_highp_bvec2;
    +
    174 
    +
    176  typedef vec<2, bool, aligned_mediump> aligned_mediump_bvec2;
    +
    177 
    +
    179  typedef vec<2, bool, aligned_lowp> aligned_lowp_bvec2;
    +
    180 
    +
    182  typedef vec<2, float, packed_highp> packed_highp_vec2;
    +
    183 
    +
    185  typedef vec<2, float, packed_mediump> packed_mediump_vec2;
    +
    186 
    +
    188  typedef vec<2, float, packed_lowp> packed_lowp_vec2;
    +
    189 
    +
    191  typedef vec<2, double, packed_highp> packed_highp_dvec2;
    +
    192 
    +
    194  typedef vec<2, double, packed_mediump> packed_mediump_dvec2;
    +
    195 
    +
    197  typedef vec<2, double, packed_lowp> packed_lowp_dvec2;
    +
    198 
    +
    200  typedef vec<2, int, packed_highp> packed_highp_ivec2;
    +
    201 
    +
    203  typedef vec<2, int, packed_mediump> packed_mediump_ivec2;
    +
    204 
    +
    206  typedef vec<2, int, packed_lowp> packed_lowp_ivec2;
    +
    207 
    +
    209  typedef vec<2, uint, packed_highp> packed_highp_uvec2;
    +
    210 
    +
    212  typedef vec<2, uint, packed_mediump> packed_mediump_uvec2;
    +
    213 
    +
    215  typedef vec<2, uint, packed_lowp> packed_lowp_uvec2;
    +
    216 
    +
    218  typedef vec<2, bool, packed_highp> packed_highp_bvec2;
    +
    219 
    +
    221  typedef vec<2, bool, packed_mediump> packed_mediump_bvec2;
    +
    222 
    +
    224  typedef vec<2, bool, packed_lowp> packed_lowp_bvec2;
    +
    225 
    +
    226  // -- *vec3 --
    +
    227 
    +
    229  typedef vec<3, float, aligned_highp> aligned_highp_vec3;
    +
    230 
    +
    232  typedef vec<3, float, aligned_mediump> aligned_mediump_vec3;
    +
    233 
    +
    235  typedef vec<3, float, aligned_lowp> aligned_lowp_vec3;
    +
    236 
    +
    238  typedef vec<3, double, aligned_highp> aligned_highp_dvec3;
    +
    239 
    +
    241  typedef vec<3, double, aligned_mediump> aligned_mediump_dvec3;
    +
    242 
    +
    244  typedef vec<3, double, aligned_lowp> aligned_lowp_dvec3;
    +
    245 
    +
    247  typedef vec<3, int, aligned_highp> aligned_highp_ivec3;
    +
    248 
    +
    250  typedef vec<3, int, aligned_mediump> aligned_mediump_ivec3;
    +
    251 
    +
    253  typedef vec<3, int, aligned_lowp> aligned_lowp_ivec3;
    +
    254 
    +
    256  typedef vec<3, uint, aligned_highp> aligned_highp_uvec3;
    +
    257 
    +
    259  typedef vec<3, uint, aligned_mediump> aligned_mediump_uvec3;
    +
    260 
    +
    262  typedef vec<3, uint, aligned_lowp> aligned_lowp_uvec3;
    +
    263 
    +
    265  typedef vec<3, bool, aligned_highp> aligned_highp_bvec3;
    +
    266 
    +
    268  typedef vec<3, bool, aligned_mediump> aligned_mediump_bvec3;
    +
    269 
    +
    271  typedef vec<3, bool, aligned_lowp> aligned_lowp_bvec3;
    +
    272 
    +
    274  typedef vec<3, float, packed_highp> packed_highp_vec3;
    +
    275 
    +
    277  typedef vec<3, float, packed_mediump> packed_mediump_vec3;
    +
    278 
    +
    280  typedef vec<3, float, packed_lowp> packed_lowp_vec3;
    +
    281 
    +
    283  typedef vec<3, double, packed_highp> packed_highp_dvec3;
    +
    284 
    +
    286  typedef vec<3, double, packed_mediump> packed_mediump_dvec3;
    +
    287 
    +
    289  typedef vec<3, double, packed_lowp> packed_lowp_dvec3;
    +
    290 
    +
    292  typedef vec<3, int, packed_highp> packed_highp_ivec3;
    +
    293 
    +
    295  typedef vec<3, int, packed_mediump> packed_mediump_ivec3;
    +
    296 
    +
    298  typedef vec<3, int, packed_lowp> packed_lowp_ivec3;
    +
    299 
    +
    301  typedef vec<3, uint, packed_highp> packed_highp_uvec3;
    +
    302 
    +
    304  typedef vec<3, uint, packed_mediump> packed_mediump_uvec3;
    +
    305 
    +
    307  typedef vec<3, uint, packed_lowp> packed_lowp_uvec3;
    +
    308 
    +
    310  typedef vec<3, bool, packed_highp> packed_highp_bvec3;
    +
    311 
    +
    313  typedef vec<3, bool, packed_mediump> packed_mediump_bvec3;
    +
    314 
    +
    316  typedef vec<3, bool, packed_lowp> packed_lowp_bvec3;
    +
    317 
    +
    318  // -- *vec4 --
    +
    319 
    +
    321  typedef vec<4, float, aligned_highp> aligned_highp_vec4;
    +
    322 
    +
    324  typedef vec<4, float, aligned_mediump> aligned_mediump_vec4;
    +
    325 
    +
    327  typedef vec<4, float, aligned_lowp> aligned_lowp_vec4;
    +
    328 
    +
    330  typedef vec<4, double, aligned_highp> aligned_highp_dvec4;
    +
    331 
    +
    333  typedef vec<4, double, aligned_mediump> aligned_mediump_dvec4;
    +
    334 
    +
    336  typedef vec<4, double, aligned_lowp> aligned_lowp_dvec4;
    +
    337 
    +
    339  typedef vec<4, int, aligned_highp> aligned_highp_ivec4;
    +
    340 
    +
    342  typedef vec<4, int, aligned_mediump> aligned_mediump_ivec4;
    +
    343 
    +
    345  typedef vec<4, int, aligned_lowp> aligned_lowp_ivec4;
    +
    346 
    +
    348  typedef vec<4, uint, aligned_highp> aligned_highp_uvec4;
    +
    349 
    +
    351  typedef vec<4, uint, aligned_mediump> aligned_mediump_uvec4;
    +
    352 
    +
    354  typedef vec<4, uint, aligned_lowp> aligned_lowp_uvec4;
    +
    355 
    +
    357  typedef vec<4, bool, aligned_highp> aligned_highp_bvec4;
    +
    358 
    +
    360  typedef vec<4, bool, aligned_mediump> aligned_mediump_bvec4;
    +
    361 
    +
    363  typedef vec<4, bool, aligned_lowp> aligned_lowp_bvec4;
    +
    364 
    +
    366  typedef vec<4, float, packed_highp> packed_highp_vec4;
    +
    367 
    +
    369  typedef vec<4, float, packed_mediump> packed_mediump_vec4;
    +
    370 
    +
    372  typedef vec<4, float, packed_lowp> packed_lowp_vec4;
    +
    373 
    +
    375  typedef vec<4, double, packed_highp> packed_highp_dvec4;
    +
    376 
    +
    378  typedef vec<4, double, packed_mediump> packed_mediump_dvec4;
    +
    379 
    +
    381  typedef vec<4, double, packed_lowp> packed_lowp_dvec4;
    +
    382 
    +
    384  typedef vec<4, int, packed_highp> packed_highp_ivec4;
    +
    385 
    +
    387  typedef vec<4, int, packed_mediump> packed_mediump_ivec4;
    +
    388 
    +
    390  typedef vec<4, int, packed_lowp> packed_lowp_ivec4;
    +
    391 
    +
    393  typedef vec<4, uint, packed_highp> packed_highp_uvec4;
    +
    394 
    +
    396  typedef vec<4, uint, packed_mediump> packed_mediump_uvec4;
    +
    397 
    +
    399  typedef vec<4, uint, packed_lowp> packed_lowp_uvec4;
    +
    400 
    +
    402  typedef vec<4, bool, packed_highp> packed_highp_bvec4;
    +
    403 
    +
    405  typedef vec<4, bool, packed_mediump> packed_mediump_bvec4;
    +
    406 
    +
    408  typedef vec<4, bool, packed_lowp> packed_lowp_bvec4;
    +
    409 
    +
    410  // -- *mat2 --
    +
    411 
    +
    413  typedef mat<2, 2, float, aligned_highp> aligned_highp_mat2;
    +
    414 
    +
    416  typedef mat<2, 2, float, aligned_mediump> aligned_mediump_mat2;
    +
    417 
    +
    419  typedef mat<2, 2, float, aligned_lowp> aligned_lowp_mat2;
    +
    420 
    +
    422  typedef mat<2, 2, double, aligned_highp> aligned_highp_dmat2;
    +
    423 
    +
    425  typedef mat<2, 2, double, aligned_mediump> aligned_mediump_dmat2;
    +
    426 
    +
    428  typedef mat<2, 2, double, aligned_lowp> aligned_lowp_dmat2;
    +
    429 
    +
    431  typedef mat<2, 2, float, packed_highp> packed_highp_mat2;
    +
    432 
    +
    434  typedef mat<2, 2, float, packed_mediump> packed_mediump_mat2;
    +
    435 
    +
    437  typedef mat<2, 2, float, packed_lowp> packed_lowp_mat2;
    +
    438 
    +
    440  typedef mat<2, 2, double, packed_highp> packed_highp_dmat2;
    +
    441 
    +
    443  typedef mat<2, 2, double, packed_mediump> packed_mediump_dmat2;
    +
    444 
    +
    446  typedef mat<2, 2, double, packed_lowp> packed_lowp_dmat2;
    +
    447 
    +
    448  // -- *mat3 --
    +
    449 
    +
    451  typedef mat<3, 3, float, aligned_highp> aligned_highp_mat3;
    +
    452 
    +
    454  typedef mat<3, 3, float, aligned_mediump> aligned_mediump_mat3;
    +
    455 
    +
    457  typedef mat<3, 3, float, aligned_lowp> aligned_lowp_mat3;
    +
    458 
    +
    460  typedef mat<3, 3, double, aligned_highp> aligned_highp_dmat3;
    +
    461 
    +
    463  typedef mat<3, 3, double, aligned_mediump> aligned_mediump_dmat3;
    +
    464 
    +
    466  typedef mat<3, 3, double, aligned_lowp> aligned_lowp_dmat3;
    +
    467 
    +
    469  typedef mat<3, 3, float, packed_highp> packed_highp_mat3;
    +
    470 
    +
    472  typedef mat<3, 3, float, packed_mediump> packed_mediump_mat3;
    +
    473 
    +
    475  typedef mat<3, 3, float, packed_lowp> packed_lowp_mat3;
    +
    476 
    +
    478  typedef mat<3, 3, double, packed_highp> packed_highp_dmat3;
    +
    479 
    +
    481  typedef mat<3, 3, double, packed_mediump> packed_mediump_dmat3;
    +
    482 
    +
    484  typedef mat<3, 3, double, packed_lowp> packed_lowp_dmat3;
    +
    485 
    +
    486  // -- *mat4 --
    +
    487 
    +
    489  typedef mat<4, 4, float, aligned_highp> aligned_highp_mat4;
    +
    490 
    +
    492  typedef mat<4, 4, float, aligned_mediump> aligned_mediump_mat4;
    +
    493 
    +
    495  typedef mat<4, 4, float, aligned_lowp> aligned_lowp_mat4;
    +
    496 
    +
    498  typedef mat<4, 4, double, aligned_highp> aligned_highp_dmat4;
    +
    499 
    +
    501  typedef mat<4, 4, double, aligned_mediump> aligned_mediump_dmat4;
    +
    502 
    +
    504  typedef mat<4, 4, double, aligned_lowp> aligned_lowp_dmat4;
    +
    505 
    +
    507  typedef mat<4, 4, float, packed_highp> packed_highp_mat4;
    +
    508 
    +
    510  typedef mat<4, 4, float, packed_mediump> packed_mediump_mat4;
    +
    511 
    +
    513  typedef mat<4, 4, float, packed_lowp> packed_lowp_mat4;
    +
    514 
    +
    516  typedef mat<4, 4, double, packed_highp> packed_highp_dmat4;
    +
    517 
    +
    519  typedef mat<4, 4, double, packed_mediump> packed_mediump_dmat4;
    +
    520 
    +
    522  typedef mat<4, 4, double, packed_lowp> packed_lowp_dmat4;
    +
    523 
    +
    524  // -- *mat2x2 --
    +
    525 
    +
    527  typedef mat<2, 2, float, aligned_highp> aligned_highp_mat2x2;
    +
    528 
    +
    530  typedef mat<2, 2, float, aligned_mediump> aligned_mediump_mat2x2;
    +
    531 
    +
    533  typedef mat<2, 2, float, aligned_lowp> aligned_lowp_mat2x2;
    +
    534 
    +
    536  typedef mat<2, 2, double, aligned_highp> aligned_highp_dmat2x2;
    +
    537 
    +
    539  typedef mat<2, 2, double, aligned_mediump> aligned_mediump_dmat2x2;
    +
    540 
    +
    542  typedef mat<2, 2, double, aligned_lowp> aligned_lowp_dmat2x2;
    +
    543 
    +
    545  typedef mat<2, 2, float, packed_highp> packed_highp_mat2x2;
    +
    546 
    +
    548  typedef mat<2, 2, float, packed_mediump> packed_mediump_mat2x2;
    +
    549 
    +
    551  typedef mat<2, 2, float, packed_lowp> packed_lowp_mat2x2;
    +
    552 
    +
    554  typedef mat<2, 2, double, packed_highp> packed_highp_dmat2x2;
    +
    555 
    +
    557  typedef mat<2, 2, double, packed_mediump> packed_mediump_dmat2x2;
    +
    558 
    +
    560  typedef mat<2, 2, double, packed_lowp> packed_lowp_dmat2x2;
    +
    561 
    +
    562  // -- *mat2x3 --
    +
    563 
    +
    565  typedef mat<2, 3, float, aligned_highp> aligned_highp_mat2x3;
    +
    566 
    +
    568  typedef mat<2, 3, float, aligned_mediump> aligned_mediump_mat2x3;
    +
    569 
    +
    571  typedef mat<2, 3, float, aligned_lowp> aligned_lowp_mat2x3;
    +
    572 
    +
    574  typedef mat<2, 3, double, aligned_highp> aligned_highp_dmat2x3;
    +
    575 
    +
    577  typedef mat<2, 3, double, aligned_mediump> aligned_mediump_dmat2x3;
    +
    578 
    +
    580  typedef mat<2, 3, double, aligned_lowp> aligned_lowp_dmat2x3;
    +
    581 
    +
    583  typedef mat<2, 3, float, packed_highp> packed_highp_mat2x3;
    +
    584 
    +
    586  typedef mat<2, 3, float, packed_mediump> packed_mediump_mat2x3;
    +
    587 
    +
    589  typedef mat<2, 3, float, packed_lowp> packed_lowp_mat2x3;
    +
    590 
    +
    592  typedef mat<2, 3, double, packed_highp> packed_highp_dmat2x3;
    +
    593 
    +
    595  typedef mat<2, 3, double, packed_mediump> packed_mediump_dmat2x3;
    +
    596 
    +
    598  typedef mat<2, 3, double, packed_lowp> packed_lowp_dmat2x3;
    +
    599 
    +
    600  // -- *mat2x4 --
    +
    601 
    +
    603  typedef mat<2, 4, float, aligned_highp> aligned_highp_mat2x4;
    +
    604 
    +
    606  typedef mat<2, 4, float, aligned_mediump> aligned_mediump_mat2x4;
    +
    607 
    +
    609  typedef mat<2, 4, float, aligned_lowp> aligned_lowp_mat2x4;
    +
    610 
    +
    612  typedef mat<2, 4, double, aligned_highp> aligned_highp_dmat2x4;
    +
    613 
    +
    615  typedef mat<2, 4, double, aligned_mediump> aligned_mediump_dmat2x4;
    +
    616 
    +
    618  typedef mat<2, 4, double, aligned_lowp> aligned_lowp_dmat2x4;
    +
    619 
    +
    621  typedef mat<2, 4, float, packed_highp> packed_highp_mat2x4;
    +
    622 
    +
    624  typedef mat<2, 4, float, packed_mediump> packed_mediump_mat2x4;
    +
    625 
    +
    627  typedef mat<2, 4, float, packed_lowp> packed_lowp_mat2x4;
    +
    628 
    +
    630  typedef mat<2, 4, double, packed_highp> packed_highp_dmat2x4;
    +
    631 
    +
    633  typedef mat<2, 4, double, packed_mediump> packed_mediump_dmat2x4;
    +
    634 
    +
    636  typedef mat<2, 4, double, packed_lowp> packed_lowp_dmat2x4;
    +
    637 
    +
    638  // -- *mat3x2 --
    +
    639 
    +
    641  typedef mat<3, 2, float, aligned_highp> aligned_highp_mat3x2;
    +
    642 
    +
    644  typedef mat<3, 2, float, aligned_mediump> aligned_mediump_mat3x2;
    +
    645 
    +
    647  typedef mat<3, 2, float, aligned_lowp> aligned_lowp_mat3x2;
    +
    648 
    +
    650  typedef mat<3, 2, double, aligned_highp> aligned_highp_dmat3x2;
    +
    651 
    +
    653  typedef mat<3, 2, double, aligned_mediump> aligned_mediump_dmat3x2;
    +
    654 
    +
    656  typedef mat<3, 2, double, aligned_lowp> aligned_lowp_dmat3x2;
    +
    657 
    +
    659  typedef mat<3, 2, float, packed_highp> packed_highp_mat3x2;
    +
    660 
    +
    662  typedef mat<3, 2, float, packed_mediump> packed_mediump_mat3x2;
    +
    663 
    +
    665  typedef mat<3, 2, float, packed_lowp> packed_lowp_mat3x2;
    +
    666 
    +
    668  typedef mat<3, 2, double, packed_highp> packed_highp_dmat3x2;
    +
    669 
    +
    671  typedef mat<3, 2, double, packed_mediump> packed_mediump_dmat3x2;
    +
    672 
    +
    674  typedef mat<3, 2, double, packed_lowp> packed_lowp_dmat3x2;
    +
    675 
    +
    676  // -- *mat3x3 --
    +
    677 
    +
    679  typedef mat<3, 3, float, aligned_highp> aligned_highp_mat3x3;
    +
    680 
    +
    682  typedef mat<3, 3, float, aligned_mediump> aligned_mediump_mat3x3;
    +
    683 
    +
    685  typedef mat<3, 3, float, aligned_lowp> aligned_lowp_mat3x3;
    +
    686 
    +
    688  typedef mat<3, 3, double, aligned_highp> aligned_highp_dmat3x3;
    +
    689 
    +
    691  typedef mat<3, 3, double, aligned_mediump> aligned_mediump_dmat3x3;
    +
    692 
    +
    694  typedef mat<3, 3, double, aligned_lowp> aligned_lowp_dmat3x3;
    +
    695 
    +
    697  typedef mat<3, 3, float, packed_highp> packed_highp_mat3x3;
    +
    698 
    +
    700  typedef mat<3, 3, float, packed_mediump> packed_mediump_mat3x3;
    +
    701 
    +
    703  typedef mat<3, 3, float, packed_lowp> packed_lowp_mat3x3;
    +
    704 
    +
    706  typedef mat<3, 3, double, packed_highp> packed_highp_dmat3x3;
    +
    707 
    +
    709  typedef mat<3, 3, double, packed_mediump> packed_mediump_dmat3x3;
    +
    710 
    +
    712  typedef mat<3, 3, double, packed_lowp> packed_lowp_dmat3x3;
    +
    713 
    +
    714  // -- *mat3x4 --
    +
    715 
    +
    717  typedef mat<3, 4, float, aligned_highp> aligned_highp_mat3x4;
    +
    718 
    +
    720  typedef mat<3, 4, float, aligned_mediump> aligned_mediump_mat3x4;
    +
    721 
    +
    723  typedef mat<3, 4, float, aligned_lowp> aligned_lowp_mat3x4;
    +
    724 
    +
    726  typedef mat<3, 4, double, aligned_highp> aligned_highp_dmat3x4;
    +
    727 
    +
    729  typedef mat<3, 4, double, aligned_mediump> aligned_mediump_dmat3x4;
    +
    730 
    +
    732  typedef mat<3, 4, double, aligned_lowp> aligned_lowp_dmat3x4;
    +
    733 
    +
    735  typedef mat<3, 4, float, packed_highp> packed_highp_mat3x4;
    +
    736 
    +
    738  typedef mat<3, 4, float, packed_mediump> packed_mediump_mat3x4;
    +
    739 
    +
    741  typedef mat<3, 4, float, packed_lowp> packed_lowp_mat3x4;
    +
    742 
    +
    744  typedef mat<3, 4, double, packed_highp> packed_highp_dmat3x4;
    +
    745 
    +
    747  typedef mat<3, 4, double, packed_mediump> packed_mediump_dmat3x4;
    +
    748 
    +
    750  typedef mat<3, 4, double, packed_lowp> packed_lowp_dmat3x4;
    +
    751 
    +
    752  // -- *mat4x2 --
    +
    753 
    +
    755  typedef mat<4, 2, float, aligned_highp> aligned_highp_mat4x2;
    +
    756 
    +
    758  typedef mat<4, 2, float, aligned_mediump> aligned_mediump_mat4x2;
    +
    759 
    +
    761  typedef mat<4, 2, float, aligned_lowp> aligned_lowp_mat4x2;
    +
    762 
    +
    764  typedef mat<4, 2, double, aligned_highp> aligned_highp_dmat4x2;
    +
    765 
    +
    767  typedef mat<4, 2, double, aligned_mediump> aligned_mediump_dmat4x2;
    +
    768 
    +
    770  typedef mat<4, 2, double, aligned_lowp> aligned_lowp_dmat4x2;
    +
    771 
    +
    773  typedef mat<4, 2, float, packed_highp> packed_highp_mat4x2;
    +
    774 
    +
    776  typedef mat<4, 2, float, packed_mediump> packed_mediump_mat4x2;
    +
    777 
    +
    779  typedef mat<4, 2, float, packed_lowp> packed_lowp_mat4x2;
    +
    780 
    +
    782  typedef mat<4, 2, double, packed_highp> packed_highp_dmat4x2;
    +
    783 
    +
    785  typedef mat<4, 2, double, packed_mediump> packed_mediump_dmat4x2;
    +
    786 
    +
    788  typedef mat<4, 2, double, packed_lowp> packed_lowp_dmat4x2;
    +
    789 
    +
    790  // -- *mat4x3 --
    +
    791 
    +
    793  typedef mat<4, 3, float, aligned_highp> aligned_highp_mat4x3;
    +
    794 
    +
    796  typedef mat<4, 3, float, aligned_mediump> aligned_mediump_mat4x3;
    +
    797 
    +
    799  typedef mat<4, 3, float, aligned_lowp> aligned_lowp_mat4x3;
    +
    800 
    +
    802  typedef mat<4, 3, double, aligned_highp> aligned_highp_dmat4x3;
    +
    803 
    +
    805  typedef mat<4, 3, double, aligned_mediump> aligned_mediump_dmat4x3;
    +
    806 
    +
    808  typedef mat<4, 3, double, aligned_lowp> aligned_lowp_dmat4x3;
    +
    809 
    +
    811  typedef mat<4, 3, float, packed_highp> packed_highp_mat4x3;
    +
    812 
    +
    814  typedef mat<4, 3, float, packed_mediump> packed_mediump_mat4x3;
    +
    815 
    +
    817  typedef mat<4, 3, float, packed_lowp> packed_lowp_mat4x3;
    +
    818 
    +
    820  typedef mat<4, 3, double, packed_highp> packed_highp_dmat4x3;
    +
    821 
    +
    823  typedef mat<4, 3, double, packed_mediump> packed_mediump_dmat4x3;
    +
    824 
    +
    826  typedef mat<4, 3, double, packed_lowp> packed_lowp_dmat4x3;
    +
    827 
    +
    828  // -- *mat4x4 --
    +
    829 
    +
    831  typedef mat<4, 4, float, aligned_highp> aligned_highp_mat4x4;
    +
    832 
    +
    834  typedef mat<4, 4, float, aligned_mediump> aligned_mediump_mat4x4;
    +
    835 
    +
    837  typedef mat<4, 4, float, aligned_lowp> aligned_lowp_mat4x4;
    +
    838 
    +
    840  typedef mat<4, 4, double, aligned_highp> aligned_highp_dmat4x4;
    +
    841 
    +
    843  typedef mat<4, 4, double, aligned_mediump> aligned_mediump_dmat4x4;
    +
    844 
    +
    846  typedef mat<4, 4, double, aligned_lowp> aligned_lowp_dmat4x4;
    +
    847 
    +
    849  typedef mat<4, 4, float, packed_highp> packed_highp_mat4x4;
    +
    850 
    +
    852  typedef mat<4, 4, float, packed_mediump> packed_mediump_mat4x4;
    +
    853 
    +
    855  typedef mat<4, 4, float, packed_lowp> packed_lowp_mat4x4;
    +
    856 
    +
    858  typedef mat<4, 4, double, packed_highp> packed_highp_dmat4x4;
    +
    859 
    +
    861  typedef mat<4, 4, double, packed_mediump> packed_mediump_dmat4x4;
    +
    862 
    +
    864  typedef mat<4, 4, double, packed_lowp> packed_lowp_dmat4x4;
    +
    865 
    +
    866  // -- default --
    +
    867 
    +
    868 #if(defined(GLM_PRECISION_LOWP_FLOAT))
    +
    869  typedef aligned_lowp_vec1 aligned_vec1;
    +
    870  typedef aligned_lowp_vec2 aligned_vec2;
    +
    871  typedef aligned_lowp_vec3 aligned_vec3;
    +
    872  typedef aligned_lowp_vec4 aligned_vec4;
    +
    873  typedef packed_lowp_vec1 packed_vec1;
    +
    874  typedef packed_lowp_vec2 packed_vec2;
    +
    875  typedef packed_lowp_vec3 packed_vec3;
    +
    876  typedef packed_lowp_vec4 packed_vec4;
    +
    877 
    +
    878  typedef aligned_lowp_mat2 aligned_mat2;
    +
    879  typedef aligned_lowp_mat3 aligned_mat3;
    +
    880  typedef aligned_lowp_mat4 aligned_mat4;
    +
    881  typedef packed_lowp_mat2 packed_mat2;
    +
    882  typedef packed_lowp_mat3 packed_mat3;
    +
    883  typedef packed_lowp_mat4 packed_mat4;
    +
    884 
    +
    885  typedef aligned_lowp_mat2x2 aligned_mat2x2;
    +
    886  typedef aligned_lowp_mat2x3 aligned_mat2x3;
    +
    887  typedef aligned_lowp_mat2x4 aligned_mat2x4;
    +
    888  typedef aligned_lowp_mat3x2 aligned_mat3x2;
    +
    889  typedef aligned_lowp_mat3x3 aligned_mat3x3;
    +
    890  typedef aligned_lowp_mat3x4 aligned_mat3x4;
    +
    891  typedef aligned_lowp_mat4x2 aligned_mat4x2;
    +
    892  typedef aligned_lowp_mat4x3 aligned_mat4x3;
    +
    893  typedef aligned_lowp_mat4x4 aligned_mat4x4;
    +
    894  typedef packed_lowp_mat2x2 packed_mat2x2;
    +
    895  typedef packed_lowp_mat2x3 packed_mat2x3;
    +
    896  typedef packed_lowp_mat2x4 packed_mat2x4;
    +
    897  typedef packed_lowp_mat3x2 packed_mat3x2;
    +
    898  typedef packed_lowp_mat3x3 packed_mat3x3;
    +
    899  typedef packed_lowp_mat3x4 packed_mat3x4;
    +
    900  typedef packed_lowp_mat4x2 packed_mat4x2;
    +
    901  typedef packed_lowp_mat4x3 packed_mat4x3;
    +
    902  typedef packed_lowp_mat4x4 packed_mat4x4;
    +
    903 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
    +
    904  typedef aligned_mediump_vec1 aligned_vec1;
    +
    905  typedef aligned_mediump_vec2 aligned_vec2;
    +
    906  typedef aligned_mediump_vec3 aligned_vec3;
    +
    907  typedef aligned_mediump_vec4 aligned_vec4;
    +
    908  typedef packed_mediump_vec1 packed_vec1;
    +
    909  typedef packed_mediump_vec2 packed_vec2;
    +
    910  typedef packed_mediump_vec3 packed_vec3;
    +
    911  typedef packed_mediump_vec4 packed_vec4;
    +
    912 
    +
    913  typedef aligned_mediump_mat2 aligned_mat2;
    +
    914  typedef aligned_mediump_mat3 aligned_mat3;
    +
    915  typedef aligned_mediump_mat4 aligned_mat4;
    +
    916  typedef packed_mediump_mat2 packed_mat2;
    +
    917  typedef packed_mediump_mat3 packed_mat3;
    +
    918  typedef packed_mediump_mat4 packed_mat4;
    +
    919 
    +
    920  typedef aligned_mediump_mat2x2 aligned_mat2x2;
    +
    921  typedef aligned_mediump_mat2x3 aligned_mat2x3;
    +
    922  typedef aligned_mediump_mat2x4 aligned_mat2x4;
    +
    923  typedef aligned_mediump_mat3x2 aligned_mat3x2;
    +
    924  typedef aligned_mediump_mat3x3 aligned_mat3x3;
    +
    925  typedef aligned_mediump_mat3x4 aligned_mat3x4;
    +
    926  typedef aligned_mediump_mat4x2 aligned_mat4x2;
    +
    927  typedef aligned_mediump_mat4x3 aligned_mat4x3;
    +
    928  typedef aligned_mediump_mat4x4 aligned_mat4x4;
    +
    929  typedef packed_mediump_mat2x2 packed_mat2x2;
    +
    930  typedef packed_mediump_mat2x3 packed_mat2x3;
    +
    931  typedef packed_mediump_mat2x4 packed_mat2x4;
    +
    932  typedef packed_mediump_mat3x2 packed_mat3x2;
    +
    933  typedef packed_mediump_mat3x3 packed_mat3x3;
    +
    934  typedef packed_mediump_mat3x4 packed_mat3x4;
    +
    935  typedef packed_mediump_mat4x2 packed_mat4x2;
    +
    936  typedef packed_mediump_mat4x3 packed_mat4x3;
    +
    937  typedef packed_mediump_mat4x4 packed_mat4x4;
    +
    938 #else //defined(GLM_PRECISION_HIGHP_FLOAT)
    +
    939  typedef aligned_highp_vec1 aligned_vec1;
    +
    941 
    +
    943  typedef aligned_highp_vec2 aligned_vec2;
    +
    944 
    +
    946  typedef aligned_highp_vec3 aligned_vec3;
    +
    947 
    +
    949  typedef aligned_highp_vec4 aligned_vec4;
    +
    950 
    +
    952  typedef packed_highp_vec1 packed_vec1;
    +
    953 
    +
    955  typedef packed_highp_vec2 packed_vec2;
    +
    956 
    +
    958  typedef packed_highp_vec3 packed_vec3;
    +
    959 
    +
    961  typedef packed_highp_vec4 packed_vec4;
    +
    962 
    +
    964  typedef aligned_highp_mat2 aligned_mat2;
    +
    965 
    +
    967  typedef aligned_highp_mat3 aligned_mat3;
    +
    968 
    +
    970  typedef aligned_highp_mat4 aligned_mat4;
    +
    971 
    +
    973  typedef packed_highp_mat2 packed_mat2;
    +
    974 
    +
    976  typedef packed_highp_mat3 packed_mat3;
    +
    977 
    +
    979  typedef packed_highp_mat4 packed_mat4;
    +
    980 
    +
    982  typedef aligned_highp_mat2x2 aligned_mat2x2;
    +
    983 
    +
    985  typedef aligned_highp_mat2x3 aligned_mat2x3;
    +
    986 
    +
    988  typedef aligned_highp_mat2x4 aligned_mat2x4;
    +
    989 
    +
    991  typedef aligned_highp_mat3x2 aligned_mat3x2;
    +
    992 
    +
    994  typedef aligned_highp_mat3x3 aligned_mat3x3;
    +
    995 
    +
    997  typedef aligned_highp_mat3x4 aligned_mat3x4;
    +
    998 
    +
    1000  typedef aligned_highp_mat4x2 aligned_mat4x2;
    +
    1001 
    +
    1003  typedef aligned_highp_mat4x3 aligned_mat4x3;
    +
    1004 
    +
    1006  typedef aligned_highp_mat4x4 aligned_mat4x4;
    +
    1007 
    +
    1009  typedef packed_highp_mat2x2 packed_mat2x2;
    +
    1010 
    +
    1012  typedef packed_highp_mat2x3 packed_mat2x3;
    +
    1013 
    +
    1015  typedef packed_highp_mat2x4 packed_mat2x4;
    +
    1016 
    +
    1018  typedef packed_highp_mat3x2 packed_mat3x2;
    +
    1019 
    +
    1021  typedef packed_highp_mat3x3 packed_mat3x3;
    +
    1022 
    +
    1024  typedef packed_highp_mat3x4 packed_mat3x4;
    +
    1025 
    +
    1027  typedef packed_highp_mat4x2 packed_mat4x2;
    +
    1028 
    +
    1030  typedef packed_highp_mat4x3 packed_mat4x3;
    +
    1031 
    +
    1033  typedef packed_highp_mat4x4 packed_mat4x4;
    +
    1034 #endif//GLM_PRECISION
    +
    1035 
    +
    1036 #if(defined(GLM_PRECISION_LOWP_DOUBLE))
    +
    1037  typedef aligned_lowp_dvec1 aligned_dvec1;
    +
    1038  typedef aligned_lowp_dvec2 aligned_dvec2;
    +
    1039  typedef aligned_lowp_dvec3 aligned_dvec3;
    +
    1040  typedef aligned_lowp_dvec4 aligned_dvec4;
    +
    1041  typedef packed_lowp_dvec1 packed_dvec1;
    +
    1042  typedef packed_lowp_dvec2 packed_dvec2;
    +
    1043  typedef packed_lowp_dvec3 packed_dvec3;
    +
    1044  typedef packed_lowp_dvec4 packed_dvec4;
    +
    1045 
    +
    1046  typedef aligned_lowp_dmat2 aligned_dmat2;
    +
    1047  typedef aligned_lowp_dmat3 aligned_dmat3;
    +
    1048  typedef aligned_lowp_dmat4 aligned_dmat4;
    +
    1049  typedef packed_lowp_dmat2 packed_dmat2;
    +
    1050  typedef packed_lowp_dmat3 packed_dmat3;
    +
    1051  typedef packed_lowp_dmat4 packed_dmat4;
    +
    1052 
    +
    1053  typedef aligned_lowp_dmat2x2 aligned_dmat2x2;
    +
    1054  typedef aligned_lowp_dmat2x3 aligned_dmat2x3;
    +
    1055  typedef aligned_lowp_dmat2x4 aligned_dmat2x4;
    +
    1056  typedef aligned_lowp_dmat3x2 aligned_dmat3x2;
    +
    1057  typedef aligned_lowp_dmat3x3 aligned_dmat3x3;
    +
    1058  typedef aligned_lowp_dmat3x4 aligned_dmat3x4;
    +
    1059  typedef aligned_lowp_dmat4x2 aligned_dmat4x2;
    +
    1060  typedef aligned_lowp_dmat4x3 aligned_dmat4x3;
    +
    1061  typedef aligned_lowp_dmat4x4 aligned_dmat4x4;
    +
    1062  typedef packed_lowp_dmat2x2 packed_dmat2x2;
    +
    1063  typedef packed_lowp_dmat2x3 packed_dmat2x3;
    +
    1064  typedef packed_lowp_dmat2x4 packed_dmat2x4;
    +
    1065  typedef packed_lowp_dmat3x2 packed_dmat3x2;
    +
    1066  typedef packed_lowp_dmat3x3 packed_dmat3x3;
    +
    1067  typedef packed_lowp_dmat3x4 packed_dmat3x4;
    +
    1068  typedef packed_lowp_dmat4x2 packed_dmat4x2;
    +
    1069  typedef packed_lowp_dmat4x3 packed_dmat4x3;
    +
    1070  typedef packed_lowp_dmat4x4 packed_dmat4x4;
    +
    1071 #elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
    +
    1072  typedef aligned_mediump_dvec1 aligned_dvec1;
    +
    1073  typedef aligned_mediump_dvec2 aligned_dvec2;
    +
    1074  typedef aligned_mediump_dvec3 aligned_dvec3;
    +
    1075  typedef aligned_mediump_dvec4 aligned_dvec4;
    +
    1076  typedef packed_mediump_dvec1 packed_dvec1;
    +
    1077  typedef packed_mediump_dvec2 packed_dvec2;
    +
    1078  typedef packed_mediump_dvec3 packed_dvec3;
    +
    1079  typedef packed_mediump_dvec4 packed_dvec4;
    +
    1080 
    +
    1081  typedef aligned_mediump_dmat2 aligned_dmat2;
    +
    1082  typedef aligned_mediump_dmat3 aligned_dmat3;
    +
    1083  typedef aligned_mediump_dmat4 aligned_dmat4;
    +
    1084  typedef packed_mediump_dmat2 packed_dmat2;
    +
    1085  typedef packed_mediump_dmat3 packed_dmat3;
    +
    1086  typedef packed_mediump_dmat4 packed_dmat4;
    +
    1087 
    +
    1088  typedef aligned_mediump_dmat2x2 aligned_dmat2x2;
    +
    1089  typedef aligned_mediump_dmat2x3 aligned_dmat2x3;
    +
    1090  typedef aligned_mediump_dmat2x4 aligned_dmat2x4;
    +
    1091  typedef aligned_mediump_dmat3x2 aligned_dmat3x2;
    +
    1092  typedef aligned_mediump_dmat3x3 aligned_dmat3x3;
    +
    1093  typedef aligned_mediump_dmat3x4 aligned_dmat3x4;
    +
    1094  typedef aligned_mediump_dmat4x2 aligned_dmat4x2;
    +
    1095  typedef aligned_mediump_dmat4x3 aligned_dmat4x3;
    +
    1096  typedef aligned_mediump_dmat4x4 aligned_dmat4x4;
    +
    1097  typedef packed_mediump_dmat2x2 packed_dmat2x2;
    +
    1098  typedef packed_mediump_dmat2x3 packed_dmat2x3;
    +
    1099  typedef packed_mediump_dmat2x4 packed_dmat2x4;
    +
    1100  typedef packed_mediump_dmat3x2 packed_dmat3x2;
    +
    1101  typedef packed_mediump_dmat3x3 packed_dmat3x3;
    +
    1102  typedef packed_mediump_dmat3x4 packed_dmat3x4;
    +
    1103  typedef packed_mediump_dmat4x2 packed_dmat4x2;
    +
    1104  typedef packed_mediump_dmat4x3 packed_dmat4x3;
    +
    1105  typedef packed_mediump_dmat4x4 packed_dmat4x4;
    +
    1106 #else //defined(GLM_PRECISION_HIGHP_DOUBLE)
    +
    1107  typedef aligned_highp_dvec1 aligned_dvec1;
    +
    1109 
    +
    1111  typedef aligned_highp_dvec2 aligned_dvec2;
    +
    1112 
    +
    1114  typedef aligned_highp_dvec3 aligned_dvec3;
    +
    1115 
    +
    1117  typedef aligned_highp_dvec4 aligned_dvec4;
    +
    1118 
    +
    1120  typedef packed_highp_dvec1 packed_dvec1;
    +
    1121 
    +
    1123  typedef packed_highp_dvec2 packed_dvec2;
    +
    1124 
    +
    1126  typedef packed_highp_dvec3 packed_dvec3;
    +
    1127 
    +
    1129  typedef packed_highp_dvec4 packed_dvec4;
    +
    1130 
    +
    1132  typedef aligned_highp_dmat2 aligned_dmat2;
    +
    1133 
    +
    1135  typedef aligned_highp_dmat3 aligned_dmat3;
    +
    1136 
    +
    1138  typedef aligned_highp_dmat4 aligned_dmat4;
    +
    1139 
    +
    1141  typedef packed_highp_dmat2 packed_dmat2;
    +
    1142 
    +
    1144  typedef packed_highp_dmat3 packed_dmat3;
    +
    1145 
    +
    1147  typedef packed_highp_dmat4 packed_dmat4;
    +
    1148 
    +
    1150  typedef aligned_highp_dmat2x2 aligned_dmat2x2;
    +
    1151 
    +
    1153  typedef aligned_highp_dmat2x3 aligned_dmat2x3;
    +
    1154 
    +
    1156  typedef aligned_highp_dmat2x4 aligned_dmat2x4;
    +
    1157 
    +
    1159  typedef aligned_highp_dmat3x2 aligned_dmat3x2;
    +
    1160 
    +
    1162  typedef aligned_highp_dmat3x3 aligned_dmat3x3;
    +
    1163 
    +
    1165  typedef aligned_highp_dmat3x4 aligned_dmat3x4;
    +
    1166 
    +
    1168  typedef aligned_highp_dmat4x2 aligned_dmat4x2;
    +
    1169 
    +
    1171  typedef aligned_highp_dmat4x3 aligned_dmat4x3;
    +
    1172 
    +
    1174  typedef aligned_highp_dmat4x4 aligned_dmat4x4;
    +
    1175 
    +
    1177  typedef packed_highp_dmat2x2 packed_dmat2x2;
    +
    1178 
    +
    1180  typedef packed_highp_dmat2x3 packed_dmat2x3;
    +
    1181 
    +
    1183  typedef packed_highp_dmat2x4 packed_dmat2x4;
    +
    1184 
    +
    1186  typedef packed_highp_dmat3x2 packed_dmat3x2;
    +
    1187 
    +
    1189  typedef packed_highp_dmat3x3 packed_dmat3x3;
    +
    1190 
    +
    1192  typedef packed_highp_dmat3x4 packed_dmat3x4;
    +
    1193 
    +
    1195  typedef packed_highp_dmat4x2 packed_dmat4x2;
    +
    1196 
    +
    1198  typedef packed_highp_dmat4x3 packed_dmat4x3;
    +
    1199 
    +
    1201  typedef packed_highp_dmat4x4 packed_dmat4x4;
    +
    1202 #endif//GLM_PRECISION
    +
    1203 
    +
    1204 #if(defined(GLM_PRECISION_LOWP_INT))
    +
    1205  typedef aligned_lowp_ivec1 aligned_ivec1;
    +
    1206  typedef aligned_lowp_ivec2 aligned_ivec2;
    +
    1207  typedef aligned_lowp_ivec3 aligned_ivec3;
    +
    1208  typedef aligned_lowp_ivec4 aligned_ivec4;
    +
    1209 #elif(defined(GLM_PRECISION_MEDIUMP_INT))
    +
    1210  typedef aligned_mediump_ivec1 aligned_ivec1;
    +
    1211  typedef aligned_mediump_ivec2 aligned_ivec2;
    +
    1212  typedef aligned_mediump_ivec3 aligned_ivec3;
    +
    1213  typedef aligned_mediump_ivec4 aligned_ivec4;
    +
    1214 #else //defined(GLM_PRECISION_HIGHP_INT)
    +
    1215  typedef aligned_highp_ivec1 aligned_ivec1;
    +
    1217 
    +
    1219  typedef aligned_highp_ivec2 aligned_ivec2;
    +
    1220 
    +
    1222  typedef aligned_highp_ivec3 aligned_ivec3;
    +
    1223 
    +
    1225  typedef aligned_highp_ivec4 aligned_ivec4;
    +
    1226 
    +
    1228  typedef packed_highp_ivec1 packed_ivec1;
    +
    1229 
    +
    1231  typedef packed_highp_ivec2 packed_ivec2;
    +
    1232 
    +
    1234  typedef packed_highp_ivec3 packed_ivec3;
    +
    1235 
    +
    1237  typedef packed_highp_ivec4 packed_ivec4;
    +
    1238 #endif//GLM_PRECISION
    +
    1239 
    +
    1240  // -- Unsigned integer definition --
    +
    1241 
    +
    1242 #if(defined(GLM_PRECISION_LOWP_UINT))
    +
    1243  typedef aligned_lowp_uvec1 aligned_uvec1;
    +
    1244  typedef aligned_lowp_uvec2 aligned_uvec2;
    +
    1245  typedef aligned_lowp_uvec3 aligned_uvec3;
    +
    1246  typedef aligned_lowp_uvec4 aligned_uvec4;
    +
    1247 #elif(defined(GLM_PRECISION_MEDIUMP_UINT))
    +
    1248  typedef aligned_mediump_uvec1 aligned_uvec1;
    +
    1249  typedef aligned_mediump_uvec2 aligned_uvec2;
    +
    1250  typedef aligned_mediump_uvec3 aligned_uvec3;
    +
    1251  typedef aligned_mediump_uvec4 aligned_uvec4;
    +
    1252 #else //defined(GLM_PRECISION_HIGHP_UINT)
    +
    1253  typedef aligned_highp_uvec1 aligned_uvec1;
    +
    1255 
    +
    1257  typedef aligned_highp_uvec2 aligned_uvec2;
    +
    1258 
    +
    1260  typedef aligned_highp_uvec3 aligned_uvec3;
    +
    1261 
    +
    1263  typedef aligned_highp_uvec4 aligned_uvec4;
    +
    1264 
    +
    1266  typedef packed_highp_uvec1 packed_uvec1;
    +
    1267 
    +
    1269  typedef packed_highp_uvec2 packed_uvec2;
    +
    1270 
    +
    1272  typedef packed_highp_uvec3 packed_uvec3;
    +
    1273 
    +
    1275  typedef packed_highp_uvec4 packed_uvec4;
    +
    1276 #endif//GLM_PRECISION
    +
    1277 
    +
    1278 #if(defined(GLM_PRECISION_LOWP_BOOL))
    +
    1279  typedef aligned_lowp_bvec1 aligned_bvec1;
    +
    1280  typedef aligned_lowp_bvec2 aligned_bvec2;
    +
    1281  typedef aligned_lowp_bvec3 aligned_bvec3;
    +
    1282  typedef aligned_lowp_bvec4 aligned_bvec4;
    +
    1283 #elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
    +
    1284  typedef aligned_mediump_bvec1 aligned_bvec1;
    +
    1285  typedef aligned_mediump_bvec2 aligned_bvec2;
    +
    1286  typedef aligned_mediump_bvec3 aligned_bvec3;
    +
    1287  typedef aligned_mediump_bvec4 aligned_bvec4;
    +
    1288 #else //defined(GLM_PRECISION_HIGHP_BOOL)
    +
    1289  typedef aligned_highp_bvec1 aligned_bvec1;
    +
    1291 
    +
    1293  typedef aligned_highp_bvec2 aligned_bvec2;
    +
    1294 
    +
    1296  typedef aligned_highp_bvec3 aligned_bvec3;
    +
    1297 
    +
    1299  typedef aligned_highp_bvec4 aligned_bvec4;
    +
    1300 
    +
    1302  typedef packed_highp_bvec1 packed_bvec1;
    +
    1303 
    +
    1305  typedef packed_highp_bvec2 packed_bvec2;
    +
    1306 
    +
    1308  typedef packed_highp_bvec3 packed_bvec3;
    +
    1309 
    +
    1311  typedef packed_highp_bvec4 packed_bvec4;
    +
    1312 #endif//GLM_PRECISION
    +
    1313 
    +
    1315 }//namespace glm
    +
    packed_highp_uvec3 packed_uvec3
    3 components vector tightly packed in memory of unsigned integer numbers.
    +
    packed_highp_mat2x2 packed_mat2x2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    mat< 2, 4, float, aligned_lowp > aligned_lowp_mat2x4
    2 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    vec< 4, bool, aligned_lowp > aligned_lowp_bvec4
    4 components vector aligned in memory of bool values.
    +
    vec< 4, double, packed_highp > packed_highp_dvec4
    4 components vector tightly packed in memory of double-precision floating-point numbers using high pr...
    +
    packed_highp_dmat2x3 packed_dmat2x3
    2 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 3, bool, packed_lowp > packed_lowp_bvec3
    3 components vector tightly packed in memory of bool values.
    +
    packed_highp_mat4 packed_mat4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    aligned_highp_uvec2 aligned_uvec2
    2 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 2, bool, aligned_lowp > aligned_lowp_bvec2
    2 components vector aligned in memory of bool values.
    +
    vec< 3, int, packed_highp > packed_highp_ivec3
    3 components vector tightly packed in memory of signed integer numbers.
    +
    mat< 4, 2, double, packed_highp > packed_highp_dmat4x2
    4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    packed_highp_dmat2 packed_dmat2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 3, 3, double, packed_highp > packed_highp_dmat3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    mat< 4, 3, float, aligned_lowp > aligned_lowp_mat4x3
    4 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    mat< 2, 4, double, packed_highp > packed_highp_dmat2x4
    2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    vec< 2, int, aligned_mediump > aligned_mediump_ivec2
    2 components vector aligned in memory of signed integer numbers.
    +
    mat< 4, 3, float, packed_mediump > packed_mediump_mat4x3
    4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    packed_highp_ivec3 packed_ivec3
    3 components vector tightly packed in memory of signed integer numbers.
    +
    mat< 3, 4, double, aligned_highp > aligned_highp_dmat3x4
    3 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    mat< 3, 3, double, packed_mediump > packed_mediump_dmat3x3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    packed_highp_mat2 packed_mat2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    mat< 3, 4, double, packed_lowp > packed_lowp_dmat3x4
    3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    vec< 2, float, aligned_mediump > aligned_mediump_vec2
    2 components vector aligned in memory of single-precision floating-point numbers using medium precisi...
    +
    mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4x4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    packed_highp_mat3 packed_mat3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    packed_highp_dmat4 packed_dmat4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    packed_highp_vec4 packed_vec4
    4 components vector tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 4, float, aligned_highp > aligned_highp_vec4
    4 components vector aligned in memory of single-precision floating-point numbers using high precision...
    +
    mat< 4, 4, double, packed_highp > packed_highp_dmat4x4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    vec< 1, double, aligned_mediump > aligned_mediump_dvec1
    1 component vector aligned in memory of double-precision floating-point numbers using medium precisio...
    +
    mat< 3, 3, double, aligned_highp > aligned_highp_dmat3x3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    packed_highp_dvec3 packed_dvec3
    3 components vector tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 1, double, packed_mediump > packed_mediump_dvec1
    1 component vector tightly packed in memory of double-precision floating-point numbers using medium p...
    +
    packed_highp_uvec1 packed_uvec1
    1 component vector tightly packed in memory of unsigned integer numbers.
    +
    mat< 3, 4, float, packed_lowp > packed_lowp_mat3x4
    3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 1, uint, aligned_lowp > aligned_lowp_uvec1
    1 component vector aligned in memory of unsigned integer numbers.
    +
    mat< 2, 4, double, packed_lowp > packed_lowp_dmat2x4
    2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    aligned_highp_ivec3 aligned_ivec3
    3 components vector aligned in memory of signed integer numbers.
    +
    mat< 3, 4, double, packed_highp > packed_highp_dmat3x4
    3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    packed_highp_vec2 packed_vec2
    2 components vector tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 1, uint, packed_highp > packed_highp_uvec1
    1 component vector tightly packed in memory of unsigned integer numbers.
    +
    mat< 2, 2, float, packed_lowp > packed_lowp_mat2x2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 1, bool, packed_highp > packed_highp_bvec1
    1 component vector tightly packed in memory of bool values.
    +
    aligned_highp_bvec4 aligned_bvec4
    4 components vector aligned in memory of bool values.
    +
    aligned_highp_vec3 aligned_vec3
    3 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    mat< 3, 3, double, packed_lowp > packed_lowp_dmat3x3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    aligned_highp_uvec3 aligned_uvec3
    3 components vector aligned in memory of unsigned integer numbers.
    +
    mat< 4, 2, double, aligned_mediump > aligned_mediump_dmat4x2
    4 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 3, 3, float, aligned_highp > aligned_highp_mat3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    vec< 2, uint, packed_mediump > packed_mediump_uvec2
    2 components vector tightly packed in memory of unsigned integer numbers.
    +
    vec< 3, float, aligned_highp > aligned_highp_vec3
    3 components vector aligned in memory of single-precision floating-point numbers using high precision...
    +
    aligned_highp_mat4x3 aligned_mat4x3
    4 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    vec< 4, int, aligned_lowp > aligned_lowp_ivec4
    4 components vector aligned in memory of signed integer numbers.
    +
    mat< 2, 2, float, aligned_highp > aligned_highp_mat2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    packed_highp_vec1 packed_vec1
    1 component vector tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 2, int, aligned_lowp > aligned_lowp_ivec2
    2 components vector aligned in memory of signed integer numbers.
    +
    mat< 4, 2, double, packed_lowp > packed_lowp_dmat4x2
    4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    aligned_highp_dvec3 aligned_dvec3
    3 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    vec< 1, float, packed_lowp > packed_lowp_vec1
    1 component vector tightly packed in memory of single-precision floating-point numbers using low prec...
    +
    vec< 3, bool, packed_mediump > packed_mediump_bvec3
    3 components vector tightly packed in memory of bool values.
    +
    aligned_highp_dvec1 aligned_dvec1
    1 component vector aligned in memory of double-precision floating-point numbers.
    +
    packed_highp_uvec4 packed_uvec4
    4 components vector tightly packed in memory of unsigned integer numbers.
    +
    packed_highp_dmat3 packed_dmat3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 2, float, aligned_highp > aligned_highp_vec2
    2 components vector aligned in memory of single-precision floating-point numbers using high precision...
    +
    mat< 2, 2, double, aligned_highp > aligned_highp_dmat2x2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    vec< 3, uint, aligned_lowp > aligned_lowp_uvec3
    3 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 1, double, aligned_lowp > aligned_lowp_dvec1
    1 component vector aligned in memory of double-precision floating-point numbers using low precision a...
    +
    vec< 1, float, aligned_mediump > aligned_mediump_vec1
    1 component vector aligned in memory of single-precision floating-point numbers using medium precisio...
    +
    mat< 4, 3, double, packed_lowp > packed_lowp_dmat4x3
    4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    mat< 3, 4, double, aligned_lowp > aligned_lowp_dmat3x4
    3 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 4, 2, float, packed_highp > packed_highp_mat4x2
    4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 3, 2, float, aligned_mediump > aligned_mediump_mat3x2
    3 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 4, 3, float, aligned_mediump > aligned_mediump_mat4x3
    4 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    vec< 3, double, aligned_lowp > aligned_lowp_dvec3
    3 components vector aligned in memory of double-precision floating-point numbers using low precision ...
    +
    mat< 2, 2, float, packed_mediump > packed_mediump_mat2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    packed_highp_mat3x3 packed_mat3x3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 1, double, packed_highp > packed_highp_dvec1
    1 component vector tightly packed in memory of double-precision floating-point numbers using high pre...
    +
    mat< 3, 2, double, aligned_lowp > aligned_lowp_dmat3x2
    3 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 3, 3, float, packed_mediump > packed_mediump_mat3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    packed_highp_dmat4x4 packed_dmat4x4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 2, 3, double, aligned_lowp > aligned_lowp_dmat2x3
    2 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 4, 4, float, packed_lowp > packed_lowp_mat4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 1, float, packed_highp > packed_highp_vec1
    1 component vector tightly packed in memory of single-precision floating-point numbers using high pre...
    +
    mat< 2, 3, float, aligned_mediump > aligned_mediump_mat2x3
    2 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 2, float, packed_highp > packed_highp_mat2x2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    vec< 2, bool, aligned_mediump > aligned_mediump_bvec2
    2 components vector aligned in memory of bool values.
    +
    mat< 2, 2, double, packed_lowp > packed_lowp_dmat2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    vec< 4, float, packed_mediump > packed_mediump_vec4
    4 components vector tightly packed in memory of single-precision floating-point numbers using medium ...
    +
    aligned_highp_dmat4x2 aligned_dmat4x2
    4 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 4, 4, double, packed_lowp > packed_lowp_dmat4x4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    mat< 2, 2, double, packed_highp > packed_highp_dmat2x2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    mat< 3, 3, float, packed_lowp > packed_lowp_mat3x3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    mat< 4, 3, float, packed_highp > packed_highp_mat4x3
    4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 4, 3, double, aligned_highp > aligned_highp_dmat4x3
    4 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    vec< 1, bool, aligned_lowp > aligned_lowp_bvec1
    1 component vector aligned in memory of bool values.
    +
    aligned_highp_mat2 aligned_mat2
    2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4x4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    vec< 3, int, aligned_mediump > aligned_mediump_ivec3
    3 components vector aligned in memory of signed integer numbers.
    +
    aligned_highp_bvec3 aligned_bvec3
    3 components vector aligned in memory of bool values.
    +
    packed_highp_uvec2 packed_uvec2
    2 components vector tightly packed in memory of unsigned integer numbers.
    +
    vec< 4, double, aligned_lowp > aligned_lowp_dvec4
    4 components vector aligned in memory of double-precision floating-point numbers using low precision ...
    +
    mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 4, 4, float, packed_mediump > packed_mediump_mat4x4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    vec< 4, uint, aligned_highp > aligned_highp_uvec4
    4 components vector aligned in memory of unsigned integer numbers.
    +
    mat< 4, 3, double, packed_highp > packed_highp_dmat4x3
    4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    mat< 4, 3, float, packed_lowp > packed_lowp_mat4x3
    4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 2, float, aligned_lowp > aligned_lowp_vec2
    2 components vector aligned in memory of single-precision floating-point numbers using low precision ...
    +
    vec< 1, int, packed_lowp > packed_lowp_ivec1
    1 component vector tightly packed in memory of signed integer numbers.
    +
    vec< 3, bool, aligned_lowp > aligned_lowp_bvec3
    3 components vector aligned in memory of bool values.
    +
    mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 4, float, packed_mediump > packed_mediump_mat2x4
    2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    mat< 4, 4, double, packed_highp > packed_highp_dmat4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    mat< 4, 2, float, aligned_mediump > aligned_mediump_mat4x2
    4 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 3, 4, float, packed_mediump > packed_mediump_mat3x4
    3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    vec< 3, uint, packed_highp > packed_highp_uvec3
    3 components vector tightly packed in memory of unsigned integer numbers.
    +
    aligned_highp_dmat2x2 aligned_dmat2x2
    2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 2, 2, double, packed_mediump > packed_mediump_dmat2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    mat< 3, 4, float, packed_highp > packed_highp_mat3x4
    3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    packed_highp_mat3x4 packed_mat3x4
    3 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    mat< 2, 4, double, packed_mediump > packed_mediump_dmat2x4
    2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    vec< 1, uint, packed_mediump > packed_mediump_uvec1
    1 component vector tightly packed in memory of unsigned integer numbers.
    +
    mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    packed_highp_mat4x3 packed_mat4x3
    4 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 4, int, packed_lowp > packed_lowp_ivec4
    4 components vector tightly packed in memory of signed integer numbers.
    +
    vec< 4, int, packed_mediump > packed_mediump_ivec4
    4 components vector tightly packed in memory of signed integer numbers.
    +
    vec< 2, double, aligned_mediump > aligned_mediump_dvec2
    2 components vector aligned in memory of double-precision floating-point numbers using medium precisi...
    +
    packed_highp_ivec2 packed_ivec2
    2 components vector tightly packed in memory of signed integer numbers.
    +
    aligned_highp_ivec1 aligned_ivec1
    1 component vector aligned in memory of signed integer numbers.
    +
    vec< 3, int, packed_mediump > packed_mediump_ivec3
    3 components vector tightly packed in memory of signed integer numbers.
    +
    vec< 3, uint, packed_lowp > packed_lowp_uvec3
    3 components vector tightly packed in memory of unsigned integer numbers.
    +
    packed_highp_dmat4x2 packed_dmat4x2
    4 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 4, bool, aligned_mediump > aligned_mediump_bvec4
    4 components vector aligned in memory of bool values.
    +
    vec< 2, bool, aligned_highp > aligned_highp_bvec2
    2 components vector aligned in memory of bool values.
    +
    vec< 4, float, packed_lowp > packed_lowp_vec4
    4 components vector tightly packed in memory of single-precision floating-point numbers using low pre...
    +
    vec< 4, double, aligned_highp > aligned_highp_dvec4
    4 components vector aligned in memory of double-precision floating-point numbers using high precision...
    +
    mat< 2, 3, double, packed_highp > packed_highp_dmat2x3
    2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 4, double, aligned_mediump > aligned_mediump_dmat2x4
    2 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    vec< 4, bool, packed_lowp > packed_lowp_bvec4
    4 components vector tightly packed in memory of bool values.
    +
    vec< 2, double, packed_mediump > packed_mediump_dvec2
    2 components vector tightly packed in memory of double-precision floating-point numbers using medium ...
    +
    vec< 2, double, aligned_highp > aligned_highp_dvec2
    2 components vector aligned in memory of double-precision floating-point numbers using high precision...
    +
    mat< 2, 4, double, aligned_lowp > aligned_lowp_dmat2x4
    2 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    aligned_highp_mat2x3 aligned_mat2x3
    2 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 2, 2, float, packed_lowp > packed_lowp_mat2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 4, int, aligned_mediump > aligned_mediump_ivec4
    4 components vector aligned in memory of signed integer numbers.
    +
    vec< 2, bool, packed_lowp > packed_lowp_bvec2
    2 components vector tightly packed in memory of bool values.
    +
    vec< 2, int, packed_highp > packed_highp_ivec2
    2 components vector tightly packed in memory of signed integer numbers.
    +
    packed_highp_dmat3x4 packed_dmat3x4
    3 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 3, 3, double, packed_mediump > packed_mediump_dmat3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    mat< 4, 3, double, aligned_lowp > aligned_lowp_dmat4x3
    4 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 4, 4, double, aligned_highp > aligned_highp_dmat4x4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    mat< 4, 2, double, packed_mediump > packed_mediump_dmat4x2
    4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    packed_highp_mat4x4 packed_mat4x4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    mat< 4, 4, float, packed_highp > packed_highp_mat4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 4, 4, double, aligned_highp > aligned_highp_dmat4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    mat< 3, 2, double, aligned_highp > aligned_highp_dmat3x2
    3 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    vec< 1, double, packed_lowp > packed_lowp_dvec1
    1 component vector tightly packed in memory of double-precision floating-point numbers using low prec...
    +
    mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    vec< 3, uint, packed_mediump > packed_mediump_uvec3
    3 components vector tightly packed in memory of unsigned integer numbers.
    +
    aligned_highp_dmat4x3 aligned_dmat4x3
    4 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 4, 2, double, aligned_lowp > aligned_lowp_dmat4x2
    4 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 2, 3, double, packed_mediump > packed_mediump_dmat2x3
    2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    mat< 4, 2, double, aligned_highp > aligned_highp_dmat4x2
    4 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    aligned_highp_mat3x4 aligned_mat3x4
    3 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4x4
    4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4x4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    aligned_highp_mat4 aligned_mat4
    4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 2, 2, double, packed_lowp > packed_lowp_dmat2x2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    vec< 2, int, packed_mediump > packed_mediump_ivec2
    2 components vector tightly packed in memory of signed integer numbers.
    +
    packed_highp_dmat3x2 packed_dmat3x2
    3 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 4, 4, double, packed_mediump > packed_mediump_dmat4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    vec< 3, float, aligned_lowp > aligned_lowp_vec3
    3 components vector aligned in memory of single-precision floating-point numbers using low precision ...
    +
    mat< 2, 4, float, packed_highp > packed_highp_mat2x4
    2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 2, 3, float, aligned_highp > aligned_highp_mat2x3
    2 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    mat< 3, 3, float, packed_mediump > packed_mediump_mat3x3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    vec< 4, float, packed_highp > packed_highp_vec4
    4 components vector tightly packed in memory of single-precision floating-point numbers using high pr...
    +
    aligned_highp_uvec1 aligned_uvec1
    1 component vector aligned in memory of unsigned integer numbers.
    +
    mat< 4, 4, float, aligned_highp > aligned_highp_mat4x4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    mat< 4, 2, float, packed_mediump > packed_mediump_mat4x2
    4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    mat< 3, 2, float, aligned_lowp > aligned_lowp_mat3x2
    3 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    mat< 3, 3, float, packed_lowp > packed_lowp_mat3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 4, bool, packed_highp > packed_highp_bvec4
    4 components vector tightly packed in memory of bool values.
    +
    aligned_highp_vec1 aligned_vec1
    1 component vector aligned in memory of single-precision floating-point numbers.
    +
    packed_highp_vec3 packed_vec3
    3 components vector tightly packed in memory of single-precision floating-point numbers.
    +
    packed_highp_mat2x3 packed_mat2x3
    2 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 3, bool, aligned_mediump > aligned_mediump_bvec3
    3 components vector aligned in memory of bool values.
    +
    vec< 1, uint, aligned_mediump > aligned_mediump_uvec1
    1 component vector aligned in memory of unsigned integer numbers.
    +
    aligned_highp_bvec2 aligned_bvec2
    2 components vector aligned in memory of bool values.
    +
    packed_highp_dmat2x2 packed_dmat2x2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 4, 2, float, packed_lowp > packed_lowp_mat4x2
    4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    packed_highp_dmat2x4 packed_dmat2x4
    2 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 3, uint, aligned_highp > aligned_highp_uvec3
    3 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 2, bool, packed_mediump > packed_mediump_bvec2
    2 components vector tightly packed in memory of bool values.
    +
    aligned_highp_bvec1 aligned_bvec1
    1 component vector aligned in memory of bool values.
    +
    aligned_highp_mat3x2 aligned_mat3x2
    3 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    vec< 1, int, aligned_lowp > aligned_lowp_ivec1
    1 component vector aligned in memory of signed integer numbers.
    +
    mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3x3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 3, 2, float, packed_lowp > packed_lowp_mat3x2
    3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    mat< 2, 3, float, packed_highp > packed_highp_mat2x3
    2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 4, 4, float, packed_lowp > packed_lowp_mat4x4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    aligned_highp_uvec4 aligned_uvec4
    4 components vector aligned in memory of unsigned integer numbers.
    +
    packed_highp_bvec2 packed_bvec2
    2 components vector tightly packed in memory of bool values.
    +
    mat< 3, 3, float, aligned_highp > aligned_highp_mat3x3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    packed_highp_bvec4 packed_bvec4
    4 components vector tightly packed in memory of bool values.
    +
    aligned_highp_ivec4 aligned_ivec4
    4 components vector aligned in memory of signed integer numbers.
    +
    mat< 3, 3, float, packed_highp > packed_highp_mat3x3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    vec< 4, int, packed_highp > packed_highp_ivec4
    4 components vector tightly packed in memory of signed integer numbers.
    +
    packed_highp_mat3x2 packed_mat3x2
    3 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 2, uint, aligned_highp > aligned_highp_uvec2
    2 components vector aligned in memory of unsigned integer numbers.
    +
    aligned_highp_dmat3 aligned_dmat3
    3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    vec< 3, int, aligned_highp > aligned_highp_ivec3
    3 components vector aligned in memory of signed integer numbers.
    +
    mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2x2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 3, 2, float, aligned_highp > aligned_highp_mat3x2
    3 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    vec< 1, uint, aligned_highp > aligned_highp_uvec1
    1 component vector aligned in memory of unsigned integer numbers.
    +
    aligned_highp_mat2x4 aligned_mat2x4
    2 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    packed_highp_dvec1 packed_dvec1
    1 component vector tightly packed in memory of double-precision floating-point numbers.
    +
    aligned_highp_dmat2x4 aligned_dmat2x4
    2 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 2, 2, double, packed_mediump > packed_mediump_dmat2x2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    vec< 3, double, packed_lowp > packed_lowp_dvec3
    3 components vector tightly packed in memory of double-precision floating-point numbers using low pre...
    +
    vec< 4, uint, aligned_lowp > aligned_lowp_uvec4
    4 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 4, uint, packed_highp > packed_highp_uvec4
    4 components vector tightly packed in memory of unsigned integer numbers.
    +
    mat< 2, 4, float, packed_lowp > packed_lowp_mat2x4
    2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    aligned_highp_vec2 aligned_vec2
    2 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    aligned_highp_mat2x2 aligned_mat2x2
    2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 3, 3, double, packed_lowp > packed_lowp_dmat3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    aligned_highp_dmat3x3 aligned_dmat3x3
    3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    vec< 2, double, packed_highp > packed_highp_dvec2
    2 components vector tightly packed in memory of double-precision floating-point numbers using high pr...
    +
    mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2x2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    vec< 1, uint, packed_lowp > packed_lowp_uvec1
    1 component vector tightly packed in memory of unsigned integer numbers.
    +
    vec< 2, uint, packed_lowp > packed_lowp_uvec2
    2 components vector tightly packed in memory of unsigned integer numbers.
    +
    packed_highp_dmat4x3 packed_dmat4x3
    4 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3x3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    mat< 3, 3, float, packed_highp > packed_highp_mat3
    3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    aligned_highp_dmat2x3 aligned_dmat2x3
    2 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2x2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2x2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    vec< 1, bool, packed_mediump > packed_mediump_bvec1
    1 component vector tightly packed in memory of bool values.
    +
    mat< 4, 4, double, packed_lowp > packed_lowp_dmat4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    packed_highp_ivec1 packed_ivec1
    1 component vector tightly packed in memory of signed integer numbers.
    +
    vec< 1, bool, packed_lowp > packed_lowp_bvec1
    1 component vector tightly packed in memory of bool values.
    +
    aligned_highp_dmat3x2 aligned_dmat3x2
    3 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 3, 2, double, packed_highp > packed_highp_dmat3x2
    3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    aligned_highp_ivec2 aligned_ivec2
    2 components vector aligned in memory of signed integer numbers.
    +
    aligned_highp_dmat4x4 aligned_dmat4x4
    4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 3, 3, double, packed_highp > packed_highp_dmat3x3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    vec< 4, bool, aligned_highp > aligned_highp_bvec4
    4 components vector aligned in memory of bool values.
    +
    vec< 4, bool, packed_mediump > packed_mediump_bvec4
    4 components vector tightly packed in memory of bool values.
    +
    mat< 2, 2, float, packed_highp > packed_highp_mat2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    packed_highp_mat2x4 packed_mat2x4
    2 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    mat< 4, 2, float, aligned_lowp > aligned_lowp_mat4x2
    4 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    vec< 1, bool, aligned_mediump > aligned_mediump_bvec1
    1 component vector aligned in memory of bool values.
    +
    mat< 2, 4, double, aligned_highp > aligned_highp_dmat2x4
    2 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3x3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    mat< 4, 4, float, packed_mediump > packed_mediump_mat4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    vec< 1, float, packed_mediump > packed_mediump_vec1
    1 component vector tightly packed in memory of single-precision floating-point numbers using medium p...
    +
    aligned_highp_mat4x4 aligned_mat4x4
    4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    aligned_highp_mat4x2 aligned_mat4x2
    4 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    vec< 3, float, packed_highp > packed_highp_vec3
    3 components vector tightly packed in memory of single-precision floating-point numbers using high pr...
    +
    aligned_highp_dvec4 aligned_dvec4
    4 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    vec< 1, int, aligned_highp > aligned_highp_ivec1
    1 component vector aligned in memory of signed integer numbers.
    +
    mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    mat< 2, 2, double, aligned_highp > aligned_highp_dmat2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    aligned_highp_dmat3x4 aligned_dmat3x4
    3 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    packed_highp_bvec3 packed_bvec3
    3 components vector tightly packed in memory of bool values.
    +
    mat< 4, 4, float, packed_highp > packed_highp_mat4x4
    4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    vec< 3, float, packed_mediump > packed_mediump_vec3
    3 components vector tightly packed in memory of single-precision floating-point numbers using medium ...
    +
    vec< 2, uint, aligned_lowp > aligned_lowp_uvec2
    2 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 1, bool, aligned_highp > aligned_highp_bvec1
    1 component vector aligned in memory of bool values.
    +
    vec< 2, bool, packed_highp > packed_highp_bvec2
    2 components vector tightly packed in memory of bool values.
    +
    vec< 1, int, packed_highp > packed_highp_ivec1
    1 component vector tightly packed in memory of signed integer numbers.
    +
    mat< 2, 4, float, aligned_highp > aligned_highp_mat2x4
    2 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    vec< 2, int, packed_lowp > packed_lowp_ivec2
    2 components vector tightly packed in memory of signed integer numbers.
    +
    vec< 3, double, packed_highp > packed_highp_dvec3
    3 components vector tightly packed in memory of double-precision floating-point numbers using high pr...
    +
    vec< 2, int, aligned_highp > aligned_highp_ivec2
    2 components vector aligned in memory of signed integer numbers.
    +
    aligned_highp_dmat2 aligned_dmat2
    2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 3, 2, double, packed_mediump > packed_mediump_dmat3x2
    3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    vec< 3, uint, aligned_mediump > aligned_mediump_uvec3
    3 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 4, double, packed_lowp > packed_lowp_dvec4
    4 components vector tightly packed in memory of double-precision floating-point numbers using low pre...
    +
    vec< 3, double, packed_mediump > packed_mediump_dvec3
    3 components vector tightly packed in memory of double-precision floating-point numbers using medium ...
    +
    mat< 2, 3, double, aligned_mediump > aligned_mediump_dmat2x3
    2 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    vec< 3, int, aligned_lowp > aligned_lowp_ivec3
    3 components vector aligned in memory of signed integer numbers.
    +
    mat< 2, 2, float, aligned_highp > aligned_highp_mat2x2
    2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    mat< 4, 3, float, aligned_highp > aligned_highp_mat4x3
    4 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    vec< 3, bool, aligned_highp > aligned_highp_bvec3
    3 components vector aligned in memory of bool values.
    +
    vec< 3, float, packed_lowp > packed_lowp_vec3
    3 components vector tightly packed in memory of single-precision floating-point numbers using low pre...
    +
    vec< 2, uint, aligned_mediump > aligned_mediump_uvec2
    2 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 1, int, packed_mediump > packed_mediump_ivec1
    1 component vector tightly packed in memory of signed integer numbers.
    +
    mat< 3, 3, double, aligned_highp > aligned_highp_dmat3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    vec< 4, uint, packed_mediump > packed_mediump_uvec4
    4 components vector tightly packed in memory of unsigned integer numbers.
    +
    mat< 3, 2, double, aligned_mediump > aligned_mediump_dmat3x2
    3 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 3, 4, double, aligned_mediump > aligned_mediump_dmat3x4
    3 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 4, 3, double, packed_mediump > packed_mediump_dmat4x3
    4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    vec< 2, uint, packed_highp > packed_highp_uvec2
    2 components vector tightly packed in memory of unsigned integer numbers.
    +
    vec< 4, uint, aligned_mediump > aligned_mediump_uvec4
    4 components vector aligned in memory of unsigned integer numbers.
    +
    vec< 4, double, packed_mediump > packed_mediump_dvec4
    4 components vector tightly packed in memory of double-precision floating-point numbers using medium ...
    +
    aligned_highp_vec4 aligned_vec4
    4 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    vec< 4, int, aligned_highp > aligned_highp_ivec4
    4 components vector aligned in memory of signed integer numbers.
    +
    vec< 2, double, aligned_lowp > aligned_lowp_dvec2
    2 components vector aligned in memory of double-precision floating-point numbers using low precision ...
    +
    packed_highp_bvec1 packed_bvec1
    1 components vector tightly packed in memory of bool values.
    +
    mat< 2, 3, float, packed_lowp > packed_lowp_mat2x3
    2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision...
    +
    vec< 1, float, aligned_lowp > aligned_lowp_vec1
    1 component vector aligned in memory of single-precision floating-point numbers using low precision a...
    +
    vec< 2, float, packed_lowp > packed_lowp_vec2
    2 components vector tightly packed in memory of single-precision floating-point numbers using low pre...
    +
    vec< 1, double, aligned_highp > aligned_highp_dvec1
    1 component vector aligned in memory of double-precision floating-point numbers using high precision ...
    +
    mat< 2, 3, float, packed_mediump > packed_mediump_mat2x3
    2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    mat< 3, 2, float, packed_mediump > packed_mediump_mat3x2
    3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    vec< 4, float, aligned_mediump > aligned_mediump_vec4
    4 components vector aligned in memory of single-precision floating-point numbers using medium precisi...
    +
    packed_highp_dvec4 packed_dvec4
    4 components vector tightly packed in memory of double-precision floating-point numbers.
    +
    vec< 4, double, aligned_mediump > aligned_mediump_dvec4
    4 components vector aligned in memory of double-precision floating-point numbers using medium precisi...
    +
    mat< 4, 4, double, packed_mediump > packed_mediump_dmat4x4
    4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    mat< 3, 4, double, packed_mediump > packed_mediump_dmat3x4
    3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precis...
    +
    mat< 3, 4, float, aligned_highp > aligned_highp_mat3x4
    3 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    mat< 4, 4, float, aligned_highp > aligned_highp_mat4
    4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    mat< 2, 3, double, packed_lowp > packed_lowp_dmat2x3
    2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    mat< 3, 4, float, aligned_mediump > aligned_mediump_mat3x4
    3 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    packed_highp_dmat3x3 packed_dmat3x3
    3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
    +
    aligned_highp_mat3x3 aligned_mat3x3
    3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    vec< 3, int, packed_lowp > packed_lowp_ivec3
    3 components vector tightly packed in memory of signed integer numbers.
    +
    aligned_highp_dmat4 aligned_dmat4
    4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
    +
    mat< 4, 2, float, aligned_highp > aligned_highp_mat4x2
    4 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arith...
    +
    vec< 2, float, packed_highp > packed_highp_vec2
    2 components vector tightly packed in memory of single-precision floating-point numbers using high pr...
    +
    mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2
    2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithm...
    +
    vec< 4, uint, packed_lowp > packed_lowp_uvec4
    4 components vector tightly packed in memory of unsigned integer numbers.
    +
    packed_highp_ivec4 packed_ivec4
    4 components vector tightly packed in memory of signed integer numbers.
    +
    packed_highp_dvec2 packed_dvec2
    2 components vector tightly packed in memory of double-precision floating-point numbers.
    +
    mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3x3
    3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    mat< 3, 2, double, packed_lowp > packed_lowp_dmat3x2
    3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision...
    +
    mat< 3, 2, float, packed_highp > packed_highp_mat3x2
    3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precisio...
    +
    mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3
    3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 3, float, aligned_lowp > aligned_lowp_mat2x3
    2 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    vec< 1, int, aligned_mediump > aligned_mediump_ivec1
    1 component vector aligned in memory of signed integer numbers.
    +
    mat< 2, 2, double, packed_highp > packed_highp_dmat2
    2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precisio...
    +
    vec< 2, float, packed_mediump > packed_mediump_vec2
    2 components vector tightly packed in memory of single-precision floating-point numbers using medium ...
    +
    aligned_highp_mat3 aligned_mat3
    3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 4, 3, double, aligned_mediump > aligned_mediump_dmat4x3
    4 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision ari...
    +
    mat< 2, 2, float, packed_mediump > packed_mediump_mat2x2
    2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precis...
    +
    mat< 2, 3, double, aligned_highp > aligned_highp_dmat2x3
    2 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arith...
    +
    aligned_highp_dvec2 aligned_dvec2
    2 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    mat< 3, 4, float, aligned_lowp > aligned_lowp_mat3x4
    3 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithm...
    +
    packed_highp_mat4x2 packed_mat4x2
    4 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
    +
    vec< 4, float, aligned_lowp > aligned_lowp_vec4
    4 components vector aligned in memory of single-precision floating-point numbers using low precision ...
    +
    vec< 3, bool, packed_highp > packed_highp_bvec3
    3 components vector tightly packed in memory of bool values.
    +
    vec< 2, double, packed_lowp > packed_lowp_dvec2
    2 components vector tightly packed in memory of double-precision floating-point numbers using low pre...
    +
    vec< 3, double, aligned_mediump > aligned_mediump_dvec3
    3 components vector aligned in memory of double-precision floating-point numbers using medium precisi...
    +
    vec< 3, float, aligned_mediump > aligned_mediump_vec3
    3 components vector aligned in memory of single-precision floating-point numbers using medium precisi...
    +
    mat< 2, 4, float, aligned_mediump > aligned_mediump_mat2x4
    2 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision ari...
    +
    Definition: common.hpp:20
    +
    vec< 3, double, aligned_highp > aligned_highp_dvec3
    3 components vector aligned in memory of double-precision floating-point numbers using high precision...
    +
    vec< 1, float, aligned_highp > aligned_highp_vec1
    1 component vector aligned in memory of single-precision floating-point numbers using high precision ...
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00162.html b/external/glm-0.9.9.8/doc/api/a00162.html new file mode 100644 index 0000000..df96222 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00162.html @@ -0,0 +1,735 @@ + + + + + + +0.9.9 API documentation: type_aligned.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    gtx/type_aligned.hpp File Reference
    +
    +
    + +

    GLM_GTX_type_aligned +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

     GLM_ALIGNED_TYPEDEF (lowp_int8, aligned_lowp_int8, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int16, aligned_lowp_int16, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int32, aligned_lowp_int32, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int64, aligned_lowp_int64, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int8_t, aligned_lowp_int8_t, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int16_t, aligned_lowp_int16_t, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int32_t, aligned_lowp_int32_t, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int64_t, aligned_lowp_int64_t, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i8, aligned_lowp_i8, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i16, aligned_lowp_i16, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i32, aligned_lowp_i32, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i64, aligned_lowp_i64, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int8, aligned_mediump_int8, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int16, aligned_mediump_int16, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int32, aligned_mediump_int32, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int64, aligned_mediump_int64, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int8_t, aligned_mediump_int8_t, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int16_t, aligned_mediump_int16_t, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int32_t, aligned_mediump_int32_t, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int64_t, aligned_mediump_int64_t, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i8, aligned_mediump_i8, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i16, aligned_mediump_i16, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i32, aligned_mediump_i32, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i64, aligned_mediump_i64, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int8, aligned_highp_int8, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int16, aligned_highp_int16, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int32, aligned_highp_int32, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int64, aligned_highp_int64, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int8_t, aligned_highp_int8_t, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int16_t, aligned_highp_int16_t, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int32_t, aligned_highp_int32_t, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int64_t, aligned_highp_int64_t, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i8, aligned_highp_i8, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i16, aligned_highp_i16, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i32, aligned_highp_i32, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i64, aligned_highp_i64, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int8, aligned_int8, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int16, aligned_int16, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int32, aligned_int32, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int64, aligned_int64, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int8_t, aligned_int8_t, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int16_t, aligned_int16_t, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int32_t, aligned_int32_t, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int64_t, aligned_int64_t, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i8, aligned_i8, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i16, aligned_i16, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i32, aligned_i32, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i64, aligned_i64, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec1, aligned_ivec1, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec2, aligned_ivec2, 8)
     Default qualifier 32 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec3, aligned_ivec3, 16)
     Default qualifier 32 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec4, aligned_ivec4, 16)
     Default qualifier 32 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec1, aligned_i8vec1, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec2, aligned_i8vec2, 2)
     Default qualifier 8 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec3, aligned_i8vec3, 4)
     Default qualifier 8 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec4, aligned_i8vec4, 4)
     Default qualifier 8 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec1, aligned_i16vec1, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec2, aligned_i16vec2, 4)
     Default qualifier 16 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec3, aligned_i16vec3, 8)
     Default qualifier 16 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec4, aligned_i16vec4, 8)
     Default qualifier 16 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec1, aligned_i32vec1, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec2, aligned_i32vec2, 8)
     Default qualifier 32 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec3, aligned_i32vec3, 16)
     Default qualifier 32 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec4, aligned_i32vec4, 16)
     Default qualifier 32 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec1, aligned_i64vec1, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec2, aligned_i64vec2, 16)
     Default qualifier 64 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec3, aligned_i64vec3, 32)
     Default qualifier 64 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec4, aligned_i64vec4, 32)
     Default qualifier 64 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint8, aligned_lowp_uint8, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint16, aligned_lowp_uint16, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint32, aligned_lowp_uint32, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint64, aligned_lowp_uint64, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint8_t, aligned_lowp_uint8_t, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint16_t, aligned_lowp_uint16_t, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint32_t, aligned_lowp_uint32_t, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint64_t, aligned_lowp_uint64_t, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u8, aligned_lowp_u8, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u16, aligned_lowp_u16, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u32, aligned_lowp_u32, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u64, aligned_lowp_u64, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint8, aligned_mediump_uint8, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint16, aligned_mediump_uint16, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint32, aligned_mediump_uint32, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint64, aligned_mediump_uint64, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint8_t, aligned_mediump_uint8_t, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint16_t, aligned_mediump_uint16_t, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint32_t, aligned_mediump_uint32_t, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint64_t, aligned_mediump_uint64_t, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u8, aligned_mediump_u8, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u16, aligned_mediump_u16, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u32, aligned_mediump_u32, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u64, aligned_mediump_u64, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint8, aligned_highp_uint8, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint16, aligned_highp_uint16, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint32, aligned_highp_uint32, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint64, aligned_highp_uint64, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint8_t, aligned_highp_uint8_t, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint16_t, aligned_highp_uint16_t, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint32_t, aligned_highp_uint32_t, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint64_t, aligned_highp_uint64_t, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u8, aligned_highp_u8, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u16, aligned_highp_u16, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u32, aligned_highp_u32, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u64, aligned_highp_u64, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint8, aligned_uint8, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint16, aligned_uint16, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint32, aligned_uint32, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint64, aligned_uint64, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint8_t, aligned_uint8_t, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint16_t, aligned_uint16_t, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint32_t, aligned_uint32_t, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint64_t, aligned_uint64_t, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u8, aligned_u8, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u16, aligned_u16, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u32, aligned_u32, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u64, aligned_u64, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec1, aligned_uvec1, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec2, aligned_uvec2, 8)
     Default qualifier 32 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec3, aligned_uvec3, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec4, aligned_uvec4, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec1, aligned_u8vec1, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec2, aligned_u8vec2, 2)
     Default qualifier 8 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec3, aligned_u8vec3, 4)
     Default qualifier 8 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec4, aligned_u8vec4, 4)
     Default qualifier 8 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec1, aligned_u16vec1, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec2, aligned_u16vec2, 4)
     Default qualifier 16 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec3, aligned_u16vec3, 8)
     Default qualifier 16 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec4, aligned_u16vec4, 8)
     Default qualifier 16 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec1, aligned_u32vec1, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec2, aligned_u32vec2, 8)
     Default qualifier 32 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec3, aligned_u32vec3, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec4, aligned_u32vec4, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec1, aligned_u64vec1, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec2, aligned_u64vec2, 16)
     Default qualifier 64 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec3, aligned_u64vec3, 32)
     Default qualifier 64 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec4, aligned_u64vec4, 32)
     Default qualifier 64 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (float32, aligned_float32, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float32_t, aligned_float32_t, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float32, aligned_f32, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64, aligned_float64, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64_t, aligned_float64_t, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64, aligned_f64, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (vec1, aligned_vec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (vec2, aligned_vec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (vec3, aligned_vec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (vec4, aligned_vec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec1, aligned_fvec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (fvec2, aligned_fvec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec3, aligned_fvec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec4, aligned_fvec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec1, aligned_f32vec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec2, aligned_f32vec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec3, aligned_f32vec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec4, aligned_f32vec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec1, aligned_dvec1, 8)
     Double-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (dvec2, aligned_dvec2, 16)
     Double-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec3, aligned_dvec3, 32)
     Double-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec4, aligned_dvec4, 32)
     Double-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec1, aligned_f64vec1, 8)
     Double-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec2, aligned_f64vec2, 16)
     Double-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec3, aligned_f64vec3, 32)
     Double-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec4, aligned_f64vec4, 32)
     Double-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (mat2, aligned_mat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (mat3, aligned_mat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (mat4, aligned_mat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x2, aligned_fmat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x3, aligned_fmat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x4, aligned_fmat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x2, aligned_fmat2x2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x3, aligned_fmat2x3, 16)
     Single-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x4, aligned_fmat2x4, 16)
     Single-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x2, aligned_fmat3x2, 16)
     Single-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x3, aligned_fmat3x3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x4, aligned_fmat3x4, 16)
     Single-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x2, aligned_fmat4x2, 16)
     Single-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x3, aligned_fmat4x3, 16)
     Single-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x4, aligned_fmat4x4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x2, aligned_f32mat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x3, aligned_f32mat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x4, aligned_f32mat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x2, aligned_f32mat2x2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x3, aligned_f32mat2x3, 16)
     Single-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x4, aligned_f32mat2x4, 16)
     Single-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x2, aligned_f32mat3x2, 16)
     Single-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x3, aligned_f32mat3x3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x4, aligned_f32mat3x4, 16)
     Single-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x2, aligned_f32mat4x2, 16)
     Single-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x3, aligned_f32mat4x3, 16)
     Single-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x4, aligned_f32mat4x4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x2, aligned_f64mat2, 32)
     Double-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x3, aligned_f64mat3, 32)
     Double-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x4, aligned_f64mat4, 32)
     Double-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x2, aligned_f64mat2x2, 32)
     Double-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x3, aligned_f64mat2x3, 32)
     Double-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x4, aligned_f64mat2x4, 32)
     Double-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x2, aligned_f64mat3x2, 32)
     Double-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x3, aligned_f64mat3x3, 32)
     Double-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x4, aligned_f64mat3x4, 32)
     Double-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x2, aligned_f64mat4x2, 32)
     Double-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x3, aligned_f64mat4x3, 32)
     Double-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x4, aligned_f64mat4x4, 32)
     Double-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (quat, aligned_quat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (quat, aligned_fquat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (dquat, aligned_dquat, 32)
     Double-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (f32quat, aligned_f32quat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (f64quat, aligned_f64quat, 32)
     Double-qualifier floating-point aligned quaternion. More...
     
    +

    Detailed Description

    +

    GLM_GTX_type_aligned

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file gtx/type_aligned.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00162_source.html b/external/glm-0.9.9.8/doc/api/a00162_source.html new file mode 100644 index 0000000..fbd21e7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00162_source.html @@ -0,0 +1,842 @@ + + + + + + +0.9.9 API documentation: type_aligned.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx/type_aligned.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../gtc/type_precision.hpp"
    +
    18 #include "../gtc/quaternion.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_type_aligned is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_type_aligned extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    31  // Signed int vector types
    +
    32 
    +
    35 
    +
    38  GLM_ALIGNED_TYPEDEF(lowp_int8, aligned_lowp_int8, 1);
    +
    39 
    +
    42  GLM_ALIGNED_TYPEDEF(lowp_int16, aligned_lowp_int16, 2);
    +
    43 
    +
    46  GLM_ALIGNED_TYPEDEF(lowp_int32, aligned_lowp_int32, 4);
    +
    47 
    +
    50  GLM_ALIGNED_TYPEDEF(lowp_int64, aligned_lowp_int64, 8);
    +
    51 
    +
    52 
    +
    55  GLM_ALIGNED_TYPEDEF(lowp_int8_t, aligned_lowp_int8_t, 1);
    +
    56 
    +
    59  GLM_ALIGNED_TYPEDEF(lowp_int16_t, aligned_lowp_int16_t, 2);
    +
    60 
    +
    63  GLM_ALIGNED_TYPEDEF(lowp_int32_t, aligned_lowp_int32_t, 4);
    +
    64 
    +
    67  GLM_ALIGNED_TYPEDEF(lowp_int64_t, aligned_lowp_int64_t, 8);
    +
    68 
    +
    69 
    +
    72  GLM_ALIGNED_TYPEDEF(lowp_i8, aligned_lowp_i8, 1);
    +
    73 
    +
    76  GLM_ALIGNED_TYPEDEF(lowp_i16, aligned_lowp_i16, 2);
    +
    77 
    +
    80  GLM_ALIGNED_TYPEDEF(lowp_i32, aligned_lowp_i32, 4);
    +
    81 
    +
    84  GLM_ALIGNED_TYPEDEF(lowp_i64, aligned_lowp_i64, 8);
    +
    85 
    +
    86 
    +
    89  GLM_ALIGNED_TYPEDEF(mediump_int8, aligned_mediump_int8, 1);
    +
    90 
    +
    93  GLM_ALIGNED_TYPEDEF(mediump_int16, aligned_mediump_int16, 2);
    +
    94 
    +
    97  GLM_ALIGNED_TYPEDEF(mediump_int32, aligned_mediump_int32, 4);
    +
    98 
    +
    101  GLM_ALIGNED_TYPEDEF(mediump_int64, aligned_mediump_int64, 8);
    +
    102 
    +
    103 
    +
    106  GLM_ALIGNED_TYPEDEF(mediump_int8_t, aligned_mediump_int8_t, 1);
    +
    107 
    +
    110  GLM_ALIGNED_TYPEDEF(mediump_int16_t, aligned_mediump_int16_t, 2);
    +
    111 
    +
    114  GLM_ALIGNED_TYPEDEF(mediump_int32_t, aligned_mediump_int32_t, 4);
    +
    115 
    +
    118  GLM_ALIGNED_TYPEDEF(mediump_int64_t, aligned_mediump_int64_t, 8);
    +
    119 
    +
    120 
    +
    123  GLM_ALIGNED_TYPEDEF(mediump_i8, aligned_mediump_i8, 1);
    +
    124 
    +
    127  GLM_ALIGNED_TYPEDEF(mediump_i16, aligned_mediump_i16, 2);
    +
    128 
    +
    131  GLM_ALIGNED_TYPEDEF(mediump_i32, aligned_mediump_i32, 4);
    +
    132 
    +
    135  GLM_ALIGNED_TYPEDEF(mediump_i64, aligned_mediump_i64, 8);
    +
    136 
    +
    137 
    +
    140  GLM_ALIGNED_TYPEDEF(highp_int8, aligned_highp_int8, 1);
    +
    141 
    +
    144  GLM_ALIGNED_TYPEDEF(highp_int16, aligned_highp_int16, 2);
    +
    145 
    +
    148  GLM_ALIGNED_TYPEDEF(highp_int32, aligned_highp_int32, 4);
    +
    149 
    +
    152  GLM_ALIGNED_TYPEDEF(highp_int64, aligned_highp_int64, 8);
    +
    153 
    +
    154 
    +
    157  GLM_ALIGNED_TYPEDEF(highp_int8_t, aligned_highp_int8_t, 1);
    +
    158 
    +
    161  GLM_ALIGNED_TYPEDEF(highp_int16_t, aligned_highp_int16_t, 2);
    +
    162 
    +
    165  GLM_ALIGNED_TYPEDEF(highp_int32_t, aligned_highp_int32_t, 4);
    +
    166 
    +
    169  GLM_ALIGNED_TYPEDEF(highp_int64_t, aligned_highp_int64_t, 8);
    +
    170 
    +
    171 
    +
    174  GLM_ALIGNED_TYPEDEF(highp_i8, aligned_highp_i8, 1);
    +
    175 
    +
    178  GLM_ALIGNED_TYPEDEF(highp_i16, aligned_highp_i16, 2);
    +
    179 
    +
    182  GLM_ALIGNED_TYPEDEF(highp_i32, aligned_highp_i32, 4);
    +
    183 
    +
    186  GLM_ALIGNED_TYPEDEF(highp_i64, aligned_highp_i64, 8);
    +
    187 
    +
    188 
    +
    191  GLM_ALIGNED_TYPEDEF(int8, aligned_int8, 1);
    +
    192 
    +
    195  GLM_ALIGNED_TYPEDEF(int16, aligned_int16, 2);
    +
    196 
    +
    199  GLM_ALIGNED_TYPEDEF(int32, aligned_int32, 4);
    +
    200 
    +
    203  GLM_ALIGNED_TYPEDEF(int64, aligned_int64, 8);
    +
    204 
    +
    205 
    +
    208  GLM_ALIGNED_TYPEDEF(int8_t, aligned_int8_t, 1);
    +
    209 
    +
    212  GLM_ALIGNED_TYPEDEF(int16_t, aligned_int16_t, 2);
    +
    213 
    +
    216  GLM_ALIGNED_TYPEDEF(int32_t, aligned_int32_t, 4);
    +
    217 
    +
    220  GLM_ALIGNED_TYPEDEF(int64_t, aligned_int64_t, 8);
    +
    221 
    +
    222 
    +
    225  GLM_ALIGNED_TYPEDEF(i8, aligned_i8, 1);
    +
    226 
    +
    229  GLM_ALIGNED_TYPEDEF(i16, aligned_i16, 2);
    +
    230 
    +
    233  GLM_ALIGNED_TYPEDEF(i32, aligned_i32, 4);
    +
    234 
    +
    237  GLM_ALIGNED_TYPEDEF(i64, aligned_i64, 8);
    +
    238 
    +
    239 
    + +
    243 
    + +
    247 
    + +
    251 
    + +
    255 
    +
    256 
    +
    259  GLM_ALIGNED_TYPEDEF(i8vec1, aligned_i8vec1, 1);
    +
    260 
    +
    263  GLM_ALIGNED_TYPEDEF(i8vec2, aligned_i8vec2, 2);
    +
    264 
    +
    267  GLM_ALIGNED_TYPEDEF(i8vec3, aligned_i8vec3, 4);
    +
    268 
    +
    271  GLM_ALIGNED_TYPEDEF(i8vec4, aligned_i8vec4, 4);
    +
    272 
    +
    273 
    +
    276  GLM_ALIGNED_TYPEDEF(i16vec1, aligned_i16vec1, 2);
    +
    277 
    +
    280  GLM_ALIGNED_TYPEDEF(i16vec2, aligned_i16vec2, 4);
    +
    281 
    +
    284  GLM_ALIGNED_TYPEDEF(i16vec3, aligned_i16vec3, 8);
    +
    285 
    +
    288  GLM_ALIGNED_TYPEDEF(i16vec4, aligned_i16vec4, 8);
    +
    289 
    +
    290 
    +
    293  GLM_ALIGNED_TYPEDEF(i32vec1, aligned_i32vec1, 4);
    +
    294 
    +
    297  GLM_ALIGNED_TYPEDEF(i32vec2, aligned_i32vec2, 8);
    +
    298 
    +
    301  GLM_ALIGNED_TYPEDEF(i32vec3, aligned_i32vec3, 16);
    +
    302 
    +
    305  GLM_ALIGNED_TYPEDEF(i32vec4, aligned_i32vec4, 16);
    +
    306 
    +
    307 
    +
    310  GLM_ALIGNED_TYPEDEF(i64vec1, aligned_i64vec1, 8);
    +
    311 
    +
    314  GLM_ALIGNED_TYPEDEF(i64vec2, aligned_i64vec2, 16);
    +
    315 
    +
    318  GLM_ALIGNED_TYPEDEF(i64vec3, aligned_i64vec3, 32);
    +
    319 
    +
    322  GLM_ALIGNED_TYPEDEF(i64vec4, aligned_i64vec4, 32);
    +
    323 
    +
    324 
    +
    326  // Unsigned int vector types
    +
    327 
    +
    330  GLM_ALIGNED_TYPEDEF(lowp_uint8, aligned_lowp_uint8, 1);
    +
    331 
    +
    334  GLM_ALIGNED_TYPEDEF(lowp_uint16, aligned_lowp_uint16, 2);
    +
    335 
    +
    338  GLM_ALIGNED_TYPEDEF(lowp_uint32, aligned_lowp_uint32, 4);
    +
    339 
    +
    342  GLM_ALIGNED_TYPEDEF(lowp_uint64, aligned_lowp_uint64, 8);
    +
    343 
    +
    344 
    +
    347  GLM_ALIGNED_TYPEDEF(lowp_uint8_t, aligned_lowp_uint8_t, 1);
    +
    348 
    +
    351  GLM_ALIGNED_TYPEDEF(lowp_uint16_t, aligned_lowp_uint16_t, 2);
    +
    352 
    +
    355  GLM_ALIGNED_TYPEDEF(lowp_uint32_t, aligned_lowp_uint32_t, 4);
    +
    356 
    +
    359  GLM_ALIGNED_TYPEDEF(lowp_uint64_t, aligned_lowp_uint64_t, 8);
    +
    360 
    +
    361 
    +
    364  GLM_ALIGNED_TYPEDEF(lowp_u8, aligned_lowp_u8, 1);
    +
    365 
    +
    368  GLM_ALIGNED_TYPEDEF(lowp_u16, aligned_lowp_u16, 2);
    +
    369 
    +
    372  GLM_ALIGNED_TYPEDEF(lowp_u32, aligned_lowp_u32, 4);
    +
    373 
    +
    376  GLM_ALIGNED_TYPEDEF(lowp_u64, aligned_lowp_u64, 8);
    +
    377 
    +
    378 
    +
    381  GLM_ALIGNED_TYPEDEF(mediump_uint8, aligned_mediump_uint8, 1);
    +
    382 
    +
    385  GLM_ALIGNED_TYPEDEF(mediump_uint16, aligned_mediump_uint16, 2);
    +
    386 
    +
    389  GLM_ALIGNED_TYPEDEF(mediump_uint32, aligned_mediump_uint32, 4);
    +
    390 
    +
    393  GLM_ALIGNED_TYPEDEF(mediump_uint64, aligned_mediump_uint64, 8);
    +
    394 
    +
    395 
    +
    398  GLM_ALIGNED_TYPEDEF(mediump_uint8_t, aligned_mediump_uint8_t, 1);
    +
    399 
    +
    402  GLM_ALIGNED_TYPEDEF(mediump_uint16_t, aligned_mediump_uint16_t, 2);
    +
    403 
    +
    406  GLM_ALIGNED_TYPEDEF(mediump_uint32_t, aligned_mediump_uint32_t, 4);
    +
    407 
    +
    410  GLM_ALIGNED_TYPEDEF(mediump_uint64_t, aligned_mediump_uint64_t, 8);
    +
    411 
    +
    412 
    +
    415  GLM_ALIGNED_TYPEDEF(mediump_u8, aligned_mediump_u8, 1);
    +
    416 
    +
    419  GLM_ALIGNED_TYPEDEF(mediump_u16, aligned_mediump_u16, 2);
    +
    420 
    +
    423  GLM_ALIGNED_TYPEDEF(mediump_u32, aligned_mediump_u32, 4);
    +
    424 
    +
    427  GLM_ALIGNED_TYPEDEF(mediump_u64, aligned_mediump_u64, 8);
    +
    428 
    +
    429 
    +
    432  GLM_ALIGNED_TYPEDEF(highp_uint8, aligned_highp_uint8, 1);
    +
    433 
    +
    436  GLM_ALIGNED_TYPEDEF(highp_uint16, aligned_highp_uint16, 2);
    +
    437 
    +
    440  GLM_ALIGNED_TYPEDEF(highp_uint32, aligned_highp_uint32, 4);
    +
    441 
    +
    444  GLM_ALIGNED_TYPEDEF(highp_uint64, aligned_highp_uint64, 8);
    +
    445 
    +
    446 
    +
    449  GLM_ALIGNED_TYPEDEF(highp_uint8_t, aligned_highp_uint8_t, 1);
    +
    450 
    +
    453  GLM_ALIGNED_TYPEDEF(highp_uint16_t, aligned_highp_uint16_t, 2);
    +
    454 
    +
    457  GLM_ALIGNED_TYPEDEF(highp_uint32_t, aligned_highp_uint32_t, 4);
    +
    458 
    +
    461  GLM_ALIGNED_TYPEDEF(highp_uint64_t, aligned_highp_uint64_t, 8);
    +
    462 
    +
    463 
    +
    466  GLM_ALIGNED_TYPEDEF(highp_u8, aligned_highp_u8, 1);
    +
    467 
    +
    470  GLM_ALIGNED_TYPEDEF(highp_u16, aligned_highp_u16, 2);
    +
    471 
    +
    474  GLM_ALIGNED_TYPEDEF(highp_u32, aligned_highp_u32, 4);
    +
    475 
    +
    478  GLM_ALIGNED_TYPEDEF(highp_u64, aligned_highp_u64, 8);
    +
    479 
    +
    480 
    +
    483  GLM_ALIGNED_TYPEDEF(uint8, aligned_uint8, 1);
    +
    484 
    +
    487  GLM_ALIGNED_TYPEDEF(uint16, aligned_uint16, 2);
    +
    488 
    +
    491  GLM_ALIGNED_TYPEDEF(uint32, aligned_uint32, 4);
    +
    492 
    +
    495  GLM_ALIGNED_TYPEDEF(uint64, aligned_uint64, 8);
    +
    496 
    +
    497 
    +
    500  GLM_ALIGNED_TYPEDEF(uint8_t, aligned_uint8_t, 1);
    +
    501 
    +
    504  GLM_ALIGNED_TYPEDEF(uint16_t, aligned_uint16_t, 2);
    +
    505 
    +
    508  GLM_ALIGNED_TYPEDEF(uint32_t, aligned_uint32_t, 4);
    +
    509 
    +
    512  GLM_ALIGNED_TYPEDEF(uint64_t, aligned_uint64_t, 8);
    +
    513 
    +
    514 
    +
    517  GLM_ALIGNED_TYPEDEF(u8, aligned_u8, 1);
    +
    518 
    +
    521  GLM_ALIGNED_TYPEDEF(u16, aligned_u16, 2);
    +
    522 
    +
    525  GLM_ALIGNED_TYPEDEF(u32, aligned_u32, 4);
    +
    526 
    +
    529  GLM_ALIGNED_TYPEDEF(u64, aligned_u64, 8);
    +
    530 
    +
    531 
    + +
    535 
    + +
    539 
    + +
    543 
    + +
    547 
    +
    548 
    +
    551  GLM_ALIGNED_TYPEDEF(u8vec1, aligned_u8vec1, 1);
    +
    552 
    +
    555  GLM_ALIGNED_TYPEDEF(u8vec2, aligned_u8vec2, 2);
    +
    556 
    +
    559  GLM_ALIGNED_TYPEDEF(u8vec3, aligned_u8vec3, 4);
    +
    560 
    +
    563  GLM_ALIGNED_TYPEDEF(u8vec4, aligned_u8vec4, 4);
    +
    564 
    +
    565 
    +
    568  GLM_ALIGNED_TYPEDEF(u16vec1, aligned_u16vec1, 2);
    +
    569 
    +
    572  GLM_ALIGNED_TYPEDEF(u16vec2, aligned_u16vec2, 4);
    +
    573 
    +
    576  GLM_ALIGNED_TYPEDEF(u16vec3, aligned_u16vec3, 8);
    +
    577 
    +
    580  GLM_ALIGNED_TYPEDEF(u16vec4, aligned_u16vec4, 8);
    +
    581 
    +
    582 
    +
    585  GLM_ALIGNED_TYPEDEF(u32vec1, aligned_u32vec1, 4);
    +
    586 
    +
    589  GLM_ALIGNED_TYPEDEF(u32vec2, aligned_u32vec2, 8);
    +
    590 
    +
    593  GLM_ALIGNED_TYPEDEF(u32vec3, aligned_u32vec3, 16);
    +
    594 
    +
    597  GLM_ALIGNED_TYPEDEF(u32vec4, aligned_u32vec4, 16);
    +
    598 
    +
    599 
    +
    602  GLM_ALIGNED_TYPEDEF(u64vec1, aligned_u64vec1, 8);
    +
    603 
    +
    606  GLM_ALIGNED_TYPEDEF(u64vec2, aligned_u64vec2, 16);
    +
    607 
    +
    610  GLM_ALIGNED_TYPEDEF(u64vec3, aligned_u64vec3, 32);
    +
    611 
    +
    614  GLM_ALIGNED_TYPEDEF(u64vec4, aligned_u64vec4, 32);
    +
    615 
    +
    616 
    +
    618  // Float vector types
    +
    619 
    +
    622  GLM_ALIGNED_TYPEDEF(float32, aligned_float32, 4);
    +
    623 
    +
    626  GLM_ALIGNED_TYPEDEF(float32_t, aligned_float32_t, 4);
    +
    627 
    +
    630  GLM_ALIGNED_TYPEDEF(float32, aligned_f32, 4);
    +
    631 
    +
    632 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    633 
    +
    636  GLM_ALIGNED_TYPEDEF(float64, aligned_float64, 8);
    +
    637 
    +
    640  GLM_ALIGNED_TYPEDEF(float64_t, aligned_float64_t, 8);
    +
    641 
    +
    644  GLM_ALIGNED_TYPEDEF(float64, aligned_f64, 8);
    +
    645 
    +
    646 # endif//GLM_FORCE_SINGLE_ONLY
    +
    647 
    +
    648 
    + +
    652 
    + +
    656 
    + +
    660 
    + +
    664 
    +
    665 
    +
    668  GLM_ALIGNED_TYPEDEF(fvec1, aligned_fvec1, 4);
    +
    669 
    +
    672  GLM_ALIGNED_TYPEDEF(fvec2, aligned_fvec2, 8);
    +
    673 
    +
    676  GLM_ALIGNED_TYPEDEF(fvec3, aligned_fvec3, 16);
    +
    677 
    +
    680  GLM_ALIGNED_TYPEDEF(fvec4, aligned_fvec4, 16);
    +
    681 
    +
    682 
    +
    685  GLM_ALIGNED_TYPEDEF(f32vec1, aligned_f32vec1, 4);
    +
    686 
    +
    689  GLM_ALIGNED_TYPEDEF(f32vec2, aligned_f32vec2, 8);
    +
    690 
    +
    693  GLM_ALIGNED_TYPEDEF(f32vec3, aligned_f32vec3, 16);
    +
    694 
    +
    697  GLM_ALIGNED_TYPEDEF(f32vec4, aligned_f32vec4, 16);
    +
    698 
    +
    699 
    + +
    703 
    + +
    707 
    + +
    711 
    + +
    715 
    +
    716 
    +
    717 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    718 
    +
    721  GLM_ALIGNED_TYPEDEF(f64vec1, aligned_f64vec1, 8);
    +
    722 
    +
    725  GLM_ALIGNED_TYPEDEF(f64vec2, aligned_f64vec2, 16);
    +
    726 
    +
    729  GLM_ALIGNED_TYPEDEF(f64vec3, aligned_f64vec3, 32);
    +
    730 
    +
    733  GLM_ALIGNED_TYPEDEF(f64vec4, aligned_f64vec4, 32);
    +
    734 
    +
    735 # endif//GLM_FORCE_SINGLE_ONLY
    +
    736 
    +
    738  // Float matrix types
    +
    739 
    +
    742  //typedef detail::tmat1<f32> mat1;
    +
    743 
    + +
    747 
    + +
    751 
    + +
    755 
    +
    756 
    +
    759  //typedef detail::tmat1x1<f32> mat1;
    +
    760 
    + +
    764 
    + +
    768 
    + +
    772 
    +
    773 
    +
    776  //typedef detail::tmat1x1<f32> fmat1;
    +
    777 
    +
    780  GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2, 16);
    +
    781 
    +
    784  GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3, 16);
    +
    785 
    +
    788  GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4, 16);
    +
    789 
    +
    790 
    +
    793  //typedef f32 fmat1x1;
    +
    794 
    +
    797  GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2x2, 16);
    +
    798 
    +
    801  GLM_ALIGNED_TYPEDEF(fmat2x3, aligned_fmat2x3, 16);
    +
    802 
    +
    805  GLM_ALIGNED_TYPEDEF(fmat2x4, aligned_fmat2x4, 16);
    +
    806 
    +
    809  GLM_ALIGNED_TYPEDEF(fmat3x2, aligned_fmat3x2, 16);
    +
    810 
    +
    813  GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3x3, 16);
    +
    814 
    +
    817  GLM_ALIGNED_TYPEDEF(fmat3x4, aligned_fmat3x4, 16);
    +
    818 
    +
    821  GLM_ALIGNED_TYPEDEF(fmat4x2, aligned_fmat4x2, 16);
    +
    822 
    +
    825  GLM_ALIGNED_TYPEDEF(fmat4x3, aligned_fmat4x3, 16);
    +
    826 
    +
    829  GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4x4, 16);
    +
    830 
    +
    831 
    +
    834  //typedef detail::tmat1x1<f32, defaultp> f32mat1;
    +
    835 
    +
    838  GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2, 16);
    +
    839 
    +
    842  GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3, 16);
    +
    843 
    +
    846  GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4, 16);
    +
    847 
    +
    848 
    +
    851  //typedef f32 f32mat1x1;
    +
    852 
    +
    855  GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2x2, 16);
    +
    856 
    +
    859  GLM_ALIGNED_TYPEDEF(f32mat2x3, aligned_f32mat2x3, 16);
    +
    860 
    +
    863  GLM_ALIGNED_TYPEDEF(f32mat2x4, aligned_f32mat2x4, 16);
    +
    864 
    +
    867  GLM_ALIGNED_TYPEDEF(f32mat3x2, aligned_f32mat3x2, 16);
    +
    868 
    +
    871  GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3x3, 16);
    +
    872 
    +
    875  GLM_ALIGNED_TYPEDEF(f32mat3x4, aligned_f32mat3x4, 16);
    +
    876 
    +
    879  GLM_ALIGNED_TYPEDEF(f32mat4x2, aligned_f32mat4x2, 16);
    +
    880 
    +
    883  GLM_ALIGNED_TYPEDEF(f32mat4x3, aligned_f32mat4x3, 16);
    +
    884 
    +
    887  GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4x4, 16);
    +
    888 
    +
    889 
    +
    890 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    891 
    +
    894  //typedef detail::tmat1x1<f64, defaultp> f64mat1;
    +
    895 
    +
    898  GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2, 32);
    +
    899 
    +
    902  GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3, 32);
    +
    903 
    +
    906  GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4, 32);
    +
    907 
    +
    908 
    +
    911  //typedef f64 f64mat1x1;
    +
    912 
    +
    915  GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2x2, 32);
    +
    916 
    +
    919  GLM_ALIGNED_TYPEDEF(f64mat2x3, aligned_f64mat2x3, 32);
    +
    920 
    +
    923  GLM_ALIGNED_TYPEDEF(f64mat2x4, aligned_f64mat2x4, 32);
    +
    924 
    +
    927  GLM_ALIGNED_TYPEDEF(f64mat3x2, aligned_f64mat3x2, 32);
    +
    928 
    +
    931  GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3x3, 32);
    +
    932 
    +
    935  GLM_ALIGNED_TYPEDEF(f64mat3x4, aligned_f64mat3x4, 32);
    +
    936 
    +
    939  GLM_ALIGNED_TYPEDEF(f64mat4x2, aligned_f64mat4x2, 32);
    +
    940 
    +
    943  GLM_ALIGNED_TYPEDEF(f64mat4x3, aligned_f64mat4x3, 32);
    +
    944 
    +
    947  GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4x4, 32);
    +
    948 
    +
    949 # endif//GLM_FORCE_SINGLE_ONLY
    +
    950 
    +
    951 
    +
    953  // Quaternion types
    +
    954 
    +
    957  GLM_ALIGNED_TYPEDEF(quat, aligned_quat, 16);
    +
    958 
    +
    961  GLM_ALIGNED_TYPEDEF(quat, aligned_fquat, 16);
    +
    962 
    +
    965  GLM_ALIGNED_TYPEDEF(dquat, aligned_dquat, 32);
    +
    966 
    +
    969  GLM_ALIGNED_TYPEDEF(f32quat, aligned_f32quat, 16);
    +
    970 
    +
    971 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    972 
    +
    975  GLM_ALIGNED_TYPEDEF(f64quat, aligned_f64quat, 32);
    +
    976 
    +
    977 # endif//GLM_FORCE_SINGLE_ONLY
    +
    978 
    +
    980 }//namespace glm
    +
    981 
    +
    982 #include "type_aligned.inl"
    +
    mat< 4, 4, float, defaultp > mat4x4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    uint64 highp_u64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:133
    +
    vec< 3, f32, defaultp > f32vec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:463
    +
    mat< 2, 2, float, defaultp > mat2x2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    uint32 mediump_uint32_t
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:127
    +
    aligned_highp_uvec2 aligned_uvec2
    2 components vector aligned in memory of unsigned integer numbers.
    +
    uint64 lowp_uint64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:136
    +
    vec< 1, f32, defaultp > f32vec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:461
    +
    uint8 lowp_u8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:89
    +
    uint32 u32
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:120
    +
    vec< 1, i32, defaultp > i32vec1
    32 bit signed integer scalar type.
    Definition: fwd.hpp:277
    +
    uint16 highp_uint16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:110
    +
    mat< 3, 4, f64, defaultp > f64mat3x4
    Double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:787
    +
    vec< 3, i16, defaultp > i16vec3
    16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:259
    +
    uint32 lowp_uint32_t
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:126
    +
    uint32 mediump_uint32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:123
    +
    uint64 highp_uint64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:138
    +
    uint32 lowp_uint32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:122
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    vec< 4, i64, defaultp > i64vec4
    64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:300
    +
    vec< 3, u16, defaultp > u16vec3
    Default qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:361
    +
    aligned_highp_ivec3 aligned_ivec3
    3 components vector aligned in memory of signed integer numbers.
    +
    vec< 2, i8, defaultp > i8vec2
    8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:238
    +
    aligned_highp_vec3 aligned_vec3
    3 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    vec< 3, unsigned int, defaultp > uvec3
    3 components vector of unsigned integer numbers.
    +
    aligned_highp_uvec3 aligned_uvec3
    3 components vector aligned in memory of unsigned integer numbers.
    +
    int64 highp_int64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:80
    +
    int16 lowp_int16_t
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:54
    +
    mat< 4, 2, f32, defaultp > f32mat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:702
    +
    uint32 mediump_u32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:118
    +
    GLM_ALIGNED_TYPEDEF(f64quat, aligned_f64quat, 32)
    Double-qualifier floating-point aligned quaternion.
    +
    aligned_highp_dvec3 aligned_dvec3
    3 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    aligned_highp_dvec1 aligned_dvec1
    1 component vector aligned in memory of double-precision floating-point numbers.
    +
    vec< 3, int, defaultp > ivec3
    3 components vector of signed integer numbers.
    Definition: vector_int3.hpp:15
    +
    vec< 3, u64, defaultp > u64vec3
    Default qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:401
    +
    uint8 lowp_uint8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:94
    +
    uint64 lowp_u64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:131
    +
    int8 mediump_int8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:37
    +
    int64 lowp_int64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:78
    +
    vec< 2, u64, defaultp > u64vec2
    Default qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:400
    +
    mat< 3, 4, f32, defaultp > f32mat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:707
    +
    uint64 u64
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:134
    +
    vec< 1, f64, defaultp > f64vec1
    Double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:501
    +
    vec< 1, i16, defaultp > i16vec1
    16 bit signed integer scalar type.
    Definition: fwd.hpp:257
    +
    double float64
    Double-qualifier floating-point scalar.
    Definition: fwd.hpp:171
    +
    mat< 4, 2, f32, defaultp > fmat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:662
    +
    mat< 3, 4, f32, defaultp > fmat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:667
    +
    mat< 2, 4, f32, defaultp > f32mat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:706
    +
    vec< 4, i16, defaultp > i16vec4
    16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:260
    +
    uint8 lowp_uint8_t
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:98
    +
    uint32 highp_uint32_t
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:128
    +
    mat< 3, 3, f32, defaultp > fmat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:664
    +
    mat< 2, 3, f32, defaultp > f32mat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:703
    +
    int16 mediump_int16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:51
    +
    uint16 mediump_u16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:104
    +
    qua< f64, defaultp > f64quat
    Double-qualifier floating-point quaternion.
    Definition: fwd.hpp:815
    +
    qua< double, defaultp > dquat
    Quaternion of double-precision floating-point numbers.
    +
    vec< 1, u64, defaultp > u64vec1
    Default qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:399
    +
    int64 int64_t
    64 bit signed integer type.
    Definition: fwd.hpp:85
    +
    aligned_highp_mat2 aligned_mat2
    2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    vec< 1, u8, defaultp > u8vec1
    Default qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:339
    +
    vec< 4, u8, defaultp > u8vec4
    Default qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:342
    +
    int8 int8_t
    8 bit signed integer type.
    Definition: fwd.hpp:43
    +
    int32 i32
    32 bit signed integer type.
    Definition: fwd.hpp:62
    +
    mat< 2, 2, f64, defaultp > f64mat2x2
    Double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:780
    +
    vec< 4, i8, defaultp > i8vec4
    8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:240
    +
    int32 highp_int32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:66
    +
    uint32 highp_u32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:119
    +
    int32 highp_i32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:61
    +
    vec< 4, int, defaultp > ivec4
    4 components vector of signed integer numbers.
    Definition: vector_int4.hpp:15
    +
    vec< 4, u64, defaultp > u64vec4
    Default qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:402
    +
    vec< 4, f32, defaultp > f32vec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:464
    +
    mat< 2, 3, f64, defaultp > f64mat2x3
    Double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:783
    +
    uint32 highp_uint32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:124
    +
    mat< 3, 2, f64, defaultp > f64mat3x2
    Double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:781
    +
    vec< 1, u32, defaultp > u32vec1
    Default qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:379
    +
    mat< 3, 3, f64, defaultp > f64mat3x3
    Double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:784
    +
    uint8 highp_uint8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:96
    +
    int8 highp_i8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:33
    +
    int8 mediump_i8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:32
    +
    int64 highp_int64_t
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:84
    +
    mat< 4, 4, f32, defaultp > f32mat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:708
    +
    float float32_t
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:160
    +
    mat< 2, 2, f32, defaultp > f32mat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:700
    +
    uint32 uint32_t
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:129
    +
    aligned_highp_ivec1 aligned_ivec1
    1 component vector aligned in memory of signed integer numbers.
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    uint8 u8
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:92
    +
    float float32
    Single-qualifier floating-point scalar.
    Definition: fwd.hpp:155
    +
    vec< 4, f32, defaultp > fvec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:444
    +
    vec< 1, u16, defaultp > u16vec1
    Default qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:359
    +
    vec< 1, double, defaultp > dvec1
    1 components vector of double-precision floating-point numbers.
    +
    vec< 1, i8, defaultp > i8vec1
    8 bit signed integer scalar type.
    Definition: fwd.hpp:237
    +
    vec< 2, i32, defaultp > i32vec2
    32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:278
    +
    uint8 highp_uint8_t
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:100
    +
    uint64 mediump_uint64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:137
    +
    int32 highp_int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:70
    +
    vec< 3, f64, defaultp > f64vec3
    Double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:503
    +
    mat< 2, 4, f64, defaultp > f64mat2x4
    Double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:786
    +
    mat< 3, 3, float, defaultp > mat3x3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    uint64 mediump_u64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:132
    +
    vec< 2, unsigned int, defaultp > uvec2
    2 components vector of unsigned integer numbers.
    +
    uint16 lowp_u16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:103
    +
    vec< 1, unsigned int, defaultp > uvec1
    1 component vector of unsigned integer numbers.
    +
    int16 highp_i16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:47
    +
    int8 highp_int8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:38
    +
    mat< 4, 4, f64, defaultp > f64mat4x4
    Double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:788
    +
    mat< 4, 3, f32, defaultp > fmat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:665
    +
    vec< 3, f32, defaultp > fvec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:443
    +
    vec< 2, i16, defaultp > i16vec2
    16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:258
    +
    mat< 4, 3, f32, defaultp > f32mat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:705
    +
    int16 lowp_i16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:45
    +
    vec< 1, float, defaultp > vec1
    1 components vector of single-precision floating-point numbers.
    +
    aligned_highp_mat4 aligned_mat4
    4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    double float64_t
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:176
    +
    int16 lowp_int16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:50
    +
    aligned_highp_uvec1 aligned_uvec1
    1 component vector aligned in memory of unsigned integer numbers.
    +
    int64 lowp_int64_t
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:82
    +
    uint16 uint16_t
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:115
    +
    aligned_highp_vec1 aligned_vec1
    1 component vector aligned in memory of single-precision floating-point numbers.
    +
    int32 lowp_int32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:64
    +
    uint8 uint8_t
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:101
    +
    int32 mediump_int32_t
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:69
    +
    mat< 3, 3, f32, defaultp > f32mat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:704
    +
    uint8 highp_u8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:91
    +
    uint8 mediump_uint8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:95
    +
    aligned_highp_uvec4 aligned_uvec4
    4 components vector aligned in memory of unsigned integer numbers.
    +
    int64 mediump_int64_t
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:83
    +
    aligned_highp_ivec4 aligned_ivec4
    4 components vector aligned in memory of signed integer numbers.
    +
    int8 highp_int8_t
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:42
    +
    mat< 3, 2, f32, defaultp > f32mat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:701
    +
    vec< 4, i32, defaultp > i32vec4
    32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:280
    +
    vec< 3, u32, defaultp > u32vec3
    Default qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:381
    +
    vec< 2, u8, defaultp > u8vec2
    Default qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:340
    +
    int16 mediump_i16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:46
    +
    vec< 3, i8, defaultp > i8vec3
    8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:239
    +
    aligned_highp_vec2 aligned_vec2
    2 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    mat< 4, 4, float, defaultp > mat4
    4 columns of 4 components matrix of single-precision floating-point numbers.
    +
    aligned_highp_mat2x2 aligned_mat2x2
    2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    uint16 mediump_uint16_t
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:113
    +
    vec< 3, u8, defaultp > u8vec3
    Default qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:341
    +
    int64 mediump_int64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:79
    +
    uint64 uint64_t
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:143
    +
    vec< 3, i32, defaultp > i32vec3
    32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:279
    +
    uint16 lowp_uint16_t
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:112
    +
    vec< 2, double, defaultp > dvec2
    2 components vector of double-precision floating-point numbers.
    +
    uint16 lowp_uint16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:108
    +
    vec< 4, f64, defaultp > f64vec4
    Double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:504
    +
    int32 lowp_i32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:59
    +
    vec< 3, float, defaultp > vec3
    3 components vector of single-precision floating-point numbers.
    +
    int64 mediump_i64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:74
    +
    vec< 2, f32, defaultp > fvec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:442
    +
    aligned_highp_ivec2 aligned_ivec2
    2 components vector aligned in memory of signed integer numbers.
    +
    int16 int16_t
    16 bit signed integer type.
    Definition: fwd.hpp:57
    +
    int64 highp_i64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:75
    +
    int32 int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:71
    +
    vec< 2, f64, defaultp > f64vec2
    Double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:502
    +
    vec< 4, unsigned int, defaultp > uvec4
    4 components vector of unsigned integer numbers.
    +
    uint64 lowp_uint64_t
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:140
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    int16 highp_int16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:52
    +
    aligned_highp_mat4x4 aligned_mat4x4
    4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 2, 4, f32, defaultp > fmat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:666
    +
    int32 mediump_i32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:60
    +
    aligned_highp_dvec4 aligned_dvec4
    4 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    uint64 highp_uint64_t
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:142
    +
    vec< 4, u32, defaultp > u32vec4
    Default qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:382
    +
    qua< f32, defaultp > f32quat
    Single-qualifier floating-point quaternion.
    Definition: fwd.hpp:805
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    mat< 4, 2, f64, defaultp > f64mat4x2
    Double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:782
    +
    mat< 2, 3, f32, defaultp > fmat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:663
    +
    uint16 u16
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:106
    +
    int64 lowp_i64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:73
    +
    vec< 2, int, defaultp > ivec2
    2 components vector of signed integer numbers.
    Definition: vector_int2.hpp:15
    +
    int8 mediump_int8_t
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:41
    +
    int16 highp_int16_t
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:56
    +
    vec< 1, i64, defaultp > i64vec1
    64 bit signed integer scalar type.
    Definition: fwd.hpp:297
    +
    aligned_highp_vec4 aligned_vec4
    4 components vector aligned in memory of single-precision floating-point numbers. ...
    +
    uint32 lowp_u32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:117
    +
    vec< 1, int, defaultp > ivec1
    1 component vector of signed integer numbers.
    Definition: vector_int1.hpp:28
    +
    uint16 highp_u16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:105
    +
    vec< 1, f32, defaultp > fvec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:441
    +
    int32 lowp_int32_t
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:68
    +
    vec< 2, f32, defaultp > f32vec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:462
    +
    mat< 2, 2, f32, defaultp > fmat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:660
    +
    int8 lowp_int8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:36
    +
    vec< 3, double, defaultp > dvec3
    3 components vector of double-precision floating-point numbers.
    +
    int8 lowp_int8_t
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:40
    +
    aligned_highp_mat3x3 aligned_mat3x3
    3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 4, 3, f64, defaultp > f64mat4x3
    Double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:785
    +
    int64 i64
    64 bit signed integer type.
    Definition: fwd.hpp:76
    +
    vec< 2, u32, defaultp > u32vec2
    Default qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:380
    +
    qua< float, defaultp > quat
    Quaternion of single-precision floating-point numbers.
    +
    int32 mediump_int32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:65
    +
    vec< 2, i64, defaultp > i64vec2
    64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:298
    +
    int16 i16
    16 bit signed integer type.
    Definition: fwd.hpp:48
    +
    vec< 4, double, defaultp > dvec4
    4 components vector of double-precision floating-point numbers.
    +
    mat< 4, 4, f32, defaultp > fmat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:668
    +
    mat< 2, 2, float, defaultp > mat2
    2 columns of 2 components matrix of single-precision floating-point numbers.
    +
    aligned_highp_mat3 aligned_mat3
    3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
    +
    mat< 3, 2, f32, defaultp > fmat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:661
    +
    vec< 4, u16, defaultp > u16vec4
    Default qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:362
    +
    vec< 2, u16, defaultp > u16vec2
    Default qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:360
    +
    uint8 mediump_u8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:90
    +
    aligned_highp_dvec2 aligned_dvec2
    2 components vector aligned in memory of double-precision floating-point numbers. ...
    +
    int16 mediump_int16_t
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:55
    +
    int8 lowp_i8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:31
    +
    vec< 3, i64, defaultp > i64vec3
    64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:299
    +
    mat< 3, 3, float, defaultp > mat3
    3 columns of 3 components matrix of single-precision floating-point numbers.
    +
    uint16 highp_uint16_t
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:114
    +
    int8 i8
    8 bit signed integer type.
    Definition: fwd.hpp:34
    +
    uint64 mediump_uint64_t
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:141
    +
    uint8 mediump_uint8_t
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:99
    +
    Definition: common.hpp:20
    +
    uint16 mediump_uint16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:109
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00163_source.html b/external/glm-0.9.9.8/doc/api/a00163_source.html new file mode 100644 index 0000000..d74bc38 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00163_source.html @@ -0,0 +1,169 @@ + + + + + + +0.9.9 API documentation: type_float.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_float.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "setup.hpp"
    +
    4 
    +
    5 #if GLM_COMPILER == GLM_COMPILER_VC12
    +
    6 # pragma warning(push)
    +
    7 # pragma warning(disable: 4512) // assignment operator could not be generated
    +
    8 #endif
    +
    9 
    +
    10 namespace glm{
    +
    11 namespace detail
    +
    12 {
    +
    13  template <typename T>
    +
    14  union float_t
    +
    15  {};
    +
    16 
    +
    17  // https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
    +
    18  template <>
    +
    19  union float_t<float>
    +
    20  {
    +
    21  typedef int int_type;
    +
    22  typedef float float_type;
    +
    23 
    +
    24  GLM_CONSTEXPR float_t(float_type Num = 0.0f) : f(Num) {}
    +
    25 
    +
    26  GLM_CONSTEXPR float_t& operator=(float_t const& x)
    +
    27  {
    +
    28  f = x.f;
    +
    29  return *this;
    +
    30  }
    +
    31 
    +
    32  // Portable extraction of components.
    +
    33  GLM_CONSTEXPR bool negative() const { return i < 0; }
    +
    34  GLM_CONSTEXPR int_type mantissa() const { return i & ((1 << 23) - 1); }
    +
    35  GLM_CONSTEXPR int_type exponent() const { return (i >> 23) & ((1 << 8) - 1); }
    +
    36 
    +
    37  int_type i;
    +
    38  float_type f;
    +
    39  };
    +
    40 
    +
    41  template <>
    +
    42  union float_t<double>
    +
    43  {
    +
    44  typedef detail::int64 int_type;
    +
    45  typedef double float_type;
    +
    46 
    +
    47  GLM_CONSTEXPR float_t(float_type Num = static_cast<float_type>(0)) : f(Num) {}
    +
    48 
    +
    49  GLM_CONSTEXPR float_t& operator=(float_t const& x)
    +
    50  {
    +
    51  f = x.f;
    +
    52  return *this;
    +
    53  }
    +
    54 
    +
    55  // Portable extraction of components.
    +
    56  GLM_CONSTEXPR bool negative() const { return i < 0; }
    +
    57  GLM_CONSTEXPR int_type mantissa() const { return i & ((int_type(1) << 52) - 1); }
    +
    58  GLM_CONSTEXPR int_type exponent() const { return (i >> 52) & ((int_type(1) << 11) - 1); }
    +
    59 
    +
    60  int_type i;
    +
    61  float_type f;
    +
    62  };
    +
    63 }//namespace detail
    +
    64 }//namespace glm
    +
    65 
    +
    66 #if GLM_COMPILER == GLM_COMPILER_VC12
    +
    67 # pragma warning(pop)
    +
    68 #endif
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00164_source.html b/external/glm-0.9.9.8/doc/api/a00164_source.html new file mode 100644 index 0000000..2e1be82 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00164_source.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: type_half.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_half.hpp
    +
    +
    +
    1 #pragma once
    +
    2 
    +
    3 #include "setup.hpp"
    +
    4 
    +
    5 namespace glm{
    +
    6 namespace detail
    +
    7 {
    +
    8  typedef short hdata;
    +
    9 
    +
    10  GLM_FUNC_DECL float toFloat32(hdata value);
    +
    11  GLM_FUNC_DECL hdata toFloat16(float const& value);
    +
    12 
    +
    13 }//namespace detail
    +
    14 }//namespace glm
    +
    15 
    +
    16 #include "type_half.inl"
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00165.html b/external/glm-0.9.9.8/doc/api/a00165.html new file mode 100644 index 0000000..2cb44ac --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00165.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat2x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat2x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00165_source.html b/external/glm-0.9.9.8/doc/api/a00165_source.html new file mode 100644 index 0000000..f206371 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00165_source.html @@ -0,0 +1,277 @@ + + + + + + +0.9.9 API documentation: type_mat2x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec2.hpp"
    +
    7 #include <limits>
    +
    8 #include <cstddef>
    +
    9 
    +
    10 namespace glm
    +
    11 {
    +
    12  template<typename T, qualifier Q>
    +
    13  struct mat<2, 2, T, Q>
    +
    14  {
    +
    15  typedef vec<2, T, Q> col_type;
    +
    16  typedef vec<2, T, Q> row_type;
    +
    17  typedef mat<2, 2, T, Q> type;
    +
    18  typedef mat<2, 2, T, Q> transpose_type;
    +
    19  typedef T value_type;
    +
    20 
    +
    21  private:
    +
    22  col_type value[2];
    +
    23 
    +
    24  public:
    +
    25  // -- Accesses --
    +
    26 
    +
    27  typedef length_t length_type;
    +
    28  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 2; }
    +
    29 
    +
    30  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    31  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    32 
    +
    33  // -- Constructors --
    +
    34 
    +
    35  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    36  template<qualifier P>
    +
    37  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 2, T, P> const& m);
    +
    38 
    +
    39  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    40  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    41  T const& x1, T const& y1,
    +
    42  T const& x2, T const& y2);
    +
    43  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    44  col_type const& v1,
    +
    45  col_type const& v2);
    +
    46 
    +
    47  // -- Conversions --
    +
    48 
    +
    49  template<typename U, typename V, typename M, typename N>
    +
    50  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    51  U const& x1, V const& y1,
    +
    52  M const& x2, N const& y2);
    +
    53 
    +
    54  template<typename U, typename V>
    +
    55  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    56  vec<2, U, Q> const& v1,
    +
    57  vec<2, V, Q> const& v2);
    +
    58 
    +
    59  // -- Matrix conversions --
    +
    60 
    +
    61  template<typename U, qualifier P>
    +
    62  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, U, P> const& m);
    +
    63 
    +
    64  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    65  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    66  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    67  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    68  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    69  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    70  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    71  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    72 
    +
    73  // -- Unary arithmetic operators --
    +
    74 
    +
    75  template<typename U>
    +
    76  GLM_FUNC_DECL mat<2, 2, T, Q> & operator=(mat<2, 2, U, Q> const& m);
    +
    77  template<typename U>
    +
    78  GLM_FUNC_DECL mat<2, 2, T, Q> & operator+=(U s);
    +
    79  template<typename U>
    +
    80  GLM_FUNC_DECL mat<2, 2, T, Q> & operator+=(mat<2, 2, U, Q> const& m);
    +
    81  template<typename U>
    +
    82  GLM_FUNC_DECL mat<2, 2, T, Q> & operator-=(U s);
    +
    83  template<typename U>
    +
    84  GLM_FUNC_DECL mat<2, 2, T, Q> & operator-=(mat<2, 2, U, Q> const& m);
    +
    85  template<typename U>
    +
    86  GLM_FUNC_DECL mat<2, 2, T, Q> & operator*=(U s);
    +
    87  template<typename U>
    +
    88  GLM_FUNC_DECL mat<2, 2, T, Q> & operator*=(mat<2, 2, U, Q> const& m);
    +
    89  template<typename U>
    +
    90  GLM_FUNC_DECL mat<2, 2, T, Q> & operator/=(U s);
    +
    91  template<typename U>
    +
    92  GLM_FUNC_DECL mat<2, 2, T, Q> & operator/=(mat<2, 2, U, Q> const& m);
    +
    93 
    +
    94  // -- Increment and decrement operators --
    +
    95 
    +
    96  GLM_FUNC_DECL mat<2, 2, T, Q> & operator++ ();
    +
    97  GLM_FUNC_DECL mat<2, 2, T, Q> & operator-- ();
    +
    98  GLM_FUNC_DECL mat<2, 2, T, Q> operator++(int);
    +
    99  GLM_FUNC_DECL mat<2, 2, T, Q> operator--(int);
    +
    100  };
    +
    101 
    +
    102  // -- Unary operators --
    +
    103 
    +
    104  template<typename T, qualifier Q>
    +
    105  GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m);
    +
    106 
    +
    107  template<typename T, qualifier Q>
    +
    108  GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m);
    +
    109 
    +
    110  // -- Binary operators --
    +
    111 
    +
    112  template<typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m, T scalar);
    +
    114 
    +
    115  template<typename T, qualifier Q>
    +
    116  GLM_FUNC_DECL mat<2, 2, T, Q> operator+(T scalar, mat<2, 2, T, Q> const& m);
    +
    117 
    +
    118  template<typename T, qualifier Q>
    +
    119  GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    120 
    +
    121  template<typename T, qualifier Q>
    +
    122  GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m, T scalar);
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL mat<2, 2, T, Q> operator-(T scalar, mat<2, 2, T, Q> const& m);
    +
    126 
    +
    127  template<typename T, qualifier Q>
    +
    128  GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    129 
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<2, 2, T, Q> const& m, T scalar);
    +
    132 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL mat<2, 2, T, Q> operator*(T scalar, mat<2, 2, T, Q> const& m);
    +
    135 
    +
    136  template<typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL typename mat<2, 2, T, Q>::col_type operator*(mat<2, 2, T, Q> const& m, typename mat<2, 2, T, Q>::row_type const& v);
    +
    138 
    +
    139  template<typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL typename mat<2, 2, T, Q>::row_type operator*(typename mat<2, 2, T, Q>::col_type const& v, mat<2, 2, T, Q> const& m);
    +
    141 
    +
    142  template<typename T, qualifier Q>
    +
    143  GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    144 
    +
    145  template<typename T, qualifier Q>
    +
    146  GLM_FUNC_DECL mat<3, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    147 
    +
    148  template<typename T, qualifier Q>
    +
    149  GLM_FUNC_DECL mat<4, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    150 
    +
    151  template<typename T, qualifier Q>
    +
    152  GLM_FUNC_DECL mat<2, 2, T, Q> operator/(mat<2, 2, T, Q> const& m, T scalar);
    +
    153 
    +
    154  template<typename T, qualifier Q>
    +
    155  GLM_FUNC_DECL mat<2, 2, T, Q> operator/(T scalar, mat<2, 2, T, Q> const& m);
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL typename mat<2, 2, T, Q>::col_type operator/(mat<2, 2, T, Q> const& m, typename mat<2, 2, T, Q>::row_type const& v);
    +
    159 
    +
    160  template<typename T, qualifier Q>
    +
    161  GLM_FUNC_DECL typename mat<2, 2, T, Q>::row_type operator/(typename mat<2, 2, T, Q>::col_type const& v, mat<2, 2, T, Q> const& m);
    +
    162 
    +
    163  template<typename T, qualifier Q>
    +
    164  GLM_FUNC_DECL mat<2, 2, T, Q> operator/(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    165 
    +
    166  // -- Boolean operators --
    +
    167 
    +
    168  template<typename T, qualifier Q>
    +
    169  GLM_FUNC_DECL bool operator==(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    170 
    +
    171  template<typename T, qualifier Q>
    +
    172  GLM_FUNC_DECL bool operator!=(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    173 } //namespace glm
    +
    174 
    +
    175 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    176 #include "type_mat2x2.inl"
    +
    177 #endif
    +
    Core features
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00166.html b/external/glm-0.9.9.8/doc/api/a00166.html new file mode 100644 index 0000000..aa63b70 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00166.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat2x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat2x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00166_source.html b/external/glm-0.9.9.8/doc/api/a00166_source.html new file mode 100644 index 0000000..f023fd3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00166_source.html @@ -0,0 +1,260 @@ + + + + + + +0.9.9 API documentation: type_mat2x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec2.hpp"
    +
    7 #include "type_vec3.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<2, 3, T, Q>
    +
    15  {
    +
    16  typedef vec<3, T, Q> col_type;
    +
    17  typedef vec<2, T, Q> row_type;
    +
    18  typedef mat<2, 3, T, Q> type;
    +
    19  typedef mat<3, 2, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[2];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 2; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 3, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T x0, T y0, T z0,
    +
    43  T x1, T y1, T z1);
    +
    44  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    45  col_type const& v0,
    +
    46  col_type const& v1);
    +
    47 
    +
    48  // -- Conversions --
    +
    49 
    +
    50  template<typename X1, typename Y1, typename Z1, typename X2, typename Y2, typename Z2>
    +
    51  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    52  X1 x1, Y1 y1, Z1 z1,
    +
    53  X2 x2, Y2 y2, Z2 z2);
    +
    54 
    +
    55  template<typename U, typename V>
    +
    56  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    57  vec<3, U, Q> const& v1,
    +
    58  vec<3, V, Q> const& v2);
    +
    59 
    +
    60  // -- Matrix conversions --
    +
    61 
    +
    62  template<typename U, qualifier P>
    +
    63  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, U, P> const& m);
    +
    64 
    +
    65  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    66  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    67  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    68  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    69  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    70  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    71  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    72  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    73 
    +
    74  // -- Unary arithmetic operators --
    +
    75 
    +
    76  template<typename U>
    +
    77  GLM_FUNC_DECL mat<2, 3, T, Q> & operator=(mat<2, 3, U, Q> const& m);
    +
    78  template<typename U>
    +
    79  GLM_FUNC_DECL mat<2, 3, T, Q> & operator+=(U s);
    +
    80  template<typename U>
    +
    81  GLM_FUNC_DECL mat<2, 3, T, Q> & operator+=(mat<2, 3, U, Q> const& m);
    +
    82  template<typename U>
    +
    83  GLM_FUNC_DECL mat<2, 3, T, Q> & operator-=(U s);
    +
    84  template<typename U>
    +
    85  GLM_FUNC_DECL mat<2, 3, T, Q> & operator-=(mat<2, 3, U, Q> const& m);
    +
    86  template<typename U>
    +
    87  GLM_FUNC_DECL mat<2, 3, T, Q> & operator*=(U s);
    +
    88  template<typename U>
    +
    89  GLM_FUNC_DECL mat<2, 3, T, Q> & operator/=(U s);
    +
    90 
    +
    91  // -- Increment and decrement operators --
    +
    92 
    +
    93  GLM_FUNC_DECL mat<2, 3, T, Q> & operator++ ();
    +
    94  GLM_FUNC_DECL mat<2, 3, T, Q> & operator-- ();
    +
    95  GLM_FUNC_DECL mat<2, 3, T, Q> operator++(int);
    +
    96  GLM_FUNC_DECL mat<2, 3, T, Q> operator--(int);
    +
    97  };
    +
    98 
    +
    99  // -- Unary operators --
    +
    100 
    +
    101  template<typename T, qualifier Q>
    +
    102  GLM_FUNC_DECL mat<2, 3, T, Q> operator+(mat<2, 3, T, Q> const& m);
    +
    103 
    +
    104  template<typename T, qualifier Q>
    +
    105  GLM_FUNC_DECL mat<2, 3, T, Q> operator-(mat<2, 3, T, Q> const& m);
    +
    106 
    +
    107  // -- Binary operators --
    +
    108 
    +
    109  template<typename T, qualifier Q>
    +
    110  GLM_FUNC_DECL mat<2, 3, T, Q> operator+(mat<2, 3, T, Q> const& m, T scalar);
    +
    111 
    +
    112  template<typename T, qualifier Q>
    +
    113  GLM_FUNC_DECL mat<2, 3, T, Q> operator+(mat<2, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    114 
    +
    115  template<typename T, qualifier Q>
    +
    116  GLM_FUNC_DECL mat<2, 3, T, Q> operator-(mat<2, 3, T, Q> const& m, T scalar);
    +
    117 
    +
    118  template<typename T, qualifier Q>
    +
    119  GLM_FUNC_DECL mat<2, 3, T, Q> operator-(mat<2, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    120 
    +
    121  template<typename T, qualifier Q>
    +
    122  GLM_FUNC_DECL mat<2, 3, T, Q> operator*(mat<2, 3, T, Q> const& m, T scalar);
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL mat<2, 3, T, Q> operator*(T scalar, mat<2, 3, T, Q> const& m);
    +
    126 
    +
    127  template<typename T, qualifier Q>
    +
    128  GLM_FUNC_DECL typename mat<2, 3, T, Q>::col_type operator*(mat<2, 3, T, Q> const& m, typename mat<2, 3, T, Q>::row_type const& v);
    +
    129 
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL typename mat<2, 3, T, Q>::row_type operator*(typename mat<2, 3, T, Q>::col_type const& v, mat<2, 3, T, Q> const& m);
    +
    132 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL mat<2, 3, T, Q> operator*(mat<2, 3, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    135 
    +
    136  template<typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<2, 3, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    138 
    +
    139  template<typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL mat<4, 3, T, Q> operator*(mat<2, 3, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    141 
    +
    142  template<typename T, qualifier Q>
    +
    143  GLM_FUNC_DECL mat<2, 3, T, Q> operator/(mat<2, 3, T, Q> const& m, T scalar);
    +
    144 
    +
    145  template<typename T, qualifier Q>
    +
    146  GLM_FUNC_DECL mat<2, 3, T, Q> operator/(T scalar, mat<2, 3, T, Q> const& m);
    +
    147 
    +
    148  // -- Boolean operators --
    +
    149 
    +
    150  template<typename T, qualifier Q>
    +
    151  GLM_FUNC_DECL bool operator==(mat<2, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    152 
    +
    153  template<typename T, qualifier Q>
    +
    154  GLM_FUNC_DECL bool operator!=(mat<2, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    155 }//namespace glm
    +
    156 
    +
    157 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    158 #include "type_mat2x3.inl"
    +
    159 #endif
    +
    Core features
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00167.html b/external/glm-0.9.9.8/doc/api/a00167.html new file mode 100644 index 0000000..5a1adea --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00167.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat2x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat2x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00167_source.html b/external/glm-0.9.9.8/doc/api/a00167_source.html new file mode 100644 index 0000000..58244c6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00167_source.html @@ -0,0 +1,262 @@ + + + + + + +0.9.9 API documentation: type_mat2x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat2x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec2.hpp"
    +
    7 #include "type_vec4.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<2, 4, T, Q>
    +
    15  {
    +
    16  typedef vec<4, T, Q> col_type;
    +
    17  typedef vec<2, T, Q> row_type;
    +
    18  typedef mat<2, 4, T, Q> type;
    +
    19  typedef mat<4, 2, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[2];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 2; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 4, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T x0, T y0, T z0, T w0,
    +
    43  T x1, T y1, T z1, T w1);
    +
    44  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    45  col_type const& v0,
    +
    46  col_type const& v1);
    +
    47 
    +
    48  // -- Conversions --
    +
    49 
    +
    50  template<
    +
    51  typename X1, typename Y1, typename Z1, typename W1,
    +
    52  typename X2, typename Y2, typename Z2, typename W2>
    +
    53  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    54  X1 x1, Y1 y1, Z1 z1, W1 w1,
    +
    55  X2 x2, Y2 y2, Z2 z2, W2 w2);
    +
    56 
    +
    57  template<typename U, typename V>
    +
    58  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    59  vec<4, U, Q> const& v1,
    +
    60  vec<4, V, Q> const& v2);
    +
    61 
    +
    62  // -- Matrix conversions --
    +
    63 
    +
    64  template<typename U, qualifier P>
    +
    65  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, U, P> const& m);
    +
    66 
    +
    67  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    68  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    69  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    70  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    71  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    72  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    73  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    74  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    75 
    +
    76  // -- Unary arithmetic operators --
    +
    77 
    +
    78  template<typename U>
    +
    79  GLM_FUNC_DECL mat<2, 4, T, Q> & operator=(mat<2, 4, U, Q> const& m);
    +
    80  template<typename U>
    +
    81  GLM_FUNC_DECL mat<2, 4, T, Q> & operator+=(U s);
    +
    82  template<typename U>
    +
    83  GLM_FUNC_DECL mat<2, 4, T, Q> & operator+=(mat<2, 4, U, Q> const& m);
    +
    84  template<typename U>
    +
    85  GLM_FUNC_DECL mat<2, 4, T, Q> & operator-=(U s);
    +
    86  template<typename U>
    +
    87  GLM_FUNC_DECL mat<2, 4, T, Q> & operator-=(mat<2, 4, U, Q> const& m);
    +
    88  template<typename U>
    +
    89  GLM_FUNC_DECL mat<2, 4, T, Q> & operator*=(U s);
    +
    90  template<typename U>
    +
    91  GLM_FUNC_DECL mat<2, 4, T, Q> & operator/=(U s);
    +
    92 
    +
    93  // -- Increment and decrement operators --
    +
    94 
    +
    95  GLM_FUNC_DECL mat<2, 4, T, Q> & operator++ ();
    +
    96  GLM_FUNC_DECL mat<2, 4, T, Q> & operator-- ();
    +
    97  GLM_FUNC_DECL mat<2, 4, T, Q> operator++(int);
    +
    98  GLM_FUNC_DECL mat<2, 4, T, Q> operator--(int);
    +
    99  };
    +
    100 
    +
    101  // -- Unary operators --
    +
    102 
    +
    103  template<typename T, qualifier Q>
    +
    104  GLM_FUNC_DECL mat<2, 4, T, Q> operator+(mat<2, 4, T, Q> const& m);
    +
    105 
    +
    106  template<typename T, qualifier Q>
    +
    107  GLM_FUNC_DECL mat<2, 4, T, Q> operator-(mat<2, 4, T, Q> const& m);
    +
    108 
    +
    109  // -- Binary operators --
    +
    110 
    +
    111  template<typename T, qualifier Q>
    +
    112  GLM_FUNC_DECL mat<2, 4, T, Q> operator+(mat<2, 4, T, Q> const& m, T scalar);
    +
    113 
    +
    114  template<typename T, qualifier Q>
    +
    115  GLM_FUNC_DECL mat<2, 4, T, Q> operator+(mat<2, 4, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    116 
    +
    117  template<typename T, qualifier Q>
    +
    118  GLM_FUNC_DECL mat<2, 4, T, Q> operator-(mat<2, 4, T, Q> const& m, T scalar);
    +
    119 
    +
    120  template<typename T, qualifier Q>
    +
    121  GLM_FUNC_DECL mat<2, 4, T, Q> operator-(mat<2, 4, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    122 
    +
    123  template<typename T, qualifier Q>
    +
    124  GLM_FUNC_DECL mat<2, 4, T, Q> operator*(mat<2, 4, T, Q> const& m, T scalar);
    +
    125 
    +
    126  template<typename T, qualifier Q>
    +
    127  GLM_FUNC_DECL mat<2, 4, T, Q> operator*(T scalar, mat<2, 4, T, Q> const& m);
    +
    128 
    +
    129  template<typename T, qualifier Q>
    +
    130  GLM_FUNC_DECL typename mat<2, 4, T, Q>::col_type operator*(mat<2, 4, T, Q> const& m, typename mat<2, 4, T, Q>::row_type const& v);
    +
    131 
    +
    132  template<typename T, qualifier Q>
    +
    133  GLM_FUNC_DECL typename mat<2, 4, T, Q>::row_type operator*(typename mat<2, 4, T, Q>::col_type const& v, mat<2, 4, T, Q> const& m);
    +
    134 
    +
    135  template<typename T, qualifier Q>
    +
    136  GLM_FUNC_DECL mat<4, 4, T, Q> operator*(mat<2, 4, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    137 
    +
    138  template<typename T, qualifier Q>
    +
    139  GLM_FUNC_DECL mat<2, 4, T, Q> operator*(mat<2, 4, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
    +
    140 
    +
    141  template<typename T, qualifier Q>
    +
    142  GLM_FUNC_DECL mat<3, 4, T, Q> operator*(mat<2, 4, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    143 
    +
    144  template<typename T, qualifier Q>
    +
    145  GLM_FUNC_DECL mat<2, 4, T, Q> operator/(mat<2, 4, T, Q> const& m, T scalar);
    +
    146 
    +
    147  template<typename T, qualifier Q>
    +
    148  GLM_FUNC_DECL mat<2, 4, T, Q> operator/(T scalar, mat<2, 4, T, Q> const& m);
    +
    149 
    +
    150  // -- Boolean operators --
    +
    151 
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_FUNC_DECL bool operator==(mat<2, 4, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    154 
    +
    155  template<typename T, qualifier Q>
    +
    156  GLM_FUNC_DECL bool operator!=(mat<2, 4, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    157 }//namespace glm
    +
    158 
    +
    159 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    160 #include "type_mat2x4.inl"
    +
    161 #endif
    +
    Core features
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00168.html b/external/glm-0.9.9.8/doc/api/a00168.html new file mode 100644 index 0000000..97be97f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00168.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat3x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat3x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00168_source.html b/external/glm-0.9.9.8/doc/api/a00168_source.html new file mode 100644 index 0000000..5500f84 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00168_source.html @@ -0,0 +1,268 @@ + + + + + + +0.9.9 API documentation: type_mat3x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec2.hpp"
    +
    7 #include "type_vec3.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<3, 2, T, Q>
    +
    15  {
    +
    16  typedef vec<2, T, Q> col_type;
    +
    17  typedef vec<3, T, Q> row_type;
    +
    18  typedef mat<3, 2, T, Q> type;
    +
    19  typedef mat<2, 3, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[3];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 3; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 2, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T x0, T y0,
    +
    43  T x1, T y1,
    +
    44  T x2, T y2);
    +
    45  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    46  col_type const& v0,
    +
    47  col_type const& v1,
    +
    48  col_type const& v2);
    +
    49 
    +
    50  // -- Conversions --
    +
    51 
    +
    52  template<
    +
    53  typename X1, typename Y1,
    +
    54  typename X2, typename Y2,
    +
    55  typename X3, typename Y3>
    +
    56  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    57  X1 x1, Y1 y1,
    +
    58  X2 x2, Y2 y2,
    +
    59  X3 x3, Y3 y3);
    +
    60 
    +
    61  template<typename V1, typename V2, typename V3>
    +
    62  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    63  vec<2, V1, Q> const& v1,
    +
    64  vec<2, V2, Q> const& v2,
    +
    65  vec<2, V3, Q> const& v3);
    +
    66 
    +
    67  // -- Matrix conversions --
    +
    68 
    +
    69  template<typename U, qualifier P>
    +
    70  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, U, P> const& m);
    +
    71 
    +
    72  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    73  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    74  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    76  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    79  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    80 
    +
    81  // -- Unary arithmetic operators --
    +
    82 
    +
    83  template<typename U>
    +
    84  GLM_FUNC_DECL mat<3, 2, T, Q> & operator=(mat<3, 2, U, Q> const& m);
    +
    85  template<typename U>
    +
    86  GLM_FUNC_DECL mat<3, 2, T, Q> & operator+=(U s);
    +
    87  template<typename U>
    +
    88  GLM_FUNC_DECL mat<3, 2, T, Q> & operator+=(mat<3, 2, U, Q> const& m);
    +
    89  template<typename U>
    +
    90  GLM_FUNC_DECL mat<3, 2, T, Q> & operator-=(U s);
    +
    91  template<typename U>
    +
    92  GLM_FUNC_DECL mat<3, 2, T, Q> & operator-=(mat<3, 2, U, Q> const& m);
    +
    93  template<typename U>
    +
    94  GLM_FUNC_DECL mat<3, 2, T, Q> & operator*=(U s);
    +
    95  template<typename U>
    +
    96  GLM_FUNC_DECL mat<3, 2, T, Q> & operator/=(U s);
    +
    97 
    +
    98  // -- Increment and decrement operators --
    +
    99 
    +
    100  GLM_FUNC_DECL mat<3, 2, T, Q> & operator++ ();
    +
    101  GLM_FUNC_DECL mat<3, 2, T, Q> & operator-- ();
    +
    102  GLM_FUNC_DECL mat<3, 2, T, Q> operator++(int);
    +
    103  GLM_FUNC_DECL mat<3, 2, T, Q> operator--(int);
    +
    104  };
    +
    105 
    +
    106  // -- Unary operators --
    +
    107 
    +
    108  template<typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL mat<3, 2, T, Q> operator+(mat<3, 2, T, Q> const& m);
    +
    110 
    +
    111  template<typename T, qualifier Q>
    +
    112  GLM_FUNC_DECL mat<3, 2, T, Q> operator-(mat<3, 2, T, Q> const& m);
    +
    113 
    +
    114  // -- Binary operators --
    +
    115 
    +
    116  template<typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL mat<3, 2, T, Q> operator+(mat<3, 2, T, Q> const& m, T scalar);
    +
    118 
    +
    119  template<typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL mat<3, 2, T, Q> operator+(mat<3, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    121 
    +
    122  template<typename T, qualifier Q>
    +
    123  GLM_FUNC_DECL mat<3, 2, T, Q> operator-(mat<3, 2, T, Q> const& m, T scalar);
    +
    124 
    +
    125  template<typename T, qualifier Q>
    +
    126  GLM_FUNC_DECL mat<3, 2, T, Q> operator-(mat<3, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    127 
    +
    128  template<typename T, qualifier Q>
    +
    129  GLM_FUNC_DECL mat<3, 2, T, Q> operator*(mat<3, 2, T, Q> const& m, T scalar);
    +
    130 
    +
    131  template<typename T, qualifier Q>
    +
    132  GLM_FUNC_DECL mat<3, 2, T, Q> operator*(T scalar, mat<3, 2, T, Q> const& m);
    +
    133 
    +
    134  template<typename T, qualifier Q>
    +
    135  GLM_FUNC_DECL typename mat<3, 2, T, Q>::col_type operator*(mat<3, 2, T, Q> const& m, typename mat<3, 2, T, Q>::row_type const& v);
    +
    136 
    +
    137  template<typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL typename mat<3, 2, T, Q>::row_type operator*(typename mat<3, 2, T, Q>::col_type const& v, mat<3, 2, T, Q> const& m);
    +
    139 
    +
    140  template<typename T, qualifier Q>
    +
    141  GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<3, 2, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    142 
    +
    143  template<typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL mat<3, 2, T, Q> operator*(mat<3, 2, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    145 
    +
    146  template<typename T, qualifier Q>
    +
    147  GLM_FUNC_DECL mat<4, 2, T, Q> operator*(mat<3, 2, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    148 
    +
    149  template<typename T, qualifier Q>
    +
    150  GLM_FUNC_DECL mat<3, 2, T, Q> operator/(mat<3, 2, T, Q> const& m, T scalar);
    +
    151 
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_FUNC_DECL mat<3, 2, T, Q> operator/(T scalar, mat<3, 2, T, Q> const& m);
    +
    154 
    +
    155  // -- Boolean operators --
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL bool operator==(mat<3, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    159 
    +
    160  template<typename T, qualifier Q>
    +
    161  GLM_FUNC_DECL bool operator!=(mat<3, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
    +
    162 
    +
    163 }//namespace glm
    +
    164 
    +
    165 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    166 #include "type_mat3x2.inl"
    +
    167 #endif
    +
    Core features
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00169.html b/external/glm-0.9.9.8/doc/api/a00169.html new file mode 100644 index 0000000..3b7a04d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00169.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat3x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat3x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00169_source.html b/external/glm-0.9.9.8/doc/api/a00169_source.html new file mode 100644 index 0000000..08206d5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00169_source.html @@ -0,0 +1,284 @@ + + + + + + +0.9.9 API documentation: type_mat3x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec3.hpp"
    +
    7 #include <limits>
    +
    8 #include <cstddef>
    +
    9 
    +
    10 namespace glm
    +
    11 {
    +
    12  template<typename T, qualifier Q>
    +
    13  struct mat<3, 3, T, Q>
    +
    14  {
    +
    15  typedef vec<3, T, Q> col_type;
    +
    16  typedef vec<3, T, Q> row_type;
    +
    17  typedef mat<3, 3, T, Q> type;
    +
    18  typedef mat<3, 3, T, Q> transpose_type;
    +
    19  typedef T value_type;
    +
    20 
    +
    21  private:
    +
    22  col_type value[3];
    +
    23 
    +
    24  public:
    +
    25  // -- Accesses --
    +
    26 
    +
    27  typedef length_t length_type;
    +
    28  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 3; }
    +
    29 
    +
    30  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    31  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    32 
    +
    33  // -- Constructors --
    +
    34 
    +
    35  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    36  template<qualifier P>
    +
    37  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 3, T, P> const& m);
    +
    38 
    +
    39  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    40  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    41  T x0, T y0, T z0,
    +
    42  T x1, T y1, T z1,
    +
    43  T x2, T y2, T z2);
    +
    44  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    45  col_type const& v0,
    +
    46  col_type const& v1,
    +
    47  col_type const& v2);
    +
    48 
    +
    49  // -- Conversions --
    +
    50 
    +
    51  template<
    +
    52  typename X1, typename Y1, typename Z1,
    +
    53  typename X2, typename Y2, typename Z2,
    +
    54  typename X3, typename Y3, typename Z3>
    +
    55  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    56  X1 x1, Y1 y1, Z1 z1,
    +
    57  X2 x2, Y2 y2, Z2 z2,
    +
    58  X3 x3, Y3 y3, Z3 z3);
    +
    59 
    +
    60  template<typename V1, typename V2, typename V3>
    +
    61  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    62  vec<3, V1, Q> const& v1,
    +
    63  vec<3, V2, Q> const& v2,
    +
    64  vec<3, V3, Q> const& v3);
    +
    65 
    +
    66  // -- Matrix conversions --
    +
    67 
    +
    68  template<typename U, qualifier P>
    +
    69  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, U, P> const& m);
    +
    70 
    +
    71  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    72  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    73  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    74  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    76  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    79 
    +
    80  // -- Unary arithmetic operators --
    +
    81 
    +
    82  template<typename U>
    +
    83  GLM_FUNC_DECL mat<3, 3, T, Q> & operator=(mat<3, 3, U, Q> const& m);
    +
    84  template<typename U>
    +
    85  GLM_FUNC_DECL mat<3, 3, T, Q> & operator+=(U s);
    +
    86  template<typename U>
    +
    87  GLM_FUNC_DECL mat<3, 3, T, Q> & operator+=(mat<3, 3, U, Q> const& m);
    +
    88  template<typename U>
    +
    89  GLM_FUNC_DECL mat<3, 3, T, Q> & operator-=(U s);
    +
    90  template<typename U>
    +
    91  GLM_FUNC_DECL mat<3, 3, T, Q> & operator-=(mat<3, 3, U, Q> const& m);
    +
    92  template<typename U>
    +
    93  GLM_FUNC_DECL mat<3, 3, T, Q> & operator*=(U s);
    +
    94  template<typename U>
    +
    95  GLM_FUNC_DECL mat<3, 3, T, Q> & operator*=(mat<3, 3, U, Q> const& m);
    +
    96  template<typename U>
    +
    97  GLM_FUNC_DECL mat<3, 3, T, Q> & operator/=(U s);
    +
    98  template<typename U>
    +
    99  GLM_FUNC_DECL mat<3, 3, T, Q> & operator/=(mat<3, 3, U, Q> const& m);
    +
    100 
    +
    101  // -- Increment and decrement operators --
    +
    102 
    +
    103  GLM_FUNC_DECL mat<3, 3, T, Q> & operator++();
    +
    104  GLM_FUNC_DECL mat<3, 3, T, Q> & operator--();
    +
    105  GLM_FUNC_DECL mat<3, 3, T, Q> operator++(int);
    +
    106  GLM_FUNC_DECL mat<3, 3, T, Q> operator--(int);
    +
    107  };
    +
    108 
    +
    109  // -- Unary operators --
    +
    110 
    +
    111  template<typename T, qualifier Q>
    +
    112  GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m);
    +
    113 
    +
    114  template<typename T, qualifier Q>
    +
    115  GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m);
    +
    116 
    +
    117  // -- Binary operators --
    +
    118 
    +
    119  template<typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m, T scalar);
    +
    121 
    +
    122  template<typename T, qualifier Q>
    +
    123  GLM_FUNC_DECL mat<3, 3, T, Q> operator+(T scalar, mat<3, 3, T, Q> const& m);
    +
    124 
    +
    125  template<typename T, qualifier Q>
    +
    126  GLM_FUNC_DECL mat<3, 3, T, Q> operator+(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    127 
    +
    128  template<typename T, qualifier Q>
    +
    129  GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m, T scalar);
    +
    130 
    +
    131  template<typename T, qualifier Q>
    +
    132  GLM_FUNC_DECL mat<3, 3, T, Q> operator-(T scalar, mat<3, 3, T, Q> const& m);
    +
    133 
    +
    134  template<typename T, qualifier Q>
    +
    135  GLM_FUNC_DECL mat<3, 3, T, Q> operator-(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    136 
    +
    137  template<typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<3, 3, T, Q> const& m, T scalar);
    +
    139 
    +
    140  template<typename T, qualifier Q>
    +
    141  GLM_FUNC_DECL mat<3, 3, T, Q> operator*(T scalar, mat<3, 3, T, Q> const& m);
    +
    142 
    +
    143  template<typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL typename mat<3, 3, T, Q>::col_type operator*(mat<3, 3, T, Q> const& m, typename mat<3, 3, T, Q>::row_type const& v);
    +
    145 
    +
    146  template<typename T, qualifier Q>
    +
    147  GLM_FUNC_DECL typename mat<3, 3, T, Q>::row_type operator*(typename mat<3, 3, T, Q>::col_type const& v, mat<3, 3, T, Q> const& m);
    +
    148 
    +
    149  template<typename T, qualifier Q>
    +
    150  GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    151 
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_FUNC_DECL mat<2, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    154 
    +
    155  template<typename T, qualifier Q>
    +
    156  GLM_FUNC_DECL mat<4, 3, T, Q> operator*(mat<3, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    157 
    +
    158  template<typename T, qualifier Q>
    +
    159  GLM_FUNC_DECL mat<3, 3, T, Q> operator/(mat<3, 3, T, Q> const& m, T scalar);
    +
    160 
    +
    161  template<typename T, qualifier Q>
    +
    162  GLM_FUNC_DECL mat<3, 3, T, Q> operator/(T scalar, mat<3, 3, T, Q> const& m);
    +
    163 
    +
    164  template<typename T, qualifier Q>
    +
    165  GLM_FUNC_DECL typename mat<3, 3, T, Q>::col_type operator/(mat<3, 3, T, Q> const& m, typename mat<3, 3, T, Q>::row_type const& v);
    +
    166 
    +
    167  template<typename T, qualifier Q>
    +
    168  GLM_FUNC_DECL typename mat<3, 3, T, Q>::row_type operator/(typename mat<3, 3, T, Q>::col_type const& v, mat<3, 3, T, Q> const& m);
    +
    169 
    +
    170  template<typename T, qualifier Q>
    +
    171  GLM_FUNC_DECL mat<3, 3, T, Q> operator/(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    172 
    +
    173  // -- Boolean operators --
    +
    174 
    +
    175  template<typename T, qualifier Q>
    +
    176  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    177 
    +
    178  template<typename T, qualifier Q>
    +
    179  GLM_FUNC_DECL bool operator!=(mat<3, 3, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    180 }//namespace glm
    +
    181 
    +
    182 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    183 #include "type_mat3x3.inl"
    +
    184 #endif
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00170.html b/external/glm-0.9.9.8/doc/api/a00170.html new file mode 100644 index 0000000..2f25d90 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00170.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat3x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat3x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00170_source.html b/external/glm-0.9.9.8/doc/api/a00170_source.html new file mode 100644 index 0000000..280867a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00170_source.html @@ -0,0 +1,267 @@ + + + + + + +0.9.9 API documentation: type_mat3x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat3x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec3.hpp"
    +
    7 #include "type_vec4.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<3, 4, T, Q>
    +
    15  {
    +
    16  typedef vec<4, T, Q> col_type;
    +
    17  typedef vec<3, T, Q> row_type;
    +
    18  typedef mat<3, 4, T, Q> type;
    +
    19  typedef mat<4, 3, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[3];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 3; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 4, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T x0, T y0, T z0, T w0,
    +
    43  T x1, T y1, T z1, T w1,
    +
    44  T x2, T y2, T z2, T w2);
    +
    45  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    46  col_type const& v0,
    +
    47  col_type const& v1,
    +
    48  col_type const& v2);
    +
    49 
    +
    50  // -- Conversions --
    +
    51 
    +
    52  template<
    +
    53  typename X1, typename Y1, typename Z1, typename W1,
    +
    54  typename X2, typename Y2, typename Z2, typename W2,
    +
    55  typename X3, typename Y3, typename Z3, typename W3>
    +
    56  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    57  X1 x1, Y1 y1, Z1 z1, W1 w1,
    +
    58  X2 x2, Y2 y2, Z2 z2, W2 w2,
    +
    59  X3 x3, Y3 y3, Z3 z3, W3 w3);
    +
    60 
    +
    61  template<typename V1, typename V2, typename V3>
    +
    62  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    63  vec<4, V1, Q> const& v1,
    +
    64  vec<4, V2, Q> const& v2,
    +
    65  vec<4, V3, Q> const& v3);
    +
    66 
    +
    67  // -- Matrix conversions --
    +
    68 
    +
    69  template<typename U, qualifier P>
    +
    70  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, U, P> const& m);
    +
    71 
    +
    72  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    73  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    74  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    76  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    79  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    80 
    +
    81  // -- Unary arithmetic operators --
    +
    82 
    +
    83  template<typename U>
    +
    84  GLM_FUNC_DECL mat<3, 4, T, Q> & operator=(mat<3, 4, U, Q> const& m);
    +
    85  template<typename U>
    +
    86  GLM_FUNC_DECL mat<3, 4, T, Q> & operator+=(U s);
    +
    87  template<typename U>
    +
    88  GLM_FUNC_DECL mat<3, 4, T, Q> & operator+=(mat<3, 4, U, Q> const& m);
    +
    89  template<typename U>
    +
    90  GLM_FUNC_DECL mat<3, 4, T, Q> & operator-=(U s);
    +
    91  template<typename U>
    +
    92  GLM_FUNC_DECL mat<3, 4, T, Q> & operator-=(mat<3, 4, U, Q> const& m);
    +
    93  template<typename U>
    +
    94  GLM_FUNC_DECL mat<3, 4, T, Q> & operator*=(U s);
    +
    95  template<typename U>
    +
    96  GLM_FUNC_DECL mat<3, 4, T, Q> & operator/=(U s);
    +
    97 
    +
    98  // -- Increment and decrement operators --
    +
    99 
    +
    100  GLM_FUNC_DECL mat<3, 4, T, Q> & operator++();
    +
    101  GLM_FUNC_DECL mat<3, 4, T, Q> & operator--();
    +
    102  GLM_FUNC_DECL mat<3, 4, T, Q> operator++(int);
    +
    103  GLM_FUNC_DECL mat<3, 4, T, Q> operator--(int);
    +
    104  };
    +
    105 
    +
    106  // -- Unary operators --
    +
    107 
    +
    108  template<typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL mat<3, 4, T, Q> operator+(mat<3, 4, T, Q> const& m);
    +
    110 
    +
    111  template<typename T, qualifier Q>
    +
    112  GLM_FUNC_DECL mat<3, 4, T, Q> operator-(mat<3, 4, T, Q> const& m);
    +
    113 
    +
    114  // -- Binary operators --
    +
    115 
    +
    116  template<typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL mat<3, 4, T, Q> operator+(mat<3, 4, T, Q> const& m, T scalar);
    +
    118 
    +
    119  template<typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL mat<3, 4, T, Q> operator+(mat<3, 4, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    121 
    +
    122  template<typename T, qualifier Q>
    +
    123  GLM_FUNC_DECL mat<3, 4, T, Q> operator-(mat<3, 4, T, Q> const& m, T scalar);
    +
    124 
    +
    125  template<typename T, qualifier Q>
    +
    126  GLM_FUNC_DECL mat<3, 4, T, Q> operator-(mat<3, 4, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    127 
    +
    128  template<typename T, qualifier Q>
    +
    129  GLM_FUNC_DECL mat<3, 4, T, Q> operator*(mat<3, 4, T, Q> const& m, T scalar);
    +
    130 
    +
    131  template<typename T, qualifier Q>
    +
    132  GLM_FUNC_DECL mat<3, 4, T, Q> operator*(T scalar, mat<3, 4, T, Q> const& m);
    +
    133 
    +
    134  template<typename T, qualifier Q>
    +
    135  GLM_FUNC_DECL typename mat<3, 4, T, Q>::col_type operator*(mat<3, 4, T, Q> const& m, typename mat<3, 4, T, Q>::row_type const& v);
    +
    136 
    +
    137  template<typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL typename mat<3, 4, T, Q>::row_type operator*(typename mat<3, 4, T, Q>::col_type const& v, mat<3, 4, T, Q> const& m);
    +
    139 
    +
    140  template<typename T, qualifier Q>
    +
    141  GLM_FUNC_DECL mat<4, 4, T, Q> operator*(mat<3, 4, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    142 
    +
    143  template<typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL mat<2, 4, T, Q> operator*(mat<3, 4, T, Q> const& m1, mat<2, 3, T, Q> const& m2);
    +
    145 
    +
    146  template<typename T, qualifier Q>
    +
    147  GLM_FUNC_DECL mat<3, 4, T, Q> operator*(mat<3, 4, T, Q> const& m1, mat<3, 3, T, Q> const& m2);
    +
    148 
    +
    149  template<typename T, qualifier Q>
    +
    150  GLM_FUNC_DECL mat<3, 4, T, Q> operator/(mat<3, 4, T, Q> const& m, T scalar);
    +
    151 
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_FUNC_DECL mat<3, 4, T, Q> operator/(T scalar, mat<3, 4, T, Q> const& m);
    +
    154 
    +
    155  // -- Boolean operators --
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL bool operator==(mat<3, 4, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    159 
    +
    160  template<typename T, qualifier Q>
    +
    161  GLM_FUNC_DECL bool operator!=(mat<3, 4, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    162 }//namespace glm
    +
    163 
    +
    164 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    165 #include "type_mat3x4.inl"
    +
    166 #endif
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00171.html b/external/glm-0.9.9.8/doc/api/a00171.html new file mode 100644 index 0000000..f71f10b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00171.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat4x2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat4x2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00171_source.html b/external/glm-0.9.9.8/doc/api/a00171_source.html new file mode 100644 index 0000000..d1e310a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00171_source.html @@ -0,0 +1,272 @@ + + + + + + +0.9.9 API documentation: type_mat4x2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec2.hpp"
    +
    7 #include "type_vec4.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<4, 2, T, Q>
    +
    15  {
    +
    16  typedef vec<2, T, Q> col_type;
    +
    17  typedef vec<4, T, Q> row_type;
    +
    18  typedef mat<4, 2, T, Q> type;
    +
    19  typedef mat<2, 4, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[4];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 4; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 2, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T x0, T y0,
    +
    43  T x1, T y1,
    +
    44  T x2, T y2,
    +
    45  T x3, T y3);
    +
    46  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    47  col_type const& v0,
    +
    48  col_type const& v1,
    +
    49  col_type const& v2,
    +
    50  col_type const& v3);
    +
    51 
    +
    52  // -- Conversions --
    +
    53 
    +
    54  template<
    +
    55  typename X0, typename Y0,
    +
    56  typename X1, typename Y1,
    +
    57  typename X2, typename Y2,
    +
    58  typename X3, typename Y3>
    +
    59  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    60  X0 x0, Y0 y0,
    +
    61  X1 x1, Y1 y1,
    +
    62  X2 x2, Y2 y2,
    +
    63  X3 x3, Y3 y3);
    +
    64 
    +
    65  template<typename V1, typename V2, typename V3, typename V4>
    +
    66  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    67  vec<2, V1, Q> const& v1,
    +
    68  vec<2, V2, Q> const& v2,
    +
    69  vec<2, V3, Q> const& v3,
    +
    70  vec<2, V4, Q> const& v4);
    +
    71 
    +
    72  // -- Matrix conversions --
    +
    73 
    +
    74  template<typename U, qualifier P>
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, U, P> const& m);
    +
    76 
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    79  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    80  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    81  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    82  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    83  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    84  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    85 
    +
    86  // -- Unary arithmetic operators --
    +
    87 
    +
    88  template<typename U>
    +
    89  GLM_FUNC_DECL mat<4, 2, T, Q> & operator=(mat<4, 2, U, Q> const& m);
    +
    90  template<typename U>
    +
    91  GLM_FUNC_DECL mat<4, 2, T, Q> & operator+=(U s);
    +
    92  template<typename U>
    +
    93  GLM_FUNC_DECL mat<4, 2, T, Q> & operator+=(mat<4, 2, U, Q> const& m);
    +
    94  template<typename U>
    +
    95  GLM_FUNC_DECL mat<4, 2, T, Q> & operator-=(U s);
    +
    96  template<typename U>
    +
    97  GLM_FUNC_DECL mat<4, 2, T, Q> & operator-=(mat<4, 2, U, Q> const& m);
    +
    98  template<typename U>
    +
    99  GLM_FUNC_DECL mat<4, 2, T, Q> & operator*=(U s);
    +
    100  template<typename U>
    +
    101  GLM_FUNC_DECL mat<4, 2, T, Q> & operator/=(U s);
    +
    102 
    +
    103  // -- Increment and decrement operators --
    +
    104 
    +
    105  GLM_FUNC_DECL mat<4, 2, T, Q> & operator++ ();
    +
    106  GLM_FUNC_DECL mat<4, 2, T, Q> & operator-- ();
    +
    107  GLM_FUNC_DECL mat<4, 2, T, Q> operator++(int);
    +
    108  GLM_FUNC_DECL mat<4, 2, T, Q> operator--(int);
    +
    109  };
    +
    110 
    +
    111  // -- Unary operators --
    +
    112 
    +
    113  template<typename T, qualifier Q>
    +
    114  GLM_FUNC_DECL mat<4, 2, T, Q> operator+(mat<4, 2, T, Q> const& m);
    +
    115 
    +
    116  template<typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL mat<4, 2, T, Q> operator-(mat<4, 2, T, Q> const& m);
    +
    118 
    +
    119  // -- Binary operators --
    +
    120 
    +
    121  template<typename T, qualifier Q>
    +
    122  GLM_FUNC_DECL mat<4, 2, T, Q> operator+(mat<4, 2, T, Q> const& m, T scalar);
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL mat<4, 2, T, Q> operator+(mat<4, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    126 
    +
    127  template<typename T, qualifier Q>
    +
    128  GLM_FUNC_DECL mat<4, 2, T, Q> operator-(mat<4, 2, T, Q> const& m, T scalar);
    +
    129 
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL mat<4, 2, T, Q> operator-(mat<4, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    132 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL mat<4, 2, T, Q> operator*(mat<4, 2, T, Q> const& m, T scalar);
    +
    135 
    +
    136  template<typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL mat<4, 2, T, Q> operator*(T scalar, mat<4, 2, T, Q> const& m);
    +
    138 
    +
    139  template<typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL typename mat<4, 2, T, Q>::col_type operator*(mat<4, 2, T, Q> const& m, typename mat<4, 2, T, Q>::row_type const& v);
    +
    141 
    +
    142  template<typename T, qualifier Q>
    +
    143  GLM_FUNC_DECL typename mat<4, 2, T, Q>::row_type operator*(typename mat<4, 2, T, Q>::col_type const& v, mat<4, 2, T, Q> const& m);
    +
    144 
    +
    145  template<typename T, qualifier Q>
    +
    146  GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<4, 2, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    147 
    +
    148  template<typename T, qualifier Q>
    +
    149  GLM_FUNC_DECL mat<3, 2, T, Q> operator*(mat<4, 2, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    150 
    +
    151  template<typename T, qualifier Q>
    +
    152  GLM_FUNC_DECL mat<4, 2, T, Q> operator*(mat<4, 2, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    153 
    +
    154  template<typename T, qualifier Q>
    +
    155  GLM_FUNC_DECL mat<4, 2, T, Q> operator/(mat<4, 2, T, Q> const& m, T scalar);
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL mat<4, 2, T, Q> operator/(T scalar, mat<4, 2, T, Q> const& m);
    +
    159 
    +
    160  // -- Boolean operators --
    +
    161 
    +
    162  template<typename T, qualifier Q>
    +
    163  GLM_FUNC_DECL bool operator==(mat<4, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    164 
    +
    165  template<typename T, qualifier Q>
    +
    166  GLM_FUNC_DECL bool operator!=(mat<4, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
    +
    167 }//namespace glm
    +
    168 
    +
    169 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    170 #include "type_mat4x2.inl"
    +
    171 #endif
    +
    Core features
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00172.html b/external/glm-0.9.9.8/doc/api/a00172.html new file mode 100644 index 0000000..8e39eba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00172.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat4x3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat4x3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00172_source.html b/external/glm-0.9.9.8/doc/api/a00172_source.html new file mode 100644 index 0000000..8b25de4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00172_source.html @@ -0,0 +1,272 @@ + + + + + + +0.9.9 API documentation: type_mat4x3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec3.hpp"
    +
    7 #include "type_vec4.hpp"
    +
    8 #include <limits>
    +
    9 #include <cstddef>
    +
    10 
    +
    11 namespace glm
    +
    12 {
    +
    13  template<typename T, qualifier Q>
    +
    14  struct mat<4, 3, T, Q>
    +
    15  {
    +
    16  typedef vec<3, T, Q> col_type;
    +
    17  typedef vec<4, T, Q> row_type;
    +
    18  typedef mat<4, 3, T, Q> type;
    +
    19  typedef mat<3, 4, T, Q> transpose_type;
    +
    20  typedef T value_type;
    +
    21 
    +
    22  private:
    +
    23  col_type value[4];
    +
    24 
    +
    25  public:
    +
    26  // -- Accesses --
    +
    27 
    +
    28  typedef length_t length_type;
    +
    29  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length() { return 4; }
    +
    30 
    +
    31  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    32  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    33 
    +
    34  // -- Constructors --
    +
    35 
    +
    36  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    37  template<qualifier P>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 3, T, P> const& m);
    +
    39 
    +
    40  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T const& x);
    +
    41  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    42  T const& x0, T const& y0, T const& z0,
    +
    43  T const& x1, T const& y1, T const& z1,
    +
    44  T const& x2, T const& y2, T const& z2,
    +
    45  T const& x3, T const& y3, T const& z3);
    +
    46  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    47  col_type const& v0,
    +
    48  col_type const& v1,
    +
    49  col_type const& v2,
    +
    50  col_type const& v3);
    +
    51 
    +
    52  // -- Conversions --
    +
    53 
    +
    54  template<
    +
    55  typename X1, typename Y1, typename Z1,
    +
    56  typename X2, typename Y2, typename Z2,
    +
    57  typename X3, typename Y3, typename Z3,
    +
    58  typename X4, typename Y4, typename Z4>
    +
    59  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    60  X1 const& x1, Y1 const& y1, Z1 const& z1,
    +
    61  X2 const& x2, Y2 const& y2, Z2 const& z2,
    +
    62  X3 const& x3, Y3 const& y3, Z3 const& z3,
    +
    63  X4 const& x4, Y4 const& y4, Z4 const& z4);
    +
    64 
    +
    65  template<typename V1, typename V2, typename V3, typename V4>
    +
    66  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    67  vec<3, V1, Q> const& v1,
    +
    68  vec<3, V2, Q> const& v2,
    +
    69  vec<3, V3, Q> const& v3,
    +
    70  vec<3, V4, Q> const& v4);
    +
    71 
    +
    72  // -- Matrix conversions --
    +
    73 
    +
    74  template<typename U, qualifier P>
    +
    75  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, U, P> const& m);
    +
    76 
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    79  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
    +
    80  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    81  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    82  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    83  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    84  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    85 
    +
    86  // -- Unary arithmetic operators --
    +
    87 
    +
    88  template<typename U>
    +
    89  GLM_FUNC_DECL mat<4, 3, T, Q> & operator=(mat<4, 3, U, Q> const& m);
    +
    90  template<typename U>
    +
    91  GLM_FUNC_DECL mat<4, 3, T, Q> & operator+=(U s);
    +
    92  template<typename U>
    +
    93  GLM_FUNC_DECL mat<4, 3, T, Q> & operator+=(mat<4, 3, U, Q> const& m);
    +
    94  template<typename U>
    +
    95  GLM_FUNC_DECL mat<4, 3, T, Q> & operator-=(U s);
    +
    96  template<typename U>
    +
    97  GLM_FUNC_DECL mat<4, 3, T, Q> & operator-=(mat<4, 3, U, Q> const& m);
    +
    98  template<typename U>
    +
    99  GLM_FUNC_DECL mat<4, 3, T, Q> & operator*=(U s);
    +
    100  template<typename U>
    +
    101  GLM_FUNC_DECL mat<4, 3, T, Q> & operator/=(U s);
    +
    102 
    +
    103  // -- Increment and decrement operators --
    +
    104 
    +
    105  GLM_FUNC_DECL mat<4, 3, T, Q>& operator++();
    +
    106  GLM_FUNC_DECL mat<4, 3, T, Q>& operator--();
    +
    107  GLM_FUNC_DECL mat<4, 3, T, Q> operator++(int);
    +
    108  GLM_FUNC_DECL mat<4, 3, T, Q> operator--(int);
    +
    109  };
    +
    110 
    +
    111  // -- Unary operators --
    +
    112 
    +
    113  template<typename T, qualifier Q>
    +
    114  GLM_FUNC_DECL mat<4, 3, T, Q> operator+(mat<4, 3, T, Q> const& m);
    +
    115 
    +
    116  template<typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL mat<4, 3, T, Q> operator-(mat<4, 3, T, Q> const& m);
    +
    118 
    +
    119  // -- Binary operators --
    +
    120 
    +
    121  template<typename T, qualifier Q>
    +
    122  GLM_FUNC_DECL mat<4, 3, T, Q> operator+(mat<4, 3, T, Q> const& m, T const& s);
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL mat<4, 3, T, Q> operator+(mat<4, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    126 
    +
    127  template<typename T, qualifier Q>
    +
    128  GLM_FUNC_DECL mat<4, 3, T, Q> operator-(mat<4, 3, T, Q> const& m, T const& s);
    +
    129 
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL mat<4, 3, T, Q> operator-(mat<4, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    132 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL mat<4, 3, T, Q> operator*(mat<4, 3, T, Q> const& m, T const& s);
    +
    135 
    +
    136  template<typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL mat<4, 3, T, Q> operator*(T const& s, mat<4, 3, T, Q> const& m);
    +
    138 
    +
    139  template<typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL typename mat<4, 3, T, Q>::col_type operator*(mat<4, 3, T, Q> const& m, typename mat<4, 3, T, Q>::row_type const& v);
    +
    141 
    +
    142  template<typename T, qualifier Q>
    +
    143  GLM_FUNC_DECL typename mat<4, 3, T, Q>::row_type operator*(typename mat<4, 3, T, Q>::col_type const& v, mat<4, 3, T, Q> const& m);
    +
    144 
    +
    145  template<typename T, qualifier Q>
    +
    146  GLM_FUNC_DECL mat<2, 3, T, Q> operator*(mat<4, 3, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    147 
    +
    148  template<typename T, qualifier Q>
    +
    149  GLM_FUNC_DECL mat<3, 3, T, Q> operator*(mat<4, 3, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    150 
    +
    151  template<typename T, qualifier Q>
    +
    152  GLM_FUNC_DECL mat<4, 3, T, Q> operator*(mat<4, 3, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    153 
    +
    154  template<typename T, qualifier Q>
    +
    155  GLM_FUNC_DECL mat<4, 3, T, Q> operator/(mat<4, 3, T, Q> const& m, T const& s);
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL mat<4, 3, T, Q> operator/(T const& s, mat<4, 3, T, Q> const& m);
    +
    159 
    +
    160  // -- Boolean operators --
    +
    161 
    +
    162  template<typename T, qualifier Q>
    +
    163  GLM_FUNC_DECL bool operator==(mat<4, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    164 
    +
    165  template<typename T, qualifier Q>
    +
    166  GLM_FUNC_DECL bool operator!=(mat<4, 3, T, Q> const& m1, mat<4, 3, T, Q> const& m2);
    +
    167 }//namespace glm
    +
    168 
    +
    169 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    170 #include "type_mat4x3.inl"
    +
    171 #endif //GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00173.html b/external/glm-0.9.9.8/doc/api/a00173.html new file mode 100644 index 0000000..3d050b3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00173.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_mat4x4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_mat4x4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00173_source.html b/external/glm-0.9.9.8/doc/api/a00173_source.html new file mode 100644 index 0000000..15c4a8c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00173_source.html @@ -0,0 +1,289 @@ + + + + + + +0.9.9 API documentation: type_mat4x4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_mat4x4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "type_vec4.hpp"
    +
    7 #include <limits>
    +
    8 #include <cstddef>
    +
    9 
    +
    10 namespace glm
    +
    11 {
    +
    12  template<typename T, qualifier Q>
    +
    13  struct mat<4, 4, T, Q>
    +
    14  {
    +
    15  typedef vec<4, T, Q> col_type;
    +
    16  typedef vec<4, T, Q> row_type;
    +
    17  typedef mat<4, 4, T, Q> type;
    +
    18  typedef mat<4, 4, T, Q> transpose_type;
    +
    19  typedef T value_type;
    +
    20 
    +
    21  private:
    +
    22  col_type value[4];
    +
    23 
    +
    24  public:
    +
    25  // -- Accesses --
    +
    26 
    +
    27  typedef length_t length_type;
    +
    28  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 4;}
    +
    29 
    +
    30  GLM_FUNC_DECL col_type & operator[](length_type i);
    +
    31  GLM_FUNC_DECL GLM_CONSTEXPR col_type const& operator[](length_type i) const;
    +
    32 
    +
    33  // -- Constructors --
    +
    34 
    +
    35  GLM_FUNC_DECL GLM_CONSTEXPR mat() GLM_DEFAULT;
    +
    36  template<qualifier P>
    +
    37  GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 4, T, P> const& m);
    +
    38 
    +
    39  GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T const& x);
    +
    40  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    41  T const& x0, T const& y0, T const& z0, T const& w0,
    +
    42  T const& x1, T const& y1, T const& z1, T const& w1,
    +
    43  T const& x2, T const& y2, T const& z2, T const& w2,
    +
    44  T const& x3, T const& y3, T const& z3, T const& w3);
    +
    45  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    46  col_type const& v0,
    +
    47  col_type const& v1,
    +
    48  col_type const& v2,
    +
    49  col_type const& v3);
    +
    50 
    +
    51  // -- Conversions --
    +
    52 
    +
    53  template<
    +
    54  typename X1, typename Y1, typename Z1, typename W1,
    +
    55  typename X2, typename Y2, typename Z2, typename W2,
    +
    56  typename X3, typename Y3, typename Z3, typename W3,
    +
    57  typename X4, typename Y4, typename Z4, typename W4>
    +
    58  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    59  X1 const& x1, Y1 const& y1, Z1 const& z1, W1 const& w1,
    +
    60  X2 const& x2, Y2 const& y2, Z2 const& z2, W2 const& w2,
    +
    61  X3 const& x3, Y3 const& y3, Z3 const& z3, W3 const& w3,
    +
    62  X4 const& x4, Y4 const& y4, Z4 const& z4, W4 const& w4);
    +
    63 
    +
    64  template<typename V1, typename V2, typename V3, typename V4>
    +
    65  GLM_FUNC_DECL GLM_CONSTEXPR mat(
    +
    66  vec<4, V1, Q> const& v1,
    +
    67  vec<4, V2, Q> const& v2,
    +
    68  vec<4, V3, Q> const& v3,
    +
    69  vec<4, V4, Q> const& v4);
    +
    70 
    +
    71  // -- Matrix conversions --
    +
    72 
    +
    73  template<typename U, qualifier P>
    +
    74  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, U, P> const& m);
    +
    75 
    +
    76  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
    +
    77  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
    +
    78  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
    +
    79  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
    +
    80  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
    +
    81  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
    +
    82  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
    +
    83  GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
    +
    84 
    +
    85  // -- Unary arithmetic operators --
    +
    86 
    +
    87  template<typename U>
    +
    88  GLM_FUNC_DECL mat<4, 4, T, Q> & operator=(mat<4, 4, U, Q> const& m);
    +
    89  template<typename U>
    +
    90  GLM_FUNC_DECL mat<4, 4, T, Q> & operator+=(U s);
    +
    91  template<typename U>
    +
    92  GLM_FUNC_DECL mat<4, 4, T, Q> & operator+=(mat<4, 4, U, Q> const& m);
    +
    93  template<typename U>
    +
    94  GLM_FUNC_DECL mat<4, 4, T, Q> & operator-=(U s);
    +
    95  template<typename U>
    +
    96  GLM_FUNC_DECL mat<4, 4, T, Q> & operator-=(mat<4, 4, U, Q> const& m);
    +
    97  template<typename U>
    +
    98  GLM_FUNC_DECL mat<4, 4, T, Q> & operator*=(U s);
    +
    99  template<typename U>
    +
    100  GLM_FUNC_DECL mat<4, 4, T, Q> & operator*=(mat<4, 4, U, Q> const& m);
    +
    101  template<typename U>
    +
    102  GLM_FUNC_DECL mat<4, 4, T, Q> & operator/=(U s);
    +
    103  template<typename U>
    +
    104  GLM_FUNC_DECL mat<4, 4, T, Q> & operator/=(mat<4, 4, U, Q> const& m);
    +
    105 
    +
    106  // -- Increment and decrement operators --
    +
    107 
    +
    108  GLM_FUNC_DECL mat<4, 4, T, Q> & operator++();
    +
    109  GLM_FUNC_DECL mat<4, 4, T, Q> & operator--();
    +
    110  GLM_FUNC_DECL mat<4, 4, T, Q> operator++(int);
    +
    111  GLM_FUNC_DECL mat<4, 4, T, Q> operator--(int);
    +
    112  };
    +
    113 
    +
    114  // -- Unary operators --
    +
    115 
    +
    116  template<typename T, qualifier Q>
    +
    117  GLM_FUNC_DECL mat<4, 4, T, Q> operator+(mat<4, 4, T, Q> const& m);
    +
    118 
    +
    119  template<typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL mat<4, 4, T, Q> operator-(mat<4, 4, T, Q> const& m);
    +
    121 
    +
    122  // -- Binary operators --
    +
    123 
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL mat<4, 4, T, Q> operator+(mat<4, 4, T, Q> const& m, T const& s);
    +
    126 
    +
    127  template<typename T, qualifier Q>
    +
    128  GLM_FUNC_DECL mat<4, 4, T, Q> operator+(T const& s, mat<4, 4, T, Q> const& m);
    +
    129 
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_FUNC_DECL mat<4, 4, T, Q> operator+(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    132 
    +
    133  template<typename T, qualifier Q>
    +
    134  GLM_FUNC_DECL mat<4, 4, T, Q> operator-(mat<4, 4, T, Q> const& m, T const& s);
    +
    135 
    +
    136  template<typename T, qualifier Q>
    +
    137  GLM_FUNC_DECL mat<4, 4, T, Q> operator-(T const& s, mat<4, 4, T, Q> const& m);
    +
    138 
    +
    139  template<typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL mat<4, 4, T, Q> operator-(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    141 
    +
    142  template<typename T, qualifier Q>
    +
    143  GLM_FUNC_DECL mat<4, 4, T, Q> operator*(mat<4, 4, T, Q> const& m, T const& s);
    +
    144 
    +
    145  template<typename T, qualifier Q>
    +
    146  GLM_FUNC_DECL mat<4, 4, T, Q> operator*(T const& s, mat<4, 4, T, Q> const& m);
    +
    147 
    +
    148  template<typename T, qualifier Q>
    +
    149  GLM_FUNC_DECL typename mat<4, 4, T, Q>::col_type operator*(mat<4, 4, T, Q> const& m, typename mat<4, 4, T, Q>::row_type const& v);
    +
    150 
    +
    151  template<typename T, qualifier Q>
    +
    152  GLM_FUNC_DECL typename mat<4, 4, T, Q>::row_type operator*(typename mat<4, 4, T, Q>::col_type const& v, mat<4, 4, T, Q> const& m);
    +
    153 
    +
    154  template<typename T, qualifier Q>
    +
    155  GLM_FUNC_DECL mat<2, 4, T, Q> operator*(mat<4, 4, T, Q> const& m1, mat<2, 4, T, Q> const& m2);
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_FUNC_DECL mat<3, 4, T, Q> operator*(mat<4, 4, T, Q> const& m1, mat<3, 4, T, Q> const& m2);
    +
    159 
    +
    160  template<typename T, qualifier Q>
    +
    161  GLM_FUNC_DECL mat<4, 4, T, Q> operator*(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    162 
    +
    163  template<typename T, qualifier Q>
    +
    164  GLM_FUNC_DECL mat<4, 4, T, Q> operator/(mat<4, 4, T, Q> const& m, T const& s);
    +
    165 
    +
    166  template<typename T, qualifier Q>
    +
    167  GLM_FUNC_DECL mat<4, 4, T, Q> operator/(T const& s, mat<4, 4, T, Q> const& m);
    +
    168 
    +
    169  template<typename T, qualifier Q>
    +
    170  GLM_FUNC_DECL typename mat<4, 4, T, Q>::col_type operator/(mat<4, 4, T, Q> const& m, typename mat<4, 4, T, Q>::row_type const& v);
    +
    171 
    +
    172  template<typename T, qualifier Q>
    +
    173  GLM_FUNC_DECL typename mat<4, 4, T, Q>::row_type operator/(typename mat<4, 4, T, Q>::col_type const& v, mat<4, 4, T, Q> const& m);
    +
    174 
    +
    175  template<typename T, qualifier Q>
    +
    176  GLM_FUNC_DECL mat<4, 4, T, Q> operator/(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    177 
    +
    178  // -- Boolean operators --
    +
    179 
    +
    180  template<typename T, qualifier Q>
    +
    181  GLM_FUNC_DECL bool operator==(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    182 
    +
    183  template<typename T, qualifier Q>
    +
    184  GLM_FUNC_DECL bool operator!=(mat<4, 4, T, Q> const& m1, mat<4, 4, T, Q> const& m2);
    +
    185 }//namespace glm
    +
    186 
    +
    187 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    188 #include "type_mat4x4.inl"
    +
    189 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Core features
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00174.html b/external/glm-0.9.9.8/doc/api/a00174.html new file mode 100644 index 0000000..e48ad11 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00174.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: type_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_precision.hpp File Reference
    +
    +
    + +

    GLM_GTC_type_precision +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTC_type_precision

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file type_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00174_source.html b/external/glm-0.9.9.8/doc/api/a00174_source.html new file mode 100644 index 0000000..4473ed8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00174_source.html @@ -0,0 +1,1682 @@ + + + + + + +0.9.9 API documentation: type_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../gtc/quaternion.hpp"
    +
    18 #include "../gtc/vec1.hpp"
    +
    19 #include "../ext/scalar_int_sized.hpp"
    +
    20 #include "../ext/scalar_uint_sized.hpp"
    +
    21 #include "../detail/type_vec2.hpp"
    +
    22 #include "../detail/type_vec3.hpp"
    +
    23 #include "../detail/type_vec4.hpp"
    +
    24 #include "../detail/type_mat2x2.hpp"
    +
    25 #include "../detail/type_mat2x3.hpp"
    +
    26 #include "../detail/type_mat2x4.hpp"
    +
    27 #include "../detail/type_mat3x2.hpp"
    +
    28 #include "../detail/type_mat3x3.hpp"
    +
    29 #include "../detail/type_mat3x4.hpp"
    +
    30 #include "../detail/type_mat4x2.hpp"
    +
    31 #include "../detail/type_mat4x3.hpp"
    +
    32 #include "../detail/type_mat4x4.hpp"
    +
    33 
    +
    34 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    35 # pragma message("GLM: GLM_GTC_type_precision extension included")
    +
    36 #endif
    +
    37 
    +
    38 namespace glm
    +
    39 {
    +
    41  // Signed int vector types
    +
    42 
    +
    45 
    +
    48  typedef detail::int8 lowp_int8;
    +
    49 
    +
    52  typedef detail::int16 lowp_int16;
    +
    53 
    +
    56  typedef detail::int32 lowp_int32;
    +
    57 
    +
    60  typedef detail::int64 lowp_int64;
    +
    61 
    +
    64  typedef detail::int8 lowp_int8_t;
    +
    65 
    +
    68  typedef detail::int16 lowp_int16_t;
    +
    69 
    +
    72  typedef detail::int32 lowp_int32_t;
    +
    73 
    + +
    77 
    +
    80  typedef detail::int8 lowp_i8;
    +
    81 
    +
    84  typedef detail::int16 lowp_i16;
    +
    85 
    +
    88  typedef detail::int32 lowp_i32;
    +
    89 
    +
    92  typedef detail::int64 lowp_i64;
    +
    93 
    +
    96  typedef detail::int8 mediump_int8;
    +
    97 
    +
    100  typedef detail::int16 mediump_int16;
    +
    101 
    +
    104  typedef detail::int32 mediump_int32;
    +
    105 
    + +
    109 
    +
    112  typedef detail::int8 mediump_int8_t;
    +
    113 
    +
    116  typedef detail::int16 mediump_int16_t;
    +
    117 
    +
    120  typedef detail::int32 mediump_int32_t;
    +
    121 
    + +
    125 
    +
    128  typedef detail::int8 mediump_i8;
    +
    129 
    +
    132  typedef detail::int16 mediump_i16;
    +
    133 
    +
    136  typedef detail::int32 mediump_i32;
    +
    137 
    +
    140  typedef detail::int64 mediump_i64;
    +
    141 
    +
    144  typedef detail::int8 highp_int8;
    +
    145 
    +
    148  typedef detail::int16 highp_int16;
    +
    149 
    +
    152  typedef detail::int32 highp_int32;
    +
    153 
    +
    156  typedef detail::int64 highp_int64;
    +
    157 
    +
    160  typedef detail::int8 highp_int8_t;
    +
    161 
    +
    164  typedef detail::int16 highp_int16_t;
    +
    165 
    +
    168  typedef detail::int32 highp_int32_t;
    +
    169 
    + +
    173 
    +
    176  typedef detail::int8 highp_i8;
    +
    177 
    +
    180  typedef detail::int16 highp_i16;
    +
    181 
    +
    184  typedef detail::int32 highp_i32;
    +
    185 
    +
    188  typedef detail::int64 highp_i64;
    +
    189 
    +
    190 
    +
    191 #if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    192  using std::int8_t;
    +
    193  using std::int16_t;
    +
    194  using std::int32_t;
    +
    195  using std::int64_t;
    +
    196 #else
    +
    197  typedef detail::int8 int8_t;
    +
    200 
    +
    203  typedef detail::int16 int16_t;
    +
    204 
    +
    207  typedef detail::int32 int32_t;
    +
    208 
    +
    211  typedef detail::int64 int64_t;
    +
    212 #endif
    +
    213 
    +
    216  typedef detail::int8 i8;
    +
    217 
    +
    220  typedef detail::int16 i16;
    +
    221 
    +
    224  typedef detail::int32 i32;
    +
    225 
    +
    228  typedef detail::int64 i64;
    +
    229 
    +
    230 
    +
    231 
    +
    234  typedef vec<1, i8, lowp> lowp_i8vec1;
    +
    235 
    +
    238  typedef vec<2, i8, lowp> lowp_i8vec2;
    +
    239 
    +
    242  typedef vec<3, i8, lowp> lowp_i8vec3;
    +
    243 
    +
    246  typedef vec<4, i8, lowp> lowp_i8vec4;
    +
    247 
    +
    248 
    +
    251  typedef vec<1, i8, mediump> mediump_i8vec1;
    +
    252 
    +
    255  typedef vec<2, i8, mediump> mediump_i8vec2;
    +
    256 
    +
    259  typedef vec<3, i8, mediump> mediump_i8vec3;
    +
    260 
    +
    263  typedef vec<4, i8, mediump> mediump_i8vec4;
    +
    264 
    +
    265 
    +
    268  typedef vec<1, i8, highp> highp_i8vec1;
    +
    269 
    +
    272  typedef vec<2, i8, highp> highp_i8vec2;
    +
    273 
    +
    276  typedef vec<3, i8, highp> highp_i8vec3;
    +
    277 
    +
    280  typedef vec<4, i8, highp> highp_i8vec4;
    +
    281 
    +
    282 
    +
    283 
    +
    286  typedef vec<1, i8, defaultp> i8vec1;
    +
    287 
    +
    290  typedef vec<2, i8, defaultp> i8vec2;
    +
    291 
    +
    294  typedef vec<3, i8, defaultp> i8vec3;
    +
    295 
    +
    298  typedef vec<4, i8, defaultp> i8vec4;
    +
    299 
    +
    300 
    +
    301 
    +
    302 
    +
    303 
    +
    306  typedef vec<1, i16, lowp> lowp_i16vec1;
    +
    307 
    +
    310  typedef vec<2, i16, lowp> lowp_i16vec2;
    +
    311 
    +
    314  typedef vec<3, i16, lowp> lowp_i16vec3;
    +
    315 
    +
    318  typedef vec<4, i16, lowp> lowp_i16vec4;
    +
    319 
    +
    320 
    +
    323  typedef vec<1, i16, mediump> mediump_i16vec1;
    +
    324 
    +
    327  typedef vec<2, i16, mediump> mediump_i16vec2;
    +
    328 
    +
    331  typedef vec<3, i16, mediump> mediump_i16vec3;
    +
    332 
    +
    335  typedef vec<4, i16, mediump> mediump_i16vec4;
    +
    336 
    +
    337 
    +
    340  typedef vec<1, i16, highp> highp_i16vec1;
    +
    341 
    +
    344  typedef vec<2, i16, highp> highp_i16vec2;
    +
    345 
    +
    348  typedef vec<3, i16, highp> highp_i16vec3;
    +
    349 
    +
    352  typedef vec<4, i16, highp> highp_i16vec4;
    +
    353 
    +
    354 
    +
    355 
    +
    356 
    +
    359  typedef vec<1, i16, defaultp> i16vec1;
    +
    360 
    +
    363  typedef vec<2, i16, defaultp> i16vec2;
    +
    364 
    +
    367  typedef vec<3, i16, defaultp> i16vec3;
    +
    368 
    +
    371  typedef vec<4, i16, defaultp> i16vec4;
    +
    372 
    +
    373 
    +
    374 
    +
    377  typedef vec<1, i32, lowp> lowp_i32vec1;
    +
    378 
    +
    381  typedef vec<2, i32, lowp> lowp_i32vec2;
    +
    382 
    +
    385  typedef vec<3, i32, lowp> lowp_i32vec3;
    +
    386 
    +
    389  typedef vec<4, i32, lowp> lowp_i32vec4;
    +
    390 
    +
    391 
    +
    394  typedef vec<1, i32, mediump> mediump_i32vec1;
    +
    395 
    +
    398  typedef vec<2, i32, mediump> mediump_i32vec2;
    +
    399 
    +
    402  typedef vec<3, i32, mediump> mediump_i32vec3;
    +
    403 
    +
    406  typedef vec<4, i32, mediump> mediump_i32vec4;
    +
    407 
    +
    408 
    +
    411  typedef vec<1, i32, highp> highp_i32vec1;
    +
    412 
    +
    415  typedef vec<2, i32, highp> highp_i32vec2;
    +
    416 
    +
    419  typedef vec<3, i32, highp> highp_i32vec3;
    +
    420 
    +
    423  typedef vec<4, i32, highp> highp_i32vec4;
    +
    424 
    +
    425 
    +
    428  typedef vec<1, i32, defaultp> i32vec1;
    +
    429 
    +
    432  typedef vec<2, i32, defaultp> i32vec2;
    +
    433 
    +
    436  typedef vec<3, i32, defaultp> i32vec3;
    +
    437 
    +
    440  typedef vec<4, i32, defaultp> i32vec4;
    +
    441 
    +
    442 
    +
    443 
    +
    444 
    +
    447  typedef vec<1, i64, lowp> lowp_i64vec1;
    +
    448 
    +
    451  typedef vec<2, i64, lowp> lowp_i64vec2;
    +
    452 
    +
    455  typedef vec<3, i64, lowp> lowp_i64vec3;
    +
    456 
    +
    459  typedef vec<4, i64, lowp> lowp_i64vec4;
    +
    460 
    +
    461 
    +
    464  typedef vec<1, i64, mediump> mediump_i64vec1;
    +
    465 
    +
    468  typedef vec<2, i64, mediump> mediump_i64vec2;
    +
    469 
    +
    472  typedef vec<3, i64, mediump> mediump_i64vec3;
    +
    473 
    +
    476  typedef vec<4, i64, mediump> mediump_i64vec4;
    +
    477 
    +
    478 
    +
    481  typedef vec<1, i64, highp> highp_i64vec1;
    +
    482 
    +
    485  typedef vec<2, i64, highp> highp_i64vec2;
    +
    486 
    +
    489  typedef vec<3, i64, highp> highp_i64vec3;
    +
    490 
    +
    493  typedef vec<4, i64, highp> highp_i64vec4;
    +
    494 
    +
    495 
    +
    498  typedef vec<1, i64, defaultp> i64vec1;
    +
    499 
    +
    502  typedef vec<2, i64, defaultp> i64vec2;
    +
    503 
    +
    506  typedef vec<3, i64, defaultp> i64vec3;
    +
    507 
    +
    510  typedef vec<4, i64, defaultp> i64vec4;
    +
    511 
    +
    512 
    +
    514  // Unsigned int vector types
    +
    515 
    +
    518  typedef detail::uint8 lowp_uint8;
    +
    519 
    +
    522  typedef detail::uint16 lowp_uint16;
    +
    523 
    +
    526  typedef detail::uint32 lowp_uint32;
    +
    527 
    +
    530  typedef detail::uint64 lowp_uint64;
    +
    531 
    +
    534  typedef detail::uint8 lowp_uint8_t;
    +
    535 
    +
    538  typedef detail::uint16 lowp_uint16_t;
    +
    539 
    +
    542  typedef detail::uint32 lowp_uint32_t;
    +
    543 
    + +
    547 
    +
    550  typedef detail::uint8 lowp_u8;
    +
    551 
    +
    554  typedef detail::uint16 lowp_u16;
    +
    555 
    +
    558  typedef detail::uint32 lowp_u32;
    +
    559 
    +
    562  typedef detail::uint64 lowp_u64;
    +
    563 
    +
    566  typedef detail::uint8 mediump_uint8;
    +
    567 
    +
    570  typedef detail::uint16 mediump_uint16;
    +
    571 
    +
    574  typedef detail::uint32 mediump_uint32;
    +
    575 
    + +
    579 
    +
    582  typedef detail::uint8 mediump_uint8_t;
    +
    583 
    +
    586  typedef detail::uint16 mediump_uint16_t;
    +
    587 
    +
    590  typedef detail::uint32 mediump_uint32_t;
    +
    591 
    + +
    595 
    +
    598  typedef detail::uint8 mediump_u8;
    +
    599 
    +
    602  typedef detail::uint16 mediump_u16;
    +
    603 
    +
    606  typedef detail::uint32 mediump_u32;
    +
    607 
    +
    610  typedef detail::uint64 mediump_u64;
    +
    611 
    +
    614  typedef detail::uint8 highp_uint8;
    +
    615 
    +
    618  typedef detail::uint16 highp_uint16;
    +
    619 
    +
    622  typedef detail::uint32 highp_uint32;
    +
    623 
    + +
    627 
    +
    630  typedef detail::uint8 highp_uint8_t;
    +
    631 
    +
    634  typedef detail::uint16 highp_uint16_t;
    +
    635 
    +
    638  typedef detail::uint32 highp_uint32_t;
    +
    639 
    + +
    643 
    +
    646  typedef detail::uint8 highp_u8;
    +
    647 
    +
    650  typedef detail::uint16 highp_u16;
    +
    651 
    +
    654  typedef detail::uint32 highp_u32;
    +
    655 
    +
    658  typedef detail::uint64 highp_u64;
    +
    659 
    +
    660 #if GLM_HAS_EXTENDED_INTEGER_TYPE
    +
    661  using std::uint8_t;
    +
    662  using std::uint16_t;
    +
    663  using std::uint32_t;
    +
    664  using std::uint64_t;
    +
    665 #else
    +
    666  typedef detail::uint8 uint8_t;
    +
    669 
    +
    672  typedef detail::uint16 uint16_t;
    +
    673 
    +
    676  typedef detail::uint32 uint32_t;
    +
    677 
    +
    680  typedef detail::uint64 uint64_t;
    +
    681 #endif
    +
    682 
    +
    685  typedef detail::uint8 u8;
    +
    686 
    +
    689  typedef detail::uint16 u16;
    +
    690 
    +
    693  typedef detail::uint32 u32;
    +
    694 
    +
    697  typedef detail::uint64 u64;
    +
    698 
    +
    699 
    +
    700 
    +
    701 
    +
    702 
    +
    704  // Float vector types
    +
    705 
    +
    708  typedef float float32;
    +
    709 
    +
    712  typedef double float64;
    +
    713 
    +
    716  typedef float32 lowp_float32;
    +
    717 
    +
    720  typedef float64 lowp_float64;
    +
    721 
    +
    724  typedef float32 lowp_float32_t;
    +
    725 
    +
    728  typedef float64 lowp_float64_t;
    +
    729 
    +
    732  typedef float32 lowp_f32;
    +
    733 
    +
    736  typedef float64 lowp_f64;
    +
    737 
    +
    740  typedef float32 lowp_float32;
    +
    741 
    +
    744  typedef float64 lowp_float64;
    +
    745 
    +
    748  typedef float32 lowp_float32_t;
    +
    749 
    +
    752  typedef float64 lowp_float64_t;
    +
    753 
    +
    756  typedef float32 lowp_f32;
    +
    757 
    +
    760  typedef float64 lowp_f64;
    +
    761 
    +
    762 
    +
    765  typedef float32 lowp_float32;
    +
    766 
    +
    769  typedef float64 lowp_float64;
    +
    770 
    +
    773  typedef float32 lowp_float32_t;
    +
    774 
    +
    777  typedef float64 lowp_float64_t;
    +
    778 
    +
    781  typedef float32 lowp_f32;
    +
    782 
    +
    785  typedef float64 lowp_f64;
    +
    786 
    +
    787 
    +
    790  typedef float32 mediump_float32;
    +
    791 
    +
    794  typedef float64 mediump_float64;
    +
    795 
    +
    798  typedef float32 mediump_float32_t;
    +
    799 
    +
    802  typedef float64 mediump_float64_t;
    +
    803 
    +
    806  typedef float32 mediump_f32;
    +
    807 
    +
    810  typedef float64 mediump_f64;
    +
    811 
    +
    812 
    +
    815  typedef float32 highp_float32;
    +
    816 
    +
    819  typedef float64 highp_float64;
    +
    820 
    +
    823  typedef float32 highp_float32_t;
    +
    824 
    +
    827  typedef float64 highp_float64_t;
    +
    828 
    +
    831  typedef float32 highp_f32;
    +
    832 
    +
    835  typedef float64 highp_f64;
    +
    836 
    +
    837 
    +
    838 #if(defined(GLM_PRECISION_LOWP_FLOAT))
    +
    839  typedef lowp_float32_t float32_t;
    +
    842 
    +
    845  typedef lowp_float64_t float64_t;
    +
    846 
    +
    849  typedef lowp_f32 f32;
    +
    850 
    +
    853  typedef lowp_f64 f64;
    +
    854 
    +
    855 #elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
    +
    856  typedef mediump_float32 float32_t;
    +
    859 
    +
    862  typedef mediump_float64 float64_t;
    +
    863 
    +
    866  typedef mediump_float32 f32;
    +
    867 
    +
    870  typedef mediump_float64 f64;
    +
    871 
    +
    872 #else//(defined(GLM_PRECISION_HIGHP_FLOAT))
    +
    873 
    +
    876  typedef highp_float32_t float32_t;
    +
    877 
    +
    880  typedef highp_float64_t float64_t;
    +
    881 
    +
    884  typedef highp_float32_t f32;
    +
    885 
    +
    888  typedef highp_float64_t f64;
    +
    889 #endif
    +
    890 
    +
    891 
    +
    894  typedef vec<1, float, lowp> lowp_fvec1;
    +
    895 
    +
    898  typedef vec<2, float, lowp> lowp_fvec2;
    +
    899 
    +
    902  typedef vec<3, float, lowp> lowp_fvec3;
    +
    903 
    +
    906  typedef vec<4, float, lowp> lowp_fvec4;
    +
    907 
    +
    908 
    +
    911  typedef vec<1, float, mediump> mediump_fvec1;
    +
    912 
    +
    915  typedef vec<2, float, mediump> mediump_fvec2;
    +
    916 
    +
    919  typedef vec<3, float, mediump> mediump_fvec3;
    +
    920 
    +
    923  typedef vec<4, float, mediump> mediump_fvec4;
    +
    924 
    +
    925 
    +
    928  typedef vec<1, float, highp> highp_fvec1;
    +
    929 
    +
    932  typedef vec<2, float, highp> highp_fvec2;
    +
    933 
    +
    936  typedef vec<3, float, highp> highp_fvec3;
    +
    937 
    +
    940  typedef vec<4, float, highp> highp_fvec4;
    +
    941 
    +
    942 
    +
    945  typedef vec<1, f32, lowp> lowp_f32vec1;
    +
    946 
    +
    949  typedef vec<2, f32, lowp> lowp_f32vec2;
    +
    950 
    +
    953  typedef vec<3, f32, lowp> lowp_f32vec3;
    +
    954 
    +
    957  typedef vec<4, f32, lowp> lowp_f32vec4;
    +
    958 
    +
    961  typedef vec<1, f32, mediump> mediump_f32vec1;
    +
    962 
    +
    965  typedef vec<2, f32, mediump> mediump_f32vec2;
    +
    966 
    +
    969  typedef vec<3, f32, mediump> mediump_f32vec3;
    +
    970 
    +
    973  typedef vec<4, f32, mediump> mediump_f32vec4;
    +
    974 
    +
    977  typedef vec<1, f32, highp> highp_f32vec1;
    +
    978 
    +
    981  typedef vec<2, f32, highp> highp_f32vec2;
    +
    982 
    +
    985  typedef vec<3, f32, highp> highp_f32vec3;
    +
    986 
    +
    989  typedef vec<4, f32, highp> highp_f32vec4;
    +
    990 
    +
    991 
    +
    994  typedef vec<1, f64, lowp> lowp_f64vec1;
    +
    995 
    +
    998  typedef vec<2, f64, lowp> lowp_f64vec2;
    +
    999 
    +
    1002  typedef vec<3, f64, lowp> lowp_f64vec3;
    +
    1003 
    +
    1006  typedef vec<4, f64, lowp> lowp_f64vec4;
    +
    1007 
    +
    1010  typedef vec<1, f64, mediump> mediump_f64vec1;
    +
    1011 
    +
    1014  typedef vec<2, f64, mediump> mediump_f64vec2;
    +
    1015 
    +
    1018  typedef vec<3, f64, mediump> mediump_f64vec3;
    +
    1019 
    +
    1022  typedef vec<4, f64, mediump> mediump_f64vec4;
    +
    1023 
    +
    1026  typedef vec<1, f64, highp> highp_f64vec1;
    +
    1027 
    +
    1030  typedef vec<2, f64, highp> highp_f64vec2;
    +
    1031 
    +
    1034  typedef vec<3, f64, highp> highp_f64vec3;
    +
    1035 
    +
    1038  typedef vec<4, f64, highp> highp_f64vec4;
    +
    1039 
    +
    1040 
    +
    1041 
    +
    1043  // Float matrix types
    +
    1044 
    +
    1047  //typedef lowp_f32 lowp_fmat1x1;
    +
    1048 
    +
    1051  typedef mat<2, 2, f32, lowp> lowp_fmat2x2;
    +
    1052 
    +
    1055  typedef mat<2, 3, f32, lowp> lowp_fmat2x3;
    +
    1056 
    +
    1059  typedef mat<2, 4, f32, lowp> lowp_fmat2x4;
    +
    1060 
    +
    1063  typedef mat<3, 2, f32, lowp> lowp_fmat3x2;
    +
    1064 
    +
    1067  typedef mat<3, 3, f32, lowp> lowp_fmat3x3;
    +
    1068 
    +
    1071  typedef mat<3, 4, f32, lowp> lowp_fmat3x4;
    +
    1072 
    +
    1075  typedef mat<4, 2, f32, lowp> lowp_fmat4x2;
    +
    1076 
    +
    1079  typedef mat<4, 3, f32, lowp> lowp_fmat4x3;
    +
    1080 
    +
    1083  typedef mat<4, 4, f32, lowp> lowp_fmat4x4;
    +
    1084 
    +
    1087  //typedef lowp_fmat1x1 lowp_fmat1;
    +
    1088 
    +
    1091  typedef lowp_fmat2x2 lowp_fmat2;
    +
    1092 
    +
    1095  typedef lowp_fmat3x3 lowp_fmat3;
    +
    1096 
    +
    1099  typedef lowp_fmat4x4 lowp_fmat4;
    +
    1100 
    +
    1101 
    +
    1104  //typedef mediump_f32 mediump_fmat1x1;
    +
    1105 
    +
    1108  typedef mat<2, 2, f32, mediump> mediump_fmat2x2;
    +
    1109 
    +
    1112  typedef mat<2, 3, f32, mediump> mediump_fmat2x3;
    +
    1113 
    +
    1116  typedef mat<2, 4, f32, mediump> mediump_fmat2x4;
    +
    1117 
    +
    1120  typedef mat<3, 2, f32, mediump> mediump_fmat3x2;
    +
    1121 
    +
    1124  typedef mat<3, 3, f32, mediump> mediump_fmat3x3;
    +
    1125 
    +
    1128  typedef mat<3, 4, f32, mediump> mediump_fmat3x4;
    +
    1129 
    +
    1132  typedef mat<4, 2, f32, mediump> mediump_fmat4x2;
    +
    1133 
    +
    1136  typedef mat<4, 3, f32, mediump> mediump_fmat4x3;
    +
    1137 
    +
    1140  typedef mat<4, 4, f32, mediump> mediump_fmat4x4;
    +
    1141 
    +
    1144  //typedef mediump_fmat1x1 mediump_fmat1;
    +
    1145 
    +
    1148  typedef mediump_fmat2x2 mediump_fmat2;
    +
    1149 
    +
    1152  typedef mediump_fmat3x3 mediump_fmat3;
    +
    1153 
    +
    1156  typedef mediump_fmat4x4 mediump_fmat4;
    +
    1157 
    +
    1158 
    +
    1161  //typedef highp_f32 highp_fmat1x1;
    +
    1162 
    +
    1165  typedef mat<2, 2, f32, highp> highp_fmat2x2;
    +
    1166 
    +
    1169  typedef mat<2, 3, f32, highp> highp_fmat2x3;
    +
    1170 
    +
    1173  typedef mat<2, 4, f32, highp> highp_fmat2x4;
    +
    1174 
    +
    1177  typedef mat<3, 2, f32, highp> highp_fmat3x2;
    +
    1178 
    +
    1181  typedef mat<3, 3, f32, highp> highp_fmat3x3;
    +
    1182 
    +
    1185  typedef mat<3, 4, f32, highp> highp_fmat3x4;
    +
    1186 
    +
    1189  typedef mat<4, 2, f32, highp> highp_fmat4x2;
    +
    1190 
    +
    1193  typedef mat<4, 3, f32, highp> highp_fmat4x3;
    +
    1194 
    +
    1197  typedef mat<4, 4, f32, highp> highp_fmat4x4;
    +
    1198 
    +
    1201  //typedef highp_fmat1x1 highp_fmat1;
    +
    1202 
    +
    1205  typedef highp_fmat2x2 highp_fmat2;
    +
    1206 
    +
    1209  typedef highp_fmat3x3 highp_fmat3;
    +
    1210 
    +
    1213  typedef highp_fmat4x4 highp_fmat4;
    +
    1214 
    +
    1215 
    +
    1218  //typedef f32 lowp_f32mat1x1;
    +
    1219 
    +
    1222  typedef mat<2, 2, f32, lowp> lowp_f32mat2x2;
    +
    1223 
    +
    1226  typedef mat<2, 3, f32, lowp> lowp_f32mat2x3;
    +
    1227 
    +
    1230  typedef mat<2, 4, f32, lowp> lowp_f32mat2x4;
    +
    1231 
    +
    1234  typedef mat<3, 2, f32, lowp> lowp_f32mat3x2;
    +
    1235 
    +
    1238  typedef mat<3, 3, f32, lowp> lowp_f32mat3x3;
    +
    1239 
    +
    1242  typedef mat<3, 4, f32, lowp> lowp_f32mat3x4;
    +
    1243 
    +
    1246  typedef mat<4, 2, f32, lowp> lowp_f32mat4x2;
    +
    1247 
    +
    1250  typedef mat<4, 3, f32, lowp> lowp_f32mat4x3;
    +
    1251 
    +
    1254  typedef mat<4, 4, f32, lowp> lowp_f32mat4x4;
    +
    1255 
    +
    1258  //typedef detail::tmat1x1<f32, lowp> lowp_f32mat1;
    +
    1259 
    +
    1262  typedef lowp_f32mat2x2 lowp_f32mat2;
    +
    1263 
    +
    1266  typedef lowp_f32mat3x3 lowp_f32mat3;
    +
    1267 
    +
    1270  typedef lowp_f32mat4x4 lowp_f32mat4;
    +
    1271 
    +
    1272 
    +
    1275  //typedef f32 mediump_f32mat1x1;
    +
    1276 
    +
    1279  typedef mat<2, 2, f32, mediump> mediump_f32mat2x2;
    +
    1280 
    +
    1283  typedef mat<2, 3, f32, mediump> mediump_f32mat2x3;
    +
    1284 
    +
    1287  typedef mat<2, 4, f32, mediump> mediump_f32mat2x4;
    +
    1288 
    +
    1291  typedef mat<3, 2, f32, mediump> mediump_f32mat3x2;
    +
    1292 
    +
    1295  typedef mat<3, 3, f32, mediump> mediump_f32mat3x3;
    +
    1296 
    +
    1299  typedef mat<3, 4, f32, mediump> mediump_f32mat3x4;
    +
    1300 
    +
    1303  typedef mat<4, 2, f32, mediump> mediump_f32mat4x2;
    +
    1304 
    +
    1307  typedef mat<4, 3, f32, mediump> mediump_f32mat4x3;
    +
    1308 
    +
    1311  typedef mat<4, 4, f32, mediump> mediump_f32mat4x4;
    +
    1312 
    +
    1315  //typedef detail::tmat1x1<f32, mediump> f32mat1;
    +
    1316 
    +
    1319  typedef mediump_f32mat2x2 mediump_f32mat2;
    +
    1320 
    +
    1323  typedef mediump_f32mat3x3 mediump_f32mat3;
    +
    1324 
    +
    1327  typedef mediump_f32mat4x4 mediump_f32mat4;
    +
    1328 
    +
    1329 
    +
    1332  //typedef f32 highp_f32mat1x1;
    +
    1333 
    +
    1336  typedef mat<2, 2, f32, highp> highp_f32mat2x2;
    +
    1337 
    +
    1340  typedef mat<2, 3, f32, highp> highp_f32mat2x3;
    +
    1341 
    +
    1344  typedef mat<2, 4, f32, highp> highp_f32mat2x4;
    +
    1345 
    +
    1348  typedef mat<3, 2, f32, highp> highp_f32mat3x2;
    +
    1349 
    +
    1352  typedef mat<3, 3, f32, highp> highp_f32mat3x3;
    +
    1353 
    +
    1356  typedef mat<3, 4, f32, highp> highp_f32mat3x4;
    +
    1357 
    +
    1360  typedef mat<4, 2, f32, highp> highp_f32mat4x2;
    +
    1361 
    +
    1364  typedef mat<4, 3, f32, highp> highp_f32mat4x3;
    +
    1365 
    +
    1368  typedef mat<4, 4, f32, highp> highp_f32mat4x4;
    +
    1369 
    +
    1372  //typedef detail::tmat1x1<f32, highp> f32mat1;
    +
    1373 
    +
    1376  typedef highp_f32mat2x2 highp_f32mat2;
    +
    1377 
    +
    1380  typedef highp_f32mat3x3 highp_f32mat3;
    +
    1381 
    +
    1384  typedef highp_f32mat4x4 highp_f32mat4;
    +
    1385 
    +
    1386 
    +
    1389  //typedef f64 lowp_f64mat1x1;
    +
    1390 
    +
    1393  typedef mat<2, 2, f64, lowp> lowp_f64mat2x2;
    +
    1394 
    +
    1397  typedef mat<2, 3, f64, lowp> lowp_f64mat2x3;
    +
    1398 
    +
    1401  typedef mat<2, 4, f64, lowp> lowp_f64mat2x4;
    +
    1402 
    +
    1405  typedef mat<3, 2, f64, lowp> lowp_f64mat3x2;
    +
    1406 
    +
    1409  typedef mat<3, 3, f64, lowp> lowp_f64mat3x3;
    +
    1410 
    +
    1413  typedef mat<3, 4, f64, lowp> lowp_f64mat3x4;
    +
    1414 
    +
    1417  typedef mat<4, 2, f64, lowp> lowp_f64mat4x2;
    +
    1418 
    +
    1421  typedef mat<4, 3, f64, lowp> lowp_f64mat4x3;
    +
    1422 
    +
    1425  typedef mat<4, 4, f64, lowp> lowp_f64mat4x4;
    +
    1426 
    +
    1429  //typedef lowp_f64mat1x1 lowp_f64mat1;
    +
    1430 
    +
    1433  typedef lowp_f64mat2x2 lowp_f64mat2;
    +
    1434 
    +
    1437  typedef lowp_f64mat3x3 lowp_f64mat3;
    +
    1438 
    +
    1441  typedef lowp_f64mat4x4 lowp_f64mat4;
    +
    1442 
    +
    1443 
    +
    1446  //typedef f64 Highp_f64mat1x1;
    +
    1447 
    +
    1450  typedef mat<2, 2, f64, mediump> mediump_f64mat2x2;
    +
    1451 
    +
    1454  typedef mat<2, 3, f64, mediump> mediump_f64mat2x3;
    +
    1455 
    +
    1458  typedef mat<2, 4, f64, mediump> mediump_f64mat2x4;
    +
    1459 
    +
    1462  typedef mat<3, 2, f64, mediump> mediump_f64mat3x2;
    +
    1463 
    +
    1466  typedef mat<3, 3, f64, mediump> mediump_f64mat3x3;
    +
    1467 
    +
    1470  typedef mat<3, 4, f64, mediump> mediump_f64mat3x4;
    +
    1471 
    +
    1474  typedef mat<4, 2, f64, mediump> mediump_f64mat4x2;
    +
    1475 
    +
    1478  typedef mat<4, 3, f64, mediump> mediump_f64mat4x3;
    +
    1479 
    +
    1482  typedef mat<4, 4, f64, mediump> mediump_f64mat4x4;
    +
    1483 
    +
    1486  //typedef mediump_f64mat1x1 mediump_f64mat1;
    +
    1487 
    +
    1490  typedef mediump_f64mat2x2 mediump_f64mat2;
    +
    1491 
    +
    1494  typedef mediump_f64mat3x3 mediump_f64mat3;
    +
    1495 
    +
    1498  typedef mediump_f64mat4x4 mediump_f64mat4;
    +
    1499 
    +
    1502  //typedef f64 highp_f64mat1x1;
    +
    1503 
    +
    1506  typedef mat<2, 2, f64, highp> highp_f64mat2x2;
    +
    1507 
    +
    1510  typedef mat<2, 3, f64, highp> highp_f64mat2x3;
    +
    1511 
    +
    1514  typedef mat<2, 4, f64, highp> highp_f64mat2x4;
    +
    1515 
    +
    1518  typedef mat<3, 2, f64, highp> highp_f64mat3x2;
    +
    1519 
    +
    1522  typedef mat<3, 3, f64, highp> highp_f64mat3x3;
    +
    1523 
    +
    1526  typedef mat<3, 4, f64, highp> highp_f64mat3x4;
    +
    1527 
    +
    1530  typedef mat<4, 2, f64, highp> highp_f64mat4x2;
    +
    1531 
    +
    1534  typedef mat<4, 3, f64, highp> highp_f64mat4x3;
    +
    1535 
    +
    1538  typedef mat<4, 4, f64, highp> highp_f64mat4x4;
    +
    1539 
    +
    1542  //typedef highp_f64mat1x1 highp_f64mat1;
    +
    1543 
    +
    1546  typedef highp_f64mat2x2 highp_f64mat2;
    +
    1547 
    +
    1550  typedef highp_f64mat3x3 highp_f64mat3;
    +
    1551 
    +
    1554  typedef highp_f64mat4x4 highp_f64mat4;
    +
    1555 
    +
    1556 
    +
    1557 
    +
    1558 
    +
    1561  typedef vec<1, u8, lowp> lowp_u8vec1;
    +
    1562 
    +
    1565  typedef vec<2, u8, lowp> lowp_u8vec2;
    +
    1566 
    +
    1569  typedef vec<3, u8, lowp> lowp_u8vec3;
    +
    1570 
    +
    1573  typedef vec<4, u8, lowp> lowp_u8vec4;
    +
    1574 
    +
    1575 
    +
    1578  typedef vec<1, u8, mediump> mediump_u8vec1;
    +
    1579 
    +
    1582  typedef vec<2, u8, mediump> mediump_u8vec2;
    +
    1583 
    +
    1586  typedef vec<3, u8, mediump> mediump_u8vec3;
    +
    1587 
    +
    1590  typedef vec<4, u8, mediump> mediump_u8vec4;
    +
    1591 
    +
    1592 
    +
    1595  typedef vec<1, u8, highp> highp_u8vec1;
    +
    1596 
    +
    1599  typedef vec<2, u8, highp> highp_u8vec2;
    +
    1600 
    +
    1603  typedef vec<3, u8, highp> highp_u8vec3;
    +
    1604 
    +
    1607  typedef vec<4, u8, highp> highp_u8vec4;
    +
    1608 
    +
    1609 
    +
    1610 
    +
    1613  typedef vec<1, u8, defaultp> u8vec1;
    +
    1614 
    +
    1617  typedef vec<2, u8, defaultp> u8vec2;
    +
    1618 
    +
    1621  typedef vec<3, u8, defaultp> u8vec3;
    +
    1622 
    +
    1625  typedef vec<4, u8, defaultp> u8vec4;
    +
    1626 
    +
    1627 
    +
    1628 
    +
    1629 
    +
    1632  typedef vec<1, u16, lowp> lowp_u16vec1;
    +
    1633 
    +
    1636  typedef vec<2, u16, lowp> lowp_u16vec2;
    +
    1637 
    +
    1640  typedef vec<3, u16, lowp> lowp_u16vec3;
    +
    1641 
    +
    1644  typedef vec<4, u16, lowp> lowp_u16vec4;
    +
    1645 
    +
    1646 
    +
    1649  typedef vec<1, u16, mediump> mediump_u16vec1;
    +
    1650 
    +
    1653  typedef vec<2, u16, mediump> mediump_u16vec2;
    +
    1654 
    +
    1657  typedef vec<3, u16, mediump> mediump_u16vec3;
    +
    1658 
    +
    1661  typedef vec<4, u16, mediump> mediump_u16vec4;
    +
    1662 
    +
    1663 
    +
    1666  typedef vec<1, u16, highp> highp_u16vec1;
    +
    1667 
    +
    1670  typedef vec<2, u16, highp> highp_u16vec2;
    +
    1671 
    +
    1674  typedef vec<3, u16, highp> highp_u16vec3;
    +
    1675 
    +
    1678  typedef vec<4, u16, highp> highp_u16vec4;
    +
    1679 
    +
    1680 
    +
    1681 
    +
    1682 
    +
    1685  typedef vec<1, u16, defaultp> u16vec1;
    +
    1686 
    +
    1689  typedef vec<2, u16, defaultp> u16vec2;
    +
    1690 
    +
    1693  typedef vec<3, u16, defaultp> u16vec3;
    +
    1694 
    +
    1697  typedef vec<4, u16, defaultp> u16vec4;
    +
    1698 
    +
    1699 
    +
    1700 
    +
    1703  typedef vec<1, u32, lowp> lowp_u32vec1;
    +
    1704 
    +
    1707  typedef vec<2, u32, lowp> lowp_u32vec2;
    +
    1708 
    +
    1711  typedef vec<3, u32, lowp> lowp_u32vec3;
    +
    1712 
    +
    1715  typedef vec<4, u32, lowp> lowp_u32vec4;
    +
    1716 
    +
    1717 
    +
    1720  typedef vec<1, u32, mediump> mediump_u32vec1;
    +
    1721 
    +
    1724  typedef vec<2, u32, mediump> mediump_u32vec2;
    +
    1725 
    +
    1728  typedef vec<3, u32, mediump> mediump_u32vec3;
    +
    1729 
    +
    1732  typedef vec<4, u32, mediump> mediump_u32vec4;
    +
    1733 
    +
    1734 
    +
    1737  typedef vec<1, u32, highp> highp_u32vec1;
    +
    1738 
    +
    1741  typedef vec<2, u32, highp> highp_u32vec2;
    +
    1742 
    +
    1745  typedef vec<3, u32, highp> highp_u32vec3;
    +
    1746 
    +
    1749  typedef vec<4, u32, highp> highp_u32vec4;
    +
    1750 
    +
    1751 
    +
    1752 
    +
    1755  typedef vec<1, u32, defaultp> u32vec1;
    +
    1756 
    +
    1759  typedef vec<2, u32, defaultp> u32vec2;
    +
    1760 
    +
    1763  typedef vec<3, u32, defaultp> u32vec3;
    +
    1764 
    +
    1767  typedef vec<4, u32, defaultp> u32vec4;
    +
    1768 
    +
    1769 
    +
    1770 
    +
    1771 
    +
    1774  typedef vec<1, u64, lowp> lowp_u64vec1;
    +
    1775 
    +
    1778  typedef vec<2, u64, lowp> lowp_u64vec2;
    +
    1779 
    +
    1782  typedef vec<3, u64, lowp> lowp_u64vec3;
    +
    1783 
    +
    1786  typedef vec<4, u64, lowp> lowp_u64vec4;
    +
    1787 
    +
    1788 
    +
    1791  typedef vec<1, u64, mediump> mediump_u64vec1;
    +
    1792 
    +
    1795  typedef vec<2, u64, mediump> mediump_u64vec2;
    +
    1796 
    +
    1799  typedef vec<3, u64, mediump> mediump_u64vec3;
    +
    1800 
    +
    1803  typedef vec<4, u64, mediump> mediump_u64vec4;
    +
    1804 
    +
    1805 
    +
    1808  typedef vec<1, u64, highp> highp_u64vec1;
    +
    1809 
    +
    1812  typedef vec<2, u64, highp> highp_u64vec2;
    +
    1813 
    +
    1816  typedef vec<3, u64, highp> highp_u64vec3;
    +
    1817 
    +
    1820  typedef vec<4, u64, highp> highp_u64vec4;
    +
    1821 
    +
    1822 
    +
    1823 
    +
    1824 
    +
    1827  typedef vec<1, u64, defaultp> u64vec1;
    +
    1828 
    +
    1831  typedef vec<2, u64, defaultp> u64vec2;
    +
    1832 
    +
    1835  typedef vec<3, u64, defaultp> u64vec3;
    +
    1836 
    +
    1839  typedef vec<4, u64, defaultp> u64vec4;
    +
    1840 
    +
    1841 
    +
    1843  // Float vector types
    +
    1844 
    +
    1847  typedef float32 float32_t;
    +
    1848 
    +
    1851  typedef float32 f32;
    +
    1852 
    +
    1853 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    1854 
    +
    1857  typedef float64 float64_t;
    +
    1858 
    +
    1861  typedef float64 f64;
    +
    1862 # endif//GLM_FORCE_SINGLE_ONLY
    +
    1863 
    +
    1866  typedef vec<1, float, defaultp> fvec1;
    +
    1867 
    +
    1870  typedef vec<2, float, defaultp> fvec2;
    +
    1871 
    +
    1874  typedef vec<3, float, defaultp> fvec3;
    +
    1875 
    +
    1878  typedef vec<4, float, defaultp> fvec4;
    +
    1879 
    +
    1880 
    +
    1883  typedef vec<1, f32, defaultp> f32vec1;
    +
    1884 
    +
    1887  typedef vec<2, f32, defaultp> f32vec2;
    +
    1888 
    +
    1891  typedef vec<3, f32, defaultp> f32vec3;
    +
    1892 
    +
    1895  typedef vec<4, f32, defaultp> f32vec4;
    +
    1896 
    +
    1897 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    1898  typedef vec<1, f64, defaultp> f64vec1;
    +
    1901 
    +
    1904  typedef vec<2, f64, defaultp> f64vec2;
    +
    1905 
    +
    1908  typedef vec<3, f64, defaultp> f64vec3;
    +
    1909 
    +
    1912  typedef vec<4, f64, defaultp> f64vec4;
    +
    1913 # endif//GLM_FORCE_SINGLE_ONLY
    +
    1914 
    +
    1915 
    +
    1917  // Float matrix types
    +
    1918 
    +
    1921  //typedef detail::tmat1x1<f32> fmat1;
    +
    1922 
    +
    1925  typedef mat<2, 2, f32, defaultp> fmat2;
    +
    1926 
    +
    1929  typedef mat<3, 3, f32, defaultp> fmat3;
    +
    1930 
    +
    1933  typedef mat<4, 4, f32, defaultp> fmat4;
    +
    1934 
    +
    1935 
    +
    1938  //typedef f32 fmat1x1;
    +
    1939 
    +
    1942  typedef mat<2, 2, f32, defaultp> fmat2x2;
    +
    1943 
    +
    1946  typedef mat<2, 3, f32, defaultp> fmat2x3;
    +
    1947 
    +
    1950  typedef mat<2, 4, f32, defaultp> fmat2x4;
    +
    1951 
    +
    1954  typedef mat<3, 2, f32, defaultp> fmat3x2;
    +
    1955 
    +
    1958  typedef mat<3, 3, f32, defaultp> fmat3x3;
    +
    1959 
    +
    1962  typedef mat<3, 4, f32, defaultp> fmat3x4;
    +
    1963 
    +
    1966  typedef mat<4, 2, f32, defaultp> fmat4x2;
    +
    1967 
    +
    1970  typedef mat<4, 3, f32, defaultp> fmat4x3;
    +
    1971 
    +
    1974  typedef mat<4, 4, f32, defaultp> fmat4x4;
    +
    1975 
    +
    1976 
    +
    1979  //typedef detail::tmat1x1<f32, defaultp> f32mat1;
    +
    1980 
    +
    1983  typedef mat<2, 2, f32, defaultp> f32mat2;
    +
    1984 
    +
    1987  typedef mat<3, 3, f32, defaultp> f32mat3;
    +
    1988 
    +
    1991  typedef mat<4, 4, f32, defaultp> f32mat4;
    +
    1992 
    +
    1993 
    +
    1996  //typedef f32 f32mat1x1;
    +
    1997 
    +
    2000  typedef mat<2, 2, f32, defaultp> f32mat2x2;
    +
    2001 
    +
    2004  typedef mat<2, 3, f32, defaultp> f32mat2x3;
    +
    2005 
    +
    2008  typedef mat<2, 4, f32, defaultp> f32mat2x4;
    +
    2009 
    +
    2012  typedef mat<3, 2, f32, defaultp> f32mat3x2;
    +
    2013 
    +
    2016  typedef mat<3, 3, f32, defaultp> f32mat3x3;
    +
    2017 
    +
    2020  typedef mat<3, 4, f32, defaultp> f32mat3x4;
    +
    2021 
    +
    2024  typedef mat<4, 2, f32, defaultp> f32mat4x2;
    +
    2025 
    +
    2028  typedef mat<4, 3, f32, defaultp> f32mat4x3;
    +
    2029 
    +
    2032  typedef mat<4, 4, f32, defaultp> f32mat4x4;
    +
    2033 
    +
    2034 
    +
    2035 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    2036 
    +
    2039  //typedef detail::tmat1x1<f64, defaultp> f64mat1;
    +
    2040 
    +
    2043  typedef mat<2, 2, f64, defaultp> f64mat2;
    +
    2044 
    +
    2047  typedef mat<3, 3, f64, defaultp> f64mat3;
    +
    2048 
    +
    2051  typedef mat<4, 4, f64, defaultp> f64mat4;
    +
    2052 
    +
    2053 
    +
    2056  //typedef f64 f64mat1x1;
    +
    2057 
    +
    2060  typedef mat<2, 2, f64, defaultp> f64mat2x2;
    +
    2061 
    +
    2064  typedef mat<2, 3, f64, defaultp> f64mat2x3;
    +
    2065 
    +
    2068  typedef mat<2, 4, f64, defaultp> f64mat2x4;
    +
    2069 
    +
    2072  typedef mat<3, 2, f64, defaultp> f64mat3x2;
    +
    2073 
    +
    2076  typedef mat<3, 3, f64, defaultp> f64mat3x3;
    +
    2077 
    +
    2080  typedef mat<3, 4, f64, defaultp> f64mat3x4;
    +
    2081 
    +
    2084  typedef mat<4, 2, f64, defaultp> f64mat4x2;
    +
    2085 
    +
    2088  typedef mat<4, 3, f64, defaultp> f64mat4x3;
    +
    2089 
    +
    2092  typedef mat<4, 4, f64, defaultp> f64mat4x4;
    +
    2093 
    +
    2094 # endif//GLM_FORCE_SINGLE_ONLY
    +
    2095 
    +
    2097  // Quaternion types
    +
    2098 
    +
    2101  typedef qua<f32, defaultp> f32quat;
    +
    2102 
    +
    2105  typedef qua<f32, lowp> lowp_f32quat;
    +
    2106 
    +
    2109  typedef qua<f64, lowp> lowp_f64quat;
    +
    2110 
    +
    2113  typedef qua<f32, mediump> mediump_f32quat;
    +
    2114 
    +
    2115 # ifndef GLM_FORCE_SINGLE_ONLY
    +
    2116 
    +
    2119  typedef qua<f64, mediump> mediump_f64quat;
    +
    2120 
    +
    2123  typedef qua<f32, highp> highp_f32quat;
    +
    2124 
    +
    2127  typedef qua<f64, highp> highp_f64quat;
    +
    2128 
    +
    2131  typedef qua<f64, defaultp> f64quat;
    +
    2132 
    +
    2133 # endif//GLM_FORCE_SINGLE_ONLY
    +
    2134 
    +
    2136 }//namespace glm
    +
    2137 
    +
    2138 #include "type_precision.inl"
    +
    vec< 1, u16, highp > highp_u16vec1
    High qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:354
    +
    mat< 4, 2, f32, highp > highp_f32mat4x2
    High single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:696
    +
    uint64 highp_u64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:133
    +
    vec< 1, f64, mediump > mediump_f64vec1
    Medium double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:491
    +
    vec< 3, f32, defaultp > f32vec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:463
    +
    mat< 2, 2, f32, mediump > mediump_fmat2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:528
    +
    double highp_float64_t
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:175
    +
    mat< 4, 4, f64, defaultp > f64mat4
    Double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:586
    +
    mat< 2, 2, f64, defaultp > f64mat2
    Double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:584
    +
    mat< 4, 3, f32, mediump > mediump_fmat4x3
    Medium single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:647
    +
    mat< 3, 3, f32, mediump > mediump_f32mat3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:545
    +
    uint32 mediump_uint32_t
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:127
    +
    uint64 lowp_uint64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:136
    +
    mat< 2, 2, f32, mediump > mediump_fmat2x2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:640
    +
    vec< 1, f32, defaultp > f32vec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:461
    +
    mat< 4, 4, f32, highp > highp_f32mat4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:550
    +
    double highp_float64
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:170
    +
    uint8 lowp_u8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:89
    +
    uint32 u32
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:120
    +
    mat< 3, 3, f64, defaultp > f64mat3
    Double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:585
    +
    double lowp_float64
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:168
    +
    vec< 1, i32, defaultp > i32vec1
    32 bit signed integer scalar type.
    Definition: fwd.hpp:277
    +
    uint16 highp_uint16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:110
    +
    mat< 2, 4, f64, mediump > mediump_f64mat2x4
    Medium double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:762
    +
    vec< 4, i64, highp > highp_i64vec4
    High qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:295
    +
    mat< 3, 4, f64, defaultp > f64mat3x4
    Double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:787
    +
    mat< 2, 2, f32, defaultp > fmat2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:536
    +
    vec< 3, i16, defaultp > i16vec3
    16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:259
    +
    uint32 lowp_uint32_t
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:126
    +
    vec< 2, float, lowp > lowp_fvec2
    Low single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:427
    +
    uint32 mediump_uint32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:123
    +
    mat< 4, 4, f32, mediump > mediump_fmat4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:530
    +
    uint64 highp_uint64
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:138
    +
    mat< 2, 2, f32, lowp > lowp_fmat2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:524
    +
    uint32 lowp_uint32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:122
    +
    vec< 3, float, lowp > lowp_fvec3
    Low single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:428
    +
    vec< 2, float, mediump > mediump_fvec2
    Medium Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:432
    +
    mat< 3, 4, f32, lowp > lowp_fmat3x4
    Low single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:635
    +
    mat< 2, 2, f64, lowp > lowp_f64mat2x2
    Low double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:750
    +
    vec< 4, i64, defaultp > i64vec4
    64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:300
    +
    vec< 3, u16, defaultp > u16vec3
    Default qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:361
    +
    vec< 1, u64, lowp > lowp_u64vec1
    Low qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:384
    +
    vec< 1, u16, mediump > mediump_u16vec1
    Medium qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:349
    +
    vec< 2, i8, defaultp > i8vec2
    8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:238
    +
    mat< 2, 3, f64, mediump > mediump_f64mat2x3
    Medium double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:761
    +
    vec< 4, u32, lowp > lowp_u32vec4
    Low qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:367
    +
    vec< 4, f32, highp > highp_f32vec4
    High single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:459
    +
    vec< 1, f32, lowp > lowp_f32vec1
    Low single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:446
    +
    mat< 2, 3, f32, highp > highp_f32mat2x3
    High single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:691
    +
    int64 highp_int64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:80
    +
    vec< 2, i32, mediump > mediump_i32vec2
    Medium qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:268
    +
    mat< 4, 4, f64, lowp > lowp_f64mat4
    Low double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:574
    +
    mat< 4, 4, f32, defaultp > fmat4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:538
    +
    mat< 3, 4, f32, mediump > mediump_fmat3x4
    Medium single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:645
    +
    int16 lowp_int16_t
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:54
    +
    vec< 4, i32, highp > highp_i32vec4
    High qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:275
    +
    mat< 4, 2, f32, defaultp > f32mat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:702
    +
    mat< 3, 2, f32, highp > highp_fmat3x2
    High single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:653
    +
    mat< 2, 3, f32, mediump > mediump_fmat2x3
    Medium single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:641
    +
    uint32 mediump_u32
    Medium qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:118
    +
    mat< 3, 2, f32, lowp > lowp_fmat3x2
    Low single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:633
    +
    mat< 4, 2, f64, mediump > mediump_f64mat4x2
    Medium double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:766
    +
    vec< 2, u16, highp > highp_u16vec2
    High qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:355
    +
    vec< 1, f64, highp > highp_f64vec1
    High double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:496
    +
    vec< 2, i16, mediump > mediump_i16vec2
    Medium qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:248
    +
    mat< 2, 4, f32, highp > highp_fmat2x4
    High single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:652
    +
    vec< 3, u64, defaultp > u64vec3
    Default qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:401
    +
    uint8 lowp_uint8
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:94
    +
    mat< 3, 2, f32, lowp > lowp_f32mat3x2
    Low single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:673
    +
    uint64 lowp_u64
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:131
    +
    vec< 3, i64, highp > highp_i64vec3
    High qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:294
    +
    int8 mediump_int8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:37
    +
    int64 lowp_int64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:78
    +
    mat< 4, 2, f32, mediump > mediump_f32mat4x2
    Medium single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:686
    +
    vec< 3, f64, lowp > lowp_f64vec3
    Low double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:488
    +
    vec< 2, u64, defaultp > u64vec2
    Default qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:400
    +
    vec< 3, i64, lowp > lowp_i64vec3
    Low qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:284
    +
    vec< 2, i8, mediump > mediump_i8vec2
    Medium qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:228
    +
    mat< 3, 4, f32, defaultp > f32mat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:707
    +
    vec< 3, i16, highp > highp_i16vec3
    High qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:254
    +
    vec< 3, i16, mediump > mediump_i16vec3
    Medium qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:249
    +
    uint64 u64
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:134
    +
    vec< 1, f64, defaultp > f64vec1
    Double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:501
    +
    mat< 3, 2, f32, mediump > mediump_fmat3x2
    Medium single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:643
    +
    vec< 1, i64, mediump > mediump_i64vec1
    Medium qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:287
    +
    vec< 1, i16, defaultp > i16vec1
    16 bit signed integer scalar type.
    Definition: fwd.hpp:257
    +
    mat< 3, 3, f64, lowp > lowp_f64mat3x3
    Low double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:754
    +
    vec< 2, f64, lowp > lowp_f64vec2
    Low double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:487
    +
    mat< 2, 3, f32, highp > highp_fmat2x3
    High single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:651
    +
    mat< 3, 3, f64, lowp > lowp_f64mat3
    Low double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:573
    +
    mat< 4, 3, f32, lowp > lowp_f32mat4x3
    Low single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:677
    +
    vec< 3, u64, mediump > mediump_u64vec3
    Medium qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:391
    +
    double mediump_float64
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:169
    +
    double float64
    Double-qualifier floating-point scalar.
    Definition: fwd.hpp:171
    +
    vec< 2, i16, highp > highp_i16vec2
    High qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:253
    +
    mat< 4, 2, f32, defaultp > fmat4x2
    Single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:662
    +
    mat< 2, 3, f64, lowp > lowp_f64mat2x3
    Low double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:751
    +
    mat< 3, 4, f32, defaultp > fmat3x4
    Single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:667
    +
    vec< 3, u32, lowp > lowp_u32vec3
    Low qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:366
    +
    mat< 2, 4, f32, defaultp > f32mat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:706
    +
    vec< 4, float, lowp > lowp_fvec4
    Low single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:429
    +
    vec< 4, f32, mediump > mediump_f32vec4
    Medium single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:454
    +
    vec< 4, i16, defaultp > i16vec4
    16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:260
    +
    uint8 lowp_uint8_t
    Low qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:98
    +
    uint32 highp_uint32_t
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:128
    +
    mat< 3, 3, f32, defaultp > fmat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:664
    +
    mat< 3, 4, f64, mediump > mediump_f64mat3x4
    Medium double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:765
    +
    mat< 2, 3, f32, lowp > lowp_fmat2x3
    Low single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:631
    +
    vec< 1, u32, lowp > lowp_u32vec1
    Low qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:364
    +
    mat< 2, 3, f32, defaultp > f32mat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:703
    +
    vec< 1, i32, mediump > mediump_i32vec1
    Medium qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:267
    +
    vec< 4, u16, highp > highp_u16vec4
    High qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:357
    +
    vec< 1, i32, lowp > lowp_i32vec1
    Low qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:262
    +
    vec< 1, i64, lowp > lowp_i64vec1
    Low qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:282
    +
    vec< 1, u32, highp > highp_u32vec1
    High qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:374
    +
    int16 mediump_int16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:51
    +
    uint16 mediump_u16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:104
    +
    qua< f64, defaultp > f64quat
    Double-qualifier floating-point quaternion.
    Definition: fwd.hpp:815
    +
    vec< 3, f64, mediump > mediump_f64vec3
    Medium double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:493
    +
    vec< 1, u64, defaultp > u64vec1
    Default qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:399
    +
    int64 int64_t
    64 bit signed integer type.
    Definition: fwd.hpp:85
    +
    vec< 1, u8, defaultp > u8vec1
    Default qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:339
    +
    vec< 1, i8, highp > highp_i8vec1
    High qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:232
    +
    vec< 4, u8, defaultp > u8vec4
    Default qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:342
    +
    int8 int8_t
    8 bit signed integer type.
    Definition: fwd.hpp:43
    +
    int32 i32
    32 bit signed integer type.
    Definition: fwd.hpp:62
    +
    vec< 1, u32, mediump > mediump_u32vec1
    Medium qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:369
    +
    mat< 2, 2, f64, defaultp > f64mat2x2
    Double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:780
    +
    mat< 2, 2, f32, lowp > lowp_f32mat2x2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:670
    +
    vec< 4, f32, lowp > lowp_f32vec4
    Low single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:449
    +
    vec< 3, float, highp > highp_fvec3
    High Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:438
    +
    mat< 4, 2, f64, lowp > lowp_f64mat4x2
    Low double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:756
    +
    mat< 3, 3, f32, mediump > mediump_fmat3x3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:644
    +
    vec< 1, i64, highp > highp_i64vec1
    High qualifier 64 bit signed integer scalar type.
    Definition: fwd.hpp:292
    +
    vec< 4, i8, defaultp > i8vec4
    8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:240
    +
    int32 highp_int32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:66
    +
    mat< 2, 3, f32, mediump > mediump_f32mat2x3
    Medium single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:681
    +
    mat< 3, 2, f64, lowp > lowp_f64mat3x2
    Low double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:753
    +
    uint32 highp_u32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:119
    +
    int32 highp_i32
    High qualifier 32 bit signed integer type.
    Definition: fwd.hpp:61
    +
    vec< 4, u64, defaultp > u64vec4
    Default qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:402
    +
    vec< 4, f32, defaultp > f32vec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:464
    +
    mat< 2, 3, f64, defaultp > f64mat2x3
    Double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:783
    +
    mat< 4, 4, f64, mediump > mediump_f64mat4x4
    Medium double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:768
    +
    vec< 4, u16, lowp > lowp_u16vec4
    Low qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:347
    +
    uint32 highp_uint32
    High qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:124
    +
    mat< 4, 4, f32, lowp > lowp_f32mat4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:542
    +
    mat< 3, 2, f64, defaultp > f64mat3x2
    Double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:781
    +
    float mediump_float32
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:153
    +
    vec< 1, u32, defaultp > u32vec1
    Default qualifier 32 bit unsigned integer scalar type.
    Definition: fwd.hpp:379
    +
    vec< 4, f64, mediump > mediump_f64vec4
    Medium double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:494
    +
    mat< 3, 3, f64, defaultp > f64mat3x3
    Double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:784
    +
    float highp_float32
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:154
    +
    uint8 highp_uint8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:96
    +
    int8 highp_i8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:33
    +
    mat< 2, 4, f64, lowp > lowp_f64mat2x4
    Low double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:752
    +
    mat< 3, 4, f64, lowp > lowp_f64mat3x4
    Low double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:755
    +
    int8 mediump_i8
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:32
    +
    int64 highp_int64_t
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:84
    +
    mat< 4, 4, f32, defaultp > f32mat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:708
    +
    float float32_t
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:160
    +
    mat< 2, 2, f32, defaultp > f32mat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:700
    +
    vec< 2, i64, lowp > lowp_i64vec2
    Low qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:283
    +
    mat< 2, 4, f32, lowp > lowp_f32mat2x4
    Low single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:672
    +
    uint32 uint32_t
    Default qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:129
    +
    mat< 3, 3, f32, highp > highp_f32mat3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:549
    +
    mat< 3, 3, f64, mediump > mediump_f64mat3x3
    Medium double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:764
    +
    uint8 u8
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:92
    +
    vec< 3, i32, highp > highp_i32vec3
    High qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:274
    +
    float float32
    Single-qualifier floating-point scalar.
    Definition: fwd.hpp:155
    +
    vec< 4, f32, defaultp > fvec4
    Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:444
    +
    vec< 1, i32, highp > highp_i32vec1
    High qualifier 32 bit signed integer scalar type.
    Definition: fwd.hpp:272
    +
    mat< 3, 3, f32, lowp > lowp_f32mat3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:541
    +
    vec< 1, u16, defaultp > u16vec1
    Default qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:359
    +
    vec< 1, i8, defaultp > i8vec1
    8 bit signed integer scalar type.
    Definition: fwd.hpp:237
    +
    vec< 3, i32, mediump > mediump_i32vec3
    Medium qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:269
    +
    vec< 2, i32, defaultp > i32vec2
    32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:278
    +
    vec< 2, i16, lowp > lowp_i16vec2
    Low qualifier 16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:243
    +
    vec< 2, u64, mediump > mediump_u64vec2
    Medium qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:390
    +
    vec< 4, u8, lowp > lowp_u8vec4
    Low qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:327
    +
    mat< 3, 3, f32, highp > highp_f32mat3x3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:694
    +
    vec< 1, u8, highp > highp_u8vec1
    High qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:334
    +
    uint8 highp_uint8_t
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:100
    +
    vec< 4, u32, mediump > mediump_u32vec4
    Medium qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:372
    +
    mat< 2, 2, f32, highp > highp_f32mat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:690
    +
    vec< 4, f64, highp > highp_f64vec4
    High double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:499
    +
    vec< 3, u8, lowp > lowp_u8vec3
    Low qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:326
    +
    float highp_f32
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:149
    +
    uint64 mediump_uint64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:137
    +
    int32 highp_int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:70
    +
    vec< 3, f64, defaultp > f64vec3
    Double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:503
    +
    mat< 2, 3, f32, lowp > lowp_f32mat2x3
    Low single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:671
    +
    vec< 3, u16, mediump > mediump_u16vec3
    Medium qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:351
    +
    mat< 2, 4, f64, defaultp > f64mat2x4
    Double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:786
    +
    mat< 3, 3, f32, defaultp > f32mat3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:553
    +
    mat< 2, 2, f64, mediump > mediump_f64mat2x2
    Medium double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:760
    +
    uint64 mediump_u64
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:132
    +
    vec< 4, i16, highp > highp_i16vec4
    High qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:255
    +
    mat< 4, 4, f32, lowp > lowp_fmat4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:526
    +
    vec< 2, u32, mediump > mediump_u32vec2
    Medium qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:370
    +
    vec< 3, u64, highp > highp_u64vec3
    High qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:396
    +
    uint16 lowp_u16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:103
    +
    vec< 3, i16, lowp > lowp_i16vec3
    Low qualifier 16 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:244
    +
    vec< 3, u16, lowp > lowp_u16vec3
    Low qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:346
    +
    vec< 3, f32, lowp > lowp_f32vec3
    Low single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:448
    +
    mat< 4, 4, f32, highp > highp_fmat4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:534
    +
    mat< 3, 3, f32, lowp > lowp_fmat3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:525
    +
    int16 highp_i16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:47
    +
    qua< f32, mediump > mediump_f32quat
    Medium single-qualifier floating-point quaternion.
    Definition: fwd.hpp:803
    +
    int8 highp_int8
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:38
    +
    mat< 4, 4, f64, defaultp > f64mat4x4
    Double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:788
    +
    mat< 4, 3, f32, defaultp > fmat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:665
    +
    mat< 2, 4, f32, lowp > lowp_fmat2x4
    Low single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:632
    +
    mat< 3, 3, f64, highp > highp_f64mat3
    High double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:581
    +
    vec< 3, i8, mediump > mediump_i8vec3
    Medium qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:229
    +
    vec< 1, f32, highp > highp_f32vec1
    High single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:456
    +
    vec< 3, i8, lowp > lowp_i8vec3
    Low qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:224
    +
    mat< 4, 3, f64, lowp > lowp_f64mat4x3
    Low double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:757
    +
    vec< 4, u64, highp > highp_u64vec4
    High qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:397
    +
    vec< 3, f32, defaultp > fvec3
    Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:443
    +
    vec< 2, i16, defaultp > i16vec2
    16 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:258
    +
    mat< 4, 3, f32, defaultp > f32mat4x3
    Single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:705
    +
    mat< 2, 2, f32, defaultp > f32mat2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:552
    +
    vec< 2, u16, mediump > mediump_u16vec2
    Medium qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:350
    +
    mat< 2, 4, f32, mediump > mediump_fmat2x4
    Medium single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:642
    +
    mat< 4, 4, f32, lowp > lowp_f32mat4x4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:678
    +
    vec< 2, u8, lowp > lowp_u8vec2
    Low qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:325
    +
    mat< 3, 3, f64, mediump > mediump_f64mat3
    Medium double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:577
    +
    int16 lowp_i16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:45
    +
    mat< 3, 4, f32, highp > highp_fmat3x4
    High single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:655
    +
    double float64_t
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:176
    +
    mat< 4, 4, f64, highp > highp_f64mat4x4
    High double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:778
    +
    mat< 4, 3, f32, mediump > mediump_f32mat4x3
    Medium single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:687
    +
    int16 lowp_int16
    Low qualifier 16 bit signed integer type.
    Definition: fwd.hpp:50
    +
    mat< 3, 3, f32, mediump > mediump_fmat3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:529
    +
    mat< 4, 4, f32, highp > highp_f32mat4x4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:698
    +
    int64 lowp_int64_t
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:82
    +
    uint16 uint16_t
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:115
    +
    vec< 2, f64, highp > highp_f64vec2
    High double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:497
    +
    vec< 2, u64, lowp > lowp_u64vec2
    Low qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:385
    +
    mat< 3, 3, f32, defaultp > fmat3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:537
    +
    mat< 3, 2, f32, mediump > mediump_f32mat3x2
    Medium single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:683
    +
    mat< 4, 2, f32, lowp > lowp_f32mat4x2
    Low single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:676
    +
    int32 lowp_int32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:64
    +
    vec< 4, i64, mediump > mediump_i64vec4
    Medium qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:290
    +
    uint8 uint8_t
    Default qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:101
    +
    vec< 1, i8, mediump > mediump_i8vec1
    Medium qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:227
    +
    int32 mediump_int32_t
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:69
    +
    float highp_float32_t
    High 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:159
    +
    mat< 3, 3, f32, defaultp > f32mat3x3
    Single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:704
    +
    uint8 highp_u8
    High qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:91
    +
    uint8 mediump_uint8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:95
    +
    mat< 4, 2, f32, highp > highp_fmat4x2
    High single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:656
    +
    vec< 2, f32, highp > highp_f32vec2
    High single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:457
    +
    int64 mediump_int64_t
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:83
    +
    vec< 3, u64, lowp > lowp_u64vec3
    Low qualifier 64 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:386
    +
    mat< 2, 2, f64, highp > highp_f64mat2x2
    High double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:770
    +
    vec< 3, u32, highp > highp_u32vec3
    High qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:376
    +
    int8 highp_int8_t
    High qualifier 8 bit signed integer type.
    Definition: fwd.hpp:42
    +
    qua< f32, lowp > lowp_f32quat
    Low single-qualifier floating-point quaternion.
    Definition: fwd.hpp:802
    +
    vec< 4, i32, lowp > lowp_i32vec4
    Low qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:265
    +
    vec< 1, i16, highp > highp_i16vec1
    High qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:252
    +
    mat< 4, 4, f32, lowp > lowp_fmat4x4
    Low single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:638
    +
    mat< 3, 2, f32, defaultp > f32mat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:701
    +
    mat< 3, 3, f32, lowp > lowp_f32mat3x3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:674
    +
    vec< 2, i8, lowp > lowp_i8vec2
    Low qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:223
    +
    vec< 4, i32, defaultp > i32vec4
    32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:280
    +
    mat< 2, 2, f32, highp > highp_f32mat2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:548
    +
    float lowp_f32
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:147
    +
    vec< 4, u16, mediump > mediump_u16vec4
    Medium qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:352
    +
    vec< 3, u32, defaultp > u32vec3
    Default qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:381
    +
    vec< 2, u8, defaultp > u8vec2
    Default qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:340
    +
    int16 mediump_i16
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:46
    +
    vec< 2, u64, highp > highp_u64vec2
    High qualifier 64 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:395
    +
    vec< 3, i8, defaultp > i8vec3
    8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:239
    +
    mat< 2, 2, f32, mediump > mediump_f32mat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:680
    +
    uint16 mediump_uint16_t
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:113
    +
    mat< 4, 3, f64, mediump > mediump_f64mat4x3
    Medium double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:767
    +
    vec< 3, u8, defaultp > u8vec3
    Default qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:341
    +
    double highp_f64
    High 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:165
    +
    vec< 3, float, mediump > mediump_fvec3
    Medium Single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:433
    +
    int64 mediump_int64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:79
    +
    vec< 4, u64, mediump > mediump_u64vec4
    Medium qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:392
    +
    uint64 uint64_t
    Default qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:143
    +
    vec< 2, u32, highp > highp_u32vec2
    High qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:375
    +
    vec< 1, float, highp > highp_fvec1
    High single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:436
    +
    vec< 4, i64, lowp > lowp_i64vec4
    Low qualifier 64 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:285
    +
    vec< 3, i32, defaultp > i32vec3
    32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:279
    +
    mat< 2, 4, f32, highp > highp_f32mat2x4
    High single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:692
    +
    vec< 1, i8, lowp > lowp_i8vec1
    Low qualifier 8 bit signed integer scalar type.
    Definition: fwd.hpp:222
    +
    mat< 2, 2, f64, highp > highp_f64mat2
    High double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:580
    +
    uint16 lowp_uint16_t
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:112
    +
    mat< 3, 2, f64, highp > highp_f64mat3x2
    High double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:773
    +
    vec< 3, u32, mediump > mediump_u32vec3
    Medium qualifier 32 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:371
    +
    uint16 lowp_uint16
    Low qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:108
    +
    vec< 3, u8, highp > highp_u8vec3
    High qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:336
    +
    vec< 4, f64, defaultp > f64vec4
    Double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:504
    +
    vec< 2, i8, highp > highp_i8vec2
    High qualifier 8 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:233
    +
    vec< 3, i32, lowp > lowp_i32vec3
    Low qualifier 32 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:264
    +
    int32 lowp_i32
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:59
    +
    mat< 4, 4, f32, mediump > mediump_fmat4x4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:648
    +
    int64 mediump_i64
    Medium qualifier 64 bit signed integer type.
    Definition: fwd.hpp:74
    +
    vec< 4, i16, lowp > lowp_i16vec4
    Low qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:245
    +
    mat< 4, 3, f64, highp > highp_f64mat4x3
    High double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:777
    +
    vec< 2, u8, highp > highp_u8vec2
    High qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:335
    +
    vec< 3, i8, highp > highp_i8vec3
    High qualifier 8 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:234
    +
    vec< 3, f64, highp > highp_f64vec3
    High double-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:498
    +
    vec< 2, f32, defaultp > fvec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:442
    +
    vec< 4, f64, lowp > lowp_f64vec4
    Low double-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:489
    +
    vec< 3, f32, mediump > mediump_f32vec3
    Medium single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:453
    +
    double lowp_f64
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:163
    +
    mat< 4, 2, f32, lowp > lowp_fmat4x2
    Low single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:636
    +
    mat< 2, 4, f64, highp > highp_f64mat2x4
    High double-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:772
    +
    mat< 4, 4, f64, highp > highp_f64mat4
    High double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:582
    +
    vec< 4, i32, mediump > mediump_i32vec4
    Medium qualifier 32 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:270
    +
    mat< 2, 2, f32, lowp > lowp_f32mat2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:540
    +
    int16 int16_t
    16 bit signed integer type.
    Definition: fwd.hpp:57
    +
    int64 highp_i64
    High qualifier 64 bit signed integer type.
    Definition: fwd.hpp:75
    +
    mat< 3, 4, f64, highp > highp_f64mat3x4
    High double-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:775
    +
    mat< 3, 3, f32, highp > highp_fmat3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:533
    +
    mat< 3, 3, f32, mediump > mediump_f32mat3x3
    Medium single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:684
    +
    qua< f64, mediump > mediump_f64quat
    Medium double-qualifier floating-point quaternion.
    Definition: fwd.hpp:813
    +
    int32 int32_t
    32 bit signed integer type.
    Definition: fwd.hpp:71
    +
    vec< 2, f64, defaultp > f64vec2
    Double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:502
    +
    uint64 lowp_uint64_t
    Low qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:140
    +
    detail::uint64 uint64
    64 bit unsigned integer type.
    +
    int16 highp_int16
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:52
    +
    vec< 1, i16, mediump > mediump_i16vec1
    Medium qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:247
    +
    mat< 2, 4, f32, defaultp > fmat2x4
    Single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:666
    +
    mat< 2, 2, f32, highp > highp_fmat2x2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:650
    +
    vec< 4, float, highp > highp_fvec4
    High Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:439
    +
    mat< 3, 3, f64, highp > highp_f64mat3x3
    High double-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:774
    +
    int32 mediump_i32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:60
    +
    vec< 2, u16, lowp > lowp_u16vec2
    Low qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:345
    +
    vec< 4, u32, highp > highp_u32vec4
    High qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:377
    +
    float lowp_float32_t
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:157
    +
    uint64 highp_uint64_t
    High qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:142
    +
    vec< 2, f32, lowp > lowp_f32vec2
    Low single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:447
    +
    vec< 4, u32, defaultp > u32vec4
    Default qualifier 32 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:382
    +
    mat< 2, 2, f64, mediump > mediump_f64mat2
    Medium double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:576
    +
    mat< 4, 3, f32, highp > highp_f32mat4x3
    High single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:697
    +
    qua< f32, defaultp > f32quat
    Single-qualifier floating-point quaternion.
    Definition: fwd.hpp:805
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    vec< 1, u64, highp > highp_u64vec1
    High qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:394
    +
    mat< 2, 3, f64, highp > highp_f64mat2x3
    High double-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:771
    +
    vec< 4, i8, lowp > lowp_i8vec4
    Low qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:225
    +
    mat< 4, 3, f32, lowp > lowp_fmat4x3
    Low single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:637
    +
    float f32
    Default 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:150
    +
    vec< 2, i32, highp > highp_i32vec2
    High qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:273
    +
    vec< 1, u8, mediump > mediump_u8vec1
    Medium qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:329
    +
    mat< 4, 3, f32, highp > highp_fmat4x3
    High single-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:657
    +
    vec< 4, i16, mediump > mediump_i16vec4
    Medium qualifier 16 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:250
    +
    mat< 4, 2, f64, defaultp > f64mat4x2
    Double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:782
    +
    mat< 2, 3, f32, defaultp > fmat2x3
    Single-qualifier floating-point 2x3 matrix.
    Definition: fwd.hpp:663
    +
    mat< 4, 4, f64, mediump > mediump_f64mat4
    Medium double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:578
    +
    vec< 4, u8, mediump > mediump_u8vec4
    Medium qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:332
    +
    mat< 3, 4, f32, lowp > lowp_f32mat3x4
    Low single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:675
    +
    double mediump_float64_t
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:174
    +
    vec< 2, float, highp > highp_fvec2
    High Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:437
    +
    uint16 u16
    Default qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:106
    +
    int64 lowp_i64
    Low qualifier 64 bit signed integer type.
    Definition: fwd.hpp:73
    +
    mat< 4, 4, f32, defaultp > f32mat4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:554
    +
    mat< 4, 2, f32, mediump > mediump_fmat4x2
    Medium single-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:646
    +
    mat< 2, 2, f64, lowp > lowp_f64mat2
    Low double-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:572
    +
    int8 mediump_int8_t
    Medium qualifier 8 bit signed integer type.
    Definition: fwd.hpp:41
    +
    mat< 3, 3, f32, lowp > lowp_fmat3x3
    Low single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:634
    +
    double lowp_float64_t
    Low 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:173
    +
    int16 highp_int16_t
    High qualifier 16 bit signed integer type.
    Definition: fwd.hpp:56
    +
    mat< 3, 3, f32, highp > highp_fmat3x3
    High single-qualifier floating-point 3x3 matrix.
    Definition: fwd.hpp:654
    +
    vec< 1, i64, defaultp > i64vec1
    64 bit signed integer scalar type.
    Definition: fwd.hpp:297
    +
    uint32 lowp_u32
    Low qualifier 32 bit unsigned integer type.
    Definition: fwd.hpp:117
    +
    vec< 1, u8, lowp > lowp_u8vec1
    Low qualifier 8 bit unsigned integer scalar type.
    Definition: fwd.hpp:324
    +
    vec< 3, i64, mediump > mediump_i64vec3
    Medium qualifier 64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:289
    +
    qua< f32, highp > highp_f32quat
    High single-qualifier floating-point quaternion.
    Definition: fwd.hpp:804
    +
    uint16 highp_u16
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:105
    +
    vec< 1, f32, defaultp > fvec1
    Single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:441
    +
    vec< 2, u8, mediump > mediump_u8vec2
    Medium qualifier 8 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:330
    +
    int32 lowp_int32_t
    Low qualifier 32 bit signed integer type.
    Definition: fwd.hpp:68
    +
    vec< 1, u16, lowp > lowp_u16vec1
    Low qualifier 16 bit unsigned integer scalar type.
    Definition: fwd.hpp:344
    +
    mat< 4, 4, f32, highp > highp_fmat4x4
    High single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:658
    +
    mat< 3, 4, f32, highp > highp_f32mat3x4
    High single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:695
    +
    vec< 2, f32, defaultp > f32vec2
    Single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:462
    +
    vec< 3, u16, highp > highp_u16vec3
    High qualifier 16 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:356
    +
    float mediump_float32_t
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:158
    +
    mat< 2, 2, f32, defaultp > fmat2x2
    Single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:660
    +
    float mediump_f32
    Medium 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:148
    +
    mat< 4, 4, f32, mediump > mediump_f32mat4x4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:688
    +
    vec< 2, f32, mediump > mediump_f32vec2
    Medium single-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:452
    +
    int8 lowp_int8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:36
    +
    vec< 1, f64, lowp > lowp_f64vec1
    Low double-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:486
    +
    mat< 3, 2, f32, highp > highp_f32mat3x2
    High single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:693
    +
    mat< 3, 2, f64, mediump > mediump_f64mat3x2
    Medium double-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:763
    +
    vec< 3, u8, mediump > mediump_u8vec3
    Medium qualifier 8 bit unsigned integer vector of 3 components type.
    Definition: fwd.hpp:331
    +
    mat< 4, 4, f64, lowp > lowp_f64mat4x4
    Low double-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:758
    +
    vec< 1, i16, lowp > lowp_i16vec1
    Low qualifier 16 bit signed integer scalar type.
    Definition: fwd.hpp:242
    +
    int8 lowp_int8_t
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:40
    +
    vec< 2, u32, lowp > lowp_u32vec2
    Low qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:365
    +
    mat< 2, 4, f32, mediump > mediump_f32mat2x4
    Medium single-qualifier floating-point 2x4 matrix.
    Definition: fwd.hpp:682
    +
    mat< 4, 3, f64, defaultp > f64mat4x3
    Double-qualifier floating-point 4x3 matrix.
    Definition: fwd.hpp:785
    +
    vec< 2, i64, highp > highp_i64vec2
    High qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:293
    +
    mat< 4, 4, f32, mediump > mediump_f32mat4
    Medium single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:546
    +
    int64 i64
    64 bit signed integer type.
    Definition: fwd.hpp:76
    +
    double f64
    Default 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:166
    +
    vec< 1, f32, mediump > mediump_f32vec1
    Medium single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:451
    +
    mat< 3, 4, f32, mediump > mediump_f32mat3x4
    Medium single-qualifier floating-point 3x4 matrix.
    Definition: fwd.hpp:685
    +
    mat< 2, 2, f32, highp > highp_fmat2
    High single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:532
    +
    vec< 3, f32, highp > highp_f32vec3
    High single-qualifier floating-point vector of 3 components.
    Definition: fwd.hpp:458
    +
    vec< 4, i8, mediump > mediump_i8vec4
    Medium qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:230
    +
    float lowp_float32
    Low 32 bit single-qualifier floating-point scalar.
    Definition: fwd.hpp:152
    +
    vec< 2, u32, defaultp > u32vec2
    Default qualifier 32 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:380
    +
    vec< 4, float, mediump > mediump_fvec4
    Medium Single-qualifier floating-point vector of 4 components.
    Definition: fwd.hpp:434
    +
    int32 mediump_int32
    Medium qualifier 32 bit signed integer type.
    Definition: fwd.hpp:65
    +
    vec< 2, i64, defaultp > i64vec2
    64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:298
    +
    int16 i16
    16 bit signed integer type.
    Definition: fwd.hpp:48
    +
    mat< 4, 4, f32, defaultp > fmat4x4
    Single-qualifier floating-point 4x4 matrix.
    Definition: fwd.hpp:668
    +
    qua< f64, lowp > lowp_f64quat
    Low double-qualifier floating-point quaternion.
    Definition: fwd.hpp:812
    +
    mat< 3, 2, f32, defaultp > fmat3x2
    Single-qualifier floating-point 3x2 matrix.
    Definition: fwd.hpp:661
    +
    vec< 4, u16, defaultp > u16vec4
    Default qualifier 16 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:362
    +
    vec< 2, u16, defaultp > u16vec2
    Default qualifier 16 bit unsigned integer vector of 2 components type.
    Definition: fwd.hpp:360
    +
    uint8 mediump_u8
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:90
    +
    mat< 2, 2, f32, lowp > lowp_fmat2x2
    Low single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:630
    +
    vec< 4, i8, highp > highp_i8vec4
    High qualifier 8 bit signed integer vector of 4 components type.
    Definition: fwd.hpp:235
    +
    vec< 4, u64, lowp > lowp_u64vec4
    Low qualifier 64 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:387
    +
    vec< 2, i64, mediump > mediump_i64vec2
    Medium qualifier 64 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:288
    +
    mat< 4, 2, f64, highp > highp_f64mat4x2
    High double-qualifier floating-point 4x2 matrix.
    Definition: fwd.hpp:776
    +
    int16 mediump_int16_t
    Medium qualifier 16 bit signed integer type.
    Definition: fwd.hpp:55
    +
    int8 lowp_i8
    Low qualifier 8 bit signed integer type.
    Definition: fwd.hpp:31
    +
    vec< 3, i64, defaultp > i64vec3
    64 bit signed integer vector of 3 components type.
    Definition: fwd.hpp:299
    +
    vec< 2, i32, lowp > lowp_i32vec2
    Low qualifier 32 bit signed integer vector of 2 components type.
    Definition: fwd.hpp:263
    +
    qua< f64, highp > highp_f64quat
    High double-qualifier floating-point quaternion.
    Definition: fwd.hpp:814
    +
    vec< 2, f64, mediump > mediump_f64vec2
    Medium double-qualifier floating-point vector of 2 components.
    Definition: fwd.hpp:492
    +
    uint16 highp_uint16_t
    High qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:114
    +
    vec< 1, float, lowp > lowp_fvec1
    Low single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:426
    +
    int8 i8
    8 bit signed integer type.
    Definition: fwd.hpp:34
    +
    uint64 mediump_uint64_t
    Medium qualifier 64 bit unsigned integer type.
    Definition: fwd.hpp:141
    +
    vec< 1, u64, mediump > mediump_u64vec1
    Medium qualifier 64 bit unsigned integer scalar type.
    Definition: fwd.hpp:389
    +
    mat< 2, 2, f32, mediump > mediump_f32mat2
    Medium single-qualifier floating-point 1x1 matrix.
    Definition: fwd.hpp:544
    +
    uint8 mediump_uint8_t
    Medium qualifier 8 bit unsigned integer type.
    Definition: fwd.hpp:99
    +
    Definition: common.hpp:20
    +
    double mediump_f64
    Medium 64 bit double-qualifier floating-point scalar.
    Definition: fwd.hpp:164
    +
    vec< 1, float, mediump > mediump_fvec1
    Medium single-qualifier floating-point vector of 1 component.
    Definition: fwd.hpp:431
    +
    uint16 mediump_uint16
    Medium qualifier 16 bit unsigned integer type.
    Definition: fwd.hpp:109
    +
    vec< 4, u8, highp > highp_u8vec4
    High qualifier 8 bit unsigned integer vector of 4 components type.
    Definition: fwd.hpp:337
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00175.html b/external/glm-0.9.9.8/doc/api/a00175.html new file mode 100644 index 0000000..bb6ce55 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00175.html @@ -0,0 +1,249 @@ + + + + + + +0.9.9 API documentation: type_ptr.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    type_ptr.hpp File Reference
    +
    +
    + +

    GLM_GTC_type_ptr +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 3, T, defaultp > make_mat2x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 4, T, defaultp > make_mat2x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 2, T, defaultp > make_mat3x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 4, T, defaultp > make_mat3x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 2, T, defaultp > make_mat4x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 3, T, defaultp > make_mat4x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL qua< T, defaultp > make_quat (T const *const ptr)
     Build a quaternion from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > make_vec2 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > make_vec3 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 4, T, defaultp > make_vec4 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type const * value_ptr (genType const &v)
     Return the constant address to the data of the input parameter. More...
     
    +

    Detailed Description

    +

    GLM_GTC_type_ptr

    +
    See also
    Core features (dependence)
    +
    +GLM_GTC_quaternion (dependence)
    + +

    Definition in file type_ptr.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00175_source.html b/external/glm-0.9.9.8/doc/api/a00175_source.html new file mode 100644 index 0000000..6926253 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00175_source.html @@ -0,0 +1,247 @@ + + + + + + +0.9.9 API documentation: type_ptr.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_ptr.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    34 #pragma once
    +
    35 
    +
    36 // Dependency:
    +
    37 #include "../gtc/quaternion.hpp"
    +
    38 #include "../gtc/vec1.hpp"
    +
    39 #include "../vec2.hpp"
    +
    40 #include "../vec3.hpp"
    +
    41 #include "../vec4.hpp"
    +
    42 #include "../mat2x2.hpp"
    +
    43 #include "../mat2x3.hpp"
    +
    44 #include "../mat2x4.hpp"
    +
    45 #include "../mat3x2.hpp"
    +
    46 #include "../mat3x3.hpp"
    +
    47 #include "../mat3x4.hpp"
    +
    48 #include "../mat4x2.hpp"
    +
    49 #include "../mat4x3.hpp"
    +
    50 #include "../mat4x4.hpp"
    +
    51 #include <cstring>
    +
    52 
    +
    53 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    54 # pragma message("GLM: GLM_GTC_type_ptr extension included")
    +
    55 #endif
    +
    56 
    +
    57 namespace glm
    +
    58 {
    +
    61 
    +
    64  template<typename genType>
    +
    65  GLM_FUNC_DECL typename genType::value_type const * value_ptr(genType const& v);
    +
    66 
    +
    69  template <typename T, qualifier Q>
    +
    70  GLM_FUNC_DECL vec<1, T, Q> make_vec1(vec<1, T, Q> const& v);
    +
    71 
    +
    74  template <typename T, qualifier Q>
    +
    75  GLM_FUNC_DECL vec<1, T, Q> make_vec1(vec<2, T, Q> const& v);
    +
    76 
    +
    79  template <typename T, qualifier Q>
    +
    80  GLM_FUNC_DECL vec<1, T, Q> make_vec1(vec<3, T, Q> const& v);
    +
    81 
    +
    84  template <typename T, qualifier Q>
    +
    85  GLM_FUNC_DECL vec<1, T, Q> make_vec1(vec<4, T, Q> const& v);
    +
    86 
    +
    89  template <typename T, qualifier Q>
    +
    90  GLM_FUNC_DECL vec<2, T, Q> make_vec2(vec<1, T, Q> const& v);
    +
    91 
    +
    94  template <typename T, qualifier Q>
    +
    95  GLM_FUNC_DECL vec<2, T, Q> make_vec2(vec<2, T, Q> const& v);
    +
    96 
    +
    99  template <typename T, qualifier Q>
    +
    100  GLM_FUNC_DECL vec<2, T, Q> make_vec2(vec<3, T, Q> const& v);
    +
    101 
    +
    104  template <typename T, qualifier Q>
    +
    105  GLM_FUNC_DECL vec<2, T, Q> make_vec2(vec<4, T, Q> const& v);
    +
    106 
    +
    109  template <typename T, qualifier Q>
    +
    110  GLM_FUNC_DECL vec<3, T, Q> make_vec3(vec<1, T, Q> const& v);
    +
    111 
    +
    114  template <typename T, qualifier Q>
    +
    115  GLM_FUNC_DECL vec<3, T, Q> make_vec3(vec<2, T, Q> const& v);
    +
    116 
    +
    119  template <typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL vec<3, T, Q> make_vec3(vec<3, T, Q> const& v);
    +
    121 
    +
    124  template <typename T, qualifier Q>
    +
    125  GLM_FUNC_DECL vec<3, T, Q> make_vec3(vec<4, T, Q> const& v);
    +
    126 
    +
    129  template <typename T, qualifier Q>
    +
    130  GLM_FUNC_DECL vec<4, T, Q> make_vec4(vec<1, T, Q> const& v);
    +
    131 
    +
    134  template <typename T, qualifier Q>
    +
    135  GLM_FUNC_DECL vec<4, T, Q> make_vec4(vec<2, T, Q> const& v);
    +
    136 
    +
    139  template <typename T, qualifier Q>
    +
    140  GLM_FUNC_DECL vec<4, T, Q> make_vec4(vec<3, T, Q> const& v);
    +
    141 
    +
    144  template <typename T, qualifier Q>
    +
    145  GLM_FUNC_DECL vec<4, T, Q> make_vec4(vec<4, T, Q> const& v);
    +
    146 
    +
    149  template<typename T>
    +
    150  GLM_FUNC_DECL vec<2, T, defaultp> make_vec2(T const * const ptr);
    +
    151 
    +
    154  template<typename T>
    +
    155  GLM_FUNC_DECL vec<3, T, defaultp> make_vec3(T const * const ptr);
    +
    156 
    +
    159  template<typename T>
    +
    160  GLM_FUNC_DECL vec<4, T, defaultp> make_vec4(T const * const ptr);
    +
    161 
    +
    164  template<typename T>
    +
    165  GLM_FUNC_DECL mat<2, 2, T, defaultp> make_mat2x2(T const * const ptr);
    +
    166 
    +
    169  template<typename T>
    +
    170  GLM_FUNC_DECL mat<2, 3, T, defaultp> make_mat2x3(T const * const ptr);
    +
    171 
    +
    174  template<typename T>
    +
    175  GLM_FUNC_DECL mat<2, 4, T, defaultp> make_mat2x4(T const * const ptr);
    +
    176 
    +
    179  template<typename T>
    +
    180  GLM_FUNC_DECL mat<3, 2, T, defaultp> make_mat3x2(T const * const ptr);
    +
    181 
    +
    184  template<typename T>
    +
    185  GLM_FUNC_DECL mat<3, 3, T, defaultp> make_mat3x3(T const * const ptr);
    +
    186 
    +
    189  template<typename T>
    +
    190  GLM_FUNC_DECL mat<3, 4, T, defaultp> make_mat3x4(T const * const ptr);
    +
    191 
    +
    194  template<typename T>
    +
    195  GLM_FUNC_DECL mat<4, 2, T, defaultp> make_mat4x2(T const * const ptr);
    +
    196 
    +
    199  template<typename T>
    +
    200  GLM_FUNC_DECL mat<4, 3, T, defaultp> make_mat4x3(T const * const ptr);
    +
    201 
    +
    204  template<typename T>
    +
    205  GLM_FUNC_DECL mat<4, 4, T, defaultp> make_mat4x4(T const * const ptr);
    +
    206 
    +
    209  template<typename T>
    +
    210  GLM_FUNC_DECL mat<2, 2, T, defaultp> make_mat2(T const * const ptr);
    +
    211 
    +
    214  template<typename T>
    +
    215  GLM_FUNC_DECL mat<3, 3, T, defaultp> make_mat3(T const * const ptr);
    +
    216 
    +
    219  template<typename T>
    +
    220  GLM_FUNC_DECL mat<4, 4, T, defaultp> make_mat4(T const * const ptr);
    +
    221 
    +
    224  template<typename T>
    +
    225  GLM_FUNC_DECL qua<T, defaultp> make_quat(T const * const ptr);
    +
    226 
    +
    228 }//namespace glm
    +
    229 
    +
    230 #include "type_ptr.inl"
    +
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL vec< 3, T, defaultp > make_vec3(T const *const ptr)
    Build a vector from a pointer.
    +
    GLM_FUNC_DECL mat< 3, 2, T, defaultp > make_mat3x2(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1(vec< 4, T, Q > const &v)
    Build a vector from a pointer.
    +
    GLM_FUNC_DECL qua< T, defaultp > make_quat(T const *const ptr)
    Build a quaternion from a pointer.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL vec< 2, T, defaultp > make_vec2(T const *const ptr)
    Build a vector from a pointer.
    +
    GLM_FUNC_DECL mat< 2, 4, T, defaultp > make_mat2x4(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL genType::value_type const * value_ptr(genType const &v)
    Return the constant address to the data of the input parameter.
    +
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2x2(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 2, 3, T, defaultp > make_mat2x3(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 3, 4, T, defaultp > make_mat3x4(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL vec< 4, T, defaultp > make_vec4(T const *const ptr)
    Build a vector from a pointer.
    +
    GLM_FUNC_DECL mat< 4, 3, T, defaultp > make_mat4x3(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3x3(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4x4(T const *const ptr)
    Build a matrix from a pointer.
    +
    GLM_FUNC_DECL mat< 4, 2, T, defaultp > make_mat4x2(T const *const ptr)
    Build a matrix from a pointer.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00176.html b/external/glm-0.9.9.8/doc/api/a00176.html new file mode 100644 index 0000000..6028761 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00176.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_quat.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_quat.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_quat.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00176_source.html b/external/glm-0.9.9.8/doc/api/a00176_source.html new file mode 100644 index 0000000..cd2b4fb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00176_source.html @@ -0,0 +1,269 @@ + + + + + + +0.9.9 API documentation: type_quat.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_quat.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 // Dependency:
    +
    7 #include "../detail/type_mat3x3.hpp"
    +
    8 #include "../detail/type_mat4x4.hpp"
    +
    9 #include "../detail/type_vec3.hpp"
    +
    10 #include "../detail/type_vec4.hpp"
    +
    11 #include "../ext/vector_relational.hpp"
    +
    12 #include "../ext/quaternion_relational.hpp"
    +
    13 #include "../gtc/constants.hpp"
    +
    14 #include "../gtc/matrix_transform.hpp"
    +
    15 
    +
    16 namespace glm
    +
    17 {
    +
    18  template<typename T, qualifier Q>
    +
    19  struct qua
    +
    20  {
    +
    21  // -- Implementation detail --
    +
    22 
    +
    23  typedef qua<T, Q> type;
    +
    24  typedef T value_type;
    +
    25 
    +
    26  // -- Data --
    +
    27 
    +
    28 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    29 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    30 # pragma GCC diagnostic push
    +
    31 # pragma GCC diagnostic ignored "-Wpedantic"
    +
    32 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    33 # pragma clang diagnostic push
    +
    34 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
    +
    35 # pragma clang diagnostic ignored "-Wnested-anon-types"
    +
    36 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    37 # pragma warning(push)
    +
    38 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
    +
    39 # endif
    +
    40 # endif
    +
    41 
    +
    42 # if GLM_LANG & GLM_LANG_CXXMS_FLAG
    +
    43  union
    +
    44  {
    +
    45  struct { T x, y, z, w;};
    +
    46 
    +
    47  typename detail::storage<4, T, detail::is_aligned<Q>::value>::type data;
    +
    48  };
    +
    49 # else
    +
    50  T x, y, z, w;
    +
    51 # endif
    +
    52 
    +
    53 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    54 # if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    55 # pragma clang diagnostic pop
    +
    56 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    57 # pragma GCC diagnostic pop
    +
    58 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    59 # pragma warning(pop)
    +
    60 # endif
    +
    61 # endif
    +
    62 
    +
    63  // -- Component accesses --
    +
    64 
    +
    65  typedef length_t length_type;
    +
    66 
    +
    68  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 4;}
    +
    69 
    +
    70  GLM_FUNC_DECL GLM_CONSTEXPR T & operator[](length_type i);
    +
    71  GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
    +
    72 
    +
    73  // -- Implicit basic constructors --
    +
    74 
    +
    75  GLM_FUNC_DECL GLM_CONSTEXPR qua() GLM_DEFAULT;
    +
    76  GLM_FUNC_DECL GLM_CONSTEXPR qua(qua<T, Q> const& q) GLM_DEFAULT;
    +
    77  template<qualifier P>
    +
    78  GLM_FUNC_DECL GLM_CONSTEXPR qua(qua<T, P> const& q);
    +
    79 
    +
    80  // -- Explicit basic constructors --
    +
    81 
    +
    82  GLM_FUNC_DECL GLM_CONSTEXPR qua(T s, vec<3, T, Q> const& v);
    +
    83  GLM_FUNC_DECL GLM_CONSTEXPR qua(T w, T x, T y, T z);
    +
    84 
    +
    85  // -- Conversion constructors --
    +
    86 
    +
    87  template<typename U, qualifier P>
    +
    88  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT qua(qua<U, P> const& q);
    +
    89 
    +
    91 # if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
    +
    92  GLM_FUNC_DECL explicit operator mat<3, 3, T, Q>() const;
    +
    93  GLM_FUNC_DECL explicit operator mat<4, 4, T, Q>() const;
    +
    94 # endif
    +
    95 
    +
    102  GLM_FUNC_DECL qua(vec<3, T, Q> const& u, vec<3, T, Q> const& v);
    +
    103 
    +
    105  GLM_FUNC_DECL GLM_EXPLICIT qua(vec<3, T, Q> const& eulerAngles);
    +
    106  GLM_FUNC_DECL GLM_EXPLICIT qua(mat<3, 3, T, Q> const& q);
    +
    107  GLM_FUNC_DECL GLM_EXPLICIT qua(mat<4, 4, T, Q> const& q);
    +
    108 
    +
    109  // -- Unary arithmetic operators --
    +
    110 
    +
    111  GLM_FUNC_DECL qua<T, Q>& operator=(qua<T, Q> const& q) GLM_DEFAULT;
    +
    112 
    +
    113  template<typename U>
    +
    114  GLM_FUNC_DECL qua<T, Q>& operator=(qua<U, Q> const& q);
    +
    115  template<typename U>
    +
    116  GLM_FUNC_DECL qua<T, Q>& operator+=(qua<U, Q> const& q);
    +
    117  template<typename U>
    +
    118  GLM_FUNC_DECL qua<T, Q>& operator-=(qua<U, Q> const& q);
    +
    119  template<typename U>
    +
    120  GLM_FUNC_DECL qua<T, Q>& operator*=(qua<U, Q> const& q);
    +
    121  template<typename U>
    +
    122  GLM_FUNC_DECL qua<T, Q>& operator*=(U s);
    +
    123  template<typename U>
    +
    124  GLM_FUNC_DECL qua<T, Q>& operator/=(U s);
    +
    125  };
    +
    126 
    +
    127  // -- Unary bit operators --
    +
    128 
    +
    129  template<typename T, qualifier Q>
    +
    130  GLM_FUNC_DECL qua<T, Q> operator+(qua<T, Q> const& q);
    +
    131 
    +
    132  template<typename T, qualifier Q>
    +
    133  GLM_FUNC_DECL qua<T, Q> operator-(qua<T, Q> const& q);
    +
    134 
    +
    135  // -- Binary operators --
    +
    136 
    +
    137  template<typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL qua<T, Q> operator+(qua<T, Q> const& q, qua<T, Q> const& p);
    +
    139 
    +
    140  template<typename T, qualifier Q>
    +
    141  GLM_FUNC_DECL qua<T, Q> operator-(qua<T, Q> const& q, qua<T, Q> const& p);
    +
    142 
    +
    143  template<typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL qua<T, Q> operator*(qua<T, Q> const& q, qua<T, Q> const& p);
    +
    145 
    +
    146  template<typename T, qualifier Q>
    +
    147  GLM_FUNC_DECL vec<3, T, Q> operator*(qua<T, Q> const& q, vec<3, T, Q> const& v);
    +
    148 
    +
    149  template<typename T, qualifier Q>
    +
    150  GLM_FUNC_DECL vec<3, T, Q> operator*(vec<3, T, Q> const& v, qua<T, Q> const& q);
    +
    151 
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_FUNC_DECL vec<4, T, Q> operator*(qua<T, Q> const& q, vec<4, T, Q> const& v);
    +
    154 
    +
    155  template<typename T, qualifier Q>
    +
    156  GLM_FUNC_DECL vec<4, T, Q> operator*(vec<4, T, Q> const& v, qua<T, Q> const& q);
    +
    157 
    +
    158  template<typename T, qualifier Q>
    +
    159  GLM_FUNC_DECL qua<T, Q> operator*(qua<T, Q> const& q, T const& s);
    +
    160 
    +
    161  template<typename T, qualifier Q>
    +
    162  GLM_FUNC_DECL qua<T, Q> operator*(T const& s, qua<T, Q> const& q);
    +
    163 
    +
    164  template<typename T, qualifier Q>
    +
    165  GLM_FUNC_DECL qua<T, Q> operator/(qua<T, Q> const& q, T const& s);
    +
    166 
    +
    167  // -- Boolean operators --
    +
    168 
    +
    169  template<typename T, qualifier Q>
    +
    170  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(qua<T, Q> const& q1, qua<T, Q> const& q2);
    +
    171 
    +
    172  template<typename T, qualifier Q>
    +
    173  GLM_FUNC_DECL GLM_CONSTEXPR bool operator!=(qua<T, Q> const& q1, qua<T, Q> const& q2);
    +
    174 } //namespace glm
    +
    175 
    +
    176 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    177 #include "type_quat.inl"
    +
    178 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL vec< 3, T, Q > eulerAngles(qua< T, Q > const &x)
    Returns euler angles, pitch as x, yaw as y, roll as z.
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00177.html b/external/glm-0.9.9.8/doc/api/a00177.html new file mode 100644 index 0000000..326706a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00177.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: type_trait.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_trait.hpp File Reference
    +
    +
    + +

    GLM_GTX_type_trait +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTX_type_trait

    +
    See also
    Core features (dependence)
    + +

    Definition in file type_trait.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00177_source.html b/external/glm-0.9.9.8/doc/api/a00177_source.html new file mode 100644 index 0000000..8ac5390 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00177_source.html @@ -0,0 +1,171 @@ + + + + + + +0.9.9 API documentation: type_trait.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_trait.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    16 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    17 # pragma message("GLM: GLM_GTX_type_trait is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    18 # else
    +
    19 # pragma message("GLM: GLM_GTX_type_trait extension included")
    +
    20 # endif
    +
    21 #endif
    +
    22 
    +
    23 // Dependency:
    +
    24 #include "../detail/qualifier.hpp"
    +
    25 #include "../gtc/quaternion.hpp"
    +
    26 #include "../gtx/dual_quaternion.hpp"
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    33  template<typename T>
    +
    34  struct type
    +
    35  {
    +
    36  static bool const is_vec = false;
    +
    37  static bool const is_mat = false;
    +
    38  static bool const is_quat = false;
    +
    39  static length_t const components = 0;
    +
    40  static length_t const cols = 0;
    +
    41  static length_t const rows = 0;
    +
    42  };
    +
    43 
    +
    44  template<length_t L, typename T, qualifier Q>
    +
    45  struct type<vec<L, T, Q> >
    +
    46  {
    +
    47  static bool const is_vec = true;
    +
    48  static bool const is_mat = false;
    +
    49  static bool const is_quat = false;
    +
    50  static length_t const components = L;
    +
    51  };
    +
    52 
    +
    53  template<length_t C, length_t R, typename T, qualifier Q>
    +
    54  struct type<mat<C, R, T, Q> >
    +
    55  {
    +
    56  static bool const is_vec = false;
    +
    57  static bool const is_mat = true;
    +
    58  static bool const is_quat = false;
    +
    59  static length_t const components = C;
    +
    60  static length_t const cols = C;
    +
    61  static length_t const rows = R;
    +
    62  };
    +
    63 
    +
    64  template<typename T, qualifier Q>
    +
    65  struct type<qua<T, Q> >
    +
    66  {
    +
    67  static bool const is_vec = false;
    +
    68  static bool const is_mat = false;
    +
    69  static bool const is_quat = true;
    +
    70  static length_t const components = 4;
    +
    71  };
    +
    72 
    +
    73  template<typename T, qualifier Q>
    +
    74  struct type<tdualquat<T, Q> >
    +
    75  {
    +
    76  static bool const is_vec = false;
    +
    77  static bool const is_mat = false;
    +
    78  static bool const is_quat = true;
    +
    79  static length_t const components = 8;
    +
    80  };
    +
    81 
    +
    83 }//namespace glm
    +
    84 
    +
    85 #include "type_trait.inl"
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00178.html b/external/glm-0.9.9.8/doc/api/a00178.html new file mode 100644 index 0000000..6c174a4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00178.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_vec1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec1.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_vec1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00178_source.html b/external/glm-0.9.9.8/doc/api/a00178_source.html new file mode 100644 index 0000000..08dc3db --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00178_source.html @@ -0,0 +1,402 @@ + + + + + + +0.9.9 API documentation: type_vec1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "qualifier.hpp"
    +
    7 #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    8 # include "_swizzle.hpp"
    +
    9 #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    10 # include "_swizzle_func.hpp"
    +
    11 #endif
    +
    12 #include <cstddef>
    +
    13 
    +
    14 namespace glm
    +
    15 {
    +
    16  template<typename T, qualifier Q>
    +
    17  struct vec<1, T, Q>
    +
    18  {
    +
    19  // -- Implementation detail --
    +
    20 
    +
    21  typedef T value_type;
    +
    22  typedef vec<1, T, Q> type;
    +
    23  typedef vec<1, bool, Q> bool_type;
    +
    24 
    +
    25  // -- Data --
    +
    26 
    +
    27 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    28 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    29 # pragma GCC diagnostic push
    +
    30 # pragma GCC diagnostic ignored "-Wpedantic"
    +
    31 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    32 # pragma clang diagnostic push
    +
    33 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
    +
    34 # pragma clang diagnostic ignored "-Wnested-anon-types"
    +
    35 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    36 # pragma warning(push)
    +
    37 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
    +
    38 # endif
    +
    39 # endif
    +
    40 
    +
    41 # if GLM_CONFIG_XYZW_ONLY
    +
    42  T x;
    +
    43 # elif GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
    +
    44  union
    +
    45  {
    +
    46  T x;
    +
    47  T r;
    +
    48  T s;
    +
    49 
    +
    50  typename detail::storage<1, T, detail::is_aligned<Q>::value>::type data;
    +
    51 /*
    +
    52 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    53  _GLM_SWIZZLE1_2_MEMBERS(T, Q, x)
    +
    54  _GLM_SWIZZLE1_2_MEMBERS(T, Q, r)
    +
    55  _GLM_SWIZZLE1_2_MEMBERS(T, Q, s)
    +
    56  _GLM_SWIZZLE1_3_MEMBERS(T, Q, x)
    +
    57  _GLM_SWIZZLE1_3_MEMBERS(T, Q, r)
    +
    58  _GLM_SWIZZLE1_3_MEMBERS(T, Q, s)
    +
    59  _GLM_SWIZZLE1_4_MEMBERS(T, Q, x)
    +
    60  _GLM_SWIZZLE1_4_MEMBERS(T, Q, r)
    +
    61  _GLM_SWIZZLE1_4_MEMBERS(T, Q, s)
    +
    62 # endif
    +
    63 */
    +
    64  };
    +
    65 # else
    +
    66  union {T x, r, s;};
    +
    67 /*
    +
    68 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    69  GLM_SWIZZLE_GEN_VEC_FROM_VEC1(T, Q)
    +
    70 # endif
    +
    71 */
    +
    72 # endif
    +
    73 
    +
    74 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    75 # if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    76 # pragma clang diagnostic pop
    +
    77 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    78 # pragma GCC diagnostic pop
    +
    79 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    80 # pragma warning(pop)
    +
    81 # endif
    +
    82 # endif
    +
    83 
    +
    84  // -- Component accesses --
    +
    85 
    +
    87  typedef length_t length_type;
    +
    88  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 1;}
    +
    89 
    +
    90  GLM_FUNC_DECL GLM_CONSTEXPR T & operator[](length_type i);
    +
    91  GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
    +
    92 
    +
    93  // -- Implicit basic constructors --
    +
    94 
    +
    95  GLM_FUNC_DECL GLM_CONSTEXPR vec() GLM_DEFAULT;
    +
    96  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
    +
    97  template<qualifier P>
    +
    98  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, T, P> const& v);
    +
    99 
    +
    100  // -- Explicit basic constructors --
    +
    101 
    +
    102  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
    +
    103 
    +
    104  // -- Conversion vector constructors --
    +
    105 
    +
    107  template<typename U, qualifier P>
    +
    108  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<2, U, P> const& v);
    +
    110  template<typename U, qualifier P>
    +
    111  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
    +
    113  template<typename U, qualifier P>
    +
    114  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
    +
    115 
    +
    117  template<typename U, qualifier P>
    +
    118  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<1, U, P> const& v);
    +
    119 
    +
    120  // -- Swizzle constructors --
    +
    121 /*
    +
    122 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    123  template<int E0>
    +
    124  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<1, T, Q, E0, -1,-2,-3> const& that)
    +
    125  {
    +
    126  *this = that();
    +
    127  }
    +
    128 # endif//GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    129 */
    +
    130  // -- Unary arithmetic operators --
    +
    131 
    +
    132  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec const& v) GLM_DEFAULT;
    +
    133 
    +
    134  template<typename U>
    +
    135  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec<1, U, Q> const& v);
    +
    136  template<typename U>
    +
    137  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(U scalar);
    +
    138  template<typename U>
    +
    139  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(vec<1, U, Q> const& v);
    +
    140  template<typename U>
    +
    141  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(U scalar);
    +
    142  template<typename U>
    +
    143  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(vec<1, U, Q> const& v);
    +
    144  template<typename U>
    +
    145  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(U scalar);
    +
    146  template<typename U>
    +
    147  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(vec<1, U, Q> const& v);
    +
    148  template<typename U>
    +
    149  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(U scalar);
    +
    150  template<typename U>
    +
    151  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(vec<1, U, Q> const& v);
    +
    152 
    +
    153  // -- Increment and decrement operators --
    +
    154 
    +
    155  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator++();
    +
    156  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator--();
    +
    157  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator++(int);
    +
    158  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator--(int);
    +
    159 
    +
    160  // -- Unary bit operators --
    +
    161 
    +
    162  template<typename U>
    +
    163  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(U scalar);
    +
    164  template<typename U>
    +
    165  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(vec<1, U, Q> const& v);
    +
    166  template<typename U>
    +
    167  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(U scalar);
    +
    168  template<typename U>
    +
    169  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(vec<1, U, Q> const& v);
    +
    170  template<typename U>
    +
    171  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(U scalar);
    +
    172  template<typename U>
    +
    173  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(vec<1, U, Q> const& v);
    +
    174  template<typename U>
    +
    175  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(U scalar);
    +
    176  template<typename U>
    +
    177  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(vec<1, U, Q> const& v);
    +
    178  template<typename U>
    +
    179  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(U scalar);
    +
    180  template<typename U>
    +
    181  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(vec<1, U, Q> const& v);
    +
    182  template<typename U>
    +
    183  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(U scalar);
    +
    184  template<typename U>
    +
    185  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(vec<1, U, Q> const& v);
    +
    186  };
    +
    187 
    +
    188  // -- Unary operators --
    +
    189 
    +
    190  template<typename T, qualifier Q>
    +
    191  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator+(vec<1, T, Q> const& v);
    +
    192 
    +
    193  template<typename T, qualifier Q>
    +
    194  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator-(vec<1, T, Q> const& v);
    +
    195 
    +
    196  // -- Binary operators --
    +
    197 
    +
    198  template<typename T, qualifier Q>
    +
    199  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator+(vec<1, T, Q> const& v, T scalar);
    +
    200 
    +
    201  template<typename T, qualifier Q>
    +
    202  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator+(T scalar, vec<1, T, Q> const& v);
    +
    203 
    +
    204  template<typename T, qualifier Q>
    +
    205  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator+(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    206 
    +
    207  template<typename T, qualifier Q>
    +
    208  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator-(vec<1, T, Q> const& v, T scalar);
    +
    209 
    +
    210  template<typename T, qualifier Q>
    +
    211  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator-(T scalar, vec<1, T, Q> const& v);
    +
    212 
    +
    213  template<typename T, qualifier Q>
    +
    214  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator-(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    215 
    +
    216  template<typename T, qualifier Q>
    +
    217  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator*(vec<1, T, Q> const& v, T scalar);
    +
    218 
    +
    219  template<typename T, qualifier Q>
    +
    220  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator*(T scalar, vec<1, T, Q> const& v);
    +
    221 
    +
    222  template<typename T, qualifier Q>
    +
    223  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator*(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    224 
    +
    225  template<typename T, qualifier Q>
    +
    226  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator/(vec<1, T, Q> const& v, T scalar);
    +
    227 
    +
    228  template<typename T, qualifier Q>
    +
    229  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator/(T scalar, vec<1, T, Q> const& v);
    +
    230 
    +
    231  template<typename T, qualifier Q>
    +
    232  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator/(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    233 
    +
    234  template<typename T, qualifier Q>
    +
    235  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator%(vec<1, T, Q> const& v, T scalar);
    +
    236 
    +
    237  template<typename T, qualifier Q>
    +
    238  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator%(T scalar, vec<1, T, Q> const& v);
    +
    239 
    +
    240  template<typename T, qualifier Q>
    +
    241  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator%(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    242 
    +
    243  template<typename T, qualifier Q>
    +
    244  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator&(vec<1, T, Q> const& v, T scalar);
    +
    245 
    +
    246  template<typename T, qualifier Q>
    +
    247  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator&(T scalar, vec<1, T, Q> const& v);
    +
    248 
    +
    249  template<typename T, qualifier Q>
    +
    250  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator&(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    251 
    +
    252  template<typename T, qualifier Q>
    +
    253  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator|(vec<1, T, Q> const& v, T scalar);
    +
    254 
    +
    255  template<typename T, qualifier Q>
    +
    256  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator|(T scalar, vec<1, T, Q> const& v);
    +
    257 
    +
    258  template<typename T, qualifier Q>
    +
    259  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator|(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    260 
    +
    261  template<typename T, qualifier Q>
    +
    262  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator^(vec<1, T, Q> const& v, T scalar);
    +
    263 
    +
    264  template<typename T, qualifier Q>
    +
    265  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator^(T scalar, vec<1, T, Q> const& v);
    +
    266 
    +
    267  template<typename T, qualifier Q>
    +
    268  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator^(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    269 
    +
    270  template<typename T, qualifier Q>
    +
    271  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator<<(vec<1, T, Q> const& v, T scalar);
    +
    272 
    +
    273  template<typename T, qualifier Q>
    +
    274  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator<<(T scalar, vec<1, T, Q> const& v);
    +
    275 
    +
    276  template<typename T, qualifier Q>
    +
    277  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator<<(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    278 
    +
    279  template<typename T, qualifier Q>
    +
    280  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator>>(vec<1, T, Q> const& v, T scalar);
    +
    281 
    +
    282  template<typename T, qualifier Q>
    +
    283  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator>>(T scalar, vec<1, T, Q> const& v);
    +
    284 
    +
    285  template<typename T, qualifier Q>
    +
    286  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator>>(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    287 
    +
    288  template<typename T, qualifier Q>
    +
    289  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator~(vec<1, T, Q> const& v);
    +
    290 
    +
    291  // -- Boolean operators --
    +
    292 
    +
    293  template<typename T, qualifier Q>
    +
    294  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    295 
    +
    296  template<typename T, qualifier Q>
    +
    297  GLM_FUNC_DECL GLM_CONSTEXPR bool operator!=(vec<1, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    298 
    +
    299  template<qualifier Q>
    +
    300  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, bool, Q> operator&&(vec<1, bool, Q> const& v1, vec<1, bool, Q> const& v2);
    +
    301 
    +
    302  template<qualifier Q>
    +
    303  GLM_FUNC_DECL GLM_CONSTEXPR vec<1, bool, Q> operator||(vec<1, bool, Q> const& v1, vec<1, bool, Q> const& v2);
    +
    304 }//namespace glm
    +
    305 
    +
    306 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    307 #include "type_vec1.inl"
    +
    308 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00179.html b/external/glm-0.9.9.8/doc/api/a00179.html new file mode 100644 index 0000000..8592261 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00179.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_vec2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_vec2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00179_source.html b/external/glm-0.9.9.8/doc/api/a00179_source.html new file mode 100644 index 0000000..f5b4bb3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00179_source.html @@ -0,0 +1,493 @@ + + + + + + +0.9.9 API documentation: type_vec2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "qualifier.hpp"
    +
    7 #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    8 # include "_swizzle.hpp"
    +
    9 #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    10 # include "_swizzle_func.hpp"
    +
    11 #endif
    +
    12 #include <cstddef>
    +
    13 
    +
    14 namespace glm
    +
    15 {
    +
    16  template<typename T, qualifier Q>
    +
    17  struct vec<2, T, Q>
    +
    18  {
    +
    19  // -- Implementation detail --
    +
    20 
    +
    21  typedef T value_type;
    +
    22  typedef vec<2, T, Q> type;
    +
    23  typedef vec<2, bool, Q> bool_type;
    +
    24 
    +
    25  // -- Data --
    +
    26 
    +
    27 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    28 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    29 # pragma GCC diagnostic push
    +
    30 # pragma GCC diagnostic ignored "-Wpedantic"
    +
    31 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    32 # pragma clang diagnostic push
    +
    33 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
    +
    34 # pragma clang diagnostic ignored "-Wnested-anon-types"
    +
    35 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    36 # pragma warning(push)
    +
    37 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
    +
    38 # endif
    +
    39 # endif
    +
    40 
    +
    41 # if GLM_CONFIG_XYZW_ONLY
    +
    42  T x, y;
    +
    43 # elif GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
    +
    44  union
    +
    45  {
    +
    46  struct{ T x, y; };
    +
    47  struct{ T r, g; };
    +
    48  struct{ T s, t; };
    +
    49 
    +
    50  typename detail::storage<2, T, detail::is_aligned<Q>::value>::type data;
    +
    51 
    +
    52 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    53  GLM_SWIZZLE2_2_MEMBERS(T, Q, x, y)
    +
    54  GLM_SWIZZLE2_2_MEMBERS(T, Q, r, g)
    +
    55  GLM_SWIZZLE2_2_MEMBERS(T, Q, s, t)
    +
    56  GLM_SWIZZLE2_3_MEMBERS(T, Q, x, y)
    +
    57  GLM_SWIZZLE2_3_MEMBERS(T, Q, r, g)
    +
    58  GLM_SWIZZLE2_3_MEMBERS(T, Q, s, t)
    +
    59  GLM_SWIZZLE2_4_MEMBERS(T, Q, x, y)
    +
    60  GLM_SWIZZLE2_4_MEMBERS(T, Q, r, g)
    +
    61  GLM_SWIZZLE2_4_MEMBERS(T, Q, s, t)
    +
    62 # endif
    +
    63  };
    +
    64 # else
    +
    65  union {T x, r, s;};
    +
    66  union {T y, g, t;};
    +
    67 
    +
    68 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    69  GLM_SWIZZLE_GEN_VEC_FROM_VEC2(T, Q)
    +
    70 # endif//GLM_CONFIG_SWIZZLE
    +
    71 # endif
    +
    72 
    +
    73 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    74 # if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    75 # pragma clang diagnostic pop
    +
    76 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    77 # pragma GCC diagnostic pop
    +
    78 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    79 # pragma warning(pop)
    +
    80 # endif
    +
    81 # endif
    +
    82 
    +
    83  // -- Component accesses --
    +
    84 
    +
    86  typedef length_t length_type;
    +
    87  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 2;}
    +
    88 
    +
    89  GLM_FUNC_DECL GLM_CONSTEXPR T& operator[](length_type i);
    +
    90  GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
    +
    91 
    +
    92  // -- Implicit basic constructors --
    +
    93 
    +
    94  GLM_FUNC_DECL GLM_CONSTEXPR vec() GLM_DEFAULT;
    +
    95  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
    +
    96  template<qualifier P>
    +
    97  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, T, P> const& v);
    +
    98 
    +
    99  // -- Explicit basic constructors --
    +
    100 
    +
    101  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
    +
    102  GLM_FUNC_DECL GLM_CONSTEXPR vec(T x, T y);
    +
    103 
    +
    104  // -- Conversion constructors --
    +
    105 
    +
    106  template<typename U, qualifier P>
    +
    107  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
    +
    108 
    +
    110  template<typename A, typename B>
    +
    111  GLM_FUNC_DECL GLM_CONSTEXPR vec(A x, B y);
    +
    112  template<typename A, typename B>
    +
    113  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, Q> const& x, B y);
    +
    114  template<typename A, typename B>
    +
    115  GLM_FUNC_DECL GLM_CONSTEXPR vec(A x, vec<1, B, Q> const& y);
    +
    116  template<typename A, typename B>
    +
    117  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, Q> const& x, vec<1, B, Q> const& y);
    +
    118 
    +
    119  // -- Conversion vector constructors --
    +
    120 
    +
    122  template<typename U, qualifier P>
    +
    123  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
    +
    125  template<typename U, qualifier P>
    +
    126  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
    +
    127 
    +
    129  template<typename U, qualifier P>
    +
    130  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<2, U, P> const& v);
    +
    131 
    +
    132  // -- Swizzle constructors --
    +
    133 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    134  template<int E0, int E1>
    +
    135  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1,-1,-2> const& that)
    +
    136  {
    +
    137  *this = that();
    +
    138  }
    +
    139 # endif//GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    140 
    +
    141  // -- Unary arithmetic operators --
    +
    142 
    +
    143  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec const& v) GLM_DEFAULT;
    +
    144 
    +
    145  template<typename U>
    +
    146  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec<2, U, Q> const& v);
    +
    147  template<typename U>
    +
    148  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(U scalar);
    +
    149  template<typename U>
    +
    150  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<1, U, Q> const& v);
    +
    151  template<typename U>
    +
    152  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<2, U, Q> const& v);
    +
    153  template<typename U>
    +
    154  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(U scalar);
    +
    155  template<typename U>
    +
    156  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<1, U, Q> const& v);
    +
    157  template<typename U>
    +
    158  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<2, U, Q> const& v);
    +
    159  template<typename U>
    +
    160  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(U scalar);
    +
    161  template<typename U>
    +
    162  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<1, U, Q> const& v);
    +
    163  template<typename U>
    +
    164  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<2, U, Q> const& v);
    +
    165  template<typename U>
    +
    166  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(U scalar);
    +
    167  template<typename U>
    +
    168  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<1, U, Q> const& v);
    +
    169  template<typename U>
    +
    170  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<2, U, Q> const& v);
    +
    171 
    +
    172  // -- Increment and decrement operators --
    +
    173 
    +
    174  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator++();
    +
    175  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator--();
    +
    176  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator++(int);
    +
    177  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator--(int);
    +
    178 
    +
    179  // -- Unary bit operators --
    +
    180 
    +
    181  template<typename U>
    +
    182  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(U scalar);
    +
    183  template<typename U>
    +
    184  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<1, U, Q> const& v);
    +
    185  template<typename U>
    +
    186  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<2, U, Q> const& v);
    +
    187  template<typename U>
    +
    188  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(U scalar);
    +
    189  template<typename U>
    +
    190  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<1, U, Q> const& v);
    +
    191  template<typename U>
    +
    192  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<2, U, Q> const& v);
    +
    193  template<typename U>
    +
    194  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(U scalar);
    +
    195  template<typename U>
    +
    196  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<1, U, Q> const& v);
    +
    197  template<typename U>
    +
    198  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<2, U, Q> const& v);
    +
    199  template<typename U>
    +
    200  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(U scalar);
    +
    201  template<typename U>
    +
    202  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<1, U, Q> const& v);
    +
    203  template<typename U>
    +
    204  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<2, U, Q> const& v);
    +
    205  template<typename U>
    +
    206  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(U scalar);
    +
    207  template<typename U>
    +
    208  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<1, U, Q> const& v);
    +
    209  template<typename U>
    +
    210  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<2, U, Q> const& v);
    +
    211  template<typename U>
    +
    212  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(U scalar);
    +
    213  template<typename U>
    +
    214  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<1, U, Q> const& v);
    +
    215  template<typename U>
    +
    216  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<2, U, Q> const& v);
    +
    217  };
    +
    218 
    +
    219  // -- Unary operators --
    +
    220 
    +
    221  template<typename T, qualifier Q>
    +
    222  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(vec<2, T, Q> const& v);
    +
    223 
    +
    224  template<typename T, qualifier Q>
    +
    225  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(vec<2, T, Q> const& v);
    +
    226 
    +
    227  // -- Binary operators --
    +
    228 
    +
    229  template<typename T, qualifier Q>
    +
    230  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(vec<2, T, Q> const& v, T scalar);
    +
    231 
    +
    232  template<typename T, qualifier Q>
    +
    233  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    234 
    +
    235  template<typename T, qualifier Q>
    +
    236  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(T scalar, vec<2, T, Q> const& v);
    +
    237 
    +
    238  template<typename T, qualifier Q>
    +
    239  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    240 
    +
    241  template<typename T, qualifier Q>
    +
    242  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator+(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    243 
    +
    244  template<typename T, qualifier Q>
    +
    245  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(vec<2, T, Q> const& v, T scalar);
    +
    246 
    +
    247  template<typename T, qualifier Q>
    +
    248  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    249 
    +
    250  template<typename T, qualifier Q>
    +
    251  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(T scalar, vec<2, T, Q> const& v);
    +
    252 
    +
    253  template<typename T, qualifier Q>
    +
    254  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    255 
    +
    256  template<typename T, qualifier Q>
    +
    257  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator-(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    258 
    +
    259  template<typename T, qualifier Q>
    +
    260  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator*(vec<2, T, Q> const& v, T scalar);
    +
    261 
    +
    262  template<typename T, qualifier Q>
    +
    263  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator*(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    264 
    +
    265  template<typename T, qualifier Q>
    +
    266  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator*(T scalar, vec<2, T, Q> const& v);
    +
    267 
    +
    268  template<typename T, qualifier Q>
    +
    269  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator*(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    270 
    +
    271  template<typename T, qualifier Q>
    +
    272  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator*(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    273 
    +
    274  template<typename T, qualifier Q>
    +
    275  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator/(vec<2, T, Q> const& v, T scalar);
    +
    276 
    +
    277  template<typename T, qualifier Q>
    +
    278  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator/(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    279 
    +
    280  template<typename T, qualifier Q>
    +
    281  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator/(T scalar, vec<2, T, Q> const& v);
    +
    282 
    +
    283  template<typename T, qualifier Q>
    +
    284  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator/(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    285 
    +
    286  template<typename T, qualifier Q>
    +
    287  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator/(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    288 
    +
    289  template<typename T, qualifier Q>
    +
    290  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator%(vec<2, T, Q> const& v, T scalar);
    +
    291 
    +
    292  template<typename T, qualifier Q>
    +
    293  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator%(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    294 
    +
    295  template<typename T, qualifier Q>
    +
    296  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator%(T scalar, vec<2, T, Q> const& v);
    +
    297 
    +
    298  template<typename T, qualifier Q>
    +
    299  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator%(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    300 
    +
    301  template<typename T, qualifier Q>
    +
    302  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator%(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    303 
    +
    304  template<typename T, qualifier Q>
    +
    305  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator&(vec<2, T, Q> const& v, T scalar);
    +
    306 
    +
    307  template<typename T, qualifier Q>
    +
    308  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator&(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    309 
    +
    310  template<typename T, qualifier Q>
    +
    311  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator&(T scalar, vec<2, T, Q> const& v);
    +
    312 
    +
    313  template<typename T, qualifier Q>
    +
    314  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator&(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    315 
    +
    316  template<typename T, qualifier Q>
    +
    317  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator&(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    318 
    +
    319  template<typename T, qualifier Q>
    +
    320  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator|(vec<2, T, Q> const& v, T scalar);
    +
    321 
    +
    322  template<typename T, qualifier Q>
    +
    323  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator|(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    324 
    +
    325  template<typename T, qualifier Q>
    +
    326  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator|(T scalar, vec<2, T, Q> const& v);
    +
    327 
    +
    328  template<typename T, qualifier Q>
    +
    329  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator|(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    330 
    +
    331  template<typename T, qualifier Q>
    +
    332  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator|(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    333 
    +
    334  template<typename T, qualifier Q>
    +
    335  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator^(vec<2, T, Q> const& v, T scalar);
    +
    336 
    +
    337  template<typename T, qualifier Q>
    +
    338  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator^(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    339 
    +
    340  template<typename T, qualifier Q>
    +
    341  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator^(T scalar, vec<2, T, Q> const& v);
    +
    342 
    +
    343  template<typename T, qualifier Q>
    +
    344  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator^(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    345 
    +
    346  template<typename T, qualifier Q>
    +
    347  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator^(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    348 
    +
    349  template<typename T, qualifier Q>
    +
    350  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator<<(vec<2, T, Q> const& v, T scalar);
    +
    351 
    +
    352  template<typename T, qualifier Q>
    +
    353  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator<<(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    354 
    +
    355  template<typename T, qualifier Q>
    +
    356  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator<<(T scalar, vec<2, T, Q> const& v);
    +
    357 
    +
    358  template<typename T, qualifier Q>
    +
    359  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator<<(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    360 
    +
    361  template<typename T, qualifier Q>
    +
    362  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator<<(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    363 
    +
    364  template<typename T, qualifier Q>
    +
    365  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator>>(vec<2, T, Q> const& v, T scalar);
    +
    366 
    +
    367  template<typename T, qualifier Q>
    +
    368  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator>>(vec<2, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    369 
    +
    370  template<typename T, qualifier Q>
    +
    371  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator>>(T scalar, vec<2, T, Q> const& v);
    +
    372 
    +
    373  template<typename T, qualifier Q>
    +
    374  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator>>(vec<1, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    375 
    +
    376  template<typename T, qualifier Q>
    +
    377  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator>>(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    378 
    +
    379  template<typename T, qualifier Q>
    +
    380  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator~(vec<2, T, Q> const& v);
    +
    381 
    +
    382  // -- Boolean operators --
    +
    383 
    +
    384  template<typename T, qualifier Q>
    +
    385  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    386 
    +
    387  template<typename T, qualifier Q>
    +
    388  GLM_FUNC_DECL GLM_CONSTEXPR bool operator!=(vec<2, T, Q> const& v1, vec<2, T, Q> const& v2);
    +
    389 
    +
    390  template<qualifier Q>
    +
    391  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, bool, Q> operator&&(vec<2, bool, Q> const& v1, vec<2, bool, Q> const& v2);
    +
    392 
    +
    393  template<qualifier Q>
    +
    394  GLM_FUNC_DECL GLM_CONSTEXPR vec<2, bool, Q> operator||(vec<2, bool, Q> const& v1, vec<2, bool, Q> const& v2);
    +
    395 }//namespace glm
    +
    396 
    +
    397 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    398 #include "type_vec2.inl"
    +
    399 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00180.html b/external/glm-0.9.9.8/doc/api/a00180.html new file mode 100644 index 0000000..9add36d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00180.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_vec3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_vec3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00180_source.html b/external/glm-0.9.9.8/doc/api/a00180_source.html new file mode 100644 index 0000000..70f7fd6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00180_source.html @@ -0,0 +1,523 @@ + + + + + + +0.9.9 API documentation: type_vec3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "qualifier.hpp"
    +
    7 #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    8 # include "_swizzle.hpp"
    +
    9 #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    10 # include "_swizzle_func.hpp"
    +
    11 #endif
    +
    12 #include <cstddef>
    +
    13 
    +
    14 namespace glm
    +
    15 {
    +
    16  template<typename T, qualifier Q>
    +
    17  struct vec<3, T, Q>
    +
    18  {
    +
    19  // -- Implementation detail --
    +
    20 
    +
    21  typedef T value_type;
    +
    22  typedef vec<3, T, Q> type;
    +
    23  typedef vec<3, bool, Q> bool_type;
    +
    24 
    +
    25  // -- Data --
    +
    26 
    +
    27 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    28 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    29 # pragma GCC diagnostic push
    +
    30 # pragma GCC diagnostic ignored "-Wpedantic"
    +
    31 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    32 # pragma clang diagnostic push
    +
    33 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
    +
    34 # pragma clang diagnostic ignored "-Wnested-anon-types"
    +
    35 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    36 # pragma warning(push)
    +
    37 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
    +
    38 # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE
    +
    39 # pragma warning(disable: 4324) // structure was padded due to alignment specifier
    +
    40 # endif
    +
    41 # endif
    +
    42 # endif
    +
    43 
    +
    44 # if GLM_CONFIG_XYZW_ONLY
    +
    45  T x, y, z;
    +
    46 # elif GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
    +
    47  union
    +
    48  {
    +
    49  struct{ T x, y, z; };
    +
    50  struct{ T r, g, b; };
    +
    51  struct{ T s, t, p; };
    +
    52 
    +
    53  typename detail::storage<3, T, detail::is_aligned<Q>::value>::type data;
    +
    54 
    +
    55 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    56  GLM_SWIZZLE3_2_MEMBERS(T, Q, x, y, z)
    +
    57  GLM_SWIZZLE3_2_MEMBERS(T, Q, r, g, b)
    +
    58  GLM_SWIZZLE3_2_MEMBERS(T, Q, s, t, p)
    +
    59  GLM_SWIZZLE3_3_MEMBERS(T, Q, x, y, z)
    +
    60  GLM_SWIZZLE3_3_MEMBERS(T, Q, r, g, b)
    +
    61  GLM_SWIZZLE3_3_MEMBERS(T, Q, s, t, p)
    +
    62  GLM_SWIZZLE3_4_MEMBERS(T, Q, x, y, z)
    +
    63  GLM_SWIZZLE3_4_MEMBERS(T, Q, r, g, b)
    +
    64  GLM_SWIZZLE3_4_MEMBERS(T, Q, s, t, p)
    +
    65 # endif
    +
    66  };
    +
    67 # else
    +
    68  union { T x, r, s; };
    +
    69  union { T y, g, t; };
    +
    70  union { T z, b, p; };
    +
    71 
    +
    72 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    73  GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, Q)
    +
    74 # endif//GLM_CONFIG_SWIZZLE
    +
    75 # endif//GLM_LANG
    +
    76 
    +
    77 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    78 # if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    79 # pragma clang diagnostic pop
    +
    80 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    81 # pragma GCC diagnostic pop
    +
    82 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    83 # pragma warning(pop)
    +
    84 # endif
    +
    85 # endif
    +
    86 
    +
    87  // -- Component accesses --
    +
    88 
    +
    90  typedef length_t length_type;
    +
    91  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 3;}
    +
    92 
    +
    93  GLM_FUNC_DECL GLM_CONSTEXPR T & operator[](length_type i);
    +
    94  GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
    +
    95 
    +
    96  // -- Implicit basic constructors --
    +
    97 
    +
    98  GLM_FUNC_DECL GLM_CONSTEXPR vec() GLM_DEFAULT;
    +
    99  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
    +
    100  template<qualifier P>
    +
    101  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, T, P> const& v);
    +
    102 
    +
    103  // -- Explicit basic constructors --
    +
    104 
    +
    105  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
    +
    106  GLM_FUNC_DECL GLM_CONSTEXPR vec(T a, T b, T c);
    +
    107 
    +
    108  // -- Conversion scalar constructors --
    +
    109 
    +
    110  template<typename U, qualifier P>
    +
    111  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
    +
    112 
    +
    114  template<typename X, typename Y, typename Z>
    +
    115  GLM_FUNC_DECL GLM_CONSTEXPR vec(X x, Y y, Z z);
    +
    116  template<typename X, typename Y, typename Z>
    +
    117  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z);
    +
    118  template<typename X, typename Y, typename Z>
    +
    119  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z);
    +
    120  template<typename X, typename Y, typename Z>
    +
    121  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z);
    +
    122  template<typename X, typename Y, typename Z>
    +
    123  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z);
    +
    124  template<typename X, typename Y, typename Z>
    +
    125  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z);
    +
    126  template<typename X, typename Y, typename Z>
    +
    127  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
    +
    128  template<typename X, typename Y, typename Z>
    +
    129  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
    +
    130 
    +
    131  // -- Conversion vector constructors --
    +
    132 
    +
    134  template<typename A, typename B, qualifier P>
    +
    135  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z);
    +
    137  template<typename A, typename B, qualifier P>
    +
    138  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z);
    +
    140  template<typename A, typename B, qualifier P>
    +
    141  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz);
    +
    143  template<typename A, typename B, qualifier P>
    +
    144  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz);
    +
    146  template<typename U, qualifier P>
    +
    147  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
    +
    148 
    +
    150  template<typename U, qualifier P>
    +
    151  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
    +
    152 
    +
    153  // -- Swizzle constructors --
    +
    154 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    155  template<int E0, int E1, int E2>
    +
    156  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, -1> const& that)
    +
    157  {
    +
    158  *this = that();
    +
    159  }
    +
    160 
    +
    161  template<int E0, int E1>
    +
    162  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& scalar)
    +
    163  {
    +
    164  *this = vec(v(), scalar);
    +
    165  }
    +
    166 
    +
    167  template<int E0, int E1>
    +
    168  GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& scalar, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
    +
    169  {
    +
    170  *this = vec(scalar, v());
    +
    171  }
    +
    172 # endif//GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    173 
    +
    174  // -- Unary arithmetic operators --
    +
    175 
    +
    176  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q>& operator=(vec<3, T, Q> const& v) GLM_DEFAULT;
    +
    177 
    +
    178  template<typename U>
    +
    179  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator=(vec<3, U, Q> const& v);
    +
    180  template<typename U>
    +
    181  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(U scalar);
    +
    182  template<typename U>
    +
    183  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<1, U, Q> const& v);
    +
    184  template<typename U>
    +
    185  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<3, U, Q> const& v);
    +
    186  template<typename U>
    +
    187  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(U scalar);
    +
    188  template<typename U>
    +
    189  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<1, U, Q> const& v);
    +
    190  template<typename U>
    +
    191  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<3, U, Q> const& v);
    +
    192  template<typename U>
    +
    193  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(U scalar);
    +
    194  template<typename U>
    +
    195  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<1, U, Q> const& v);
    +
    196  template<typename U>
    +
    197  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<3, U, Q> const& v);
    +
    198  template<typename U>
    +
    199  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(U scalar);
    +
    200  template<typename U>
    +
    201  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<1, U, Q> const& v);
    +
    202  template<typename U>
    +
    203  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<3, U, Q> const& v);
    +
    204 
    +
    205  // -- Increment and decrement operators --
    +
    206 
    +
    207  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator++();
    +
    208  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator--();
    +
    209  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator++(int);
    +
    210  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator--(int);
    +
    211 
    +
    212  // -- Unary bit operators --
    +
    213 
    +
    214  template<typename U>
    +
    215  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(U scalar);
    +
    216  template<typename U>
    +
    217  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<1, U, Q> const& v);
    +
    218  template<typename U>
    +
    219  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<3, U, Q> const& v);
    +
    220  template<typename U>
    +
    221  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(U scalar);
    +
    222  template<typename U>
    +
    223  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<1, U, Q> const& v);
    +
    224  template<typename U>
    +
    225  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<3, U, Q> const& v);
    +
    226  template<typename U>
    +
    227  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(U scalar);
    +
    228  template<typename U>
    +
    229  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<1, U, Q> const& v);
    +
    230  template<typename U>
    +
    231  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<3, U, Q> const& v);
    +
    232  template<typename U>
    +
    233  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(U scalar);
    +
    234  template<typename U>
    +
    235  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<1, U, Q> const& v);
    +
    236  template<typename U>
    +
    237  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<3, U, Q> const& v);
    +
    238  template<typename U>
    +
    239  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(U scalar);
    +
    240  template<typename U>
    +
    241  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<1, U, Q> const& v);
    +
    242  template<typename U>
    +
    243  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<3, U, Q> const& v);
    +
    244  template<typename U>
    +
    245  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(U scalar);
    +
    246  template<typename U>
    +
    247  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<1, U, Q> const& v);
    +
    248  template<typename U>
    +
    249  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<3, U, Q> const& v);
    +
    250  };
    +
    251 
    +
    252  // -- Unary operators --
    +
    253 
    +
    254  template<typename T, qualifier Q>
    +
    255  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(vec<3, T, Q> const& v);
    +
    256 
    +
    257  template<typename T, qualifier Q>
    +
    258  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(vec<3, T, Q> const& v);
    +
    259 
    +
    260  // -- Binary operators --
    +
    261 
    +
    262  template<typename T, qualifier Q>
    +
    263  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(vec<3, T, Q> const& v, T scalar);
    +
    264 
    +
    265  template<typename T, qualifier Q>
    +
    266  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(vec<3, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    267 
    +
    268  template<typename T, qualifier Q>
    +
    269  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(T scalar, vec<3, T, Q> const& v);
    +
    270 
    +
    271  template<typename T, qualifier Q>
    +
    272  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    273 
    +
    274  template<typename T, qualifier Q>
    +
    275  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator+(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    276 
    +
    277  template<typename T, qualifier Q>
    +
    278  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(vec<3, T, Q> const& v, T scalar);
    +
    279 
    +
    280  template<typename T, qualifier Q>
    +
    281  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    282 
    +
    283  template<typename T, qualifier Q>
    +
    284  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(T scalar, vec<3, T, Q> const& v);
    +
    285 
    +
    286  template<typename T, qualifier Q>
    +
    287  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    288 
    +
    289  template<typename T, qualifier Q>
    +
    290  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator-(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    291 
    +
    292  template<typename T, qualifier Q>
    +
    293  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator*(vec<3, T, Q> const& v, T scalar);
    +
    294 
    +
    295  template<typename T, qualifier Q>
    +
    296  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator*(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    297 
    +
    298  template<typename T, qualifier Q>
    +
    299  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator*(T scalar, vec<3, T, Q> const& v);
    +
    300 
    +
    301  template<typename T, qualifier Q>
    +
    302  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator*(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    303 
    +
    304  template<typename T, qualifier Q>
    +
    305  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator*(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    306 
    +
    307  template<typename T, qualifier Q>
    +
    308  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator/(vec<3, T, Q> const& v, T scalar);
    +
    309 
    +
    310  template<typename T, qualifier Q>
    +
    311  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator/(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    312 
    +
    313  template<typename T, qualifier Q>
    +
    314  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator/(T scalar, vec<3, T, Q> const& v);
    +
    315 
    +
    316  template<typename T, qualifier Q>
    +
    317  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator/(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    318 
    +
    319  template<typename T, qualifier Q>
    +
    320  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator/(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    321 
    +
    322  template<typename T, qualifier Q>
    +
    323  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator%(vec<3, T, Q> const& v, T scalar);
    +
    324 
    +
    325  template<typename T, qualifier Q>
    +
    326  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator%(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    327 
    +
    328  template<typename T, qualifier Q>
    +
    329  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator%(T scalar, vec<3, T, Q> const& v);
    +
    330 
    +
    331  template<typename T, qualifier Q>
    +
    332  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator%(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    333 
    +
    334  template<typename T, qualifier Q>
    +
    335  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator%(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    336 
    +
    337  template<typename T, qualifier Q>
    +
    338  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator&(vec<3, T, Q> const& v1, T scalar);
    +
    339 
    +
    340  template<typename T, qualifier Q>
    +
    341  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator&(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    342 
    +
    343  template<typename T, qualifier Q>
    +
    344  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator&(T scalar, vec<3, T, Q> const& v);
    +
    345 
    +
    346  template<typename T, qualifier Q>
    +
    347  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator&(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    348 
    +
    349  template<typename T, qualifier Q>
    +
    350  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator&(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    351 
    +
    352  template<typename T, qualifier Q>
    +
    353  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator|(vec<3, T, Q> const& v, T scalar);
    +
    354 
    +
    355  template<typename T, qualifier Q>
    +
    356  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator|(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    357 
    +
    358  template<typename T, qualifier Q>
    +
    359  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator|(T scalar, vec<3, T, Q> const& v);
    +
    360 
    +
    361  template<typename T, qualifier Q>
    +
    362  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator|(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    363 
    +
    364  template<typename T, qualifier Q>
    +
    365  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator|(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    366 
    +
    367  template<typename T, qualifier Q>
    +
    368  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator^(vec<3, T, Q> const& v, T scalar);
    +
    369 
    +
    370  template<typename T, qualifier Q>
    +
    371  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator^(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    372 
    +
    373  template<typename T, qualifier Q>
    +
    374  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator^(T scalar, vec<3, T, Q> const& v);
    +
    375 
    +
    376  template<typename T, qualifier Q>
    +
    377  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator^(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    378 
    +
    379  template<typename T, qualifier Q>
    +
    380  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator^(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    381 
    +
    382  template<typename T, qualifier Q>
    +
    383  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator<<(vec<3, T, Q> const& v, T scalar);
    +
    384 
    +
    385  template<typename T, qualifier Q>
    +
    386  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator<<(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    387 
    +
    388  template<typename T, qualifier Q>
    +
    389  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator<<(T scalar, vec<3, T, Q> const& v);
    +
    390 
    +
    391  template<typename T, qualifier Q>
    +
    392  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator<<(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    393 
    +
    394  template<typename T, qualifier Q>
    +
    395  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator<<(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    396 
    +
    397  template<typename T, qualifier Q>
    +
    398  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator>>(vec<3, T, Q> const& v, T scalar);
    +
    399 
    +
    400  template<typename T, qualifier Q>
    +
    401  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator>>(vec<3, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    402 
    +
    403  template<typename T, qualifier Q>
    +
    404  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator>>(T scalar, vec<3, T, Q> const& v);
    +
    405 
    +
    406  template<typename T, qualifier Q>
    +
    407  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator>>(vec<1, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    408 
    +
    409  template<typename T, qualifier Q>
    +
    410  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator>>(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    411 
    +
    412  template<typename T, qualifier Q>
    +
    413  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator~(vec<3, T, Q> const& v);
    +
    414 
    +
    415  // -- Boolean operators --
    +
    416 
    +
    417  template<typename T, qualifier Q>
    +
    418  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    419 
    +
    420  template<typename T, qualifier Q>
    +
    421  GLM_FUNC_DECL GLM_CONSTEXPR bool operator!=(vec<3, T, Q> const& v1, vec<3, T, Q> const& v2);
    +
    422 
    +
    423  template<qualifier Q>
    +
    424  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, bool, Q> operator&&(vec<3, bool, Q> const& v1, vec<3, bool, Q> const& v2);
    +
    425 
    +
    426  template<qualifier Q>
    +
    427  GLM_FUNC_DECL GLM_CONSTEXPR vec<3, bool, Q> operator||(vec<3, bool, Q> const& v1, vec<3, bool, Q> const& v2);
    +
    428 }//namespace glm
    +
    429 
    +
    430 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    431 #include "type_vec3.inl"
    +
    432 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00181.html b/external/glm-0.9.9.8/doc/api/a00181.html new file mode 100644 index 0000000..95e0f6d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00181.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: type_vec4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file type_vec4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00181_source.html b/external/glm-0.9.9.8/doc/api/a00181_source.html new file mode 100644 index 0000000..c14062e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00181_source.html @@ -0,0 +1,584 @@ + + + + + + +0.9.9 API documentation: type_vec4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    type_vec4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 
    +
    6 #include "qualifier.hpp"
    +
    7 #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    8 # include "_swizzle.hpp"
    +
    9 #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    10 # include "_swizzle_func.hpp"
    +
    11 #endif
    +
    12 #include <cstddef>
    +
    13 
    +
    14 namespace glm
    +
    15 {
    +
    16  template<typename T, qualifier Q>
    +
    17  struct vec<4, T, Q>
    +
    18  {
    +
    19  // -- Implementation detail --
    +
    20 
    +
    21  typedef T value_type;
    +
    22  typedef vec<4, T, Q> type;
    +
    23  typedef vec<4, bool, Q> bool_type;
    +
    24 
    +
    25  // -- Data --
    +
    26 
    +
    27 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    28 # if GLM_COMPILER & GLM_COMPILER_GCC
    +
    29 # pragma GCC diagnostic push
    +
    30 # pragma GCC diagnostic ignored "-Wpedantic"
    +
    31 # elif GLM_COMPILER & GLM_COMPILER_CLANG
    +
    32 # pragma clang diagnostic push
    +
    33 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
    +
    34 # pragma clang diagnostic ignored "-Wnested-anon-types"
    +
    35 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    36 # pragma warning(push)
    +
    37 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
    +
    38 # endif
    +
    39 # endif
    +
    40 
    +
    41 # if GLM_CONFIG_XYZW_ONLY
    +
    42  T x, y, z, w;
    +
    43 # elif GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
    +
    44  union
    +
    45  {
    +
    46  struct { T x, y, z, w; };
    +
    47  struct { T r, g, b, a; };
    +
    48  struct { T s, t, p, q; };
    +
    49 
    +
    50  typename detail::storage<4, T, detail::is_aligned<Q>::value>::type data;
    +
    51 
    +
    52 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    53  GLM_SWIZZLE4_2_MEMBERS(T, Q, x, y, z, w)
    +
    54  GLM_SWIZZLE4_2_MEMBERS(T, Q, r, g, b, a)
    +
    55  GLM_SWIZZLE4_2_MEMBERS(T, Q, s, t, p, q)
    +
    56  GLM_SWIZZLE4_3_MEMBERS(T, Q, x, y, z, w)
    +
    57  GLM_SWIZZLE4_3_MEMBERS(T, Q, r, g, b, a)
    +
    58  GLM_SWIZZLE4_3_MEMBERS(T, Q, s, t, p, q)
    +
    59  GLM_SWIZZLE4_4_MEMBERS(T, Q, x, y, z, w)
    +
    60  GLM_SWIZZLE4_4_MEMBERS(T, Q, r, g, b, a)
    +
    61  GLM_SWIZZLE4_4_MEMBERS(T, Q, s, t, p, q)
    +
    62 # endif
    +
    63  };
    +
    64 # else
    +
    65  union { T x, r, s; };
    +
    66  union { T y, g, t; };
    +
    67  union { T z, b, p; };
    +
    68  union { T w, a, q; };
    +
    69 
    +
    70 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
    +
    71  GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, Q)
    +
    72 # endif
    +
    73 # endif
    +
    74 
    +
    75 # if GLM_SILENT_WARNINGS == GLM_ENABLE
    +
    76 # if GLM_COMPILER & GLM_COMPILER_CLANG
    +
    77 # pragma clang diagnostic pop
    +
    78 # elif GLM_COMPILER & GLM_COMPILER_GCC
    +
    79 # pragma GCC diagnostic pop
    +
    80 # elif GLM_COMPILER & GLM_COMPILER_VC
    +
    81 # pragma warning(pop)
    +
    82 # endif
    +
    83 # endif
    +
    84 
    +
    85  // -- Component accesses --
    +
    86 
    +
    87  typedef length_t length_type;
    +
    88 
    +
    90  GLM_FUNC_DECL static GLM_CONSTEXPR length_type length(){return 4;}
    +
    91 
    +
    92  GLM_FUNC_DECL GLM_CONSTEXPR T & operator[](length_type i);
    +
    93  GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
    +
    94 
    +
    95  // -- Implicit basic constructors --
    +
    96 
    +
    97  GLM_FUNC_DECL GLM_CONSTEXPR vec() GLM_DEFAULT;
    +
    98  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, Q> const& v) GLM_DEFAULT;
    +
    99  template<qualifier P>
    +
    100  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, P> const& v);
    +
    101 
    +
    102  // -- Explicit basic constructors --
    +
    103 
    +
    104  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
    +
    105  GLM_FUNC_DECL GLM_CONSTEXPR vec(T x, T y, T z, T w);
    +
    106 
    +
    107  // -- Conversion scalar constructors --
    +
    108 
    +
    109  template<typename U, qualifier P>
    +
    110  GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
    +
    111 
    +
    113  template<typename X, typename Y, typename Z, typename W>
    +
    114  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, Z _z, W _w);
    +
    115  template<typename X, typename Y, typename Z, typename W>
    +
    116  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, W _w);
    +
    117  template<typename X, typename Y, typename Z, typename W>
    +
    118  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, W _w);
    +
    119  template<typename X, typename Y, typename Z, typename W>
    +
    120  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, W _w);
    +
    121  template<typename X, typename Y, typename Z, typename W>
    +
    122  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, W _w);
    +
    123  template<typename X, typename Y, typename Z, typename W>
    +
    124  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, W _w);
    +
    125  template<typename X, typename Y, typename Z, typename W>
    +
    126  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
    +
    127  template<typename X, typename Y, typename Z, typename W>
    +
    128  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
    +
    129  template<typename X, typename Y, typename Z, typename W>
    +
    130  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, vec<1, W, Q> const& _w);
    +
    131  template<typename X, typename Y, typename Z, typename W>
    +
    132  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
    +
    133  template<typename X, typename Y, typename Z, typename W>
    +
    134  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
    +
    135  template<typename X, typename Y, typename Z, typename W>
    +
    136  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
    +
    137  template<typename X, typename Y, typename Z, typename W>
    +
    138  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
    +
    139  template<typename X, typename Y, typename Z, typename W>
    +
    140  GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
    +
    141  template<typename X, typename Y, typename Z, typename W>
    +
    142  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _Y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
    +
    143 
    +
    144  // -- Conversion vector constructors --
    +
    145 
    +
    147  template<typename A, typename B, typename C, qualifier P>
    +
    148  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, C _w);
    +
    150  template<typename A, typename B, typename C, qualifier P>
    +
    151  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, C _w);
    +
    153  template<typename A, typename B, typename C, qualifier P>
    +
    154  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, vec<1, C, P> const& _w);
    +
    156  template<typename A, typename B, typename C, qualifier P>
    +
    157  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, vec<1, C, P> const& _w);
    +
    159  template<typename A, typename B, typename C, qualifier P>
    +
    160  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, C _w);
    +
    162  template<typename A, typename B, typename C, qualifier P>
    +
    163  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, C _w);
    +
    165  template<typename A, typename B, typename C, qualifier P>
    +
    166  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
    +
    168  template<typename A, typename B, typename C, qualifier P>
    +
    169  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
    +
    171  template<typename A, typename B, typename C, qualifier P>
    +
    172  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, B _y, vec<2, C, P> const& _zw);
    +
    174  template<typename A, typename B, typename C, qualifier P>
    +
    175  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, B _y, vec<2, C, P> const& _zw);
    +
    177  template<typename A, typename B, typename C, qualifier P>
    +
    178  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
    +
    180  template<typename A, typename B, typename C, qualifier P>
    +
    181  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
    +
    183  template<typename A, typename B, qualifier P>
    +
    184  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, B _w);
    +
    186  template<typename A, typename B, qualifier P>
    +
    187  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, vec<1, B, P> const& _w);
    +
    189  template<typename A, typename B, qualifier P>
    +
    190  GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<3, B, P> const& _yzw);
    +
    192  template<typename A, typename B, qualifier P>
    +
    193  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<3, B, P> const& _yzw);
    +
    195  template<typename A, typename B, qualifier P>
    +
    196  GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<2, B, P> const& _zw);
    +
    197 
    +
    199  template<typename U, qualifier P>
    +
    200  GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
    +
    201 
    +
    202  // -- Swizzle constructors --
    +
    203 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    204  template<int E0, int E1, int E2, int E3>
    +
    205  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<4, T, Q, E0, E1, E2, E3> const& that)
    +
    206  {
    +
    207  *this = that();
    +
    208  }
    +
    209 
    +
    210  template<int E0, int E1, int F0, int F1>
    +
    211  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, detail::_swizzle<2, T, Q, F0, F1, -1, -2> const& u)
    +
    212  {
    +
    213  *this = vec<4, T, Q>(v(), u());
    +
    214  }
    +
    215 
    +
    216  template<int E0, int E1>
    +
    217  GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, T const& y, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
    +
    218  {
    +
    219  *this = vec<4, T, Q>(x, y, v());
    +
    220  }
    +
    221 
    +
    222  template<int E0, int E1>
    +
    223  GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& w)
    +
    224  {
    +
    225  *this = vec<4, T, Q>(x, v(), w);
    +
    226  }
    +
    227 
    +
    228  template<int E0, int E1>
    +
    229  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& z, T const& w)
    +
    230  {
    +
    231  *this = vec<4, T, Q>(v(), z, w);
    +
    232  }
    +
    233 
    +
    234  template<int E0, int E1, int E2>
    +
    235  GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, -1> const& v, T const& w)
    +
    236  {
    +
    237  *this = vec<4, T, Q>(v(), w);
    +
    238  }
    +
    239 
    +
    240  template<int E0, int E1, int E2>
    +
    241  GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, detail::_swizzle<3, T, Q, E0, E1, E2, -1> const& v)
    +
    242  {
    +
    243  *this = vec<4, T, Q>(x, v());
    +
    244  }
    +
    245 # endif//GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
    +
    246 
    +
    247  // -- Unary arithmetic operators --
    +
    248 
    +
    249  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, T, Q> const& v) GLM_DEFAULT;
    +
    250 
    +
    251  template<typename U>
    +
    252  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, U, Q> const& v);
    +
    253  template<typename U>
    +
    254  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(U scalar);
    +
    255  template<typename U>
    +
    256  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<1, U, Q> const& v);
    +
    257  template<typename U>
    +
    258  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<4, U, Q> const& v);
    +
    259  template<typename U>
    +
    260  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(U scalar);
    +
    261  template<typename U>
    +
    262  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<1, U, Q> const& v);
    +
    263  template<typename U>
    +
    264  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<4, U, Q> const& v);
    +
    265  template<typename U>
    +
    266  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(U scalar);
    +
    267  template<typename U>
    +
    268  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<1, U, Q> const& v);
    +
    269  template<typename U>
    +
    270  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<4, U, Q> const& v);
    +
    271  template<typename U>
    +
    272  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(U scalar);
    +
    273  template<typename U>
    +
    274  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<1, U, Q> const& v);
    +
    275  template<typename U>
    +
    276  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<4, U, Q> const& v);
    +
    277 
    +
    278  // -- Increment and decrement operators --
    +
    279 
    +
    280  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator++();
    +
    281  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator--();
    +
    282  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator++(int);
    +
    283  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator--(int);
    +
    284 
    +
    285  // -- Unary bit operators --
    +
    286 
    +
    287  template<typename U>
    +
    288  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(U scalar);
    +
    289  template<typename U>
    +
    290  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(vec<1, U, Q> const& v);
    +
    291  template<typename U>
    +
    292  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(vec<4, U, Q> const& v);
    +
    293  template<typename U>
    +
    294  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(U scalar);
    +
    295  template<typename U>
    +
    296  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(vec<1, U, Q> const& v);
    +
    297  template<typename U>
    +
    298  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(vec<4, U, Q> const& v);
    +
    299  template<typename U>
    +
    300  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(U scalar);
    +
    301  template<typename U>
    +
    302  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(vec<1, U, Q> const& v);
    +
    303  template<typename U>
    +
    304  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(vec<4, U, Q> const& v);
    +
    305  template<typename U>
    +
    306  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(U scalar);
    +
    307  template<typename U>
    +
    308  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(vec<1, U, Q> const& v);
    +
    309  template<typename U>
    +
    310  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(vec<4, U, Q> const& v);
    +
    311  template<typename U>
    +
    312  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(U scalar);
    +
    313  template<typename U>
    +
    314  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(vec<1, U, Q> const& v);
    +
    315  template<typename U>
    +
    316  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(vec<4, U, Q> const& v);
    +
    317  template<typename U>
    +
    318  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(U scalar);
    +
    319  template<typename U>
    +
    320  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(vec<1, U, Q> const& v);
    +
    321  template<typename U>
    +
    322  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(vec<4, U, Q> const& v);
    +
    323  };
    +
    324 
    +
    325  // -- Unary operators --
    +
    326 
    +
    327  template<typename T, qualifier Q>
    +
    328  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q> const& v);
    +
    329 
    +
    330  template<typename T, qualifier Q>
    +
    331  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q> const& v);
    +
    332 
    +
    333  // -- Binary operators --
    +
    334 
    +
    335  template<typename T, qualifier Q>
    +
    336  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q> const& v, T const & scalar);
    +
    337 
    +
    338  template<typename T, qualifier Q>
    +
    339  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    340 
    +
    341  template<typename T, qualifier Q>
    +
    342  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(T scalar, vec<4, T, Q> const& v);
    +
    343 
    +
    344  template<typename T, qualifier Q>
    +
    345  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<1, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    346 
    +
    347  template<typename T, qualifier Q>
    +
    348  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    349 
    +
    350  template<typename T, qualifier Q>
    +
    351  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q> const& v, T const & scalar);
    +
    352 
    +
    353  template<typename T, qualifier Q>
    +
    354  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    355 
    +
    356  template<typename T, qualifier Q>
    +
    357  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(T scalar, vec<4, T, Q> const& v);
    +
    358 
    +
    359  template<typename T, qualifier Q>
    +
    360  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<1, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    361 
    +
    362  template<typename T, qualifier Q>
    +
    363  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    364 
    +
    365  template<typename T, qualifier Q>
    +
    366  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q> const& v, T const & scalar);
    +
    367 
    +
    368  template<typename T, qualifier Q>
    +
    369  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    370 
    +
    371  template<typename T, qualifier Q>
    +
    372  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(T scalar, vec<4, T, Q> const& v);
    +
    373 
    +
    374  template<typename T, qualifier Q>
    +
    375  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<1, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    376 
    +
    377  template<typename T, qualifier Q>
    +
    378  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    379 
    +
    380  template<typename T, qualifier Q>
    +
    381  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q> const& v, T const & scalar);
    +
    382 
    +
    383  template<typename T, qualifier Q>
    +
    384  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q> const& v1, vec<1, T, Q> const& v2);
    +
    385 
    +
    386  template<typename T, qualifier Q>
    +
    387  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(T scalar, vec<4, T, Q> const& v);
    +
    388 
    +
    389  template<typename T, qualifier Q>
    +
    390  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<1, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    391 
    +
    392  template<typename T, qualifier Q>
    +
    393  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    394 
    +
    395  template<typename T, qualifier Q>
    +
    396  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q> const& v, T scalar);
    +
    397 
    +
    398  template<typename T, qualifier Q>
    +
    399  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    400 
    +
    401  template<typename T, qualifier Q>
    +
    402  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(T scalar, vec<4, T, Q> const& v);
    +
    403 
    +
    404  template<typename T, qualifier Q>
    +
    405  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    406 
    +
    407  template<typename T, qualifier Q>
    +
    408  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    409 
    +
    410  template<typename T, qualifier Q>
    +
    411  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q> const& v, T scalar);
    +
    412 
    +
    413  template<typename T, qualifier Q>
    +
    414  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    415 
    +
    416  template<typename T, qualifier Q>
    +
    417  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(T scalar, vec<4, T, Q> const& v);
    +
    418 
    +
    419  template<typename T, qualifier Q>
    +
    420  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    421 
    +
    422  template<typename T, qualifier Q>
    +
    423  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    424 
    +
    425  template<typename T, qualifier Q>
    +
    426  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q> const& v, T scalar);
    +
    427 
    +
    428  template<typename T, qualifier Q>
    +
    429  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    430 
    +
    431  template<typename T, qualifier Q>
    +
    432  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(T scalar, vec<4, T, Q> const& v);
    +
    433 
    +
    434  template<typename T, qualifier Q>
    +
    435  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    436 
    +
    437  template<typename T, qualifier Q>
    +
    438  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    439 
    +
    440  template<typename T, qualifier Q>
    +
    441  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q> const& v, T scalar);
    +
    442 
    +
    443  template<typename T, qualifier Q>
    +
    444  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    445 
    +
    446  template<typename T, qualifier Q>
    +
    447  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(T scalar, vec<4, T, Q> const& v);
    +
    448 
    +
    449  template<typename T, qualifier Q>
    +
    450  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    451 
    +
    452  template<typename T, qualifier Q>
    +
    453  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    454 
    +
    455  template<typename T, qualifier Q>
    +
    456  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q> const& v, T scalar);
    +
    457 
    +
    458  template<typename T, qualifier Q>
    +
    459  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    460 
    +
    461  template<typename T, qualifier Q>
    +
    462  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(T scalar, vec<4, T, Q> const& v);
    +
    463 
    +
    464  template<typename T, qualifier Q>
    +
    465  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    466 
    +
    467  template<typename T, qualifier Q>
    +
    468  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    469 
    +
    470  template<typename T, qualifier Q>
    +
    471  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q> const& v, T scalar);
    +
    472 
    +
    473  template<typename T, qualifier Q>
    +
    474  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q> const& v, vec<1, T, Q> const& scalar);
    +
    475 
    +
    476  template<typename T, qualifier Q>
    +
    477  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(T scalar, vec<4, T, Q> const& v);
    +
    478 
    +
    479  template<typename T, qualifier Q>
    +
    480  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<1, T, Q> const& scalar, vec<4, T, Q> const& v);
    +
    481 
    +
    482  template<typename T, qualifier Q>
    +
    483  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    484 
    +
    485  template<typename T, qualifier Q>
    +
    486  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator~(vec<4, T, Q> const& v);
    +
    487 
    +
    488  // -- Boolean operators --
    +
    489 
    +
    490  template<typename T, qualifier Q>
    +
    491  GLM_FUNC_DECL GLM_CONSTEXPR bool operator==(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    492 
    +
    493  template<typename T, qualifier Q>
    +
    494  GLM_FUNC_DECL GLM_CONSTEXPR bool operator!=(vec<4, T, Q> const& v1, vec<4, T, Q> const& v2);
    +
    495 
    +
    496  template<qualifier Q>
    +
    497  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator&&(vec<4, bool, Q> const& v1, vec<4, bool, Q> const& v2);
    +
    498 
    +
    499  template<qualifier Q>
    +
    500  GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator||(vec<4, bool, Q> const& v1, vec<4, bool, Q> const& v2);
    +
    501 }//namespace glm
    +
    502 
    +
    503 #ifndef GLM_EXTERNAL_TEMPLATE
    +
    504 #include "type_vec4.inl"
    +
    505 #endif//GLM_EXTERNAL_TEMPLATE
    +
    GLM_FUNC_DECL T length(qua< T, Q > const &q)
    Returns the norm of a quaternions.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00182.html b/external/glm-0.9.9.8/doc/api/a00182.html new file mode 100644 index 0000000..449b000 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00182.html @@ -0,0 +1,169 @@ + + + + + + +0.9.9 API documentation: ulp.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    ulp.hpp File Reference
    +
    +
    + +

    GLM_GTC_ulp +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL int float_distance (float x, float y)
     Return the distance in the number of ULP between 2 single-precision floating-point scalars. More...
     
    GLM_FUNC_DECL int64 float_distance (double x, double y)
     Return the distance in the number of ULP between 2 double-precision floating-point scalars. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > float_distance (vec< L, float, Q > const &x, vec< L, float, Q > const &y)
     Return the distance in the number of ULP between 2 single-precision floating-point scalars. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int64, Q > float_distance (vec< L, double, Q > const &x, vec< L, double, Q > const &y)
     Return the distance in the number of ULP between 2 double-precision floating-point scalars. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType next_float (genType x)
     Return the next ULP value(s) after the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType next_float (genType x, int ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > next_float (vec< L, T, Q > const &x)
     Return the next ULP value(s) after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > next_float (vec< L, T, Q > const &x, int ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > next_float (vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType prev_float (genType x)
     Return the previous ULP value(s) before the input value(s). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType prev_float (genType x, int ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prev_float (vec< L, T, Q > const &x)
     Return the previous ULP value(s) before the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prev_float (vec< L, T, Q > const &x, int ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prev_float (vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    +

    Detailed Description

    +

    GLM_GTC_ulp

    +
    See also
    Core features (dependence)
    + +

    Definition in file ulp.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00182_source.html b/external/glm-0.9.9.8/doc/api/a00182_source.html new file mode 100644 index 0000000..94ff2b6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00182_source.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: ulp.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ulp.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependencies
    +
    18 #include "../detail/setup.hpp"
    +
    19 #include "../detail/qualifier.hpp"
    +
    20 #include "../detail/_vectorize.hpp"
    +
    21 #include "../ext/scalar_int_sized.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # pragma message("GLM: GLM_GTC_ulp extension included")
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL genType next_float(genType x);
    +
    36 
    +
    42  template<typename genType>
    +
    43  GLM_FUNC_DECL genType prev_float(genType x);
    +
    44 
    +
    50  template<typename genType>
    +
    51  GLM_FUNC_DECL genType next_float(genType x, int ULPs);
    +
    52 
    +
    58  template<typename genType>
    +
    59  GLM_FUNC_DECL genType prev_float(genType x, int ULPs);
    +
    60 
    +
    64  GLM_FUNC_DECL int float_distance(float x, float y);
    +
    65 
    +
    69  GLM_FUNC_DECL int64 float_distance(double x, double y);
    +
    70 
    +
    78  template<length_t L, typename T, qualifier Q>
    +
    79  GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x);
    +
    80 
    +
    88  template<length_t L, typename T, qualifier Q>
    +
    89  GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x, int ULPs);
    +
    90 
    +
    98  template<length_t L, typename T, qualifier Q>
    +
    99  GLM_FUNC_DECL vec<L, T, Q> next_float(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
    +
    100 
    +
    108  template<length_t L, typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x);
    +
    110 
    +
    118  template<length_t L, typename T, qualifier Q>
    +
    119  GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x, int ULPs);
    +
    120 
    +
    128  template<length_t L, typename T, qualifier Q>
    +
    129  GLM_FUNC_DECL vec<L, T, Q> prev_float(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
    +
    130 
    +
    137  template<length_t L, typename T, qualifier Q>
    +
    138  GLM_FUNC_DECL vec<L, int, Q> float_distance(vec<L, float, Q> const& x, vec<L, float, Q> const& y);
    +
    139 
    +
    146  template<length_t L, typename T, qualifier Q>
    +
    147  GLM_FUNC_DECL vec<L, int64, Q> float_distance(vec<L, double, Q> const& x, vec<L, double, Q> const& y);
    +
    148 
    +
    150 }//namespace glm
    +
    151 
    +
    152 #include "ulp.inl"
    +
    detail::int64 int64
    64 bit signed integer type.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00183.html b/external/glm-0.9.9.8/doc/api/a00183.html new file mode 100644 index 0000000..d96ae91 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00183.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: vec1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec1.hpp File Reference
    +
    +
    + +

    GLM_GTC_vec1 +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTC_vec1

    +
    See also
    Core features (dependence)
    + +

    Definition in file vec1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00183_source.html b/external/glm-0.9.9.8/doc/api/a00183_source.html new file mode 100644 index 0000000..51aeb83 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00183_source.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vec1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../ext/vector_bool1.hpp"
    +
    17 #include "../ext/vector_bool1_precision.hpp"
    +
    18 #include "../ext/vector_float1.hpp"
    +
    19 #include "../ext/vector_float1_precision.hpp"
    +
    20 #include "../ext/vector_double1.hpp"
    +
    21 #include "../ext/vector_double1_precision.hpp"
    +
    22 #include "../ext/vector_int1.hpp"
    +
    23 #include "../ext/vector_int1_precision.hpp"
    +
    24 #include "../ext/vector_uint1.hpp"
    +
    25 #include "../ext/vector_uint1_precision.hpp"
    +
    26 
    +
    27 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    28 # pragma message("GLM: GLM_GTC_vec1 extension included")
    +
    29 #endif
    +
    30 
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00184.html b/external/glm-0.9.9.8/doc/api/a00184.html new file mode 100644 index 0000000..80ea53e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00184.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: vec2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vec2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00184_source.html b/external/glm-0.9.9.8/doc/api/a00184_source.html new file mode 100644 index 0000000..8ab82bf --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00184_source.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: vec2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "./ext/vector_bool2.hpp"
    + + + + + +
    11 #include "./ext/vector_int2.hpp"
    + +
    13 #include "./ext/vector_uint2.hpp"
    + +
    Core features
    + + +
    Core features
    + + +
    Core features
    + +
    Core features
    +
    Core features
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00185.html b/external/glm-0.9.9.8/doc/api/a00185.html new file mode 100644 index 0000000..a1cccfa --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00185.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: vec3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vec3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00185_source.html b/external/glm-0.9.9.8/doc/api/a00185_source.html new file mode 100644 index 0000000..96062c8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00185_source.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: vec3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "./ext/vector_bool3.hpp"
    + + + + + +
    11 #include "./ext/vector_int3.hpp"
    + +
    13 #include "./ext/vector_uint3.hpp"
    + +
    Core features
    +
    Core features
    + +
    Core features
    +
    Core features
    + + + +
    Core features
    + +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00186.html b/external/glm-0.9.9.8/doc/api/a00186.html new file mode 100644 index 0000000..8ac27b7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00186.html @@ -0,0 +1,108 @@ + + + + + + +0.9.9 API documentation: vec4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vec4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00186_source.html b/external/glm-0.9.9.8/doc/api/a00186_source.html new file mode 100644 index 0000000..d1b62a8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00186_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vec4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "./ext/vector_bool4.hpp"
    + + + + + +
    11 #include "./ext/vector_int4.hpp"
    + +
    13 #include "./ext/vector_uint4.hpp"
    + +
    15 
    + + +
    Core features
    +
    Core features
    + +
    Core features
    +
    Core features
    + + +
    Core features
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00187.html b/external/glm-0.9.9.8/doc/api/a00187.html new file mode 100644 index 0000000..f25bed3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00187.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: vec_swizzle.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec_swizzle.hpp File Reference
    +
    +
    + +

    GLM_GTX_vec_swizzle +More...

    + +

    Go to the source code of this file.

    +

    Detailed Description

    +

    GLM_GTX_vec_swizzle

    +
    See also
    Core features (dependence)
    + +

    Definition in file vec_swizzle.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00187_source.html b/external/glm-0.9.9.8/doc/api/a00187_source.html new file mode 100644 index 0000000..11118d1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00187_source.html @@ -0,0 +1,2871 @@ + + + + + + +0.9.9 API documentation: vec_swizzle.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vec_swizzle.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../glm.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    19 # pragma message("GLM: GLM_GTX_vec_swizzle is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    20 # else
    +
    21 # pragma message("GLM: GLM_GTX_vec_swizzle extension included")
    +
    22 # endif
    +
    23 #endif
    +
    24 
    +
    25 namespace glm {
    +
    26  // xx
    +
    27  template<typename T, qualifier Q>
    +
    28  GLM_INLINE glm::vec<2, T, Q> xx(const glm::vec<1, T, Q> &v) {
    +
    29  return glm::vec<2, T, Q>(v.x, v.x);
    +
    30  }
    +
    31 
    +
    32  template<typename T, qualifier Q>
    +
    33  GLM_INLINE glm::vec<2, T, Q> xx(const glm::vec<2, T, Q> &v) {
    +
    34  return glm::vec<2, T, Q>(v.x, v.x);
    +
    35  }
    +
    36 
    +
    37  template<typename T, qualifier Q>
    +
    38  GLM_INLINE glm::vec<2, T, Q> xx(const glm::vec<3, T, Q> &v) {
    +
    39  return glm::vec<2, T, Q>(v.x, v.x);
    +
    40  }
    +
    41 
    +
    42  template<typename T, qualifier Q>
    +
    43  GLM_INLINE glm::vec<2, T, Q> xx(const glm::vec<4, T, Q> &v) {
    +
    44  return glm::vec<2, T, Q>(v.x, v.x);
    +
    45  }
    +
    46 
    +
    47  // xy
    +
    48  template<typename T, qualifier Q>
    +
    49  GLM_INLINE glm::vec<2, T, Q> xy(const glm::vec<2, T, Q> &v) {
    +
    50  return glm::vec<2, T, Q>(v.x, v.y);
    +
    51  }
    +
    52 
    +
    53  template<typename T, qualifier Q>
    +
    54  GLM_INLINE glm::vec<2, T, Q> xy(const glm::vec<3, T, Q> &v) {
    +
    55  return glm::vec<2, T, Q>(v.x, v.y);
    +
    56  }
    +
    57 
    +
    58  template<typename T, qualifier Q>
    +
    59  GLM_INLINE glm::vec<2, T, Q> xy(const glm::vec<4, T, Q> &v) {
    +
    60  return glm::vec<2, T, Q>(v.x, v.y);
    +
    61  }
    +
    62 
    +
    63  // xz
    +
    64  template<typename T, qualifier Q>
    +
    65  GLM_INLINE glm::vec<2, T, Q> xz(const glm::vec<3, T, Q> &v) {
    +
    66  return glm::vec<2, T, Q>(v.x, v.z);
    +
    67  }
    +
    68 
    +
    69  template<typename T, qualifier Q>
    +
    70  GLM_INLINE glm::vec<2, T, Q> xz(const glm::vec<4, T, Q> &v) {
    +
    71  return glm::vec<2, T, Q>(v.x, v.z);
    +
    72  }
    +
    73 
    +
    74  // xw
    +
    75  template<typename T, qualifier Q>
    +
    76  GLM_INLINE glm::vec<2, T, Q> xw(const glm::vec<4, T, Q> &v) {
    +
    77  return glm::vec<2, T, Q>(v.x, v.w);
    +
    78  }
    +
    79 
    +
    80  // yx
    +
    81  template<typename T, qualifier Q>
    +
    82  GLM_INLINE glm::vec<2, T, Q> yx(const glm::vec<2, T, Q> &v) {
    +
    83  return glm::vec<2, T, Q>(v.y, v.x);
    +
    84  }
    +
    85 
    +
    86  template<typename T, qualifier Q>
    +
    87  GLM_INLINE glm::vec<2, T, Q> yx(const glm::vec<3, T, Q> &v) {
    +
    88  return glm::vec<2, T, Q>(v.y, v.x);
    +
    89  }
    +
    90 
    +
    91  template<typename T, qualifier Q>
    +
    92  GLM_INLINE glm::vec<2, T, Q> yx(const glm::vec<4, T, Q> &v) {
    +
    93  return glm::vec<2, T, Q>(v.y, v.x);
    +
    94  }
    +
    95 
    +
    96  // yy
    +
    97  template<typename T, qualifier Q>
    +
    98  GLM_INLINE glm::vec<2, T, Q> yy(const glm::vec<2, T, Q> &v) {
    +
    99  return glm::vec<2, T, Q>(v.y, v.y);
    +
    100  }
    +
    101 
    +
    102  template<typename T, qualifier Q>
    +
    103  GLM_INLINE glm::vec<2, T, Q> yy(const glm::vec<3, T, Q> &v) {
    +
    104  return glm::vec<2, T, Q>(v.y, v.y);
    +
    105  }
    +
    106 
    +
    107  template<typename T, qualifier Q>
    +
    108  GLM_INLINE glm::vec<2, T, Q> yy(const glm::vec<4, T, Q> &v) {
    +
    109  return glm::vec<2, T, Q>(v.y, v.y);
    +
    110  }
    +
    111 
    +
    112  // yz
    +
    113  template<typename T, qualifier Q>
    +
    114  GLM_INLINE glm::vec<2, T, Q> yz(const glm::vec<3, T, Q> &v) {
    +
    115  return glm::vec<2, T, Q>(v.y, v.z);
    +
    116  }
    +
    117 
    +
    118  template<typename T, qualifier Q>
    +
    119  GLM_INLINE glm::vec<2, T, Q> yz(const glm::vec<4, T, Q> &v) {
    +
    120  return glm::vec<2, T, Q>(v.y, v.z);
    +
    121  }
    +
    122 
    +
    123  // yw
    +
    124  template<typename T, qualifier Q>
    +
    125  GLM_INLINE glm::vec<2, T, Q> yw(const glm::vec<4, T, Q> &v) {
    +
    126  return glm::vec<2, T, Q>(v.y, v.w);
    +
    127  }
    +
    128 
    +
    129  // zx
    +
    130  template<typename T, qualifier Q>
    +
    131  GLM_INLINE glm::vec<2, T, Q> zx(const glm::vec<3, T, Q> &v) {
    +
    132  return glm::vec<2, T, Q>(v.z, v.x);
    +
    133  }
    +
    134 
    +
    135  template<typename T, qualifier Q>
    +
    136  GLM_INLINE glm::vec<2, T, Q> zx(const glm::vec<4, T, Q> &v) {
    +
    137  return glm::vec<2, T, Q>(v.z, v.x);
    +
    138  }
    +
    139 
    +
    140  // zy
    +
    141  template<typename T, qualifier Q>
    +
    142  GLM_INLINE glm::vec<2, T, Q> zy(const glm::vec<3, T, Q> &v) {
    +
    143  return glm::vec<2, T, Q>(v.z, v.y);
    +
    144  }
    +
    145 
    +
    146  template<typename T, qualifier Q>
    +
    147  GLM_INLINE glm::vec<2, T, Q> zy(const glm::vec<4, T, Q> &v) {
    +
    148  return glm::vec<2, T, Q>(v.z, v.y);
    +
    149  }
    +
    150 
    +
    151  // zz
    +
    152  template<typename T, qualifier Q>
    +
    153  GLM_INLINE glm::vec<2, T, Q> zz(const glm::vec<3, T, Q> &v) {
    +
    154  return glm::vec<2, T, Q>(v.z, v.z);
    +
    155  }
    +
    156 
    +
    157  template<typename T, qualifier Q>
    +
    158  GLM_INLINE glm::vec<2, T, Q> zz(const glm::vec<4, T, Q> &v) {
    +
    159  return glm::vec<2, T, Q>(v.z, v.z);
    +
    160  }
    +
    161 
    +
    162  // zw
    +
    163  template<typename T, qualifier Q>
    +
    164  GLM_INLINE glm::vec<2, T, Q> zw(const glm::vec<4, T, Q> &v) {
    +
    165  return glm::vec<2, T, Q>(v.z, v.w);
    +
    166  }
    +
    167 
    +
    168  // wx
    +
    169  template<typename T, qualifier Q>
    +
    170  GLM_INLINE glm::vec<2, T, Q> wx(const glm::vec<4, T, Q> &v) {
    +
    171  return glm::vec<2, T, Q>(v.w, v.x);
    +
    172  }
    +
    173 
    +
    174  // wy
    +
    175  template<typename T, qualifier Q>
    +
    176  GLM_INLINE glm::vec<2, T, Q> wy(const glm::vec<4, T, Q> &v) {
    +
    177  return glm::vec<2, T, Q>(v.w, v.y);
    +
    178  }
    +
    179 
    +
    180  // wz
    +
    181  template<typename T, qualifier Q>
    +
    182  GLM_INLINE glm::vec<2, T, Q> wz(const glm::vec<4, T, Q> &v) {
    +
    183  return glm::vec<2, T, Q>(v.w, v.z);
    +
    184  }
    +
    185 
    +
    186  // ww
    +
    187  template<typename T, qualifier Q>
    +
    188  GLM_INLINE glm::vec<2, T, Q> ww(const glm::vec<4, T, Q> &v) {
    +
    189  return glm::vec<2, T, Q>(v.w, v.w);
    +
    190  }
    +
    191 
    +
    192  // xxx
    +
    193  template<typename T, qualifier Q>
    +
    194  GLM_INLINE glm::vec<3, T, Q> xxx(const glm::vec<1, T, Q> &v) {
    +
    195  return glm::vec<3, T, Q>(v.x, v.x, v.x);
    +
    196  }
    +
    197 
    +
    198  template<typename T, qualifier Q>
    +
    199  GLM_INLINE glm::vec<3, T, Q> xxx(const glm::vec<2, T, Q> &v) {
    +
    200  return glm::vec<3, T, Q>(v.x, v.x, v.x);
    +
    201  }
    +
    202 
    +
    203  template<typename T, qualifier Q>
    +
    204  GLM_INLINE glm::vec<3, T, Q> xxx(const glm::vec<3, T, Q> &v) {
    +
    205  return glm::vec<3, T, Q>(v.x, v.x, v.x);
    +
    206  }
    +
    207 
    +
    208  template<typename T, qualifier Q>
    +
    209  GLM_INLINE glm::vec<3, T, Q> xxx(const glm::vec<4, T, Q> &v) {
    +
    210  return glm::vec<3, T, Q>(v.x, v.x, v.x);
    +
    211  }
    +
    212 
    +
    213  // xxy
    +
    214  template<typename T, qualifier Q>
    +
    215  GLM_INLINE glm::vec<3, T, Q> xxy(const glm::vec<2, T, Q> &v) {
    +
    216  return glm::vec<3, T, Q>(v.x, v.x, v.y);
    +
    217  }
    +
    218 
    +
    219  template<typename T, qualifier Q>
    +
    220  GLM_INLINE glm::vec<3, T, Q> xxy(const glm::vec<3, T, Q> &v) {
    +
    221  return glm::vec<3, T, Q>(v.x, v.x, v.y);
    +
    222  }
    +
    223 
    +
    224  template<typename T, qualifier Q>
    +
    225  GLM_INLINE glm::vec<3, T, Q> xxy(const glm::vec<4, T, Q> &v) {
    +
    226  return glm::vec<3, T, Q>(v.x, v.x, v.y);
    +
    227  }
    +
    228 
    +
    229  // xxz
    +
    230  template<typename T, qualifier Q>
    +
    231  GLM_INLINE glm::vec<3, T, Q> xxz(const glm::vec<3, T, Q> &v) {
    +
    232  return glm::vec<3, T, Q>(v.x, v.x, v.z);
    +
    233  }
    +
    234 
    +
    235  template<typename T, qualifier Q>
    +
    236  GLM_INLINE glm::vec<3, T, Q> xxz(const glm::vec<4, T, Q> &v) {
    +
    237  return glm::vec<3, T, Q>(v.x, v.x, v.z);
    +
    238  }
    +
    239 
    +
    240  // xxw
    +
    241  template<typename T, qualifier Q>
    +
    242  GLM_INLINE glm::vec<3, T, Q> xxw(const glm::vec<4, T, Q> &v) {
    +
    243  return glm::vec<3, T, Q>(v.x, v.x, v.w);
    +
    244  }
    +
    245 
    +
    246  // xyx
    +
    247  template<typename T, qualifier Q>
    +
    248  GLM_INLINE glm::vec<3, T, Q> xyx(const glm::vec<2, T, Q> &v) {
    +
    249  return glm::vec<3, T, Q>(v.x, v.y, v.x);
    +
    250  }
    +
    251 
    +
    252  template<typename T, qualifier Q>
    +
    253  GLM_INLINE glm::vec<3, T, Q> xyx(const glm::vec<3, T, Q> &v) {
    +
    254  return glm::vec<3, T, Q>(v.x, v.y, v.x);
    +
    255  }
    +
    256 
    +
    257  template<typename T, qualifier Q>
    +
    258  GLM_INLINE glm::vec<3, T, Q> xyx(const glm::vec<4, T, Q> &v) {
    +
    259  return glm::vec<3, T, Q>(v.x, v.y, v.x);
    +
    260  }
    +
    261 
    +
    262  // xyy
    +
    263  template<typename T, qualifier Q>
    +
    264  GLM_INLINE glm::vec<3, T, Q> xyy(const glm::vec<2, T, Q> &v) {
    +
    265  return glm::vec<3, T, Q>(v.x, v.y, v.y);
    +
    266  }
    +
    267 
    +
    268  template<typename T, qualifier Q>
    +
    269  GLM_INLINE glm::vec<3, T, Q> xyy(const glm::vec<3, T, Q> &v) {
    +
    270  return glm::vec<3, T, Q>(v.x, v.y, v.y);
    +
    271  }
    +
    272 
    +
    273  template<typename T, qualifier Q>
    +
    274  GLM_INLINE glm::vec<3, T, Q> xyy(const glm::vec<4, T, Q> &v) {
    +
    275  return glm::vec<3, T, Q>(v.x, v.y, v.y);
    +
    276  }
    +
    277 
    +
    278  // xyz
    +
    279  template<typename T, qualifier Q>
    +
    280  GLM_INLINE glm::vec<3, T, Q> xyz(const glm::vec<3, T, Q> &v) {
    +
    281  return glm::vec<3, T, Q>(v.x, v.y, v.z);
    +
    282  }
    +
    283 
    +
    284  template<typename T, qualifier Q>
    +
    285  GLM_INLINE glm::vec<3, T, Q> xyz(const glm::vec<4, T, Q> &v) {
    +
    286  return glm::vec<3, T, Q>(v.x, v.y, v.z);
    +
    287  }
    +
    288 
    +
    289  // xyw
    +
    290  template<typename T, qualifier Q>
    +
    291  GLM_INLINE glm::vec<3, T, Q> xyw(const glm::vec<4, T, Q> &v) {
    +
    292  return glm::vec<3, T, Q>(v.x, v.y, v.w);
    +
    293  }
    +
    294 
    +
    295  // xzx
    +
    296  template<typename T, qualifier Q>
    +
    297  GLM_INLINE glm::vec<3, T, Q> xzx(const glm::vec<3, T, Q> &v) {
    +
    298  return glm::vec<3, T, Q>(v.x, v.z, v.x);
    +
    299  }
    +
    300 
    +
    301  template<typename T, qualifier Q>
    +
    302  GLM_INLINE glm::vec<3, T, Q> xzx(const glm::vec<4, T, Q> &v) {
    +
    303  return glm::vec<3, T, Q>(v.x, v.z, v.x);
    +
    304  }
    +
    305 
    +
    306  // xzy
    +
    307  template<typename T, qualifier Q>
    +
    308  GLM_INLINE glm::vec<3, T, Q> xzy(const glm::vec<3, T, Q> &v) {
    +
    309  return glm::vec<3, T, Q>(v.x, v.z, v.y);
    +
    310  }
    +
    311 
    +
    312  template<typename T, qualifier Q>
    +
    313  GLM_INLINE glm::vec<3, T, Q> xzy(const glm::vec<4, T, Q> &v) {
    +
    314  return glm::vec<3, T, Q>(v.x, v.z, v.y);
    +
    315  }
    +
    316 
    +
    317  // xzz
    +
    318  template<typename T, qualifier Q>
    +
    319  GLM_INLINE glm::vec<3, T, Q> xzz(const glm::vec<3, T, Q> &v) {
    +
    320  return glm::vec<3, T, Q>(v.x, v.z, v.z);
    +
    321  }
    +
    322 
    +
    323  template<typename T, qualifier Q>
    +
    324  GLM_INLINE glm::vec<3, T, Q> xzz(const glm::vec<4, T, Q> &v) {
    +
    325  return glm::vec<3, T, Q>(v.x, v.z, v.z);
    +
    326  }
    +
    327 
    +
    328  // xzw
    +
    329  template<typename T, qualifier Q>
    +
    330  GLM_INLINE glm::vec<3, T, Q> xzw(const glm::vec<4, T, Q> &v) {
    +
    331  return glm::vec<3, T, Q>(v.x, v.z, v.w);
    +
    332  }
    +
    333 
    +
    334  // xwx
    +
    335  template<typename T, qualifier Q>
    +
    336  GLM_INLINE glm::vec<3, T, Q> xwx(const glm::vec<4, T, Q> &v) {
    +
    337  return glm::vec<3, T, Q>(v.x, v.w, v.x);
    +
    338  }
    +
    339 
    +
    340  // xwy
    +
    341  template<typename T, qualifier Q>
    +
    342  GLM_INLINE glm::vec<3, T, Q> xwy(const glm::vec<4, T, Q> &v) {
    +
    343  return glm::vec<3, T, Q>(v.x, v.w, v.y);
    +
    344  }
    +
    345 
    +
    346  // xwz
    +
    347  template<typename T, qualifier Q>
    +
    348  GLM_INLINE glm::vec<3, T, Q> xwz(const glm::vec<4, T, Q> &v) {
    +
    349  return glm::vec<3, T, Q>(v.x, v.w, v.z);
    +
    350  }
    +
    351 
    +
    352  // xww
    +
    353  template<typename T, qualifier Q>
    +
    354  GLM_INLINE glm::vec<3, T, Q> xww(const glm::vec<4, T, Q> &v) {
    +
    355  return glm::vec<3, T, Q>(v.x, v.w, v.w);
    +
    356  }
    +
    357 
    +
    358  // yxx
    +
    359  template<typename T, qualifier Q>
    +
    360  GLM_INLINE glm::vec<3, T, Q> yxx(const glm::vec<2, T, Q> &v) {
    +
    361  return glm::vec<3, T, Q>(v.y, v.x, v.x);
    +
    362  }
    +
    363 
    +
    364  template<typename T, qualifier Q>
    +
    365  GLM_INLINE glm::vec<3, T, Q> yxx(const glm::vec<3, T, Q> &v) {
    +
    366  return glm::vec<3, T, Q>(v.y, v.x, v.x);
    +
    367  }
    +
    368 
    +
    369  template<typename T, qualifier Q>
    +
    370  GLM_INLINE glm::vec<3, T, Q> yxx(const glm::vec<4, T, Q> &v) {
    +
    371  return glm::vec<3, T, Q>(v.y, v.x, v.x);
    +
    372  }
    +
    373 
    +
    374  // yxy
    +
    375  template<typename T, qualifier Q>
    +
    376  GLM_INLINE glm::vec<3, T, Q> yxy(const glm::vec<2, T, Q> &v) {
    +
    377  return glm::vec<3, T, Q>(v.y, v.x, v.y);
    +
    378  }
    +
    379 
    +
    380  template<typename T, qualifier Q>
    +
    381  GLM_INLINE glm::vec<3, T, Q> yxy(const glm::vec<3, T, Q> &v) {
    +
    382  return glm::vec<3, T, Q>(v.y, v.x, v.y);
    +
    383  }
    +
    384 
    +
    385  template<typename T, qualifier Q>
    +
    386  GLM_INLINE glm::vec<3, T, Q> yxy(const glm::vec<4, T, Q> &v) {
    +
    387  return glm::vec<3, T, Q>(v.y, v.x, v.y);
    +
    388  }
    +
    389 
    +
    390  // yxz
    +
    391  template<typename T, qualifier Q>
    +
    392  GLM_INLINE glm::vec<3, T, Q> yxz(const glm::vec<3, T, Q> &v) {
    +
    393  return glm::vec<3, T, Q>(v.y, v.x, v.z);
    +
    394  }
    +
    395 
    +
    396  template<typename T, qualifier Q>
    +
    397  GLM_INLINE glm::vec<3, T, Q> yxz(const glm::vec<4, T, Q> &v) {
    +
    398  return glm::vec<3, T, Q>(v.y, v.x, v.z);
    +
    399  }
    +
    400 
    +
    401  // yxw
    +
    402  template<typename T, qualifier Q>
    +
    403  GLM_INLINE glm::vec<3, T, Q> yxw(const glm::vec<4, T, Q> &v) {
    +
    404  return glm::vec<3, T, Q>(v.y, v.x, v.w);
    +
    405  }
    +
    406 
    +
    407  // yyx
    +
    408  template<typename T, qualifier Q>
    +
    409  GLM_INLINE glm::vec<3, T, Q> yyx(const glm::vec<2, T, Q> &v) {
    +
    410  return glm::vec<3, T, Q>(v.y, v.y, v.x);
    +
    411  }
    +
    412 
    +
    413  template<typename T, qualifier Q>
    +
    414  GLM_INLINE glm::vec<3, T, Q> yyx(const glm::vec<3, T, Q> &v) {
    +
    415  return glm::vec<3, T, Q>(v.y, v.y, v.x);
    +
    416  }
    +
    417 
    +
    418  template<typename T, qualifier Q>
    +
    419  GLM_INLINE glm::vec<3, T, Q> yyx(const glm::vec<4, T, Q> &v) {
    +
    420  return glm::vec<3, T, Q>(v.y, v.y, v.x);
    +
    421  }
    +
    422 
    +
    423  // yyy
    +
    424  template<typename T, qualifier Q>
    +
    425  GLM_INLINE glm::vec<3, T, Q> yyy(const glm::vec<2, T, Q> &v) {
    +
    426  return glm::vec<3, T, Q>(v.y, v.y, v.y);
    +
    427  }
    +
    428 
    +
    429  template<typename T, qualifier Q>
    +
    430  GLM_INLINE glm::vec<3, T, Q> yyy(const glm::vec<3, T, Q> &v) {
    +
    431  return glm::vec<3, T, Q>(v.y, v.y, v.y);
    +
    432  }
    +
    433 
    +
    434  template<typename T, qualifier Q>
    +
    435  GLM_INLINE glm::vec<3, T, Q> yyy(const glm::vec<4, T, Q> &v) {
    +
    436  return glm::vec<3, T, Q>(v.y, v.y, v.y);
    +
    437  }
    +
    438 
    +
    439  // yyz
    +
    440  template<typename T, qualifier Q>
    +
    441  GLM_INLINE glm::vec<3, T, Q> yyz(const glm::vec<3, T, Q> &v) {
    +
    442  return glm::vec<3, T, Q>(v.y, v.y, v.z);
    +
    443  }
    +
    444 
    +
    445  template<typename T, qualifier Q>
    +
    446  GLM_INLINE glm::vec<3, T, Q> yyz(const glm::vec<4, T, Q> &v) {
    +
    447  return glm::vec<3, T, Q>(v.y, v.y, v.z);
    +
    448  }
    +
    449 
    +
    450  // yyw
    +
    451  template<typename T, qualifier Q>
    +
    452  GLM_INLINE glm::vec<3, T, Q> yyw(const glm::vec<4, T, Q> &v) {
    +
    453  return glm::vec<3, T, Q>(v.y, v.y, v.w);
    +
    454  }
    +
    455 
    +
    456  // yzx
    +
    457  template<typename T, qualifier Q>
    +
    458  GLM_INLINE glm::vec<3, T, Q> yzx(const glm::vec<3, T, Q> &v) {
    +
    459  return glm::vec<3, T, Q>(v.y, v.z, v.x);
    +
    460  }
    +
    461 
    +
    462  template<typename T, qualifier Q>
    +
    463  GLM_INLINE glm::vec<3, T, Q> yzx(const glm::vec<4, T, Q> &v) {
    +
    464  return glm::vec<3, T, Q>(v.y, v.z, v.x);
    +
    465  }
    +
    466 
    +
    467  // yzy
    +
    468  template<typename T, qualifier Q>
    +
    469  GLM_INLINE glm::vec<3, T, Q> yzy(const glm::vec<3, T, Q> &v) {
    +
    470  return glm::vec<3, T, Q>(v.y, v.z, v.y);
    +
    471  }
    +
    472 
    +
    473  template<typename T, qualifier Q>
    +
    474  GLM_INLINE glm::vec<3, T, Q> yzy(const glm::vec<4, T, Q> &v) {
    +
    475  return glm::vec<3, T, Q>(v.y, v.z, v.y);
    +
    476  }
    +
    477 
    +
    478  // yzz
    +
    479  template<typename T, qualifier Q>
    +
    480  GLM_INLINE glm::vec<3, T, Q> yzz(const glm::vec<3, T, Q> &v) {
    +
    481  return glm::vec<3, T, Q>(v.y, v.z, v.z);
    +
    482  }
    +
    483 
    +
    484  template<typename T, qualifier Q>
    +
    485  GLM_INLINE glm::vec<3, T, Q> yzz(const glm::vec<4, T, Q> &v) {
    +
    486  return glm::vec<3, T, Q>(v.y, v.z, v.z);
    +
    487  }
    +
    488 
    +
    489  // yzw
    +
    490  template<typename T, qualifier Q>
    +
    491  GLM_INLINE glm::vec<3, T, Q> yzw(const glm::vec<4, T, Q> &v) {
    +
    492  return glm::vec<3, T, Q>(v.y, v.z, v.w);
    +
    493  }
    +
    494 
    +
    495  // ywx
    +
    496  template<typename T, qualifier Q>
    +
    497  GLM_INLINE glm::vec<3, T, Q> ywx(const glm::vec<4, T, Q> &v) {
    +
    498  return glm::vec<3, T, Q>(v.y, v.w, v.x);
    +
    499  }
    +
    500 
    +
    501  // ywy
    +
    502  template<typename T, qualifier Q>
    +
    503  GLM_INLINE glm::vec<3, T, Q> ywy(const glm::vec<4, T, Q> &v) {
    +
    504  return glm::vec<3, T, Q>(v.y, v.w, v.y);
    +
    505  }
    +
    506 
    +
    507  // ywz
    +
    508  template<typename T, qualifier Q>
    +
    509  GLM_INLINE glm::vec<3, T, Q> ywz(const glm::vec<4, T, Q> &v) {
    +
    510  return glm::vec<3, T, Q>(v.y, v.w, v.z);
    +
    511  }
    +
    512 
    +
    513  // yww
    +
    514  template<typename T, qualifier Q>
    +
    515  GLM_INLINE glm::vec<3, T, Q> yww(const glm::vec<4, T, Q> &v) {
    +
    516  return glm::vec<3, T, Q>(v.y, v.w, v.w);
    +
    517  }
    +
    518 
    +
    519  // zxx
    +
    520  template<typename T, qualifier Q>
    +
    521  GLM_INLINE glm::vec<3, T, Q> zxx(const glm::vec<3, T, Q> &v) {
    +
    522  return glm::vec<3, T, Q>(v.z, v.x, v.x);
    +
    523  }
    +
    524 
    +
    525  template<typename T, qualifier Q>
    +
    526  GLM_INLINE glm::vec<3, T, Q> zxx(const glm::vec<4, T, Q> &v) {
    +
    527  return glm::vec<3, T, Q>(v.z, v.x, v.x);
    +
    528  }
    +
    529 
    +
    530  // zxy
    +
    531  template<typename T, qualifier Q>
    +
    532  GLM_INLINE glm::vec<3, T, Q> zxy(const glm::vec<3, T, Q> &v) {
    +
    533  return glm::vec<3, T, Q>(v.z, v.x, v.y);
    +
    534  }
    +
    535 
    +
    536  template<typename T, qualifier Q>
    +
    537  GLM_INLINE glm::vec<3, T, Q> zxy(const glm::vec<4, T, Q> &v) {
    +
    538  return glm::vec<3, T, Q>(v.z, v.x, v.y);
    +
    539  }
    +
    540 
    +
    541  // zxz
    +
    542  template<typename T, qualifier Q>
    +
    543  GLM_INLINE glm::vec<3, T, Q> zxz(const glm::vec<3, T, Q> &v) {
    +
    544  return glm::vec<3, T, Q>(v.z, v.x, v.z);
    +
    545  }
    +
    546 
    +
    547  template<typename T, qualifier Q>
    +
    548  GLM_INLINE glm::vec<3, T, Q> zxz(const glm::vec<4, T, Q> &v) {
    +
    549  return glm::vec<3, T, Q>(v.z, v.x, v.z);
    +
    550  }
    +
    551 
    +
    552  // zxw
    +
    553  template<typename T, qualifier Q>
    +
    554  GLM_INLINE glm::vec<3, T, Q> zxw(const glm::vec<4, T, Q> &v) {
    +
    555  return glm::vec<3, T, Q>(v.z, v.x, v.w);
    +
    556  }
    +
    557 
    +
    558  // zyx
    +
    559  template<typename T, qualifier Q>
    +
    560  GLM_INLINE glm::vec<3, T, Q> zyx(const glm::vec<3, T, Q> &v) {
    +
    561  return glm::vec<3, T, Q>(v.z, v.y, v.x);
    +
    562  }
    +
    563 
    +
    564  template<typename T, qualifier Q>
    +
    565  GLM_INLINE glm::vec<3, T, Q> zyx(const glm::vec<4, T, Q> &v) {
    +
    566  return glm::vec<3, T, Q>(v.z, v.y, v.x);
    +
    567  }
    +
    568 
    +
    569  // zyy
    +
    570  template<typename T, qualifier Q>
    +
    571  GLM_INLINE glm::vec<3, T, Q> zyy(const glm::vec<3, T, Q> &v) {
    +
    572  return glm::vec<3, T, Q>(v.z, v.y, v.y);
    +
    573  }
    +
    574 
    +
    575  template<typename T, qualifier Q>
    +
    576  GLM_INLINE glm::vec<3, T, Q> zyy(const glm::vec<4, T, Q> &v) {
    +
    577  return glm::vec<3, T, Q>(v.z, v.y, v.y);
    +
    578  }
    +
    579 
    +
    580  // zyz
    +
    581  template<typename T, qualifier Q>
    +
    582  GLM_INLINE glm::vec<3, T, Q> zyz(const glm::vec<3, T, Q> &v) {
    +
    583  return glm::vec<3, T, Q>(v.z, v.y, v.z);
    +
    584  }
    +
    585 
    +
    586  template<typename T, qualifier Q>
    +
    587  GLM_INLINE glm::vec<3, T, Q> zyz(const glm::vec<4, T, Q> &v) {
    +
    588  return glm::vec<3, T, Q>(v.z, v.y, v.z);
    +
    589  }
    +
    590 
    +
    591  // zyw
    +
    592  template<typename T, qualifier Q>
    +
    593  GLM_INLINE glm::vec<3, T, Q> zyw(const glm::vec<4, T, Q> &v) {
    +
    594  return glm::vec<3, T, Q>(v.z, v.y, v.w);
    +
    595  }
    +
    596 
    +
    597  // zzx
    +
    598  template<typename T, qualifier Q>
    +
    599  GLM_INLINE glm::vec<3, T, Q> zzx(const glm::vec<3, T, Q> &v) {
    +
    600  return glm::vec<3, T, Q>(v.z, v.z, v.x);
    +
    601  }
    +
    602 
    +
    603  template<typename T, qualifier Q>
    +
    604  GLM_INLINE glm::vec<3, T, Q> zzx(const glm::vec<4, T, Q> &v) {
    +
    605  return glm::vec<3, T, Q>(v.z, v.z, v.x);
    +
    606  }
    +
    607 
    +
    608  // zzy
    +
    609  template<typename T, qualifier Q>
    +
    610  GLM_INLINE glm::vec<3, T, Q> zzy(const glm::vec<3, T, Q> &v) {
    +
    611  return glm::vec<3, T, Q>(v.z, v.z, v.y);
    +
    612  }
    +
    613 
    +
    614  template<typename T, qualifier Q>
    +
    615  GLM_INLINE glm::vec<3, T, Q> zzy(const glm::vec<4, T, Q> &v) {
    +
    616  return glm::vec<3, T, Q>(v.z, v.z, v.y);
    +
    617  }
    +
    618 
    +
    619  // zzz
    +
    620  template<typename T, qualifier Q>
    +
    621  GLM_INLINE glm::vec<3, T, Q> zzz(const glm::vec<3, T, Q> &v) {
    +
    622  return glm::vec<3, T, Q>(v.z, v.z, v.z);
    +
    623  }
    +
    624 
    +
    625  template<typename T, qualifier Q>
    +
    626  GLM_INLINE glm::vec<3, T, Q> zzz(const glm::vec<4, T, Q> &v) {
    +
    627  return glm::vec<3, T, Q>(v.z, v.z, v.z);
    +
    628  }
    +
    629 
    +
    630  // zzw
    +
    631  template<typename T, qualifier Q>
    +
    632  GLM_INLINE glm::vec<3, T, Q> zzw(const glm::vec<4, T, Q> &v) {
    +
    633  return glm::vec<3, T, Q>(v.z, v.z, v.w);
    +
    634  }
    +
    635 
    +
    636  // zwx
    +
    637  template<typename T, qualifier Q>
    +
    638  GLM_INLINE glm::vec<3, T, Q> zwx(const glm::vec<4, T, Q> &v) {
    +
    639  return glm::vec<3, T, Q>(v.z, v.w, v.x);
    +
    640  }
    +
    641 
    +
    642  // zwy
    +
    643  template<typename T, qualifier Q>
    +
    644  GLM_INLINE glm::vec<3, T, Q> zwy(const glm::vec<4, T, Q> &v) {
    +
    645  return glm::vec<3, T, Q>(v.z, v.w, v.y);
    +
    646  }
    +
    647 
    +
    648  // zwz
    +
    649  template<typename T, qualifier Q>
    +
    650  GLM_INLINE glm::vec<3, T, Q> zwz(const glm::vec<4, T, Q> &v) {
    +
    651  return glm::vec<3, T, Q>(v.z, v.w, v.z);
    +
    652  }
    +
    653 
    +
    654  // zww
    +
    655  template<typename T, qualifier Q>
    +
    656  GLM_INLINE glm::vec<3, T, Q> zww(const glm::vec<4, T, Q> &v) {
    +
    657  return glm::vec<3, T, Q>(v.z, v.w, v.w);
    +
    658  }
    +
    659 
    +
    660  // wxx
    +
    661  template<typename T, qualifier Q>
    +
    662  GLM_INLINE glm::vec<3, T, Q> wxx(const glm::vec<4, T, Q> &v) {
    +
    663  return glm::vec<3, T, Q>(v.w, v.x, v.x);
    +
    664  }
    +
    665 
    +
    666  // wxy
    +
    667  template<typename T, qualifier Q>
    +
    668  GLM_INLINE glm::vec<3, T, Q> wxy(const glm::vec<4, T, Q> &v) {
    +
    669  return glm::vec<3, T, Q>(v.w, v.x, v.y);
    +
    670  }
    +
    671 
    +
    672  // wxz
    +
    673  template<typename T, qualifier Q>
    +
    674  GLM_INLINE glm::vec<3, T, Q> wxz(const glm::vec<4, T, Q> &v) {
    +
    675  return glm::vec<3, T, Q>(v.w, v.x, v.z);
    +
    676  }
    +
    677 
    +
    678  // wxw
    +
    679  template<typename T, qualifier Q>
    +
    680  GLM_INLINE glm::vec<3, T, Q> wxw(const glm::vec<4, T, Q> &v) {
    +
    681  return glm::vec<3, T, Q>(v.w, v.x, v.w);
    +
    682  }
    +
    683 
    +
    684  // wyx
    +
    685  template<typename T, qualifier Q>
    +
    686  GLM_INLINE glm::vec<3, T, Q> wyx(const glm::vec<4, T, Q> &v) {
    +
    687  return glm::vec<3, T, Q>(v.w, v.y, v.x);
    +
    688  }
    +
    689 
    +
    690  // wyy
    +
    691  template<typename T, qualifier Q>
    +
    692  GLM_INLINE glm::vec<3, T, Q> wyy(const glm::vec<4, T, Q> &v) {
    +
    693  return glm::vec<3, T, Q>(v.w, v.y, v.y);
    +
    694  }
    +
    695 
    +
    696  // wyz
    +
    697  template<typename T, qualifier Q>
    +
    698  GLM_INLINE glm::vec<3, T, Q> wyz(const glm::vec<4, T, Q> &v) {
    +
    699  return glm::vec<3, T, Q>(v.w, v.y, v.z);
    +
    700  }
    +
    701 
    +
    702  // wyw
    +
    703  template<typename T, qualifier Q>
    +
    704  GLM_INLINE glm::vec<3, T, Q> wyw(const glm::vec<4, T, Q> &v) {
    +
    705  return glm::vec<3, T, Q>(v.w, v.y, v.w);
    +
    706  }
    +
    707 
    +
    708  // wzx
    +
    709  template<typename T, qualifier Q>
    +
    710  GLM_INLINE glm::vec<3, T, Q> wzx(const glm::vec<4, T, Q> &v) {
    +
    711  return glm::vec<3, T, Q>(v.w, v.z, v.x);
    +
    712  }
    +
    713 
    +
    714  // wzy
    +
    715  template<typename T, qualifier Q>
    +
    716  GLM_INLINE glm::vec<3, T, Q> wzy(const glm::vec<4, T, Q> &v) {
    +
    717  return glm::vec<3, T, Q>(v.w, v.z, v.y);
    +
    718  }
    +
    719 
    +
    720  // wzz
    +
    721  template<typename T, qualifier Q>
    +
    722  GLM_INLINE glm::vec<3, T, Q> wzz(const glm::vec<4, T, Q> &v) {
    +
    723  return glm::vec<3, T, Q>(v.w, v.z, v.z);
    +
    724  }
    +
    725 
    +
    726  // wzw
    +
    727  template<typename T, qualifier Q>
    +
    728  GLM_INLINE glm::vec<3, T, Q> wzw(const glm::vec<4, T, Q> &v) {
    +
    729  return glm::vec<3, T, Q>(v.w, v.z, v.w);
    +
    730  }
    +
    731 
    +
    732  // wwx
    +
    733  template<typename T, qualifier Q>
    +
    734  GLM_INLINE glm::vec<3, T, Q> wwx(const glm::vec<4, T, Q> &v) {
    +
    735  return glm::vec<3, T, Q>(v.w, v.w, v.x);
    +
    736  }
    +
    737 
    +
    738  // wwy
    +
    739  template<typename T, qualifier Q>
    +
    740  GLM_INLINE glm::vec<3, T, Q> wwy(const glm::vec<4, T, Q> &v) {
    +
    741  return glm::vec<3, T, Q>(v.w, v.w, v.y);
    +
    742  }
    +
    743 
    +
    744  // wwz
    +
    745  template<typename T, qualifier Q>
    +
    746  GLM_INLINE glm::vec<3, T, Q> wwz(const glm::vec<4, T, Q> &v) {
    +
    747  return glm::vec<3, T, Q>(v.w, v.w, v.z);
    +
    748  }
    +
    749 
    +
    750  // www
    +
    751  template<typename T, qualifier Q>
    +
    752  GLM_INLINE glm::vec<3, T, Q> www(const glm::vec<4, T, Q> &v) {
    +
    753  return glm::vec<3, T, Q>(v.w, v.w, v.w);
    +
    754  }
    +
    755 
    +
    756  // xxxx
    +
    757  template<typename T, qualifier Q>
    +
    758  GLM_INLINE glm::vec<4, T, Q> xxxx(const glm::vec<1, T, Q> &v) {
    +
    759  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.x);
    +
    760  }
    +
    761 
    +
    762  template<typename T, qualifier Q>
    +
    763  GLM_INLINE glm::vec<4, T, Q> xxxx(const glm::vec<2, T, Q> &v) {
    +
    764  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.x);
    +
    765  }
    +
    766 
    +
    767  template<typename T, qualifier Q>
    +
    768  GLM_INLINE glm::vec<4, T, Q> xxxx(const glm::vec<3, T, Q> &v) {
    +
    769  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.x);
    +
    770  }
    +
    771 
    +
    772  template<typename T, qualifier Q>
    +
    773  GLM_INLINE glm::vec<4, T, Q> xxxx(const glm::vec<4, T, Q> &v) {
    +
    774  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.x);
    +
    775  }
    +
    776 
    +
    777  // xxxy
    +
    778  template<typename T, qualifier Q>
    +
    779  GLM_INLINE glm::vec<4, T, Q> xxxy(const glm::vec<2, T, Q> &v) {
    +
    780  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.y);
    +
    781  }
    +
    782 
    +
    783  template<typename T, qualifier Q>
    +
    784  GLM_INLINE glm::vec<4, T, Q> xxxy(const glm::vec<3, T, Q> &v) {
    +
    785  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.y);
    +
    786  }
    +
    787 
    +
    788  template<typename T, qualifier Q>
    +
    789  GLM_INLINE glm::vec<4, T, Q> xxxy(const glm::vec<4, T, Q> &v) {
    +
    790  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.y);
    +
    791  }
    +
    792 
    +
    793  // xxxz
    +
    794  template<typename T, qualifier Q>
    +
    795  GLM_INLINE glm::vec<4, T, Q> xxxz(const glm::vec<3, T, Q> &v) {
    +
    796  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.z);
    +
    797  }
    +
    798 
    +
    799  template<typename T, qualifier Q>
    +
    800  GLM_INLINE glm::vec<4, T, Q> xxxz(const glm::vec<4, T, Q> &v) {
    +
    801  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.z);
    +
    802  }
    +
    803 
    +
    804  // xxxw
    +
    805  template<typename T, qualifier Q>
    +
    806  GLM_INLINE glm::vec<4, T, Q> xxxw(const glm::vec<4, T, Q> &v) {
    +
    807  return glm::vec<4, T, Q>(v.x, v.x, v.x, v.w);
    +
    808  }
    +
    809 
    +
    810  // xxyx
    +
    811  template<typename T, qualifier Q>
    +
    812  GLM_INLINE glm::vec<4, T, Q> xxyx(const glm::vec<2, T, Q> &v) {
    +
    813  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.x);
    +
    814  }
    +
    815 
    +
    816  template<typename T, qualifier Q>
    +
    817  GLM_INLINE glm::vec<4, T, Q> xxyx(const glm::vec<3, T, Q> &v) {
    +
    818  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.x);
    +
    819  }
    +
    820 
    +
    821  template<typename T, qualifier Q>
    +
    822  GLM_INLINE glm::vec<4, T, Q> xxyx(const glm::vec<4, T, Q> &v) {
    +
    823  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.x);
    +
    824  }
    +
    825 
    +
    826  // xxyy
    +
    827  template<typename T, qualifier Q>
    +
    828  GLM_INLINE glm::vec<4, T, Q> xxyy(const glm::vec<2, T, Q> &v) {
    +
    829  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.y);
    +
    830  }
    +
    831 
    +
    832  template<typename T, qualifier Q>
    +
    833  GLM_INLINE glm::vec<4, T, Q> xxyy(const glm::vec<3, T, Q> &v) {
    +
    834  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.y);
    +
    835  }
    +
    836 
    +
    837  template<typename T, qualifier Q>
    +
    838  GLM_INLINE glm::vec<4, T, Q> xxyy(const glm::vec<4, T, Q> &v) {
    +
    839  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.y);
    +
    840  }
    +
    841 
    +
    842  // xxyz
    +
    843  template<typename T, qualifier Q>
    +
    844  GLM_INLINE glm::vec<4, T, Q> xxyz(const glm::vec<3, T, Q> &v) {
    +
    845  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.z);
    +
    846  }
    +
    847 
    +
    848  template<typename T, qualifier Q>
    +
    849  GLM_INLINE glm::vec<4, T, Q> xxyz(const glm::vec<4, T, Q> &v) {
    +
    850  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.z);
    +
    851  }
    +
    852 
    +
    853  // xxyw
    +
    854  template<typename T, qualifier Q>
    +
    855  GLM_INLINE glm::vec<4, T, Q> xxyw(const glm::vec<4, T, Q> &v) {
    +
    856  return glm::vec<4, T, Q>(v.x, v.x, v.y, v.w);
    +
    857  }
    +
    858 
    +
    859  // xxzx
    +
    860  template<typename T, qualifier Q>
    +
    861  GLM_INLINE glm::vec<4, T, Q> xxzx(const glm::vec<3, T, Q> &v) {
    +
    862  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.x);
    +
    863  }
    +
    864 
    +
    865  template<typename T, qualifier Q>
    +
    866  GLM_INLINE glm::vec<4, T, Q> xxzx(const glm::vec<4, T, Q> &v) {
    +
    867  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.x);
    +
    868  }
    +
    869 
    +
    870  // xxzy
    +
    871  template<typename T, qualifier Q>
    +
    872  GLM_INLINE glm::vec<4, T, Q> xxzy(const glm::vec<3, T, Q> &v) {
    +
    873  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.y);
    +
    874  }
    +
    875 
    +
    876  template<typename T, qualifier Q>
    +
    877  GLM_INLINE glm::vec<4, T, Q> xxzy(const glm::vec<4, T, Q> &v) {
    +
    878  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.y);
    +
    879  }
    +
    880 
    +
    881  // xxzz
    +
    882  template<typename T, qualifier Q>
    +
    883  GLM_INLINE glm::vec<4, T, Q> xxzz(const glm::vec<3, T, Q> &v) {
    +
    884  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.z);
    +
    885  }
    +
    886 
    +
    887  template<typename T, qualifier Q>
    +
    888  GLM_INLINE glm::vec<4, T, Q> xxzz(const glm::vec<4, T, Q> &v) {
    +
    889  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.z);
    +
    890  }
    +
    891 
    +
    892  // xxzw
    +
    893  template<typename T, qualifier Q>
    +
    894  GLM_INLINE glm::vec<4, T, Q> xxzw(const glm::vec<4, T, Q> &v) {
    +
    895  return glm::vec<4, T, Q>(v.x, v.x, v.z, v.w);
    +
    896  }
    +
    897 
    +
    898  // xxwx
    +
    899  template<typename T, qualifier Q>
    +
    900  GLM_INLINE glm::vec<4, T, Q> xxwx(const glm::vec<4, T, Q> &v) {
    +
    901  return glm::vec<4, T, Q>(v.x, v.x, v.w, v.x);
    +
    902  }
    +
    903 
    +
    904  // xxwy
    +
    905  template<typename T, qualifier Q>
    +
    906  GLM_INLINE glm::vec<4, T, Q> xxwy(const glm::vec<4, T, Q> &v) {
    +
    907  return glm::vec<4, T, Q>(v.x, v.x, v.w, v.y);
    +
    908  }
    +
    909 
    +
    910  // xxwz
    +
    911  template<typename T, qualifier Q>
    +
    912  GLM_INLINE glm::vec<4, T, Q> xxwz(const glm::vec<4, T, Q> &v) {
    +
    913  return glm::vec<4, T, Q>(v.x, v.x, v.w, v.z);
    +
    914  }
    +
    915 
    +
    916  // xxww
    +
    917  template<typename T, qualifier Q>
    +
    918  GLM_INLINE glm::vec<4, T, Q> xxww(const glm::vec<4, T, Q> &v) {
    +
    919  return glm::vec<4, T, Q>(v.x, v.x, v.w, v.w);
    +
    920  }
    +
    921 
    +
    922  // xyxx
    +
    923  template<typename T, qualifier Q>
    +
    924  GLM_INLINE glm::vec<4, T, Q> xyxx(const glm::vec<2, T, Q> &v) {
    +
    925  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.x);
    +
    926  }
    +
    927 
    +
    928  template<typename T, qualifier Q>
    +
    929  GLM_INLINE glm::vec<4, T, Q> xyxx(const glm::vec<3, T, Q> &v) {
    +
    930  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.x);
    +
    931  }
    +
    932 
    +
    933  template<typename T, qualifier Q>
    +
    934  GLM_INLINE glm::vec<4, T, Q> xyxx(const glm::vec<4, T, Q> &v) {
    +
    935  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.x);
    +
    936  }
    +
    937 
    +
    938  // xyxy
    +
    939  template<typename T, qualifier Q>
    +
    940  GLM_INLINE glm::vec<4, T, Q> xyxy(const glm::vec<2, T, Q> &v) {
    +
    941  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.y);
    +
    942  }
    +
    943 
    +
    944  template<typename T, qualifier Q>
    +
    945  GLM_INLINE glm::vec<4, T, Q> xyxy(const glm::vec<3, T, Q> &v) {
    +
    946  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.y);
    +
    947  }
    +
    948 
    +
    949  template<typename T, qualifier Q>
    +
    950  GLM_INLINE glm::vec<4, T, Q> xyxy(const glm::vec<4, T, Q> &v) {
    +
    951  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.y);
    +
    952  }
    +
    953 
    +
    954  // xyxz
    +
    955  template<typename T, qualifier Q>
    +
    956  GLM_INLINE glm::vec<4, T, Q> xyxz(const glm::vec<3, T, Q> &v) {
    +
    957  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.z);
    +
    958  }
    +
    959 
    +
    960  template<typename T, qualifier Q>
    +
    961  GLM_INLINE glm::vec<4, T, Q> xyxz(const glm::vec<4, T, Q> &v) {
    +
    962  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.z);
    +
    963  }
    +
    964 
    +
    965  // xyxw
    +
    966  template<typename T, qualifier Q>
    +
    967  GLM_INLINE glm::vec<4, T, Q> xyxw(const glm::vec<4, T, Q> &v) {
    +
    968  return glm::vec<4, T, Q>(v.x, v.y, v.x, v.w);
    +
    969  }
    +
    970 
    +
    971  // xyyx
    +
    972  template<typename T, qualifier Q>
    +
    973  GLM_INLINE glm::vec<4, T, Q> xyyx(const glm::vec<2, T, Q> &v) {
    +
    974  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.x);
    +
    975  }
    +
    976 
    +
    977  template<typename T, qualifier Q>
    +
    978  GLM_INLINE glm::vec<4, T, Q> xyyx(const glm::vec<3, T, Q> &v) {
    +
    979  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.x);
    +
    980  }
    +
    981 
    +
    982  template<typename T, qualifier Q>
    +
    983  GLM_INLINE glm::vec<4, T, Q> xyyx(const glm::vec<4, T, Q> &v) {
    +
    984  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.x);
    +
    985  }
    +
    986 
    +
    987  // xyyy
    +
    988  template<typename T, qualifier Q>
    +
    989  GLM_INLINE glm::vec<4, T, Q> xyyy(const glm::vec<2, T, Q> &v) {
    +
    990  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.y);
    +
    991  }
    +
    992 
    +
    993  template<typename T, qualifier Q>
    +
    994  GLM_INLINE glm::vec<4, T, Q> xyyy(const glm::vec<3, T, Q> &v) {
    +
    995  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.y);
    +
    996  }
    +
    997 
    +
    998  template<typename T, qualifier Q>
    +
    999  GLM_INLINE glm::vec<4, T, Q> xyyy(const glm::vec<4, T, Q> &v) {
    +
    1000  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.y);
    +
    1001  }
    +
    1002 
    +
    1003  // xyyz
    +
    1004  template<typename T, qualifier Q>
    +
    1005  GLM_INLINE glm::vec<4, T, Q> xyyz(const glm::vec<3, T, Q> &v) {
    +
    1006  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.z);
    +
    1007  }
    +
    1008 
    +
    1009  template<typename T, qualifier Q>
    +
    1010  GLM_INLINE glm::vec<4, T, Q> xyyz(const glm::vec<4, T, Q> &v) {
    +
    1011  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.z);
    +
    1012  }
    +
    1013 
    +
    1014  // xyyw
    +
    1015  template<typename T, qualifier Q>
    +
    1016  GLM_INLINE glm::vec<4, T, Q> xyyw(const glm::vec<4, T, Q> &v) {
    +
    1017  return glm::vec<4, T, Q>(v.x, v.y, v.y, v.w);
    +
    1018  }
    +
    1019 
    +
    1020  // xyzx
    +
    1021  template<typename T, qualifier Q>
    +
    1022  GLM_INLINE glm::vec<4, T, Q> xyzx(const glm::vec<3, T, Q> &v) {
    +
    1023  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.x);
    +
    1024  }
    +
    1025 
    +
    1026  template<typename T, qualifier Q>
    +
    1027  GLM_INLINE glm::vec<4, T, Q> xyzx(const glm::vec<4, T, Q> &v) {
    +
    1028  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.x);
    +
    1029  }
    +
    1030 
    +
    1031  // xyzy
    +
    1032  template<typename T, qualifier Q>
    +
    1033  GLM_INLINE glm::vec<4, T, Q> xyzy(const glm::vec<3, T, Q> &v) {
    +
    1034  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.y);
    +
    1035  }
    +
    1036 
    +
    1037  template<typename T, qualifier Q>
    +
    1038  GLM_INLINE glm::vec<4, T, Q> xyzy(const glm::vec<4, T, Q> &v) {
    +
    1039  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.y);
    +
    1040  }
    +
    1041 
    +
    1042  // xyzz
    +
    1043  template<typename T, qualifier Q>
    +
    1044  GLM_INLINE glm::vec<4, T, Q> xyzz(const glm::vec<3, T, Q> &v) {
    +
    1045  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.z);
    +
    1046  }
    +
    1047 
    +
    1048  template<typename T, qualifier Q>
    +
    1049  GLM_INLINE glm::vec<4, T, Q> xyzz(const glm::vec<4, T, Q> &v) {
    +
    1050  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.z);
    +
    1051  }
    +
    1052 
    +
    1053  // xyzw
    +
    1054  template<typename T, qualifier Q>
    +
    1055  GLM_INLINE glm::vec<4, T, Q> xyzw(const glm::vec<4, T, Q> &v) {
    +
    1056  return glm::vec<4, T, Q>(v.x, v.y, v.z, v.w);
    +
    1057  }
    +
    1058 
    +
    1059  // xywx
    +
    1060  template<typename T, qualifier Q>
    +
    1061  GLM_INLINE glm::vec<4, T, Q> xywx(const glm::vec<4, T, Q> &v) {
    +
    1062  return glm::vec<4, T, Q>(v.x, v.y, v.w, v.x);
    +
    1063  }
    +
    1064 
    +
    1065  // xywy
    +
    1066  template<typename T, qualifier Q>
    +
    1067  GLM_INLINE glm::vec<4, T, Q> xywy(const glm::vec<4, T, Q> &v) {
    +
    1068  return glm::vec<4, T, Q>(v.x, v.y, v.w, v.y);
    +
    1069  }
    +
    1070 
    +
    1071  // xywz
    +
    1072  template<typename T, qualifier Q>
    +
    1073  GLM_INLINE glm::vec<4, T, Q> xywz(const glm::vec<4, T, Q> &v) {
    +
    1074  return glm::vec<4, T, Q>(v.x, v.y, v.w, v.z);
    +
    1075  }
    +
    1076 
    +
    1077  // xyww
    +
    1078  template<typename T, qualifier Q>
    +
    1079  GLM_INLINE glm::vec<4, T, Q> xyww(const glm::vec<4, T, Q> &v) {
    +
    1080  return glm::vec<4, T, Q>(v.x, v.y, v.w, v.w);
    +
    1081  }
    +
    1082 
    +
    1083  // xzxx
    +
    1084  template<typename T, qualifier Q>
    +
    1085  GLM_INLINE glm::vec<4, T, Q> xzxx(const glm::vec<3, T, Q> &v) {
    +
    1086  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.x);
    +
    1087  }
    +
    1088 
    +
    1089  template<typename T, qualifier Q>
    +
    1090  GLM_INLINE glm::vec<4, T, Q> xzxx(const glm::vec<4, T, Q> &v) {
    +
    1091  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.x);
    +
    1092  }
    +
    1093 
    +
    1094  // xzxy
    +
    1095  template<typename T, qualifier Q>
    +
    1096  GLM_INLINE glm::vec<4, T, Q> xzxy(const glm::vec<3, T, Q> &v) {
    +
    1097  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.y);
    +
    1098  }
    +
    1099 
    +
    1100  template<typename T, qualifier Q>
    +
    1101  GLM_INLINE glm::vec<4, T, Q> xzxy(const glm::vec<4, T, Q> &v) {
    +
    1102  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.y);
    +
    1103  }
    +
    1104 
    +
    1105  // xzxz
    +
    1106  template<typename T, qualifier Q>
    +
    1107  GLM_INLINE glm::vec<4, T, Q> xzxz(const glm::vec<3, T, Q> &v) {
    +
    1108  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.z);
    +
    1109  }
    +
    1110 
    +
    1111  template<typename T, qualifier Q>
    +
    1112  GLM_INLINE glm::vec<4, T, Q> xzxz(const glm::vec<4, T, Q> &v) {
    +
    1113  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.z);
    +
    1114  }
    +
    1115 
    +
    1116  // xzxw
    +
    1117  template<typename T, qualifier Q>
    +
    1118  GLM_INLINE glm::vec<4, T, Q> xzxw(const glm::vec<4, T, Q> &v) {
    +
    1119  return glm::vec<4, T, Q>(v.x, v.z, v.x, v.w);
    +
    1120  }
    +
    1121 
    +
    1122  // xzyx
    +
    1123  template<typename T, qualifier Q>
    +
    1124  GLM_INLINE glm::vec<4, T, Q> xzyx(const glm::vec<3, T, Q> &v) {
    +
    1125  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.x);
    +
    1126  }
    +
    1127 
    +
    1128  template<typename T, qualifier Q>
    +
    1129  GLM_INLINE glm::vec<4, T, Q> xzyx(const glm::vec<4, T, Q> &v) {
    +
    1130  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.x);
    +
    1131  }
    +
    1132 
    +
    1133  // xzyy
    +
    1134  template<typename T, qualifier Q>
    +
    1135  GLM_INLINE glm::vec<4, T, Q> xzyy(const glm::vec<3, T, Q> &v) {
    +
    1136  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.y);
    +
    1137  }
    +
    1138 
    +
    1139  template<typename T, qualifier Q>
    +
    1140  GLM_INLINE glm::vec<4, T, Q> xzyy(const glm::vec<4, T, Q> &v) {
    +
    1141  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.y);
    +
    1142  }
    +
    1143 
    +
    1144  // xzyz
    +
    1145  template<typename T, qualifier Q>
    +
    1146  GLM_INLINE glm::vec<4, T, Q> xzyz(const glm::vec<3, T, Q> &v) {
    +
    1147  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.z);
    +
    1148  }
    +
    1149 
    +
    1150  template<typename T, qualifier Q>
    +
    1151  GLM_INLINE glm::vec<4, T, Q> xzyz(const glm::vec<4, T, Q> &v) {
    +
    1152  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.z);
    +
    1153  }
    +
    1154 
    +
    1155  // xzyw
    +
    1156  template<typename T, qualifier Q>
    +
    1157  GLM_INLINE glm::vec<4, T, Q> xzyw(const glm::vec<4, T, Q> &v) {
    +
    1158  return glm::vec<4, T, Q>(v.x, v.z, v.y, v.w);
    +
    1159  }
    +
    1160 
    +
    1161  // xzzx
    +
    1162  template<typename T, qualifier Q>
    +
    1163  GLM_INLINE glm::vec<4, T, Q> xzzx(const glm::vec<3, T, Q> &v) {
    +
    1164  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.x);
    +
    1165  }
    +
    1166 
    +
    1167  template<typename T, qualifier Q>
    +
    1168  GLM_INLINE glm::vec<4, T, Q> xzzx(const glm::vec<4, T, Q> &v) {
    +
    1169  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.x);
    +
    1170  }
    +
    1171 
    +
    1172  // xzzy
    +
    1173  template<typename T, qualifier Q>
    +
    1174  GLM_INLINE glm::vec<4, T, Q> xzzy(const glm::vec<3, T, Q> &v) {
    +
    1175  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.y);
    +
    1176  }
    +
    1177 
    +
    1178  template<typename T, qualifier Q>
    +
    1179  GLM_INLINE glm::vec<4, T, Q> xzzy(const glm::vec<4, T, Q> &v) {
    +
    1180  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.y);
    +
    1181  }
    +
    1182 
    +
    1183  // xzzz
    +
    1184  template<typename T, qualifier Q>
    +
    1185  GLM_INLINE glm::vec<4, T, Q> xzzz(const glm::vec<3, T, Q> &v) {
    +
    1186  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.z);
    +
    1187  }
    +
    1188 
    +
    1189  template<typename T, qualifier Q>
    +
    1190  GLM_INLINE glm::vec<4, T, Q> xzzz(const glm::vec<4, T, Q> &v) {
    +
    1191  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.z);
    +
    1192  }
    +
    1193 
    +
    1194  // xzzw
    +
    1195  template<typename T, qualifier Q>
    +
    1196  GLM_INLINE glm::vec<4, T, Q> xzzw(const glm::vec<4, T, Q> &v) {
    +
    1197  return glm::vec<4, T, Q>(v.x, v.z, v.z, v.w);
    +
    1198  }
    +
    1199 
    +
    1200  // xzwx
    +
    1201  template<typename T, qualifier Q>
    +
    1202  GLM_INLINE glm::vec<4, T, Q> xzwx(const glm::vec<4, T, Q> &v) {
    +
    1203  return glm::vec<4, T, Q>(v.x, v.z, v.w, v.x);
    +
    1204  }
    +
    1205 
    +
    1206  // xzwy
    +
    1207  template<typename T, qualifier Q>
    +
    1208  GLM_INLINE glm::vec<4, T, Q> xzwy(const glm::vec<4, T, Q> &v) {
    +
    1209  return glm::vec<4, T, Q>(v.x, v.z, v.w, v.y);
    +
    1210  }
    +
    1211 
    +
    1212  // xzwz
    +
    1213  template<typename T, qualifier Q>
    +
    1214  GLM_INLINE glm::vec<4, T, Q> xzwz(const glm::vec<4, T, Q> &v) {
    +
    1215  return glm::vec<4, T, Q>(v.x, v.z, v.w, v.z);
    +
    1216  }
    +
    1217 
    +
    1218  // xzww
    +
    1219  template<typename T, qualifier Q>
    +
    1220  GLM_INLINE glm::vec<4, T, Q> xzww(const glm::vec<4, T, Q> &v) {
    +
    1221  return glm::vec<4, T, Q>(v.x, v.z, v.w, v.w);
    +
    1222  }
    +
    1223 
    +
    1224  // xwxx
    +
    1225  template<typename T, qualifier Q>
    +
    1226  GLM_INLINE glm::vec<4, T, Q> xwxx(const glm::vec<4, T, Q> &v) {
    +
    1227  return glm::vec<4, T, Q>(v.x, v.w, v.x, v.x);
    +
    1228  }
    +
    1229 
    +
    1230  // xwxy
    +
    1231  template<typename T, qualifier Q>
    +
    1232  GLM_INLINE glm::vec<4, T, Q> xwxy(const glm::vec<4, T, Q> &v) {
    +
    1233  return glm::vec<4, T, Q>(v.x, v.w, v.x, v.y);
    +
    1234  }
    +
    1235 
    +
    1236  // xwxz
    +
    1237  template<typename T, qualifier Q>
    +
    1238  GLM_INLINE glm::vec<4, T, Q> xwxz(const glm::vec<4, T, Q> &v) {
    +
    1239  return glm::vec<4, T, Q>(v.x, v.w, v.x, v.z);
    +
    1240  }
    +
    1241 
    +
    1242  // xwxw
    +
    1243  template<typename T, qualifier Q>
    +
    1244  GLM_INLINE glm::vec<4, T, Q> xwxw(const glm::vec<4, T, Q> &v) {
    +
    1245  return glm::vec<4, T, Q>(v.x, v.w, v.x, v.w);
    +
    1246  }
    +
    1247 
    +
    1248  // xwyx
    +
    1249  template<typename T, qualifier Q>
    +
    1250  GLM_INLINE glm::vec<4, T, Q> xwyx(const glm::vec<4, T, Q> &v) {
    +
    1251  return glm::vec<4, T, Q>(v.x, v.w, v.y, v.x);
    +
    1252  }
    +
    1253 
    +
    1254  // xwyy
    +
    1255  template<typename T, qualifier Q>
    +
    1256  GLM_INLINE glm::vec<4, T, Q> xwyy(const glm::vec<4, T, Q> &v) {
    +
    1257  return glm::vec<4, T, Q>(v.x, v.w, v.y, v.y);
    +
    1258  }
    +
    1259 
    +
    1260  // xwyz
    +
    1261  template<typename T, qualifier Q>
    +
    1262  GLM_INLINE glm::vec<4, T, Q> xwyz(const glm::vec<4, T, Q> &v) {
    +
    1263  return glm::vec<4, T, Q>(v.x, v.w, v.y, v.z);
    +
    1264  }
    +
    1265 
    +
    1266  // xwyw
    +
    1267  template<typename T, qualifier Q>
    +
    1268  GLM_INLINE glm::vec<4, T, Q> xwyw(const glm::vec<4, T, Q> &v) {
    +
    1269  return glm::vec<4, T, Q>(v.x, v.w, v.y, v.w);
    +
    1270  }
    +
    1271 
    +
    1272  // xwzx
    +
    1273  template<typename T, qualifier Q>
    +
    1274  GLM_INLINE glm::vec<4, T, Q> xwzx(const glm::vec<4, T, Q> &v) {
    +
    1275  return glm::vec<4, T, Q>(v.x, v.w, v.z, v.x);
    +
    1276  }
    +
    1277 
    +
    1278  // xwzy
    +
    1279  template<typename T, qualifier Q>
    +
    1280  GLM_INLINE glm::vec<4, T, Q> xwzy(const glm::vec<4, T, Q> &v) {
    +
    1281  return glm::vec<4, T, Q>(v.x, v.w, v.z, v.y);
    +
    1282  }
    +
    1283 
    +
    1284  // xwzz
    +
    1285  template<typename T, qualifier Q>
    +
    1286  GLM_INLINE glm::vec<4, T, Q> xwzz(const glm::vec<4, T, Q> &v) {
    +
    1287  return glm::vec<4, T, Q>(v.x, v.w, v.z, v.z);
    +
    1288  }
    +
    1289 
    +
    1290  // xwzw
    +
    1291  template<typename T, qualifier Q>
    +
    1292  GLM_INLINE glm::vec<4, T, Q> xwzw(const glm::vec<4, T, Q> &v) {
    +
    1293  return glm::vec<4, T, Q>(v.x, v.w, v.z, v.w);
    +
    1294  }
    +
    1295 
    +
    1296  // xwwx
    +
    1297  template<typename T, qualifier Q>
    +
    1298  GLM_INLINE glm::vec<4, T, Q> xwwx(const glm::vec<4, T, Q> &v) {
    +
    1299  return glm::vec<4, T, Q>(v.x, v.w, v.w, v.x);
    +
    1300  }
    +
    1301 
    +
    1302  // xwwy
    +
    1303  template<typename T, qualifier Q>
    +
    1304  GLM_INLINE glm::vec<4, T, Q> xwwy(const glm::vec<4, T, Q> &v) {
    +
    1305  return glm::vec<4, T, Q>(v.x, v.w, v.w, v.y);
    +
    1306  }
    +
    1307 
    +
    1308  // xwwz
    +
    1309  template<typename T, qualifier Q>
    +
    1310  GLM_INLINE glm::vec<4, T, Q> xwwz(const glm::vec<4, T, Q> &v) {
    +
    1311  return glm::vec<4, T, Q>(v.x, v.w, v.w, v.z);
    +
    1312  }
    +
    1313 
    +
    1314  // xwww
    +
    1315  template<typename T, qualifier Q>
    +
    1316  GLM_INLINE glm::vec<4, T, Q> xwww(const glm::vec<4, T, Q> &v) {
    +
    1317  return glm::vec<4, T, Q>(v.x, v.w, v.w, v.w);
    +
    1318  }
    +
    1319 
    +
    1320  // yxxx
    +
    1321  template<typename T, qualifier Q>
    +
    1322  GLM_INLINE glm::vec<4, T, Q> yxxx(const glm::vec<2, T, Q> &v) {
    +
    1323  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.x);
    +
    1324  }
    +
    1325 
    +
    1326  template<typename T, qualifier Q>
    +
    1327  GLM_INLINE glm::vec<4, T, Q> yxxx(const glm::vec<3, T, Q> &v) {
    +
    1328  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.x);
    +
    1329  }
    +
    1330 
    +
    1331  template<typename T, qualifier Q>
    +
    1332  GLM_INLINE glm::vec<4, T, Q> yxxx(const glm::vec<4, T, Q> &v) {
    +
    1333  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.x);
    +
    1334  }
    +
    1335 
    +
    1336  // yxxy
    +
    1337  template<typename T, qualifier Q>
    +
    1338  GLM_INLINE glm::vec<4, T, Q> yxxy(const glm::vec<2, T, Q> &v) {
    +
    1339  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.y);
    +
    1340  }
    +
    1341 
    +
    1342  template<typename T, qualifier Q>
    +
    1343  GLM_INLINE glm::vec<4, T, Q> yxxy(const glm::vec<3, T, Q> &v) {
    +
    1344  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.y);
    +
    1345  }
    +
    1346 
    +
    1347  template<typename T, qualifier Q>
    +
    1348  GLM_INLINE glm::vec<4, T, Q> yxxy(const glm::vec<4, T, Q> &v) {
    +
    1349  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.y);
    +
    1350  }
    +
    1351 
    +
    1352  // yxxz
    +
    1353  template<typename T, qualifier Q>
    +
    1354  GLM_INLINE glm::vec<4, T, Q> yxxz(const glm::vec<3, T, Q> &v) {
    +
    1355  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.z);
    +
    1356  }
    +
    1357 
    +
    1358  template<typename T, qualifier Q>
    +
    1359  GLM_INLINE glm::vec<4, T, Q> yxxz(const glm::vec<4, T, Q> &v) {
    +
    1360  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.z);
    +
    1361  }
    +
    1362 
    +
    1363  // yxxw
    +
    1364  template<typename T, qualifier Q>
    +
    1365  GLM_INLINE glm::vec<4, T, Q> yxxw(const glm::vec<4, T, Q> &v) {
    +
    1366  return glm::vec<4, T, Q>(v.y, v.x, v.x, v.w);
    +
    1367  }
    +
    1368 
    +
    1369  // yxyx
    +
    1370  template<typename T, qualifier Q>
    +
    1371  GLM_INLINE glm::vec<4, T, Q> yxyx(const glm::vec<2, T, Q> &v) {
    +
    1372  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.x);
    +
    1373  }
    +
    1374 
    +
    1375  template<typename T, qualifier Q>
    +
    1376  GLM_INLINE glm::vec<4, T, Q> yxyx(const glm::vec<3, T, Q> &v) {
    +
    1377  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.x);
    +
    1378  }
    +
    1379 
    +
    1380  template<typename T, qualifier Q>
    +
    1381  GLM_INLINE glm::vec<4, T, Q> yxyx(const glm::vec<4, T, Q> &v) {
    +
    1382  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.x);
    +
    1383  }
    +
    1384 
    +
    1385  // yxyy
    +
    1386  template<typename T, qualifier Q>
    +
    1387  GLM_INLINE glm::vec<4, T, Q> yxyy(const glm::vec<2, T, Q> &v) {
    +
    1388  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.y);
    +
    1389  }
    +
    1390 
    +
    1391  template<typename T, qualifier Q>
    +
    1392  GLM_INLINE glm::vec<4, T, Q> yxyy(const glm::vec<3, T, Q> &v) {
    +
    1393  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.y);
    +
    1394  }
    +
    1395 
    +
    1396  template<typename T, qualifier Q>
    +
    1397  GLM_INLINE glm::vec<4, T, Q> yxyy(const glm::vec<4, T, Q> &v) {
    +
    1398  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.y);
    +
    1399  }
    +
    1400 
    +
    1401  // yxyz
    +
    1402  template<typename T, qualifier Q>
    +
    1403  GLM_INLINE glm::vec<4, T, Q> yxyz(const glm::vec<3, T, Q> &v) {
    +
    1404  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.z);
    +
    1405  }
    +
    1406 
    +
    1407  template<typename T, qualifier Q>
    +
    1408  GLM_INLINE glm::vec<4, T, Q> yxyz(const glm::vec<4, T, Q> &v) {
    +
    1409  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.z);
    +
    1410  }
    +
    1411 
    +
    1412  // yxyw
    +
    1413  template<typename T, qualifier Q>
    +
    1414  GLM_INLINE glm::vec<4, T, Q> yxyw(const glm::vec<4, T, Q> &v) {
    +
    1415  return glm::vec<4, T, Q>(v.y, v.x, v.y, v.w);
    +
    1416  }
    +
    1417 
    +
    1418  // yxzx
    +
    1419  template<typename T, qualifier Q>
    +
    1420  GLM_INLINE glm::vec<4, T, Q> yxzx(const glm::vec<3, T, Q> &v) {
    +
    1421  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.x);
    +
    1422  }
    +
    1423 
    +
    1424  template<typename T, qualifier Q>
    +
    1425  GLM_INLINE glm::vec<4, T, Q> yxzx(const glm::vec<4, T, Q> &v) {
    +
    1426  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.x);
    +
    1427  }
    +
    1428 
    +
    1429  // yxzy
    +
    1430  template<typename T, qualifier Q>
    +
    1431  GLM_INLINE glm::vec<4, T, Q> yxzy(const glm::vec<3, T, Q> &v) {
    +
    1432  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.y);
    +
    1433  }
    +
    1434 
    +
    1435  template<typename T, qualifier Q>
    +
    1436  GLM_INLINE glm::vec<4, T, Q> yxzy(const glm::vec<4, T, Q> &v) {
    +
    1437  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.y);
    +
    1438  }
    +
    1439 
    +
    1440  // yxzz
    +
    1441  template<typename T, qualifier Q>
    +
    1442  GLM_INLINE glm::vec<4, T, Q> yxzz(const glm::vec<3, T, Q> &v) {
    +
    1443  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.z);
    +
    1444  }
    +
    1445 
    +
    1446  template<typename T, qualifier Q>
    +
    1447  GLM_INLINE glm::vec<4, T, Q> yxzz(const glm::vec<4, T, Q> &v) {
    +
    1448  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.z);
    +
    1449  }
    +
    1450 
    +
    1451  // yxzw
    +
    1452  template<typename T, qualifier Q>
    +
    1453  GLM_INLINE glm::vec<4, T, Q> yxzw(const glm::vec<4, T, Q> &v) {
    +
    1454  return glm::vec<4, T, Q>(v.y, v.x, v.z, v.w);
    +
    1455  }
    +
    1456 
    +
    1457  // yxwx
    +
    1458  template<typename T, qualifier Q>
    +
    1459  GLM_INLINE glm::vec<4, T, Q> yxwx(const glm::vec<4, T, Q> &v) {
    +
    1460  return glm::vec<4, T, Q>(v.y, v.x, v.w, v.x);
    +
    1461  }
    +
    1462 
    +
    1463  // yxwy
    +
    1464  template<typename T, qualifier Q>
    +
    1465  GLM_INLINE glm::vec<4, T, Q> yxwy(const glm::vec<4, T, Q> &v) {
    +
    1466  return glm::vec<4, T, Q>(v.y, v.x, v.w, v.y);
    +
    1467  }
    +
    1468 
    +
    1469  // yxwz
    +
    1470  template<typename T, qualifier Q>
    +
    1471  GLM_INLINE glm::vec<4, T, Q> yxwz(const glm::vec<4, T, Q> &v) {
    +
    1472  return glm::vec<4, T, Q>(v.y, v.x, v.w, v.z);
    +
    1473  }
    +
    1474 
    +
    1475  // yxww
    +
    1476  template<typename T, qualifier Q>
    +
    1477  GLM_INLINE glm::vec<4, T, Q> yxww(const glm::vec<4, T, Q> &v) {
    +
    1478  return glm::vec<4, T, Q>(v.y, v.x, v.w, v.w);
    +
    1479  }
    +
    1480 
    +
    1481  // yyxx
    +
    1482  template<typename T, qualifier Q>
    +
    1483  GLM_INLINE glm::vec<4, T, Q> yyxx(const glm::vec<2, T, Q> &v) {
    +
    1484  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.x);
    +
    1485  }
    +
    1486 
    +
    1487  template<typename T, qualifier Q>
    +
    1488  GLM_INLINE glm::vec<4, T, Q> yyxx(const glm::vec<3, T, Q> &v) {
    +
    1489  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.x);
    +
    1490  }
    +
    1491 
    +
    1492  template<typename T, qualifier Q>
    +
    1493  GLM_INLINE glm::vec<4, T, Q> yyxx(const glm::vec<4, T, Q> &v) {
    +
    1494  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.x);
    +
    1495  }
    +
    1496 
    +
    1497  // yyxy
    +
    1498  template<typename T, qualifier Q>
    +
    1499  GLM_INLINE glm::vec<4, T, Q> yyxy(const glm::vec<2, T, Q> &v) {
    +
    1500  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.y);
    +
    1501  }
    +
    1502 
    +
    1503  template<typename T, qualifier Q>
    +
    1504  GLM_INLINE glm::vec<4, T, Q> yyxy(const glm::vec<3, T, Q> &v) {
    +
    1505  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.y);
    +
    1506  }
    +
    1507 
    +
    1508  template<typename T, qualifier Q>
    +
    1509  GLM_INLINE glm::vec<4, T, Q> yyxy(const glm::vec<4, T, Q> &v) {
    +
    1510  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.y);
    +
    1511  }
    +
    1512 
    +
    1513  // yyxz
    +
    1514  template<typename T, qualifier Q>
    +
    1515  GLM_INLINE glm::vec<4, T, Q> yyxz(const glm::vec<3, T, Q> &v) {
    +
    1516  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.z);
    +
    1517  }
    +
    1518 
    +
    1519  template<typename T, qualifier Q>
    +
    1520  GLM_INLINE glm::vec<4, T, Q> yyxz(const glm::vec<4, T, Q> &v) {
    +
    1521  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.z);
    +
    1522  }
    +
    1523 
    +
    1524  // yyxw
    +
    1525  template<typename T, qualifier Q>
    +
    1526  GLM_INLINE glm::vec<4, T, Q> yyxw(const glm::vec<4, T, Q> &v) {
    +
    1527  return glm::vec<4, T, Q>(v.y, v.y, v.x, v.w);
    +
    1528  }
    +
    1529 
    +
    1530  // yyyx
    +
    1531  template<typename T, qualifier Q>
    +
    1532  GLM_INLINE glm::vec<4, T, Q> yyyx(const glm::vec<2, T, Q> &v) {
    +
    1533  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.x);
    +
    1534  }
    +
    1535 
    +
    1536  template<typename T, qualifier Q>
    +
    1537  GLM_INLINE glm::vec<4, T, Q> yyyx(const glm::vec<3, T, Q> &v) {
    +
    1538  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.x);
    +
    1539  }
    +
    1540 
    +
    1541  template<typename T, qualifier Q>
    +
    1542  GLM_INLINE glm::vec<4, T, Q> yyyx(const glm::vec<4, T, Q> &v) {
    +
    1543  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.x);
    +
    1544  }
    +
    1545 
    +
    1546  // yyyy
    +
    1547  template<typename T, qualifier Q>
    +
    1548  GLM_INLINE glm::vec<4, T, Q> yyyy(const glm::vec<2, T, Q> &v) {
    +
    1549  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.y);
    +
    1550  }
    +
    1551 
    +
    1552  template<typename T, qualifier Q>
    +
    1553  GLM_INLINE glm::vec<4, T, Q> yyyy(const glm::vec<3, T, Q> &v) {
    +
    1554  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.y);
    +
    1555  }
    +
    1556 
    +
    1557  template<typename T, qualifier Q>
    +
    1558  GLM_INLINE glm::vec<4, T, Q> yyyy(const glm::vec<4, T, Q> &v) {
    +
    1559  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.y);
    +
    1560  }
    +
    1561 
    +
    1562  // yyyz
    +
    1563  template<typename T, qualifier Q>
    +
    1564  GLM_INLINE glm::vec<4, T, Q> yyyz(const glm::vec<3, T, Q> &v) {
    +
    1565  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.z);
    +
    1566  }
    +
    1567 
    +
    1568  template<typename T, qualifier Q>
    +
    1569  GLM_INLINE glm::vec<4, T, Q> yyyz(const glm::vec<4, T, Q> &v) {
    +
    1570  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.z);
    +
    1571  }
    +
    1572 
    +
    1573  // yyyw
    +
    1574  template<typename T, qualifier Q>
    +
    1575  GLM_INLINE glm::vec<4, T, Q> yyyw(const glm::vec<4, T, Q> &v) {
    +
    1576  return glm::vec<4, T, Q>(v.y, v.y, v.y, v.w);
    +
    1577  }
    +
    1578 
    +
    1579  // yyzx
    +
    1580  template<typename T, qualifier Q>
    +
    1581  GLM_INLINE glm::vec<4, T, Q> yyzx(const glm::vec<3, T, Q> &v) {
    +
    1582  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.x);
    +
    1583  }
    +
    1584 
    +
    1585  template<typename T, qualifier Q>
    +
    1586  GLM_INLINE glm::vec<4, T, Q> yyzx(const glm::vec<4, T, Q> &v) {
    +
    1587  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.x);
    +
    1588  }
    +
    1589 
    +
    1590  // yyzy
    +
    1591  template<typename T, qualifier Q>
    +
    1592  GLM_INLINE glm::vec<4, T, Q> yyzy(const glm::vec<3, T, Q> &v) {
    +
    1593  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.y);
    +
    1594  }
    +
    1595 
    +
    1596  template<typename T, qualifier Q>
    +
    1597  GLM_INLINE glm::vec<4, T, Q> yyzy(const glm::vec<4, T, Q> &v) {
    +
    1598  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.y);
    +
    1599  }
    +
    1600 
    +
    1601  // yyzz
    +
    1602  template<typename T, qualifier Q>
    +
    1603  GLM_INLINE glm::vec<4, T, Q> yyzz(const glm::vec<3, T, Q> &v) {
    +
    1604  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.z);
    +
    1605  }
    +
    1606 
    +
    1607  template<typename T, qualifier Q>
    +
    1608  GLM_INLINE glm::vec<4, T, Q> yyzz(const glm::vec<4, T, Q> &v) {
    +
    1609  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.z);
    +
    1610  }
    +
    1611 
    +
    1612  // yyzw
    +
    1613  template<typename T, qualifier Q>
    +
    1614  GLM_INLINE glm::vec<4, T, Q> yyzw(const glm::vec<4, T, Q> &v) {
    +
    1615  return glm::vec<4, T, Q>(v.y, v.y, v.z, v.w);
    +
    1616  }
    +
    1617 
    +
    1618  // yywx
    +
    1619  template<typename T, qualifier Q>
    +
    1620  GLM_INLINE glm::vec<4, T, Q> yywx(const glm::vec<4, T, Q> &v) {
    +
    1621  return glm::vec<4, T, Q>(v.y, v.y, v.w, v.x);
    +
    1622  }
    +
    1623 
    +
    1624  // yywy
    +
    1625  template<typename T, qualifier Q>
    +
    1626  GLM_INLINE glm::vec<4, T, Q> yywy(const glm::vec<4, T, Q> &v) {
    +
    1627  return glm::vec<4, T, Q>(v.y, v.y, v.w, v.y);
    +
    1628  }
    +
    1629 
    +
    1630  // yywz
    +
    1631  template<typename T, qualifier Q>
    +
    1632  GLM_INLINE glm::vec<4, T, Q> yywz(const glm::vec<4, T, Q> &v) {
    +
    1633  return glm::vec<4, T, Q>(v.y, v.y, v.w, v.z);
    +
    1634  }
    +
    1635 
    +
    1636  // yyww
    +
    1637  template<typename T, qualifier Q>
    +
    1638  GLM_INLINE glm::vec<4, T, Q> yyww(const glm::vec<4, T, Q> &v) {
    +
    1639  return glm::vec<4, T, Q>(v.y, v.y, v.w, v.w);
    +
    1640  }
    +
    1641 
    +
    1642  // yzxx
    +
    1643  template<typename T, qualifier Q>
    +
    1644  GLM_INLINE glm::vec<4, T, Q> yzxx(const glm::vec<3, T, Q> &v) {
    +
    1645  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.x);
    +
    1646  }
    +
    1647 
    +
    1648  template<typename T, qualifier Q>
    +
    1649  GLM_INLINE glm::vec<4, T, Q> yzxx(const glm::vec<4, T, Q> &v) {
    +
    1650  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.x);
    +
    1651  }
    +
    1652 
    +
    1653  // yzxy
    +
    1654  template<typename T, qualifier Q>
    +
    1655  GLM_INLINE glm::vec<4, T, Q> yzxy(const glm::vec<3, T, Q> &v) {
    +
    1656  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.y);
    +
    1657  }
    +
    1658 
    +
    1659  template<typename T, qualifier Q>
    +
    1660  GLM_INLINE glm::vec<4, T, Q> yzxy(const glm::vec<4, T, Q> &v) {
    +
    1661  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.y);
    +
    1662  }
    +
    1663 
    +
    1664  // yzxz
    +
    1665  template<typename T, qualifier Q>
    +
    1666  GLM_INLINE glm::vec<4, T, Q> yzxz(const glm::vec<3, T, Q> &v) {
    +
    1667  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.z);
    +
    1668  }
    +
    1669 
    +
    1670  template<typename T, qualifier Q>
    +
    1671  GLM_INLINE glm::vec<4, T, Q> yzxz(const glm::vec<4, T, Q> &v) {
    +
    1672  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.z);
    +
    1673  }
    +
    1674 
    +
    1675  // yzxw
    +
    1676  template<typename T, qualifier Q>
    +
    1677  GLM_INLINE glm::vec<4, T, Q> yzxw(const glm::vec<4, T, Q> &v) {
    +
    1678  return glm::vec<4, T, Q>(v.y, v.z, v.x, v.w);
    +
    1679  }
    +
    1680 
    +
    1681  // yzyx
    +
    1682  template<typename T, qualifier Q>
    +
    1683  GLM_INLINE glm::vec<4, T, Q> yzyx(const glm::vec<3, T, Q> &v) {
    +
    1684  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.x);
    +
    1685  }
    +
    1686 
    +
    1687  template<typename T, qualifier Q>
    +
    1688  GLM_INLINE glm::vec<4, T, Q> yzyx(const glm::vec<4, T, Q> &v) {
    +
    1689  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.x);
    +
    1690  }
    +
    1691 
    +
    1692  // yzyy
    +
    1693  template<typename T, qualifier Q>
    +
    1694  GLM_INLINE glm::vec<4, T, Q> yzyy(const glm::vec<3, T, Q> &v) {
    +
    1695  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.y);
    +
    1696  }
    +
    1697 
    +
    1698  template<typename T, qualifier Q>
    +
    1699  GLM_INLINE glm::vec<4, T, Q> yzyy(const glm::vec<4, T, Q> &v) {
    +
    1700  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.y);
    +
    1701  }
    +
    1702 
    +
    1703  // yzyz
    +
    1704  template<typename T, qualifier Q>
    +
    1705  GLM_INLINE glm::vec<4, T, Q> yzyz(const glm::vec<3, T, Q> &v) {
    +
    1706  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.z);
    +
    1707  }
    +
    1708 
    +
    1709  template<typename T, qualifier Q>
    +
    1710  GLM_INLINE glm::vec<4, T, Q> yzyz(const glm::vec<4, T, Q> &v) {
    +
    1711  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.z);
    +
    1712  }
    +
    1713 
    +
    1714  // yzyw
    +
    1715  template<typename T, qualifier Q>
    +
    1716  GLM_INLINE glm::vec<4, T, Q> yzyw(const glm::vec<4, T, Q> &v) {
    +
    1717  return glm::vec<4, T, Q>(v.y, v.z, v.y, v.w);
    +
    1718  }
    +
    1719 
    +
    1720  // yzzx
    +
    1721  template<typename T, qualifier Q>
    +
    1722  GLM_INLINE glm::vec<4, T, Q> yzzx(const glm::vec<3, T, Q> &v) {
    +
    1723  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.x);
    +
    1724  }
    +
    1725 
    +
    1726  template<typename T, qualifier Q>
    +
    1727  GLM_INLINE glm::vec<4, T, Q> yzzx(const glm::vec<4, T, Q> &v) {
    +
    1728  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.x);
    +
    1729  }
    +
    1730 
    +
    1731  // yzzy
    +
    1732  template<typename T, qualifier Q>
    +
    1733  GLM_INLINE glm::vec<4, T, Q> yzzy(const glm::vec<3, T, Q> &v) {
    +
    1734  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.y);
    +
    1735  }
    +
    1736 
    +
    1737  template<typename T, qualifier Q>
    +
    1738  GLM_INLINE glm::vec<4, T, Q> yzzy(const glm::vec<4, T, Q> &v) {
    +
    1739  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.y);
    +
    1740  }
    +
    1741 
    +
    1742  // yzzz
    +
    1743  template<typename T, qualifier Q>
    +
    1744  GLM_INLINE glm::vec<4, T, Q> yzzz(const glm::vec<3, T, Q> &v) {
    +
    1745  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.z);
    +
    1746  }
    +
    1747 
    +
    1748  template<typename T, qualifier Q>
    +
    1749  GLM_INLINE glm::vec<4, T, Q> yzzz(const glm::vec<4, T, Q> &v) {
    +
    1750  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.z);
    +
    1751  }
    +
    1752 
    +
    1753  // yzzw
    +
    1754  template<typename T, qualifier Q>
    +
    1755  GLM_INLINE glm::vec<4, T, Q> yzzw(const glm::vec<4, T, Q> &v) {
    +
    1756  return glm::vec<4, T, Q>(v.y, v.z, v.z, v.w);
    +
    1757  }
    +
    1758 
    +
    1759  // yzwx
    +
    1760  template<typename T, qualifier Q>
    +
    1761  GLM_INLINE glm::vec<4, T, Q> yzwx(const glm::vec<4, T, Q> &v) {
    +
    1762  return glm::vec<4, T, Q>(v.y, v.z, v.w, v.x);
    +
    1763  }
    +
    1764 
    +
    1765  // yzwy
    +
    1766  template<typename T, qualifier Q>
    +
    1767  GLM_INLINE glm::vec<4, T, Q> yzwy(const glm::vec<4, T, Q> &v) {
    +
    1768  return glm::vec<4, T, Q>(v.y, v.z, v.w, v.y);
    +
    1769  }
    +
    1770 
    +
    1771  // yzwz
    +
    1772  template<typename T, qualifier Q>
    +
    1773  GLM_INLINE glm::vec<4, T, Q> yzwz(const glm::vec<4, T, Q> &v) {
    +
    1774  return glm::vec<4, T, Q>(v.y, v.z, v.w, v.z);
    +
    1775  }
    +
    1776 
    +
    1777  // yzww
    +
    1778  template<typename T, qualifier Q>
    +
    1779  GLM_INLINE glm::vec<4, T, Q> yzww(const glm::vec<4, T, Q> &v) {
    +
    1780  return glm::vec<4, T, Q>(v.y, v.z, v.w, v.w);
    +
    1781  }
    +
    1782 
    +
    1783  // ywxx
    +
    1784  template<typename T, qualifier Q>
    +
    1785  GLM_INLINE glm::vec<4, T, Q> ywxx(const glm::vec<4, T, Q> &v) {
    +
    1786  return glm::vec<4, T, Q>(v.y, v.w, v.x, v.x);
    +
    1787  }
    +
    1788 
    +
    1789  // ywxy
    +
    1790  template<typename T, qualifier Q>
    +
    1791  GLM_INLINE glm::vec<4, T, Q> ywxy(const glm::vec<4, T, Q> &v) {
    +
    1792  return glm::vec<4, T, Q>(v.y, v.w, v.x, v.y);
    +
    1793  }
    +
    1794 
    +
    1795  // ywxz
    +
    1796  template<typename T, qualifier Q>
    +
    1797  GLM_INLINE glm::vec<4, T, Q> ywxz(const glm::vec<4, T, Q> &v) {
    +
    1798  return glm::vec<4, T, Q>(v.y, v.w, v.x, v.z);
    +
    1799  }
    +
    1800 
    +
    1801  // ywxw
    +
    1802  template<typename T, qualifier Q>
    +
    1803  GLM_INLINE glm::vec<4, T, Q> ywxw(const glm::vec<4, T, Q> &v) {
    +
    1804  return glm::vec<4, T, Q>(v.y, v.w, v.x, v.w);
    +
    1805  }
    +
    1806 
    +
    1807  // ywyx
    +
    1808  template<typename T, qualifier Q>
    +
    1809  GLM_INLINE glm::vec<4, T, Q> ywyx(const glm::vec<4, T, Q> &v) {
    +
    1810  return glm::vec<4, T, Q>(v.y, v.w, v.y, v.x);
    +
    1811  }
    +
    1812 
    +
    1813  // ywyy
    +
    1814  template<typename T, qualifier Q>
    +
    1815  GLM_INLINE glm::vec<4, T, Q> ywyy(const glm::vec<4, T, Q> &v) {
    +
    1816  return glm::vec<4, T, Q>(v.y, v.w, v.y, v.y);
    +
    1817  }
    +
    1818 
    +
    1819  // ywyz
    +
    1820  template<typename T, qualifier Q>
    +
    1821  GLM_INLINE glm::vec<4, T, Q> ywyz(const glm::vec<4, T, Q> &v) {
    +
    1822  return glm::vec<4, T, Q>(v.y, v.w, v.y, v.z);
    +
    1823  }
    +
    1824 
    +
    1825  // ywyw
    +
    1826  template<typename T, qualifier Q>
    +
    1827  GLM_INLINE glm::vec<4, T, Q> ywyw(const glm::vec<4, T, Q> &v) {
    +
    1828  return glm::vec<4, T, Q>(v.y, v.w, v.y, v.w);
    +
    1829  }
    +
    1830 
    +
    1831  // ywzx
    +
    1832  template<typename T, qualifier Q>
    +
    1833  GLM_INLINE glm::vec<4, T, Q> ywzx(const glm::vec<4, T, Q> &v) {
    +
    1834  return glm::vec<4, T, Q>(v.y, v.w, v.z, v.x);
    +
    1835  }
    +
    1836 
    +
    1837  // ywzy
    +
    1838  template<typename T, qualifier Q>
    +
    1839  GLM_INLINE glm::vec<4, T, Q> ywzy(const glm::vec<4, T, Q> &v) {
    +
    1840  return glm::vec<4, T, Q>(v.y, v.w, v.z, v.y);
    +
    1841  }
    +
    1842 
    +
    1843  // ywzz
    +
    1844  template<typename T, qualifier Q>
    +
    1845  GLM_INLINE glm::vec<4, T, Q> ywzz(const glm::vec<4, T, Q> &v) {
    +
    1846  return glm::vec<4, T, Q>(v.y, v.w, v.z, v.z);
    +
    1847  }
    +
    1848 
    +
    1849  // ywzw
    +
    1850  template<typename T, qualifier Q>
    +
    1851  GLM_INLINE glm::vec<4, T, Q> ywzw(const glm::vec<4, T, Q> &v) {
    +
    1852  return glm::vec<4, T, Q>(v.y, v.w, v.z, v.w);
    +
    1853  }
    +
    1854 
    +
    1855  // ywwx
    +
    1856  template<typename T, qualifier Q>
    +
    1857  GLM_INLINE glm::vec<4, T, Q> ywwx(const glm::vec<4, T, Q> &v) {
    +
    1858  return glm::vec<4, T, Q>(v.y, v.w, v.w, v.x);
    +
    1859  }
    +
    1860 
    +
    1861  // ywwy
    +
    1862  template<typename T, qualifier Q>
    +
    1863  GLM_INLINE glm::vec<4, T, Q> ywwy(const glm::vec<4, T, Q> &v) {
    +
    1864  return glm::vec<4, T, Q>(v.y, v.w, v.w, v.y);
    +
    1865  }
    +
    1866 
    +
    1867  // ywwz
    +
    1868  template<typename T, qualifier Q>
    +
    1869  GLM_INLINE glm::vec<4, T, Q> ywwz(const glm::vec<4, T, Q> &v) {
    +
    1870  return glm::vec<4, T, Q>(v.y, v.w, v.w, v.z);
    +
    1871  }
    +
    1872 
    +
    1873  // ywww
    +
    1874  template<typename T, qualifier Q>
    +
    1875  GLM_INLINE glm::vec<4, T, Q> ywww(const glm::vec<4, T, Q> &v) {
    +
    1876  return glm::vec<4, T, Q>(v.y, v.w, v.w, v.w);
    +
    1877  }
    +
    1878 
    +
    1879  // zxxx
    +
    1880  template<typename T, qualifier Q>
    +
    1881  GLM_INLINE glm::vec<4, T, Q> zxxx(const glm::vec<3, T, Q> &v) {
    +
    1882  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.x);
    +
    1883  }
    +
    1884 
    +
    1885  template<typename T, qualifier Q>
    +
    1886  GLM_INLINE glm::vec<4, T, Q> zxxx(const glm::vec<4, T, Q> &v) {
    +
    1887  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.x);
    +
    1888  }
    +
    1889 
    +
    1890  // zxxy
    +
    1891  template<typename T, qualifier Q>
    +
    1892  GLM_INLINE glm::vec<4, T, Q> zxxy(const glm::vec<3, T, Q> &v) {
    +
    1893  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.y);
    +
    1894  }
    +
    1895 
    +
    1896  template<typename T, qualifier Q>
    +
    1897  GLM_INLINE glm::vec<4, T, Q> zxxy(const glm::vec<4, T, Q> &v) {
    +
    1898  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.y);
    +
    1899  }
    +
    1900 
    +
    1901  // zxxz
    +
    1902  template<typename T, qualifier Q>
    +
    1903  GLM_INLINE glm::vec<4, T, Q> zxxz(const glm::vec<3, T, Q> &v) {
    +
    1904  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.z);
    +
    1905  }
    +
    1906 
    +
    1907  template<typename T, qualifier Q>
    +
    1908  GLM_INLINE glm::vec<4, T, Q> zxxz(const glm::vec<4, T, Q> &v) {
    +
    1909  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.z);
    +
    1910  }
    +
    1911 
    +
    1912  // zxxw
    +
    1913  template<typename T, qualifier Q>
    +
    1914  GLM_INLINE glm::vec<4, T, Q> zxxw(const glm::vec<4, T, Q> &v) {
    +
    1915  return glm::vec<4, T, Q>(v.z, v.x, v.x, v.w);
    +
    1916  }
    +
    1917 
    +
    1918  // zxyx
    +
    1919  template<typename T, qualifier Q>
    +
    1920  GLM_INLINE glm::vec<4, T, Q> zxyx(const glm::vec<3, T, Q> &v) {
    +
    1921  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.x);
    +
    1922  }
    +
    1923 
    +
    1924  template<typename T, qualifier Q>
    +
    1925  GLM_INLINE glm::vec<4, T, Q> zxyx(const glm::vec<4, T, Q> &v) {
    +
    1926  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.x);
    +
    1927  }
    +
    1928 
    +
    1929  // zxyy
    +
    1930  template<typename T, qualifier Q>
    +
    1931  GLM_INLINE glm::vec<4, T, Q> zxyy(const glm::vec<3, T, Q> &v) {
    +
    1932  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.y);
    +
    1933  }
    +
    1934 
    +
    1935  template<typename T, qualifier Q>
    +
    1936  GLM_INLINE glm::vec<4, T, Q> zxyy(const glm::vec<4, T, Q> &v) {
    +
    1937  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.y);
    +
    1938  }
    +
    1939 
    +
    1940  // zxyz
    +
    1941  template<typename T, qualifier Q>
    +
    1942  GLM_INLINE glm::vec<4, T, Q> zxyz(const glm::vec<3, T, Q> &v) {
    +
    1943  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.z);
    +
    1944  }
    +
    1945 
    +
    1946  template<typename T, qualifier Q>
    +
    1947  GLM_INLINE glm::vec<4, T, Q> zxyz(const glm::vec<4, T, Q> &v) {
    +
    1948  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.z);
    +
    1949  }
    +
    1950 
    +
    1951  // zxyw
    +
    1952  template<typename T, qualifier Q>
    +
    1953  GLM_INLINE glm::vec<4, T, Q> zxyw(const glm::vec<4, T, Q> &v) {
    +
    1954  return glm::vec<4, T, Q>(v.z, v.x, v.y, v.w);
    +
    1955  }
    +
    1956 
    +
    1957  // zxzx
    +
    1958  template<typename T, qualifier Q>
    +
    1959  GLM_INLINE glm::vec<4, T, Q> zxzx(const glm::vec<3, T, Q> &v) {
    +
    1960  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.x);
    +
    1961  }
    +
    1962 
    +
    1963  template<typename T, qualifier Q>
    +
    1964  GLM_INLINE glm::vec<4, T, Q> zxzx(const glm::vec<4, T, Q> &v) {
    +
    1965  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.x);
    +
    1966  }
    +
    1967 
    +
    1968  // zxzy
    +
    1969  template<typename T, qualifier Q>
    +
    1970  GLM_INLINE glm::vec<4, T, Q> zxzy(const glm::vec<3, T, Q> &v) {
    +
    1971  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.y);
    +
    1972  }
    +
    1973 
    +
    1974  template<typename T, qualifier Q>
    +
    1975  GLM_INLINE glm::vec<4, T, Q> zxzy(const glm::vec<4, T, Q> &v) {
    +
    1976  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.y);
    +
    1977  }
    +
    1978 
    +
    1979  // zxzz
    +
    1980  template<typename T, qualifier Q>
    +
    1981  GLM_INLINE glm::vec<4, T, Q> zxzz(const glm::vec<3, T, Q> &v) {
    +
    1982  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.z);
    +
    1983  }
    +
    1984 
    +
    1985  template<typename T, qualifier Q>
    +
    1986  GLM_INLINE glm::vec<4, T, Q> zxzz(const glm::vec<4, T, Q> &v) {
    +
    1987  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.z);
    +
    1988  }
    +
    1989 
    +
    1990  // zxzw
    +
    1991  template<typename T, qualifier Q>
    +
    1992  GLM_INLINE glm::vec<4, T, Q> zxzw(const glm::vec<4, T, Q> &v) {
    +
    1993  return glm::vec<4, T, Q>(v.z, v.x, v.z, v.w);
    +
    1994  }
    +
    1995 
    +
    1996  // zxwx
    +
    1997  template<typename T, qualifier Q>
    +
    1998  GLM_INLINE glm::vec<4, T, Q> zxwx(const glm::vec<4, T, Q> &v) {
    +
    1999  return glm::vec<4, T, Q>(v.z, v.x, v.w, v.x);
    +
    2000  }
    +
    2001 
    +
    2002  // zxwy
    +
    2003  template<typename T, qualifier Q>
    +
    2004  GLM_INLINE glm::vec<4, T, Q> zxwy(const glm::vec<4, T, Q> &v) {
    +
    2005  return glm::vec<4, T, Q>(v.z, v.x, v.w, v.y);
    +
    2006  }
    +
    2007 
    +
    2008  // zxwz
    +
    2009  template<typename T, qualifier Q>
    +
    2010  GLM_INLINE glm::vec<4, T, Q> zxwz(const glm::vec<4, T, Q> &v) {
    +
    2011  return glm::vec<4, T, Q>(v.z, v.x, v.w, v.z);
    +
    2012  }
    +
    2013 
    +
    2014  // zxww
    +
    2015  template<typename T, qualifier Q>
    +
    2016  GLM_INLINE glm::vec<4, T, Q> zxww(const glm::vec<4, T, Q> &v) {
    +
    2017  return glm::vec<4, T, Q>(v.z, v.x, v.w, v.w);
    +
    2018  }
    +
    2019 
    +
    2020  // zyxx
    +
    2021  template<typename T, qualifier Q>
    +
    2022  GLM_INLINE glm::vec<4, T, Q> zyxx(const glm::vec<3, T, Q> &v) {
    +
    2023  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.x);
    +
    2024  }
    +
    2025 
    +
    2026  template<typename T, qualifier Q>
    +
    2027  GLM_INLINE glm::vec<4, T, Q> zyxx(const glm::vec<4, T, Q> &v) {
    +
    2028  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.x);
    +
    2029  }
    +
    2030 
    +
    2031  // zyxy
    +
    2032  template<typename T, qualifier Q>
    +
    2033  GLM_INLINE glm::vec<4, T, Q> zyxy(const glm::vec<3, T, Q> &v) {
    +
    2034  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.y);
    +
    2035  }
    +
    2036 
    +
    2037  template<typename T, qualifier Q>
    +
    2038  GLM_INLINE glm::vec<4, T, Q> zyxy(const glm::vec<4, T, Q> &v) {
    +
    2039  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.y);
    +
    2040  }
    +
    2041 
    +
    2042  // zyxz
    +
    2043  template<typename T, qualifier Q>
    +
    2044  GLM_INLINE glm::vec<4, T, Q> zyxz(const glm::vec<3, T, Q> &v) {
    +
    2045  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.z);
    +
    2046  }
    +
    2047 
    +
    2048  template<typename T, qualifier Q>
    +
    2049  GLM_INLINE glm::vec<4, T, Q> zyxz(const glm::vec<4, T, Q> &v) {
    +
    2050  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.z);
    +
    2051  }
    +
    2052 
    +
    2053  // zyxw
    +
    2054  template<typename T, qualifier Q>
    +
    2055  GLM_INLINE glm::vec<4, T, Q> zyxw(const glm::vec<4, T, Q> &v) {
    +
    2056  return glm::vec<4, T, Q>(v.z, v.y, v.x, v.w);
    +
    2057  }
    +
    2058 
    +
    2059  // zyyx
    +
    2060  template<typename T, qualifier Q>
    +
    2061  GLM_INLINE glm::vec<4, T, Q> zyyx(const glm::vec<3, T, Q> &v) {
    +
    2062  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.x);
    +
    2063  }
    +
    2064 
    +
    2065  template<typename T, qualifier Q>
    +
    2066  GLM_INLINE glm::vec<4, T, Q> zyyx(const glm::vec<4, T, Q> &v) {
    +
    2067  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.x);
    +
    2068  }
    +
    2069 
    +
    2070  // zyyy
    +
    2071  template<typename T, qualifier Q>
    +
    2072  GLM_INLINE glm::vec<4, T, Q> zyyy(const glm::vec<3, T, Q> &v) {
    +
    2073  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.y);
    +
    2074  }
    +
    2075 
    +
    2076  template<typename T, qualifier Q>
    +
    2077  GLM_INLINE glm::vec<4, T, Q> zyyy(const glm::vec<4, T, Q> &v) {
    +
    2078  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.y);
    +
    2079  }
    +
    2080 
    +
    2081  // zyyz
    +
    2082  template<typename T, qualifier Q>
    +
    2083  GLM_INLINE glm::vec<4, T, Q> zyyz(const glm::vec<3, T, Q> &v) {
    +
    2084  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.z);
    +
    2085  }
    +
    2086 
    +
    2087  template<typename T, qualifier Q>
    +
    2088  GLM_INLINE glm::vec<4, T, Q> zyyz(const glm::vec<4, T, Q> &v) {
    +
    2089  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.z);
    +
    2090  }
    +
    2091 
    +
    2092  // zyyw
    +
    2093  template<typename T, qualifier Q>
    +
    2094  GLM_INLINE glm::vec<4, T, Q> zyyw(const glm::vec<4, T, Q> &v) {
    +
    2095  return glm::vec<4, T, Q>(v.z, v.y, v.y, v.w);
    +
    2096  }
    +
    2097 
    +
    2098  // zyzx
    +
    2099  template<typename T, qualifier Q>
    +
    2100  GLM_INLINE glm::vec<4, T, Q> zyzx(const glm::vec<3, T, Q> &v) {
    +
    2101  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.x);
    +
    2102  }
    +
    2103 
    +
    2104  template<typename T, qualifier Q>
    +
    2105  GLM_INLINE glm::vec<4, T, Q> zyzx(const glm::vec<4, T, Q> &v) {
    +
    2106  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.x);
    +
    2107  }
    +
    2108 
    +
    2109  // zyzy
    +
    2110  template<typename T, qualifier Q>
    +
    2111  GLM_INLINE glm::vec<4, T, Q> zyzy(const glm::vec<3, T, Q> &v) {
    +
    2112  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.y);
    +
    2113  }
    +
    2114 
    +
    2115  template<typename T, qualifier Q>
    +
    2116  GLM_INLINE glm::vec<4, T, Q> zyzy(const glm::vec<4, T, Q> &v) {
    +
    2117  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.y);
    +
    2118  }
    +
    2119 
    +
    2120  // zyzz
    +
    2121  template<typename T, qualifier Q>
    +
    2122  GLM_INLINE glm::vec<4, T, Q> zyzz(const glm::vec<3, T, Q> &v) {
    +
    2123  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.z);
    +
    2124  }
    +
    2125 
    +
    2126  template<typename T, qualifier Q>
    +
    2127  GLM_INLINE glm::vec<4, T, Q> zyzz(const glm::vec<4, T, Q> &v) {
    +
    2128  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.z);
    +
    2129  }
    +
    2130 
    +
    2131  // zyzw
    +
    2132  template<typename T, qualifier Q>
    +
    2133  GLM_INLINE glm::vec<4, T, Q> zyzw(const glm::vec<4, T, Q> &v) {
    +
    2134  return glm::vec<4, T, Q>(v.z, v.y, v.z, v.w);
    +
    2135  }
    +
    2136 
    +
    2137  // zywx
    +
    2138  template<typename T, qualifier Q>
    +
    2139  GLM_INLINE glm::vec<4, T, Q> zywx(const glm::vec<4, T, Q> &v) {
    +
    2140  return glm::vec<4, T, Q>(v.z, v.y, v.w, v.x);
    +
    2141  }
    +
    2142 
    +
    2143  // zywy
    +
    2144  template<typename T, qualifier Q>
    +
    2145  GLM_INLINE glm::vec<4, T, Q> zywy(const glm::vec<4, T, Q> &v) {
    +
    2146  return glm::vec<4, T, Q>(v.z, v.y, v.w, v.y);
    +
    2147  }
    +
    2148 
    +
    2149  // zywz
    +
    2150  template<typename T, qualifier Q>
    +
    2151  GLM_INLINE glm::vec<4, T, Q> zywz(const glm::vec<4, T, Q> &v) {
    +
    2152  return glm::vec<4, T, Q>(v.z, v.y, v.w, v.z);
    +
    2153  }
    +
    2154 
    +
    2155  // zyww
    +
    2156  template<typename T, qualifier Q>
    +
    2157  GLM_INLINE glm::vec<4, T, Q> zyww(const glm::vec<4, T, Q> &v) {
    +
    2158  return glm::vec<4, T, Q>(v.z, v.y, v.w, v.w);
    +
    2159  }
    +
    2160 
    +
    2161  // zzxx
    +
    2162  template<typename T, qualifier Q>
    +
    2163  GLM_INLINE glm::vec<4, T, Q> zzxx(const glm::vec<3, T, Q> &v) {
    +
    2164  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.x);
    +
    2165  }
    +
    2166 
    +
    2167  template<typename T, qualifier Q>
    +
    2168  GLM_INLINE glm::vec<4, T, Q> zzxx(const glm::vec<4, T, Q> &v) {
    +
    2169  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.x);
    +
    2170  }
    +
    2171 
    +
    2172  // zzxy
    +
    2173  template<typename T, qualifier Q>
    +
    2174  GLM_INLINE glm::vec<4, T, Q> zzxy(const glm::vec<3, T, Q> &v) {
    +
    2175  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.y);
    +
    2176  }
    +
    2177 
    +
    2178  template<typename T, qualifier Q>
    +
    2179  GLM_INLINE glm::vec<4, T, Q> zzxy(const glm::vec<4, T, Q> &v) {
    +
    2180  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.y);
    +
    2181  }
    +
    2182 
    +
    2183  // zzxz
    +
    2184  template<typename T, qualifier Q>
    +
    2185  GLM_INLINE glm::vec<4, T, Q> zzxz(const glm::vec<3, T, Q> &v) {
    +
    2186  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.z);
    +
    2187  }
    +
    2188 
    +
    2189  template<typename T, qualifier Q>
    +
    2190  GLM_INLINE glm::vec<4, T, Q> zzxz(const glm::vec<4, T, Q> &v) {
    +
    2191  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.z);
    +
    2192  }
    +
    2193 
    +
    2194  // zzxw
    +
    2195  template<typename T, qualifier Q>
    +
    2196  GLM_INLINE glm::vec<4, T, Q> zzxw(const glm::vec<4, T, Q> &v) {
    +
    2197  return glm::vec<4, T, Q>(v.z, v.z, v.x, v.w);
    +
    2198  }
    +
    2199 
    +
    2200  // zzyx
    +
    2201  template<typename T, qualifier Q>
    +
    2202  GLM_INLINE glm::vec<4, T, Q> zzyx(const glm::vec<3, T, Q> &v) {
    +
    2203  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.x);
    +
    2204  }
    +
    2205 
    +
    2206  template<typename T, qualifier Q>
    +
    2207  GLM_INLINE glm::vec<4, T, Q> zzyx(const glm::vec<4, T, Q> &v) {
    +
    2208  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.x);
    +
    2209  }
    +
    2210 
    +
    2211  // zzyy
    +
    2212  template<typename T, qualifier Q>
    +
    2213  GLM_INLINE glm::vec<4, T, Q> zzyy(const glm::vec<3, T, Q> &v) {
    +
    2214  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.y);
    +
    2215  }
    +
    2216 
    +
    2217  template<typename T, qualifier Q>
    +
    2218  GLM_INLINE glm::vec<4, T, Q> zzyy(const glm::vec<4, T, Q> &v) {
    +
    2219  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.y);
    +
    2220  }
    +
    2221 
    +
    2222  // zzyz
    +
    2223  template<typename T, qualifier Q>
    +
    2224  GLM_INLINE glm::vec<4, T, Q> zzyz(const glm::vec<3, T, Q> &v) {
    +
    2225  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.z);
    +
    2226  }
    +
    2227 
    +
    2228  template<typename T, qualifier Q>
    +
    2229  GLM_INLINE glm::vec<4, T, Q> zzyz(const glm::vec<4, T, Q> &v) {
    +
    2230  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.z);
    +
    2231  }
    +
    2232 
    +
    2233  // zzyw
    +
    2234  template<typename T, qualifier Q>
    +
    2235  GLM_INLINE glm::vec<4, T, Q> zzyw(const glm::vec<4, T, Q> &v) {
    +
    2236  return glm::vec<4, T, Q>(v.z, v.z, v.y, v.w);
    +
    2237  }
    +
    2238 
    +
    2239  // zzzx
    +
    2240  template<typename T, qualifier Q>
    +
    2241  GLM_INLINE glm::vec<4, T, Q> zzzx(const glm::vec<3, T, Q> &v) {
    +
    2242  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.x);
    +
    2243  }
    +
    2244 
    +
    2245  template<typename T, qualifier Q>
    +
    2246  GLM_INLINE glm::vec<4, T, Q> zzzx(const glm::vec<4, T, Q> &v) {
    +
    2247  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.x);
    +
    2248  }
    +
    2249 
    +
    2250  // zzzy
    +
    2251  template<typename T, qualifier Q>
    +
    2252  GLM_INLINE glm::vec<4, T, Q> zzzy(const glm::vec<3, T, Q> &v) {
    +
    2253  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.y);
    +
    2254  }
    +
    2255 
    +
    2256  template<typename T, qualifier Q>
    +
    2257  GLM_INLINE glm::vec<4, T, Q> zzzy(const glm::vec<4, T, Q> &v) {
    +
    2258  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.y);
    +
    2259  }
    +
    2260 
    +
    2261  // zzzz
    +
    2262  template<typename T, qualifier Q>
    +
    2263  GLM_INLINE glm::vec<4, T, Q> zzzz(const glm::vec<3, T, Q> &v) {
    +
    2264  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.z);
    +
    2265  }
    +
    2266 
    +
    2267  template<typename T, qualifier Q>
    +
    2268  GLM_INLINE glm::vec<4, T, Q> zzzz(const glm::vec<4, T, Q> &v) {
    +
    2269  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.z);
    +
    2270  }
    +
    2271 
    +
    2272  // zzzw
    +
    2273  template<typename T, qualifier Q>
    +
    2274  GLM_INLINE glm::vec<4, T, Q> zzzw(const glm::vec<4, T, Q> &v) {
    +
    2275  return glm::vec<4, T, Q>(v.z, v.z, v.z, v.w);
    +
    2276  }
    +
    2277 
    +
    2278  // zzwx
    +
    2279  template<typename T, qualifier Q>
    +
    2280  GLM_INLINE glm::vec<4, T, Q> zzwx(const glm::vec<4, T, Q> &v) {
    +
    2281  return glm::vec<4, T, Q>(v.z, v.z, v.w, v.x);
    +
    2282  }
    +
    2283 
    +
    2284  // zzwy
    +
    2285  template<typename T, qualifier Q>
    +
    2286  GLM_INLINE glm::vec<4, T, Q> zzwy(const glm::vec<4, T, Q> &v) {
    +
    2287  return glm::vec<4, T, Q>(v.z, v.z, v.w, v.y);
    +
    2288  }
    +
    2289 
    +
    2290  // zzwz
    +
    2291  template<typename T, qualifier Q>
    +
    2292  GLM_INLINE glm::vec<4, T, Q> zzwz(const glm::vec<4, T, Q> &v) {
    +
    2293  return glm::vec<4, T, Q>(v.z, v.z, v.w, v.z);
    +
    2294  }
    +
    2295 
    +
    2296  // zzww
    +
    2297  template<typename T, qualifier Q>
    +
    2298  GLM_INLINE glm::vec<4, T, Q> zzww(const glm::vec<4, T, Q> &v) {
    +
    2299  return glm::vec<4, T, Q>(v.z, v.z, v.w, v.w);
    +
    2300  }
    +
    2301 
    +
    2302  // zwxx
    +
    2303  template<typename T, qualifier Q>
    +
    2304  GLM_INLINE glm::vec<4, T, Q> zwxx(const glm::vec<4, T, Q> &v) {
    +
    2305  return glm::vec<4, T, Q>(v.z, v.w, v.x, v.x);
    +
    2306  }
    +
    2307 
    +
    2308  // zwxy
    +
    2309  template<typename T, qualifier Q>
    +
    2310  GLM_INLINE glm::vec<4, T, Q> zwxy(const glm::vec<4, T, Q> &v) {
    +
    2311  return glm::vec<4, T, Q>(v.z, v.w, v.x, v.y);
    +
    2312  }
    +
    2313 
    +
    2314  // zwxz
    +
    2315  template<typename T, qualifier Q>
    +
    2316  GLM_INLINE glm::vec<4, T, Q> zwxz(const glm::vec<4, T, Q> &v) {
    +
    2317  return glm::vec<4, T, Q>(v.z, v.w, v.x, v.z);
    +
    2318  }
    +
    2319 
    +
    2320  // zwxw
    +
    2321  template<typename T, qualifier Q>
    +
    2322  GLM_INLINE glm::vec<4, T, Q> zwxw(const glm::vec<4, T, Q> &v) {
    +
    2323  return glm::vec<4, T, Q>(v.z, v.w, v.x, v.w);
    +
    2324  }
    +
    2325 
    +
    2326  // zwyx
    +
    2327  template<typename T, qualifier Q>
    +
    2328  GLM_INLINE glm::vec<4, T, Q> zwyx(const glm::vec<4, T, Q> &v) {
    +
    2329  return glm::vec<4, T, Q>(v.z, v.w, v.y, v.x);
    +
    2330  }
    +
    2331 
    +
    2332  // zwyy
    +
    2333  template<typename T, qualifier Q>
    +
    2334  GLM_INLINE glm::vec<4, T, Q> zwyy(const glm::vec<4, T, Q> &v) {
    +
    2335  return glm::vec<4, T, Q>(v.z, v.w, v.y, v.y);
    +
    2336  }
    +
    2337 
    +
    2338  // zwyz
    +
    2339  template<typename T, qualifier Q>
    +
    2340  GLM_INLINE glm::vec<4, T, Q> zwyz(const glm::vec<4, T, Q> &v) {
    +
    2341  return glm::vec<4, T, Q>(v.z, v.w, v.y, v.z);
    +
    2342  }
    +
    2343 
    +
    2344  // zwyw
    +
    2345  template<typename T, qualifier Q>
    +
    2346  GLM_INLINE glm::vec<4, T, Q> zwyw(const glm::vec<4, T, Q> &v) {
    +
    2347  return glm::vec<4, T, Q>(v.z, v.w, v.y, v.w);
    +
    2348  }
    +
    2349 
    +
    2350  // zwzx
    +
    2351  template<typename T, qualifier Q>
    +
    2352  GLM_INLINE glm::vec<4, T, Q> zwzx(const glm::vec<4, T, Q> &v) {
    +
    2353  return glm::vec<4, T, Q>(v.z, v.w, v.z, v.x);
    +
    2354  }
    +
    2355 
    +
    2356  // zwzy
    +
    2357  template<typename T, qualifier Q>
    +
    2358  GLM_INLINE glm::vec<4, T, Q> zwzy(const glm::vec<4, T, Q> &v) {
    +
    2359  return glm::vec<4, T, Q>(v.z, v.w, v.z, v.y);
    +
    2360  }
    +
    2361 
    +
    2362  // zwzz
    +
    2363  template<typename T, qualifier Q>
    +
    2364  GLM_INLINE glm::vec<4, T, Q> zwzz(const glm::vec<4, T, Q> &v) {
    +
    2365  return glm::vec<4, T, Q>(v.z, v.w, v.z, v.z);
    +
    2366  }
    +
    2367 
    +
    2368  // zwzw
    +
    2369  template<typename T, qualifier Q>
    +
    2370  GLM_INLINE glm::vec<4, T, Q> zwzw(const glm::vec<4, T, Q> &v) {
    +
    2371  return glm::vec<4, T, Q>(v.z, v.w, v.z, v.w);
    +
    2372  }
    +
    2373 
    +
    2374  // zwwx
    +
    2375  template<typename T, qualifier Q>
    +
    2376  GLM_INLINE glm::vec<4, T, Q> zwwx(const glm::vec<4, T, Q> &v) {
    +
    2377  return glm::vec<4, T, Q>(v.z, v.w, v.w, v.x);
    +
    2378  }
    +
    2379 
    +
    2380  // zwwy
    +
    2381  template<typename T, qualifier Q>
    +
    2382  GLM_INLINE glm::vec<4, T, Q> zwwy(const glm::vec<4, T, Q> &v) {
    +
    2383  return glm::vec<4, T, Q>(v.z, v.w, v.w, v.y);
    +
    2384  }
    +
    2385 
    +
    2386  // zwwz
    +
    2387  template<typename T, qualifier Q>
    +
    2388  GLM_INLINE glm::vec<4, T, Q> zwwz(const glm::vec<4, T, Q> &v) {
    +
    2389  return glm::vec<4, T, Q>(v.z, v.w, v.w, v.z);
    +
    2390  }
    +
    2391 
    +
    2392  // zwww
    +
    2393  template<typename T, qualifier Q>
    +
    2394  GLM_INLINE glm::vec<4, T, Q> zwww(const glm::vec<4, T, Q> &v) {
    +
    2395  return glm::vec<4, T, Q>(v.z, v.w, v.w, v.w);
    +
    2396  }
    +
    2397 
    +
    2398  // wxxx
    +
    2399  template<typename T, qualifier Q>
    +
    2400  GLM_INLINE glm::vec<4, T, Q> wxxx(const glm::vec<4, T, Q> &v) {
    +
    2401  return glm::vec<4, T, Q>(v.w, v.x, v.x, v.x);
    +
    2402  }
    +
    2403 
    +
    2404  // wxxy
    +
    2405  template<typename T, qualifier Q>
    +
    2406  GLM_INLINE glm::vec<4, T, Q> wxxy(const glm::vec<4, T, Q> &v) {
    +
    2407  return glm::vec<4, T, Q>(v.w, v.x, v.x, v.y);
    +
    2408  }
    +
    2409 
    +
    2410  // wxxz
    +
    2411  template<typename T, qualifier Q>
    +
    2412  GLM_INLINE glm::vec<4, T, Q> wxxz(const glm::vec<4, T, Q> &v) {
    +
    2413  return glm::vec<4, T, Q>(v.w, v.x, v.x, v.z);
    +
    2414  }
    +
    2415 
    +
    2416  // wxxw
    +
    2417  template<typename T, qualifier Q>
    +
    2418  GLM_INLINE glm::vec<4, T, Q> wxxw(const glm::vec<4, T, Q> &v) {
    +
    2419  return glm::vec<4, T, Q>(v.w, v.x, v.x, v.w);
    +
    2420  }
    +
    2421 
    +
    2422  // wxyx
    +
    2423  template<typename T, qualifier Q>
    +
    2424  GLM_INLINE glm::vec<4, T, Q> wxyx(const glm::vec<4, T, Q> &v) {
    +
    2425  return glm::vec<4, T, Q>(v.w, v.x, v.y, v.x);
    +
    2426  }
    +
    2427 
    +
    2428  // wxyy
    +
    2429  template<typename T, qualifier Q>
    +
    2430  GLM_INLINE glm::vec<4, T, Q> wxyy(const glm::vec<4, T, Q> &v) {
    +
    2431  return glm::vec<4, T, Q>(v.w, v.x, v.y, v.y);
    +
    2432  }
    +
    2433 
    +
    2434  // wxyz
    +
    2435  template<typename T, qualifier Q>
    +
    2436  GLM_INLINE glm::vec<4, T, Q> wxyz(const glm::vec<4, T, Q> &v) {
    +
    2437  return glm::vec<4, T, Q>(v.w, v.x, v.y, v.z);
    +
    2438  }
    +
    2439 
    +
    2440  // wxyw
    +
    2441  template<typename T, qualifier Q>
    +
    2442  GLM_INLINE glm::vec<4, T, Q> wxyw(const glm::vec<4, T, Q> &v) {
    +
    2443  return glm::vec<4, T, Q>(v.w, v.x, v.y, v.w);
    +
    2444  }
    +
    2445 
    +
    2446  // wxzx
    +
    2447  template<typename T, qualifier Q>
    +
    2448  GLM_INLINE glm::vec<4, T, Q> wxzx(const glm::vec<4, T, Q> &v) {
    +
    2449  return glm::vec<4, T, Q>(v.w, v.x, v.z, v.x);
    +
    2450  }
    +
    2451 
    +
    2452  // wxzy
    +
    2453  template<typename T, qualifier Q>
    +
    2454  GLM_INLINE glm::vec<4, T, Q> wxzy(const glm::vec<4, T, Q> &v) {
    +
    2455  return glm::vec<4, T, Q>(v.w, v.x, v.z, v.y);
    +
    2456  }
    +
    2457 
    +
    2458  // wxzz
    +
    2459  template<typename T, qualifier Q>
    +
    2460  GLM_INLINE glm::vec<4, T, Q> wxzz(const glm::vec<4, T, Q> &v) {
    +
    2461  return glm::vec<4, T, Q>(v.w, v.x, v.z, v.z);
    +
    2462  }
    +
    2463 
    +
    2464  // wxzw
    +
    2465  template<typename T, qualifier Q>
    +
    2466  GLM_INLINE glm::vec<4, T, Q> wxzw(const glm::vec<4, T, Q> &v) {
    +
    2467  return glm::vec<4, T, Q>(v.w, v.x, v.z, v.w);
    +
    2468  }
    +
    2469 
    +
    2470  // wxwx
    +
    2471  template<typename T, qualifier Q>
    +
    2472  GLM_INLINE glm::vec<4, T, Q> wxwx(const glm::vec<4, T, Q> &v) {
    +
    2473  return glm::vec<4, T, Q>(v.w, v.x, v.w, v.x);
    +
    2474  }
    +
    2475 
    +
    2476  // wxwy
    +
    2477  template<typename T, qualifier Q>
    +
    2478  GLM_INLINE glm::vec<4, T, Q> wxwy(const glm::vec<4, T, Q> &v) {
    +
    2479  return glm::vec<4, T, Q>(v.w, v.x, v.w, v.y);
    +
    2480  }
    +
    2481 
    +
    2482  // wxwz
    +
    2483  template<typename T, qualifier Q>
    +
    2484  GLM_INLINE glm::vec<4, T, Q> wxwz(const glm::vec<4, T, Q> &v) {
    +
    2485  return glm::vec<4, T, Q>(v.w, v.x, v.w, v.z);
    +
    2486  }
    +
    2487 
    +
    2488  // wxww
    +
    2489  template<typename T, qualifier Q>
    +
    2490  GLM_INLINE glm::vec<4, T, Q> wxww(const glm::vec<4, T, Q> &v) {
    +
    2491  return glm::vec<4, T, Q>(v.w, v.x, v.w, v.w);
    +
    2492  }
    +
    2493 
    +
    2494  // wyxx
    +
    2495  template<typename T, qualifier Q>
    +
    2496  GLM_INLINE glm::vec<4, T, Q> wyxx(const glm::vec<4, T, Q> &v) {
    +
    2497  return glm::vec<4, T, Q>(v.w, v.y, v.x, v.x);
    +
    2498  }
    +
    2499 
    +
    2500  // wyxy
    +
    2501  template<typename T, qualifier Q>
    +
    2502  GLM_INLINE glm::vec<4, T, Q> wyxy(const glm::vec<4, T, Q> &v) {
    +
    2503  return glm::vec<4, T, Q>(v.w, v.y, v.x, v.y);
    +
    2504  }
    +
    2505 
    +
    2506  // wyxz
    +
    2507  template<typename T, qualifier Q>
    +
    2508  GLM_INLINE glm::vec<4, T, Q> wyxz(const glm::vec<4, T, Q> &v) {
    +
    2509  return glm::vec<4, T, Q>(v.w, v.y, v.x, v.z);
    +
    2510  }
    +
    2511 
    +
    2512  // wyxw
    +
    2513  template<typename T, qualifier Q>
    +
    2514  GLM_INLINE glm::vec<4, T, Q> wyxw(const glm::vec<4, T, Q> &v) {
    +
    2515  return glm::vec<4, T, Q>(v.w, v.y, v.x, v.w);
    +
    2516  }
    +
    2517 
    +
    2518  // wyyx
    +
    2519  template<typename T, qualifier Q>
    +
    2520  GLM_INLINE glm::vec<4, T, Q> wyyx(const glm::vec<4, T, Q> &v) {
    +
    2521  return glm::vec<4, T, Q>(v.w, v.y, v.y, v.x);
    +
    2522  }
    +
    2523 
    +
    2524  // wyyy
    +
    2525  template<typename T, qualifier Q>
    +
    2526  GLM_INLINE glm::vec<4, T, Q> wyyy(const glm::vec<4, T, Q> &v) {
    +
    2527  return glm::vec<4, T, Q>(v.w, v.y, v.y, v.y);
    +
    2528  }
    +
    2529 
    +
    2530  // wyyz
    +
    2531  template<typename T, qualifier Q>
    +
    2532  GLM_INLINE glm::vec<4, T, Q> wyyz(const glm::vec<4, T, Q> &v) {
    +
    2533  return glm::vec<4, T, Q>(v.w, v.y, v.y, v.z);
    +
    2534  }
    +
    2535 
    +
    2536  // wyyw
    +
    2537  template<typename T, qualifier Q>
    +
    2538  GLM_INLINE glm::vec<4, T, Q> wyyw(const glm::vec<4, T, Q> &v) {
    +
    2539  return glm::vec<4, T, Q>(v.w, v.y, v.y, v.w);
    +
    2540  }
    +
    2541 
    +
    2542  // wyzx
    +
    2543  template<typename T, qualifier Q>
    +
    2544  GLM_INLINE glm::vec<4, T, Q> wyzx(const glm::vec<4, T, Q> &v) {
    +
    2545  return glm::vec<4, T, Q>(v.w, v.y, v.z, v.x);
    +
    2546  }
    +
    2547 
    +
    2548  // wyzy
    +
    2549  template<typename T, qualifier Q>
    +
    2550  GLM_INLINE glm::vec<4, T, Q> wyzy(const glm::vec<4, T, Q> &v) {
    +
    2551  return glm::vec<4, T, Q>(v.w, v.y, v.z, v.y);
    +
    2552  }
    +
    2553 
    +
    2554  // wyzz
    +
    2555  template<typename T, qualifier Q>
    +
    2556  GLM_INLINE glm::vec<4, T, Q> wyzz(const glm::vec<4, T, Q> &v) {
    +
    2557  return glm::vec<4, T, Q>(v.w, v.y, v.z, v.z);
    +
    2558  }
    +
    2559 
    +
    2560  // wyzw
    +
    2561  template<typename T, qualifier Q>
    +
    2562  GLM_INLINE glm::vec<4, T, Q> wyzw(const glm::vec<4, T, Q> &v) {
    +
    2563  return glm::vec<4, T, Q>(v.w, v.y, v.z, v.w);
    +
    2564  }
    +
    2565 
    +
    2566  // wywx
    +
    2567  template<typename T, qualifier Q>
    +
    2568  GLM_INLINE glm::vec<4, T, Q> wywx(const glm::vec<4, T, Q> &v) {
    +
    2569  return glm::vec<4, T, Q>(v.w, v.y, v.w, v.x);
    +
    2570  }
    +
    2571 
    +
    2572  // wywy
    +
    2573  template<typename T, qualifier Q>
    +
    2574  GLM_INLINE glm::vec<4, T, Q> wywy(const glm::vec<4, T, Q> &v) {
    +
    2575  return glm::vec<4, T, Q>(v.w, v.y, v.w, v.y);
    +
    2576  }
    +
    2577 
    +
    2578  // wywz
    +
    2579  template<typename T, qualifier Q>
    +
    2580  GLM_INLINE glm::vec<4, T, Q> wywz(const glm::vec<4, T, Q> &v) {
    +
    2581  return glm::vec<4, T, Q>(v.w, v.y, v.w, v.z);
    +
    2582  }
    +
    2583 
    +
    2584  // wyww
    +
    2585  template<typename T, qualifier Q>
    +
    2586  GLM_INLINE glm::vec<4, T, Q> wyww(const glm::vec<4, T, Q> &v) {
    +
    2587  return glm::vec<4, T, Q>(v.w, v.y, v.w, v.w);
    +
    2588  }
    +
    2589 
    +
    2590  // wzxx
    +
    2591  template<typename T, qualifier Q>
    +
    2592  GLM_INLINE glm::vec<4, T, Q> wzxx(const glm::vec<4, T, Q> &v) {
    +
    2593  return glm::vec<4, T, Q>(v.w, v.z, v.x, v.x);
    +
    2594  }
    +
    2595 
    +
    2596  // wzxy
    +
    2597  template<typename T, qualifier Q>
    +
    2598  GLM_INLINE glm::vec<4, T, Q> wzxy(const glm::vec<4, T, Q> &v) {
    +
    2599  return glm::vec<4, T, Q>(v.w, v.z, v.x, v.y);
    +
    2600  }
    +
    2601 
    +
    2602  // wzxz
    +
    2603  template<typename T, qualifier Q>
    +
    2604  GLM_INLINE glm::vec<4, T, Q> wzxz(const glm::vec<4, T, Q> &v) {
    +
    2605  return glm::vec<4, T, Q>(v.w, v.z, v.x, v.z);
    +
    2606  }
    +
    2607 
    +
    2608  // wzxw
    +
    2609  template<typename T, qualifier Q>
    +
    2610  GLM_INLINE glm::vec<4, T, Q> wzxw(const glm::vec<4, T, Q> &v) {
    +
    2611  return glm::vec<4, T, Q>(v.w, v.z, v.x, v.w);
    +
    2612  }
    +
    2613 
    +
    2614  // wzyx
    +
    2615  template<typename T, qualifier Q>
    +
    2616  GLM_INLINE glm::vec<4, T, Q> wzyx(const glm::vec<4, T, Q> &v) {
    +
    2617  return glm::vec<4, T, Q>(v.w, v.z, v.y, v.x);
    +
    2618  }
    +
    2619 
    +
    2620  // wzyy
    +
    2621  template<typename T, qualifier Q>
    +
    2622  GLM_INLINE glm::vec<4, T, Q> wzyy(const glm::vec<4, T, Q> &v) {
    +
    2623  return glm::vec<4, T, Q>(v.w, v.z, v.y, v.y);
    +
    2624  }
    +
    2625 
    +
    2626  // wzyz
    +
    2627  template<typename T, qualifier Q>
    +
    2628  GLM_INLINE glm::vec<4, T, Q> wzyz(const glm::vec<4, T, Q> &v) {
    +
    2629  return glm::vec<4, T, Q>(v.w, v.z, v.y, v.z);
    +
    2630  }
    +
    2631 
    +
    2632  // wzyw
    +
    2633  template<typename T, qualifier Q>
    +
    2634  GLM_INLINE glm::vec<4, T, Q> wzyw(const glm::vec<4, T, Q> &v) {
    +
    2635  return glm::vec<4, T, Q>(v.w, v.z, v.y, v.w);
    +
    2636  }
    +
    2637 
    +
    2638  // wzzx
    +
    2639  template<typename T, qualifier Q>
    +
    2640  GLM_INLINE glm::vec<4, T, Q> wzzx(const glm::vec<4, T, Q> &v) {
    +
    2641  return glm::vec<4, T, Q>(v.w, v.z, v.z, v.x);
    +
    2642  }
    +
    2643 
    +
    2644  // wzzy
    +
    2645  template<typename T, qualifier Q>
    +
    2646  GLM_INLINE glm::vec<4, T, Q> wzzy(const glm::vec<4, T, Q> &v) {
    +
    2647  return glm::vec<4, T, Q>(v.w, v.z, v.z, v.y);
    +
    2648  }
    +
    2649 
    +
    2650  // wzzz
    +
    2651  template<typename T, qualifier Q>
    +
    2652  GLM_INLINE glm::vec<4, T, Q> wzzz(const glm::vec<4, T, Q> &v) {
    +
    2653  return glm::vec<4, T, Q>(v.w, v.z, v.z, v.z);
    +
    2654  }
    +
    2655 
    +
    2656  // wzzw
    +
    2657  template<typename T, qualifier Q>
    +
    2658  GLM_INLINE glm::vec<4, T, Q> wzzw(const glm::vec<4, T, Q> &v) {
    +
    2659  return glm::vec<4, T, Q>(v.w, v.z, v.z, v.w);
    +
    2660  }
    +
    2661 
    +
    2662  // wzwx
    +
    2663  template<typename T, qualifier Q>
    +
    2664  GLM_INLINE glm::vec<4, T, Q> wzwx(const glm::vec<4, T, Q> &v) {
    +
    2665  return glm::vec<4, T, Q>(v.w, v.z, v.w, v.x);
    +
    2666  }
    +
    2667 
    +
    2668  // wzwy
    +
    2669  template<typename T, qualifier Q>
    +
    2670  GLM_INLINE glm::vec<4, T, Q> wzwy(const glm::vec<4, T, Q> &v) {
    +
    2671  return glm::vec<4, T, Q>(v.w, v.z, v.w, v.y);
    +
    2672  }
    +
    2673 
    +
    2674  // wzwz
    +
    2675  template<typename T, qualifier Q>
    +
    2676  GLM_INLINE glm::vec<4, T, Q> wzwz(const glm::vec<4, T, Q> &v) {
    +
    2677  return glm::vec<4, T, Q>(v.w, v.z, v.w, v.z);
    +
    2678  }
    +
    2679 
    +
    2680  // wzww
    +
    2681  template<typename T, qualifier Q>
    +
    2682  GLM_INLINE glm::vec<4, T, Q> wzww(const glm::vec<4, T, Q> &v) {
    +
    2683  return glm::vec<4, T, Q>(v.w, v.z, v.w, v.w);
    +
    2684  }
    +
    2685 
    +
    2686  // wwxx
    +
    2687  template<typename T, qualifier Q>
    +
    2688  GLM_INLINE glm::vec<4, T, Q> wwxx(const glm::vec<4, T, Q> &v) {
    +
    2689  return glm::vec<4, T, Q>(v.w, v.w, v.x, v.x);
    +
    2690  }
    +
    2691 
    +
    2692  // wwxy
    +
    2693  template<typename T, qualifier Q>
    +
    2694  GLM_INLINE glm::vec<4, T, Q> wwxy(const glm::vec<4, T, Q> &v) {
    +
    2695  return glm::vec<4, T, Q>(v.w, v.w, v.x, v.y);
    +
    2696  }
    +
    2697 
    +
    2698  // wwxz
    +
    2699  template<typename T, qualifier Q>
    +
    2700  GLM_INLINE glm::vec<4, T, Q> wwxz(const glm::vec<4, T, Q> &v) {
    +
    2701  return glm::vec<4, T, Q>(v.w, v.w, v.x, v.z);
    +
    2702  }
    +
    2703 
    +
    2704  // wwxw
    +
    2705  template<typename T, qualifier Q>
    +
    2706  GLM_INLINE glm::vec<4, T, Q> wwxw(const glm::vec<4, T, Q> &v) {
    +
    2707  return glm::vec<4, T, Q>(v.w, v.w, v.x, v.w);
    +
    2708  }
    +
    2709 
    +
    2710  // wwyx
    +
    2711  template<typename T, qualifier Q>
    +
    2712  GLM_INLINE glm::vec<4, T, Q> wwyx(const glm::vec<4, T, Q> &v) {
    +
    2713  return glm::vec<4, T, Q>(v.w, v.w, v.y, v.x);
    +
    2714  }
    +
    2715 
    +
    2716  // wwyy
    +
    2717  template<typename T, qualifier Q>
    +
    2718  GLM_INLINE glm::vec<4, T, Q> wwyy(const glm::vec<4, T, Q> &v) {
    +
    2719  return glm::vec<4, T, Q>(v.w, v.w, v.y, v.y);
    +
    2720  }
    +
    2721 
    +
    2722  // wwyz
    +
    2723  template<typename T, qualifier Q>
    +
    2724  GLM_INLINE glm::vec<4, T, Q> wwyz(const glm::vec<4, T, Q> &v) {
    +
    2725  return glm::vec<4, T, Q>(v.w, v.w, v.y, v.z);
    +
    2726  }
    +
    2727 
    +
    2728  // wwyw
    +
    2729  template<typename T, qualifier Q>
    +
    2730  GLM_INLINE glm::vec<4, T, Q> wwyw(const glm::vec<4, T, Q> &v) {
    +
    2731  return glm::vec<4, T, Q>(v.w, v.w, v.y, v.w);
    +
    2732  }
    +
    2733 
    +
    2734  // wwzx
    +
    2735  template<typename T, qualifier Q>
    +
    2736  GLM_INLINE glm::vec<4, T, Q> wwzx(const glm::vec<4, T, Q> &v) {
    +
    2737  return glm::vec<4, T, Q>(v.w, v.w, v.z, v.x);
    +
    2738  }
    +
    2739 
    +
    2740  // wwzy
    +
    2741  template<typename T, qualifier Q>
    +
    2742  GLM_INLINE glm::vec<4, T, Q> wwzy(const glm::vec<4, T, Q> &v) {
    +
    2743  return glm::vec<4, T, Q>(v.w, v.w, v.z, v.y);
    +
    2744  }
    +
    2745 
    +
    2746  // wwzz
    +
    2747  template<typename T, qualifier Q>
    +
    2748  GLM_INLINE glm::vec<4, T, Q> wwzz(const glm::vec<4, T, Q> &v) {
    +
    2749  return glm::vec<4, T, Q>(v.w, v.w, v.z, v.z);
    +
    2750  }
    +
    2751 
    +
    2752  // wwzw
    +
    2753  template<typename T, qualifier Q>
    +
    2754  GLM_INLINE glm::vec<4, T, Q> wwzw(const glm::vec<4, T, Q> &v) {
    +
    2755  return glm::vec<4, T, Q>(v.w, v.w, v.z, v.w);
    +
    2756  }
    +
    2757 
    +
    2758  // wwwx
    +
    2759  template<typename T, qualifier Q>
    +
    2760  GLM_INLINE glm::vec<4, T, Q> wwwx(const glm::vec<4, T, Q> &v) {
    +
    2761  return glm::vec<4, T, Q>(v.w, v.w, v.w, v.x);
    +
    2762  }
    +
    2763 
    +
    2764  // wwwy
    +
    2765  template<typename T, qualifier Q>
    +
    2766  GLM_INLINE glm::vec<4, T, Q> wwwy(const glm::vec<4, T, Q> &v) {
    +
    2767  return glm::vec<4, T, Q>(v.w, v.w, v.w, v.y);
    +
    2768  }
    +
    2769 
    +
    2770  // wwwz
    +
    2771  template<typename T, qualifier Q>
    +
    2772  GLM_INLINE glm::vec<4, T, Q> wwwz(const glm::vec<4, T, Q> &v) {
    +
    2773  return glm::vec<4, T, Q>(v.w, v.w, v.w, v.z);
    +
    2774  }
    +
    2775 
    +
    2776  // wwww
    +
    2777  template<typename T, qualifier Q>
    +
    2778  GLM_INLINE glm::vec<4, T, Q> wwww(const glm::vec<4, T, Q> &v) {
    +
    2779  return glm::vec<4, T, Q>(v.w, v.w, v.w, v.w);
    +
    2780  }
    +
    2781 
    +
    2782 }
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00188.html b/external/glm-0.9.9.8/doc/api/a00188.html new file mode 100644 index 0000000..2435a44 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00188.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: vector_angle.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_angle.hpp File Reference
    +
    +
    + +

    GLM_GTX_vector_angle +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T angle (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the absolute angle between two vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T orientedAngle (vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)
     Returns the oriented angle between two 2d vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T orientedAngle (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, vec< 3, T, Q > const &ref)
     Returns the oriented angle between two 3d vectors based from a reference axis. More...
     
    +

    Detailed Description

    +

    GLM_GTX_vector_angle

    +
    See also
    Core features (dependence)
    +
    +GLM_GTX_quaternion (dependence)
    +
    +gtx_epsilon (dependence)
    + +

    Definition in file vector_angle.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00188_source.html b/external/glm-0.9.9.8/doc/api/a00188_source.html new file mode 100644 index 0000000..628d8fb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00188_source.html @@ -0,0 +1,134 @@ + + + + + + +0.9.9 API documentation: vector_angle.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_angle.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    15 #pragma once
    +
    16 
    +
    17 // Dependency:
    +
    18 #include "../glm.hpp"
    +
    19 #include "../gtc/epsilon.hpp"
    +
    20 #include "../gtx/quaternion.hpp"
    +
    21 #include "../gtx/rotate_vector.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    25 # pragma message("GLM: GLM_GTX_vector_angle is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    26 # else
    +
    27 # pragma message("GLM: GLM_GTX_vector_angle extension included")
    +
    28 # endif
    +
    29 #endif
    +
    30 
    +
    31 namespace glm
    +
    32 {
    +
    35 
    +
    39  template<length_t L, typename T, qualifier Q>
    +
    40  GLM_FUNC_DECL T angle(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    41 
    +
    45  template<typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL T orientedAngle(vec<2, T, Q> const& x, vec<2, T, Q> const& y);
    +
    47 
    +
    51  template<typename T, qualifier Q>
    +
    52  GLM_FUNC_DECL T orientedAngle(vec<3, T, Q> const& x, vec<3, T, Q> const& y, vec<3, T, Q> const& ref);
    +
    53 
    +
    55 }// namespace glm
    +
    56 
    +
    57 #include "vector_angle.inl"
    +
    GLM_FUNC_DECL T orientedAngle(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, vec< 3, T, Q > const &ref)
    Returns the oriented angle between two 3d vectors based from a reference axis.
    +
    GLM_FUNC_DECL T angle(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the absolute angle between two vectors.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00189.html b/external/glm-0.9.9.8/doc/api/a00189.html new file mode 100644 index 0000000..18e3c68 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00189.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_bool1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool1.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_bool1 +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef vec< 1, bool, defaultp > bvec1
     1 components vector of boolean.
     
    +

    Detailed Description

    +

    GLM_EXT_vector_bool1

    + +

    Definition in file vector_bool1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00189_source.html b/external/glm-0.9.9.8/doc/api/a00189_source.html new file mode 100644 index 0000000..6059ff9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00189_source.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: vector_bool1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/type_vec1.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # pragma message("GLM: GLM_EXT_vector_bool1 extension included")
    +
    19 #endif
    +
    20 
    +
    21 namespace glm
    +
    22 {
    +
    25 
    +
    27  typedef vec<1, bool, defaultp> bvec1;
    +
    28 
    +
    30 }//namespace glm
    +
    vec< 1, bool, defaultp > bvec1
    1 components vector of boolean.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00190.html b/external/glm-0.9.9.8/doc/api/a00190.html new file mode 100644 index 0000000..bcb6719 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00190.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: vector_bool1_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool1_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_bool1_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, bool, highp > highp_bvec1
     1 component vector of bool values.
     
    +typedef vec< 1, bool, lowp > lowp_bvec1
     1 component vector of bool values.
     
    +typedef vec< 1, bool, mediump > mediump_bvec1
     1 component vector of bool values.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00190_source.html b/external/glm-0.9.9.8/doc/api/a00190_source.html new file mode 100644 index 0000000..b103890 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00190_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vector_bool1_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool1_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 #include "../detail/type_vec1.hpp"
    +
    14 
    +
    15 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    16 # pragma message("GLM: GLM_EXT_vector_bool1_precision extension included")
    +
    17 #endif
    +
    18 
    +
    19 namespace glm
    +
    20 {
    +
    23 
    +
    25  typedef vec<1, bool, highp> highp_bvec1;
    +
    26 
    +
    28  typedef vec<1, bool, mediump> mediump_bvec1;
    +
    29 
    +
    31  typedef vec<1, bool, lowp> lowp_bvec1;
    +
    32 
    +
    34 }//namespace glm
    +
    vec< 1, bool, highp > highp_bvec1
    1 component vector of bool values.
    +
    vec< 1, bool, mediump > mediump_bvec1
    1 component vector of bool values.
    +
    vec< 1, bool, lowp > lowp_bvec1
    1 component vector of bool values.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00191.html b/external/glm-0.9.9.8/doc/api/a00191.html new file mode 100644 index 0000000..82efdfb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00191.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 2, bool, defaultp > bvec2
     2 components vector of boolean. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00191_source.html b/external/glm-0.9.9.8/doc/api/a00191_source.html new file mode 100644 index 0000000..04ea5bc --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00191_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_bool2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<2, bool, defaultp> bvec2;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 2, bool, defaultp > bvec2
    2 components vector of boolean.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00192.html b/external/glm-0.9.9.8/doc/api/a00192.html new file mode 100644 index 0000000..efc1241 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00192.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_bool2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, bool, highp > highp_bvec2
     2 components vector of high qualifier bool numbers. More...
     
    typedef vec< 2, bool, lowp > lowp_bvec2
     2 components vector of low qualifier bool numbers. More...
     
    typedef vec< 2, bool, mediump > mediump_bvec2
     2 components vector of medium qualifier bool numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool2_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00192_source.html b/external/glm-0.9.9.8/doc/api/a00192_source.html new file mode 100644 index 0000000..faabec4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00192_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<2, bool, highp> highp_bvec2;
    +
    17 
    +
    22  typedef vec<2, bool, mediump> mediump_bvec2;
    +
    23 
    +
    28  typedef vec<2, bool, lowp> lowp_bvec2;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 2, bool, highp > highp_bvec2
    2 components vector of high qualifier bool numbers.
    +
    vec< 2, bool, mediump > mediump_bvec2
    2 components vector of medium qualifier bool numbers.
    +
    vec< 2, bool, lowp > lowp_bvec2
    2 components vector of low qualifier bool numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00193.html b/external/glm-0.9.9.8/doc/api/a00193.html new file mode 100644 index 0000000..bebf208 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00193.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 3, bool, defaultp > bvec3
     3 components vector of boolean. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00193_source.html b/external/glm-0.9.9.8/doc/api/a00193_source.html new file mode 100644 index 0000000..def35af --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00193_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_bool3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<3, bool, defaultp> bvec3;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 3, bool, defaultp > bvec3
    3 components vector of boolean.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00194.html b/external/glm-0.9.9.8/doc/api/a00194.html new file mode 100644 index 0000000..5e44e93 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00194.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_bool3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 3, bool, highp > highp_bvec3
     3 components vector of high qualifier bool numbers. More...
     
    typedef vec< 3, bool, lowp > lowp_bvec3
     3 components vector of low qualifier bool numbers. More...
     
    typedef vec< 3, bool, mediump > mediump_bvec3
     3 components vector of medium qualifier bool numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool3_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00194_source.html b/external/glm-0.9.9.8/doc/api/a00194_source.html new file mode 100644 index 0000000..6a1e3cb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00194_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<3, bool, highp> highp_bvec3;
    +
    17 
    +
    22  typedef vec<3, bool, mediump> mediump_bvec3;
    +
    23 
    +
    28  typedef vec<3, bool, lowp> lowp_bvec3;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 3, bool, mediump > mediump_bvec3
    3 components vector of medium qualifier bool numbers.
    +
    vec< 3, bool, highp > highp_bvec3
    3 components vector of high qualifier bool numbers.
    +
    vec< 3, bool, lowp > lowp_bvec3
    3 components vector of low qualifier bool numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00195.html b/external/glm-0.9.9.8/doc/api/a00195.html new file mode 100644 index 0000000..9c493ab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00195.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 4, bool, defaultp > bvec4
     4 components vector of boolean. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00195_source.html b/external/glm-0.9.9.8/doc/api/a00195_source.html new file mode 100644 index 0000000..d7dc35b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00195_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_bool4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<4, bool, defaultp> bvec4;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 4, bool, defaultp > bvec4
    4 components vector of boolean.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00196.html b/external/glm-0.9.9.8/doc/api/a00196.html new file mode 100644 index 0000000..b8d12ba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00196.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_bool4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_bool4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 4, bool, highp > highp_bvec4
     4 components vector of high qualifier bool numbers. More...
     
    typedef vec< 4, bool, lowp > lowp_bvec4
     4 components vector of low qualifier bool numbers. More...
     
    typedef vec< 4, bool, mediump > mediump_bvec4
     4 components vector of medium qualifier bool numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_bool4_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00196_source.html b/external/glm-0.9.9.8/doc/api/a00196_source.html new file mode 100644 index 0000000..edcc6f2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00196_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_bool4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_bool4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<4, bool, highp> highp_bvec4;
    +
    17 
    +
    22  typedef vec<4, bool, mediump> mediump_bvec4;
    +
    23 
    +
    28  typedef vec<4, bool, lowp> lowp_bvec4;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 4, bool, lowp > lowp_bvec4
    4 components vector of low qualifier bool numbers.
    +
    vec< 4, bool, mediump > mediump_bvec4
    4 components vector of medium qualifier bool numbers.
    +
    vec< 4, bool, highp > highp_bvec4
    4 components vector of high qualifier bool numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00197.html b/external/glm-0.9.9.8/doc/api/a00197.html new file mode 100644 index 0000000..2352c1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00197.html @@ -0,0 +1,162 @@ + + + + + + +0.9.9 API documentation: vector_common.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_common.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_common +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, T b)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &x, T y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Return the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    GLM_EXT_vector_common

    + +

    Definition in file vector_common.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00197_source.html b/external/glm-0.9.9.8/doc/api/a00197_source.html new file mode 100644 index 0000000..9746652 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00197_source.html @@ -0,0 +1,157 @@ + + + + + + +0.9.9 API documentation: vector_common.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_common.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 // Dependency:
    +
    17 #include "../ext/scalar_common.hpp"
    +
    18 #include "../common.hpp"
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # pragma message("GLM: GLM_EXT_vector_common extension included")
    +
    22 #endif
    +
    23 
    +
    24 namespace glm
    +
    25 {
    +
    28 
    +
    34  template<length_t L, typename T, qualifier Q>
    +
    35  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
    +
    36 
    +
    42  template<length_t L, typename T, qualifier Q>
    +
    43  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
    +
    44 
    +
    50  template<length_t L, typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z);
    +
    52 
    +
    58  template<length_t L, typename T, qualifier Q>
    +
    59  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max( vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z, vec<L, T, Q> const& w);
    +
    60 
    +
    68  template<length_t L, typename T, qualifier Q>
    +
    69  GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, T y);
    +
    70 
    +
    78  template<length_t L, typename T, qualifier Q>
    +
    79  GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    80 
    +
    88  template<length_t L, typename T, qualifier Q>
    +
    89  GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
    +
    90 
    +
    98  template<length_t L, typename T, qualifier Q>
    +
    99  GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
    +
    100 
    +
    108  template<length_t L, typename T, qualifier Q>
    +
    109  GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, T b);
    +
    110 
    +
    118  template<length_t L, typename T, qualifier Q>
    +
    119  GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b);
    +
    120 
    +
    128  template<length_t L, typename T, qualifier Q>
    +
    129  GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
    +
    130 
    +
    138  template<length_t L, typename T, qualifier Q>
    +
    139  GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
    +
    140 
    +
    142 }//namespace glm
    +
    143 
    +
    144 #include "vector_common.inl"
    +
    GLM_FUNC_DECL vec< L, T, Q > fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
    Returns y if x < y; otherwise, it returns x.
    +
    GLM_FUNC_DECL vec< L, T, Q > fmin(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
    Returns y if y < x; otherwise, it returns x.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w)
    Return the maximum component-wise values of 4 inputs.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
    Return the minimum component-wise values of 4 inputs.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00198.html b/external/glm-0.9.9.8/doc/api/a00198.html new file mode 100644 index 0000000..90c5fba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00198.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_double1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double1.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_double1 +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef vec< 1, double, defaultp > dvec1
     1 components vector of double-precision floating-point numbers.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00198_source.html b/external/glm-0.9.9.8/doc/api/a00198_source.html new file mode 100644 index 0000000..4416ac8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00198_source.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: vector_double1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 #include "../detail/type_vec1.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_EXT_vector_double1 extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    28  typedef vec<1, double, defaultp> dvec1;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 1, double, defaultp > dvec1
    1 components vector of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00199.html b/external/glm-0.9.9.8/doc/api/a00199.html new file mode 100644 index 0000000..d04f73f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00199.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: vector_double1_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double1_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_double1_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, double, highp > highp_dvec1
     1 component vector of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, lowp > lowp_dvec1
     1 component vector of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, mediump > mediump_dvec1
     1 component vector of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00199_source.html b/external/glm-0.9.9.8/doc/api/a00199_source.html new file mode 100644 index 0000000..8dd0deb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00199_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vector_double1_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double1_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/type_vec1.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # pragma message("GLM: GLM_EXT_vector_double1_precision extension included")
    +
    19 #endif
    +
    20 
    +
    21 namespace glm
    +
    22 {
    +
    25 
    +
    27  typedef vec<1, double, highp> highp_dvec1;
    +
    28 
    +
    30  typedef vec<1, double, mediump> mediump_dvec1;
    +
    31 
    +
    33  typedef vec<1, double, lowp> lowp_dvec1;
    +
    34 
    +
    36 }//namespace glm
    +
    vec< 1, double, lowp > lowp_dvec1
    1 component vector of double-precision floating-point numbers using low precision arithmetic in term ...
    +
    vec< 1, double, highp > highp_dvec1
    1 component vector of double-precision floating-point numbers using high precision arithmetic in term...
    +
    vec< 1, double, mediump > mediump_dvec1
    1 component vector of double-precision floating-point numbers using medium precision arithmetic in te...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00200.html b/external/glm-0.9.9.8/doc/api/a00200.html new file mode 100644 index 0000000..f98419e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00200.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_double2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 2, double, defaultp > dvec2
     2 components vector of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_double2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00200_source.html b/external/glm-0.9.9.8/doc/api/a00200_source.html new file mode 100644 index 0000000..89cd285 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00200_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_double2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<2, double, defaultp> dvec2;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 2, double, defaultp > dvec2
    2 components vector of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00201.html b/external/glm-0.9.9.8/doc/api/a00201.html new file mode 100644 index 0000000..fb310d1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00201.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_double2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, double, highp > highp_dvec2
     2 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 2, double, lowp > lowp_dvec2
     2 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 2, double, mediump > mediump_dvec2
     2 components vector of medium double-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00201_source.html b/external/glm-0.9.9.8/doc/api/a00201_source.html new file mode 100644 index 0000000..2fe5af7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00201_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_double2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<2, double, highp> highp_dvec2;
    +
    17 
    +
    22  typedef vec<2, double, mediump> mediump_dvec2;
    +
    23 
    +
    28  typedef vec<2, double, lowp> lowp_dvec2;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 2, double, lowp > lowp_dvec2
    2 components vector of low double-qualifier floating-point numbers.
    +
    vec< 2, double, mediump > mediump_dvec2
    2 components vector of medium double-qualifier floating-point numbers.
    +
    vec< 2, double, highp > highp_dvec2
    2 components vector of high double-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00202.html b/external/glm-0.9.9.8/doc/api/a00202.html new file mode 100644 index 0000000..76f7bcb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00202.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_double3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 3, double, defaultp > dvec3
     3 components vector of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_double3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00202_source.html b/external/glm-0.9.9.8/doc/api/a00202_source.html new file mode 100644 index 0000000..ec3fe4d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00202_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_double3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<3, double, defaultp> dvec3;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 3, double, defaultp > dvec3
    3 components vector of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00203.html b/external/glm-0.9.9.8/doc/api/a00203.html new file mode 100644 index 0000000..75e9da7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00203.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_double3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 3, double, highp > highp_dvec3
     3 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 3, double, lowp > lowp_dvec3
     3 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 3, double, mediump > mediump_dvec3
     3 components vector of medium double-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00203_source.html b/external/glm-0.9.9.8/doc/api/a00203_source.html new file mode 100644 index 0000000..1e097f2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00203_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_double3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    17  typedef vec<3, double, highp> highp_dvec3;
    +
    18 
    +
    24  typedef vec<3, double, mediump> mediump_dvec3;
    +
    25 
    +
    31  typedef vec<3, double, lowp> lowp_dvec3;
    +
    32 
    +
    34 }//namespace glm
    +
    vec< 3, double, mediump > mediump_dvec3
    3 components vector of medium double-qualifier floating-point numbers.
    +
    vec< 3, double, lowp > lowp_dvec3
    3 components vector of low double-qualifier floating-point numbers.
    +
    vec< 3, double, highp > highp_dvec3
    3 components vector of high double-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00204.html b/external/glm-0.9.9.8/doc/api/a00204.html new file mode 100644 index 0000000..ffa7d7a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00204.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_double4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 4, double, defaultp > dvec4
     4 components vector of double-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_double4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00204_source.html b/external/glm-0.9.9.8/doc/api/a00204_source.html new file mode 100644 index 0000000..cd01195 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00204_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_double4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<4, double, defaultp> dvec4;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 4, double, defaultp > dvec4
    4 components vector of double-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00205.html b/external/glm-0.9.9.8/doc/api/a00205.html new file mode 100644 index 0000000..f99ee75 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00205.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_double4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_double4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 4, double, highp > highp_dvec4
     4 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 4, double, lowp > lowp_dvec4
     4 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 4, double, mediump > mediump_dvec4
     4 components vector of medium double-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00205_source.html b/external/glm-0.9.9.8/doc/api/a00205_source.html new file mode 100644 index 0000000..b2f9e0d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00205_source.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_double4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_double4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/setup.hpp"
    +
    6 #include "../detail/type_vec4.hpp"
    +
    7 
    +
    8 namespace glm
    +
    9 {
    +
    12 
    +
    18  typedef vec<4, double, highp> highp_dvec4;
    +
    19 
    +
    25  typedef vec<4, double, mediump> mediump_dvec4;
    +
    26 
    +
    32  typedef vec<4, double, lowp> lowp_dvec4;
    +
    33 
    +
    35 }//namespace glm
    +
    vec< 4, double, mediump > mediump_dvec4
    4 components vector of medium double-qualifier floating-point numbers.
    +
    vec< 4, double, highp > highp_dvec4
    4 components vector of high double-qualifier floating-point numbers.
    +
    vec< 4, double, lowp > lowp_dvec4
    4 components vector of low double-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00206.html b/external/glm-0.9.9.8/doc/api/a00206.html new file mode 100644 index 0000000..6c1d519 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00206.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_float1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float1.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_float1 +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef vec< 1, float, defaultp > vec1
     1 components vector of single-precision floating-point numbers.
     
    +

    Detailed Description

    +

    GLM_EXT_vector_float1

    + +

    Definition in file vector_float1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00206_source.html b/external/glm-0.9.9.8/doc/api/a00206_source.html new file mode 100644 index 0000000..a4559f8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00206_source.html @@ -0,0 +1,116 @@ + + + + + + +0.9.9 API documentation: vector_float1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 #include "../detail/type_vec1.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_EXT_vector_float1 extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    28  typedef vec<1, float, defaultp> vec1;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 1, float, defaultp > vec1
    1 components vector of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00207.html b/external/glm-0.9.9.8/doc/api/a00207.html new file mode 100644 index 0000000..279e90d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00207.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: vector_float1_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float1_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_float1_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, float, highp > highp_vec1
     1 component vector of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, float, lowp > lowp_vec1
     1 component vector of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, float, mediump > mediump_vec1
     1 component vector of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00207_source.html b/external/glm-0.9.9.8/doc/api/a00207_source.html new file mode 100644 index 0000000..6b7ad60 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00207_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vector_float1_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float1_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 #include "../detail/type_vec1.hpp"
    +
    16 
    +
    17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    18 # pragma message("GLM: GLM_EXT_vector_float1_precision extension included")
    +
    19 #endif
    +
    20 
    +
    21 namespace glm
    +
    22 {
    +
    25 
    +
    27  typedef vec<1, float, highp> highp_vec1;
    +
    28 
    +
    30  typedef vec<1, float, mediump> mediump_vec1;
    +
    31 
    +
    33  typedef vec<1, float, lowp> lowp_vec1;
    +
    34 
    +
    36 }//namespace glm
    +
    vec< 1, float, lowp > lowp_vec1
    1 component vector of single-precision floating-point numbers using low precision arithmetic in term ...
    +
    vec< 1, float, mediump > mediump_vec1
    1 component vector of single-precision floating-point numbers using medium precision arithmetic in te...
    +
    vec< 1, float, highp > highp_vec1
    1 component vector of single-precision floating-point numbers using high precision arithmetic in term...
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00208.html b/external/glm-0.9.9.8/doc/api/a00208.html new file mode 100644 index 0000000..5c5e2dd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00208.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 2, float, defaultp > vec2
     2 components vector of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_float2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00208_source.html b/external/glm-0.9.9.8/doc/api/a00208_source.html new file mode 100644 index 0000000..5d0ae47 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00208_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_float2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<2, float, defaultp> vec2;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 2, float, defaultp > vec2
    2 components vector of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00209.html b/external/glm-0.9.9.8/doc/api/a00209.html new file mode 100644 index 0000000..d354885 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00209.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_float2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, float, highp > highp_vec2
     2 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 2, float, lowp > lowp_vec2
     2 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 2, float, mediump > mediump_vec2
     2 components vector of medium single-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00209_source.html b/external/glm-0.9.9.8/doc/api/a00209_source.html new file mode 100644 index 0000000..2854751 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00209_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<2, float, highp> highp_vec2;
    +
    17 
    +
    22  typedef vec<2, float, mediump> mediump_vec2;
    +
    23 
    +
    28  typedef vec<2, float, lowp> lowp_vec2;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 2, float, highp > highp_vec2
    2 components vector of high single-qualifier floating-point numbers.
    +
    vec< 2, float, lowp > lowp_vec2
    2 components vector of low single-qualifier floating-point numbers.
    +
    vec< 2, float, mediump > mediump_vec2
    2 components vector of medium single-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00210.html b/external/glm-0.9.9.8/doc/api/a00210.html new file mode 100644 index 0000000..580da52 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00210.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 3, float, defaultp > vec3
     3 components vector of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_float3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00210_source.html b/external/glm-0.9.9.8/doc/api/a00210_source.html new file mode 100644 index 0000000..ec29c3f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00210_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_float3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<3, float, defaultp> vec3;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 3, float, defaultp > vec3
    3 components vector of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00211.html b/external/glm-0.9.9.8/doc/api/a00211.html new file mode 100644 index 0000000..8d6d73a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00211.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_float3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 3, float, highp > highp_vec3
     3 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 3, float, lowp > lowp_vec3
     3 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 3, float, mediump > mediump_vec3
     3 components vector of medium single-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00211_source.html b/external/glm-0.9.9.8/doc/api/a00211_source.html new file mode 100644 index 0000000..dbd7a4d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00211_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<3, float, highp> highp_vec3;
    +
    17 
    +
    22  typedef vec<3, float, mediump> mediump_vec3;
    +
    23 
    +
    28  typedef vec<3, float, lowp> lowp_vec3;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 3, float, highp > highp_vec3
    3 components vector of high single-qualifier floating-point numbers.
    +
    vec< 3, float, lowp > lowp_vec3
    3 components vector of low single-qualifier floating-point numbers.
    +
    vec< 3, float, mediump > mediump_vec3
    3 components vector of medium single-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00212.html b/external/glm-0.9.9.8/doc/api/a00212.html new file mode 100644 index 0000000..f935350 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00212.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 4, float, defaultp > vec4
     4 components vector of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_float4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00212_source.html b/external/glm-0.9.9.8/doc/api/a00212_source.html new file mode 100644 index 0000000..b7b08d9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00212_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_float4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<4, float, defaultp> vec4;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 4, float, defaultp > vec4
    4 components vector of single-precision floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00213.html b/external/glm-0.9.9.8/doc/api/a00213.html new file mode 100644 index 0000000..a5a872f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00213.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_float4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_float4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 4, float, highp > highp_vec4
     4 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 4, float, lowp > lowp_vec4
     4 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 4, float, mediump > mediump_vec4
     4 components vector of medium single-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00213_source.html b/external/glm-0.9.9.8/doc/api/a00213_source.html new file mode 100644 index 0000000..24ddd11 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00213_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_float4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_float4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<4, float, highp> highp_vec4;
    +
    17 
    +
    22  typedef vec<4, float, mediump> mediump_vec4;
    +
    23 
    +
    28  typedef vec<4, float, lowp> lowp_vec4;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 4, float, lowp > lowp_vec4
    4 components vector of low single-qualifier floating-point numbers.
    +
    vec< 4, float, mediump > mediump_vec4
    4 components vector of medium single-qualifier floating-point numbers.
    +
    vec< 4, float, highp > highp_vec4
    4 components vector of high single-qualifier floating-point numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00214.html b/external/glm-0.9.9.8/doc/api/a00214.html new file mode 100644 index 0000000..cab9bd9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00214.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_int1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int1.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_int1 +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef vec< 1, int, defaultp > ivec1
     1 component vector of signed integer numbers.
     
    +

    Detailed Description

    +

    GLM_EXT_vector_int1

    + +

    Definition in file vector_int1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00214_source.html b/external/glm-0.9.9.8/doc/api/a00214_source.html new file mode 100644 index 0000000..59a3635 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00214_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 #include "../detail/type_vec1.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_EXT_vector_int1 extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    28  typedef vec<1, int, defaultp> ivec1;
    +
    29 
    +
    31 }//namespace glm
    +
    32 
    +
    vec< 1, int, defaultp > ivec1
    1 component vector of signed integer numbers.
    Definition: vector_int1.hpp:28
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00215.html b/external/glm-0.9.9.8/doc/api/a00215.html new file mode 100644 index 0000000..c1ae7de --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00215.html @@ -0,0 +1,126 @@ + + + + + + +0.9.9 API documentation: vector_int1_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int1_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_int1_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, int, highp > highp_ivec1
     1 component vector of signed integer values.
     
    +typedef vec< 1, int, lowp > lowp_ivec1
     1 component vector of signed integer values.
     
    +typedef vec< 1, int, mediump > mediump_ivec1
     1 component vector of signed integer values.
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00215_source.html b/external/glm-0.9.9.8/doc/api/a00215_source.html new file mode 100644 index 0000000..c5e2c2e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00215_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vector_int1_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int1_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 #include "../detail/type_vec1.hpp"
    +
    14 
    +
    15 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    16 # pragma message("GLM: GLM_EXT_vector_int1_precision extension included")
    +
    17 #endif
    +
    18 
    +
    19 namespace glm
    +
    20 {
    +
    23 
    +
    25  typedef vec<1, int, highp> highp_ivec1;
    +
    26 
    +
    28  typedef vec<1, int, mediump> mediump_ivec1;
    +
    29 
    +
    31  typedef vec<1, int, lowp> lowp_ivec1;
    +
    32 
    +
    34 }//namespace glm
    +
    vec< 1, int, mediump > mediump_ivec1
    1 component vector of signed integer values.
    +
    vec< 1, int, highp > highp_ivec1
    1 component vector of signed integer values.
    +
    vec< 1, int, lowp > lowp_ivec1
    1 component vector of signed integer values.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00216.html b/external/glm-0.9.9.8/doc/api/a00216.html new file mode 100644 index 0000000..9a7689c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00216.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 2, int, defaultp > ivec2
     2 components vector of signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00216_source.html b/external/glm-0.9.9.8/doc/api/a00216_source.html new file mode 100644 index 0000000..e2b463c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00216_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_int2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<2, int, defaultp> ivec2;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 2, int, defaultp > ivec2
    2 components vector of signed integer numbers.
    Definition: vector_int2.hpp:15
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00217.html b/external/glm-0.9.9.8/doc/api/a00217.html new file mode 100644 index 0000000..f5ce258 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00217.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_int2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, int, highp > highp_ivec2
     2 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 2, int, lowp > lowp_ivec2
     2 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 2, int, mediump > mediump_ivec2
     2 components vector of medium qualifier signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int2_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00217_source.html b/external/glm-0.9.9.8/doc/api/a00217_source.html new file mode 100644 index 0000000..eabef99 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00217_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<2, int, highp> highp_ivec2;
    +
    17 
    +
    22  typedef vec<2, int, mediump> mediump_ivec2;
    +
    23 
    +
    28  typedef vec<2, int, lowp> lowp_ivec2;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 2, int, highp > highp_ivec2
    2 components vector of high qualifier signed integer numbers.
    +
    vec< 2, int, mediump > mediump_ivec2
    2 components vector of medium qualifier signed integer numbers.
    +
    vec< 2, int, lowp > lowp_ivec2
    2 components vector of low qualifier signed integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00218.html b/external/glm-0.9.9.8/doc/api/a00218.html new file mode 100644 index 0000000..c9e858e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00218.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 3, int, defaultp > ivec3
     3 components vector of signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00218_source.html b/external/glm-0.9.9.8/doc/api/a00218_source.html new file mode 100644 index 0000000..cfc6dd5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00218_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_int3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<3, int, defaultp> ivec3;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 3, int, defaultp > ivec3
    3 components vector of signed integer numbers.
    Definition: vector_int3.hpp:15
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00219.html b/external/glm-0.9.9.8/doc/api/a00219.html new file mode 100644 index 0000000..ef47973 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00219.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_int3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 3, int, highp > highp_ivec3
     3 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 3, int, lowp > lowp_ivec3
     3 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 3, int, mediump > mediump_ivec3
     3 components vector of medium qualifier signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int3_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00219_source.html b/external/glm-0.9.9.8/doc/api/a00219_source.html new file mode 100644 index 0000000..ccc1385 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00219_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<3, int, highp> highp_ivec3;
    +
    17 
    +
    22  typedef vec<3, int, mediump> mediump_ivec3;
    +
    23 
    +
    28  typedef vec<3, int, lowp> lowp_ivec3;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 3, int, lowp > lowp_ivec3
    3 components vector of low qualifier signed integer numbers.
    +
    vec< 3, int, mediump > mediump_ivec3
    3 components vector of medium qualifier signed integer numbers.
    +
    vec< 3, int, highp > highp_ivec3
    3 components vector of high qualifier signed integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00220.html b/external/glm-0.9.9.8/doc/api/a00220.html new file mode 100644 index 0000000..8a99425 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00220.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 4, int, defaultp > ivec4
     4 components vector of signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00220_source.html b/external/glm-0.9.9.8/doc/api/a00220_source.html new file mode 100644 index 0000000..58a03d3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00220_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_int4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<4, int, defaultp> ivec4;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 4, int, defaultp > ivec4
    4 components vector of signed integer numbers.
    Definition: vector_int4.hpp:15
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00221.html b/external/glm-0.9.9.8/doc/api/a00221.html new file mode 100644 index 0000000..254cafd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00221.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_int4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_int4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 4, int, highp > highp_ivec4
     4 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 4, int, lowp > lowp_ivec4
     4 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 4, int, mediump > mediump_ivec4
     4 components vector of medium qualifier signed integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_int4_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00221_source.html b/external/glm-0.9.9.8/doc/api/a00221_source.html new file mode 100644 index 0000000..8d51750 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00221_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_int4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_int4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<4, int, highp> highp_ivec4;
    +
    17 
    +
    22  typedef vec<4, int, mediump> mediump_ivec4;
    +
    23 
    +
    28  typedef vec<4, int, lowp> lowp_ivec4;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 4, int, lowp > lowp_ivec4
    4 components vector of low qualifier signed integer numbers.
    +
    vec< 4, int, highp > highp_ivec4
    4 components vector of high qualifier signed integer numbers.
    +
    vec< 4, int, mediump > mediump_ivec4
    4 components vector of medium qualifier signed integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00222.html b/external/glm-0.9.9.8/doc/api/a00222.html new file mode 100644 index 0000000..aebfeae --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00222.html @@ -0,0 +1,157 @@ + + + + + + +0.9.9 API documentation: vector_integer.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_integer.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_integer +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findNSB (vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)
     Returns the bit number of the Nth significant bit set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isMultiple (vec< L, T, Q > const &v, T Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isPowerOfTwo (vec< L, T, Q > const &v)
     Return true if the value is a power of two number. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextMultiple (vec< L, T, Q > const &v, T Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevMultiple (vec< L, T, Q > const &v, T Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    +

    Detailed Description

    +

    GLM_EXT_vector_integer

    +
    See also
    Core features (dependence)
    +
    +GLM_EXT_vector_integer (dependence)
    + +

    Definition in file vector_integer.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00222_source.html b/external/glm-0.9.9.8/doc/api/a00222_source.html new file mode 100644 index 0000000..38efae3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00222_source.html @@ -0,0 +1,158 @@ + + + + + + +0.9.9 API documentation: vector_integer.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_integer.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    12 #pragma once
    +
    13 
    +
    14 // Dependencies
    +
    15 #include "../detail/setup.hpp"
    +
    16 #include "../detail/qualifier.hpp"
    +
    17 #include "../detail/_vectorize.hpp"
    +
    18 #include "../vector_relational.hpp"
    +
    19 #include "../common.hpp"
    +
    20 #include <limits>
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_EXT_vector_integer extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    30 
    +
    38  template<length_t L, typename T, qualifier Q>
    +
    39  GLM_FUNC_DECL vec<L, bool, Q> isPowerOfTwo(vec<L, T, Q> const& v);
    +
    40 
    +
    49  template<length_t L, typename T, qualifier Q>
    +
    50  GLM_FUNC_DECL vec<L, T, Q> nextPowerOfTwo(vec<L, T, Q> const& v);
    +
    51 
    +
    60  template<length_t L, typename T, qualifier Q>
    +
    61  GLM_FUNC_DECL vec<L, T, Q> prevPowerOfTwo(vec<L, T, Q> const& v);
    +
    62 
    +
    70  template<length_t L, typename T, qualifier Q>
    +
    71  GLM_FUNC_DECL vec<L, bool, Q> isMultiple(vec<L, T, Q> const& v, T Multiple);
    +
    72 
    +
    80  template<length_t L, typename T, qualifier Q>
    +
    81  GLM_FUNC_DECL vec<L, bool, Q> isMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    82 
    +
    93  template<length_t L, typename T, qualifier Q>
    +
    94  GLM_FUNC_DECL vec<L, T, Q> nextMultiple(vec<L, T, Q> const& v, T Multiple);
    +
    95 
    +
    106  template<length_t L, typename T, qualifier Q>
    +
    107  GLM_FUNC_DECL vec<L, T, Q> nextMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    108 
    +
    119  template<length_t L, typename T, qualifier Q>
    +
    120  GLM_FUNC_DECL vec<L, T, Q> prevMultiple(vec<L, T, Q> const& v, T Multiple);
    +
    121 
    +
    132  template<length_t L, typename T, qualifier Q>
    +
    133  GLM_FUNC_DECL vec<L, T, Q> prevMultiple(vec<L, T, Q> const& v, vec<L, T, Q> const& Multiple);
    +
    134 
    +
    143  template<length_t L, typename T, qualifier Q>
    +
    144  GLM_FUNC_DECL vec<L, int, Q> findNSB(vec<L, T, Q> const& Source, vec<L, int, Q> SignificantBitCount);
    +
    145 
    +
    147 } //namespace glm
    +
    148 
    +
    149 #include "vector_integer.inl"
    +
    GLM_FUNC_DECL vec< L, bool, Q > isPowerOfTwo(vec< L, T, Q > const &v)
    Return true if the value is a power of two number.
    +
    GLM_FUNC_DECL vec< L, T, Q > nextPowerOfTwo(vec< L, T, Q > const &v)
    Return the power of two number which value is just higher the input value, round up to a power of two...
    +
    GLM_FUNC_DECL vec< L, T, Q > nextMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Higher multiple number of Source.
    +
    GLM_FUNC_DECL vec< L, T, Q > prevPowerOfTwo(vec< L, T, Q > const &v)
    Return the power of two number which value is just lower the input value, round down to a power of tw...
    +
    GLM_FUNC_DECL vec< L, int, Q > findNSB(vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)
    Returns the bit number of the Nth significant bit set to 1 in the binary representation of value...
    +
    GLM_FUNC_DECL vec< L, T, Q > prevMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Lower multiple number of Source.
    +
    GLM_FUNC_DECL vec< L, bool, Q > isMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
    Return true if the 'Value' is a multiple of 'Multiple'.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00223.html b/external/glm-0.9.9.8/doc/api/a00223.html new file mode 100644 index 0000000..551a93d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00223.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: vector_query.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_query.hpp File Reference
    +
    +
    + +

    GLM_GTX_vector_query +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areCollinear (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are collinears. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areOrthogonal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are orthogonals. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areOrthonormal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are orthonormal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isCompNull (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a each component of a vector is null. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a vector is normalized. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a vector is null. More...
     
    +

    Detailed Description

    +

    GLM_GTX_vector_query

    +
    See also
    Core features (dependence)
    + +

    Definition in file vector_query.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00223_source.html b/external/glm-0.9.9.8/doc/api/a00223_source.html new file mode 100644 index 0000000..6c83d36 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00223_source.html @@ -0,0 +1,147 @@ + + + + + + +0.9.9 API documentation: vector_query.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_query.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include <cfloat>
    +
    18 #include <limits>
    +
    19 
    +
    20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    21 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    22 # pragma message("GLM: GLM_GTX_vector_query is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    23 # else
    +
    24 # pragma message("GLM: GLM_GTX_vector_query extension included")
    +
    25 # endif
    +
    26 #endif
    +
    27 
    +
    28 namespace glm
    +
    29 {
    +
    32 
    +
    35  template<length_t L, typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL bool areCollinear(vec<L, T, Q> const& v0, vec<L, T, Q> const& v1, T const& epsilon);
    +
    37 
    +
    40  template<length_t L, typename T, qualifier Q>
    +
    41  GLM_FUNC_DECL bool areOrthogonal(vec<L, T, Q> const& v0, vec<L, T, Q> const& v1, T const& epsilon);
    +
    42 
    +
    45  template<length_t L, typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL bool isNormalized(vec<L, T, Q> const& v, T const& epsilon);
    +
    47 
    +
    50  template<length_t L, typename T, qualifier Q>
    +
    51  GLM_FUNC_DECL bool isNull(vec<L, T, Q> const& v, T const& epsilon);
    +
    52 
    +
    55  template<length_t L, typename T, qualifier Q>
    +
    56  GLM_FUNC_DECL vec<L, bool, Q> isCompNull(vec<L, T, Q> const& v, T const& epsilon);
    +
    57 
    +
    60  template<length_t L, typename T, qualifier Q>
    +
    61  GLM_FUNC_DECL bool areOrthonormal(vec<L, T, Q> const& v0, vec<L, T, Q> const& v1, T const& epsilon);
    +
    62 
    +
    64 }// namespace glm
    +
    65 
    +
    66 #include "vector_query.inl"
    +
    GLM_FUNC_DECL bool isNull(vec< L, T, Q > const &v, T const &epsilon)
    Check whether a vector is null.
    +
    GLM_FUNC_DECL bool areCollinear(vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
    Check whether two vectors are collinears.
    +
    GLM_FUNC_DECL bool isNormalized(vec< L, T, Q > const &v, T const &epsilon)
    Check whether a vector is normalized.
    +
    GLM_FUNC_DECL bool areOrthonormal(vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
    Check whether two vectors are orthonormal.
    +
    GLM_FUNC_DECL vec< L, bool, Q > isCompNull(vec< L, T, Q > const &v, T const &epsilon)
    Check whether a each component of a vector is null.
    +
    GLM_FUNC_DECL bool areOrthogonal(vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
    Check whether two vectors are orthogonals.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00224.html b/external/glm-0.9.9.8/doc/api/a00224.html new file mode 100644 index 0000000..5aadee8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00224.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: vector_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    ext/vector_relational.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_relational +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    +

    Detailed Description

    +

    GLM_EXT_vector_relational

    +
    See also
    Core features (dependence)
    +
    +GLM_EXT_scalar_integer (dependence)
    + +

    Definition in file ext/vector_relational.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00224_source.html b/external/glm-0.9.9.8/doc/api/a00224_source.html new file mode 100644 index 0000000..168e51f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00224_source.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: vector_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext/vector_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    18 #pragma once
    +
    19 
    +
    20 // Dependencies
    +
    21 #include "../detail/qualifier.hpp"
    +
    22 
    +
    23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    24 # pragma message("GLM: GLM_EXT_vector_relational extension included")
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    38  template<length_t L, typename T, qualifier Q>
    +
    39  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T epsilon);
    +
    40 
    +
    47  template<length_t L, typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& epsilon);
    +
    49 
    +
    56  template<length_t L, typename T, qualifier Q>
    +
    57  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, T epsilon);
    +
    58 
    +
    65  template<length_t L, typename T, qualifier Q>
    +
    66  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& epsilon);
    +
    67 
    +
    74  template<length_t L, typename T, qualifier Q>
    +
    75  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, int ULPs);
    +
    76 
    +
    83  template<length_t L, typename T, qualifier Q>
    +
    84  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, int, Q> const& ULPs);
    +
    85 
    +
    92  template<length_t L, typename T, qualifier Q>
    +
    93  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, int ULPs);
    +
    94 
    +
    101  template<length_t L, typename T, qualifier Q>
    +
    102  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, int, Q> const& ULPs);
    +
    103 
    +
    105 }//namespace glm
    +
    106 
    +
    107 #include "vector_relational.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
    Returns the component-wise comparison between two vectors in term of ULPs.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
    Returns the component-wise comparison between two vectors in term of ULPs.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
    Return the epsilon constant for floating point types.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00225.html b/external/glm-0.9.9.8/doc/api/a00225.html new file mode 100644 index 0000000..84fe241 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00225.html @@ -0,0 +1,151 @@ + + + + + + +0.9.9 API documentation: vector_relational.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_relational.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR bool all (vec< L, bool, Q > const &v)
     Returns true if all components of x are true. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR bool any (vec< L, bool, Q > const &v)
     Returns true if any component of x is true. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x == y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThan (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x > y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThanEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x >= y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThan (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison result of x < y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThanEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x <= y. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > not_ (vec< L, bool, Q > const &v)
     Returns the component-wise logical complement of x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x != y. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00225_source.html b/external/glm-0.9.9.8/doc/api/a00225_source.html new file mode 100644 index 0000000..a737766 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00225_source.html @@ -0,0 +1,148 @@ + + + + + + +0.9.9 API documentation: vector_relational.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_relational.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    20 #pragma once
    +
    21 
    +
    22 #include "detail/qualifier.hpp"
    +
    23 #include "detail/setup.hpp"
    +
    24 
    +
    25 namespace glm
    +
    26 {
    +
    29 
    +
    37  template<length_t L, typename T, qualifier Q>
    +
    38  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> lessThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    39 
    +
    47  template<length_t L, typename T, qualifier Q>
    +
    48  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> lessThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    49 
    +
    57  template<length_t L, typename T, qualifier Q>
    +
    58  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> greaterThan(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    59 
    +
    67  template<length_t L, typename T, qualifier Q>
    +
    68  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> greaterThanEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    69 
    +
    77  template<length_t L, typename T, qualifier Q>
    +
    78  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> equal(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    79 
    +
    87  template<length_t L, typename T, qualifier Q>
    +
    88  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> notEqual(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
    +
    89 
    +
    96  template<length_t L, qualifier Q>
    +
    97  GLM_FUNC_DECL GLM_CONSTEXPR bool any(vec<L, bool, Q> const& v);
    +
    98 
    +
    105  template<length_t L, qualifier Q>
    +
    106  GLM_FUNC_DECL GLM_CONSTEXPR bool all(vec<L, bool, Q> const& v);
    +
    107 
    +
    115  template<length_t L, qualifier Q>
    +
    116  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> not_(vec<L, bool, Q> const& v);
    +
    117 
    +
    119 }//namespace glm
    +
    120 
    +
    121 #include "detail/func_vector_relational.inl"
    +
    GLM_FUNC_DECL GLM_CONSTEXPR bool all(vec< L, bool, Q > const &v)
    Returns true if all components of x are true.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison of result x > y.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison of result x != y.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison of result x <= y.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > not_(vec< L, bool, Q > const &v)
    Returns the component-wise logical complement of x.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR bool any(vec< L, bool, Q > const &v)
    Returns true if any component of x is true.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison of result x == y.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison of result x >= y.
    +
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)
    Returns the component-wise comparison result of x < y.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00226.html b/external/glm-0.9.9.8/doc/api/a00226.html new file mode 100644 index 0000000..aac49f3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00226.html @@ -0,0 +1,118 @@ + + + + + + +0.9.9 API documentation: vector_uint1.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint1.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_uint1 +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    +typedef vec< 1, unsigned int, defaultp > uvec1
     1 component vector of unsigned integer numbers.
     
    +

    Detailed Description

    +

    GLM_EXT_vector_uint1

    + +

    Definition in file vector_uint1.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00226_source.html b/external/glm-0.9.9.8/doc/api/a00226_source.html new file mode 100644 index 0000000..7ce1e20 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00226_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint1.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint1.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    14 #pragma once
    +
    15 
    +
    16 #include "../detail/type_vec1.hpp"
    +
    17 
    +
    18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    19 # pragma message("GLM: GLM_EXT_vector_uint1 extension included")
    +
    20 #endif
    +
    21 
    +
    22 namespace glm
    +
    23 {
    +
    26 
    +
    28  typedef vec<1, unsigned int, defaultp> uvec1;
    +
    29 
    +
    31 }//namespace glm
    +
    32 
    +
    vec< 1, unsigned int, defaultp > uvec1
    1 component vector of unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00227.html b/external/glm-0.9.9.8/doc/api/a00227.html new file mode 100644 index 0000000..a8e5eeb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00227.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_uint1_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint1_precision.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_uint1_precision +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 1, unsigned int, highp > highp_uvec1
     1 component vector of unsigned integer values. More...
     
    typedef vec< 1, unsigned int, lowp > lowp_uvec1
     1 component vector of unsigned integer values. More...
     
    typedef vec< 1, unsigned int, mediump > mediump_uvec1
     1 component vector of unsigned integer values. More...
     
    +

    Detailed Description

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00227_source.html b/external/glm-0.9.9.8/doc/api/a00227_source.html new file mode 100644 index 0000000..3ca787e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00227_source.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: vector_uint1_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint1_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    11 #pragma once
    +
    12 
    +
    13 #include "../detail/type_vec1.hpp"
    +
    14 
    +
    15 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    16 # pragma message("GLM: GLM_EXT_vector_uint1_precision extension included")
    +
    17 #endif
    +
    18 
    +
    19 namespace glm
    +
    20 {
    +
    23 
    +
    27  typedef vec<1, unsigned int, highp> highp_uvec1;
    +
    28 
    +
    32  typedef vec<1, unsigned int, mediump> mediump_uvec1;
    +
    33 
    +
    37  typedef vec<1, unsigned int, lowp> lowp_uvec1;
    +
    38 
    +
    40 }//namespace glm
    +
    vec< 1, unsigned int, mediump > mediump_uvec1
    1 component vector of unsigned integer values.
    +
    vec< 1, unsigned int, highp > highp_uvec1
    1 component vector of unsigned integer values.
    +
    vec< 1, unsigned int, lowp > lowp_uvec1
    1 component vector of unsigned integer values.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00228.html b/external/glm-0.9.9.8/doc/api/a00228.html new file mode 100644 index 0000000..9742dbb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00228.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint2.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint2.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 2, unsigned int, defaultp > uvec2
     2 components vector of unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint2.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00228_source.html b/external/glm-0.9.9.8/doc/api/a00228_source.html new file mode 100644 index 0000000..90dd3fd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00228_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_uint2.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint2.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<2, unsigned int, defaultp> uvec2;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 2, unsigned int, defaultp > uvec2
    2 components vector of unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00229.html b/external/glm-0.9.9.8/doc/api/a00229.html new file mode 100644 index 0000000..5eb4a72 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00229.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_uint2_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint2_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, unsigned int, highp > highp_uvec2
     2 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 2, unsigned int, lowp > lowp_uvec2
     2 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 2, unsigned int, mediump > mediump_uvec2
     2 components vector of medium qualifier unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint2_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00229_source.html b/external/glm-0.9.9.8/doc/api/a00229_source.html new file mode 100644 index 0000000..6124c4a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00229_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint2_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint2_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec2.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<2, unsigned int, highp> highp_uvec2;
    +
    17 
    +
    22  typedef vec<2, unsigned int, mediump> mediump_uvec2;
    +
    23 
    +
    28  typedef vec<2, unsigned int, lowp> lowp_uvec2;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 2, unsigned int, lowp > lowp_uvec2
    2 components vector of low qualifier unsigned integer numbers.
    +
    vec< 2, unsigned int, highp > highp_uvec2
    2 components vector of high qualifier unsigned integer numbers.
    +
    vec< 2, unsigned int, mediump > mediump_uvec2
    2 components vector of medium qualifier unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00230.html b/external/glm-0.9.9.8/doc/api/a00230.html new file mode 100644 index 0000000..29a9533 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00230.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint3.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint3.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 3, unsigned int, defaultp > uvec3
     3 components vector of unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint3.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00230_source.html b/external/glm-0.9.9.8/doc/api/a00230_source.html new file mode 100644 index 0000000..88598d4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00230_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_uint3.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint3.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<3, unsigned int, defaultp> uvec3;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 3, unsigned int, defaultp > uvec3
    3 components vector of unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00231.html b/external/glm-0.9.9.8/doc/api/a00231.html new file mode 100644 index 0000000..03c004b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00231.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_uint3_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint3_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 3, unsigned int, highp > highp_uvec3
     3 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, lowp > lowp_uvec3
     3 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, mediump > mediump_uvec3
     3 components vector of medium qualifier unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint3_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00231_source.html b/external/glm-0.9.9.8/doc/api/a00231_source.html new file mode 100644 index 0000000..f010b16 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00231_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint3_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint3_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec3.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<3, unsigned int, highp> highp_uvec3;
    +
    17 
    +
    22  typedef vec<3, unsigned int, mediump> mediump_uvec3;
    +
    23 
    +
    28  typedef vec<3, unsigned int, lowp> lowp_uvec3;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 3, unsigned int, mediump > mediump_uvec3
    3 components vector of medium qualifier unsigned integer numbers.
    +
    vec< 3, unsigned int, highp > highp_uvec3
    3 components vector of high qualifier unsigned integer numbers.
    +
    vec< 3, unsigned int, lowp > lowp_uvec3
    3 components vector of low qualifier unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00232.html b/external/glm-0.9.9.8/doc/api/a00232.html new file mode 100644 index 0000000..f5dea75 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00232.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint4.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint4.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + +

    +Typedefs

    typedef vec< 4, unsigned int, defaultp > uvec4
     4 components vector of unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint4.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00232_source.html b/external/glm-0.9.9.8/doc/api/a00232_source.html new file mode 100644 index 0000000..5fb3934 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00232_source.html @@ -0,0 +1,111 @@ + + + + + + +0.9.9 API documentation: vector_uint4.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint4.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    15  typedef vec<4, unsigned int, defaultp> uvec4;
    +
    16 
    +
    18 }//namespace glm
    +
    vec< 4, unsigned int, defaultp > uvec4
    4 components vector of unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00233.html b/external/glm-0.9.9.8/doc/api/a00233.html new file mode 100644 index 0000000..0e1cf58 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00233.html @@ -0,0 +1,123 @@ + + + + + + +0.9.9 API documentation: vector_uint4_precision.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_uint4_precision.hpp File Reference
    +
    +
    + +

    Core features +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 4, unsigned int, highp > highp_uvec4
     4 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, lowp > lowp_uvec4
     4 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, mediump > mediump_uvec4
     4 components vector of medium qualifier unsigned integer numbers. More...
     
    +

    Detailed Description

    +

    Core features

    + +

    Definition in file vector_uint4_precision.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00233_source.html b/external/glm-0.9.9.8/doc/api/a00233_source.html new file mode 100644 index 0000000..d340089 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00233_source.html @@ -0,0 +1,117 @@ + + + + + + +0.9.9 API documentation: vector_uint4_precision.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_uint4_precision.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    4 #pragma once
    +
    5 #include "../detail/type_vec4.hpp"
    +
    6 
    +
    7 namespace glm
    +
    8 {
    +
    11 
    +
    16  typedef vec<4, unsigned int, highp> highp_uvec4;
    +
    17 
    +
    22  typedef vec<4, unsigned int, mediump> mediump_uvec4;
    +
    23 
    +
    28  typedef vec<4, unsigned int, lowp> lowp_uvec4;
    +
    29 
    +
    31 }//namespace glm
    +
    vec< 4, unsigned int, mediump > mediump_uvec4
    4 components vector of medium qualifier unsigned integer numbers.
    +
    vec< 4, unsigned int, highp > highp_uvec4
    4 components vector of high qualifier unsigned integer numbers.
    +
    vec< 4, unsigned int, lowp > lowp_uvec4
    4 components vector of low qualifier unsigned integer numbers.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00234.html b/external/glm-0.9.9.8/doc/api/a00234.html new file mode 100644 index 0000000..2e406bd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00234.html @@ -0,0 +1,146 @@ + + + + + + +0.9.9 API documentation: vector_ulp.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    vector_ulp.hpp File Reference
    +
    +
    + +

    GLM_EXT_vector_ulp +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > floatDistance (vec< L, float, Q > const &x, vec< L, float, Q > const &y)
     Return the distance in the number of ULP between 2 single-precision floating-point scalars. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int64, Q > floatDistance (vec< L, double, Q > const &x, vec< L, double, Q > const &y)
     Return the distance in the number of ULP between 2 double-precision floating-point scalars. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextFloat (vec< L, T, Q > const &x)
     Return the next ULP value(s) after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextFloat (vec< L, T, Q > const &x, int ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextFloat (vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)
     Return the value(s) ULP distance after the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevFloat (vec< L, T, Q > const &x)
     Return the previous ULP value(s) before the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevFloat (vec< L, T, Q > const &x, int ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevFloat (vec< L, T, Q > const &x, vec< L, int, Q > const &ULPs)
     Return the value(s) ULP distance before the input value(s). More...
     
    +

    Detailed Description

    +

    GLM_EXT_vector_ulp

    + +

    Definition in file vector_ulp.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00234_source.html b/external/glm-0.9.9.8/doc/api/a00234_source.html new file mode 100644 index 0000000..6aef8b2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00234_source.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: vector_ulp.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    vector_ulp.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    17 #pragma once
    +
    18 
    +
    19 // Dependencies
    +
    20 #include "../ext/scalar_ulp.hpp"
    +
    21 
    +
    22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    23 # pragma message("GLM: GLM_EXT_vector_ulp extension included")
    +
    24 #endif
    +
    25 
    +
    26 namespace glm
    +
    27 {
    +
    35  template<length_t L, typename T, qualifier Q>
    +
    36  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x);
    +
    37 
    +
    45  template<length_t L, typename T, qualifier Q>
    +
    46  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x, int ULPs);
    +
    47 
    +
    55  template<length_t L, typename T, qualifier Q>
    +
    56  GLM_FUNC_DECL vec<L, T, Q> nextFloat(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
    +
    57 
    +
    65  template<length_t L, typename T, qualifier Q>
    +
    66  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x);
    +
    67 
    +
    75  template<length_t L, typename T, qualifier Q>
    +
    76  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x, int ULPs);
    +
    77 
    +
    85  template<length_t L, typename T, qualifier Q>
    +
    86  GLM_FUNC_DECL vec<L, T, Q> prevFloat(vec<L, T, Q> const& x, vec<L, int, Q> const& ULPs);
    +
    87 
    +
    94  template<length_t L, typename T, qualifier Q>
    +
    95  GLM_FUNC_DECL vec<L, int, Q> floatDistance(vec<L, float, Q> const& x, vec<L, float, Q> const& y);
    +
    96 
    +
    103  template<length_t L, typename T, qualifier Q>
    +
    104  GLM_FUNC_DECL vec<L, int64, Q> floatDistance(vec<L, double, Q> const& x, vec<L, double, Q> const& y);
    +
    105 
    +
    107 }//namespace glm
    +
    108 
    +
    109 #include "vector_ulp.inl"
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00235.html b/external/glm-0.9.9.8/doc/api/a00235.html new file mode 100644 index 0000000..72c0a4c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00235.html @@ -0,0 +1,131 @@ + + + + + + +0.9.9 API documentation: wrap.hpp File Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    + +
    +
    wrap.hpp File Reference
    +
    +
    + +

    GLM_GTX_wrap +More...

    + +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType clamp (genType const &Texcoord)
     Simulate GL_CLAMP OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType mirrorClamp (genType const &Texcoord)
     Simulate GL_MIRRORED_REPEAT OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType mirrorRepeat (genType const &Texcoord)
     Simulate GL_MIRROR_REPEAT OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType repeat (genType const &Texcoord)
     Simulate GL_REPEAT OpenGL wrap mode. More...
     
    +

    Detailed Description

    +

    GLM_GTX_wrap

    +
    See also
    Core features (dependence)
    + +

    Definition in file wrap.hpp.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00235_source.html b/external/glm-0.9.9.8/doc/api/a00235_source.html new file mode 100644 index 0000000..e9f13f9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00235_source.html @@ -0,0 +1,137 @@ + + + + + + +0.9.9 API documentation: wrap.hpp Source File + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    wrap.hpp
    +
    +
    +Go to the documentation of this file.
    1 
    +
    13 #pragma once
    +
    14 
    +
    15 // Dependency:
    +
    16 #include "../glm.hpp"
    +
    17 #include "../gtc/vec1.hpp"
    +
    18 
    +
    19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
    +
    20 # ifndef GLM_ENABLE_EXPERIMENTAL
    +
    21 # pragma message("GLM: GLM_GTX_wrap is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
    +
    22 # else
    +
    23 # pragma message("GLM: GLM_GTX_wrap extension included")
    +
    24 # endif
    +
    25 #endif
    +
    26 
    +
    27 namespace glm
    +
    28 {
    +
    31 
    +
    34  template<typename genType>
    +
    35  GLM_FUNC_DECL genType clamp(genType const& Texcoord);
    +
    36 
    +
    39  template<typename genType>
    +
    40  GLM_FUNC_DECL genType repeat(genType const& Texcoord);
    +
    41 
    +
    44  template<typename genType>
    +
    45  GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
    +
    46 
    +
    49  template<typename genType>
    +
    50  GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
    +
    51 
    +
    53 }// namespace glm
    +
    54 
    +
    55 #include "wrap.inl"
    +
    GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
    Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
    +
    GLM_FUNC_DECL genType repeat(genType const &Texcoord)
    Simulate GL_REPEAT OpenGL wrap mode.
    +
    GLM_FUNC_DECL genType mirrorClamp(genType const &Texcoord)
    Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
    +
    GLM_FUNC_DECL genType clamp(genType const &Texcoord)
    Simulate GL_CLAMP OpenGL wrap mode.
    +
    Definition: common.hpp:20
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00241.html b/external/glm-0.9.9.8/doc/api/a00241.html new file mode 100644 index 0000000..a22be8b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00241.html @@ -0,0 +1,1595 @@ + + + + + + +0.9.9 API documentation: Common functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Common functions
    +
    +
    + +

    Provides GLSL common functions. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType abs (genType x)
     Returns x if x >= 0; otherwise, it returns -x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > abs (vec< L, T, Q > const &x)
     Returns x if x >= 0; otherwise, it returns -x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceil (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer that is greater than or equal to x. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType clamp (genType x, genType minVal, genType maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > clamp (vec< L, T, Q > const &x, T minVal, T maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > clamp (vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal. More...
     
    GLM_FUNC_DECL int floatBitsToInt (float const &v)
     Returns a signed integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > floatBitsToInt (vec< L, float, Q > const &v)
     Returns a signed integer value representing the encoding of a floating-point value. More...
     
    GLM_FUNC_DECL uint floatBitsToUint (float const &v)
     Returns a unsigned integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > floatBitsToUint (vec< L, float, Q > const &v)
     Returns a unsigned integer value representing the encoding of a floating-point value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floor (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer that is less then or equal to x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fma (genType const &a, genType const &b, genType const &c)
     Computes and returns a * b + c. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fract (genType x)
     Return x - floor(x). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fract (vec< L, T, Q > const &x)
     Return x - floor(x). More...
     
    template<typename genType >
    GLM_FUNC_DECL genType frexp (genType x, int &exp)
     Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent) More...
     
    GLM_FUNC_DECL float intBitsToFloat (int const &v)
     Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > intBitsToFloat (vec< L, int, Q > const &v)
     Returns a floating-point value corresponding to a signed integer encoding of a floating-point value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isinf (vec< L, T, Q > const &x)
     Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isnan (vec< L, T, Q > const &x)
     Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType ldexp (genType const &x, int const &exp)
     Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent) More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType max (genType x, genType y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, T y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType min (genType x, genType y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &x, T y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<typename genTypeT , typename genTypeU >
    GLM_FUNC_DECL genTypeT mix (genTypeT x, genTypeT y, genTypeU a)
     If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > mod (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Modulus. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType modf (genType x, genType &i)
     Returns the fractional part of x and sets i to the integer part (as a whole number floating point value). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > round (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundEven (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sign (vec< L, T, Q > const &x)
     Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType smoothstep (genType edge0, genType edge1, genType x)
     Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType step (genType edge, genType x)
     Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > step (T edge, vec< L, T, Q > const &x)
     Returns 0.0 if x < edge, otherwise it returns 1.0. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > step (vec< L, T, Q > const &edge, vec< L, T, Q > const &x)
     Returns 0.0 if x < edge, otherwise it returns 1.0. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > trunc (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. More...
     
    GLM_FUNC_DECL float uintBitsToFloat (uint const &v)
     Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > uintBitsToFloat (vec< L, uint, Q > const &v)
     Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value. More...
     
    +

    Detailed Description

    +

    Provides GLSL common functions.

    +

    These all operate component-wise. The description is per component.

    +

    Include <glm/common.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::abs (genType x)
    +
    + +

    Returns x if x >= 0; otherwise, it returns -x.

    +
    Template Parameters
    + + +
    genTypefloating-point or signed integer; scalar or vector types.
    +
    +
    +
    See also
    GLSL abs man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::abs (vec< L, T, Q > const & x)
    +
    + +

    Returns x if x >= 0; otherwise, it returns -x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL abs man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::ceil (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer that is greater than or equal to x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL ceil man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::clamp (genType x,
    genType minVal,
    genType maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer; scalar or vector types.
    +
    +
    +
    See also
    GLSL clamp man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +

    Referenced by glm::saturate().

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::clamp (vec< L, T, Q > const & x,
    minVal,
    maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL clamp man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::clamp (vec< L, T, Q > const & x,
    vec< L, T, Q > const & minVal,
    vec< L, T, Q > const & maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal and maxVal.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL clamp man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::floatBitsToInt (float const & v)
    +
    + +

    Returns a signed integer value representing the encoding of a floating-point value.

    +

    The floating-point value's bit-level representation is preserved.

    +
    See also
    GLSL floatBitsToInt man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::floatBitsToInt (vec< L, float, Q > const & v)
    +
    + +

    Returns a signed integer value representing the encoding of a floating-point value.

    +

    The floatingpoint value's bit-level representation is preserved.

    +
    Template Parameters
    + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL floatBitsToInt man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::floatBitsToUint (float const & v)
    +
    + +

    Returns a unsigned integer value representing the encoding of a floating-point value.

    +

    The floatingpoint value's bit-level representation is preserved.

    +
    See also
    GLSL floatBitsToUint man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, uint, Q> glm::floatBitsToUint (vec< L, float, Q > const & v)
    +
    + +

    Returns a unsigned integer value representing the encoding of a floating-point value.

    +

    The floatingpoint value's bit-level representation is preserved.

    +
    Template Parameters
    + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL floatBitsToUint man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::floor (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer that is less then or equal to x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL floor man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fma (genType const & a,
    genType const & b,
    genType const & c 
    )
    +
    + +

    Computes and returns a * b + c.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL fma man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::fract (genType x)
    +
    + +

    Return x - floor(x).

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL fract man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fract (vec< L, T, Q > const & x)
    +
    + +

    Return x - floor(x).

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL fract man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::frexp (genType x,
    int & exp 
    )
    +
    + +

    Splits x into a floating-point significand in the range [0.5, 1.0) and an integral exponent of two, such that: x = significand * exp(2, exponent)

    +

    The significand is returned by the function and the exponent is returned in the parameter exp. For a floating-point value of zero, the significant and exponent are both zero. For a floating-point value that is an infinity or is not a number, the results are undefined.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL frexp man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::intBitsToFloat (int const & v)
    +
    + +

    Returns a floating-point value corresponding to a signed integer encoding of a floating-point value.

    +

    If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.

    +
    See also
    GLSL intBitsToFloat man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, float, Q> glm::intBitsToFloat (vec< L, int, Q > const & v)
    +
    + +

    Returns a floating-point value corresponding to a signed integer encoding of a floating-point value.

    +

    If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.

    +
    Template Parameters
    + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL intBitsToFloat man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isinf (vec< L, T, Q > const & x)
    +
    + +

    Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations.

    +

    Returns false otherwise, including for implementations with no infinity representations.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL isinf man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isnan (vec< L, T, Q > const & x)
    +
    + +

    Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations.

    +

    Returns false otherwise, including for implementations with no NaN representations.

    +

    /!\ When using compiler fast math, this function may fail.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL isnan man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::ldexp (genType const & x,
    int const & exp 
    )
    +
    + +

    Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significand * exp(2, exponent)

    +

    If this product is too large to be represented in the floating-point type, the result is undefined.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL ldexp man page;
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::max (genType x,
    genType y 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer; scalar or vector types.
    +
    +
    +
    See also
    GLSL max man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::max (vec< L, T, Q > const & x,
    y 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL max man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::max (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL max man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::min (genType x,
    genType y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer; scalar or vector types.
    +
    +
    +
    See also
    GLSL min man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::min (vec< L, T, Q > const & x,
    y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL min man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::min (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL min man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genTypeT glm::mix (genTypeT x,
    genTypeT y,
    genTypeU a 
    )
    +
    + +

    If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a.

    +

    The value for a is not restricted to the range [0, 1].

    +

    If genTypeU is a boolean scalar or vector: Selects which vector each returned component comes from. For a component of 'a' that is false, the corresponding component of 'x' is returned. For a component of 'a' that is true, the corresponding component of 'y' is returned. Components of 'x' and 'y' that are not selected are allowed to be invalid floating point values and will have no effect on the results. Thus, this provides different functionality than genType mix(genType x, genType y, genType(a)) where a is a Boolean vector.

    +
    See also
    GLSL mix man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    +
    Parameters
    + + + + +
    [in]xValue to interpolate.
    [in]yValue to interpolate.
    [in]aInterpolant.
    +
    +
    +
    Template Parameters
    + + + +
    genTypeTFloating point scalar or vector.
    genTypeUFloating point or boolean scalar or vector. It can't be a vector if it is the length of genTypeT.
    +
    +
    +
    #include <glm/glm.hpp>
    +
    ...
    +
    float a;
    +
    bool b;
    + + + + +
    ...
    +
    glm::vec4 r = glm::mix(g, h, a); // Interpolate with a floating-point scalar two vectors.
    +
    glm::vec4 s = glm::mix(g, h, b); // Returns g or h;
    +
    glm::dvec3 t = glm::mix(e, f, a); // Types of the third parameter is not required to match with the first and the second.
    +
    glm::vec4 u = glm::mix(g, h, r); // Interpolations can be perform per component with a vector for the last parameter.
    +
    +

    Referenced by glm::lerp().

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::mod (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Modulus.

    +

    Returns x - y * floor(x / y) for each component in x using the floating point value y.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types, include glm/gtc/integer for integer scalar types support
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL mod man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::modf (genType x,
    genType & i 
    )
    +
    + +

    Returns the fractional part of x and sets i to the integer part (as a whole number floating point value).

    +

    Both the return value and the output parameter will have the same sign as x.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL modf man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::round (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer to x.

    +

    The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that round(x) returns the same value as roundEven(x) for all values of x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL round man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::roundEven (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer to x.

    +

    A fractional part of 0.5 will round toward the nearest even integer. (Both 3.5 and 4.5 for x will return 4.0.)

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL roundEven man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    +
    +New round to even technique
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::sign (vec< L, T, Q > const & x)
    +
    + +

    Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL sign man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::smoothstep (genType edge0,
    genType edge1,
    genType x 
    )
    +
    + +

    Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.

    +

    This is useful in cases where you would want a threshold function with a smooth transition. This is equivalent to: genType t; t = clamp ((x - edge0) / (edge1 - edge0), 0, 1); return t * t * (3 - 2 * t); Results are undefined if edge0 >= edge1.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL smoothstep man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::step (genType edge,
    genType x 
    )
    +
    + +

    Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType.

    +
    See also
    GLSL step man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::step (edge,
    vec< L, T, Q > const & x 
    )
    +
    + +

    Returns 0.0 if x < edge, otherwise it returns 1.0.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL step man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::step (vec< L, T, Q > const & edge,
    vec< L, T, Q > const & x 
    )
    +
    + +

    Returns 0.0 if x < edge, otherwise it returns 1.0.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL step man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::trunc (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL trunc man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::uintBitsToFloat (uint const & v)
    +
    + +

    Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value.

    +

    If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.

    +
    See also
    GLSL uintBitsToFloat man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, float, Q> glm::uintBitsToFloat (vec< L, uint, Q > const & v)
    +
    + +

    Returns a floating-point value corresponding to a unsigned integer encoding of a floating-point value.

    +

    If an inf or NaN is passed in, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit-level representation is preserved.

    +
    Template Parameters
    + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL uintBitsToFloat man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00242.html b/external/glm-0.9.9.8/doc/api/a00242.html new file mode 100644 index 0000000..b3bcdd5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00242.html @@ -0,0 +1,375 @@ + + + + + + +0.9.9 API documentation: Exponential functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Exponential functions
    +
    +
    + +

    Provides GLSL exponential functions. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > exp (vec< L, T, Q > const &v)
     Returns the natural exponentiation of x, i.e., e^x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > exp2 (vec< L, T, Q > const &v)
     Returns 2 raised to the v power. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > inversesqrt (vec< L, T, Q > const &v)
     Returns the reciprocal of the positive square root of v. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > log (vec< L, T, Q > const &v)
     Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > log2 (vec< L, T, Q > const &v)
     Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > pow (vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
     Returns 'base' raised to the power 'exponent'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sqrt (vec< L, T, Q > const &v)
     Returns the positive square root of v. More...
     
    +

    Detailed Description

    +

    Provides GLSL exponential functions.

    +

    These all operate component-wise. The description is per component.

    +

    Include <glm/exponential.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::exp (vec< L, T, Q > const & v)
    +
    + +

    Returns the natural exponentiation of x, i.e., e^x.

    +
    Parameters
    + + +
    vexp function is defined for input values of v defined in the range (inf-, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL exp man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::exp2 (vec< L, T, Q > const & v)
    +
    + +

    Returns 2 raised to the v power.

    +
    Parameters
    + + +
    vexp2 function is defined for input values of v defined in the range (inf-, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL exp2 man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::inversesqrt (vec< L, T, Q > const & v)
    +
    + +

    Returns the reciprocal of the positive square root of v.

    +
    Parameters
    + + +
    vinversesqrt function is defined for input values of v defined in the range [0, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL inversesqrt man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::log (vec< L, T, Q > const & v)
    +
    + +

    Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y.

    +

    Results are undefined if v <= 0.

    +
    Parameters
    + + +
    vlog function is defined for input values of v defined in the range (0, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL log man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::log2 (vec< L, T, Q > const & v)
    +
    + +

    Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y.

    +
    Parameters
    + + +
    vlog2 function is defined for input values of v defined in the range (0, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL log2 man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::pow (vec< L, T, Q > const & base,
    vec< L, T, Q > const & exponent 
    )
    +
    + +

    Returns 'base' raised to the power 'exponent'.

    +
    Parameters
    + + + +
    baseFloating point value. pow function is defined for input values of 'base' defined in the range (inf-, inf+) in the limit of the type qualifier.
    exponentFloating point value representing the 'exponent'.
    +
    +
    +
    See also
    GLSL pow man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::sqrt (vec< L, T, Q > const & v)
    +
    + +

    Returns the positive square root of v.

    +
    Parameters
    + + +
    vsqrt function is defined for input values of v defined in the range [0, inf+) in the limit of the type qualifier.
    +
    +
    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL sqrt man page
    +
    +GLSL 4.20.8 specification, section 8.2 Exponential Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00243.html b/external/glm-0.9.9.8/doc/api/a00243.html new file mode 100644 index 0000000..5db7c79 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00243.html @@ -0,0 +1,2717 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_matrix_clip_space + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_matrix_clip_space
    +
    +
    + +

    Defines functions that generate clip space transformation matrices. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustum (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix with default handedness, using the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_NO (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumLH_ZO (T left, T right, T bottom, T top, T near, T far)
     Creates a left handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumNO (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_NO (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumRH_ZO (T left, T right, T bottom, T top, T near, T far)
     Creates a right handed frustum matrix. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > frustumZO (T left, T right, T bottom, T top, T near, T far)
     Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspective (T fovy, T aspect, T near)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite with default handedness. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveLH (T fovy, T aspect, T near)
     Creates a matrix for a left handed, symmetric perspective-view frustum with far plane at infinite. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > infinitePerspectiveRH (T fovy, T aspect, T near)
     Creates a matrix for a right handed, symmetric perspective-view frustum with far plane at infinite. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > ortho (T left, T right, T bottom, T top)
     Creates a matrix for projecting two-dimensional coordinates onto the screen. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > ortho (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_NO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoLH_ZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoNO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_NO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoRH_ZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > orthoZO (T left, T right, T bottom, T top, T zNear, T zFar)
     Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspective (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum based on the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFov (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view and the default handedness and default near and far clip planes definition. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH (T fov, T width, T height, T near, T far)
     Builds a left handed perspective projection matrix based on a field of view. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_NO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovLH_ZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovNO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH (T fov, T width, T height, T near, T far)
     Builds a right handed perspective projection matrix based on a field of view. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_NO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovRH_ZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using right-handed coordinates. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveFovZO (T fov, T width, T height, T near, T far)
     Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_NO (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveLH_ZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a left handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveNO (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_NO (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveRH_ZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a right handed, symetric perspective-view frustum. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > perspectiveZO (T fovy, T aspect, T near, T far)
     Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > tweakedInfinitePerspective (T fovy, T aspect, T near)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > tweakedInfinitePerspective (T fovy, T aspect, T near, T ep)
     Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping. More...
     
    +

    Detailed Description

    +

    Defines functions that generate clip space transformation matrices.

    +

    The matrices generated by this extension use standard OpenGL fixed-function conventions. For example, the lookAt function generates a transform from world space into the specific eye space that the projective matrix functions (perspective, ortho, etc) are designed to expect. The OpenGL compatibility specifications defines the particular layout of this eye space.

    +

    Include <glm/ext/matrix_clip_space.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_matrix_transform
    +
    +GLM_EXT_matrix_projection
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustum (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a frustum matrix with default handedness, using the default handedness and default near and far clip planes definition.

    +

    To change default handedness use GLM_FORCE_LEFT_HANDED. To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    glFrustum man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumLH (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a left handed frustum matrix.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumLH_NO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a left handed frustum matrix.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumLH_ZO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a left handed frustum matrix.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumNO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumRH (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a right handed frustum matrix.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumRH_NO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a right handed frustum matrix.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumRH_ZO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a right handed frustum matrix.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::frustumZO (left,
    right,
    bottom,
    top,
    near,
    far 
    )
    +
    + +

    Creates a frustum matrix using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::infinitePerspective (fovy,
    aspect,
    near 
    )
    +
    + +

    Creates a matrix for a symmetric perspective-view frustum with far plane at infinite with default handedness.

    +
    Parameters
    + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::infinitePerspectiveLH (fovy,
    aspect,
    near 
    )
    +
    + +

    Creates a matrix for a left handed, symmetric perspective-view frustum with far plane at infinite.

    +
    Parameters
    + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::infinitePerspectiveRH (fovy,
    aspect,
    near 
    )
    +
    + +

    Creates a matrix for a right handed, symmetric perspective-view frustum with far plane at infinite.

    +
    Parameters
    + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::ortho (left,
    right,
    bottom,
    top 
    )
    +
    + +

    Creates a matrix for projecting two-dimensional coordinates onto the screen.

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top, T const& zNear, T const& zFar)
    +
    +gluOrtho2D man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::ortho (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using the default handedness and default near and far clip planes definition.

    +

    To change default handedness use GLM_FORCE_LEFT_HANDED. To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    +
    +glOrtho man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoLH (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoLH_NO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume using right-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoLH_ZO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoNO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoRH (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoRH_NO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using right-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoRH_ZO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::orthoZO (left,
    right,
    bottom,
    top,
    zNear,
    zFar 
    )
    +
    + +

    Creates a matrix for an orthographic parallel viewing volume, using left-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    - glm::ortho(T const& left, T const& right, T const& bottom, T const& top)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspective (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a symetric perspective-view frustum based on the default handedness and default near and far clip planes definition.

    +

    To change default handedness use GLM_FORCE_LEFT_HANDED. To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    +
    See also
    gluPerspective man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFov (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view and the default handedness and default near and far clip planes definition.

    +

    To change default handedness use GLM_FORCE_LEFT_HANDED. To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovLH (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a left handed perspective projection matrix based on a field of view.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovLH_NO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using left-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovLH_ZO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using left-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovNO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovRH (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a right handed perspective projection matrix based on a field of view.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovRH_NO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using right-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovRH_ZO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using right-handed coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveFovZO (fov,
    width,
    height,
    near,
    far 
    )
    +
    + +

    Builds a perspective projection matrix based on a field of view using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + + +
    fovExpressed in radians.
    widthWidth of the viewport
    heightHeight of the viewport
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveLH (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a left handed, symetric perspective-view frustum.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveLH_NO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a left handed, symetric perspective-view frustum.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveLH_ZO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a left handed, symetric perspective-view frustum.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveNO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveRH (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a right handed, symetric perspective-view frustum.

    +

    If GLM_FORCE_DEPTH_ZERO_TO_ONE is defined, the near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition) Otherwise, the near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveRH_NO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a right handed, symetric perspective-view frustum.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveRH_ZO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a right handed, symetric perspective-view frustum.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::perspectiveZO (fovy,
    aspect,
    near,
    far 
    )
    +
    + +

    Creates a matrix for a symetric perspective-view frustum using left-handed coordinates if GLM_FORCE_LEFT_HANDED if defined or right-handed coordinates otherwise.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    farSpecifies the distance from the viewer to the far clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::tweakedInfinitePerspective (fovy,
    aspect,
    near 
    )
    +
    + +

    Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping.

    +
    Parameters
    + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::tweakedInfinitePerspective (fovy,
    aspect,
    near,
    ep 
    )
    +
    + +

    Creates a matrix for a symmetric perspective-view frustum with far plane at infinite for graphics hardware that doesn't support depth clamping.

    +
    Parameters
    + + + + + +
    fovySpecifies the field of view angle, in degrees, in the y direction. Expressed in radians.
    aspectSpecifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
    nearSpecifies the distance from the viewer to the near clipping plane (always positive).
    epEpsilon
    +
    +
    +
    Template Parameters
    + + +
    TA floating-point scalar type
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00244.html b/external/glm-0.9.9.8/doc/api/a00244.html new file mode 100644 index 0000000..e383165 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00244.html @@ -0,0 +1,97 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_matrix_common + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_EXT_matrix_common
    +
    +
    + +

    Defines functions for common matrix operations. +More...

    +

    Detailed Description

    +

    Defines functions for common matrix operations.

    +

    Include <glm/ext/matrix_common.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_matrix_common
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00245.html b/external/glm-0.9.9.8/doc/api/a00245.html new file mode 100644 index 0000000..edd3e9a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00245.html @@ -0,0 +1,539 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_matrix_projection + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_matrix_projection
    +
    +
    + +

    Functions that generate common projection transformation matrices. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q, typename U >
    GLM_FUNC_DECL mat< 4, 4, T, Q > pickMatrix (vec< 2, T, Q > const &center, vec< 2, T, Q > const &delta, vec< 4, U, Q > const &viewport)
     Define a picking region. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > project (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates using default near and far clip planes definition. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > projectNO (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > projectZO (vec< 3, T, Q > const &obj, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProject (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using default near and far clip planes definition. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProjectNO (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unProjectZO (vec< 3, T, Q > const &win, mat< 4, 4, T, Q > const &model, mat< 4, 4, T, Q > const &proj, vec< 4, U, Q > const &viewport)
     Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. More...
     
    +

    Detailed Description

    +

    Functions that generate common projection transformation matrices.

    +

    The matrices generated by this extension use standard OpenGL fixed-function conventions. For example, the lookAt function generates a transform from world space into the specific eye space that the projective matrix functions (perspective, ortho, etc) are designed to expect. The OpenGL compatibility specifications defines the particular layout of this eye space.

    +

    Include <glm/ext/matrix_projection.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_matrix_transform
    +
    +GLM_EXT_matrix_clip_space
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::pickMatrix (vec< 2, T, Q > const & center,
    vec< 2, T, Q > const & delta,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Define a picking region.

    +
    Parameters
    + + + + +
    centerSpecify the center of a picking region in window coordinates.
    deltaSpecify the width and height, respectively, of the picking region in window coordinates.
    viewportRendering viewport
    +
    +
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluPickMatrix man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::project (vec< 3, T, Q > const & obj,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates using default near and far clip planes definition.

    +

    To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Parameters
    + + + + + +
    objSpecify the object coordinates.
    modelSpecifies the current modelview matrix
    projSpecifies the current projection matrix
    viewportSpecifies the current viewport
    +
    +
    +
    Returns
    Return the computed window coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluProject man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::projectNO (vec< 3, T, Q > const & obj,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    objSpecify the object coordinates.
    modelSpecifies the current modelview matrix
    projSpecifies the current projection matrix
    viewportSpecifies the current viewport
    +
    +
    +
    Returns
    Return the computed window coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluProject man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::projectZO (vec< 3, T, Q > const & obj,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + +
    objSpecify the object coordinates.
    modelSpecifies the current modelview matrix
    projSpecifies the current projection matrix
    viewportSpecifies the current viewport
    +
    +
    +
    Returns
    Return the computed window coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluProject man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::unProject (vec< 3, T, Q > const & win,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using default near and far clip planes definition.

    +

    To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.

    +
    Parameters
    + + + + + +
    winSpecify the window coordinates to be mapped.
    modelSpecifies the modelview matrix
    projSpecifies the projection matrix
    viewportSpecifies the viewport
    +
    +
    +
    Returns
    Returns the computed object coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluUnProject man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::unProjectNO (vec< 3, T, Q > const & win,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)

    +
    Parameters
    + + + + + +
    winSpecify the window coordinates to be mapped.
    modelSpecifies the modelview matrix
    projSpecifies the projection matrix
    viewportSpecifies the viewport
    +
    +
    +
    Returns
    Returns the computed object coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluUnProject man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::unProjectZO (vec< 3, T, Q > const & win,
    mat< 4, 4, T, Q > const & model,
    mat< 4, 4, T, Q > const & proj,
    vec< 4, U, Q > const & viewport 
    )
    +
    + +

    Map the specified window coordinates (win.x, win.y, win.z) into object coordinates.

    +

    The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)

    +
    Parameters
    + + + + + +
    winSpecify the window coordinates to be mapped.
    modelSpecifies the modelview matrix
    projSpecifies the projection matrix
    viewportSpecifies the viewport
    +
    +
    +
    Returns
    Returns the computed object coordinates.
    +
    Template Parameters
    + + + +
    TNative type used for the computation. Currently supported: half (not recommended), float or double.
    UCurrently supported: Floating-point types and integer types.
    +
    +
    +
    See also
    gluUnProject man page
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00246.html b/external/glm-0.9.9.8/doc/api/a00246.html new file mode 100644 index 0000000..16c8b2c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00246.html @@ -0,0 +1,576 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_matrix_relational + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_matrix_relational
    +
    +
    + +

    Exposes comparison functions for matrix types that take a user defined epsilon values. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Perform a component-wise equal-to comparison of two matrices. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > equal (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Perform a component-wise not-equal-to comparison of two matrices. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< C, bool, Q > notEqual (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    +

    Detailed Description

    +

    Exposes comparison functions for matrix types that take a user defined epsilon values.

    +

    Include <glm/ext/matrix_relational.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_relational
    +
    +GLM_EXT_scalar_relational
    +
    +GLM_EXT_quaternion_relational
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::equal (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y 
    )
    +
    + +

    Perform a component-wise equal-to comparison of two matrices.

    +

    Return a boolean vector which components value is True if this expression is satisfied per column of the matrices.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::equal (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::equal (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    vec< C, T, Q > const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::equal (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    int ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::equal (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    vec< C, int, Q > const & ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::notEqual (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y 
    )
    +
    + +

    Perform a component-wise not-equal-to comparison of two matrices.

    +

    Return a boolean vector which components value is True if this expression is satisfied per column of the matrices.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::notEqual (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::notEqual (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    vec< C, T, Q > const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| >= epsilon.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::notEqual (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    int ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<C, bool, Q> glm::notEqual (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y,
    vec< C, int, Q > const & ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number of columns of the matrix
    RInteger between 1 and 4 included that qualify the number of rows of the matrix
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00247.html b/external/glm-0.9.9.8/doc/api/a00247.html new file mode 100644 index 0000000..c355f9a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00247.html @@ -0,0 +1,444 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_matrix_transform + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_matrix_transform
    +
    +
    + +

    Defines functions that generate common transformation matrices. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType identity ()
     Builds an identity matrix.
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAt (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a look at view matrix based on the default handedness. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtLH (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a left handed look at view matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > lookAtRH (vec< 3, T, Q > const &eye, vec< 3, T, Q > const &center, vec< 3, T, Q > const &up)
     Build a right handed look at view matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate (mat< 4, 4, T, Q > const &m, T angle, vec< 3, T, Q > const &axis)
     Builds a rotation 4 * 4 matrix created from an axis vector and an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
     Builds a scale 4 * 4 matrix created from 3 scalars. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)
     Builds a translation 4 * 4 matrix created from a vector of 3 components. More...
     
    +

    Detailed Description

    +

    Defines functions that generate common transformation matrices.

    +

    The matrices generated by this extension use standard OpenGL fixed-function conventions. For example, the lookAt function generates a transform from world space into the specific eye space that the projective matrix functions (perspective, ortho, etc) are designed to expect. The OpenGL compatibility specifications defines the particular layout of this eye space.

    +

    Include <glm/ext/matrix_transform.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_matrix_projection
    +
    +GLM_EXT_matrix_clip_space
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::lookAt (vec< 3, T, Q > const & eye,
    vec< 3, T, Q > const & center,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a look at view matrix based on the default handedness.

    +
    Parameters
    + + + + +
    eyePosition of the camera
    centerPosition where the camera is looking at
    upNormalized up vector, how the camera is oriented. Typically (0, 0, 1)
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal) frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal)
    +
    +gluLookAt man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::lookAtLH (vec< 3, T, Q > const & eye,
    vec< 3, T, Q > const & center,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a left handed look at view matrix.

    +
    Parameters
    + + + + +
    eyePosition of the camera
    centerPosition where the camera is looking at
    upNormalized up vector, how the camera is oriented. Typically (0, 0, 1)
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal) frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::lookAtRH (vec< 3, T, Q > const & eye,
    vec< 3, T, Q > const & center,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a right handed look at view matrix.

    +
    Parameters
    + + + + +
    eyePosition of the camera
    centerPosition where the camera is looking at
    upNormalized up vector, how the camera is oriented. Typically (0, 0, 1)
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal) frustum(T const& left, T const& right, T const& bottom, T const& top, T const& nearVal, T const& farVal)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::rotate (mat< 4, 4, T, Q > const & m,
    angle,
    vec< 3, T, Q > const & axis 
    )
    +
    + +

    Builds a rotation 4 * 4 matrix created from an axis vector and an angle.

    +
    Parameters
    + + + + +
    mInput matrix multiplied by this rotation matrix.
    angleRotation angle expressed in radians.
    axisRotation axis, recommended to be normalized.
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - rotate(mat<4, 4, T, Q> const& m, T angle, T x, T y, T z)
    +
    +- rotate(T angle, vec<3, T, Q> const& v)
    +
    +glRotate man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::scale (mat< 4, 4, T, Q > const & m,
    vec< 3, T, Q > const & v 
    )
    +
    + +

    Builds a scale 4 * 4 matrix created from 3 scalars.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this scale matrix.
    vRatio of scaling for each axis.
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - scale(mat<4, 4, T, Q> const& m, T x, T y, T z)
    +
    +- scale(vec<3, T, Q> const& v)
    +
    +glScale man page
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::translate (mat< 4, 4, T, Q > const & m,
    vec< 3, T, Q > const & v 
    )
    +
    + +

    Builds a translation 4 * 4 matrix created from a vector of 3 components.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    vCoordinates of a translation vector.
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    #include <glm/glm.hpp>
    + +
    ...
    +
    glm::mat4 m = glm::translate(glm::mat4(1.0f), glm::vec3(1.0f));
    +
    // m[0][0] == 1.0f, m[0][1] == 0.0f, m[0][2] == 0.0f, m[0][3] == 0.0f
    +
    // m[1][0] == 0.0f, m[1][1] == 1.0f, m[1][2] == 0.0f, m[1][3] == 0.0f
    +
    // m[2][0] == 0.0f, m[2][1] == 0.0f, m[2][2] == 1.0f, m[2][3] == 0.0f
    +
    // m[3][0] == 1.0f, m[3][1] == 1.0f, m[3][2] == 1.0f, m[3][3] == 1.0f
    +
    See also
    - translate(mat<4, 4, T, Q> const& m, T x, T y, T z)
    +
    +- translate(vec<3, T, Q> const& v)
    +
    +glTranslate man page
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00248.html b/external/glm-0.9.9.8/doc/api/a00248.html new file mode 100644 index 0000000..f9c13d2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00248.html @@ -0,0 +1,402 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_common + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_common
    +
    +
    + +

    Provides common functions for quaternion types. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > conjugate (qua< T, Q > const &q)
     Returns the q conjugate. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > inverse (qua< T, Q > const &q)
     Returns the q inverse. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isinf (qua< T, Q > const &x)
     Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isnan (qua< T, Q > const &x)
     Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > lerp (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Linear interpolation of two quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > mix (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Spherical linear interpolation of two quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > slerp (qua< T, Q > const &x, qua< T, Q > const &y, T a)
     Spherical linear interpolation of two quaternions. More...
     
    +

    Detailed Description

    +

    Provides common functions for quaternion types.

    +

    Include <glm/ext/quaternion_common.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_scalar_common
    +
    +GLM_EXT_vector_common
    +
    +GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +
    +GLM_EXT_quaternion_exponential
    +
    +GLM_EXT_quaternion_geometric
    +
    +GLM_EXT_quaternion_relational
    +
    +GLM_EXT_quaternion_trigonometric
    +
    +GLM_EXT_quaternion_transform
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::conjugate (qua< T, Q > const & q)
    +
    + +

    Returns the q conjugate.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::inverse (qua< T, Q > const & q)
    +
    + +

    Returns the q inverse.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::isinf (qua< T, Q > const & x)
    +
    + +

    Returns true if x holds a positive infinity or negative infinity representation in the underlying implementation's set of floating point representations.

    +

    Returns false otherwise, including for implementations with no infinity representations.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::isnan (qua< T, Q > const & x)
    +
    + +

    Returns true if x holds a NaN (not a number) representation in the underlying implementation's set of floating point representations.

    +

    Returns false otherwise, including for implementations with no NaN representations.

    +

    /!\ When using compiler fast math, this function may fail.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::lerp (qua< T, Q > const & x,
    qua< T, Q > const & y,
    a 
    )
    +
    + +

    Linear interpolation of two quaternions.

    +

    The interpolation is oriented.

    +
    Parameters
    + + + + +
    xA quaternion
    yA quaternion
    aInterpolation factor. The interpolation is defined in the range [0, 1].
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::mix (qua< T, Q > const & x,
    qua< T, Q > const & y,
    a 
    )
    +
    + +

    Spherical linear interpolation of two quaternions.

    +

    The interpolation is oriented and the rotation is performed at constant speed. For short path spherical linear interpolation, use the slerp function.

    +
    Parameters
    + + + + +
    xA quaternion
    yA quaternion
    aInterpolation factor. The interpolation is defined beyond the range [0, 1].
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    +
    See also
    - slerp(qua<T, Q> const& x, qua<T, Q> const& y, T const& a)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::slerp (qua< T, Q > const & x,
    qua< T, Q > const & y,
    a 
    )
    +
    + +

    Spherical linear interpolation of two quaternions.

    +

    The interpolation always take the short path and the rotation is performed at constant speed.

    +
    Parameters
    + + + + +
    xA quaternion
    yA quaternion
    aInterpolation factor. The interpolation is defined beyond the range [0, 1].
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00249.html b/external/glm-0.9.9.8/doc/api/a00249.html new file mode 100644 index 0000000..9c3d3ce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00249.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_double + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_double
    +
    +
    + +

    Exposes double-precision floating point quaternion type. +More...

    + + + + + +

    +Typedefs

    +typedef qua< double, defaultp > dquat
     Quaternion of double-precision floating-point numbers.
     
    +

    Detailed Description

    +

    Exposes double-precision floating point quaternion type.

    +

    Include <glm/ext/quaternion_double.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double_precision
    +
    +GLM_EXT_quaternion_common
    +
    +GLM_EXT_quaternion_exponential
    +
    +GLM_EXT_quaternion_geometric
    +
    +GLM_EXT_quaternion_relational
    +
    +GLM_EXT_quaternion_transform
    +
    +GLM_EXT_quaternion_trigonometric
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00250.html b/external/glm-0.9.9.8/doc/api/a00250.html new file mode 100644 index 0000000..653596b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00250.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_double_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_double_precision
    +
    +
    + +

    Exposes double-precision floating point quaternion type with various precision in term of ULPs. +More...

    + + + + + + + + + + + +

    +Typedefs

    typedef qua< double, highp > highp_dquat
     Quaternion of high double-qualifier floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef qua< double, lowp > lowp_dquat
     Quaternion of double-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef qua< double, mediump > mediump_dquat
     Quaternion of medium double-qualifier floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +

    Exposes double-precision floating point quaternion type with various precision in term of ULPs.

    +

    Include <glm/ext/quaternion_double_precision.hpp> to use the features of this extension.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef qua< double, highp > highp_dquat
    +
    + +

    Quaternion of high double-qualifier floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLM_EXT_quaternion_double_precision
    + +

    Definition at line 38 of file quaternion_double_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< double, lowp > lowp_dquat
    +
    + +

    Quaternion of double-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLM_EXT_quaternion_double_precision
    + +

    Definition at line 28 of file quaternion_double_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< double, mediump > mediump_dquat
    +
    + +

    Quaternion of medium double-qualifier floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLM_EXT_quaternion_double_precision
    + +

    Definition at line 33 of file quaternion_double_precision.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00251.html b/external/glm-0.9.9.8/doc/api/a00251.html new file mode 100644 index 0000000..38c349d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00251.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_exponential + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_EXT_quaternion_exponential
    +
    +
    + +

    Provides exponential functions for quaternion types. +More...

    +

    Provides exponential functions for quaternion types.

    +

    Include <glm/ext/quaternion_exponential.hpp> to use the features of this extension.

    +
    See also
    core_exponential
    +
    +GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00252.html b/external/glm-0.9.9.8/doc/api/a00252.html new file mode 100644 index 0000000..7df0acb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00252.html @@ -0,0 +1,121 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_float + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_float
    +
    +
    + +

    Exposes single-precision floating point quaternion type. +More...

    + + + + + +

    +Typedefs

    +typedef qua< float, defaultp > quat
     Quaternion of single-precision floating-point numbers.
     
    +

    Detailed Description

    +

    Exposes single-precision floating point quaternion type.

    +

    Include <glm/ext/quaternion_float.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_quaternion_double
    +
    +GLM_EXT_quaternion_float_precision
    +
    +GLM_EXT_quaternion_common
    +
    +GLM_EXT_quaternion_exponential
    +
    +GLM_EXT_quaternion_geometric
    +
    +GLM_EXT_quaternion_relational
    +
    +GLM_EXT_quaternion_transform
    +
    +GLM_EXT_quaternion_trigonometric
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00253.html b/external/glm-0.9.9.8/doc/api/a00253.html new file mode 100644 index 0000000..c0632b3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00253.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_float_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_float_precision
    +
    +
    + +

    Exposes single-precision floating point quaternion type with various precision in term of ULPs. +More...

    + + + + + + + + + + + +

    +Typedefs

    +typedef qua< float, highp > highp_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef qua< float, lowp > lowp_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef qua< float, mediump > mediump_quat
     Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +

    Exposes single-precision floating point quaternion type with various precision in term of ULPs.

    +

    Include <glm/ext/quaternion_float_precision.hpp> to use the features of this extension.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00254.html b/external/glm-0.9.9.8/doc/api/a00254.html new file mode 100644 index 0000000..6f6bfd8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00254.html @@ -0,0 +1,248 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_geometric + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_geometric
    +
    +
    + +

    Provides geometric functions for quaternion types. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER qua< T, Q > cross (qua< T, Q > const &q1, qua< T, Q > const &q2)
     Compute a cross product. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T dot (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ... More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T length (qua< T, Q > const &q)
     Returns the norm of a quaternions. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > normalize (qua< T, Q > const &q)
     Returns the normalized quaternion. More...
     
    +

    Detailed Description

    +

    Provides geometric functions for quaternion types.

    +

    Include <glm/ext/quaternion_geometric.hpp> to use the features of this extension.

    +
    See also
    core_geometric
    +
    +GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER qua<T, Q> glm::cross (qua< T, Q > const & q1,
    qua< T, Q > const & q2 
    )
    +
    + +

    Compute a cross product.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_geometric
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::dot (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ...

    +
    Template Parameters
    + + + +
    TFloating-point scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_geometric
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::length (qua< T, Q > const & q)
    +
    + +

    Returns the norm of a quaternions.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_geometric
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::normalize (qua< T, Q > const & q)
    +
    + +

    Returns the normalized quaternion.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_geometric
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00255.html b/external/glm-0.9.9.8/doc/api/a00255.html new file mode 100644 index 0000000..ec4dc8a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00255.html @@ -0,0 +1,280 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_relational + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_relational
    +
    +
    + +

    Exposes comparison functions for quaternion types that take a user defined epsilon values. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > equal (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x == y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > equal (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > notEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x != y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > notEqual (qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    +

    Detailed Description

    +

    Exposes comparison functions for quaternion types that take a user defined epsilon values.

    +

    Include <glm/ext/quaternion_relational.hpp> to use the features of this extension.

    +
    See also
    core_vector_relational
    +
    +GLM_EXT_vector_relational
    +
    +GLM_EXT_matrix_relational
    +
    +GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::equal (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x == y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::equal (qua< T, Q > const & x,
    qua< T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::notEqual (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x != y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::notEqual (qua< T, Q > const & x,
    qua< T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| >= epsilon.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00256.html b/external/glm-0.9.9.8/doc/api/a00256.html new file mode 100644 index 0000000..9cdacbd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00256.html @@ -0,0 +1,293 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_transform + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_transform
    +
    +
    + +

    Provides transformation functions for quaternion types. +More...

    + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > exp (qua< T, Q > const &q)
     Returns a exponential of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > log (qua< T, Q > const &q)
     Returns a logarithm of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > pow (qua< T, Q > const &q, T y)
     Returns a quaternion raised to a power. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotate (qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
     Rotates a quaternion from a vector of 3 components axis and an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > sqrt (qua< T, Q > const &q)
     Returns the square root of a quaternion. More...
     
    +

    Detailed Description

    +

    Provides transformation functions for quaternion types.

    +

    Include <glm/ext/quaternion_transform.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +
    +GLM_EXT_quaternion_exponential
    +
    +GLM_EXT_quaternion_geometric
    +
    +GLM_EXT_quaternion_relational
    +
    +GLM_EXT_quaternion_trigonometric
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::exp (qua< T, Q > const & q)
    +
    + +

    Returns a exponential of a quaternion.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::log (qua< T, Q > const & q)
    +
    + +

    Returns a logarithm of a quaternion.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::pow (qua< T, Q > const & q,
    y 
    )
    +
    + +

    Returns a quaternion raised to a power.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::rotate (qua< T, Q > const & q,
    T const & angle,
    vec< 3, T, Q > const & axis 
    )
    +
    + +

    Rotates a quaternion from a vector of 3 components axis and an angle.

    +
    Parameters
    + + + + +
    qSource orientation
    angleAngle expressed in radians.
    axisAxis of the rotation
    +
    +
    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::sqrt (qua< T, Q > const & q)
    +
    + +

    Returns the square root of a quaternion.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00257.html b/external/glm-0.9.9.8/doc/api/a00257.html new file mode 100644 index 0000000..df4639e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00257.html @@ -0,0 +1,218 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_quaternion_trigonometric + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_quaternion_trigonometric
    +
    +
    + +

    Provides trigonometric functions for quaternion types. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T angle (qua< T, Q > const &x)
     Returns the quaternion rotation angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > angleAxis (T const &angle, vec< 3, T, Q > const &axis)
     Build a quaternion from an angle and a normalized axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > axis (qua< T, Q > const &x)
     Returns the q rotation axis. More...
     
    +

    Detailed Description

    +

    Provides trigonometric functions for quaternion types.

    +

    Include <glm/ext/quaternion_trigonometric.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_quaternion_float
    +
    +GLM_EXT_quaternion_double
    +
    +GLM_EXT_quaternion_exponential
    +
    +GLM_EXT_quaternion_geometric
    +
    +GLM_EXT_quaternion_relational
    +
    +GLM_EXT_quaternion_transform
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::angle (qua< T, Q > const & x)
    +
    + +

    Returns the quaternion rotation angle.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::angleAxis (T const & angle,
    vec< 3, T, Q > const & axis 
    )
    +
    + +

    Build a quaternion from an angle and a normalized axis.

    +
    Parameters
    + + + +
    angleAngle expressed in radians.
    axisAxis of the quaternion, must be normalized.
    +
    +
    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::axis (qua< T, Q > const & x)
    +
    + +

    Returns the q rotation axis.

    +
    Template Parameters
    + + + +
    TA floating-point scalar type
    QA value from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00258.html b/external/glm-0.9.9.8/doc/api/a00258.html new file mode 100644 index 0000000..8777405 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00258.html @@ -0,0 +1,570 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_common + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_scalar_common
    +
    +
    + +

    Exposes min and max functions for 3 to 4 scalar parameters. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b)
     Returns the maximum component-wise values of 2 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b, T C)
     Returns the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmax (T a, T b, T C, T D)
     Returns the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b)
     Returns the minimum component-wise values of 2 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b, T c)
     Returns the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T fmin (T a, T b, T c, T d)
     Returns the minimum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T a, T b, T c)
     Returns the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T a, T b, T c, T d)
     Returns the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T a, T b, T c)
     Returns the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T a, T b, T c, T d)
     Returns the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    Exposes min and max functions for 3 to 4 scalar parameters.

    +

    Include <glm/ext/scalar_common.hpp> to use the features of this extension.

    +
    See also
    Common functions
    +
    +GLM_EXT_vector_common
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmax (a,
    b 
    )
    +
    + +

    Returns the maximum component-wise values of 2 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmax (a,
    b,
    C 
    )
    +
    + +

    Returns the maximum component-wise values of 3 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmax (a,
    b,
    C,
    D 
    )
    +
    + +

    Returns the maximum component-wise values of 4 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmin (a,
    b 
    )
    +
    + +

    Returns the minimum component-wise values of 2 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmin (a,
    b,
    c 
    )
    +
    + +

    Returns the minimum component-wise values of 3 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fmin (a,
    b,
    c,
    d 
    )
    +
    + +

    Returns the minimum component-wise values of 4 inputs.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::max (a,
    b,
    c 
    )
    +
    + +

    Returns the maximum component-wise values of 3 inputs.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::max (a,
    b,
    c,
    d 
    )
    +
    + +

    Returns the maximum component-wise values of 4 inputs.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::min (a,
    b,
    c 
    )
    +
    + +

    Returns the minimum component-wise values of 3 inputs.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::min (a,
    b,
    c,
    d 
    )
    +
    + +

    Returns the minimum component-wise values of 4 inputs.

    +
    Template Parameters
    + + +
    TA floating-point scalar type.
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00259.html b/external/glm-0.9.9.8/doc/api/a00259.html new file mode 100644 index 0000000..daa503e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00259.html @@ -0,0 +1,112 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_constants + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_scalar_constants
    +
    +
    + +

    Provides a list of constants and precomputed useful values. +More...

    + + + + + + + + + + +

    +Functions

    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon ()
     Return the epsilon constant for floating point types.
     
    +template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType pi ()
     Return the pi constant for floating point types.
     
    +

    Detailed Description

    +

    Provides a list of constants and precomputed useful values.

    +

    Include <glm/ext/scalar_constants.hpp> to use the features of this extension.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00260.html b/external/glm-0.9.9.8/doc/api/a00260.html new file mode 100644 index 0000000..d61e288 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00260.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_int_sized + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_scalar_int_sized
    +
    +
    + +

    Exposes sized signed integer scalar types. +More...

    + + + + + + + + + + + + + + +

    +Typedefs

    +typedef detail::int16 int16
     16 bit signed integer type.
     
    +typedef detail::int32 int32
     32 bit signed integer type.
     
    +typedef detail::int64 int64
     64 bit signed integer type.
     
    +typedef detail::int8 int8
     8 bit signed integer type.
     
    +

    Detailed Description

    +

    Exposes sized signed integer scalar types.

    +

    Include <glm/ext/scalar_int_sized.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_scalar_uint_sized
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00261.html b/external/glm-0.9.9.8/doc/api/a00261.html new file mode 100644 index 0000000..d73b3d4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00261.html @@ -0,0 +1,336 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_integer + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_scalar_integer
    +
    +
    + +

    Include <glm/ext/scalar_integer.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genIUType >
    GLM_FUNC_DECL int findNSB (genIUType x, int significantBitCount)
     Returns the bit number of the Nth significant bit set to 1 in the binary representation of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL bool isMultiple (genIUType v, genIUType Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL bool isPowerOfTwo (genIUType v)
     Return true if the value is a power of two number. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType nextMultiple (genIUType v, genIUType Multiple)
     Higher multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType nextPowerOfTwo (genIUType v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType prevMultiple (genIUType v, genIUType Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType prevPowerOfTwo (genIUType v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    +

    Detailed Description

    +

    Include <glm/ext/scalar_integer.hpp> to use the features of this extension.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int glm::findNSB (genIUType x,
    int significantBitCount 
    )
    +
    + +

    Returns the bit number of the Nth significant bit set to 1 in the binary representation of value.

    +

    If value bitcount is less than the Nth significant bit, -1 will be returned.

    +
    Template Parameters
    + + +
    genIUTypeSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isMultiple (genIUType v,
    genIUType Multiple 
    )
    +
    + +

    Return true if the 'Value' is a multiple of 'Multiple'.

    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL bool glm::isPowerOfTwo (genIUType v)
    +
    + +

    Return true if the value is a power of two number.

    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::nextMultiple (genIUType v,
    genIUType Multiple 
    )
    +
    + +

    Higher multiple number of Source.

    +
    Template Parameters
    + + +
    genIUTypeInteger scalar or vector types.
    +
    +
    +
    Parameters
    + + + +
    vSource value to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::nextPowerOfTwo (genIUType v)
    +
    + +

    Return the power of two number which value is just higher the input value, round up to a power of two.

    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::prevMultiple (genIUType v,
    genIUType Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + +
    genIUTypeInteger scalar or vector types.
    +
    +
    +
    Parameters
    + + + +
    vSource value to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::prevPowerOfTwo (genIUType v)
    +
    + +

    Return the power of two number which value is just lower the input value, round down to a power of two.

    +
    See also
    GLM_EXT_scalar_integer
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00262.html b/external/glm-0.9.9.8/doc/api/a00262.html new file mode 100644 index 0000000..429cef7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00262.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_relational + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_EXT_scalar_relational
    +
    +
    + +

    Exposes comparison functions for scalar types that take a user defined epsilon values. +More...

    +

    Exposes comparison functions for scalar types that take a user defined epsilon values.

    +

    Include <glm/ext/scalar_relational.hpp> to use the features of this extension.

    +
    See also
    core_vector_relational
    +
    +GLM_EXT_vector_relational
    +
    +GLM_EXT_matrix_relational
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00263.html b/external/glm-0.9.9.8/doc/api/a00263.html new file mode 100644 index 0000000..dedea00 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00263.html @@ -0,0 +1,119 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_uint_sized + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_scalar_uint_sized
    +
    +
    + +

    Exposes sized unsigned integer scalar types. +More...

    + + + + + + + + + + + + + + +

    +Typedefs

    +typedef detail::uint16 uint16
     16 bit unsigned integer type.
     
    +typedef detail::uint32 uint32
     32 bit unsigned integer type.
     
    +typedef detail::uint64 uint64
     64 bit unsigned integer type.
     
    +typedef detail::uint8 uint8
     8 bit unsigned integer type.
     
    +

    Detailed Description

    +

    Exposes sized unsigned integer scalar types.

    +

    Include <glm/ext/scalar_uint_sized.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_scalar_int_sized
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00264.html b/external/glm-0.9.9.8/doc/api/a00264.html new file mode 100644 index 0000000..b4b4077 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00264.html @@ -0,0 +1,99 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_scalar_ulp + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_EXT_scalar_ulp
    +
    +
    + +

    Allow the measurement of the accuracy of a function against a reference implementation. +More...

    +

    Allow the measurement of the accuracy of a function against a reference implementation.

    +

    This extension works on floating-point data and provide results in ULP.

    +

    Include <glm/ext/scalar_ulp.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_ulp
    +
    +GLM_EXT_scalar_relational
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00265.html b/external/glm-0.9.9.8/doc/api/a00265.html new file mode 100644 index 0000000..56bc893 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00265.html @@ -0,0 +1,107 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_bool1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_bool1
    +
    +
    + +

    Exposes bvec1 vector type. +More...

    + + + + + +

    +Typedefs

    +typedef vec< 1, bool, defaultp > bvec1
     1 components vector of boolean.
     
    +

    Detailed Description

    +

    Exposes bvec1 vector type.

    +

    Include <glm/ext/vector_bool1.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_bool1_precision extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00266.html b/external/glm-0.9.9.8/doc/api/a00266.html new file mode 100644 index 0000000..6465985 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00266.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_bool1_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_bool1_precision
    +
    +
    + +

    Exposes highp_bvec1, mediump_bvec1 and lowp_bvec1 types. +More...

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, bool, highp > highp_bvec1
     1 component vector of bool values.
     
    +typedef vec< 1, bool, lowp > lowp_bvec1
     1 component vector of bool values.
     
    +typedef vec< 1, bool, mediump > mediump_bvec1
     1 component vector of bool values.
     
    +

    Detailed Description

    +

    Exposes highp_bvec1, mediump_bvec1 and lowp_bvec1 types.

    +

    Include <glm/ext/vector_bool1_precision.hpp> to use the features of this extension.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00267.html b/external/glm-0.9.9.8/doc/api/a00267.html new file mode 100644 index 0000000..75f51e8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00267.html @@ -0,0 +1,674 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_common + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_common
    +
    +
    + +

    Exposes min and max functions for 3 to 4 vector parameters. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, T b)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &x, T y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)
     Return the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    Exposes min and max functions for 3 to 4 vector parameters.

    +

    Include <glm/ext/vector_common.hpp> to use the features of this extension.

    +
    See also
    core_common
    +
    +GLM_EXT_scalar_common
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmax (vec< L, T, Q > const & a,
    b 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmax (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmax (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmax (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c,
    vec< L, T, Q > const & d 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmin (vec< L, T, Q > const & x,
    y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmin (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmin (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmin (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c,
    vec< L, T, Q > const & d 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    std::fmin documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::max (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, T, Q > const & z 
    )
    +
    + +

    Return the maximum component-wise values of 3 inputs.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::max (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, T, Q > const & z,
    vec< L, T, Q > const & w 
    )
    +
    + +

    Return the maximum component-wise values of 4 inputs.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::min (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c 
    )
    +
    + +

    Return the minimum component-wise values of 3 inputs.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::min (vec< L, T, Q > const & a,
    vec< L, T, Q > const & b,
    vec< L, T, Q > const & c,
    vec< L, T, Q > const & d 
    )
    +
    + +

    Return the minimum component-wise values of 4 inputs.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00268.html b/external/glm-0.9.9.8/doc/api/a00268.html new file mode 100644 index 0000000..22acfca --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00268.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_double1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_double1
    +
    +
    + +

    Exposes double-precision floating point vector type with one component. +More...

    + + + + + +

    +Typedefs

    +typedef vec< 1, double, defaultp > dvec1
     1 components vector of double-precision floating-point numbers.
     
    +

    Detailed Description

    +

    Exposes double-precision floating point vector type with one component.

    +

    Include <glm/ext/vector_double1.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_double1_precision extension.
    +
    +GLM_EXT_vector_float1 extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00269.html b/external/glm-0.9.9.8/doc/api/a00269.html new file mode 100644 index 0000000..4ed2d00 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00269.html @@ -0,0 +1,115 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_double1_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_double1_precision
    +
    +
    + +

    Exposes highp_dvec1, mediump_dvec1 and lowp_dvec1 types. +More...

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, double, highp > highp_dvec1
     1 component vector of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, lowp > lowp_dvec1
     1 component vector of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, mediump > mediump_dvec1
     1 component vector of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +

    Exposes highp_dvec1, mediump_dvec1 and lowp_dvec1 types.

    +

    Include <glm/ext/vector_double1_precision.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_double1
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00270.html b/external/glm-0.9.9.8/doc/api/a00270.html new file mode 100644 index 0000000..cc6544a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00270.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_float1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_float1
    +
    +
    + +

    Exposes single-precision floating point vector type with one component. +More...

    + + + + + +

    +Typedefs

    +typedef vec< 1, float, defaultp > vec1
     1 components vector of single-precision floating-point numbers.
     
    +

    Detailed Description

    +

    Exposes single-precision floating point vector type with one component.

    +

    Include <glm/ext/vector_float1.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_float1_precision extension.
    +
    +GLM_EXT_vector_double1 extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00271.html b/external/glm-0.9.9.8/doc/api/a00271.html new file mode 100644 index 0000000..97996ec --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00271.html @@ -0,0 +1,115 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_float1_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_float1_precision
    +
    +
    + +

    Exposes highp_vec1, mediump_vec1 and lowp_vec1 types. +More...

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, float, highp > highp_vec1
     1 component vector of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, float, lowp > lowp_vec1
     1 component vector of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, float, mediump > mediump_vec1
     1 component vector of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +

    Detailed Description

    +

    Exposes highp_vec1, mediump_vec1 and lowp_vec1 types.

    +

    Include <glm/ext/vector_float1_precision.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_float1 extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00272.html b/external/glm-0.9.9.8/doc/api/a00272.html new file mode 100644 index 0000000..7cc3eed --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00272.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_int1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_int1
    +
    +
    + +

    Exposes ivec1 vector type. +More...

    + + + + + +

    +Typedefs

    +typedef vec< 1, int, defaultp > ivec1
     1 component vector of signed integer numbers.
     
    +

    Detailed Description

    +

    Exposes ivec1 vector type.

    +

    Include <glm/ext/vector_int1.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_uint1 extension.
    +
    +GLM_EXT_vector_int1_precision extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00273.html b/external/glm-0.9.9.8/doc/api/a00273.html new file mode 100644 index 0000000..b5d18b7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00273.html @@ -0,0 +1,114 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_int1_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_int1_precision
    +
    +
    + +

    Exposes highp_ivec1, mediump_ivec1 and lowp_ivec1 types. +More...

    + + + + + + + + + + + +

    +Typedefs

    +typedef vec< 1, int, highp > highp_ivec1
     1 component vector of signed integer values.
     
    +typedef vec< 1, int, lowp > lowp_ivec1
     1 component vector of signed integer values.
     
    +typedef vec< 1, int, mediump > mediump_ivec1
     1 component vector of signed integer values.
     
    +

    Detailed Description

    +

    Exposes highp_ivec1, mediump_ivec1 and lowp_ivec1 types.

    +

    Include <glm/ext/vector_int1_precision.hpp> to use the features of this extension.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00274.html b/external/glm-0.9.9.8/doc/api/a00274.html new file mode 100644 index 0000000..19c5131 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00274.html @@ -0,0 +1,510 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_integer + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_integer
    +
    +
    + +

    Include <glm/ext/vector_integer.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findNSB (vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)
     Returns the bit number of the Nth significant bit set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isMultiple (vec< L, T, Q > const &v, T Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Return true if the 'Value' is a multiple of 'Multiple'. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isPowerOfTwo (vec< L, T, Q > const &v)
     Return true if the value is a power of two number. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextMultiple (vec< L, T, Q > const &v, T Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > nextPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevMultiple (vec< L, T, Q > const &v, T Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > prevPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    +

    Detailed Description

    +

    Include <glm/ext/vector_integer.hpp> to use the features of this extension.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::findNSB (vec< L, T, Q > const & Source,
    vec< L, int, Q > SignificantBitCount 
    )
    +
    + +

    Returns the bit number of the Nth significant bit set to 1 in the binary representation of value.

    +

    If value bitcount is less than the Nth significant bit, -1 will be returned.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isMultiple (vec< L, T, Q > const & v,
    Multiple 
    )
    +
    + +

    Return true if the 'Value' is a multiple of 'Multiple'.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Return true if the 'Value' is a multiple of 'Multiple'.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return true if the value is a power of two number.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::nextMultiple (vec< L, T, Q > const & v,
    Multiple 
    )
    +
    + +

    Higher multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::nextMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Higher multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::nextPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return the power of two number which value is just higher the input value, round up to a power of two.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::prevMultiple (vec< L, T, Q > const & v,
    Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::prevMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::prevPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return the power of two number which value is just lower the input value, round down to a power of two.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned or unsigned integer scalar types.
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_integer
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00275.html b/external/glm-0.9.9.8/doc/api/a00275.html new file mode 100644 index 0000000..c7f53ab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00275.html @@ -0,0 +1,484 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_relational + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_relational
    +
    +
    + +

    Exposes comparison functions for vector types that take a user defined epsilon values. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)
     Returns the component-wise comparison between two vectors in term of ULPs. More...
     
    +

    Detailed Description

    +

    Exposes comparison functions for vector types that take a user defined epsilon values.

    +

    Include <glm/ext/vector_relational.hpp> to use the features of this extension.

    +
    See also
    core_vector_relational
    +
    +GLM_EXT_scalar_relational
    +
    +GLM_EXT_matrix_relational
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::equal (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::equal (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, T, Q > const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::equal (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    int ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::equal (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, int, Q > const & ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::notEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| >= epsilon.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::notEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, T, Q > const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| >= epsilon.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::notEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    int ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::notEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    vec< L, int, Q > const & ULPs 
    )
    +
    + +

    Returns the component-wise comparison between two vectors in term of ULPs.

    +

    True if this expression is not satisfied.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point
    QValue from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00276.html b/external/glm-0.9.9.8/doc/api/a00276.html new file mode 100644 index 0000000..5bd1dde --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00276.html @@ -0,0 +1,109 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_uint1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_uint1
    +
    +
    + +

    Exposes uvec1 vector type. +More...

    + + + + + +

    +Typedefs

    +typedef vec< 1, unsigned int, defaultp > uvec1
     1 component vector of unsigned integer numbers.
     
    +

    Detailed Description

    +

    Exposes uvec1 vector type.

    +

    Include <glm/ext/vector_uvec1.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_vector_int1 extension.
    +
    +GLM_EXT_vector_uint1_precision extension.
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00277.html b/external/glm-0.9.9.8/doc/api/a00277.html new file mode 100644 index 0000000..c141bf1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00277.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_uint1_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_EXT_vector_uint1_precision
    +
    +
    + +

    Exposes highp_uvec1, mediump_uvec1 and lowp_uvec1 types. +More...

    + + + + + + + + + + + +

    +Typedefs

    typedef vec< 1, unsigned int, highp > highp_uvec1
     1 component vector of unsigned integer values. More...
     
    typedef vec< 1, unsigned int, lowp > lowp_uvec1
     1 component vector of unsigned integer values. More...
     
    typedef vec< 1, unsigned int, mediump > mediump_uvec1
     1 component vector of unsigned integer values. More...
     
    +

    Detailed Description

    +

    Exposes highp_uvec1, mediump_uvec1 and lowp_uvec1 types.

    +

    Include <glm/ext/vector_uint1_precision.hpp> to use the features of this extension.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef vec< 1, u32, highp > highp_uvec1
    +
    + +

    1 component vector of unsigned integer values.

    +
    See also
    GLM_EXT_vector_uint1_precision
    + +

    Definition at line 27 of file vector_uint1_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, lowp > lowp_uvec1
    +
    + +

    1 component vector of unsigned integer values.

    +
    See also
    GLM_EXT_vector_uint1_precision
    + +

    Definition at line 37 of file vector_uint1_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, mediump > mediump_uvec1
    +
    + +

    1 component vector of unsigned integer values.

    +
    See also
    GLM_EXT_vector_uint1_precision
    + +

    Definition at line 32 of file vector_uint1_precision.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00278.html b/external/glm-0.9.9.8/doc/api/a00278.html new file mode 100644 index 0000000..951806d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00278.html @@ -0,0 +1,101 @@ + + + + + + +0.9.9 API documentation: GLM_EXT_vector_ulp + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_EXT_vector_ulp
    +
    +
    + +

    Allow the measurement of the accuracy of a function against a reference implementation. +More...

    +

    Allow the measurement of the accuracy of a function against a reference implementation.

    +

    This extension works on floating-point data and provide results in ULP.

    +

    Include <glm/ext/vector_ulp.hpp> to use the features of this extension.

    +
    See also
    GLM_EXT_scalar_ulp
    +
    +GLM_EXT_scalar_relational
    +
    +GLM_EXT_vector_relational
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00279.html b/external/glm-0.9.9.8/doc/api/a00279.html new file mode 100644 index 0000000..502ab4d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00279.html @@ -0,0 +1,431 @@ + + + + + + +0.9.9 API documentation: Geometric functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Geometric functions
    +
    +
    + +

    These operate on vectors as vectors, not component-wise. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the cross product of x and y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T distance (vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
     Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T dot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the dot product of x and y, i.e., result = x * y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > faceforward (vec< L, T, Q > const &N, vec< L, T, Q > const &I, vec< L, T, Q > const &Nref)
     If dot(Nref, I) < 0.0, return N, otherwise, return -N. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T length (vec< L, T, Q > const &x)
     Returns the length of x, i.e., sqrt(x * x). More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > normalize (vec< L, T, Q > const &x)
     Returns a vector in the same direction as x but with length of 1. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > reflect (vec< L, T, Q > const &I, vec< L, T, Q > const &N)
     For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > refract (vec< L, T, Q > const &I, vec< L, T, Q > const &N, T eta)
     For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector. More...
     
    +

    Detailed Description

    +

    These operate on vectors as vectors, not component-wise.

    +

    Include <glm/geometric.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::cross (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y 
    )
    +
    + +

    Returns the cross product of x and y.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL cross man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::distance (vec< L, T, Q > const & p0,
    vec< L, T, Q > const & p1 
    )
    +
    + +

    Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL distance man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::dot (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the dot product of x and y, i.e., result = x * y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL dot man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::faceforward (vec< L, T, Q > const & N,
    vec< L, T, Q > const & I,
    vec< L, T, Q > const & Nref 
    )
    +
    + +

    If dot(Nref, I) < 0.0, return N, otherwise, return -N.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL faceforward man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::length (vec< L, T, Q > const & x)
    +
    + +

    Returns the length of x, i.e., sqrt(x * x).

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL length man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::normalize (vec< L, T, Q > const & x)
    +
    + +

    Returns a vector in the same direction as x but with length of 1.

    +

    According to issue 10 GLSL 1.10 specification, if length(x) == 0 then result is undefined and generate an error.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL normalize man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::reflect (vec< L, T, Q > const & I,
    vec< L, T, Q > const & N 
    )
    +
    + +

    For the incident vector I and surface orientation N, returns the reflection direction : result = I - 2.0 * dot(N, I) * N.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL reflect man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::refract (vec< L, T, Q > const & I,
    vec< L, T, Q > const & N,
    eta 
    )
    +
    + +

    For the incident vector I and surface normal N, and the ratio of indices of refraction eta, return the refraction vector.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLSL refract man page
    +
    +GLSL 4.20.8 specification, section 8.5 Geometric Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00280.html b/external/glm-0.9.9.8/doc/api/a00280.html new file mode 100644 index 0000000..f37dc8d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00280.html @@ -0,0 +1,165 @@ + + + + + + +0.9.9 API documentation: Core features + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Core features
    +
    +
    + +

    Features that implement in C++ the GLSL specification as closely as possible. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Modules

     Common functions
     Provides GLSL common functions.
     
     Exponential functions
     Provides GLSL exponential functions.
     
     Geometric functions
     These operate on vectors as vectors, not component-wise.
     
     Vector types
     Vector types of two to four components with an exhaustive set of operators.
     
     Vector types with precision qualifiers
     Vector types with precision qualifiers which may result in various precision in term of ULPs.
     
     Matrix types
     Matrix types of with C columns and R rows where C and R are values between 2 to 4 included.
     
     Matrix types with precision qualifiers
     Matrix types with precision qualifiers which may result in various precision in term of ULPs.
     
     Integer functions
     Provides GLSL functions on integer types.
     
     Matrix functions
     Provides GLSL matrix functions.
     
     Floating-Point Pack and Unpack Functions
     Provides GLSL functions to pack and unpack half, single and double-precision floating point values into more compact integer types.
     
     Angle and Trigonometry Functions
     Function parameters specified as angle are assumed to be in units of radians.
     
     Vector Relational Functions
     Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results.
     
    + + + + +

    +Typedefs

    typedef mat< 3, 2, float, defaultp > mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Features that implement in C++ the GLSL specification as closely as possible.

    +

    The GLM core consists of C++ types that mirror GLSL types and C++ functions that mirror the GLSL functions.

    +

    The best documentation for GLM Core is the current GLSL specification, version 4.2 (pdf file).

    +

    GLM core functionalities require <glm/glm.hpp> to be included to be used.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, defaultp > mat3x2
    +
    + +

    3 columns of 2 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float3x2.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00281.html b/external/glm-0.9.9.8/doc/api/a00281.html new file mode 100644 index 0000000..563b776 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00281.html @@ -0,0 +1,402 @@ + + + + + + +0.9.9 API documentation: Vector types + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Vector types
    +
    +
    + +

    Vector types of two to four components with an exhaustive set of operators. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, bool, defaultp > bvec2
     2 components vector of boolean. More...
     
    typedef vec< 3, bool, defaultp > bvec3
     3 components vector of boolean. More...
     
    typedef vec< 4, bool, defaultp > bvec4
     4 components vector of boolean. More...
     
    typedef vec< 2, double, defaultp > dvec2
     2 components vector of double-precision floating-point numbers. More...
     
    typedef vec< 3, double, defaultp > dvec3
     3 components vector of double-precision floating-point numbers. More...
     
    typedef vec< 4, double, defaultp > dvec4
     4 components vector of double-precision floating-point numbers. More...
     
    typedef vec< 2, int, defaultp > ivec2
     2 components vector of signed integer numbers. More...
     
    typedef vec< 3, int, defaultp > ivec3
     3 components vector of signed integer numbers. More...
     
    typedef vec< 4, int, defaultp > ivec4
     4 components vector of signed integer numbers. More...
     
    typedef vec< 2, unsigned int, defaultp > uvec2
     2 components vector of unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, defaultp > uvec3
     3 components vector of unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, defaultp > uvec4
     4 components vector of unsigned integer numbers. More...
     
    typedef vec< 2, float, defaultp > vec2
     2 components vector of single-precision floating-point numbers. More...
     
    typedef vec< 3, float, defaultp > vec3
     3 components vector of single-precision floating-point numbers. More...
     
    typedef vec< 4, float, defaultp > vec4
     4 components vector of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Vector types of two to four components with an exhaustive set of operators.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef vec< 2, bool, defaultp > bvec2
    +
    + +

    2 components vector of boolean.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_bool2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, bool, defaultp > bvec3
    +
    + +

    3 components vector of boolean.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_bool3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, bool, defaultp > bvec4
    +
    + +

    4 components vector of boolean.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_bool4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, defaultp > dvec2
    +
    + +

    2 components vector of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_double2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, defaultp > dvec3
    +
    + +

    3 components vector of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_double3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, defaultp > dvec4
    +
    + +

    4 components vector of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_double4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, defaultp > ivec2
    +
    + +

    2 components vector of signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_int2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, defaultp > ivec3
    +
    + +

    3 components vector of signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_int3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, defaultp > ivec4
    +
    + +

    4 components vector of signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_int4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, defaultp > uvec2
    +
    + +

    2 components vector of unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_uint2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, defaultp > uvec3
    +
    + +

    3 components vector of unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_uint3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, defaultp > uvec4
    +
    + +

    4 components vector of unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_uint4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, defaultp > vec2
    +
    + +

    2 components vector of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_float2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, defaultp > vec3
    +
    + +

    3 components vector of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_float3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, defaultp > vec4
    +
    + +

    4 components vector of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    + +

    Definition at line 15 of file vector_float4.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00282.html b/external/glm-0.9.9.8/doc/api/a00282.html new file mode 100644 index 0000000..c0e06f8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00282.html @@ -0,0 +1,1101 @@ + + + + + + +0.9.9 API documentation: Vector types with precision qualifiers + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Vector types with precision qualifiers
    +
    +
    + +

    Vector types with precision qualifiers which may result in various precision in term of ULPs. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef vec< 2, bool, highp > highp_bvec2
     2 components vector of high qualifier bool numbers. More...
     
    typedef vec< 3, bool, highp > highp_bvec3
     3 components vector of high qualifier bool numbers. More...
     
    typedef vec< 4, bool, highp > highp_bvec4
     4 components vector of high qualifier bool numbers. More...
     
    typedef vec< 2, double, highp > highp_dvec2
     2 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 3, double, highp > highp_dvec3
     3 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 4, double, highp > highp_dvec4
     4 components vector of high double-qualifier floating-point numbers. More...
     
    typedef vec< 2, int, highp > highp_ivec2
     2 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 3, int, highp > highp_ivec3
     3 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 4, int, highp > highp_ivec4
     4 components vector of high qualifier signed integer numbers. More...
     
    typedef vec< 2, unsigned int, highp > highp_uvec2
     2 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, highp > highp_uvec3
     3 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, highp > highp_uvec4
     4 components vector of high qualifier unsigned integer numbers. More...
     
    typedef vec< 2, float, highp > highp_vec2
     2 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 3, float, highp > highp_vec3
     3 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 4, float, highp > highp_vec4
     4 components vector of high single-qualifier floating-point numbers. More...
     
    typedef vec< 2, bool, lowp > lowp_bvec2
     2 components vector of low qualifier bool numbers. More...
     
    typedef vec< 3, bool, lowp > lowp_bvec3
     3 components vector of low qualifier bool numbers. More...
     
    typedef vec< 4, bool, lowp > lowp_bvec4
     4 components vector of low qualifier bool numbers. More...
     
    typedef vec< 2, double, lowp > lowp_dvec2
     2 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 3, double, lowp > lowp_dvec3
     3 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 4, double, lowp > lowp_dvec4
     4 components vector of low double-qualifier floating-point numbers. More...
     
    typedef vec< 2, int, lowp > lowp_ivec2
     2 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 3, int, lowp > lowp_ivec3
     3 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 4, int, lowp > lowp_ivec4
     4 components vector of low qualifier signed integer numbers. More...
     
    typedef vec< 2, unsigned int, lowp > lowp_uvec2
     2 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, lowp > lowp_uvec3
     3 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, lowp > lowp_uvec4
     4 components vector of low qualifier unsigned integer numbers. More...
     
    typedef vec< 2, float, lowp > lowp_vec2
     2 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 3, float, lowp > lowp_vec3
     3 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 4, float, lowp > lowp_vec4
     4 components vector of low single-qualifier floating-point numbers. More...
     
    typedef vec< 2, bool, mediump > mediump_bvec2
     2 components vector of medium qualifier bool numbers. More...
     
    typedef vec< 3, bool, mediump > mediump_bvec3
     3 components vector of medium qualifier bool numbers. More...
     
    typedef vec< 4, bool, mediump > mediump_bvec4
     4 components vector of medium qualifier bool numbers. More...
     
    typedef vec< 2, double, mediump > mediump_dvec2
     2 components vector of medium double-qualifier floating-point numbers. More...
     
    typedef vec< 3, double, mediump > mediump_dvec3
     3 components vector of medium double-qualifier floating-point numbers. More...
     
    typedef vec< 4, double, mediump > mediump_dvec4
     4 components vector of medium double-qualifier floating-point numbers. More...
     
    typedef vec< 2, int, mediump > mediump_ivec2
     2 components vector of medium qualifier signed integer numbers. More...
     
    typedef vec< 3, int, mediump > mediump_ivec3
     3 components vector of medium qualifier signed integer numbers. More...
     
    typedef vec< 4, int, mediump > mediump_ivec4
     4 components vector of medium qualifier signed integer numbers. More...
     
    typedef vec< 2, unsigned int, mediump > mediump_uvec2
     2 components vector of medium qualifier unsigned integer numbers. More...
     
    typedef vec< 3, unsigned int, mediump > mediump_uvec3
     3 components vector of medium qualifier unsigned integer numbers. More...
     
    typedef vec< 4, unsigned int, mediump > mediump_uvec4
     4 components vector of medium qualifier unsigned integer numbers. More...
     
    typedef vec< 2, float, mediump > mediump_vec2
     2 components vector of medium single-qualifier floating-point numbers. More...
     
    typedef vec< 3, float, mediump > mediump_vec3
     3 components vector of medium single-qualifier floating-point numbers. More...
     
    typedef vec< 4, float, mediump > mediump_vec4
     4 components vector of medium single-qualifier floating-point numbers. More...
     
    +

    Detailed Description

    +

    Vector types with precision qualifiers which may result in various precision in term of ULPs.

    +

    GLSL allows defining qualifiers for particular variables. With OpenGL's GLSL, these qualifiers have no effect; they are there for compatibility, with OpenGL ES's GLSL, these qualifiers do have an effect.

    +

    C++ has no language equivalent to qualifier qualifiers. So GLM provides the next-best thing: a number of typedefs that use a particular qualifier.

    +

    None of these types make any guarantees about the actual qualifier used.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef vec< 2, bool, highp > highp_bvec2
    +
    + +

    2 components vector of high qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_bool2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, bool, highp > highp_bvec3
    +
    + +

    3 components vector of high qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_bool3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, bool, highp > highp_bvec4
    +
    + +

    4 components vector of high qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_bool4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, highp > highp_dvec2
    +
    + +

    2 components vector of high double-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_double2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, highp > highp_dvec3
    +
    + +

    3 components vector of high double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 17 of file vector_double3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, highp > highp_dvec4
    +
    + +

    4 components vector of high double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 18 of file vector_double4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, highp > highp_ivec2
    +
    + +

    2 components vector of high qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_int2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, highp > highp_ivec3
    +
    + +

    3 components vector of high qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_int3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, highp > highp_ivec4
    +
    + +

    4 components vector of high qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_int4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, highp > highp_uvec2
    +
    + +

    2 components vector of high qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_uint2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, highp > highp_uvec3
    +
    + +

    3 components vector of high qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_uint3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, highp > highp_uvec4
    +
    + +

    4 components vector of high qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_uint4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, highp > highp_vec2
    +
    + +

    2 components vector of high single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_float2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, highp > highp_vec3
    +
    + +

    3 components vector of high single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_float3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, highp > highp_vec4
    +
    + +

    4 components vector of high single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file vector_float4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, bool, lowp > lowp_bvec2
    +
    + +

    2 components vector of low qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_bool2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, bool, lowp > lowp_bvec3
    +
    + +

    3 components vector of low qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_bool3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, bool, lowp > lowp_bvec4
    +
    + +

    4 components vector of low qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_bool4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, lowp > lowp_dvec2
    +
    + +

    2 components vector of low double-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_double2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, lowp > lowp_dvec3
    +
    + +

    3 components vector of low double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 31 of file vector_double3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, lowp > lowp_dvec4
    +
    + +

    4 components vector of low double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 32 of file vector_double4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, lowp > lowp_ivec2
    +
    + +

    2 components vector of low qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_int2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, lowp > lowp_ivec3
    +
    + +

    3 components vector of low qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_int3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, lowp > lowp_ivec4
    +
    + +

    4 components vector of low qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_int4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, lowp > lowp_uvec2
    +
    + +

    2 components vector of low qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_uint2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, lowp > lowp_uvec3
    +
    + +

    3 components vector of low qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_uint3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, lowp > lowp_uvec4
    +
    + +

    4 components vector of low qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_uint4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, lowp > lowp_vec2
    +
    + +

    2 components vector of low single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_float2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, lowp > lowp_vec3
    +
    + +

    3 components vector of low single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_float3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, lowp > lowp_vec4
    +
    + +

    4 components vector of low single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file vector_float4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, bool, mediump > mediump_bvec2
    +
    + +

    2 components vector of medium qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_bool2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, bool, mediump > mediump_bvec3
    +
    + +

    3 components vector of medium qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_bool3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, bool, mediump > mediump_bvec4
    +
    + +

    4 components vector of medium qualifier bool numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_bool4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, mediump > mediump_dvec2
    +
    + +

    2 components vector of medium double-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_double2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, mediump > mediump_dvec3
    +
    + +

    3 components vector of medium double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 24 of file vector_double3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, mediump > mediump_dvec4
    +
    + +

    4 components vector of medium double-qualifier floating-point numbers.

    +

    There is no guarantee on the actual qualifier.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 25 of file vector_double4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, mediump > mediump_ivec2
    +
    + +

    2 components vector of medium qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_int2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, mediump > mediump_ivec3
    +
    + +

    3 components vector of medium qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_int3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, mediump > mediump_ivec4
    +
    + +

    4 components vector of medium qualifier signed integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_int4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, mediump > mediump_uvec2
    +
    + +

    2 components vector of medium qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_uint2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, mediump > mediump_uvec3
    +
    + +

    3 components vector of medium qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_uint3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, mediump > mediump_uvec4
    +
    + +

    4 components vector of medium qualifier unsigned integer numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_uint4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, mediump > mediump_vec2
    +
    + +

    2 components vector of medium single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_float2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, mediump > mediump_vec3
    +
    + +

    3 components vector of medium single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_float3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, mediump > mediump_vec4
    +
    + +

    4 components vector of medium single-qualifier floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.5 Vectors
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file vector_float4_precision.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00283.html b/external/glm-0.9.9.8/doc/api/a00283.html new file mode 100644 index 0000000..1783211 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00283.html @@ -0,0 +1,563 @@ + + + + + + +0.9.9 API documentation: Matrix types + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Matrix types
    +
    +
    + +

    Matrix types of with C columns and R rows where C and R are values between 2 to 4 included. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, double, defaultp > dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 2, 2, double, defaultp > dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 2, 3, double, defaultp > dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 2, 4, double, defaultp > dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 3, 3, double, defaultp > dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 3, 2, double, defaultp > dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 3, 3, double, defaultp > dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 3, 4, double, defaultp > dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 4, 4, double, defaultp > dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 4, 2, double, defaultp > dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 4, 3, double, defaultp > dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 4, 4, double, defaultp > dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers. More...
     
    typedef mat< 2, 2, float, defaultp > mat2
     2 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 2, 2, float, defaultp > mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 2, 3, float, defaultp > mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 2, 4, float, defaultp > mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 3, 3, float, defaultp > mat3
     3 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 3, 3, float, defaultp > mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 3, 4, float, defaultp > mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 4, 2, float, defaultp > mat4x2
     4 columns of 2 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 4, 3, float, defaultp > mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 4, 4, float, defaultp > mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    typedef mat< 4, 4, float, defaultp > mat4
     4 columns of 4 components matrix of single-precision floating-point numbers. More...
     
    +

    Detailed Description

    +

    Matrix types of with C columns and R rows where C and R are values between 2 to 4 included.

    +

    These types have exhaustive sets of operators.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, defaultp > dmat2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_double2x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, double, defaultp > dmat2x2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double2x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, double, defaultp > dmat2x3
    +
    + +

    2 columns of 3 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double2x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, double, defaultp > dmat2x4
    +
    + +

    2 columns of 4 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double2x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, defaultp > dmat3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_double3x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, double, defaultp > dmat3x2
    +
    + +

    3 columns of 2 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double3x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, double, defaultp > dmat3x3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double3x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, double, defaultp > dmat3x4
    +
    + +

    3 columns of 4 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double3x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, defaultp > dmat4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_double4x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, double, defaultp > dmat4x2
    +
    + +

    4 columns of 2 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double4x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, double, defaultp > dmat4x3
    +
    + +

    4 columns of 3 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double4x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, double, defaultp > dmat4x4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_double4x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > mat2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_float2x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > mat2x2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float2x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, defaultp > mat2x3
    +
    + +

    2 columns of 3 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float2x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, defaultp > mat2x4
    +
    + +

    2 columns of 4 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float2x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > mat3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_float3x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > mat3x3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float3x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, defaultp > mat3x4
    +
    + +

    3 columns of 4 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float3x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > mat4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 20 of file matrix_float4x4.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, defaultp > mat4x2
    +
    + +

    4 columns of 2 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float4x2.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, defaultp > mat4x3
    +
    + +

    4 columns of 3 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float4x3.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > mat4x4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    + +

    Definition at line 15 of file matrix_float4x4.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00284.html b/external/glm-0.9.9.8/doc/api/a00284.html new file mode 100644 index 0000000..e84ed1c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00284.html @@ -0,0 +1,1689 @@ + + + + + + +0.9.9 API documentation: Matrix types with precision qualifiers + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Matrix types with precision qualifiers
    +
    +
    + +

    Matrix types with precision qualifiers which may result in various precision in term of ULPs. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, double, highp > highp_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, highp > highp_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, double, highp > highp_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, double, highp > highp_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, highp > highp_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, double, highp > highp_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, highp > highp_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, double, highp > highp_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, highp > highp_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, double, highp > highp_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, double, highp > highp_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, highp > highp_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, highp > highp_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, highp > highp_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, float, highp > highp_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, float, highp > highp_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, highp > highp_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, float, highp > highp_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, highp > highp_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, float, highp > highp_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, highp > highp_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, float, highp > highp_mat4x2
     4 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, float, highp > highp_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, highp > highp_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, lowp > lowp_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, lowp > lowp_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, double, lowp > lowp_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, double, lowp > lowp_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, lowp > lowp_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, double, lowp > lowp_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, lowp > lowp_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, double, lowp > lowp_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, lowp > lowp_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, double, lowp > lowp_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, double, lowp > lowp_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, lowp > lowp_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, lowp > lowp_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, lowp > lowp_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, float, lowp > lowp_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, float, lowp > lowp_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, lowp > lowp_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, float, lowp > lowp_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, lowp > lowp_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, float, lowp > lowp_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, lowp > lowp_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, float, lowp > lowp_mat4x2
     4 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, float, lowp > lowp_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, lowp > lowp_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, mediump > mediump_dmat2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, double, mediump > mediump_dmat2x2
     2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, double, mediump > mediump_dmat2x3
     2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, double, mediump > mediump_dmat2x4
     2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, mediump > mediump_dmat3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, double, mediump > mediump_dmat3x2
     3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, double, mediump > mediump_dmat3x3
     3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, double, mediump > mediump_dmat3x4
     3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, mediump > mediump_dmat4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, double, mediump > mediump_dmat4x2
     4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, double, mediump > mediump_dmat4x3
     4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, double, mediump > mediump_dmat4x4
     4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, mediump > mediump_mat2
     2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 2, float, mediump > mediump_mat2x2
     2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 3, float, mediump > mediump_mat2x3
     2 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 2, 4, float, mediump > mediump_mat2x4
     2 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, mediump > mediump_mat3
     3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 2, float, mediump > mediump_mat3x2
     3 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 3, float, mediump > mediump_mat3x3
     3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 3, 4, float, mediump > mediump_mat3x4
     3 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, mediump > mediump_mat4
     4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 2, float, mediump > mediump_mat4x2
     4 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 3, float, mediump > mediump_mat4x3
     4 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    typedef mat< 4, 4, float, mediump > mediump_mat4x4
     4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs. More...
     
    +

    Detailed Description

    +

    Matrix types with precision qualifiers which may result in various precision in term of ULPs.

    +

    GLSL allows defining qualifiers for particular variables. With OpenGL's GLSL, these qualifiers have no effect; they are there for compatibility, with OpenGL ES's GLSL, these qualifiers do have an effect.

    +

    C++ has no language equivalent to qualifier qualifiers. So GLM provides the next-best thing: a number of typedefs that use a particular qualifier.

    +

    None of these types make any guarantees about the actual qualifier used.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, highp > highp_dmat2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, double, highp > highp_dmat2x2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, double, highp > highp_dmat2x3
    +
    + +

    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, double, highp > highp_dmat2x4
    +
    + +

    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, highp > highp_dmat3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, double, highp > highp_dmat3x2
    +
    + +

    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, double, highp > highp_dmat3x3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, double, highp > highp_dmat3x4
    +
    + +

    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, highp > highp_dmat4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, double, highp > highp_dmat4x2
    +
    + +

    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, double, highp > highp_dmat4x3
    +
    + +

    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_double4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, double, highp > highp_dmat4x4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, highp > highp_mat2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, highp > highp_mat2x2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, highp > highp_mat2x3
    +
    + +

    2 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, highp > highp_mat2x4
    +
    + +

    2 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, highp > highp_mat3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, highp > highp_mat3x2
    +
    + +

    3 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, highp > highp_mat3x3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, highp > highp_mat3x4
    +
    + +

    3 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, highp > highp_mat4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, highp > highp_mat4x2
    +
    + +

    4 columns of 2 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, highp > highp_mat4x3
    +
    + +

    4 columns of 3 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 28 of file matrix_float4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, highp > highp_mat4x4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using high precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 46 of file matrix_float4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, lowp > lowp_dmat2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, double, lowp > lowp_dmat2x2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, double, lowp > lowp_dmat2x3
    +
    + +

    2 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, double, lowp > lowp_dmat2x4
    +
    + +

    2 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, lowp > lowp_dmat3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, double, lowp > lowp_dmat3x2
    +
    + +

    3 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, double, lowp > lowp_dmat3x3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, double, lowp > lowp_dmat3x4
    +
    + +

    3 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, lowp > lowp_dmat4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, double, lowp > lowp_dmat4x2
    +
    + +

    4 columns of 2 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, double, lowp > lowp_dmat4x3
    +
    + +

    4 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_double4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, double, lowp > lowp_dmat4x4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, lowp > lowp_mat2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, lowp > lowp_mat2x2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, lowp > lowp_mat2x3
    +
    + +

    2 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, lowp > lowp_mat2x4
    +
    + +

    2 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, lowp > lowp_mat3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, lowp > lowp_mat3x2
    +
    + +

    3 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, lowp > lowp_mat3x3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, lowp > lowp_mat3x4
    +
    + +

    3 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, lowp > lowp_mat4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, lowp > lowp_mat4x2
    +
    + +

    4 columns of 2 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, lowp > lowp_mat4x3
    +
    + +

    4 columns of 3 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 16 of file matrix_float4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, lowp > lowp_mat4x4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using low precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 34 of file matrix_float4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, mediump > mediump_dmat2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, double, mediump > mediump_dmat2x2
    +
    + +

    2 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_double2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, double, mediump > mediump_dmat2x3
    +
    + +

    2 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, double, mediump > mediump_dmat2x4
    +
    + +

    2 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, mediump > mediump_dmat3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, double, mediump > mediump_dmat3x2
    +
    + +

    3 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, double, mediump > mediump_dmat3x3
    +
    + +

    3 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_double3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, double, mediump > mediump_dmat3x4
    +
    + +

    3 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, mediump > mediump_dmat4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, double, mediump > mediump_dmat4x2
    +
    + +

    4 columns of 2 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, double, mediump > mediump_dmat4x3
    +
    + +

    4 columns of 3 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_double4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, double, mediump > mediump_dmat4x4
    +
    + +

    4 columns of 4 components matrix of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_double4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, mediump > mediump_mat2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, mediump > mediump_mat2x2
    +
    + +

    2 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_float2x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, mediump > mediump_mat2x3
    +
    + +

    2 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float2x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, mediump > mediump_mat2x4
    +
    + +

    2 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float2x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, mediump > mediump_mat3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, mediump > mediump_mat3x2
    +
    + +

    3 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float3x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, mediump > mediump_mat3x3
    +
    + +

    3 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_float3x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, mediump > mediump_mat3x4
    +
    + +

    3 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float3x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, mediump > mediump_mat4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float4x4_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, mediump > mediump_mat4x2
    +
    + +

    4 columns of 2 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float4x2_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, mediump > mediump_mat4x3
    +
    + +

    4 columns of 3 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 22 of file matrix_float4x3_precision.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, mediump > mediump_mat4x4
    +
    + +

    4 columns of 4 components matrix of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.

    +
    See also
    GLSL 4.20.8 specification, section 4.1.6 Matrices
    +
    +GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier
    + +

    Definition at line 40 of file matrix_float4x4_precision.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00285.html b/external/glm-0.9.9.8/doc/api/a00285.html new file mode 100644 index 0000000..af79a14 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00285.html @@ -0,0 +1,211 @@ + + + + + + +0.9.9 API documentation: Stable extensions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Stable extensions
    +
    +
    + +

    Additional features not specified by GLSL specification. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Modules

     GLM_EXT_matrix_clip_space
     Defines functions that generate clip space transformation matrices.
     
     GLM_EXT_matrix_common
     Defines functions for common matrix operations.
     
     GLM_EXT_matrix_projection
     Functions that generate common projection transformation matrices.
     
     GLM_EXT_matrix_relational
     Exposes comparison functions for matrix types that take a user defined epsilon values.
     
     GLM_EXT_matrix_transform
     Defines functions that generate common transformation matrices.
     
     GLM_EXT_quaternion_common
     Provides common functions for quaternion types.
     
     GLM_EXT_quaternion_double
     Exposes double-precision floating point quaternion type.
     
     GLM_EXT_quaternion_double_precision
     Exposes double-precision floating point quaternion type with various precision in term of ULPs.
     
     GLM_EXT_quaternion_exponential
     Provides exponential functions for quaternion types.
     
     GLM_EXT_quaternion_float
     Exposes single-precision floating point quaternion type.
     
     GLM_EXT_quaternion_float_precision
     Exposes single-precision floating point quaternion type with various precision in term of ULPs.
     
     GLM_EXT_quaternion_geometric
     Provides geometric functions for quaternion types.
     
     GLM_EXT_quaternion_relational
     Exposes comparison functions for quaternion types that take a user defined epsilon values.
     
     GLM_EXT_quaternion_transform
     Provides transformation functions for quaternion types.
     
     GLM_EXT_quaternion_trigonometric
     Provides trigonometric functions for quaternion types.
     
     GLM_EXT_scalar_common
     Exposes min and max functions for 3 to 4 scalar parameters.
     
     GLM_EXT_scalar_constants
     Provides a list of constants and precomputed useful values.
     
     GLM_EXT_scalar_int_sized
     Exposes sized signed integer scalar types.
     
     GLM_EXT_scalar_integer
     Include <glm/ext/scalar_integer.hpp> to use the features of this extension.
     
     GLM_EXT_scalar_relational
     Exposes comparison functions for scalar types that take a user defined epsilon values.
     
     GLM_EXT_scalar_uint_sized
     Exposes sized unsigned integer scalar types.
     
     GLM_EXT_scalar_ulp
     Allow the measurement of the accuracy of a function against a reference implementation.
     
     GLM_EXT_vector_bool1
     Exposes bvec1 vector type.
     
     GLM_EXT_vector_bool1_precision
     Exposes highp_bvec1, mediump_bvec1 and lowp_bvec1 types.
     
     GLM_EXT_vector_common
     Exposes min and max functions for 3 to 4 vector parameters.
     
     GLM_EXT_vector_double1
     Exposes double-precision floating point vector type with one component.
     
     GLM_EXT_vector_double1_precision
     Exposes highp_dvec1, mediump_dvec1 and lowp_dvec1 types.
     
     GLM_EXT_vector_float1
     Exposes single-precision floating point vector type with one component.
     
     GLM_EXT_vector_float1_precision
     Exposes highp_vec1, mediump_vec1 and lowp_vec1 types.
     
     GLM_EXT_vector_int1
     Exposes ivec1 vector type.
     
     GLM_EXT_vector_int1_precision
     Exposes highp_ivec1, mediump_ivec1 and lowp_ivec1 types.
     
     GLM_EXT_vector_integer
     Include <glm/ext/vector_integer.hpp> to use the features of this extension.
     
     GLM_EXT_vector_relational
     Exposes comparison functions for vector types that take a user defined epsilon values.
     
     GLM_EXT_vector_uint1
     Exposes uvec1 vector type.
     
     GLM_EXT_vector_uint1_precision
     Exposes highp_uvec1, mediump_uvec1 and lowp_uvec1 types.
     
     GLM_EXT_vector_ulp
     Allow the measurement of the accuracy of a function against a reference implementation.
     
    +

    Detailed Description

    +

    Additional features not specified by GLSL specification.

    +

    EXT extensions are fully tested and documented.

    +

    Even if it's highly unrecommended, it's possible to include all the extensions at once by including <glm/ext.hpp>. Otherwise, each extension needs to be included a specific file.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00286.html b/external/glm-0.9.9.8/doc/api/a00286.html new file mode 100644 index 0000000..add382f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00286.html @@ -0,0 +1,163 @@ + + + + + + +0.9.9 API documentation: Recommended extensions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Recommended extensions
    +
    +
    + +

    Additional features not specified by GLSL specification. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Modules

     GLM_GTC_bitfield
     Include <glm/gtc/bitfield.hpp> to use the features of this extension.
     
     GLM_GTC_color_space
     Include <glm/gtc/color_space.hpp> to use the features of this extension.
     
     GLM_GTC_constants
     Include <glm/gtc/constants.hpp> to use the features of this extension.
     
     GLM_GTC_epsilon
     Include <glm/gtc/epsilon.hpp> to use the features of this extension.
     
     GLM_GTC_integer
     Include <glm/gtc/integer.hpp> to use the features of this extension.
     
     GLM_GTC_matrix_access
     Include <glm/gtc/matrix_access.hpp> to use the features of this extension.
     
     GLM_GTC_matrix_integer
     Include <glm/gtc/matrix_integer.hpp> to use the features of this extension.
     
     GLM_GTC_matrix_inverse
     Include <glm/gtc/matrix_integer.hpp> to use the features of this extension.
     
     GLM_GTC_matrix_transform
     Include <glm/gtc/matrix_transform.hpp> to use the features of this extension.
     
     GLM_GTC_noise
     Include <glm/gtc/noise.hpp> to use the features of this extension.
     
     GLM_GTC_packing
     Include <glm/gtc/packing.hpp> to use the features of this extension.
     
     GLM_GTC_quaternion
     Include <glm/gtc/quaternion.hpp> to use the features of this extension.
     
     GLM_GTC_random
     Include <glm/gtc/random.hpp> to use the features of this extension.
     
     GLM_GTC_reciprocal
     Include <glm/gtc/reciprocal.hpp> to use the features of this extension.
     
     GLM_GTC_round
     Include <glm/gtc/round.hpp> to use the features of this extension.
     
     GLM_GTC_type_aligned
     Include <glm/gtc/type_aligned.hpp> to use the features of this extension.
     
     GLM_GTC_type_precision
     Include <glm/gtc/type_precision.hpp> to use the features of this extension.
     
     GLM_GTC_type_ptr
     Include <glm/gtc/type_ptr.hpp> to use the features of this extension.
     
     GLM_GTC_ulp
     Include <glm/gtc/ulp.hpp> to use the features of this extension.
     
     GLM_GTC_vec1
     Include <glm/gtc/vec1.hpp> to use the features of this extension.
     
    +

    Detailed Description

    +

    Additional features not specified by GLSL specification.

    +

    GTC extensions aim to be stable with tests and documentation.

    +

    Even if it's highly unrecommended, it's possible to include all the extensions at once by including <glm/ext.hpp>. Otherwise, each extension needs to be included a specific file.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00287.html b/external/glm-0.9.9.8/doc/api/a00287.html new file mode 100644 index 0000000..840aab7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00287.html @@ -0,0 +1,289 @@ + + + + + + +0.9.9 API documentation: Experimental extensions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Experimental extensions
    +
    +
    + +

    Experimental features not specified by GLSL specification. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Modules

     GLM_GTX_associated_min_max
     Include <glm/gtx/associated_min_max.hpp> to use the features of this extension.
     
     GLM_GTX_bit
     Include <glm/gtx/bit.hpp> to use the features of this extension.
     
     GLM_GTX_closest_point
     Include <glm/gtx/closest_point.hpp> to use the features of this extension.
     
     GLM_GTX_color_encoding
     Include <glm/gtx/color_encoding.hpp> to use the features of this extension.
     
     GLM_GTX_color_space
     Include <glm/gtx/color_space.hpp> to use the features of this extension.
     
     GLM_GTX_color_space_YCoCg
     Include <glm/gtx/color_space_YCoCg.hpp> to use the features of this extension.
     
     GLM_GTX_common
     Include <glm/gtx/common.hpp> to use the features of this extension.
     
     GLM_GTX_compatibility
     Include <glm/gtx/compatibility.hpp> to use the features of this extension.
     
     GLM_GTX_component_wise
     Include <glm/gtx/component_wise.hpp> to use the features of this extension.
     
     GLM_GTX_dual_quaternion
     Include <glm/gtx/dual_quaternion.hpp> to use the features of this extension.
     
     GLM_GTX_easing
     Include <glm/gtx/easing.hpp> to use the features of this extension.
     
     GLM_GTX_euler_angles
     Include <glm/gtx/euler_angles.hpp> to use the features of this extension.
     
     GLM_GTX_extend
     Include <glm/gtx/extend.hpp> to use the features of this extension.
     
     GLM_GTX_extented_min_max
     Include <glm/gtx/extented_min_max.hpp> to use the features of this extension.
     
     GLM_GTX_exterior_product
     Include <glm/gtx/exterior_product.hpp> to use the features of this extension.
     
     GLM_GTX_fast_exponential
     Include <glm/gtx/fast_exponential.hpp> to use the features of this extension.
     
     GLM_GTX_fast_square_root
     Include <glm/gtx/fast_square_root.hpp> to use the features of this extension.
     
     GLM_GTX_fast_trigonometry
     Include <glm/gtx/fast_trigonometry.hpp> to use the features of this extension.
     
     GLM_GTX_functions
     Include <glm/gtx/functions.hpp> to use the features of this extension.
     
     GLM_GTX_gradient_paint
     Include <glm/gtx/gradient_paint.hpp> to use the features of this extension.
     
     GLM_GTX_handed_coordinate_space
     Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension.
     
     GLM_GTX_hash
     Include <glm/gtx/hash.hpp> to use the features of this extension.
     
     GLM_GTX_integer
     Include <glm/gtx/integer.hpp> to use the features of this extension.
     
     GLM_GTX_intersect
     Include <glm/gtx/intersect.hpp> to use the features of this extension.
     
     GLM_GTX_io
     Include <glm/gtx/io.hpp> to use the features of this extension.
     
     GLM_GTX_log_base
     Include <glm/gtx/log_base.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_cross_product
     Include <glm/gtx/matrix_cross_product.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_decompose
     Include <glm/gtx/matrix_decompose.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_factorisation
     Include <glm/gtx/matrix_factorisation.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_interpolation
     Include <glm/gtx/matrix_interpolation.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_major_storage
     Include <glm/gtx/matrix_major_storage.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_operation
     Include <glm/gtx/matrix_operation.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_query
     Include <glm/gtx/matrix_query.hpp> to use the features of this extension.
     
     GLM_GTX_matrix_transform_2d
     Include <glm/gtx/matrix_transform_2d.hpp> to use the features of this extension.
     
     GLM_GTX_mixed_producte
     Include <glm/gtx/mixed_product.hpp> to use the features of this extension.
     
     GLM_GTX_norm
     Include <glm/gtx/norm.hpp> to use the features of this extension.
     
     GLM_GTX_normal
     Include <glm/gtx/normal.hpp> to use the features of this extension.
     
     GLM_GTX_normalize_dot
     Include <glm/gtx/normalized_dot.hpp> to use the features of this extension.
     
     GLM_GTX_number_precision
     Include <glm/gtx/number_precision.hpp> to use the features of this extension.
     
     GLM_GTX_optimum_pow
     Include <glm/gtx/optimum_pow.hpp> to use the features of this extension.
     
     GLM_GTX_orthonormalize
     Include <glm/gtx/orthonormalize.hpp> to use the features of this extension.
     
     GLM_GTX_perpendicular
     Include <glm/gtx/perpendicular.hpp> to use the features of this extension.
     
     GLM_GTX_polar_coordinates
     Include <glm/gtx/polar_coordinates.hpp> to use the features of this extension.
     
     GLM_GTX_projection
     Include <glm/gtx/projection.hpp> to use the features of this extension.
     
     GLM_GTX_quaternion
     Include <glm/gtx/quaternion.hpp> to use the features of this extension.
     
     GLM_GTX_range
     Include <glm/gtx/range.hpp> to use the features of this extension.
     
     GLM_GTX_raw_data
     Include <glm/gtx/raw_data.hpp> to use the features of this extension.
     
     GLM_GTX_rotate_normalized_axis
     Include <glm/gtx/rotate_normalized_axis.hpp> to use the features of this extension.
     
     GLM_GTX_rotate_vector
     Include <glm/gtx/rotate_vector.hpp> to use the features of this extension.
     
     GLM_GTX_scalar_relational
     Include <glm/gtx/scalar_relational.hpp> to use the features of this extension.
     
     GLM_GTX_spline
     Include <glm/gtx/spline.hpp> to use the features of this extension.
     
     GLM_GTX_std_based_type
     Include <glm/gtx/std_based_type.hpp> to use the features of this extension.
     
     GLM_GTX_string_cast
     Include <glm/gtx/string_cast.hpp> to use the features of this extension.
     
     GLM_GTX_texture
     Include <glm/gtx/texture.hpp> to use the features of this extension.
     
     GLM_GTX_transform
     Include <glm/gtx/transform.hpp> to use the features of this extension.
     
     GLM_GTX_transform2
     Include <glm/gtx/transform2.hpp> to use the features of this extension.
     
     GLM_GTX_type_aligned
     Include <glm/gtx/type_aligned.hpp> to use the features of this extension.
     
     GLM_GTX_type_trait
     Include <glm/gtx/type_trait.hpp> to use the features of this extension.
     
     GLM_GTX_vec_swizzle
     Include <glm/gtx/vec_swizzle.hpp> to use the features of this extension.
     
     GLM_GTX_vector_angle
     Include <glm/gtx/vector_angle.hpp> to use the features of this extension.
     
     GLM_GTX_vector_query
     Include <glm/gtx/vector_query.hpp> to use the features of this extension.
     
     GLM_GTX_wrap
     Include <glm/gtx/wrap.hpp> to use the features of this extension.
     
    +

    Detailed Description

    +

    Experimental features not specified by GLSL specification.

    +

    Experimental extensions are useful functions and types, but the development of their API and functionality is not necessarily stable. They can change substantially between versions. Backwards compatibility is not much of an issue for them.

    +

    Even if it's highly unrecommended, it's possible to include all the extensions at once by including <glm/ext.hpp>. Otherwise, each extension needs to be included a specific file.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00288.html b/external/glm-0.9.9.8/doc/api/a00288.html new file mode 100644 index 0000000..4b76a00 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00288.html @@ -0,0 +1,1228 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_bitfield + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_bitfield
    +
    +
    + +

    Include <glm/gtc/bitfield.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL glm::u8vec2 bitfieldDeinterleave (glm::uint16 x)
     Deinterleaves the bits of x. More...
     
    GLM_FUNC_DECL glm::u16vec2 bitfieldDeinterleave (glm::uint32 x)
     Deinterleaves the bits of x. More...
     
    GLM_FUNC_DECL glm::u32vec2 bitfieldDeinterleave (glm::uint64 x)
     Deinterleaves the bits of x. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldFillOne (genIUType Value, int FirstBit, int BitCount)
     Set to 1 a range of bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillOne (vec< L, T, Q > const &Value, int FirstBit, int BitCount)
     Set to 1 a range of bits. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldFillZero (genIUType Value, int FirstBit, int BitCount)
     Set to 0 a range of bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldFillZero (vec< L, T, Q > const &Value, int FirstBit, int BitCount)
     Set to 0 a range of bits. More...
     
    GLM_FUNC_DECL int16 bitfieldInterleave (int8 x, int8 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint16 bitfieldInterleave (uint8 x, uint8 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint16 bitfieldInterleave (u8vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int16 x, int16 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint16 x, uint16 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (u16vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (u32vec2 const &v)
     Interleaves the bits of x and y. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y, int32 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y, uint32 z)
     Interleaves the bits of x, y and z. More...
     
    GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z, int8 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z, int16 w)
     Interleaves the bits of x, y, z and w. More...
     
    GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w)
     Interleaves the bits of x, y, z and w. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldRotateLeft (genIUType In, int Shift)
     Rotate all bits to the left. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft (vec< L, T, Q > const &In, int Shift)
     Rotate all bits to the left. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType bitfieldRotateRight (genIUType In, int Shift)
     Rotate all bits to the right. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateRight (vec< L, T, Q > const &In, int Shift)
     Rotate all bits to the right. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType mask (genIUType Bits)
     Build a mask of 'count' bits. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > mask (vec< L, T, Q > const &v)
     Build a mask of 'count' bits. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/bitfield.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL glm::u8vec2 glm::bitfieldDeinterleave (glm::uint16 x)
    +
    + +

    Deinterleaves the bits of x.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL glm::u16vec2 glm::bitfieldDeinterleave (glm::uint32 x)
    +
    + +

    Deinterleaves the bits of x.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL glm::u32vec2 glm::bitfieldDeinterleave (glm::uint64 x)
    +
    + +

    Deinterleaves the bits of x.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::bitfieldFillOne (genIUType Value,
    int FirstBit,
    int BitCount 
    )
    +
    + +

    Set to 1 a range of bits.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldFillOne (vec< L, T, Q > const & Value,
    int FirstBit,
    int BitCount 
    )
    +
    + +

    Set to 1 a range of bits.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned and unsigned integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::bitfieldFillZero (genIUType Value,
    int FirstBit,
    int BitCount 
    )
    +
    + +

    Set to 0 a range of bits.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldFillZero (vec< L, T, Q > const & Value,
    int FirstBit,
    int BitCount 
    )
    +
    + +

    Set to 0 a range of bits.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned and unsigned integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int16 glm::bitfieldInterleave (int8 x,
    int8 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::bitfieldInterleave (uint8 x,
    uint8 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::bitfieldInterleave (u8vec2 const & v)
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of v.x followed by the first bit of v.y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int32 glm::bitfieldInterleave (int16 x,
    int16 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::bitfieldInterleave (uint16 x,
    uint16 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::bitfieldInterleave (u16vec2 const & v)
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of v.x followed by the first bit of v.y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int64 glm::bitfieldInterleave (int32 x,
    int32 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::bitfieldInterleave (uint32 x,
    uint32 y 
    )
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of x followed by the first bit of y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::bitfieldInterleave (u32vec2 const & v)
    +
    + +

    Interleaves the bits of x and y.

    +

    The first bit is the first bit of v.x followed by the first bit of v.y. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int32 glm::bitfieldInterleave (int8 x,
    int8 y,
    int8 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::bitfieldInterleave (uint8 x,
    uint8 y,
    uint8 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int64 glm::bitfieldInterleave (int16 x,
    int16 y,
    int16 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::bitfieldInterleave (uint16 x,
    uint16 y,
    uint16 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int64 glm::bitfieldInterleave (int32 x,
    int32 y,
    int32 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::bitfieldInterleave (uint32 x,
    uint32 y,
    uint32 z 
    )
    +
    + +

    Interleaves the bits of x, y and z.

    +

    The first bit is the first bit of x followed by the first bit of y and the first bit of z. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int32 glm::bitfieldInterleave (int8 x,
    int8 y,
    int8 z,
    int8 w 
    )
    +
    + +

    Interleaves the bits of x, y, z and w.

    +

    The first bit is the first bit of x followed by the first bit of y, the first bit of z and finally the first bit of w. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::bitfieldInterleave (uint8 x,
    uint8 y,
    uint8 z,
    uint8 w 
    )
    +
    + +

    Interleaves the bits of x, y, z and w.

    +

    The first bit is the first bit of x followed by the first bit of y, the first bit of z and finally the first bit of w. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int64 glm::bitfieldInterleave (int16 x,
    int16 y,
    int16 z,
    int16 w 
    )
    +
    + +

    Interleaves the bits of x, y, z and w.

    +

    The first bit is the first bit of x followed by the first bit of y, the first bit of z and finally the first bit of w. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::bitfieldInterleave (uint16 x,
    uint16 y,
    uint16 z,
    uint16 w 
    )
    +
    + +

    Interleaves the bits of x, y, z and w.

    +

    The first bit is the first bit of x followed by the first bit of y, the first bit of z and finally the first bit of w. The other bits are interleaved following the previous sequence.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::bitfieldRotateLeft (genIUType In,
    int Shift 
    )
    +
    + +

    Rotate all bits to the left.

    +

    All the bits dropped in the left side are inserted back on the right side.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldRotateLeft (vec< L, T, Q > const & In,
    int Shift 
    )
    +
    + +

    Rotate all bits to the left.

    +

    All the bits dropped in the left side are inserted back on the right side.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned and unsigned integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::bitfieldRotateRight (genIUType In,
    int Shift 
    )
    +
    + +

    Rotate all bits to the right.

    +

    All the bits dropped in the right side are inserted back on the left side.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldRotateRight (vec< L, T, Q > const & In,
    int Shift 
    )
    +
    + +

    Rotate all bits to the right.

    +

    All the bits dropped in the right side are inserted back on the left side.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned and unsigned integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::mask (genIUType Bits)
    +
    + +

    Build a mask of 'count' bits.

    +
    See also
    GLM_GTC_bitfield
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::mask (vec< L, T, Q > const & v)
    +
    + +

    Build a mask of 'count' bits.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TSigned and unsigned integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_bitfield
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00289.html b/external/glm-0.9.9.8/doc/api/a00289.html new file mode 100644 index 0000000..1d68515 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00289.html @@ -0,0 +1,187 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_color_space + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_color_space
    +
    +
    + +

    Include <glm/gtc/color_space.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear)
     Convert a linear color to sRGB color using a standard gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertLinearToSRGB (vec< L, T, Q > const &ColorLinear, T Gamma)
     Convert a linear color to sRGB color using a custom gamma correction. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB)
     Convert a sRGB color to linear color using a standard gamma correction. More...
     
    +template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > convertSRGBToLinear (vec< L, T, Q > const &ColorSRGB, T Gamma)
     Convert a sRGB color to linear color using a custom gamma correction.
     
    +

    Detailed Description

    +

    Include <glm/gtc/color_space.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::convertLinearToSRGB (vec< L, T, Q > const & ColorLinear)
    +
    + +

    Convert a linear color to sRGB color using a standard gamma correction.

    +

    IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::convertLinearToSRGB (vec< L, T, Q > const & ColorLinear,
    Gamma 
    )
    +
    + +

    Convert a linear color to sRGB color using a custom gamma correction.

    +

    IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::convertSRGBToLinear (vec< L, T, Q > const & ColorSRGB)
    +
    + +

    Convert a sRGB color to linear color using a standard gamma correction.

    +

    IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00290.html b/external/glm-0.9.9.8/doc/api/a00290.html new file mode 100644 index 0000000..bb29fe3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00290.html @@ -0,0 +1,697 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_constants + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_constants
    +
    +
    + +

    Include <glm/gtc/constants.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType e ()
     Return e constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType euler ()
     Return Euler's constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi ()
     Return 4 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio ()
     Return the golden ratio constant. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi ()
     Return pi / 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two ()
     Return ln(ln(2)). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten ()
     Return ln(10). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two ()
     Return ln(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one ()
     Return 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi ()
     Return 1 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two ()
     Return 1 / sqrt(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi ()
     Return 1 / (pi * 2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi ()
     Return pi / 4. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_five ()
     Return sqrt(5). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi ()
     Return sqrt(pi / 2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four ()
     Return sqrt(ln(4)). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi ()
     Return square root of pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_three ()
     Return sqrt(3). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two ()
     Return sqrt(2). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi ()
     Return sqrt(2 * pi). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType third ()
     Return 1 / 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi ()
     Return pi / 2 * 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi ()
     Return 2 / pi. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi ()
     Return 2 / sqrt(pi). More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi ()
     Return pi * 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds ()
     Return 2 / 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL GLM_CONSTEXPR genType zero ()
     Return 0. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/constants.hpp> to use the features of this extension.

    +

    Provide a list of constants and precomputed useful values.

    +

    Function Documentation

    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::e ()
    +
    + +

    Return e constant.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::euler ()
    +
    + +

    Return Euler's constant.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::four_over_pi ()
    +
    + +

    Return 4 / pi.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::golden_ratio ()
    +
    + +

    Return the golden ratio constant.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::half_pi ()
    +
    + +

    Return pi / 2.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::ln_ln_two ()
    +
    + +

    Return ln(ln(2)).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::ln_ten ()
    +
    + +

    Return ln(10).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::ln_two ()
    +
    + +

    Return ln(2).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::one ()
    +
    + +

    Return 1.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::one_over_pi ()
    +
    + +

    Return 1 / pi.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::one_over_root_two ()
    +
    + +

    Return 1 / sqrt(2).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::one_over_two_pi ()
    +
    + +

    Return 1 / (pi * 2).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::quarter_pi ()
    +
    + +

    Return pi / 4.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_five ()
    +
    + +

    Return sqrt(5).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_half_pi ()
    +
    + +

    Return sqrt(pi / 2).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_ln_four ()
    +
    + +

    Return sqrt(ln(4)).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_pi ()
    +
    + +

    Return square root of pi.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_three ()
    +
    + +

    Return sqrt(3).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_two ()
    +
    + +

    Return sqrt(2).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::root_two_pi ()
    +
    + +

    Return sqrt(2 * pi).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::third ()
    +
    + +

    Return 1 / 3.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::three_over_two_pi ()
    +
    + +

    Return pi / 2 * 3.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::two_over_pi ()
    +
    + +

    Return 2 / pi.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::two_over_root_pi ()
    +
    + +

    Return 2 / sqrt(pi).

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::two_pi ()
    +
    + +

    Return pi * 2.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::two_thirds ()
    +
    + +

    Return 2 / 3.

    +
    See also
    GLM_GTC_constants
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR genType glm::zero ()
    +
    + +

    Return 0.

    +
    See also
    GLM_GTC_constants
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00291.html b/external/glm-0.9.9.8/doc/api/a00291.html new file mode 100644 index 0000000..d53cd82 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00291.html @@ -0,0 +1,263 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_epsilon + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_epsilon
    +
    +
    + +

    Include <glm/gtc/epsilon.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > epsilonEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool epsilonEqual (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > epsilonNotEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)
     Returns the component-wise comparison of |x - y| < epsilon. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool epsilonNotEqual (genType const &x, genType const &y, genType const &epsilon)
     Returns the component-wise comparison of |x - y| >= epsilon. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/epsilon.hpp> to use the features of this extension.

    +

    Comparison functions for a user defined epsilon values.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::epsilonEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    T const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::epsilonEqual (genType const & x,
    genType const & y,
    genType const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is satisfied.

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::epsilonNotEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y,
    T const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| < epsilon.

    +

    True if this expression is not satisfied.

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::epsilonNotEqual (genType const & x,
    genType const & y,
    genType const & epsilon 
    )
    +
    + +

    Returns the component-wise comparison of |x - y| >= epsilon.

    +

    True if this expression is not satisfied.

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00292.html b/external/glm-0.9.9.8/doc/api/a00292.html new file mode 100644 index 0000000..7a75114 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00292.html @@ -0,0 +1,202 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_integer + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_integer
    +
    +
    + +

    Include <glm/gtc/integer.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > iround (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType log2 (genIUType x)
     Returns the log2 of x for integer values. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > uround (vec< L, T, Q > const &x)
     Returns a value equal to the nearest integer to x. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/integer.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::iround (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer to x.

    +

    The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest.

    +
    Parameters
    + + +
    xThe values of the argument must be greater or equal to zero.
    +
    +
    +
    Template Parameters
    + + +
    Tfloating point scalar types.
    +
    +
    +
    See also
    GLSL round man page
    +
    +GLM_GTC_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::log2 (genIUType x)
    +
    + +

    Returns the log2 of x for integer values.

    +

    Usefull to compute mipmap count from the texture size.

    See also
    GLM_GTC_integer
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, uint, Q> glm::uround (vec< L, T, Q > const & x)
    +
    + +

    Returns a value equal to the nearest integer to x.

    +

    The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest.

    +
    Parameters
    + + +
    xThe values of the argument must be greater or equal to zero.
    +
    +
    +
    Template Parameters
    + + +
    Tfloating point scalar types.
    +
    +
    +
    See also
    GLSL round man page
    +
    +GLM_GTC_integer
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00293.html b/external/glm-0.9.9.8/doc/api/a00293.html new file mode 100644 index 0000000..8ba0fbb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00293.html @@ -0,0 +1,247 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_matrix_access + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_matrix_access
    +
    +
    + +

    Include <glm/gtc/matrix_access.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType::col_type column (genType const &m, length_t index)
     Get a specific column of a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType column (genType const &m, length_t index, typename genType::col_type const &x)
     Set a specific column to a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::row_type row (genType const &m, length_t index)
     Get a specific row of a matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType row (genType const &m, length_t index, typename genType::row_type const &x)
     Set a specific row to a matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/matrix_access.hpp> to use the features of this extension.

    +

    Defines functions to access rows or columns of a matrix easily.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType::col_type glm::column (genType const & m,
    length_t index 
    )
    +
    + +

    Get a specific column of a matrix.

    +
    See also
    GLM_GTC_matrix_access
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::column (genType const & m,
    length_t index,
    typename genType::col_type const & x 
    )
    +
    + +

    Set a specific column to a matrix.

    +
    See also
    GLM_GTC_matrix_access
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType::row_type glm::row (genType const & m,
    length_t index 
    )
    +
    + +

    Get a specific row of a matrix.

    +
    See also
    GLM_GTC_matrix_access
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::row (genType const & m,
    length_t index,
    typename genType::row_type const & x 
    )
    +
    + +

    Set a specific row to a matrix.

    +
    See also
    GLM_GTC_matrix_access
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00294.html b/external/glm-0.9.9.8/doc/api/a00294.html new file mode 100644 index 0000000..3a30fb2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00294.html @@ -0,0 +1,2023 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_matrix_integer + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_matrix_integer
    +
    +
    + +

    Include <glm/gtc/matrix_integer.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef mat< 2, 2, int, highp > highp_imat2
     High-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, highp > highp_imat2x2
     High-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, highp > highp_imat2x3
     High-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, highp > highp_imat2x4
     High-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, highp > highp_imat3
     High-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, highp > highp_imat3x2
     High-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, highp > highp_imat3x3
     High-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, highp > highp_imat3x4
     High-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, highp > highp_imat4
     High-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, highp > highp_imat4x2
     High-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, highp > highp_imat4x3
     High-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, highp > highp_imat4x4
     High-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, highp > highp_umat2
     High-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, highp > highp_umat2x2
     High-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, highp > highp_umat2x3
     High-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, highp > highp_umat2x4
     High-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, highp > highp_umat3
     High-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, highp > highp_umat3x2
     High-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, highp > highp_umat3x3
     High-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, highp > highp_umat3x4
     High-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, highp > highp_umat4
     High-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, highp > highp_umat4x2
     High-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, highp > highp_umat4x3
     High-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, highp > highp_umat4x4
     High-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mediump_imat2 imat2
     Signed integer 2x2 matrix. More...
     
    typedef mediump_imat2x2 imat2x2
     Signed integer 2x2 matrix. More...
     
    typedef mediump_imat2x3 imat2x3
     Signed integer 2x3 matrix. More...
     
    typedef mediump_imat2x4 imat2x4
     Signed integer 2x4 matrix. More...
     
    typedef mediump_imat3 imat3
     Signed integer 3x3 matrix. More...
     
    typedef mediump_imat3x2 imat3x2
     Signed integer 3x2 matrix. More...
     
    typedef mediump_imat3x3 imat3x3
     Signed integer 3x3 matrix. More...
     
    typedef mediump_imat3x4 imat3x4
     Signed integer 3x4 matrix. More...
     
    typedef mediump_imat4 imat4
     Signed integer 4x4 matrix. More...
     
    typedef mediump_imat4x2 imat4x2
     Signed integer 4x2 matrix. More...
     
    typedef mediump_imat4x3 imat4x3
     Signed integer 4x3 matrix. More...
     
    typedef mediump_imat4x4 imat4x4
     Signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, int, lowp > lowp_imat2
     Low-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, lowp > lowp_imat2x2
     Low-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, lowp > lowp_imat2x3
     Low-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, lowp > lowp_imat2x4
     Low-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, lowp > lowp_imat3
     Low-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, lowp > lowp_imat3x2
     Low-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, lowp > lowp_imat3x3
     Low-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, lowp > lowp_imat3x4
     Low-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, lowp > lowp_imat4
     Low-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, lowp > lowp_imat4x2
     Low-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, lowp > lowp_imat4x3
     Low-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, lowp > lowp_imat4x4
     Low-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, lowp > lowp_umat2
     Low-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, lowp > lowp_umat2x2
     Low-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, lowp > lowp_umat2x3
     Low-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, lowp > lowp_umat2x4
     Low-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, lowp > lowp_umat3
     Low-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, lowp > lowp_umat3x2
     Low-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, lowp > lowp_umat3x3
     Low-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, lowp > lowp_umat3x4
     Low-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, lowp > lowp_umat4
     Low-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, lowp > lowp_umat4x2
     Low-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, lowp > lowp_umat4x3
     Low-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, lowp > lowp_umat4x4
     Low-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 2, 2, int, mediump > mediump_imat2
     Medium-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 2, int, mediump > mediump_imat2x2
     Medium-qualifier signed integer 2x2 matrix. More...
     
    typedef mat< 2, 3, int, mediump > mediump_imat2x3
     Medium-qualifier signed integer 2x3 matrix. More...
     
    typedef mat< 2, 4, int, mediump > mediump_imat2x4
     Medium-qualifier signed integer 2x4 matrix. More...
     
    typedef mat< 3, 3, int, mediump > mediump_imat3
     Medium-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 2, int, mediump > mediump_imat3x2
     Medium-qualifier signed integer 3x2 matrix. More...
     
    typedef mat< 3, 3, int, mediump > mediump_imat3x3
     Medium-qualifier signed integer 3x3 matrix. More...
     
    typedef mat< 3, 4, int, mediump > mediump_imat3x4
     Medium-qualifier signed integer 3x4 matrix. More...
     
    typedef mat< 4, 4, int, mediump > mediump_imat4
     Medium-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 4, 2, int, mediump > mediump_imat4x2
     Medium-qualifier signed integer 4x2 matrix. More...
     
    typedef mat< 4, 3, int, mediump > mediump_imat4x3
     Medium-qualifier signed integer 4x3 matrix. More...
     
    typedef mat< 4, 4, int, mediump > mediump_imat4x4
     Medium-qualifier signed integer 4x4 matrix. More...
     
    typedef mat< 2, 2, uint, mediump > mediump_umat2
     Medium-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 2, uint, mediump > mediump_umat2x2
     Medium-qualifier unsigned integer 2x2 matrix. More...
     
    typedef mat< 2, 3, uint, mediump > mediump_umat2x3
     Medium-qualifier unsigned integer 2x3 matrix. More...
     
    typedef mat< 2, 4, uint, mediump > mediump_umat2x4
     Medium-qualifier unsigned integer 2x4 matrix. More...
     
    typedef mat< 3, 3, uint, mediump > mediump_umat3
     Medium-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 2, uint, mediump > mediump_umat3x2
     Medium-qualifier unsigned integer 3x2 matrix. More...
     
    typedef mat< 3, 3, uint, mediump > mediump_umat3x3
     Medium-qualifier unsigned integer 3x3 matrix. More...
     
    typedef mat< 3, 4, uint, mediump > mediump_umat3x4
     Medium-qualifier unsigned integer 3x4 matrix. More...
     
    typedef mat< 4, 4, uint, mediump > mediump_umat4
     Medium-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mat< 4, 2, uint, mediump > mediump_umat4x2
     Medium-qualifier unsigned integer 4x2 matrix. More...
     
    typedef mat< 4, 3, uint, mediump > mediump_umat4x3
     Medium-qualifier unsigned integer 4x3 matrix. More...
     
    typedef mat< 4, 4, uint, mediump > mediump_umat4x4
     Medium-qualifier unsigned integer 4x4 matrix. More...
     
    typedef mediump_umat2 umat2
     Unsigned integer 2x2 matrix. More...
     
    typedef mediump_umat2x2 umat2x2
     Unsigned integer 2x2 matrix. More...
     
    typedef mediump_umat2x3 umat2x3
     Unsigned integer 2x3 matrix. More...
     
    typedef mediump_umat2x4 umat2x4
     Unsigned integer 2x4 matrix. More...
     
    typedef mediump_umat3 umat3
     Unsigned integer 3x3 matrix. More...
     
    typedef mediump_umat3x2 umat3x2
     Unsigned integer 3x2 matrix. More...
     
    typedef mediump_umat3x3 umat3x3
     Unsigned integer 3x3 matrix. More...
     
    typedef mediump_umat3x4 umat3x4
     Unsigned integer 3x4 matrix. More...
     
    typedef mediump_umat4 umat4
     Unsigned integer 4x4 matrix. More...
     
    typedef mediump_umat4x2 umat4x2
     Unsigned integer 4x2 matrix. More...
     
    typedef mediump_umat4x3 umat4x3
     Unsigned integer 4x3 matrix. More...
     
    typedef mediump_umat4x4 umat4x4
     Unsigned integer 4x4 matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/matrix_integer.hpp> to use the features of this extension.

    +

    Defines a number of matrices with integer types.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef mat<2, 2, int, highp> highp_imat2
    +
    + +

    High-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 37 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, int, highp> highp_imat2x2
    +
    + +

    High-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 49 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, int, highp> highp_imat2x3
    +
    + +

    High-qualifier signed integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 53 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, int, highp> highp_imat2x4
    +
    + +

    High-qualifier signed integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 57 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, highp> highp_imat3
    +
    + +

    High-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 41 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, int, highp> highp_imat3x2
    +
    + +

    High-qualifier signed integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 61 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, highp> highp_imat3x3
    +
    + +

    High-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 65 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, int, highp> highp_imat3x4
    +
    + +

    High-qualifier signed integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 69 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, highp> highp_imat4
    +
    + +

    High-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 45 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, int, highp> highp_imat4x2
    +
    + +

    High-qualifier signed integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 73 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, int, highp> highp_imat4x3
    +
    + +

    High-qualifier signed integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 77 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, highp> highp_imat4x4
    +
    + +

    High-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 81 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, highp> highp_umat2
    +
    + +

    High-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 186 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, highp> highp_umat2x2
    +
    + +

    High-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 198 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, uint, highp> highp_umat2x3
    +
    + +

    High-qualifier unsigned integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 202 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, uint, highp> highp_umat2x4
    +
    + +

    High-qualifier unsigned integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 206 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, highp> highp_umat3
    +
    + +

    High-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 190 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, uint, highp> highp_umat3x2
    +
    + +

    High-qualifier unsigned integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 210 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, highp> highp_umat3x3
    +
    + +

    High-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 214 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, uint, highp> highp_umat3x4
    +
    + +

    High-qualifier unsigned integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 218 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, highp> highp_umat4
    +
    + +

    High-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 194 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, uint, highp> highp_umat4x2
    +
    + +

    High-qualifier unsigned integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 222 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, uint, highp> highp_umat4x3
    +
    + +

    High-qualifier unsigned integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 226 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, highp> highp_umat4x4
    +
    + +

    High-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 230 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat2 imat2
    +
    + +

    Signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 362 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat2x2 imat2x2
    +
    + +

    Signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 374 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat2x3 imat2x3
    +
    + +

    Signed integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 378 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat2x4 imat2x4
    +
    + +

    Signed integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 382 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat3 imat3
    +
    + +

    Signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 366 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat3x2 imat3x2
    +
    + +

    Signed integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 386 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat3x3 imat3x3
    +
    + +

    Signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 390 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat3x4 imat3x4
    +
    + +

    Signed integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 394 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat4 imat4
    +
    + +

    Signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 370 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat4x2 imat4x2
    +
    + +

    Signed integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 398 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat4x3 imat4x3
    +
    + +

    Signed integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 402 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_imat4x4 imat4x4
    +
    + +

    Signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 406 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, int, lowp> lowp_imat2
    +
    + +

    Low-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 136 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, int, lowp> lowp_imat2x2
    +
    + +

    Low-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 149 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, int, lowp> lowp_imat2x3
    +
    + +

    Low-qualifier signed integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 153 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, int, lowp> lowp_imat2x4
    +
    + +

    Low-qualifier signed integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 157 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, lowp> lowp_imat3
    +
    + +

    Low-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 140 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, int, lowp> lowp_imat3x2
    +
    + +

    Low-qualifier signed integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 161 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, lowp> lowp_imat3x3
    +
    + +

    Low-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 165 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, int, lowp> lowp_imat3x4
    +
    + +

    Low-qualifier signed integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 169 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, lowp> lowp_imat4
    +
    + +

    Low-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 144 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, int, lowp> lowp_imat4x2
    +
    + +

    Low-qualifier signed integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 173 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, int, lowp> lowp_imat4x3
    +
    + +

    Low-qualifier signed integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 177 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, lowp> lowp_imat4x4
    +
    + +

    Low-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 181 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, lowp> lowp_umat2
    +
    + +

    Low-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 285 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, lowp> lowp_umat2x2
    +
    + +

    Low-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 298 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, uint, lowp> lowp_umat2x3
    +
    + +

    Low-qualifier unsigned integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 302 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, uint, lowp> lowp_umat2x4
    +
    + +

    Low-qualifier unsigned integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 306 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, lowp> lowp_umat3
    +
    + +

    Low-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 289 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, uint, lowp> lowp_umat3x2
    +
    + +

    Low-qualifier unsigned integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 310 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, lowp> lowp_umat3x3
    +
    + +

    Low-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 314 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, uint, lowp> lowp_umat3x4
    +
    + +

    Low-qualifier unsigned integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 318 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, lowp> lowp_umat4
    +
    + +

    Low-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 293 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, uint, lowp> lowp_umat4x2
    +
    + +

    Low-qualifier unsigned integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 322 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, uint, lowp> lowp_umat4x3
    +
    + +

    Low-qualifier unsigned integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 326 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, lowp> lowp_umat4x4
    +
    + +

    Low-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 330 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, int, mediump> mediump_imat2
    +
    + +

    Medium-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 86 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, int, mediump> mediump_imat2x2
    +
    + +

    Medium-qualifier signed integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 99 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, int, mediump> mediump_imat2x3
    +
    + +

    Medium-qualifier signed integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 103 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, int, mediump> mediump_imat2x4
    +
    + +

    Medium-qualifier signed integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 107 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, mediump> mediump_imat3
    +
    + +

    Medium-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 90 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, int, mediump> mediump_imat3x2
    +
    + +

    Medium-qualifier signed integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 111 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, int, mediump> mediump_imat3x3
    +
    + +

    Medium-qualifier signed integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 115 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, int, mediump> mediump_imat3x4
    +
    + +

    Medium-qualifier signed integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 119 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, mediump> mediump_imat4
    +
    + +

    Medium-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 94 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, int, mediump> mediump_imat4x2
    +
    + +

    Medium-qualifier signed integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 123 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, int, mediump> mediump_imat4x3
    +
    + +

    Medium-qualifier signed integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 127 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, int, mediump> mediump_imat4x4
    +
    + +

    Medium-qualifier signed integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 131 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, mediump> mediump_umat2
    +
    + +

    Medium-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 235 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 2, uint, mediump> mediump_umat2x2
    +
    + +

    Medium-qualifier unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 248 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 3, uint, mediump> mediump_umat2x3
    +
    + +

    Medium-qualifier unsigned integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 252 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<2, 4, uint, mediump> mediump_umat2x4
    +
    + +

    Medium-qualifier unsigned integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 256 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, mediump> mediump_umat3
    +
    + +

    Medium-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 239 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 2, uint, mediump> mediump_umat3x2
    +
    + +

    Medium-qualifier unsigned integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 260 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 3, uint, mediump> mediump_umat3x3
    +
    + +

    Medium-qualifier unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 264 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<3, 4, uint, mediump> mediump_umat3x4
    +
    + +

    Medium-qualifier unsigned integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 268 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, mediump> mediump_umat4
    +
    + +

    Medium-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 243 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 2, uint, mediump> mediump_umat4x2
    +
    + +

    Medium-qualifier unsigned integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 272 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 3, uint, mediump> mediump_umat4x3
    +
    + +

    Medium-qualifier unsigned integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 276 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat<4, 4, uint, mediump> mediump_umat4x4
    +
    + +

    Medium-qualifier unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 280 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat2 umat2
    +
    + +

    Unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 439 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat2x2 umat2x2
    +
    + +

    Unsigned integer 2x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 451 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat2x3 umat2x3
    +
    + +

    Unsigned integer 2x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 455 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat2x4 umat2x4
    +
    + +

    Unsigned integer 2x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 459 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat3 umat3
    +
    + +

    Unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 443 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat3x2 umat3x2
    +
    + +

    Unsigned integer 3x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 463 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat3x3 umat3x3
    +
    + +

    Unsigned integer 3x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 467 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat3x4 umat3x4
    +
    + +

    Unsigned integer 3x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 471 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat4 umat4
    +
    + +

    Unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 447 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat4x2 umat4x2
    +
    + +

    Unsigned integer 4x2 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 475 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat4x3 umat4x3
    +
    + +

    Unsigned integer 4x3 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 479 of file matrix_integer.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_umat4x4 umat4x4
    +
    + +

    Unsigned integer 4x4 matrix.

    +
    See also
    GLM_GTC_matrix_integer
    + +

    Definition at line 483 of file matrix_integer.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00295.html b/external/glm-0.9.9.8/doc/api/a00295.html new file mode 100644 index 0000000..756e66b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00295.html @@ -0,0 +1,173 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_matrix_inverse + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_matrix_inverse
    +
    +
    + +

    Include <glm/gtc/matrix_integer.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType affineInverse (genType const &m)
     Fast matrix inverse for affine matrix. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType inverseTranspose (genType const &m)
     Compute the inverse transpose of a matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/matrix_integer.hpp> to use the features of this extension.

    +

    Defines additional matrix inverting functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::affineInverse (genType const & m)
    +
    + +

    Fast matrix inverse for affine matrix.

    +
    Parameters
    + + +
    mInput matrix to invert.
    +
    +
    +
    Template Parameters
    + + +
    genTypeSquared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate.
    +
    +
    +
    See also
    GLM_GTC_matrix_inverse
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::inverseTranspose (genType const & m)
    +
    + +

    Compute the inverse transpose of a matrix.

    +
    Parameters
    + + +
    mInput matrix to invert transpose.
    +
    +
    +
    Template Parameters
    + + +
    genTypeSquared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate.
    +
    +
    +
    See also
    GLM_GTC_matrix_inverse
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00296.html b/external/glm-0.9.9.8/doc/api/a00296.html new file mode 100644 index 0000000..fde7638 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00296.html @@ -0,0 +1,96 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_matrix_transform + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_GTC_matrix_transform
    +
    +
    + +

    Include <glm/gtc/matrix_transform.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtc/matrix_transform.hpp> to use the features of this extension.

    +

    Defines functions that generate common transformation matrices.

    +

    The matrices generated by this extension use standard OpenGL fixed-function conventions. For example, the lookAt function generates a transform from world space into the specific eye space that the projective matrix functions (perspective, ortho, etc) are designed to expect. The OpenGL compatibility specifications defines the particular layout of this eye space.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00297.html b/external/glm-0.9.9.8/doc/api/a00297.html new file mode 100644 index 0000000..c35d20d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00297.html @@ -0,0 +1,182 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_noise + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtc/noise.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T perlin (vec< L, T, Q > const &p)
     Classic perlin noise. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T perlin (vec< L, T, Q > const &p, vec< L, T, Q > const &rep)
     Periodic perlin noise. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T simplex (vec< L, T, Q > const &p)
     Simplex noise. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/noise.hpp> to use the features of this extension.

    +

    Defines 2D, 3D and 4D procedural noise functions Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise": https://github.com/ashima/webgl-noise Following Stefan Gustavson's paper "Simplex noise demystified": http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::perlin (vec< L, T, Q > const & p)
    +
    + +

    Classic perlin noise.

    +
    See also
    GLM_GTC_noise
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::perlin (vec< L, T, Q > const & p,
    vec< L, T, Q > const & rep 
    )
    +
    + +

    Periodic perlin noise.

    +
    See also
    GLM_GTC_noise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::simplex (vec< L, T, Q > const & p)
    +
    + +

    Simplex noise.

    +
    See also
    GLM_GTC_noise
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00298.html b/external/glm-0.9.9.8/doc/api/a00298.html new file mode 100644 index 0000000..d799db7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00298.html @@ -0,0 +1,2034 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_packing + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_packing
    +
    +
    + +

    Include <glm/gtc/packing.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL uint32 packF2x11_1x10 (vec3 const &v)
     First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. More...
     
    GLM_FUNC_DECL uint32 packF3x9_E1x5 (vec3 const &v)
     First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint16, Q > packHalf (vec< L, float, Q > const &v)
     Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. More...
     
    GLM_FUNC_DECL uint16 packHalf1x16 (float v)
     Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 16-bit floating-point representation found in the OpenGL Specification, and then packing this 16-bit value into a 16-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packHalf4x16 (vec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these four 16-bit values into a 64-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint32 packI3x10_1x2 (ivec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component signed integer vector to the 10-10-10-2-bit signed integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL int packInt2x16 (i16vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int64 packInt2x32 (i32vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int16 packInt2x8 (i8vec2 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int64 packInt4x16 (i16vec4 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    GLM_FUNC_DECL int32 packInt4x8 (i8vec4 const &v)
     Convert each component from an integer vector into a packed integer. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > packRGBM (vec< 3, T, Q > const &rgb)
     Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. More...
     
    template<typename intType , length_t L, typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, intType, Q > packSnorm (vec< L, floatType, Q > const &v)
     Convert each component of the normalized floating-point vector into signed integer values. More...
     
    GLM_FUNC_DECL uint16 packSnorm1x16 (float v)
     First, converts the normalized floating-point value v into 16-bit integer value. More...
     
    GLM_FUNC_DECL uint8 packSnorm1x8 (float s)
     First, converts the normalized floating-point value v into 8-bit integer value. More...
     
    GLM_FUNC_DECL uint16 packSnorm2x8 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packSnorm3x10_1x2 (vec4 const &v)
     First, converts the first three components of the normalized floating-point value v into 10-bit signed integer values. More...
     
    GLM_FUNC_DECL uint64 packSnorm4x16 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 16-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packU3x10_1x2 (uvec4 const &v)
     Returns an unsigned integer obtained by converting the components of a four-component unsigned integer vector to the 10-10-10-2-bit unsigned integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint packUint2x16 (u16vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packUint2x32 (u32vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint16 packUint2x8 (u8vec2 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint64 packUint4x16 (u16vec4 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    GLM_FUNC_DECL uint32 packUint4x8 (u8vec4 const &v)
     Convert each component from an integer vector into a packed unsigned integer. More...
     
    template<typename uintType , length_t L, typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, uintType, Q > packUnorm (vec< L, floatType, Q > const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm1x16 (float v)
     First, converts the normalized floating-point value v into a 16-bit integer value. More...
     
    GLM_FUNC_DECL uint16 packUnorm1x5_1x6_1x5 (vec3 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint8 packUnorm1x8 (float v)
     First, converts the normalized floating-point value v into a 8-bit integer value. More...
     
    GLM_FUNC_DECL uint8 packUnorm2x3_1x2 (vec3 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint8 packUnorm2x4 (vec2 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm2x8 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8-bit integer values. More...
     
    GLM_FUNC_DECL uint32 packUnorm3x10_1x2 (vec4 const &v)
     First, converts the first three components of the normalized floating-point value v into 10-bit unsigned integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm3x5_1x1 (vec4 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL uint64 packUnorm4x16 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 16-bit integer values. More...
     
    GLM_FUNC_DECL uint16 packUnorm4x4 (vec4 const &v)
     Convert each component of the normalized floating-point vector into unsigned integer values. More...
     
    GLM_FUNC_DECL vec3 unpackF2x11_1x10 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . More...
     
    GLM_FUNC_DECL vec3 unpackF3x9_E1x5 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, float, Q > unpackHalf (vec< L, uint16, Q > const &p)
     Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL float unpackHalf1x16 (uint16 v)
     Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into a 16-bit value, interpreted as a 16-bit floating-point number according to the OpenGL Specification, and converting it to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL vec4 unpackHalf4x16 (uint64 p)
     Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigned integer into four 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL ivec4 unpackI3x10_1x2 (uint32 p)
     Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers. More...
     
    GLM_FUNC_DECL i16vec2 unpackInt2x16 (int p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i32vec2 unpackInt2x32 (int64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i8vec2 unpackInt2x8 (int16 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i16vec4 unpackInt4x16 (int64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL i8vec4 unpackInt4x8 (int32 p)
     Convert a packed integer into an integer vector. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > unpackRGBM (vec< 4, T, Q > const &rgbm)
     Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. More...
     
    template<typename floatType , length_t L, typename intType , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > unpackSnorm (vec< L, intType, Q > const &v)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackSnorm1x16 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers. More...
     
    GLM_FUNC_DECL float unpackSnorm1x8 (uint8 p)
     First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec2 unpackSnorm2x8 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm3x10_1x2 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm4x16 (uint64 p)
     First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL uvec4 unpackU3x10_1x2 (uint32 p)
     Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers. More...
     
    GLM_FUNC_DECL u16vec2 unpackUint2x16 (uint p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u32vec2 unpackUint2x32 (uint64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u8vec2 unpackUint2x8 (uint16 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u16vec4 unpackUint4x16 (uint64 p)
     Convert a packed integer into an integer vector. More...
     
    GLM_FUNC_DECL u8vec4 unpackUint4x8 (uint32 p)
     Convert a packed integer into an integer vector. More...
     
    template<typename floatType , length_t L, typename uintType , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > unpackUnorm (vec< L, uintType, Q > const &v)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackUnorm1x16 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec3 unpackUnorm1x5_1x6_1x5 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL float unpackUnorm1x8 (uint8 p)
     Convert a single 8-bit integer to a normalized floating-point value. More...
     
    GLM_FUNC_DECL vec3 unpackUnorm2x3_1x2 (uint8 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x4 (uint8 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x8 (uint16 p)
     First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm3x10_1x2 (uint32 p)
     First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm3x5_1x1 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x16 (uint64 p)
     First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x4 (uint16 p)
     Convert a packed integer to a normalized floating-point vector. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/packing.hpp> to use the features of this extension.

    +

    This extension provides a set of function to convert vertors to packed formats.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packF2x11_1x10 (vec3 const & v)
    +
    + +

    First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values.

    +

    Then, converts the third component of the normalized floating-point value v into a 10-bit signless floating-point value. Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The first vector component specifies the 11 least-significant bits of the result; the last component specifies the 10 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +vec3 unpackF2x11_1x10(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packF3x9_E1x5 (vec3 const & v)
    +
    + +

    First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values.

    +

    Then, converts the third component of the normalized floating-point value v into a 10-bit signless floating-point value. Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The first vector component specifies the 11 least-significant bits of the result; the last component specifies the 10 most-significant bits.

    +

    packF3x9_E1x5 allows encoding into RGBE / RGB9E5 format

    +
    See also
    GLM_GTC_packing
    +
    +vec3 unpackF3x9_E1x5(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, uint16, Q> glm::packHalf (vec< L, float, Q > const & v)
    +
    + +

    Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification.

    +

    The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, float, Q> unpackHalf(vec<L, uint16, Q> const& p)
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packHalf1x16 (float v)
    +
    + +

    Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 16-bit floating-point representation found in the OpenGL Specification, and then packing this 16-bit value into a 16-bit unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packHalf2x16(vec2 const& v)
    +
    +uint64 packHalf4x16(vec4 const& v)
    +
    +GLSL packHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::packHalf4x16 (vec4 const & v)
    +
    + +

    Returns an unsigned integer obtained by converting the components of a four-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these four 16-bit values into a 64-bit unsigned integer.

    +

    The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packHalf1x16(float const& v)
    +
    +uint32 packHalf2x16(vec2 const& v)
    +
    +GLSL packHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packI3x10_1x2 (ivec4 const & v)
    +
    + +

    Returns an unsigned integer obtained by converting the components of a four-component signed integer vector to the 10-10-10-2-bit signed integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer.

    +

    The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packI3x10_1x2(uvec4 const& v)
    +
    +uint32 packSnorm3x10_1x2(vec4 const& v)
    +
    +uint32 packUnorm3x10_1x2(vec4 const& v)
    +
    +ivec4 unpackI3x10_1x2(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::packInt2x16 (i16vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed integer.

    +
    See also
    GLM_GTC_packing
    +
    +i16vec2 unpackInt2x16(int p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int64 glm::packInt2x32 (i32vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed integer.

    +
    See also
    GLM_GTC_packing
    +
    +i32vec2 unpackInt2x32(int p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int16 glm::packInt2x8 (i8vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed integer.

    +
    See also
    GLM_GTC_packing
    +
    +i8vec2 unpackInt2x8(int16 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int64 glm::packInt4x16 (i16vec4 const & v)
    +
    + +

    Convert each component from an integer vector into a packed integer.

    +
    See also
    GLM_GTC_packing
    +
    +i16vec4 unpackInt4x16(int64 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int32 glm::packInt4x8 (i8vec4 const & v)
    +
    + +

    Convert each component from an integer vector into a packed integer.

    +
    See also
    GLM_GTC_packing
    +
    +i8vec4 unpackInt4x8(int32 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::packRGBM (vec< 3, T, Q > const & rgb)
    +
    + +

    Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification.

    +

    The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +vec<3, T, Q> unpackRGBM(vec<4, T, Q> const& p)
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, intType, Q> glm::packSnorm (vec< L, floatType, Q > const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into signed integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, floatType, Q> unpackSnorm(vec<L, intType, Q> const& p);
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packSnorm1x16 (float v)
    +
    + +

    First, converts the normalized floating-point value v into 16-bit integer value.

    +

    Then, the results are packed into the returned 16-bit unsigned integer.

    +

    The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 32767.0)

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packSnorm2x16(vec2 const& v)
    +
    +uint64 packSnorm4x16(vec4 const& v)
    +
    +GLSL packSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint8 glm::packSnorm1x8 (float s)
    +
    + +

    First, converts the normalized floating-point value v into 8-bit integer value.

    +

    Then, the results are packed into the returned 8-bit unsigned integer.

    +

    The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 127.0)

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packSnorm2x8(vec2 const& v)
    +
    +uint32 packSnorm4x8(vec4 const& v)
    +
    +GLSL packSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packSnorm2x8 (vec2 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8-bit integer values.

    +

    Then, the results are packed into the returned 16-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 127.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint8 packSnorm1x8(float const& v)
    +
    +uint32 packSnorm4x8(vec4 const& v)
    +
    +GLSL packSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packSnorm3x10_1x2 (vec4 const & v)
    +
    + +

    First, converts the first three components of the normalized floating-point value v into 10-bit signed integer values.

    +

    Then, converts the forth component of the normalized floating-point value v into 2-bit signed integer values. Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packSnorm3x10_1x2(xyz): round(clamp(c, -1, +1) * 511.0) packSnorm3x10_1x2(w): round(clamp(c, -1, +1) * 1.0)

    +

    The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +vec4 unpackSnorm3x10_1x2(uint32 const& p)
    +
    +uint32 packUnorm3x10_1x2(vec4 const& v)
    +
    +uint32 packU3x10_1x2(uvec4 const& v)
    +
    +uint32 packI3x10_1x2(ivec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::packSnorm4x16 (vec4 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 16-bit integer values.

    +

    Then, the results are packed into the returned 64-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 32767.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packSnorm1x16(float const& v)
    +
    +uint32 packSnorm2x16(vec2 const& v)
    +
    +GLSL packSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packU3x10_1x2 (uvec4 const & v)
    +
    + +

    Returns an unsigned integer obtained by converting the components of a four-component unsigned integer vector to the 10-10-10-2-bit unsigned integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer.

    +

    The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packI3x10_1x2(ivec4 const& v)
    +
    +uint32 packSnorm3x10_1x2(vec4 const& v)
    +
    +uint32 packUnorm3x10_1x2(vec4 const& v)
    +
    +ivec4 unpackU3x10_1x2(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packUint2x16 (u16vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +u16vec2 unpackUint2x16(uint p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::packUint2x32 (u32vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +u32vec2 unpackUint2x32(int p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUint2x8 (u8vec2 const & v)
    +
    + +

    Convert each component from an integer vector into a packed unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +u8vec2 unpackInt2x8(uint16 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::packUint4x16 (u16vec4 const & v)
    +
    + +

    Convert each component from an integer vector into a packed unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +u16vec4 unpackUint4x16(uint64 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packUint4x8 (u8vec4 const & v)
    +
    + +

    Convert each component from an integer vector into a packed unsigned integer.

    +
    See also
    GLM_GTC_packing
    +
    +u8vec4 unpackUint4x8(uint32 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, uintType, Q> glm::packUnorm (vec< L, floatType, Q > const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, floatType, Q> unpackUnorm(vec<L, intType, Q> const& p);
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUnorm1x16 (float v)
    +
    + +

    First, converts the normalized floating-point value v into a 16-bit integer value.

    +

    Then, the results are packed into the returned 16-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm1x16: round(clamp(c, 0, +1) * 65535.0)

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packSnorm1x16(float const& v)
    +
    +uint64 packSnorm4x16(vec4 const& v)
    +
    +GLSL packUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUnorm1x5_1x6_1x5 (vec3 const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec3 unpackUnorm1x5_1x6_1x5(uint16 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint8 glm::packUnorm1x8 (float v)
    +
    + +

    First, converts the normalized floating-point value v into a 8-bit integer value.

    +

    Then, the results are packed into the returned 8-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm1x8: round(clamp(c, 0, +1) * 255.0)

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packUnorm2x8(vec2 const& v)
    +
    +uint32 packUnorm4x8(vec4 const& v)
    +
    +GLSL packUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint8 glm::packUnorm2x3_1x2 (vec3 const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec3 unpackUnorm2x3_1x2(uint8 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint8 glm::packUnorm2x4 (vec2 const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackUnorm2x4(uint8 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUnorm2x8 (vec2 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8-bit integer values.

    +

    Then, the results are packed into the returned 16-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm2x8: round(clamp(c, 0, +1) * 255.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint8 packUnorm1x8(float const& v)
    +
    +uint32 packUnorm4x8(vec4 const& v)
    +
    +GLSL packUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint32 glm::packUnorm3x10_1x2 (vec4 const & v)
    +
    + +

    First, converts the first three components of the normalized floating-point value v into 10-bit unsigned integer values.

    +

    Then, converts the forth component of the normalized floating-point value v into 2-bit signed uninteger values. Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm3x10_1x2(xyz): round(clamp(c, 0, +1) * 1023.0) packUnorm3x10_1x2(w): round(clamp(c, 0, +1) * 3.0)

    +

    The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +vec4 unpackUnorm3x10_1x2(uint32 const& p)
    +
    +uint32 packUnorm3x10_1x2(vec4 const& v)
    +
    +uint32 packU3x10_1x2(uvec4 const& v)
    +
    +uint32 packI3x10_1x2(ivec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUnorm3x5_1x1 (vec4 const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec4 unpackUnorm3x5_1x1(uint16 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint64 glm::packUnorm4x16 (vec4 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 16-bit integer values.

    +

    Then, the results are packed into the returned 64-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm4x16: round(clamp(c, 0, +1) * 65535.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packUnorm1x16(float const& v)
    +
    +uint32 packUnorm2x16(vec2 const& v)
    +
    +GLSL packUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint16 glm::packUnorm4x4 (vec4 const & v)
    +
    + +

    Convert each component of the normalized floating-point vector into unsigned integer values.

    +
    See also
    GLM_GTC_packing
    +
    +vec4 unpackUnorm4x4(uint16 p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec3 glm::unpackF2x11_1x10 (uint32 p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value .

    +

    Then, each component is converted to a normalized floating-point value to generate the returned three-component vector.

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packF2x11_1x10(vec3 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec3 glm::unpackF3x9_E1x5 (uint32 p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value .

    +

    Then, each component is converted to a normalized floating-point value to generate the returned three-component vector.

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +

    unpackF3x9_E1x5 allows decoding RGBE / RGB9E5 data

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packF3x9_E1x5(vec3 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, float, Q> glm::unpackHalf (vec< L, uint16, Q > const & p)
    +
    + +

    Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values.

    +

    The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, uint16, Q> packHalf(vec<L, float, Q> const& v)
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::unpackHalf1x16 (uint16 v)
    +
    + +

    Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into a 16-bit value, interpreted as a 16-bit floating-point number according to the OpenGL Specification, and converting it to 32-bit floating-point values.

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackHalf2x16(uint32 const& v)
    +
    +vec4 unpackHalf4x16(uint64 const& v)
    +
    +GLSL unpackHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackHalf4x16 (uint64 p)
    +
    + +

    Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigned integer into four 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values.

    +

    The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.

    +
    See also
    GLM_GTC_packing
    +
    +float unpackHalf1x16(uint16 const& v)
    +
    +vec2 unpackHalf2x16(uint32 const& v)
    +
    +GLSL unpackHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL ivec4 glm::unpackI3x10_1x2 (uint32 p)
    +
    + +

    Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers.

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packU3x10_1x2(uvec4 const& v)
    +
    +vec4 unpackSnorm3x10_1x2(uint32 const& p);
    +
    +uvec4 unpackI3x10_1x2(uint32 const& p);
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL i16vec2 glm::unpackInt2x16 (int p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int packInt2x16(i16vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL i32vec2 glm::unpackInt2x32 (int64 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int packInt2x16(i32vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL i8vec2 glm::unpackInt2x8 (int16 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int16 packInt2x8(i8vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL i16vec4 glm::unpackInt4x16 (int64 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int64 packInt4x16(i16vec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL i8vec4 glm::unpackInt4x8 (int32 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int32 packInt2x8(i8vec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::unpackRGBM (vec< 4, T, Q > const & rgbm)
    +
    + +

    Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values.

    +

    The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.

    +
    See also
    GLM_GTC_packing
    +
    +vec<4, T, Q> packRGBM(vec<3, float, Q> const& v)
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, floatType, Q> glm::unpackSnorm (vec< L, intType, Q > const & v)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, intType, Q> packSnorm(vec<L, floatType, Q> const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::unpackSnorm1x16 (uint16 p)
    +
    + +

    First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned scalar.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x16: clamp(f / 32767.0, -1, +1)

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackSnorm2x16(uint32 p)
    +
    +vec4 unpackSnorm4x16(uint64 p)
    +
    +GLSL unpackSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::unpackSnorm1x8 (uint8 p)
    +
    + +

    First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers.

    +

    Then, the value is converted to a normalized floating-point value to generate the returned scalar.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x8: clamp(f / 127.0, -1, +1)

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackSnorm2x8(uint16 p)
    +
    +vec4 unpackSnorm4x8(uint32 p)
    +
    +GLSL unpackSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackSnorm2x8 (uint16 p)
    +
    + +

    First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm2x8: clamp(f / 127.0, -1, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +float unpackSnorm1x8(uint8 p)
    +
    +vec4 unpackSnorm4x8(uint32 p)
    +
    +GLSL unpackSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackSnorm3x10_1x2 (uint32 p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm3x10_1x2(xyz): clamp(f / 511.0, -1, +1) unpackSnorm3x10_1x2(w): clamp(f / 511.0, -1, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packSnorm3x10_1x2(vec4 const& v)
    +
    +vec4 unpackUnorm3x10_1x2(uint32 const& p))
    +
    +uvec4 unpackI3x10_1x2(uint32 const& p)
    +
    +uvec4 unpackU3x10_1x2(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackSnorm4x16 (uint64 p)
    +
    + +

    First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm4x16: clamp(f / 32767.0, -1, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +float unpackSnorm1x16(uint16 p)
    +
    +vec2 unpackSnorm2x16(uint32 p)
    +
    +GLSL unpackSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uvec4 glm::unpackU3x10_1x2 (uint32 p)
    +
    + +

    Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers.

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packU3x10_1x2(uvec4 const& v)
    +
    +vec4 unpackSnorm3x10_1x2(uint32 const& p);
    +
    +uvec4 unpackI3x10_1x2(uint32 const& p);
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL u16vec2 glm::unpackUint2x16 (uint p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint packUint2x16(u16vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL u32vec2 glm::unpackUint2x32 (uint64 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +int packUint2x16(u32vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL u8vec2 glm::unpackUint2x8 (uint16 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packInt2x8(u8vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL u16vec4 glm::unpackUint4x16 (uint64 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint64 packUint4x16(u16vec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL u8vec4 glm::unpackUint4x8 (uint32 p)
    +
    + +

    Convert a packed integer into an integer vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packUint4x8(u8vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, floatType, Q> glm::unpackUnorm (vec< L, uintType, Q > const & v)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +vec<L, intType, Q> packUnorm(vec<L, floatType, Q> const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::unpackUnorm1x16 (uint16 p)
    +
    + +

    First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers.

    +

    Then, the value is converted to a normalized floating-point value to generate the returned scalar.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm1x16: f / 65535.0

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackUnorm2x16(uint32 p)
    +
    +vec4 unpackUnorm4x16(uint64 p)
    +
    +GLSL unpackUnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec3 glm::unpackUnorm1x5_1x6_1x5 (uint16 p)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packUnorm1x5_1x6_1x5(vec3 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL float glm::unpackUnorm1x8 (uint8 p)
    +
    + +

    Convert a single 8-bit integer to a normalized floating-point value.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0

    +
    See also
    GLM_GTC_packing
    +
    +vec2 unpackUnorm2x8(uint16 p)
    +
    +vec4 unpackUnorm4x8(uint32 p)
    +
    +GLSL unpackUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec3 glm::unpackUnorm2x3_1x2 (uint8 p)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint8 packUnorm2x3_1x2(vec3 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackUnorm2x4 (uint8 p)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint8 packUnorm2x4(vec2 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackUnorm2x8 (uint16 p)
    +
    + +

    First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +float unpackUnorm1x8(uint8 v)
    +
    +vec4 unpackUnorm4x8(uint32 p)
    +
    +GLSL unpackUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackUnorm3x10_1x2 (uint32 p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm3x10_1x2(xyz): clamp(f / 1023.0, 0, +1) unpackSnorm3x10_1x2(w): clamp(f / 3.0, 0, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +uint32 packSnorm3x10_1x2(vec4 const& v)
    +
    +vec4 unpackInorm3x10_1x2(uint32 const& p))
    +
    +uvec4 unpackI3x10_1x2(uint32 const& p)
    +
    +uvec4 unpackU3x10_1x2(uint32 const& p)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackUnorm3x5_1x1 (uint16 p)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packUnorm3x5_1x1(vec4 const& v)
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackUnorm4x16 (uint64 p)
    +
    + +

    First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnormx4x16: f / 65535.0

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLM_GTC_packing
    +
    +float unpackUnorm1x16(uint16 p)
    +
    +vec2 unpackUnorm2x16(uint32 p)
    +
    +GLSL unpackUnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackUnorm4x4 (uint16 p)
    +
    + +

    Convert a packed integer to a normalized floating-point vector.

    +
    See also
    GLM_GTC_packing
    +
    +uint16 packUnorm4x4(vec4 const& v)
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00299.html b/external/glm-0.9.9.8/doc/api/a00299.html new file mode 100644 index 0000000..d8ef579 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00299.html @@ -0,0 +1,619 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_quaternion + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_quaternion
    +
    +
    + +

    Include <glm/gtc/quaternion.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > eulerAngles (qua< T, Q > const &x)
     Returns euler angles, pitch as x, yaw as y, roll as z. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThan (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x > y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > greaterThanEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x >= y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > lessThan (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison result of x < y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > lessThanEqual (qua< T, Q > const &x, qua< T, Q > const &y)
     Returns the component-wise comparison of result x <= y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > mat3_cast (qua< T, Q > const &x)
     Converts a quaternion to a 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > mat4_cast (qua< T, Q > const &x)
     Converts a quaternion to a 4 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T pitch (qua< T, Q > const &x)
     Returns pitch value of euler angles expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_cast (mat< 3, 3, T, Q > const &x)
     Converts a pure rotation 3 * 3 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_cast (mat< 4, 4, T, Q > const &x)
     Converts a pure rotation 4 * 4 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAt (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a look at quaternion based on the default handedness. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAtLH (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a left-handed look at quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quatLookAtRH (vec< 3, T, Q > const &direction, vec< 3, T, Q > const &up)
     Build a right-handed look at quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T roll (qua< T, Q > const &x)
     Returns roll value of euler angles expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T yaw (qua< T, Q > const &x)
     Returns yaw value of euler angles expressed in radians. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/quaternion.hpp> to use the features of this extension.

    +

    Defines a templated quaternion type and several quaternion operations.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::eulerAngles (qua< T, Q > const & x)
    +
    + +

    Returns euler angles, pitch as x, yaw as y, roll as z.

    +

    The result is expressed in radians.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::greaterThan (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x > y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_relational
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::greaterThanEqual (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x >= y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_relational
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::lessThan (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison result of x < y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_relational
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, bool, Q> glm::lessThanEqual (qua< T, Q > const & x,
    qua< T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x <= y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_quaternion_relational
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::mat3_cast (qua< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 3 * 3 matrix.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +

    Referenced by glm::toMat3().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::mat4_cast (qua< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 4 * 4 matrix.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +

    Referenced by glm::toMat4().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::pitch (qua< T, Q > const & x)
    +
    + +

    Returns pitch value of euler angles expressed in radians.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quat_cast (mat< 3, 3, T, Q > const & x)
    +
    + +

    Converts a pure rotation 3 * 3 matrix to a quaternion.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +

    Referenced by glm::toQuat().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quat_cast (mat< 4, 4, T, Q > const & x)
    +
    + +

    Converts a pure rotation 4 * 4 matrix to a quaternion.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quatLookAt (vec< 3, T, Q > const & direction,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a look at quaternion based on the default handedness.

    +
    Parameters
    + + + +
    directionDesired forward direction. Needs to be normalized.
    upUp vector, how the camera is oriented. Typically (0, 1, 0).
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quatLookAtLH (vec< 3, T, Q > const & direction,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a left-handed look at quaternion.

    +
    Parameters
    + + + +
    directionDesired forward direction onto which the +z-axis gets mapped. Needs to be normalized.
    upUp vector, how the camera is oriented. Typically (0, 1, 0).
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quatLookAtRH (vec< 3, T, Q > const & direction,
    vec< 3, T, Q > const & up 
    )
    +
    + +

    Build a right-handed look at quaternion.

    +
    Parameters
    + + + +
    directionDesired forward direction onto which the -z-axis gets mapped. Needs to be normalized.
    upUp vector, how the camera is oriented. Typically (0, 1, 0).
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::roll (qua< T, Q > const & x)
    +
    + +

    Returns roll value of euler angles expressed in radians.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::yaw (qua< T, Q > const & x)
    +
    + +

    Returns yaw value of euler angles expressed in radians.

    +
    Template Parameters
    + + +
    TFloating-point scalar types.
    +
    +
    +
    See also
    GLM_GTC_quaternion
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00300.html b/external/glm-0.9.9.8/doc/api/a00300.html new file mode 100644 index 0000000..6007f2b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00300.html @@ -0,0 +1,320 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_random + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtc/random.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > ballRand (T Radius)
     Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > circularRand (T Radius)
     Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > diskRand (T Radius)
     Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType gaussRand (genType Mean, genType Deviation)
     Generate random numbers in the interval [Min, Max], according a gaussian distribution. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType linearRand (genType Min, genType Max)
     Generate random numbers in the interval [Min, Max], according a linear distribution. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > linearRand (vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Generate random numbers in the interval [Min, Max], according a linear distribution. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > sphericalRand (T Radius)
     Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/random.hpp> to use the features of this extension.

    +

    Generate random number from various distribution methods.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, defaultp> glm::ballRand (Radius)
    +
    + +

    Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius.

    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, defaultp> glm::circularRand (Radius)
    +
    + +

    Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius.

    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, defaultp> glm::diskRand (Radius)
    +
    + +

    Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius.

    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::gaussRand (genType Mean,
    genType Deviation 
    )
    +
    + +

    Generate random numbers in the interval [Min, Max], according a gaussian distribution.

    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::linearRand (genType Min,
    genType Max 
    )
    +
    + +

    Generate random numbers in the interval [Min, Max], according a linear distribution.

    +
    Parameters
    + + + +
    MinMinimum value included in the sampling
    MaxMaximum value included in the sampling
    +
    +
    +
    Template Parameters
    + + +
    genTypeValue type. Currently supported: float or double scalars.
    +
    +
    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::linearRand (vec< L, T, Q > const & Min,
    vec< L, T, Q > const & Max 
    )
    +
    + +

    Generate random numbers in the interval [Min, Max], according a linear distribution.

    +
    Parameters
    + + + +
    MinMinimum value included in the sampling
    MaxMaximum value included in the sampling
    +
    +
    +
    Template Parameters
    + + +
    TValue type. Currently supported: float or double.
    +
    +
    +
    See also
    GLM_GTC_random
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, defaultp> glm::sphericalRand (Radius)
    +
    + +

    Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius.

    +
    See also
    GLM_GTC_random
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00301.html b/external/glm-0.9.9.8/doc/api/a00301.html new file mode 100644 index 0000000..355cef8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00301.html @@ -0,0 +1,460 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_reciprocal + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_reciprocal
    +
    +
    + +

    Include <glm/gtc/reciprocal.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType acot (genType x)
     Inverse cotangent function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acoth (genType x)
     Inverse cotangent hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acsc (genType x)
     Inverse cosecant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType acsch (genType x)
     Inverse cosecant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType asec (genType x)
     Inverse secant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType asech (genType x)
     Inverse secant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cot (genType angle)
     Cotangent function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType coth (genType angle)
     Cotangent hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType csc (genType angle)
     Cosecant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType csch (genType angle)
     Cosecant hyperbolic function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sec (genType angle)
     Secant function. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sech (genType angle)
     Secant hyperbolic function. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/reciprocal.hpp> to use the features of this extension.

    +

    Define secant, cosecant and cotangent functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::acot (genType x)
    +
    + +

    Inverse cotangent function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::acoth (genType x)
    +
    + +

    Inverse cotangent hyperbolic function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::acsc (genType x)
    +
    + +

    Inverse cosecant function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::acsch (genType x)
    +
    + +

    Inverse cosecant hyperbolic function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::asec (genType x)
    +
    + +

    Inverse secant function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::asech (genType x)
    +
    + +

    Inverse secant hyperbolic function.

    +
    Returns
    Return an angle expressed in radians.
    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::cot (genType angle)
    +
    + +

    Cotangent function.

    +

    adjacent / opposite or 1 / tan(x)

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::coth (genType angle)
    +
    + +

    Cotangent hyperbolic function.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::csc (genType angle)
    +
    + +

    Cosecant function.

    +

    hypotenuse / opposite or 1 / sin(x)

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::csch (genType angle)
    +
    + +

    Cosecant hyperbolic function.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::sec (genType angle)
    +
    + +

    Secant function.

    +

    hypotenuse / adjacent or 1 / cos(x)

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::sech (genType angle)
    +
    + +

    Secant hyperbolic function.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLM_GTC_reciprocal
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00302.html b/external/glm-0.9.9.8/doc/api/a00302.html new file mode 100644 index 0000000..ac85087 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00302.html @@ -0,0 +1,547 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_round + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtc/round.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType ceilMultiple (genType v, genType Multiple)
     Higher multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceilMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Higher multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType ceilPowerOfTwo (genIUType v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > ceilPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just higher the input value, round up to a power of two. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType floorMultiple (genType v, genType Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floorMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType floorPowerOfTwo (genIUType v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > floorPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is just lower the input value, round down to a power of two. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType roundMultiple (genType v, genType Multiple)
     Lower multiple number of Source. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
     Lower multiple number of Source. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType roundPowerOfTwo (genIUType v)
     Return the power of two number which value is the closet to the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > roundPowerOfTwo (vec< L, T, Q > const &v)
     Return the power of two number which value is the closet to the input value. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/round.hpp> to use the features of this extension.

    +

    Rounding value to specific boundings

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::ceilMultiple (genType v,
    genType Multiple 
    )
    +
    + +

    Higher multiple number of Source.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer scalar or vector types.
    +
    +
    +
    Parameters
    + + + +
    vSource value to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::ceilMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Higher multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::ceilPowerOfTwo (genIUType v)
    +
    + +

    Return the power of two number which value is just higher the input value, round up to a power of two.

    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::ceilPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return the power of two number which value is just higher the input value, round up to a power of two.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::floorMultiple (genType v,
    genType Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer scalar or vector types.
    +
    +
    +
    Parameters
    + + + +
    vSource value to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::floorMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::floorPowerOfTwo (genIUType v)
    +
    + +

    Return the power of two number which value is just lower the input value, round down to a power of two.

    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::floorPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return the power of two number which value is just lower the input value, round down to a power of two.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::roundMultiple (genType v,
    genType Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer scalar or vector types.
    +
    +
    +
    Parameters
    + + + +
    vSource value to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::roundMultiple (vec< L, T, Q > const & v,
    vec< L, T, Q > const & Multiple 
    )
    +
    + +

    Lower multiple number of Source.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    Parameters
    + + + +
    vSource values to which is applied the function
    MultipleMust be a null or positive value
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::roundPowerOfTwo (genIUType v)
    +
    + +

    Return the power of two number which value is the closet to the input value.

    +
    See also
    GLM_GTC_round
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::roundPowerOfTwo (vec< L, T, Q > const & v)
    +
    + +

    Return the power of two number which value is the closet to the input value.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_GTC_round
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00303.html b/external/glm-0.9.9.8/doc/api/a00303.html new file mode 100644 index 0000000..fb7bb62 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00303.html @@ -0,0 +1,1510 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_type_aligned + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_type_aligned
    +
    +
    + +

    Include <glm/gtc/type_aligned.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef aligned_highp_bvec1 aligned_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec2 aligned_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec3 aligned_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_bvec4 aligned_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef aligned_highp_dmat2 aligned_dmat2
     2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x2 aligned_dmat2x2
     2 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x3 aligned_dmat2x3
     2 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat2x4 aligned_dmat2x4
     2 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3 aligned_dmat3
     3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x2 aligned_dmat3x2
     3 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x3 aligned_dmat3x3
     3 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat3x4 aligned_dmat3x4
     3 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4 aligned_dmat4
     4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x2 aligned_dmat4x2
     4 by 2 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x3 aligned_dmat4x3
     4 by 3 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dmat4x4 aligned_dmat4x4
     4 by 4 matrix tightly aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec1 aligned_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec2 aligned_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec3 aligned_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef aligned_highp_dvec4 aligned_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers.
     
    +typedef vec< 1, bool, aligned_highp > aligned_highp_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_highp > aligned_highp_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_highp > aligned_highp_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_highp > aligned_highp_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_highp > aligned_highp_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_highp > aligned_highp_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_highp > aligned_highp_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_highp > aligned_highp_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_highp > aligned_highp_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_highp > aligned_highp_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_highp > aligned_highp_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_highp > aligned_highp_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_highp > aligned_highp_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_highp > aligned_highp_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_highp > aligned_highp_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_highp > aligned_highp_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_highp > aligned_highp_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_highp > aligned_highp_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_highp > aligned_highp_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_highp > aligned_highp_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_highp > aligned_highp_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_highp > aligned_highp_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_highp > aligned_highp_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_highp > aligned_highp_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_highp > aligned_highp_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_highp > aligned_highp_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_highp > aligned_highp_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_highp > aligned_highp_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_highp > aligned_highp_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_highp > aligned_highp_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_highp > aligned_highp_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_highp > aligned_highp_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_highp > aligned_highp_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_highp > aligned_highp_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_highp > aligned_highp_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_highp > aligned_highp_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_highp > aligned_highp_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_highp > aligned_highp_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_highp > aligned_highp_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_highp > aligned_highp_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_highp > aligned_highp_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_highp > aligned_highp_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_highp > aligned_highp_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_highp > aligned_highp_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_ivec1 aligned_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec2 aligned_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec3 aligned_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef aligned_highp_ivec4 aligned_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 1, bool, aligned_lowp > aligned_lowp_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_lowp > aligned_lowp_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_lowp > aligned_lowp_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_lowp > aligned_lowp_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_lowp > aligned_lowp_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_lowp > aligned_lowp_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_lowp > aligned_lowp_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_lowp > aligned_lowp_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_lowp > aligned_lowp_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_lowp > aligned_lowp_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_lowp > aligned_lowp_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_lowp > aligned_lowp_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_lowp > aligned_lowp_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_lowp > aligned_lowp_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_lowp > aligned_lowp_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_lowp > aligned_lowp_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_lowp > aligned_lowp_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_lowp > aligned_lowp_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_lowp > aligned_lowp_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_lowp > aligned_lowp_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_lowp > aligned_lowp_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_lowp > aligned_lowp_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_lowp > aligned_lowp_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_lowp > aligned_lowp_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_lowp > aligned_lowp_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_lowp > aligned_lowp_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_lowp > aligned_lowp_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_lowp > aligned_lowp_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_lowp > aligned_lowp_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_lowp > aligned_lowp_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_lowp > aligned_lowp_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_lowp > aligned_lowp_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_lowp > aligned_lowp_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_lowp > aligned_lowp_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_lowp > aligned_lowp_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_lowp > aligned_lowp_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_lowp > aligned_lowp_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_lowp > aligned_lowp_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_mat2 aligned_mat2
     2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x2 aligned_mat2x2
     2 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x3 aligned_mat2x3
     2 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat2x4 aligned_mat2x4
     2 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3 aligned_mat3
     3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x2 aligned_mat3x2
     3 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x3 aligned_mat3x3
     3 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat3x4 aligned_mat3x4
     3 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4 aligned_mat4
     4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x2 aligned_mat4x2
     4 by 2 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x3 aligned_mat4x3
     4 by 3 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_mat4x4 aligned_mat4x4
     4 by 4 matrix tightly aligned in memory of single-precision floating-point numbers.
     
    +typedef vec< 1, bool, aligned_mediump > aligned_mediump_bvec1
     1 component vector aligned in memory of bool values.
     
    +typedef vec< 2, bool, aligned_mediump > aligned_mediump_bvec2
     2 components vector aligned in memory of bool values.
     
    +typedef vec< 3, bool, aligned_mediump > aligned_mediump_bvec3
     3 components vector aligned in memory of bool values.
     
    +typedef vec< 4, bool, aligned_mediump > aligned_mediump_bvec4
     4 components vector aligned in memory of bool values.
     
    +typedef mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, aligned_mediump > aligned_mediump_dmat2x2
     2 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, aligned_mediump > aligned_mediump_dmat2x3
     2 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, aligned_mediump > aligned_mediump_dmat2x4
     2 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, aligned_mediump > aligned_mediump_dmat3x2
     3 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, aligned_mediump > aligned_mediump_dmat3x3
     3 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, aligned_mediump > aligned_mediump_dmat3x4
     3 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, aligned_mediump > aligned_mediump_dmat4x2
     4 by 2 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, aligned_mediump > aligned_mediump_dmat4x3
     4 by 3 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, aligned_mediump > aligned_mediump_dmat4x4
     4 by 4 matrix aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, aligned_mediump > aligned_mediump_dvec1
     1 component vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, aligned_mediump > aligned_mediump_dvec2
     2 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, aligned_mediump > aligned_mediump_dvec3
     3 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, aligned_mediump > aligned_mediump_dvec4
     4 components vector aligned in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, aligned_mediump > aligned_mediump_ivec1
     1 component vector aligned in memory of signed integer numbers.
     
    +typedef vec< 2, int, aligned_mediump > aligned_mediump_ivec2
     2 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 3, int, aligned_mediump > aligned_mediump_ivec3
     3 components vector aligned in memory of signed integer numbers.
     
    +typedef vec< 4, int, aligned_mediump > aligned_mediump_ivec4
     4 components vector aligned in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, aligned_mediump > aligned_mediump_mat2x2
     2 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, aligned_mediump > aligned_mediump_mat2x3
     2 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, aligned_mediump > aligned_mediump_mat2x4
     2 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, aligned_mediump > aligned_mediump_mat3x2
     3 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, aligned_mediump > aligned_mediump_mat3x3
     3 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, aligned_mediump > aligned_mediump_mat3x4
     3 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, aligned_mediump > aligned_mediump_mat4x2
     4 by 2 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, aligned_mediump > aligned_mediump_mat4x3
     4 by 3 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, aligned_mediump > aligned_mediump_mat4x4
     4 by 4 matrix aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, aligned_mediump > aligned_mediump_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, aligned_mediump > aligned_mediump_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, aligned_mediump > aligned_mediump_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, aligned_mediump > aligned_mediump_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, aligned_mediump > aligned_mediump_vec1
     1 component vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, aligned_mediump > aligned_mediump_vec2
     2 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, aligned_mediump > aligned_mediump_vec3
     3 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, aligned_mediump > aligned_mediump_vec4
     4 components vector aligned in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef aligned_highp_uvec1 aligned_uvec1
     1 component vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec2 aligned_uvec2
     2 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec3 aligned_uvec3
     3 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_uvec4 aligned_uvec4
     4 components vector aligned in memory of unsigned integer numbers.
     
    +typedef aligned_highp_vec1 aligned_vec1
     1 component vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec2 aligned_vec2
     2 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec3 aligned_vec3
     3 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef aligned_highp_vec4 aligned_vec4
     4 components vector aligned in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_bvec1 packed_bvec1
     1 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec2 packed_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec3 packed_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_bvec4 packed_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef packed_highp_dmat2 packed_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x2 packed_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x3 packed_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat2x4 packed_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3 packed_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x2 packed_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x3 packed_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat3x4 packed_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4 packed_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x2 packed_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x3 packed_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dmat4x4 packed_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec1 packed_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec2 packed_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec3 packed_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef packed_highp_dvec4 packed_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers.
     
    +typedef vec< 1, bool, packed_highp > packed_highp_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_highp > packed_highp_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_highp > packed_highp_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_highp > packed_highp_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_highp > packed_highp_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_highp > packed_highp_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_highp > packed_highp_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_highp > packed_highp_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_highp > packed_highp_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_highp > packed_highp_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_highp > packed_highp_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_highp > packed_highp_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_highp > packed_highp_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_highp > packed_highp_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_highp > packed_highp_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_highp > packed_highp_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_highp > packed_highp_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_highp > packed_highp_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_highp > packed_highp_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_highp > packed_highp_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_highp > packed_highp_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_highp > packed_highp_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_highp > packed_highp_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_highp > packed_highp_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_highp > packed_highp_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_highp > packed_highp_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_highp > packed_highp_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_highp > packed_highp_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_highp > packed_highp_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_highp > packed_highp_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_highp > packed_highp_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_highp > packed_highp_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_highp > packed_highp_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_highp > packed_highp_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_highp > packed_highp_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_highp > packed_highp_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_highp > packed_highp_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_highp > packed_highp_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_highp > packed_highp_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_highp > packed_highp_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_highp > packed_highp_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_highp > packed_highp_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_highp > packed_highp_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_highp > packed_highp_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
     
    +typedef packed_highp_ivec1 packed_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec2 packed_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec3 packed_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef packed_highp_ivec4 packed_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 1, bool, packed_lowp > packed_lowp_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_lowp > packed_lowp_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_lowp > packed_lowp_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_lowp > packed_lowp_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_lowp > packed_lowp_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_lowp > packed_lowp_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_lowp > packed_lowp_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_lowp > packed_lowp_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_lowp > packed_lowp_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_lowp > packed_lowp_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_lowp > packed_lowp_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_lowp > packed_lowp_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_lowp > packed_lowp_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_lowp > packed_lowp_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_lowp > packed_lowp_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_lowp > packed_lowp_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_lowp > packed_lowp_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_lowp > packed_lowp_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_lowp > packed_lowp_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_lowp > packed_lowp_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_lowp > packed_lowp_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_lowp > packed_lowp_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_lowp > packed_lowp_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_lowp > packed_lowp_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_lowp > packed_lowp_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_lowp > packed_lowp_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_lowp > packed_lowp_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_lowp > packed_lowp_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_lowp > packed_lowp_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_lowp > packed_lowp_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_lowp > packed_lowp_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_lowp > packed_lowp_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_lowp > packed_lowp_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_lowp > packed_lowp_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_lowp > packed_lowp_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_lowp > packed_lowp_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_lowp > packed_lowp_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_lowp > packed_lowp_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_lowp > packed_lowp_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_lowp > packed_lowp_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_lowp > packed_lowp_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_lowp > packed_lowp_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_lowp > packed_lowp_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_lowp > packed_lowp_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using low precision arithmetic in term of ULPs.
     
    +typedef packed_highp_mat2 packed_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x2 packed_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x3 packed_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat2x4 packed_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3 packed_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x2 packed_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x3 packed_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat3x4 packed_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4 packed_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x2 packed_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x3 packed_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_mat4x4 packed_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers.
     
    +typedef vec< 1, bool, packed_mediump > packed_mediump_bvec1
     1 component vector tightly packed in memory of bool values.
     
    +typedef vec< 2, bool, packed_mediump > packed_mediump_bvec2
     2 components vector tightly packed in memory of bool values.
     
    +typedef vec< 3, bool, packed_mediump > packed_mediump_bvec3
     3 components vector tightly packed in memory of bool values.
     
    +typedef vec< 4, bool, packed_mediump > packed_mediump_bvec4
     4 components vector tightly packed in memory of bool values.
     
    +typedef mat< 2, 2, double, packed_mediump > packed_mediump_dmat2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, double, packed_mediump > packed_mediump_dmat2x2
     2 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, double, packed_mediump > packed_mediump_dmat2x3
     2 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, double, packed_mediump > packed_mediump_dmat2x4
     2 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_mediump > packed_mediump_dmat3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, double, packed_mediump > packed_mediump_dmat3x2
     3 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, double, packed_mediump > packed_mediump_dmat3x3
     3 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, double, packed_mediump > packed_mediump_dmat3x4
     3 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_mediump > packed_mediump_dmat4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, double, packed_mediump > packed_mediump_dmat4x2
     4 by 2 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, double, packed_mediump > packed_mediump_dmat4x3
     4 by 3 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, double, packed_mediump > packed_mediump_dmat4x4
     4 by 4 matrix tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, double, packed_mediump > packed_mediump_dvec1
     1 component vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, double, packed_mediump > packed_mediump_dvec2
     2 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, double, packed_mediump > packed_mediump_dvec3
     3 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, double, packed_mediump > packed_mediump_dvec4
     4 components vector tightly packed in memory of double-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, int, packed_mediump > packed_mediump_ivec1
     1 component vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 2, int, packed_mediump > packed_mediump_ivec2
     2 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 3, int, packed_mediump > packed_mediump_ivec3
     3 components vector tightly packed in memory of signed integer numbers.
     
    +typedef vec< 4, int, packed_mediump > packed_mediump_ivec4
     4 components vector tightly packed in memory of signed integer numbers.
     
    +typedef mat< 2, 2, float, packed_mediump > packed_mediump_mat2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 2, float, packed_mediump > packed_mediump_mat2x2
     2 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 3, float, packed_mediump > packed_mediump_mat2x3
     2 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 2, 4, float, packed_mediump > packed_mediump_mat2x4
     2 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_mediump > packed_mediump_mat3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 2, float, packed_mediump > packed_mediump_mat3x2
     3 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 3, float, packed_mediump > packed_mediump_mat3x3
     3 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 3, 4, float, packed_mediump > packed_mediump_mat3x4
     3 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_mediump > packed_mediump_mat4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 2, float, packed_mediump > packed_mediump_mat4x2
     4 by 2 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 3, float, packed_mediump > packed_mediump_mat4x3
     4 by 3 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef mat< 4, 4, float, packed_mediump > packed_mediump_mat4x4
     4 by 4 matrix tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 1, uint, packed_mediump > packed_mediump_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 2, uint, packed_mediump > packed_mediump_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 3, uint, packed_mediump > packed_mediump_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 4, uint, packed_mediump > packed_mediump_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef vec< 1, float, packed_mediump > packed_mediump_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 2, float, packed_mediump > packed_mediump_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 3, float, packed_mediump > packed_mediump_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef vec< 4, float, packed_mediump > packed_mediump_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers using medium precision arithmetic in term of ULPs.
     
    +typedef packed_highp_uvec1 packed_uvec1
     1 component vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec2 packed_uvec2
     2 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec3 packed_uvec3
     3 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_uvec4 packed_uvec4
     4 components vector tightly packed in memory of unsigned integer numbers.
     
    +typedef packed_highp_vec1 packed_vec1
     1 component vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec2 packed_vec2
     2 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec3 packed_vec3
     3 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +typedef packed_highp_vec4 packed_vec4
     4 components vector tightly packed in memory of single-precision floating-point numbers.
     
    +

    Detailed Description

    +

    Include <glm/gtc/type_aligned.hpp> to use the features of this extension.

    +

    Aligned types allowing SIMD optimizations of vectors and matrices types

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00304.html b/external/glm-0.9.9.8/doc/api/a00304.html new file mode 100644 index 0000000..febd19a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00304.html @@ -0,0 +1,8955 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_type_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_type_precision
    +
    +
    + +

    Include <glm/gtc/type_precision.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef float f32
     Default 32 bit single-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, defaultp > f32mat2
     Single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, defaultp > f32mat2x2
     Single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, defaultp > f32mat2x3
     Single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, defaultp > f32mat2x4
     Single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, defaultp > f32mat3
     Single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, defaultp > f32mat3x2
     Single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, defaultp > f32mat3x3
     Single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, defaultp > f32mat3x4
     Single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, defaultp > f32mat4
     Single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, defaultp > f32mat4x2
     Single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, defaultp > f32mat4x3
     Single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, defaultp > f32mat4x4
     Single-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f32, defaultp > f32quat
     Single-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f32, defaultp > f32vec1
     Single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f32, defaultp > f32vec2
     Single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f32, defaultp > f32vec3
     Single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f32, defaultp > f32vec4
     Single-qualifier floating-point vector of 4 components. More...
     
    typedef double f64
     Default 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f64, defaultp > f64mat2
     Double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f64, defaultp > f64mat2x2
     Double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f64, defaultp > f64mat2x3
     Double-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f64, defaultp > f64mat2x4
     Double-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f64, defaultp > f64mat3
     Double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f64, defaultp > f64mat3x2
     Double-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f64, defaultp > f64mat3x3
     Double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f64, defaultp > f64mat3x4
     Double-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f64, defaultp > f64mat4
     Double-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f64, defaultp > f64mat4x2
     Double-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f64, defaultp > f64mat4x3
     Double-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f64, defaultp > f64mat4x4
     Double-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f64, defaultp > f64quat
     Double-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f64, defaultp > f64vec1
     Double-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f64, defaultp > f64vec2
     Double-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f64, defaultp > f64vec3
     Double-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f64, defaultp > f64vec4
     Double-qualifier floating-point vector of 4 components. More...
     
    typedef float float32
     Single-qualifier floating-point scalar. More...
     
    typedef float float32_t
     Default 32 bit single-qualifier floating-point scalar. More...
     
    typedef double float64
     Double-qualifier floating-point scalar. More...
     
    typedef double float64_t
     Default 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, defaultp > fmat2
     Single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, defaultp > fmat2x2
     Single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, defaultp > fmat2x3
     Single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, defaultp > fmat2x4
     Single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, defaultp > fmat3
     Single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, defaultp > fmat3x2
     Single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, defaultp > fmat3x3
     Single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, defaultp > fmat3x4
     Single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, defaultp > fmat4
     Single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, defaultp > fmat4x2
     Single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, defaultp > fmat4x3
     Single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, defaultp > fmat4x4
     Single-qualifier floating-point 4x4 matrix. More...
     
    typedef vec< 1, f32, defaultp > fvec1
     Single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f32, defaultp > fvec2
     Single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f32, defaultp > fvec3
     Single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f32, defaultp > fvec4
     Single-qualifier floating-point vector of 4 components. More...
     
    typedef float highp_f32
     High 32 bit single-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, highp > highp_f32mat2
     High single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, highp > highp_f32mat2x2
     High single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, highp > highp_f32mat2x3
     High single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, highp > highp_f32mat2x4
     High single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, highp > highp_f32mat3
     High single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, highp > highp_f32mat3x2
     High single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, highp > highp_f32mat3x3
     High single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, highp > highp_f32mat3x4
     High single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, highp > highp_f32mat4
     High single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, highp > highp_f32mat4x2
     High single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, highp > highp_f32mat4x3
     High single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, highp > highp_f32mat4x4
     High single-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f32, highp > highp_f32quat
     High single-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f32, highp > highp_f32vec1
     High single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f32, highp > highp_f32vec2
     High single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f32, highp > highp_f32vec3
     High single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f32, highp > highp_f32vec4
     High single-qualifier floating-point vector of 4 components. More...
     
    typedef double highp_f64
     High 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f64, highp > highp_f64mat2
     High double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f64, highp > highp_f64mat2x2
     High double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f64, highp > highp_f64mat2x3
     High double-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f64, highp > highp_f64mat2x4
     High double-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f64, highp > highp_f64mat3
     High double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f64, highp > highp_f64mat3x2
     High double-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f64, highp > highp_f64mat3x3
     High double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f64, highp > highp_f64mat3x4
     High double-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f64, highp > highp_f64mat4
     High double-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f64, highp > highp_f64mat4x2
     High double-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f64, highp > highp_f64mat4x3
     High double-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f64, highp > highp_f64mat4x4
     High double-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f64, highp > highp_f64quat
     High double-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f64, highp > highp_f64vec1
     High double-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f64, highp > highp_f64vec2
     High double-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f64, highp > highp_f64vec3
     High double-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f64, highp > highp_f64vec4
     High double-qualifier floating-point vector of 4 components. More...
     
    typedef float highp_float32
     High 32 bit single-qualifier floating-point scalar. More...
     
    typedef float highp_float32_t
     High 32 bit single-qualifier floating-point scalar. More...
     
    typedef double highp_float64
     High 64 bit double-qualifier floating-point scalar. More...
     
    typedef double highp_float64_t
     High 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, highp > highp_fmat2
     High single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, highp > highp_fmat2x2
     High single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, highp > highp_fmat2x3
     High single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, highp > highp_fmat2x4
     High single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, highp > highp_fmat3
     High single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, highp > highp_fmat3x2
     High single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, highp > highp_fmat3x3
     High single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, highp > highp_fmat3x4
     High single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, highp > highp_fmat4
     High single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, highp > highp_fmat4x2
     High single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, highp > highp_fmat4x3
     High single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, highp > highp_fmat4x4
     High single-qualifier floating-point 4x4 matrix. More...
     
    typedef vec< 1, float, highp > highp_fvec1
     High single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, float, highp > highp_fvec2
     High Single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, float, highp > highp_fvec3
     High Single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, float, highp > highp_fvec4
     High Single-qualifier floating-point vector of 4 components. More...
     
    typedef int16 highp_i16
     High qualifier 16 bit signed integer type. More...
     
    typedef vec< 1, i16, highp > highp_i16vec1
     High qualifier 16 bit signed integer scalar type. More...
     
    typedef vec< 2, i16, highp > highp_i16vec2
     High qualifier 16 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i16, highp > highp_i16vec3
     High qualifier 16 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i16, highp > highp_i16vec4
     High qualifier 16 bit signed integer vector of 4 components type. More...
     
    typedef int32 highp_i32
     High qualifier 32 bit signed integer type. More...
     
    typedef vec< 1, i32, highp > highp_i32vec1
     High qualifier 32 bit signed integer scalar type. More...
     
    typedef vec< 2, i32, highp > highp_i32vec2
     High qualifier 32 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i32, highp > highp_i32vec3
     High qualifier 32 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i32, highp > highp_i32vec4
     High qualifier 32 bit signed integer vector of 4 components type. More...
     
    typedef int64 highp_i64
     High qualifier 64 bit signed integer type. More...
     
    typedef vec< 1, i64, highp > highp_i64vec1
     High qualifier 64 bit signed integer scalar type. More...
     
    typedef vec< 2, i64, highp > highp_i64vec2
     High qualifier 64 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i64, highp > highp_i64vec3
     High qualifier 64 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i64, highp > highp_i64vec4
     High qualifier 64 bit signed integer vector of 4 components type. More...
     
    typedef int8 highp_i8
     High qualifier 8 bit signed integer type. More...
     
    typedef vec< 1, i8, highp > highp_i8vec1
     High qualifier 8 bit signed integer scalar type. More...
     
    typedef vec< 2, i8, highp > highp_i8vec2
     High qualifier 8 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i8, highp > highp_i8vec3
     High qualifier 8 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i8, highp > highp_i8vec4
     High qualifier 8 bit signed integer vector of 4 components type. More...
     
    typedef int16 highp_int16
     High qualifier 16 bit signed integer type. More...
     
    typedef int16 highp_int16_t
     High qualifier 16 bit signed integer type. More...
     
    typedef int32 highp_int32
     High qualifier 32 bit signed integer type. More...
     
    typedef int32 highp_int32_t
     32 bit signed integer type. More...
     
    typedef int64 highp_int64
     High qualifier 64 bit signed integer type. More...
     
    typedef int64 highp_int64_t
     High qualifier 64 bit signed integer type. More...
     
    typedef int8 highp_int8
     High qualifier 8 bit signed integer type. More...
     
    typedef int8 highp_int8_t
     High qualifier 8 bit signed integer type. More...
     
    typedef uint16 highp_u16
     High qualifier 16 bit unsigned integer type. More...
     
    typedef vec< 1, u16, highp > highp_u16vec1
     High qualifier 16 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u16, highp > highp_u16vec2
     High qualifier 16 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u16, highp > highp_u16vec3
     High qualifier 16 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u16, highp > highp_u16vec4
     High qualifier 16 bit unsigned integer vector of 4 components type. More...
     
    typedef uint32 highp_u32
     High qualifier 32 bit unsigned integer type. More...
     
    typedef vec< 1, u32, highp > highp_u32vec1
     High qualifier 32 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u32, highp > highp_u32vec2
     High qualifier 32 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u32, highp > highp_u32vec3
     High qualifier 32 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u32, highp > highp_u32vec4
     High qualifier 32 bit unsigned integer vector of 4 components type. More...
     
    typedef uint64 highp_u64
     High qualifier 64 bit unsigned integer type. More...
     
    typedef vec< 1, u64, highp > highp_u64vec1
     High qualifier 64 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u64, highp > highp_u64vec2
     High qualifier 64 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u64, highp > highp_u64vec3
     High qualifier 64 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u64, highp > highp_u64vec4
     High qualifier 64 bit unsigned integer vector of 4 components type. More...
     
    typedef uint8 highp_u8
     High qualifier 8 bit unsigned integer type. More...
     
    typedef vec< 1, u8, highp > highp_u8vec1
     High qualifier 8 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u8, highp > highp_u8vec2
     High qualifier 8 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u8, highp > highp_u8vec3
     High qualifier 8 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u8, highp > highp_u8vec4
     High qualifier 8 bit unsigned integer vector of 4 components type. More...
     
    typedef uint16 highp_uint16
     High qualifier 16 bit unsigned integer type. More...
     
    typedef uint16 highp_uint16_t
     High qualifier 16 bit unsigned integer type. More...
     
    typedef uint32 highp_uint32
     High qualifier 32 bit unsigned integer type. More...
     
    typedef uint32 highp_uint32_t
     High qualifier 32 bit unsigned integer type. More...
     
    typedef uint64 highp_uint64
     High qualifier 64 bit unsigned integer type. More...
     
    typedef uint64 highp_uint64_t
     High qualifier 64 bit unsigned integer type. More...
     
    typedef uint8 highp_uint8
     High qualifier 8 bit unsigned integer type. More...
     
    typedef uint8 highp_uint8_t
     High qualifier 8 bit unsigned integer type. More...
     
    typedef int16 i16
     16 bit signed integer type. More...
     
    typedef vec< 1, i16, defaultp > i16vec1
     16 bit signed integer scalar type. More...
     
    typedef vec< 2, i16, defaultp > i16vec2
     16 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i16, defaultp > i16vec3
     16 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i16, defaultp > i16vec4
     16 bit signed integer vector of 4 components type. More...
     
    typedef int32 i32
     32 bit signed integer type. More...
     
    typedef vec< 1, i32, defaultp > i32vec1
     32 bit signed integer scalar type. More...
     
    typedef vec< 2, i32, defaultp > i32vec2
     32 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i32, defaultp > i32vec3
     32 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i32, defaultp > i32vec4
     32 bit signed integer vector of 4 components type. More...
     
    typedef int64 i64
     64 bit signed integer type. More...
     
    typedef vec< 1, i64, defaultp > i64vec1
     64 bit signed integer scalar type. More...
     
    typedef vec< 2, i64, defaultp > i64vec2
     64 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i64, defaultp > i64vec3
     64 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i64, defaultp > i64vec4
     64 bit signed integer vector of 4 components type. More...
     
    typedef int8 i8
     8 bit signed integer type. More...
     
    typedef vec< 1, i8, defaultp > i8vec1
     8 bit signed integer scalar type. More...
     
    typedef vec< 2, i8, defaultp > i8vec2
     8 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i8, defaultp > i8vec3
     8 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i8, defaultp > i8vec4
     8 bit signed integer vector of 4 components type. More...
     
    typedef int16 int16_t
     16 bit signed integer type. More...
     
    typedef int32 int32_t
     32 bit signed integer type. More...
     
    typedef int64 int64_t
     64 bit signed integer type. More...
     
    typedef int8 int8_t
     8 bit signed integer type. More...
     
    typedef float lowp_f32
     Low 32 bit single-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, lowp > lowp_f32mat2
     Low single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, lowp > lowp_f32mat2x2
     Low single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, lowp > lowp_f32mat2x3
     Low single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, lowp > lowp_f32mat2x4
     Low single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, lowp > lowp_f32mat3
     Low single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, lowp > lowp_f32mat3x2
     Low single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, lowp > lowp_f32mat3x3
     Low single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, lowp > lowp_f32mat3x4
     Low single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, lowp > lowp_f32mat4
     Low single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, lowp > lowp_f32mat4x2
     Low single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, lowp > lowp_f32mat4x3
     Low single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, lowp > lowp_f32mat4x4
     Low single-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f32, lowp > lowp_f32quat
     Low single-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f32, lowp > lowp_f32vec1
     Low single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f32, lowp > lowp_f32vec2
     Low single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f32, lowp > lowp_f32vec3
     Low single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f32, lowp > lowp_f32vec4
     Low single-qualifier floating-point vector of 4 components. More...
     
    typedef double lowp_f64
     Low 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f64, lowp > lowp_f64mat2
     Low double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f64, lowp > lowp_f64mat2x2
     Low double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f64, lowp > lowp_f64mat2x3
     Low double-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f64, lowp > lowp_f64mat2x4
     Low double-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f64, lowp > lowp_f64mat3
     Low double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f64, lowp > lowp_f64mat3x2
     Low double-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f64, lowp > lowp_f64mat3x3
     Low double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f64, lowp > lowp_f64mat3x4
     Low double-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f64, lowp > lowp_f64mat4
     Low double-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f64, lowp > lowp_f64mat4x2
     Low double-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f64, lowp > lowp_f64mat4x3
     Low double-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f64, lowp > lowp_f64mat4x4
     Low double-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f64, lowp > lowp_f64quat
     Low double-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f64, lowp > lowp_f64vec1
     Low double-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f64, lowp > lowp_f64vec2
     Low double-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f64, lowp > lowp_f64vec3
     Low double-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f64, lowp > lowp_f64vec4
     Low double-qualifier floating-point vector of 4 components. More...
     
    typedef float lowp_float32
     Low 32 bit single-qualifier floating-point scalar. More...
     
    typedef float lowp_float32_t
     Low 32 bit single-qualifier floating-point scalar. More...
     
    typedef double lowp_float64
     Low 64 bit double-qualifier floating-point scalar. More...
     
    typedef double lowp_float64_t
     Low 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, lowp > lowp_fmat2
     Low single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, lowp > lowp_fmat2x2
     Low single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, lowp > lowp_fmat2x3
     Low single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, lowp > lowp_fmat2x4
     Low single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, lowp > lowp_fmat3
     Low single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, lowp > lowp_fmat3x2
     Low single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, lowp > lowp_fmat3x3
     Low single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, lowp > lowp_fmat3x4
     Low single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, lowp > lowp_fmat4
     Low single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, lowp > lowp_fmat4x2
     Low single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, lowp > lowp_fmat4x3
     Low single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, lowp > lowp_fmat4x4
     Low single-qualifier floating-point 4x4 matrix. More...
     
    typedef vec< 1, float, lowp > lowp_fvec1
     Low single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, float, lowp > lowp_fvec2
     Low single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, float, lowp > lowp_fvec3
     Low single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, float, lowp > lowp_fvec4
     Low single-qualifier floating-point vector of 4 components. More...
     
    typedef int16 lowp_i16
     Low qualifier 16 bit signed integer type. More...
     
    typedef vec< 1, i16, lowp > lowp_i16vec1
     Low qualifier 16 bit signed integer scalar type. More...
     
    typedef vec< 2, i16, lowp > lowp_i16vec2
     Low qualifier 16 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i16, lowp > lowp_i16vec3
     Low qualifier 16 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i16, lowp > lowp_i16vec4
     Low qualifier 16 bit signed integer vector of 4 components type. More...
     
    typedef int32 lowp_i32
     Low qualifier 32 bit signed integer type. More...
     
    typedef vec< 1, i32, lowp > lowp_i32vec1
     Low qualifier 32 bit signed integer scalar type. More...
     
    typedef vec< 2, i32, lowp > lowp_i32vec2
     Low qualifier 32 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i32, lowp > lowp_i32vec3
     Low qualifier 32 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i32, lowp > lowp_i32vec4
     Low qualifier 32 bit signed integer vector of 4 components type. More...
     
    typedef int64 lowp_i64
     Low qualifier 64 bit signed integer type. More...
     
    typedef vec< 1, i64, lowp > lowp_i64vec1
     Low qualifier 64 bit signed integer scalar type. More...
     
    typedef vec< 2, i64, lowp > lowp_i64vec2
     Low qualifier 64 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i64, lowp > lowp_i64vec3
     Low qualifier 64 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i64, lowp > lowp_i64vec4
     Low qualifier 64 bit signed integer vector of 4 components type. More...
     
    typedef int8 lowp_i8
     Low qualifier 8 bit signed integer type. More...
     
    typedef vec< 1, i8, lowp > lowp_i8vec1
     Low qualifier 8 bit signed integer scalar type. More...
     
    typedef vec< 2, i8, lowp > lowp_i8vec2
     Low qualifier 8 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i8, lowp > lowp_i8vec3
     Low qualifier 8 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i8, lowp > lowp_i8vec4
     Low qualifier 8 bit signed integer vector of 4 components type. More...
     
    typedef int16 lowp_int16
     Low qualifier 16 bit signed integer type. More...
     
    typedef int16 lowp_int16_t
     Low qualifier 16 bit signed integer type. More...
     
    typedef int32 lowp_int32
     Low qualifier 32 bit signed integer type. More...
     
    typedef int32 lowp_int32_t
     Low qualifier 32 bit signed integer type. More...
     
    typedef int64 lowp_int64
     Low qualifier 64 bit signed integer type. More...
     
    typedef int64 lowp_int64_t
     Low qualifier 64 bit signed integer type. More...
     
    typedef int8 lowp_int8
     Low qualifier 8 bit signed integer type. More...
     
    typedef int8 lowp_int8_t
     Low qualifier 8 bit signed integer type. More...
     
    typedef uint16 lowp_u16
     Low qualifier 16 bit unsigned integer type. More...
     
    typedef vec< 1, u16, lowp > lowp_u16vec1
     Low qualifier 16 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u16, lowp > lowp_u16vec2
     Low qualifier 16 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u16, lowp > lowp_u16vec3
     Low qualifier 16 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u16, lowp > lowp_u16vec4
     Low qualifier 16 bit unsigned integer vector of 4 components type. More...
     
    typedef uint32 lowp_u32
     Low qualifier 32 bit unsigned integer type. More...
     
    typedef vec< 1, u32, lowp > lowp_u32vec1
     Low qualifier 32 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u32, lowp > lowp_u32vec2
     Low qualifier 32 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u32, lowp > lowp_u32vec3
     Low qualifier 32 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u32, lowp > lowp_u32vec4
     Low qualifier 32 bit unsigned integer vector of 4 components type. More...
     
    typedef uint64 lowp_u64
     Low qualifier 64 bit unsigned integer type. More...
     
    typedef vec< 1, u64, lowp > lowp_u64vec1
     Low qualifier 64 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u64, lowp > lowp_u64vec2
     Low qualifier 64 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u64, lowp > lowp_u64vec3
     Low qualifier 64 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u64, lowp > lowp_u64vec4
     Low qualifier 64 bit unsigned integer vector of 4 components type. More...
     
    typedef uint8 lowp_u8
     Low qualifier 8 bit unsigned integer type. More...
     
    typedef vec< 1, u8, lowp > lowp_u8vec1
     Low qualifier 8 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u8, lowp > lowp_u8vec2
     Low qualifier 8 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u8, lowp > lowp_u8vec3
     Low qualifier 8 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u8, lowp > lowp_u8vec4
     Low qualifier 8 bit unsigned integer vector of 4 components type. More...
     
    typedef uint16 lowp_uint16
     Low qualifier 16 bit unsigned integer type. More...
     
    typedef uint16 lowp_uint16_t
     Low qualifier 16 bit unsigned integer type. More...
     
    typedef uint32 lowp_uint32
     Low qualifier 32 bit unsigned integer type. More...
     
    typedef uint32 lowp_uint32_t
     Low qualifier 32 bit unsigned integer type. More...
     
    typedef uint64 lowp_uint64
     Low qualifier 64 bit unsigned integer type. More...
     
    typedef uint64 lowp_uint64_t
     Low qualifier 64 bit unsigned integer type. More...
     
    typedef uint8 lowp_uint8
     Low qualifier 8 bit unsigned integer type. More...
     
    typedef uint8 lowp_uint8_t
     Low qualifier 8 bit unsigned integer type. More...
     
    typedef float mediump_f32
     Medium 32 bit single-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, mediump > mediump_f32mat2
     Medium single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, mediump > mediump_f32mat2x2
     High single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, mediump > mediump_f32mat2x3
     Medium single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, mediump > mediump_f32mat2x4
     Medium single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, mediump > mediump_f32mat3
     Medium single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, mediump > mediump_f32mat3x2
     Medium single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, mediump > mediump_f32mat3x3
     Medium single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, mediump > mediump_f32mat3x4
     Medium single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, mediump > mediump_f32mat4
     Medium single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, mediump > mediump_f32mat4x2
     Medium single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, mediump > mediump_f32mat4x3
     Medium single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, mediump > mediump_f32mat4x4
     Medium single-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f32, mediump > mediump_f32quat
     Medium single-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f32, mediump > mediump_f32vec1
     Medium single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f32, mediump > mediump_f32vec2
     Medium single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f32, mediump > mediump_f32vec3
     Medium single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f32, mediump > mediump_f32vec4
     Medium single-qualifier floating-point vector of 4 components. More...
     
    typedef double mediump_f64
     Medium 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f64, mediump > mediump_f64mat2
     Medium double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f64, mediump > mediump_f64mat2x2
     Medium double-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f64, mediump > mediump_f64mat2x3
     Medium double-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f64, mediump > mediump_f64mat2x4
     Medium double-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f64, mediump > mediump_f64mat3
     Medium double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f64, mediump > mediump_f64mat3x2
     Medium double-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f64, mediump > mediump_f64mat3x3
     Medium double-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f64, mediump > mediump_f64mat3x4
     Medium double-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f64, mediump > mediump_f64mat4
     Medium double-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f64, mediump > mediump_f64mat4x2
     Medium double-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f64, mediump > mediump_f64mat4x3
     Medium double-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f64, mediump > mediump_f64mat4x4
     Medium double-qualifier floating-point 4x4 matrix. More...
     
    typedef qua< f64, mediump > mediump_f64quat
     Medium double-qualifier floating-point quaternion. More...
     
    typedef vec< 1, f64, mediump > mediump_f64vec1
     Medium double-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, f64, mediump > mediump_f64vec2
     Medium double-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, f64, mediump > mediump_f64vec3
     Medium double-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, f64, mediump > mediump_f64vec4
     Medium double-qualifier floating-point vector of 4 components. More...
     
    typedef float mediump_float32
     Medium 32 bit single-qualifier floating-point scalar. More...
     
    typedef float mediump_float32_t
     Medium 32 bit single-qualifier floating-point scalar. More...
     
    typedef double mediump_float64
     Medium 64 bit double-qualifier floating-point scalar. More...
     
    typedef double mediump_float64_t
     Medium 64 bit double-qualifier floating-point scalar. More...
     
    typedef mat< 2, 2, f32, mediump > mediump_fmat2
     Medium single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 2, f32, mediump > mediump_fmat2x2
     Medium single-qualifier floating-point 1x1 matrix. More...
     
    typedef mat< 2, 3, f32, mediump > mediump_fmat2x3
     Medium single-qualifier floating-point 2x3 matrix. More...
     
    typedef mat< 2, 4, f32, mediump > mediump_fmat2x4
     Medium single-qualifier floating-point 2x4 matrix. More...
     
    typedef mat< 3, 3, f32, mediump > mediump_fmat3
     Medium single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 2, f32, mediump > mediump_fmat3x2
     Medium single-qualifier floating-point 3x2 matrix. More...
     
    typedef mat< 3, 3, f32, mediump > mediump_fmat3x3
     Medium single-qualifier floating-point 3x3 matrix. More...
     
    typedef mat< 3, 4, f32, mediump > mediump_fmat3x4
     Medium single-qualifier floating-point 3x4 matrix. More...
     
    typedef mat< 4, 4, f32, mediump > mediump_fmat4
     Medium single-qualifier floating-point 4x4 matrix. More...
     
    typedef mat< 4, 2, f32, mediump > mediump_fmat4x2
     Medium single-qualifier floating-point 4x2 matrix. More...
     
    typedef mat< 4, 3, f32, mediump > mediump_fmat4x3
     Medium single-qualifier floating-point 4x3 matrix. More...
     
    typedef mat< 4, 4, f32, mediump > mediump_fmat4x4
     Medium single-qualifier floating-point 4x4 matrix. More...
     
    typedef vec< 1, float, mediump > mediump_fvec1
     Medium single-qualifier floating-point vector of 1 component. More...
     
    typedef vec< 2, float, mediump > mediump_fvec2
     Medium Single-qualifier floating-point vector of 2 components. More...
     
    typedef vec< 3, float, mediump > mediump_fvec3
     Medium Single-qualifier floating-point vector of 3 components. More...
     
    typedef vec< 4, float, mediump > mediump_fvec4
     Medium Single-qualifier floating-point vector of 4 components. More...
     
    typedef int16 mediump_i16
     Medium qualifier 16 bit signed integer type. More...
     
    typedef vec< 1, i16, mediump > mediump_i16vec1
     Medium qualifier 16 bit signed integer scalar type. More...
     
    typedef vec< 2, i16, mediump > mediump_i16vec2
     Medium qualifier 16 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i16, mediump > mediump_i16vec3
     Medium qualifier 16 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i16, mediump > mediump_i16vec4
     Medium qualifier 16 bit signed integer vector of 4 components type. More...
     
    typedef int32 mediump_i32
     Medium qualifier 32 bit signed integer type. More...
     
    typedef vec< 1, i32, mediump > mediump_i32vec1
     Medium qualifier 32 bit signed integer scalar type. More...
     
    typedef vec< 2, i32, mediump > mediump_i32vec2
     Medium qualifier 32 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i32, mediump > mediump_i32vec3
     Medium qualifier 32 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i32, mediump > mediump_i32vec4
     Medium qualifier 32 bit signed integer vector of 4 components type. More...
     
    typedef int64 mediump_i64
     Medium qualifier 64 bit signed integer type. More...
     
    typedef vec< 1, i64, mediump > mediump_i64vec1
     Medium qualifier 64 bit signed integer scalar type. More...
     
    typedef vec< 2, i64, mediump > mediump_i64vec2
     Medium qualifier 64 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i64, mediump > mediump_i64vec3
     Medium qualifier 64 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i64, mediump > mediump_i64vec4
     Medium qualifier 64 bit signed integer vector of 4 components type. More...
     
    typedef int8 mediump_i8
     Medium qualifier 8 bit signed integer type. More...
     
    typedef vec< 1, i8, mediump > mediump_i8vec1
     Medium qualifier 8 bit signed integer scalar type. More...
     
    typedef vec< 2, i8, mediump > mediump_i8vec2
     Medium qualifier 8 bit signed integer vector of 2 components type. More...
     
    typedef vec< 3, i8, mediump > mediump_i8vec3
     Medium qualifier 8 bit signed integer vector of 3 components type. More...
     
    typedef vec< 4, i8, mediump > mediump_i8vec4
     Medium qualifier 8 bit signed integer vector of 4 components type. More...
     
    typedef int16 mediump_int16
     Medium qualifier 16 bit signed integer type. More...
     
    typedef int16 mediump_int16_t
     Medium qualifier 16 bit signed integer type. More...
     
    typedef int32 mediump_int32
     Medium qualifier 32 bit signed integer type. More...
     
    typedef int32 mediump_int32_t
     Medium qualifier 32 bit signed integer type. More...
     
    typedef int64 mediump_int64
     Medium qualifier 64 bit signed integer type. More...
     
    typedef int64 mediump_int64_t
     Medium qualifier 64 bit signed integer type. More...
     
    typedef int8 mediump_int8
     Medium qualifier 8 bit signed integer type. More...
     
    typedef int8 mediump_int8_t
     Medium qualifier 8 bit signed integer type. More...
     
    typedef uint16 mediump_u16
     Medium qualifier 16 bit unsigned integer type. More...
     
    typedef vec< 1, u16, mediump > mediump_u16vec1
     Medium qualifier 16 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u16, mediump > mediump_u16vec2
     Medium qualifier 16 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u16, mediump > mediump_u16vec3
     Medium qualifier 16 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u16, mediump > mediump_u16vec4
     Medium qualifier 16 bit unsigned integer vector of 4 components type. More...
     
    typedef uint32 mediump_u32
     Medium qualifier 32 bit unsigned integer type. More...
     
    typedef vec< 1, u32, mediump > mediump_u32vec1
     Medium qualifier 32 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u32, mediump > mediump_u32vec2
     Medium qualifier 32 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u32, mediump > mediump_u32vec3
     Medium qualifier 32 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u32, mediump > mediump_u32vec4
     Medium qualifier 32 bit unsigned integer vector of 4 components type. More...
     
    typedef uint64 mediump_u64
     Medium qualifier 64 bit unsigned integer type. More...
     
    typedef vec< 1, u64, mediump > mediump_u64vec1
     Medium qualifier 64 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u64, mediump > mediump_u64vec2
     Medium qualifier 64 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u64, mediump > mediump_u64vec3
     Medium qualifier 64 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u64, mediump > mediump_u64vec4
     Medium qualifier 64 bit unsigned integer vector of 4 components type. More...
     
    typedef uint8 mediump_u8
     Medium qualifier 8 bit unsigned integer type. More...
     
    typedef vec< 1, u8, mediump > mediump_u8vec1
     Medium qualifier 8 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u8, mediump > mediump_u8vec2
     Medium qualifier 8 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u8, mediump > mediump_u8vec3
     Medium qualifier 8 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u8, mediump > mediump_u8vec4
     Medium qualifier 8 bit unsigned integer vector of 4 components type. More...
     
    typedef uint16 mediump_uint16
     Medium qualifier 16 bit unsigned integer type. More...
     
    typedef uint16 mediump_uint16_t
     Medium qualifier 16 bit unsigned integer type. More...
     
    typedef uint32 mediump_uint32
     Medium qualifier 32 bit unsigned integer type. More...
     
    typedef uint32 mediump_uint32_t
     Medium qualifier 32 bit unsigned integer type. More...
     
    typedef uint64 mediump_uint64
     Medium qualifier 64 bit unsigned integer type. More...
     
    typedef uint64 mediump_uint64_t
     Medium qualifier 64 bit unsigned integer type. More...
     
    typedef uint8 mediump_uint8
     Medium qualifier 8 bit unsigned integer type. More...
     
    typedef uint8 mediump_uint8_t
     Medium qualifier 8 bit unsigned integer type. More...
     
    typedef uint16 u16
     Default qualifier 16 bit unsigned integer type. More...
     
    typedef vec< 1, u16, defaultp > u16vec1
     Default qualifier 16 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u16, defaultp > u16vec2
     Default qualifier 16 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u16, defaultp > u16vec3
     Default qualifier 16 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u16, defaultp > u16vec4
     Default qualifier 16 bit unsigned integer vector of 4 components type. More...
     
    typedef uint32 u32
     Default qualifier 32 bit unsigned integer type. More...
     
    typedef vec< 1, u32, defaultp > u32vec1
     Default qualifier 32 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u32, defaultp > u32vec2
     Default qualifier 32 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u32, defaultp > u32vec3
     Default qualifier 32 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u32, defaultp > u32vec4
     Default qualifier 32 bit unsigned integer vector of 4 components type. More...
     
    typedef uint64 u64
     Default qualifier 64 bit unsigned integer type. More...
     
    typedef vec< 1, u64, defaultp > u64vec1
     Default qualifier 64 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u64, defaultp > u64vec2
     Default qualifier 64 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u64, defaultp > u64vec3
     Default qualifier 64 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u64, defaultp > u64vec4
     Default qualifier 64 bit unsigned integer vector of 4 components type. More...
     
    typedef uint8 u8
     Default qualifier 8 bit unsigned integer type. More...
     
    typedef vec< 1, u8, defaultp > u8vec1
     Default qualifier 8 bit unsigned integer scalar type. More...
     
    typedef vec< 2, u8, defaultp > u8vec2
     Default qualifier 8 bit unsigned integer vector of 2 components type. More...
     
    typedef vec< 3, u8, defaultp > u8vec3
     Default qualifier 8 bit unsigned integer vector of 3 components type. More...
     
    typedef vec< 4, u8, defaultp > u8vec4
     Default qualifier 8 bit unsigned integer vector of 4 components type. More...
     
    typedef uint16 uint16_t
     Default qualifier 16 bit unsigned integer type. More...
     
    typedef uint32 uint32_t
     Default qualifier 32 bit unsigned integer type. More...
     
    typedef uint64 uint64_t
     Default qualifier 64 bit unsigned integer type. More...
     
    typedef uint8 uint8_t
     Default qualifier 8 bit unsigned integer type. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/type_precision.hpp> to use the features of this extension.

    +

    Defines specific C++-based qualifier types.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef float32 f32
    +
    + +

    Default 32 bit single-qualifier floating-point scalar.

    +

    32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 150 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > f32mat2
    +
    + +

    Single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 552 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > f32mat2x2
    +
    + +

    Single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 700 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, defaultp > f32mat2x3
    +
    + +

    Single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 703 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, defaultp > f32mat2x4
    +
    + +

    Single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 706 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > f32mat3
    +
    + +

    Single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 553 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, defaultp > f32mat3x2
    +
    + +

    Single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 701 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > f32mat3x3
    +
    + +

    Single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 704 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, defaultp > f32mat3x4
    +
    + +

    Single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 707 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > f32mat4
    +
    + +

    Single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 554 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, defaultp > f32mat4x2
    +
    + +

    Single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 702 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, defaultp > f32mat4x3
    +
    + +

    Single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 705 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > f32mat4x4
    +
    + +

    Single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 708 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f32, defaultp > f32quat
    +
    + +

    Single-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 805 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f32, defaultp > f32vec1
    +
    + +

    Single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 461 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f32, defaultp > f32vec2
    +
    + +

    Single-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 462 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f32, defaultp > f32vec3
    +
    + +

    Single-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 463 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f32, defaultp > f32vec4
    +
    + +

    Single-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 464 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 f64
    +
    + +

    Default 64 bit double-qualifier floating-point scalar.

    +

    64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 166 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, defaultp > f64mat2
    +
    + +

    Double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 584 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, defaultp > f64mat2x2
    +
    + +

    Double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 780 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f64, defaultp > f64mat2x3
    +
    + +

    Double-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 783 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f64, defaultp > f64mat2x4
    +
    + +

    Double-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 786 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, defaultp > f64mat3
    +
    + +

    Double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 585 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f64, defaultp > f64mat3x2
    +
    + +

    Double-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 781 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, defaultp > f64mat3x3
    +
    + +

    Double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 784 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f64, defaultp > f64mat3x4
    +
    + +

    Double-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 787 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, defaultp > f64mat4
    +
    + +

    Double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 586 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f64, defaultp > f64mat4x2
    +
    + +

    Double-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 782 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f64, defaultp > f64mat4x3
    +
    + +

    Double-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 785 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, defaultp > f64mat4x4
    +
    + +

    Double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 788 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f64, defaultp > f64quat
    +
    + +

    Double-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 815 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f64, defaultp > f64vec1
    +
    + +

    Double-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 501 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, defaultp > f64vec2
    +
    + +

    Double-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 502 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, defaultp > f64vec3
    +
    + +

    Double-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 503 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, defaultp > f64vec4
    +
    + +

    Double-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 504 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float float32
    +
    + +

    Single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 155 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 float32_t
    +
    + +

    Default 32 bit single-qualifier floating-point scalar.

    +

    32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 160 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef double float64
    +
    + +

    Double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 171 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 float64_t
    +
    + +

    Default 64 bit double-qualifier floating-point scalar.

    +

    64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 176 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > fmat2
    +
    + +

    Single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 536 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, defaultp > fmat2x2
    +
    + +

    Single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 660 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, defaultp > fmat2x3
    +
    + +

    Single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 663 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, defaultp > fmat2x4
    +
    + +

    Single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 666 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > fmat3
    +
    + +

    Single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 537 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, defaultp > fmat3x2
    +
    + +

    Single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 661 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, defaultp > fmat3x3
    +
    + +

    Single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 664 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, defaultp > fmat3x4
    +
    + +

    Single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 667 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > fmat4
    +
    + +

    Single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 538 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, defaultp > fmat4x2
    +
    + +

    Single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 662 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, defaultp > fmat4x3
    +
    + +

    Single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 665 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, defaultp > fmat4x4
    +
    + +

    Single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 668 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, float, defaultp > fvec1
    +
    + +

    Single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 441 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, defaultp > fvec2
    +
    + +

    Single-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 442 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, defaultp > fvec3
    +
    + +

    Single-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 443 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, defaultp > fvec4
    +
    + +

    Single-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 444 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 highp_f32
    +
    + +

    High 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 149 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f32mat2x2 highp_f32mat2
    +
    + +

    High single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 548 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, highp > highp_f32mat2x2
    +
    + +

    High single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 690 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, highp > highp_f32mat2x3
    +
    + +

    High single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 691 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, highp > highp_f32mat2x4
    +
    + +

    High single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 692 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f32mat3x3 highp_f32mat3
    +
    + +

    High single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 549 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, highp > highp_f32mat3x2
    +
    + +

    High single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 693 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, highp > highp_f32mat3x3
    +
    + +

    High single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 694 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, highp > highp_f32mat3x4
    +
    + +

    High single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 695 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f32mat4x4 highp_f32mat4
    +
    + +

    High single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 550 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, highp > highp_f32mat4x2
    +
    + +

    High single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 696 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, highp > highp_f32mat4x3
    +
    + +

    High single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 697 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, highp > highp_f32mat4x4
    +
    + +

    High single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 698 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f32, highp > highp_f32quat
    +
    + +

    High single-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 804 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f32, highp > highp_f32vec1
    +
    + +

    High single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 456 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f32, highp > highp_f32vec2
    +
    + +

    High single-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 457 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f32, highp > highp_f32vec3
    +
    + +

    High single-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 458 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f32, highp > highp_f32vec4
    +
    + +

    High single-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 459 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 highp_f64
    +
    + +

    High 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 165 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f64mat2x2 highp_f64mat2
    +
    + +

    High double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 580 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, highp > highp_f64mat2x2
    +
    + +

    High double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 770 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f64, highp > highp_f64mat2x3
    +
    + +

    High double-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 771 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f64, highp > highp_f64mat2x4
    +
    + +

    High double-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 772 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f64mat3x3 highp_f64mat3
    +
    + +

    High double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 581 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f64, highp > highp_f64mat3x2
    +
    + +

    High double-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 773 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, highp > highp_f64mat3x3
    +
    + +

    High double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 774 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f64, highp > highp_f64mat3x4
    +
    + +

    High double-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 775 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_f64mat4x4 highp_f64mat4
    +
    + +

    High double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 582 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f64, highp > highp_f64mat4x2
    +
    + +

    High double-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 776 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f64, highp > highp_f64mat4x3
    +
    + +

    High double-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 777 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, highp > highp_f64mat4x4
    +
    + +

    High double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 778 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f64, highp > highp_f64quat
    +
    + +

    High double-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 814 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f64, highp > highp_f64vec1
    +
    + +

    High double-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 496 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, highp > highp_f64vec2
    +
    + +

    High double-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 497 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, highp > highp_f64vec3
    +
    + +

    High double-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 498 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, highp > highp_f64vec4
    +
    + +

    High double-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 499 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 highp_float32
    +
    + +

    High 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 154 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 highp_float32_t
    +
    + +

    High 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 159 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 highp_float64
    +
    + +

    High 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 170 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 highp_float64_t
    +
    + +

    High 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 175 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_fmat2x2 highp_fmat2
    +
    + +

    High single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 532 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, highp > highp_fmat2x2
    +
    + +

    High single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision High single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 650 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, highp > highp_fmat2x3
    +
    + +

    High single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 651 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, highp > highp_fmat2x4
    +
    + +

    High single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 652 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_fmat3x3 highp_fmat3
    +
    + +

    High single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 533 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, highp > highp_fmat3x2
    +
    + +

    High single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 653 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, highp > highp_fmat3x3
    +
    + +

    High single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 654 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, highp > highp_fmat3x4
    +
    + +

    High single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 655 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_fmat4x4 highp_fmat4
    +
    + +

    High single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 534 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, highp > highp_fmat4x2
    +
    + +

    High single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 656 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, highp > highp_fmat4x3
    +
    + +

    High single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 657 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, highp > highp_fmat4x4
    +
    + +

    High single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 658 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, float, highp > highp_fvec1
    +
    + +

    High single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 436 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, highp > highp_fvec2
    +
    + +

    High Single-qualifier floating-point vector of 2 components.

    +
    See also
    core_precision
    + +

    Definition at line 437 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, highp > highp_fvec3
    +
    + +

    High Single-qualifier floating-point vector of 3 components.

    +
    See also
    core_precision
    + +

    Definition at line 438 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, highp > highp_fvec4
    +
    + +

    High Single-qualifier floating-point vector of 4 components.

    +
    See also
    core_precision
    + +

    Definition at line 439 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 highp_i16
    +
    + +

    High qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 47 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i16, highp > highp_i16vec1
    +
    + +

    High qualifier 16 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 252 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i16, highp > highp_i16vec2
    +
    + +

    High qualifier 16 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 253 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i16, highp > highp_i16vec3
    +
    + +

    High qualifier 16 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 254 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i16, highp > highp_i16vec4
    +
    + +

    High qualifier 16 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 255 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 highp_i32
    +
    + +

    High qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 61 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i32, highp > highp_i32vec1
    +
    + +

    High qualifier 32 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 272 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, highp > highp_i32vec2
    +
    + +

    High qualifier 32 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 273 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, highp > highp_i32vec3
    +
    + +

    High qualifier 32 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 274 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, highp > highp_i32vec4
    +
    + +

    High qualifier 32 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 275 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 highp_i64
    +
    + +

    High qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 75 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i64, highp > highp_i64vec1
    +
    + +

    High qualifier 64 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 292 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i64, highp > highp_i64vec2
    +
    + +

    High qualifier 64 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 293 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i64, highp > highp_i64vec3
    +
    + +

    High qualifier 64 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 294 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i64, highp > highp_i64vec4
    +
    + +

    High qualifier 64 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 295 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 highp_i8
    +
    + +

    High qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 33 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i8, highp > highp_i8vec1
    +
    + +

    High qualifier 8 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 232 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i8, highp > highp_i8vec2
    +
    + +

    High qualifier 8 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 233 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i8, highp > highp_i8vec3
    +
    + +

    High qualifier 8 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 234 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i8, highp > highp_i8vec4
    +
    + +

    High qualifier 8 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 235 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 highp_int16
    +
    + +

    High qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 52 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 highp_int16_t
    +
    + +

    High qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 56 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 highp_int32
    +
    + +

    High qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 66 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 highp_int32_t
    +
    + +

    32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 70 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 highp_int64
    +
    + +

    High qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 80 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 highp_int64_t
    +
    + +

    High qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 84 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 highp_int8
    +
    + +

    High qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 38 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 highp_int8_t
    +
    + +

    High qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 42 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 highp_u16
    +
    + +

    High qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 105 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u16, highp > highp_u16vec1
    +
    + +

    High qualifier 16 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 354 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u16, highp > highp_u16vec2
    +
    + +

    High qualifier 16 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 355 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u16, highp > highp_u16vec3
    +
    + +

    High qualifier 16 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 356 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u16, highp > highp_u16vec4
    +
    + +

    High qualifier 16 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 357 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 highp_u32
    +
    + +

    High qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 119 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, highp > highp_u32vec1
    +
    + +

    High qualifier 32 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 374 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, highp > highp_u32vec2
    +
    + +

    High qualifier 32 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 375 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, highp > highp_u32vec3
    +
    + +

    High qualifier 32 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 376 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, highp > highp_u32vec4
    +
    + +

    High qualifier 32 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 377 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 highp_u64
    +
    + +

    High qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 133 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u64, highp > highp_u64vec1
    +
    + +

    High qualifier 64 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 394 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u64, highp > highp_u64vec2
    +
    + +

    High qualifier 64 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 395 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u64, highp > highp_u64vec3
    +
    + +

    High qualifier 64 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 396 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u64, highp > highp_u64vec4
    +
    + +

    High qualifier 64 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 397 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 highp_u8
    +
    + +

    High qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 91 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u8, highp > highp_u8vec1
    +
    + +

    High qualifier 8 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 334 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u8, highp > highp_u8vec2
    +
    + +

    High qualifier 8 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 335 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u8, highp > highp_u8vec3
    +
    + +

    High qualifier 8 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 336 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u8, highp > highp_u8vec4
    +
    + +

    High qualifier 8 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 337 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 highp_uint16
    +
    + +

    High qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 110 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 highp_uint16_t
    +
    + +

    High qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 114 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 highp_uint32
    +
    + +

    High qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 124 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 highp_uint32_t
    +
    + +

    High qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 128 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 highp_uint64
    +
    + +

    High qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 138 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 highp_uint64_t
    +
    + +

    High qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 142 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 highp_uint8
    +
    + +

    High qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 96 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 highp_uint8_t
    +
    + +

    High qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 100 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 i16
    +
    + +

    16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 48 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i16, defaultp > i16vec1
    +
    + +

    16 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 257 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i16, defaultp > i16vec2
    +
    + +

    16 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 258 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i16, defaultp > i16vec3
    +
    + +

    16 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 259 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i16, defaultp > i16vec4
    +
    + +

    16 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 260 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 i32
    +
    + +

    32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 62 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i32, defaultp > i32vec1
    +
    + +

    32 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 277 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, defaultp > i32vec2
    +
    + +

    32 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 278 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, defaultp > i32vec3
    +
    + +

    32 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 279 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, defaultp > i32vec4
    +
    + +

    32 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 280 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 i64
    +
    + +

    64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 76 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i64, defaultp > i64vec1
    +
    + +

    64 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 297 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i64, defaultp > i64vec2
    +
    + +

    64 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 298 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i64, defaultp > i64vec3
    +
    + +

    64 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 299 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i64, defaultp > i64vec4
    +
    + +

    64 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 300 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 i8
    +
    + +

    8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 34 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i8, defaultp > i8vec1
    +
    + +

    8 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 237 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i8, defaultp > i8vec2
    +
    + +

    8 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 238 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i8, defaultp > i8vec3
    +
    + +

    8 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 239 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i8, defaultp > i8vec4
    +
    + +

    8 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 240 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 int16_t
    +
    + +

    16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 57 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 int32_t
    +
    + +

    32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 71 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 int64_t
    +
    + +

    64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 85 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 int8_t
    +
    + +

    8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 43 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 lowp_f32
    +
    + +

    Low 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 147 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f32mat2x2 lowp_f32mat2
    +
    + +

    Low single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 540 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, lowp > lowp_f32mat2x2
    +
    + +

    Low single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 670 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, lowp > lowp_f32mat2x3
    +
    + +

    Low single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 671 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, lowp > lowp_f32mat2x4
    +
    + +

    Low single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 672 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f32mat3x3 lowp_f32mat3
    +
    + +

    Low single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 541 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, lowp > lowp_f32mat3x2
    +
    + +

    Low single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 673 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, lowp > lowp_f32mat3x3
    +
    + +

    Low single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 674 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, lowp > lowp_f32mat3x4
    +
    + +

    Low single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 675 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f32mat4x4 lowp_f32mat4
    +
    + +

    Low single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 542 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, lowp > lowp_f32mat4x2
    +
    + +

    Low single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 676 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, lowp > lowp_f32mat4x3
    +
    + +

    Low single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 677 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, lowp > lowp_f32mat4x4
    +
    + +

    Low single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 678 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f32, lowp > lowp_f32quat
    +
    + +

    Low single-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 802 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f32, lowp > lowp_f32vec1
    +
    + +

    Low single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 446 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f32, lowp > lowp_f32vec2
    +
    + +

    Low single-qualifier floating-point vector of 2 components.

    +
    See also
    core_precision
    + +

    Definition at line 447 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f32, lowp > lowp_f32vec3
    +
    + +

    Low single-qualifier floating-point vector of 3 components.

    +
    See also
    core_precision
    + +

    Definition at line 448 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f32, lowp > lowp_f32vec4
    +
    + +

    Low single-qualifier floating-point vector of 4 components.

    +
    See also
    core_precision
    + +

    Definition at line 449 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 lowp_f64
    +
    + +

    Low 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 163 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f64mat2x2 lowp_f64mat2
    +
    + +

    Low double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 572 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, lowp > lowp_f64mat2x2
    +
    + +

    Low double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 750 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f64, lowp > lowp_f64mat2x3
    +
    + +

    Low double-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 751 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f64, lowp > lowp_f64mat2x4
    +
    + +

    Low double-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 752 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f64mat3x3 lowp_f64mat3
    +
    + +

    Low double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 573 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f64, lowp > lowp_f64mat3x2
    +
    + +

    Low double-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 753 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, lowp > lowp_f64mat3x3
    +
    + +

    Low double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 754 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f64, lowp > lowp_f64mat3x4
    +
    + +

    Low double-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 755 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_f64mat4x4 lowp_f64mat4
    +
    + +

    Low double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 574 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f64, lowp > lowp_f64mat4x2
    +
    + +

    Low double-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 756 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f64, lowp > lowp_f64mat4x3
    +
    + +

    Low double-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 757 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, lowp > lowp_f64mat4x4
    +
    + +

    Low double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 758 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f64, lowp > lowp_f64quat
    +
    + +

    Low double-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 812 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f64, lowp > lowp_f64vec1
    +
    + +

    Low double-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 486 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, lowp > lowp_f64vec2
    +
    + +

    Low double-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 487 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, lowp > lowp_f64vec3
    +
    + +

    Low double-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 488 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, lowp > lowp_f64vec4
    +
    + +

    Low double-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 489 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 lowp_float32
    +
    + +

    Low 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 152 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 lowp_float32_t
    +
    + +

    Low 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 157 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 lowp_float64
    +
    + +

    Low 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 168 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 lowp_float64_t
    +
    + +

    Low 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 173 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_fmat2x2 lowp_fmat2
    +
    + +

    Low single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 524 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, lowp > lowp_fmat2x2
    +
    + +

    Low single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 630 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, lowp > lowp_fmat2x3
    +
    + +

    Low single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 631 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, lowp > lowp_fmat2x4
    +
    + +

    Low single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 632 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_fmat3x3 lowp_fmat3
    +
    + +

    Low single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 525 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, lowp > lowp_fmat3x2
    +
    + +

    Low single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 633 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, lowp > lowp_fmat3x3
    +
    + +

    Low single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 634 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, lowp > lowp_fmat3x4
    +
    + +

    Low single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 635 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef lowp_fmat4x4 lowp_fmat4
    +
    + +

    Low single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 526 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, lowp > lowp_fmat4x2
    +
    + +

    Low single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 636 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, lowp > lowp_fmat4x3
    +
    + +

    Low single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 637 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, lowp > lowp_fmat4x4
    +
    + +

    Low single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 638 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, float, lowp > lowp_fvec1
    +
    + +

    Low single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 426 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, lowp > lowp_fvec2
    +
    + +

    Low single-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 427 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, lowp > lowp_fvec3
    +
    + +

    Low single-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 428 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, lowp > lowp_fvec4
    +
    + +

    Low single-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 429 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 lowp_i16
    +
    + +

    Low qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 45 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i16, lowp > lowp_i16vec1
    +
    + +

    Low qualifier 16 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 242 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i16, lowp > lowp_i16vec2
    +
    + +

    Low qualifier 16 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 243 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i16, lowp > lowp_i16vec3
    +
    + +

    Low qualifier 16 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 244 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i16, lowp > lowp_i16vec4
    +
    + +

    Low qualifier 16 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 245 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 lowp_i32
    +
    + +

    Low qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 59 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i32, lowp > lowp_i32vec1
    +
    + +

    Low qualifier 32 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 262 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, lowp > lowp_i32vec2
    +
    + +

    Low qualifier 32 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 263 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, lowp > lowp_i32vec3
    +
    + +

    Low qualifier 32 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 264 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, lowp > lowp_i32vec4
    +
    + +

    Low qualifier 32 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 265 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 lowp_i64
    +
    + +

    Low qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 73 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i64, lowp > lowp_i64vec1
    +
    + +

    Low qualifier 64 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 282 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i64, lowp > lowp_i64vec2
    +
    + +

    Low qualifier 64 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 283 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i64, lowp > lowp_i64vec3
    +
    + +

    Low qualifier 64 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 284 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i64, lowp > lowp_i64vec4
    +
    + +

    Low qualifier 64 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 285 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 lowp_i8
    +
    + +

    Low qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 31 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i8, lowp > lowp_i8vec1
    +
    + +

    Low qualifier 8 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 222 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i8, lowp > lowp_i8vec2
    +
    + +

    Low qualifier 8 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 223 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i8, lowp > lowp_i8vec3
    +
    + +

    Low qualifier 8 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 224 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i8, lowp > lowp_i8vec4
    +
    + +

    Low qualifier 8 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 225 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 lowp_int16
    +
    + +

    Low qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 50 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 lowp_int16_t
    +
    + +

    Low qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 54 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 lowp_int32
    +
    + +

    Low qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 64 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 lowp_int32_t
    +
    + +

    Low qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 68 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 lowp_int64
    +
    + +

    Low qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 78 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 lowp_int64_t
    +
    + +

    Low qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 82 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 lowp_int8
    +
    + +

    Low qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 36 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 lowp_int8_t
    +
    + +

    Low qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 40 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 lowp_u16
    +
    + +

    Low qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 103 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u16, lowp > lowp_u16vec1
    +
    + +

    Low qualifier 16 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 344 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u16, lowp > lowp_u16vec2
    +
    + +

    Low qualifier 16 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 345 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u16, lowp > lowp_u16vec3
    +
    + +

    Low qualifier 16 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 346 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u16, lowp > lowp_u16vec4
    +
    + +

    Low qualifier 16 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 347 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 lowp_u32
    +
    + +

    Low qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 117 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, lowp > lowp_u32vec1
    +
    + +

    Low qualifier 32 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 364 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, lowp > lowp_u32vec2
    +
    + +

    Low qualifier 32 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 365 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, lowp > lowp_u32vec3
    +
    + +

    Low qualifier 32 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 366 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, lowp > lowp_u32vec4
    +
    + +

    Low qualifier 32 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 367 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 lowp_u64
    +
    + +

    Low qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 131 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u64, lowp > lowp_u64vec1
    +
    + +

    Low qualifier 64 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 384 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u64, lowp > lowp_u64vec2
    +
    + +

    Low qualifier 64 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 385 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u64, lowp > lowp_u64vec3
    +
    + +

    Low qualifier 64 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 386 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u64, lowp > lowp_u64vec4
    +
    + +

    Low qualifier 64 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 387 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 lowp_u8
    +
    + +

    Low qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 89 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u8, lowp > lowp_u8vec1
    +
    + +

    Low qualifier 8 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 324 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u8, lowp > lowp_u8vec2
    +
    + +

    Low qualifier 8 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 325 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u8, lowp > lowp_u8vec3
    +
    + +

    Low qualifier 8 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 326 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u8, lowp > lowp_u8vec4
    +
    + +

    Low qualifier 8 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 327 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 lowp_uint16
    +
    + +

    Low qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 108 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 lowp_uint16_t
    +
    + +

    Low qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 112 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 lowp_uint32
    +
    + +

    Low qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 122 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 lowp_uint32_t
    +
    + +

    Low qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 126 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 lowp_uint64
    +
    + +

    Low qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 136 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 lowp_uint64_t
    +
    + +

    Low qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 140 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 lowp_uint8
    +
    + +

    Low qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 94 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 lowp_uint8_t
    +
    + +

    Low qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 98 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 mediump_f32
    +
    + +

    Medium 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 148 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f32mat2x2 mediump_f32mat2
    +
    + +

    Medium single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Medium single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 544 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, mediump > mediump_f32mat2x2
    +
    + +

    High single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Low single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 680 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, mediump > mediump_f32mat2x3
    +
    + +

    Medium single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 681 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, mediump > mediump_f32mat2x4
    +
    + +

    Medium single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 682 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f32mat3x3 mediump_f32mat3
    +
    + +

    Medium single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 545 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, mediump > mediump_f32mat3x2
    +
    + +

    Medium single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 683 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, mediump > mediump_f32mat3x3
    +
    + +

    Medium single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 684 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, mediump > mediump_f32mat3x4
    +
    + +

    Medium single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 685 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f32mat4x4 mediump_f32mat4
    +
    + +

    Medium single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 546 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, mediump > mediump_f32mat4x2
    +
    + +

    Medium single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 686 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, mediump > mediump_f32mat4x3
    +
    + +

    Medium single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 687 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, mediump > mediump_f32mat4x4
    +
    + +

    Medium single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 688 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f32, mediump > mediump_f32quat
    +
    + +

    Medium single-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 803 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f32, mediump > mediump_f32vec1
    +
    + +

    Medium single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 451 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f32, mediump > mediump_f32vec2
    +
    + +

    Medium single-qualifier floating-point vector of 2 components.

    +
    See also
    core_precision
    + +

    Definition at line 452 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f32, mediump > mediump_f32vec3
    +
    + +

    Medium single-qualifier floating-point vector of 3 components.

    +
    See also
    core_precision
    + +

    Definition at line 453 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f32, mediump > mediump_f32vec4
    +
    + +

    Medium single-qualifier floating-point vector of 4 components.

    +
    See also
    core_precision
    + +

    Definition at line 454 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 mediump_f64
    +
    + +

    Medium 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 164 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f64mat2x2 mediump_f64mat2
    +
    + +

    Medium double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Medium double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 576 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f64, mediump > mediump_f64mat2x2
    +
    + +

    Medium double-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Medium double-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 760 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f64, mediump > mediump_f64mat2x3
    +
    + +

    Medium double-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 761 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f64, mediump > mediump_f64mat2x4
    +
    + +

    Medium double-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 762 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f64mat3x3 mediump_f64mat3
    +
    + +

    Medium double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 577 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f64, mediump > mediump_f64mat3x2
    +
    + +

    Medium double-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 763 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f64, mediump > mediump_f64mat3x3
    +
    + +

    Medium double-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 764 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f64, mediump > mediump_f64mat3x4
    +
    + +

    Medium double-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 765 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_f64mat4x4 mediump_f64mat4
    +
    + +

    Medium double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 578 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f64, mediump > mediump_f64mat4x2
    +
    + +

    Medium double-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 766 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f64, mediump > mediump_f64mat4x3
    +
    + +

    Medium double-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 767 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f64, mediump > mediump_f64mat4x4
    +
    + +

    Medium double-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 768 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef qua< f64, mediump > mediump_f64quat
    +
    + +

    Medium double-qualifier floating-point quaternion.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 813 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, f64, mediump > mediump_f64vec1
    +
    + +

    Medium double-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 491 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, f64, mediump > mediump_f64vec2
    +
    + +

    Medium double-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 492 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, f64, mediump > mediump_f64vec3
    +
    + +

    Medium double-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 493 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, f64, mediump > mediump_f64vec4
    +
    + +

    Medium double-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 494 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 mediump_float32
    +
    + +

    Medium 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 153 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float32 mediump_float32_t
    +
    + +

    Medium 32 bit single-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 158 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 mediump_float64
    +
    + +

    Medium 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 169 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef float64 mediump_float64_t
    +
    + +

    Medium 64 bit double-qualifier floating-point scalar.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 174 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_fmat2x2 mediump_fmat2
    +
    + +

    Medium single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Medium single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 528 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 2, f32, mediump > mediump_fmat2x2
    +
    + +

    Medium single-qualifier floating-point 1x1 matrix.

    +
    See also
    GLM_GTC_type_precision Medium single-qualifier floating-point 2x2 matrix.
    +
    +GLM_GTC_type_precision
    + +

    Definition at line 640 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 3, f32, mediump > mediump_fmat2x3
    +
    + +

    Medium single-qualifier floating-point 2x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 641 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 2, 4, f32, mediump > mediump_fmat2x4
    +
    + +

    Medium single-qualifier floating-point 2x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 642 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_fmat3x3 mediump_fmat3
    +
    + +

    Medium single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 529 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 2, f32, mediump > mediump_fmat3x2
    +
    + +

    Medium single-qualifier floating-point 3x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 643 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 3, f32, mediump > mediump_fmat3x3
    +
    + +

    Medium single-qualifier floating-point 3x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 644 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 3, 4, f32, mediump > mediump_fmat3x4
    +
    + +

    Medium single-qualifier floating-point 3x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 645 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mediump_fmat4x4 mediump_fmat4
    +
    + +

    Medium single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 530 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 2, f32, mediump > mediump_fmat4x2
    +
    + +

    Medium single-qualifier floating-point 4x2 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 646 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 3, f32, mediump > mediump_fmat4x3
    +
    + +

    Medium single-qualifier floating-point 4x3 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 647 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef mat< 4, 4, f32, mediump > mediump_fmat4x4
    +
    + +

    Medium single-qualifier floating-point 4x4 matrix.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 648 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, float, mediump > mediump_fvec1
    +
    + +

    Medium single-qualifier floating-point vector of 1 component.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 431 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, float, mediump > mediump_fvec2
    +
    + +

    Medium Single-qualifier floating-point vector of 2 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 432 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, float, mediump > mediump_fvec3
    +
    + +

    Medium Single-qualifier floating-point vector of 3 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 433 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, float, mediump > mediump_fvec4
    +
    + +

    Medium Single-qualifier floating-point vector of 4 components.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 434 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 mediump_i16
    +
    + +

    Medium qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 46 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i16, mediump > mediump_i16vec1
    +
    + +

    Medium qualifier 16 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 247 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i16, mediump > mediump_i16vec2
    +
    + +

    Medium qualifier 16 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 248 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i16, mediump > mediump_i16vec3
    +
    + +

    Medium qualifier 16 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 249 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i16, mediump > mediump_i16vec4
    +
    + +

    Medium qualifier 16 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 250 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 mediump_i32
    +
    + +

    Medium qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 60 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i32, mediump > mediump_i32vec1
    +
    + +

    Medium qualifier 32 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 267 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i32, mediump > mediump_i32vec2
    +
    + +

    Medium qualifier 32 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 268 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i32, mediump > mediump_i32vec3
    +
    + +

    Medium qualifier 32 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 269 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i32, mediump > mediump_i32vec4
    +
    + +

    Medium qualifier 32 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 270 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 mediump_i64
    +
    + +

    Medium qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 74 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i64, mediump > mediump_i64vec1
    +
    + +

    Medium qualifier 64 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 287 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i64, mediump > mediump_i64vec2
    +
    + +

    Medium qualifier 64 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 288 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i64, mediump > mediump_i64vec3
    +
    + +

    Medium qualifier 64 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 289 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i64, mediump > mediump_i64vec4
    +
    + +

    Medium qualifier 64 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 290 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 mediump_i8
    +
    + +

    Medium qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 32 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, i8, mediump > mediump_i8vec1
    +
    + +

    Medium qualifier 8 bit signed integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 227 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, i8, mediump > mediump_i8vec2
    +
    + +

    Medium qualifier 8 bit signed integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 228 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, i8, mediump > mediump_i8vec3
    +
    + +

    Medium qualifier 8 bit signed integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 229 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, i8, mediump > mediump_i8vec4
    +
    + +

    Medium qualifier 8 bit signed integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 230 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 mediump_int16
    +
    + +

    Medium qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 51 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int16 mediump_int16_t
    +
    + +

    Medium qualifier 16 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 55 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 mediump_int32
    +
    + +

    Medium qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 65 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int32 mediump_int32_t
    +
    + +

    Medium qualifier 32 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 69 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 mediump_int64
    +
    + +

    Medium qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 79 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int64 mediump_int64_t
    +
    + +

    Medium qualifier 64 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 83 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 mediump_int8
    +
    + +

    Medium qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 37 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::int8 mediump_int8_t
    +
    + +

    Medium qualifier 8 bit signed integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 41 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 mediump_u16
    +
    + +

    Medium qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 104 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u16, mediump > mediump_u16vec1
    +
    + +

    Medium qualifier 16 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 349 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u16, mediump > mediump_u16vec2
    +
    + +

    Medium qualifier 16 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 350 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u16, mediump > mediump_u16vec3
    +
    + +

    Medium qualifier 16 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 351 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u16, mediump > mediump_u16vec4
    +
    + +

    Medium qualifier 16 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 352 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 mediump_u32
    +
    + +

    Medium qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 118 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, mediump > mediump_u32vec1
    +
    + +

    Medium qualifier 32 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 369 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, mediump > mediump_u32vec2
    +
    + +

    Medium qualifier 32 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 370 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, mediump > mediump_u32vec3
    +
    + +

    Medium qualifier 32 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 371 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, mediump > mediump_u32vec4
    +
    + +

    Medium qualifier 32 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 372 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 mediump_u64
    +
    + +

    Medium qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 132 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u64, mediump > mediump_u64vec1
    +
    + +

    Medium qualifier 64 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 389 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u64, mediump > mediump_u64vec2
    +
    + +

    Medium qualifier 64 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 390 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u64, mediump > mediump_u64vec3
    +
    + +

    Medium qualifier 64 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 391 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u64, mediump > mediump_u64vec4
    +
    + +

    Medium qualifier 64 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 392 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 mediump_u8
    +
    + +

    Medium qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 90 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u8, mediump > mediump_u8vec1
    +
    + +

    Medium qualifier 8 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 329 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u8, mediump > mediump_u8vec2
    +
    + +

    Medium qualifier 8 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 330 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u8, mediump > mediump_u8vec3
    +
    + +

    Medium qualifier 8 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 331 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u8, mediump > mediump_u8vec4
    +
    + +

    Medium qualifier 8 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 332 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 mediump_uint16
    +
    + +

    Medium qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 109 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 mediump_uint16_t
    +
    + +

    Medium qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 113 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 mediump_uint32
    +
    + +

    Medium qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 123 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 mediump_uint32_t
    +
    + +

    Medium qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 127 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 mediump_uint64
    +
    + +

    Medium qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 137 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 mediump_uint64_t
    +
    + +

    Medium qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 141 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 mediump_uint8
    +
    + +

    Medium qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 95 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 mediump_uint8_t
    +
    + +

    Medium qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 99 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 u16
    +
    + +

    Default qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 106 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u16, defaultp > u16vec1
    +
    + +

    Default qualifier 16 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 359 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u16, defaultp > u16vec2
    +
    + +

    Default qualifier 16 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 360 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u16, defaultp > u16vec3
    +
    + +

    Default qualifier 16 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 361 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u16, defaultp > u16vec4
    +
    + +

    Default qualifier 16 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 362 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 u32
    +
    + +

    Default qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 120 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u32, defaultp > u32vec1
    +
    + +

    Default qualifier 32 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 379 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u32, defaultp > u32vec2
    +
    + +

    Default qualifier 32 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 380 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u32, defaultp > u32vec3
    +
    + +

    Default qualifier 32 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 381 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u32, defaultp > u32vec4
    +
    + +

    Default qualifier 32 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 382 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 u64
    +
    + +

    Default qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 134 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u64, defaultp > u64vec1
    +
    + +

    Default qualifier 64 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 399 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u64, defaultp > u64vec2
    +
    + +

    Default qualifier 64 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 400 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u64, defaultp > u64vec3
    +
    + +

    Default qualifier 64 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 401 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u64, defaultp > u64vec4
    +
    + +

    Default qualifier 64 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 402 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 u8
    +
    + +

    Default qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 92 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 1, u8, defaultp > u8vec1
    +
    + +

    Default qualifier 8 bit unsigned integer scalar type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 339 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 2, u8, defaultp > u8vec2
    +
    + +

    Default qualifier 8 bit unsigned integer vector of 2 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 340 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 3, u8, defaultp > u8vec3
    +
    + +

    Default qualifier 8 bit unsigned integer vector of 3 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 341 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec< 4, u8, defaultp > u8vec4
    +
    + +

    Default qualifier 8 bit unsigned integer vector of 4 components type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 342 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 uint16_t
    +
    + +

    Default qualifier 16 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 115 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 uint32_t
    +
    + +

    Default qualifier 32 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 129 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 uint64_t
    +
    + +

    Default qualifier 64 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 143 of file fwd.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint8 uint8_t
    +
    + +

    Default qualifier 8 bit unsigned integer type.

    +
    See also
    GLM_GTC_type_precision
    + +

    Definition at line 101 of file fwd.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00305.html b/external/glm-0.9.9.8/doc/api/a00305.html new file mode 100644 index 0000000..9ff2cdd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00305.html @@ -0,0 +1,873 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_type_ptr + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTC_type_ptr
    +
    +
    + +

    Include <glm/gtc/type_ptr.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > make_mat2x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 3, T, defaultp > make_mat2x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 4, T, defaultp > make_mat2x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 2, T, defaultp > make_mat3x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > make_mat3x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 4, T, defaultp > make_mat3x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 2, T, defaultp > make_mat4x2 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 3, T, defaultp > make_mat4x3 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > make_mat4x4 (T const *const ptr)
     Build a matrix from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL qua< T, defaultp > make_quat (T const *const ptr)
     Build a quaternion from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, T, Q > make_vec1 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > make_vec2 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 2, T, defaultp > make_vec2 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > make_vec3 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 3, T, defaultp > make_vec3 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 1, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 2, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 3, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > make_vec4 (vec< 4, T, Q > const &v)
     Build a vector from a pointer. More...
     
    template<typename T >
    GLM_FUNC_DECL vec< 4, T, defaultp > make_vec4 (T const *const ptr)
     Build a vector from a pointer. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type const * value_ptr (genType const &v)
     Return the constant address to the data of the input parameter. More...
     
    +

    Detailed Description

    +

    Include <glm/gtc/type_ptr.hpp> to use the features of this extension.

    +

    Handles the interaction between pointers and vector, matrix types.

    +

    This extension defines an overloaded function, glm::value_ptr. It returns a pointer to the memory layout of the object. Matrix types store their values in column-major order.

    +

    This is useful for uploading data to matrices or copying data to buffer objects.

    +

    Example:

    #include <glm/glm.hpp>
    + +
    +
    glm::vec3 aVector(3);
    +
    glm::mat4 someMatrix(1.0);
    +
    +
    glUniform3fv(uniformLoc, 1, glm::value_ptr(aVector));
    +
    glUniformMatrix4fv(uniformMatrixLoc, 1, GL_FALSE, glm::value_ptr(someMatrix));
    +

    <glm/gtc/type_ptr.hpp> need to be included to use the features of this extension.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, defaultp> glm::make_mat2 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, defaultp> glm::make_mat2x2 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 3, T, defaultp> glm::make_mat2x3 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 4, T, defaultp> glm::make_mat2x4 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, defaultp> glm::make_mat3 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 2, T, defaultp> glm::make_mat3x2 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, defaultp> glm::make_mat3x3 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 4, T, defaultp> glm::make_mat3x4 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::make_mat4 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 2, T, defaultp> glm::make_mat4x2 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 3, T, defaultp> glm::make_mat4x3 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::make_mat4x4 (T const *const ptr)
    +
    + +

    Build a matrix from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, defaultp> glm::make_quat (T const *const ptr)
    +
    + +

    Build a quaternion from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<1, T, Q> glm::make_vec1 (vec< 1, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<1, T, Q> glm::make_vec1 (vec< 2, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<1, T, Q> glm::make_vec1 (vec< 3, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<1, T, Q> glm::make_vec1 (vec< 4, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, Q> glm::make_vec2 (vec< 1, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, Q> glm::make_vec2 (vec< 2, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, Q> glm::make_vec2 (vec< 3, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, Q> glm::make_vec2 (vec< 4, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, defaultp> glm::make_vec2 (T const *const ptr)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::make_vec3 (vec< 1, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::make_vec3 (vec< 2, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::make_vec3 (vec< 3, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::make_vec3 (vec< 4, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, defaultp> glm::make_vec3 (T const *const ptr)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::make_vec4 (vec< 1, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::make_vec4 (vec< 2, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::make_vec4 (vec< 3, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::make_vec4 (vec< 4, T, Q > const & v)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, defaultp> glm::make_vec4 (T const *const ptr)
    +
    + +

    Build a vector from a pointer.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::value_type const* glm::value_ptr (genType const & v)
    +
    + +

    Return the constant address to the data of the input parameter.

    +
    See also
    GLM_GTC_type_ptr
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00306.html b/external/glm-0.9.9.8/doc/api/a00306.html new file mode 100644 index 0000000..1062210 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00306.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_ulp + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    + +

    Include <glm/gtc/ulp.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtc/ulp.hpp> to use the features of this extension.

    +

    Allow the measurement of the accuracy of a function against a reference implementation. This extension works on floating-point data and provide results in ULP.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00307.html b/external/glm-0.9.9.8/doc/api/a00307.html new file mode 100644 index 0000000..05397e0 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00307.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: GLM_GTC_vec1 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    +
    +
    + +

    Include <glm/gtc/vec1.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtc/vec1.hpp> to use the features of this extension.

    +

    Add vec1, ivec1, uvec1 and bvec1 types.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00308.html b/external/glm-0.9.9.8/doc/api/a00308.html new file mode 100644 index 0000000..249a8ab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00308.html @@ -0,0 +1,1357 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_associated_min_max + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_associated_min_max
    +
    +
    + +

    Include <glm/gtx/associated_min_max.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Maximum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c)
     Maximum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c, T w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMax (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Maximum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<typename T , typename U , qualifier Q>
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< 2, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, const vec< L, U, Q > &a, T y, const vec< L, U, Q > &b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)
     Minimum comparison between 2 variables and returns 2 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)
     Minimum comparison between 3 variables and returns 3 associated variable values. More...
     
    template<typename T , typename U >
    GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c, T w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    template<length_t L, typename T , typename U , qualifier Q>
    GLM_FUNC_DECL vec< L, U, Q > associatedMin (vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)
     Minimum comparison between 4 variables and returns 4 associated variable values. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/associated_min_max.hpp> to use the features of this extension.

    +

    Min and max functions that return associated values not the compared onces.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMax (x,
    a,
    y,
    b 
    )
    +
    + +

    Maximum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<2, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b 
    )
    +
    + +

    Maximum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::associatedMax (x,
    vec< L, U, Q > const & a,
    y,
    vec< L, U, Q > const & b 
    )
    +
    + +

    Maximum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    a,
    vec< L, T, Q > const & y,
    b 
    )
    +
    + +

    Maximum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMax (x,
    a,
    y,
    b,
    z,
    c 
    )
    +
    + +

    Maximum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b,
    vec< L, T, Q > const & z,
    vec< L, U, Q > const & c 
    )
    +
    + +

    Maximum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::associatedMax (x,
    vec< L, U, Q > const & a,
    y,
    vec< L, U, Q > const & b,
    z,
    vec< L, U, Q > const & c 
    )
    +
    + +

    Maximum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    a,
    vec< L, T, Q > const & y,
    b,
    vec< L, T, Q > const & z,
    c 
    )
    +
    + +

    Maximum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMax (x,
    a,
    y,
    b,
    z,
    c,
    w,
    d 
    )
    +
    + +

    Maximum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b,
    vec< L, T, Q > const & z,
    vec< L, U, Q > const & c,
    vec< L, T, Q > const & w,
    vec< L, U, Q > const & d 
    )
    +
    + +

    Maximum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (x,
    vec< L, U, Q > const & a,
    y,
    vec< L, U, Q > const & b,
    z,
    vec< L, U, Q > const & c,
    w,
    vec< L, U, Q > const & d 
    )
    +
    + +

    Maximum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMax (vec< L, T, Q > const & x,
    a,
    vec< L, T, Q > const & y,
    b,
    vec< L, T, Q > const & z,
    c,
    vec< L, T, Q > const & w,
    d 
    )
    +
    + +

    Maximum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMin (x,
    a,
    y,
    b 
    )
    +
    + +

    Minimum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<2, U, Q> glm::associatedMin (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b 
    )
    +
    + +

    Minimum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (x,
    const vec< L, U, Q > & a,
    y,
    const vec< L, U, Q > & b 
    )
    +
    + +

    Minimum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (vec< L, T, Q > const & x,
    a,
    vec< L, T, Q > const & y,
    b 
    )
    +
    + +

    Minimum comparison between 2 variables and returns 2 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMin (x,
    a,
    y,
    b,
    z,
    c 
    )
    +
    + +

    Minimum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b,
    vec< L, T, Q > const & z,
    vec< L, U, Q > const & c 
    )
    +
    + +

    Minimum comparison between 3 variables and returns 3 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL U glm::associatedMin (x,
    a,
    y,
    b,
    z,
    c,
    w,
    d 
    )
    +
    + +

    Minimum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (vec< L, T, Q > const & x,
    vec< L, U, Q > const & a,
    vec< L, T, Q > const & y,
    vec< L, U, Q > const & b,
    vec< L, T, Q > const & z,
    vec< L, U, Q > const & c,
    vec< L, T, Q > const & w,
    vec< L, U, Q > const & d 
    )
    +
    + +

    Minimum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (x,
    vec< L, U, Q > const & a,
    y,
    vec< L, U, Q > const & b,
    z,
    vec< L, U, Q > const & c,
    w,
    vec< L, U, Q > const & d 
    )
    +
    + +

    Minimum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, U, Q> glm::associatedMin (vec< L, T, Q > const & x,
    a,
    vec< L, T, Q > const & y,
    b,
    vec< L, T, Q > const & z,
    c,
    vec< L, T, Q > const & w,
    d 
    )
    +
    + +

    Minimum comparison between 4 variables and returns 4 associated variable values.

    +
    See also
    GLM_GTX_associated_min_max
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00309.html b/external/glm-0.9.9.8/doc/api/a00309.html new file mode 100644 index 0000000..cd92a54 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00309.html @@ -0,0 +1,322 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_bit + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + + +
    + +

    Include <glm/gtx/bit.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genIUType >
    GLM_FUNC_DECL genIUType highestBitValue (genIUType Value)
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > highestBitValue (vec< L, T, Q > const &value)
     Find the highest bit set to 1 in a integer variable and return its value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL genIUType lowestBitValue (genIUType Value)
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove (genIUType Value)
     Return the power of two number which value is just higher the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoAbove (vec< L, T, Q > const &value)
     Return the power of two number which value is just higher the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow (genIUType Value)
     Return the power of two number which value is just lower the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoBelow (vec< L, T, Q > const &value)
     Return the power of two number which value is just lower the input value. More...
     
    template<typename genIUType >
    GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest (genIUType Value)
     Return the power of two number which value is the closet to the input value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, Q > powerOfTwoNearest (vec< L, T, Q > const &value)
     Return the power of two number which value is the closet to the input value. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/bit.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::highestBitValue (genIUType Value)
    +
    +
    See also
    GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::highestBitValue (vec< L, T, Q > const & value)
    +
    + +

    Find the highest bit set to 1 in a integer variable and return its value.

    +
    See also
    GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genIUType glm::lowestBitValue (genIUType Value)
    +
    +
    See also
    GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoAbove (genIUType Value)
    +
    + +

    Return the power of two number which value is just higher the input value.

    +

    Deprecated, use ceilPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> glm::powerOfTwoAbove (vec< L, T, Q > const & value)
    +
    + +

    Return the power of two number which value is just higher the input value.

    +

    Deprecated, use ceilPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoBelow (genIUType Value)
    +
    + +

    Return the power of two number which value is just lower the input value.

    +

    Deprecated, use floorPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> glm::powerOfTwoBelow (vec< L, T, Q > const & value)
    +
    + +

    Return the power of two number which value is just lower the input value.

    +

    Deprecated, use floorPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoNearest (genIUType Value)
    +
    + +

    Return the power of two number which value is the closet to the input value.

    +

    Deprecated, use roundPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q> glm::powerOfTwoNearest (vec< L, T, Q > const & value)
    +
    + +

    Return the power of two number which value is the closet to the input value.

    +

    Deprecated, use roundPowerOfTwo from GTC_round instead

    +
    See also
    GLM_GTC_round
    +
    +GLM_GTX_bit
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00310.html b/external/glm-0.9.9.8/doc/api/a00310.html new file mode 100644 index 0000000..a0d29ab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00310.html @@ -0,0 +1,147 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_closest_point + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_closest_point
    +
    +
    + +

    Include <glm/gtx/closest_point.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > closestPointOnLine (vec< 3, T, Q > const &point, vec< 3, T, Q > const &a, vec< 3, T, Q > const &b)
     Find the point on a straight line which is the closet of a point. More...
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > closestPointOnLine (vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)
     2d lines work as well
     
    +

    Detailed Description

    +

    Include <glm/gtx/closest_point.hpp> to use the features of this extension.

    +

    Find the point on a straight line which is the closet of a point.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::closestPointOnLine (vec< 3, T, Q > const & point,
    vec< 3, T, Q > const & a,
    vec< 3, T, Q > const & b 
    )
    +
    + +

    Find the point on a straight line which is the closet of a point.

    +
    See also
    GLM_GTX_closest_point
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00311.html b/external/glm-0.9.9.8/doc/api/a00311.html new file mode 100644 index 0000000..8c774bd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00311.html @@ -0,0 +1,122 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_color_encoding + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_color_encoding
    +
    +
    + +

    Include <glm/gtx/color_encoding.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToD50XYZ (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to D50 YUV.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertD65XYZToLinearSRGB (vec< 3, T, Q > const &ColorD65XYZ)
     Convert a D65 YUV color to linear sRGB.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD50XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D50 YUV.
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > convertLinearSRGBToD65XYZ (vec< 3, T, Q > const &ColorLinearSRGB)
     Convert a linear sRGB color to D65 YUV.
     
    +

    Detailed Description

    +

    Include <glm/gtx/color_encoding.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00312.html b/external/glm-0.9.9.8/doc/api/a00312.html new file mode 100644 index 0000000..8a86168 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00312.html @@ -0,0 +1,261 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_color_space + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_color_space
    +
    +
    + +

    Include <glm/gtx/color_space.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > hsvColor (vec< 3, T, Q > const &rgbValue)
     Converts a color from RGB color space to its color in HSV color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T luminosity (vec< 3, T, Q > const &color)
     Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgbColor (vec< 3, T, Q > const &hsvValue)
     Converts a color from HSV color space to its color in RGB color space. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > saturation (T const s)
     Build a saturation matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > saturation (T const s, vec< 3, T, Q > const &color)
     Modify the saturation of a color. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > saturation (T const s, vec< 4, T, Q > const &color)
     Modify the saturation of a color. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/color_space.hpp> to use the features of this extension.

    +

    Related to RGB to HSV conversions and operations.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::hsvColor (vec< 3, T, Q > const & rgbValue)
    +
    + +

    Converts a color from RGB color space to its color in HSV color space.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::luminosity (vec< 3, T, Q > const & color)
    +
    + +

    Compute color luminosity associating ratios (0.33, 0.59, 0.11) to RGB canals.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rgbColor (vec< 3, T, Q > const & hsvValue)
    +
    + +

    Converts a color from HSV color space to its color in RGB color space.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::saturation (T const s)
    +
    + +

    Build a saturation matrix.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::saturation (T const s,
    vec< 3, T, Q > const & color 
    )
    +
    + +

    Modify the saturation of a color.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::saturation (T const s,
    vec< 4, T, Q > const & color 
    )
    +
    + +

    Modify the saturation of a color.

    +
    See also
    GLM_GTX_color_space
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00313.html b/external/glm-0.9.9.8/doc/api/a00313.html new file mode 100644 index 0000000..07be07e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00313.html @@ -0,0 +1,199 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_color_space_YCoCg + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_color_space_YCoCg
    +
    +
    + +

    Include <glm/gtx/color_space_YCoCg.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCg color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR (vec< 3, T, Q > const &rgbColor)
     Convert a color from RGB color space to YCoCgR color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCg color space to RGB color space. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb (vec< 3, T, Q > const &YCoCgColor)
     Convert a color from YCoCgR color space to RGB color space. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/color_space_YCoCg.hpp> to use the features of this extension.

    +

    RGB to YCoCg conversions and operations

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rgb2YCoCg (vec< 3, T, Q > const & rgbColor)
    +
    + +

    Convert a color from RGB color space to YCoCg color space.

    +
    See also
    GLM_GTX_color_space_YCoCg
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rgb2YCoCgR (vec< 3, T, Q > const & rgbColor)
    +
    + +

    Convert a color from RGB color space to YCoCgR color space.

    +
    See also
    "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range"
    +
    +GLM_GTX_color_space_YCoCg
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::YCoCg2rgb (vec< 3, T, Q > const & YCoCgColor)
    +
    + +

    Convert a color from YCoCg color space to RGB color space.

    +
    See also
    GLM_GTX_color_space_YCoCg
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::YCoCgR2rgb (vec< 3, T, Q > const & YCoCgColor)
    +
    + +

    Convert a color from YCoCgR color space to RGB color space.

    +
    See also
    "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range"
    +
    +GLM_GTX_color_space_YCoCg
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00314.html b/external/glm-0.9.9.8/doc/api/a00314.html new file mode 100644 index 0000000..f300873 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00314.html @@ -0,0 +1,257 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_common + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/common.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > closeBounded (vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Returns whether vector components values are within an interval. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fmod (vec< L, T, Q > const &v)
     Similar to 'mod' but with a different rounding and integer support. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::bool_type isdenormal (genType const &x)
     Returns true if x is a denormalized number Numbers whose absolute value is too small to be represented in the normal format are represented in an alternate, denormalized format. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > openBounded (vec< L, T, Q > const &Value, vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)
     Returns whether vector components values are within an interval. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/common.hpp> to use the features of this extension.

    +

    Provide functions to increase the compatibility with Cg and HLSL languages

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::closeBounded (vec< L, T, Q > const & Value,
    vec< L, T, Q > const & Min,
    vec< L, T, Q > const & Max 
    )
    +
    + +

    Returns whether vector components values are within an interval.

    +

    A closed interval includes its endpoints, and is denoted with square brackets.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_relational
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fmod (vec< L, T, Q > const & v)
    +
    + +

    Similar to 'mod' but with a different rounding and integer support.

    +

    Returns 'x - y * trunc(x/y)' instead of 'x - y * floor(x/y)'

    +
    See also
    GLSL mod vs HLSL fmod
    +
    +GLSL mod man page
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::bool_type glm::isdenormal (genType const & x)
    +
    + +

    Returns true if x is a denormalized number Numbers whose absolute value is too small to be represented in the normal format are represented in an alternate, denormalized format.

    +

    This format is less precise but can represent values closer to zero.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    GLSL isnan man page
    +
    +GLSL 4.20.8 specification, section 8.3 Common Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::openBounded (vec< L, T, Q > const & Value,
    vec< L, T, Q > const & Min,
    vec< L, T, Q > const & Max 
    )
    +
    + +

    Returns whether vector components values are within an interval.

    +

    A open interval excludes its endpoints, and is denoted with square brackets.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLM_EXT_vector_relational
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00315.html b/external/glm-0.9.9.8/doc/api/a00315.html new file mode 100644 index 0000000..5d9fba7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00315.html @@ -0,0 +1,430 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_compatibility + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_compatibility
    +
    +
    + +

    Include <glm/gtx/compatibility.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef bool bool1
     boolean type with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef bool bool1x1
     boolean matrix with 1 x 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, bool, highp > bool2
     boolean type with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, bool, highp > bool2x2
     boolean matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, bool, highp > bool2x3
     boolean matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, bool, highp > bool2x4
     boolean matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, bool, highp > bool3
     boolean type with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, bool, highp > bool3x2
     boolean matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, bool, highp > bool3x3
     boolean matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, bool, highp > bool3x4
     boolean matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, bool, highp > bool4
     boolean type with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, bool, highp > bool4x2
     boolean matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, bool, highp > bool4x3
     boolean matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, bool, highp > bool4x4
     boolean matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef double double1
     double-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef double double1x1
     double-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, double, highp > double2
     double-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, double, highp > double2x2
     double-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, double, highp > double2x3
     double-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, double, highp > double2x4
     double-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, double, highp > double3
     double-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, double, highp > double3x2
     double-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, double, highp > double3x3
     double-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, double, highp > double3x4
     double-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, double, highp > double4
     double-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, double, highp > double4x2
     double-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, double, highp > double4x3
     double-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, double, highp > double4x4
     double-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef float float1
     single-qualifier floating-point vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef float float1x1
     single-qualifier floating-point matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, float, highp > float2
     single-qualifier floating-point vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, float, highp > float2x2
     single-qualifier floating-point matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, float, highp > float2x3
     single-qualifier floating-point matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, float, highp > float2x4
     single-qualifier floating-point matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, float, highp > float3
     single-qualifier floating-point vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, float, highp > float3x2
     single-qualifier floating-point matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, float, highp > float3x3
     single-qualifier floating-point matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, float, highp > float3x4
     single-qualifier floating-point matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, float, highp > float4
     single-qualifier floating-point vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, float, highp > float4x2
     single-qualifier floating-point matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, float, highp > float4x3
     single-qualifier floating-point matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, float, highp > float4x4
     single-qualifier floating-point matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef int int1
     integer vector with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef int int1x1
     integer matrix with 1 component. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 2, int, highp > int2
     integer vector with 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 2, int, highp > int2x2
     integer matrix with 2 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 3, int, highp > int2x3
     integer matrix with 2 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 2, 4, int, highp > int2x4
     integer matrix with 2 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 3, int, highp > int3
     integer vector with 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 2, int, highp > int3x2
     integer matrix with 3 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 3, int, highp > int3x3
     integer matrix with 3 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 3, 4, int, highp > int3x4
     integer matrix with 3 x 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef vec< 4, int, highp > int4
     integer vector with 4 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 2, int, highp > int4x2
     integer matrix with 4 x 2 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 3, int, highp > int4x3
     integer matrix with 4 x 3 components. (From GLM_GTX_compatibility extension)
     
    +typedef mat< 4, 4, int, highp > int4x4
     integer matrix with 4 x 4 components. (From GLM_GTX_compatibility extension)
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T atan2 (T x, T y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > atan2 (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > atan2 (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > atan2 (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)
     Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility)
     
    +template<typename genType >
    GLM_FUNC_DECL bool isfinite (genType const &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 1, bool, Q > isfinite (const vec< 1, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, bool, Q > isfinite (const vec< 2, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, bool, Q > isfinite (const vec< 3, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, bool, Q > isfinite (const vec< 4, T, Q > &x)
     Test whether or not a scalar or each vector component is a finite value. (From GLM_GTX_compatibility)
     
    +template<typename T >
    GLM_FUNC_QUALIFIER T lerp (T x, T y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, T a)
     Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > lerp (const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, const vec< 2, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > lerp (const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, const vec< 3, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > lerp (const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)
     Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER T saturate (T x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 2, T, Q > saturate (const vec< 2, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 3, T, Q > saturate (const vec< 3, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER vec< 4, T, Q > saturate (const vec< 4, T, Q > &x)
     Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility)
     
    +

    Detailed Description

    +

    Include <glm/gtx/compatibility.hpp> to use the features of this extension.

    +

    Provide functions to increase the compatibility with Cg and HLSL languages

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00316.html b/external/glm-0.9.9.8/doc/api/a00316.html new file mode 100644 index 0000000..e25aed4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00316.html @@ -0,0 +1,241 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_component_wise + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_component_wise
    +
    +
    + +

    Include <glm/gtx/component_wise.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType::value_type compAdd (genType const &v)
     Add all vector components together. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMax (genType const &v)
     Find the maximum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMin (genType const &v)
     Find the minimum value between single vector components. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType::value_type compMul (genType const &v)
     Multiply all vector components together. More...
     
    template<typename floatType , length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, floatType, Q > compNormalize (vec< L, T, Q > const &v)
     Convert an integer vector to a normalized float vector. More...
     
    template<length_t L, typename T , typename floatType , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > compScale (vec< L, floatType, Q > const &v)
     Convert a normalized float vector to an integer vector. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/component_wise.hpp> to use the features of this extension.

    +

    Operations between components of a type

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::value_type glm::compAdd (genType const & v)
    +
    + +

    Add all vector components together.

    +
    See also
    GLM_GTX_component_wise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::value_type glm::compMax (genType const & v)
    +
    + +

    Find the maximum value between single vector components.

    +
    See also
    GLM_GTX_component_wise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::value_type glm::compMin (genType const & v)
    +
    + +

    Find the minimum value between single vector components.

    +
    See also
    GLM_GTX_component_wise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType::value_type glm::compMul (genType const & v)
    +
    + +

    Multiply all vector components together.

    +
    See also
    GLM_GTX_component_wise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, floatType, Q> glm::compNormalize (vec< L, T, Q > const & v)
    +
    + +

    Convert an integer vector to a normalized float vector.

    +

    If the parameter value type is already a floating qualifier type, the value is passed through.

    See also
    GLM_GTX_component_wise
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::compScale (vec< L, floatType, Q > const & v)
    +
    + +

    Convert a normalized float vector to an integer vector.

    +

    If the parameter value type is already a floating qualifier type, the value is passed through.

    See also
    GLM_GTX_component_wise
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00317.html b/external/glm-0.9.9.8/doc/api/a00317.html new file mode 100644 index 0000000..1094b1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00317.html @@ -0,0 +1,547 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_dual_quaternion + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_dual_quaternion
    +
    +
    + +

    Include <glm/gtx/dual_quaternion.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef highp_ddualquat ddualquat
     Dual-quaternion of default double-qualifier floating-point numbers. More...
     
    typedef highp_fdualquat dualquat
     Dual-quaternion of floating-point numbers. More...
     
    typedef highp_fdualquat fdualquat
     Dual-quaternion of single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, highp > highp_ddualquat
     Dual-quaternion of high double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, highp > highp_dualquat
     Dual-quaternion of high single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, highp > highp_fdualquat
     Dual-quaternion of high single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, lowp > lowp_ddualquat
     Dual-quaternion of low double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, lowp > lowp_dualquat
     Dual-quaternion of low single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, lowp > lowp_fdualquat
     Dual-quaternion of low single-qualifier floating-point numbers. More...
     
    typedef tdualquat< double, mediump > mediump_ddualquat
     Dual-quaternion of medium double-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, mediump > mediump_dualquat
     Dual-quaternion of medium single-qualifier floating-point numbers. More...
     
    typedef tdualquat< float, mediump > mediump_fdualquat
     Dual-quaternion of medium single-qualifier floating-point numbers. More...
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dual_quat_identity ()
     Creates an identity dual quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dualquat_cast (mat< 2, 4, T, Q > const &x)
     Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > dualquat_cast (mat< 3, 4, T, Q > const &x)
     Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > inverse (tdualquat< T, Q > const &q)
     Returns the q inverse. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > lerp (tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)
     Returns the linear interpolation of two dual quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 4, T, Q > mat2x4_cast (tdualquat< T, Q > const &x)
     Converts a quaternion to a 2 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 4, T, Q > mat3x4_cast (tdualquat< T, Q > const &x)
     Converts a quaternion to a 3 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL tdualquat< T, Q > normalize (tdualquat< T, Q > const &q)
     Returns the normalized quaternion. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/dual_quaternion.hpp> to use the features of this extension.

    +

    Defines a templated dual-quaternion type and several dual-quaternion operations.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef highp_ddualquat ddualquat
    +
    + +

    Dual-quaternion of default double-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 260 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_fdualquat dualquat
    +
    + +

    Dual-quaternion of floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 236 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef highp_fdualquat fdualquat
    +
    + +

    Dual-quaternion of single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 241 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<double, highp> highp_ddualquat
    +
    + +

    Dual-quaternion of high double-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 229 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, highp> highp_dualquat
    +
    + +

    Dual-quaternion of high single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 197 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, highp> highp_fdualquat
    +
    + +

    Dual-quaternion of high single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 213 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<double, lowp> lowp_ddualquat
    +
    + +

    Dual-quaternion of low double-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 219 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, lowp> lowp_dualquat
    +
    + +

    Dual-quaternion of low single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 187 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, lowp> lowp_fdualquat
    +
    + +

    Dual-quaternion of low single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 203 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<double, mediump> mediump_ddualquat
    +
    + +

    Dual-quaternion of medium double-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 224 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, mediump> mediump_dualquat
    +
    + +

    Dual-quaternion of medium single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 192 of file dual_quaternion.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef tdualquat<float, mediump> mediump_fdualquat
    +
    + +

    Dual-quaternion of medium single-qualifier floating-point numbers.

    +
    See also
    GLM_GTX_dual_quaternion
    + +

    Definition at line 208 of file dual_quaternion.hpp.

    + +
    +
    +

    Function Documentation

    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::dual_quat_identity ()
    +
    + +

    Creates an identity dual quaternion.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::dualquat_cast (mat< 2, 4, T, Q > const & x)
    +
    + +

    Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::dualquat_cast (mat< 3, 4, T, Q > const & x)
    +
    + +

    Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::inverse (tdualquat< T, Q > const & q)
    +
    + +

    Returns the q inverse.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::lerp (tdualquat< T, Q > const & x,
    tdualquat< T, Q > const & y,
    T const & a 
    )
    +
    + +

    Returns the linear interpolation of two dual quaternion.

    +
    See also
    gtc_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 4, T, Q> glm::mat2x4_cast (tdualquat< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 2 * 4 matrix.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 4, T, Q> glm::mat3x4_cast (tdualquat< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 3 * 4 matrix.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL tdualquat<T, Q> glm::normalize (tdualquat< T, Q > const & q)
    +
    + +

    Returns the normalized quaternion.

    +
    See also
    GLM_GTX_dual_quaternion
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00318.html b/external/glm-0.9.9.8/doc/api/a00318.html new file mode 100644 index 0000000..472762e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00318.html @@ -0,0 +1,892 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_easing + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/easing.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType backEaseIn (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseIn (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseInOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseInOut (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType backEaseOut (genType const &a, genType const &o)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseIn (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseInOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType bounceEaseOut (genType const &a)
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseIn (genType const &a)
     Modelled after shifted quadrant IV of unit circle. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseInOut (genType const &a)
     Modelled after the piecewise circular function y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType circularEaseOut (genType const &a)
     Modelled after shifted quadrant II of unit circle. More...
     
    +template<typename genType >
    GLM_FUNC_DECL genType cubicEaseIn (genType const &a)
     Modelled after the cubic y = x^3.
     
    template<typename genType >
    GLM_FUNC_DECL genType cubicEaseInOut (genType const &a)
     Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cubicEaseOut (genType const &a)
     Modelled after the cubic y = (x - 1)^3 + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseIn (genType const &a)
     Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1)) More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseInOut (genType const &a)
     Modelled after the piecewise exponentially-damped sine wave: y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType elasticEaseOut (genType const &a)
     Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseIn (genType const &a)
     Modelled after the exponential function y = 2^(10(x - 1)) More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseInOut (genType const &a)
     Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType exponentialEaseOut (genType const &a)
     Modelled after the exponential function y = -2^(-10x) + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType linearInterpolation (genType const &a)
     Modelled after the line y = x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseIn (genType const &a)
     Modelled after the parabola y = x^2. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseInOut (genType const &a)
     Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quadraticEaseOut (genType const &a)
     Modelled after the parabola y = -x^2 + 2x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseIn (genType const &a)
     Modelled after the quartic x^4. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseInOut (genType const &a)
     Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quarticEaseOut (genType const &a)
     Modelled after the quartic y = 1 - (x - 1)^4. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseIn (genType const &a)
     Modelled after the quintic y = x^5. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseInOut (genType const &a)
     Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType quinticEaseOut (genType const &a)
     Modelled after the quintic y = (x - 1)^5 + 1. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseIn (genType const &a)
     Modelled after quarter-cycle of sine wave. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseInOut (genType const &a)
     Modelled after half sine wave. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType sineEaseOut (genType const &a)
     Modelled after quarter-cycle of sine wave (different phase) More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/easing.hpp> to use the features of this extension.

    +

    Easing functions for animations and transitons All functions take a parameter x in the range [0.0,1.0]

    +

    Based on the AHEasing project of Warren Moore (https://github.com/warrenm/AHEasing)

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseIn (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseIn (genType const & a,
    genType const & o 
    )
    +
    +
    Parameters
    + + + +
    aparameter
    oOptional overshoot modifier
    +
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseInOut (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseInOut (genType const & a,
    genType const & o 
    )
    +
    +
    Parameters
    + + + +
    aparameter
    oOptional overshoot modifier
    +
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseOut (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::backEaseOut (genType const & a,
    genType const & o 
    )
    +
    +
    Parameters
    + + + +
    aparameter
    oOptional overshoot modifier
    +
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::bounceEaseIn (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::bounceEaseInOut (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::bounceEaseOut (genType const & a)
    +
    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::circularEaseIn (genType const & a)
    +
    + +

    Modelled after shifted quadrant IV of unit circle.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::circularEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise circular function y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::circularEaseOut (genType const & a)
    +
    + +

    Modelled after shifted quadrant II of unit circle.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::cubicEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise cubic y = (1/2)((2x)^3) ; [0, 0.5) y = (1/2)((2x-2)^3 + 2) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::cubicEaseOut (genType const & a)
    +
    + +

    Modelled after the cubic y = (x - 1)^3 + 1.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::elasticEaseIn (genType const & a)
    +
    + +

    Modelled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1))

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::elasticEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise exponentially-damped sine wave: y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::elasticEaseOut (genType const & a)
    +
    + +

    Modelled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + 1.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::exponentialEaseIn (genType const & a)
    +
    + +

    Modelled after the exponential function y = 2^(10(x - 1))

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::exponentialEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise exponential y = (1/2)2^(10(2x - 1)) ; [0,0.5) y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::exponentialEaseOut (genType const & a)
    +
    + +

    Modelled after the exponential function y = -2^(-10x) + 1.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::linearInterpolation (genType const & a)
    +
    + +

    Modelled after the line y = x.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quadraticEaseIn (genType const & a)
    +
    + +

    Modelled after the parabola y = x^2.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quadraticEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise quadratic y = (1/2)((2x)^2) ; [0, 0.5) y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quadraticEaseOut (genType const & a)
    +
    + +

    Modelled after the parabola y = -x^2 + 2x.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quarticEaseIn (genType const & a)
    +
    + +

    Modelled after the quartic x^4.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quarticEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise quartic y = (1/2)((2x)^4) ; [0, 0.5) y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quarticEaseOut (genType const & a)
    +
    + +

    Modelled after the quartic y = 1 - (x - 1)^4.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quinticEaseIn (genType const & a)
    +
    + +

    Modelled after the quintic y = x^5.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quinticEaseInOut (genType const & a)
    +
    + +

    Modelled after the piecewise quintic y = (1/2)((2x)^5) ; [0, 0.5) y = (1/2)((2x-2)^5 + 2) ; [0.5, 1].

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::quinticEaseOut (genType const & a)
    +
    + +

    Modelled after the quintic y = (x - 1)^5 + 1.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::sineEaseIn (genType const & a)
    +
    + +

    Modelled after quarter-cycle of sine wave.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::sineEaseInOut (genType const & a)
    +
    + +

    Modelled after half sine wave.

    +
    See also
    GLM_GTX_easing
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::sineEaseOut (genType const & a)
    +
    + +

    Modelled after quarter-cycle of sine wave (different phase)

    +
    See also
    GLM_GTX_easing
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00319.html b/external/glm-0.9.9.8/doc/api/a00319.html new file mode 100644 index 0000000..bcbccb5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00319.html @@ -0,0 +1,1609 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_euler_angles + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_euler_angles
    +
    +
    + +

    Include <glm/gtx/euler_angles.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleX (T const &angleX, T const &angularVelocityX)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about X-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleY (T const &angleY, T const &angularVelocityY)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Y-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > derivedEulerAngleZ (T const &angleZ, T const &angularVelocityZ)
     Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Z-axis. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleX (T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXY (T const &angleX, T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXYZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZ (T const &angleX, T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleXZY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleY (T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYX (T const &angleY, T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYXZ (T const &yaw, T const &pitch, T const &roll)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZ (T const &angleY, T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleYZY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZ (T const &angleZ)
     Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZX (T const &angle, T const &angleX)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXY (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZXZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZY (T const &angleZ, T const &angleY)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYX (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * X). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > eulerAngleZYZ (T const &t1, T const &t2, T const &t3)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXYX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Y * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXYZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Y * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXZX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Z * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleXZY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (X * Z * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYXY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * X * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYXZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * X * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYZX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * Z * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleYZY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Y * Z * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZXY (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * X * Y) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZXZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * X * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZYX (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * Y * X) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL void extractEulerAngleZYZ (mat< 4, 4, T, defaultp > const &M, T &t1, T &t2, T &t3)
     Extracts the (Z * Y * Z) Euler angles from the rotation matrix M. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 2, 2, T, defaultp > orientate2 (T const &angle)
     Creates a 2D 2 * 2 rotation matrix from an euler angle. More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 3, 3, T, defaultp > orientate3 (T const &angle)
     Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > orientate3 (vec< 3, T, Q > const &angles)
     Creates a 3D 3 * 3 rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientate4 (vec< 3, T, Q > const &angles)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    template<typename T >
    GLM_FUNC_DECL mat< 4, 4, T, defaultp > yawPitchRoll (T const &yaw, T const &pitch, T const &roll)
     Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z). More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/euler_angles.hpp> to use the features of this extension.

    +

    Build matrices from Euler angles.

    +

    Extraction of Euler angles from rotation matrix. Based on the original paper 2014 Mike Day - Extracting Euler Angles from a Rotation Matrix.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::derivedEulerAngleX (T const & angleX,
    T const & angularVelocityX 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about X-axis.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::derivedEulerAngleY (T const & angleY,
    T const & angularVelocityY 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Y-axis.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::derivedEulerAngleZ (T const & angleZ,
    T const & angularVelocityZ 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous derived matrix from the rotation matrix about Z-axis.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleX (T const & angleX)
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle X.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXY (T const & angleX,
    T const & angleY 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXYX (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXYZ (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Y * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXZ (T const & angleX,
    T const & angleZ 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXZX (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleXZY (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (X * Z * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleY (T const & angleY)
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Y.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYX (T const & angleY,
    T const & angleX 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYXY (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYXZ (T const & yaw,
    T const & pitch,
    T const & roll 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYZ (T const & angleY,
    T const & angleZ 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYZX (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleYZY (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * Z * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZ (T const & angleZ)
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from an euler angle Z.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZX (T const & angle,
    T const & angleX 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZXY (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZXZ (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZY (T const & angleZ,
    T const & angleY 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZYX (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * X).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::eulerAngleZYZ (T const & t1,
    T const & t2,
    T const & t3 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Z * Y * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleXYX (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (X * Y * X) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleXYZ (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (X * Y * Z) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleXZX (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (X * Z * X) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleXZY (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (X * Z * Y) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleYXY (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Y * X * Y) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleYXZ (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Y * X * Z) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleYZX (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Y * Z * X) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleYZY (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Y * Z * Y) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleZXY (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Z * X * Y) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleZXZ (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Z * X * Z) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleZYX (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Z * Y * X) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::extractEulerAngleZYZ (mat< 4, 4, T, defaultp > const & M,
    T & t1,
    T & t2,
    T & t3 
    )
    +
    + +

    Extracts the (Z * Y * Z) Euler angles from the rotation matrix M.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, defaultp> glm::orientate2 (T const & angle)
    +
    + +

    Creates a 2D 2 * 2 rotation matrix from an euler angle.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, defaultp> glm::orientate3 (T const & angle)
    +
    + +

    Creates a 2D 4 * 4 homogeneous rotation matrix from an euler angle.

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::orientate3 (vec< 3, T, Q > const & angles)
    +
    + +

    Creates a 3D 3 * 3 rotation matrix from euler angles (Y * X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::orientate4 (vec< 3, T, Q > const & angles)
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, defaultp> glm::yawPitchRoll (T const & yaw,
    T const & pitch,
    T const & roll 
    )
    +
    + +

    Creates a 3D 4 * 4 homogeneous rotation matrix from euler angles (Y * X * Z).

    +
    See also
    GLM_GTX_euler_angles
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00320.html b/external/glm-0.9.9.8/doc/api/a00320.html new file mode 100644 index 0000000..c5cfba2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00320.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_extend + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/extend.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType extend (genType const &Origin, genType const &Source, typename genType::value_type const Length)
     Extends of Length the Origin position using the (Source - Origin) direction. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/extend.hpp> to use the features of this extension.

    +

    Extend a position from a source to a position at a defined length.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::extend (genType const & Origin,
    genType const & Source,
    typename genType::value_type const Length 
    )
    +
    + +

    Extends of Length the Origin position using the (Source - Origin) direction.

    +
    See also
    GLM_GTX_extend
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00321.html b/external/glm-0.9.9.8/doc/api/a00321.html new file mode 100644 index 0000000..e2baf1b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00321.html @@ -0,0 +1,831 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_extented_min_max + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_extented_min_max
    +
    +
    + +

    Include <glm/gtx/extented_min_max.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType fclamp (genType x, genType minVal, genType maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fclamp (vec< L, T, Q > const &x, T minVal, T maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fclamp (vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
     Returns min(max(x, minVal), maxVal) for each component in x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fmax (genType x, genType y)
     Returns y if x < y; otherwise, it returns x. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fmin (genType x, genType y)
     Returns y if y < x; otherwise, it returns x. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T const &x, T const &y, T const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, C< T > const &y, C< T > const &z)
     Return the maximum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T max (T const &x, T const &y, T const &z, T const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > max (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
     Return the maximum component-wise values of 4 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T const &x, T const &y, T const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, C< T > const &y, C< T > const &z)
     Return the minimum component-wise values of 3 inputs. More...
     
    template<typename T >
    GLM_FUNC_DECL T min (T const &x, T const &y, T const &z, T const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    template<typename T , template< typename > class C>
    GLM_FUNC_DECL C< T > min (C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
     Return the minimum component-wise values of 4 inputs. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/extented_min_max.hpp> to use the features of this extension.

    +

    Min and max functions for 3 to 4 parameters.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fclamp (genType x,
    genType minVal,
    genType maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    genTypeFloating-point scalar or vector types.
    +
    +
    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fclamp (vec< L, T, Q > const & x,
    minVal,
    maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fclamp (vec< L, T, Q > const & x,
    vec< L, T, Q > const & minVal,
    vec< L, T, Q > const & maxVal 
    )
    +
    + +

    Returns min(max(x, minVal), maxVal) for each component in x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fmax (genType x,
    genType y 
    )
    +
    + +

    Returns y if x < y; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    genTypeFloating-point; scalar or vector types.
    +
    +
    +
    See also
    gtx_extented_min_max
    +
    +std::fmax documentation
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fmin (genType x,
    genType y 
    )
    +
    + +

    Returns y if y < x; otherwise, it returns x.

    +

    If one of the two arguments is NaN, the value of the other argument is returned.

    +
    Template Parameters
    + + +
    genTypeFloating-point or integer; scalar or vector types.
    +
    +
    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::max (T const & x,
    T const & y,
    T const & z 
    )
    +
    + +

    Return the maximum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::max (C< T > const & x,
    typename C< T >::T const & y,
    typename C< T >::T const & z 
    )
    +
    + +

    Return the maximum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::max (C< T > const & x,
    C< T > const & y,
    C< T > const & z 
    )
    +
    + +

    Return the maximum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::max (T const & x,
    T const & y,
    T const & z,
    T const & w 
    )
    +
    + +

    Return the maximum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::max (C< T > const & x,
    typename C< T >::T const & y,
    typename C< T >::T const & z,
    typename C< T >::T const & w 
    )
    +
    + +

    Return the maximum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::max (C< T > const & x,
    C< T > const & y,
    C< T > const & z,
    C< T > const & w 
    )
    +
    + +

    Return the maximum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::min (T const & x,
    T const & y,
    T const & z 
    )
    +
    + +

    Return the minimum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::min (C< T > const & x,
    typename C< T >::T const & y,
    typename C< T >::T const & z 
    )
    +
    + +

    Return the minimum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::min (C< T > const & x,
    C< T > const & y,
    C< T > const & z 
    )
    +
    + +

    Return the minimum component-wise values of 3 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::min (T const & x,
    T const & y,
    T const & z,
    T const & w 
    )
    +
    + +

    Return the minimum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::min (C< T > const & x,
    typename C< T >::T const & y,
    typename C< T >::T const & z,
    typename C< T >::T const & w 
    )
    +
    + +

    Return the minimum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL C<T> glm::min (C< T > const & x,
    C< T > const & y,
    C< T > const & z,
    C< T > const & w 
    )
    +
    + +

    Return the minimum component-wise values of 4 inputs.

    +
    See also
    gtx_extented_min_max
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00322.html b/external/glm-0.9.9.8/doc/api/a00322.html new file mode 100644 index 0000000..f7109e2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00322.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_exterior_product + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_exterior_product
    +
    +
    + +

    Include <glm/gtx/exterior_product.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T cross (vec< 2, T, Q > const &v, vec< 2, T, Q > const &u)
     Returns the cross product of x and y. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/exterior_product.hpp> to use the features of this extension.

    +

    Allow to perform bit operations on integer values

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::cross (vec< 2, T, Q > const & v,
    vec< 2, T, Q > const & u 
    )
    +
    + +

    Returns the cross product of x and y.

    +
    Template Parameters
    + + + +
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    Exterior product
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00323.html b/external/glm-0.9.9.8/doc/api/a00323.html new file mode 100644 index 0000000..67c39bb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00323.html @@ -0,0 +1,409 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_fast_exponential + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_fast_exponential
    +
    +
    + +

    Include <glm/gtx/fast_exponential.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fastExp (T x)
     Faster than the common exp function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastExp (vec< L, T, Q > const &x)
     Faster than the common exp function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastExp2 (T x)
     Faster than the common exp2 function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastExp2 (vec< L, T, Q > const &x)
     Faster than the common exp2 function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastLog (T x)
     Faster than the common log function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastLog (vec< L, T, Q > const &x)
     Faster than the common exp2 function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastLog2 (T x)
     Faster than the common log2 function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastLog2 (vec< L, T, Q > const &x)
     Faster than the common log2 function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastPow (genType x, genType y)
     Faster than the common pow function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastPow (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Faster than the common pow function but less accurate. More...
     
    template<typename genTypeT , typename genTypeU >
    GLM_FUNC_DECL genTypeT fastPow (genTypeT x, genTypeU y)
     Faster than the common pow function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastPow (vec< L, T, Q > const &x)
     Faster than the common pow function but less accurate. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/fast_exponential.hpp> to use the features of this extension.

    +

    Fast but less accurate implementations of exponential based functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastExp (x)
    +
    + +

    Faster than the common exp function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastExp (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common exp function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastExp2 (x)
    +
    + +

    Faster than the common exp2 function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastExp2 (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common exp2 function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastLog (x)
    +
    + +

    Faster than the common log function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastLog (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common exp2 function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastLog2 (x)
    +
    + +

    Faster than the common log2 function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastLog2 (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common log2 function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastPow (genType x,
    genType y 
    )
    +
    + +

    Faster than the common pow function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastPow (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Faster than the common pow function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genTypeT glm::fastPow (genTypeT x,
    genTypeU y 
    )
    +
    + +

    Faster than the common pow function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastPow (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common pow function but less accurate.

    +
    See also
    GLM_GTX_fast_exponential
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00324.html b/external/glm-0.9.9.8/doc/api/a00324.html new file mode 100644 index 0000000..5afa8b2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00324.html @@ -0,0 +1,332 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_fast_square_root + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_fast_square_root
    +
    +
    + +

    Include <glm/gtx/fast_square_root.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType fastDistance (genType x, genType y)
     Faster than the common distance function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastDistance (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Faster than the common distance function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastInverseSqrt (genType x)
     Faster than the common inversesqrt function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastInverseSqrt (vec< L, T, Q > const &x)
     Faster than the common inversesqrt function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastLength (genType x)
     Faster than the common length function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastLength (vec< L, T, Q > const &x)
     Faster than the common length function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastNormalize (genType const &x)
     Faster than the common normalize function but less accurate. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType fastSqrt (genType x)
     Faster than the common sqrt function but less accurate. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > fastSqrt (vec< L, T, Q > const &x)
     Faster than the common sqrt function but less accurate. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/fast_square_root.hpp> to use the features of this extension.

    +

    Fast but less accurate implementations of square root based functions.

      +
    • Sqrt optimisation based on Newton's method, www.gamedev.net/community/forums/topic.asp?topic id=139956
    • +
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastDistance (genType x,
    genType y 
    )
    +
    + +

    Faster than the common distance function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fastDistance (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Faster than the common distance function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastInverseSqrt (genType x)
    +
    + +

    Faster than the common inversesqrt function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastInverseSqrt (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common inversesqrt function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastLength (genType x)
    +
    + +

    Faster than the common length function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastLength (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common length function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastNormalize (genType const & x)
    +
    + +

    Faster than the common normalize function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::fastSqrt (genType x)
    +
    + +

    Faster than the common sqrt function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::fastSqrt (vec< L, T, Q > const & x)
    +
    + +

    Faster than the common sqrt function but less accurate.

    +
    See also
    GLM_GTX_fast_square_root extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00325.html b/external/glm-0.9.9.8/doc/api/a00325.html new file mode 100644 index 0000000..c55bae1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00325.html @@ -0,0 +1,296 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_fast_trigonometry + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_fast_trigonometry
    +
    +
    + +

    Include <glm/gtx/fast_trigonometry.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T fastAcos (T angle)
     Faster than the common acos function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAsin (T angle)
     Faster than the common asin function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAtan (T y, T x)
     Faster than the common atan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastAtan (T angle)
     Faster than the common atan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastCos (T angle)
     Faster than the common cos function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastSin (T angle)
     Faster than the common sin function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T fastTan (T angle)
     Faster than the common tan function but less accurate. More...
     
    template<typename T >
    GLM_FUNC_DECL T wrapAngle (T angle)
     Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/fast_trigonometry.hpp> to use the features of this extension.

    +

    Fast but less accurate implementations of trigonometric functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastAcos (angle)
    +
    + +

    Faster than the common acos function but less accurate.

    +

    Defined between -2pi and 2pi. From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastAsin (angle)
    +
    + +

    Faster than the common asin function but less accurate.

    +

    Defined between -2pi and 2pi. From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fastAtan (y,
    x 
    )
    +
    + +

    Faster than the common atan function but less accurate.

    +

    Defined between -2pi and 2pi. From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastAtan (angle)
    +
    + +

    Faster than the common atan function but less accurate.

    +

    Defined between -2pi and 2pi. From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastCos (angle)
    +
    + +

    Faster than the common cos function but less accurate.

    +

    From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastSin (angle)
    +
    + +

    Faster than the common sin function but less accurate.

    +

    From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::fastTan (angle)
    +
    + +

    Faster than the common tan function but less accurate.

    +

    Defined between -2pi and 2pi. From GLM_GTX_fast_trigonometry extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::wrapAngle (angle)
    +
    + +

    Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00326.html b/external/glm-0.9.9.8/doc/api/a00326.html new file mode 100644 index 0000000..eca04d6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00326.html @@ -0,0 +1,181 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_functions
    +
    +
    + +

    Include <glm/gtx/functions.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T >
    GLM_FUNC_DECL T gauss (T x, T ExpectedValue, T StandardDeviation)
     1D gauss function More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T gauss (vec< 2, T, Q > const &Coord, vec< 2, T, Q > const &ExpectedValue, vec< 2, T, Q > const &StandardDeviation)
     2D gauss function More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/functions.hpp> to use the features of this extension.

    +

    List of useful common functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::gauss (x,
    ExpectedValue,
    StandardDeviation 
    )
    +
    + +

    1D gauss function

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::gauss (vec< 2, T, Q > const & Coord,
    vec< 2, T, Q > const & ExpectedValue,
    vec< 2, T, Q > const & StandardDeviation 
    )
    +
    + +

    2D gauss function

    +
    See also
    GLM_GTC_epsilon
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00327.html b/external/glm-0.9.9.8/doc/api/a00327.html new file mode 100644 index 0000000..2c886e1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00327.html @@ -0,0 +1,187 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_gradient_paint + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_gradient_paint
    +
    +
    + +

    Include <glm/gtx/gradient_paint.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL T linearGradient (vec< 2, T, Q > const &Point0, vec< 2, T, Q > const &Point1, vec< 2, T, Q > const &Position)
     Return a color from a linear gradient. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T radialGradient (vec< 2, T, Q > const &Center, T const &Radius, vec< 2, T, Q > const &Focal, vec< 2, T, Q > const &Position)
     Return a color from a radial gradient. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/gradient_paint.hpp> to use the features of this extension.

    +

    Functions that return the color of procedural gradient for specific coordinates.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::linearGradient (vec< 2, T, Q > const & Point0,
    vec< 2, T, Q > const & Point1,
    vec< 2, T, Q > const & Position 
    )
    +
    + +

    Return a color from a linear gradient.

    +
    See also
    - GLM_GTX_gradient_paint
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::radialGradient (vec< 2, T, Q > const & Center,
    T const & Radius,
    vec< 2, T, Q > const & Focal,
    vec< 2, T, Q > const & Position 
    )
    +
    + +

    Return a color from a radial gradient.

    +
    See also
    - GLM_GTX_gradient_paint
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00328.html b/external/glm-0.9.9.8/doc/api/a00328.html new file mode 100644 index 0000000..eb690a8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00328.html @@ -0,0 +1,181 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_handed_coordinate_space + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_handed_coordinate_space
    +
    +
    + +

    Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool leftHanded (vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
     Return if a trihedron left handed or not. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool rightHanded (vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
     Return if a trihedron right handed or not. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension.

    +

    To know if a set of three basis vectors defines a right or left-handed coordinate system.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::leftHanded (vec< 3, T, Q > const & tangent,
    vec< 3, T, Q > const & binormal,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Return if a trihedron left handed or not.

    +

    From GLM_GTX_handed_coordinate_space extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::rightHanded (vec< 3, T, Q > const & tangent,
    vec< 3, T, Q > const & binormal,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Return if a trihedron right handed or not.

    +

    From GLM_GTX_handed_coordinate_space extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00329.html b/external/glm-0.9.9.8/doc/api/a00329.html new file mode 100644 index 0000000..68032c1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00329.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_hash + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    + +

    Include <glm/gtx/hash.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtx/hash.hpp> to use the features of this extension.

    +

    Add std::hash support for glm types

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00330.html b/external/glm-0.9.9.8/doc/api/a00330.html new file mode 100644 index 0000000..6624113 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00330.html @@ -0,0 +1,366 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_integer + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/integer.hpp> to use the features of this extension. +More...

    + + + + + +

    +Typedefs

    typedef signed int sint
     32bit signed integer. More...
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType factorial (genType const &x)
     Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension. More...
     
    GLM_FUNC_DECL unsigned int floor_log2 (unsigned int x)
     Returns the floor log2 of x. More...
     
    GLM_FUNC_DECL int mod (int x, int y)
     Modulus. More...
     
    GLM_FUNC_DECL uint mod (uint x, uint y)
     Modulus. More...
     
    GLM_FUNC_DECL uint nlz (uint x)
     Returns the number of leading zeros. More...
     
    GLM_FUNC_DECL int pow (int x, uint y)
     Returns x raised to the y power. More...
     
    GLM_FUNC_DECL uint pow (uint x, uint y)
     Returns x raised to the y power. More...
     
    GLM_FUNC_DECL int sqrt (int x)
     Returns the positive square root of x. More...
     
    GLM_FUNC_DECL uint sqrt (uint x)
     Returns the positive square root of x. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/integer.hpp> to use the features of this extension.

    +

    Add support for integer for core functions

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef signed int sint
    +
    + +

    32bit signed integer.

    +

    From GLM_GTX_integer extension.

    + +

    Definition at line 55 of file gtx/integer.hpp.

    + +
    +
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::factorial (genType const & x)
    +
    + +

    Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL unsigned int glm::floor_log2 (unsigned int x)
    +
    + +

    Returns the floor log2 of x.

    +

    From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int glm::mod (int x,
    int y 
    )
    +
    + +

    Modulus.

    +

    Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint glm::mod (uint x,
    uint y 
    )
    +
    + +

    Modulus.

    +

    Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::nlz (uint x)
    +
    + +

    Returns the number of leading zeros.

    +

    From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL int glm::pow (int x,
    uint y 
    )
    +
    + +

    Returns x raised to the y power.

    +

    From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL uint glm::pow (uint x,
    uint y 
    )
    +
    + +

    Returns x raised to the y power.

    +

    From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::sqrt (int x)
    +
    + +

    Returns the positive square root of x.

    +

    From GLM_GTX_integer extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::sqrt (uint x)
    +
    + +

    Returns the positive square root of x.

    +

    From GLM_GTX_integer extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00331.html b/external/glm-0.9.9.8/doc/api/a00331.html new file mode 100644 index 0000000..e4d2bf2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00331.html @@ -0,0 +1,451 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_intersect + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_intersect
    +
    +
    + +

    Include <glm/gtx/intersect.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL bool intersectLineSphere (genType const &point0, genType const &point1, genType const &sphereCenter, typename genType::value_type sphereRadius, genType &intersectionPosition1, genType &intersectionNormal1, genType &intersectionPosition2=genType(), genType &intersectionNormal2=genType())
     Compute the intersection of a line and a sphere. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectLineTriangle (genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &position)
     Compute the intersection of a line and a triangle. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRayPlane (genType const &orig, genType const &dir, genType const &planeOrig, genType const &planeNormal, typename genType::value_type &intersectionDistance)
     Compute the intersection of a ray and a plane. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRaySphere (genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, typename genType::value_type const sphereRadiusSquered, typename genType::value_type &intersectionDistance)
     Compute the intersection distance of a ray and a sphere. More...
     
    template<typename genType >
    GLM_FUNC_DECL bool intersectRaySphere (genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, const typename genType::value_type sphereRadius, genType &intersectionPosition, genType &intersectionNormal)
     Compute the intersection of a ray and a sphere. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool intersectRayTriangle (vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dir, vec< 3, T, Q > const &v0, vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 2, T, Q > &baryPosition, T &distance)
     Compute the intersection of a ray and a triangle. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/intersect.hpp> to use the features of this extension.

    +

    Add intersection functions

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectLineSphere (genType const & point0,
    genType const & point1,
    genType const & sphereCenter,
    typename genType::value_type sphereRadius,
    genType & intersectionPosition1,
    genType & intersectionNormal1,
    genType & intersectionPosition2 = genType(),
    genType & intersectionNormal2 = genType() 
    )
    +
    + +

    Compute the intersection of a line and a sphere.

    +

    From GLM_GTX_intersect extension

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectLineTriangle (genType const & orig,
    genType const & dir,
    genType const & vert0,
    genType const & vert1,
    genType const & vert2,
    genType & position 
    )
    +
    + +

    Compute the intersection of a line and a triangle.

    +

    From GLM_GTX_intersect extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectRayPlane (genType const & orig,
    genType const & dir,
    genType const & planeOrig,
    genType const & planeNormal,
    typename genType::value_type & intersectionDistance 
    )
    +
    + +

    Compute the intersection of a ray and a plane.

    +

    Ray direction and plane normal must be unit length. From GLM_GTX_intersect extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectRaySphere (genType const & rayStarting,
    genType const & rayNormalizedDirection,
    genType const & sphereCenter,
    typename genType::value_type const sphereRadiusSquered,
    typename genType::value_type & intersectionDistance 
    )
    +
    + +

    Compute the intersection distance of a ray and a sphere.

    +

    The ray direction vector is unit length. From GLM_GTX_intersect extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectRaySphere (genType const & rayStarting,
    genType const & rayNormalizedDirection,
    genType const & sphereCenter,
    const typename genType::value_type sphereRadius,
    genType & intersectionPosition,
    genType & intersectionNormal 
    )
    +
    + +

    Compute the intersection of a ray and a sphere.

    +

    From GLM_GTX_intersect extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::intersectRayTriangle (vec< 3, T, Q > const & orig,
    vec< 3, T, Q > const & dir,
    vec< 3, T, Q > const & v0,
    vec< 3, T, Q > const & v1,
    vec< 3, T, Q > const & v2,
    vec< 2, T, Q > & baryPosition,
    T & distance 
    )
    +
    + +

    Compute the intersection of a ray and a triangle.

    +

    Based om Tomas Möller implementation http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/raytri/ From GLM_GTX_intersect extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00332.html b/external/glm-0.9.9.8/doc/api/a00332.html new file mode 100644 index 0000000..55d9b13 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00332.html @@ -0,0 +1,97 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_io + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    + +

    Include <glm/gtx/io.hpp> to use the features of this extension. +More...

    +

    Detailed Description

    +

    Include <glm/gtx/io.hpp> to use the features of this extension.

    +

    std::[w]ostream support for glm types

    +

    std::[w]ostream support for glm types + qualifier/width/etc. manipulators based on howard hinnant's std::chrono io proposal [http://home.roadrunner.com/~hinnant/bloomington/chrono_io.html]

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00333.html b/external/glm-0.9.9.8/doc/api/a00333.html new file mode 100644 index 0000000..b30776c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00333.html @@ -0,0 +1,169 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_log_base + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_log_base
    +
    +
    + +

    Include <glm/gtx/log_base.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType log (genType const &x, genType const &base)
     Logarithm for any base. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sign (vec< L, T, Q > const &x, vec< L, T, Q > const &base)
     Logarithm for any base. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/log_base.hpp> to use the features of this extension.

    +

    Logarithm for any base. base can be a vector or a scalar.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::log (genType const & x,
    genType const & base 
    )
    +
    + +

    Logarithm for any base.

    +

    From GLM_GTX_log_base.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::sign (vec< L, T, Q > const & x,
    vec< L, T, Q > const & base 
    )
    +
    + +

    Logarithm for any base.

    +

    From GLM_GTX_log_base.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00334.html b/external/glm-0.9.9.8/doc/api/a00334.html new file mode 100644 index 0000000..693d78d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00334.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_cross_product + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_cross_product
    +
    +
    + +

    Include <glm/gtx/matrix_cross_product.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > matrixCross3 (vec< 3, T, Q > const &x)
     Build a cross product matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > matrixCross4 (vec< 3, T, Q > const &x)
     Build a cross product matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_cross_product.hpp> to use the features of this extension.

    +

    Build cross product matrices

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::matrixCross3 (vec< 3, T, Q > const & x)
    +
    + +

    Build a cross product matrix.

    +

    From GLM_GTX_matrix_cross_product extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::matrixCross4 (vec< 3, T, Q > const & x)
    +
    + +

    Build a cross product matrix.

    +

    From GLM_GTX_matrix_cross_product extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00335.html b/external/glm-0.9.9.8/doc/api/a00335.html new file mode 100644 index 0000000..91468e4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00335.html @@ -0,0 +1,160 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_decompose + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_decompose
    +
    +
    + +

    Include <glm/gtx/matrix_decompose.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool decompose (mat< 4, 4, T, Q > const &modelMatrix, vec< 3, T, Q > &scale, qua< T, Q > &orientation, vec< 3, T, Q > &translation, vec< 3, T, Q > &skew, vec< 4, T, Q > &perspective)
     Decomposes a model matrix to translations, rotation and scale components. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_decompose.hpp> to use the features of this extension.

    +

    Decomposes a model matrix to translations, rotation and scale components

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::decompose (mat< 4, 4, T, Q > const & modelMatrix,
    vec< 3, T, Q > & scale,
    qua< T, Q > & orientation,
    vec< 3, T, Q > & translation,
    vec< 3, T, Q > & skew,
    vec< 4, T, Q > & perspective 
    )
    +
    + +

    Decomposes a model matrix to translations, rotation and scale components.

    +
    See also
    GLM_GTX_matrix_decompose
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00336.html b/external/glm-0.9.9.8/doc/api/a00336.html new file mode 100644 index 0000000..9119776 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00336.html @@ -0,0 +1,197 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_factorisation + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_factorisation
    +
    +
    + +

    Include <glm/gtx/matrix_factorisation.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > fliplr (mat< C, R, T, Q > const &in)
     Flips the matrix columns right and left. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > flipud (mat< C, R, T, Q > const &in)
     Flips the matrix rows up and down. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL void qr_decompose (mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &q, mat< C,(C< R?C:R), T, Q > &r)
     Performs QR factorisation of a matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL void rq_decompose (mat< C, R, T, Q > const &in, mat<(C< R?C:R), R, T, Q > &r, mat< C,(C< R?C:R), T, Q > &q)
     Performs RQ factorisation of a matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_factorisation.hpp> to use the features of this extension.

    +

    Functions to factor matrices in various forms

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<C, R, T, Q> glm::fliplr (mat< C, R, T, Q > const & in)
    +
    + +

    Flips the matrix columns right and left.

    +

    From GLM_GTX_matrix_factorisation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<C, R, T, Q> glm::flipud (mat< C, R, T, Q > const & in)
    +
    + +

    Flips the matrix rows up and down.

    +

    From GLM_GTX_matrix_factorisation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL void glm::qr_decompose (mat< C, R, T, Q > const & in)
    +
    + +

    Performs QR factorisation of a matrix.

    +

    Returns 2 matrices, q and r, such that the columns of q are orthonormal and span the same subspace than those of the input matrix, r is an upper triangular matrix, and q*r=in. Given an n-by-m input matrix, q has dimensions min(n,m)-by-m, and r has dimensions n-by-min(n,m).

    +

    From GLM_GTX_matrix_factorisation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL void glm::rq_decompose (mat< C, R, T, Q > const & in)
    +
    + +

    Performs RQ factorisation of a matrix.

    +

    Returns 2 matrices, r and q, such that r is an upper triangular matrix, the rows of q are orthonormal and span the same subspace than those of the input matrix, and r*q=in. Note that in the context of RQ factorisation, the diagonal is seen as starting in the lower-right corner of the matrix, instead of the usual upper-left. Given an n-by-m input matrix, r has dimensions min(n,m)-by-m, and q has dimensions n-by-min(n,m).

    +

    From GLM_GTX_matrix_factorisation extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00337.html b/external/glm-0.9.9.8/doc/api/a00337.html new file mode 100644 index 0000000..b503f23 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00337.html @@ -0,0 +1,237 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_interpolation + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_interpolation
    +
    +
    + +

    Include <glm/gtx/matrix_interpolation.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL void axisAngle (mat< 4, 4, T, Q > const &Mat, vec< 3, T, Q > &Axis, T &Angle)
     Get the axis and angle of the rotation from a matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > axisAngleMatrix (vec< 3, T, Q > const &Axis, T const Angle)
     Build a matrix from axis and angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > extractMatrixRotation (mat< 4, 4, T, Q > const &Mat)
     Extracts the rotation part of a matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > interpolate (mat< 4, 4, T, Q > const &m1, mat< 4, 4, T, Q > const &m2, T const Delta)
     Build a interpolation of 4 * 4 matrixes. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_interpolation.hpp> to use the features of this extension.

    +

    Allows to directly interpolate two matrices.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::axisAngle (mat< 4, 4, T, Q > const & Mat,
    vec< 3, T, Q > & Axis,
    T & Angle 
    )
    +
    + +

    Get the axis and angle of the rotation from a matrix.

    +

    From GLM_GTX_matrix_interpolation extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::axisAngleMatrix (vec< 3, T, Q > const & Axis,
    T const Angle 
    )
    +
    + +

    Build a matrix from axis and angle.

    +

    From GLM_GTX_matrix_interpolation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::extractMatrixRotation (mat< 4, 4, T, Q > const & Mat)
    +
    + +

    Extracts the rotation part of a matrix.

    +

    From GLM_GTX_matrix_interpolation extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::interpolate (mat< 4, 4, T, Q > const & m1,
    mat< 4, 4, T, Q > const & m2,
    T const Delta 
    )
    +
    + +

    Build a interpolation of 4 * 4 matrixes.

    +

    From GLM_GTX_matrix_interpolation extension. Warning! works only with rotation and/or translation matrixes, scale will generate unexpected results.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00338.html b/external/glm-0.9.9.8/doc/api/a00338.html new file mode 100644 index 0000000..448316b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00338.html @@ -0,0 +1,475 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_major_storage + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_major_storage
    +
    +
    + +

    Include <glm/gtx/matrix_major_storage.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > colMajor2 (vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > colMajor2 (mat< 2, 2, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > colMajor3 (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > colMajor3 (mat< 3, 3, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > colMajor4 (vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)
     Build a column major matrix from column vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > colMajor4 (mat< 4, 4, T, Q > const &m)
     Build a column major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > rowMajor2 (vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > rowMajor2 (mat< 2, 2, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > rowMajor3 (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > rowMajor3 (mat< 3, 3, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rowMajor4 (vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)
     Build a row major matrix from row vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rowMajor4 (mat< 4, 4, T, Q > const &m)
     Build a row major matrix from other matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_major_storage.hpp> to use the features of this extension.

    +

    Build matrices with specific matrix order, row or column

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::colMajor2 (vec< 2, T, Q > const & v1,
    vec< 2, T, Q > const & v2 
    )
    +
    + +

    Build a column major matrix from column vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::colMajor2 (mat< 2, 2, T, Q > const & m)
    +
    + +

    Build a column major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::colMajor3 (vec< 3, T, Q > const & v1,
    vec< 3, T, Q > const & v2,
    vec< 3, T, Q > const & v3 
    )
    +
    + +

    Build a column major matrix from column vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::colMajor3 (mat< 3, 3, T, Q > const & m)
    +
    + +

    Build a column major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::colMajor4 (vec< 4, T, Q > const & v1,
    vec< 4, T, Q > const & v2,
    vec< 4, T, Q > const & v3,
    vec< 4, T, Q > const & v4 
    )
    +
    + +

    Build a column major matrix from column vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::colMajor4 (mat< 4, 4, T, Q > const & m)
    +
    + +

    Build a column major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::rowMajor2 (vec< 2, T, Q > const & v1,
    vec< 2, T, Q > const & v2 
    )
    +
    + +

    Build a row major matrix from row vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::rowMajor2 (mat< 2, 2, T, Q > const & m)
    +
    + +

    Build a row major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::rowMajor3 (vec< 3, T, Q > const & v1,
    vec< 3, T, Q > const & v2,
    vec< 3, T, Q > const & v3 
    )
    +
    + +

    Build a row major matrix from row vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::rowMajor3 (mat< 3, 3, T, Q > const & m)
    +
    + +

    Build a row major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::rowMajor4 (vec< 4, T, Q > const & v1,
    vec< 4, T, Q > const & v2,
    vec< 4, T, Q > const & v3,
    vec< 4, T, Q > const & v4 
    )
    +
    + +

    Build a row major matrix from row vectors.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::rowMajor4 (mat< 4, 4, T, Q > const & m)
    +
    + +

    Build a row major matrix from other matrix.

    +

    From GLM_GTX_matrix_major_storage extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00339.html b/external/glm-0.9.9.8/doc/api/a00339.html new file mode 100644 index 0000000..92ac4cd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00339.html @@ -0,0 +1,379 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_operation + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_operation
    +
    +
    + +

    Include <glm/gtx/matrix_operation.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > adjugate (mat< 2, 2, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > adjugate (mat< 3, 3, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > adjugate (mat< 4, 4, T, Q > const &m)
     Build an adjugate matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 2, T, Q > diagonal2x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 3, T, Q > diagonal2x3 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 2, 4, T, Q > diagonal2x4 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 2, T, Q > diagonal3x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > diagonal3x3 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 4, T, Q > diagonal3x4 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 2, T, Q > diagonal4x2 (vec< 2, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 3, T, Q > diagonal4x3 (vec< 3, T, Q > const &v)
     Build a diagonal matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > diagonal4x4 (vec< 4, T, Q > const &v)
     Build a diagonal matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_operation.hpp> to use the features of this extension.

    +

    Build diagonal matrices from vectors.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::adjugate (mat< 2, 2, T, Q > const & m)
    +
    + +

    Build an adjugate matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::adjugate (mat< 3, 3, T, Q > const & m)
    +
    + +

    Build an adjugate matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::adjugate (mat< 4, 4, T, Q > const & m)
    +
    + +

    Build an adjugate matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 2, T, Q> glm::diagonal2x2 (vec< 2, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 3, T, Q> glm::diagonal2x3 (vec< 2, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<2, 4, T, Q> glm::diagonal2x4 (vec< 2, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 2, T, Q> glm::diagonal3x2 (vec< 2, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::diagonal3x3 (vec< 3, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 4, T, Q> glm::diagonal3x4 (vec< 3, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 2, T, Q> glm::diagonal4x2 (vec< 2, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 3, T, Q> glm::diagonal4x3 (vec< 3, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::diagonal4x4 (vec< 4, T, Q > const & v)
    +
    + +

    Build a diagonal matrix.

    +

    From GLM_GTX_matrix_operation extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00340.html b/external/glm-0.9.9.8/doc/api/a00340.html new file mode 100644 index 0000000..b214c9a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00340.html @@ -0,0 +1,367 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_query + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_query
    +
    +
    + +

    Include <glm/gtx/matrix_query.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q, template< length_t, length_t, typename, qualifier > class matType>
    GLM_FUNC_DECL bool isIdentity (matType< C, R, T, Q > const &m, T const &epsilon)
     Return whether a matrix is an identity matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 2, 2, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 3, 3, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (mat< 4, 4, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a normalized matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 2, 2, T, Q > const &m, T const &epsilon)
     Return whether a matrix a null matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 3, 3, T, Q > const &m, T const &epsilon)
     Return whether a matrix a null matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (mat< 4, 4, T, Q > const &m, T const &epsilon)
     Return whether a matrix is a null matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q, template< length_t, length_t, typename, qualifier > class matType>
    GLM_FUNC_DECL bool isOrthogonal (matType< C, R, T, Q > const &m, T const &epsilon)
     Return whether a matrix is an orthonormalized matrix. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_query.hpp> to use the features of this extension.

    +

    Query to evaluate matrix properties

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isIdentity (matType< C, R, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is an identity matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNormalized (mat< 2, 2, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is a normalized matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNormalized (mat< 3, 3, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is a normalized matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNormalized (mat< 4, 4, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is a normalized matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNull (mat< 2, 2, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix a null matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNull (mat< 3, 3, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix a null matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNull (mat< 4, 4, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is a null matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isOrthogonal (matType< C, R, T, Q > const & m,
    T const & epsilon 
    )
    +
    + +

    Return whether a matrix is an orthonormalized matrix.

    +

    From GLM_GTX_matrix_query extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00341.html b/external/glm-0.9.9.8/doc/api/a00341.html new file mode 100644 index 0000000..94f1c3a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00341.html @@ -0,0 +1,298 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_matrix_transform_2d + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_matrix_transform_2d
    +
    +
    + +

    Include <glm/gtx/matrix_transform_2d.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > rotate (mat< 3, 3, T, Q > const &m, T angle)
     Builds a rotation 3 * 3 matrix created from an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > scale (mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
     Builds a scale 3 * 3 matrix created from a vector of 2 components. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearX (mat< 3, 3, T, Q > const &m, T y)
     Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > shearY (mat< 3, 3, T, Q > const &m, T x)
     Builds a vertical (parallel to the y axis) shear 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_QUALIFIER mat< 3, 3, T, Q > translate (mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)
     Builds a translation 3 * 3 matrix created from a vector of 2 components. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/matrix_transform_2d.hpp> to use the features of this extension.

    +

    Defines functions that generate common 2d transformation matrices.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER mat<3, 3, T, Q> glm::rotate (mat< 3, 3, T, Q > const & m,
    angle 
    )
    +
    + +

    Builds a rotation 3 * 3 matrix created from an angle.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    angleRotation angle expressed in radians.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER mat<3, 3, T, Q> glm::scale (mat< 3, 3, T, Q > const & m,
    vec< 2, T, Q > const & v 
    )
    +
    + +

    Builds a scale 3 * 3 matrix created from a vector of 2 components.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    vCoordinates of a scale vector.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER mat<3, 3, T, Q> glm::shearX (mat< 3, 3, T, Q > const & m,
    y 
    )
    +
    + +

    Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    yShear factor.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER mat<3, 3, T, Q> glm::shearY (mat< 3, 3, T, Q > const & m,
    x 
    )
    +
    + +

    Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    xShear factor.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_QUALIFIER mat<3, 3, T, Q> glm::translate (mat< 3, 3, T, Q > const & m,
    vec< 2, T, Q > const & v 
    )
    +
    + +

    Builds a translation 3 * 3 matrix created from a vector of 2 components.

    +
    Parameters
    + + + +
    mInput matrix multiplied by this translation matrix.
    vCoordinates of a translation vector.
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00342.html b/external/glm-0.9.9.8/doc/api/a00342.html new file mode 100644 index 0000000..5b21388 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00342.html @@ -0,0 +1,107 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_mixed_producte + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_mixed_producte
    +
    +
    + +

    Include <glm/gtx/mixed_product.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    +template<typename T , qualifier Q>
    GLM_FUNC_DECL T mixedProduct (vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)
     Mixed product of 3 vectors (from GLM_GTX_mixed_product extension)
     
    +

    Detailed Description

    +

    Include <glm/gtx/mixed_product.hpp> to use the features of this extension.

    +

    Mixed product of 3 vectors.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00343.html b/external/glm-0.9.9.8/doc/api/a00343.html new file mode 100644 index 0000000..3b3c1d5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00343.html @@ -0,0 +1,399 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_norm + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + + +
    +
    + +

    Include <glm/gtx/norm.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T distance2 (vec< L, T, Q > const &p0, vec< L, T, Q > const &p1)
     Returns the squared distance between p0 and p1, i.e., length2(p0 - p1). More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l1Norm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the L1 norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l1Norm (vec< 3, T, Q > const &v)
     Returns the L1 norm of v. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l2Norm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the L2 norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T l2Norm (vec< 3, T, Q > const &x)
     Returns the L2 norm of v. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T length2 (vec< L, T, Q > const &x)
     Returns the squared length of x. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lMaxNorm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Returns the LMax norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lMaxNorm (vec< 3, T, Q > const &x)
     Returns the LMax norm of v. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lxNorm (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, unsigned int Depth)
     Returns the L norm between x and y. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T lxNorm (vec< 3, T, Q > const &x, unsigned int Depth)
     Returns the L norm of v. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/norm.hpp> to use the features of this extension.

    +

    Various ways to compute vector norms.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::distance2 (vec< L, T, Q > const & p0,
    vec< L, T, Q > const & p1 
    )
    +
    + +

    Returns the squared distance between p0 and p1, i.e., length2(p0 - p1).

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::l1Norm (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y 
    )
    +
    + +

    Returns the L1 norm between x and y.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::l1Norm (vec< 3, T, Q > const & v)
    +
    + +

    Returns the L1 norm of v.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::l2Norm (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y 
    )
    +
    + +

    Returns the L2 norm between x and y.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::l2Norm (vec< 3, T, Q > const & x)
    +
    + +

    Returns the L2 norm of v.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::length2 (vec< L, T, Q > const & x)
    +
    + +

    Returns the squared length of x.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::lMaxNorm (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y 
    )
    +
    + +

    Returns the LMax norm between x and y.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::lMaxNorm (vec< 3, T, Q > const & x)
    +
    + +

    Returns the LMax norm of v.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::lxNorm (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y,
    unsigned int Depth 
    )
    +
    + +

    Returns the L norm between x and y.

    +

    From GLM_GTX_norm extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::lxNorm (vec< 3, T, Q > const & x,
    unsigned int Depth 
    )
    +
    + +

    Returns the L norm of v.

    +

    From GLM_GTX_norm extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00344.html b/external/glm-0.9.9.8/doc/api/a00344.html new file mode 100644 index 0000000..047c2d4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00344.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_normal + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/normal.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > triangleNormal (vec< 3, T, Q > const &p1, vec< 3, T, Q > const &p2, vec< 3, T, Q > const &p3)
     Computes triangle normal from triangle points. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/normal.hpp> to use the features of this extension.

    +

    Compute the normal of a triangle.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::triangleNormal (vec< 3, T, Q > const & p1,
    vec< 3, T, Q > const & p2,
    vec< 3, T, Q > const & p3 
    )
    +
    + +

    Computes triangle normal from triangle points.

    +
    See also
    GLM_GTX_normal
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00345.html b/external/glm-0.9.9.8/doc/api/a00345.html new file mode 100644 index 0000000..5c6fd9a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00345.html @@ -0,0 +1,171 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_normalize_dot + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_normalize_dot
    +
    +
    + +

    Include <glm/gtx/normalized_dot.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T fastNormalizeDot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Normalize parameters and returns the dot product of x and y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T normalizeDot (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Normalize parameters and returns the dot product of x and y. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/normalized_dot.hpp> to use the features of this extension.

    +

    Dot product of vectors that need to be normalize with a single square root.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::fastNormalizeDot (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Normalize parameters and returns the dot product of x and y.

    +

    Faster that dot(fastNormalize(x), fastNormalize(y)).

    +
    See also
    GLM_GTX_normalize_dot extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::normalizeDot (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Normalize parameters and returns the dot product of x and y.

    +

    It's faster that dot(normalize(x), normalize(y)).

    +
    See also
    GLM_GTX_normalize_dot extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00346.html b/external/glm-0.9.9.8/doc/api/a00346.html new file mode 100644 index 0000000..b745d4b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00346.html @@ -0,0 +1,142 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_number_precision + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_number_precision
    +
    +
    + +

    Include <glm/gtx/number_precision.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    +typedef f32 f32mat1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f32 f32mat1x1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f32 f32vec1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64mat1
     Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64mat1x1
     Double-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef f64 f64vec1
     Single-qualifier floating-point scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u16 u16vec1
     16bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u32 u32vec1
     32bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u64 u64vec1
     64bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +typedef u8 u8vec1
     8bit unsigned integer scalar. (from GLM_GTX_number_precision extension)
     
    +

    Detailed Description

    +

    Include <glm/gtx/number_precision.hpp> to use the features of this extension.

    +

    Defined size types.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00347.html b/external/glm-0.9.9.8/doc/api/a00347.html new file mode 100644 index 0000000..d665db7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00347.html @@ -0,0 +1,172 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_optimum_pow + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_optimum_pow
    +
    +
    + +

    Include <glm/gtx/optimum_pow.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType pow2 (genType const &x)
     Returns x raised to the power of 2. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType pow3 (genType const &x)
     Returns x raised to the power of 3. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType pow4 (genType const &x)
     Returns x raised to the power of 4. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/optimum_pow.hpp> to use the features of this extension.

    +

    Integer exponentiation of power functions.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::gtx::pow2 (genType const & x)
    +
    + +

    Returns x raised to the power of 2.

    +
    See also
    GLM_GTX_optimum_pow
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::gtx::pow3 (genType const & x)
    +
    + +

    Returns x raised to the power of 3.

    +
    See also
    GLM_GTX_optimum_pow
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::gtx::pow4 (genType const & x)
    +
    + +

    Returns x raised to the power of 4.

    +
    See also
    GLM_GTX_optimum_pow
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00348.html b/external/glm-0.9.9.8/doc/api/a00348.html new file mode 100644 index 0000000..f6441ed --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00348.html @@ -0,0 +1,159 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_orthonormalize + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_orthonormalize
    +
    +
    + +

    Include <glm/gtx/orthonormalize.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > orthonormalize (mat< 3, 3, T, Q > const &m)
     Returns the orthonormalized matrix of m. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > orthonormalize (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
     Orthonormalizes x according y. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/orthonormalize.hpp> to use the features of this extension.

    +

    Orthonormalize matrices.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::orthonormalize (mat< 3, 3, T, Q > const & m)
    +
    + +

    Returns the orthonormalized matrix of m.

    +
    See also
    GLM_GTX_orthonormalize
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::orthonormalize (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y 
    )
    +
    + +

    Orthonormalizes x according y.

    +
    See also
    GLM_GTX_orthonormalize
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00349.html b/external/glm-0.9.9.8/doc/api/a00349.html new file mode 100644 index 0000000..cb9f5a2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00349.html @@ -0,0 +1,136 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_perpendicular + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_perpendicular
    +
    +
    + +

    Include <glm/gtx/perpendicular.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType perp (genType const &x, genType const &Normal)
     Projects x a perpendicular axis of Normal. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/perpendicular.hpp> to use the features of this extension.

    +

    Perpendicular of a vector from other one

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::perp (genType const & x,
    genType const & Normal 
    )
    +
    + +

    Projects x a perpendicular axis of Normal.

    +

    From GLM_GTX_perpendicular extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00350.html b/external/glm-0.9.9.8/doc/api/a00350.html new file mode 100644 index 0000000..d7810ce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00350.html @@ -0,0 +1,149 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_polar_coordinates + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_polar_coordinates
    +
    +
    + +

    Include <glm/gtx/polar_coordinates.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > euclidean (vec< 2, T, Q > const &polar)
     Convert Polar to Euclidean coordinates. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > polar (vec< 3, T, Q > const &euclidean)
     Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/polar_coordinates.hpp> to use the features of this extension.

    +

    Conversion from Euclidean space to polar space and revert.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::euclidean (vec< 2, T, Q > const & polar)
    +
    + +

    Convert Polar to Euclidean coordinates.

    +
    See also
    GLM_GTX_polar_coordinates
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::polar (vec< 3, T, Q > const & euclidean)
    +
    + +

    Convert Euclidean to Polar coordinates, x is the xz distance, y, the latitude and z the longitude.

    +
    See also
    GLM_GTX_polar_coordinates
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00351.html b/external/glm-0.9.9.8/doc/api/a00351.html new file mode 100644 index 0000000..1955a87 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00351.html @@ -0,0 +1,143 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_projection + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_projection
    +
    +
    + +

    Include <glm/gtx/projection.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType proj (genType const &x, genType const &Normal)
     Projects x on Normal. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/projection.hpp> to use the features of this extension.

    +

    Projection of a vector to other one

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::proj (genType const & x,
    genType const & Normal 
    )
    +
    + +

    Projects x on Normal.

    +
    Parameters
    + + + +
    [in]xA vector to project
    [in]NormalA normal that doesn't need to be of unit length.
    +
    +
    +
    See also
    GLM_GTX_projection
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00352.html b/external/glm-0.9.9.8/doc/api/a00352.html new file mode 100644 index 0000000..846da9f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00352.html @@ -0,0 +1,622 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_quaternion + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_quaternion
    +
    +
    + +

    Include <glm/gtx/quaternion.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (qua< T, Q > const &q, vec< 3, T, Q > const &v)
     Compute a cross product between a quaternion and a vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > cross (vec< 3, T, Q > const &v, qua< T, Q > const &q)
     Compute a cross product between a vector and a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T extractRealComponent (qua< T, Q > const &q)
     Extract the real component of a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > fastMix (qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
     Quaternion normalized linear interpolation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > intermediate (qua< T, Q > const &prev, qua< T, Q > const &curr, qua< T, Q > const &next)
     Returns an intermediate control point for squad interpolation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T length2 (qua< T, Q > const &q)
     Returns the squared length of x. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > quat_identity ()
     Create an identity quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotate (qua< T, Q > const &q, vec< 3, T, Q > const &v)
     Returns quarternion square root. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotate (qua< T, Q > const &q, vec< 4, T, Q > const &v)
     Rotates a 4 components vector by a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotation (vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dest)
     Compute the rotation between two vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > shortMix (qua< T, Q > const &x, qua< T, Q > const &y, T const &a)
     Quaternion interpolation using the rotation short path. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > squad (qua< T, Q > const &q1, qua< T, Q > const &q2, qua< T, Q > const &s1, qua< T, Q > const &s2, T const &h)
     Compute a point on a path according squad equation. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > toMat3 (qua< T, Q > const &x)
     Converts a quaternion to a 3 * 3 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > toMat4 (qua< T, Q > const &x)
     Converts a quaternion to a 4 * 4 matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > toQuat (mat< 3, 3, T, Q > const &x)
     Converts a 3 * 3 matrix to a quaternion. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > toQuat (mat< 4, 4, T, Q > const &x)
     Converts a 4 * 4 matrix to a quaternion. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/quaternion.hpp> to use the features of this extension.

    +

    Extented quaternion types and functions

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::cross (qua< T, Q > const & q,
    vec< 3, T, Q > const & v 
    )
    +
    + +

    Compute a cross product between a quaternion and a vector.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::cross (vec< 3, T, Q > const & v,
    qua< T, Q > const & q 
    )
    +
    + +

    Compute a cross product between a vector and a quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::extractRealComponent (qua< T, Q > const & q)
    +
    + +

    Extract the real component of a quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::fastMix (qua< T, Q > const & x,
    qua< T, Q > const & y,
    T const & a 
    )
    +
    + +

    Quaternion normalized linear interpolation.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::intermediate (qua< T, Q > const & prev,
    qua< T, Q > const & curr,
    qua< T, Q > const & next 
    )
    +
    + +

    Returns an intermediate control point for squad interpolation.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::length2 (qua< T, Q > const & q)
    +
    + +

    Returns the squared length of x.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::quat_identity ()
    +
    + +

    Create an identity quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rotate (qua< T, Q > const & q,
    vec< 3, T, Q > const & v 
    )
    +
    + +

    Returns quarternion square root.

    +
    See also
    GLM_GTX_quaternion Rotates a 3 components vector by a quaternion.
    +
    +GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::rotate (qua< T, Q > const & q,
    vec< 4, T, Q > const & v 
    )
    +
    + +

    Rotates a 4 components vector by a quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::rotation (vec< 3, T, Q > const & orig,
    vec< 3, T, Q > const & dest 
    )
    +
    + +

    Compute the rotation between two vectors.

    +
    Parameters
    + + + +
    origvector, needs to be normalized
    destvector, needs to be normalized
    +
    +
    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::shortMix (qua< T, Q > const & x,
    qua< T, Q > const & y,
    T const & a 
    )
    +
    + +

    Quaternion interpolation using the rotation short path.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::squad (qua< T, Q > const & q1,
    qua< T, Q > const & q2,
    qua< T, Q > const & s1,
    qua< T, Q > const & s2,
    T const & h 
    )
    +
    + +

    Compute a point on a path according squad equation.

    +

    q1 and q2 are control points; s1 and s2 are intermediate control points.

    +
    See also
    GLM_GTX_quaternion
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::toMat3 (qua< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 3 * 3 matrix.

    +
    See also
    GLM_GTX_quaternion
    + +

    Definition at line 113 of file gtx/quaternion.hpp.

    + +

    References glm::mat3_cast().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::toMat4 (qua< T, Q > const & x)
    +
    + +

    Converts a quaternion to a 4 * 4 matrix.

    +
    See also
    GLM_GTX_quaternion
    + +

    Definition at line 120 of file gtx/quaternion.hpp.

    + +

    References glm::mat4_cast().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::toQuat (mat< 3, 3, T, Q > const & x)
    +
    + +

    Converts a 3 * 3 matrix to a quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +

    Definition at line 127 of file gtx/quaternion.hpp.

    + +

    References glm::quat_cast().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::toQuat (mat< 4, 4, T, Q > const & x)
    +
    + +

    Converts a 4 * 4 matrix to a quaternion.

    +
    See also
    GLM_GTX_quaternion
    + +

    Definition at line 134 of file gtx/quaternion.hpp.

    + +

    References glm::quat_cast().

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00353.html b/external/glm-0.9.9.8/doc/api/a00353.html new file mode 100644 index 0000000..8a67916 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00353.html @@ -0,0 +1,96 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_range + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    +
    +
    + +

    Include <glm/gtx/range.hpp> to use the features of this extension. +More...

    +

    Detailed Description

    +

    Include <glm/gtx/range.hpp> to use the features of this extension.

    +

    Defines begin and end for vectors and matrices. Useful for range-based for loop. The range is defined over the elements, not over columns or rows (e.g. mat4 has 16 elements).

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00354.html b/external/glm-0.9.9.8/doc/api/a00354.html new file mode 100644 index 0000000..55de4cf --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00354.html @@ -0,0 +1,183 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_raw_data + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_raw_data
    +
    +
    + +

    Include <glm/gtx/raw_data.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Typedefs

    typedef detail::uint8 byte
     Type for byte numbers. More...
     
    typedef detail::uint32 dword
     Type for dword numbers. More...
     
    typedef detail::uint64 qword
     Type for qword numbers. More...
     
    typedef detail::uint16 word
     Type for word numbers. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/raw_data.hpp> to use the features of this extension.

    +

    Projection of a vector to other one

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef detail::uint8 byte
    +
    + +

    Type for byte numbers.

    +

    From GLM_GTX_raw_data extension.

    + +

    Definition at line 34 of file raw_data.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint32 dword
    +
    + +

    Type for dword numbers.

    +

    From GLM_GTX_raw_data extension.

    + +

    Definition at line 42 of file raw_data.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint64 qword
    +
    + +

    Type for qword numbers.

    +

    From GLM_GTX_raw_data extension.

    + +

    Definition at line 46 of file raw_data.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef detail::uint16 word
    +
    + +

    Type for word numbers.

    +

    From GLM_GTX_raw_data extension.

    + +

    Definition at line 38 of file raw_data.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00355.html b/external/glm-0.9.9.8/doc/api/a00355.html new file mode 100644 index 0000000..b61f035 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00355.html @@ -0,0 +1,209 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_rotate_normalized_axis + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_rotate_normalized_axis
    +
    +
    + +

    Include <glm/gtx/rotate_normalized_axis.hpp> to use the features of this extension. +More...

    + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotateNormalizedAxis (mat< 4, 4, T, Q > const &m, T const &angle, vec< 3, T, Q > const &axis)
     Builds a rotation 4 * 4 matrix created from a normalized axis and an angle. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL qua< T, Q > rotateNormalizedAxis (qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)
     Rotates a quaternion from a vector of 3 components normalized axis and an angle. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/rotate_normalized_axis.hpp> to use the features of this extension.

    +

    Quaternions and matrices rotations around normalized axis.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::rotateNormalizedAxis (mat< 4, 4, T, Q > const & m,
    T const & angle,
    vec< 3, T, Q > const & axis 
    )
    +
    + +

    Builds a rotation 4 * 4 matrix created from a normalized axis and an angle.

    +
    Parameters
    + + + + +
    mInput matrix multiplied by this rotation matrix.
    angleRotation angle expressed in radians.
    axisRotation axis, must be normalized.
    +
    +
    +
    Template Parameters
    + + +
    TValue type used to build the matrix. Currently supported: half (not recommended), float or double.
    +
    +
    +
    See also
    GLM_GTX_rotate_normalized_axis
    +
    +- rotate(T angle, T x, T y, T z)
    +
    +- rotate(mat<4, 4, T, Q> const& m, T angle, T x, T y, T z)
    +
    +- rotate(T angle, vec<3, T, Q> const& v)
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL qua<T, Q> glm::rotateNormalizedAxis (qua< T, Q > const & q,
    T const & angle,
    vec< 3, T, Q > const & axis 
    )
    +
    + +

    Rotates a quaternion from a vector of 3 components normalized axis and an angle.

    +
    Parameters
    + + + + +
    qSource orientation
    angleAngle expressed in radians.
    axisNormalized axis of the rotation, must be normalized.
    +
    +
    +
    See also
    GLM_GTX_rotate_normalized_axis
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00356.html b/external/glm-0.9.9.8/doc/api/a00356.html new file mode 100644 index 0000000..15087b5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00356.html @@ -0,0 +1,492 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_rotate_vector + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_rotate_vector
    +
    +
    + +

    Include <glm/gtx/rotate_vector.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > orientation (vec< 3, T, Q > const &Normal, vec< 3, T, Q > const &Up)
     Build a rotation matrix from a normal and a up vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 2, T, Q > rotate (vec< 2, T, Q > const &v, T const &angle)
     Rotate a two dimensional vector. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotate (vec< 3, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)
     Rotate a three dimensional vector around an axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotate (vec< 4, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)
     Rotate a four dimensional vector around an axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateX (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateX (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateY (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateY (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > rotateZ (vec< 3, T, Q > const &v, T const &angle)
     Rotate a three dimensional vector around the Z axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 4, T, Q > rotateZ (vec< 4, T, Q > const &v, T const &angle)
     Rotate a four dimensional vector around the Z axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL vec< 3, T, Q > slerp (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, T const &a)
     Returns Spherical interpolation between two vectors. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/rotate_vector.hpp> to use the features of this extension.

    +

    Function to directly rotate a vector

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::orientation (vec< 3, T, Q > const & Normal,
    vec< 3, T, Q > const & Up 
    )
    +
    + +

    Build a rotation matrix from a normal and a up vector.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<2, T, Q> glm::rotate (vec< 2, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a two dimensional vector.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rotate (vec< 3, T, Q > const & v,
    T const & angle,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Rotate a three dimensional vector around an axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::rotate (vec< 4, T, Q > const & v,
    T const & angle,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Rotate a four dimensional vector around an axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rotateX (vec< 3, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a three dimensional vector around the X axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::rotateX (vec< 4, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a four dimensional vector around the X axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rotateY (vec< 3, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a three dimensional vector around the Y axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::rotateY (vec< 4, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a four dimensional vector around the Y axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::rotateZ (vec< 3, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a three dimensional vector around the Z axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<4, T, Q> glm::rotateZ (vec< 4, T, Q > const & v,
    T const & angle 
    )
    +
    + +

    Rotate a four dimensional vector around the Z axis.

    +

    From GLM_GTX_rotate_vector extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<3, T, Q> glm::slerp (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y,
    T const & a 
    )
    +
    + +

    Returns Spherical interpolation between two vectors.

    +
    Parameters
    + + + + +
    xA first vector
    yA second vector
    aInterpolation factor. The interpolation is defined beyond the range [0, 1].
    +
    +
    +
    See also
    GLM_GTX_rotate_vector
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00357.html b/external/glm-0.9.9.8/doc/api/a00357.html new file mode 100644 index 0000000..8ecf000 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00357.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_scalar_relational + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_GTX_scalar_relational
    +
    +
    + +

    Include <glm/gtx/scalar_relational.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtx/scalar_relational.hpp> to use the features of this extension.

    +

    Extend a position from a source to a position at a defined length.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00358.html b/external/glm-0.9.9.8/doc/api/a00358.html new file mode 100644 index 0000000..30c7888 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00358.html @@ -0,0 +1,256 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_spline + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/spline.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType catmullRom (genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
     Return a point from a catmull rom curve. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType cubic (genType const &v1, genType const &v2, genType const &v3, genType const &v4, typename genType::value_type const &s)
     Return a point from a cubic curve. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType hermite (genType const &v1, genType const &t1, genType const &v2, genType const &t2, typename genType::value_type const &s)
     Return a point from a hermite curve. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/spline.hpp> to use the features of this extension.

    +

    Spline functions

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::catmullRom (genType const & v1,
    genType const & v2,
    genType const & v3,
    genType const & v4,
    typename genType::value_type const & s 
    )
    +
    + +

    Return a point from a catmull rom curve.

    +
    See also
    GLM_GTX_spline extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::cubic (genType const & v1,
    genType const & v2,
    genType const & v3,
    genType const & v4,
    typename genType::value_type const & s 
    )
    +
    + +

    Return a point from a cubic curve.

    +
    See also
    GLM_GTX_spline extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL genType glm::hermite (genType const & v1,
    genType const & t1,
    genType const & v2,
    genType const & t2,
    typename genType::value_type const & s 
    )
    +
    + +

    Return a point from a hermite curve.

    +
    See also
    GLM_GTX_spline extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00359.html b/external/glm-0.9.9.8/doc/api/a00359.html new file mode 100644 index 0000000..ead6d95 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00359.html @@ -0,0 +1,263 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_std_based_type + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_std_based_type
    +
    +
    + +

    Include <glm/gtx/std_based_type.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Typedefs

    typedef vec< 1, std::size_t, defaultp > size1
     Vector type based of one std::size_t component. More...
     
    typedef vec< 1, std::size_t, defaultp > size1_t
     Vector type based of one std::size_t component. More...
     
    typedef vec< 2, std::size_t, defaultp > size2
     Vector type based of two std::size_t components. More...
     
    typedef vec< 2, std::size_t, defaultp > size2_t
     Vector type based of two std::size_t components. More...
     
    typedef vec< 3, std::size_t, defaultp > size3
     Vector type based of three std::size_t components. More...
     
    typedef vec< 3, std::size_t, defaultp > size3_t
     Vector type based of three std::size_t components. More...
     
    typedef vec< 4, std::size_t, defaultp > size4
     Vector type based of four std::size_t components. More...
     
    typedef vec< 4, std::size_t, defaultp > size4_t
     Vector type based of four std::size_t components. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/std_based_type.hpp> to use the features of this extension.

    +

    Adds vector types based on STL value types.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef vec<1, std::size_t, defaultp> size1
    +
    + +

    Vector type based of one std::size_t component.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 35 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<1, std::size_t, defaultp> size1_t
    +
    + +

    Vector type based of one std::size_t component.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 51 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<2, std::size_t, defaultp> size2
    +
    + +

    Vector type based of two std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 39 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<2, std::size_t, defaultp> size2_t
    +
    + +

    Vector type based of two std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 55 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<3, std::size_t, defaultp> size3
    +
    + +

    Vector type based of three std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 43 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<3, std::size_t, defaultp> size3_t
    +
    + +

    Vector type based of three std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 59 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<4, std::size_t, defaultp> size4
    +
    + +

    Vector type based of four std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 47 of file std_based_type.hpp.

    + +
    +
    + +
    +
    + + + + +
    typedef vec<4, std::size_t, defaultp> size4_t
    +
    + +

    Vector type based of four std::size_t components.

    +
    See also
    GLM_GTX_std_based_type
    + +

    Definition at line 63 of file std_based_type.hpp.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00360.html b/external/glm-0.9.9.8/doc/api/a00360.html new file mode 100644 index 0000000..063d7ba --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00360.html @@ -0,0 +1,127 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_string_cast + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_string_cast
    +
    +
    + +

    Include <glm/gtx/string_cast.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL std::string to_string (genType const &x)
     Create a string from a GLM vector or matrix typed variable. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/string_cast.hpp> to use the features of this extension.

    +

    Setup strings for GLM type values

    +

    This extension is not supported with CUDA

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL std::string glm::to_string (genType const & x)
    +
    + +

    Create a string from a GLM vector or matrix typed variable.

    +
    See also
    GLM_GTX_string_cast extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00361.html b/external/glm-0.9.9.8/doc/api/a00361.html new file mode 100644 index 0000000..4a220c7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00361.html @@ -0,0 +1,139 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_texture + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    +
    +
    + +

    Include <glm/gtx/texture.hpp> to use the features of this extension. +More...

    + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    levels (vec< L, T, Q > const &Extent)
     Compute the number of mipmaps levels necessary to create a mipmap complete texture. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/texture.hpp> to use the features of this extension.

    +

    Wrapping mode of texture coordinates.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    T glm::levels (vec< L, T, Q > const & Extent)
    +
    + +

    Compute the number of mipmaps levels necessary to create a mipmap complete texture.

    +
    Parameters
    + + +
    ExtentExtent of the texture base level mipmap
    +
    +
    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00362.html b/external/glm-0.9.9.8/doc/api/a00362.html new file mode 100644 index 0000000..6186794 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00362.html @@ -0,0 +1,188 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_transform + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_transform
    +
    +
    + +

    Include <glm/gtx/transform.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > rotate (T angle, vec< 3, T, Q > const &v)
     Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in radians. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scale (vec< 3, T, Q > const &v)
     Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > translate (vec< 3, T, Q > const &v)
     Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/transform.hpp> to use the features of this extension.

    +

    Add transformation matrices

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::rotate (angle,
    vec< 3, T, Q > const & v 
    )
    +
    + +

    Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in radians.

    +
    See also
    GLM_GTC_matrix_transform
    +
    +GLM_GTX_transform
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::scale (vec< 3, T, Q > const & v)
    +
    + +

    Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components.

    +
    See also
    GLM_GTC_matrix_transform
    +
    +GLM_GTX_transform
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::translate (vec< 3, T, Q > const & v)
    +
    + +

    Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars.

    +
    See also
    GLM_GTC_matrix_transform
    +
    +GLM_GTX_transform
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00363.html b/external/glm-0.9.9.8/doc/api/a00363.html new file mode 100644 index 0000000..a19bd1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00363.html @@ -0,0 +1,423 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_transform2 + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_transform2
    +
    +
    + +

    Include <glm/gtx/transform2.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > proj2D (mat< 3, 3, T, Q > const &m, vec< 3, T, Q > const &normal)
     Build planar projection matrix along normal axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > proj3D (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &normal)
     Build planar projection matrix along normal axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (T scale, T bias)
     Build a scale bias matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (mat< 4, 4, T, Q > const &m, T scale, T bias)
     Build a scale bias matrix. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearX2D (mat< 3, 3, T, Q > const &m, T y)
     Transforms a matrix with a shearing on X axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearX3D (mat< 4, 4, T, Q > const &m, T y, T z)
     Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 3, 3, T, Q > shearY2D (mat< 3, 3, T, Q > const &m, T x)
     Transforms a matrix with a shearing on Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearY3D (mat< 4, 4, T, Q > const &m, T x, T z)
     Transforms a matrix with a shearing on Y axis. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL mat< 4, 4, T, Q > shearZ3D (mat< 4, 4, T, Q > const &m, T x, T y)
     Transforms a matrix with a shearing on Z axis. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/transform2.hpp> to use the features of this extension.

    +

    Add extra transformation matrices

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::proj2D (mat< 3, 3, T, Q > const & m,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Build planar projection matrix along normal axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::proj3D (mat< 4, 4, T, Q > const & m,
    vec< 3, T, Q > const & normal 
    )
    +
    + +

    Build planar projection matrix along normal axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::scaleBias (scale,
    bias 
    )
    +
    + +

    Build a scale bias matrix.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::scaleBias (mat< 4, 4, T, Q > const & m,
    scale,
    bias 
    )
    +
    + +

    Build a scale bias matrix.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::shearX2D (mat< 3, 3, T, Q > const & m,
    y 
    )
    +
    + +

    Transforms a matrix with a shearing on X axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::shearX3D (mat< 4, 4, T, Q > const & m,
    y,
    z 
    )
    +
    + +

    Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<3, 3, T, Q> glm::shearY2D (mat< 3, 3, T, Q > const & m,
    x 
    )
    +
    + +

    Transforms a matrix with a shearing on Y axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::shearY3D (mat< 4, 4, T, Q > const & m,
    x,
    z 
    )
    +
    + +

    Transforms a matrix with a shearing on Y axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<4, 4, T, Q> glm::shearZ3D (mat< 4, 4, T, Q > const & m,
    x,
    y 
    )
    +
    + +

    Transforms a matrix with a shearing on Z axis.

    +

    From GLM_GTX_transform2 extension.

    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00364.html b/external/glm-0.9.9.8/doc/api/a00364.html new file mode 100644 index 0000000..ba1b70a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00364.html @@ -0,0 +1,7945 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_type_aligned + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_type_aligned
    +
    +
    + +

    Include <glm/gtx/type_aligned.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

     GLM_ALIGNED_TYPEDEF (lowp_int8, aligned_lowp_int8, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int16, aligned_lowp_int16, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int32, aligned_lowp_int32, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int64, aligned_lowp_int64, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int8_t, aligned_lowp_int8_t, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int16_t, aligned_lowp_int16_t, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int32_t, aligned_lowp_int32_t, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_int64_t, aligned_lowp_int64_t, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i8, aligned_lowp_i8, 1)
     Low qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i16, aligned_lowp_i16, 2)
     Low qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i32, aligned_lowp_i32, 4)
     Low qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_i64, aligned_lowp_i64, 8)
     Low qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int8, aligned_mediump_int8, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int16, aligned_mediump_int16, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int32, aligned_mediump_int32, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int64, aligned_mediump_int64, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int8_t, aligned_mediump_int8_t, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int16_t, aligned_mediump_int16_t, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int32_t, aligned_mediump_int32_t, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_int64_t, aligned_mediump_int64_t, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i8, aligned_mediump_i8, 1)
     Medium qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i16, aligned_mediump_i16, 2)
     Medium qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i32, aligned_mediump_i32, 4)
     Medium qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_i64, aligned_mediump_i64, 8)
     Medium qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int8, aligned_highp_int8, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int16, aligned_highp_int16, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int32, aligned_highp_int32, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int64, aligned_highp_int64, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int8_t, aligned_highp_int8_t, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int16_t, aligned_highp_int16_t, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int32_t, aligned_highp_int32_t, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_int64_t, aligned_highp_int64_t, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i8, aligned_highp_i8, 1)
     High qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i16, aligned_highp_i16, 2)
     High qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i32, aligned_highp_i32, 4)
     High qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_i64, aligned_highp_i64, 8)
     High qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int8, aligned_int8, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int16, aligned_int16, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int32, aligned_int32, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int64, aligned_int64, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int8_t, aligned_int8_t, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int16_t, aligned_int16_t, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int32_t, aligned_int32_t, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (int64_t, aligned_int64_t, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i8, aligned_i8, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i16, aligned_i16, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i32, aligned_i32, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i64, aligned_i64, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec1, aligned_ivec1, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec2, aligned_ivec2, 8)
     Default qualifier 32 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec3, aligned_ivec3, 16)
     Default qualifier 32 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (ivec4, aligned_ivec4, 16)
     Default qualifier 32 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec1, aligned_i8vec1, 1)
     Default qualifier 8 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec2, aligned_i8vec2, 2)
     Default qualifier 8 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec3, aligned_i8vec3, 4)
     Default qualifier 8 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i8vec4, aligned_i8vec4, 4)
     Default qualifier 8 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec1, aligned_i16vec1, 2)
     Default qualifier 16 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec2, aligned_i16vec2, 4)
     Default qualifier 16 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec3, aligned_i16vec3, 8)
     Default qualifier 16 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i16vec4, aligned_i16vec4, 8)
     Default qualifier 16 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec1, aligned_i32vec1, 4)
     Default qualifier 32 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec2, aligned_i32vec2, 8)
     Default qualifier 32 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec3, aligned_i32vec3, 16)
     Default qualifier 32 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i32vec4, aligned_i32vec4, 16)
     Default qualifier 32 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec1, aligned_i64vec1, 8)
     Default qualifier 64 bit signed integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec2, aligned_i64vec2, 16)
     Default qualifier 64 bit signed integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec3, aligned_i64vec3, 32)
     Default qualifier 64 bit signed integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (i64vec4, aligned_i64vec4, 32)
     Default qualifier 64 bit signed integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint8, aligned_lowp_uint8, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint16, aligned_lowp_uint16, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint32, aligned_lowp_uint32, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint64, aligned_lowp_uint64, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint8_t, aligned_lowp_uint8_t, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint16_t, aligned_lowp_uint16_t, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint32_t, aligned_lowp_uint32_t, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_uint64_t, aligned_lowp_uint64_t, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u8, aligned_lowp_u8, 1)
     Low qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u16, aligned_lowp_u16, 2)
     Low qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u32, aligned_lowp_u32, 4)
     Low qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (lowp_u64, aligned_lowp_u64, 8)
     Low qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint8, aligned_mediump_uint8, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint16, aligned_mediump_uint16, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint32, aligned_mediump_uint32, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint64, aligned_mediump_uint64, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint8_t, aligned_mediump_uint8_t, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint16_t, aligned_mediump_uint16_t, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint32_t, aligned_mediump_uint32_t, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_uint64_t, aligned_mediump_uint64_t, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u8, aligned_mediump_u8, 1)
     Medium qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u16, aligned_mediump_u16, 2)
     Medium qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u32, aligned_mediump_u32, 4)
     Medium qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (mediump_u64, aligned_mediump_u64, 8)
     Medium qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint8, aligned_highp_uint8, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint16, aligned_highp_uint16, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint32, aligned_highp_uint32, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint64, aligned_highp_uint64, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint8_t, aligned_highp_uint8_t, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint16_t, aligned_highp_uint16_t, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint32_t, aligned_highp_uint32_t, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_uint64_t, aligned_highp_uint64_t, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u8, aligned_highp_u8, 1)
     High qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u16, aligned_highp_u16, 2)
     High qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u32, aligned_highp_u32, 4)
     High qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (highp_u64, aligned_highp_u64, 8)
     High qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint8, aligned_uint8, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint16, aligned_uint16, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint32, aligned_uint32, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint64, aligned_uint64, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint8_t, aligned_uint8_t, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint16_t, aligned_uint16_t, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint32_t, aligned_uint32_t, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uint64_t, aligned_uint64_t, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u8, aligned_u8, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u16, aligned_u16, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u32, aligned_u32, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u64, aligned_u64, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec1, aligned_uvec1, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec2, aligned_uvec2, 8)
     Default qualifier 32 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec3, aligned_uvec3, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (uvec4, aligned_uvec4, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec1, aligned_u8vec1, 1)
     Default qualifier 8 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec2, aligned_u8vec2, 2)
     Default qualifier 8 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec3, aligned_u8vec3, 4)
     Default qualifier 8 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u8vec4, aligned_u8vec4, 4)
     Default qualifier 8 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec1, aligned_u16vec1, 2)
     Default qualifier 16 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec2, aligned_u16vec2, 4)
     Default qualifier 16 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec3, aligned_u16vec3, 8)
     Default qualifier 16 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u16vec4, aligned_u16vec4, 8)
     Default qualifier 16 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec1, aligned_u32vec1, 4)
     Default qualifier 32 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec2, aligned_u32vec2, 8)
     Default qualifier 32 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec3, aligned_u32vec3, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u32vec4, aligned_u32vec4, 16)
     Default qualifier 32 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec1, aligned_u64vec1, 8)
     Default qualifier 64 bit unsigned integer aligned scalar type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec2, aligned_u64vec2, 16)
     Default qualifier 64 bit unsigned integer aligned vector of 2 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec3, aligned_u64vec3, 32)
     Default qualifier 64 bit unsigned integer aligned vector of 3 components type. More...
     
     GLM_ALIGNED_TYPEDEF (u64vec4, aligned_u64vec4, 32)
     Default qualifier 64 bit unsigned integer aligned vector of 4 components type. More...
     
     GLM_ALIGNED_TYPEDEF (float32, aligned_float32, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float32_t, aligned_float32_t, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float32, aligned_f32, 4)
     32 bit single-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64, aligned_float64, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64_t, aligned_float64_t, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (float64, aligned_f64, 8)
     64 bit double-qualifier floating-point aligned scalar. More...
     
     GLM_ALIGNED_TYPEDEF (vec1, aligned_vec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (vec2, aligned_vec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (vec3, aligned_vec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (vec4, aligned_vec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec1, aligned_fvec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (fvec2, aligned_fvec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec3, aligned_fvec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (fvec4, aligned_fvec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec1, aligned_f32vec1, 4)
     Single-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec2, aligned_f32vec2, 8)
     Single-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec3, aligned_f32vec3, 16)
     Single-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (f32vec4, aligned_f32vec4, 16)
     Single-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec1, aligned_dvec1, 8)
     Double-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (dvec2, aligned_dvec2, 16)
     Double-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec3, aligned_dvec3, 32)
     Double-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (dvec4, aligned_dvec4, 32)
     Double-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec1, aligned_f64vec1, 8)
     Double-qualifier floating-point aligned vector of 1 component. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec2, aligned_f64vec2, 16)
     Double-qualifier floating-point aligned vector of 2 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec3, aligned_f64vec3, 32)
     Double-qualifier floating-point aligned vector of 3 components. More...
     
     GLM_ALIGNED_TYPEDEF (f64vec4, aligned_f64vec4, 32)
     Double-qualifier floating-point aligned vector of 4 components. More...
     
     GLM_ALIGNED_TYPEDEF (mat2, aligned_mat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (mat3, aligned_mat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (mat4, aligned_mat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x2, aligned_fmat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x3, aligned_fmat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x4, aligned_fmat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x2, aligned_fmat2x2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x3, aligned_fmat2x3, 16)
     Single-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat2x4, aligned_fmat2x4, 16)
     Single-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x2, aligned_fmat3x2, 16)
     Single-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x3, aligned_fmat3x3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat3x4, aligned_fmat3x4, 16)
     Single-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x2, aligned_fmat4x2, 16)
     Single-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x3, aligned_fmat4x3, 16)
     Single-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (fmat4x4, aligned_fmat4x4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x2, aligned_f32mat2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x3, aligned_f32mat3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x4, aligned_f32mat4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x2, aligned_f32mat2x2, 16)
     Single-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x3, aligned_f32mat2x3, 16)
     Single-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat2x4, aligned_f32mat2x4, 16)
     Single-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x2, aligned_f32mat3x2, 16)
     Single-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x3, aligned_f32mat3x3, 16)
     Single-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat3x4, aligned_f32mat3x4, 16)
     Single-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x2, aligned_f32mat4x2, 16)
     Single-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x3, aligned_f32mat4x3, 16)
     Single-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f32mat4x4, aligned_f32mat4x4, 16)
     Single-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x2, aligned_f64mat2, 32)
     Double-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x3, aligned_f64mat3, 32)
     Double-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x4, aligned_f64mat4, 32)
     Double-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x2, aligned_f64mat2x2, 32)
     Double-qualifier floating-point aligned 1x1 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x3, aligned_f64mat2x3, 32)
     Double-qualifier floating-point aligned 2x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat2x4, aligned_f64mat2x4, 32)
     Double-qualifier floating-point aligned 2x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x2, aligned_f64mat3x2, 32)
     Double-qualifier floating-point aligned 3x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x3, aligned_f64mat3x3, 32)
     Double-qualifier floating-point aligned 3x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat3x4, aligned_f64mat3x4, 32)
     Double-qualifier floating-point aligned 3x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x2, aligned_f64mat4x2, 32)
     Double-qualifier floating-point aligned 4x2 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x3, aligned_f64mat4x3, 32)
     Double-qualifier floating-point aligned 4x3 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (f64mat4x4, aligned_f64mat4x4, 32)
     Double-qualifier floating-point aligned 4x4 matrix. More...
     
     GLM_ALIGNED_TYPEDEF (quat, aligned_quat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (quat, aligned_fquat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (dquat, aligned_dquat, 32)
     Double-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (f32quat, aligned_f32quat, 16)
     Single-qualifier floating-point aligned quaternion. More...
     
     GLM_ALIGNED_TYPEDEF (f64quat, aligned_f64quat, 32)
     Double-qualifier floating-point aligned quaternion. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/type_aligned.hpp> to use the features of this extension.

    +

    Defines aligned types.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int8 ,
    aligned_lowp_int8 ,
     
    )
    +
    + +

    Low qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int16 ,
    aligned_lowp_int16 ,
     
    )
    +
    + +

    Low qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int32 ,
    aligned_lowp_int32 ,
     
    )
    +
    + +

    Low qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int64 ,
    aligned_lowp_int64 ,
     
    )
    +
    + +

    Low qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int8_t ,
    aligned_lowp_int8_t ,
     
    )
    +
    + +

    Low qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int16_t ,
    aligned_lowp_int16_t ,
     
    )
    +
    + +

    Low qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int32_t ,
    aligned_lowp_int32_t ,
     
    )
    +
    + +

    Low qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_int64_t ,
    aligned_lowp_int64_t ,
     
    )
    +
    + +

    Low qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_i8 ,
    aligned_lowp_i8 ,
     
    )
    +
    + +

    Low qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_i16 ,
    aligned_lowp_i16 ,
     
    )
    +
    + +

    Low qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_i32 ,
    aligned_lowp_i32 ,
     
    )
    +
    + +

    Low qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_i64 ,
    aligned_lowp_i64 ,
     
    )
    +
    + +

    Low qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int8 ,
    aligned_mediump_int8 ,
     
    )
    +
    + +

    Medium qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int16 ,
    aligned_mediump_int16 ,
     
    )
    +
    + +

    Medium qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int32 ,
    aligned_mediump_int32 ,
     
    )
    +
    + +

    Medium qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int64 ,
    aligned_mediump_int64 ,
     
    )
    +
    + +

    Medium qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int8_t ,
    aligned_mediump_int8_t ,
     
    )
    +
    + +

    Medium qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int16_t ,
    aligned_mediump_int16_t ,
     
    )
    +
    + +

    Medium qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int32_t ,
    aligned_mediump_int32_t ,
     
    )
    +
    + +

    Medium qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_int64_t ,
    aligned_mediump_int64_t ,
     
    )
    +
    + +

    Medium qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_i8 ,
    aligned_mediump_i8 ,
     
    )
    +
    + +

    Medium qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_i16 ,
    aligned_mediump_i16 ,
     
    )
    +
    + +

    Medium qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_i32 ,
    aligned_mediump_i32 ,
     
    )
    +
    + +

    Medium qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_i64 ,
    aligned_mediump_i64 ,
     
    )
    +
    + +

    Medium qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int8 ,
    aligned_highp_int8 ,
     
    )
    +
    + +

    High qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int16 ,
    aligned_highp_int16 ,
     
    )
    +
    + +

    High qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int32 ,
    aligned_highp_int32 ,
     
    )
    +
    + +

    High qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int64 ,
    aligned_highp_int64 ,
     
    )
    +
    + +

    High qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int8_t ,
    aligned_highp_int8_t ,
     
    )
    +
    + +

    High qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int16_t ,
    aligned_highp_int16_t ,
     
    )
    +
    + +

    High qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int32_t ,
    aligned_highp_int32_t ,
     
    )
    +
    + +

    High qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_int64_t ,
    aligned_highp_int64_t ,
     
    )
    +
    + +

    High qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_i8 ,
    aligned_highp_i8 ,
     
    )
    +
    + +

    High qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_i16 ,
    aligned_highp_i16 ,
     
    )
    +
    + +

    High qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_i32 ,
    aligned_highp_i32 ,
     
    )
    +
    + +

    High qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_i64 ,
    aligned_highp_i64 ,
     
    )
    +
    + +

    High qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int8 ,
    aligned_int8 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int16 ,
    aligned_int16 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int32 ,
    aligned_int32 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int64 ,
    aligned_int64 ,
     
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int8_t ,
    aligned_int8_t ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int16_t ,
    aligned_int16_t ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int32_t ,
    aligned_int32_t ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (int64_t ,
    aligned_int64_t ,
     
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i8 ,
    aligned_i8 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i16 ,
    aligned_i16 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i32 ,
    aligned_i32 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i64 ,
    aligned_i64 ,
     
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (ivec1 ,
    aligned_ivec1 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (ivec2 ,
    aligned_ivec2 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (ivec3 ,
    aligned_ivec3 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (ivec4 ,
    aligned_ivec4 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i8vec1 ,
    aligned_i8vec1 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i8vec2 ,
    aligned_i8vec2 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i8vec3 ,
    aligned_i8vec3 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i8vec4 ,
    aligned_i8vec4 ,
     
    )
    +
    + +

    Default qualifier 8 bit signed integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i16vec1 ,
    aligned_i16vec1 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i16vec2 ,
    aligned_i16vec2 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i16vec3 ,
    aligned_i16vec3 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i16vec4 ,
    aligned_i16vec4 ,
     
    )
    +
    + +

    Default qualifier 16 bit signed integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i32vec1 ,
    aligned_i32vec1 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i32vec2 ,
    aligned_i32vec2 ,
     
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i32vec3 ,
    aligned_i32vec3 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i32vec4 ,
    aligned_i32vec4 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit signed integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i64vec1 ,
    aligned_i64vec1 ,
     
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i64vec2 ,
    aligned_i64vec2 ,
    16  
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i64vec3 ,
    aligned_i64vec3 ,
    32  
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (i64vec4 ,
    aligned_i64vec4 ,
    32  
    )
    +
    + +

    Default qualifier 64 bit signed integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint8 ,
    aligned_lowp_uint8 ,
     
    )
    +
    + +

    Low qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint16 ,
    aligned_lowp_uint16 ,
     
    )
    +
    + +

    Low qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint32 ,
    aligned_lowp_uint32 ,
     
    )
    +
    + +

    Low qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint64 ,
    aligned_lowp_uint64 ,
     
    )
    +
    + +

    Low qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint8_t ,
    aligned_lowp_uint8_t ,
     
    )
    +
    + +

    Low qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint16_t ,
    aligned_lowp_uint16_t ,
     
    )
    +
    + +

    Low qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint32_t ,
    aligned_lowp_uint32_t ,
     
    )
    +
    + +

    Low qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_uint64_t ,
    aligned_lowp_uint64_t ,
     
    )
    +
    + +

    Low qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_u8 ,
    aligned_lowp_u8 ,
     
    )
    +
    + +

    Low qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_u16 ,
    aligned_lowp_u16 ,
     
    )
    +
    + +

    Low qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_u32 ,
    aligned_lowp_u32 ,
     
    )
    +
    + +

    Low qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (lowp_u64 ,
    aligned_lowp_u64 ,
     
    )
    +
    + +

    Low qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint8 ,
    aligned_mediump_uint8 ,
     
    )
    +
    + +

    Medium qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint16 ,
    aligned_mediump_uint16 ,
     
    )
    +
    + +

    Medium qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint32 ,
    aligned_mediump_uint32 ,
     
    )
    +
    + +

    Medium qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint64 ,
    aligned_mediump_uint64 ,
     
    )
    +
    + +

    Medium qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint8_t ,
    aligned_mediump_uint8_t ,
     
    )
    +
    + +

    Medium qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint16_t ,
    aligned_mediump_uint16_t ,
     
    )
    +
    + +

    Medium qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint32_t ,
    aligned_mediump_uint32_t ,
     
    )
    +
    + +

    Medium qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_uint64_t ,
    aligned_mediump_uint64_t ,
     
    )
    +
    + +

    Medium qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_u8 ,
    aligned_mediump_u8 ,
     
    )
    +
    + +

    Medium qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_u16 ,
    aligned_mediump_u16 ,
     
    )
    +
    + +

    Medium qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_u32 ,
    aligned_mediump_u32 ,
     
    )
    +
    + +

    Medium qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (mediump_u64 ,
    aligned_mediump_u64 ,
     
    )
    +
    + +

    Medium qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint8 ,
    aligned_highp_uint8 ,
     
    )
    +
    + +

    High qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint16 ,
    aligned_highp_uint16 ,
     
    )
    +
    + +

    High qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint32 ,
    aligned_highp_uint32 ,
     
    )
    +
    + +

    High qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint64 ,
    aligned_highp_uint64 ,
     
    )
    +
    + +

    High qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint8_t ,
    aligned_highp_uint8_t ,
     
    )
    +
    + +

    High qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint16_t ,
    aligned_highp_uint16_t ,
     
    )
    +
    + +

    High qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint32_t ,
    aligned_highp_uint32_t ,
     
    )
    +
    + +

    High qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_uint64_t ,
    aligned_highp_uint64_t ,
     
    )
    +
    + +

    High qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_u8 ,
    aligned_highp_u8 ,
     
    )
    +
    + +

    High qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_u16 ,
    aligned_highp_u16 ,
     
    )
    +
    + +

    High qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_u32 ,
    aligned_highp_u32 ,
     
    )
    +
    + +

    High qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (highp_u64 ,
    aligned_highp_u64 ,
     
    )
    +
    + +

    High qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint8 ,
    aligned_uint8 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint16 ,
    aligned_uint16 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint32 ,
    aligned_uint32 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint64 ,
    aligned_uint64 ,
     
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint8_t ,
    aligned_uint8_t ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint16_t ,
    aligned_uint16_t ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint32_t ,
    aligned_uint32_t ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uint64_t ,
    aligned_uint64_t ,
     
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u8 ,
    aligned_u8 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u16 ,
    aligned_u16 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u32 ,
    aligned_u32 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u64 ,
    aligned_u64 ,
     
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uvec1 ,
    aligned_uvec1 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uvec2 ,
    aligned_uvec2 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uvec3 ,
    aligned_uvec3 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (uvec4 ,
    aligned_uvec4 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u8vec1 ,
    aligned_u8vec1 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u8vec2 ,
    aligned_u8vec2 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u8vec3 ,
    aligned_u8vec3 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u8vec4 ,
    aligned_u8vec4 ,
     
    )
    +
    + +

    Default qualifier 8 bit unsigned integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u16vec1 ,
    aligned_u16vec1 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u16vec2 ,
    aligned_u16vec2 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u16vec3 ,
    aligned_u16vec3 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u16vec4 ,
    aligned_u16vec4 ,
     
    )
    +
    + +

    Default qualifier 16 bit unsigned integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u32vec1 ,
    aligned_u32vec1 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u32vec2 ,
    aligned_u32vec2 ,
     
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u32vec3 ,
    aligned_u32vec3 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u32vec4 ,
    aligned_u32vec4 ,
    16  
    )
    +
    + +

    Default qualifier 32 bit unsigned integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u64vec1 ,
    aligned_u64vec1 ,
     
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned scalar type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u64vec2 ,
    aligned_u64vec2 ,
    16  
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned vector of 2 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u64vec3 ,
    aligned_u64vec3 ,
    32  
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned vector of 3 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (u64vec4 ,
    aligned_u64vec4 ,
    32  
    )
    +
    + +

    Default qualifier 64 bit unsigned integer aligned vector of 4 components type.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float32 ,
    aligned_float32 ,
     
    )
    +
    + +

    32 bit single-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float32_t ,
    aligned_float32_t ,
     
    )
    +
    + +

    32 bit single-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float32 ,
    aligned_f32 ,
     
    )
    +
    + +

    32 bit single-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float64 ,
    aligned_float64 ,
     
    )
    +
    + +

    64 bit double-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float64_t ,
    aligned_float64_t ,
     
    )
    +
    + +

    64 bit double-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (float64 ,
    aligned_f64 ,
     
    )
    +
    + +

    64 bit double-qualifier floating-point aligned scalar.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (vec1 ,
    aligned_vec1 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 1 component.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (vec2 ,
    aligned_vec2 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 2 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (vec3 ,
    aligned_vec3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 3 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (vec4 ,
    aligned_vec4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 4 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fvec1 ,
    aligned_fvec1 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 1 component.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fvec2 ,
    aligned_fvec2 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 2 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fvec3 ,
    aligned_fvec3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 3 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fvec4 ,
    aligned_fvec4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 4 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32vec1 ,
    aligned_f32vec1 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 1 component.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32vec2 ,
    aligned_f32vec2 ,
     
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 2 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32vec3 ,
    aligned_f32vec3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 3 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32vec4 ,
    aligned_f32vec4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned vector of 4 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (dvec1 ,
    aligned_dvec1 ,
     
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 1 component.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (dvec2 ,
    aligned_dvec2 ,
    16  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 2 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (dvec3 ,
    aligned_dvec3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 3 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (dvec4 ,
    aligned_dvec4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 4 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64vec1 ,
    aligned_f64vec1 ,
     
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 1 component.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64vec2 ,
    aligned_f64vec2 ,
    16  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 2 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64vec3 ,
    aligned_f64vec3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 3 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64vec4 ,
    aligned_f64vec4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned vector of 4 components.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_ALIGNED_TYPEDEF (mat2 ,
    aligned_mat2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Single-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_ALIGNED_TYPEDEF (mat3 ,
    aligned_mat3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_ALIGNED_TYPEDEF (mat4 ,
    aligned_mat4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat2x2 ,
    aligned_fmat2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Single-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat3x3 ,
    aligned_fmat3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat4x4 ,
    aligned_fmat4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat2x2 ,
    aligned_fmat2x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Single-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat2x3 ,
    aligned_fmat2x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 2x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat2x4 ,
    aligned_fmat2x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 2x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat3x2 ,
    aligned_fmat3x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat3x3 ,
    aligned_fmat3x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat3x4 ,
    aligned_fmat3x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat4x2 ,
    aligned_fmat4x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat4x3 ,
    aligned_fmat4x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (fmat4x4 ,
    aligned_fmat4x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat2x2 ,
    aligned_f32mat2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Single-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat3x3 ,
    aligned_f32mat3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat4x4 ,
    aligned_f32mat4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat2x2 ,
    aligned_f32mat2x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Single-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat2x3 ,
    aligned_f32mat2x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 2x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat2x4 ,
    aligned_f32mat2x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 2x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat3x2 ,
    aligned_f32mat3x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat3x3 ,
    aligned_f32mat3x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat3x4 ,
    aligned_f32mat3x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 3x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat4x2 ,
    aligned_f32mat4x2 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat4x3 ,
    aligned_f32mat4x3 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32mat4x4 ,
    aligned_f32mat4x4 ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat2x2 ,
    aligned_f64mat2 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Double-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat3x3 ,
    aligned_f64mat3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat4x4 ,
    aligned_f64mat4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat2x2 ,
    aligned_f64mat2x2 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 1x1 matrix.

    +
    See also
    GLM_GTX_type_aligned Double-qualifier floating-point aligned 2x2 matrix.
    +
    +GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat2x3 ,
    aligned_f64mat2x3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 2x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat2x4 ,
    aligned_f64mat2x4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 2x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat3x2 ,
    aligned_f64mat3x2 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 3x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat3x3 ,
    aligned_f64mat3x3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 3x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat3x4 ,
    aligned_f64mat3x4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 3x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat4x2 ,
    aligned_f64mat4x2 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 4x2 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat4x3 ,
    aligned_f64mat4x3 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 4x3 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64mat4x4 ,
    aligned_f64mat4x4 ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned 4x4 matrix.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (quat ,
    aligned_quat ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned quaternion.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (quat ,
    aligned_fquat ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned quaternion.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (dquat ,
    aligned_dquat ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned quaternion.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f32quat ,
    aligned_f32quat ,
    16  
    )
    +
    + +

    Single-qualifier floating-point aligned quaternion.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    glm::GLM_ALIGNED_TYPEDEF (f64quat ,
    aligned_f64quat ,
    32  
    )
    +
    + +

    Double-qualifier floating-point aligned quaternion.

    +
    See also
    GLM_GTX_type_aligned
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00365.html b/external/glm-0.9.9.8/doc/api/a00365.html new file mode 100644 index 0000000..86c244c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00365.html @@ -0,0 +1,96 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_type_trait + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_GTX_type_trait
    +
    +
    + +

    Include <glm/gtx/type_trait.hpp> to use the features of this extension. +More...

    +

    Detailed Description

    +

    Include <glm/gtx/type_trait.hpp> to use the features of this extension.

    +

    Defines traits for each type.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00366.html b/external/glm-0.9.9.8/doc/api/a00366.html new file mode 100644 index 0000000..d5c2202 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00366.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_vec_swizzle + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    GLM_GTX_vec_swizzle
    +
    +
    + +

    Include <glm/gtx/vec_swizzle.hpp> to use the features of this extension. +More...

    +

    Include <glm/gtx/vec_swizzle.hpp> to use the features of this extension.

    +

    Functions to perform swizzle operation.

    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00367.html b/external/glm-0.9.9.8/doc/api/a00367.html new file mode 100644 index 0000000..bd3a673 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00367.html @@ -0,0 +1,208 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_vector_angle + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_vector_angle
    +
    +
    + +

    Include <glm/gtx/vector_angle.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL T angle (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the absolute angle between two vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T orientedAngle (vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)
     Returns the oriented angle between two 2d vectors. More...
     
    template<typename T , qualifier Q>
    GLM_FUNC_DECL T orientedAngle (vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, vec< 3, T, Q > const &ref)
     Returns the oriented angle between two 3d vectors based from a reference axis. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/vector_angle.hpp> to use the features of this extension.

    +

    Compute angle between vectors

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::angle (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the absolute angle between two vectors.

    +

    Parameters need to be normalized.

    See also
    GLM_GTX_vector_angle extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::orientedAngle (vec< 2, T, Q > const & x,
    vec< 2, T, Q > const & y 
    )
    +
    + +

    Returns the oriented angle between two 2d vectors.

    +

    Parameters need to be normalized.

    See also
    GLM_GTX_vector_angle extension.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL T glm::orientedAngle (vec< 3, T, Q > const & x,
    vec< 3, T, Q > const & y,
    vec< 3, T, Q > const & ref 
    )
    +
    + +

    Returns the oriented angle between two 3d vectors based from a reference axis.

    +

    Parameters need to be normalized.

    See also
    GLM_GTX_vector_angle extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00368.html b/external/glm-0.9.9.8/doc/api/a00368.html new file mode 100644 index 0000000..06a5b02 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00368.html @@ -0,0 +1,319 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_vector_query + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    GLM_GTX_vector_query
    +
    +
    + +

    Include <glm/gtx/vector_query.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areCollinear (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are collinears. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areOrthogonal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are orthogonals. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool areOrthonormal (vec< L, T, Q > const &v0, vec< L, T, Q > const &v1, T const &epsilon)
     Check whether two vectors are orthonormal. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, bool, Q > isCompNull (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a each component of a vector is null. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool isNormalized (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a vector is normalized. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL bool isNull (vec< L, T, Q > const &v, T const &epsilon)
     Check whether a vector is null. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/vector_query.hpp> to use the features of this extension.

    +

    Query informations of vector types

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::areCollinear (vec< L, T, Q > const & v0,
    vec< L, T, Q > const & v1,
    T const & epsilon 
    )
    +
    + +

    Check whether two vectors are collinears.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::areOrthogonal (vec< L, T, Q > const & v0,
    vec< L, T, Q > const & v1,
    T const & epsilon 
    )
    +
    + +

    Check whether two vectors are orthogonals.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::areOrthonormal (vec< L, T, Q > const & v0,
    vec< L, T, Q > const & v1,
    T const & epsilon 
    )
    +
    + +

    Check whether two vectors are orthonormal.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, bool, Q> glm::isCompNull (vec< L, T, Q > const & v,
    T const & epsilon 
    )
    +
    + +

    Check whether a each component of a vector is null.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNormalized (vec< L, T, Q > const & v,
    T const & epsilon 
    )
    +
    + +

    Check whether a vector is normalized.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL bool glm::isNull (vec< L, T, Q > const & v,
    T const & epsilon 
    )
    +
    + +

    Check whether a vector is null.

    +
    See also
    GLM_GTX_vector_query extensions.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00369.html b/external/glm-0.9.9.8/doc/api/a00369.html new file mode 100644 index 0000000..39d8f7e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00369.html @@ -0,0 +1,195 @@ + + + + + + +0.9.9 API documentation: GLM_GTX_wrap + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + + +
    +
    + +

    Include <glm/gtx/wrap.hpp> to use the features of this extension. +More...

    + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL genType clamp (genType const &Texcoord)
     Simulate GL_CLAMP OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType mirrorClamp (genType const &Texcoord)
     Simulate GL_MIRRORED_REPEAT OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType mirrorRepeat (genType const &Texcoord)
     Simulate GL_MIRROR_REPEAT OpenGL wrap mode. More...
     
    template<typename genType >
    GLM_FUNC_DECL genType repeat (genType const &Texcoord)
     Simulate GL_REPEAT OpenGL wrap mode. More...
     
    +

    Detailed Description

    +

    Include <glm/gtx/wrap.hpp> to use the features of this extension.

    +

    Wrapping mode of texture coordinates.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::clamp (genType const & Texcoord)
    +
    + +

    Simulate GL_CLAMP OpenGL wrap mode.

    +
    See also
    GLM_GTX_wrap extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::mirrorClamp (genType const & Texcoord)
    +
    + +

    Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.

    +
    See also
    GLM_GTX_wrap extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::mirrorRepeat (genType const & Texcoord)
    +
    + +

    Simulate GL_MIRROR_REPEAT OpenGL wrap mode.

    +
    See also
    GLM_GTX_wrap extension.
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL genType glm::repeat (genType const & Texcoord)
    +
    + +

    Simulate GL_REPEAT OpenGL wrap mode.

    +
    See also
    GLM_GTX_wrap extension.
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00370.html b/external/glm-0.9.9.8/doc/api/a00370.html new file mode 100644 index 0000000..0ca8a2a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00370.html @@ -0,0 +1,639 @@ + + + + + + +0.9.9 API documentation: Integer functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Integer functions
    +
    +
    + +

    Provides GLSL functions on integer types. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<typename genType >
    GLM_FUNC_DECL int bitCount (genType v)
     Returns the number of bits set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > bitCount (vec< L, T, Q > const &v)
     Returns the number of bits set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldExtract (vec< L, T, Q > const &Value, int Offset, int Bits)
     Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldInsert (vec< L, T, Q > const &Base, vec< L, T, Q > const &Insert, int Offset, int Bits)
     Returns the insertion the bits least-significant bits of insert into base. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > bitfieldReverse (vec< L, T, Q > const &v)
     Returns the reversal of the bits of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL int findLSB (genIUType x)
     Returns the bit number of the least significant bit set to 1 in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findLSB (vec< L, T, Q > const &v)
     Returns the bit number of the least significant bit set to 1 in the binary representation of value. More...
     
    template<typename genIUType >
    GLM_FUNC_DECL int findMSB (genIUType x)
     Returns the bit number of the most significant bit in the binary representation of value. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, int, Q > findMSB (vec< L, T, Q > const &v)
     Returns the bit number of the most significant bit in the binary representation of value. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL void imulExtended (vec< L, int, Q > const &x, vec< L, int, Q > const &y, vec< L, int, Q > &msb, vec< L, int, Q > &lsb)
     Multiplies 32-bit integers x and y, producing a 64-bit result. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > uaddCarry (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &carry)
     Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL void umulExtended (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &msb, vec< L, uint, Q > &lsb)
     Multiplies 32-bit integers x and y, producing a 64-bit result. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL vec< L, uint, Q > usubBorrow (vec< L, uint, Q > const &x, vec< L, uint, Q > const &y, vec< L, uint, Q > &borrow)
     Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. More...
     
    +

    Detailed Description

    +

    Provides GLSL functions on integer types.

    +

    These all operate component-wise. The description is per component. The notation [a, b] means the set of bits from bit-number a through bit-number b, inclusive. The lowest-order bit is bit 0.

    +

    Include <glm/integer.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::bitCount (genType v)
    +
    + +

    Returns the number of bits set to 1 in the binary representation of value.

    +
    Template Parameters
    + + +
    genTypeSigned or unsigned integer scalar or vector types.
    +
    +
    +
    See also
    GLSL bitCount man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::bitCount (vec< L, T, Q > const & v)
    +
    + +

    Returns the number of bits set to 1 in the binary representation of value.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar or vector types.
    +
    +
    +
    See also
    GLSL bitCount man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldExtract (vec< L, T, Q > const & Value,
    int Offset,
    int Bits 
    )
    +
    + +

    Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result.

    +

    For unsigned data types, the most significant bits of the result will be set to zero. For signed data types, the most significant bits will be set to the value of bit offset + base - 1.

    +

    If bits is zero, the result will be zero. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLSL bitfieldExtract man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldInsert (vec< L, T, Q > const & Base,
    vec< L, T, Q > const & Insert,
    int Offset,
    int Bits 
    )
    +
    + +

    Returns the insertion the bits least-significant bits of insert into base.

    +

    The result will have bits [offset, offset + bits - 1] taken from bits [0, bits - 1] of insert, and all other bits taken directly from the corresponding bits of base. If bits is zero, the result will simply be base. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar or vector types.
    +
    +
    +
    See also
    GLSL bitfieldInsert man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::bitfieldReverse (vec< L, T, Q > const & v)
    +
    + +

    Returns the reversal of the bits of value.

    +

    The bit numbered n of the result will be taken from bit (bits - 1) - n of value, where bits is the total number of bits used to represent value.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar or vector types.
    +
    +
    +
    See also
    GLSL bitfieldReverse man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::findLSB (genIUType x)
    +
    + +

    Returns the bit number of the least significant bit set to 1 in the binary representation of value.

    +

    If value is zero, -1 will be returned.

    +
    Template Parameters
    + + +
    genIUTypeSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLSL findLSB man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::findLSB (vec< L, T, Q > const & v)
    +
    + +

    Returns the bit number of the least significant bit set to 1 in the binary representation of value.

    +

    If value is zero, -1 will be returned.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLSL findLSB man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL int glm::findMSB (genIUType x)
    +
    + +

    Returns the bit number of the most significant bit in the binary representation of value.

    +

    For positive integers, the result will be the bit number of the most significant bit set to 1. For negative integers, the result will be the bit number of the most significant bit set to 0. For a value of zero or negative one, -1 will be returned.

    +
    Template Parameters
    + + +
    genIUTypeSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLSL findMSB man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, int, Q> glm::findMSB (vec< L, T, Q > const & v)
    +
    + +

    Returns the bit number of the most significant bit in the binary representation of value.

    +

    For positive integers, the result will be the bit number of the most significant bit set to 1. For negative integers, the result will be the bit number of the most significant bit set to 0. For a value of zero or negative one, -1 will be returned.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TSigned or unsigned integer scalar types.
    +
    +
    +
    See also
    GLSL findMSB man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::imulExtended (vec< L, int, Q > const & x,
    vec< L, int, Q > const & y,
    vec< L, int, Q > & msb,
    vec< L, int, Q > & lsb 
    )
    +
    + +

    Multiplies 32-bit integers x and y, producing a 64-bit result.

    +

    The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL imulExtended man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, uint, Q> glm::uaddCarry (vec< L, uint, Q > const & x,
    vec< L, uint, Q > const & y,
    vec< L, uint, Q > & carry 
    )
    +
    + +

    Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32).

    +

    The value carry is set to 0 if the sum was less than pow(2, 32), or to 1 otherwise.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL uaddCarry man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL void glm::umulExtended (vec< L, uint, Q > const & x,
    vec< L, uint, Q > const & y,
    vec< L, uint, Q > & msb,
    vec< L, uint, Q > & lsb 
    )
    +
    + +

    Multiplies 32-bit integers x and y, producing a 64-bit result.

    +

    The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL umulExtended man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, uint, Q> glm::usubBorrow (vec< L, uint, Q > const & x,
    vec< L, uint, Q > const & y,
    vec< L, uint, Q > & borrow 
    )
    +
    + +

    Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise.

    +

    The value borrow is set to 0 if x >= y, or to 1 otherwise.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL usubBorrow man page
    +
    +GLSL 4.20.8 specification, section 8.8 Integer Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00371.html b/external/glm-0.9.9.8/doc/api/a00371.html new file mode 100644 index 0000000..a6fafdb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00371.html @@ -0,0 +1,293 @@ + + + + + + +0.9.9 API documentation: Matrix functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Matrix functions
    +
    +
    + +

    Provides GLSL matrix functions. +More...

    + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL T determinant (mat< C, R, T, Q > const &m)
     Return the determinant of a squared matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > inverse (mat< C, R, T, Q > const &m)
     Return the inverse of a squared matrix. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q > matrixCompMult (mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
     Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j]. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL detail::outerProduct_trait< C, R, T, Q >::type outerProduct (vec< C, T, Q > const &c, vec< R, T, Q > const &r)
     Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r. More...
     
    template<length_t C, length_t R, typename T , qualifier Q>
    GLM_FUNC_DECL mat< C, R, T, Q >::transpose_type transpose (mat< C, R, T, Q > const &x)
     Returns the transposed matrix of x. More...
     
    +

    Detailed Description

    +

    Provides GLSL matrix functions.

    +

    Include <glm/matrix.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL T glm::determinant (mat< C, R, T, Q > const & m)
    +
    + +

    Return the determinant of a squared matrix.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number a column
    RInteger between 1 and 4 included that qualify the number a row
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL determinant man page
    +
    +GLSL 4.20.8 specification, section 8.6 Matrix Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<C, R, T, Q> glm::inverse (mat< C, R, T, Q > const & m)
    +
    + +

    Return the inverse of a squared matrix.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number a column
    RInteger between 1 and 4 included that qualify the number a row
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL inverse man page
    +
    +GLSL 4.20.8 specification, section 8.6 Matrix Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL mat<C, R, T, Q> glm::matrixCompMult (mat< C, R, T, Q > const & x,
    mat< C, R, T, Q > const & y 
    )
    +
    + +

    Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and y[i][j].

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number a column
    RInteger between 1 and 4 included that qualify the number a row
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL matrixCompMult man page
    +
    +GLSL 4.20.8 specification, section 8.6 Matrix Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL detail::outerProduct_trait<C, R, T, Q>::type glm::outerProduct (vec< C, T, Q > const & c,
    vec< R, T, Q > const & r 
    )
    +
    + +

    Treats the first parameter c as a column vector and the second parameter r as a row vector and does a linear algebraic matrix multiply c * r.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number a column
    RInteger between 1 and 4 included that qualify the number a row
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL outerProduct man page
    +
    +GLSL 4.20.8 specification, section 8.6 Matrix Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL mat<C, R, T, Q>::transpose_type glm::transpose (mat< C, R, T, Q > const & x)
    +
    + +

    Returns the transposed matrix of x.

    +
    Template Parameters
    + + + + + +
    CInteger between 1 and 4 included that qualify the number a column
    RInteger between 1 and 4 included that qualify the number a row
    TFloating-point or signed integer scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL transpose man page
    +
    +GLSL 4.20.8 specification, section 8.6 Matrix Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00372.html b/external/glm-0.9.9.8/doc/api/a00372.html new file mode 100644 index 0000000..561c695 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00372.html @@ -0,0 +1,420 @@ + + + + + + +0.9.9 API documentation: Floating-Point Pack and Unpack Functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Floating-Point Pack and Unpack Functions
    +
    +
    + +

    Provides GLSL functions to pack and unpack half, single and double-precision floating point values into more compact integer types. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    GLM_FUNC_DECL double packDouble2x32 (uvec2 const &v)
     Returns a double-qualifier value obtained by packing the components of v into a 64-bit value. More...
     
    GLM_FUNC_DECL uint packHalf2x16 (vec2 const &v)
     Returns an unsigned integer obtained by converting the components of a two-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these two 16- bit integers into a 32-bit unsigned integer. More...
     
    GLM_FUNC_DECL uint packSnorm2x16 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packSnorm4x8 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packUnorm2x16 (vec2 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uint packUnorm4x8 (vec4 const &v)
     First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values. More...
     
    GLM_FUNC_DECL uvec2 unpackDouble2x32 (double v)
     Returns a two-component unsigned integer vector representation of v. More...
     
    GLM_FUNC_DECL vec2 unpackHalf2x16 (uint v)
     Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned integer into a pair of 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. More...
     
    GLM_FUNC_DECL vec2 unpackSnorm2x16 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackSnorm4x8 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec2 unpackUnorm2x16 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    GLM_FUNC_DECL vec4 unpackUnorm4x8 (uint p)
     First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers. More...
     
    +

    Detailed Description

    +

    Provides GLSL functions to pack and unpack half, single and double-precision floating point values into more compact integer types.

    +

    These functions do not operate component-wise, rather as described in each case.

    +

    Include <glm/packing.hpp> to use these core features.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL double glm::packDouble2x32 (uvec2 const & v)
    +
    + +

    Returns a double-qualifier value obtained by packing the components of v into a 64-bit value.

    +

    If an IEEE 754 Inf or NaN is created, it will not signal, and the resulting floating point value is unspecified. Otherwise, the bit- level representation of v is preserved. The first vector component specifies the 32 least significant bits; the second component specifies the 32 most significant bits.

    +
    See also
    GLSL packDouble2x32 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packHalf2x16 (vec2 const & v)
    +
    + +

    Returns an unsigned integer obtained by converting the components of a two-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these two 16- bit integers into a 32-bit unsigned integer.

    +

    The first vector component specifies the 16 least-significant bits of the result; the second component specifies the 16 most-significant bits.

    +
    See also
    GLSL packHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packSnorm2x16 (vec2 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values.

    +

    Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packSnorm2x16: round(clamp(v, -1, +1) * 32767.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLSL packSnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packSnorm4x8 (vec4 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values.

    +

    Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packSnorm4x8: round(clamp(c, -1, +1) * 127.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLSL packSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packUnorm2x16 (vec2 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values.

    +

    Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm2x16: round(clamp(c, 0, +1) * 65535.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLSL packUnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uint glm::packUnorm4x8 (vec4 const & v)
    +
    + +

    First, converts each component of the normalized floating-point value v into 8- or 16-bit integer values.

    +

    Then, the results are packed into the returned 32-bit unsigned integer.

    +

    The conversion for component c of v to fixed point is done as follows: packUnorm4x8: round(clamp(c, 0, +1) * 255.0)

    +

    The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.

    +
    See also
    GLSL packUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL uvec2 glm::unpackDouble2x32 (double v)
    +
    + +

    Returns a two-component unsigned integer vector representation of v.

    +

    The bit-level representation of v is preserved. The first component of the vector contains the 32 least significant bits of the double; the second component consists the 32 most significant bits.

    +
    See also
    GLSL unpackDouble2x32 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackHalf2x16 (uint v)
    +
    + +

    Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned integer into a pair of 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values.

    +

    The first component of the vector is obtained from the 16 least-significant bits of v; the second component is obtained from the 16 most-significant bits of v.

    +
    See also
    GLSL unpackHalf2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackSnorm2x16 (uint p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm2x16: clamp(f / 32767.0, -1, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLSL unpackSnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackSnorm4x8 (uint p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm4x8: clamp(f / 127.0, -1, +1)

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLSL unpackSnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec2 glm::unpackUnorm2x16 (uint p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm2x16: f / 65535.0

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLSL unpackUnorm2x16 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec4 glm::unpackUnorm4x8 (uint p)
    +
    + +

    First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.

    +

    Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.

    +

    The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0

    +

    The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.

    +
    See also
    GLSL unpackUnorm4x8 man page
    +
    +GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00373.html b/external/glm-0.9.9.8/doc/api/a00373.html new file mode 100644 index 0000000..4e771f7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00373.html @@ -0,0 +1,621 @@ + + + + + + +0.9.9 API documentation: Angle and Trigonometry Functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Angle and Trigonometry Functions
    +
    +
    + +

    Function parameters specified as angle are assumed to be in units of radians. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > acos (vec< L, T, Q > const &x)
     Arc cosine. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > acosh (vec< L, T, Q > const &x)
     Arc hyperbolic cosine; returns the non-negative inverse of cosh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > asin (vec< L, T, Q > const &x)
     Arc sine. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > asinh (vec< L, T, Q > const &x)
     Arc hyperbolic sine; returns the inverse of sinh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atan (vec< L, T, Q > const &y, vec< L, T, Q > const &x)
     Arc tangent. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atan (vec< L, T, Q > const &y_over_x)
     Arc tangent. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > atanh (vec< L, T, Q > const &x)
     Arc hyperbolic tangent; returns the inverse of tanh. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > cos (vec< L, T, Q > const &angle)
     The standard trigonometric cosine function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > cosh (vec< L, T, Q > const &angle)
     Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > degrees (vec< L, T, Q > const &radians)
     Converts radians to degrees and returns the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > radians (vec< L, T, Q > const &degrees)
     Converts degrees to radians and returns the result. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sin (vec< L, T, Q > const &angle)
     The standard trigonometric sine function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > sinh (vec< L, T, Q > const &angle)
     Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > tan (vec< L, T, Q > const &angle)
     The standard trigonometric tangent function. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL vec< L, T, Q > tanh (vec< L, T, Q > const &angle)
     Returns the hyperbolic tangent function, sinh(angle) / cosh(angle) More...
     
    +

    Detailed Description

    +

    Function parameters specified as angle are assumed to be in units of radians.

    +

    In no case will any of these functions result in a divide by zero error. If the divisor of a ratio is 0, then results will be undefined.

    +

    These all operate component-wise. The description is per component.

    +

    Include <glm/trigonometric.hpp> to use these core features.

    +
    See also
    ext_vector_trigonometric
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::acos (vec< L, T, Q > const & x)
    +
    + +

    Arc cosine.

    +

    Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL acos man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::acosh (vec< L, T, Q > const & x)
    +
    + +

    Arc hyperbolic cosine; returns the non-negative inverse of cosh.

    +

    Results are undefined if x < 1.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL acosh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::asin (vec< L, T, Q > const & x)
    +
    + +

    Arc sine.

    +

    Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL asin man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::asinh (vec< L, T, Q > const & x)
    +
    + +

    Arc hyperbolic sine; returns the inverse of sinh.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL asinh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::atan (vec< L, T, Q > const & y,
    vec< L, T, Q > const & x 
    )
    +
    + +

    Arc tangent.

    +

    Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL atan man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +

    Referenced by glm::atan2().

    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::atan (vec< L, T, Q > const & y_over_x)
    +
    + +

    Arc tangent.

    +

    Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2].

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL atan man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::atanh (vec< L, T, Q > const & x)
    +
    + +

    Arc hyperbolic tangent; returns the inverse of tanh.

    +

    Results are undefined if abs(x) >= 1.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL atanh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::cos (vec< L, T, Q > const & angle)
    +
    + +

    The standard trigonometric cosine function.

    +

    The values returned by this function will range from [-1, 1].

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL cos man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::cosh (vec< L, T, Q > const & angle)
    +
    + +

    Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL cosh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::degrees (vec< L, T, Q > const & radians)
    +
    + +

    Converts radians to degrees and returns the result.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL degrees man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> glm::radians (vec< L, T, Q > const & degrees)
    +
    + +

    Converts degrees to radians and returns the result.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL radians man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::sin (vec< L, T, Q > const & angle)
    +
    + +

    The standard trigonometric sine function.

    +

    The values returned by this function will range from [-1, 1].

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL sin man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::sinh (vec< L, T, Q > const & angle)
    +
    + +

    Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL sinh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::tan (vec< L, T, Q > const & angle)
    +
    + +

    The standard trigonometric tangent function.

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL tan man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL vec<L, T, Q> glm::tanh (vec< L, T, Q > const & angle)
    +
    + +

    Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)

    +
    Template Parameters
    + + + + +
    LInteger between 1 and 4 included that qualify the dimension of the vector
    TFloating-point scalar types
    QValue from qualifier enum
    +
    +
    +
    See also
    GLSL tanh man page
    +
    +GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions
    + +
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/a00374.html b/external/glm-0.9.9.8/doc/api/a00374.html new file mode 100644 index 0000000..b97dfae --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/a00374.html @@ -0,0 +1,452 @@ + + + + + + +0.9.9 API documentation: Vector Relational Functions + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    Vector Relational Functions
    +
    +
    + +

    Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results. +More...

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR bool all (vec< L, bool, Q > const &v)
     Returns true if all components of x are true. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR bool any (vec< L, bool, Q > const &v)
     Returns true if any component of x is true. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > equal (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x == y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThan (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x > y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > greaterThanEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x >= y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThan (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison result of x < y. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > lessThanEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x <= y. More...
     
    template<length_t L, qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > not_ (vec< L, bool, Q > const &v)
     Returns the component-wise logical complement of x. More...
     
    template<length_t L, typename T , qualifier Q>
    GLM_FUNC_DECL GLM_CONSTEXPR vec< L, bool, Q > notEqual (vec< L, T, Q > const &x, vec< L, T, Q > const &y)
     Returns the component-wise comparison of result x != y. More...
     
    +

    Detailed Description

    +

    Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars and produce scalar Boolean results.

    +

    For vector results, use the following built-in functions.

    +

    In all cases, the sizes of all the input and return vectors for any particular call must match.

    +

    Include <glm/vector_relational.hpp> to use these core features.

    +
    See also
    GLM_EXT_vector_relational
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR bool glm::all (vec< L, bool, Q > const & v)
    +
    + +

    Returns true if all components of x are true.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL all man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR bool glm::any (vec< L, bool, Q > const & v)
    +
    + +

    Returns true if any component of x is true.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL any man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::equal (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x == y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point, integer or bool scalar type.
    +
    +
    +
    See also
    GLSL equal man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::greaterThan (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x > y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point or integer scalar type.
    +
    +
    +
    See also
    GLSL greaterThan man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::greaterThanEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x >= y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point or integer scalar type.
    +
    +
    +
    See also
    GLSL greaterThanEqual man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::lessThan (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison result of x < y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point or integer scalar type.
    +
    +
    +
    See also
    GLSL lessThan man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::lessThanEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x <= y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point or integer scalar type.
    +
    +
    +
    See also
    GLSL lessThanEqual man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::not_ (vec< L, bool, Q > const & v)
    +
    + +

    Returns the component-wise logical complement of x.

    +

    /!\ Because of language incompatibilities between C++ and GLSL, GLM defines the function not but not_ instead.

    +
    Template Parameters
    + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    +
    +
    +
    See also
    GLSL not man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    GLM_FUNC_DECL GLM_CONSTEXPR vec<L, bool, Q> glm::notEqual (vec< L, T, Q > const & x,
    vec< L, T, Q > const & y 
    )
    +
    + +

    Returns the component-wise comparison of result x != y.

    +
    Template Parameters
    + + + +
    LAn integer between 1 and 4 included that qualify the dimension of the vector.
    TA floating-point, integer or bool scalar type.
    +
    +
    +
    See also
    GLSL notEqual man page
    +
    +GLSL 4.20.8 specification, section 8.7 Vector Relational Functions
    + +
    +
    +
    + + + + diff --git a/external/glm/doc/api/arrowdown.png b/external/glm-0.9.9.8/doc/api/arrowdown.png similarity index 100% rename from external/glm/doc/api/arrowdown.png rename to external/glm-0.9.9.8/doc/api/arrowdown.png diff --git a/external/glm/doc/api/arrowright.png b/external/glm-0.9.9.8/doc/api/arrowright.png similarity index 100% rename from external/glm/doc/api/arrowright.png rename to external/glm-0.9.9.8/doc/api/arrowright.png diff --git a/external/glm-0.9.9.8/doc/api/bc_s.png b/external/glm-0.9.9.8/doc/api/bc_s.png new file mode 100644 index 0000000..a274117 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/bc_s.png differ diff --git a/external/glm-0.9.9.8/doc/api/bdwn.png b/external/glm-0.9.9.8/doc/api/bdwn.png new file mode 100644 index 0000000..52e0f77 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/bdwn.png differ diff --git a/external/glm-0.9.9.8/doc/api/closed.png b/external/glm-0.9.9.8/doc/api/closed.png new file mode 100644 index 0000000..c2ff2e8 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/closed.png differ diff --git a/external/glm-0.9.9.8/doc/api/dir_033f5edb0915b828d2c46ed4804e5503.html b/external/glm-0.9.9.8/doc/api/dir_033f5edb0915b828d2c46ed4804e5503.html new file mode 100644 index 0000000..9eb2a95 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_033f5edb0915b828d2c46ed4804e5503.html @@ -0,0 +1,164 @@ + + + + + + +0.9.9 API documentation: detail Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    detail Directory Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Files

    file  _features.hpp [code]
     
    file  _fixes.hpp [code]
     
    file  _noise.hpp [code]
     
    file  _swizzle.hpp [code]
     
    file  _swizzle_func.hpp [code]
     
    file  _vectorize.hpp [code]
     
    file  compute_common.hpp [code]
     
    file  compute_vector_relational.hpp [code]
     
    file  qualifier.hpp [code]
     
    file  setup.hpp [code]
     
    file  type_float.hpp [code]
     
    file  type_half.hpp [code]
     
    file  type_mat2x2.hpp [code]
     Core features
     
    file  type_mat2x3.hpp [code]
     Core features
     
    file  type_mat2x4.hpp [code]
     Core features
     
    file  type_mat3x2.hpp [code]
     Core features
     
    file  type_mat3x3.hpp [code]
     Core features
     
    file  type_mat3x4.hpp [code]
     Core features
     
    file  type_mat4x2.hpp [code]
     Core features
     
    file  type_mat4x3.hpp [code]
     Core features
     
    file  type_mat4x4.hpp [code]
     Core features
     
    file  type_quat.hpp [code]
     Core features
     
    file  type_vec1.hpp [code]
     Core features
     
    file  type_vec2.hpp [code]
     Core features
     
    file  type_vec3.hpp [code]
     Core features
     
    file  type_vec4.hpp [code]
     Core features
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_3a581ba30d25676e4b797b1f96d53b45.html b/external/glm-0.9.9.8/doc/api/dir_3a581ba30d25676e4b797b1f96d53b45.html new file mode 100644 index 0000000..d36929c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_3a581ba30d25676e4b797b1f96d53b45.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: F: Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    F: Directory Reference
    +
    +
    + + + + +

    +Directories

    directory  G-Truc
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_44e5e654415abd9ca6fdeaddaff8565e.html b/external/glm-0.9.9.8/doc/api/dir_44e5e654415abd9ca6fdeaddaff8565e.html new file mode 100644 index 0000000..89280e6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_44e5e654415abd9ca6fdeaddaff8565e.html @@ -0,0 +1,102 @@ + + + + + + +0.9.9 API documentation: glm Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    glm Directory Reference
    +
    +
    + + + + + + +

    +Directories

    directory  doc
     
    directory  glm
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_4c6bd29c73fa4e5a2509e1c15f846751.html b/external/glm-0.9.9.8/doc/api/dir_4c6bd29c73fa4e5a2509e1c15f846751.html new file mode 100644 index 0000000..ed0755c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_4c6bd29c73fa4e5a2509e1c15f846751.html @@ -0,0 +1,158 @@ + + + + + + +0.9.9 API documentation: gtc Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtc Directory Reference
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_5189610d3ba09ec39b766fb99b34cd93.html b/external/glm-0.9.9.8/doc/api/dir_5189610d3ba09ec39b766fb99b34cd93.html new file mode 100644 index 0000000..bcddfe8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_5189610d3ba09ec39b766fb99b34cd93.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: doc Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    doc Directory Reference
    +
    +
    + + + + +

    +Files

    file  man.doxy [code]
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_6b66465792d005310484819a0eb0b0d3.html b/external/glm-0.9.9.8/doc/api/dir_6b66465792d005310484819a0eb0b0d3.html new file mode 100644 index 0000000..96d4b58 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_6b66465792d005310484819a0eb0b0d3.html @@ -0,0 +1,403 @@ + + + + + + +0.9.9 API documentation: ext Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    ext Directory Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Files

    file  matrix_clip_space.hpp [code]
     GLM_EXT_matrix_clip_space
     
    file  matrix_common.hpp [code]
     GLM_EXT_matrix_common
     
    file  matrix_double2x2.hpp [code]
     Core features
     
    file  matrix_double2x2_precision.hpp [code]
     Core features
     
    file  matrix_double2x3.hpp [code]
     Core features
     
    file  matrix_double2x3_precision.hpp [code]
     Core features
     
    file  matrix_double2x4.hpp [code]
     Core features
     
    file  matrix_double2x4_precision.hpp [code]
     Core features
     
    file  matrix_double3x2.hpp [code]
     Core features
     
    file  matrix_double3x2_precision.hpp [code]
     Core features
     
    file  matrix_double3x3.hpp [code]
     Core features
     
    file  matrix_double3x3_precision.hpp [code]
     Core features
     
    file  matrix_double3x4.hpp [code]
     Core features
     
    file  matrix_double3x4_precision.hpp [code]
     Core features
     
    file  matrix_double4x2.hpp [code]
     Core features
     
    file  matrix_double4x2_precision.hpp [code]
     Core features
     
    file  matrix_double4x3.hpp [code]
     Core features
     
    file  matrix_double4x3_precision.hpp [code]
     Core features
     
    file  matrix_double4x4.hpp [code]
     Core features
     
    file  matrix_double4x4_precision.hpp [code]
     Core features
     
    file  matrix_float2x2.hpp [code]
     Core features
     
    file  matrix_float2x2_precision.hpp [code]
     Core features
     
    file  matrix_float2x3.hpp [code]
     Core features
     
    file  matrix_float2x3_precision.hpp [code]
     Core features
     
    file  matrix_float2x4.hpp [code]
     Core features
     
    file  matrix_float2x4_precision.hpp [code]
     Core features
     
    file  matrix_float3x2.hpp [code]
     Core features
     
    file  matrix_float3x2_precision.hpp [code]
     Core features
     
    file  matrix_float3x3.hpp [code]
     Core features
     
    file  matrix_float3x3_precision.hpp [code]
     Core features
     
    file  matrix_float3x4.hpp [code]
     Core features
     
    file  matrix_float3x4_precision.hpp [code]
     Core features
     
    file  matrix_float4x2.hpp [code]
     Core features
     
    file  matrix_float4x2_precision.hpp [code]
     
    file  matrix_float4x3.hpp [code]
     Core features
     
    file  matrix_float4x3_precision.hpp [code]
     Core features
     
    file  matrix_float4x4.hpp [code]
     Core features
     
    file  matrix_float4x4_precision.hpp [code]
     Core features
     
    file  matrix_projection.hpp [code]
     GLM_EXT_matrix_projection
     
    file  matrix_relational.hpp [code]
     GLM_EXT_matrix_relational
     
    file  ext/matrix_transform.hpp [code]
     GLM_EXT_matrix_transform
     
    file  quaternion_common.hpp [code]
     GLM_EXT_quaternion_common
     
    file  quaternion_double.hpp [code]
     GLM_EXT_quaternion_double
     
    file  quaternion_double_precision.hpp [code]
     GLM_EXT_quaternion_double_precision
     
    file  quaternion_exponential.hpp [code]
     GLM_EXT_quaternion_exponential
     
    file  quaternion_float.hpp [code]
     GLM_EXT_quaternion_float
     
    file  quaternion_float_precision.hpp [code]
     GLM_EXT_quaternion_float_precision
     
    file  quaternion_geometric.hpp [code]
     GLM_EXT_quaternion_geometric
     
    file  quaternion_relational.hpp [code]
     GLM_EXT_quaternion_relational
     
    file  quaternion_transform.hpp [code]
     GLM_EXT_quaternion_transform
     
    file  quaternion_trigonometric.hpp [code]
     GLM_EXT_quaternion_trigonometric
     
    file  scalar_common.hpp [code]
     GLM_EXT_scalar_common
     
    file  scalar_constants.hpp [code]
     GLM_EXT_scalar_constants
     
    file  scalar_int_sized.hpp [code]
     GLM_EXT_scalar_int_sized
     
    file  scalar_integer.hpp [code]
     GLM_EXT_scalar_integer
     
    file  ext/scalar_relational.hpp [code]
     GLM_EXT_scalar_relational
     
    file  scalar_uint_sized.hpp [code]
     GLM_EXT_scalar_uint_sized
     
    file  scalar_ulp.hpp [code]
     GLM_EXT_scalar_ulp
     
    file  vector_bool1.hpp [code]
     GLM_EXT_vector_bool1
     
    file  vector_bool1_precision.hpp [code]
     GLM_EXT_vector_bool1_precision
     
    file  vector_bool2.hpp [code]
     Core features
     
    file  vector_bool2_precision.hpp [code]
     Core features
     
    file  vector_bool3.hpp [code]
     Core features
     
    file  vector_bool3_precision.hpp [code]
     Core features
     
    file  vector_bool4.hpp [code]
     Core features
     
    file  vector_bool4_precision.hpp [code]
     Core features
     
    file  vector_common.hpp [code]
     GLM_EXT_vector_common
     
    file  vector_double1.hpp [code]
     GLM_EXT_vector_double1
     
    file  vector_double1_precision.hpp [code]
     GLM_EXT_vector_double1_precision
     
    file  vector_double2.hpp [code]
     Core features
     
    file  vector_double2_precision.hpp [code]
     Core features
     
    file  vector_double3.hpp [code]
     Core features
     
    file  vector_double3_precision.hpp [code]
     Core features
     
    file  vector_double4.hpp [code]
     Core features
     
    file  vector_double4_precision.hpp [code]
     Core features
     
    file  vector_float1.hpp [code]
     GLM_EXT_vector_float1
     
    file  vector_float1_precision.hpp [code]
     GLM_EXT_vector_float1_precision
     
    file  vector_float2.hpp [code]
     Core features
     
    file  vector_float2_precision.hpp [code]
     Core features
     
    file  vector_float3.hpp [code]
     Core features
     
    file  vector_float3_precision.hpp [code]
     Core features
     
    file  vector_float4.hpp [code]
     Core features
     
    file  vector_float4_precision.hpp [code]
     Core features
     
    file  vector_int1.hpp [code]
     GLM_EXT_vector_int1
     
    file  vector_int1_precision.hpp [code]
     GLM_EXT_vector_int1_precision
     
    file  vector_int2.hpp [code]
     Core features
     
    file  vector_int2_precision.hpp [code]
     Core features
     
    file  vector_int3.hpp [code]
     Core features
     
    file  vector_int3_precision.hpp [code]
     Core features
     
    file  vector_int4.hpp [code]
     Core features
     
    file  vector_int4_precision.hpp [code]
     Core features
     
    file  vector_integer.hpp [code]
     GLM_EXT_vector_integer
     
    file  ext/vector_relational.hpp [code]
     GLM_EXT_vector_relational
     
    file  vector_uint1.hpp [code]
     GLM_EXT_vector_uint1
     
    file  vector_uint1_precision.hpp [code]
     GLM_EXT_vector_uint1_precision
     
    file  vector_uint2.hpp [code]
     Core features
     
    file  vector_uint2_precision.hpp [code]
     Core features
     
    file  vector_uint3.hpp [code]
     Core features
     
    file  vector_uint3_precision.hpp [code]
     Core features
     
    file  vector_uint4.hpp [code]
     Core features
     
    file  vector_uint4_precision.hpp [code]
     Core features
     
    file  vector_ulp.hpp [code]
     GLM_EXT_vector_ulp
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_9e5fe034a00e89334fd5186c3e7db156.html b/external/glm-0.9.9.8/doc/api/dir_9e5fe034a00e89334fd5186c3e7db156.html new file mode 100644 index 0000000..8a52c52 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_9e5fe034a00e89334fd5186c3e7db156.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: G-Truc Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    G-Truc Directory Reference
    +
    +
    + + + + +

    +Directories

    directory  Source
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_a8bee7be44182a33f3820393ae0b105d.html b/external/glm-0.9.9.8/doc/api/dir_a8bee7be44182a33f3820393ae0b105d.html new file mode 100644 index 0000000..73b8ce7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_a8bee7be44182a33f3820393ae0b105d.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: G-Truc Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    G-Truc Directory Reference
    +
    +
    + + + + +

    +Directories

    directory  glm
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_cef2d71d502cb69a9252bca2297d9549.html b/external/glm-0.9.9.8/doc/api/dir_cef2d71d502cb69a9252bca2297d9549.html new file mode 100644 index 0000000..7e5b5de --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_cef2d71d502cb69a9252bca2297d9549.html @@ -0,0 +1,177 @@ + + + + + + +0.9.9 API documentation: glm Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    glm Directory Reference
    +
    +
    + + + + + + + + + + +

    +Directories

    directory  detail
     
    directory  ext
     
    directory  gtc
     
    directory  gtx
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Files

    file  common.hpp [code]
     Core features
     
    file  exponential.hpp [code]
     Core features
     
    file  ext.hpp [code]
     Core features (Dependence)
     
    file  fwd.hpp [code]
     
    file  geometric.hpp [code]
     Core features
     
    file  glm.hpp [code]
     Core features
     
    file  integer.hpp [code]
     Core features
     
    file  mat2x2.hpp [code]
     Core features
     
    file  mat2x3.hpp [code]
     Core features
     
    file  mat2x4.hpp [code]
     Core features
     
    file  mat3x2.hpp [code]
     Core features
     
    file  mat3x3.hpp [code]
     Core features
     
    file  mat3x4.hpp [code]
     Core features
     
    file  mat4x2.hpp [code]
     Core features
     
    file  mat4x3.hpp [code]
     Core features
     
    file  mat4x4.hpp [code]
     Core features
     
    file  matrix.hpp [code]
     Core features
     
    file  packing.hpp [code]
     Core features
     
    file  trigonometric.hpp [code]
     Core features
     
    file  vec2.hpp [code]
     Core features
     
    file  vec3.hpp [code]
     Core features
     
    file  vec4.hpp [code]
     Core features
     
    file  vector_relational.hpp [code]
     Core features
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_d9496f0844b48bc7e53b5af8c99b9ab2.html b/external/glm-0.9.9.8/doc/api/dir_d9496f0844b48bc7e53b5af8c99b9ab2.html new file mode 100644 index 0000000..5b78d10 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_d9496f0844b48bc7e53b5af8c99b9ab2.html @@ -0,0 +1,100 @@ + + + + + + +0.9.9 API documentation: Source Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    Source Directory Reference
    +
    +
    + + + + +

    +Directories

    directory  G-Truc
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/dir_f35778ec600a1b9bbc4524e62e226aa2.html b/external/glm-0.9.9.8/doc/api/dir_f35778ec600a1b9bbc4524e62e226aa2.html new file mode 100644 index 0000000..4d5ccc3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dir_f35778ec600a1b9bbc4524e62e226aa2.html @@ -0,0 +1,287 @@ + + + + + + +0.9.9 API documentation: gtx Directory Reference + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    +
    + + +
    + +
    + + +
    +
    +
    +
    gtx Directory Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Files

    file  associated_min_max.hpp [code]
     GLM_GTX_associated_min_max
     
    file  bit.hpp [code]
     GLM_GTX_bit
     
    file  closest_point.hpp [code]
     GLM_GTX_closest_point
     
    file  color_encoding.hpp [code]
     GLM_GTX_color_encoding
     
    file  gtx/color_space.hpp [code]
     GLM_GTX_color_space
     
    file  color_space_YCoCg.hpp [code]
     GLM_GTX_color_space_YCoCg
     
    file  gtx/common.hpp [code]
     GLM_GTX_common
     
    file  compatibility.hpp [code]
     GLM_GTX_compatibility
     
    file  component_wise.hpp [code]
     GLM_GTX_component_wise
     
    file  dual_quaternion.hpp [code]
     GLM_GTX_dual_quaternion
     
    file  easing.hpp [code]
     GLM_GTX_easing
     
    file  euler_angles.hpp [code]
     GLM_GTX_euler_angles
     
    file  extend.hpp [code]
     GLM_GTX_extend
     
    file  extended_min_max.hpp [code]
     GLM_GTX_extented_min_max
     
    file  exterior_product.hpp [code]
     GLM_GTX_exterior_product
     
    file  fast_exponential.hpp [code]
     GLM_GTX_fast_exponential
     
    file  fast_square_root.hpp [code]
     GLM_GTX_fast_square_root
     
    file  fast_trigonometry.hpp [code]
     GLM_GTX_fast_trigonometry
     
    file  functions.hpp [code]
     GLM_GTX_functions
     
    file  gradient_paint.hpp [code]
     GLM_GTX_gradient_paint
     
    file  handed_coordinate_space.hpp [code]
     GLM_GTX_handed_coordinate_space
     
    file  hash.hpp [code]
     GLM_GTX_hash
     
    file  gtx/integer.hpp [code]
     GLM_GTX_integer
     
    file  intersect.hpp [code]
     GLM_GTX_intersect
     
    file  io.hpp [code]
     GLM_GTX_io
     
    file  log_base.hpp [code]
     GLM_GTX_log_base
     
    file  matrix_cross_product.hpp [code]
     GLM_GTX_matrix_cross_product
     
    file  matrix_decompose.hpp [code]
     GLM_GTX_matrix_decompose
     
    file  matrix_factorisation.hpp [code]
     GLM_GTX_matrix_factorisation
     
    file  matrix_interpolation.hpp [code]
     GLM_GTX_matrix_interpolation
     
    file  matrix_major_storage.hpp [code]
     GLM_GTX_matrix_major_storage
     
    file  matrix_operation.hpp [code]
     GLM_GTX_matrix_operation
     
    file  matrix_query.hpp [code]
     GLM_GTX_matrix_query
     
    file  matrix_transform_2d.hpp [code]
     GLM_GTX_matrix_transform_2d
     
    file  mixed_product.hpp [code]
     GLM_GTX_mixed_producte
     
    file  norm.hpp [code]
     GLM_GTX_norm
     
    file  normal.hpp [code]
     GLM_GTX_normal
     
    file  normalize_dot.hpp [code]
     GLM_GTX_normalize_dot
     
    file  number_precision.hpp [code]
     GLM_GTX_number_precision
     
    file  optimum_pow.hpp [code]
     GLM_GTX_optimum_pow
     
    file  orthonormalize.hpp [code]
     GLM_GTX_orthonormalize
     
    file  perpendicular.hpp [code]
     GLM_GTX_perpendicular
     
    file  polar_coordinates.hpp [code]
     GLM_GTX_polar_coordinates
     
    file  projection.hpp [code]
     GLM_GTX_projection
     
    file  gtx/quaternion.hpp [code]
     GLM_GTX_quaternion
     
    file  range.hpp [code]
     GLM_GTX_range
     
    file  raw_data.hpp [code]
     GLM_GTX_raw_data
     
    file  rotate_normalized_axis.hpp [code]
     GLM_GTX_rotate_normalized_axis
     
    file  rotate_vector.hpp [code]
     GLM_GTX_rotate_vector
     
    file  scalar_multiplication.hpp [code]
     Experimental extensions
     
    file  gtx/scalar_relational.hpp [code]
     GLM_GTX_scalar_relational
     
    file  spline.hpp [code]
     GLM_GTX_spline
     
    file  std_based_type.hpp [code]
     GLM_GTX_std_based_type
     
    file  string_cast.hpp [code]
     GLM_GTX_string_cast
     
    file  texture.hpp [code]
     GLM_GTX_texture
     
    file  transform.hpp [code]
     GLM_GTX_transform
     
    file  transform2.hpp [code]
     GLM_GTX_transform2
     
    file  gtx/type_aligned.hpp [code]
     GLM_GTX_type_aligned
     
    file  type_trait.hpp [code]
     GLM_GTX_type_trait
     
    file  vec_swizzle.hpp [code]
     GLM_GTX_vec_swizzle
     
    file  vector_angle.hpp [code]
     GLM_GTX_vector_angle
     
    file  vector_query.hpp [code]
     GLM_GTX_vector_query
     
    file  wrap.hpp [code]
     GLM_GTX_wrap
     
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/doc.png b/external/glm-0.9.9.8/doc/api/doc.png new file mode 100644 index 0000000..f3953d1 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/doc.png differ diff --git a/external/glm-0.9.9.8/doc/api/doxygen.css b/external/glm-0.9.9.8/doc/api/doxygen.css new file mode 100644 index 0000000..36259e2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/doxygen.css @@ -0,0 +1,1496 @@ +/* The standard CSS for doxygen 1.8.10 */ + +body, table, div, p, dl { + font: 400 14px/22px Roboto,sans-serif; +} + +body +{ + margin:0px; + padding:0px; + background-color:#bf6000; + background-repeat:no-repeat; + background-position:center center; + background-attachment:fixed; + min-height:1200px; + overflow:auto; +} + +/* @group Heading Levels */ + +h1.groupheader { + color:#bf6000; + font-size: 150%; +} + +.title { + color:#bf6000; + font: 400 14px/28px Roboto,sans-serif; + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2.groupheader { + border-bottom: 1px solid #bf6000; + color:#bf6000; + font-size: 150%; + font-weight: normal; + margin-top: 1.75em; + padding-top: 8px; + padding-bottom: 4px; + width: 100%; +} + +h3.groupheader { + font-size: 100%; +} + +h1, h2, h3, h4, h5, h6 { + -webkit-transition: text-shadow 0.5s linear; + -moz-transition: text-shadow 0.5s linear; + -ms-transition: text-shadow 0.5s linear; + -o-transition: text-shadow 0.5s linear; + transition: text-shadow 0.5s linear; + margin-right: 15px; +} + +h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { + text-shadow: 0 0 15px cyan; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd { + margin-top: 2px; +} + +p.starttd { + margin-top: 0px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #FFF8F0; + border: 1px solid #FF8000; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #000000; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #606060; +} + +.contents{ + background-color: #FFFFFF; + padding-top:8px; + padding-bottom:8px; + padding-left:32px; + padding-right:32px; + margin:0px; + margin-left:auto; + margin-right:auto; + width:1216px; + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #9CAFD4; + color: #ffffff; + border: 1px double #869DCA; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code, a.code:visited, a.line, a.line:visited { + color: #4665A2; +} + +a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +pre.fragment { + border: 1px solid #FF8000; + background-color: #FFF8F0; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; + font-family: monospace, fixed; + font-size: 105%; +} + +div.fragment { + padding: 4px 6px; + margin: 4px 8px 4px 2px; + background-color: #FFF8F0; + border: 1px solid #FF8000; +} + +div.line { + font-family: monospace, fixed; + font-size: 13px; + min-height: 13px; + line-height: 1.0; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + text-indent: -53px; + padding-left: 53px; + padding-bottom: 0px; + margin: 0px; + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +div.line.glow { + background-color: cyan; + box-shadow: 0 0 10px cyan; +} + + +span.lineno { + padding-right: 4px; + text-align: right; + border-right: 2px solid #0F0; + background-color: #E8E8E8; + white-space: pre; +} +span.lineno a { + background-color: #D8D8D8; +} + +span.lineno a:hover { + background-color: #C8C8C8; +} + +div.ah, span.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.classindex ul { + list-style: none; + padding-left: 0; +} + +div.classindex span.ai { + display: inline-block; +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + color: black; + margin: 0; +} + +td.indexkey { + background-color: #FFF8F0; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; + white-space: nowrap; + vertical-align: top; +} + +td.indexvalue { + background-color: #FFF8F0; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #FFF8F0; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + display: none; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +blockquote { + background-color: #F7F8FB; + border-left: 2px solid #9CAFD4; + margin: 0 24px 0 4px; + padding: 0 12px 0 16px; +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #FF8000; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + display: none; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.memberdecls td, .fieldtable tr { + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +.memberdecls td.glow, .fieldtable tr.glow { + background-color: cyan; + box-shadow: 0 0 15px cyan; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #FFFCF8; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memSeparator { + border-bottom: 1px solid #FFF8F0; + line-height: 1px; + margin: 0px; + padding: 0px; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #bf6000; + white-space: nowrap; + font-size: 80%; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #FFF8F0; + border: 1px solid #FF8000; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; + -webkit-transition: box-shadow 0.5s linear; + -moz-transition: box-shadow 0.5s linear; + -ms-transition: box-shadow 0.5s linear; + -o-transition: box-shadow 0.5s linear; + transition: box-shadow 0.5s linear; + display: table !important; + width: 100%; +} + +.memitem.glow { + box-shadow: 0 0 15px cyan; +} + +.memname { + font-weight: bold; + margin-left: 6px; +} + +.memname td { + vertical-align: bottom; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #bf6000; + border-left: 1px solid #bf6000; + border-right: 1px solid #bf6000; + padding: 6px 0px 6px 0px; + /*color: #253555;*/ + font-weight: bold; + /*text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);*/ + /*background-image:url('nav_f.png');*/ + background-repeat:repeat-x; + background-color: #FFF8F0; + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 4px; + border-top-left-radius: 4px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 4px; + -moz-border-radius-topleft: 4px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 4px; + -webkit-border-top-left-radius: 4px; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #bf6000; + border-left: 1px solid #bf6000; + border-right: 1px solid #bf6000; + padding: 6px 10px 2px 10px; + border-top-width: 0; + background-image:url('nav_g.png'); + background-repeat:repeat-x; + background-color: #FFFDFB; + /* opera specific markup */ + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-bottomright: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} +.paramname code { + line-height: 14px; +} + +.params, .retval, .exception, .tparams { + margin-left: 0px; + padding-left: 0px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + +table.mlabels { + border-spacing: 0px; +} + +td.mlabels-left { + width: 100%; + padding: 0px; +} + +td.mlabels-right { + vertical-align: bottom; + padding: 0px; + white-space: nowrap; +} + +span.mlabels { + margin-left: 8px; +} + +span.mlabel { + background-color: #728DC1; + border-top:1px solid #5373B4; + border-left:1px solid #5373B4; + border-right:1px solid #C4CFE5; + border-bottom:1px solid #C4CFE5; + text-shadow: none; + color: white; + margin-right: 4px; + padding: 2px 3px; + border-radius: 3px; + font-size: 7pt; + white-space: nowrap; + vertical-align: middle; +} + + + +/* @end */ + +/* these are for tree view inside a (index) page */ + +div.directory { + margin: 10px 0px; + border-top: 1px solid #bf6000; + border-bottom: 1px solid #bf6000; + width: 100%; +} + +.directory table { + border-collapse:collapse; +} + +.directory td { + margin: 0px; + padding: 0px; + vertical-align: top; +} + +.directory td.entry { + white-space: nowrap; + padding-right: 6px; + padding-top: 3px; +} + +.directory td.entry a { + outline:none; +} + +.directory td.entry a img { + border: none; +} + +.directory td.desc { + width: 100%; + padding-left: 6px; + padding-right: 6px; + padding-top: 3px; + border-left: 1px solid rgba(0,0,0,0.05); +} + +.directory tr.even { + padding-left: 6px; + background-color: #FFFDFB; +} + +.directory img { + vertical-align: -30%; +} + +.directory .levels { + white-space: nowrap; + width: 100%; + text-align: right; + font-size: 9pt; +} + +.directory .levels span { + cursor: pointer; + padding-left: 2px; + padding-right: 2px; + color: #bf6000; +} + +.arrow { + color: #bf6000; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + font-size: 80%; + display: inline-block; + width: 16px; + height: 22px; +} + +.icon { + font-family: Arial, Helvetica; + font-weight: bold; + font-size: 12px; + height: 14px; + width: 16px; + display: inline-block; + background-color: #bf6000; + color: white; + text-align: center; + border-radius: 4px; + margin-left: 2px; + margin-right: 2px; +} + +.icona { + width: 24px; + height: 22px; + display: inline-block; +} + +.iconfopen { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('folderopen.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.iconfclosed { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('folderclosed.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.icondoc { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:url('doc.png'); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +table.directory { + font: 400 14px Roboto,sans-serif; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +table.fieldtable { + /*width: 100%;*/ + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fieldname { + padding-top: 3px; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + /*width: 100%;*/ +} + +.fieldtable td.fielddoc p:first-child { + margin-top: 0px; +} + +.fieldtable td.fielddoc p:last-child { + margin-bottom: 2px; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + /*background-image:url('tab_b.png');*/ + background-color: #FFF8F0; + background-repeat:repeat-x; + background-position: 0 -5px; + height:30px; + line-height:30px; + color:#bf6000; + border:solid 0px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#bf6000; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; + color: #bf6000; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + text-decoration: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#bf6000; + font-size: 8pt; +} + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + font-size: 8pt; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-repeat:repeat-x; + background-color: #FFFCF8; + + padding:0px; + margin:0px; + margin-left:auto; + margin-right:auto; + width:1280px; +} + +div.headertitle +{ + padding: 5px 5px 5px 10px; +} + +dl +{ + padding: 0 0 0 10px; +} + +/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ +dl.section +{ + margin-left: 0px; + padding-left: 0px; +} + +dl.note +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #00D000; +} + +dl.deprecated +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #505050; +} + +dl.todo +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #E0C000; +} + +dl.test +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #3030E0; +} + +dl.bug +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #C08050; +} + +dl.section dd { + margin-bottom: 6px; +} + + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectalign +{ + vertical-align: middle; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; + color: #FF8000; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.diagraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +div.toc { + padding: 14px 25px; + background-color: #F4F6FA; + border: 1px solid #D8DFEE; + border-radius: 7px 7px 7px 7px; + float: right; + height: auto; + margin: 0 20px 10px 10px; + width: 200px; +} + +div.toc li { + background: url("bdwn.png") no-repeat scroll 0 5px transparent; + font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; + margin-top: 5px; + padding-left: 10px; + padding-top: 2px; +} + +div.toc h3 { + font: bold 12px/1.2 Arial,FreeSans,sans-serif; + color: #4665A2; + border-bottom: 0 none; + margin: 0; +} + +div.toc ul { + list-style: none outside none; + border: medium none; + padding: 0px; +} + +div.toc li.level1 { + margin-left: 0px; +} + +div.toc li.level2 { + margin-left: 15px; +} + +div.toc li.level3 { + margin-left: 30px; +} + +div.toc li.level4 { + margin-left: 45px; +} + +.inherit_header { + font-weight: bold; + color: gray; + cursor: pointer; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.inherit_header td { + padding: 6px 0px 2px 5px; +} + +.inherit { + display: none; +} + +tr.heading h2 { + margin-top: 12px; + margin-bottom: 4px; +} + +/* tooltip related style info */ + +.ttc { + position: absolute; + display: none; +} + +#powerTip { + cursor: default; + white-space: nowrap; + background-color: white; + border: 1px solid gray; + border-radius: 4px 4px 4px 4px; + box-shadow: 1px 1px 7px gray; + display: none; + font-size: smaller; + max-width: 80%; + opacity: 0.9; + padding: 1ex 1em 1em; + position: absolute; + z-index: 2147483647; +} + +#powerTip div.ttdoc { + color: grey; + font-style: italic; +} + +#powerTip div.ttname a { + font-weight: bold; +} + +#powerTip div.ttname { + font-weight: bold; +} + +#powerTip div.ttdeci { + color: #006318; +} + +#powerTip div { + margin: 0px; + padding: 0px; + font: 12px/16px Roboto,sans-serif; +} + +#powerTip:before, #powerTip:after { + content: ""; + position: absolute; + margin: 0px; +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.s:after, #powerTip.s:before, +#powerTip.w:after, #powerTip.w:before, +#powerTip.e:after, #powerTip.e:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.nw:after, #powerTip.nw:before, +#powerTip.sw:after, #powerTip.sw:before { + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; +} + +#powerTip.n:after, #powerTip.s:after, +#powerTip.w:after, #powerTip.e:after, +#powerTip.nw:after, #powerTip.ne:after, +#powerTip.sw:after, #powerTip.se:after { + border-color: rgba(255, 255, 255, 0); +} + +#powerTip.n:before, #powerTip.s:before, +#powerTip.w:before, #powerTip.e:before, +#powerTip.nw:before, #powerTip.ne:before, +#powerTip.sw:before, #powerTip.se:before { + border-color: rgba(128, 128, 128, 0); +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.nw:after, #powerTip.nw:before { + top: 100%; +} + +#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { + border-top-color: #ffffff; + border-width: 10px; + margin: 0px -10px; +} +#powerTip.n:before { + border-top-color: #808080; + border-width: 11px; + margin: 0px -11px; +} +#powerTip.n:after, #powerTip.n:before { + left: 50%; +} + +#powerTip.nw:after, #powerTip.nw:before { + right: 14px; +} + +#powerTip.ne:after, #powerTip.ne:before { + left: 14px; +} + +#powerTip.s:after, #powerTip.s:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.sw:after, #powerTip.sw:before { + bottom: 100%; +} + +#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { + border-bottom-color: #ffffff; + border-width: 10px; + margin: 0px -10px; +} + +#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { + border-bottom-color: #808080; + border-width: 11px; + margin: 0px -11px; +} + +#powerTip.s:after, #powerTip.s:before { + left: 50%; +} + +#powerTip.sw:after, #powerTip.sw:before { + right: 14px; +} + +#powerTip.se:after, #powerTip.se:before { + left: 14px; +} + +#powerTip.e:after, #powerTip.e:before { + left: 100%; +} +#powerTip.e:after { + border-left-color: #ffffff; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.e:before { + border-left-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +#powerTip.w:after, #powerTip.w:before { + right: 100%; +} +#powerTip.w:after { + border-right-color: #ffffff; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.w:before { + border-right-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +#titlearea +{ + margin: 0px; + padding-top: 8px; + padding-bottom: 8px; + margin-top: 32px; + width: 100%; + border-bottom: 0px solid #FF8000; + border-top-left-radius: 8px; + border-top-right-radius: 8px; + background-color:#FFFFFF; +} + +#top +{ + margin-left:auto; + margin-right:auto; + width:1280px; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } +} + diff --git a/external/glm-0.9.9.8/doc/api/doxygen.png b/external/glm-0.9.9.8/doc/api/doxygen.png new file mode 100644 index 0000000..a7f4be8 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/doxygen.png differ diff --git a/external/glm-0.9.9.8/doc/api/dynsections.js b/external/glm-0.9.9.8/doc/api/dynsections.js new file mode 100644 index 0000000..8e47ceb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/dynsections.js @@ -0,0 +1,104 @@ +function toggleVisibility(linkObj) +{ + var base = $(linkObj).attr('id'); + var summary = $('#'+base+'-summary'); + var content = $('#'+base+'-content'); + var trigger = $('#'+base+'-trigger'); + var src=$(trigger).attr('src'); + if (content.is(':visible')===true) { + content.hide(); + summary.show(); + $(linkObj).addClass('closed').removeClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); + } else { + content.show(); + summary.hide(); + $(linkObj).removeClass('closed').addClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); + } + return false; +} + +function updateStripes() +{ + $('table.directory tr'). + removeClass('even').filter(':visible:even').addClass('even'); +} + +function toggleLevel(level) +{ + $('table.directory tr').each(function() { + var l = this.id.split('_').length-1; + var i = $('#img'+this.id.substring(3)); + var a = $('#arr'+this.id.substring(3)); + if (l + + + + + +0.9.9 API documentation: File List + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    File List
    +
    +
    +
    Here is a list of all documented files with brief descriptions:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     _features.hpp
     _fixes.hpp
     _noise.hpp
     _swizzle.hpp
     _swizzle_func.hpp
     _vectorize.hpp
     associated_min_max.hppGLM_GTX_associated_min_max
     bit.hppGLM_GTX_bit
     bitfield.hppGLM_GTC_bitfield
     closest_point.hppGLM_GTX_closest_point
     color_encoding.hppGLM_GTX_color_encoding
     gtc/color_space.hppGLM_GTC_color_space
     gtx/color_space.hppGLM_GTX_color_space
     color_space_YCoCg.hppGLM_GTX_color_space_YCoCg
     common.hppCore features
     gtx/common.hppGLM_GTX_common
     compatibility.hppGLM_GTX_compatibility
     component_wise.hppGLM_GTX_component_wise
     compute_common.hpp
     compute_vector_relational.hpp
     constants.hppGLM_GTC_constants
     dual_quaternion.hppGLM_GTX_dual_quaternion
     easing.hppGLM_GTX_easing
     epsilon.hppGLM_GTC_epsilon
     euler_angles.hppGLM_GTX_euler_angles
     exponential.hppCore features
     ext.hppCore features (Dependence)
     extend.hppGLM_GTX_extend
     extended_min_max.hppGLM_GTX_extented_min_max
     exterior_product.hppGLM_GTX_exterior_product
     fast_exponential.hppGLM_GTX_fast_exponential
     fast_square_root.hppGLM_GTX_fast_square_root
     fast_trigonometry.hppGLM_GTX_fast_trigonometry
     functions.hppGLM_GTX_functions
     fwd.hpp
     geometric.hppCore features
     glm.hppCore features
     gradient_paint.hppGLM_GTX_gradient_paint
     handed_coordinate_space.hppGLM_GTX_handed_coordinate_space
     hash.hppGLM_GTX_hash
     gtc/integer.hppGLM_GTC_integer
     gtx/integer.hppGLM_GTX_integer
     integer.hppCore features
     intersect.hppGLM_GTX_intersect
     io.hppGLM_GTX_io
     log_base.hppGLM_GTX_log_base
     man.doxy
     mat2x2.hppCore features
     mat2x3.hppCore features
     mat2x4.hppCore features
     mat3x2.hppCore features
     mat3x3.hppCore features
     mat3x4.hppCore features
     mat4x2.hppCore features
     mat4x3.hppCore features
     mat4x4.hppCore features
     matrix.hppCore features
     matrix_access.hppGLM_GTC_matrix_access
     matrix_clip_space.hppGLM_EXT_matrix_clip_space
     matrix_common.hppGLM_EXT_matrix_common
     matrix_cross_product.hppGLM_GTX_matrix_cross_product
     matrix_decompose.hppGLM_GTX_matrix_decompose
     matrix_double2x2.hppCore features
     matrix_double2x2_precision.hppCore features
     matrix_double2x3.hppCore features
     matrix_double2x3_precision.hppCore features
     matrix_double2x4.hppCore features
     matrix_double2x4_precision.hppCore features
     matrix_double3x2.hppCore features
     matrix_double3x2_precision.hppCore features
     matrix_double3x3.hppCore features
     matrix_double3x3_precision.hppCore features
     matrix_double3x4.hppCore features
     matrix_double3x4_precision.hppCore features
     matrix_double4x2.hppCore features
     matrix_double4x2_precision.hppCore features
     matrix_double4x3.hppCore features
     matrix_double4x3_precision.hppCore features
     matrix_double4x4.hppCore features
     matrix_double4x4_precision.hppCore features
     matrix_factorisation.hppGLM_GTX_matrix_factorisation
     matrix_float2x2.hppCore features
     matrix_float2x2_precision.hppCore features
     matrix_float2x3.hppCore features
     matrix_float2x3_precision.hppCore features
     matrix_float2x4.hppCore features
     matrix_float2x4_precision.hppCore features
     matrix_float3x2.hppCore features
     matrix_float3x2_precision.hppCore features
     matrix_float3x3.hppCore features
     matrix_float3x3_precision.hppCore features
     matrix_float3x4.hppCore features
     matrix_float3x4_precision.hppCore features
     matrix_float4x2.hppCore features
     matrix_float4x2_precision.hpp
     matrix_float4x3.hppCore features
     matrix_float4x3_precision.hppCore features
     matrix_float4x4.hppCore features
     matrix_float4x4_precision.hppCore features
     matrix_integer.hppGLM_GTC_matrix_integer
     matrix_interpolation.hppGLM_GTX_matrix_interpolation
     matrix_inverse.hppGLM_GTC_matrix_inverse
     matrix_major_storage.hppGLM_GTX_matrix_major_storage
     matrix_operation.hppGLM_GTX_matrix_operation
     matrix_projection.hppGLM_EXT_matrix_projection
     matrix_query.hppGLM_GTX_matrix_query
     matrix_relational.hppGLM_EXT_matrix_relational
     ext/matrix_transform.hppGLM_EXT_matrix_transform
     gtc/matrix_transform.hppGLM_GTC_matrix_transform
     matrix_transform_2d.hppGLM_GTX_matrix_transform_2d
     mixed_product.hppGLM_GTX_mixed_producte
     noise.hppGLM_GTC_noise
     norm.hppGLM_GTX_norm
     normal.hppGLM_GTX_normal
     normalize_dot.hppGLM_GTX_normalize_dot
     number_precision.hppGLM_GTX_number_precision
     optimum_pow.hppGLM_GTX_optimum_pow
     orthonormalize.hppGLM_GTX_orthonormalize
     gtc/packing.hppGLM_GTC_packing
     packing.hppCore features
     perpendicular.hppGLM_GTX_perpendicular
     polar_coordinates.hppGLM_GTX_polar_coordinates
     projection.hppGLM_GTX_projection
     qualifier.hpp
     gtc/quaternion.hppGLM_GTC_quaternion
     gtx/quaternion.hppGLM_GTX_quaternion
     quaternion_common.hppGLM_EXT_quaternion_common
     quaternion_double.hppGLM_EXT_quaternion_double
     quaternion_double_precision.hppGLM_EXT_quaternion_double_precision
     quaternion_exponential.hppGLM_EXT_quaternion_exponential
     quaternion_float.hppGLM_EXT_quaternion_float
     quaternion_float_precision.hppGLM_EXT_quaternion_float_precision
     quaternion_geometric.hppGLM_EXT_quaternion_geometric
     quaternion_relational.hppGLM_EXT_quaternion_relational
     quaternion_transform.hppGLM_EXT_quaternion_transform
     quaternion_trigonometric.hppGLM_EXT_quaternion_trigonometric
     random.hppGLM_GTC_random
     range.hppGLM_GTX_range
     raw_data.hppGLM_GTX_raw_data
     reciprocal.hppGLM_GTC_reciprocal
     rotate_normalized_axis.hppGLM_GTX_rotate_normalized_axis
     rotate_vector.hppGLM_GTX_rotate_vector
     round.hppGLM_GTC_round
     scalar_common.hppGLM_EXT_scalar_common
     scalar_constants.hppGLM_EXT_scalar_constants
     scalar_int_sized.hppGLM_EXT_scalar_int_sized
     scalar_integer.hppGLM_EXT_scalar_integer
     scalar_multiplication.hppExperimental extensions
     ext/scalar_relational.hppGLM_EXT_scalar_relational
     gtx/scalar_relational.hppGLM_GTX_scalar_relational
     scalar_uint_sized.hppGLM_EXT_scalar_uint_sized
     scalar_ulp.hppGLM_EXT_scalar_ulp
     setup.hpp
     spline.hppGLM_GTX_spline
     std_based_type.hppGLM_GTX_std_based_type
     string_cast.hppGLM_GTX_string_cast
     texture.hppGLM_GTX_texture
     transform.hppGLM_GTX_transform
     transform2.hppGLM_GTX_transform2
     trigonometric.hppCore features
     gtc/type_aligned.hppGLM_GTC_type_aligned
     gtx/type_aligned.hppGLM_GTX_type_aligned
     type_float.hpp
     type_half.hpp
     type_mat2x2.hppCore features
     type_mat2x3.hppCore features
     type_mat2x4.hppCore features
     type_mat3x2.hppCore features
     type_mat3x3.hppCore features
     type_mat3x4.hppCore features
     type_mat4x2.hppCore features
     type_mat4x3.hppCore features
     type_mat4x4.hppCore features
     type_precision.hppGLM_GTC_type_precision
     type_ptr.hppGLM_GTC_type_ptr
     type_quat.hppCore features
     type_trait.hppGLM_GTX_type_trait
     type_vec1.hppCore features
     type_vec2.hppCore features
     type_vec3.hppCore features
     type_vec4.hppCore features
     ulp.hppGLM_GTC_ulp
     vec1.hppGLM_GTC_vec1
     vec2.hppCore features
     vec3.hppCore features
     vec4.hppCore features
     vec_swizzle.hppGLM_GTX_vec_swizzle
     vector_angle.hppGLM_GTX_vector_angle
     vector_bool1.hppGLM_EXT_vector_bool1
     vector_bool1_precision.hppGLM_EXT_vector_bool1_precision
     vector_bool2.hppCore features
     vector_bool2_precision.hppCore features
     vector_bool3.hppCore features
     vector_bool3_precision.hppCore features
     vector_bool4.hppCore features
     vector_bool4_precision.hppCore features
     vector_common.hppGLM_EXT_vector_common
     vector_double1.hppGLM_EXT_vector_double1
     vector_double1_precision.hppGLM_EXT_vector_double1_precision
     vector_double2.hppCore features
     vector_double2_precision.hppCore features
     vector_double3.hppCore features
     vector_double3_precision.hppCore features
     vector_double4.hppCore features
     vector_double4_precision.hppCore features
     vector_float1.hppGLM_EXT_vector_float1
     vector_float1_precision.hppGLM_EXT_vector_float1_precision
     vector_float2.hppCore features
     vector_float2_precision.hppCore features
     vector_float3.hppCore features
     vector_float3_precision.hppCore features
     vector_float4.hppCore features
     vector_float4_precision.hppCore features
     vector_int1.hppGLM_EXT_vector_int1
     vector_int1_precision.hppGLM_EXT_vector_int1_precision
     vector_int2.hppCore features
     vector_int2_precision.hppCore features
     vector_int3.hppCore features
     vector_int3_precision.hppCore features
     vector_int4.hppCore features
     vector_int4_precision.hppCore features
     vector_integer.hppGLM_EXT_vector_integer
     vector_query.hppGLM_GTX_vector_query
     ext/vector_relational.hppGLM_EXT_vector_relational
     vector_relational.hppCore features
     vector_uint1.hppGLM_EXT_vector_uint1
     vector_uint1_precision.hppGLM_EXT_vector_uint1_precision
     vector_uint2.hppCore features
     vector_uint2_precision.hppCore features
     vector_uint3.hppCore features
     vector_uint3_precision.hppCore features
     vector_uint4.hppCore features
     vector_uint4_precision.hppCore features
     vector_ulp.hppGLM_EXT_vector_ulp
     wrap.hppGLM_GTX_wrap
    +
    +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/folderclosed.png b/external/glm-0.9.9.8/doc/api/folderclosed.png new file mode 100644 index 0000000..2a4bb4a Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/folderclosed.png differ diff --git a/external/glm-0.9.9.8/doc/api/folderopen.png b/external/glm-0.9.9.8/doc/api/folderopen.png new file mode 100644 index 0000000..cac0078 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/folderopen.png differ diff --git a/external/glm-0.9.9.8/doc/api/index.html b/external/glm-0.9.9.8/doc/api/index.html new file mode 100644 index 0000000..6cacf1a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/index.html @@ -0,0 +1,95 @@ + + + + + + +0.9.9 API documentation: OpenGL Mathematics (GLM) + + + + + + + + + + +
    +
    + + + + + + + +
    +
    0.9.9 API documentation +
    +
    +
    + + + + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    OpenGL Mathematics (GLM)
    +
    + + + + + diff --git a/external/glm-0.9.9.8/doc/api/jquery.js b/external/glm-0.9.9.8/doc/api/jquery.js new file mode 100644 index 0000000..d902f54 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/jquery.js @@ -0,0 +1,68 @@ +/*! + * jQuery JavaScript Library v1.7.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Mon Nov 21 21:11:03 2011 -0500 + */ +(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b40){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b40&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b21?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv
    a";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="
    ";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="
    t
    ";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="
    ";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bCbA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}}); +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bRe[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="

    ";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="
    ";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT0){for(bB=bA;bB=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div
    ","
    "]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1>");try{for(var bw=0,bv=this.length;bw1&&bw0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]===""&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("
    ").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"":"")+"");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);/*! + * jQuery UI 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ +(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});return l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}return this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}return this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));f.offsetHeight;a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode){return}for(var h=0;h0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.isOverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);/*! + * jQuery UI Widget 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Widget + */ +(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,f,g){var j,i,h=this.options[e];g=g||{};f=b.Event(f);f.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();f.target=this.element[0];i=f.originalEvent;if(i){for(j in i){if(!(j in f)){f[j]=i[j]}}}this.element.trigger(f,g);return !(b.isFunction(h)&&h.call(this.element[0],f,g)===false||f.isDefaultPrevented())}}})(jQuery);/*! + * jQuery UI Mouse 1.8.18 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Mouse + * + * Depends: + * jquery.ui.widget.js + */ +(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(c,d){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var f=this,k=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(k.aspectRatio),aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(c('
    ').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var l=this.handles.split(",");this.handles={};for(var g=0;g
    ');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++k.zIndex})}if("se"==j){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-resizable-"+j;this.element.append(h)}}this._renderAxis=function(q){q=q||this.element;for(var n in this.handles){if(this.handles[n].constructor==String){this.handles[n]=c(this.handles[n],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var o=c(this.handles[n],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(m,p);this._proportionallyResize()}if(!c(this.handles[n]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!f.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=i&&i[1]?i[1]:"se"}});if(k.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){if(k.disabled){return}c(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(k.disabled){return}if(!f.resizing){c(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){c(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var e in this.handles){if(c(this.handles[e])[0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:function(g){var j=this.options,f=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position"))){e.css({position:"absolute",top:f.top,left:f.left})}this._renderProxy();var k=b(this.helper.css("left")),h=b(this.helper.css("top"));if(j.containment){k+=c(j.containment).scrollLeft()||0;h+=c(j.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:k,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:k,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof j.aspectRatio=="number")?j.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var i=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",i=="auto"?this.axis+"-resize":i);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(e){var h=this.helper,g=this.options,m={},q=this,j=this.originalMousePosition,n=this.axis;var r=(e.pageX-j.left)||0,p=(e.pageY-j.top)||0;var i=this._change[n];if(!i){return false}var l=i.apply(this,[e,r,p]),k=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){l=this._updateRatio(l,e)}l=this._respectSize(l,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(l);this._trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.resizing=false;var i=this.options,m=this;if(this._helper){var g=this._proportionallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&c.ui.hasScroll(g[0],"left")?0:m.sizeDiff.height,k=e?0:m.sizeDiff.width;var n={width:(m.helper.width()-k),height:(m.helper.height()-f)},j=(parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left))||null,l=(parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top))||null;if(!i.animate){this.element.css(c.extend(n,{top:l,left:j}))}m.helper.height(m.size.height);m.helper.width(m.size.width);if(this._helper&&!i.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(g){var j=this.options,i,h,f,k,e;e={minWidth:a(j.minWidth)?j.minWidth:0,maxWidth:a(j.maxWidth)?j.maxWidth:Infinity,minHeight:a(j.minHeight)?j.minHeight:0,maxHeight:a(j.maxHeight)?j.maxHeight:Infinity};if(this._aspectRatio||g){i=e.minHeight*this.aspectRatio;f=e.minWidth/this.aspectRatio;h=e.maxHeight*this.aspectRatio;k=e.maxWidth/this.aspectRatio;if(i>e.minWidth){e.minWidth=i}if(f>e.minHeight){e.minHeight=f}if(hl.width),s=a(l.height)&&i.minHeight&&(i.minHeight>l.height);if(h){l.width=i.minWidth}if(s){l.height=i.minHeight}if(t){l.width=i.maxWidth}if(m){l.height=i.maxHeight}var f=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height;var k=/sw|nw|w/.test(q),e=/nw|ne|n/.test(q);if(h&&k){l.left=f-i.minWidth}if(t&&k){l.left=f-i.maxWidth}if(s&&e){l.top=p-i.minHeight}if(m&&e){l.top=p-i.maxHeight}var n=!l.width&&!l.height;if(n&&!l.left&&l.top){l.top=null}else{if(n&&!l.top&&l.left){l.left=null}}return l},_proportionallyResize:function(){var k=this.options;if(!this._proportionallyResizeElements.length){return}var g=this.helper||this.element;for(var f=0;f');var e=c.browser.msie&&c.browser.version<7,g=(e?1:0),h=(e?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++i.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{left:i.left+f,width:g.width-f}},n:function(h,f,e){var j=this.options,g=this.originalSize,i=this.originalPosition;return{top:i.top+e,height:g.height-e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},sw:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},nw:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e){c.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.18"});c.ui.plugin.add("resizable","alsoResize",{start:function(f,g){var e=c(this).data("resizable"),i=e.options;var h=function(j){c(j).each(function(){var k=c(this);k.data("resizable-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10),left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10)})})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.parentNode){if(i.alsoResize.length){i.alsoResize=i.alsoResize[0];h(i.alsoResize)}else{c.each(i.alsoResize,function(j){h(j)})}}else{h(i.alsoResize)}},resize:function(g,i){var f=c(this).data("resizable"),j=f.options,h=f.originalSize,l=f.originalPosition;var k={height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f.position.top-l.top)||0,left:(f.position.left-l.left)||0},e=function(m,n){c(m).each(function(){var q=c(this),r=c(this).data("resizable-alsoresize"),p={},o=n&&n.length?n:q.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(o,function(s,u){var t=(r[u]||0)+(k[u]||0);if(t&&t>=0){p[u]=t||null}});q.css(p)})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.nodeType){c.each(j.alsoResize,function(m,n){e(m,n)})}else{e(j.alsoResize)}},stop:function(e,f){c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(i,n){var p=c(this).data("resizable"),j=p.options;var h=p._proportionallyResizeElements,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&c.ui.hasScroll(h[0],"left")?0:p.sizeDiff.height,l=e?0:p.sizeDiff.width;var g={width:(p.size.width-l),height:(p.size.height-f)},k=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,m=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(c.extend(g,m&&k?{top:m,left:k}:{}),{duration:j.animateDuration,easing:j.animateEasing,step:function(){var o={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(h&&h.length){c(h[0]).css({width:o.width,height:o.height})}p._updateCache(o);p._propagate("resize",i)}})}});c.ui.plugin.add("resizable","containment",{start:function(f,r){var t=c(this).data("resizable"),j=t.options,l=t.element;var g=j.containment,k=(g instanceof c)?g.get(0):(/parent/.test(g))?l.parent().get(0):g;if(!k){return}t.containerElement=c(k);if(/document/.test(g)||g==document){t.containerOffset={left:0,top:0};t.containerPosition={left:0,top:0};t.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var n=c(k),i=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){i[p]=b(n.css("padding"+o))});t.containerOffset=n.offset();t.containerPosition=n.position();t.containerSize={height:(n.innerHeight()-i[3]),width:(n.innerWidth()-i[1])};var q=t.containerOffset,e=t.containerSize.height,m=t.containerSize.width,h=(c.ui.hasScroll(k,"left")?k.scrollWidth:m),s=(c.ui.hasScroll(k)?k.scrollHeight:e);t.parentData={element:k,left:q.left,top:q.top,width:h,height:s}}},resize:function(g,q){var t=c(this).data("resizable"),i=t.options,f=t.containerSize,p=t.containerOffset,m=t.size,n=t.position,r=t._aspectRatio||g.shiftKey,e={top:0,left:0},h=t.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=p}if(n.left<(t._helper?p.left:0)){t.size.width=t.size.width+(t._helper?(t.position.left-p.left):(t.position.left-e.left));if(r){t.size.height=t.size.width/i.aspectRatio}t.position.left=i.helper?p.left:0}if(n.top<(t._helper?p.top:0)){t.size.height=t.size.height+(t._helper?(t.position.top-p.top):t.position.top);if(r){t.size.width=t.size.height*i.aspectRatio}t.position.top=t._helper?p.top:0}t.offset.left=t.parentData.left+t.position.left;t.offset.top=t.parentData.top+t.position.top;var l=Math.abs((t._helper?t.offset.left-e.left:(t.offset.left-e.left))+t.sizeDiff.width),s=Math.abs((t._helper?t.offset.top-e.top:(t.offset.top-p.top))+t.sizeDiff.height);var k=t.containerElement.get(0)==t.element.parent().get(0),j=/relative|absolute/.test(t.containerElement.css("position"));if(k&&j){l-=t.parentData.left}if(l+t.size.width>=t.parentData.width){t.size.width=t.parentData.width-l;if(r){t.size.height=t.size.width/t.aspectRatio}}if(s+t.size.height>=t.parentData.height){t.size.height=t.parentData.height-s;if(r){t.size.width=t.size.height*t.aspectRatio}}},stop:function(f,n){var q=c(this).data("resizable"),g=q.options,l=q.position,m=q.containerOffset,e=q.containerPosition,i=q.containerElement;var j=c(q.helper),r=j.offset(),p=j.outerWidth()-q.sizeDiff.width,k=j.outerHeight()-q.sizeDiff.height;if(q._helper&&!g.animate&&(/relative/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}if(q._helper&&!g.animate&&(/static/).test(i.css("position"))){c(this).css({left:r.left-e.left-m.left,width:p,height:k})}}});c.ui.plugin.add("resizable","ghost",{start:function(g,h){var e=c(this).data("resizable"),i=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(e,m){var p=c(this).data("resizable"),h=p.options,k=p.size,i=p.originalSize,j=p.originalPosition,n=p.axis,l=h._aspectRatio||e.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((k.width-i.width)/(h.grid[0]||1))*(h.grid[0]||1),f=Math.round((k.height-i.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f}else{if(/^(ne)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f}else{if(/^(sw)$/.test(n)){p.size.width=i.width+g;p.size.height=i.height+f;p.position.left=j.left-g}else{p.size.width=i.width+g;p.size.height=i.height+f;p.position.top=j.top-f;p.position.left=j.left-g}}}}});var b=function(e){return parseInt(e,10)||0};var a=function(e){return !isNaN(parseInt(e,10))}})(jQuery);/*! + * jQuery hashchange event - v1.3 - 7/21/2010 + * http://benalman.com/projects/jquery-hashchange-plugin/ + * + * Copyright (c) 2010 "Cowboy" Ben Alman + * Dual licensed under the MIT and GPL licenses. + * http://benalman.com/about/license/ + */ +(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$(' + + +
    +
    +
    Modules
    +
    +
    +
    Here is a list of all modules:
    +
    [detail level 12]
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     Core featuresFeatures that implement in C++ the GLSL specification as closely as possible
     Stable extensionsAdditional features not specified by GLSL specification
     Recommended extensionsAdditional features not specified by GLSL specification
     Experimental extensionsExperimental features not specified by GLSL specification
    +
  • +
    + + + + diff --git a/external/glm-0.9.9.8/doc/api/nav_f.png b/external/glm-0.9.9.8/doc/api/nav_f.png new file mode 100644 index 0000000..c77a42e Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/nav_f.png differ diff --git a/external/glm-0.9.9.8/doc/api/nav_g.png b/external/glm-0.9.9.8/doc/api/nav_g.png new file mode 100644 index 0000000..2093a23 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/nav_g.png differ diff --git a/external/glm-0.9.9.8/doc/api/nav_h.png b/external/glm-0.9.9.8/doc/api/nav_h.png new file mode 100644 index 0000000..249a852 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/nav_h.png differ diff --git a/external/glm-0.9.9.8/doc/api/open.png b/external/glm-0.9.9.8/doc/api/open.png new file mode 100644 index 0000000..a4d7097 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/open.png differ diff --git a/external/glm-0.9.9.8/doc/api/search/all_0.html b/external/glm-0.9.9.8/doc/api/search/all_0.html new file mode 100644 index 0000000..b27e4aa --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_0.js b/external/glm-0.9.9.8/doc/api/search/all_0.js new file mode 100644 index 0000000..b0e727b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_0.js @@ -0,0 +1,209 @@ +var searchData= +[ + ['abs',['abs',['../a00241.html#ga439e60a72eadecfeda2df5449c613a64',1,'glm::abs(genType x)'],['../a00241.html#ga81d3abddd0ef0c8de579bc541ecadab6',1,'glm::abs(vec< L, T, Q > const &x)']]], + ['acos',['acos',['../a00373.html#gacc9b092df8257c68f19c9053703e2563',1,'glm']]], + ['acosh',['acosh',['../a00373.html#ga858f35dc66fd2688f20c52b5f25be76a',1,'glm']]], + ['acot',['acot',['../a00301.html#gaeadfb9c9d71093f7865b2ba2ca8d104d',1,'glm']]], + ['acoth',['acoth',['../a00301.html#gafaca98a7100170db8841f446282debfa',1,'glm']]], + ['acsc',['acsc',['../a00301.html#ga1b4bed91476b9b915e76b4a30236d330',1,'glm']]], + ['acsch',['acsch',['../a00301.html#ga4b50aa5e5afc7e19ec113ab91596c576',1,'glm']]], + ['adjugate',['adjugate',['../a00339.html#ga40a38402a30860af6e508fe76211e659',1,'glm::adjugate(mat< 2, 2, T, Q > const &m)'],['../a00339.html#gaddb09f7abc1a9c56a243d32ff3538be6',1,'glm::adjugate(mat< 3, 3, T, Q > const &m)'],['../a00339.html#ga9aaa7d1f40391b0b5cacccb60e104ba8',1,'glm::adjugate(mat< 4, 4, T, Q > const &m)']]], + ['affineinverse',['affineInverse',['../a00295.html#gae0fcc5fc8783291f9702272de428fa0e',1,'glm']]], + ['aligned_5fbvec1',['aligned_bvec1',['../a00303.html#ga780a35f764020f553a9601a3fcdcd059',1,'glm']]], + ['aligned_5fbvec2',['aligned_bvec2',['../a00303.html#gae766b317c5afec852bfb3d74a3c54bc8',1,'glm']]], + ['aligned_5fbvec3',['aligned_bvec3',['../a00303.html#gae1964ba70d15915e5b710926decbb3cb',1,'glm']]], + ['aligned_5fbvec4',['aligned_bvec4',['../a00303.html#gae164a1f7879f828bc35e50b79d786b05',1,'glm']]], + ['aligned_5fdmat2',['aligned_dmat2',['../a00303.html#ga6783859382677d35fcd5dac7dcbefdbd',1,'glm']]], + ['aligned_5fdmat2x2',['aligned_dmat2x2',['../a00303.html#ga449a3ec2dde6b6bb4bb94c49a6aad388',1,'glm']]], + ['aligned_5fdmat2x3',['aligned_dmat2x3',['../a00303.html#ga53d519a7b1bfb69076b3ec206a6b3bd1',1,'glm']]], + ['aligned_5fdmat2x4',['aligned_dmat2x4',['../a00303.html#ga5ccb2baeb0ab57b818c24e0d486c59d0',1,'glm']]], + ['aligned_5fdmat3',['aligned_dmat3',['../a00303.html#ga19aa695ffdb45ce29f7ea0b5029627de',1,'glm']]], + ['aligned_5fdmat3x2',['aligned_dmat3x2',['../a00303.html#ga5f5123d834bd1170edf8c386834e112c',1,'glm']]], + ['aligned_5fdmat3x3',['aligned_dmat3x3',['../a00303.html#ga635bf3732281a2c2ca54d8f9d33d178f',1,'glm']]], + ['aligned_5fdmat3x4',['aligned_dmat3x4',['../a00303.html#gaf488c6ad88c185054595d4d5c7ba5b9d',1,'glm']]], + ['aligned_5fdmat4',['aligned_dmat4',['../a00303.html#ga001bb387ae8192fa94dbd8b23b600439',1,'glm']]], + ['aligned_5fdmat4x2',['aligned_dmat4x2',['../a00303.html#gaa409cfb737bd59b68dc683e9b03930cc',1,'glm']]], + ['aligned_5fdmat4x3',['aligned_dmat4x3',['../a00303.html#ga621e89ca1dbdcb7b5a3e7de237c44121',1,'glm']]], + ['aligned_5fdmat4x4',['aligned_dmat4x4',['../a00303.html#gac9bda778d0b7ad82f656dab99b71857a',1,'glm']]], + ['aligned_5fdvec1',['aligned_dvec1',['../a00303.html#ga4974f46ae5a19415d91316960a53617a',1,'glm']]], + ['aligned_5fdvec2',['aligned_dvec2',['../a00303.html#ga18d859f87122b2b3b2992ffe86dbebc0',1,'glm']]], + ['aligned_5fdvec3',['aligned_dvec3',['../a00303.html#gaa37869eea77d28419b2fb0ff70b69bf0',1,'glm']]], + ['aligned_5fdvec4',['aligned_dvec4',['../a00303.html#ga8a9f0a4795ccc442fa9901845026f9f5',1,'glm']]], + ['aligned_5fhighp_5fbvec1',['aligned_highp_bvec1',['../a00303.html#ga862843a45b01c35ffe4d44c47ea774ad',1,'glm']]], + ['aligned_5fhighp_5fbvec2',['aligned_highp_bvec2',['../a00303.html#ga0731b593c5e33559954c80f8687e76c6',1,'glm']]], + ['aligned_5fhighp_5fbvec3',['aligned_highp_bvec3',['../a00303.html#ga0913bdf048d0cb74af1d2512aec675bc',1,'glm']]], + ['aligned_5fhighp_5fbvec4',['aligned_highp_bvec4',['../a00303.html#ga9df1d0c425852cf63a57e533b7a83f4f',1,'glm']]], + ['aligned_5fhighp_5fdmat2',['aligned_highp_dmat2',['../a00303.html#ga3a7eeae43cb7673e14cc89bf02f7dd45',1,'glm']]], + ['aligned_5fhighp_5fdmat2x2',['aligned_highp_dmat2x2',['../a00303.html#gaef26dfe3855a91644665b55c9096a8c8',1,'glm']]], + ['aligned_5fhighp_5fdmat2x3',['aligned_highp_dmat2x3',['../a00303.html#gaa7c9d4ab7ab651cdf8001fe7843e238b',1,'glm']]], + ['aligned_5fhighp_5fdmat2x4',['aligned_highp_dmat2x4',['../a00303.html#gaa0d2b8a75f1908dcf32c27f8524bdced',1,'glm']]], + ['aligned_5fhighp_5fdmat3',['aligned_highp_dmat3',['../a00303.html#gad8f6abb2c9994850b5d5c04a5f979ed8',1,'glm']]], + ['aligned_5fhighp_5fdmat3x2',['aligned_highp_dmat3x2',['../a00303.html#gab069b2fc2ec785fc4e193cf26c022679',1,'glm']]], + ['aligned_5fhighp_5fdmat3x3',['aligned_highp_dmat3x3',['../a00303.html#ga66073b1ddef34b681741f572338ddb8e',1,'glm']]], + ['aligned_5fhighp_5fdmat3x4',['aligned_highp_dmat3x4',['../a00303.html#ga683c8ca66de323ea533a760abedd0efc',1,'glm']]], + ['aligned_5fhighp_5fdmat4',['aligned_highp_dmat4',['../a00303.html#gacaa7407ea00ffdd322ce86a57adb547e',1,'glm']]], + ['aligned_5fhighp_5fdmat4x2',['aligned_highp_dmat4x2',['../a00303.html#ga93a23ca3d42818d56e0702213c66354b',1,'glm']]], + ['aligned_5fhighp_5fdmat4x3',['aligned_highp_dmat4x3',['../a00303.html#gacab7374b560745cb1d0a306a90353f58',1,'glm']]], + ['aligned_5fhighp_5fdmat4x4',['aligned_highp_dmat4x4',['../a00303.html#ga1fbfba14368b742972d3b58a0a303682',1,'glm']]], + ['aligned_5fhighp_5fdvec1',['aligned_highp_dvec1',['../a00303.html#gaf0448b0f7ceb8273f7eda3a92205eefc',1,'glm']]], + ['aligned_5fhighp_5fdvec2',['aligned_highp_dvec2',['../a00303.html#gab173a333e6b7ce153ceba66ac4a321cf',1,'glm']]], + ['aligned_5fhighp_5fdvec3',['aligned_highp_dvec3',['../a00303.html#gae94ef61edfa047d05bc69b6065fc42ba',1,'glm']]], + ['aligned_5fhighp_5fdvec4',['aligned_highp_dvec4',['../a00303.html#ga8fad35c5677f228e261fe541f15363a4',1,'glm']]], + ['aligned_5fhighp_5fivec1',['aligned_highp_ivec1',['../a00303.html#gad63b8c5b4dc0500d54d7414ef555178f',1,'glm']]], + ['aligned_5fhighp_5fivec2',['aligned_highp_ivec2',['../a00303.html#ga41563650f36cb7f479e080de21e08418',1,'glm']]], + ['aligned_5fhighp_5fivec3',['aligned_highp_ivec3',['../a00303.html#ga6eca5170bb35eac90b4972590fd31a06',1,'glm']]], + ['aligned_5fhighp_5fivec4',['aligned_highp_ivec4',['../a00303.html#ga31bfa801e1579fdba752ec3f7a45ec91',1,'glm']]], + ['aligned_5fhighp_5fmat2',['aligned_highp_mat2',['../a00303.html#gaf9db5e8a929c317da5aa12cc53741b63',1,'glm']]], + ['aligned_5fhighp_5fmat2x2',['aligned_highp_mat2x2',['../a00303.html#gab559d943abf92bc588bcd3f4c0e4664b',1,'glm']]], + ['aligned_5fhighp_5fmat2x3',['aligned_highp_mat2x3',['../a00303.html#ga50c9af5aa3a848956d625fc64dc8488e',1,'glm']]], + ['aligned_5fhighp_5fmat2x4',['aligned_highp_mat2x4',['../a00303.html#ga0edcfdd179f8a158342eead48a4d0c2a',1,'glm']]], + ['aligned_5fhighp_5fmat3',['aligned_highp_mat3',['../a00303.html#gabab3afcc04459c7b123604ae5dc663f6',1,'glm']]], + ['aligned_5fhighp_5fmat3x2',['aligned_highp_mat3x2',['../a00303.html#ga9fc2167b47c9be9295f2d8eea7f0ca75',1,'glm']]], + ['aligned_5fhighp_5fmat3x3',['aligned_highp_mat3x3',['../a00303.html#ga2f7b8c99ba6f2d07c73a195a8143c259',1,'glm']]], + ['aligned_5fhighp_5fmat3x4',['aligned_highp_mat3x4',['../a00303.html#ga52e00afd0eb181e6738f40cf41787049',1,'glm']]], + ['aligned_5fhighp_5fmat4',['aligned_highp_mat4',['../a00303.html#ga058ae939bfdbcbb80521dd4a3b01afba',1,'glm']]], + ['aligned_5fhighp_5fmat4x2',['aligned_highp_mat4x2',['../a00303.html#ga84e1f5e0718952a079b748825c03f956',1,'glm']]], + ['aligned_5fhighp_5fmat4x3',['aligned_highp_mat4x3',['../a00303.html#gafff1684c4ff19b4a818138ccacc1e78d',1,'glm']]], + ['aligned_5fhighp_5fmat4x4',['aligned_highp_mat4x4',['../a00303.html#ga40d49648083a0498a12a4bb41ae6ece8',1,'glm']]], + ['aligned_5fhighp_5fuvec1',['aligned_highp_uvec1',['../a00303.html#ga5b80e28396c6ef7d32c6fd18df498451',1,'glm']]], + ['aligned_5fhighp_5fuvec2',['aligned_highp_uvec2',['../a00303.html#ga04db692662a4908beeaf5a5ba6e19483',1,'glm']]], + ['aligned_5fhighp_5fuvec3',['aligned_highp_uvec3',['../a00303.html#ga073fd6e8b241afade6d8afbd676b2667',1,'glm']]], + ['aligned_5fhighp_5fuvec4',['aligned_highp_uvec4',['../a00303.html#gabdd60462042859f876c17c7346c732a5',1,'glm']]], + ['aligned_5fhighp_5fvec1',['aligned_highp_vec1',['../a00303.html#ga4d0bd70d5fac49b800546d608b707513',1,'glm']]], + ['aligned_5fhighp_5fvec2',['aligned_highp_vec2',['../a00303.html#gac9f8482dde741fb6bab7248b81a45465',1,'glm']]], + ['aligned_5fhighp_5fvec3',['aligned_highp_vec3',['../a00303.html#ga65415d2d68c9cc0ca554524a8f5510b2',1,'glm']]], + ['aligned_5fhighp_5fvec4',['aligned_highp_vec4',['../a00303.html#ga7cb26d354dd69d23849c34c4fba88da9',1,'glm']]], + ['aligned_5fivec1',['aligned_ivec1',['../a00303.html#ga76298aed82a439063c3d55980c84aa0b',1,'glm']]], + ['aligned_5fivec2',['aligned_ivec2',['../a00303.html#gae4f38fd2c86cee6940986197777b3ca4',1,'glm']]], + ['aligned_5fivec3',['aligned_ivec3',['../a00303.html#ga32794322d294e5ace7fed4a61896f270',1,'glm']]], + ['aligned_5fivec4',['aligned_ivec4',['../a00303.html#ga7f79eae5927c9033d84617e49f6f34e4',1,'glm']]], + ['aligned_5flowp_5fbvec1',['aligned_lowp_bvec1',['../a00303.html#gac6036449ab1c4abf8efe1ea00fcdd1c9',1,'glm']]], + ['aligned_5flowp_5fbvec2',['aligned_lowp_bvec2',['../a00303.html#ga59fadcd3835646e419372ae8b43c5d37',1,'glm']]], + ['aligned_5flowp_5fbvec3',['aligned_lowp_bvec3',['../a00303.html#ga83aab4d191053f169c93a3e364f2e118',1,'glm']]], + ['aligned_5flowp_5fbvec4',['aligned_lowp_bvec4',['../a00303.html#gaa7a76555ee4853614e5755181a8dd54e',1,'glm']]], + ['aligned_5flowp_5fdmat2',['aligned_lowp_dmat2',['../a00303.html#ga79a90173d8faa9816dc852ce447d66ca',1,'glm']]], + ['aligned_5flowp_5fdmat2x2',['aligned_lowp_dmat2x2',['../a00303.html#ga07cb8e846666cbf56045b064fb553d2e',1,'glm']]], + ['aligned_5flowp_5fdmat2x3',['aligned_lowp_dmat2x3',['../a00303.html#ga7a4536b6e1f2ebb690f63816b5d7e48b',1,'glm']]], + ['aligned_5flowp_5fdmat2x4',['aligned_lowp_dmat2x4',['../a00303.html#gab0cf4f7c9a264941519acad286e055ea',1,'glm']]], + ['aligned_5flowp_5fdmat3',['aligned_lowp_dmat3',['../a00303.html#gac00e15efded8a57c9dec3aed0fb547e7',1,'glm']]], + ['aligned_5flowp_5fdmat3x2',['aligned_lowp_dmat3x2',['../a00303.html#gaa281a47d5d627313984d0f8df993b648',1,'glm']]], + ['aligned_5flowp_5fdmat3x3',['aligned_lowp_dmat3x3',['../a00303.html#ga7f3148a72355e39932d6855baca42ebc',1,'glm']]], + ['aligned_5flowp_5fdmat3x4',['aligned_lowp_dmat3x4',['../a00303.html#gaea3ccc5ef5b178e6e49b4fa1427605d3',1,'glm']]], + ['aligned_5flowp_5fdmat4',['aligned_lowp_dmat4',['../a00303.html#gab92c6d7d58d43dfb8147e9aedfe8351b',1,'glm']]], + ['aligned_5flowp_5fdmat4x2',['aligned_lowp_dmat4x2',['../a00303.html#gaf806dfdaffb2e9f7681b1cd2825898ce',1,'glm']]], + ['aligned_5flowp_5fdmat4x3',['aligned_lowp_dmat4x3',['../a00303.html#gab0931ac7807fa1428c7bbf249efcdf0d',1,'glm']]], + ['aligned_5flowp_5fdmat4x4',['aligned_lowp_dmat4x4',['../a00303.html#gad8220a93d2fca2dd707821b4ab6f809e',1,'glm']]], + ['aligned_5flowp_5fdvec1',['aligned_lowp_dvec1',['../a00303.html#ga7f8a2cc5a686e52b1615761f4978ca62',1,'glm']]], + ['aligned_5flowp_5fdvec2',['aligned_lowp_dvec2',['../a00303.html#ga0e37cff4a43cca866101f0a35f01db6d',1,'glm']]], + ['aligned_5flowp_5fdvec3',['aligned_lowp_dvec3',['../a00303.html#gab9e669c4efd52d3347fc6d5f6b20fd59',1,'glm']]], + ['aligned_5flowp_5fdvec4',['aligned_lowp_dvec4',['../a00303.html#ga226f5ec7a953cea559c16fe3aff9924f',1,'glm']]], + ['aligned_5flowp_5fivec1',['aligned_lowp_ivec1',['../a00303.html#ga1101d3a82b2e3f5f8828bd8f3adab3e1',1,'glm']]], + ['aligned_5flowp_5fivec2',['aligned_lowp_ivec2',['../a00303.html#ga44c4accad582cfbd7226a19b83b0cadc',1,'glm']]], + ['aligned_5flowp_5fivec3',['aligned_lowp_ivec3',['../a00303.html#ga65663f10a02e52cedcddbcfe36ddf38d',1,'glm']]], + ['aligned_5flowp_5fivec4',['aligned_lowp_ivec4',['../a00303.html#gaae92fcec8b2e0328ffbeac31cc4fc419',1,'glm']]], + ['aligned_5flowp_5fmat2',['aligned_lowp_mat2',['../a00303.html#ga17c424412207b00dba1cf587b099eea3',1,'glm']]], + ['aligned_5flowp_5fmat2x2',['aligned_lowp_mat2x2',['../a00303.html#ga0e44aeb930a47f9cbf2db15b56433b0f',1,'glm']]], + ['aligned_5flowp_5fmat2x3',['aligned_lowp_mat2x3',['../a00303.html#ga7dec6d96bc61312b1e56d137c9c74030',1,'glm']]], + ['aligned_5flowp_5fmat2x4',['aligned_lowp_mat2x4',['../a00303.html#gaa694fab1f8df5f658846573ba8ffc563',1,'glm']]], + ['aligned_5flowp_5fmat3',['aligned_lowp_mat3',['../a00303.html#ga1eb9076cc28ead5020fd3029fd0472c5',1,'glm']]], + ['aligned_5flowp_5fmat3x2',['aligned_lowp_mat3x2',['../a00303.html#ga2d6639f0bd777bae1ee0eba71cd7bfdc',1,'glm']]], + ['aligned_5flowp_5fmat3x3',['aligned_lowp_mat3x3',['../a00303.html#gaeaab04e378a90956eec8d68a99d777ed',1,'glm']]], + ['aligned_5flowp_5fmat3x4',['aligned_lowp_mat3x4',['../a00303.html#ga1f03696ab066572c6c044e63edf635a2',1,'glm']]], + ['aligned_5flowp_5fmat4',['aligned_lowp_mat4',['../a00303.html#ga25ea2f684e36aa5e978b4f2f86593824',1,'glm']]], + ['aligned_5flowp_5fmat4x2',['aligned_lowp_mat4x2',['../a00303.html#ga2cb16c3fdfb15e0719d942ee3b548bc4',1,'glm']]], + ['aligned_5flowp_5fmat4x3',['aligned_lowp_mat4x3',['../a00303.html#ga7e96981e872f17a780d9f1c22dc1f512',1,'glm']]], + ['aligned_5flowp_5fmat4x4',['aligned_lowp_mat4x4',['../a00303.html#gadae3dcfc22d28c64d0548cbfd9d08719',1,'glm']]], + ['aligned_5flowp_5fuvec1',['aligned_lowp_uvec1',['../a00303.html#gad09b93acc43c43423408d17a64f6d7ca',1,'glm']]], + ['aligned_5flowp_5fuvec2',['aligned_lowp_uvec2',['../a00303.html#ga6f94fcd28dde906fc6cad5f742b55c1a',1,'glm']]], + ['aligned_5flowp_5fuvec3',['aligned_lowp_uvec3',['../a00303.html#ga9e9f006970b1a00862e3e6e599eedd4c',1,'glm']]], + ['aligned_5flowp_5fuvec4',['aligned_lowp_uvec4',['../a00303.html#ga46b1b0b9eb8625a5d69137bd66cd13dc',1,'glm']]], + ['aligned_5flowp_5fvec1',['aligned_lowp_vec1',['../a00303.html#gab34aee3d5e121c543fea11d2c50ecc43',1,'glm']]], + ['aligned_5flowp_5fvec2',['aligned_lowp_vec2',['../a00303.html#ga53ac5d252317f1fa43c2ef921857bf13',1,'glm']]], + ['aligned_5flowp_5fvec3',['aligned_lowp_vec3',['../a00303.html#ga98f0b5cd65fce164ff1367c2a3b3aa1e',1,'glm']]], + ['aligned_5flowp_5fvec4',['aligned_lowp_vec4',['../a00303.html#ga82f7275d6102593a69ce38cdad680409',1,'glm']]], + ['aligned_5fmat2',['aligned_mat2',['../a00303.html#ga5a8a5f8c47cd7d5502dd9932f83472b9',1,'glm']]], + ['aligned_5fmat2x2',['aligned_mat2x2',['../a00303.html#gabb04f459d81d753d278b2072e2375e8e',1,'glm']]], + ['aligned_5fmat2x3',['aligned_mat2x3',['../a00303.html#ga832476bb1c59ef673db37433ff34e399',1,'glm']]], + ['aligned_5fmat2x4',['aligned_mat2x4',['../a00303.html#gadab11a7504430825b648ff7c7e36b725',1,'glm']]], + ['aligned_5fmat3',['aligned_mat3',['../a00303.html#ga43a92a24ca863e0e0f3b65834b3cf714',1,'glm']]], + ['aligned_5fmat3x2',['aligned_mat3x2',['../a00303.html#ga5c0df24ba85eafafc0eb0c90690510ed',1,'glm']]], + ['aligned_5fmat3x3',['aligned_mat3x3',['../a00303.html#gadb065dbe5c11271fef8cf2ea8608f187',1,'glm']]], + ['aligned_5fmat3x4',['aligned_mat3x4',['../a00303.html#ga88061c72c997b94c420f2b0a60d9df26',1,'glm']]], + ['aligned_5fmat4',['aligned_mat4',['../a00303.html#gab0fddcf95dd51cbcbf624ea7c40dfeb8',1,'glm']]], + ['aligned_5fmat4x2',['aligned_mat4x2',['../a00303.html#gac9a2d0fb815fd5c2bd58b869c55e32d3',1,'glm']]], + ['aligned_5fmat4x3',['aligned_mat4x3',['../a00303.html#ga452bbbfd26e244de216e4d004d50bb74',1,'glm']]], + ['aligned_5fmat4x4',['aligned_mat4x4',['../a00303.html#ga8b8fb86973a0b768c5bd802c92fac1a1',1,'glm']]], + ['aligned_5fmediump_5fbvec1',['aligned_mediump_bvec1',['../a00303.html#gadd3b8bd71a758f7fb0da8e525156f34e',1,'glm']]], + ['aligned_5fmediump_5fbvec2',['aligned_mediump_bvec2',['../a00303.html#gacb183eb5e67ec0d0ea5a016cba962810',1,'glm']]], + ['aligned_5fmediump_5fbvec3',['aligned_mediump_bvec3',['../a00303.html#gacfa4a542f1b20a5b63ad702dfb6fd587',1,'glm']]], + ['aligned_5fmediump_5fbvec4',['aligned_mediump_bvec4',['../a00303.html#ga91bc1f513bb9b0fd60281d57ded9a48c',1,'glm']]], + ['aligned_5fmediump_5fdmat2',['aligned_mediump_dmat2',['../a00303.html#ga62a2dfd668c91072b72c3109fc6cda28',1,'glm']]], + ['aligned_5fmediump_5fdmat2x2',['aligned_mediump_dmat2x2',['../a00303.html#ga9b7feec247d378dd407ba81f56ea96c8',1,'glm']]], + ['aligned_5fmediump_5fdmat2x3',['aligned_mediump_dmat2x3',['../a00303.html#gafcb189f4f93648fe7ca802ca4aca2eb8',1,'glm']]], + ['aligned_5fmediump_5fdmat2x4',['aligned_mediump_dmat2x4',['../a00303.html#ga92f8873e3bbd5ca1323c8bbe5725cc5e',1,'glm']]], + ['aligned_5fmediump_5fdmat3',['aligned_mediump_dmat3',['../a00303.html#ga6dc2832b747c00e0a0df621aba196960',1,'glm']]], + ['aligned_5fmediump_5fdmat3x2',['aligned_mediump_dmat3x2',['../a00303.html#ga5a97f0355d801de3444d42c1d5b40438',1,'glm']]], + ['aligned_5fmediump_5fdmat3x3',['aligned_mediump_dmat3x3',['../a00303.html#ga649d0acf01054b17e679cf00e150e025',1,'glm']]], + ['aligned_5fmediump_5fdmat3x4',['aligned_mediump_dmat3x4',['../a00303.html#ga45e155a4840f69b2fa4ed8047a676860',1,'glm']]], + ['aligned_5fmediump_5fdmat4',['aligned_mediump_dmat4',['../a00303.html#ga8a9376d82f0e946e25137eb55543e6ce',1,'glm']]], + ['aligned_5fmediump_5fdmat4x2',['aligned_mediump_dmat4x2',['../a00303.html#gabc25e547f4de4af62403492532cd1b6d',1,'glm']]], + ['aligned_5fmediump_5fdmat4x3',['aligned_mediump_dmat4x3',['../a00303.html#gae84f4763ecdc7457ecb7930bad12057c',1,'glm']]], + ['aligned_5fmediump_5fdmat4x4',['aligned_mediump_dmat4x4',['../a00303.html#gaa292ebaa907afdecb2d5967fb4fb1247',1,'glm']]], + ['aligned_5fmediump_5fdvec1',['aligned_mediump_dvec1',['../a00303.html#ga7180b685c581adb224406a7f831608e3',1,'glm']]], + ['aligned_5fmediump_5fdvec2',['aligned_mediump_dvec2',['../a00303.html#ga9af1eabe22f569e70d9893be72eda0f5',1,'glm']]], + ['aligned_5fmediump_5fdvec3',['aligned_mediump_dvec3',['../a00303.html#ga058e7ddab1428e47f2197bdd3a5a6953',1,'glm']]], + ['aligned_5fmediump_5fdvec4',['aligned_mediump_dvec4',['../a00303.html#gaffd747ea2aea1e69c2ecb04e68521b21',1,'glm']]], + ['aligned_5fmediump_5fivec1',['aligned_mediump_ivec1',['../a00303.html#ga20e63dd980b81af10cadbbe219316650',1,'glm']]], + ['aligned_5fmediump_5fivec2',['aligned_mediump_ivec2',['../a00303.html#gaea13d89d49daca2c796aeaa82fc2c2f2',1,'glm']]], + ['aligned_5fmediump_5fivec3',['aligned_mediump_ivec3',['../a00303.html#gabbf0f15e9c3d9868e43241ad018f82bd',1,'glm']]], + ['aligned_5fmediump_5fivec4',['aligned_mediump_ivec4',['../a00303.html#ga6099dd7878d0a78101a4250d8cd2d736',1,'glm']]], + ['aligned_5fmediump_5fmat2',['aligned_mediump_mat2',['../a00303.html#gaf6f041b212c57664d88bc6aefb7e36f3',1,'glm']]], + ['aligned_5fmediump_5fmat2x2',['aligned_mediump_mat2x2',['../a00303.html#ga04bf49316ee777d42fcfe681ee37d7be',1,'glm']]], + ['aligned_5fmediump_5fmat2x3',['aligned_mediump_mat2x3',['../a00303.html#ga26a0b61e444a51a37b9737cf4d84291b',1,'glm']]], + ['aligned_5fmediump_5fmat2x4',['aligned_mediump_mat2x4',['../a00303.html#ga163facc9ed2692ea1300ed57c5d12b17',1,'glm']]], + ['aligned_5fmediump_5fmat3',['aligned_mediump_mat3',['../a00303.html#ga3b76ba17ae5d53debeb6f7e55919a57c',1,'glm']]], + ['aligned_5fmediump_5fmat3x2',['aligned_mediump_mat3x2',['../a00303.html#ga80dee705d714300378e0847f45059097',1,'glm']]], + ['aligned_5fmediump_5fmat3x3',['aligned_mediump_mat3x3',['../a00303.html#ga721f5404caf40d68962dcc0529de71d9',1,'glm']]], + ['aligned_5fmediump_5fmat3x4',['aligned_mediump_mat3x4',['../a00303.html#ga98f4dc6722a2541a990918c074075359',1,'glm']]], + ['aligned_5fmediump_5fmat4',['aligned_mediump_mat4',['../a00303.html#gaeefee8317192174596852ce19b602720',1,'glm']]], + ['aligned_5fmediump_5fmat4x2',['aligned_mediump_mat4x2',['../a00303.html#ga46f372a006345c252a41267657cc22c0',1,'glm']]], + ['aligned_5fmediump_5fmat4x3',['aligned_mediump_mat4x3',['../a00303.html#ga0effece4545acdebdc2a5512a303110e',1,'glm']]], + ['aligned_5fmediump_5fmat4x4',['aligned_mediump_mat4x4',['../a00303.html#ga312864244cae4e8f10f478cffd0f76de',1,'glm']]], + ['aligned_5fmediump_5fuvec1',['aligned_mediump_uvec1',['../a00303.html#gacb78126ea2eb779b41c7511128ff1283',1,'glm']]], + ['aligned_5fmediump_5fuvec2',['aligned_mediump_uvec2',['../a00303.html#ga081d53e0a71443d0b68ea61c870f9adc',1,'glm']]], + ['aligned_5fmediump_5fuvec3',['aligned_mediump_uvec3',['../a00303.html#gad6fc921bdde2bdbc7e09b028e1e9b379',1,'glm']]], + ['aligned_5fmediump_5fuvec4',['aligned_mediump_uvec4',['../a00303.html#ga73ea0c1ba31580e107d21270883f51fc',1,'glm']]], + ['aligned_5fmediump_5fvec1',['aligned_mediump_vec1',['../a00303.html#ga6b797eec76fa471e300158f3453b3b2e',1,'glm']]], + ['aligned_5fmediump_5fvec2',['aligned_mediump_vec2',['../a00303.html#ga026a55ddbf2bafb1432f1157a2708616',1,'glm']]], + ['aligned_5fmediump_5fvec3',['aligned_mediump_vec3',['../a00303.html#ga3a25e494173f6a64637b08a1b50a2132',1,'glm']]], + ['aligned_5fmediump_5fvec4',['aligned_mediump_vec4',['../a00303.html#ga320d1c661cff2ef214eb50241f2928b2',1,'glm']]], + ['aligned_5fuvec1',['aligned_uvec1',['../a00303.html#ga1ff8ed402c93d280ff0597c1c5e7c548',1,'glm']]], + ['aligned_5fuvec2',['aligned_uvec2',['../a00303.html#ga074137e3be58528d67041c223d49f398',1,'glm']]], + ['aligned_5fuvec3',['aligned_uvec3',['../a00303.html#ga2a8d9c3046f89d854eb758adfa0811c0',1,'glm']]], + ['aligned_5fuvec4',['aligned_uvec4',['../a00303.html#gabf842c45eea186170c267a328e3f3b7d',1,'glm']]], + ['aligned_5fvec1',['aligned_vec1',['../a00303.html#ga05e6d4c908965d04191c2070a8d0a65e',1,'glm']]], + ['aligned_5fvec2',['aligned_vec2',['../a00303.html#ga0682462f8096a226773e20fac993cde5',1,'glm']]], + ['aligned_5fvec3',['aligned_vec3',['../a00303.html#ga7cf643b66664e0cd3c48759ae66c2bd0',1,'glm']]], + ['aligned_5fvec4',['aligned_vec4',['../a00303.html#ga85d89e83cb8137e1be1446de8c3b643a',1,'glm']]], + ['all',['all',['../a00374.html#ga87e53f50b679f5f95c5cb4780311b3dd',1,'glm']]], + ['angle',['angle',['../a00257.html#ga8aa248b31d5ade470c87304df5eb7bd8',1,'glm::angle(qua< T, Q > const &x)'],['../a00367.html#ga2e2917b4cb75ca3d043ac15ff88f14e1',1,'glm::angle(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['angleaxis',['angleAxis',['../a00257.html#ga5c0095cfcb218c75a4b79d7687950036',1,'glm']]], + ['any',['any',['../a00374.html#ga911b3f8e41459dd551ccb6d385d91061',1,'glm']]], + ['arecollinear',['areCollinear',['../a00368.html#ga13da4a787a2ff70e95d561fb19ff91b4',1,'glm']]], + ['areorthogonal',['areOrthogonal',['../a00368.html#gac7b95b3f798e3c293262b2bdaad47c57',1,'glm']]], + ['areorthonormal',['areOrthonormal',['../a00368.html#ga1b091c3d7f9ee3b0708311c001c293e3',1,'glm']]], + ['asec',['asec',['../a00301.html#ga2c5b7f962c2c9ff684e6d2de48db1f10',1,'glm']]], + ['asech',['asech',['../a00301.html#gaec7586dccfe431f850d006f3824b8ca6',1,'glm']]], + ['asin',['asin',['../a00373.html#ga0552d2df4865fa8c3d7cfc3ec2caac73',1,'glm']]], + ['asinh',['asinh',['../a00373.html#ga3ef16b501ee859fddde88e22192a5950',1,'glm']]], + ['associated_5fmin_5fmax_2ehpp',['associated_min_max.hpp',['../a00007.html',1,'']]], + ['associatedmax',['associatedMax',['../a00308.html#ga7d9c8785230c8db60f72ec8975f1ba45',1,'glm::associatedMax(T x, U a, T y, U b)'],['../a00308.html#ga5c6758bc50aa7fbe700f87123a045aad',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)'],['../a00308.html#ga0d169d6ce26b03248df175f39005d77f',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b)'],['../a00308.html#ga4086269afabcb81dd7ded33cb3448653',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)'],['../a00308.html#gaec891e363d91abbf3a4443cf2f652209',1,'glm::associatedMax(T x, U a, T y, U b, T z, U c)'],['../a00308.html#gab84fdc35016a31e8cd0cbb8296bddf7c',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)'],['../a00308.html#gadd2a2002f4f2144bbc39eb2336dd2fba',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c)'],['../a00308.html#ga19f59d1141a51a3b2108a9807af78f7f',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c)'],['../a00308.html#ga3038ffcb43eaa6af75897a99a5047ccc',1,'glm::associatedMax(T x, U a, T y, U b, T z, U c, T w, U d)'],['../a00308.html#gaf5ab0c428f8d1cd9e3b45fcfbf6423a6',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)'],['../a00308.html#ga11477c2c4b5b0bfd1b72b29df3725a9d',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)'],['../a00308.html#gab9c3dd74cac899d2c625b5767ea3b3fb',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)']]], + ['associatedmin',['associatedMin',['../a00308.html#gacc01bd272359572fc28437ae214a02df',1,'glm::associatedMin(T x, U a, T y, U b)'],['../a00308.html#gac2f0dff90948f2e44386a5eafd941d1c',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)'],['../a00308.html#gacfec519c820331d023ef53a511749319',1,'glm::associatedMin(T x, const vec< L, U, Q > &a, T y, const vec< L, U, Q > &b)'],['../a00308.html#ga4757c7cab2d809124a8525d0a9deeb37',1,'glm::associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)'],['../a00308.html#gad0aa8f86259a26d839d34a3577a923fc',1,'glm::associatedMin(T x, U a, T y, U b, T z, U c)'],['../a00308.html#ga723e5411cebc7ffbd5c81ffeec61127d',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)'],['../a00308.html#ga432224ebe2085eaa2b63a077ecbbbff6',1,'glm::associatedMin(T x, U a, T y, U b, T z, U c, T w, U d)'],['../a00308.html#ga66b08118bc88f0494bcacb7cdb940556',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)'],['../a00308.html#ga78c28fde1a7080fb7420bd88e68c6c68',1,'glm::associatedMin(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)'],['../a00308.html#ga2db7e351994baee78540a562d4bb6d3b',1,'glm::associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)']]], + ['atan',['atan',['../a00373.html#gac61629f3a4aa14057e7a8cae002291db',1,'glm::atan(vec< L, T, Q > const &y, vec< L, T, Q > const &x)'],['../a00373.html#ga5229f087eaccbc466f1c609ce3107b95',1,'glm::atan(vec< L, T, Q > const &y_over_x)']]], + ['atan2',['atan2',['../a00315.html#gac63011205bf6d0be82589dc56dd26708',1,'glm::atan2(T x, T y)'],['../a00315.html#ga83bc41bd6f89113ee8006576b12bfc50',1,'glm::atan2(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y)'],['../a00315.html#gac39314f5087e7e51e592897cabbc1927',1,'glm::atan2(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y)'],['../a00315.html#gaba86c28da7bf5bdac64fecf7d56e8ff3',1,'glm::atan2(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)']]], + ['atanh',['atanh',['../a00373.html#gabc925650e618357d07da255531658b87',1,'glm']]], + ['axis',['axis',['../a00257.html#ga764254f10248b505e936e5309a88c23d',1,'glm']]], + ['axisangle',['axisAngle',['../a00337.html#gafefe32ce5a90a135287ba34fac3623bc',1,'glm']]], + ['axisanglematrix',['axisAngleMatrix',['../a00337.html#ga3a788e2f5223397df5c426413ecc2f6b',1,'glm']]], + ['angle_20and_20trigonometry_20functions',['Angle and Trigonometry Functions',['../a00373.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_1.html b/external/glm-0.9.9.8/doc/api/search/all_1.html new file mode 100644 index 0000000..e0b0c6d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_1.js b/external/glm-0.9.9.8/doc/api/search/all_1.js new file mode 100644 index 0000000..f79e1a2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_1.js @@ -0,0 +1,41 @@ +var searchData= +[ + ['backeasein',['backEaseIn',['../a00318.html#ga93cddcdb6347a44d5927cc2bf2570816',1,'glm::backEaseIn(genType const &a)'],['../a00318.html#ga33777c9dd98f61d9472f96aafdf2bd36',1,'glm::backEaseIn(genType const &a, genType const &o)']]], + ['backeaseinout',['backEaseInOut',['../a00318.html#gace6d24722a2f6722b56398206eb810bb',1,'glm::backEaseInOut(genType const &a)'],['../a00318.html#ga68a7b760f2afdfab298d5cd6d7611fb1',1,'glm::backEaseInOut(genType const &a, genType const &o)']]], + ['backeaseout',['backEaseOut',['../a00318.html#gabf25069fa906413c858fd46903d520b9',1,'glm::backEaseOut(genType const &a)'],['../a00318.html#ga640c1ac6fe9d277a197da69daf60ee4f',1,'glm::backEaseOut(genType const &a, genType const &o)']]], + ['ballrand',['ballRand',['../a00300.html#ga7c53b7797f3147af68a11c767679fa3f',1,'glm']]], + ['bit_2ehpp',['bit.hpp',['../a00008.html',1,'']]], + ['bitcount',['bitCount',['../a00370.html#ga44abfe3379e11cbd29425a843420d0d6',1,'glm::bitCount(genType v)'],['../a00370.html#gaac7b15e40bdea8d9aa4c4cb34049f7b5',1,'glm::bitCount(vec< L, T, Q > const &v)']]], + ['bitfield_2ehpp',['bitfield.hpp',['../a00009.html',1,'']]], + ['bitfielddeinterleave',['bitfieldDeinterleave',['../a00288.html#ga091d934233a2e121df91b8c7230357c8',1,'glm::bitfieldDeinterleave(glm::uint16 x)'],['../a00288.html#ga7d1cc24dfbcdd932c3a2abbb76235f98',1,'glm::bitfieldDeinterleave(glm::uint32 x)'],['../a00288.html#ga8dbb8c87092f33bd815dd8a840be5d60',1,'glm::bitfieldDeinterleave(glm::uint64 x)']]], + ['bitfieldextract',['bitfieldExtract',['../a00370.html#ga346b25ab11e793e91a4a69c8aa6819f2',1,'glm']]], + ['bitfieldfillone',['bitfieldFillOne',['../a00288.html#ga46f9295abe3b5c7658f5b13c7f819f0a',1,'glm::bitfieldFillOne(genIUType Value, int FirstBit, int BitCount)'],['../a00288.html#ga3e96dd1f0a4bc892f063251ed118c0c1',1,'glm::bitfieldFillOne(vec< L, T, Q > const &Value, int FirstBit, int BitCount)']]], + ['bitfieldfillzero',['bitfieldFillZero',['../a00288.html#ga697b86998b7d74ee0a69d8e9f8819fee',1,'glm::bitfieldFillZero(genIUType Value, int FirstBit, int BitCount)'],['../a00288.html#ga0d16c9acef4be79ea9b47c082a0cf7c2',1,'glm::bitfieldFillZero(vec< L, T, Q > const &Value, int FirstBit, int BitCount)']]], + ['bitfieldinsert',['bitfieldInsert',['../a00370.html#ga2e82992340d421fadb61a473df699b20',1,'glm']]], + ['bitfieldinterleave',['bitfieldInterleave',['../a00288.html#ga24cad0069f9a0450abd80b3e89501adf',1,'glm::bitfieldInterleave(int8 x, int8 y)'],['../a00288.html#ga9a4976a529aec2cee56525e1165da484',1,'glm::bitfieldInterleave(uint8 x, uint8 y)'],['../a00288.html#ga4a76bbca39c40153f3203d0a1926e142',1,'glm::bitfieldInterleave(u8vec2 const &v)'],['../a00288.html#gac51c33a394593f0631fa3aa5bb778809',1,'glm::bitfieldInterleave(int16 x, int16 y)'],['../a00288.html#ga94f3646a5667f4be56f8dcf3310e963f',1,'glm::bitfieldInterleave(uint16 x, uint16 y)'],['../a00288.html#ga406c4ee56af4ca37a73f449f154eca3e',1,'glm::bitfieldInterleave(u16vec2 const &v)'],['../a00288.html#gaebb756a24a0784e3d6fba8bd011ab77a',1,'glm::bitfieldInterleave(int32 x, int32 y)'],['../a00288.html#ga2f1e2b3fe699e7d897ae38b2115ddcbd',1,'glm::bitfieldInterleave(uint32 x, uint32 y)'],['../a00288.html#ga8cb17574d60abd6ade84bc57c10e8f78',1,'glm::bitfieldInterleave(u32vec2 const &v)'],['../a00288.html#ga8fdb724dccd4a07d57efc01147102137',1,'glm::bitfieldInterleave(int8 x, int8 y, int8 z)'],['../a00288.html#ga9fc2a0dd5dcf8b00e113f272a5feca93',1,'glm::bitfieldInterleave(uint8 x, uint8 y, uint8 z)'],['../a00288.html#gaa901c36a842fa5d126ea650549f17b24',1,'glm::bitfieldInterleave(int16 x, int16 y, int16 z)'],['../a00288.html#ga3afd6d38881fe3948c53d4214d2197fd',1,'glm::bitfieldInterleave(uint16 x, uint16 y, uint16 z)'],['../a00288.html#gad2075d96a6640121edaa98ea534102ca',1,'glm::bitfieldInterleave(int32 x, int32 y, int32 z)'],['../a00288.html#gab19fbc739fc0cf7247978602c36f7da8',1,'glm::bitfieldInterleave(uint32 x, uint32 y, uint32 z)'],['../a00288.html#ga8a44ae22f5c953b296c42d067dccbe6d',1,'glm::bitfieldInterleave(int8 x, int8 y, int8 z, int8 w)'],['../a00288.html#ga14bb274d54a3c26f4919dd7ed0dd0c36',1,'glm::bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w)'],['../a00288.html#ga180a63161e1319fbd5a53c84d0429c7a',1,'glm::bitfieldInterleave(int16 x, int16 y, int16 z, int16 w)'],['../a00288.html#gafca8768671a14c8016facccb66a89f26',1,'glm::bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)']]], + ['bitfieldreverse',['bitfieldReverse',['../a00370.html#ga750a1d92464489b7711dee67aa3441b6',1,'glm']]], + ['bitfieldrotateleft',['bitfieldRotateLeft',['../a00288.html#ga2eb49678a344ce1495bdb5586d9896b9',1,'glm::bitfieldRotateLeft(genIUType In, int Shift)'],['../a00288.html#gae186317091b1a39214ebf79008d44a1e',1,'glm::bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)']]], + ['bitfieldrotateright',['bitfieldRotateRight',['../a00288.html#ga1c33d075c5fb8bd8dbfd5092bfc851ca',1,'glm::bitfieldRotateRight(genIUType In, int Shift)'],['../a00288.html#ga590488e1fc00a6cfe5d3bcaf93fbfe88',1,'glm::bitfieldRotateRight(vec< L, T, Q > const &In, int Shift)']]], + ['bool1',['bool1',['../a00315.html#gaddcd7aa2e30e61af5b38660613d3979e',1,'glm']]], + ['bool1x1',['bool1x1',['../a00315.html#ga7f895c936f0c29c8729afbbf22806090',1,'glm']]], + ['bool2',['bool2',['../a00315.html#gaa09ab65ec9c3c54305ff502e2b1fe6d9',1,'glm']]], + ['bool2x2',['bool2x2',['../a00315.html#gadb3703955e513632f98ba12fe051ba3e',1,'glm']]], + ['bool2x3',['bool2x3',['../a00315.html#ga9ae6ee155d0f90cb1ae5b6c4546738a0',1,'glm']]], + ['bool2x4',['bool2x4',['../a00315.html#ga4d7fa65be8e8e4ad6d920b45c44e471f',1,'glm']]], + ['bool3',['bool3',['../a00315.html#ga99629f818737f342204071ef8296b2ed',1,'glm']]], + ['bool3x2',['bool3x2',['../a00315.html#gac7d7311f7e0fa8b6163d96dab033a755',1,'glm']]], + ['bool3x3',['bool3x3',['../a00315.html#ga6c97b99aac3e302053ffb58aace9033c',1,'glm']]], + ['bool3x4',['bool3x4',['../a00315.html#gae7d6b679463d37d6c527d478fb470fdf',1,'glm']]], + ['bool4',['bool4',['../a00315.html#ga13c3200b82708f73faac6d7f09ec91a3',1,'glm']]], + ['bool4x2',['bool4x2',['../a00315.html#ga9ed830f52408b2f83c085063a3eaf1d0',1,'glm']]], + ['bool4x3',['bool4x3',['../a00315.html#gad0f5dc7f22c2065b1b06d57f1c0658fe',1,'glm']]], + ['bool4x4',['bool4x4',['../a00315.html#ga7d2a7d13986602ae2896bfaa394235d4',1,'glm']]], + ['bounceeasein',['bounceEaseIn',['../a00318.html#gaac30767f2e430b0c3fc859a4d59c7b5b',1,'glm']]], + ['bounceeaseinout',['bounceEaseInOut',['../a00318.html#gadf9f38eff1e5f4c2fa5b629a25ae413e',1,'glm']]], + ['bounceeaseout',['bounceEaseOut',['../a00318.html#ga94007005ff0dcfa0749ebfa2aec540b2',1,'glm']]], + ['bvec1',['bvec1',['../a00265.html#ga067af382616d93f8e850baae5154cdcc',1,'glm']]], + ['bvec2',['bvec2',['../a00281.html#ga0b6123e03653cc1bbe366fc55238a934',1,'glm']]], + ['bvec3',['bvec3',['../a00281.html#ga197151b72dfaf289daf98b361760ffe7',1,'glm']]], + ['bvec4',['bvec4',['../a00281.html#ga9f7b9712373ff4342d9114619b55f5e3',1,'glm']]], + ['byte',['byte',['../a00354.html#ga3005cb0d839d546c616becfa6602c607',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_10.html b/external/glm-0.9.9.8/doc/api/search/all_10.html new file mode 100644 index 0000000..2eb9d8a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_10.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_10.js b/external/glm-0.9.9.8/doc/api/search/all_10.js new file mode 100644 index 0000000..4d6bcb4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_10.js @@ -0,0 +1,50 @@ +var searchData= +[ + ['stable_20extensions',['Stable extensions',['../a00285.html',1,'']]], + ['saturate',['saturate',['../a00315.html#ga0fd09e616d122bc2ed9726682ffd44b7',1,'glm::saturate(T x)'],['../a00315.html#gaee97b8001c794a78a44f5d59f62a8aba',1,'glm::saturate(const vec< 2, T, Q > &x)'],['../a00315.html#ga39bfe3a421286ee31680d45c31ccc161',1,'glm::saturate(const vec< 3, T, Q > &x)'],['../a00315.html#ga356f8c3a7e7d6376d3d4b0a026407183',1,'glm::saturate(const vec< 4, T, Q > &x)']]], + ['saturation',['saturation',['../a00312.html#ga01a97152b44e1550edcac60bd849e884',1,'glm::saturation(T const s)'],['../a00312.html#ga2156cea600e90148ece5bc96fd6db43a',1,'glm::saturation(T const s, vec< 3, T, Q > const &color)'],['../a00312.html#gaba0eacee0736dae860e9371cc1ae4785',1,'glm::saturation(T const s, vec< 4, T, Q > const &color)']]], + ['scalar_5fcommon_2ehpp',['scalar_common.hpp',['../a00144.html',1,'']]], + ['scalar_5fconstants_2ehpp',['scalar_constants.hpp',['../a00145.html',1,'']]], + ['scalar_5fint_5fsized_2ehpp',['scalar_int_sized.hpp',['../a00146.html',1,'']]], + ['scalar_5finteger_2ehpp',['scalar_integer.hpp',['../a00147.html',1,'']]], + ['scalar_5fmultiplication_2ehpp',['scalar_multiplication.hpp',['../a00148.html',1,'']]], + ['scalar_5fuint_5fsized_2ehpp',['scalar_uint_sized.hpp',['../a00151.html',1,'']]], + ['scalar_5fulp_2ehpp',['scalar_ulp.hpp',['../a00152.html',1,'']]], + ['scale',['scale',['../a00247.html#ga05051adbee603fb3c5095d8cf5cc229b',1,'glm::scale(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)'],['../a00341.html#gadb47d2ad2bd984b213e8ff7d9cd8154e',1,'glm::scale(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)'],['../a00362.html#gafbeefee8fec884d566e4ada0049174d7',1,'glm::scale(vec< 3, T, Q > const &v)']]], + ['scalebias',['scaleBias',['../a00363.html#gabf249498b236e62c983d90d30d63c99c',1,'glm::scaleBias(T scale, T bias)'],['../a00363.html#gae2bdd91a76759fecfbaef97e3020aa8e',1,'glm::scaleBias(mat< 4, 4, T, Q > const &m, T scale, T bias)']]], + ['sec',['sec',['../a00301.html#gae4bcbebee670c5ea155f0777b3acbd84',1,'glm']]], + ['sech',['sech',['../a00301.html#ga9a5cfd1e7170104a7b33863b1b75e5ae',1,'glm']]], + ['shearx',['shearX',['../a00341.html#ga2a118ece5db1e2022112b954846012af',1,'glm']]], + ['shearx2d',['shearX2D',['../a00363.html#gabf714b8a358181572b32a45555f71948',1,'glm']]], + ['shearx3d',['shearX3D',['../a00363.html#ga73e867c6cd4d700fe2054437e56106c4',1,'glm']]], + ['sheary',['shearY',['../a00341.html#ga717f1833369c1ac4a40e4ac015af885e',1,'glm']]], + ['sheary2d',['shearY2D',['../a00363.html#gac7998d0763d9181550c77e8af09a182c',1,'glm']]], + ['sheary3d',['shearY3D',['../a00363.html#gade5bb65ffcb513973db1a1314fb5cfac',1,'glm']]], + ['shearz3d',['shearZ3D',['../a00363.html#ga6591e0a3a9d2c9c0b6577bb4dace0255',1,'glm']]], + ['shortmix',['shortMix',['../a00352.html#gadc576cc957adc2a568cdcbc3799175bc',1,'glm']]], + ['sign',['sign',['../a00241.html#ga1e2e5cfff800056540e32f6c9b604b28',1,'glm::sign(vec< L, T, Q > const &x)'],['../a00333.html#ga04ef803a24f3d4f8c67dbccb33b0fce0',1,'glm::sign(vec< L, T, Q > const &x, vec< L, T, Q > const &base)']]], + ['simplex',['simplex',['../a00297.html#ga8122468c69015ff397349a7dcc638b27',1,'glm']]], + ['sin',['sin',['../a00373.html#ga29747fd108cb7292ae5a284f69691a69',1,'glm']]], + ['sineeasein',['sineEaseIn',['../a00318.html#gafb338ac6f6b2bcafee50e3dca5201dbf',1,'glm']]], + ['sineeaseinout',['sineEaseInOut',['../a00318.html#gaa46e3d5fbf7a15caa28eff9ef192d7c7',1,'glm']]], + ['sineeaseout',['sineEaseOut',['../a00318.html#gab3e454f883afc1606ef91363881bf5a3',1,'glm']]], + ['sinh',['sinh',['../a00373.html#gac7c39ff21809e281552b4dbe46f4a39d',1,'glm']]], + ['sint',['sint',['../a00330.html#gada7e83fdfe943aba4f1d5bf80cb66f40',1,'glm']]], + ['size1',['size1',['../a00359.html#gaeb877ac8f9a3703961736c1c5072cf68',1,'glm']]], + ['size1_5ft',['size1_t',['../a00359.html#gaaf6accc57f5aa50447ba7310ce3f0d6f',1,'glm']]], + ['size2',['size2',['../a00359.html#ga1bfe8c4975ff282bce41be2bacd524fe',1,'glm']]], + ['size2_5ft',['size2_t',['../a00359.html#ga5976c25657d4e2b5f73f39364c3845d6',1,'glm']]], + ['size3',['size3',['../a00359.html#gae1c72956d0359b0db332c6c8774d3b04',1,'glm']]], + ['size3_5ft',['size3_t',['../a00359.html#gaf2654983c60d641fd3808e65a8dfad8d',1,'glm']]], + ['size4',['size4',['../a00359.html#ga3a19dde617beaf8ce3cfc2ac5064e9aa',1,'glm']]], + ['size4_5ft',['size4_t',['../a00359.html#gaa423efcea63675a2df26990dbcb58656',1,'glm']]], + ['slerp',['slerp',['../a00248.html#gae7fc3c945be366b9942b842f55da428a',1,'glm::slerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)'],['../a00356.html#ga8b11b18ce824174ea1a5a69ea14e2cee',1,'glm::slerp(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, T const &a)']]], + ['smoothstep',['smoothstep',['../a00241.html#ga562edf7eca082cc5b7a0aaf180436daf',1,'glm']]], + ['sphericalrand',['sphericalRand',['../a00300.html#ga22f90fcaccdf001c516ca90f6428e138',1,'glm']]], + ['spline_2ehpp',['spline.hpp',['../a00154.html',1,'']]], + ['sqrt',['sqrt',['../a00242.html#gaa83e5f1648b7ccdf33b87c07c76cb77c',1,'glm::sqrt(vec< L, T, Q > const &v)'],['../a00256.html#ga64b7b255ed7bcba616fe6b44470b022e',1,'glm::sqrt(qua< T, Q > const &q)'],['../a00330.html#ga7ce36693a75879ccd9bb10167cfa722d',1,'glm::sqrt(int x)'],['../a00330.html#ga1975d318978d6dacf78b6444fa5ed7bc',1,'glm::sqrt(uint x)']]], + ['squad',['squad',['../a00352.html#ga0b9bf3459e132ad8a18fe970669e3e35',1,'glm']]], + ['std_5fbased_5ftype_2ehpp',['std_based_type.hpp',['../a00155.html',1,'']]], + ['step',['step',['../a00241.html#ga015a1261ff23e12650211aa872863cce',1,'glm::step(genType edge, genType x)'],['../a00241.html#ga8f9a911a48ef244b51654eaefc81c551',1,'glm::step(T edge, vec< L, T, Q > const &x)'],['../a00241.html#gaf4a5fc81619c7d3e8b22f53d4a098c7f',1,'glm::step(vec< L, T, Q > const &edge, vec< L, T, Q > const &x)']]], + ['string_5fcast_2ehpp',['string_cast.hpp',['../a00156.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_11.html b/external/glm-0.9.9.8/doc/api/search/all_11.html new file mode 100644 index 0000000..e083915 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_11.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_11.js b/external/glm-0.9.9.8/doc/api/search/all_11.js new file mode 100644 index 0000000..5dfe4cf --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_11.js @@ -0,0 +1,41 @@ +var searchData= +[ + ['tan',['tan',['../a00373.html#ga293a34cfb9f0115cc606b4a97c84f11f',1,'glm']]], + ['tanh',['tanh',['../a00373.html#gaa1bccbfdcbe40ed2ffcddc2aa8bfd0f1',1,'glm']]], + ['texture_2ehpp',['texture.hpp',['../a00157.html',1,'']]], + ['third',['third',['../a00290.html#ga3077c6311010a214b69ddc8214ec13b5',1,'glm']]], + ['three_5fover_5ftwo_5fpi',['three_over_two_pi',['../a00290.html#gae94950df74b0ce382b1fc1d978ef7394',1,'glm']]], + ['to_5fstring',['to_string',['../a00360.html#ga8f0dced1fd45e67e2d77e80ab93c7af5',1,'glm']]], + ['tomat3',['toMat3',['../a00352.html#gaab0afabb894b28a983fb8ec610409d56',1,'glm']]], + ['tomat4',['toMat4',['../a00352.html#gadfa2c77094e8cc9adad321d938855ffb',1,'glm']]], + ['toquat',['toQuat',['../a00352.html#ga798de5d186499c9a9231cd92c8afaef1',1,'glm::toQuat(mat< 3, 3, T, Q > const &x)'],['../a00352.html#ga5eb36f51e1638e710451eba194dbc011',1,'glm::toQuat(mat< 4, 4, T, Q > const &x)']]], + ['transform_2ehpp',['transform.hpp',['../a00158.html',1,'']]], + ['transform2_2ehpp',['transform2.hpp',['../a00159.html',1,'']]], + ['translate',['translate',['../a00247.html#ga1a4ecc4ad82652b8fb14dcb087879284',1,'glm::translate(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)'],['../a00341.html#gaf4573ae47c80938aa9053ef6a33755ab',1,'glm::translate(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)'],['../a00362.html#ga309a30e652e58c396e2c3d4db3ee7658',1,'glm::translate(vec< 3, T, Q > const &v)']]], + ['transpose',['transpose',['../a00371.html#gae679d841da8ce9dbcc6c2d454f15bc35',1,'glm']]], + ['trianglenormal',['triangleNormal',['../a00344.html#gaff1cb5496925dfa7962df457772a7f35',1,'glm']]], + ['trigonometric_2ehpp',['trigonometric.hpp',['../a00160.html',1,'']]], + ['trunc',['trunc',['../a00241.html#gaf9375e3e06173271d49e6ffa3a334259',1,'glm']]], + ['tweakedinfiniteperspective',['tweakedInfinitePerspective',['../a00243.html#gaaeacc04a2a6f4b18c5899d37e7bb3ef9',1,'glm::tweakedInfinitePerspective(T fovy, T aspect, T near)'],['../a00243.html#gaf5b3c85ff6737030a1d2214474ffa7a8',1,'glm::tweakedInfinitePerspective(T fovy, T aspect, T near, T ep)']]], + ['two_5fover_5fpi',['two_over_pi',['../a00290.html#ga74eadc8a211253079683219a3ea0462a',1,'glm']]], + ['two_5fover_5froot_5fpi',['two_over_root_pi',['../a00290.html#ga5827301817640843cf02026a8d493894',1,'glm']]], + ['two_5fpi',['two_pi',['../a00290.html#gaa5276a4617566abcfe49286f40e3a256',1,'glm']]], + ['two_5fthirds',['two_thirds',['../a00290.html#ga9b4d2f4322edcf63a6737b92a29dd1f5',1,'glm']]], + ['type_5fmat2x2_2ehpp',['type_mat2x2.hpp',['../a00165.html',1,'']]], + ['type_5fmat2x3_2ehpp',['type_mat2x3.hpp',['../a00166.html',1,'']]], + ['type_5fmat2x4_2ehpp',['type_mat2x4.hpp',['../a00167.html',1,'']]], + ['type_5fmat3x2_2ehpp',['type_mat3x2.hpp',['../a00168.html',1,'']]], + ['type_5fmat3x3_2ehpp',['type_mat3x3.hpp',['../a00169.html',1,'']]], + ['type_5fmat3x4_2ehpp',['type_mat3x4.hpp',['../a00170.html',1,'']]], + ['type_5fmat4x2_2ehpp',['type_mat4x2.hpp',['../a00171.html',1,'']]], + ['type_5fmat4x3_2ehpp',['type_mat4x3.hpp',['../a00172.html',1,'']]], + ['type_5fmat4x4_2ehpp',['type_mat4x4.hpp',['../a00173.html',1,'']]], + ['type_5fprecision_2ehpp',['type_precision.hpp',['../a00174.html',1,'']]], + ['type_5fptr_2ehpp',['type_ptr.hpp',['../a00175.html',1,'']]], + ['type_5fquat_2ehpp',['type_quat.hpp',['../a00176.html',1,'']]], + ['type_5ftrait_2ehpp',['type_trait.hpp',['../a00177.html',1,'']]], + ['type_5fvec1_2ehpp',['type_vec1.hpp',['../a00178.html',1,'']]], + ['type_5fvec2_2ehpp',['type_vec2.hpp',['../a00179.html',1,'']]], + ['type_5fvec3_2ehpp',['type_vec3.hpp',['../a00180.html',1,'']]], + ['type_5fvec4_2ehpp',['type_vec4.hpp',['../a00181.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/all_12.html b/external/glm-0.9.9.8/doc/api/search/all_12.html similarity index 97% rename from external/glm/doc/api/search/all_12.html rename to external/glm-0.9.9.8/doc/api/search/all_12.html index fe93a5b..5b98123 100644 --- a/external/glm/doc/api/search/all_12.html +++ b/external/glm-0.9.9.8/doc/api/search/all_12.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_12.js b/external/glm-0.9.9.8/doc/api/search/all_12.js new file mode 100644 index 0000000..5218e3d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_12.js @@ -0,0 +1,97 @@ +var searchData= +[ + ['u16',['u16',['../a00304.html#gaa2d7acc0adb536fab71fe261232a40ff',1,'glm']]], + ['u16vec1',['u16vec1',['../a00304.html#ga08c05ba8ffb19f5d14ab584e1e9e9ee5',1,'glm::u16vec1()'],['../a00346.html#ga52cc069a92e126c3a8dcde93424d2ef0',1,'glm::gtx::u16vec1()']]], + ['u16vec2',['u16vec2',['../a00304.html#ga2a78447eb9d66a114b193f4a25899c16',1,'glm']]], + ['u16vec3',['u16vec3',['../a00304.html#ga1c522ca821c27b862fe51cf4024b064b',1,'glm']]], + ['u16vec4',['u16vec4',['../a00304.html#ga529496d75775fb656a07993ea9af2450',1,'glm']]], + ['u32',['u32',['../a00304.html#ga8165913e068444f7842302d40ba897b9',1,'glm']]], + ['u32vec1',['u32vec1',['../a00304.html#gae627372cfd5f20dd87db490387b71195',1,'glm::u32vec1()'],['../a00346.html#ga9bbc1e14aea65cba5e2dcfef6a67d9f3',1,'glm::gtx::u32vec1()']]], + ['u32vec2',['u32vec2',['../a00304.html#ga2a266e46ee218d0c680f12b35c500cc0',1,'glm']]], + ['u32vec3',['u32vec3',['../a00304.html#gae267358ff2a41d156d97f5762630235a',1,'glm']]], + ['u32vec4',['u32vec4',['../a00304.html#ga31cef34e4cd04840c54741ff2f7005f0',1,'glm']]], + ['u64',['u64',['../a00304.html#gaf3f312156984c365e9f65620354da70b',1,'glm']]], + ['u64vec1',['u64vec1',['../a00304.html#gaf09f3ca4b671a4a4f84505eb4cc865fd',1,'glm::u64vec1()'],['../a00346.html#ga818de170e2584ab037130f2881925974',1,'glm::gtx::u64vec1()']]], + ['u64vec2',['u64vec2',['../a00304.html#gaef3824ed4fe435a019c5b9dddf53fec5',1,'glm']]], + ['u64vec3',['u64vec3',['../a00304.html#ga489b89ba93d4f7b3934df78debc52276',1,'glm']]], + ['u64vec4',['u64vec4',['../a00304.html#ga3945dd6515d4498cb603e65ff867ab03',1,'glm']]], + ['u8',['u8',['../a00304.html#gaecc7082561fc9028b844b6cf3d305d36',1,'glm']]], + ['u8vec1',['u8vec1',['../a00304.html#ga29b349e037f0b24320b4548a143daee2',1,'glm::u8vec1()'],['../a00346.html#ga5853fe457f4c8a6bc09343d0e9833980',1,'glm::gtx::u8vec1()']]], + ['u8vec2',['u8vec2',['../a00304.html#ga518b8d948a6b4ddb72f84d5c3b7b6611',1,'glm']]], + ['u8vec3',['u8vec3',['../a00304.html#ga7c5706f6bbe5282e5598acf7e7b377e2',1,'glm']]], + ['u8vec4',['u8vec4',['../a00304.html#ga20779a61de2fd526a17f12fe53ec46b1',1,'glm']]], + ['uaddcarry',['uaddCarry',['../a00370.html#gaedcec48743632dff6786bcc492074b1b',1,'glm']]], + ['uint16',['uint16',['../a00263.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e',1,'glm']]], + ['uint16_5ft',['uint16_t',['../a00304.html#ga91f91f411080c37730856ff5887f5bcf',1,'glm']]], + ['uint32',['uint32',['../a00263.html#ga1134b580f8da4de94ca6b1de4d37975e',1,'glm']]], + ['uint32_5ft',['uint32_t',['../a00304.html#ga2171d9dc1fefb1c82e2817f45b622eac',1,'glm']]], + ['uint64',['uint64',['../a00263.html#gab630f76c26b50298187f7889104d4b9c',1,'glm']]], + ['uint64_5ft',['uint64_t',['../a00304.html#ga3999d3e7ff22025c16ddb601e14dfdee',1,'glm']]], + ['uint8',['uint8',['../a00263.html#gadde6aaee8457bee49c2a92621fe22b79',1,'glm']]], + ['uint8_5ft',['uint8_t',['../a00304.html#ga28d97808322d3c92186e4a0c067d7e8e',1,'glm']]], + ['uintbitstofloat',['uintBitsToFloat',['../a00241.html#gab2bae0d15dcdca6093f88f76b3975d97',1,'glm::uintBitsToFloat(uint const &v)'],['../a00241.html#ga97f46b5f7b42fe44482e13356eb394ae',1,'glm::uintBitsToFloat(vec< L, uint, Q > const &v)']]], + ['ulp_2ehpp',['ulp.hpp',['../a00182.html',1,'']]], + ['umat2',['umat2',['../a00294.html#ga4cae85566f900debf930c41944b64691',1,'glm']]], + ['umat2x2',['umat2x2',['../a00294.html#gabf8acdd33ce8951051edbca5200898aa',1,'glm']]], + ['umat2x3',['umat2x3',['../a00294.html#ga1870da7578d5022b973a83155d386ab3',1,'glm']]], + ['umat2x4',['umat2x4',['../a00294.html#ga57936a3998e992370e59a223e0ee4fd4',1,'glm']]], + ['umat3',['umat3',['../a00294.html#ga5085e3ff02abbac5e537eb7b89ab63b6',1,'glm']]], + ['umat3x2',['umat3x2',['../a00294.html#ga9cd7fa637a4a6788337f45231fad9e1a',1,'glm']]], + ['umat3x3',['umat3x3',['../a00294.html#ga1f2cfcf3357db0cdf31fcb15e3c6bafb',1,'glm']]], + ['umat3x4',['umat3x4',['../a00294.html#gae7c78ff3fc4309605ab0fa186c8d48ba',1,'glm']]], + ['umat4',['umat4',['../a00294.html#ga38bc7bb6494e344185df596deeb4544c',1,'glm']]], + ['umat4x2',['umat4x2',['../a00294.html#ga70fa2d05896aa83cbc8c07672a429b53',1,'glm']]], + ['umat4x3',['umat4x3',['../a00294.html#ga87581417945411f75cb31dd6ca1dba98',1,'glm']]], + ['umat4x4',['umat4x4',['../a00294.html#gaf72e6d399c42985db6872c50f53d7eb8',1,'glm']]], + ['umulextended',['umulExtended',['../a00370.html#ga732e2fb56db57ea541c7e5c92b7121be',1,'glm']]], + ['unpackdouble2x32',['unpackDouble2x32',['../a00372.html#ga5f4296dc5f12f0aa67ac05b8bb322483',1,'glm']]], + ['unpackf2x11_5f1x10',['unpackF2x11_1x10',['../a00298.html#ga2b1fd1e854705b1345e98409e0a25e50',1,'glm']]], + ['unpackf3x9_5fe1x5',['unpackF3x9_E1x5',['../a00298.html#gab9e60ebe3ad3eeced6a9ec6eb876d74e',1,'glm']]], + ['unpackhalf',['unpackHalf',['../a00298.html#ga30d6b2f1806315bcd6047131f547d33b',1,'glm']]], + ['unpackhalf1x16',['unpackHalf1x16',['../a00298.html#gac37dedaba24b00adb4ec6e8f92c19dbf',1,'glm']]], + ['unpackhalf2x16',['unpackHalf2x16',['../a00372.html#gaf59b52e6b28da9335322c4ae19b5d745',1,'glm']]], + ['unpackhalf4x16',['unpackHalf4x16',['../a00298.html#ga57dfc41b2eb20b0ac00efae7d9c49dcd',1,'glm']]], + ['unpacki3x10_5f1x2',['unpackI3x10_1x2',['../a00298.html#ga9a05330e5490be0908d3b117d82aff56',1,'glm']]], + ['unpackint2x16',['unpackInt2x16',['../a00298.html#gaccde055882918a3175de82f4ca8b7d8e',1,'glm']]], + ['unpackint2x32',['unpackInt2x32',['../a00298.html#gab297c0bfd38433524791eb0584d8f08d',1,'glm']]], + ['unpackint2x8',['unpackInt2x8',['../a00298.html#gab0c59f1e259fca9e68adb2207a6b665e',1,'glm']]], + ['unpackint4x16',['unpackInt4x16',['../a00298.html#ga52c154a9b232b62c22517a700cc0c78c',1,'glm']]], + ['unpackint4x8',['unpackInt4x8',['../a00298.html#ga1cd8d2038cdd33a860801aa155a26221',1,'glm']]], + ['unpackrgbm',['unpackRGBM',['../a00298.html#ga5c1ec97894b05ea21a05aea4f0204a02',1,'glm']]], + ['unpacksnorm',['unpackSnorm',['../a00298.html#ga6d49b31e5c3f9df8e1f99ab62b999482',1,'glm']]], + ['unpacksnorm1x16',['unpackSnorm1x16',['../a00298.html#ga96dd15002370627a443c835ab03a766c',1,'glm']]], + ['unpacksnorm1x8',['unpackSnorm1x8',['../a00298.html#ga4851ff86678aa1c7ace9d67846894285',1,'glm']]], + ['unpacksnorm2x16',['unpackSnorm2x16',['../a00372.html#gacd8f8971a3fe28418be0d0fa1f786b38',1,'glm']]], + ['unpacksnorm2x8',['unpackSnorm2x8',['../a00298.html#ga8b128e89be449fc71336968a66bf6e1a',1,'glm']]], + ['unpacksnorm3x10_5f1x2',['unpackSnorm3x10_1x2',['../a00298.html#ga7a4fbf79be9740e3c57737bc2af05e5b',1,'glm']]], + ['unpacksnorm4x16',['unpackSnorm4x16',['../a00298.html#gaaddf9c353528fe896106f7181219c7f4',1,'glm']]], + ['unpacksnorm4x8',['unpackSnorm4x8',['../a00372.html#ga2db488646d48b7c43d3218954523fe82',1,'glm']]], + ['unpacku3x10_5f1x2',['unpackU3x10_1x2',['../a00298.html#ga48df3042a7d079767f5891a1bfd8a60a',1,'glm']]], + ['unpackuint2x16',['unpackUint2x16',['../a00298.html#ga035bbbeab7ec2b28c0529757395b645b',1,'glm']]], + ['unpackuint2x32',['unpackUint2x32',['../a00298.html#gaf942ff11b65e83eb5f77e68329ebc6ab',1,'glm']]], + ['unpackuint2x8',['unpackUint2x8',['../a00298.html#gaa7600a6c71784b637a410869d2a5adcd',1,'glm']]], + ['unpackuint4x16',['unpackUint4x16',['../a00298.html#gab173834ef14cfc23a96a959f3ff4b8dc',1,'glm']]], + ['unpackuint4x8',['unpackUint4x8',['../a00298.html#gaf6dc0e4341810a641c7ed08f10e335d1',1,'glm']]], + ['unpackunorm',['unpackUnorm',['../a00298.html#ga3e6ac9178b59f0b1b2f7599f2183eb7f',1,'glm']]], + ['unpackunorm1x16',['unpackUnorm1x16',['../a00298.html#ga83d34160a5cb7bcb5339823210fc7501',1,'glm']]], + ['unpackunorm1x5_5f1x6_5f1x5',['unpackUnorm1x5_1x6_1x5',['../a00298.html#gab3bc08ecfc0f3339be93fb2b3b56d88a',1,'glm']]], + ['unpackunorm1x8',['unpackUnorm1x8',['../a00298.html#ga1319207e30874fb4931a9ee913983ee1',1,'glm']]], + ['unpackunorm2x16',['unpackUnorm2x16',['../a00372.html#ga1f66188e5d65afeb9ffba1ad971e4007',1,'glm']]], + ['unpackunorm2x3_5f1x2',['unpackUnorm2x3_1x2',['../a00298.html#ga6abd5a9014df3b5ce4059008d2491260',1,'glm']]], + ['unpackunorm2x4',['unpackUnorm2x4',['../a00298.html#ga2e50476132fe5f27f08e273d9c70d85b',1,'glm']]], + ['unpackunorm2x8',['unpackUnorm2x8',['../a00298.html#ga637cbe3913dd95c6e7b4c99c61bd611f',1,'glm']]], + ['unpackunorm3x10_5f1x2',['unpackUnorm3x10_1x2',['../a00298.html#ga5156d3060355fe332865da2c7f78815f',1,'glm']]], + ['unpackunorm3x5_5f1x1',['unpackUnorm3x5_1x1',['../a00298.html#ga5ff95ff5bc16f396432ab67243dbae4d',1,'glm']]], + ['unpackunorm4x16',['unpackUnorm4x16',['../a00298.html#ga2ae149c5d2473ac1e5f347bb654a242d',1,'glm']]], + ['unpackunorm4x4',['unpackUnorm4x4',['../a00298.html#gac58ee89d0e224bb6df5e8bbb18843a2d',1,'glm']]], + ['unpackunorm4x8',['unpackUnorm4x8',['../a00372.html#ga7f903259150b67e9466f5f8edffcd197',1,'glm']]], + ['unproject',['unProject',['../a00245.html#ga36641e5d60f994e01c3d8f56b10263d2',1,'glm']]], + ['unprojectno',['unProjectNO',['../a00245.html#gae089ba9fc150ff69c252a20e508857b5',1,'glm']]], + ['unprojectzo',['unProjectZO',['../a00245.html#gade5136413ce530f8e606124d570fba32',1,'glm']]], + ['uround',['uround',['../a00292.html#ga6715b9d573972a0f7763d30d45bcaec4',1,'glm']]], + ['usubborrow',['usubBorrow',['../a00370.html#gae3316ba1229ad9b9f09480833321b053',1,'glm']]], + ['uvec1',['uvec1',['../a00276.html#gac3bdd96183d23876c58a1424585fefe7',1,'glm']]], + ['uvec2',['uvec2',['../a00281.html#ga2f6d9ec3ae14813ade37d6aee3715fdb',1,'glm']]], + ['uvec3',['uvec3',['../a00281.html#ga3d3e55874babd4bf93baa7bbc83ae418',1,'glm']]], + ['uvec4',['uvec4',['../a00281.html#gaa57e96bb337867329d5f43bcc27c1095',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/all_13.html b/external/glm-0.9.9.8/doc/api/search/all_13.html similarity index 97% rename from external/glm/doc/api/search/all_13.html rename to external/glm-0.9.9.8/doc/api/search/all_13.html index cb938b9..f57925b 100644 --- a/external/glm/doc/api/search/all_13.html +++ b/external/glm-0.9.9.8/doc/api/search/all_13.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_13.js b/external/glm-0.9.9.8/doc/api/search/all_13.js new file mode 100644 index 0000000..f97cd79 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_13.js @@ -0,0 +1,62 @@ +var searchData= +[ + ['vector_20relational_20functions',['Vector Relational Functions',['../a00374.html',1,'']]], + ['vector_20types',['Vector types',['../a00281.html',1,'']]], + ['vector_20types_20with_20precision_20qualifiers',['Vector types with precision qualifiers',['../a00282.html',1,'']]], + ['value_5fptr',['value_ptr',['../a00305.html#ga1c64669e1ba1160ad9386e43dc57569a',1,'glm']]], + ['vec1',['vec1',['../a00270.html#gadfc071d934d8dae7955a1d530a3cf656',1,'glm']]], + ['vec1_2ehpp',['vec1.hpp',['../a00183.html',1,'']]], + ['vec2',['vec2',['../a00281.html#gabe65c061834f61b4f7cb6037b19006a4',1,'glm']]], + ['vec2_2ehpp',['vec2.hpp',['../a00184.html',1,'']]], + ['vec3',['vec3',['../a00281.html#ga9c3019b13faf179e4ad3626ea66df334',1,'glm']]], + ['vec3_2ehpp',['vec3.hpp',['../a00185.html',1,'']]], + ['vec4',['vec4',['../a00281.html#gac215a35481a6597d1bf622a382e9d6e2',1,'glm']]], + ['vec4_2ehpp',['vec4.hpp',['../a00186.html',1,'']]], + ['vec_5fswizzle_2ehpp',['vec_swizzle.hpp',['../a00187.html',1,'']]], + ['vector_5fangle_2ehpp',['vector_angle.hpp',['../a00188.html',1,'']]], + ['vector_5fbool1_2ehpp',['vector_bool1.hpp',['../a00189.html',1,'']]], + ['vector_5fbool1_5fprecision_2ehpp',['vector_bool1_precision.hpp',['../a00190.html',1,'']]], + ['vector_5fbool2_2ehpp',['vector_bool2.hpp',['../a00191.html',1,'']]], + ['vector_5fbool2_5fprecision_2ehpp',['vector_bool2_precision.hpp',['../a00192.html',1,'']]], + ['vector_5fbool3_2ehpp',['vector_bool3.hpp',['../a00193.html',1,'']]], + ['vector_5fbool3_5fprecision_2ehpp',['vector_bool3_precision.hpp',['../a00194.html',1,'']]], + ['vector_5fbool4_2ehpp',['vector_bool4.hpp',['../a00195.html',1,'']]], + ['vector_5fbool4_5fprecision_2ehpp',['vector_bool4_precision.hpp',['../a00196.html',1,'']]], + ['vector_5fcommon_2ehpp',['vector_common.hpp',['../a00197.html',1,'']]], + ['vector_5fdouble1_2ehpp',['vector_double1.hpp',['../a00198.html',1,'']]], + ['vector_5fdouble1_5fprecision_2ehpp',['vector_double1_precision.hpp',['../a00199.html',1,'']]], + ['vector_5fdouble2_2ehpp',['vector_double2.hpp',['../a00200.html',1,'']]], + ['vector_5fdouble2_5fprecision_2ehpp',['vector_double2_precision.hpp',['../a00201.html',1,'']]], + ['vector_5fdouble3_2ehpp',['vector_double3.hpp',['../a00202.html',1,'']]], + ['vector_5fdouble3_5fprecision_2ehpp',['vector_double3_precision.hpp',['../a00203.html',1,'']]], + ['vector_5fdouble4_2ehpp',['vector_double4.hpp',['../a00204.html',1,'']]], + ['vector_5fdouble4_5fprecision_2ehpp',['vector_double4_precision.hpp',['../a00205.html',1,'']]], + ['vector_5ffloat1_2ehpp',['vector_float1.hpp',['../a00206.html',1,'']]], + ['vector_5ffloat1_5fprecision_2ehpp',['vector_float1_precision.hpp',['../a00207.html',1,'']]], + ['vector_5ffloat2_2ehpp',['vector_float2.hpp',['../a00208.html',1,'']]], + ['vector_5ffloat2_5fprecision_2ehpp',['vector_float2_precision.hpp',['../a00209.html',1,'']]], + ['vector_5ffloat3_2ehpp',['vector_float3.hpp',['../a00210.html',1,'']]], + ['vector_5ffloat3_5fprecision_2ehpp',['vector_float3_precision.hpp',['../a00211.html',1,'']]], + ['vector_5ffloat4_2ehpp',['vector_float4.hpp',['../a00212.html',1,'']]], + ['vector_5ffloat4_5fprecision_2ehpp',['vector_float4_precision.hpp',['../a00213.html',1,'']]], + ['vector_5fint1_2ehpp',['vector_int1.hpp',['../a00214.html',1,'']]], + ['vector_5fint1_5fprecision_2ehpp',['vector_int1_precision.hpp',['../a00215.html',1,'']]], + ['vector_5fint2_2ehpp',['vector_int2.hpp',['../a00216.html',1,'']]], + ['vector_5fint2_5fprecision_2ehpp',['vector_int2_precision.hpp',['../a00217.html',1,'']]], + ['vector_5fint3_2ehpp',['vector_int3.hpp',['../a00218.html',1,'']]], + ['vector_5fint3_5fprecision_2ehpp',['vector_int3_precision.hpp',['../a00219.html',1,'']]], + ['vector_5fint4_2ehpp',['vector_int4.hpp',['../a00220.html',1,'']]], + ['vector_5fint4_5fprecision_2ehpp',['vector_int4_precision.hpp',['../a00221.html',1,'']]], + ['vector_5finteger_2ehpp',['vector_integer.hpp',['../a00222.html',1,'']]], + ['vector_5fquery_2ehpp',['vector_query.hpp',['../a00223.html',1,'']]], + ['vector_5frelational_2ehpp',['vector_relational.hpp',['../a00225.html',1,'']]], + ['vector_5fuint1_2ehpp',['vector_uint1.hpp',['../a00226.html',1,'']]], + ['vector_5fuint1_5fprecision_2ehpp',['vector_uint1_precision.hpp',['../a00227.html',1,'']]], + ['vector_5fuint2_2ehpp',['vector_uint2.hpp',['../a00228.html',1,'']]], + ['vector_5fuint2_5fprecision_2ehpp',['vector_uint2_precision.hpp',['../a00229.html',1,'']]], + ['vector_5fuint3_2ehpp',['vector_uint3.hpp',['../a00230.html',1,'']]], + ['vector_5fuint3_5fprecision_2ehpp',['vector_uint3_precision.hpp',['../a00231.html',1,'']]], + ['vector_5fuint4_2ehpp',['vector_uint4.hpp',['../a00232.html',1,'']]], + ['vector_5fuint4_5fprecision_2ehpp',['vector_uint4_precision.hpp',['../a00233.html',1,'']]], + ['vector_5fulp_2ehpp',['vector_ulp.hpp',['../a00234.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/all_14.html b/external/glm-0.9.9.8/doc/api/search/all_14.html similarity index 97% rename from external/glm/doc/api/search/all_14.html rename to external/glm-0.9.9.8/doc/api/search/all_14.html index 2fcfb13..570b65b 100644 --- a/external/glm/doc/api/search/all_14.html +++ b/external/glm-0.9.9.8/doc/api/search/all_14.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_14.js b/external/glm-0.9.9.8/doc/api/search/all_14.js new file mode 100644 index 0000000..0dd1d3c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_14.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['word',['word',['../a00354.html#ga16e9fea0ef1e6c4ef472d3d1731c49a5',1,'glm']]], + ['wrap_2ehpp',['wrap.hpp',['../a00235.html',1,'']]], + ['wrapangle',['wrapAngle',['../a00325.html#ga069527c6dbd64f53435b8ebc4878b473',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/all_15.html b/external/glm-0.9.9.8/doc/api/search/all_15.html similarity index 97% rename from external/glm/doc/api/search/all_15.html rename to external/glm-0.9.9.8/doc/api/search/all_15.html index a31c6e8..2a0c057 100644 --- a/external/glm/doc/api/search/all_15.html +++ b/external/glm-0.9.9.8/doc/api/search/all_15.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_15.js b/external/glm-0.9.9.8/doc/api/search/all_15.js new file mode 100644 index 0000000..41dca1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_15.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['yaw',['yaw',['../a00299.html#ga8da38cdfdc452dafa660c2f46506bad5',1,'glm']]], + ['yawpitchroll',['yawPitchRoll',['../a00319.html#gae6aa26ccb020d281b449619e419a609e',1,'glm']]], + ['ycocg2rgb',['YCoCg2rgb',['../a00313.html#ga163596b804c7241810b2534a99eb1343',1,'glm']]], + ['ycocgr2rgb',['YCoCgR2rgb',['../a00313.html#gaf8d30574c8576838097d8e20c295384a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/all_16.html b/external/glm-0.9.9.8/doc/api/search/all_16.html similarity index 97% rename from external/glm/doc/api/search/all_16.html rename to external/glm-0.9.9.8/doc/api/search/all_16.html index 6343dec..338203e 100644 --- a/external/glm/doc/api/search/all_16.html +++ b/external/glm-0.9.9.8/doc/api/search/all_16.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_16.js b/external/glm-0.9.9.8/doc/api/search/all_16.js new file mode 100644 index 0000000..0d51cc5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_16.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['zero',['zero',['../a00290.html#ga788f5a421fc0f40a1296ebc094cbaa8a',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_2.html b/external/glm-0.9.9.8/doc/api/search/all_2.html new file mode 100644 index 0000000..9786ba6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_2.js b/external/glm-0.9.9.8/doc/api/search/all_2.js new file mode 100644 index 0000000..47dd6c5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_2.js @@ -0,0 +1,51 @@ +var searchData= +[ + ['catmullrom',['catmullRom',['../a00358.html#ga8119c04f8210fd0d292757565cd6918d',1,'glm']]], + ['ceil',['ceil',['../a00241.html#gafb9d2a645a23aca12d4d6de0104b7657',1,'glm']]], + ['ceilmultiple',['ceilMultiple',['../a00302.html#ga1d89ac88582aaf4d5dfa5feb4a376fd4',1,'glm::ceilMultiple(genType v, genType Multiple)'],['../a00302.html#gab77fdcc13f8e92d2e0b1b7d7aeab8e9d',1,'glm::ceilMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['ceilpoweroftwo',['ceilPowerOfTwo',['../a00302.html#ga5c3ef36ae32aa4271f1544f92bd578b6',1,'glm::ceilPowerOfTwo(genIUType v)'],['../a00302.html#gab53d4a97c0d3e297be5f693cdfdfe5d2',1,'glm::ceilPowerOfTwo(vec< L, T, Q > const &v)']]], + ['circulareasein',['circularEaseIn',['../a00318.html#ga34508d4b204a321ec26d6086aa047997',1,'glm']]], + ['circulareaseinout',['circularEaseInOut',['../a00318.html#ga0c1027637a5b02d4bb3612aa12599d69',1,'glm']]], + ['circulareaseout',['circularEaseOut',['../a00318.html#ga26fefde9ced9b72745fe21f1a3fe8da7',1,'glm']]], + ['circularrand',['circularRand',['../a00300.html#ga9dd05c36025088fae25b97c869e88517',1,'glm']]], + ['clamp',['clamp',['../a00241.html#ga7cd77683da6361e297c56443fc70806d',1,'glm::clamp(genType x, genType minVal, genType maxVal)'],['../a00241.html#gafba2e0674deb5953878d89483cd6323d',1,'glm::clamp(vec< L, T, Q > const &x, T minVal, T maxVal)'],['../a00241.html#gaa0f2f12e9108b09e22a3f0b2008a0b5d',1,'glm::clamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)'],['../a00369.html#ga6c0cc6bd1d67ea1008d2592e998bad33',1,'glm::clamp(genType const &Texcoord)']]], + ['closebounded',['closeBounded',['../a00314.html#gab7d89c14c48ad01f720fb5daf8813161',1,'glm']]], + ['closest_5fpoint_2ehpp',['closest_point.hpp',['../a00010.html',1,'']]], + ['closestpointonline',['closestPointOnLine',['../a00310.html#ga36529c278ef716986151d58d151d697d',1,'glm::closestPointOnLine(vec< 3, T, Q > const &point, vec< 3, T, Q > const &a, vec< 3, T, Q > const &b)'],['../a00310.html#ga55bcbcc5fc06cb7ff7bc7a6e0e155eb0',1,'glm::closestPointOnLine(vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)']]], + ['colmajor2',['colMajor2',['../a00338.html#gaaff72f11286e59a4a88ed21a347f284c',1,'glm::colMajor2(vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)'],['../a00338.html#gafc25fd44196c92b1397b127aec1281ab',1,'glm::colMajor2(mat< 2, 2, T, Q > const &m)']]], + ['colmajor3',['colMajor3',['../a00338.html#ga1e25b72b085087740c92f5c70f3b051f',1,'glm::colMajor3(vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)'],['../a00338.html#ga86bd0656e787bb7f217607572590af27',1,'glm::colMajor3(mat< 3, 3, T, Q > const &m)']]], + ['colmajor4',['colMajor4',['../a00338.html#gaf4aa6c7e17bfce41a6c13bf6469fab05',1,'glm::colMajor4(vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)'],['../a00338.html#gaf3f9511c366c20ba2e4a64c9e4cec2b3',1,'glm::colMajor4(mat< 4, 4, T, Q > const &m)']]], + ['color_5fencoding_2ehpp',['color_encoding.hpp',['../a00011.html',1,'']]], + ['color_5fspace_5fycocg_2ehpp',['color_space_YCoCg.hpp',['../a00014.html',1,'']]], + ['column',['column',['../a00293.html#ga96022eb0d3fae39d89fc7a954e59b374',1,'glm::column(genType const &m, length_t index)'],['../a00293.html#ga9e757377523890e8b80c5843dbe4dd15',1,'glm::column(genType const &m, length_t index, typename genType::col_type const &x)']]], + ['common_2ehpp',['common.hpp',['../a00015.html',1,'']]], + ['compadd',['compAdd',['../a00316.html#gaf71833350e15e74d31cbf8a3e7f27051',1,'glm']]], + ['compatibility_2ehpp',['compatibility.hpp',['../a00017.html',1,'']]], + ['compmax',['compMax',['../a00316.html#gabfa4bb19298c8c73d4217ba759c496b6',1,'glm']]], + ['compmin',['compMin',['../a00316.html#gab5d0832b5c7bb01b8d7395973bfb1425',1,'glm']]], + ['compmul',['compMul',['../a00316.html#gae8ab88024197202c9479d33bdc5a8a5d',1,'glm']]], + ['compnormalize',['compNormalize',['../a00316.html#ga8f2b81ada8515875e58cb1667b6b9908',1,'glm']]], + ['component_5fwise_2ehpp',['component_wise.hpp',['../a00018.html',1,'']]], + ['compscale',['compScale',['../a00316.html#ga80abc2980d65d675f435d178c36880eb',1,'glm']]], + ['conjugate',['conjugate',['../a00248.html#ga10d7bda73201788ac2ab28cd8d0d409b',1,'glm']]], + ['constants_2ehpp',['constants.hpp',['../a00021.html',1,'']]], + ['convertd65xyztod50xyz',['convertD65XYZToD50XYZ',['../a00311.html#gad12f4f65022b2c80e33fcba2ced0dc48',1,'glm']]], + ['convertd65xyztolinearsrgb',['convertD65XYZToLinearSRGB',['../a00311.html#ga5265386fc3ac29e4c580d37ed470859c',1,'glm']]], + ['convertlinearsrgbtod50xyz',['convertLinearSRGBToD50XYZ',['../a00311.html#ga1522ba180e3d83d554a734056da031f9',1,'glm']]], + ['convertlinearsrgbtod65xyz',['convertLinearSRGBToD65XYZ',['../a00311.html#gaf9e130d9d4ccf51cc99317de7449f369',1,'glm']]], + ['convertlineartosrgb',['convertLinearToSRGB',['../a00289.html#ga42239e7b3da900f7ef37cec7e2476579',1,'glm::convertLinearToSRGB(vec< L, T, Q > const &ColorLinear)'],['../a00289.html#gaace0a21167d13d26116c283009af57f6',1,'glm::convertLinearToSRGB(vec< L, T, Q > const &ColorLinear, T Gamma)']]], + ['convertsrgbtolinear',['convertSRGBToLinear',['../a00289.html#ga16c798b7a226b2c3079dedc55083d187',1,'glm::convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB)'],['../a00289.html#gad1b91f27a9726c9cb403f9fee6e2e200',1,'glm::convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB, T Gamma)']]], + ['core_20features',['Core features',['../a00280.html',1,'']]], + ['common_20functions',['Common functions',['../a00241.html',1,'']]], + ['cos',['cos',['../a00373.html#ga6a41efc740e3b3c937447d3a6284130e',1,'glm']]], + ['cosh',['cosh',['../a00373.html#ga4e260e372742c5f517aca196cf1e62b3',1,'glm']]], + ['cot',['cot',['../a00301.html#ga3a7b517a95bbd3ad74da3aea87a66314',1,'glm']]], + ['coth',['coth',['../a00301.html#ga6b8b770eb7198e4dea59d52e6db81442',1,'glm']]], + ['cross',['cross',['../a00254.html#ga755beaa929c75751dee646cccba37e4c',1,'glm::cross(qua< T, Q > const &q1, qua< T, Q > const &q2)'],['../a00279.html#gaeeec0794212fe84fc9d261de067c9587',1,'glm::cross(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00322.html#gac36e72b934ea6a9dd313772d7e78fa93',1,'glm::cross(vec< 2, T, Q > const &v, vec< 2, T, Q > const &u)'],['../a00352.html#ga2f32f970411c44cdd38bb98960198385',1,'glm::cross(qua< T, Q > const &q, vec< 3, T, Q > const &v)'],['../a00352.html#ga9f5f77255756e5668dfee7f0d07ed021',1,'glm::cross(vec< 3, T, Q > const &v, qua< T, Q > const &q)']]], + ['csc',['csc',['../a00301.html#ga59dd0005b6474eea48af743b4f14ebbb',1,'glm']]], + ['csch',['csch',['../a00301.html#ga6d95843ff3ca6472ab399ba171d290a0',1,'glm']]], + ['cubic',['cubic',['../a00358.html#ga6b867eb52e2fc933d2e0bf26aabc9a70',1,'glm']]], + ['cubiceasein',['cubicEaseIn',['../a00318.html#gaff52f746102b94864d105563ba8895ae',1,'glm']]], + ['cubiceaseinout',['cubicEaseInOut',['../a00318.html#ga55134072b42d75452189321d4a2ad91c',1,'glm']]], + ['cubiceaseout',['cubicEaseOut',['../a00318.html#ga40d746385d8bcc5973f5bc6a2340ca91',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_3.html b/external/glm-0.9.9.8/doc/api/search/all_3.html new file mode 100644 index 0000000..e85b95c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_3.js b/external/glm-0.9.9.8/doc/api/search/all_3.js new file mode 100644 index 0000000..e399624 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_3.js @@ -0,0 +1,59 @@ +var searchData= +[ + ['ddualquat',['ddualquat',['../a00317.html#ga3d71f98d84ba59dfe4e369fde4714cd6',1,'glm']]], + ['decompose',['decompose',['../a00335.html#gac0e342656ba09a9bc97c57182ba73124',1,'glm']]], + ['degrees',['degrees',['../a00373.html#ga8faec9e303538065911ba8b3caf7326b',1,'glm']]], + ['derivedeuleranglex',['derivedEulerAngleX',['../a00319.html#ga994b8186b3b80d91cf90bc403164692f',1,'glm']]], + ['derivedeulerangley',['derivedEulerAngleY',['../a00319.html#ga0a4c56ecce7abcb69508ebe6313e9d10',1,'glm']]], + ['derivedeuleranglez',['derivedEulerAngleZ',['../a00319.html#gae8b397348201c42667be983ba3f344df',1,'glm']]], + ['determinant',['determinant',['../a00371.html#gad7928795124768e058f99dce270f5c8d',1,'glm']]], + ['diagonal2x2',['diagonal2x2',['../a00339.html#ga58a32a2beeb2478dae2a721368cdd4ac',1,'glm']]], + ['diagonal2x3',['diagonal2x3',['../a00339.html#gab69f900206a430e2875a5a073851e175',1,'glm']]], + ['diagonal2x4',['diagonal2x4',['../a00339.html#ga30b4dbfed60a919d66acc8a63bcdc549',1,'glm']]], + ['diagonal3x2',['diagonal3x2',['../a00339.html#ga832c805d5130d28ad76236958d15b47d',1,'glm']]], + ['diagonal3x3',['diagonal3x3',['../a00339.html#ga5487ff9cdbc8e04d594adef1bcb16ee0',1,'glm']]], + ['diagonal3x4',['diagonal3x4',['../a00339.html#gad7551139cff0c4208d27f0ad3437833e',1,'glm']]], + ['diagonal4x2',['diagonal4x2',['../a00339.html#gacb8969e6543ba775c6638161a37ac330',1,'glm']]], + ['diagonal4x3',['diagonal4x3',['../a00339.html#gae235def5049d6740f0028433f5e13f90',1,'glm']]], + ['diagonal4x4',['diagonal4x4',['../a00339.html#ga0b4cd8dea436791b072356231ee8578f',1,'glm']]], + ['diskrand',['diskRand',['../a00300.html#gaa0b18071f3f97dbf8bcf6f53c6fe5f73',1,'glm']]], + ['distance',['distance',['../a00279.html#gaa68de6c53e20dfb2dac2d20197562e3f',1,'glm']]], + ['distance2',['distance2',['../a00343.html#ga85660f1b79f66c09c7b5a6f80e68c89f',1,'glm']]], + ['dmat2',['dmat2',['../a00283.html#ga21dbd1f987775d7cc7607c139531c7e6',1,'glm']]], + ['dmat2x2',['dmat2x2',['../a00283.html#ga66b6a9af787e468a46dfe24189e87f9b',1,'glm']]], + ['dmat2x3',['dmat2x3',['../a00283.html#ga92cd388753d48e20de69ea2dbedf826a',1,'glm']]], + ['dmat2x4',['dmat2x4',['../a00283.html#gaef2198807e937072803ae0ae45e1965e',1,'glm']]], + ['dmat3',['dmat3',['../a00283.html#ga6f40aa56265b4b0ccad41b86802efe33',1,'glm']]], + ['dmat3x2',['dmat3x2',['../a00283.html#ga001e3e0638fbf8719788fc64c5b8cf39',1,'glm']]], + ['dmat3x3',['dmat3x3',['../a00283.html#ga970cb3306be25a5ca5db5a9456831228',1,'glm']]], + ['dmat3x4',['dmat3x4',['../a00283.html#ga0412a634d183587e6188e9b11869f8f4',1,'glm']]], + ['dmat4',['dmat4',['../a00283.html#ga0f34486bb7fec8e5a5b3830b6a6cbeca',1,'glm']]], + ['dmat4x2',['dmat4x2',['../a00283.html#ga9bc0b3ab8b6ba2cb6782e179ad7ad156',1,'glm']]], + ['dmat4x3',['dmat4x3',['../a00283.html#gacd18864049f8c83799babe7e596ca05b',1,'glm']]], + ['dmat4x4',['dmat4x4',['../a00283.html#gad5a6484b983b74f9d801cab8bc4e6a10',1,'glm']]], + ['dot',['dot',['../a00254.html#ga84865a56acb8fbd7bc4f5c0b928e3cfc',1,'glm::dot(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00279.html#gaad6c5d9d39bdc0bf43baf1b22e147a0a',1,'glm::dot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['double1',['double1',['../a00315.html#ga20b861a9b6e2a300323671c57a02525b',1,'glm']]], + ['double1x1',['double1x1',['../a00315.html#ga45f16a4dd0db1f199afaed9fd12fe9a8',1,'glm']]], + ['double2',['double2',['../a00315.html#ga31b729b04facccda73f07ed26958b3c2',1,'glm']]], + ['double2x2',['double2x2',['../a00315.html#gae57d0201096834d25f2b91b319e7cdbd',1,'glm']]], + ['double2x3',['double2x3',['../a00315.html#ga3655bc324008553ca61f39952d0b2d08',1,'glm']]], + ['double2x4',['double2x4',['../a00315.html#gacd33061fc64a7b2dcfd7322c49d9557a',1,'glm']]], + ['double3',['double3',['../a00315.html#ga3d8b9028a1053a44a98902cd1c389472',1,'glm']]], + ['double3x2',['double3x2',['../a00315.html#ga5ec08fc39c9d783dfcc488be240fe975',1,'glm']]], + ['double3x3',['double3x3',['../a00315.html#ga4bad5bb20c6ddaecfe4006c93841d180',1,'glm']]], + ['double3x4',['double3x4',['../a00315.html#ga2ef022e453d663d70aec414b2a80f756',1,'glm']]], + ['double4',['double4',['../a00315.html#gaf92f58af24f35617518aeb3d4f63fda6',1,'glm']]], + ['double4x2',['double4x2',['../a00315.html#gabca29ccceea53669618b751aae0ba83d',1,'glm']]], + ['double4x3',['double4x3',['../a00315.html#gafad66a02ccd360c86d6ab9ff9cfbc19c',1,'glm']]], + ['double4x4',['double4x4',['../a00315.html#gaab541bed2e788e4537852a2492860806',1,'glm']]], + ['dquat',['dquat',['../a00249.html#ga1181459aa5d640a3ea43861b118f3f0b',1,'glm']]], + ['dual_5fquat_5fidentity',['dual_quat_identity',['../a00317.html#ga0b35c0e30df8a875dbaa751e0bd800e0',1,'glm']]], + ['dual_5fquaternion_2ehpp',['dual_quaternion.hpp',['../a00022.html',1,'']]], + ['dualquat',['dualquat',['../a00317.html#gae93abee0c979902fbec6a7bee0f6fae1',1,'glm']]], + ['dualquat_5fcast',['dualquat_cast',['../a00317.html#gac4064ff813759740201765350eac4236',1,'glm::dualquat_cast(mat< 2, 4, T, Q > const &x)'],['../a00317.html#ga91025ebdca0f4ea54da08497b00e8c84',1,'glm::dualquat_cast(mat< 3, 4, T, Q > const &x)']]], + ['dvec1',['dvec1',['../a00268.html#ga6221af17edc2d4477a4583d2cd53e569',1,'glm']]], + ['dvec2',['dvec2',['../a00281.html#ga8b09c71aaac7da7867ae58377fe219a8',1,'glm']]], + ['dvec3',['dvec3',['../a00281.html#ga5b83ae3d0fdec519c038e4d2cf967cf0',1,'glm']]], + ['dvec4',['dvec4',['../a00281.html#ga57debab5d98ce618f7b2a97fe26eb3ac',1,'glm']]], + ['dword',['dword',['../a00354.html#ga86e46fff9f80ae33893d8d697f2ca98a',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_4.html b/external/glm-0.9.9.8/doc/api/search/all_4.html new file mode 100644 index 0000000..7fcb91e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_4.js b/external/glm-0.9.9.8/doc/api/search/all_4.js new file mode 100644 index 0000000..95d4ed3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_4.js @@ -0,0 +1,68 @@ +var searchData= +[ + ['exponential_20functions',['Exponential functions',['../a00242.html',1,'']]], + ['e',['e',['../a00290.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139',1,'glm']]], + ['easing_2ehpp',['easing.hpp',['../a00023.html',1,'']]], + ['elasticeasein',['elasticEaseIn',['../a00318.html#ga230918eccee4e113d10ec5b8cdc58695',1,'glm']]], + ['elasticeaseinout',['elasticEaseInOut',['../a00318.html#ga2db4ac8959559b11b4029e54812908d6',1,'glm']]], + ['elasticeaseout',['elasticEaseOut',['../a00318.html#gace9c9d1bdf88bf2ab1e7cdefa54c7365',1,'glm']]], + ['epsilon',['epsilon',['../a00259.html#ga2a1e57fc5592b69cfae84174cbfc9429',1,'glm']]], + ['epsilon_2ehpp',['epsilon.hpp',['../a00024.html',1,'']]], + ['epsilonequal',['epsilonEqual',['../a00291.html#ga91b417866cafadd076004778217a1844',1,'glm::epsilonEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)'],['../a00291.html#gaa7f227999ca09e7ca994e8b35aba47bb',1,'glm::epsilonEqual(genType const &x, genType const &y, genType const &epsilon)']]], + ['epsilonnotequal',['epsilonNotEqual',['../a00291.html#gaf840d33b9a5261ec78dcd5125743b025',1,'glm::epsilonNotEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)'],['../a00291.html#ga50a92103fb0cbd796908e1bf20c79aaf',1,'glm::epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)']]], + ['equal',['equal',['../a00246.html#ga27e90dcb7941c9b70e295dc3f6f6369f',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)'],['../a00246.html#gaf5d687d70d11708b68c36c6db5777040',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)'],['../a00246.html#gafa6a053e81179fa4292b35651c83c3fb',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)'],['../a00246.html#gab3a93f19e72e9141f50527c9de21d0c0',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)'],['../a00246.html#ga5305af376173f1902719fa309bbae671',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)'],['../a00255.html#gad7827af0549504ff1cd6a359786acc7a',1,'glm::equal(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00255.html#gaa001eecb91106463169a8e5ef1577b39',1,'glm::equal(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)'],['../a00275.html#ga2ac7651a2fa7354f2da610dbd50d28e2',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)'],['../a00275.html#ga37d261a65f69babc82cec2ae1af7145f',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)'],['../a00275.html#ga2b46cb50911e97b32f4cd743c2c69771',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)'],['../a00275.html#ga7da2b8605be7f245b39cb6fbf6d9d581',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)'],['../a00374.html#gab4c5cfdaa70834421397a85aa83ad946',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['euclidean',['euclidean',['../a00350.html#ga1821d5b3324201e60a9e2823d0b5d0c8',1,'glm']]], + ['euler',['euler',['../a00290.html#gad8fe2e6f90bce9d829e9723b649fbd42',1,'glm']]], + ['euler_5fangles_2ehpp',['euler_angles.hpp',['../a00025.html',1,'']]], + ['eulerangles',['eulerAngles',['../a00299.html#gaf4dd967dead22dd932fc7460ceecb03f',1,'glm']]], + ['euleranglex',['eulerAngleX',['../a00319.html#gafba6282e4ed3ff8b5c75331abfba3489',1,'glm']]], + ['euleranglexy',['eulerAngleXY',['../a00319.html#ga64036577ee17a2d24be0dbc05881d4e2',1,'glm']]], + ['euleranglexyx',['eulerAngleXYX',['../a00319.html#ga29bd0787a28a6648159c0d6e69706066',1,'glm']]], + ['euleranglexyz',['eulerAngleXYZ',['../a00319.html#ga1975e0f0e9bed7f716dc9946da2ab645',1,'glm']]], + ['euleranglexz',['eulerAngleXZ',['../a00319.html#gaa39bd323c65c2fc0a1508be33a237ce9',1,'glm']]], + ['euleranglexzx',['eulerAngleXZX',['../a00319.html#ga60171c79a17aec85d7891ae1d1533ec9',1,'glm']]], + ['euleranglexzy',['eulerAngleXZY',['../a00319.html#ga996dce12a60d8a674ba6737a535fa910',1,'glm']]], + ['eulerangley',['eulerAngleY',['../a00319.html#gab84bf4746805fd69b8ecbb230e3974c5',1,'glm']]], + ['eulerangleyx',['eulerAngleYX',['../a00319.html#ga4f57e6dd25c3cffbbd4daa6ef3f4486d',1,'glm']]], + ['eulerangleyxy',['eulerAngleYXY',['../a00319.html#ga750fba9894117f87bcc529d7349d11de',1,'glm']]], + ['eulerangleyxz',['eulerAngleYXZ',['../a00319.html#gab8ba99a9814f6d9edf417b6c6d5b0c10',1,'glm']]], + ['eulerangleyz',['eulerAngleYZ',['../a00319.html#ga220379e10ac8cca55e275f0c9018fed9',1,'glm']]], + ['eulerangleyzx',['eulerAngleYZX',['../a00319.html#ga08bef16357b8f9b3051b3dcaec4b7848',1,'glm']]], + ['eulerangleyzy',['eulerAngleYZY',['../a00319.html#ga5e5e40abc27630749b42b3327c76d6e4',1,'glm']]], + ['euleranglez',['eulerAngleZ',['../a00319.html#ga5b3935248bb6c3ec6b0d9297d406e251',1,'glm']]], + ['euleranglezx',['eulerAngleZX',['../a00319.html#ga483903115cd4059228961046a28d69b5',1,'glm']]], + ['euleranglezxy',['eulerAngleZXY',['../a00319.html#gab4505c54d2dd654df4569fd1f04c43aa',1,'glm']]], + ['euleranglezxz',['eulerAngleZXZ',['../a00319.html#ga178f966c52b01e4d65e31ebd007e3247',1,'glm']]], + ['euleranglezy',['eulerAngleZY',['../a00319.html#ga400b2bd5984999efab663f3a68e1d020',1,'glm']]], + ['euleranglezyx',['eulerAngleZYX',['../a00319.html#ga2e61f1e39069c47530acab9167852dd6',1,'glm']]], + ['euleranglezyz',['eulerAngleZYZ',['../a00319.html#gacd795f1dbecaf74974f9c76bbcca6830',1,'glm']]], + ['exp',['exp',['../a00242.html#ga071566cadc7505455e611f2a0353f4d4',1,'glm::exp(vec< L, T, Q > const &v)'],['../a00256.html#gaab2d37ef7265819f1d2939b9dc2c52ac',1,'glm::exp(qua< T, Q > const &q)']]], + ['exp2',['exp2',['../a00242.html#gaff17ace6b579a03bf223ed4d1ed2cd16',1,'glm']]], + ['exponential_2ehpp',['exponential.hpp',['../a00026.html',1,'']]], + ['exponentialeasein',['exponentialEaseIn',['../a00318.html#ga7f24ee9219ab4c84dc8de24be84c1e3c',1,'glm']]], + ['exponentialeaseinout',['exponentialEaseInOut',['../a00318.html#ga232fb6dc093c5ce94bee105ff2947501',1,'glm']]], + ['exponentialeaseout',['exponentialEaseOut',['../a00318.html#ga517f2bcfd15bc2c25c466ae50808efc3',1,'glm']]], + ['ext_2ehpp',['ext.hpp',['../a00027.html',1,'']]], + ['extend',['extend',['../a00320.html#ga8140caae613b0f847ab0d7175dc03a37',1,'glm']]], + ['extend_2ehpp',['extend.hpp',['../a00028.html',1,'']]], + ['extended_5fmin_5fmax_2ehpp',['extended_min_max.hpp',['../a00029.html',1,'']]], + ['exterior_5fproduct_2ehpp',['exterior_product.hpp',['../a00030.html',1,'']]], + ['extracteuleranglexyx',['extractEulerAngleXYX',['../a00319.html#gaf1077a72171d0f3b08f022ab5ff88af7',1,'glm']]], + ['extracteuleranglexyz',['extractEulerAngleXYZ',['../a00319.html#gacea701562f778c1da4d3a0a1cf091000',1,'glm']]], + ['extracteuleranglexzx',['extractEulerAngleXZX',['../a00319.html#gacf0bc6c031f25fa3ee0055b62c8260d0',1,'glm']]], + ['extracteuleranglexzy',['extractEulerAngleXZY',['../a00319.html#gabe5a65d8eb1cd873c8de121cce1a15ed',1,'glm']]], + ['extracteulerangleyxy',['extractEulerAngleYXY',['../a00319.html#gaab8868556361a190db94374e9983ed39',1,'glm']]], + ['extracteulerangleyxz',['extractEulerAngleYXZ',['../a00319.html#gaf0937518e63037335a0e8358b6f053c5',1,'glm']]], + ['extracteulerangleyzx',['extractEulerAngleYZX',['../a00319.html#ga9049b78466796c0de2971756e25b93d3',1,'glm']]], + ['extracteulerangleyzy',['extractEulerAngleYZY',['../a00319.html#ga11dad972c109e4bf8694c915017c44a6',1,'glm']]], + ['extracteuleranglezxy',['extractEulerAngleZXY',['../a00319.html#ga81fbbca2ba0c778b9662d5355b4e2363',1,'glm']]], + ['extracteuleranglezxz',['extractEulerAngleZXZ',['../a00319.html#ga59359fef9bad92afaca55e193f91e702',1,'glm']]], + ['extracteuleranglezyx',['extractEulerAngleZYX',['../a00319.html#ga2d6c11a4abfa60c565483cee2d3f7665',1,'glm']]], + ['extracteuleranglezyz',['extractEulerAngleZYZ',['../a00319.html#gafdfa880a64b565223550c2d3938b1aeb',1,'glm']]], + ['extractmatrixrotation',['extractMatrixRotation',['../a00337.html#gabbc1c7385a145f04b5c54228965df145',1,'glm']]], + ['extractrealcomponent',['extractRealComponent',['../a00352.html#ga321953c1b2e7befe6f5dcfddbfc6b76b',1,'glm']]], + ['experimental_20extensions',['Experimental extensions',['../a00287.html',1,'']]], + ['matrix_5ftransform_2ehpp',['matrix_transform.hpp',['../a00108.html',1,'']]], + ['scalar_5frelational_2ehpp',['scalar_relational.hpp',['../a00149.html',1,'']]], + ['vector_5frelational_2ehpp',['vector_relational.hpp',['../a00224.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_5.html b/external/glm-0.9.9.8/doc/api/search/all_5.html new file mode 100644 index 0000000..d7ed274 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_5.js b/external/glm-0.9.9.8/doc/api/search/all_5.js new file mode 100644 index 0000000..799f3c9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_5.js @@ -0,0 +1,131 @@ +var searchData= +[ + ['floating_2dpoint_20pack_20and_20unpack_20functions',['Floating-Point Pack and Unpack Functions',['../a00372.html',1,'']]], + ['f32',['f32',['../a00304.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7',1,'glm']]], + ['f32mat1',['f32mat1',['../a00346.html#ga145ad477a2a3e152855511c3b52469a6',1,'glm::gtx']]], + ['f32mat1x1',['f32mat1x1',['../a00346.html#gac88c6a4dbfc380aa26e3adbbade36348',1,'glm::gtx']]], + ['f32mat2',['f32mat2',['../a00304.html#gab12383ed6ac7595ed6fde4d266c58425',1,'glm']]], + ['f32mat2x2',['f32mat2x2',['../a00304.html#ga04100c76f7d55a0dd0983ccf05142bff',1,'glm']]], + ['f32mat2x3',['f32mat2x3',['../a00304.html#gab256cdab5eb582e426d749ae77b5b566',1,'glm']]], + ['f32mat2x4',['f32mat2x4',['../a00304.html#gaf512b74c4400b68f9fdf9388b3d6aac8',1,'glm']]], + ['f32mat3',['f32mat3',['../a00304.html#ga856f3905ee7cc2e4890a8a1d56c150be',1,'glm']]], + ['f32mat3x2',['f32mat3x2',['../a00304.html#ga1320a08e14fdff3821241eefab6947e9',1,'glm']]], + ['f32mat3x3',['f32mat3x3',['../a00304.html#ga65261fa8a21045c8646ddff114a56174',1,'glm']]], + ['f32mat3x4',['f32mat3x4',['../a00304.html#gab90ade28222f8b861d5ceaf81a3a7f5d',1,'glm']]], + ['f32mat4',['f32mat4',['../a00304.html#ga99d1b85ff99956b33da7e9992aad129a',1,'glm']]], + ['f32mat4x2',['f32mat4x2',['../a00304.html#ga3b32ca1e57a4ef91babbc3d35a34ea20',1,'glm']]], + ['f32mat4x3',['f32mat4x3',['../a00304.html#ga239b96198771b7add8eea7e6b59840c0',1,'glm']]], + ['f32mat4x4',['f32mat4x4',['../a00304.html#gaee4da0e9fbd8cfa2f89cb80889719dc3',1,'glm']]], + ['f32quat',['f32quat',['../a00304.html#ga38e674196ba411d642be40c47bf33939',1,'glm']]], + ['f32vec1',['f32vec1',['../a00304.html#ga701f32ab5b3fb06996b41f5c0d643805',1,'glm::f32vec1()'],['../a00346.html#ga07f8d7348eb7ae059a84c118fdfeb943',1,'glm::gtx::f32vec1()']]], + ['f32vec2',['f32vec2',['../a00304.html#ga5d6c70e080409a76a257dc55bd8ea2c8',1,'glm']]], + ['f32vec3',['f32vec3',['../a00304.html#gaea5c4518e175162e306d2c2b5ef5ac79',1,'glm']]], + ['f32vec4',['f32vec4',['../a00304.html#ga31c6ca0e074a44007f49a9a3720b18c8',1,'glm']]], + ['f64',['f64',['../a00304.html#ga1d794d240091678f602e8de225b8d8c9',1,'glm']]], + ['f64mat1',['f64mat1',['../a00346.html#ga59bfa589419b5265d01314fcecd33435',1,'glm::gtx']]], + ['f64mat1x1',['f64mat1x1',['../a00346.html#ga448eeb08d0b7d8c43a8b292c981955fd',1,'glm::gtx']]], + ['f64mat2',['f64mat2',['../a00304.html#gad9771450a54785d13080cdde0fe20c1d',1,'glm']]], + ['f64mat2x2',['f64mat2x2',['../a00304.html#ga9ec7c4c79e303c053e30729a95fb2c37',1,'glm']]], + ['f64mat2x3',['f64mat2x3',['../a00304.html#gae3ab5719fc4c1e966631dbbcba8d412a',1,'glm']]], + ['f64mat2x4',['f64mat2x4',['../a00304.html#gac87278e0c702ba8afff76316d4eeb769',1,'glm']]], + ['f64mat3',['f64mat3',['../a00304.html#ga9b69181efbf8f37ae934f135137b29c0',1,'glm']]], + ['f64mat3x2',['f64mat3x2',['../a00304.html#ga2473d8bf3f4abf967c4d0e18175be6f7',1,'glm']]], + ['f64mat3x3',['f64mat3x3',['../a00304.html#ga916c1aed91cf91f7b41399ebe7c6e185',1,'glm']]], + ['f64mat3x4',['f64mat3x4',['../a00304.html#gaab239fa9e35b65a67cbaa6ac082f3675',1,'glm']]], + ['f64mat4',['f64mat4',['../a00304.html#ga0ecd3f4952536e5ef12702b44d2626fc',1,'glm']]], + ['f64mat4x2',['f64mat4x2',['../a00304.html#gab7daf79d6bc06a68bea1c6f5e11b5512',1,'glm']]], + ['f64mat4x3',['f64mat4x3',['../a00304.html#ga3e2e66ffbe341a80bc005ba2b9552110',1,'glm']]], + ['f64mat4x4',['f64mat4x4',['../a00304.html#gae52e2b7077a9ff928a06ab5ce600b81e',1,'glm']]], + ['f64quat',['f64quat',['../a00304.html#ga2b114a2f2af0fe1dfeb569c767822940',1,'glm']]], + ['f64vec1',['f64vec1',['../a00304.html#gade502df1ce14f837fae7f60a03ddb9b0',1,'glm::f64vec1()'],['../a00346.html#gae5987a61b8c03d5c432a9e62f0b3efe1',1,'glm::gtx::f64vec1()']]], + ['f64vec2',['f64vec2',['../a00304.html#gadc4e1594f9555d919131ee02b17822a2',1,'glm']]], + ['f64vec3',['f64vec3',['../a00304.html#gaa7a1ddca75c5f629173bf4772db7a635',1,'glm']]], + ['f64vec4',['f64vec4',['../a00304.html#ga66e92e57260bdb910609b9a56bf83e97',1,'glm']]], + ['faceforward',['faceforward',['../a00279.html#ga7aed0a36c738169402404a3a5d54e43b',1,'glm']]], + ['factorial',['factorial',['../a00330.html#ga8cbd3120905f398ec321b5d1836e08fb',1,'glm']]], + ['fast_5fexponential_2ehpp',['fast_exponential.hpp',['../a00031.html',1,'']]], + ['fast_5fsquare_5froot_2ehpp',['fast_square_root.hpp',['../a00032.html',1,'']]], + ['fast_5ftrigonometry_2ehpp',['fast_trigonometry.hpp',['../a00033.html',1,'']]], + ['fastacos',['fastAcos',['../a00325.html#ga9721d63356e5d94fdc4b393a426ab26b',1,'glm']]], + ['fastasin',['fastAsin',['../a00325.html#ga562cb62c51fbfe7fac7db0bce706b81f',1,'glm']]], + ['fastatan',['fastAtan',['../a00325.html#ga8d197c6ef564f5e5d59af3b3f8adcc2c',1,'glm::fastAtan(T y, T x)'],['../a00325.html#gae25de86a968490ff56856fa425ec9d30',1,'glm::fastAtan(T angle)']]], + ['fastcos',['fastCos',['../a00325.html#gab34c8b45c23c0165a64dcecfcc3b302a',1,'glm']]], + ['fastdistance',['fastDistance',['../a00324.html#gaac333418d0c4e0cc6d3d219ed606c238',1,'glm::fastDistance(genType x, genType y)'],['../a00324.html#ga42d3e771fa7cb3c60d828e315829df19',1,'glm::fastDistance(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['fastexp',['fastExp',['../a00323.html#gaa3180ac8f96ab37ab96e0cacaf608e10',1,'glm::fastExp(T x)'],['../a00323.html#ga3ba6153aec6bd74628f8b00530aa8d58',1,'glm::fastExp(vec< L, T, Q > const &x)']]], + ['fastexp2',['fastExp2',['../a00323.html#ga0af50585955eb14c60bb286297fabab2',1,'glm::fastExp2(T x)'],['../a00323.html#gacaaed8b67d20d244b7de217e7816c1b6',1,'glm::fastExp2(vec< L, T, Q > const &x)']]], + ['fastinversesqrt',['fastInverseSqrt',['../a00324.html#ga7f081b14d9c7035c8714eba5f7f75a8f',1,'glm::fastInverseSqrt(genType x)'],['../a00324.html#gadcd7be12b1e5ee182141359d4c45dd24',1,'glm::fastInverseSqrt(vec< L, T, Q > const &x)']]], + ['fastlength',['fastLength',['../a00324.html#gafe697d6287719538346bbdf8b1367c59',1,'glm::fastLength(genType x)'],['../a00324.html#ga90f66be92ef61e705c005e7b3209edb8',1,'glm::fastLength(vec< L, T, Q > const &x)']]], + ['fastlog',['fastLog',['../a00323.html#gae1bdc97b7f96a600e29c753f1cd4388a',1,'glm::fastLog(T x)'],['../a00323.html#ga937256993a7219e73f186bb348fe6be8',1,'glm::fastLog(vec< L, T, Q > const &x)']]], + ['fastlog2',['fastLog2',['../a00323.html#ga6e98118685f6dc9e05fbb13dd5e5234e',1,'glm::fastLog2(T x)'],['../a00323.html#ga7562043539194ccc24649f8475bc5584',1,'glm::fastLog2(vec< L, T, Q > const &x)']]], + ['fastmix',['fastMix',['../a00352.html#ga264e10708d58dd0ff53b7902a2bd2561',1,'glm']]], + ['fastnormalize',['fastNormalize',['../a00324.html#ga3b02c1d6e0c754144e2f1e110bf9f16c',1,'glm']]], + ['fastnormalizedot',['fastNormalizeDot',['../a00345.html#ga2746fb9b5bd22b06b2f7c8babba5de9e',1,'glm']]], + ['fastpow',['fastPow',['../a00323.html#ga5340e98a11fcbbd936ba6e983a154d50',1,'glm::fastPow(genType x, genType y)'],['../a00323.html#ga15325a8ed2d1c4ed2412c4b3b3927aa2',1,'glm::fastPow(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00323.html#ga7f2562db9c3e02ae76169c36b086c3f6',1,'glm::fastPow(genTypeT x, genTypeU y)'],['../a00323.html#ga1abe488c0829da5b9de70ac64aeaa7e5',1,'glm::fastPow(vec< L, T, Q > const &x)']]], + ['fastsin',['fastSin',['../a00325.html#ga0aab3257bb3b628d10a1e0483e2c6915',1,'glm']]], + ['fastsqrt',['fastSqrt',['../a00324.html#ga6c460e9414a50b2fc455c8f64c86cdc9',1,'glm::fastSqrt(genType x)'],['../a00324.html#gae83f0c03614f73eae5478c5b6274ee6d',1,'glm::fastSqrt(vec< L, T, Q > const &x)']]], + ['fasttan',['fastTan',['../a00325.html#gaf29b9c1101a10007b4f79ee89df27ba2',1,'glm']]], + ['fclamp',['fclamp',['../a00321.html#ga1e28539d3a46965ed9ef92ec7cb3b18a',1,'glm::fclamp(genType x, genType minVal, genType maxVal)'],['../a00321.html#ga60796d08903489ee185373593bc16b9d',1,'glm::fclamp(vec< L, T, Q > const &x, T minVal, T maxVal)'],['../a00321.html#ga5c15fa4709763c269c86c0b8b3aa2297',1,'glm::fclamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)']]], + ['fdualquat',['fdualquat',['../a00317.html#ga237c2b9b42c9a930e49de5840ae0f930',1,'glm']]], + ['findlsb',['findLSB',['../a00370.html#gaf74c4d969fa34ab8acb9d390f5ca5274',1,'glm::findLSB(genIUType x)'],['../a00370.html#ga4454c0331d6369888c28ab677f4810c7',1,'glm::findLSB(vec< L, T, Q > const &v)']]], + ['findmsb',['findMSB',['../a00370.html#ga7e4a794d766861c70bc961630f8ef621',1,'glm::findMSB(genIUType x)'],['../a00370.html#ga39ac4d52028bb6ab08db5ad6562c2872',1,'glm::findMSB(vec< L, T, Q > const &v)']]], + ['findnsb',['findNSB',['../a00261.html#ga2777901e41ad6e1e9d0ad6cc855d1075',1,'glm::findNSB(genIUType x, int significantBitCount)'],['../a00274.html#gaff61eca266da315002a3db92ff0dd604',1,'glm::findNSB(vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)']]], + ['fliplr',['fliplr',['../a00336.html#gaf39f4e5f78eb29c1a90277d45b9b3feb',1,'glm']]], + ['flipud',['flipud',['../a00336.html#ga85003371f0ba97380dd25e8905de1870',1,'glm']]], + ['float1',['float1',['../a00315.html#gaf5208d01f6c6fbcb7bb55d610b9c0ead',1,'glm']]], + ['float1x1',['float1x1',['../a00315.html#ga73720b8dc4620835b17f74d428f98c0c',1,'glm']]], + ['float2',['float2',['../a00315.html#ga02d3c013982c183906c61d74aa3166ce',1,'glm']]], + ['float2x2',['float2x2',['../a00315.html#ga33d43ecbb60a85a1366ff83f8a0ec85f',1,'glm']]], + ['float2x3',['float2x3',['../a00315.html#ga939b0cff15cee3030f75c1b2e36f89fe',1,'glm']]], + ['float2x4',['float2x4',['../a00315.html#gafec3cfd901ab334a92e0242b8f2269b4',1,'glm']]], + ['float3',['float3',['../a00315.html#ga821ff110fc8533a053cbfcc93e078cc0',1,'glm']]], + ['float32',['float32',['../a00304.html#gaacdc525d6f7bddb3ae95d5c311bd06a1',1,'glm']]], + ['float32_5ft',['float32_t',['../a00304.html#gaa4947bc8b47c72fceea9bda730ecf603',1,'glm']]], + ['float3x2',['float3x2',['../a00315.html#gaa6c69f04ba95f3faedf95dae874de576',1,'glm']]], + ['float3x3',['float3x3',['../a00315.html#ga6ceb5d38a58becdf420026e12a6562f3',1,'glm']]], + ['float3x4',['float3x4',['../a00315.html#ga4d2679c321b793ca3784fe0315bb5332',1,'glm']]], + ['float4',['float4',['../a00315.html#gae2da7345087db3815a25d8837a727ef1',1,'glm']]], + ['float4x2',['float4x2',['../a00315.html#ga308b9af0c221145bcfe9bfc129d9098e',1,'glm']]], + ['float4x3',['float4x3',['../a00315.html#gac0a51b4812038aa81d73ffcc37f741ac',1,'glm']]], + ['float4x4',['float4x4',['../a00315.html#gad3051649b3715d828a4ab92cdae7c3bf',1,'glm']]], + ['float64',['float64',['../a00304.html#ga232fad1b0d6dcc7c16aabde98b2e2a80',1,'glm']]], + ['float64_5ft',['float64_t',['../a00304.html#ga728366fef72cd96f0a5fa6429f05469e',1,'glm']]], + ['floatbitstoint',['floatBitsToInt',['../a00241.html#ga1425c1c3160ec51214b03a0469a3013d',1,'glm::floatBitsToInt(float const &v)'],['../a00241.html#ga99f7d62f78ac5ea3b49bae715c9488ed',1,'glm::floatBitsToInt(vec< L, float, Q > const &v)']]], + ['floatbitstouint',['floatBitsToUint',['../a00241.html#ga70e0271c34af52f3100c7960e18c3f2b',1,'glm::floatBitsToUint(float const &v)'],['../a00241.html#ga49418ba4c8a60fbbb5d57b705f3e26db',1,'glm::floatBitsToUint(vec< L, float, Q > const &v)']]], + ['floor',['floor',['../a00241.html#gaa9d0742639e85b29c7c5de11cfd6840d',1,'glm']]], + ['floor_5flog2',['floor_log2',['../a00330.html#ga7011b4e1c1e1ed492149b028feacc00e',1,'glm']]], + ['floormultiple',['floorMultiple',['../a00302.html#ga2ffa3cd5f2ea746ee1bf57c46da6315e',1,'glm::floorMultiple(genType v, genType Multiple)'],['../a00302.html#gacdd8901448f51f0b192380e422fae3e4',1,'glm::floorMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['floorpoweroftwo',['floorPowerOfTwo',['../a00302.html#gafe273a57935d04c9db677bf67f9a71f4',1,'glm::floorPowerOfTwo(genIUType v)'],['../a00302.html#gaf0d591a8fca8ddb9289cdeb44b989c2d',1,'glm::floorPowerOfTwo(vec< L, T, Q > const &v)']]], + ['fma',['fma',['../a00241.html#gad0f444d4b81cc53c3b6edf5aa25078c2',1,'glm']]], + ['fmat2',['fmat2',['../a00304.html#ga4541dc2feb2a31d6ecb5a303f3dd3280',1,'glm']]], + ['fmat2x2',['fmat2x2',['../a00304.html#ga3350c93c3275298f940a42875388e4b4',1,'glm']]], + ['fmat2x3',['fmat2x3',['../a00304.html#ga55a2d2a8eb09b5633668257eb3cad453',1,'glm']]], + ['fmat2x4',['fmat2x4',['../a00304.html#ga681381f19f11c9e5ee45cda2c56937ff',1,'glm']]], + ['fmat3',['fmat3',['../a00304.html#ga253d453c20e037730023fea0215cb6f6',1,'glm']]], + ['fmat3x2',['fmat3x2',['../a00304.html#ga6af54d70d9beb0a7ef992a879e86b04f',1,'glm']]], + ['fmat3x3',['fmat3x3',['../a00304.html#gaa07c86650253672a19dbfb898f3265b8',1,'glm']]], + ['fmat3x4',['fmat3x4',['../a00304.html#ga44e158af77a670ee1b58c03cda9e1619',1,'glm']]], + ['fmat4',['fmat4',['../a00304.html#ga8cb400c0f4438f2640035d7b9824a0ca',1,'glm']]], + ['fmat4x2',['fmat4x2',['../a00304.html#ga8c8aa45aafcc23238edb1d5aeb801774',1,'glm']]], + ['fmat4x3',['fmat4x3',['../a00304.html#ga4295048a78bdf46b8a7de77ec665b497',1,'glm']]], + ['fmat4x4',['fmat4x4',['../a00304.html#gad01cc6479bde1fd1870f13d3ed9530b3',1,'glm']]], + ['fmax',['fmax',['../a00258.html#ga36920478565cf608e93064283ce06421',1,'glm::fmax(T a, T b)'],['../a00258.html#ga0007bba71ca451ac70e99d28dfbeaab9',1,'glm::fmax(T a, T b, T C)'],['../a00258.html#ga27e260b1ff4d04c3ad4b864d26cbaf08',1,'glm::fmax(T a, T b, T C, T D)'],['../a00267.html#gad66b6441f7200db16c9f341711733c56',1,'glm::fmax(vec< L, T, Q > const &a, T b)'],['../a00267.html#ga8df4be3f48d6717c40ea788fd30deebf',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b)'],['../a00267.html#ga0f04ba924294dae4234ca93ede23229a',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#ga4ed3eb250ccbe17bfe8ded8a6b72d230',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#gae5792cb2b51190057e4aea027eb56f81',1,'glm::fmax(genType x, genType y)']]], + ['fmin',['fmin',['../a00258.html#ga7b2b438a765e2a62098c79eb212f28f0',1,'glm::fmin(T a, T b)'],['../a00258.html#ga1a95fe4cf5437e8133f1093fe9726a64',1,'glm::fmin(T a, T b, T c)'],['../a00258.html#ga3d6f9c6c16bfd6f38f2c4f8076e8b661',1,'glm::fmin(T a, T b, T c, T d)'],['../a00267.html#gae989203363cff9eab5093630df4fe071',1,'glm::fmin(vec< L, T, Q > const &x, T y)'],['../a00267.html#ga7c42e93cd778c9181d1cdeea4d3e43bd',1,'glm::fmin(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00267.html#ga7e62739055b49189d9355471f78fe000',1,'glm::fmin(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#ga4a543dd7d22ad1f3b8b839f808a9d93c',1,'glm::fmin(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#gaa3200559611ac5b9b9ae7283547916a7',1,'glm::fmin(genType x, genType y)']]], + ['fmod',['fmod',['../a00314.html#gae5e80425df9833164ad469e83b475fb4',1,'glm']]], + ['four_5fover_5fpi',['four_over_pi',['../a00290.html#ga753950e5140e4ea6a88e4a18ba61dc09',1,'glm']]], + ['fract',['fract',['../a00241.html#ga8ba89e40e55ae5cdf228548f9b7639c7',1,'glm::fract(genType x)'],['../a00241.html#ga2df623004f634b440d61e018d62c751b',1,'glm::fract(vec< L, T, Q > const &x)']]], + ['frexp',['frexp',['../a00241.html#gaddf5ef73283c171730e0bcc11833fa81',1,'glm']]], + ['frustum',['frustum',['../a00243.html#ga0bcd4542e0affc63a0b8c08fcb839ea9',1,'glm']]], + ['frustumlh',['frustumLH',['../a00243.html#gae4277c37f61d81da01bc9db14ea90296',1,'glm']]], + ['frustumlh_5fno',['frustumLH_NO',['../a00243.html#ga259520cad03b3f8bca9417920035ed01',1,'glm']]], + ['frustumlh_5fzo',['frustumLH_ZO',['../a00243.html#ga94218b094862d17798370242680b9030',1,'glm']]], + ['frustumno',['frustumNO',['../a00243.html#gae34ec664ad44860bf4b5ba631f0e0e90',1,'glm']]], + ['frustumrh',['frustumRH',['../a00243.html#ga4366ab45880c6c5f8b3e8c371ca4b136',1,'glm']]], + ['frustumrh_5fno',['frustumRH_NO',['../a00243.html#ga9236c8439f21be186b79c97b588836b9',1,'glm']]], + ['frustumrh_5fzo',['frustumRH_ZO',['../a00243.html#ga7654a9227f14d5382786b9fc0eb5692d',1,'glm']]], + ['frustumzo',['frustumZO',['../a00243.html#gaa73322e152edf50cf30a6edac342a757',1,'glm']]], + ['functions_2ehpp',['functions.hpp',['../a00034.html',1,'']]], + ['fvec1',['fvec1',['../a00304.html#ga98b9ed43cf8c5cf1d354b23c7df9119f',1,'glm']]], + ['fvec2',['fvec2',['../a00304.html#ga24273aa02abaecaab7f160bac437a339',1,'glm']]], + ['fvec3',['fvec3',['../a00304.html#ga89930533646b30d021759298aa6bf04a',1,'glm']]], + ['fvec4',['fvec4',['../a00304.html#ga713c796c54875cf4092d42ff9d9096b0',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_6.html b/external/glm-0.9.9.8/doc/api/search/all_6.html new file mode 100644 index 0000000..4206aa6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_6.js b/external/glm-0.9.9.8/doc/api/search/all_6.js new file mode 100644 index 0000000..bdc67a8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_6.js @@ -0,0 +1,143 @@ +var searchData= +[ + ['color_5fspace_2ehpp',['color_space.hpp',['../a00012.html',1,'']]], + ['color_5fspace_2ehpp',['color_space.hpp',['../a00013.html',1,'']]], + ['common_2ehpp',['common.hpp',['../a00016.html',1,'']]], + ['geometric_20functions',['Geometric functions',['../a00279.html',1,'']]], + ['glm_5fext_5fmatrix_5fclip_5fspace',['GLM_EXT_matrix_clip_space',['../a00243.html',1,'']]], + ['glm_5fext_5fmatrix_5fcommon',['GLM_EXT_matrix_common',['../a00244.html',1,'']]], + ['glm_5fext_5fmatrix_5fprojection',['GLM_EXT_matrix_projection',['../a00245.html',1,'']]], + ['glm_5fext_5fmatrix_5frelational',['GLM_EXT_matrix_relational',['../a00246.html',1,'']]], + ['glm_5fext_5fmatrix_5ftransform',['GLM_EXT_matrix_transform',['../a00247.html',1,'']]], + ['glm_5fext_5fquaternion_5fcommon',['GLM_EXT_quaternion_common',['../a00248.html',1,'']]], + ['glm_5fext_5fquaternion_5fdouble',['GLM_EXT_quaternion_double',['../a00249.html',1,'']]], + ['glm_5fext_5fquaternion_5fdouble_5fprecision',['GLM_EXT_quaternion_double_precision',['../a00250.html',1,'']]], + ['glm_5fext_5fquaternion_5fexponential',['GLM_EXT_quaternion_exponential',['../a00251.html',1,'']]], + ['glm_5fext_5fquaternion_5ffloat',['GLM_EXT_quaternion_float',['../a00252.html',1,'']]], + ['glm_5fext_5fquaternion_5ffloat_5fprecision',['GLM_EXT_quaternion_float_precision',['../a00253.html',1,'']]], + ['glm_5fext_5fquaternion_5fgeometric',['GLM_EXT_quaternion_geometric',['../a00254.html',1,'']]], + ['glm_5fext_5fquaternion_5frelational',['GLM_EXT_quaternion_relational',['../a00255.html',1,'']]], + ['glm_5fext_5fquaternion_5ftransform',['GLM_EXT_quaternion_transform',['../a00256.html',1,'']]], + ['glm_5fext_5fquaternion_5ftrigonometric',['GLM_EXT_quaternion_trigonometric',['../a00257.html',1,'']]], + ['glm_5fext_5fscalar_5fcommon',['GLM_EXT_scalar_common',['../a00258.html',1,'']]], + ['glm_5fext_5fscalar_5fconstants',['GLM_EXT_scalar_constants',['../a00259.html',1,'']]], + ['glm_5fext_5fscalar_5fint_5fsized',['GLM_EXT_scalar_int_sized',['../a00260.html',1,'']]], + ['glm_5fext_5fscalar_5finteger',['GLM_EXT_scalar_integer',['../a00261.html',1,'']]], + ['glm_5fext_5fscalar_5frelational',['GLM_EXT_scalar_relational',['../a00262.html',1,'']]], + ['glm_5fext_5fscalar_5fuint_5fsized',['GLM_EXT_scalar_uint_sized',['../a00263.html',1,'']]], + ['glm_5fext_5fscalar_5fulp',['GLM_EXT_scalar_ulp',['../a00264.html',1,'']]], + ['glm_5fext_5fvector_5fbool1',['GLM_EXT_vector_bool1',['../a00265.html',1,'']]], + ['glm_5fext_5fvector_5fbool1_5fprecision',['GLM_EXT_vector_bool1_precision',['../a00266.html',1,'']]], + ['glm_5fext_5fvector_5fcommon',['GLM_EXT_vector_common',['../a00267.html',1,'']]], + ['glm_5fext_5fvector_5fdouble1',['GLM_EXT_vector_double1',['../a00268.html',1,'']]], + ['glm_5fext_5fvector_5fdouble1_5fprecision',['GLM_EXT_vector_double1_precision',['../a00269.html',1,'']]], + ['glm_5fext_5fvector_5ffloat1',['GLM_EXT_vector_float1',['../a00270.html',1,'']]], + ['glm_5fext_5fvector_5ffloat1_5fprecision',['GLM_EXT_vector_float1_precision',['../a00271.html',1,'']]], + ['glm_5fext_5fvector_5fint1',['GLM_EXT_vector_int1',['../a00272.html',1,'']]], + ['glm_5fext_5fvector_5fint1_5fprecision',['GLM_EXT_vector_int1_precision',['../a00273.html',1,'']]], + ['glm_5fext_5fvector_5finteger',['GLM_EXT_vector_integer',['../a00274.html',1,'']]], + ['glm_5fext_5fvector_5frelational',['GLM_EXT_vector_relational',['../a00275.html',1,'']]], + ['glm_5fext_5fvector_5fuint1',['GLM_EXT_vector_uint1',['../a00276.html',1,'']]], + ['glm_5fext_5fvector_5fuint1_5fprecision',['GLM_EXT_vector_uint1_precision',['../a00277.html',1,'']]], + ['glm_5fext_5fvector_5fulp',['GLM_EXT_vector_ulp',['../a00278.html',1,'']]], + ['gauss',['gauss',['../a00326.html#ga0b50b197ff74261a0fad90f4b8d24702',1,'glm::gauss(T x, T ExpectedValue, T StandardDeviation)'],['../a00326.html#gad19ec8754a83c0b9a8dc16b7e60705ab',1,'glm::gauss(vec< 2, T, Q > const &Coord, vec< 2, T, Q > const &ExpectedValue, vec< 2, T, Q > const &StandardDeviation)']]], + ['gaussrand',['gaussRand',['../a00300.html#ga5193a83e49e4fdc5652c084711083574',1,'glm']]], + ['geometric_2ehpp',['geometric.hpp',['../a00036.html',1,'']]], + ['glm_2ehpp',['glm.hpp',['../a00037.html',1,'']]], + ['glm_5faligned_5ftypedef',['GLM_ALIGNED_TYPEDEF',['../a00364.html#gab5cd5c5fad228b25c782084f1cc30114',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int8, aligned_lowp_int8, 1)'],['../a00364.html#ga5bb5dd895ef625c1b113f2cf400186b0',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int16, aligned_lowp_int16, 2)'],['../a00364.html#gac6efa54cf7c6c86f7158922abdb1a430',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int32, aligned_lowp_int32, 4)'],['../a00364.html#ga6612eb77c8607048e7552279a11eeb5f',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int64, aligned_lowp_int64, 8)'],['../a00364.html#ga7ddc1848ff2223026db8968ce0c97497',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int8_t, aligned_lowp_int8_t, 1)'],['../a00364.html#ga22240dd9458b0f8c11fbcc4f48714f68',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int16_t, aligned_lowp_int16_t, 2)'],['../a00364.html#ga8130ea381d76a2cc34a93ccbb6cf487d',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int32_t, aligned_lowp_int32_t, 4)'],['../a00364.html#ga7ccb60f3215d293fd62b33b31ed0e7be',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int64_t, aligned_lowp_int64_t, 8)'],['../a00364.html#gac20d508d2ef5cc95ad3daf083c57ec2a',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i8, aligned_lowp_i8, 1)'],['../a00364.html#ga50257b48069a31d0c8d9c1f644d267de',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i16, aligned_lowp_i16, 2)'],['../a00364.html#gaa07e98e67b7a3435c0746018c7a2a839',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i32, aligned_lowp_i32, 4)'],['../a00364.html#ga62601fc6f8ca298b77285bedf03faffd',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i64, aligned_lowp_i64, 8)'],['../a00364.html#gac8cff825951aeb54dd846037113c72db',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int8, aligned_mediump_int8, 1)'],['../a00364.html#ga78f443d88f438575a62b5df497cdf66b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int16, aligned_mediump_int16, 2)'],['../a00364.html#ga0680cd3b5d4e8006985fb41a4f9b57af',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int32, aligned_mediump_int32, 4)'],['../a00364.html#gad9e5babb1dd3e3531b42c37bf25dd951',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int64, aligned_mediump_int64, 8)'],['../a00364.html#ga353fd9fa8a9ad952fcabd0d53ad9a6dd',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int8_t, aligned_mediump_int8_t, 1)'],['../a00364.html#ga2196442c0e5c5e8c77842de388c42521',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int16_t, aligned_mediump_int16_t, 2)'],['../a00364.html#ga1284488189daf897cf095c5eefad9744',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int32_t, aligned_mediump_int32_t, 4)'],['../a00364.html#ga73fdc86a539808af58808b7c60a1c4d8',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int64_t, aligned_mediump_int64_t, 8)'],['../a00364.html#gafafeea923e1983262c972e2b83922d3b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i8, aligned_mediump_i8, 1)'],['../a00364.html#ga4b35ca5fe8f55c9d2fe54fdb8d8896f4',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i16, aligned_mediump_i16, 2)'],['../a00364.html#ga63b882e29170d428463d99c3d630acc6',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i32, aligned_mediump_i32, 4)'],['../a00364.html#ga8b20507bb048c1edea2d441cc953e6f0',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i64, aligned_mediump_i64, 8)'],['../a00364.html#ga56c5ca60813027b603c7b61425a0479d',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int8, aligned_highp_int8, 1)'],['../a00364.html#ga7a751b3aff24c0259f4a7357c2969089',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int16, aligned_highp_int16, 2)'],['../a00364.html#ga70cd2144351c556469ee6119e59971fc',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int32, aligned_highp_int32, 4)'],['../a00364.html#ga46bbf08dc004d8c433041e0b5018a5d3',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int64, aligned_highp_int64, 8)'],['../a00364.html#gab3e10c77a20d1abad2de1c561c7a5c18',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int8_t, aligned_highp_int8_t, 1)'],['../a00364.html#ga968f30319ebeaca9ebcd3a25a8e139fb',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int16_t, aligned_highp_int16_t, 2)'],['../a00364.html#gaae773c28e6390c6aa76f5b678b7098a3',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int32_t, aligned_highp_int32_t, 4)'],['../a00364.html#ga790cfff1ca39d0ed696ffed980809311',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int64_t, aligned_highp_int64_t, 8)'],['../a00364.html#ga8265b91eb23c120a9b0c3e381bc37b96',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i8, aligned_highp_i8, 1)'],['../a00364.html#gae6d384de17588d8edb894fbe06e0d410',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i16, aligned_highp_i16, 2)'],['../a00364.html#ga9c8172b745ee03fc5b2b91c350c2922f',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i32, aligned_highp_i32, 4)'],['../a00364.html#ga77e0dff12aa4020ddc3f8cabbea7b2e6',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i64, aligned_highp_i64, 8)'],['../a00364.html#gabd82b9faa9d4d618dbbe0fc8a1efee63',1,'glm::GLM_ALIGNED_TYPEDEF(int8, aligned_int8, 1)'],['../a00364.html#ga285649744560be21000cfd81bbb5d507',1,'glm::GLM_ALIGNED_TYPEDEF(int16, aligned_int16, 2)'],['../a00364.html#ga07732da630b2deda428ce95c0ecaf3ff',1,'glm::GLM_ALIGNED_TYPEDEF(int32, aligned_int32, 4)'],['../a00364.html#ga1a8da2a8c51f69c07a2e7f473aa420f4',1,'glm::GLM_ALIGNED_TYPEDEF(int64, aligned_int64, 8)'],['../a00364.html#ga848aedf13e2d9738acf0bb482c590174',1,'glm::GLM_ALIGNED_TYPEDEF(int8_t, aligned_int8_t, 1)'],['../a00364.html#gafd2803d39049dd45a37a63931e25d943',1,'glm::GLM_ALIGNED_TYPEDEF(int16_t, aligned_int16_t, 2)'],['../a00364.html#gae553b33349d6da832cf0724f1e024094',1,'glm::GLM_ALIGNED_TYPEDEF(int32_t, aligned_int32_t, 4)'],['../a00364.html#ga16d223a2b3409e812e1d3bd87f0e9e5c',1,'glm::GLM_ALIGNED_TYPEDEF(int64_t, aligned_int64_t, 8)'],['../a00364.html#ga2de065d2ddfdb366bcd0febca79ae2ad',1,'glm::GLM_ALIGNED_TYPEDEF(i8, aligned_i8, 1)'],['../a00364.html#gabd786bdc20a11c8cb05c92c8212e28d3',1,'glm::GLM_ALIGNED_TYPEDEF(i16, aligned_i16, 2)'],['../a00364.html#gad4aefe56691cdb640c72f0d46d3fb532',1,'glm::GLM_ALIGNED_TYPEDEF(i32, aligned_i32, 4)'],['../a00364.html#ga8fe9745f7de24a8394518152ff9fccdc',1,'glm::GLM_ALIGNED_TYPEDEF(i64, aligned_i64, 8)'],['../a00364.html#gaaad735483450099f7f882d4e3a3569bd',1,'glm::GLM_ALIGNED_TYPEDEF(ivec1, aligned_ivec1, 4)'],['../a00364.html#gac7b6f823802edbd6edbaf70ea25bf068',1,'glm::GLM_ALIGNED_TYPEDEF(ivec2, aligned_ivec2, 8)'],['../a00364.html#ga3e235bcd2b8029613f25b8d40a2d3ef7',1,'glm::GLM_ALIGNED_TYPEDEF(ivec3, aligned_ivec3, 16)'],['../a00364.html#ga50d8a9523968c77f8325b4c9bfbff41e',1,'glm::GLM_ALIGNED_TYPEDEF(ivec4, aligned_ivec4, 16)'],['../a00364.html#ga9ec20fdfb729c702032da9378c79679f',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec1, aligned_i8vec1, 1)'],['../a00364.html#ga25b3fe1d9e8d0a5e86c1949c1acd8131',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec2, aligned_i8vec2, 2)'],['../a00364.html#ga2958f907719d94d8109b562540c910e2',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec3, aligned_i8vec3, 4)'],['../a00364.html#ga1fe6fc032a978f1c845fac9aa0668714',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec4, aligned_i8vec4, 4)'],['../a00364.html#gaa4161e7a496dc96972254143fe873e55',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec1, aligned_i16vec1, 2)'],['../a00364.html#ga9d7cb211ccda69b1c22ddeeb0f3e7aba',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec2, aligned_i16vec2, 4)'],['../a00364.html#gaaee91dd2ab34423bcc11072ef6bd0f02',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec3, aligned_i16vec3, 8)'],['../a00364.html#ga49f047ccaa8b31fad9f26c67bf9b3510',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec4, aligned_i16vec4, 8)'],['../a00364.html#ga904e9c2436bb099397c0823506a0771f',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec1, aligned_i32vec1, 4)'],['../a00364.html#gaf90651cf2f5e7ee2b11cfdc5a6749534',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec2, aligned_i32vec2, 8)'],['../a00364.html#ga7354a4ead8cb17868aec36b9c30d6010',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec3, aligned_i32vec3, 16)'],['../a00364.html#gad2ecbdea18732163e2636e27b37981ee',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec4, aligned_i32vec4, 16)'],['../a00364.html#ga965b1c9aa1800e93d4abc2eb2b5afcbf',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec1, aligned_i64vec1, 8)'],['../a00364.html#ga1f9e9c2ea2768675dff9bae5cde2d829',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec2, aligned_i64vec2, 16)'],['../a00364.html#gad77c317b7d942322cd5be4c8127b3187',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec3, aligned_i64vec3, 32)'],['../a00364.html#ga716f8ea809bdb11b5b542d8b71aeb04f',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec4, aligned_i64vec4, 32)'],['../a00364.html#gad46f8e9082d5878b1bc04f9c1471cdaa',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint8, aligned_lowp_uint8, 1)'],['../a00364.html#ga1246094581af624aca6c7499aaabf801',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint16, aligned_lowp_uint16, 2)'],['../a00364.html#ga7a5009a1d0196bbf21dd7518f61f0249',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint32, aligned_lowp_uint32, 4)'],['../a00364.html#ga45213fd18b3bb1df391671afefe4d1e7',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint64, aligned_lowp_uint64, 8)'],['../a00364.html#ga0ba26b4e3fd9ecbc25358efd68d8a4ca',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint8_t, aligned_lowp_uint8_t, 1)'],['../a00364.html#gaf2b58f5fb6d4ec8ce7b76221d3af43e1',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint16_t, aligned_lowp_uint16_t, 2)'],['../a00364.html#gadc246401847dcba155f0699425e49dcd',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint32_t, aligned_lowp_uint32_t, 4)'],['../a00364.html#gaace64bddf51a9def01498da9a94fb01c',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint64_t, aligned_lowp_uint64_t, 8)'],['../a00364.html#gad7bb97c29d664bd86ffb1bed4abc5534',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u8, aligned_lowp_u8, 1)'],['../a00364.html#ga404bba7785130e0b1384d695a9450b28',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u16, aligned_lowp_u16, 2)'],['../a00364.html#ga31ba41fd896257536958ec6080203d2a',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u32, aligned_lowp_u32, 4)'],['../a00364.html#gacca5f13627f57b3505676e40a6e43e5e',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u64, aligned_lowp_u64, 8)'],['../a00364.html#ga5faf1d3e70bf33174dd7f3d01d5b883b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint8, aligned_mediump_uint8, 1)'],['../a00364.html#ga727e2bf2c433bb3b0182605860a48363',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint16, aligned_mediump_uint16, 2)'],['../a00364.html#ga12566ca66d5962dadb4a5eb4c74e891e',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint32, aligned_mediump_uint32, 4)'],['../a00364.html#ga7b66a97a8acaa35c5a377b947318c6bc',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint64, aligned_mediump_uint64, 8)'],['../a00364.html#gaa9cde002439b74fa66120a16a9f55fcc',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint8_t, aligned_mediump_uint8_t, 1)'],['../a00364.html#ga1ca98c67f7d1e975f7c5202f1da1df1f',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint16_t, aligned_mediump_uint16_t, 2)'],['../a00364.html#ga1dc8bc6199d785f235576948d80a597c',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint32_t, aligned_mediump_uint32_t, 4)'],['../a00364.html#gad14a0f2ec93519682b73d70b8e401d81',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint64_t, aligned_mediump_uint64_t, 8)'],['../a00364.html#gada8b996eb6526dc1ead813bd49539d1b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u8, aligned_mediump_u8, 1)'],['../a00364.html#ga28948f6bfb52b42deb9d73ae1ea8d8b0',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u16, aligned_mediump_u16, 2)'],['../a00364.html#gad6a7c0b5630f89d3f1c5b4ef2919bb4c',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u32, aligned_mediump_u32, 4)'],['../a00364.html#gaa0fc531cbaa972ac3a0b86d21ef4a7fa',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u64, aligned_mediump_u64, 8)'],['../a00364.html#ga0ee829f7b754b262bbfe6317c0d678ac',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint8, aligned_highp_uint8, 1)'],['../a00364.html#ga447848a817a626cae08cedc9778b331c',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint16, aligned_highp_uint16, 2)'],['../a00364.html#ga6027ae13b2734f542a6e7beee11b8820',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint32, aligned_highp_uint32, 4)'],['../a00364.html#ga2aca46c8608c95ef991ee4c332acde5f',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint64, aligned_highp_uint64, 8)'],['../a00364.html#gaff50b10dd1c48be324fdaffd18e2c7ea',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint8_t, aligned_highp_uint8_t, 1)'],['../a00364.html#ga9fc4421dbb833d5461e6d4e59dcfde55',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint16_t, aligned_highp_uint16_t, 2)'],['../a00364.html#ga329f1e2b94b33ba5e3918197030bcf03',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint32_t, aligned_highp_uint32_t, 4)'],['../a00364.html#ga71e646f7e301aa422328194162c9c998',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint64_t, aligned_highp_uint64_t, 8)'],['../a00364.html#ga8942e09f479489441a7a5004c6d8cb66',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u8, aligned_highp_u8, 1)'],['../a00364.html#gaab32497d6e4db16ee439dbedd64c5865',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u16, aligned_highp_u16, 2)'],['../a00364.html#gaaadbb34952eca8e3d7fe122c3e167742',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u32, aligned_highp_u32, 4)'],['../a00364.html#ga92024d27c74a3650afb55ec8e024ed25',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u64, aligned_highp_u64, 8)'],['../a00364.html#gabde1d0b4072df35453db76075ab896a6',1,'glm::GLM_ALIGNED_TYPEDEF(uint8, aligned_uint8, 1)'],['../a00364.html#ga06c296c9e398b294c8c9dd2a7693dcbb',1,'glm::GLM_ALIGNED_TYPEDEF(uint16, aligned_uint16, 2)'],['../a00364.html#gacf1744488c96ebd33c9f36ad33b2010a',1,'glm::GLM_ALIGNED_TYPEDEF(uint32, aligned_uint32, 4)'],['../a00364.html#ga3328061a64c20ba59d5f9da24c2cd059',1,'glm::GLM_ALIGNED_TYPEDEF(uint64, aligned_uint64, 8)'],['../a00364.html#gaf6ced36f13bae57f377bafa6f5fcc299',1,'glm::GLM_ALIGNED_TYPEDEF(uint8_t, aligned_uint8_t, 1)'],['../a00364.html#gafbc7fb7847bfc78a339d1d371c915c73',1,'glm::GLM_ALIGNED_TYPEDEF(uint16_t, aligned_uint16_t, 2)'],['../a00364.html#gaa86bc56a73fd8120b1121b5f5e6245ae',1,'glm::GLM_ALIGNED_TYPEDEF(uint32_t, aligned_uint32_t, 4)'],['../a00364.html#ga68c0b9e669060d0eb5ab8c3ddeb483d8',1,'glm::GLM_ALIGNED_TYPEDEF(uint64_t, aligned_uint64_t, 8)'],['../a00364.html#ga4f3bab577daf3343e99cc005134bce86',1,'glm::GLM_ALIGNED_TYPEDEF(u8, aligned_u8, 1)'],['../a00364.html#ga13a2391339d0790d43b76d00a7611c4f',1,'glm::GLM_ALIGNED_TYPEDEF(u16, aligned_u16, 2)'],['../a00364.html#ga197570e03acbc3d18ab698e342971e8f',1,'glm::GLM_ALIGNED_TYPEDEF(u32, aligned_u32, 4)'],['../a00364.html#ga0f033b21e145a1faa32c62ede5878993',1,'glm::GLM_ALIGNED_TYPEDEF(u64, aligned_u64, 8)'],['../a00364.html#ga509af83527f5cd512e9a7873590663aa',1,'glm::GLM_ALIGNED_TYPEDEF(uvec1, aligned_uvec1, 4)'],['../a00364.html#ga94e86186978c502c6dc0c0d9c4a30679',1,'glm::GLM_ALIGNED_TYPEDEF(uvec2, aligned_uvec2, 8)'],['../a00364.html#ga5cec574686a7f3c8ed24bb195c5e2d0a',1,'glm::GLM_ALIGNED_TYPEDEF(uvec3, aligned_uvec3, 16)'],['../a00364.html#ga47edfdcee9c89b1ebdaf20450323b1d4',1,'glm::GLM_ALIGNED_TYPEDEF(uvec4, aligned_uvec4, 16)'],['../a00364.html#ga5611d6718e3a00096918a64192e73a45',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec1, aligned_u8vec1, 1)'],['../a00364.html#ga19837e6f72b60d994a805ef564c6c326',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec2, aligned_u8vec2, 2)'],['../a00364.html#ga9740cf8e34f068049b42a2753f9601c2',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec3, aligned_u8vec3, 4)'],['../a00364.html#ga8b8588bb221448f5541a858903822a57',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec4, aligned_u8vec4, 4)'],['../a00364.html#ga991abe990c16de26b2129d6bc2f4c051',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec1, aligned_u16vec1, 2)'],['../a00364.html#gac01bb9fc32a1cd76c2b80d030f71df4c',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec2, aligned_u16vec2, 4)'],['../a00364.html#ga09540dbca093793a36a8997e0d4bee77',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec3, aligned_u16vec3, 8)'],['../a00364.html#gaecafb5996f5a44f57e34d29c8670741e',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec4, aligned_u16vec4, 8)'],['../a00364.html#gac6b161a04d2f8408fe1c9d857e8daac0',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec1, aligned_u32vec1, 4)'],['../a00364.html#ga1fa0dfc8feb0fa17dab2acd43e05342b',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec2, aligned_u32vec2, 8)'],['../a00364.html#ga0019500abbfa9c66eff61ca75eaaed94',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec3, aligned_u32vec3, 16)'],['../a00364.html#ga14fd29d01dae7b08a04e9facbcc18824',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec4, aligned_u32vec4, 16)'],['../a00364.html#gab253845f534a67136f9619843cade903',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec1, aligned_u64vec1, 8)'],['../a00364.html#ga929427a7627940cdf3304f9c050b677d',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec2, aligned_u64vec2, 16)'],['../a00364.html#gae373b6c04fdf9879f33d63e6949c037e',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec3, aligned_u64vec3, 32)'],['../a00364.html#ga53a8a03dca2015baec4584f45b8e9cdc',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec4, aligned_u64vec4, 32)'],['../a00364.html#gab3301bae94ef5bf59fbdd9a24e7d2a01',1,'glm::GLM_ALIGNED_TYPEDEF(float32, aligned_float32, 4)'],['../a00364.html#gada9b0bea273d3ae0286f891533b9568f',1,'glm::GLM_ALIGNED_TYPEDEF(float32_t, aligned_float32_t, 4)'],['../a00364.html#gadbce23b9f23d77bb3884e289a574ebd5',1,'glm::GLM_ALIGNED_TYPEDEF(float32, aligned_f32, 4)'],['../a00364.html#ga75930684ff2233171c573e603f216162',1,'glm::GLM_ALIGNED_TYPEDEF(float64, aligned_float64, 8)'],['../a00364.html#ga6e3a2d83b131336219a0f4c7cbba2a48',1,'glm::GLM_ALIGNED_TYPEDEF(float64_t, aligned_float64_t, 8)'],['../a00364.html#gaa4deaa0dea930c393d55e7a4352b0a20',1,'glm::GLM_ALIGNED_TYPEDEF(float64, aligned_f64, 8)'],['../a00364.html#ga81bc497b2bfc6f80bab690c6ee28f0f9',1,'glm::GLM_ALIGNED_TYPEDEF(vec1, aligned_vec1, 4)'],['../a00364.html#gada3e8f783e9d4b90006695a16c39d4d4',1,'glm::GLM_ALIGNED_TYPEDEF(vec2, aligned_vec2, 8)'],['../a00364.html#gab8d081fac3a38d6f55fa552f32168d32',1,'glm::GLM_ALIGNED_TYPEDEF(vec3, aligned_vec3, 16)'],['../a00364.html#ga12fe7b9769c964c5b48dcfd8b7f40198',1,'glm::GLM_ALIGNED_TYPEDEF(vec4, aligned_vec4, 16)'],['../a00364.html#gaefab04611c7f8fe1fd9be3071efea6cc',1,'glm::GLM_ALIGNED_TYPEDEF(fvec1, aligned_fvec1, 4)'],['../a00364.html#ga2543c05ba19b3bd19d45b1227390c5b4',1,'glm::GLM_ALIGNED_TYPEDEF(fvec2, aligned_fvec2, 8)'],['../a00364.html#ga009afd727fd657ef33a18754d6d28f60',1,'glm::GLM_ALIGNED_TYPEDEF(fvec3, aligned_fvec3, 16)'],['../a00364.html#ga2f26177e74bfb301a3d0e02ec3c3ef53',1,'glm::GLM_ALIGNED_TYPEDEF(fvec4, aligned_fvec4, 16)'],['../a00364.html#ga309f495a1d6b75ddf195b674b65cb1e4',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec1, aligned_f32vec1, 4)'],['../a00364.html#ga5e185865a2217d0cd47187644683a8c3',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec2, aligned_f32vec2, 8)'],['../a00364.html#gade4458b27b039b9ca34f8ec049f3115a',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec3, aligned_f32vec3, 16)'],['../a00364.html#ga2e8a12c5e6a9c4ae4ddaeda1d1cffe3b',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec4, aligned_f32vec4, 16)'],['../a00364.html#ga3e0f35fa0c626285a8bad41707e7316c',1,'glm::GLM_ALIGNED_TYPEDEF(dvec1, aligned_dvec1, 8)'],['../a00364.html#ga78bfec2f185d1d365ea0a9ef1e3d45b8',1,'glm::GLM_ALIGNED_TYPEDEF(dvec2, aligned_dvec2, 16)'],['../a00364.html#ga01fe6fee6db5df580b6724a7e681f069',1,'glm::GLM_ALIGNED_TYPEDEF(dvec3, aligned_dvec3, 32)'],['../a00364.html#ga687d5b8f551d5af32425c0b2fba15e99',1,'glm::GLM_ALIGNED_TYPEDEF(dvec4, aligned_dvec4, 32)'],['../a00364.html#ga8e842371d46842ff8f1813419ba49d0f',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec1, aligned_f64vec1, 8)'],['../a00364.html#ga32814aa0f19316b43134fc25f2aad2b9',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec2, aligned_f64vec2, 16)'],['../a00364.html#gaf3d3bbc1e93909b689123b085e177a14',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec3, aligned_f64vec3, 32)'],['../a00364.html#ga804c654cead1139bd250f90f9bb01fad',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec4, aligned_f64vec4, 32)'],['../a00364.html#gacce4ac532880b8c7469d3c31974420a1',1,'glm::GLM_ALIGNED_TYPEDEF(mat2, aligned_mat2, 16)'],['../a00364.html#ga0498e0e249a6faddaf96aa55d7f81c3b',1,'glm::GLM_ALIGNED_TYPEDEF(mat3, aligned_mat3, 16)'],['../a00364.html#ga7435d87de82a0d652b35dc5b9cc718d5',1,'glm::GLM_ALIGNED_TYPEDEF(mat4, aligned_mat4, 16)'],['../a00364.html#ga719da577361541a4c43a2dd1d0e361e1',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2, 16)'],['../a00364.html#ga6e7ee4f541e1d7db66cd1a224caacafb',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3, 16)'],['../a00364.html#gae5d672d359f2a39f63f98c7975057486',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4, 16)'],['../a00364.html#ga6fa2df037dbfc5fe8c8e0b4db8a34953',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2x2, 16)'],['../a00364.html#ga0743b4f4f69a3227b82ff58f6abbad62',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x3, aligned_fmat2x3, 16)'],['../a00364.html#ga1a76b325fdf70f961d835edd182c63dd',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x4, aligned_fmat2x4, 16)'],['../a00364.html#ga4b4e181cd041ba28c3163e7b8074aef0',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x2, aligned_fmat3x2, 16)'],['../a00364.html#ga27b13f465abc8a40705698145e222c3f',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3x3, 16)'],['../a00364.html#ga2608d19cc275830a6f8c0b6405625a4f',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x4, aligned_fmat3x4, 16)'],['../a00364.html#ga93f09768241358a287c4cca538f1f7e7',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x2, aligned_fmat4x2, 16)'],['../a00364.html#ga7c117e3ecca089e10247b1d41d88aff9',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x3, aligned_fmat4x3, 16)'],['../a00364.html#ga07c75cd04ba42dc37fa3e105f89455c5',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4x4, 16)'],['../a00364.html#ga65ff0d690a34a4d7f46f9b2eb51525ee',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2, 16)'],['../a00364.html#gadd8ddbe2bf65ccede865ba2f510176dc',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3, 16)'],['../a00364.html#gaf18dbff14bf13d3ff540c517659ec045',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4, 16)'],['../a00364.html#ga66339f6139bf7ff19e245beb33f61cc8',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2x2, 16)'],['../a00364.html#ga1558a48b3934011b52612809f443e46d',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x3, aligned_f32mat2x3, 16)'],['../a00364.html#gaa52e5732daa62851627021ad551c7680',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x4, aligned_f32mat2x4, 16)'],['../a00364.html#gac09663c42566bcb58d23c6781ac4e85a',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x2, aligned_f32mat3x2, 16)'],['../a00364.html#ga3f510999e59e1b309113e1d561162b29',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3x3, 16)'],['../a00364.html#ga2c9c94f0c89cd71ce56551db6cf4aaec',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x4, aligned_f32mat3x4, 16)'],['../a00364.html#ga99ce8274c750fbfdf0e70c95946a2875',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x2, aligned_f32mat4x2, 16)'],['../a00364.html#ga9476ef66790239df53dbe66f3989c3b5',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x3, aligned_f32mat4x3, 16)'],['../a00364.html#gacc429b3b0b49921e12713b6d31e14e1d',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4x4, 16)'],['../a00364.html#ga88f6c6fa06e6e64479763e69444669cf',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2, 32)'],['../a00364.html#gaae8e4639c991e64754145ab8e4c32083',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3, 32)'],['../a00364.html#ga6e9094f3feb3b5b49d0f83683a101fde',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4, 32)'],['../a00364.html#gadbd2c639c03de1c3e9591b5a39f65559',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2x2, 32)'],['../a00364.html#gab059d7b9fe2094acc563b7223987499f',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x3, aligned_f64mat2x3, 32)'],['../a00364.html#gabbc811d1c52ed2b8cfcaff1378f75c69',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x4, aligned_f64mat2x4, 32)'],['../a00364.html#ga9ddf5212777734d2fd841a84439f3bdf',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x2, aligned_f64mat3x2, 32)'],['../a00364.html#gad1dda32ed09f94bfcf0a7d8edfb6cf13',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3x3, 32)'],['../a00364.html#ga5875e0fa72f07e271e7931811cbbf31a',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x4, aligned_f64mat3x4, 32)'],['../a00364.html#ga41e82cd6ac07f912ba2a2d45799dcf0d',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x2, aligned_f64mat4x2, 32)'],['../a00364.html#ga0892638d6ba773043b3d63d1d092622e',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x3, aligned_f64mat4x3, 32)'],['../a00364.html#ga912a16432608b822f1e13607529934c1',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4x4, 32)'],['../a00364.html#gafd945a8ea86b042aba410e0560df9a3d',1,'glm::GLM_ALIGNED_TYPEDEF(quat, aligned_quat, 16)'],['../a00364.html#ga19c2ba545d1f2f36bcb7b60c9a228622',1,'glm::GLM_ALIGNED_TYPEDEF(quat, aligned_fquat, 16)'],['../a00364.html#gaabc28c84a3288b697605d4688686f9a9',1,'glm::GLM_ALIGNED_TYPEDEF(dquat, aligned_dquat, 32)'],['../a00364.html#ga1ed8aeb5ca67fade269a46105f1bf273',1,'glm::GLM_ALIGNED_TYPEDEF(f32quat, aligned_f32quat, 16)'],['../a00364.html#ga95cc03b8b475993fa50e05e38e203303',1,'glm::GLM_ALIGNED_TYPEDEF(f64quat, aligned_f64quat, 32)']]], + ['golden_5fratio',['golden_ratio',['../a00290.html#ga748cf8642830657c5b7eae04d0a80899',1,'glm']]], + ['gradient_5fpaint_2ehpp',['gradient_paint.hpp',['../a00038.html',1,'']]], + ['greaterthan',['greaterThan',['../a00299.html#ga8f7fa76e06c417b757ddfd438f3f677b',1,'glm::greaterThan(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gadfdb8ea82deca869ddc7e63ea5a63ae4',1,'glm::greaterThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['greaterthanequal',['greaterThanEqual',['../a00299.html#ga388cbeba987dae7b5937f742efa49a5a',1,'glm::greaterThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#ga859975f538940f8d18fe62f916b9abd7',1,'glm::greaterThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['glm_5fgtc_5fbitfield',['GLM_GTC_bitfield',['../a00288.html',1,'']]], + ['glm_5fgtc_5fcolor_5fspace',['GLM_GTC_color_space',['../a00289.html',1,'']]], + ['glm_5fgtc_5fconstants',['GLM_GTC_constants',['../a00290.html',1,'']]], + ['glm_5fgtc_5fepsilon',['GLM_GTC_epsilon',['../a00291.html',1,'']]], + ['glm_5fgtc_5finteger',['GLM_GTC_integer',['../a00292.html',1,'']]], + ['glm_5fgtc_5fmatrix_5faccess',['GLM_GTC_matrix_access',['../a00293.html',1,'']]], + ['glm_5fgtc_5fmatrix_5finteger',['GLM_GTC_matrix_integer',['../a00294.html',1,'']]], + ['glm_5fgtc_5fmatrix_5finverse',['GLM_GTC_matrix_inverse',['../a00295.html',1,'']]], + ['glm_5fgtc_5fmatrix_5ftransform',['GLM_GTC_matrix_transform',['../a00296.html',1,'']]], + ['glm_5fgtc_5fnoise',['GLM_GTC_noise',['../a00297.html',1,'']]], + ['glm_5fgtc_5fpacking',['GLM_GTC_packing',['../a00298.html',1,'']]], + ['glm_5fgtc_5fquaternion',['GLM_GTC_quaternion',['../a00299.html',1,'']]], + ['glm_5fgtc_5frandom',['GLM_GTC_random',['../a00300.html',1,'']]], + ['glm_5fgtc_5freciprocal',['GLM_GTC_reciprocal',['../a00301.html',1,'']]], + ['glm_5fgtc_5fround',['GLM_GTC_round',['../a00302.html',1,'']]], + ['glm_5fgtc_5ftype_5faligned',['GLM_GTC_type_aligned',['../a00303.html',1,'']]], + ['glm_5fgtc_5ftype_5fprecision',['GLM_GTC_type_precision',['../a00304.html',1,'']]], + ['glm_5fgtc_5ftype_5fptr',['GLM_GTC_type_ptr',['../a00305.html',1,'']]], + ['glm_5fgtc_5fulp',['GLM_GTC_ulp',['../a00306.html',1,'']]], + ['glm_5fgtc_5fvec1',['GLM_GTC_vec1',['../a00307.html',1,'']]], + ['glm_5fgtx_5fassociated_5fmin_5fmax',['GLM_GTX_associated_min_max',['../a00308.html',1,'']]], + ['glm_5fgtx_5fbit',['GLM_GTX_bit',['../a00309.html',1,'']]], + ['glm_5fgtx_5fclosest_5fpoint',['GLM_GTX_closest_point',['../a00310.html',1,'']]], + ['glm_5fgtx_5fcolor_5fencoding',['GLM_GTX_color_encoding',['../a00311.html',1,'']]], + ['glm_5fgtx_5fcolor_5fspace',['GLM_GTX_color_space',['../a00312.html',1,'']]], + ['glm_5fgtx_5fcolor_5fspace_5fycocg',['GLM_GTX_color_space_YCoCg',['../a00313.html',1,'']]], + ['glm_5fgtx_5fcommon',['GLM_GTX_common',['../a00314.html',1,'']]], + ['glm_5fgtx_5fcompatibility',['GLM_GTX_compatibility',['../a00315.html',1,'']]], + ['glm_5fgtx_5fcomponent_5fwise',['GLM_GTX_component_wise',['../a00316.html',1,'']]], + ['glm_5fgtx_5fdual_5fquaternion',['GLM_GTX_dual_quaternion',['../a00317.html',1,'']]], + ['glm_5fgtx_5feasing',['GLM_GTX_easing',['../a00318.html',1,'']]], + ['glm_5fgtx_5feuler_5fangles',['GLM_GTX_euler_angles',['../a00319.html',1,'']]], + ['glm_5fgtx_5fextend',['GLM_GTX_extend',['../a00320.html',1,'']]], + ['glm_5fgtx_5fextented_5fmin_5fmax',['GLM_GTX_extented_min_max',['../a00321.html',1,'']]], + ['glm_5fgtx_5fexterior_5fproduct',['GLM_GTX_exterior_product',['../a00322.html',1,'']]], + ['glm_5fgtx_5ffast_5fexponential',['GLM_GTX_fast_exponential',['../a00323.html',1,'']]], + ['glm_5fgtx_5ffast_5fsquare_5froot',['GLM_GTX_fast_square_root',['../a00324.html',1,'']]], + ['glm_5fgtx_5ffast_5ftrigonometry',['GLM_GTX_fast_trigonometry',['../a00325.html',1,'']]], + ['glm_5fgtx_5ffunctions',['GLM_GTX_functions',['../a00326.html',1,'']]], + ['glm_5fgtx_5fgradient_5fpaint',['GLM_GTX_gradient_paint',['../a00327.html',1,'']]], + ['glm_5fgtx_5fhanded_5fcoordinate_5fspace',['GLM_GTX_handed_coordinate_space',['../a00328.html',1,'']]], + ['glm_5fgtx_5fhash',['GLM_GTX_hash',['../a00329.html',1,'']]], + ['glm_5fgtx_5finteger',['GLM_GTX_integer',['../a00330.html',1,'']]], + ['glm_5fgtx_5fintersect',['GLM_GTX_intersect',['../a00331.html',1,'']]], + ['glm_5fgtx_5fio',['GLM_GTX_io',['../a00332.html',1,'']]], + ['glm_5fgtx_5flog_5fbase',['GLM_GTX_log_base',['../a00333.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fcross_5fproduct',['GLM_GTX_matrix_cross_product',['../a00334.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fdecompose',['GLM_GTX_matrix_decompose',['../a00335.html',1,'']]], + ['glm_5fgtx_5fmatrix_5ffactorisation',['GLM_GTX_matrix_factorisation',['../a00336.html',1,'']]], + ['glm_5fgtx_5fmatrix_5finterpolation',['GLM_GTX_matrix_interpolation',['../a00337.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fmajor_5fstorage',['GLM_GTX_matrix_major_storage',['../a00338.html',1,'']]], + ['glm_5fgtx_5fmatrix_5foperation',['GLM_GTX_matrix_operation',['../a00339.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fquery',['GLM_GTX_matrix_query',['../a00340.html',1,'']]], + ['glm_5fgtx_5fmatrix_5ftransform_5f2d',['GLM_GTX_matrix_transform_2d',['../a00341.html',1,'']]], + ['glm_5fgtx_5fmixed_5fproducte',['GLM_GTX_mixed_producte',['../a00342.html',1,'']]], + ['glm_5fgtx_5fnorm',['GLM_GTX_norm',['../a00343.html',1,'']]], + ['glm_5fgtx_5fnormal',['GLM_GTX_normal',['../a00344.html',1,'']]], + ['glm_5fgtx_5fnormalize_5fdot',['GLM_GTX_normalize_dot',['../a00345.html',1,'']]], + ['glm_5fgtx_5fnumber_5fprecision',['GLM_GTX_number_precision',['../a00346.html',1,'']]], + ['glm_5fgtx_5foptimum_5fpow',['GLM_GTX_optimum_pow',['../a00347.html',1,'']]], + ['glm_5fgtx_5forthonormalize',['GLM_GTX_orthonormalize',['../a00348.html',1,'']]], + ['glm_5fgtx_5fperpendicular',['GLM_GTX_perpendicular',['../a00349.html',1,'']]], + ['glm_5fgtx_5fpolar_5fcoordinates',['GLM_GTX_polar_coordinates',['../a00350.html',1,'']]], + ['glm_5fgtx_5fprojection',['GLM_GTX_projection',['../a00351.html',1,'']]], + ['glm_5fgtx_5fquaternion',['GLM_GTX_quaternion',['../a00352.html',1,'']]], + ['glm_5fgtx_5frange',['GLM_GTX_range',['../a00353.html',1,'']]], + ['glm_5fgtx_5fraw_5fdata',['GLM_GTX_raw_data',['../a00354.html',1,'']]], + ['glm_5fgtx_5frotate_5fnormalized_5faxis',['GLM_GTX_rotate_normalized_axis',['../a00355.html',1,'']]], + ['glm_5fgtx_5frotate_5fvector',['GLM_GTX_rotate_vector',['../a00356.html',1,'']]], + ['glm_5fgtx_5fscalar_5frelational',['GLM_GTX_scalar_relational',['../a00357.html',1,'']]], + ['glm_5fgtx_5fspline',['GLM_GTX_spline',['../a00358.html',1,'']]], + ['glm_5fgtx_5fstd_5fbased_5ftype',['GLM_GTX_std_based_type',['../a00359.html',1,'']]], + ['glm_5fgtx_5fstring_5fcast',['GLM_GTX_string_cast',['../a00360.html',1,'']]], + ['glm_5fgtx_5ftexture',['GLM_GTX_texture',['../a00361.html',1,'']]], + ['glm_5fgtx_5ftransform',['GLM_GTX_transform',['../a00362.html',1,'']]], + ['glm_5fgtx_5ftransform2',['GLM_GTX_transform2',['../a00363.html',1,'']]], + ['glm_5fgtx_5ftype_5faligned',['GLM_GTX_type_aligned',['../a00364.html',1,'']]], + ['glm_5fgtx_5ftype_5ftrait',['GLM_GTX_type_trait',['../a00365.html',1,'']]], + ['glm_5fgtx_5fvec_5fswizzle',['GLM_GTX_vec_swizzle',['../a00366.html',1,'']]], + ['glm_5fgtx_5fvector_5fangle',['GLM_GTX_vector_angle',['../a00367.html',1,'']]], + ['glm_5fgtx_5fvector_5fquery',['GLM_GTX_vector_query',['../a00368.html',1,'']]], + ['glm_5fgtx_5fwrap',['GLM_GTX_wrap',['../a00369.html',1,'']]], + ['integer_2ehpp',['integer.hpp',['../a00042.html',1,'']]], + ['integer_2ehpp',['integer.hpp',['../a00041.html',1,'']]], + ['matrix_5ftransform_2ehpp',['matrix_transform.hpp',['../a00109.html',1,'']]], + ['packing_2ehpp',['packing.hpp',['../a00119.html',1,'']]], + ['quaternion_2ehpp',['quaternion.hpp',['../a00126.html',1,'']]], + ['quaternion_2ehpp',['quaternion.hpp',['../a00125.html',1,'']]], + ['scalar_5frelational_2ehpp',['scalar_relational.hpp',['../a00150.html',1,'']]], + ['type_5faligned_2ehpp',['type_aligned.hpp',['../a00161.html',1,'']]], + ['type_5faligned_2ehpp',['type_aligned.hpp',['../a00162.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_7.html b/external/glm-0.9.9.8/doc/api/search/all_7.html new file mode 100644 index 0000000..df6797b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_7.js b/external/glm-0.9.9.8/doc/api/search/all_7.js new file mode 100644 index 0000000..a33f514 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_7.js @@ -0,0 +1,194 @@ +var searchData= +[ + ['half_5fpi',['half_pi',['../a00290.html#ga0c36b41d462e45641faf7d7938948bac',1,'glm']]], + ['handed_5fcoordinate_5fspace_2ehpp',['handed_coordinate_space.hpp',['../a00039.html',1,'']]], + ['hash_2ehpp',['hash.hpp',['../a00040.html',1,'']]], + ['hermite',['hermite',['../a00358.html#gaa69e143f6374d32f934a8edeaa50bac9',1,'glm']]], + ['highestbitvalue',['highestBitValue',['../a00309.html#ga0dcc8fe7c3d3ad60dea409281efa3d05',1,'glm::highestBitValue(genIUType Value)'],['../a00309.html#ga898ef075ccf809a1e480faab48fe96bf',1,'glm::highestBitValue(vec< L, T, Q > const &value)']]], + ['highp_5fbvec1',['highp_bvec1',['../a00266.html#gae8a1e14abae1387274f57741750c06a2',1,'glm']]], + ['highp_5fbvec2',['highp_bvec2',['../a00282.html#gac6c781a85f012d77a75310a3058702c2',1,'glm']]], + ['highp_5fbvec3',['highp_bvec3',['../a00282.html#gaedb70027d89a0a405046aefda4eabaa6',1,'glm']]], + ['highp_5fbvec4',['highp_bvec4',['../a00282.html#gaee663ff64429443ab07a5327074192f6',1,'glm']]], + ['highp_5fddualquat',['highp_ddualquat',['../a00317.html#ga8f67eafa7197d7a668dad5105a463d2a',1,'glm']]], + ['highp_5fdmat2',['highp_dmat2',['../a00284.html#ga369b447bb1b312449b679ea1f90f3cea',1,'glm']]], + ['highp_5fdmat2x2',['highp_dmat2x2',['../a00284.html#gae27ac20302c2e39b6c78e7fe18e62ef7',1,'glm']]], + ['highp_5fdmat2x3',['highp_dmat2x3',['../a00284.html#gad4689ec33bc2c26e10132b174b49001a',1,'glm']]], + ['highp_5fdmat2x4',['highp_dmat2x4',['../a00284.html#ga5ceeb46670fdc000a0701910cc5061c9',1,'glm']]], + ['highp_5fdmat3',['highp_dmat3',['../a00284.html#ga86d6d4dbad92ffdcc759773340e15a97',1,'glm']]], + ['highp_5fdmat3x2',['highp_dmat3x2',['../a00284.html#ga3647309010a2160e9ec89bc6f7c95c35',1,'glm']]], + ['highp_5fdmat3x3',['highp_dmat3x3',['../a00284.html#gae367ea93c4ad8a7c101dd27b8b2b04ce',1,'glm']]], + ['highp_5fdmat3x4',['highp_dmat3x4',['../a00284.html#ga6543eeeb64f48d79a0b96484308c50f0',1,'glm']]], + ['highp_5fdmat4',['highp_dmat4',['../a00284.html#ga945254f459860741138bceb74da496b9',1,'glm']]], + ['highp_5fdmat4x2',['highp_dmat4x2',['../a00284.html#gaeda1f474c668eaecc443bea85a4a4eca',1,'glm']]], + ['highp_5fdmat4x3',['highp_dmat4x3',['../a00284.html#gacf237c2d8832fe8db2d7e187585d34bd',1,'glm']]], + ['highp_5fdmat4x4',['highp_dmat4x4',['../a00284.html#ga118d24a3d12c034e7cccef7bf2f01b8a',1,'glm']]], + ['highp_5fdquat',['highp_dquat',['../a00250.html#gaf13a25f41afc03480b40fc71bd249cec',1,'glm']]], + ['highp_5fdualquat',['highp_dualquat',['../a00317.html#ga9ef5bf1da52a9d4932335a517086ceaf',1,'glm']]], + ['highp_5fdvec1',['highp_dvec1',['../a00269.html#ga77c22c4426da3a6865c88d3fc907e3fe',1,'glm']]], + ['highp_5fdvec2',['highp_dvec2',['../a00282.html#gab98d77cca255914f5e29697fcbc2d975',1,'glm']]], + ['highp_5fdvec3',['highp_dvec3',['../a00282.html#gab24dc20dcdc5b71282634bdbf6b70105',1,'glm']]], + ['highp_5fdvec4',['highp_dvec4',['../a00282.html#gab654f4ed4a99d64a6cfc65320c2a7590',1,'glm']]], + ['highp_5ff32',['highp_f32',['../a00304.html#ga6906e1ef0b34064b4b675489c5c38725',1,'glm']]], + ['highp_5ff32mat2',['highp_f32mat2',['../a00304.html#ga298f7d4d273678d0282812368da27fda',1,'glm']]], + ['highp_5ff32mat2x2',['highp_f32mat2x2',['../a00304.html#gae5eb02d92b7d4605a4b7f37ae5cb2968',1,'glm']]], + ['highp_5ff32mat2x3',['highp_f32mat2x3',['../a00304.html#ga0aeb5cb001473b08c88175012708a379',1,'glm']]], + ['highp_5ff32mat2x4',['highp_f32mat2x4',['../a00304.html#ga88938ee1e7981fa3402e88da6ad74531',1,'glm']]], + ['highp_5ff32mat3',['highp_f32mat3',['../a00304.html#ga24f9ef3263b1638564713892cc37981f',1,'glm']]], + ['highp_5ff32mat3x2',['highp_f32mat3x2',['../a00304.html#ga36537e701456f12c20e73f469cac4967',1,'glm']]], + ['highp_5ff32mat3x3',['highp_f32mat3x3',['../a00304.html#gaab691ae40c37976d268d8cac0096e0e1',1,'glm']]], + ['highp_5ff32mat3x4',['highp_f32mat3x4',['../a00304.html#gaa5086dbd6efb272d13fc88829330861d',1,'glm']]], + ['highp_5ff32mat4',['highp_f32mat4',['../a00304.html#ga14c90ca49885723f51d06e295587236f',1,'glm']]], + ['highp_5ff32mat4x2',['highp_f32mat4x2',['../a00304.html#ga602e119c6b246b4f6edcf66845f2aa0f',1,'glm']]], + ['highp_5ff32mat4x3',['highp_f32mat4x3',['../a00304.html#ga66bffdd8e5c0d3ef9958bbab9ca1ba59',1,'glm']]], + ['highp_5ff32mat4x4',['highp_f32mat4x4',['../a00304.html#gaf1b712b97b2322685fbbed28febe5f84',1,'glm']]], + ['highp_5ff32quat',['highp_f32quat',['../a00304.html#ga4252cf7f5b0e3cd47c3d3badf0ef43b3',1,'glm']]], + ['highp_5ff32vec1',['highp_f32vec1',['../a00304.html#gab1b1c9e8667902b78b2c330e4d383a61',1,'glm']]], + ['highp_5ff32vec2',['highp_f32vec2',['../a00304.html#ga0b8ebd4262331e139ff257d7cf2a4b77',1,'glm']]], + ['highp_5ff32vec3',['highp_f32vec3',['../a00304.html#ga522775dbcc6d96246a1c5cf02344fd8c',1,'glm']]], + ['highp_5ff32vec4',['highp_f32vec4',['../a00304.html#ga0f038d4e09862a74f03d102c59eda73e',1,'glm']]], + ['highp_5ff64',['highp_f64',['../a00304.html#ga51d5266017d88f62737c1973923a7cf4',1,'glm']]], + ['highp_5ff64mat2',['highp_f64mat2',['../a00304.html#gaf7adb92ce8de0afaff01436b039fd924',1,'glm']]], + ['highp_5ff64mat2x2',['highp_f64mat2x2',['../a00304.html#ga773ea237a051827cfc20de960bc73ff0',1,'glm']]], + ['highp_5ff64mat2x3',['highp_f64mat2x3',['../a00304.html#ga8342c7469384c6d769cacc9e309278d9',1,'glm']]], + ['highp_5ff64mat2x4',['highp_f64mat2x4',['../a00304.html#ga5a67a7440b9c0d1538533540f99036a5',1,'glm']]], + ['highp_5ff64mat3',['highp_f64mat3',['../a00304.html#ga609bf0ace941d6ab1bb2f9522a04e546',1,'glm']]], + ['highp_5ff64mat3x2',['highp_f64mat3x2',['../a00304.html#ga5bdbfb4ce7d05ce1e1b663f50be17e8a',1,'glm']]], + ['highp_5ff64mat3x3',['highp_f64mat3x3',['../a00304.html#ga7c2cadb9b85cc7e0d125db21ca19dea4',1,'glm']]], + ['highp_5ff64mat3x4',['highp_f64mat3x4',['../a00304.html#gad310b1dddeec9ec837a104e7db8de580',1,'glm']]], + ['highp_5ff64mat4',['highp_f64mat4',['../a00304.html#gad308e0ed27d64daa4213fb257fcbd5a5',1,'glm']]], + ['highp_5ff64mat4x2',['highp_f64mat4x2',['../a00304.html#ga58c4631421e323e252fc716b6103e38c',1,'glm']]], + ['highp_5ff64mat4x3',['highp_f64mat4x3',['../a00304.html#gae94823d65648e44d972863c6caa13103',1,'glm']]], + ['highp_5ff64mat4x4',['highp_f64mat4x4',['../a00304.html#ga09a2374b725c4246d263ee36fb66434c',1,'glm']]], + ['highp_5ff64quat',['highp_f64quat',['../a00304.html#gafcfdd74a115163af2ce1093551747352',1,'glm']]], + ['highp_5ff64vec1',['highp_f64vec1',['../a00304.html#ga62c31b133ceee9984fbee05ac4c434a9',1,'glm']]], + ['highp_5ff64vec2',['highp_f64vec2',['../a00304.html#ga670ea1b0a1172bc73b1d7c1e0c26cce2',1,'glm']]], + ['highp_5ff64vec3',['highp_f64vec3',['../a00304.html#gacd1196090ece7a69fb5c3e43a7d4d851',1,'glm']]], + ['highp_5ff64vec4',['highp_f64vec4',['../a00304.html#ga61185c44c8cc0b25d9a0f67d8a267444',1,'glm']]], + ['highp_5ffdualquat',['highp_fdualquat',['../a00317.html#ga4c4e55e9c99dc57b299ed590968da564',1,'glm']]], + ['highp_5ffloat32',['highp_float32',['../a00304.html#gac5a7f21136e0a78d0a1b9f60ef2f8aea',1,'glm']]], + ['highp_5ffloat32_5ft',['highp_float32_t',['../a00304.html#ga5376ef18dca9d248897c3363ef5a06b2',1,'glm']]], + ['highp_5ffloat64',['highp_float64',['../a00304.html#gadbb198a4d7aad82a0f4dc466ef6f6215',1,'glm']]], + ['highp_5ffloat64_5ft',['highp_float64_t',['../a00304.html#gaaeeb0077198cff40e3f48b1108ece139',1,'glm']]], + ['highp_5ffmat2',['highp_fmat2',['../a00304.html#gae98c88d9a7befa9b5877f49176225535',1,'glm']]], + ['highp_5ffmat2x2',['highp_fmat2x2',['../a00304.html#ga28635abcddb2f3e92c33c3f0fcc682ad',1,'glm']]], + ['highp_5ffmat2x3',['highp_fmat2x3',['../a00304.html#gacf111095594996fef29067b2454fccad',1,'glm']]], + ['highp_5ffmat2x4',['highp_fmat2x4',['../a00304.html#ga4920a1536f161f7ded1d6909b7fef0d2',1,'glm']]], + ['highp_5ffmat3',['highp_fmat3',['../a00304.html#gaed2dc69e0d507d4191092dbd44b3eb75',1,'glm']]], + ['highp_5ffmat3x2',['highp_fmat3x2',['../a00304.html#gae54e4d1aeb5a0f0c64822e6f1b299e19',1,'glm']]], + ['highp_5ffmat3x3',['highp_fmat3x3',['../a00304.html#gaa5b44d3ef6efcf33f44876673a7a936e',1,'glm']]], + ['highp_5ffmat3x4',['highp_fmat3x4',['../a00304.html#ga961fac2a885907ffcf4d40daac6615c5',1,'glm']]], + ['highp_5ffmat4',['highp_fmat4',['../a00304.html#gabf28443ce0cc0959077ec39b21f32c39',1,'glm']]], + ['highp_5ffmat4x2',['highp_fmat4x2',['../a00304.html#ga076961cf2d120c7168b957cb2ed107b3',1,'glm']]], + ['highp_5ffmat4x3',['highp_fmat4x3',['../a00304.html#gae406ec670f64170a7437b5e302eeb2cb',1,'glm']]], + ['highp_5ffmat4x4',['highp_fmat4x4',['../a00304.html#gaee80c7cd3caa0f2635058656755f6f69',1,'glm']]], + ['highp_5ffvec1',['highp_fvec1',['../a00304.html#gaa1040342c4efdedc8f90e6267db8d41c',1,'glm']]], + ['highp_5ffvec2',['highp_fvec2',['../a00304.html#ga7c0d196f5fa79f7e892a2f323a0be1ae',1,'glm']]], + ['highp_5ffvec3',['highp_fvec3',['../a00304.html#ga6ef77413883f48d6b53b4169b25edbd0',1,'glm']]], + ['highp_5ffvec4',['highp_fvec4',['../a00304.html#ga8b839abbb44f5102609eed89f6ed61f7',1,'glm']]], + ['highp_5fi16',['highp_i16',['../a00304.html#ga0336abc2604dd2c20c30e036454b64f8',1,'glm']]], + ['highp_5fi16vec1',['highp_i16vec1',['../a00304.html#ga70fdfcc1fd38084bde83c3f06a8b9f19',1,'glm']]], + ['highp_5fi16vec2',['highp_i16vec2',['../a00304.html#gaa7db3ad10947cf70cae6474d05ebd227',1,'glm']]], + ['highp_5fi16vec3',['highp_i16vec3',['../a00304.html#ga5609c8fa2b7eac3dec337d321cb0ca96',1,'glm']]], + ['highp_5fi16vec4',['highp_i16vec4',['../a00304.html#ga7a18659438828f91ccca28f1a1e067b4',1,'glm']]], + ['highp_5fi32',['highp_i32',['../a00304.html#ga727675ac6b5d2fc699520e0059735e25',1,'glm']]], + ['highp_5fi32vec1',['highp_i32vec1',['../a00304.html#ga6a9d71cc62745302f70422b7dc98755c',1,'glm']]], + ['highp_5fi32vec2',['highp_i32vec2',['../a00304.html#gaa9b4579f8e6f3d9b649a965bcb785530',1,'glm']]], + ['highp_5fi32vec3',['highp_i32vec3',['../a00304.html#ga31e070ea3bdee623e6e18a61ba5718b1',1,'glm']]], + ['highp_5fi32vec4',['highp_i32vec4',['../a00304.html#gadf70eaaa230aeed5a4c9f4c9c5c55902',1,'glm']]], + ['highp_5fi64',['highp_i64',['../a00304.html#gac25db6d2b1e2a0f351b77ba3409ac4cd',1,'glm']]], + ['highp_5fi64vec1',['highp_i64vec1',['../a00304.html#gabd2fda3cd208acf5a370ec9b5b3c58d4',1,'glm']]], + ['highp_5fi64vec2',['highp_i64vec2',['../a00304.html#gad9d1903cb20899966e8ebe0670889a5f',1,'glm']]], + ['highp_5fi64vec3',['highp_i64vec3',['../a00304.html#ga62324224b9c6cce9c6b4db96bb704a8a',1,'glm']]], + ['highp_5fi64vec4',['highp_i64vec4',['../a00304.html#gad23b1be9b3bf20352089a6b738f0ebba',1,'glm']]], + ['highp_5fi8',['highp_i8',['../a00304.html#gacb88796f2d08ef253d0345aff20c3aee',1,'glm']]], + ['highp_5fi8vec1',['highp_i8vec1',['../a00304.html#ga1d8c10949691b0fd990253476f47beb3',1,'glm']]], + ['highp_5fi8vec2',['highp_i8vec2',['../a00304.html#ga50542e4cb9b2f9bec213b66e06145d07',1,'glm']]], + ['highp_5fi8vec3',['highp_i8vec3',['../a00304.html#ga8396bfdc081d9113190d0c39c9f67084',1,'glm']]], + ['highp_5fi8vec4',['highp_i8vec4',['../a00304.html#ga4824e3ddf6e608117dfe4809430737b4',1,'glm']]], + ['highp_5fimat2',['highp_imat2',['../a00294.html#ga8499cc3b016003f835314c1c756e9db9',1,'glm']]], + ['highp_5fimat2x2',['highp_imat2x2',['../a00294.html#gaa389e2d1c3b10941cae870bc0aeba5b3',1,'glm']]], + ['highp_5fimat2x3',['highp_imat2x3',['../a00294.html#gaba49d890e06c9444795f5a133fbf1336',1,'glm']]], + ['highp_5fimat2x4',['highp_imat2x4',['../a00294.html#ga05a970fd4366dad6c8a0be676b1eae5b',1,'glm']]], + ['highp_5fimat3',['highp_imat3',['../a00294.html#gaca4506a3efa679eff7c006d9826291fd',1,'glm']]], + ['highp_5fimat3x2',['highp_imat3x2',['../a00294.html#ga91c671c3ff9706c2393e78b22fd84bcb',1,'glm']]], + ['highp_5fimat3x3',['highp_imat3x3',['../a00294.html#ga07d7b7173e2a6f843ff5f1c615a95b41',1,'glm']]], + ['highp_5fimat3x4',['highp_imat3x4',['../a00294.html#ga53008f580be99018a17b357b5a4ffc0d',1,'glm']]], + ['highp_5fimat4',['highp_imat4',['../a00294.html#ga7cfb09b34e0fcf73eaf6512d6483ef56',1,'glm']]], + ['highp_5fimat4x2',['highp_imat4x2',['../a00294.html#ga1858820fb292cae396408b2034407f72',1,'glm']]], + ['highp_5fimat4x3',['highp_imat4x3',['../a00294.html#ga6be0b80ae74bb309bc5b964d93d68fc5',1,'glm']]], + ['highp_5fimat4x4',['highp_imat4x4',['../a00294.html#ga2c783ee6f8f040ab37df2f70392c8b44',1,'glm']]], + ['highp_5fint16',['highp_int16',['../a00304.html#ga5fde0fa4a3852a9dd5d637a92ee74718',1,'glm']]], + ['highp_5fint16_5ft',['highp_int16_t',['../a00304.html#gacaea06d0a79ef3172e887a7a6ba434ff',1,'glm']]], + ['highp_5fint32',['highp_int32',['../a00304.html#ga84ed04b4e0de18c977e932d617e7c223',1,'glm']]], + ['highp_5fint32_5ft',['highp_int32_t',['../a00304.html#ga2c71c8bd9e2fe7d2e93ca250d8b6157f',1,'glm']]], + ['highp_5fint64',['highp_int64',['../a00304.html#ga226a8d52b4e3f77aaa6231135e886aac',1,'glm']]], + ['highp_5fint64_5ft',['highp_int64_t',['../a00304.html#ga73c6abb280a45feeff60f9accaee91f3',1,'glm']]], + ['highp_5fint8',['highp_int8',['../a00304.html#gad0549c902a96a7164e4ac858d5f39dbf',1,'glm']]], + ['highp_5fint8_5ft',['highp_int8_t',['../a00304.html#ga1085c50dd8fbeb5e7e609b1c127492a5',1,'glm']]], + ['highp_5fivec1',['highp_ivec1',['../a00273.html#ga7e02566f2bd2caa68e61be45a477c77e',1,'glm']]], + ['highp_5fivec2',['highp_ivec2',['../a00282.html#gaa18f6b80b41c214f10666948539c1f93',1,'glm']]], + ['highp_5fivec3',['highp_ivec3',['../a00282.html#ga7dd782c3ef5719bc6d5c3ca826b8ad18',1,'glm']]], + ['highp_5fivec4',['highp_ivec4',['../a00282.html#gafb84dccdf5d82443df3ffc8428dcaf3e',1,'glm']]], + ['highp_5fmat2',['highp_mat2',['../a00284.html#ga4d5a0055544a516237dcdace049b143d',1,'glm']]], + ['highp_5fmat2x2',['highp_mat2x2',['../a00284.html#ga2352ae43b284c9f71446674c0208c05d',1,'glm']]], + ['highp_5fmat2x3',['highp_mat2x3',['../a00284.html#ga7a0e3fe41512b0494e598f5c58722f19',1,'glm']]], + ['highp_5fmat2x4',['highp_mat2x4',['../a00284.html#ga61f36a81f2ed1b5f9fc8bc3b26faec8f',1,'glm']]], + ['highp_5fmat3',['highp_mat3',['../a00284.html#ga3fd9849f3da5ed6e3decc3fb10a20b3e',1,'glm']]], + ['highp_5fmat3x2',['highp_mat3x2',['../a00284.html#ga1eda47a00027ec440eac05d63739c71b',1,'glm']]], + ['highp_5fmat3x3',['highp_mat3x3',['../a00284.html#ga2ea82e12f4d7afcfce8f59894d400230',1,'glm']]], + ['highp_5fmat3x4',['highp_mat3x4',['../a00284.html#ga6454b3a26ea30f69de8e44c08a63d1b7',1,'glm']]], + ['highp_5fmat4',['highp_mat4',['../a00284.html#gad72e13d669d039f12ae5afa23148adc1',1,'glm']]], + ['highp_5fmat4x2',['highp_mat4x2',['../a00284.html#gab68b66e6d2c37b804d0baf970fa4f0e5',1,'glm']]], + ['highp_5fmat4x3',['highp_mat4x3',['../a00284.html#ga8d5a4e65fb976e4553b84995b95ecb38',1,'glm']]], + ['highp_5fmat4x4',['highp_mat4x4',['../a00284.html#ga58cc504be0e3b61c48bc91554a767b9f',1,'glm']]], + ['highp_5fquat',['highp_quat',['../a00253.html#gaa2fd8085774376310aeb80588e0eab6e',1,'glm']]], + ['highp_5fu16',['highp_u16',['../a00304.html#ga8e62c883d13f47015f3b70ed88751369',1,'glm']]], + ['highp_5fu16vec1',['highp_u16vec1',['../a00304.html#gad064202b4cf9a2972475c03de657cb39',1,'glm']]], + ['highp_5fu16vec2',['highp_u16vec2',['../a00304.html#ga791b15ceb3f1e09d1a0ec6f3057ca159',1,'glm']]], + ['highp_5fu16vec3',['highp_u16vec3',['../a00304.html#gacfd806749008f0ade6ac4bb9dd91082f',1,'glm']]], + ['highp_5fu16vec4',['highp_u16vec4',['../a00304.html#ga8a85a3d54a8a9e14fe7a1f96196c4f61',1,'glm']]], + ['highp_5fu32',['highp_u32',['../a00304.html#ga7a6f1929464dcc680b16381a4ee5f2cf',1,'glm']]], + ['highp_5fu32vec1',['highp_u32vec1',['../a00304.html#ga0e35a565b9036bfc3989f5e23a0792e3',1,'glm']]], + ['highp_5fu32vec2',['highp_u32vec2',['../a00304.html#ga2f256334f83fba4c2d219e414b51df6c',1,'glm']]], + ['highp_5fu32vec3',['highp_u32vec3',['../a00304.html#gaf14d7a50502464e7cbfa074f24684cb1',1,'glm']]], + ['highp_5fu32vec4',['highp_u32vec4',['../a00304.html#ga22166f0da65038b447f3c5e534fff1c2',1,'glm']]], + ['highp_5fu64',['highp_u64',['../a00304.html#ga0c181fdf06a309691999926b6690c969',1,'glm']]], + ['highp_5fu64vec1',['highp_u64vec1',['../a00304.html#gae4fe774744852c4d7d069be2e05257ab',1,'glm']]], + ['highp_5fu64vec2',['highp_u64vec2',['../a00304.html#ga78f77b8b2d17b431ac5a68c0b5d7050d',1,'glm']]], + ['highp_5fu64vec3',['highp_u64vec3',['../a00304.html#ga41bdabea6e589029659331ba47eb78c1',1,'glm']]], + ['highp_5fu64vec4',['highp_u64vec4',['../a00304.html#ga4f15b41aa24b11cc42ad5798c04a2325',1,'glm']]], + ['highp_5fu8',['highp_u8',['../a00304.html#gacd1259f3a9e8d2a9df5be2d74322ef9c',1,'glm']]], + ['highp_5fu8vec1',['highp_u8vec1',['../a00304.html#ga8408cb76b6550ff01fa0a3024e7b68d2',1,'glm']]], + ['highp_5fu8vec2',['highp_u8vec2',['../a00304.html#ga27585b7c3ab300059f11fcba465f6fd2',1,'glm']]], + ['highp_5fu8vec3',['highp_u8vec3',['../a00304.html#ga45721c13b956eb691cbd6c6c1429167a',1,'glm']]], + ['highp_5fu8vec4',['highp_u8vec4',['../a00304.html#gae0b75ad0fed8c00ddc0b5ce335d31060',1,'glm']]], + ['highp_5fuint16',['highp_uint16',['../a00304.html#ga746dc6da204f5622e395f492997dbf57',1,'glm']]], + ['highp_5fuint16_5ft',['highp_uint16_t',['../a00304.html#gacf54c3330ef60aa3d16cb676c7bcb8c7',1,'glm']]], + ['highp_5fuint32',['highp_uint32',['../a00304.html#ga256b12b650c3f2fb86878fd1c5db8bc3',1,'glm']]], + ['highp_5fuint32_5ft',['highp_uint32_t',['../a00304.html#gae978599c9711ac263ba732d4ac225b0e',1,'glm']]], + ['highp_5fuint64',['highp_uint64',['../a00304.html#gaa38d732f5d4a7bc42a1b43b9d3c141ce',1,'glm']]], + ['highp_5fuint64_5ft',['highp_uint64_t',['../a00304.html#gaa46172d7dc1c7ffe3e78107ff88adf08',1,'glm']]], + ['highp_5fuint8',['highp_uint8',['../a00304.html#ga97432f9979e73e66567361fd01e4cffb',1,'glm']]], + ['highp_5fuint8_5ft',['highp_uint8_t',['../a00304.html#gac4e00a26a2adb5f2c0a7096810df29e5',1,'glm']]], + ['highp_5fumat2',['highp_umat2',['../a00294.html#ga42cbce64c4c1cd121b8437daa6e110de',1,'glm']]], + ['highp_5fumat2x2',['highp_umat2x2',['../a00294.html#ga5337b7bc95f9cbac08a0c00b3f936b28',1,'glm']]], + ['highp_5fumat2x3',['highp_umat2x3',['../a00294.html#ga90718c7128320b24b52f9ea70e643ad4',1,'glm']]], + ['highp_5fumat2x4',['highp_umat2x4',['../a00294.html#gadca0a4724b4a6f56a2355b6f6e19248b',1,'glm']]], + ['highp_5fumat3',['highp_umat3',['../a00294.html#gaa1143120339b7d2d469d327662e8a172',1,'glm']]], + ['highp_5fumat3x2',['highp_umat3x2',['../a00294.html#ga844a5da2e7fc03fc7cccc7f1b70809c4',1,'glm']]], + ['highp_5fumat3x3',['highp_umat3x3',['../a00294.html#ga1f7d41c36b980774a4d2e7c1647fb4b2',1,'glm']]], + ['highp_5fumat3x4',['highp_umat3x4',['../a00294.html#ga25ee15c323924f2d0fe9896d329e5086',1,'glm']]], + ['highp_5fumat4',['highp_umat4',['../a00294.html#gaf665e4e78c2cc32a54ab40325738f9c9',1,'glm']]], + ['highp_5fumat4x2',['highp_umat4x2',['../a00294.html#gae69eb82ec08b0dc9bf2ead2a339ff801',1,'glm']]], + ['highp_5fumat4x3',['highp_umat4x3',['../a00294.html#ga45a8163d02c43216252056b0c120f3a5',1,'glm']]], + ['highp_5fumat4x4',['highp_umat4x4',['../a00294.html#ga6a56cbb769aed334c95241664415f9ba',1,'glm']]], + ['highp_5fuvec1',['highp_uvec1',['../a00277.html#gacda57dd8c2bff4934c7f09ddd87c0f39',1,'glm']]], + ['highp_5fuvec2',['highp_uvec2',['../a00282.html#gad5dd50da9e37387ca6b4e6f9c80fe6f8',1,'glm']]], + ['highp_5fuvec3',['highp_uvec3',['../a00282.html#gaef61508dd40ec523416697982f9ceaae',1,'glm']]], + ['highp_5fuvec4',['highp_uvec4',['../a00282.html#gaeebd7dd9f3e678691f8620241e5f9221',1,'glm']]], + ['highp_5fvec1',['highp_vec1',['../a00271.html#ga9e8ed21862a897c156c0b2abca70b1e9',1,'glm']]], + ['highp_5fvec2',['highp_vec2',['../a00282.html#gaa92c1954d71b1e7914874bd787b43d1c',1,'glm']]], + ['highp_5fvec3',['highp_vec3',['../a00282.html#gaca61dfaccbf2f58f2d8063a4e76b44a9',1,'glm']]], + ['highp_5fvec4',['highp_vec4',['../a00282.html#gad281decae52948b82feb3a9db8f63a7b',1,'glm']]], + ['hsvcolor',['hsvColor',['../a00312.html#ga789802bec2d4fe0f9741c731b4a8a7d8',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_8.html b/external/glm-0.9.9.8/doc/api/search/all_8.html new file mode 100644 index 0000000..008b9f9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_8.js b/external/glm-0.9.9.8/doc/api/search/all_8.js new file mode 100644 index 0000000..6c5e12a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_8.js @@ -0,0 +1,93 @@ +var searchData= +[ + ['integer_20functions',['Integer functions',['../a00370.html',1,'']]], + ['i16',['i16',['../a00304.html#ga3ab5fe184343d394fb6c2723c3ee3699',1,'glm']]], + ['i16vec1',['i16vec1',['../a00304.html#gafe730798732aa7b0647096a004db1b1c',1,'glm']]], + ['i16vec2',['i16vec2',['../a00304.html#ga2996630ba7b10535af8e065cf326f761',1,'glm']]], + ['i16vec3',['i16vec3',['../a00304.html#gae9c90a867a6026b1f6eab00456f3fb8b',1,'glm']]], + ['i16vec4',['i16vec4',['../a00304.html#ga550831bfc26d1e0101c1cb3d79938c06',1,'glm']]], + ['i32',['i32',['../a00304.html#ga96faea43ac5f875d2d3ffbf8d213e3eb',1,'glm']]], + ['i32vec1',['i32vec1',['../a00304.html#ga54b8a4e0f5a7203a821bf8e9c1265bcf',1,'glm']]], + ['i32vec2',['i32vec2',['../a00304.html#ga8b44026374982dcd1e52d22bac99247e',1,'glm']]], + ['i32vec3',['i32vec3',['../a00304.html#ga7f526b5cccef126a2ebcf9bdd890394e',1,'glm']]], + ['i32vec4',['i32vec4',['../a00304.html#ga866a05905c49912309ed1fa5f5980e61',1,'glm']]], + ['i64',['i64',['../a00304.html#gadb997e409103d4da18abd837e636a496',1,'glm']]], + ['i64vec1',['i64vec1',['../a00304.html#ga2b65767f8b5aed1bd1cf86c541662b50',1,'glm']]], + ['i64vec2',['i64vec2',['../a00304.html#ga48310188e1d0c616bf8d78c92447523b',1,'glm']]], + ['i64vec3',['i64vec3',['../a00304.html#ga667948cfe6fb3d6606c750729ec49f77',1,'glm']]], + ['i64vec4',['i64vec4',['../a00304.html#gaa4e31c3d9de067029efeb161a44b0232',1,'glm']]], + ['i8',['i8',['../a00304.html#ga302ec977b0c0c3ea245b6c9275495355',1,'glm']]], + ['i8vec1',['i8vec1',['../a00304.html#ga7e80d927ff0a3861ced68dfff8a4020b',1,'glm']]], + ['i8vec2',['i8vec2',['../a00304.html#gad06935764d78f43f9d542c784c2212ec',1,'glm']]], + ['i8vec3',['i8vec3',['../a00304.html#ga5a08d36cf7917cd19d081a603d0eae3e',1,'glm']]], + ['i8vec4',['i8vec4',['../a00304.html#ga4177a44206121dabc8c4ff1c0f544574',1,'glm']]], + ['identity',['identity',['../a00247.html#ga81696f2b8d1db02ea1aff8da8f269314',1,'glm']]], + ['imat2',['imat2',['../a00294.html#gaabe04f9948d4a213bb1c20137de03e01',1,'glm']]], + ['imat2x2',['imat2x2',['../a00294.html#gaa4732a240522ad9bc28144fda2fc14ec',1,'glm']]], + ['imat2x3',['imat2x3',['../a00294.html#ga3f42dd3d5d94a0fd5706f7ec8dd0c605',1,'glm']]], + ['imat2x4',['imat2x4',['../a00294.html#ga9d8faafdca42583d67e792dd038fc668',1,'glm']]], + ['imat3',['imat3',['../a00294.html#ga038f68437155ffa3c2583a15264a8195',1,'glm']]], + ['imat3x2',['imat3x2',['../a00294.html#ga7b33bbe4f12c060892bd3cc8d4cd737f',1,'glm']]], + ['imat3x3',['imat3x3',['../a00294.html#ga6aacc960f62e8f7d2fe9d32d5050e7a4',1,'glm']]], + ['imat3x4',['imat3x4',['../a00294.html#ga6e9ce23496d8b08dfc302d4039694b58',1,'glm']]], + ['imat4',['imat4',['../a00294.html#ga96b0d26a33b81bb6a60ca0f39682f7eb',1,'glm']]], + ['imat4x2',['imat4x2',['../a00294.html#ga8ce7ef51d8b2c1901fa5414deccbc3fa',1,'glm']]], + ['imat4x3',['imat4x3',['../a00294.html#ga705ee0bf49d6c3de4404ce2481bf0df5',1,'glm']]], + ['imat4x4',['imat4x4',['../a00294.html#ga43ed5e4f475b6f4cad7cba78f29c405b',1,'glm']]], + ['imulextended',['imulExtended',['../a00370.html#gac0c510a70e852f57594a9141848642e3',1,'glm']]], + ['infiniteperspective',['infinitePerspective',['../a00243.html#ga44fa38a18349450325cae2661bb115ca',1,'glm']]], + ['infiniteperspectivelh',['infinitePerspectiveLH',['../a00243.html#ga3201b30f5b3ea0f933246d87bfb992a9',1,'glm']]], + ['infiniteperspectiverh',['infinitePerspectiveRH',['../a00243.html#ga99672ffe5714ef478dab2437255fe7e1',1,'glm']]], + ['int1',['int1',['../a00315.html#ga0670a2111b5e4a6410bd027fa0232fc3',1,'glm']]], + ['int16',['int16',['../a00260.html#ga259fa4834387bd68627ddf37bb3ebdb9',1,'glm']]], + ['int16_5ft',['int16_t',['../a00304.html#gae8f5e3e964ca2ae240adc2c0d74adede',1,'glm']]], + ['int1x1',['int1x1',['../a00315.html#ga056ffe02d3a45af626f8e62221881c7a',1,'glm']]], + ['int2',['int2',['../a00315.html#gafe3a8fd56354caafe24bfe1b1e3ad22a',1,'glm']]], + ['int2x2',['int2x2',['../a00315.html#ga4e5ce477c15836b21e3c42daac68554d',1,'glm']]], + ['int2x3',['int2x3',['../a00315.html#ga197ded5ad8354f6b6fb91189d7a269b3',1,'glm']]], + ['int2x4',['int2x4',['../a00315.html#ga2749d59a7fddbac44f34ba78e57ef807',1,'glm']]], + ['int3',['int3',['../a00315.html#ga909c38a425f215a50c847145d7da09f0',1,'glm']]], + ['int32',['int32',['../a00260.html#ga43d43196463bde49cb067f5c20ab8481',1,'glm']]], + ['int32_5ft',['int32_t',['../a00304.html#ga042ef09ff2f0cb24a36f541bcb3a3710',1,'glm']]], + ['int3x2',['int3x2',['../a00315.html#gaa4cbe16a92cf3664376c7a2fc5126aa8',1,'glm']]], + ['int3x3',['int3x3',['../a00315.html#ga15c9649286f0bf431bdf9b3509580048',1,'glm']]], + ['int3x4',['int3x4',['../a00315.html#gaacac46ddc7d15d0f9529d05c92946a0f',1,'glm']]], + ['int4',['int4',['../a00315.html#gaecdef18c819c205aeee9f94dc93de56a',1,'glm']]], + ['int4x2',['int4x2',['../a00315.html#ga97a39dd9bc7d572810d80b8467cbffa1',1,'glm']]], + ['int4x3',['int4x3',['../a00315.html#gae4a2c53f14aeec9a17c2b81142b7e82d',1,'glm']]], + ['int4x4',['int4x4',['../a00315.html#ga04dee1552424198b8f58b377c2ee00d8',1,'glm']]], + ['int64',['int64',['../a00260.html#gaff5189f97f9e842d9636a0f240001b2e',1,'glm']]], + ['int64_5ft',['int64_t',['../a00304.html#ga322a7d7d2c2c68994dc872a33de63c61',1,'glm']]], + ['int8',['int8',['../a00260.html#ga1b956fe1df85f3c132b21edb4e116458',1,'glm']]], + ['int8_5ft',['int8_t',['../a00304.html#ga4bf09d8838a86866b39ee6e109341645',1,'glm']]], + ['intbitstofloat',['intBitsToFloat',['../a00241.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4',1,'glm::intBitsToFloat(int const &v)'],['../a00241.html#ga7a0a8291a1cf3e1c2aee33030a1bd7b0',1,'glm::intBitsToFloat(vec< L, int, Q > const &v)']]], + ['integer_2ehpp',['integer.hpp',['../a00043.html',1,'']]], + ['intermediate',['intermediate',['../a00352.html#gacc5cd5f3e78de61d141c2355417424de',1,'glm']]], + ['interpolate',['interpolate',['../a00337.html#ga4e67863d150724b10c1ac00972dc958c',1,'glm']]], + ['intersect_2ehpp',['intersect.hpp',['../a00044.html',1,'']]], + ['intersectlinesphere',['intersectLineSphere',['../a00331.html#ga9c68139f3d8a4f3d7fe45f9dbc0de5b7',1,'glm']]], + ['intersectlinetriangle',['intersectLineTriangle',['../a00331.html#ga9d29b9b3acb504d43986502f42740df4',1,'glm']]], + ['intersectrayplane',['intersectRayPlane',['../a00331.html#gad3697a9700ea379739a667ea02573488',1,'glm']]], + ['intersectraysphere',['intersectRaySphere',['../a00331.html#gac88f8cd84c4bcb5b947d56acbbcfa56e',1,'glm::intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, typename genType::value_type const sphereRadiusSquered, typename genType::value_type &intersectionDistance)'],['../a00331.html#gad28c00515b823b579c608aafa1100c1d',1,'glm::intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, const typename genType::value_type sphereRadius, genType &intersectionPosition, genType &intersectionNormal)']]], + ['intersectraytriangle',['intersectRayTriangle',['../a00331.html#ga65bf2c594482f04881c36bc761f9e946',1,'glm']]], + ['inverse',['inverse',['../a00248.html#gab41da854ae678e23e114b598cbca4065',1,'glm::inverse(qua< T, Q > const &q)'],['../a00317.html#ga070f521a953f6461af4ab4cf8ccbf27e',1,'glm::inverse(tdualquat< T, Q > const &q)'],['../a00371.html#gaed509fe8129b01e4f20a6d0de5690091',1,'glm::inverse(mat< C, R, T, Q > const &m)']]], + ['inversesqrt',['inversesqrt',['../a00242.html#ga523dd6bd0ad9f75ae2d24c8e4b017b7a',1,'glm']]], + ['inversetranspose',['inverseTranspose',['../a00295.html#gab213cd0e3ead5f316d583f99d6312008',1,'glm']]], + ['io_2ehpp',['io.hpp',['../a00045.html',1,'']]], + ['iround',['iround',['../a00292.html#ga57824268ebe13a922f1d69a5d37f637f',1,'glm']]], + ['iscompnull',['isCompNull',['../a00368.html#gaf6ec1688eab7442fe96fe4941d5d4e76',1,'glm']]], + ['isdenormal',['isdenormal',['../a00314.html#ga74aa7c7462245d83bd5a9edf9c6c2d91',1,'glm']]], + ['isfinite',['isfinite',['../a00315.html#gaf4b04dcd3526996d68c1bfe17bfc8657',1,'glm::isfinite(genType const &x)'],['../a00315.html#gac3b12b8ac3014418fe53c299478b6603',1,'glm::isfinite(const vec< 1, T, Q > &x)'],['../a00315.html#ga8e76dc3e406ce6a4155c2b12a2e4b084',1,'glm::isfinite(const vec< 2, T, Q > &x)'],['../a00315.html#ga929ef27f896d902c1771a2e5e150fc97',1,'glm::isfinite(const vec< 3, T, Q > &x)'],['../a00315.html#ga19925badbe10ce61df1d0de00be0b5ad',1,'glm::isfinite(const vec< 4, T, Q > &x)']]], + ['isidentity',['isIdentity',['../a00340.html#gaee935d145581c82e82b154ccfd78ad91',1,'glm']]], + ['isinf',['isinf',['../a00241.html#ga2885587c23a106301f20443896365b62',1,'glm::isinf(vec< L, T, Q > const &x)'],['../a00248.html#ga45722741ea266b4e861938b365c5f362',1,'glm::isinf(qua< T, Q > const &x)']]], + ['ismultiple',['isMultiple',['../a00261.html#gaec593d33956a8fe43f78fccc63ddde9a',1,'glm::isMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#ga354caf634ef333d9cb4844407416256a',1,'glm::isMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#gabb4360e38c0943d8981ba965dead519d',1,'glm::isMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['isnan',['isnan',['../a00241.html#ga29ef934c00306490de837b4746b4e14d',1,'glm::isnan(vec< L, T, Q > const &x)'],['../a00248.html#ga1bb55f8963616502e96dc564384d8a03',1,'glm::isnan(qua< T, Q > const &x)']]], + ['isnormalized',['isNormalized',['../a00340.html#gae785af56f47ce220a1609f7f84aa077a',1,'glm::isNormalized(mat< 2, 2, T, Q > const &m, T const &epsilon)'],['../a00340.html#gaa068311695f28f5f555f5f746a6a66fb',1,'glm::isNormalized(mat< 3, 3, T, Q > const &m, T const &epsilon)'],['../a00340.html#ga4d9bb4d0465df49fedfad79adc6ce4ad',1,'glm::isNormalized(mat< 4, 4, T, Q > const &m, T const &epsilon)'],['../a00368.html#gac3c974f459fd75453134fad7ae89a39e',1,'glm::isNormalized(vec< L, T, Q > const &v, T const &epsilon)']]], + ['isnull',['isNull',['../a00340.html#ga9790ec222ce948c0ff0d8ce927340dba',1,'glm::isNull(mat< 2, 2, T, Q > const &m, T const &epsilon)'],['../a00340.html#gae14501c6b14ccda6014cc5350080103d',1,'glm::isNull(mat< 3, 3, T, Q > const &m, T const &epsilon)'],['../a00340.html#ga2b98bb30a9fefa7cdea5f1dcddba677b',1,'glm::isNull(mat< 4, 4, T, Q > const &m, T const &epsilon)'],['../a00368.html#gab4a3637dbcb4bb42dc55caea7a1e0495',1,'glm::isNull(vec< L, T, Q > const &v, T const &epsilon)']]], + ['isorthogonal',['isOrthogonal',['../a00340.html#ga58f3289f74dcab653387dd78ad93ca40',1,'glm']]], + ['ispoweroftwo',['isPowerOfTwo',['../a00261.html#gadf491730354aa7da67fbe23d4d688763',1,'glm::isPowerOfTwo(genIUType v)'],['../a00274.html#gabf2b61ded7049bcb13e25164f832a290',1,'glm::isPowerOfTwo(vec< L, T, Q > const &v)']]], + ['ivec1',['ivec1',['../a00272.html#gaedd0562c2e77714929d7723a7e2e0dba',1,'glm']]], + ['ivec2',['ivec2',['../a00281.html#ga6f9269106d91b2d2b91bcf27cd5f5560',1,'glm']]], + ['ivec3',['ivec3',['../a00281.html#gad0d784d8eee201aca362484d2daee46c',1,'glm']]], + ['ivec4',['ivec4',['../a00281.html#ga5abb4603dae0ce58c595e66d9123d812',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_9.html b/external/glm-0.9.9.8/doc/api/search/all_9.html new file mode 100644 index 0000000..0651d82 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_9.js b/external/glm-0.9.9.8/doc/api/search/all_9.js new file mode 100644 index 0000000..3c675a1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_9.js @@ -0,0 +1,214 @@ +var searchData= +[ + ['l1norm',['l1Norm',['../a00343.html#gae2fc0b2aa967bebfd6a244700bff6997',1,'glm::l1Norm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#ga1a7491e2037ceeb37f83ce41addfc0be',1,'glm::l1Norm(vec< 3, T, Q > const &v)']]], + ['l2norm',['l2Norm',['../a00343.html#ga41340b2ef40a9307ab0f137181565168',1,'glm::l2Norm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#gae288bde8f0e41fb4ed62e65137b18cba',1,'glm::l2Norm(vec< 3, T, Q > const &x)']]], + ['ldexp',['ldexp',['../a00241.html#gac3010e0a0c35a1b514540f2fb579c58c',1,'glm']]], + ['lefthanded',['leftHanded',['../a00328.html#ga6f1bad193b9a3b048543d1935cf04dd3',1,'glm']]], + ['length',['length',['../a00254.html#gab703732449be6c7199369b3f9a91ed38',1,'glm::length(qua< T, Q > const &q)'],['../a00279.html#ga0cdabbb000834d994a1d6dc56f8f5263',1,'glm::length(vec< L, T, Q > const &x)']]], + ['length2',['length2',['../a00343.html#ga8d1789651050adb7024917984b41c3de',1,'glm::length2(vec< L, T, Q > const &x)'],['../a00352.html#ga58a609b1b8ab965f5df2702e8ca4e75b',1,'glm::length2(qua< T, Q > const &q)']]], + ['lerp',['lerp',['../a00248.html#ga6033dc0741051fa463a0a147ba29f293',1,'glm::lerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)'],['../a00315.html#ga5494ba3a95ea6594c86fc75236886864',1,'glm::lerp(T x, T y, T a)'],['../a00315.html#gaa551c0a0e16d2d4608e49f7696df897f',1,'glm::lerp(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, T a)'],['../a00315.html#ga44a8b5fd776320f1713413dec959b32a',1,'glm::lerp(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, T a)'],['../a00315.html#ga89ac8e000199292ec7875519d27e214b',1,'glm::lerp(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, T a)'],['../a00315.html#gaf68de5baf72d16135368b8ef4f841604',1,'glm::lerp(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, const vec< 2, T, Q > &a)'],['../a00315.html#ga4ae1a616c8540a2649eab8e0cd051bb3',1,'glm::lerp(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, const vec< 3, T, Q > &a)'],['../a00315.html#gab5477ab69c40de4db5d58d3359529724',1,'glm::lerp(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)'],['../a00317.html#gace8380112d16d33f520839cb35a4d173',1,'glm::lerp(tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)']]], + ['lessthan',['lessThan',['../a00299.html#gad091a2d22c8acfebfa92bcfca1dfe9c4',1,'glm::lessThan(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gae90ed1592c395f93e3f3dfce6b2f39c6',1,'glm::lessThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['lessthanequal',['lessThanEqual',['../a00299.html#gac00012eea281800d2403f4ea8443134d',1,'glm::lessThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gab0bdafc019d227257ff73fb5bcca1718',1,'glm::lessThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['levels',['levels',['../a00361.html#gaa8c377f4e63486db4fa872d77880da73',1,'glm']]], + ['lineargradient',['linearGradient',['../a00327.html#ga849241df1e55129b8ce9476200307419',1,'glm']]], + ['linearinterpolation',['linearInterpolation',['../a00318.html#ga290c3e47cb0a49f2e8abe90b1872b649',1,'glm']]], + ['linearrand',['linearRand',['../a00300.html#ga04e241ab88374a477a2c2ceadd2fa03d',1,'glm::linearRand(genType Min, genType Max)'],['../a00300.html#ga94731130c298a9ff5e5025fdee6d97a0',1,'glm::linearRand(vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)']]], + ['lmaxnorm',['lMaxNorm',['../a00343.html#gad58a8231fc32e38104a9e1c4d3c0cb64',1,'glm::lMaxNorm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#ga6968a324837a8e899396d44de23d5aae',1,'glm::lMaxNorm(vec< 3, T, Q > const &x)']]], + ['ln_5fln_5ftwo',['ln_ln_two',['../a00290.html#gaca94292c839ed31a405ab7a81ae7e850',1,'glm']]], + ['ln_5ften',['ln_ten',['../a00290.html#gaf97ebc6c059ffd788e6c4946f71ef66c',1,'glm']]], + ['ln_5ftwo',['ln_two',['../a00290.html#ga24f4d27765678116f41a2f336ab7975c',1,'glm']]], + ['log',['log',['../a00242.html#ga918c9f3fd086ce20e6760c903bd30fa9',1,'glm::log(vec< L, T, Q > const &v)'],['../a00256.html#gaa5f7b20e296671b16ce25a2ab7ad5473',1,'glm::log(qua< T, Q > const &q)'],['../a00333.html#ga60a7b0a401da660869946b2b77c710c9',1,'glm::log(genType const &x, genType const &base)']]], + ['log2',['log2',['../a00242.html#ga82831c7d9cca777cebedfe03a19c8d75',1,'glm::log2(vec< L, T, Q > const &v)'],['../a00292.html#ga9bd682e74bfacb005c735305207ec417',1,'glm::log2(genIUType x)']]], + ['log_5fbase_2ehpp',['log_base.hpp',['../a00046.html',1,'']]], + ['lookat',['lookAt',['../a00247.html#gaa64aa951a0e99136bba9008d2b59c78e',1,'glm']]], + ['lookatlh',['lookAtLH',['../a00247.html#gab2c09e25b0a16d3a9d89cc85bbae41b0',1,'glm']]], + ['lookatrh',['lookAtRH',['../a00247.html#gacfa12c8889c754846bc20c65d9b5c701',1,'glm']]], + ['lowestbitvalue',['lowestBitValue',['../a00309.html#ga2ff6568089f3a9b67f5c30918855fc6f',1,'glm']]], + ['lowp_5fbvec1',['lowp_bvec1',['../a00266.html#ga24a3d364e2ddd444f5b9e7975bbef8f9',1,'glm']]], + ['lowp_5fbvec2',['lowp_bvec2',['../a00282.html#ga5a5452140650988b94d5716e4d872465',1,'glm']]], + ['lowp_5fbvec3',['lowp_bvec3',['../a00282.html#ga79e0922a977662a8fd39d7829be3908b',1,'glm']]], + ['lowp_5fbvec4',['lowp_bvec4',['../a00282.html#ga15ac87724048ab7169bb5d3572939dd3',1,'glm']]], + ['lowp_5fddualquat',['lowp_ddualquat',['../a00317.html#gab4c5103338af3dac7e0fbc86895a3f1a',1,'glm']]], + ['lowp_5fdmat2',['lowp_dmat2',['../a00284.html#gad8e2727a6e7aa68280245bb0022118e1',1,'glm']]], + ['lowp_5fdmat2x2',['lowp_dmat2x2',['../a00284.html#gac61b94f5d9775f83f321bac899322fe2',1,'glm']]], + ['lowp_5fdmat2x3',['lowp_dmat2x3',['../a00284.html#gaf6bf2f5bde7ad5b9c289f777b93094af',1,'glm']]], + ['lowp_5fdmat2x4',['lowp_dmat2x4',['../a00284.html#ga97507a31ecee8609887d0f23bbde92c7',1,'glm']]], + ['lowp_5fdmat3',['lowp_dmat3',['../a00284.html#ga0cab80beee64a5f8d2ae4e823983063a',1,'glm']]], + ['lowp_5fdmat3x2',['lowp_dmat3x2',['../a00284.html#ga1e0ea3fba496bc7c6f620d2590acb66b',1,'glm']]], + ['lowp_5fdmat3x3',['lowp_dmat3x3',['../a00284.html#gac017848a9df570f60916a21a297b1e8e',1,'glm']]], + ['lowp_5fdmat3x4',['lowp_dmat3x4',['../a00284.html#ga93add35d2a44c5830978b827e8c295e8',1,'glm']]], + ['lowp_5fdmat4',['lowp_dmat4',['../a00284.html#ga708bc5b91bbfedd21debac8dcf2a64cd',1,'glm']]], + ['lowp_5fdmat4x2',['lowp_dmat4x2',['../a00284.html#ga382dc5295cead78766239a8457abfa98',1,'glm']]], + ['lowp_5fdmat4x3',['lowp_dmat4x3',['../a00284.html#ga3d7ea07da7c6e5c81a3f4c8b3d44056e',1,'glm']]], + ['lowp_5fdmat4x4',['lowp_dmat4x4',['../a00284.html#ga5b0413198b7e9f061f7534a221c9dac9',1,'glm']]], + ['lowp_5fdquat',['lowp_dquat',['../a00250.html#ga9e6e5f42e67dd5877350ba485c191f1c',1,'glm']]], + ['lowp_5fdualquat',['lowp_dualquat',['../a00317.html#gade05d29ebd4deea0f883d0e1bb4169aa',1,'glm']]], + ['lowp_5fdvec1',['lowp_dvec1',['../a00269.html#gaf906eb86b6e96c35138d0e4928e1435a',1,'glm']]], + ['lowp_5fdvec2',['lowp_dvec2',['../a00282.html#ga108086730d086b7f6f7a033955dfb9c3',1,'glm']]], + ['lowp_5fdvec3',['lowp_dvec3',['../a00282.html#ga42c518b2917e19ce6946a84c64a3a4b2',1,'glm']]], + ['lowp_5fdvec4',['lowp_dvec4',['../a00282.html#ga0b4432cb8d910e406576d10d802e190d',1,'glm']]], + ['lowp_5ff32',['lowp_f32',['../a00304.html#gaeea53879fc327293cf3352a409b7867b',1,'glm']]], + ['lowp_5ff32mat2',['lowp_f32mat2',['../a00304.html#ga52409bc6d4a2ce3421526c069220d685',1,'glm']]], + ['lowp_5ff32mat2x2',['lowp_f32mat2x2',['../a00304.html#ga1d091b6abfba1772450e1745a06525bc',1,'glm']]], + ['lowp_5ff32mat2x3',['lowp_f32mat2x3',['../a00304.html#ga961ccb34cd1a5654c772c8709e001dc5',1,'glm']]], + ['lowp_5ff32mat2x4',['lowp_f32mat2x4',['../a00304.html#gacc6bf0209dda0c7c14851a646071c974',1,'glm']]], + ['lowp_5ff32mat3',['lowp_f32mat3',['../a00304.html#ga4187f89f196505b40e63f516139511e5',1,'glm']]], + ['lowp_5ff32mat3x2',['lowp_f32mat3x2',['../a00304.html#gac53f9d7ab04eace67adad026092fb1e8',1,'glm']]], + ['lowp_5ff32mat3x3',['lowp_f32mat3x3',['../a00304.html#ga841211b641cff1fcf861bdb14e5e4abc',1,'glm']]], + ['lowp_5ff32mat3x4',['lowp_f32mat3x4',['../a00304.html#ga21b1b22dec013a72656e3644baf8a1e1',1,'glm']]], + ['lowp_5ff32mat4',['lowp_f32mat4',['../a00304.html#ga766aed2871e6173a81011a877f398f04',1,'glm']]], + ['lowp_5ff32mat4x2',['lowp_f32mat4x2',['../a00304.html#gae6f3fcb702a666de07650c149cfa845a',1,'glm']]], + ['lowp_5ff32mat4x3',['lowp_f32mat4x3',['../a00304.html#gac21eda58a1475449a5709b412ebd776c',1,'glm']]], + ['lowp_5ff32mat4x4',['lowp_f32mat4x4',['../a00304.html#ga4143d129898f91545948c46859adce44',1,'glm']]], + ['lowp_5ff32quat',['lowp_f32quat',['../a00304.html#gaa3ba60ef8f69c6aeb1629594eaa95347',1,'glm']]], + ['lowp_5ff32vec1',['lowp_f32vec1',['../a00304.html#ga43e5b41c834fcaf4db5a831c0e28128e',1,'glm']]], + ['lowp_5ff32vec2',['lowp_f32vec2',['../a00304.html#gaf3b694b2b8ded7e0b9f07b061917e1a0',1,'glm']]], + ['lowp_5ff32vec3',['lowp_f32vec3',['../a00304.html#gaf739a2cd7b81783a43148b53e40d983b',1,'glm']]], + ['lowp_5ff32vec4',['lowp_f32vec4',['../a00304.html#ga4e2e1debe022074ab224c9faf856d374',1,'glm']]], + ['lowp_5ff64',['lowp_f64',['../a00304.html#gabc7a97c07cbfac8e35eb5e63beb4b679',1,'glm']]], + ['lowp_5ff64mat2',['lowp_f64mat2',['../a00304.html#gafc730f6b4242763b0eda0ffa25150292',1,'glm']]], + ['lowp_5ff64mat2x2',['lowp_f64mat2x2',['../a00304.html#ga771fda9109933db34f808d92b9b84d7e',1,'glm']]], + ['lowp_5ff64mat2x3',['lowp_f64mat2x3',['../a00304.html#ga39e90adcffe33264bd608fa9c6bd184b',1,'glm']]], + ['lowp_5ff64mat2x4',['lowp_f64mat2x4',['../a00304.html#ga50265a202fbfe0a25fc70066c31d9336',1,'glm']]], + ['lowp_5ff64mat3',['lowp_f64mat3',['../a00304.html#ga58119a41d143ebaea0df70fe882e8a40',1,'glm']]], + ['lowp_5ff64mat3x2',['lowp_f64mat3x2',['../a00304.html#gab0eb2d65514ee3e49905aa2caad8c0ad',1,'glm']]], + ['lowp_5ff64mat3x3',['lowp_f64mat3x3',['../a00304.html#gac8f8a12ee03105ef8861dc652434e3b7',1,'glm']]], + ['lowp_5ff64mat3x4',['lowp_f64mat3x4',['../a00304.html#gade8d1edfb23996ab6c622e65e3893271',1,'glm']]], + ['lowp_5ff64mat4',['lowp_f64mat4',['../a00304.html#ga7451266e67794bd1125163502bc4a570',1,'glm']]], + ['lowp_5ff64mat4x2',['lowp_f64mat4x2',['../a00304.html#gab0cecb80fd106bc369b9e46a165815ce',1,'glm']]], + ['lowp_5ff64mat4x3',['lowp_f64mat4x3',['../a00304.html#gae731613b25db3a5ef5a05d21e57a57d3',1,'glm']]], + ['lowp_5ff64mat4x4',['lowp_f64mat4x4',['../a00304.html#ga8c9cd734e03cd49674f3e287aa4a6f95',1,'glm']]], + ['lowp_5ff64quat',['lowp_f64quat',['../a00304.html#gaa3ee2bc4af03cc06578b66b3e3f878ae',1,'glm']]], + ['lowp_5ff64vec1',['lowp_f64vec1',['../a00304.html#gaf2d02c5f4d59135b9bc524fe317fd26b',1,'glm']]], + ['lowp_5ff64vec2',['lowp_f64vec2',['../a00304.html#ga4e641a54d70c81eabf56c25c966d04bd',1,'glm']]], + ['lowp_5ff64vec3',['lowp_f64vec3',['../a00304.html#gae7a4711107b7d078fc5f03ce2227b90b',1,'glm']]], + ['lowp_5ff64vec4',['lowp_f64vec4',['../a00304.html#gaa666bb9e6d204d3bea0b3a39a3a335f4',1,'glm']]], + ['lowp_5ffdualquat',['lowp_fdualquat',['../a00317.html#gaa38f671be25a7f3b136a452a8bb42860',1,'glm']]], + ['lowp_5ffloat32',['lowp_float32',['../a00304.html#ga41b0d390bd8cc827323b1b3816ff4bf8',1,'glm']]], + ['lowp_5ffloat32_5ft',['lowp_float32_t',['../a00304.html#gaea881cae4ddc6c0fbf7cc5b08177ca5b',1,'glm']]], + ['lowp_5ffloat64',['lowp_float64',['../a00304.html#ga3714dab2c16a6545a405cb0c3b3aaa6f',1,'glm']]], + ['lowp_5ffloat64_5ft',['lowp_float64_t',['../a00304.html#ga7286a37076a09da140df18bfa75d4e38',1,'glm']]], + ['lowp_5ffmat2',['lowp_fmat2',['../a00304.html#ga5bba0ce31210e274f73efacd3364c03f',1,'glm']]], + ['lowp_5ffmat2x2',['lowp_fmat2x2',['../a00304.html#gab0feb11edd0d3ab3e8ed996d349a5066',1,'glm']]], + ['lowp_5ffmat2x3',['lowp_fmat2x3',['../a00304.html#ga71cdb53801ed4c3aadb3603c04723210',1,'glm']]], + ['lowp_5ffmat2x4',['lowp_fmat2x4',['../a00304.html#gaab217601c74974a84acbca428123ecf7',1,'glm']]], + ['lowp_5ffmat3',['lowp_fmat3',['../a00304.html#ga83079315e230e8f39728f4bf0d2f9a9b',1,'glm']]], + ['lowp_5ffmat3x2',['lowp_fmat3x2',['../a00304.html#ga49b98e7d71804af45d86886a489e633c',1,'glm']]], + ['lowp_5ffmat3x3',['lowp_fmat3x3',['../a00304.html#gaba56275dd04a7a61560b0e8fa5d365b4',1,'glm']]], + ['lowp_5ffmat3x4',['lowp_fmat3x4',['../a00304.html#ga28733aec7288191b314d42154fd0b690',1,'glm']]], + ['lowp_5ffmat4',['lowp_fmat4',['../a00304.html#ga5803cb9ae26399762d8bba9e0b2fc09f',1,'glm']]], + ['lowp_5ffmat4x2',['lowp_fmat4x2',['../a00304.html#ga5868c2dcce41cc3ea5edcaeae239f62c',1,'glm']]], + ['lowp_5ffmat4x3',['lowp_fmat4x3',['../a00304.html#ga5e649bbdb135fbcb4bfe950f4c73a444',1,'glm']]], + ['lowp_5ffmat4x4',['lowp_fmat4x4',['../a00304.html#gac2f5263708ac847b361a9841e74ddf9f',1,'glm']]], + ['lowp_5ffvec1',['lowp_fvec1',['../a00304.html#ga346b2336fff168a7e0df1583aae3e5a5',1,'glm']]], + ['lowp_5ffvec2',['lowp_fvec2',['../a00304.html#ga62a32c31f4e2e8ca859663b6e3289a2d',1,'glm']]], + ['lowp_5ffvec3',['lowp_fvec3',['../a00304.html#ga40b5c557efebb5bb99d6b9aa81095afa',1,'glm']]], + ['lowp_5ffvec4',['lowp_fvec4',['../a00304.html#ga755484ffbe39ae3db2875953ed04e7b7',1,'glm']]], + ['lowp_5fi16',['lowp_i16',['../a00304.html#ga392b673fd10847bfb78fb808c6cf8ff7',1,'glm']]], + ['lowp_5fi16vec1',['lowp_i16vec1',['../a00304.html#ga501a2f313f1c220eef4ab02bdabdc3c6',1,'glm']]], + ['lowp_5fi16vec2',['lowp_i16vec2',['../a00304.html#ga7cac84b520a6b57f2fbd880d3d63c51b',1,'glm']]], + ['lowp_5fi16vec3',['lowp_i16vec3',['../a00304.html#gab69ef9cbc2a9214bf5596c528c801b72',1,'glm']]], + ['lowp_5fi16vec4',['lowp_i16vec4',['../a00304.html#ga1d47d94d17c2406abdd1f087a816e387',1,'glm']]], + ['lowp_5fi32',['lowp_i32',['../a00304.html#ga7ff73a45cea9613ebf1a9fad0b9f82ac',1,'glm']]], + ['lowp_5fi32vec1',['lowp_i32vec1',['../a00304.html#gae31ac3608cf643ceffd6554874bec4a0',1,'glm']]], + ['lowp_5fi32vec2',['lowp_i32vec2',['../a00304.html#ga867a3c2d99ab369a454167d2c0a24dbd',1,'glm']]], + ['lowp_5fi32vec3',['lowp_i32vec3',['../a00304.html#ga5fe17c87ede1b1b4d92454cff4da076d',1,'glm']]], + ['lowp_5fi32vec4',['lowp_i32vec4',['../a00304.html#gac9b2eb4296ffe50a32eacca9ed932c08',1,'glm']]], + ['lowp_5fi64',['lowp_i64',['../a00304.html#ga354736e0c645099cd44c42fb2f87c2b8',1,'glm']]], + ['lowp_5fi64vec1',['lowp_i64vec1',['../a00304.html#gab0f7d875db5f3cc9f3168c5a0ed56437',1,'glm']]], + ['lowp_5fi64vec2',['lowp_i64vec2',['../a00304.html#gab485c48f06a4fdd6b8d58d343bb49f3c',1,'glm']]], + ['lowp_5fi64vec3',['lowp_i64vec3',['../a00304.html#ga5cb1dc9e8d300c2cdb0d7ff2308fa36c',1,'glm']]], + ['lowp_5fi64vec4',['lowp_i64vec4',['../a00304.html#gabb4229a4c1488bf063eed0c45355bb9c',1,'glm']]], + ['lowp_5fi8',['lowp_i8',['../a00304.html#ga552a6bde5e75984efb0f863278da2e54',1,'glm']]], + ['lowp_5fi8vec1',['lowp_i8vec1',['../a00304.html#ga036d6c7ca9fbbdc5f3871bfcb937c85c',1,'glm']]], + ['lowp_5fi8vec2',['lowp_i8vec2',['../a00304.html#gac03e5099d27eeaa74b6016ea435a1df2',1,'glm']]], + ['lowp_5fi8vec3',['lowp_i8vec3',['../a00304.html#gae2f43ace6b5b33ab49516d9e40af1845',1,'glm']]], + ['lowp_5fi8vec4',['lowp_i8vec4',['../a00304.html#ga6d388e9b9aa1b389f0672d9c7dfc61c5',1,'glm']]], + ['lowp_5fimat2',['lowp_imat2',['../a00294.html#gaa0bff0be804142bb16d441aec0a7962e',1,'glm']]], + ['lowp_5fimat2x2',['lowp_imat2x2',['../a00294.html#ga92b95b679975d408645547ab45a8dcd8',1,'glm']]], + ['lowp_5fimat2x3',['lowp_imat2x3',['../a00294.html#ga8c9e7a388f8e7c52f1e6857dee8afb65',1,'glm']]], + ['lowp_5fimat2x4',['lowp_imat2x4',['../a00294.html#ga9cc13bd1f8dd2933e9fa31fe3f70e16e',1,'glm']]], + ['lowp_5fimat3',['lowp_imat3',['../a00294.html#ga69bfe668f4170379fc1f35d82b060c43',1,'glm']]], + ['lowp_5fimat3x2',['lowp_imat3x2',['../a00294.html#ga33db8f27491d30906cd37c0d86b3f432',1,'glm']]], + ['lowp_5fimat3x3',['lowp_imat3x3',['../a00294.html#ga664f061df00020048c3f8530329ace45',1,'glm']]], + ['lowp_5fimat3x4',['lowp_imat3x4',['../a00294.html#ga9273faab33623d944af4080befbb2c80',1,'glm']]], + ['lowp_5fimat4',['lowp_imat4',['../a00294.html#gad1e77f7270cad461ca4fcb4c3ec2e98c',1,'glm']]], + ['lowp_5fimat4x2',['lowp_imat4x2',['../a00294.html#ga26ec1a2ba08a1488f5f05336858a0f09',1,'glm']]], + ['lowp_5fimat4x3',['lowp_imat4x3',['../a00294.html#ga8f40483a3ae634ead8ad22272c543a33',1,'glm']]], + ['lowp_5fimat4x4',['lowp_imat4x4',['../a00294.html#gaf65677e53ac8e31a107399340d5e2451',1,'glm']]], + ['lowp_5fint16',['lowp_int16',['../a00304.html#ga698e36b01167fc0f037889334dce8def',1,'glm']]], + ['lowp_5fint16_5ft',['lowp_int16_t',['../a00304.html#ga8b2cd8d31eb345b2d641d9261c38db1a',1,'glm']]], + ['lowp_5fint32',['lowp_int32',['../a00304.html#ga864aabca5f3296e176e0c3ed9cc16b02',1,'glm']]], + ['lowp_5fint32_5ft',['lowp_int32_t',['../a00304.html#ga0350631d35ff800e6133ac6243b13cbc',1,'glm']]], + ['lowp_5fint64',['lowp_int64',['../a00304.html#gaf645b1a60203b39c0207baff5e3d8c3c',1,'glm']]], + ['lowp_5fint64_5ft',['lowp_int64_t',['../a00304.html#gaebf341fc4a5be233f7dde962c2e33847',1,'glm']]], + ['lowp_5fint8',['lowp_int8',['../a00304.html#ga760bcf26fdb23a2c3ecad3c928a19ae6',1,'glm']]], + ['lowp_5fint8_5ft',['lowp_int8_t',['../a00304.html#ga119c41d73fe9977358174eb3ac1035a3',1,'glm']]], + ['lowp_5fivec1',['lowp_ivec1',['../a00273.html#ga836dbb1dc516c233b7f5fe9763bc15dc',1,'glm']]], + ['lowp_5fivec2',['lowp_ivec2',['../a00282.html#ga8433c6c1fdd80c0a83941d94aff73fa0',1,'glm']]], + ['lowp_5fivec3',['lowp_ivec3',['../a00282.html#gac1a86a75b3c68ebb704d7094043669d6',1,'glm']]], + ['lowp_5fivec4',['lowp_ivec4',['../a00282.html#ga27fc23da61859cd6356326c5f1c796de',1,'glm']]], + ['lowp_5fmat2',['lowp_mat2',['../a00284.html#gae400c4ce1f5f3e1fa12861b2baed331a',1,'glm']]], + ['lowp_5fmat2x2',['lowp_mat2x2',['../a00284.html#ga2df7cdaf9a571ce7a1b09435f502c694',1,'glm']]], + ['lowp_5fmat2x3',['lowp_mat2x3',['../a00284.html#ga3eee3a74d0f1de8635d846dfb29ec4bb',1,'glm']]], + ['lowp_5fmat2x4',['lowp_mat2x4',['../a00284.html#gade27f8324a16626cbce5d3e7da66b070',1,'glm']]], + ['lowp_5fmat3',['lowp_mat3',['../a00284.html#ga6271ebc85ed778ccc15458c3d86fc854',1,'glm']]], + ['lowp_5fmat3x2',['lowp_mat3x2',['../a00284.html#gaabf6cf90fd31efe25c94965507e98390',1,'glm']]], + ['lowp_5fmat3x3',['lowp_mat3x3',['../a00284.html#ga63362cb4a63fc1be7d2e49cd5d574c84',1,'glm']]], + ['lowp_5fmat3x4',['lowp_mat3x4',['../a00284.html#gac5fc6786688eff02904ca5e7d6960092',1,'glm']]], + ['lowp_5fmat4',['lowp_mat4',['../a00284.html#ga2dedee030500865267cd5851c00c139d',1,'glm']]], + ['lowp_5fmat4x2',['lowp_mat4x2',['../a00284.html#gafa3cdb8f24d09d761ec9ae2a4c7e5e21',1,'glm']]], + ['lowp_5fmat4x3',['lowp_mat4x3',['../a00284.html#ga534c3ef5c3b8fdd8656b6afc205b4b77',1,'glm']]], + ['lowp_5fmat4x4',['lowp_mat4x4',['../a00284.html#ga686468a9a815bd4db8cddae42a6d6b87',1,'glm']]], + ['lowp_5fquat',['lowp_quat',['../a00253.html#gade62c5316c1c11a79c34c00c189558eb',1,'glm']]], + ['lowp_5fu16',['lowp_u16',['../a00304.html#ga504ce1631cb2ac02fcf1d44d8c2aa126',1,'glm']]], + ['lowp_5fu16vec1',['lowp_u16vec1',['../a00304.html#gaa6aab4ee7189b86716f5d7015d43021d',1,'glm']]], + ['lowp_5fu16vec2',['lowp_u16vec2',['../a00304.html#ga2a7d997da9ac29cb931e35bd399f58df',1,'glm']]], + ['lowp_5fu16vec3',['lowp_u16vec3',['../a00304.html#gac0253db6c3d3bae1f591676307a9dd8c',1,'glm']]], + ['lowp_5fu16vec4',['lowp_u16vec4',['../a00304.html#gaa7f00459b9a2e5b2757e70afc0c189e1',1,'glm']]], + ['lowp_5fu32',['lowp_u32',['../a00304.html#ga4f072ada9552e1e480bbb3b1acde5250',1,'glm']]], + ['lowp_5fu32vec1',['lowp_u32vec1',['../a00304.html#gabed3be8dfdc4a0df4bf3271dbd7344c4',1,'glm']]], + ['lowp_5fu32vec2',['lowp_u32vec2',['../a00304.html#gaf7e286e81347011e257ee779524e73b9',1,'glm']]], + ['lowp_5fu32vec3',['lowp_u32vec3',['../a00304.html#gad3ad390560a671b1f676fbf03cd3aa15',1,'glm']]], + ['lowp_5fu32vec4',['lowp_u32vec4',['../a00304.html#ga4502885718742aa238c36a312c3f3f20',1,'glm']]], + ['lowp_5fu64',['lowp_u64',['../a00304.html#ga30069d1f02b19599cbfadf98c23ac6ed',1,'glm']]], + ['lowp_5fu64vec1',['lowp_u64vec1',['../a00304.html#ga859be7b9d3a3765c1cafc14dbcf249a6',1,'glm']]], + ['lowp_5fu64vec2',['lowp_u64vec2',['../a00304.html#ga581485db4ba6ddb501505ee711fd8e42',1,'glm']]], + ['lowp_5fu64vec3',['lowp_u64vec3',['../a00304.html#gaa4a8682bec7ec8af666ef87fae38d5d1',1,'glm']]], + ['lowp_5fu64vec4',['lowp_u64vec4',['../a00304.html#ga6fccc89c34045c86339f6fa781ce96de',1,'glm']]], + ['lowp_5fu8',['lowp_u8',['../a00304.html#ga1b09f03da7ac43055c68a349d5445083',1,'glm']]], + ['lowp_5fu8vec1',['lowp_u8vec1',['../a00304.html#ga4b2e0e10d8d154fec9cab50e216588ec',1,'glm']]], + ['lowp_5fu8vec2',['lowp_u8vec2',['../a00304.html#gae6f63fa38635431e51a8f2602f15c566',1,'glm']]], + ['lowp_5fu8vec3',['lowp_u8vec3',['../a00304.html#ga150dc47e31c6b8cf8461803c8d56f7bd',1,'glm']]], + ['lowp_5fu8vec4',['lowp_u8vec4',['../a00304.html#ga9910927f3a4d1addb3da6a82542a8287',1,'glm']]], + ['lowp_5fuint16',['lowp_uint16',['../a00304.html#gad68bfd9f881856fc863a6ebca0b67f78',1,'glm']]], + ['lowp_5fuint16_5ft',['lowp_uint16_t',['../a00304.html#ga91c4815f93177eb423362fd296a87e9f',1,'glm']]], + ['lowp_5fuint32',['lowp_uint32',['../a00304.html#gaa6a5b461bbf5fe20982472aa51896d4b',1,'glm']]], + ['lowp_5fuint32_5ft',['lowp_uint32_t',['../a00304.html#gaf1b735b4b1145174f4e4167d13778f9b',1,'glm']]], + ['lowp_5fuint64',['lowp_uint64',['../a00304.html#gaa212b805736a759998e312cbdd550fae',1,'glm']]], + ['lowp_5fuint64_5ft',['lowp_uint64_t',['../a00304.html#ga8dd3a3281ae5c970ffe0c41d538aa153',1,'glm']]], + ['lowp_5fuint8',['lowp_uint8',['../a00304.html#gaf49470869e9be2c059629b250619804e',1,'glm']]], + ['lowp_5fuint8_5ft',['lowp_uint8_t',['../a00304.html#ga667b2ece2b258be898812dc2177995d1',1,'glm']]], + ['lowp_5fumat2',['lowp_umat2',['../a00294.html#gaf2fba702d990437fc88ff3f3a76846ee',1,'glm']]], + ['lowp_5fumat2x2',['lowp_umat2x2',['../a00294.html#ga7b2e9d89745f7175051284e54c81d81c',1,'glm']]], + ['lowp_5fumat2x3',['lowp_umat2x3',['../a00294.html#ga3072f90fd86f17a862e21589fbb14c0f',1,'glm']]], + ['lowp_5fumat2x4',['lowp_umat2x4',['../a00294.html#ga8bb45fec4bd77bd81b4ae7eb961a270d',1,'glm']]], + ['lowp_5fumat3',['lowp_umat3',['../a00294.html#gaf1145f72bcdd590f5808c4bc170c2924',1,'glm']]], + ['lowp_5fumat3x2',['lowp_umat3x2',['../a00294.html#ga56ea68c6a6cba8d8c21d17bb14e69c6b',1,'glm']]], + ['lowp_5fumat3x3',['lowp_umat3x3',['../a00294.html#ga4f660a39a395cc14f018f985e7dfbeb5',1,'glm']]], + ['lowp_5fumat3x4',['lowp_umat3x4',['../a00294.html#gaec3d624306bd59649f021864709d56b5',1,'glm']]], + ['lowp_5fumat4',['lowp_umat4',['../a00294.html#gac092c6105827bf9ea080db38074b78eb',1,'glm']]], + ['lowp_5fumat4x2',['lowp_umat4x2',['../a00294.html#ga7716c2b210d141846f1ac4e774adef5e',1,'glm']]], + ['lowp_5fumat4x3',['lowp_umat4x3',['../a00294.html#ga09ab33a2636f5f43f7fae29cfbc20fff',1,'glm']]], + ['lowp_5fumat4x4',['lowp_umat4x4',['../a00294.html#ga10aafc66cf1a0ece336b1c5ae13d0cc0',1,'glm']]], + ['lowp_5fuvec1',['lowp_uvec1',['../a00277.html#ga8bf3fc8a7863d140f48b29341c750402',1,'glm']]], + ['lowp_5fuvec2',['lowp_uvec2',['../a00282.html#ga752ee45136011301b64afd8c310c47a4',1,'glm']]], + ['lowp_5fuvec3',['lowp_uvec3',['../a00282.html#ga7b2efbdd6bdc2f8250c57f3e5dc9a292',1,'glm']]], + ['lowp_5fuvec4',['lowp_uvec4',['../a00282.html#ga5e6a632ec1165cf9f54ceeaa5e9b2b1e',1,'glm']]], + ['lowp_5fvec1',['lowp_vec1',['../a00271.html#ga0a57630f03031706b1d26a7d70d9184c',1,'glm']]], + ['lowp_5fvec2',['lowp_vec2',['../a00282.html#ga30e8baef5d56d5c166872a2bc00f36e9',1,'glm']]], + ['lowp_5fvec3',['lowp_vec3',['../a00282.html#ga868e8e4470a3ef97c7ee3032bf90dc79',1,'glm']]], + ['lowp_5fvec4',['lowp_vec4',['../a00282.html#gace3acb313c800552a9411953eb8b2ed7',1,'glm']]], + ['luminosity',['luminosity',['../a00312.html#gad028e0a4f1a9c812b39439b746295b34',1,'glm']]], + ['lxnorm',['lxNorm',['../a00343.html#gacad23d30497eb16f67709f2375d1f66a',1,'glm::lxNorm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, unsigned int Depth)'],['../a00343.html#gac61b6d81d796d6eb4d4183396a19ab91',1,'glm::lxNorm(vec< 3, T, Q > const &x, unsigned int Depth)']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_a.html b/external/glm-0.9.9.8/doc/api/search/all_a.html new file mode 100644 index 0000000..0173517 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_a.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_a.js b/external/glm-0.9.9.8/doc/api/search/all_a.js new file mode 100644 index 0000000..b3c747c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_a.js @@ -0,0 +1,297 @@ +var searchData= +[ + ['matrix_20functions',['Matrix functions',['../a00371.html',1,'']]], + ['matrix_20types',['Matrix types',['../a00283.html',1,'']]], + ['matrix_20types_20with_20precision_20qualifiers',['Matrix types with precision qualifiers',['../a00284.html',1,'']]], + ['make_5fmat2',['make_mat2',['../a00305.html#ga04409e74dc3da251d2501acf5b4b546c',1,'glm']]], + ['make_5fmat2x2',['make_mat2x2',['../a00305.html#gae49e1c7bcd5abec74d1c34155031f663',1,'glm']]], + ['make_5fmat2x3',['make_mat2x3',['../a00305.html#ga21982104164789cf8985483aaefc25e8',1,'glm']]], + ['make_5fmat2x4',['make_mat2x4',['../a00305.html#ga078b862c90b0e9a79ed43a58997d8388',1,'glm']]], + ['make_5fmat3',['make_mat3',['../a00305.html#ga611ee7c4d4cadfc83a8fa8e1d10a170f',1,'glm']]], + ['make_5fmat3x2',['make_mat3x2',['../a00305.html#ga27a24e121dc39e6857620e0f85b6e1a8',1,'glm']]], + ['make_5fmat3x3',['make_mat3x3',['../a00305.html#gaf2e8337b15c3362aaeb6e5849e1c0536',1,'glm']]], + ['make_5fmat3x4',['make_mat3x4',['../a00305.html#ga05dd66232aedb993e3b8e7b35eaf932b',1,'glm']]], + ['make_5fmat4',['make_mat4',['../a00305.html#gae7bcedb710d1446c87fd1fc93ed8ee9a',1,'glm']]], + ['make_5fmat4x2',['make_mat4x2',['../a00305.html#ga8b34c9b25bf3310d8ff9c828c7e2d97c',1,'glm']]], + ['make_5fmat4x3',['make_mat4x3',['../a00305.html#ga0330bf6640092d7985fac92927bbd42b',1,'glm']]], + ['make_5fmat4x4',['make_mat4x4',['../a00305.html#ga8f084be30e404844bfbb4a551ac2728c',1,'glm']]], + ['make_5fquat',['make_quat',['../a00305.html#ga58110d7d81cf7d029e2bab7f8cd9b246',1,'glm']]], + ['make_5fvec1',['make_vec1',['../a00305.html#ga4135f03f3049f0a4eb76545c4967957c',1,'glm::make_vec1(vec< 1, T, Q > const &v)'],['../a00305.html#ga13c92b81e55f201b052a6404d57da220',1,'glm::make_vec1(vec< 2, T, Q > const &v)'],['../a00305.html#ga3c23cc74086d361e22bbd5e91a334e03',1,'glm::make_vec1(vec< 3, T, Q > const &v)'],['../a00305.html#ga6af06bb60d64ca8bcd169e3c93bc2419',1,'glm::make_vec1(vec< 4, T, Q > const &v)']]], + ['make_5fvec2',['make_vec2',['../a00305.html#ga8476d0e6f1b9b4a6193cc25f59d8a896',1,'glm::make_vec2(vec< 1, T, Q > const &v)'],['../a00305.html#gae54bd325a08ad26edf63929201adebc7',1,'glm::make_vec2(vec< 2, T, Q > const &v)'],['../a00305.html#ga0084fea4694cf47276e9cccbe7b1015a',1,'glm::make_vec2(vec< 3, T, Q > const &v)'],['../a00305.html#ga2b81f71f3a222fe5bba81e3983751249',1,'glm::make_vec2(vec< 4, T, Q > const &v)'],['../a00305.html#ga81253cf7b0ebfbb1e70540c5774e6824',1,'glm::make_vec2(T const *const ptr)']]], + ['make_5fvec3',['make_vec3',['../a00305.html#ga9147e4b3a5d0f4772edfbfd179d7ea0b',1,'glm::make_vec3(vec< 1, T, Q > const &v)'],['../a00305.html#ga482b60a842a5b154d3eed392417a9511',1,'glm::make_vec3(vec< 2, T, Q > const &v)'],['../a00305.html#gacd57046034df557b8b1c457f58613623',1,'glm::make_vec3(vec< 3, T, Q > const &v)'],['../a00305.html#ga8b589ed7d41a298b516d2a69169248f1',1,'glm::make_vec3(vec< 4, T, Q > const &v)'],['../a00305.html#gad9e0d36ff489cb30c65ad1fa40351651',1,'glm::make_vec3(T const *const ptr)']]], + ['make_5fvec4',['make_vec4',['../a00305.html#ga600cb97f70c5d50d3a4a145e1cafbf37',1,'glm::make_vec4(vec< 1, T, Q > const &v)'],['../a00305.html#gaa9bd116caf28196fd1cf00b278286fa7',1,'glm::make_vec4(vec< 2, T, Q > const &v)'],['../a00305.html#ga4036328ba4702c74cbdfad1fc03d1b8f',1,'glm::make_vec4(vec< 3, T, Q > const &v)'],['../a00305.html#gaa95cb15732f708f613e65a0578895ae5',1,'glm::make_vec4(vec< 4, T, Q > const &v)'],['../a00305.html#ga63f576518993efc22a969f18f80e29bb',1,'glm::make_vec4(T const *const ptr)']]], + ['mask',['mask',['../a00288.html#gad7eba518a0b71662114571ee76939f8a',1,'glm::mask(genIUType Bits)'],['../a00288.html#ga2e64e3b922a296033b825311e7f5fff1',1,'glm::mask(vec< L, T, Q > const &v)']]], + ['mat2',['mat2',['../a00283.html#ga8dd59e7fc6913ac5d61b86553e9148ba',1,'glm']]], + ['mat2x2',['mat2x2',['../a00283.html#gaaa17ef6bfa4e4f2692348b1460c8efcb',1,'glm']]], + ['mat2x2_2ehpp',['mat2x2.hpp',['../a00048.html',1,'']]], + ['mat2x3',['mat2x3',['../a00283.html#ga493ab21243abe564b3f7d381e677d29a',1,'glm']]], + ['mat2x3_2ehpp',['mat2x3.hpp',['../a00049.html',1,'']]], + ['mat2x4',['mat2x4',['../a00283.html#ga8e879b57ddd81e5bf5a88929844e8b40',1,'glm']]], + ['mat2x4_2ehpp',['mat2x4.hpp',['../a00050.html',1,'']]], + ['mat2x4_5fcast',['mat2x4_cast',['../a00317.html#gae99d143b37f9cad4cd9285571aab685a',1,'glm']]], + ['mat3',['mat3',['../a00283.html#gaefb0fc7a4960b782c18708bb6b655262',1,'glm']]], + ['mat3_5fcast',['mat3_cast',['../a00299.html#ga333ab70047fbe4132406100c292dbc89',1,'glm']]], + ['mat3x2',['mat3x2',['../a00280.html#ga2c27aea32de57d58aec8e92d5d2181e2',1,'glm']]], + ['mat3x2_2ehpp',['mat3x2.hpp',['../a00051.html',1,'']]], + ['mat3x3',['mat3x3',['../a00283.html#gab91887d7565059dac640e3a1921c914a',1,'glm']]], + ['mat3x3_2ehpp',['mat3x3.hpp',['../a00052.html',1,'']]], + ['mat3x4',['mat3x4',['../a00283.html#gaf991cad0b34f64e33af186326dbc4d66',1,'glm']]], + ['mat3x4_2ehpp',['mat3x4.hpp',['../a00053.html',1,'']]], + ['mat3x4_5fcast',['mat3x4_cast',['../a00317.html#gaf59f5bb69620d2891c3795c6f2639179',1,'glm']]], + ['mat4',['mat4',['../a00283.html#ga0db98d836c5549d31cf64ecd043b7af7',1,'glm']]], + ['mat4_5fcast',['mat4_cast',['../a00299.html#ga1113212d9bdefc2e31ad40e5bbb506f3',1,'glm']]], + ['mat4x2',['mat4x2',['../a00283.html#gad941c947ad6cdd117a0e8554a4754983',1,'glm']]], + ['mat4x2_2ehpp',['mat4x2.hpp',['../a00054.html',1,'']]], + ['mat4x3',['mat4x3',['../a00283.html#gac7574544bb94777bdbd2eb224eb72fd0',1,'glm']]], + ['mat4x3_2ehpp',['mat4x3.hpp',['../a00055.html',1,'']]], + ['mat4x4',['mat4x4',['../a00283.html#gab2d35cc2655f44d60958d60a1de34e81',1,'glm']]], + ['mat4x4_2ehpp',['mat4x4.hpp',['../a00056.html',1,'']]], + ['matrix_2ehpp',['matrix.hpp',['../a00057.html',1,'']]], + ['matrix_5faccess_2ehpp',['matrix_access.hpp',['../a00058.html',1,'']]], + ['matrix_5fclip_5fspace_2ehpp',['matrix_clip_space.hpp',['../a00059.html',1,'']]], + ['matrix_5fcommon_2ehpp',['matrix_common.hpp',['../a00060.html',1,'']]], + ['matrix_5fcross_5fproduct_2ehpp',['matrix_cross_product.hpp',['../a00061.html',1,'']]], + ['matrix_5fdecompose_2ehpp',['matrix_decompose.hpp',['../a00062.html',1,'']]], + ['matrix_5fdouble2x2_2ehpp',['matrix_double2x2.hpp',['../a00063.html',1,'']]], + ['matrix_5fdouble2x2_5fprecision_2ehpp',['matrix_double2x2_precision.hpp',['../a00064.html',1,'']]], + ['matrix_5fdouble2x3_2ehpp',['matrix_double2x3.hpp',['../a00065.html',1,'']]], + ['matrix_5fdouble2x3_5fprecision_2ehpp',['matrix_double2x3_precision.hpp',['../a00066.html',1,'']]], + ['matrix_5fdouble2x4_2ehpp',['matrix_double2x4.hpp',['../a00067.html',1,'']]], + ['matrix_5fdouble2x4_5fprecision_2ehpp',['matrix_double2x4_precision.hpp',['../a00068.html',1,'']]], + ['matrix_5fdouble3x2_2ehpp',['matrix_double3x2.hpp',['../a00069.html',1,'']]], + ['matrix_5fdouble3x2_5fprecision_2ehpp',['matrix_double3x2_precision.hpp',['../a00070.html',1,'']]], + ['matrix_5fdouble3x3_2ehpp',['matrix_double3x3.hpp',['../a00071.html',1,'']]], + ['matrix_5fdouble3x3_5fprecision_2ehpp',['matrix_double3x3_precision.hpp',['../a00072.html',1,'']]], + ['matrix_5fdouble3x4_2ehpp',['matrix_double3x4.hpp',['../a00073.html',1,'']]], + ['matrix_5fdouble3x4_5fprecision_2ehpp',['matrix_double3x4_precision.hpp',['../a00074.html',1,'']]], + ['matrix_5fdouble4x2_2ehpp',['matrix_double4x2.hpp',['../a00075.html',1,'']]], + ['matrix_5fdouble4x2_5fprecision_2ehpp',['matrix_double4x2_precision.hpp',['../a00076.html',1,'']]], + ['matrix_5fdouble4x3_2ehpp',['matrix_double4x3.hpp',['../a00077.html',1,'']]], + ['matrix_5fdouble4x3_5fprecision_2ehpp',['matrix_double4x3_precision.hpp',['../a00078.html',1,'']]], + ['matrix_5fdouble4x4_2ehpp',['matrix_double4x4.hpp',['../a00079.html',1,'']]], + ['matrix_5fdouble4x4_5fprecision_2ehpp',['matrix_double4x4_precision.hpp',['../a00080.html',1,'']]], + ['matrix_5ffactorisation_2ehpp',['matrix_factorisation.hpp',['../a00081.html',1,'']]], + ['matrix_5ffloat2x2_2ehpp',['matrix_float2x2.hpp',['../a00082.html',1,'']]], + ['matrix_5ffloat2x2_5fprecision_2ehpp',['matrix_float2x2_precision.hpp',['../a00083.html',1,'']]], + ['matrix_5ffloat2x3_2ehpp',['matrix_float2x3.hpp',['../a00084.html',1,'']]], + ['matrix_5ffloat2x3_5fprecision_2ehpp',['matrix_float2x3_precision.hpp',['../a00085.html',1,'']]], + ['matrix_5ffloat2x4_2ehpp',['matrix_float2x4.hpp',['../a00086.html',1,'']]], + ['matrix_5ffloat2x4_5fprecision_2ehpp',['matrix_float2x4_precision.hpp',['../a00087.html',1,'']]], + ['matrix_5ffloat3x2_2ehpp',['matrix_float3x2.hpp',['../a00088.html',1,'']]], + ['matrix_5ffloat3x2_5fprecision_2ehpp',['matrix_float3x2_precision.hpp',['../a00089.html',1,'']]], + ['matrix_5ffloat3x3_2ehpp',['matrix_float3x3.hpp',['../a00090.html',1,'']]], + ['matrix_5ffloat3x3_5fprecision_2ehpp',['matrix_float3x3_precision.hpp',['../a00091.html',1,'']]], + ['matrix_5ffloat3x4_2ehpp',['matrix_float3x4.hpp',['../a00092.html',1,'']]], + ['matrix_5ffloat3x4_5fprecision_2ehpp',['matrix_float3x4_precision.hpp',['../a00093.html',1,'']]], + ['matrix_5ffloat4x2_2ehpp',['matrix_float4x2.hpp',['../a00094.html',1,'']]], + ['matrix_5ffloat4x3_2ehpp',['matrix_float4x3.hpp',['../a00096.html',1,'']]], + ['matrix_5ffloat4x3_5fprecision_2ehpp',['matrix_float4x3_precision.hpp',['../a00097.html',1,'']]], + ['matrix_5ffloat4x4_2ehpp',['matrix_float4x4.hpp',['../a00098.html',1,'']]], + ['matrix_5ffloat4x4_5fprecision_2ehpp',['matrix_float4x4_precision.hpp',['../a00099.html',1,'']]], + ['matrix_5finteger_2ehpp',['matrix_integer.hpp',['../a00100.html',1,'']]], + ['matrix_5finterpolation_2ehpp',['matrix_interpolation.hpp',['../a00101.html',1,'']]], + ['matrix_5finverse_2ehpp',['matrix_inverse.hpp',['../a00102.html',1,'']]], + ['matrix_5fmajor_5fstorage_2ehpp',['matrix_major_storage.hpp',['../a00103.html',1,'']]], + ['matrix_5foperation_2ehpp',['matrix_operation.hpp',['../a00104.html',1,'']]], + ['matrix_5fprojection_2ehpp',['matrix_projection.hpp',['../a00105.html',1,'']]], + ['matrix_5fquery_2ehpp',['matrix_query.hpp',['../a00106.html',1,'']]], + ['matrix_5frelational_2ehpp',['matrix_relational.hpp',['../a00107.html',1,'']]], + ['matrix_5ftransform_5f2d_2ehpp',['matrix_transform_2d.hpp',['../a00110.html',1,'']]], + ['matrixcompmult',['matrixCompMult',['../a00371.html#gaf14569404c779fedca98d0b9b8e58c1f',1,'glm']]], + ['matrixcross3',['matrixCross3',['../a00334.html#ga5802386bb4c37b3332a3b6fd8b6960ff',1,'glm']]], + ['matrixcross4',['matrixCross4',['../a00334.html#ga20057fff91ddafa102934adb25458cde',1,'glm']]], + ['max',['max',['../a00241.html#gae02d42887fc5570451f880e3c624b9ac',1,'glm::max(genType x, genType y)'],['../a00241.html#ga03e45d6e60d1c36edb00c52edeea0f31',1,'glm::max(vec< L, T, Q > const &x, T y)'],['../a00241.html#gac1fec0c3303b572a6d4697a637213870',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00258.html#gaa20839d9ab14514f8966f69877ea0de8',1,'glm::max(T a, T b, T c)'],['../a00258.html#ga2274b5e75ed84b0b1e50d8d22f1f2f67',1,'glm::max(T a, T b, T c, T d)'],['../a00267.html#gaa45d34f6a2906f8bf58ab2ba5429234d',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z)'],['../a00267.html#ga94d42b8da2b4ded5ddf7504fbdc6bf10',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w)'],['../a00321.html#ga04991ccb9865c4c4e58488cfb209ce69',1,'glm::max(T const &x, T const &y, T const &z)'],['../a00321.html#gae1b7bbe5c91de4924835ea3e14530744',1,'glm::max(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)'],['../a00321.html#gaf832e9d4ab4826b2dda2fda25935a3a4',1,'glm::max(C< T > const &x, C< T > const &y, C< T > const &z)'],['../a00321.html#ga78e04a0cef1c4863fcae1a2130500d87',1,'glm::max(T const &x, T const &y, T const &z, T const &w)'],['../a00321.html#ga7cca8b53cfda402040494cdf40fbdf4a',1,'glm::max(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)'],['../a00321.html#gaacffbc466c2d08c140b181e7fd8a4858',1,'glm::max(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)']]], + ['mediump_5fbvec1',['mediump_bvec1',['../a00266.html#ga7b4ccb989ba179fa44f7b0879c782621',1,'glm']]], + ['mediump_5fbvec2',['mediump_bvec2',['../a00282.html#ga1e743764869efa9223c2bcefccedaddc',1,'glm']]], + ['mediump_5fbvec3',['mediump_bvec3',['../a00282.html#ga50c783c25082882ef00fe2e5cddba4aa',1,'glm']]], + ['mediump_5fbvec4',['mediump_bvec4',['../a00282.html#ga0be2c682258604a35004f088782a9645',1,'glm']]], + ['mediump_5fddualquat',['mediump_ddualquat',['../a00317.html#ga0fb11e48e2d16348ccb06a25213641b4',1,'glm']]], + ['mediump_5fdmat2',['mediump_dmat2',['../a00284.html#ga6205fd19be355600334edef6af0b27cb',1,'glm']]], + ['mediump_5fdmat2x2',['mediump_dmat2x2',['../a00284.html#ga51dc36a7719cb458fa5114831c20d64f',1,'glm']]], + ['mediump_5fdmat2x3',['mediump_dmat2x3',['../a00284.html#ga741e05adf1f12d5d913f67088db1009a',1,'glm']]], + ['mediump_5fdmat2x4',['mediump_dmat2x4',['../a00284.html#ga685bda24922d112786af385deb4deb43',1,'glm']]], + ['mediump_5fdmat3',['mediump_dmat3',['../a00284.html#ga939fbf9c53008a8e84c7dd7cf8de29e2',1,'glm']]], + ['mediump_5fdmat3x2',['mediump_dmat3x2',['../a00284.html#ga2076157df85e49b8c021e03e46a376c1',1,'glm']]], + ['mediump_5fdmat3x3',['mediump_dmat3x3',['../a00284.html#ga47bd2aae4701ee2fc865674a9df3d7a6',1,'glm']]], + ['mediump_5fdmat3x4',['mediump_dmat3x4',['../a00284.html#ga3a132bd05675c2e46556f67cf738600b',1,'glm']]], + ['mediump_5fdmat4',['mediump_dmat4',['../a00284.html#gaf650bc667bf2a0e496b5a9182bc8d378',1,'glm']]], + ['mediump_5fdmat4x2',['mediump_dmat4x2',['../a00284.html#gae220fa4c5a7b13ef2ab0420340de645c',1,'glm']]], + ['mediump_5fdmat4x3',['mediump_dmat4x3',['../a00284.html#ga43ef60e4d996db15c9c8f069a96ff763',1,'glm']]], + ['mediump_5fdmat4x4',['mediump_dmat4x4',['../a00284.html#ga5389b3ab32dc0d72bea00057ab6d1dd3',1,'glm']]], + ['mediump_5fdquat',['mediump_dquat',['../a00250.html#gacdf73b1f7fd8f5a0c79a3934e99c1a14',1,'glm']]], + ['mediump_5fdualquat',['mediump_dualquat',['../a00317.html#gaa7aeb54c167712b38f2178a1be2360ad',1,'glm']]], + ['mediump_5fdvec1',['mediump_dvec1',['../a00269.html#ga79a789ebb176b37a45848f7ccdd3b3dd',1,'glm']]], + ['mediump_5fdvec2',['mediump_dvec2',['../a00282.html#ga2f4f6e9a69a0281d06940fd0990cafc3',1,'glm']]], + ['mediump_5fdvec3',['mediump_dvec3',['../a00282.html#ga61c3b1dff4ec7c878af80503141b9f37',1,'glm']]], + ['mediump_5fdvec4',['mediump_dvec4',['../a00282.html#ga23a8bca00914a51542bfea13a4778186',1,'glm']]], + ['mediump_5ff32',['mediump_f32',['../a00304.html#ga3b27fcd9eaa2757f0aaf6b0ce0d85c80',1,'glm']]], + ['mediump_5ff32mat2',['mediump_f32mat2',['../a00304.html#gaf9020c6176a75bc84828ab01ea7dac25',1,'glm']]], + ['mediump_5ff32mat2x2',['mediump_f32mat2x2',['../a00304.html#gaa3ca74a44102035b3ffb5c9c52dfdd3f',1,'glm']]], + ['mediump_5ff32mat2x3',['mediump_f32mat2x3',['../a00304.html#gad4cc829ab1ad3e05ac0a24828a3c95cf',1,'glm']]], + ['mediump_5ff32mat2x4',['mediump_f32mat2x4',['../a00304.html#gae71445ac6cd0b9fba3e5c905cd030fb1',1,'glm']]], + ['mediump_5ff32mat3',['mediump_f32mat3',['../a00304.html#gaaaf878d0d7bfc0aac054fe269a886ca8',1,'glm']]], + ['mediump_5ff32mat3x2',['mediump_f32mat3x2',['../a00304.html#gaaab39454f56cf9fc6d940358ce5e6a0f',1,'glm']]], + ['mediump_5ff32mat3x3',['mediump_f32mat3x3',['../a00304.html#gacd80ad7640e9e32f2edcb8330b1ffe4f',1,'glm']]], + ['mediump_5ff32mat3x4',['mediump_f32mat3x4',['../a00304.html#ga8df705d775b776f5ae6b39e2ab892899',1,'glm']]], + ['mediump_5ff32mat4',['mediump_f32mat4',['../a00304.html#ga4491baaebbc46a20f1cb5da985576bf4',1,'glm']]], + ['mediump_5ff32mat4x2',['mediump_f32mat4x2',['../a00304.html#gab005efe0fa4de1a928e8ddec4bc2c43f',1,'glm']]], + ['mediump_5ff32mat4x3',['mediump_f32mat4x3',['../a00304.html#gade108f16633cf95fa500b5b8c36c8b00',1,'glm']]], + ['mediump_5ff32mat4x4',['mediump_f32mat4x4',['../a00304.html#ga936e95b881ecd2d109459ca41913fa99',1,'glm']]], + ['mediump_5ff32quat',['mediump_f32quat',['../a00304.html#gaa40c03d52dbfbfaf03e75773b9606ff3',1,'glm']]], + ['mediump_5ff32vec1',['mediump_f32vec1',['../a00304.html#gabb33cab7d7c74cc14aa95455d0690865',1,'glm']]], + ['mediump_5ff32vec2',['mediump_f32vec2',['../a00304.html#gad6eb11412a3161ca8dc1d63b2a307c4b',1,'glm']]], + ['mediump_5ff32vec3',['mediump_f32vec3',['../a00304.html#ga062ffef2973bd8241df993c3b30b327c',1,'glm']]], + ['mediump_5ff32vec4',['mediump_f32vec4',['../a00304.html#gad80c84bcd5f585840faa6179f6fd446c',1,'glm']]], + ['mediump_5ff64',['mediump_f64',['../a00304.html#ga6d40381d78472553f878f66e443feeef',1,'glm']]], + ['mediump_5ff64mat2',['mediump_f64mat2',['../a00304.html#gac1281da5ded55047e8892b0e1f1ae965',1,'glm']]], + ['mediump_5ff64mat2x2',['mediump_f64mat2x2',['../a00304.html#ga4fd527644cccbca4cb205320eab026f3',1,'glm']]], + ['mediump_5ff64mat2x3',['mediump_f64mat2x3',['../a00304.html#gafd9a6ebc0c7b95f5c581d00d16a17c54',1,'glm']]], + ['mediump_5ff64mat2x4',['mediump_f64mat2x4',['../a00304.html#gaf306dd69e53633636aee38cea79d4cb7',1,'glm']]], + ['mediump_5ff64mat3',['mediump_f64mat3',['../a00304.html#gad35fb67eb1d03c5a514f0bd7aed1c776',1,'glm']]], + ['mediump_5ff64mat3x2',['mediump_f64mat3x2',['../a00304.html#gacd926d36a72433f6cac51dd60fa13107',1,'glm']]], + ['mediump_5ff64mat3x3',['mediump_f64mat3x3',['../a00304.html#ga84d88a6e3a54ccd2b67e195af4a4c23e',1,'glm']]], + ['mediump_5ff64mat3x4',['mediump_f64mat3x4',['../a00304.html#gad38c544d332b8c4bd0b70b1bd9feccc2',1,'glm']]], + ['mediump_5ff64mat4',['mediump_f64mat4',['../a00304.html#gaa805ef691c711dc41e2776cfb67f5cf5',1,'glm']]], + ['mediump_5ff64mat4x2',['mediump_f64mat4x2',['../a00304.html#ga17d36f0ea22314117e1cec9594b33945',1,'glm']]], + ['mediump_5ff64mat4x3',['mediump_f64mat4x3',['../a00304.html#ga54697a78f9a4643af6a57fc2e626ec0d',1,'glm']]], + ['mediump_5ff64mat4x4',['mediump_f64mat4x4',['../a00304.html#ga66edb8de17b9235029472f043ae107e9',1,'glm']]], + ['mediump_5ff64quat',['mediump_f64quat',['../a00304.html#ga5e52f485059ce6e3010c590b882602c9',1,'glm']]], + ['mediump_5ff64vec1',['mediump_f64vec1',['../a00304.html#gac30fdf8afa489400053275b6a3350127',1,'glm']]], + ['mediump_5ff64vec2',['mediump_f64vec2',['../a00304.html#ga8ebc04ecf6440c4ee24718a16600ce6b',1,'glm']]], + ['mediump_5ff64vec3',['mediump_f64vec3',['../a00304.html#ga461c4c7d0757404dd0dba931760b25cf',1,'glm']]], + ['mediump_5ff64vec4',['mediump_f64vec4',['../a00304.html#gacfea053bd6bb3eddb996a4f94de22a3e',1,'glm']]], + ['mediump_5ffdualquat',['mediump_fdualquat',['../a00317.html#ga4a6b594ff7e81150d8143001367a9431',1,'glm']]], + ['mediump_5ffloat32',['mediump_float32',['../a00304.html#ga7812bf00676fb1a86dcd62cca354d2c7',1,'glm']]], + ['mediump_5ffloat32_5ft',['mediump_float32_t',['../a00304.html#gae4dee61f8fe1caccec309fbed02faf12',1,'glm']]], + ['mediump_5ffloat64',['mediump_float64',['../a00304.html#gab83d8aae6e4f115e97a785e8574a115f',1,'glm']]], + ['mediump_5ffloat64_5ft',['mediump_float64_t',['../a00304.html#gac61843e4fa96c1f4e9d8316454f32a8e',1,'glm']]], + ['mediump_5ffmat2',['mediump_fmat2',['../a00304.html#ga74e9133378fd0b4da8ac0bc0876702ff',1,'glm']]], + ['mediump_5ffmat2x2',['mediump_fmat2x2',['../a00304.html#ga98a687c17b174ea316b5f397b64f44bc',1,'glm']]], + ['mediump_5ffmat2x3',['mediump_fmat2x3',['../a00304.html#gaa03f939d90d5ef157df957d93f0b9a64',1,'glm']]], + ['mediump_5ffmat2x4',['mediump_fmat2x4',['../a00304.html#ga35223623e9ccebd8a281873b71b7d213',1,'glm']]], + ['mediump_5ffmat3',['mediump_fmat3',['../a00304.html#ga80823dfad5dba98512c76af498343847',1,'glm']]], + ['mediump_5ffmat3x2',['mediump_fmat3x2',['../a00304.html#ga42569e5b92f8635cedeadb1457ee1467',1,'glm']]], + ['mediump_5ffmat3x3',['mediump_fmat3x3',['../a00304.html#gaa6f526388c74a66b3d52315a14d434ae',1,'glm']]], + ['mediump_5ffmat3x4',['mediump_fmat3x4',['../a00304.html#gaefe8ef520c6cb78590ebbefe648da4d4',1,'glm']]], + ['mediump_5ffmat4',['mediump_fmat4',['../a00304.html#gac1c38778c0b5a1263f07753c05a4f7b9',1,'glm']]], + ['mediump_5ffmat4x2',['mediump_fmat4x2',['../a00304.html#gacea38a85893e17e6834b6cb09a9ad0cf',1,'glm']]], + ['mediump_5ffmat4x3',['mediump_fmat4x3',['../a00304.html#ga41ad497f7eae211556aefd783cb02b90',1,'glm']]], + ['mediump_5ffmat4x4',['mediump_fmat4x4',['../a00304.html#ga22e27beead07bff4d5ce9d6065a57279',1,'glm']]], + ['mediump_5ffvec1',['mediump_fvec1',['../a00304.html#ga367964fc2133d3f1b5b3755ff9cf6c9b',1,'glm']]], + ['mediump_5ffvec2',['mediump_fvec2',['../a00304.html#ga44bfa55cda5dbf53f24a1fb7610393d6',1,'glm']]], + ['mediump_5ffvec3',['mediump_fvec3',['../a00304.html#ga999dc6703ad16e3d3c26b74ea8083f07',1,'glm']]], + ['mediump_5ffvec4',['mediump_fvec4',['../a00304.html#ga1bed890513c0f50b7e7ba4f7f359dbfb',1,'glm']]], + ['mediump_5fi16',['mediump_i16',['../a00304.html#ga62a17cddeb4dffb4e18fe3aea23f051a',1,'glm']]], + ['mediump_5fi16vec1',['mediump_i16vec1',['../a00304.html#gacc44265ed440bf5e6e566782570de842',1,'glm']]], + ['mediump_5fi16vec2',['mediump_i16vec2',['../a00304.html#ga4b5e2c9aaa5d7717bf71179aefa12e88',1,'glm']]], + ['mediump_5fi16vec3',['mediump_i16vec3',['../a00304.html#ga3be6c7fc5fe08fa2274bdb001d5f2633',1,'glm']]], + ['mediump_5fi16vec4',['mediump_i16vec4',['../a00304.html#gaf52982bb23e3a3772649b2c5bb84b107',1,'glm']]], + ['mediump_5fi32',['mediump_i32',['../a00304.html#gaf5e94bf2a20af7601787c154751dc2e1',1,'glm']]], + ['mediump_5fi32vec1',['mediump_i32vec1',['../a00304.html#ga46a57f71e430637559097a732b550a7e',1,'glm']]], + ['mediump_5fi32vec2',['mediump_i32vec2',['../a00304.html#ga20bf224bd4f8a24ecc4ed2004a40c219',1,'glm']]], + ['mediump_5fi32vec3',['mediump_i32vec3',['../a00304.html#ga13a221b910aa9eb1b04ca1c86e81015a',1,'glm']]], + ['mediump_5fi32vec4',['mediump_i32vec4',['../a00304.html#ga6addd4dfee87fc09ab9525e3d07db4c8',1,'glm']]], + ['mediump_5fi64',['mediump_i64',['../a00304.html#ga3ebcb1f6d8d8387253de8bccb058d77f',1,'glm']]], + ['mediump_5fi64vec1',['mediump_i64vec1',['../a00304.html#ga8343e9d244fb17a5bbf0d94d36b3695e',1,'glm']]], + ['mediump_5fi64vec2',['mediump_i64vec2',['../a00304.html#ga2c94aeae3457325944ca1059b0b68330',1,'glm']]], + ['mediump_5fi64vec3',['mediump_i64vec3',['../a00304.html#ga8089722ffdf868cdfe721dea1fb6a90e',1,'glm']]], + ['mediump_5fi64vec4',['mediump_i64vec4',['../a00304.html#gabf1f16c5ab8cb0484bd1e846ae4368f1',1,'glm']]], + ['mediump_5fi8',['mediump_i8',['../a00304.html#gacf1ded173e1e2d049c511d095b259e21',1,'glm']]], + ['mediump_5fi8vec1',['mediump_i8vec1',['../a00304.html#ga85e8893f4ae3630065690a9000c0c483',1,'glm']]], + ['mediump_5fi8vec2',['mediump_i8vec2',['../a00304.html#ga2a8bdc32184ea0a522ef7bd90640cf67',1,'glm']]], + ['mediump_5fi8vec3',['mediump_i8vec3',['../a00304.html#ga6dd1c1618378c6f94d522a61c28773c9',1,'glm']]], + ['mediump_5fi8vec4',['mediump_i8vec4',['../a00304.html#gac7bb04fb857ef7b520e49f6c381432be',1,'glm']]], + ['mediump_5fimat2',['mediump_imat2',['../a00294.html#ga20f4cc7ab23e2aa1f4db9fdb5496d378',1,'glm']]], + ['mediump_5fimat2x2',['mediump_imat2x2',['../a00294.html#ga4b2aeb11a329940721dda9583e71f856',1,'glm']]], + ['mediump_5fimat2x3',['mediump_imat2x3',['../a00294.html#ga74362470ba99843ac70aee5ac38cc674',1,'glm']]], + ['mediump_5fimat2x4',['mediump_imat2x4',['../a00294.html#ga8da25cd380ba30fc5b68a4687deb3e09',1,'glm']]], + ['mediump_5fimat3',['mediump_imat3',['../a00294.html#ga6c63bdc736efd3466e0730de0251cb71',1,'glm']]], + ['mediump_5fimat3x2',['mediump_imat3x2',['../a00294.html#gac0b4e42d648fb3eaf4bb88da82ecc809',1,'glm']]], + ['mediump_5fimat3x3',['mediump_imat3x3',['../a00294.html#gad99cc2aad8fc57f068cfa7719dbbea12',1,'glm']]], + ['mediump_5fimat3x4',['mediump_imat3x4',['../a00294.html#ga67689a518b181a26540bc44a163525cd',1,'glm']]], + ['mediump_5fimat4',['mediump_imat4',['../a00294.html#gaf348552978553630d2a00b78eb887ced',1,'glm']]], + ['mediump_5fimat4x2',['mediump_imat4x2',['../a00294.html#ga8b2d35816f7103f0f4c82dd2f27571fc',1,'glm']]], + ['mediump_5fimat4x3',['mediump_imat4x3',['../a00294.html#ga5b10acc696759e03f6ab918f4467e94c',1,'glm']]], + ['mediump_5fimat4x4',['mediump_imat4x4',['../a00294.html#ga2596869d154dec1180beadbb9df80501',1,'glm']]], + ['mediump_5fint16',['mediump_int16',['../a00304.html#gadff3608baa4b5bd3ed28f95c1c2c345d',1,'glm']]], + ['mediump_5fint16_5ft',['mediump_int16_t',['../a00304.html#ga80e72fe94c88498537e8158ba7591c54',1,'glm']]], + ['mediump_5fint32',['mediump_int32',['../a00304.html#ga5244cef85d6e870e240c76428a262ae8',1,'glm']]], + ['mediump_5fint32_5ft',['mediump_int32_t',['../a00304.html#ga26fc7ced1ad7ca5024f1c973c8dc9180',1,'glm']]], + ['mediump_5fint64',['mediump_int64',['../a00304.html#ga7b968f2b86a0442a89c7359171e1d866',1,'glm']]], + ['mediump_5fint64_5ft',['mediump_int64_t',['../a00304.html#gac3bc41bcac61d1ba8f02a6f68ce23f64',1,'glm']]], + ['mediump_5fint8',['mediump_int8',['../a00304.html#ga6fbd69cbdaa44345bff923a2cf63de7e',1,'glm']]], + ['mediump_5fint8_5ft',['mediump_int8_t',['../a00304.html#ga6d7b3789ecb932c26430009478cac7ae',1,'glm']]], + ['mediump_5fivec1',['mediump_ivec1',['../a00273.html#gad628c608970b3d0aa6cfb63ce6e53e56',1,'glm']]], + ['mediump_5fivec2',['mediump_ivec2',['../a00282.html#gac57496299d276ed97044074097bd5e2c',1,'glm']]], + ['mediump_5fivec3',['mediump_ivec3',['../a00282.html#ga27cfb51e0dbe15bba27a14a8590e8466',1,'glm']]], + ['mediump_5fivec4',['mediump_ivec4',['../a00282.html#ga92a204c37e66ac6c1dc7ae91142f2ea5',1,'glm']]], + ['mediump_5fmat2',['mediump_mat2',['../a00284.html#ga745452bd9c89f5ad948203e4fb4b4ea3',1,'glm']]], + ['mediump_5fmat2x2',['mediump_mat2x2',['../a00284.html#ga0cdf57d29f9448864237b2fb3e39aa1d',1,'glm']]], + ['mediump_5fmat2x3',['mediump_mat2x3',['../a00284.html#ga497d513d552d927537d61fa11e3701ab',1,'glm']]], + ['mediump_5fmat2x4',['mediump_mat2x4',['../a00284.html#gae7b75ea2e09fa686a79bbe9b6ca68ee5',1,'glm']]], + ['mediump_5fmat3',['mediump_mat3',['../a00284.html#ga5aae49834d02732942f44e61d7bce136',1,'glm']]], + ['mediump_5fmat3x2',['mediump_mat3x2',['../a00284.html#ga9e1c9ee65fef547bde793e69723e24eb',1,'glm']]], + ['mediump_5fmat3x3',['mediump_mat3x3',['../a00284.html#gabc0f2f4ad21c90b341881cf056f8650e',1,'glm']]], + ['mediump_5fmat3x4',['mediump_mat3x4',['../a00284.html#gaa669c6675c3405f76c0b14020d1c0d61',1,'glm']]], + ['mediump_5fmat4',['mediump_mat4',['../a00284.html#gab8531bc3f269aa45835cd6e1972b7fc7',1,'glm']]], + ['mediump_5fmat4x2',['mediump_mat4x2',['../a00284.html#gad75706b70545412ba9ac27d5ee210f66',1,'glm']]], + ['mediump_5fmat4x3',['mediump_mat4x3',['../a00284.html#ga4a1440b5ea3cf84d5b06c79b534bd770',1,'glm']]], + ['mediump_5fmat4x4',['mediump_mat4x4',['../a00284.html#ga15bca2b70917d9752231160d9da74b01',1,'glm']]], + ['mediump_5fquat',['mediump_quat',['../a00253.html#gad2a59409de1bb12ccb6eb692ee7e9d8d',1,'glm']]], + ['mediump_5fu16',['mediump_u16',['../a00304.html#ga9df98857be695d5a30cb30f5bfa38a80',1,'glm']]], + ['mediump_5fu16vec1',['mediump_u16vec1',['../a00304.html#ga400ce8cc566de093a9b28e59e220d6e4',1,'glm']]], + ['mediump_5fu16vec2',['mediump_u16vec2',['../a00304.html#ga429c201b3e92c90b4ef4356f2be52ee1',1,'glm']]], + ['mediump_5fu16vec3',['mediump_u16vec3',['../a00304.html#gac9ba20234b0c3751d45ce575fc71e551',1,'glm']]], + ['mediump_5fu16vec4',['mediump_u16vec4',['../a00304.html#ga5793393686ce5bd2d5968ff9144762b8',1,'glm']]], + ['mediump_5fu32',['mediump_u32',['../a00304.html#ga1bd0e914158bf03135f8a317de6debe9',1,'glm']]], + ['mediump_5fu32vec1',['mediump_u32vec1',['../a00304.html#ga8a11ccd2e38f674bbf3c2d1afc232aee',1,'glm']]], + ['mediump_5fu32vec2',['mediump_u32vec2',['../a00304.html#ga94f74851fce338549c705b5f0d601c4f',1,'glm']]], + ['mediump_5fu32vec3',['mediump_u32vec3',['../a00304.html#ga012c24c8fc69707b90260474c70275a2',1,'glm']]], + ['mediump_5fu32vec4',['mediump_u32vec4',['../a00304.html#ga5d43ee8b5dbaa06c327b03b83682598a',1,'glm']]], + ['mediump_5fu64',['mediump_u64',['../a00304.html#ga2af9490085ae3bdf36a544e9dd073610',1,'glm']]], + ['mediump_5fu64vec1',['mediump_u64vec1',['../a00304.html#ga659f372ccb8307d5db5beca942cde5e8',1,'glm']]], + ['mediump_5fu64vec2',['mediump_u64vec2',['../a00304.html#ga73a08ef5a74798f3a1a99250b5f86a7d',1,'glm']]], + ['mediump_5fu64vec3',['mediump_u64vec3',['../a00304.html#ga1900c6ab74acd392809425953359ef52',1,'glm']]], + ['mediump_5fu64vec4',['mediump_u64vec4',['../a00304.html#gaec7ee455cb379ec2993e81482123e1cc',1,'glm']]], + ['mediump_5fu8',['mediump_u8',['../a00304.html#gad1213a22bbb9e4107f07eaa4956f8281',1,'glm']]], + ['mediump_5fu8vec1',['mediump_u8vec1',['../a00304.html#ga4a43050843b141bdc7e85437faef6f55',1,'glm']]], + ['mediump_5fu8vec2',['mediump_u8vec2',['../a00304.html#ga907f85d4a0eac3d8aaf571e5c2647194',1,'glm']]], + ['mediump_5fu8vec3',['mediump_u8vec3',['../a00304.html#gaddc6f7748b699254942c5216b68f8f7f',1,'glm']]], + ['mediump_5fu8vec4',['mediump_u8vec4',['../a00304.html#gaaf4ee3b76d43d98da02ec399b99bda4b',1,'glm']]], + ['mediump_5fuint16',['mediump_uint16',['../a00304.html#ga2885a6c89916911e418c06bb76b9bdbb',1,'glm']]], + ['mediump_5fuint16_5ft',['mediump_uint16_t',['../a00304.html#ga3963b1050fc65a383ee28e3f827b6e3e',1,'glm']]], + ['mediump_5fuint32',['mediump_uint32',['../a00304.html#ga34dd5ec1988c443bae80f1b20a8ade5f',1,'glm']]], + ['mediump_5fuint32_5ft',['mediump_uint32_t',['../a00304.html#gaf4dae276fd29623950de14a6ca2586b5',1,'glm']]], + ['mediump_5fuint64',['mediump_uint64',['../a00304.html#ga30652709815ad9404272a31957daa59e',1,'glm']]], + ['mediump_5fuint64_5ft',['mediump_uint64_t',['../a00304.html#ga9b170dd4a8f38448a2dc93987c7875e9',1,'glm']]], + ['mediump_5fuint8',['mediump_uint8',['../a00304.html#ga1fa92a233b9110861cdbc8c2ccf0b5a3',1,'glm']]], + ['mediump_5fuint8_5ft',['mediump_uint8_t',['../a00304.html#gadfe65c78231039e90507770db50c98c7',1,'glm']]], + ['mediump_5fumat2',['mediump_umat2',['../a00294.html#ga43041378b3410ea951b7de0dfd2bc7ee',1,'glm']]], + ['mediump_5fumat2x2',['mediump_umat2x2',['../a00294.html#ga3b209b1b751f041422137e3c065dfa98',1,'glm']]], + ['mediump_5fumat2x3',['mediump_umat2x3',['../a00294.html#gaee2c1f13b41f4c92ea5b3efe367a1306',1,'glm']]], + ['mediump_5fumat2x4',['mediump_umat2x4',['../a00294.html#gae1317ddca16d01e119a40b7f0ee85f95',1,'glm']]], + ['mediump_5fumat3',['mediump_umat3',['../a00294.html#ga1730dbe3c67801f53520b06d1aa0a34a',1,'glm']]], + ['mediump_5fumat3x2',['mediump_umat3x2',['../a00294.html#gaadc28bfdc8ebca81ae85121b11994970',1,'glm']]], + ['mediump_5fumat3x3',['mediump_umat3x3',['../a00294.html#ga48f2fc38d3f7fab3cfbc961278ced53d',1,'glm']]], + ['mediump_5fumat3x4',['mediump_umat3x4',['../a00294.html#ga78009a1e4ca64217e46b418535e52546',1,'glm']]], + ['mediump_5fumat4',['mediump_umat4',['../a00294.html#ga5087c2beb26a11d9af87432e554cf9d1',1,'glm']]], + ['mediump_5fumat4x2',['mediump_umat4x2',['../a00294.html#gaf35aefd81cc13718f6b059623f7425fa',1,'glm']]], + ['mediump_5fumat4x3',['mediump_umat4x3',['../a00294.html#ga4e1bed14fbc7f4b376aaed064f89f0fb',1,'glm']]], + ['mediump_5fumat4x4',['mediump_umat4x4',['../a00294.html#gaa9428fc8430dc552aad920653f822ef3',1,'glm']]], + ['mediump_5fuvec1',['mediump_uvec1',['../a00277.html#ga38fde73aaf1420175ece8d4882558a3f',1,'glm']]], + ['mediump_5fuvec2',['mediump_uvec2',['../a00282.html#gaa3b4f7806dad03d83bb3da0baa1e3b9b',1,'glm']]], + ['mediump_5fuvec3',['mediump_uvec3',['../a00282.html#ga83b7df38feefbb357f3673d950fafef7',1,'glm']]], + ['mediump_5fuvec4',['mediump_uvec4',['../a00282.html#ga64ed0deb6573375b7016daf82ffd53a7',1,'glm']]], + ['mediump_5fvec1',['mediump_vec1',['../a00271.html#ga645f53e6b8056609023a894b4e2beef4',1,'glm']]], + ['mediump_5fvec2',['mediump_vec2',['../a00282.html#gabc61976261c406520c7a8e4d946dc3f0',1,'glm']]], + ['mediump_5fvec3',['mediump_vec3',['../a00282.html#ga2384e263df19f1404b733016eff78fca',1,'glm']]], + ['mediump_5fvec4',['mediump_vec4',['../a00282.html#ga5c6978d3ffba06738416a33083853fc0',1,'glm']]], + ['min',['min',['../a00241.html#ga6cf8098827054a270ee36b18e30d471d',1,'glm::min(genType x, genType y)'],['../a00241.html#gaa7d015eba1f9f48519251f4abe69b14d',1,'glm::min(vec< L, T, Q > const &x, T y)'],['../a00241.html#ga31f49ef9e7d1beb003160c5e009b0c48',1,'glm::min(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00258.html#ga420b37cbd98c395b93dab0278305cd46',1,'glm::min(T a, T b, T c)'],['../a00258.html#ga0d24a9acb8178df77e4aff90cbb2010d',1,'glm::min(T a, T b, T c, T d)'],['../a00267.html#ga3cd83d80fd4f433d8e333593ec56dddf',1,'glm::min(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#gab66920ed064ab518d6859c5a889c4be4',1,'glm::min(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#ga713d3f9b3e76312c0d314e0c8611a6a6',1,'glm::min(T const &x, T const &y, T const &z)'],['../a00321.html#ga74d1a96e7cdbac40f6d35142d3bcbbd4',1,'glm::min(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)'],['../a00321.html#ga42b5c3fc027fd3d9a50d2ccc9126d9f0',1,'glm::min(C< T > const &x, C< T > const &y, C< T > const &z)'],['../a00321.html#ga95466987024d03039607f09e69813d69',1,'glm::min(T const &x, T const &y, T const &z, T const &w)'],['../a00321.html#ga4fe35dd31dd0c45693c9b60b830b8d47',1,'glm::min(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)'],['../a00321.html#ga7471ea4159eed8dd9ea4ac5d46c2fead',1,'glm::min(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)']]], + ['mirrorclamp',['mirrorClamp',['../a00369.html#gaa6856a0a048d2749252848da35e10c8b',1,'glm']]], + ['mirrorrepeat',['mirrorRepeat',['../a00369.html#ga16a89b0661b60d5bea85137bbae74d73',1,'glm']]], + ['mix',['mix',['../a00241.html#ga8e93f374aae27d1a88b921860351f8d4',1,'glm::mix(genTypeT x, genTypeT y, genTypeU a)'],['../a00248.html#gafbfe587b8da11fb89a30c3d67dd5ccc2',1,'glm::mix(qua< T, Q > const &x, qua< T, Q > const &y, T a)']]], + ['mixed_5fproduct_2ehpp',['mixed_product.hpp',['../a00111.html',1,'']]], + ['mixedproduct',['mixedProduct',['../a00342.html#gab3c6048fbb67f7243b088a4fee48d020',1,'glm']]], + ['mod',['mod',['../a00241.html#ga9b197a452cd52db3c5c18bac72bd7798',1,'glm::mod(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00330.html#gaabfbb41531ab7ad8d06fc176edfba785',1,'glm::mod(int x, int y)'],['../a00330.html#ga63fc8d63e7da1706439233b386ba8b6f',1,'glm::mod(uint x, uint y)']]], + ['modf',['modf',['../a00241.html#ga85e33f139b8db1b39b590a5713b9e679',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_b.html b/external/glm-0.9.9.8/doc/api/search/all_b.html new file mode 100644 index 0000000..f86ec8e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_b.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_b.js b/external/glm-0.9.9.8/doc/api/search/all_b.js new file mode 100644 index 0000000..97b4dff --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_b.js @@ -0,0 +1,15 @@ +var searchData= +[ + ['nextmultiple',['nextMultiple',['../a00261.html#gab770a3835c44c8a6fd225be4f4e6b317',1,'glm::nextMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#gace38d00601cbf49cd4dc03f003ab42b7',1,'glm::nextMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#gacda365edad320c7aff19cc283a3b8ca2',1,'glm::nextMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['nextpoweroftwo',['nextPowerOfTwo',['../a00261.html#ga3a37c2f2fd347886c9af6a3ca3db04dc',1,'glm::nextPowerOfTwo(genIUType v)'],['../a00274.html#gabba67f8aac9915e10fca727277274502',1,'glm::nextPowerOfTwo(vec< L, T, Q > const &v)']]], + ['nlz',['nlz',['../a00330.html#ga78dff8bdb361bf0061194c93e003d189',1,'glm']]], + ['noise_2ehpp',['noise.hpp',['../a00112.html',1,'']]], + ['norm_2ehpp',['norm.hpp',['../a00113.html',1,'']]], + ['normal_2ehpp',['normal.hpp',['../a00114.html',1,'']]], + ['normalize',['normalize',['../a00254.html#gabf30e3263fffe8dcc6659aea76ae8927',1,'glm::normalize(qua< T, Q > const &q)'],['../a00279.html#ga3b8d3dcae77870781392ed2902cce597',1,'glm::normalize(vec< L, T, Q > const &x)'],['../a00317.html#ga299b8641509606b1958ffa104a162cfe',1,'glm::normalize(tdualquat< T, Q > const &q)']]], + ['normalize_5fdot_2ehpp',['normalize_dot.hpp',['../a00115.html',1,'']]], + ['normalizedot',['normalizeDot',['../a00345.html#gacb140a2b903115d318c8b0a2fb5a5daa',1,'glm']]], + ['not_5f',['not_',['../a00374.html#ga610fcd175791fd246e328ffee10dbf1e',1,'glm']]], + ['notequal',['notEqual',['../a00246.html#ga8504f18a7e2bf315393032c2137dad83',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)'],['../a00246.html#ga29071147d118569344d10944b7d5c378',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)'],['../a00246.html#gad7959e14fbc35b4ed2617daf4d67f6cd',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)'],['../a00246.html#gaa1cd7fc228ef6e26c73583fd0d9c6552',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)'],['../a00246.html#gaa5517341754149ffba742d230afd1f32',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)'],['../a00255.html#gab441cee0de5867a868f3a586ee68cfe1',1,'glm::notEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00255.html#ga5117a44c1bf21af857cd23e44a96d313',1,'glm::notEqual(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)'],['../a00275.html#ga4a99cc41341567567a608719449c1fac',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)'],['../a00275.html#ga417cf51304359db18e819dda9bce5767',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)'],['../a00275.html#ga8b5c2c3f83422ae5b71fa960d03b0339',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)'],['../a00275.html#ga0b15ffe32987a6029b14398eb0def01a',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)'],['../a00374.html#ga17c19dc1b76cd5aef63e9e7ff3aa3c27',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['number_5fprecision_2ehpp',['number_precision.hpp',['../a00116.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_c.html b/external/glm-0.9.9.8/doc/api/search/all_c.html new file mode 100644 index 0000000..579f536 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_c.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_c.js b/external/glm-0.9.9.8/doc/api/search/all_c.js new file mode 100644 index 0000000..6aafd29 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_c.js @@ -0,0 +1,27 @@ +var searchData= +[ + ['opengl_20mathematics_20_28glm_29',['OpenGL Mathematics (GLM)',['../index.html',1,'']]], + ['one',['one',['../a00290.html#ga39c2fb227631ca25894326529bdd1ee5',1,'glm']]], + ['one_5fover_5fpi',['one_over_pi',['../a00290.html#ga555150da2b06d23c8738981d5013e0eb',1,'glm']]], + ['one_5fover_5froot_5ftwo',['one_over_root_two',['../a00290.html#ga788fa23a0939bac4d1d0205fb4f35818',1,'glm']]], + ['one_5fover_5ftwo_5fpi',['one_over_two_pi',['../a00290.html#ga7c922b427986cbb2e4c6ac69874eefbc',1,'glm']]], + ['openbounded',['openBounded',['../a00314.html#gafd303042ba2ba695bf53b2315f53f93f',1,'glm']]], + ['optimum_5fpow_2ehpp',['optimum_pow.hpp',['../a00117.html',1,'']]], + ['orientate2',['orientate2',['../a00319.html#gae16738a9f1887cf4e4db6a124637608d',1,'glm']]], + ['orientate3',['orientate3',['../a00319.html#ga7ca98668a5786f19c7b38299ebbc9b4c',1,'glm::orientate3(T const &angle)'],['../a00319.html#ga7238c8e15c7720e3ca6a45ab151eeabb',1,'glm::orientate3(vec< 3, T, Q > const &angles)']]], + ['orientate4',['orientate4',['../a00319.html#ga4a044653f71a4ecec68e0b623382b48a',1,'glm']]], + ['orientation',['orientation',['../a00356.html#ga1a32fceb71962e6160e8af295c91930a',1,'glm']]], + ['orientedangle',['orientedAngle',['../a00367.html#ga9556a803dce87fe0f42fdabe4ebba1d5',1,'glm::orientedAngle(vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)'],['../a00367.html#ga706fce3d111f485839756a64f5a48553',1,'glm::orientedAngle(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, vec< 3, T, Q > const &ref)']]], + ['ortho',['ortho',['../a00243.html#gae5b6b40ed882cd56cd7cb97701909c06',1,'glm::ortho(T left, T right, T bottom, T top)'],['../a00243.html#ga6615d8a9d39432e279c4575313ecb456',1,'glm::ortho(T left, T right, T bottom, T top, T zNear, T zFar)']]], + ['ortholh',['orthoLH',['../a00243.html#gad122a79aadaa5529cec4ac197203db7f',1,'glm']]], + ['ortholh_5fno',['orthoLH_NO',['../a00243.html#ga526416735ea7c5c5cd255bf99d051bd8',1,'glm']]], + ['ortholh_5fzo',['orthoLH_ZO',['../a00243.html#gab37ac3eec8d61f22fceda7775e836afa',1,'glm']]], + ['orthono',['orthoNO',['../a00243.html#gab219d28a8f178d4517448fcd6395a073',1,'glm']]], + ['orthonormalize',['orthonormalize',['../a00348.html#ga4cab5d698e6e2eccea30c8e81c74371f',1,'glm::orthonormalize(mat< 3, 3, T, Q > const &m)'],['../a00348.html#gac3bc7ef498815026bc3d361ae0b7138e',1,'glm::orthonormalize(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)']]], + ['orthonormalize_2ehpp',['orthonormalize.hpp',['../a00118.html',1,'']]], + ['orthorh',['orthoRH',['../a00243.html#ga16264c9b838edeb9dd1de7a1010a13a4',1,'glm']]], + ['orthorh_5fno',['orthoRH_NO',['../a00243.html#gaa2f7a1373170bf0a4a2ddef9b0706780',1,'glm']]], + ['orthorh_5fzo',['orthoRH_ZO',['../a00243.html#ga9aea2e515b08fd7dce47b7b6ec34d588',1,'glm']]], + ['orthozo',['orthoZO',['../a00243.html#gaea11a70817af2c0801c869dea0b7a5bc',1,'glm']]], + ['outerproduct',['outerProduct',['../a00371.html#gac29fb7bae75a8e4c1b74cbbf85520e50',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_d.html b/external/glm-0.9.9.8/doc/api/search/all_d.html new file mode 100644 index 0000000..e92274d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_d.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_d.js b/external/glm-0.9.9.8/doc/api/search/all_d.js new file mode 100644 index 0000000..a04418a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_d.js @@ -0,0 +1,263 @@ +var searchData= +[ + ['packdouble2x32',['packDouble2x32',['../a00372.html#gaa916ca426b2bb0343ba17e3753e245c2',1,'glm']]], + ['packed_5fbvec1',['packed_bvec1',['../a00303.html#ga88632cea9008ac0ac1388e94e804a53c',1,'glm']]], + ['packed_5fbvec2',['packed_bvec2',['../a00303.html#gab85245913eaa40ab82adabcae37086cb',1,'glm']]], + ['packed_5fbvec3',['packed_bvec3',['../a00303.html#ga0c48f9417f649e27f3fb0c9f733a18bd',1,'glm']]], + ['packed_5fbvec4',['packed_bvec4',['../a00303.html#ga3180d7db84a74c402157df3bbc0ae3ed',1,'glm']]], + ['packed_5fdmat2',['packed_dmat2',['../a00303.html#gad87408a8350918711f845f071bbe43fb',1,'glm']]], + ['packed_5fdmat2x2',['packed_dmat2x2',['../a00303.html#gaaa33d8e06657a777efb0c72c44ce87a9',1,'glm']]], + ['packed_5fdmat2x3',['packed_dmat2x3',['../a00303.html#gac3a5315f588ba04ad255188071ec4e22',1,'glm']]], + ['packed_5fdmat2x4',['packed_dmat2x4',['../a00303.html#gae398fc3156f51d3684b08f62c1a5a6d4',1,'glm']]], + ['packed_5fdmat3',['packed_dmat3',['../a00303.html#ga03dfc90d539cc87ea3a15a9caa5d2245',1,'glm']]], + ['packed_5fdmat3x2',['packed_dmat3x2',['../a00303.html#gae36de20a4c0e0b1444b7903ae811d94e',1,'glm']]], + ['packed_5fdmat3x3',['packed_dmat3x3',['../a00303.html#gab9b909f1392d86854334350efcae85f5',1,'glm']]], + ['packed_5fdmat3x4',['packed_dmat3x4',['../a00303.html#ga199131fd279c92c2ac12df6d978f1dd6',1,'glm']]], + ['packed_5fdmat4',['packed_dmat4',['../a00303.html#gada980a3485640aa8151f368f17ad3086',1,'glm']]], + ['packed_5fdmat4x2',['packed_dmat4x2',['../a00303.html#ga6dc65249730698d3cc9ac5d7e1bc4d72',1,'glm']]], + ['packed_5fdmat4x3',['packed_dmat4x3',['../a00303.html#gadf202aaa9ed71c09f9bbe347e43f8764',1,'glm']]], + ['packed_5fdmat4x4',['packed_dmat4x4',['../a00303.html#gae20617435a6d042d7c38da2badd64a09',1,'glm']]], + ['packed_5fdvec1',['packed_dvec1',['../a00303.html#ga532f0c940649b1ee303acd572fc35531',1,'glm']]], + ['packed_5fdvec2',['packed_dvec2',['../a00303.html#ga5c194b11fbda636f2ab20c3bd0079196',1,'glm']]], + ['packed_5fdvec3',['packed_dvec3',['../a00303.html#ga0581ea552d86b2b5de7a2804bed80e72',1,'glm']]], + ['packed_5fdvec4',['packed_dvec4',['../a00303.html#gae8a9b181f9dc813ad6e125a52b14b935',1,'glm']]], + ['packed_5fhighp_5fbvec1',['packed_highp_bvec1',['../a00303.html#ga439e97795314b81cd15abd4e5c2e6e7a',1,'glm']]], + ['packed_5fhighp_5fbvec2',['packed_highp_bvec2',['../a00303.html#gad791d671f4fcf1ed1ea41f752916b70a',1,'glm']]], + ['packed_5fhighp_5fbvec3',['packed_highp_bvec3',['../a00303.html#ga6a5a3250b57dfadc66735bc72911437f',1,'glm']]], + ['packed_5fhighp_5fbvec4',['packed_highp_bvec4',['../a00303.html#ga09f517d88b996ef1b2f42fd54222b82d',1,'glm']]], + ['packed_5fhighp_5fdmat2',['packed_highp_dmat2',['../a00303.html#gae29686632fd05efac0675d9a6370d77b',1,'glm']]], + ['packed_5fhighp_5fdmat2x2',['packed_highp_dmat2x2',['../a00303.html#ga22bd6382b16052e301edbfc031b9f37a',1,'glm']]], + ['packed_5fhighp_5fdmat2x3',['packed_highp_dmat2x3',['../a00303.html#ga999d82719696d4c59f4d236dd08f273d',1,'glm']]], + ['packed_5fhighp_5fdmat2x4',['packed_highp_dmat2x4',['../a00303.html#ga6998ac2a8d7fe456b651a6336ed26bb0',1,'glm']]], + ['packed_5fhighp_5fdmat3',['packed_highp_dmat3',['../a00303.html#gadac7c040c4810dd52b36fcd09d097400',1,'glm']]], + ['packed_5fhighp_5fdmat3x2',['packed_highp_dmat3x2',['../a00303.html#gab462744977beb85fb5c782bc2eea7b15',1,'glm']]], + ['packed_5fhighp_5fdmat3x3',['packed_highp_dmat3x3',['../a00303.html#ga49e5a709d098523823b2f824e48672a6',1,'glm']]], + ['packed_5fhighp_5fdmat3x4',['packed_highp_dmat3x4',['../a00303.html#ga2c67b3b0adab71c8680c3d819f1fa9b7',1,'glm']]], + ['packed_5fhighp_5fdmat4',['packed_highp_dmat4',['../a00303.html#ga6718822cd7af005a9b5bd6ee282f6ba6',1,'glm']]], + ['packed_5fhighp_5fdmat4x2',['packed_highp_dmat4x2',['../a00303.html#ga12e39e797fb724a5b51fcbea2513a7da',1,'glm']]], + ['packed_5fhighp_5fdmat4x3',['packed_highp_dmat4x3',['../a00303.html#ga79c2e9f82e67963c1ecad0ad6d0ec72e',1,'glm']]], + ['packed_5fhighp_5fdmat4x4',['packed_highp_dmat4x4',['../a00303.html#ga2df58e03e5afded28707b4f7d077afb4',1,'glm']]], + ['packed_5fhighp_5fdvec1',['packed_highp_dvec1',['../a00303.html#gab472b2d917b5e6efd76e8c7dbfbbf9f1',1,'glm']]], + ['packed_5fhighp_5fdvec2',['packed_highp_dvec2',['../a00303.html#ga5b2dc48fa19b684d207d69c6b145eb63',1,'glm']]], + ['packed_5fhighp_5fdvec3',['packed_highp_dvec3',['../a00303.html#gaaac6b356ef00154da41aaae7d1549193',1,'glm']]], + ['packed_5fhighp_5fdvec4',['packed_highp_dvec4',['../a00303.html#ga81b5368fe485e2630aa9b44832d592e7',1,'glm']]], + ['packed_5fhighp_5fivec1',['packed_highp_ivec1',['../a00303.html#ga7245acc887a5438f46fd85fdf076bb3b',1,'glm']]], + ['packed_5fhighp_5fivec2',['packed_highp_ivec2',['../a00303.html#ga54f368ec6b514a5aa4f28d40e6f93ef7',1,'glm']]], + ['packed_5fhighp_5fivec3',['packed_highp_ivec3',['../a00303.html#ga865a9c7bb22434b1b8c5ac31e164b628',1,'glm']]], + ['packed_5fhighp_5fivec4',['packed_highp_ivec4',['../a00303.html#gad6f1b4e3a51c2c051814b60d5d1b8895',1,'glm']]], + ['packed_5fhighp_5fmat2',['packed_highp_mat2',['../a00303.html#ga2f2d913d8cca2f935b2522964408c0b2',1,'glm']]], + ['packed_5fhighp_5fmat2x2',['packed_highp_mat2x2',['../a00303.html#ga245c12d2daf67feecaa2d3277c8f6661',1,'glm']]], + ['packed_5fhighp_5fmat2x3',['packed_highp_mat2x3',['../a00303.html#ga069cc8892aadae144c00f35297617d44',1,'glm']]], + ['packed_5fhighp_5fmat2x4',['packed_highp_mat2x4',['../a00303.html#ga6904d09b62141d09712b76983892f95b',1,'glm']]], + ['packed_5fhighp_5fmat3',['packed_highp_mat3',['../a00303.html#gabdd5fbffe8b8b8a7b33523f25b120dbe',1,'glm']]], + ['packed_5fhighp_5fmat3x2',['packed_highp_mat3x2',['../a00303.html#ga2624719cb251d8de8cad1beaefc3a3f9',1,'glm']]], + ['packed_5fhighp_5fmat3x3',['packed_highp_mat3x3',['../a00303.html#gaf2e07527d678440bf0c20adbeb9177c5',1,'glm']]], + ['packed_5fhighp_5fmat3x4',['packed_highp_mat3x4',['../a00303.html#ga72102fa6ac2445aa3bb203128ad52449',1,'glm']]], + ['packed_5fhighp_5fmat4',['packed_highp_mat4',['../a00303.html#ga253e8379b08d2dc6fe2800b2fb913203',1,'glm']]], + ['packed_5fhighp_5fmat4x2',['packed_highp_mat4x2',['../a00303.html#gae389c2071cf3cdb33e7812c6fd156710',1,'glm']]], + ['packed_5fhighp_5fmat4x3',['packed_highp_mat4x3',['../a00303.html#ga4584f64394bd7123b7a8534741e4916c',1,'glm']]], + ['packed_5fhighp_5fmat4x4',['packed_highp_mat4x4',['../a00303.html#ga0149fe15668925147e07c94fd2c2d6ae',1,'glm']]], + ['packed_5fhighp_5fuvec1',['packed_highp_uvec1',['../a00303.html#ga8c32b53f628a3616aa5061e58d66fe74',1,'glm']]], + ['packed_5fhighp_5fuvec2',['packed_highp_uvec2',['../a00303.html#gab704d4fb15f6f96d70e363d5db7060cd',1,'glm']]], + ['packed_5fhighp_5fuvec3',['packed_highp_uvec3',['../a00303.html#ga0b570da473fec4619db5aa0dce5133b0',1,'glm']]], + ['packed_5fhighp_5fuvec4',['packed_highp_uvec4',['../a00303.html#gaa582f38c82aef61dea7aaedf15bb06a6',1,'glm']]], + ['packed_5fhighp_5fvec1',['packed_highp_vec1',['../a00303.html#ga56473759d2702ee19ab7f91d0017fa70',1,'glm']]], + ['packed_5fhighp_5fvec2',['packed_highp_vec2',['../a00303.html#ga6b8b9475e7c3b16aed13edbc460bbc4d',1,'glm']]], + ['packed_5fhighp_5fvec3',['packed_highp_vec3',['../a00303.html#ga3815661df0e2de79beff8168c09adf1e',1,'glm']]], + ['packed_5fhighp_5fvec4',['packed_highp_vec4',['../a00303.html#ga4015f36bf5a5adb6ac5d45beed959867',1,'glm']]], + ['packed_5fivec1',['packed_ivec1',['../a00303.html#ga11581a06fc7bf941fa4d4b6aca29812c',1,'glm']]], + ['packed_5fivec2',['packed_ivec2',['../a00303.html#ga1fe4c5f56b8087d773aa90dc88a257a7',1,'glm']]], + ['packed_5fivec3',['packed_ivec3',['../a00303.html#gae157682a7847161787951ba1db4cf325',1,'glm']]], + ['packed_5fivec4',['packed_ivec4',['../a00303.html#gac228b70372abd561340d5f926a7c1778',1,'glm']]], + ['packed_5flowp_5fbvec1',['packed_lowp_bvec1',['../a00303.html#gae3c8750f53259ece334d3aa3b3649a40',1,'glm']]], + ['packed_5flowp_5fbvec2',['packed_lowp_bvec2',['../a00303.html#gac969befedbda69eb78d4e23f751fdbee',1,'glm']]], + ['packed_5flowp_5fbvec3',['packed_lowp_bvec3',['../a00303.html#ga7c20adbe1409e3fe4544677a7f6fe954',1,'glm']]], + ['packed_5flowp_5fbvec4',['packed_lowp_bvec4',['../a00303.html#gae473587cff3092edc0877fc691c26a0b',1,'glm']]], + ['packed_5flowp_5fdmat2',['packed_lowp_dmat2',['../a00303.html#gac93f9b1a35b9de4f456b9f2dfeaf1097',1,'glm']]], + ['packed_5flowp_5fdmat2x2',['packed_lowp_dmat2x2',['../a00303.html#gaeeaff6c132ec91ebd21da3a2399548ea',1,'glm']]], + ['packed_5flowp_5fdmat2x3',['packed_lowp_dmat2x3',['../a00303.html#ga2ccdcd4846775cbe4f9d12e71d55b5d2',1,'glm']]], + ['packed_5flowp_5fdmat2x4',['packed_lowp_dmat2x4',['../a00303.html#gac870c47d2d9d48503f6c9ee3baec8ce1',1,'glm']]], + ['packed_5flowp_5fdmat3',['packed_lowp_dmat3',['../a00303.html#ga3894a059eeaacec8791c25de398d9955',1,'glm']]], + ['packed_5flowp_5fdmat3x2',['packed_lowp_dmat3x2',['../a00303.html#ga23ec236950f5859f59197663266b535d',1,'glm']]], + ['packed_5flowp_5fdmat3x3',['packed_lowp_dmat3x3',['../a00303.html#ga4a7c7d8c3a663d0ec2a858cbfa14e54c',1,'glm']]], + ['packed_5flowp_5fdmat3x4',['packed_lowp_dmat3x4',['../a00303.html#ga8fc0e66da83599071b7ec17510686cd9',1,'glm']]], + ['packed_5flowp_5fdmat4',['packed_lowp_dmat4',['../a00303.html#ga03e1edf5666c40affe39aee35c87956f',1,'glm']]], + ['packed_5flowp_5fdmat4x2',['packed_lowp_dmat4x2',['../a00303.html#ga39658fb13369db869d363684bd8399c0',1,'glm']]], + ['packed_5flowp_5fdmat4x3',['packed_lowp_dmat4x3',['../a00303.html#ga30b0351eebc18c6056101359bdd3a359',1,'glm']]], + ['packed_5flowp_5fdmat4x4',['packed_lowp_dmat4x4',['../a00303.html#ga0294d4c45151425c86a11deee7693c0e',1,'glm']]], + ['packed_5flowp_5fdvec1',['packed_lowp_dvec1',['../a00303.html#ga054050e9d4e78d81db0e6d1573b1c624',1,'glm']]], + ['packed_5flowp_5fdvec2',['packed_lowp_dvec2',['../a00303.html#gadc19938ddb204bfcb4d9ef35b1e2bf93',1,'glm']]], + ['packed_5flowp_5fdvec3',['packed_lowp_dvec3',['../a00303.html#ga9189210cabd6651a5e14a4c46fb20598',1,'glm']]], + ['packed_5flowp_5fdvec4',['packed_lowp_dvec4',['../a00303.html#ga262dafd0c001c3a38d1cc91d024ca738',1,'glm']]], + ['packed_5flowp_5fivec1',['packed_lowp_ivec1',['../a00303.html#gaf22b77f1cf3e73b8b1dddfe7f959357c',1,'glm']]], + ['packed_5flowp_5fivec2',['packed_lowp_ivec2',['../a00303.html#ga52635859f5ef660ab999d22c11b7867f',1,'glm']]], + ['packed_5flowp_5fivec3',['packed_lowp_ivec3',['../a00303.html#ga98c9d122a959e9f3ce10a5623c310f5d',1,'glm']]], + ['packed_5flowp_5fivec4',['packed_lowp_ivec4',['../a00303.html#ga931731b8ae3b54c7ecc221509dae96bc',1,'glm']]], + ['packed_5flowp_5fmat2',['packed_lowp_mat2',['../a00303.html#ga70dcb9ef0b24e832772a7405efa9669a',1,'glm']]], + ['packed_5flowp_5fmat2x2',['packed_lowp_mat2x2',['../a00303.html#gac70667c7642ec8d50245e6e6936a3927',1,'glm']]], + ['packed_5flowp_5fmat2x3',['packed_lowp_mat2x3',['../a00303.html#ga3e7df5a11e1be27bc29a4c0d3956f234',1,'glm']]], + ['packed_5flowp_5fmat2x4',['packed_lowp_mat2x4',['../a00303.html#gaea9c555e669dc56c45d95dcc75d59bf3',1,'glm']]], + ['packed_5flowp_5fmat3',['packed_lowp_mat3',['../a00303.html#ga0d22400969dd223465b2900fecfb4f53',1,'glm']]], + ['packed_5flowp_5fmat3x2',['packed_lowp_mat3x2',['../a00303.html#ga128cd52649621861635fab746df91735',1,'glm']]], + ['packed_5flowp_5fmat3x3',['packed_lowp_mat3x3',['../a00303.html#ga5adf1802c5375a9dfb1729691bedd94e',1,'glm']]], + ['packed_5flowp_5fmat3x4',['packed_lowp_mat3x4',['../a00303.html#ga92247ca09fa03c4013ba364f3a0fca7f',1,'glm']]], + ['packed_5flowp_5fmat4',['packed_lowp_mat4',['../a00303.html#ga2a1dd2387725a335413d4c4fee8609c4',1,'glm']]], + ['packed_5flowp_5fmat4x2',['packed_lowp_mat4x2',['../a00303.html#ga8f22607dcd090cd280071ccc689f4079',1,'glm']]], + ['packed_5flowp_5fmat4x3',['packed_lowp_mat4x3',['../a00303.html#ga7661d759d6ad218e132e3d051e7b2c6c',1,'glm']]], + ['packed_5flowp_5fmat4x4',['packed_lowp_mat4x4',['../a00303.html#ga776f18d1a6e7d399f05d386167dc60f5',1,'glm']]], + ['packed_5flowp_5fuvec1',['packed_lowp_uvec1',['../a00303.html#gaf111fed760ecce16cb1988807569bee5',1,'glm']]], + ['packed_5flowp_5fuvec2',['packed_lowp_uvec2',['../a00303.html#ga958210fe245a75b058325d367c951132',1,'glm']]], + ['packed_5flowp_5fuvec3',['packed_lowp_uvec3',['../a00303.html#ga576a3f8372197a56a79dee1c8280f485',1,'glm']]], + ['packed_5flowp_5fuvec4',['packed_lowp_uvec4',['../a00303.html#gafdd97922b4a2a42cd0c99a13877ff4da',1,'glm']]], + ['packed_5flowp_5fvec1',['packed_lowp_vec1',['../a00303.html#ga0a6198fe64166a6a61084d43c71518a9',1,'glm']]], + ['packed_5flowp_5fvec2',['packed_lowp_vec2',['../a00303.html#gafbf1c2cce307c5594b165819ed83bf5d',1,'glm']]], + ['packed_5flowp_5fvec3',['packed_lowp_vec3',['../a00303.html#ga3a30c137c1f8cce478c28eab0427a570',1,'glm']]], + ['packed_5flowp_5fvec4',['packed_lowp_vec4',['../a00303.html#ga3cc94fb8de80bbd8a4aa7a5b206d304a',1,'glm']]], + ['packed_5fmat2',['packed_mat2',['../a00303.html#gadd019b43fcf42e1590d45dddaa504a1a',1,'glm']]], + ['packed_5fmat2x2',['packed_mat2x2',['../a00303.html#ga51eaadcdc292c8750f746a5dc3e6c517',1,'glm']]], + ['packed_5fmat2x3',['packed_mat2x3',['../a00303.html#ga301b76a89b8a9625501ca58815017f20',1,'glm']]], + ['packed_5fmat2x4',['packed_mat2x4',['../a00303.html#gac401da1dd9177ad81d7618a2a5541e23',1,'glm']]], + ['packed_5fmat3',['packed_mat3',['../a00303.html#ga9bc12b0ab7be8448836711b77cc7b83a',1,'glm']]], + ['packed_5fmat3x2',['packed_mat3x2',['../a00303.html#ga134f0d99fbd2459c13cd9ebd056509fa',1,'glm']]], + ['packed_5fmat3x3',['packed_mat3x3',['../a00303.html#ga6c1dbe8cde9fbb231284b01f8aeaaa99',1,'glm']]], + ['packed_5fmat3x4',['packed_mat3x4',['../a00303.html#gad63515526cccfe88ffa8fe5ed64f95f8',1,'glm']]], + ['packed_5fmat4',['packed_mat4',['../a00303.html#ga2c139854e5b04cf08a957dee3b510441',1,'glm']]], + ['packed_5fmat4x2',['packed_mat4x2',['../a00303.html#ga379c1153f1339bdeaefd592bebf538e8',1,'glm']]], + ['packed_5fmat4x3',['packed_mat4x3',['../a00303.html#gab286466e19f7399c8d25089da9400d43',1,'glm']]], + ['packed_5fmat4x4',['packed_mat4x4',['../a00303.html#ga67e7102557d6067bb6ac00d4ad0e1374',1,'glm']]], + ['packed_5fmediump_5fbvec1',['packed_mediump_bvec1',['../a00303.html#ga5546d828d63010a8f9cf81161ad0275a',1,'glm']]], + ['packed_5fmediump_5fbvec2',['packed_mediump_bvec2',['../a00303.html#gab4c6414a59539e66a242ad4cf4b476b4',1,'glm']]], + ['packed_5fmediump_5fbvec3',['packed_mediump_bvec3',['../a00303.html#ga70147763edff3fe96b03a0b98d6339a2',1,'glm']]], + ['packed_5fmediump_5fbvec4',['packed_mediump_bvec4',['../a00303.html#ga7b1620f259595b9da47a6374fc44588a',1,'glm']]], + ['packed_5fmediump_5fdmat2',['packed_mediump_dmat2',['../a00303.html#ga9d60e32d3fcb51f817046cd881fdbf57',1,'glm']]], + ['packed_5fmediump_5fdmat2x2',['packed_mediump_dmat2x2',['../a00303.html#ga39e8bb9b70e5694964e8266a21ba534e',1,'glm']]], + ['packed_5fmediump_5fdmat2x3',['packed_mediump_dmat2x3',['../a00303.html#ga8897c6d9adb4140b1c3b0a07b8f0a430',1,'glm']]], + ['packed_5fmediump_5fdmat2x4',['packed_mediump_dmat2x4',['../a00303.html#gaaa4126969c765e7faa2ebf6951c22ffb',1,'glm']]], + ['packed_5fmediump_5fdmat3',['packed_mediump_dmat3',['../a00303.html#gaf969eb879c76a5f4576e4a1e10095cf6',1,'glm']]], + ['packed_5fmediump_5fdmat3x2',['packed_mediump_dmat3x2',['../a00303.html#ga86efe91cdaa2864c828a5d6d46356c6a',1,'glm']]], + ['packed_5fmediump_5fdmat3x3',['packed_mediump_dmat3x3',['../a00303.html#gaf85877d38d8cfbc21d59d939afd72375',1,'glm']]], + ['packed_5fmediump_5fdmat3x4',['packed_mediump_dmat3x4',['../a00303.html#gad5dcaf93df267bc3029174e430e0907f',1,'glm']]], + ['packed_5fmediump_5fdmat4',['packed_mediump_dmat4',['../a00303.html#ga4b0ee7996651ddd04eaa0c4cdbb66332',1,'glm']]], + ['packed_5fmediump_5fdmat4x2',['packed_mediump_dmat4x2',['../a00303.html#ga9a15514a0631f700de6312b9d5db3a73',1,'glm']]], + ['packed_5fmediump_5fdmat4x3',['packed_mediump_dmat4x3',['../a00303.html#gab5b36cc9caee1bb1c5178fe191bf5713',1,'glm']]], + ['packed_5fmediump_5fdmat4x4',['packed_mediump_dmat4x4',['../a00303.html#ga21e86cf2f6c126bacf31b8985db06bd4',1,'glm']]], + ['packed_5fmediump_5fdvec1',['packed_mediump_dvec1',['../a00303.html#ga8920e90ea9c01d9c97e604a938ce2cbd',1,'glm']]], + ['packed_5fmediump_5fdvec2',['packed_mediump_dvec2',['../a00303.html#ga0c754a783b6fcf80374c013371c4dae9',1,'glm']]], + ['packed_5fmediump_5fdvec3',['packed_mediump_dvec3',['../a00303.html#ga1f18ada6f7cdd8c46db33ba987280fc4',1,'glm']]], + ['packed_5fmediump_5fdvec4',['packed_mediump_dvec4',['../a00303.html#ga568b850f1116b667043533cf77826968',1,'glm']]], + ['packed_5fmediump_5fivec1',['packed_mediump_ivec1',['../a00303.html#ga09507ef020a49517a7bcd50438f05056',1,'glm']]], + ['packed_5fmediump_5fivec2',['packed_mediump_ivec2',['../a00303.html#gaaa891048dddef4627df33809ec726219',1,'glm']]], + ['packed_5fmediump_5fivec3',['packed_mediump_ivec3',['../a00303.html#ga06f26d54dca30994eb1fdadb8e69f4a2',1,'glm']]], + ['packed_5fmediump_5fivec4',['packed_mediump_ivec4',['../a00303.html#ga70130dc8ed9c966ec2a221ce586d45d8',1,'glm']]], + ['packed_5fmediump_5fmat2',['packed_mediump_mat2',['../a00303.html#ga43cd36d430c5187bfdca34a23cb41581',1,'glm']]], + ['packed_5fmediump_5fmat2x2',['packed_mediump_mat2x2',['../a00303.html#ga2d2a73e662759e301c22b8931ff6a526',1,'glm']]], + ['packed_5fmediump_5fmat2x3',['packed_mediump_mat2x3',['../a00303.html#ga99049db01faf1e95ed9fb875a47dffe2',1,'glm']]], + ['packed_5fmediump_5fmat2x4',['packed_mediump_mat2x4',['../a00303.html#gad43a240533f388ce0504b495d9df3d52',1,'glm']]], + ['packed_5fmediump_5fmat3',['packed_mediump_mat3',['../a00303.html#ga13a75c6cbd0a411f694bc82486cd1e55',1,'glm']]], + ['packed_5fmediump_5fmat3x2',['packed_mediump_mat3x2',['../a00303.html#ga04cfaf1421284df3c24ea0985dab24e7',1,'glm']]], + ['packed_5fmediump_5fmat3x3',['packed_mediump_mat3x3',['../a00303.html#gaaa9cea174d342dd9650e3436823cab23',1,'glm']]], + ['packed_5fmediump_5fmat3x4',['packed_mediump_mat3x4',['../a00303.html#gabc93a9560593bd32e099c908531305f5',1,'glm']]], + ['packed_5fmediump_5fmat4',['packed_mediump_mat4',['../a00303.html#gae89d72ffc149147f61df701bbc8755bf',1,'glm']]], + ['packed_5fmediump_5fmat4x2',['packed_mediump_mat4x2',['../a00303.html#gaa458f9d9e0934bae3097e2a373b24707',1,'glm']]], + ['packed_5fmediump_5fmat4x3',['packed_mediump_mat4x3',['../a00303.html#ga02ca6255394aa778abaeb0f733c4d2b6',1,'glm']]], + ['packed_5fmediump_5fmat4x4',['packed_mediump_mat4x4',['../a00303.html#gaf304f64c06743c1571401504d3f50259',1,'glm']]], + ['packed_5fmediump_5fuvec1',['packed_mediump_uvec1',['../a00303.html#ga2c29fb42bab9a4f9b66bc60b2e514a34',1,'glm']]], + ['packed_5fmediump_5fuvec2',['packed_mediump_uvec2',['../a00303.html#gaa1f95690a78dc12e39da32943243aeef',1,'glm']]], + ['packed_5fmediump_5fuvec3',['packed_mediump_uvec3',['../a00303.html#ga1ea2bbdbcb0a69242f6d884663c1b0ab',1,'glm']]], + ['packed_5fmediump_5fuvec4',['packed_mediump_uvec4',['../a00303.html#ga63a73be86a4f07ea7a7499ab0bfebe45',1,'glm']]], + ['packed_5fmediump_5fvec1',['packed_mediump_vec1',['../a00303.html#ga71d63cead1e113fca0bcdaaa33aad050',1,'glm']]], + ['packed_5fmediump_5fvec2',['packed_mediump_vec2',['../a00303.html#ga6844c6f4691d1bf67673240850430948',1,'glm']]], + ['packed_5fmediump_5fvec3',['packed_mediump_vec3',['../a00303.html#gab0eb771b708c5b2205d9b14dd1434fd8',1,'glm']]], + ['packed_5fmediump_5fvec4',['packed_mediump_vec4',['../a00303.html#ga68c9bb24f387b312bae6a0a68e74d95e',1,'glm']]], + ['packed_5fuvec1',['packed_uvec1',['../a00303.html#ga5621493caac01bdd22ab6be4416b0314',1,'glm']]], + ['packed_5fuvec2',['packed_uvec2',['../a00303.html#gabcc33efb4d5e83b8fe4706360e75b932',1,'glm']]], + ['packed_5fuvec3',['packed_uvec3',['../a00303.html#gab96804e99e3a72a35740fec690c79617',1,'glm']]], + ['packed_5fuvec4',['packed_uvec4',['../a00303.html#ga8e5d92e84ebdbe2480cf96bc17d6e2f2',1,'glm']]], + ['packed_5fvec1',['packed_vec1',['../a00303.html#ga14741e3d9da9ae83765389927f837331',1,'glm']]], + ['packed_5fvec2',['packed_vec2',['../a00303.html#ga3254defa5a8f0ae4b02b45fedba84a66',1,'glm']]], + ['packed_5fvec3',['packed_vec3',['../a00303.html#gaccccd090e185450caa28b5b63ad4e8f0',1,'glm']]], + ['packed_5fvec4',['packed_vec4',['../a00303.html#ga37a0e0bf653169b581c5eea3d547fa5d',1,'glm']]], + ['packf2x11_5f1x10',['packF2x11_1x10',['../a00298.html#ga4944ad465ff950e926d49621f916c78d',1,'glm']]], + ['packf3x9_5fe1x5',['packF3x9_E1x5',['../a00298.html#ga3f648fc205467792dc6d8c59c748f8a6',1,'glm']]], + ['packhalf',['packHalf',['../a00298.html#ga2d8bbce673ebc04831c1fb05c47f5251',1,'glm']]], + ['packhalf1x16',['packHalf1x16',['../a00298.html#ga43f2093b6ff192a79058ff7834fc3528',1,'glm']]], + ['packhalf2x16',['packHalf2x16',['../a00372.html#ga20f134b07db3a3d3a38efb2617388c92',1,'glm']]], + ['packhalf4x16',['packHalf4x16',['../a00298.html#gafe2f7b39caf8f5ec555e1c059ec530e6',1,'glm']]], + ['packi3x10_5f1x2',['packI3x10_1x2',['../a00298.html#ga06ecb6afb902dba45419008171db9023',1,'glm']]], + ['packing_2ehpp',['packing.hpp',['../a00120.html',1,'']]], + ['packint2x16',['packInt2x16',['../a00298.html#ga3644163cf3a47bf1d4af1f4b03013a7e',1,'glm']]], + ['packint2x32',['packInt2x32',['../a00298.html#gad1e4c8a9e67d86b61a6eec86703a827a',1,'glm']]], + ['packint2x8',['packInt2x8',['../a00298.html#ga8884b1f2292414f36d59ef3be5d62914',1,'glm']]], + ['packint4x16',['packInt4x16',['../a00298.html#ga1989f093a27ae69cf9207145be48b3d7',1,'glm']]], + ['packint4x8',['packInt4x8',['../a00298.html#gaf2238401d5ce2aaade1a44ba19709072',1,'glm']]], + ['packrgbm',['packRGBM',['../a00298.html#ga0466daf4c90f76cc64b3f105ce727295',1,'glm']]], + ['packsnorm',['packSnorm',['../a00298.html#gaa54b5855a750d6aeb12c1c902f5939b8',1,'glm']]], + ['packsnorm1x16',['packSnorm1x16',['../a00298.html#gab22f8bcfdb5fc65af4701b25f143c1af',1,'glm']]], + ['packsnorm1x8',['packSnorm1x8',['../a00298.html#gae3592e0795e62aaa1865b3a10496a7a1',1,'glm']]], + ['packsnorm2x16',['packSnorm2x16',['../a00372.html#ga977ab172da5494e5ac63e952afacfbe2',1,'glm']]], + ['packsnorm2x8',['packSnorm2x8',['../a00298.html#ga6be3cfb2cce3702f03e91bbeb5286d7e',1,'glm']]], + ['packsnorm3x10_5f1x2',['packSnorm3x10_1x2',['../a00298.html#gab997545661877d2c7362a5084d3897d3',1,'glm']]], + ['packsnorm4x16',['packSnorm4x16',['../a00298.html#ga358943934d21da947d5bcc88c2ab7832',1,'glm']]], + ['packsnorm4x8',['packSnorm4x8',['../a00372.html#ga85e8f17627516445026ab7a9c2e3531a',1,'glm']]], + ['packu3x10_5f1x2',['packU3x10_1x2',['../a00298.html#gada3d88d59f0f458f9c51a9fd359a4bc0',1,'glm']]], + ['packuint2x16',['packUint2x16',['../a00298.html#ga5eecc9e8cbaf51ac6cf57501e670ee19',1,'glm']]], + ['packuint2x32',['packUint2x32',['../a00298.html#gaa864081097b86e83d8e4a4d79c382b22',1,'glm']]], + ['packuint2x8',['packUint2x8',['../a00298.html#ga3c3c9fb53ae7823b10fa083909357590',1,'glm']]], + ['packuint4x16',['packUint4x16',['../a00298.html#ga2ceb62cca347d8ace42ee90317a3f1f9',1,'glm']]], + ['packuint4x8',['packUint4x8',['../a00298.html#gaa0fe2f09aeb403cd66c1a062f58861ab',1,'glm']]], + ['packunorm',['packUnorm',['../a00298.html#gaccd3f27e6ba5163eb7aa9bc8ff96251a',1,'glm']]], + ['packunorm1x16',['packUnorm1x16',['../a00298.html#ga9f82737bf2a44bedff1d286b76837886',1,'glm']]], + ['packunorm1x5_5f1x6_5f1x5',['packUnorm1x5_1x6_1x5',['../a00298.html#ga768e0337dd6246773f14aa0a421fe9a8',1,'glm']]], + ['packunorm1x8',['packUnorm1x8',['../a00298.html#ga4b2fa60df3460403817d28b082ee0736',1,'glm']]], + ['packunorm2x16',['packUnorm2x16',['../a00372.html#ga0e2d107039fe608a209497af867b85fb',1,'glm']]], + ['packunorm2x3_5f1x2',['packUnorm2x3_1x2',['../a00298.html#ga7f9abdb50f9be1aa1c14912504a0d98d',1,'glm']]], + ['packunorm2x4',['packUnorm2x4',['../a00298.html#gab6bbd5be3b8e6db538ecb33a7844481c',1,'glm']]], + ['packunorm2x8',['packUnorm2x8',['../a00298.html#ga9a666b1c688ab54100061ed06526de6e',1,'glm']]], + ['packunorm3x10_5f1x2',['packUnorm3x10_1x2',['../a00298.html#ga8a1ee625d2707c60530fb3fca2980b19',1,'glm']]], + ['packunorm3x5_5f1x1',['packUnorm3x5_1x1',['../a00298.html#gaec4112086d7fb133bea104a7c237de52',1,'glm']]], + ['packunorm4x16',['packUnorm4x16',['../a00298.html#ga1f63c264e7ab63264e2b2a99fd393897',1,'glm']]], + ['packunorm4x4',['packUnorm4x4',['../a00298.html#gad3e7e3ce521513584a53aedc5f9765c1',1,'glm']]], + ['packunorm4x8',['packUnorm4x8',['../a00372.html#gaf7d2f7341a9eeb4a436929d6f9ad08f2',1,'glm']]], + ['perlin',['perlin',['../a00297.html#ga1e043ce3b51510e9bc4469227cefc38a',1,'glm::perlin(vec< L, T, Q > const &p)'],['../a00297.html#gac270edc54c5fc52f5985a45f940bb103',1,'glm::perlin(vec< L, T, Q > const &p, vec< L, T, Q > const &rep)']]], + ['perp',['perp',['../a00349.html#ga264cfc4e180cf9b852e943b35089003c',1,'glm']]], + ['perpendicular_2ehpp',['perpendicular.hpp',['../a00121.html',1,'']]], + ['perspective',['perspective',['../a00243.html#ga747c8cf99458663dd7ad1bb3a2f07787',1,'glm']]], + ['perspectivefov',['perspectiveFov',['../a00243.html#gaebd02240fd36e85ad754f02ddd9a560d',1,'glm']]], + ['perspectivefovlh',['perspectiveFovLH',['../a00243.html#ga6aebe16c164bd8e52554cbe0304ef4aa',1,'glm']]], + ['perspectivefovlh_5fno',['perspectiveFovLH_NO',['../a00243.html#gad18a4495b77530317327e8d466488c1a',1,'glm']]], + ['perspectivefovlh_5fzo',['perspectiveFovLH_ZO',['../a00243.html#gabdd37014f529e25b2fa1b3ba06c10d5c',1,'glm']]], + ['perspectivefovno',['perspectiveFovNO',['../a00243.html#gaf30e7bd3b1387a6776433dd5383e6633',1,'glm']]], + ['perspectivefovrh',['perspectiveFovRH',['../a00243.html#gaf32bf563f28379c68554a44ee60c6a85',1,'glm']]], + ['perspectivefovrh_5fno',['perspectiveFovRH_NO',['../a00243.html#ga257b733ff883c9a065801023cf243eb2',1,'glm']]], + ['perspectivefovrh_5fzo',['perspectiveFovRH_ZO',['../a00243.html#ga7dcbb25331676f5b0795aced1a905c44',1,'glm']]], + ['perspectivefovzo',['perspectiveFovZO',['../a00243.html#ga4bc69fa1d1f95128430aa3d2a712390b',1,'glm']]], + ['perspectivelh',['perspectiveLH',['../a00243.html#ga9bd34951dc7022ac256fcb51d7f6fc2f',1,'glm']]], + ['perspectivelh_5fno',['perspectiveLH_NO',['../a00243.html#gaead4d049d1feab463b700b5641aa590e',1,'glm']]], + ['perspectivelh_5fzo',['perspectiveLH_ZO',['../a00243.html#gaca32af88c2719005c02817ad1142986c',1,'glm']]], + ['perspectiveno',['perspectiveNO',['../a00243.html#gaf497e6bca61e7c87088370b126a93758',1,'glm']]], + ['perspectiverh',['perspectiveRH',['../a00243.html#ga26b88757fbd90601b80768a7e1ad3aa1',1,'glm']]], + ['perspectiverh_5fno',['perspectiveRH_NO',['../a00243.html#gad1526cb2cbe796095284e8f34b01c582',1,'glm']]], + ['perspectiverh_5fzo',['perspectiveRH_ZO',['../a00243.html#ga4da358d6e1b8e5b9ae35d1f3f2dc3b9a',1,'glm']]], + ['perspectivezo',['perspectiveZO',['../a00243.html#gaa9dfba5c2322da54f72b1eb7c7c11b47',1,'glm']]], + ['pi',['pi',['../a00259.html#ga94bafeb2a0f23ab6450fed1f98ee4e45',1,'glm']]], + ['pickmatrix',['pickMatrix',['../a00245.html#gaf6b21eadb7ac2ecbbe258a9a233b4c82',1,'glm']]], + ['pitch',['pitch',['../a00299.html#ga7603e81477b46ddb448896909bc04928',1,'glm']]], + ['polar',['polar',['../a00350.html#gab83ac2c0e55b684b06b6c46c28b1590d',1,'glm']]], + ['polar_5fcoordinates_2ehpp',['polar_coordinates.hpp',['../a00122.html',1,'']]], + ['pow',['pow',['../a00242.html#ga2254981952d4f333b900a6bf5167a6c4',1,'glm::pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)'],['../a00256.html#ga4975ffcacd312a8c0bbd046a76c5607e',1,'glm::pow(qua< T, Q > const &q, T y)'],['../a00330.html#ga465016030a81d513fa2fac881ebdaa83',1,'glm::pow(int x, uint y)'],['../a00330.html#ga998e5ee915d3769255519e2fbaa2bbf0',1,'glm::pow(uint x, uint y)']]], + ['pow2',['pow2',['../a00347.html#ga19aaff3213bf23bdec3ef124ace237e9',1,'glm::gtx']]], + ['pow3',['pow3',['../a00347.html#ga35689d03cd434d6ea819f1942d3bf82e',1,'glm::gtx']]], + ['pow4',['pow4',['../a00347.html#gacef0968763026e180e53e735007dbf5a',1,'glm::gtx']]], + ['poweroftwoabove',['powerOfTwoAbove',['../a00309.html#ga8cda2459871f574a0aecbe702ac93291',1,'glm::powerOfTwoAbove(genIUType Value)'],['../a00309.html#ga2bbded187c5febfefc1e524ba31b3fab',1,'glm::powerOfTwoAbove(vec< L, T, Q > const &value)']]], + ['poweroftwobelow',['powerOfTwoBelow',['../a00309.html#ga3de7df63c589325101a2817a56f8e29d',1,'glm::powerOfTwoBelow(genIUType Value)'],['../a00309.html#gaf78ddcc4152c051b2a21e68fecb10980',1,'glm::powerOfTwoBelow(vec< L, T, Q > const &value)']]], + ['poweroftwonearest',['powerOfTwoNearest',['../a00309.html#ga5f65973a5d2ea38c719e6a663149ead9',1,'glm::powerOfTwoNearest(genIUType Value)'],['../a00309.html#gac87e65d11e16c3d6b91c3bcfaef7da0b',1,'glm::powerOfTwoNearest(vec< L, T, Q > const &value)']]], + ['prevmultiple',['prevMultiple',['../a00261.html#gada3bdd871ffe31f2d484aa668362f636',1,'glm::prevMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#ga7b3915a7cd3d50ff4976ab7a75a6880a',1,'glm::prevMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#ga51e04379e8aebbf83e2e5ab094578ee9',1,'glm::prevMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['prevpoweroftwo',['prevPowerOfTwo',['../a00261.html#gab21902a0e7e5a8451a7ad80333618727',1,'glm::prevPowerOfTwo(genIUType v)'],['../a00274.html#ga759db73f14d79f63612bd2398b577e7a',1,'glm::prevPowerOfTwo(vec< L, T, Q > const &v)']]], + ['proj',['proj',['../a00351.html#ga58384b7170801dd513de46f87c7fb00e',1,'glm']]], + ['proj2d',['proj2D',['../a00363.html#ga5b992a0cdc8298054edb68e228f0d93e',1,'glm']]], + ['proj3d',['proj3D',['../a00363.html#gaa2b7f4f15b98f697caede11bef50509e',1,'glm']]], + ['project',['project',['../a00245.html#gaf36e96033f456659e6705472a06b6e11',1,'glm']]], + ['projection_2ehpp',['projection.hpp',['../a00123.html',1,'']]], + ['projectno',['projectNO',['../a00245.html#ga05249751f48d14cb282e4979802b8111',1,'glm']]], + ['projectzo',['projectZO',['../a00245.html#ga77d157525063dec83a557186873ee080',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_e.html b/external/glm-0.9.9.8/doc/api/search/all_e.html new file mode 100644 index 0000000..c49b9a6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_e.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_e.js b/external/glm-0.9.9.8/doc/api/search/all_e.js new file mode 100644 index 0000000..f8aa3fd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_e.js @@ -0,0 +1,31 @@ +var searchData= +[ + ['qr_5fdecompose',['qr_decompose',['../a00336.html#gac62d7bfc8dc661e616620d70552cd566',1,'glm']]], + ['quadraticeasein',['quadraticEaseIn',['../a00318.html#gaf42089d35855695132d217cd902304a0',1,'glm']]], + ['quadraticeaseinout',['quadraticEaseInOut',['../a00318.html#ga03e8fc2d7945a4e63ee33b2159c14cea',1,'glm']]], + ['quadraticeaseout',['quadraticEaseOut',['../a00318.html#ga283717bc2d937547ad34ec0472234ee3',1,'glm']]], + ['quarter_5fpi',['quarter_pi',['../a00290.html#ga3c9df42bd73c519a995c43f0f99e77e0',1,'glm']]], + ['quarticeasein',['quarticEaseIn',['../a00318.html#ga808b41f14514f47dad5dcc69eb924afd',1,'glm']]], + ['quarticeaseinout',['quarticEaseInOut',['../a00318.html#ga6d000f852de12b197e154f234b20c505',1,'glm']]], + ['quarticeaseout',['quarticEaseOut',['../a00318.html#ga4dfb33fa7664aa888eb647999d329b98',1,'glm']]], + ['quat',['quat',['../a00252.html#gab0b441adb4509bc58d2946c2239a8942',1,'glm']]], + ['quat_5fcast',['quat_cast',['../a00299.html#ga1108a4ab88ca87bac321454eea7702f8',1,'glm::quat_cast(mat< 3, 3, T, Q > const &x)'],['../a00299.html#ga4524810f07f72e8c7bdc7764fa11cb58',1,'glm::quat_cast(mat< 4, 4, T, Q > const &x)']]], + ['quat_5fidentity',['quat_identity',['../a00352.html#ga5ee8332600b2aca3a77622a28d857b55',1,'glm']]], + ['quaternion_5fcommon_2ehpp',['quaternion_common.hpp',['../a00127.html',1,'']]], + ['quaternion_5fdouble_2ehpp',['quaternion_double.hpp',['../a00128.html',1,'']]], + ['quaternion_5fdouble_5fprecision_2ehpp',['quaternion_double_precision.hpp',['../a00129.html',1,'']]], + ['quaternion_5fexponential_2ehpp',['quaternion_exponential.hpp',['../a00130.html',1,'']]], + ['quaternion_5ffloat_2ehpp',['quaternion_float.hpp',['../a00131.html',1,'']]], + ['quaternion_5ffloat_5fprecision_2ehpp',['quaternion_float_precision.hpp',['../a00132.html',1,'']]], + ['quaternion_5fgeometric_2ehpp',['quaternion_geometric.hpp',['../a00133.html',1,'']]], + ['quaternion_5frelational_2ehpp',['quaternion_relational.hpp',['../a00134.html',1,'']]], + ['quaternion_5ftransform_2ehpp',['quaternion_transform.hpp',['../a00135.html',1,'']]], + ['quaternion_5ftrigonometric_2ehpp',['quaternion_trigonometric.hpp',['../a00136.html',1,'']]], + ['quatlookat',['quatLookAt',['../a00299.html#gabe7fc5ec5feb41ab234d5d2b6254697f',1,'glm']]], + ['quatlookatlh',['quatLookAtLH',['../a00299.html#ga2da350c73411be3bb19441b226b81a74',1,'glm']]], + ['quatlookatrh',['quatLookAtRH',['../a00299.html#gaf6529ac8c04a57fcc35865b5c9437cc8',1,'glm']]], + ['quinticeasein',['quinticEaseIn',['../a00318.html#ga097579d8e087dcf48037588140a21640',1,'glm']]], + ['quinticeaseinout',['quinticEaseInOut',['../a00318.html#ga2a82d5c46df7e2d21cc0108eb7b83934',1,'glm']]], + ['quinticeaseout',['quinticEaseOut',['../a00318.html#ga7dbd4d5c8da3f5353121f615e7b591d7',1,'glm']]], + ['qword',['qword',['../a00354.html#ga4021754ffb8e5ef14c75802b15657714',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/all_f.html b/external/glm-0.9.9.8/doc/api/search/all_f.html new file mode 100644 index 0000000..9f21257 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_f.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/all_f.js b/external/glm-0.9.9.8/doc/api/search/all_f.js new file mode 100644 index 0000000..de24578 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/all_f.js @@ -0,0 +1,43 @@ +var searchData= +[ + ['recommended_20extensions',['Recommended extensions',['../a00286.html',1,'']]], + ['radialgradient',['radialGradient',['../a00327.html#gaaecb1e93de4cbe0758b882812d4da294',1,'glm']]], + ['radians',['radians',['../a00373.html#ga6e1db4862c5e25afd553930e2fdd6a68',1,'glm']]], + ['random_2ehpp',['random.hpp',['../a00137.html',1,'']]], + ['range_2ehpp',['range.hpp',['../a00138.html',1,'']]], + ['raw_5fdata_2ehpp',['raw_data.hpp',['../a00139.html',1,'']]], + ['reciprocal_2ehpp',['reciprocal.hpp',['../a00140.html',1,'']]], + ['reflect',['reflect',['../a00279.html#ga5631dd1d5618de5450b1ea3cf3e94905',1,'glm']]], + ['refract',['refract',['../a00279.html#ga01da3dff9e2ef6b9d4915c3047e22b74',1,'glm']]], + ['repeat',['repeat',['../a00369.html#ga809650c6310ea7c42666e918c117fb6f',1,'glm']]], + ['rgb2ycocg',['rgb2YCoCg',['../a00313.html#ga0606353ec2a9b9eaa84f1b02ec391bc5',1,'glm']]], + ['rgb2ycocgr',['rgb2YCoCgR',['../a00313.html#ga0389772e44ca0fd2ba4a79bdd8efe898',1,'glm']]], + ['rgbcolor',['rgbColor',['../a00312.html#ga5f9193be46f45f0655c05a0cdca006db',1,'glm']]], + ['righthanded',['rightHanded',['../a00328.html#ga99386a5ab5491871b947076e21699cc8',1,'glm']]], + ['roll',['roll',['../a00299.html#ga0cc5ad970d0b00829b139fe0fe5a1e13',1,'glm']]], + ['root_5ffive',['root_five',['../a00290.html#gae9ebbded75b53d4faeb1e4ef8b3347a2',1,'glm']]], + ['root_5fhalf_5fpi',['root_half_pi',['../a00290.html#ga4e276cb823cc5e612d4f89ed99c75039',1,'glm']]], + ['root_5fln_5ffour',['root_ln_four',['../a00290.html#ga4129412e96b33707a77c1a07652e23e2',1,'glm']]], + ['root_5fpi',['root_pi',['../a00290.html#ga261380796b2cd496f68d2cf1d08b8eb9',1,'glm']]], + ['root_5fthree',['root_three',['../a00290.html#ga4f286be4abe88be1eed7d2a9f6cb193e',1,'glm']]], + ['root_5ftwo',['root_two',['../a00290.html#ga74e607d29020f100c0d0dc46ce2ca950',1,'glm']]], + ['root_5ftwo_5fpi',['root_two_pi',['../a00290.html#ga2bcedc575039fe0cd765742f8bbb0bd3',1,'glm']]], + ['rotate',['rotate',['../a00247.html#gaee9e865eaa9776370996da2940873fd4',1,'glm::rotate(mat< 4, 4, T, Q > const &m, T angle, vec< 3, T, Q > const &axis)'],['../a00256.html#gabfc57de6d4d2e11970f54119c5ccf0f5',1,'glm::rotate(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)'],['../a00341.html#gad5c84a4932a758f385a87098ce1b1660',1,'glm::rotate(mat< 3, 3, T, Q > const &m, T angle)'],['../a00352.html#ga07da6ef58646442efe93b0c273d73776',1,'glm::rotate(qua< T, Q > const &q, vec< 3, T, Q > const &v)'],['../a00352.html#gafcb78dfff45fbf19a7fcb2bd03fbf196',1,'glm::rotate(qua< T, Q > const &q, vec< 4, T, Q > const &v)'],['../a00356.html#gab64a67b52ff4f86c3ba16595a5a25af6',1,'glm::rotate(vec< 2, T, Q > const &v, T const &angle)'],['../a00356.html#ga1ba501ef83d1a009a17ac774cc560f21',1,'glm::rotate(vec< 3, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)'],['../a00356.html#ga1005f1267ed9c57faa3f24cf6873b961',1,'glm::rotate(vec< 4, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)'],['../a00362.html#gaf599be4c0e9d99be1f9cddba79b6018b',1,'glm::rotate(T angle, vec< 3, T, Q > const &v)']]], + ['rotate_5fnormalized_5faxis_2ehpp',['rotate_normalized_axis.hpp',['../a00141.html',1,'']]], + ['rotate_5fvector_2ehpp',['rotate_vector.hpp',['../a00142.html',1,'']]], + ['rotatenormalizedaxis',['rotateNormalizedAxis',['../a00355.html#ga50efd7ebca0f7a603bb3cc11e34c708d',1,'glm::rotateNormalizedAxis(mat< 4, 4, T, Q > const &m, T const &angle, vec< 3, T, Q > const &axis)'],['../a00355.html#ga08f9c5411437d528019a25bfc01473d1',1,'glm::rotateNormalizedAxis(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)']]], + ['rotatex',['rotateX',['../a00356.html#ga059fdbdba4cca35cdff172a9d0d0afc9',1,'glm::rotateX(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga4333b1ea8ebf1bd52bc3801a7617398a',1,'glm::rotateX(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotatey',['rotateY',['../a00356.html#gaebdc8b054ace27d9f62e054531c6f44d',1,'glm::rotateY(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga3ce3db0867b7f8efd878ee34f95a623b',1,'glm::rotateY(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotatez',['rotateZ',['../a00356.html#ga5a048838a03f6249acbacb4dbacf79c4',1,'glm::rotateZ(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga923b75c6448161053768822d880702e6',1,'glm::rotateZ(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotation',['rotation',['../a00352.html#ga03e61282831cc3f52cc76f72f52ad2c5',1,'glm']]], + ['round',['round',['../a00241.html#gafa03aca8c4713e1cc892aa92ca135a7e',1,'glm']]], + ['round_2ehpp',['round.hpp',['../a00143.html',1,'']]], + ['roundeven',['roundEven',['../a00241.html#ga76b81785045a057989a84d99aeeb1578',1,'glm']]], + ['roundmultiple',['roundMultiple',['../a00302.html#gab892defcc9c0b0618df7251253dc0fbb',1,'glm::roundMultiple(genType v, genType Multiple)'],['../a00302.html#ga2f1a68332d761804c054460a612e3a4b',1,'glm::roundMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['roundpoweroftwo',['roundPowerOfTwo',['../a00302.html#gae4e1bf5d1cd179f59261a7342bdcafca',1,'glm::roundPowerOfTwo(genIUType v)'],['../a00302.html#ga258802a7d55c03c918f28cf4d241c4d0',1,'glm::roundPowerOfTwo(vec< L, T, Q > const &v)']]], + ['row',['row',['../a00293.html#ga259e5ebd0f31ec3f83440f8cae7f5dba',1,'glm::row(genType const &m, length_t index)'],['../a00293.html#gaadcc64829aadf4103477679e48c7594f',1,'glm::row(genType const &m, length_t index, typename genType::row_type const &x)']]], + ['rowmajor2',['rowMajor2',['../a00338.html#gaf5b1aee9e3eb1acf9d6c3c8be1e73bb8',1,'glm::rowMajor2(vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)'],['../a00338.html#gaf66c75ed69ca9e87462550708c2c6726',1,'glm::rowMajor2(mat< 2, 2, T, Q > const &m)']]], + ['rowmajor3',['rowMajor3',['../a00338.html#ga2ae46497493339f745754e40f438442e',1,'glm::rowMajor3(vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)'],['../a00338.html#gad8a3a50ab47bbe8d36cdb81d90dfcf77',1,'glm::rowMajor3(mat< 3, 3, T, Q > const &m)']]], + ['rowmajor4',['rowMajor4',['../a00338.html#ga9636cd6bbe2c32a8d0c03ffb8b1ef284',1,'glm::rowMajor4(vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)'],['../a00338.html#gac92ad1c2acdf18d3eb7be45a32f9566b',1,'glm::rowMajor4(mat< 4, 4, T, Q > const &m)']]], + ['rq_5fdecompose',['rq_decompose',['../a00336.html#ga82874e2ebe891ba35ac21d9993873758',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/close.png b/external/glm-0.9.9.8/doc/api/search/close.png similarity index 100% rename from external/glm/doc/api/search/close.png rename to external/glm-0.9.9.8/doc/api/search/close.png diff --git a/external/glm-0.9.9.8/doc/api/search/files_0.html b/external/glm-0.9.9.8/doc/api/search/files_0.html new file mode 100644 index 0000000..dc5601f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_0.js b/external/glm-0.9.9.8/doc/api/search/files_0.js new file mode 100644 index 0000000..7c99d02 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['associated_5fmin_5fmax_2ehpp',['associated_min_max.hpp',['../a00007.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_1.html b/external/glm-0.9.9.8/doc/api/search/files_1.html new file mode 100644 index 0000000..f16dd9a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_1.js b/external/glm-0.9.9.8/doc/api/search/files_1.js new file mode 100644 index 0000000..4467a2e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_1.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['bit_2ehpp',['bit.hpp',['../a00008.html',1,'']]], + ['bitfield_2ehpp',['bitfield.hpp',['../a00009.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_10.html b/external/glm-0.9.9.8/doc/api/search/files_10.html similarity index 97% rename from external/glm/doc/api/search/files_10.html rename to external/glm-0.9.9.8/doc/api/search/files_10.html index 940ba51..a9674f7 100644 --- a/external/glm/doc/api/search/files_10.html +++ b/external/glm-0.9.9.8/doc/api/search/files_10.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_10.js b/external/glm-0.9.9.8/doc/api/search/files_10.js new file mode 100644 index 0000000..bbedc1f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_10.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['scalar_5fcommon_2ehpp',['scalar_common.hpp',['../a00144.html',1,'']]], + ['scalar_5fconstants_2ehpp',['scalar_constants.hpp',['../a00145.html',1,'']]], + ['scalar_5fint_5fsized_2ehpp',['scalar_int_sized.hpp',['../a00146.html',1,'']]], + ['scalar_5finteger_2ehpp',['scalar_integer.hpp',['../a00147.html',1,'']]], + ['scalar_5fmultiplication_2ehpp',['scalar_multiplication.hpp',['../a00148.html',1,'']]], + ['scalar_5fuint_5fsized_2ehpp',['scalar_uint_sized.hpp',['../a00151.html',1,'']]], + ['scalar_5fulp_2ehpp',['scalar_ulp.hpp',['../a00152.html',1,'']]], + ['spline_2ehpp',['spline.hpp',['../a00154.html',1,'']]], + ['std_5fbased_5ftype_2ehpp',['std_based_type.hpp',['../a00155.html',1,'']]], + ['string_5fcast_2ehpp',['string_cast.hpp',['../a00156.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_11.html b/external/glm-0.9.9.8/doc/api/search/files_11.html similarity index 97% rename from external/glm/doc/api/search/files_11.html rename to external/glm-0.9.9.8/doc/api/search/files_11.html index f00dc5e..4204877 100644 --- a/external/glm/doc/api/search/files_11.html +++ b/external/glm-0.9.9.8/doc/api/search/files_11.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_11.js b/external/glm-0.9.9.8/doc/api/search/files_11.js new file mode 100644 index 0000000..aae306d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_11.js @@ -0,0 +1,24 @@ +var searchData= +[ + ['texture_2ehpp',['texture.hpp',['../a00157.html',1,'']]], + ['transform_2ehpp',['transform.hpp',['../a00158.html',1,'']]], + ['transform2_2ehpp',['transform2.hpp',['../a00159.html',1,'']]], + ['trigonometric_2ehpp',['trigonometric.hpp',['../a00160.html',1,'']]], + ['type_5fmat2x2_2ehpp',['type_mat2x2.hpp',['../a00165.html',1,'']]], + ['type_5fmat2x3_2ehpp',['type_mat2x3.hpp',['../a00166.html',1,'']]], + ['type_5fmat2x4_2ehpp',['type_mat2x4.hpp',['../a00167.html',1,'']]], + ['type_5fmat3x2_2ehpp',['type_mat3x2.hpp',['../a00168.html',1,'']]], + ['type_5fmat3x3_2ehpp',['type_mat3x3.hpp',['../a00169.html',1,'']]], + ['type_5fmat3x4_2ehpp',['type_mat3x4.hpp',['../a00170.html',1,'']]], + ['type_5fmat4x2_2ehpp',['type_mat4x2.hpp',['../a00171.html',1,'']]], + ['type_5fmat4x3_2ehpp',['type_mat4x3.hpp',['../a00172.html',1,'']]], + ['type_5fmat4x4_2ehpp',['type_mat4x4.hpp',['../a00173.html',1,'']]], + ['type_5fprecision_2ehpp',['type_precision.hpp',['../a00174.html',1,'']]], + ['type_5fptr_2ehpp',['type_ptr.hpp',['../a00175.html',1,'']]], + ['type_5fquat_2ehpp',['type_quat.hpp',['../a00176.html',1,'']]], + ['type_5ftrait_2ehpp',['type_trait.hpp',['../a00177.html',1,'']]], + ['type_5fvec1_2ehpp',['type_vec1.hpp',['../a00178.html',1,'']]], + ['type_5fvec2_2ehpp',['type_vec2.hpp',['../a00179.html',1,'']]], + ['type_5fvec3_2ehpp',['type_vec3.hpp',['../a00180.html',1,'']]], + ['type_5fvec4_2ehpp',['type_vec4.hpp',['../a00181.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_12.html b/external/glm-0.9.9.8/doc/api/search/files_12.html similarity index 97% rename from external/glm/doc/api/search/files_12.html rename to external/glm-0.9.9.8/doc/api/search/files_12.html index 7f023c9..7d3875a 100644 --- a/external/glm/doc/api/search/files_12.html +++ b/external/glm-0.9.9.8/doc/api/search/files_12.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_12.js b/external/glm-0.9.9.8/doc/api/search/files_12.js new file mode 100644 index 0000000..db4d2ce --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_12.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['ulp_2ehpp',['ulp.hpp',['../a00182.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_13.html b/external/glm-0.9.9.8/doc/api/search/files_13.html similarity index 97% rename from external/glm/doc/api/search/files_13.html rename to external/glm-0.9.9.8/doc/api/search/files_13.html index dc6bd8a..aad0eb0 100644 --- a/external/glm/doc/api/search/files_13.html +++ b/external/glm-0.9.9.8/doc/api/search/files_13.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_13.js b/external/glm-0.9.9.8/doc/api/search/files_13.js new file mode 100644 index 0000000..5828f47 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_13.js @@ -0,0 +1,54 @@ +var searchData= +[ + ['vec1_2ehpp',['vec1.hpp',['../a00183.html',1,'']]], + ['vec2_2ehpp',['vec2.hpp',['../a00184.html',1,'']]], + ['vec3_2ehpp',['vec3.hpp',['../a00185.html',1,'']]], + ['vec4_2ehpp',['vec4.hpp',['../a00186.html',1,'']]], + ['vec_5fswizzle_2ehpp',['vec_swizzle.hpp',['../a00187.html',1,'']]], + ['vector_5fangle_2ehpp',['vector_angle.hpp',['../a00188.html',1,'']]], + ['vector_5fbool1_2ehpp',['vector_bool1.hpp',['../a00189.html',1,'']]], + ['vector_5fbool1_5fprecision_2ehpp',['vector_bool1_precision.hpp',['../a00190.html',1,'']]], + ['vector_5fbool2_2ehpp',['vector_bool2.hpp',['../a00191.html',1,'']]], + ['vector_5fbool2_5fprecision_2ehpp',['vector_bool2_precision.hpp',['../a00192.html',1,'']]], + ['vector_5fbool3_2ehpp',['vector_bool3.hpp',['../a00193.html',1,'']]], + ['vector_5fbool3_5fprecision_2ehpp',['vector_bool3_precision.hpp',['../a00194.html',1,'']]], + ['vector_5fbool4_2ehpp',['vector_bool4.hpp',['../a00195.html',1,'']]], + ['vector_5fbool4_5fprecision_2ehpp',['vector_bool4_precision.hpp',['../a00196.html',1,'']]], + ['vector_5fcommon_2ehpp',['vector_common.hpp',['../a00197.html',1,'']]], + ['vector_5fdouble1_2ehpp',['vector_double1.hpp',['../a00198.html',1,'']]], + ['vector_5fdouble1_5fprecision_2ehpp',['vector_double1_precision.hpp',['../a00199.html',1,'']]], + ['vector_5fdouble2_2ehpp',['vector_double2.hpp',['../a00200.html',1,'']]], + ['vector_5fdouble2_5fprecision_2ehpp',['vector_double2_precision.hpp',['../a00201.html',1,'']]], + ['vector_5fdouble3_2ehpp',['vector_double3.hpp',['../a00202.html',1,'']]], + ['vector_5fdouble3_5fprecision_2ehpp',['vector_double3_precision.hpp',['../a00203.html',1,'']]], + ['vector_5fdouble4_2ehpp',['vector_double4.hpp',['../a00204.html',1,'']]], + ['vector_5fdouble4_5fprecision_2ehpp',['vector_double4_precision.hpp',['../a00205.html',1,'']]], + ['vector_5ffloat1_2ehpp',['vector_float1.hpp',['../a00206.html',1,'']]], + ['vector_5ffloat1_5fprecision_2ehpp',['vector_float1_precision.hpp',['../a00207.html',1,'']]], + ['vector_5ffloat2_2ehpp',['vector_float2.hpp',['../a00208.html',1,'']]], + ['vector_5ffloat2_5fprecision_2ehpp',['vector_float2_precision.hpp',['../a00209.html',1,'']]], + ['vector_5ffloat3_2ehpp',['vector_float3.hpp',['../a00210.html',1,'']]], + ['vector_5ffloat3_5fprecision_2ehpp',['vector_float3_precision.hpp',['../a00211.html',1,'']]], + ['vector_5ffloat4_2ehpp',['vector_float4.hpp',['../a00212.html',1,'']]], + ['vector_5ffloat4_5fprecision_2ehpp',['vector_float4_precision.hpp',['../a00213.html',1,'']]], + ['vector_5fint1_2ehpp',['vector_int1.hpp',['../a00214.html',1,'']]], + ['vector_5fint1_5fprecision_2ehpp',['vector_int1_precision.hpp',['../a00215.html',1,'']]], + ['vector_5fint2_2ehpp',['vector_int2.hpp',['../a00216.html',1,'']]], + ['vector_5fint2_5fprecision_2ehpp',['vector_int2_precision.hpp',['../a00217.html',1,'']]], + ['vector_5fint3_2ehpp',['vector_int3.hpp',['../a00218.html',1,'']]], + ['vector_5fint3_5fprecision_2ehpp',['vector_int3_precision.hpp',['../a00219.html',1,'']]], + ['vector_5fint4_2ehpp',['vector_int4.hpp',['../a00220.html',1,'']]], + ['vector_5fint4_5fprecision_2ehpp',['vector_int4_precision.hpp',['../a00221.html',1,'']]], + ['vector_5finteger_2ehpp',['vector_integer.hpp',['../a00222.html',1,'']]], + ['vector_5fquery_2ehpp',['vector_query.hpp',['../a00223.html',1,'']]], + ['vector_5frelational_2ehpp',['vector_relational.hpp',['../a00225.html',1,'']]], + ['vector_5fuint1_2ehpp',['vector_uint1.hpp',['../a00226.html',1,'']]], + ['vector_5fuint1_5fprecision_2ehpp',['vector_uint1_precision.hpp',['../a00227.html',1,'']]], + ['vector_5fuint2_2ehpp',['vector_uint2.hpp',['../a00228.html',1,'']]], + ['vector_5fuint2_5fprecision_2ehpp',['vector_uint2_precision.hpp',['../a00229.html',1,'']]], + ['vector_5fuint3_2ehpp',['vector_uint3.hpp',['../a00230.html',1,'']]], + ['vector_5fuint3_5fprecision_2ehpp',['vector_uint3_precision.hpp',['../a00231.html',1,'']]], + ['vector_5fuint4_2ehpp',['vector_uint4.hpp',['../a00232.html',1,'']]], + ['vector_5fuint4_5fprecision_2ehpp',['vector_uint4_precision.hpp',['../a00233.html',1,'']]], + ['vector_5fulp_2ehpp',['vector_ulp.hpp',['../a00234.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_14.html b/external/glm-0.9.9.8/doc/api/search/files_14.html similarity index 97% rename from external/glm/doc/api/search/files_14.html rename to external/glm-0.9.9.8/doc/api/search/files_14.html index 6f6f1a2..c7774b6 100644 --- a/external/glm/doc/api/search/files_14.html +++ b/external/glm-0.9.9.8/doc/api/search/files_14.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_14.js b/external/glm-0.9.9.8/doc/api/search/files_14.js new file mode 100644 index 0000000..70a8d1a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_14.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['wrap_2ehpp',['wrap.hpp',['../a00235.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_2.html b/external/glm-0.9.9.8/doc/api/search/files_2.html new file mode 100644 index 0000000..5711194 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_2.js b/external/glm-0.9.9.8/doc/api/search/files_2.js new file mode 100644 index 0000000..446712a --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_2.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['closest_5fpoint_2ehpp',['closest_point.hpp',['../a00010.html',1,'']]], + ['color_5fencoding_2ehpp',['color_encoding.hpp',['../a00011.html',1,'']]], + ['color_5fspace_5fycocg_2ehpp',['color_space_YCoCg.hpp',['../a00014.html',1,'']]], + ['common_2ehpp',['common.hpp',['../a00015.html',1,'']]], + ['compatibility_2ehpp',['compatibility.hpp',['../a00017.html',1,'']]], + ['component_5fwise_2ehpp',['component_wise.hpp',['../a00018.html',1,'']]], + ['constants_2ehpp',['constants.hpp',['../a00021.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_3.html b/external/glm-0.9.9.8/doc/api/search/files_3.html new file mode 100644 index 0000000..9e89d19 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_3.js b/external/glm-0.9.9.8/doc/api/search/files_3.js new file mode 100644 index 0000000..15b8445 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['dual_5fquaternion_2ehpp',['dual_quaternion.hpp',['../a00022.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_4.html b/external/glm-0.9.9.8/doc/api/search/files_4.html new file mode 100644 index 0000000..9282ffb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_4.js b/external/glm-0.9.9.8/doc/api/search/files_4.js new file mode 100644 index 0000000..e23bb5c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_4.js @@ -0,0 +1,14 @@ +var searchData= +[ + ['easing_2ehpp',['easing.hpp',['../a00023.html',1,'']]], + ['epsilon_2ehpp',['epsilon.hpp',['../a00024.html',1,'']]], + ['euler_5fangles_2ehpp',['euler_angles.hpp',['../a00025.html',1,'']]], + ['exponential_2ehpp',['exponential.hpp',['../a00026.html',1,'']]], + ['ext_2ehpp',['ext.hpp',['../a00027.html',1,'']]], + ['extend_2ehpp',['extend.hpp',['../a00028.html',1,'']]], + ['extended_5fmin_5fmax_2ehpp',['extended_min_max.hpp',['../a00029.html',1,'']]], + ['exterior_5fproduct_2ehpp',['exterior_product.hpp',['../a00030.html',1,'']]], + ['matrix_5ftransform_2ehpp',['matrix_transform.hpp',['../a00108.html',1,'']]], + ['scalar_5frelational_2ehpp',['scalar_relational.hpp',['../a00149.html',1,'']]], + ['vector_5frelational_2ehpp',['vector_relational.hpp',['../a00224.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_5.html b/external/glm-0.9.9.8/doc/api/search/files_5.html new file mode 100644 index 0000000..4b0c188 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_5.js b/external/glm-0.9.9.8/doc/api/search/files_5.js new file mode 100644 index 0000000..4bd9327 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_5.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['fast_5fexponential_2ehpp',['fast_exponential.hpp',['../a00031.html',1,'']]], + ['fast_5fsquare_5froot_2ehpp',['fast_square_root.hpp',['../a00032.html',1,'']]], + ['fast_5ftrigonometry_2ehpp',['fast_trigonometry.hpp',['../a00033.html',1,'']]], + ['functions_2ehpp',['functions.hpp',['../a00034.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_6.html b/external/glm-0.9.9.8/doc/api/search/files_6.html new file mode 100644 index 0000000..96e3e19 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_6.js b/external/glm-0.9.9.8/doc/api/search/files_6.js new file mode 100644 index 0000000..e980f50 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_6.js @@ -0,0 +1,18 @@ +var searchData= +[ + ['color_5fspace_2ehpp',['color_space.hpp',['../a00012.html',1,'']]], + ['color_5fspace_2ehpp',['color_space.hpp',['../a00013.html',1,'']]], + ['common_2ehpp',['common.hpp',['../a00016.html',1,'']]], + ['geometric_2ehpp',['geometric.hpp',['../a00036.html',1,'']]], + ['glm_2ehpp',['glm.hpp',['../a00037.html',1,'']]], + ['gradient_5fpaint_2ehpp',['gradient_paint.hpp',['../a00038.html',1,'']]], + ['integer_2ehpp',['integer.hpp',['../a00042.html',1,'']]], + ['integer_2ehpp',['integer.hpp',['../a00041.html',1,'']]], + ['matrix_5ftransform_2ehpp',['matrix_transform.hpp',['../a00109.html',1,'']]], + ['packing_2ehpp',['packing.hpp',['../a00119.html',1,'']]], + ['quaternion_2ehpp',['quaternion.hpp',['../a00125.html',1,'']]], + ['quaternion_2ehpp',['quaternion.hpp',['../a00126.html',1,'']]], + ['scalar_5frelational_2ehpp',['scalar_relational.hpp',['../a00150.html',1,'']]], + ['type_5faligned_2ehpp',['type_aligned.hpp',['../a00162.html',1,'']]], + ['type_5faligned_2ehpp',['type_aligned.hpp',['../a00161.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_7.html b/external/glm-0.9.9.8/doc/api/search/files_7.html new file mode 100644 index 0000000..16b9305 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_7.js b/external/glm-0.9.9.8/doc/api/search/files_7.js new file mode 100644 index 0000000..7b8753e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_7.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['handed_5fcoordinate_5fspace_2ehpp',['handed_coordinate_space.hpp',['../a00039.html',1,'']]], + ['hash_2ehpp',['hash.hpp',['../a00040.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/files_8.html b/external/glm-0.9.9.8/doc/api/search/files_8.html new file mode 100644 index 0000000..05d4474 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_8.js b/external/glm-0.9.9.8/doc/api/search/files_8.js new file mode 100644 index 0000000..e9e4f0b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_8.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['integer_2ehpp',['integer.hpp',['../a00043.html',1,'']]], + ['intersect_2ehpp',['intersect.hpp',['../a00044.html',1,'']]], + ['io_2ehpp',['io.hpp',['../a00045.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_9.html b/external/glm-0.9.9.8/doc/api/search/files_9.html similarity index 97% rename from external/glm/doc/api/search/files_9.html rename to external/glm-0.9.9.8/doc/api/search/files_9.html index 62a6c97..b6856f2 100644 --- a/external/glm/doc/api/search/files_9.html +++ b/external/glm-0.9.9.8/doc/api/search/files_9.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_9.js b/external/glm-0.9.9.8/doc/api/search/files_9.js new file mode 100644 index 0000000..788082d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['log_5fbase_2ehpp',['log_base.hpp',['../a00046.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_a.html b/external/glm-0.9.9.8/doc/api/search/files_a.html similarity index 97% rename from external/glm/doc/api/search/files_a.html rename to external/glm-0.9.9.8/doc/api/search/files_a.html index d0b6fa8..29ba141 100644 --- a/external/glm/doc/api/search/files_a.html +++ b/external/glm-0.9.9.8/doc/api/search/files_a.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_a.js b/external/glm-0.9.9.8/doc/api/search/files_a.js new file mode 100644 index 0000000..74b85ef --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_a.js @@ -0,0 +1,64 @@ +var searchData= +[ + ['mat2x2_2ehpp',['mat2x2.hpp',['../a00048.html',1,'']]], + ['mat2x3_2ehpp',['mat2x3.hpp',['../a00049.html',1,'']]], + ['mat2x4_2ehpp',['mat2x4.hpp',['../a00050.html',1,'']]], + ['mat3x2_2ehpp',['mat3x2.hpp',['../a00051.html',1,'']]], + ['mat3x3_2ehpp',['mat3x3.hpp',['../a00052.html',1,'']]], + ['mat3x4_2ehpp',['mat3x4.hpp',['../a00053.html',1,'']]], + ['mat4x2_2ehpp',['mat4x2.hpp',['../a00054.html',1,'']]], + ['mat4x3_2ehpp',['mat4x3.hpp',['../a00055.html',1,'']]], + ['mat4x4_2ehpp',['mat4x4.hpp',['../a00056.html',1,'']]], + ['matrix_2ehpp',['matrix.hpp',['../a00057.html',1,'']]], + ['matrix_5faccess_2ehpp',['matrix_access.hpp',['../a00058.html',1,'']]], + ['matrix_5fclip_5fspace_2ehpp',['matrix_clip_space.hpp',['../a00059.html',1,'']]], + ['matrix_5fcommon_2ehpp',['matrix_common.hpp',['../a00060.html',1,'']]], + ['matrix_5fcross_5fproduct_2ehpp',['matrix_cross_product.hpp',['../a00061.html',1,'']]], + ['matrix_5fdecompose_2ehpp',['matrix_decompose.hpp',['../a00062.html',1,'']]], + ['matrix_5fdouble2x2_2ehpp',['matrix_double2x2.hpp',['../a00063.html',1,'']]], + ['matrix_5fdouble2x2_5fprecision_2ehpp',['matrix_double2x2_precision.hpp',['../a00064.html',1,'']]], + ['matrix_5fdouble2x3_2ehpp',['matrix_double2x3.hpp',['../a00065.html',1,'']]], + ['matrix_5fdouble2x3_5fprecision_2ehpp',['matrix_double2x3_precision.hpp',['../a00066.html',1,'']]], + ['matrix_5fdouble2x4_2ehpp',['matrix_double2x4.hpp',['../a00067.html',1,'']]], + ['matrix_5fdouble2x4_5fprecision_2ehpp',['matrix_double2x4_precision.hpp',['../a00068.html',1,'']]], + ['matrix_5fdouble3x2_2ehpp',['matrix_double3x2.hpp',['../a00069.html',1,'']]], + ['matrix_5fdouble3x2_5fprecision_2ehpp',['matrix_double3x2_precision.hpp',['../a00070.html',1,'']]], + ['matrix_5fdouble3x3_2ehpp',['matrix_double3x3.hpp',['../a00071.html',1,'']]], + ['matrix_5fdouble3x3_5fprecision_2ehpp',['matrix_double3x3_precision.hpp',['../a00072.html',1,'']]], + ['matrix_5fdouble3x4_2ehpp',['matrix_double3x4.hpp',['../a00073.html',1,'']]], + ['matrix_5fdouble3x4_5fprecision_2ehpp',['matrix_double3x4_precision.hpp',['../a00074.html',1,'']]], + ['matrix_5fdouble4x2_2ehpp',['matrix_double4x2.hpp',['../a00075.html',1,'']]], + ['matrix_5fdouble4x2_5fprecision_2ehpp',['matrix_double4x2_precision.hpp',['../a00076.html',1,'']]], + ['matrix_5fdouble4x3_2ehpp',['matrix_double4x3.hpp',['../a00077.html',1,'']]], + ['matrix_5fdouble4x3_5fprecision_2ehpp',['matrix_double4x3_precision.hpp',['../a00078.html',1,'']]], + ['matrix_5fdouble4x4_2ehpp',['matrix_double4x4.hpp',['../a00079.html',1,'']]], + ['matrix_5fdouble4x4_5fprecision_2ehpp',['matrix_double4x4_precision.hpp',['../a00080.html',1,'']]], + ['matrix_5ffactorisation_2ehpp',['matrix_factorisation.hpp',['../a00081.html',1,'']]], + ['matrix_5ffloat2x2_2ehpp',['matrix_float2x2.hpp',['../a00082.html',1,'']]], + ['matrix_5ffloat2x2_5fprecision_2ehpp',['matrix_float2x2_precision.hpp',['../a00083.html',1,'']]], + ['matrix_5ffloat2x3_2ehpp',['matrix_float2x3.hpp',['../a00084.html',1,'']]], + ['matrix_5ffloat2x3_5fprecision_2ehpp',['matrix_float2x3_precision.hpp',['../a00085.html',1,'']]], + ['matrix_5ffloat2x4_2ehpp',['matrix_float2x4.hpp',['../a00086.html',1,'']]], + ['matrix_5ffloat2x4_5fprecision_2ehpp',['matrix_float2x4_precision.hpp',['../a00087.html',1,'']]], + ['matrix_5ffloat3x2_2ehpp',['matrix_float3x2.hpp',['../a00088.html',1,'']]], + ['matrix_5ffloat3x2_5fprecision_2ehpp',['matrix_float3x2_precision.hpp',['../a00089.html',1,'']]], + ['matrix_5ffloat3x3_2ehpp',['matrix_float3x3.hpp',['../a00090.html',1,'']]], + ['matrix_5ffloat3x3_5fprecision_2ehpp',['matrix_float3x3_precision.hpp',['../a00091.html',1,'']]], + ['matrix_5ffloat3x4_2ehpp',['matrix_float3x4.hpp',['../a00092.html',1,'']]], + ['matrix_5ffloat3x4_5fprecision_2ehpp',['matrix_float3x4_precision.hpp',['../a00093.html',1,'']]], + ['matrix_5ffloat4x2_2ehpp',['matrix_float4x2.hpp',['../a00094.html',1,'']]], + ['matrix_5ffloat4x3_2ehpp',['matrix_float4x3.hpp',['../a00096.html',1,'']]], + ['matrix_5ffloat4x3_5fprecision_2ehpp',['matrix_float4x3_precision.hpp',['../a00097.html',1,'']]], + ['matrix_5ffloat4x4_2ehpp',['matrix_float4x4.hpp',['../a00098.html',1,'']]], + ['matrix_5ffloat4x4_5fprecision_2ehpp',['matrix_float4x4_precision.hpp',['../a00099.html',1,'']]], + ['matrix_5finteger_2ehpp',['matrix_integer.hpp',['../a00100.html',1,'']]], + ['matrix_5finterpolation_2ehpp',['matrix_interpolation.hpp',['../a00101.html',1,'']]], + ['matrix_5finverse_2ehpp',['matrix_inverse.hpp',['../a00102.html',1,'']]], + ['matrix_5fmajor_5fstorage_2ehpp',['matrix_major_storage.hpp',['../a00103.html',1,'']]], + ['matrix_5foperation_2ehpp',['matrix_operation.hpp',['../a00104.html',1,'']]], + ['matrix_5fprojection_2ehpp',['matrix_projection.hpp',['../a00105.html',1,'']]], + ['matrix_5fquery_2ehpp',['matrix_query.hpp',['../a00106.html',1,'']]], + ['matrix_5frelational_2ehpp',['matrix_relational.hpp',['../a00107.html',1,'']]], + ['matrix_5ftransform_5f2d_2ehpp',['matrix_transform_2d.hpp',['../a00110.html',1,'']]], + ['mixed_5fproduct_2ehpp',['mixed_product.hpp',['../a00111.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_b.html b/external/glm-0.9.9.8/doc/api/search/files_b.html similarity index 97% rename from external/glm/doc/api/search/files_b.html rename to external/glm-0.9.9.8/doc/api/search/files_b.html index 5d4f023..9534001 100644 --- a/external/glm/doc/api/search/files_b.html +++ b/external/glm-0.9.9.8/doc/api/search/files_b.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_b.js b/external/glm-0.9.9.8/doc/api/search/files_b.js new file mode 100644 index 0000000..4756ede --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_b.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['noise_2ehpp',['noise.hpp',['../a00112.html',1,'']]], + ['norm_2ehpp',['norm.hpp',['../a00113.html',1,'']]], + ['normal_2ehpp',['normal.hpp',['../a00114.html',1,'']]], + ['normalize_5fdot_2ehpp',['normalize_dot.hpp',['../a00115.html',1,'']]], + ['number_5fprecision_2ehpp',['number_precision.hpp',['../a00116.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_c.html b/external/glm-0.9.9.8/doc/api/search/files_c.html similarity index 97% rename from external/glm/doc/api/search/files_c.html rename to external/glm-0.9.9.8/doc/api/search/files_c.html index 888d5df..54c25f0 100644 --- a/external/glm/doc/api/search/files_c.html +++ b/external/glm-0.9.9.8/doc/api/search/files_c.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_c.js b/external/glm-0.9.9.8/doc/api/search/files_c.js new file mode 100644 index 0000000..e617396 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_c.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['optimum_5fpow_2ehpp',['optimum_pow.hpp',['../a00117.html',1,'']]], + ['orthonormalize_2ehpp',['orthonormalize.hpp',['../a00118.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_d.html b/external/glm-0.9.9.8/doc/api/search/files_d.html similarity index 97% rename from external/glm/doc/api/search/files_d.html rename to external/glm-0.9.9.8/doc/api/search/files_d.html index b4496e5..a017662 100644 --- a/external/glm/doc/api/search/files_d.html +++ b/external/glm-0.9.9.8/doc/api/search/files_d.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_d.js b/external/glm-0.9.9.8/doc/api/search/files_d.js new file mode 100644 index 0000000..62381a3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_d.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['packing_2ehpp',['packing.hpp',['../a00120.html',1,'']]], + ['perpendicular_2ehpp',['perpendicular.hpp',['../a00121.html',1,'']]], + ['polar_5fcoordinates_2ehpp',['polar_coordinates.hpp',['../a00122.html',1,'']]], + ['projection_2ehpp',['projection.hpp',['../a00123.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_e.html b/external/glm-0.9.9.8/doc/api/search/files_e.html similarity index 97% rename from external/glm/doc/api/search/files_e.html rename to external/glm-0.9.9.8/doc/api/search/files_e.html index 52be6aa..7a2cce5 100644 --- a/external/glm/doc/api/search/files_e.html +++ b/external/glm-0.9.9.8/doc/api/search/files_e.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_e.js b/external/glm-0.9.9.8/doc/api/search/files_e.js new file mode 100644 index 0000000..f917d37 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_e.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['quaternion_5fcommon_2ehpp',['quaternion_common.hpp',['../a00127.html',1,'']]], + ['quaternion_5fdouble_2ehpp',['quaternion_double.hpp',['../a00128.html',1,'']]], + ['quaternion_5fdouble_5fprecision_2ehpp',['quaternion_double_precision.hpp',['../a00129.html',1,'']]], + ['quaternion_5fexponential_2ehpp',['quaternion_exponential.hpp',['../a00130.html',1,'']]], + ['quaternion_5ffloat_2ehpp',['quaternion_float.hpp',['../a00131.html',1,'']]], + ['quaternion_5ffloat_5fprecision_2ehpp',['quaternion_float_precision.hpp',['../a00132.html',1,'']]], + ['quaternion_5fgeometric_2ehpp',['quaternion_geometric.hpp',['../a00133.html',1,'']]], + ['quaternion_5frelational_2ehpp',['quaternion_relational.hpp',['../a00134.html',1,'']]], + ['quaternion_5ftransform_2ehpp',['quaternion_transform.hpp',['../a00135.html',1,'']]], + ['quaternion_5ftrigonometric_2ehpp',['quaternion_trigonometric.hpp',['../a00136.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/files_f.html b/external/glm-0.9.9.8/doc/api/search/files_f.html similarity index 97% rename from external/glm/doc/api/search/files_f.html rename to external/glm-0.9.9.8/doc/api/search/files_f.html index 3249d42..fd6ca3a 100644 --- a/external/glm/doc/api/search/files_f.html +++ b/external/glm-0.9.9.8/doc/api/search/files_f.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/files_f.js b/external/glm-0.9.9.8/doc/api/search/files_f.js new file mode 100644 index 0000000..ef5c772 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/files_f.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['random_2ehpp',['random.hpp',['../a00137.html',1,'']]], + ['range_2ehpp',['range.hpp',['../a00138.html',1,'']]], + ['raw_5fdata_2ehpp',['raw_data.hpp',['../a00139.html',1,'']]], + ['reciprocal_2ehpp',['reciprocal.hpp',['../a00140.html',1,'']]], + ['rotate_5fnormalized_5faxis_2ehpp',['rotate_normalized_axis.hpp',['../a00141.html',1,'']]], + ['rotate_5fvector_2ehpp',['rotate_vector.hpp',['../a00142.html',1,'']]], + ['round_2ehpp',['round.hpp',['../a00143.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/functions_0.html b/external/glm-0.9.9.8/doc/api/search/functions_0.html new file mode 100644 index 0000000..c0da3f5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_0.js b/external/glm-0.9.9.8/doc/api/search/functions_0.js new file mode 100644 index 0000000..b5c2f0b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_0.js @@ -0,0 +1,31 @@ +var searchData= +[ + ['abs',['abs',['../a00241.html#ga439e60a72eadecfeda2df5449c613a64',1,'glm::abs(genType x)'],['../a00241.html#ga81d3abddd0ef0c8de579bc541ecadab6',1,'glm::abs(vec< L, T, Q > const &x)']]], + ['acos',['acos',['../a00373.html#gacc9b092df8257c68f19c9053703e2563',1,'glm']]], + ['acosh',['acosh',['../a00373.html#ga858f35dc66fd2688f20c52b5f25be76a',1,'glm']]], + ['acot',['acot',['../a00301.html#gaeadfb9c9d71093f7865b2ba2ca8d104d',1,'glm']]], + ['acoth',['acoth',['../a00301.html#gafaca98a7100170db8841f446282debfa',1,'glm']]], + ['acsc',['acsc',['../a00301.html#ga1b4bed91476b9b915e76b4a30236d330',1,'glm']]], + ['acsch',['acsch',['../a00301.html#ga4b50aa5e5afc7e19ec113ab91596c576',1,'glm']]], + ['adjugate',['adjugate',['../a00339.html#ga40a38402a30860af6e508fe76211e659',1,'glm::adjugate(mat< 2, 2, T, Q > const &m)'],['../a00339.html#gaddb09f7abc1a9c56a243d32ff3538be6',1,'glm::adjugate(mat< 3, 3, T, Q > const &m)'],['../a00339.html#ga9aaa7d1f40391b0b5cacccb60e104ba8',1,'glm::adjugate(mat< 4, 4, T, Q > const &m)']]], + ['affineinverse',['affineInverse',['../a00295.html#gae0fcc5fc8783291f9702272de428fa0e',1,'glm']]], + ['all',['all',['../a00374.html#ga87e53f50b679f5f95c5cb4780311b3dd',1,'glm']]], + ['angle',['angle',['../a00257.html#ga8aa248b31d5ade470c87304df5eb7bd8',1,'glm::angle(qua< T, Q > const &x)'],['../a00367.html#ga2e2917b4cb75ca3d043ac15ff88f14e1',1,'glm::angle(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['angleaxis',['angleAxis',['../a00257.html#ga5c0095cfcb218c75a4b79d7687950036',1,'glm']]], + ['any',['any',['../a00374.html#ga911b3f8e41459dd551ccb6d385d91061',1,'glm']]], + ['arecollinear',['areCollinear',['../a00368.html#ga13da4a787a2ff70e95d561fb19ff91b4',1,'glm']]], + ['areorthogonal',['areOrthogonal',['../a00368.html#gac7b95b3f798e3c293262b2bdaad47c57',1,'glm']]], + ['areorthonormal',['areOrthonormal',['../a00368.html#ga1b091c3d7f9ee3b0708311c001c293e3',1,'glm']]], + ['asec',['asec',['../a00301.html#ga2c5b7f962c2c9ff684e6d2de48db1f10',1,'glm']]], + ['asech',['asech',['../a00301.html#gaec7586dccfe431f850d006f3824b8ca6',1,'glm']]], + ['asin',['asin',['../a00373.html#ga0552d2df4865fa8c3d7cfc3ec2caac73',1,'glm']]], + ['asinh',['asinh',['../a00373.html#ga3ef16b501ee859fddde88e22192a5950',1,'glm']]], + ['associatedmax',['associatedMax',['../a00308.html#ga7d9c8785230c8db60f72ec8975f1ba45',1,'glm::associatedMax(T x, U a, T y, U b)'],['../a00308.html#ga5c6758bc50aa7fbe700f87123a045aad',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)'],['../a00308.html#ga0d169d6ce26b03248df175f39005d77f',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b)'],['../a00308.html#ga4086269afabcb81dd7ded33cb3448653',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)'],['../a00308.html#gaec891e363d91abbf3a4443cf2f652209',1,'glm::associatedMax(T x, U a, T y, U b, T z, U c)'],['../a00308.html#gab84fdc35016a31e8cd0cbb8296bddf7c',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)'],['../a00308.html#gadd2a2002f4f2144bbc39eb2336dd2fba',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c)'],['../a00308.html#ga19f59d1141a51a3b2108a9807af78f7f',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c)'],['../a00308.html#ga3038ffcb43eaa6af75897a99a5047ccc',1,'glm::associatedMax(T x, U a, T y, U b, T z, U c, T w, U d)'],['../a00308.html#gaf5ab0c428f8d1cd9e3b45fcfbf6423a6',1,'glm::associatedMax(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)'],['../a00308.html#ga11477c2c4b5b0bfd1b72b29df3725a9d',1,'glm::associatedMax(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)'],['../a00308.html#gab9c3dd74cac899d2c625b5767ea3b3fb',1,'glm::associatedMax(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)']]], + ['associatedmin',['associatedMin',['../a00308.html#gacc01bd272359572fc28437ae214a02df',1,'glm::associatedMin(T x, U a, T y, U b)'],['../a00308.html#gac2f0dff90948f2e44386a5eafd941d1c',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b)'],['../a00308.html#gacfec519c820331d023ef53a511749319',1,'glm::associatedMin(T x, const vec< L, U, Q > &a, T y, const vec< L, U, Q > &b)'],['../a00308.html#ga4757c7cab2d809124a8525d0a9deeb37',1,'glm::associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b)'],['../a00308.html#gad0aa8f86259a26d839d34a3577a923fc',1,'glm::associatedMin(T x, U a, T y, U b, T z, U c)'],['../a00308.html#ga723e5411cebc7ffbd5c81ffeec61127d',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c)'],['../a00308.html#ga432224ebe2085eaa2b63a077ecbbbff6',1,'glm::associatedMin(T x, U a, T y, U b, T z, U c, T w, U d)'],['../a00308.html#ga66b08118bc88f0494bcacb7cdb940556',1,'glm::associatedMin(vec< L, T, Q > const &x, vec< L, U, Q > const &a, vec< L, T, Q > const &y, vec< L, U, Q > const &b, vec< L, T, Q > const &z, vec< L, U, Q > const &c, vec< L, T, Q > const &w, vec< L, U, Q > const &d)'],['../a00308.html#ga78c28fde1a7080fb7420bd88e68c6c68',1,'glm::associatedMin(T x, vec< L, U, Q > const &a, T y, vec< L, U, Q > const &b, T z, vec< L, U, Q > const &c, T w, vec< L, U, Q > const &d)'],['../a00308.html#ga2db7e351994baee78540a562d4bb6d3b',1,'glm::associatedMin(vec< L, T, Q > const &x, U a, vec< L, T, Q > const &y, U b, vec< L, T, Q > const &z, U c, vec< L, T, Q > const &w, U d)']]], + ['atan',['atan',['../a00373.html#gac61629f3a4aa14057e7a8cae002291db',1,'glm::atan(vec< L, T, Q > const &y, vec< L, T, Q > const &x)'],['../a00373.html#ga5229f087eaccbc466f1c609ce3107b95',1,'glm::atan(vec< L, T, Q > const &y_over_x)']]], + ['atan2',['atan2',['../a00315.html#gac63011205bf6d0be82589dc56dd26708',1,'glm::atan2(T x, T y)'],['../a00315.html#ga83bc41bd6f89113ee8006576b12bfc50',1,'glm::atan2(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y)'],['../a00315.html#gac39314f5087e7e51e592897cabbc1927',1,'glm::atan2(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y)'],['../a00315.html#gaba86c28da7bf5bdac64fecf7d56e8ff3',1,'glm::atan2(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y)']]], + ['atanh',['atanh',['../a00373.html#gabc925650e618357d07da255531658b87',1,'glm']]], + ['axis',['axis',['../a00257.html#ga764254f10248b505e936e5309a88c23d',1,'glm']]], + ['axisangle',['axisAngle',['../a00337.html#gafefe32ce5a90a135287ba34fac3623bc',1,'glm']]], + ['axisanglematrix',['axisAngleMatrix',['../a00337.html#ga3a788e2f5223397df5c426413ecc2f6b',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_1.html b/external/glm-0.9.9.8/doc/api/search/functions_1.html similarity index 97% rename from external/glm/doc/api/search/functions_1.html rename to external/glm-0.9.9.8/doc/api/search/functions_1.html index 5f14d67..4fde118 100644 --- a/external/glm/doc/api/search/functions_1.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_1.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_1.js b/external/glm-0.9.9.8/doc/api/search/functions_1.js new file mode 100644 index 0000000..6db0a1b --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_1.js @@ -0,0 +1,20 @@ +var searchData= +[ + ['backeasein',['backEaseIn',['../a00318.html#ga93cddcdb6347a44d5927cc2bf2570816',1,'glm::backEaseIn(genType const &a)'],['../a00318.html#ga33777c9dd98f61d9472f96aafdf2bd36',1,'glm::backEaseIn(genType const &a, genType const &o)']]], + ['backeaseinout',['backEaseInOut',['../a00318.html#gace6d24722a2f6722b56398206eb810bb',1,'glm::backEaseInOut(genType const &a)'],['../a00318.html#ga68a7b760f2afdfab298d5cd6d7611fb1',1,'glm::backEaseInOut(genType const &a, genType const &o)']]], + ['backeaseout',['backEaseOut',['../a00318.html#gabf25069fa906413c858fd46903d520b9',1,'glm::backEaseOut(genType const &a)'],['../a00318.html#ga640c1ac6fe9d277a197da69daf60ee4f',1,'glm::backEaseOut(genType const &a, genType const &o)']]], + ['ballrand',['ballRand',['../a00300.html#ga7c53b7797f3147af68a11c767679fa3f',1,'glm']]], + ['bitcount',['bitCount',['../a00370.html#ga44abfe3379e11cbd29425a843420d0d6',1,'glm::bitCount(genType v)'],['../a00370.html#gaac7b15e40bdea8d9aa4c4cb34049f7b5',1,'glm::bitCount(vec< L, T, Q > const &v)']]], + ['bitfielddeinterleave',['bitfieldDeinterleave',['../a00288.html#ga091d934233a2e121df91b8c7230357c8',1,'glm::bitfieldDeinterleave(glm::uint16 x)'],['../a00288.html#ga7d1cc24dfbcdd932c3a2abbb76235f98',1,'glm::bitfieldDeinterleave(glm::uint32 x)'],['../a00288.html#ga8dbb8c87092f33bd815dd8a840be5d60',1,'glm::bitfieldDeinterleave(glm::uint64 x)']]], + ['bitfieldextract',['bitfieldExtract',['../a00370.html#ga346b25ab11e793e91a4a69c8aa6819f2',1,'glm']]], + ['bitfieldfillone',['bitfieldFillOne',['../a00288.html#ga46f9295abe3b5c7658f5b13c7f819f0a',1,'glm::bitfieldFillOne(genIUType Value, int FirstBit, int BitCount)'],['../a00288.html#ga3e96dd1f0a4bc892f063251ed118c0c1',1,'glm::bitfieldFillOne(vec< L, T, Q > const &Value, int FirstBit, int BitCount)']]], + ['bitfieldfillzero',['bitfieldFillZero',['../a00288.html#ga697b86998b7d74ee0a69d8e9f8819fee',1,'glm::bitfieldFillZero(genIUType Value, int FirstBit, int BitCount)'],['../a00288.html#ga0d16c9acef4be79ea9b47c082a0cf7c2',1,'glm::bitfieldFillZero(vec< L, T, Q > const &Value, int FirstBit, int BitCount)']]], + ['bitfieldinsert',['bitfieldInsert',['../a00370.html#ga2e82992340d421fadb61a473df699b20',1,'glm']]], + ['bitfieldinterleave',['bitfieldInterleave',['../a00288.html#ga24cad0069f9a0450abd80b3e89501adf',1,'glm::bitfieldInterleave(int8 x, int8 y)'],['../a00288.html#ga9a4976a529aec2cee56525e1165da484',1,'glm::bitfieldInterleave(uint8 x, uint8 y)'],['../a00288.html#ga4a76bbca39c40153f3203d0a1926e142',1,'glm::bitfieldInterleave(u8vec2 const &v)'],['../a00288.html#gac51c33a394593f0631fa3aa5bb778809',1,'glm::bitfieldInterleave(int16 x, int16 y)'],['../a00288.html#ga94f3646a5667f4be56f8dcf3310e963f',1,'glm::bitfieldInterleave(uint16 x, uint16 y)'],['../a00288.html#ga406c4ee56af4ca37a73f449f154eca3e',1,'glm::bitfieldInterleave(u16vec2 const &v)'],['../a00288.html#gaebb756a24a0784e3d6fba8bd011ab77a',1,'glm::bitfieldInterleave(int32 x, int32 y)'],['../a00288.html#ga2f1e2b3fe699e7d897ae38b2115ddcbd',1,'glm::bitfieldInterleave(uint32 x, uint32 y)'],['../a00288.html#ga8cb17574d60abd6ade84bc57c10e8f78',1,'glm::bitfieldInterleave(u32vec2 const &v)'],['../a00288.html#ga8fdb724dccd4a07d57efc01147102137',1,'glm::bitfieldInterleave(int8 x, int8 y, int8 z)'],['../a00288.html#ga9fc2a0dd5dcf8b00e113f272a5feca93',1,'glm::bitfieldInterleave(uint8 x, uint8 y, uint8 z)'],['../a00288.html#gaa901c36a842fa5d126ea650549f17b24',1,'glm::bitfieldInterleave(int16 x, int16 y, int16 z)'],['../a00288.html#ga3afd6d38881fe3948c53d4214d2197fd',1,'glm::bitfieldInterleave(uint16 x, uint16 y, uint16 z)'],['../a00288.html#gad2075d96a6640121edaa98ea534102ca',1,'glm::bitfieldInterleave(int32 x, int32 y, int32 z)'],['../a00288.html#gab19fbc739fc0cf7247978602c36f7da8',1,'glm::bitfieldInterleave(uint32 x, uint32 y, uint32 z)'],['../a00288.html#ga8a44ae22f5c953b296c42d067dccbe6d',1,'glm::bitfieldInterleave(int8 x, int8 y, int8 z, int8 w)'],['../a00288.html#ga14bb274d54a3c26f4919dd7ed0dd0c36',1,'glm::bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w)'],['../a00288.html#ga180a63161e1319fbd5a53c84d0429c7a',1,'glm::bitfieldInterleave(int16 x, int16 y, int16 z, int16 w)'],['../a00288.html#gafca8768671a14c8016facccb66a89f26',1,'glm::bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)']]], + ['bitfieldreverse',['bitfieldReverse',['../a00370.html#ga750a1d92464489b7711dee67aa3441b6',1,'glm']]], + ['bitfieldrotateleft',['bitfieldRotateLeft',['../a00288.html#ga2eb49678a344ce1495bdb5586d9896b9',1,'glm::bitfieldRotateLeft(genIUType In, int Shift)'],['../a00288.html#gae186317091b1a39214ebf79008d44a1e',1,'glm::bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)']]], + ['bitfieldrotateright',['bitfieldRotateRight',['../a00288.html#ga1c33d075c5fb8bd8dbfd5092bfc851ca',1,'glm::bitfieldRotateRight(genIUType In, int Shift)'],['../a00288.html#ga590488e1fc00a6cfe5d3bcaf93fbfe88',1,'glm::bitfieldRotateRight(vec< L, T, Q > const &In, int Shift)']]], + ['bounceeasein',['bounceEaseIn',['../a00318.html#gaac30767f2e430b0c3fc859a4d59c7b5b',1,'glm']]], + ['bounceeaseinout',['bounceEaseInOut',['../a00318.html#gadf9f38eff1e5f4c2fa5b629a25ae413e',1,'glm']]], + ['bounceeaseout',['bounceEaseOut',['../a00318.html#ga94007005ff0dcfa0749ebfa2aec540b2',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_10.html b/external/glm-0.9.9.8/doc/api/search/functions_10.html similarity index 97% rename from external/glm/doc/api/search/functions_10.html rename to external/glm-0.9.9.8/doc/api/search/functions_10.html index c322f40..909fe2d 100644 --- a/external/glm/doc/api/search/functions_10.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_10.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_10.js b/external/glm-0.9.9.8/doc/api/search/functions_10.js new file mode 100644 index 0000000..630eefb --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_10.js @@ -0,0 +1,30 @@ +var searchData= +[ + ['saturate',['saturate',['../a00315.html#ga0fd09e616d122bc2ed9726682ffd44b7',1,'glm::saturate(T x)'],['../a00315.html#gaee97b8001c794a78a44f5d59f62a8aba',1,'glm::saturate(const vec< 2, T, Q > &x)'],['../a00315.html#ga39bfe3a421286ee31680d45c31ccc161',1,'glm::saturate(const vec< 3, T, Q > &x)'],['../a00315.html#ga356f8c3a7e7d6376d3d4b0a026407183',1,'glm::saturate(const vec< 4, T, Q > &x)']]], + ['saturation',['saturation',['../a00312.html#ga01a97152b44e1550edcac60bd849e884',1,'glm::saturation(T const s)'],['../a00312.html#ga2156cea600e90148ece5bc96fd6db43a',1,'glm::saturation(T const s, vec< 3, T, Q > const &color)'],['../a00312.html#gaba0eacee0736dae860e9371cc1ae4785',1,'glm::saturation(T const s, vec< 4, T, Q > const &color)']]], + ['scale',['scale',['../a00247.html#ga05051adbee603fb3c5095d8cf5cc229b',1,'glm::scale(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)'],['../a00341.html#gadb47d2ad2bd984b213e8ff7d9cd8154e',1,'glm::scale(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)'],['../a00362.html#gafbeefee8fec884d566e4ada0049174d7',1,'glm::scale(vec< 3, T, Q > const &v)']]], + ['scalebias',['scaleBias',['../a00363.html#gabf249498b236e62c983d90d30d63c99c',1,'glm::scaleBias(T scale, T bias)'],['../a00363.html#gae2bdd91a76759fecfbaef97e3020aa8e',1,'glm::scaleBias(mat< 4, 4, T, Q > const &m, T scale, T bias)']]], + ['sec',['sec',['../a00301.html#gae4bcbebee670c5ea155f0777b3acbd84',1,'glm']]], + ['sech',['sech',['../a00301.html#ga9a5cfd1e7170104a7b33863b1b75e5ae',1,'glm']]], + ['shearx',['shearX',['../a00341.html#ga2a118ece5db1e2022112b954846012af',1,'glm']]], + ['shearx2d',['shearX2D',['../a00363.html#gabf714b8a358181572b32a45555f71948',1,'glm']]], + ['shearx3d',['shearX3D',['../a00363.html#ga73e867c6cd4d700fe2054437e56106c4',1,'glm']]], + ['sheary',['shearY',['../a00341.html#ga717f1833369c1ac4a40e4ac015af885e',1,'glm']]], + ['sheary2d',['shearY2D',['../a00363.html#gac7998d0763d9181550c77e8af09a182c',1,'glm']]], + ['sheary3d',['shearY3D',['../a00363.html#gade5bb65ffcb513973db1a1314fb5cfac',1,'glm']]], + ['shearz3d',['shearZ3D',['../a00363.html#ga6591e0a3a9d2c9c0b6577bb4dace0255',1,'glm']]], + ['shortmix',['shortMix',['../a00352.html#gadc576cc957adc2a568cdcbc3799175bc',1,'glm']]], + ['sign',['sign',['../a00241.html#ga1e2e5cfff800056540e32f6c9b604b28',1,'glm::sign(vec< L, T, Q > const &x)'],['../a00333.html#ga04ef803a24f3d4f8c67dbccb33b0fce0',1,'glm::sign(vec< L, T, Q > const &x, vec< L, T, Q > const &base)']]], + ['simplex',['simplex',['../a00297.html#ga8122468c69015ff397349a7dcc638b27',1,'glm']]], + ['sin',['sin',['../a00373.html#ga29747fd108cb7292ae5a284f69691a69',1,'glm']]], + ['sineeasein',['sineEaseIn',['../a00318.html#gafb338ac6f6b2bcafee50e3dca5201dbf',1,'glm']]], + ['sineeaseinout',['sineEaseInOut',['../a00318.html#gaa46e3d5fbf7a15caa28eff9ef192d7c7',1,'glm']]], + ['sineeaseout',['sineEaseOut',['../a00318.html#gab3e454f883afc1606ef91363881bf5a3',1,'glm']]], + ['sinh',['sinh',['../a00373.html#gac7c39ff21809e281552b4dbe46f4a39d',1,'glm']]], + ['slerp',['slerp',['../a00248.html#gae7fc3c945be366b9942b842f55da428a',1,'glm::slerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)'],['../a00356.html#ga8b11b18ce824174ea1a5a69ea14e2cee',1,'glm::slerp(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, T const &a)']]], + ['smoothstep',['smoothstep',['../a00241.html#ga562edf7eca082cc5b7a0aaf180436daf',1,'glm']]], + ['sphericalrand',['sphericalRand',['../a00300.html#ga22f90fcaccdf001c516ca90f6428e138',1,'glm']]], + ['sqrt',['sqrt',['../a00242.html#gaa83e5f1648b7ccdf33b87c07c76cb77c',1,'glm::sqrt(vec< L, T, Q > const &v)'],['../a00256.html#ga64b7b255ed7bcba616fe6b44470b022e',1,'glm::sqrt(qua< T, Q > const &q)'],['../a00330.html#ga7ce36693a75879ccd9bb10167cfa722d',1,'glm::sqrt(int x)'],['../a00330.html#ga1975d318978d6dacf78b6444fa5ed7bc',1,'glm::sqrt(uint x)']]], + ['squad',['squad',['../a00352.html#ga0b9bf3459e132ad8a18fe970669e3e35',1,'glm']]], + ['step',['step',['../a00241.html#ga015a1261ff23e12650211aa872863cce',1,'glm::step(genType edge, genType x)'],['../a00241.html#ga8f9a911a48ef244b51654eaefc81c551',1,'glm::step(T edge, vec< L, T, Q > const &x)'],['../a00241.html#gaf4a5fc81619c7d3e8b22f53d4a098c7f',1,'glm::step(vec< L, T, Q > const &edge, vec< L, T, Q > const &x)']]] +]; diff --git a/external/glm/doc/api/search/functions_11.html b/external/glm-0.9.9.8/doc/api/search/functions_11.html similarity index 97% rename from external/glm/doc/api/search/functions_11.html rename to external/glm-0.9.9.8/doc/api/search/functions_11.html index c49fcd4..b93de11 100644 --- a/external/glm/doc/api/search/functions_11.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_11.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_11.js b/external/glm-0.9.9.8/doc/api/search/functions_11.js new file mode 100644 index 0000000..3a8e5c7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_11.js @@ -0,0 +1,20 @@ +var searchData= +[ + ['tan',['tan',['../a00373.html#ga293a34cfb9f0115cc606b4a97c84f11f',1,'glm']]], + ['tanh',['tanh',['../a00373.html#gaa1bccbfdcbe40ed2ffcddc2aa8bfd0f1',1,'glm']]], + ['third',['third',['../a00290.html#ga3077c6311010a214b69ddc8214ec13b5',1,'glm']]], + ['three_5fover_5ftwo_5fpi',['three_over_two_pi',['../a00290.html#gae94950df74b0ce382b1fc1d978ef7394',1,'glm']]], + ['to_5fstring',['to_string',['../a00360.html#ga8f0dced1fd45e67e2d77e80ab93c7af5',1,'glm']]], + ['tomat3',['toMat3',['../a00352.html#gaab0afabb894b28a983fb8ec610409d56',1,'glm']]], + ['tomat4',['toMat4',['../a00352.html#gadfa2c77094e8cc9adad321d938855ffb',1,'glm']]], + ['toquat',['toQuat',['../a00352.html#ga798de5d186499c9a9231cd92c8afaef1',1,'glm::toQuat(mat< 3, 3, T, Q > const &x)'],['../a00352.html#ga5eb36f51e1638e710451eba194dbc011',1,'glm::toQuat(mat< 4, 4, T, Q > const &x)']]], + ['translate',['translate',['../a00247.html#ga1a4ecc4ad82652b8fb14dcb087879284',1,'glm::translate(mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &v)'],['../a00341.html#gaf4573ae47c80938aa9053ef6a33755ab',1,'glm::translate(mat< 3, 3, T, Q > const &m, vec< 2, T, Q > const &v)'],['../a00362.html#ga309a30e652e58c396e2c3d4db3ee7658',1,'glm::translate(vec< 3, T, Q > const &v)']]], + ['transpose',['transpose',['../a00371.html#gae679d841da8ce9dbcc6c2d454f15bc35',1,'glm']]], + ['trianglenormal',['triangleNormal',['../a00344.html#gaff1cb5496925dfa7962df457772a7f35',1,'glm']]], + ['trunc',['trunc',['../a00241.html#gaf9375e3e06173271d49e6ffa3a334259',1,'glm']]], + ['tweakedinfiniteperspective',['tweakedInfinitePerspective',['../a00243.html#gaaeacc04a2a6f4b18c5899d37e7bb3ef9',1,'glm::tweakedInfinitePerspective(T fovy, T aspect, T near)'],['../a00243.html#gaf5b3c85ff6737030a1d2214474ffa7a8',1,'glm::tweakedInfinitePerspective(T fovy, T aspect, T near, T ep)']]], + ['two_5fover_5fpi',['two_over_pi',['../a00290.html#ga74eadc8a211253079683219a3ea0462a',1,'glm']]], + ['two_5fover_5froot_5fpi',['two_over_root_pi',['../a00290.html#ga5827301817640843cf02026a8d493894',1,'glm']]], + ['two_5fpi',['two_pi',['../a00290.html#gaa5276a4617566abcfe49286f40e3a256',1,'glm']]], + ['two_5fthirds',['two_thirds',['../a00290.html#ga9b4d2f4322edcf63a6737b92a29dd1f5',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_12.html b/external/glm-0.9.9.8/doc/api/search/functions_12.html similarity index 97% rename from external/glm/doc/api/search/functions_12.html rename to external/glm-0.9.9.8/doc/api/search/functions_12.html index 6a02772..f5a672d 100644 --- a/external/glm/doc/api/search/functions_12.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_12.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_12.js b/external/glm-0.9.9.8/doc/api/search/functions_12.js new file mode 100644 index 0000000..9f9adf4 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_12.js @@ -0,0 +1,52 @@ +var searchData= +[ + ['uaddcarry',['uaddCarry',['../a00370.html#gaedcec48743632dff6786bcc492074b1b',1,'glm']]], + ['uintbitstofloat',['uintBitsToFloat',['../a00241.html#gab2bae0d15dcdca6093f88f76b3975d97',1,'glm::uintBitsToFloat(uint const &v)'],['../a00241.html#ga97f46b5f7b42fe44482e13356eb394ae',1,'glm::uintBitsToFloat(vec< L, uint, Q > const &v)']]], + ['umulextended',['umulExtended',['../a00370.html#ga732e2fb56db57ea541c7e5c92b7121be',1,'glm']]], + ['unpackdouble2x32',['unpackDouble2x32',['../a00372.html#ga5f4296dc5f12f0aa67ac05b8bb322483',1,'glm']]], + ['unpackf2x11_5f1x10',['unpackF2x11_1x10',['../a00298.html#ga2b1fd1e854705b1345e98409e0a25e50',1,'glm']]], + ['unpackf3x9_5fe1x5',['unpackF3x9_E1x5',['../a00298.html#gab9e60ebe3ad3eeced6a9ec6eb876d74e',1,'glm']]], + ['unpackhalf',['unpackHalf',['../a00298.html#ga30d6b2f1806315bcd6047131f547d33b',1,'glm']]], + ['unpackhalf1x16',['unpackHalf1x16',['../a00298.html#gac37dedaba24b00adb4ec6e8f92c19dbf',1,'glm']]], + ['unpackhalf2x16',['unpackHalf2x16',['../a00372.html#gaf59b52e6b28da9335322c4ae19b5d745',1,'glm']]], + ['unpackhalf4x16',['unpackHalf4x16',['../a00298.html#ga57dfc41b2eb20b0ac00efae7d9c49dcd',1,'glm']]], + ['unpacki3x10_5f1x2',['unpackI3x10_1x2',['../a00298.html#ga9a05330e5490be0908d3b117d82aff56',1,'glm']]], + ['unpackint2x16',['unpackInt2x16',['../a00298.html#gaccde055882918a3175de82f4ca8b7d8e',1,'glm']]], + ['unpackint2x32',['unpackInt2x32',['../a00298.html#gab297c0bfd38433524791eb0584d8f08d',1,'glm']]], + ['unpackint2x8',['unpackInt2x8',['../a00298.html#gab0c59f1e259fca9e68adb2207a6b665e',1,'glm']]], + ['unpackint4x16',['unpackInt4x16',['../a00298.html#ga52c154a9b232b62c22517a700cc0c78c',1,'glm']]], + ['unpackint4x8',['unpackInt4x8',['../a00298.html#ga1cd8d2038cdd33a860801aa155a26221',1,'glm']]], + ['unpackrgbm',['unpackRGBM',['../a00298.html#ga5c1ec97894b05ea21a05aea4f0204a02',1,'glm']]], + ['unpacksnorm',['unpackSnorm',['../a00298.html#ga6d49b31e5c3f9df8e1f99ab62b999482',1,'glm']]], + ['unpacksnorm1x16',['unpackSnorm1x16',['../a00298.html#ga96dd15002370627a443c835ab03a766c',1,'glm']]], + ['unpacksnorm1x8',['unpackSnorm1x8',['../a00298.html#ga4851ff86678aa1c7ace9d67846894285',1,'glm']]], + ['unpacksnorm2x16',['unpackSnorm2x16',['../a00372.html#gacd8f8971a3fe28418be0d0fa1f786b38',1,'glm']]], + ['unpacksnorm2x8',['unpackSnorm2x8',['../a00298.html#ga8b128e89be449fc71336968a66bf6e1a',1,'glm']]], + ['unpacksnorm3x10_5f1x2',['unpackSnorm3x10_1x2',['../a00298.html#ga7a4fbf79be9740e3c57737bc2af05e5b',1,'glm']]], + ['unpacksnorm4x16',['unpackSnorm4x16',['../a00298.html#gaaddf9c353528fe896106f7181219c7f4',1,'glm']]], + ['unpacksnorm4x8',['unpackSnorm4x8',['../a00372.html#ga2db488646d48b7c43d3218954523fe82',1,'glm']]], + ['unpacku3x10_5f1x2',['unpackU3x10_1x2',['../a00298.html#ga48df3042a7d079767f5891a1bfd8a60a',1,'glm']]], + ['unpackuint2x16',['unpackUint2x16',['../a00298.html#ga035bbbeab7ec2b28c0529757395b645b',1,'glm']]], + ['unpackuint2x32',['unpackUint2x32',['../a00298.html#gaf942ff11b65e83eb5f77e68329ebc6ab',1,'glm']]], + ['unpackuint2x8',['unpackUint2x8',['../a00298.html#gaa7600a6c71784b637a410869d2a5adcd',1,'glm']]], + ['unpackuint4x16',['unpackUint4x16',['../a00298.html#gab173834ef14cfc23a96a959f3ff4b8dc',1,'glm']]], + ['unpackuint4x8',['unpackUint4x8',['../a00298.html#gaf6dc0e4341810a641c7ed08f10e335d1',1,'glm']]], + ['unpackunorm',['unpackUnorm',['../a00298.html#ga3e6ac9178b59f0b1b2f7599f2183eb7f',1,'glm']]], + ['unpackunorm1x16',['unpackUnorm1x16',['../a00298.html#ga83d34160a5cb7bcb5339823210fc7501',1,'glm']]], + ['unpackunorm1x5_5f1x6_5f1x5',['unpackUnorm1x5_1x6_1x5',['../a00298.html#gab3bc08ecfc0f3339be93fb2b3b56d88a',1,'glm']]], + ['unpackunorm1x8',['unpackUnorm1x8',['../a00298.html#ga1319207e30874fb4931a9ee913983ee1',1,'glm']]], + ['unpackunorm2x16',['unpackUnorm2x16',['../a00372.html#ga1f66188e5d65afeb9ffba1ad971e4007',1,'glm']]], + ['unpackunorm2x3_5f1x2',['unpackUnorm2x3_1x2',['../a00298.html#ga6abd5a9014df3b5ce4059008d2491260',1,'glm']]], + ['unpackunorm2x4',['unpackUnorm2x4',['../a00298.html#ga2e50476132fe5f27f08e273d9c70d85b',1,'glm']]], + ['unpackunorm2x8',['unpackUnorm2x8',['../a00298.html#ga637cbe3913dd95c6e7b4c99c61bd611f',1,'glm']]], + ['unpackunorm3x10_5f1x2',['unpackUnorm3x10_1x2',['../a00298.html#ga5156d3060355fe332865da2c7f78815f',1,'glm']]], + ['unpackunorm3x5_5f1x1',['unpackUnorm3x5_1x1',['../a00298.html#ga5ff95ff5bc16f396432ab67243dbae4d',1,'glm']]], + ['unpackunorm4x16',['unpackUnorm4x16',['../a00298.html#ga2ae149c5d2473ac1e5f347bb654a242d',1,'glm']]], + ['unpackunorm4x4',['unpackUnorm4x4',['../a00298.html#gac58ee89d0e224bb6df5e8bbb18843a2d',1,'glm']]], + ['unpackunorm4x8',['unpackUnorm4x8',['../a00372.html#ga7f903259150b67e9466f5f8edffcd197',1,'glm']]], + ['unproject',['unProject',['../a00245.html#ga36641e5d60f994e01c3d8f56b10263d2',1,'glm']]], + ['unprojectno',['unProjectNO',['../a00245.html#gae089ba9fc150ff69c252a20e508857b5',1,'glm']]], + ['unprojectzo',['unProjectZO',['../a00245.html#gade5136413ce530f8e606124d570fba32',1,'glm']]], + ['uround',['uround',['../a00292.html#ga6715b9d573972a0f7763d30d45bcaec4',1,'glm']]], + ['usubborrow',['usubBorrow',['../a00370.html#gae3316ba1229ad9b9f09480833321b053',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_13.html b/external/glm-0.9.9.8/doc/api/search/functions_13.html similarity index 97% rename from external/glm/doc/api/search/functions_13.html rename to external/glm-0.9.9.8/doc/api/search/functions_13.html index 23ac5da..72e8376 100644 --- a/external/glm/doc/api/search/functions_13.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_13.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_13.js b/external/glm-0.9.9.8/doc/api/search/functions_13.js new file mode 100644 index 0000000..616e780 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_13.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['value_5fptr',['value_ptr',['../a00305.html#ga1c64669e1ba1160ad9386e43dc57569a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_14.html b/external/glm-0.9.9.8/doc/api/search/functions_14.html similarity index 97% rename from external/glm/doc/api/search/functions_14.html rename to external/glm-0.9.9.8/doc/api/search/functions_14.html index 16e2625..ab08f4e 100644 --- a/external/glm/doc/api/search/functions_14.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_14.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_14.js b/external/glm-0.9.9.8/doc/api/search/functions_14.js new file mode 100644 index 0000000..f22728e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_14.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['wrapangle',['wrapAngle',['../a00325.html#ga069527c6dbd64f53435b8ebc4878b473',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_15.html b/external/glm-0.9.9.8/doc/api/search/functions_15.html similarity index 97% rename from external/glm/doc/api/search/functions_15.html rename to external/glm-0.9.9.8/doc/api/search/functions_15.html index 9c2374c..c85aa08 100644 --- a/external/glm/doc/api/search/functions_15.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_15.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_15.js b/external/glm-0.9.9.8/doc/api/search/functions_15.js new file mode 100644 index 0000000..41dca1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_15.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['yaw',['yaw',['../a00299.html#ga8da38cdfdc452dafa660c2f46506bad5',1,'glm']]], + ['yawpitchroll',['yawPitchRoll',['../a00319.html#gae6aa26ccb020d281b449619e419a609e',1,'glm']]], + ['ycocg2rgb',['YCoCg2rgb',['../a00313.html#ga163596b804c7241810b2534a99eb1343',1,'glm']]], + ['ycocgr2rgb',['YCoCgR2rgb',['../a00313.html#gaf8d30574c8576838097d8e20c295384a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_16.html b/external/glm-0.9.9.8/doc/api/search/functions_16.html similarity index 97% rename from external/glm/doc/api/search/functions_16.html rename to external/glm-0.9.9.8/doc/api/search/functions_16.html index 39a0e64..14f947e 100644 --- a/external/glm/doc/api/search/functions_16.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_16.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_16.js b/external/glm-0.9.9.8/doc/api/search/functions_16.js new file mode 100644 index 0000000..0d51cc5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_16.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['zero',['zero',['../a00290.html#ga788f5a421fc0f40a1296ebc094cbaa8a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_2.html b/external/glm-0.9.9.8/doc/api/search/functions_2.html similarity index 97% rename from external/glm/doc/api/search/functions_2.html rename to external/glm-0.9.9.8/doc/api/search/functions_2.html index 3995cf8..4a0c084 100644 --- a/external/glm/doc/api/search/functions_2.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_2.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_2.js b/external/glm-0.9.9.8/doc/api/search/functions_2.js new file mode 100644 index 0000000..3ab03e2 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_2.js @@ -0,0 +1,42 @@ +var searchData= +[ + ['catmullrom',['catmullRom',['../a00358.html#ga8119c04f8210fd0d292757565cd6918d',1,'glm']]], + ['ceil',['ceil',['../a00241.html#gafb9d2a645a23aca12d4d6de0104b7657',1,'glm']]], + ['ceilmultiple',['ceilMultiple',['../a00302.html#ga1d89ac88582aaf4d5dfa5feb4a376fd4',1,'glm::ceilMultiple(genType v, genType Multiple)'],['../a00302.html#gab77fdcc13f8e92d2e0b1b7d7aeab8e9d',1,'glm::ceilMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['ceilpoweroftwo',['ceilPowerOfTwo',['../a00302.html#ga5c3ef36ae32aa4271f1544f92bd578b6',1,'glm::ceilPowerOfTwo(genIUType v)'],['../a00302.html#gab53d4a97c0d3e297be5f693cdfdfe5d2',1,'glm::ceilPowerOfTwo(vec< L, T, Q > const &v)']]], + ['circulareasein',['circularEaseIn',['../a00318.html#ga34508d4b204a321ec26d6086aa047997',1,'glm']]], + ['circulareaseinout',['circularEaseInOut',['../a00318.html#ga0c1027637a5b02d4bb3612aa12599d69',1,'glm']]], + ['circulareaseout',['circularEaseOut',['../a00318.html#ga26fefde9ced9b72745fe21f1a3fe8da7',1,'glm']]], + ['circularrand',['circularRand',['../a00300.html#ga9dd05c36025088fae25b97c869e88517',1,'glm']]], + ['clamp',['clamp',['../a00241.html#ga7cd77683da6361e297c56443fc70806d',1,'glm::clamp(genType x, genType minVal, genType maxVal)'],['../a00241.html#gafba2e0674deb5953878d89483cd6323d',1,'glm::clamp(vec< L, T, Q > const &x, T minVal, T maxVal)'],['../a00241.html#gaa0f2f12e9108b09e22a3f0b2008a0b5d',1,'glm::clamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)'],['../a00369.html#ga6c0cc6bd1d67ea1008d2592e998bad33',1,'glm::clamp(genType const &Texcoord)']]], + ['closebounded',['closeBounded',['../a00314.html#gab7d89c14c48ad01f720fb5daf8813161',1,'glm']]], + ['closestpointonline',['closestPointOnLine',['../a00310.html#ga36529c278ef716986151d58d151d697d',1,'glm::closestPointOnLine(vec< 3, T, Q > const &point, vec< 3, T, Q > const &a, vec< 3, T, Q > const &b)'],['../a00310.html#ga55bcbcc5fc06cb7ff7bc7a6e0e155eb0',1,'glm::closestPointOnLine(vec< 2, T, Q > const &point, vec< 2, T, Q > const &a, vec< 2, T, Q > const &b)']]], + ['colmajor2',['colMajor2',['../a00338.html#gaaff72f11286e59a4a88ed21a347f284c',1,'glm::colMajor2(vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)'],['../a00338.html#gafc25fd44196c92b1397b127aec1281ab',1,'glm::colMajor2(mat< 2, 2, T, Q > const &m)']]], + ['colmajor3',['colMajor3',['../a00338.html#ga1e25b72b085087740c92f5c70f3b051f',1,'glm::colMajor3(vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)'],['../a00338.html#ga86bd0656e787bb7f217607572590af27',1,'glm::colMajor3(mat< 3, 3, T, Q > const &m)']]], + ['colmajor4',['colMajor4',['../a00338.html#gaf4aa6c7e17bfce41a6c13bf6469fab05',1,'glm::colMajor4(vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)'],['../a00338.html#gaf3f9511c366c20ba2e4a64c9e4cec2b3',1,'glm::colMajor4(mat< 4, 4, T, Q > const &m)']]], + ['column',['column',['../a00293.html#ga96022eb0d3fae39d89fc7a954e59b374',1,'glm::column(genType const &m, length_t index)'],['../a00293.html#ga9e757377523890e8b80c5843dbe4dd15',1,'glm::column(genType const &m, length_t index, typename genType::col_type const &x)']]], + ['compadd',['compAdd',['../a00316.html#gaf71833350e15e74d31cbf8a3e7f27051',1,'glm']]], + ['compmax',['compMax',['../a00316.html#gabfa4bb19298c8c73d4217ba759c496b6',1,'glm']]], + ['compmin',['compMin',['../a00316.html#gab5d0832b5c7bb01b8d7395973bfb1425',1,'glm']]], + ['compmul',['compMul',['../a00316.html#gae8ab88024197202c9479d33bdc5a8a5d',1,'glm']]], + ['compnormalize',['compNormalize',['../a00316.html#ga8f2b81ada8515875e58cb1667b6b9908',1,'glm']]], + ['compscale',['compScale',['../a00316.html#ga80abc2980d65d675f435d178c36880eb',1,'glm']]], + ['conjugate',['conjugate',['../a00248.html#ga10d7bda73201788ac2ab28cd8d0d409b',1,'glm']]], + ['convertd65xyztod50xyz',['convertD65XYZToD50XYZ',['../a00311.html#gad12f4f65022b2c80e33fcba2ced0dc48',1,'glm']]], + ['convertd65xyztolinearsrgb',['convertD65XYZToLinearSRGB',['../a00311.html#ga5265386fc3ac29e4c580d37ed470859c',1,'glm']]], + ['convertlinearsrgbtod50xyz',['convertLinearSRGBToD50XYZ',['../a00311.html#ga1522ba180e3d83d554a734056da031f9',1,'glm']]], + ['convertlinearsrgbtod65xyz',['convertLinearSRGBToD65XYZ',['../a00311.html#gaf9e130d9d4ccf51cc99317de7449f369',1,'glm']]], + ['convertlineartosrgb',['convertLinearToSRGB',['../a00289.html#ga42239e7b3da900f7ef37cec7e2476579',1,'glm::convertLinearToSRGB(vec< L, T, Q > const &ColorLinear)'],['../a00289.html#gaace0a21167d13d26116c283009af57f6',1,'glm::convertLinearToSRGB(vec< L, T, Q > const &ColorLinear, T Gamma)']]], + ['convertsrgbtolinear',['convertSRGBToLinear',['../a00289.html#ga16c798b7a226b2c3079dedc55083d187',1,'glm::convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB)'],['../a00289.html#gad1b91f27a9726c9cb403f9fee6e2e200',1,'glm::convertSRGBToLinear(vec< L, T, Q > const &ColorSRGB, T Gamma)']]], + ['cos',['cos',['../a00373.html#ga6a41efc740e3b3c937447d3a6284130e',1,'glm']]], + ['cosh',['cosh',['../a00373.html#ga4e260e372742c5f517aca196cf1e62b3',1,'glm']]], + ['cot',['cot',['../a00301.html#ga3a7b517a95bbd3ad74da3aea87a66314',1,'glm']]], + ['coth',['coth',['../a00301.html#ga6b8b770eb7198e4dea59d52e6db81442',1,'glm']]], + ['cross',['cross',['../a00254.html#ga755beaa929c75751dee646cccba37e4c',1,'glm::cross(qua< T, Q > const &q1, qua< T, Q > const &q2)'],['../a00279.html#gaeeec0794212fe84fc9d261de067c9587',1,'glm::cross(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00322.html#gac36e72b934ea6a9dd313772d7e78fa93',1,'glm::cross(vec< 2, T, Q > const &v, vec< 2, T, Q > const &u)'],['../a00352.html#ga2f32f970411c44cdd38bb98960198385',1,'glm::cross(qua< T, Q > const &q, vec< 3, T, Q > const &v)'],['../a00352.html#ga9f5f77255756e5668dfee7f0d07ed021',1,'glm::cross(vec< 3, T, Q > const &v, qua< T, Q > const &q)']]], + ['csc',['csc',['../a00301.html#ga59dd0005b6474eea48af743b4f14ebbb',1,'glm']]], + ['csch',['csch',['../a00301.html#ga6d95843ff3ca6472ab399ba171d290a0',1,'glm']]], + ['cubic',['cubic',['../a00358.html#ga6b867eb52e2fc933d2e0bf26aabc9a70',1,'glm']]], + ['cubiceasein',['cubicEaseIn',['../a00318.html#gaff52f746102b94864d105563ba8895ae',1,'glm']]], + ['cubiceaseinout',['cubicEaseInOut',['../a00318.html#ga55134072b42d75452189321d4a2ad91c',1,'glm']]], + ['cubiceaseout',['cubicEaseOut',['../a00318.html#ga40d746385d8bcc5973f5bc6a2340ca91',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_3.html b/external/glm-0.9.9.8/doc/api/search/functions_3.html similarity index 97% rename from external/glm/doc/api/search/functions_3.html rename to external/glm-0.9.9.8/doc/api/search/functions_3.html index 4e302d6..0d91efe 100644 --- a/external/glm/doc/api/search/functions_3.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_3.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_3.js b/external/glm-0.9.9.8/doc/api/search/functions_3.js new file mode 100644 index 0000000..1cd259f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_3.js @@ -0,0 +1,24 @@ +var searchData= +[ + ['decompose',['decompose',['../a00335.html#gac0e342656ba09a9bc97c57182ba73124',1,'glm']]], + ['degrees',['degrees',['../a00373.html#ga8faec9e303538065911ba8b3caf7326b',1,'glm']]], + ['derivedeuleranglex',['derivedEulerAngleX',['../a00319.html#ga994b8186b3b80d91cf90bc403164692f',1,'glm']]], + ['derivedeulerangley',['derivedEulerAngleY',['../a00319.html#ga0a4c56ecce7abcb69508ebe6313e9d10',1,'glm']]], + ['derivedeuleranglez',['derivedEulerAngleZ',['../a00319.html#gae8b397348201c42667be983ba3f344df',1,'glm']]], + ['determinant',['determinant',['../a00371.html#gad7928795124768e058f99dce270f5c8d',1,'glm']]], + ['diagonal2x2',['diagonal2x2',['../a00339.html#ga58a32a2beeb2478dae2a721368cdd4ac',1,'glm']]], + ['diagonal2x3',['diagonal2x3',['../a00339.html#gab69f900206a430e2875a5a073851e175',1,'glm']]], + ['diagonal2x4',['diagonal2x4',['../a00339.html#ga30b4dbfed60a919d66acc8a63bcdc549',1,'glm']]], + ['diagonal3x2',['diagonal3x2',['../a00339.html#ga832c805d5130d28ad76236958d15b47d',1,'glm']]], + ['diagonal3x3',['diagonal3x3',['../a00339.html#ga5487ff9cdbc8e04d594adef1bcb16ee0',1,'glm']]], + ['diagonal3x4',['diagonal3x4',['../a00339.html#gad7551139cff0c4208d27f0ad3437833e',1,'glm']]], + ['diagonal4x2',['diagonal4x2',['../a00339.html#gacb8969e6543ba775c6638161a37ac330',1,'glm']]], + ['diagonal4x3',['diagonal4x3',['../a00339.html#gae235def5049d6740f0028433f5e13f90',1,'glm']]], + ['diagonal4x4',['diagonal4x4',['../a00339.html#ga0b4cd8dea436791b072356231ee8578f',1,'glm']]], + ['diskrand',['diskRand',['../a00300.html#gaa0b18071f3f97dbf8bcf6f53c6fe5f73',1,'glm']]], + ['distance',['distance',['../a00279.html#gaa68de6c53e20dfb2dac2d20197562e3f',1,'glm']]], + ['distance2',['distance2',['../a00343.html#ga85660f1b79f66c09c7b5a6f80e68c89f',1,'glm']]], + ['dot',['dot',['../a00254.html#ga84865a56acb8fbd7bc4f5c0b928e3cfc',1,'glm::dot(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00279.html#gaad6c5d9d39bdc0bf43baf1b22e147a0a',1,'glm::dot(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['dual_5fquat_5fidentity',['dual_quat_identity',['../a00317.html#ga0b35c0e30df8a875dbaa751e0bd800e0',1,'glm']]], + ['dualquat_5fcast',['dualquat_cast',['../a00317.html#gac4064ff813759740201765350eac4236',1,'glm::dualquat_cast(mat< 2, 4, T, Q > const &x)'],['../a00317.html#ga91025ebdca0f4ea54da08497b00e8c84',1,'glm::dualquat_cast(mat< 3, 4, T, Q > const &x)']]] +]; diff --git a/external/glm/doc/api/search/functions_4.html b/external/glm-0.9.9.8/doc/api/search/functions_4.html similarity index 97% rename from external/glm/doc/api/search/functions_4.html rename to external/glm-0.9.9.8/doc/api/search/functions_4.html index 58ca83a..b8441bf 100644 --- a/external/glm/doc/api/search/functions_4.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_4.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_4.js b/external/glm-0.9.9.8/doc/api/search/functions_4.js new file mode 100644 index 0000000..722871e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_4.js @@ -0,0 +1,55 @@ +var searchData= +[ + ['e',['e',['../a00290.html#ga4b7956eb6e2fbedfc7cf2e46e85c5139',1,'glm']]], + ['elasticeasein',['elasticEaseIn',['../a00318.html#ga230918eccee4e113d10ec5b8cdc58695',1,'glm']]], + ['elasticeaseinout',['elasticEaseInOut',['../a00318.html#ga2db4ac8959559b11b4029e54812908d6',1,'glm']]], + ['elasticeaseout',['elasticEaseOut',['../a00318.html#gace9c9d1bdf88bf2ab1e7cdefa54c7365',1,'glm']]], + ['epsilon',['epsilon',['../a00259.html#ga2a1e57fc5592b69cfae84174cbfc9429',1,'glm']]], + ['epsilonequal',['epsilonEqual',['../a00291.html#ga91b417866cafadd076004778217a1844',1,'glm::epsilonEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)'],['../a00291.html#gaa7f227999ca09e7ca994e8b35aba47bb',1,'glm::epsilonEqual(genType const &x, genType const &y, genType const &epsilon)']]], + ['epsilonnotequal',['epsilonNotEqual',['../a00291.html#gaf840d33b9a5261ec78dcd5125743b025',1,'glm::epsilonNotEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T const &epsilon)'],['../a00291.html#ga50a92103fb0cbd796908e1bf20c79aaf',1,'glm::epsilonNotEqual(genType const &x, genType const &y, genType const &epsilon)']]], + ['equal',['equal',['../a00246.html#ga27e90dcb7941c9b70e295dc3f6f6369f',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)'],['../a00246.html#gaf5d687d70d11708b68c36c6db5777040',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)'],['../a00246.html#gafa6a053e81179fa4292b35651c83c3fb',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)'],['../a00246.html#gab3a93f19e72e9141f50527c9de21d0c0',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)'],['../a00246.html#ga5305af376173f1902719fa309bbae671',1,'glm::equal(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)'],['../a00255.html#gad7827af0549504ff1cd6a359786acc7a',1,'glm::equal(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00255.html#gaa001eecb91106463169a8e5ef1577b39',1,'glm::equal(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)'],['../a00275.html#ga2ac7651a2fa7354f2da610dbd50d28e2',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)'],['../a00275.html#ga37d261a65f69babc82cec2ae1af7145f',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)'],['../a00275.html#ga2b46cb50911e97b32f4cd743c2c69771',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)'],['../a00275.html#ga7da2b8605be7f245b39cb6fbf6d9d581',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)'],['../a00374.html#gab4c5cfdaa70834421397a85aa83ad946',1,'glm::equal(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['euclidean',['euclidean',['../a00350.html#ga1821d5b3324201e60a9e2823d0b5d0c8',1,'glm']]], + ['euler',['euler',['../a00290.html#gad8fe2e6f90bce9d829e9723b649fbd42',1,'glm']]], + ['eulerangles',['eulerAngles',['../a00299.html#gaf4dd967dead22dd932fc7460ceecb03f',1,'glm']]], + ['euleranglex',['eulerAngleX',['../a00319.html#gafba6282e4ed3ff8b5c75331abfba3489',1,'glm']]], + ['euleranglexy',['eulerAngleXY',['../a00319.html#ga64036577ee17a2d24be0dbc05881d4e2',1,'glm']]], + ['euleranglexyx',['eulerAngleXYX',['../a00319.html#ga29bd0787a28a6648159c0d6e69706066',1,'glm']]], + ['euleranglexyz',['eulerAngleXYZ',['../a00319.html#ga1975e0f0e9bed7f716dc9946da2ab645',1,'glm']]], + ['euleranglexz',['eulerAngleXZ',['../a00319.html#gaa39bd323c65c2fc0a1508be33a237ce9',1,'glm']]], + ['euleranglexzx',['eulerAngleXZX',['../a00319.html#ga60171c79a17aec85d7891ae1d1533ec9',1,'glm']]], + ['euleranglexzy',['eulerAngleXZY',['../a00319.html#ga996dce12a60d8a674ba6737a535fa910',1,'glm']]], + ['eulerangley',['eulerAngleY',['../a00319.html#gab84bf4746805fd69b8ecbb230e3974c5',1,'glm']]], + ['eulerangleyx',['eulerAngleYX',['../a00319.html#ga4f57e6dd25c3cffbbd4daa6ef3f4486d',1,'glm']]], + ['eulerangleyxy',['eulerAngleYXY',['../a00319.html#ga750fba9894117f87bcc529d7349d11de',1,'glm']]], + ['eulerangleyxz',['eulerAngleYXZ',['../a00319.html#gab8ba99a9814f6d9edf417b6c6d5b0c10',1,'glm']]], + ['eulerangleyz',['eulerAngleYZ',['../a00319.html#ga220379e10ac8cca55e275f0c9018fed9',1,'glm']]], + ['eulerangleyzx',['eulerAngleYZX',['../a00319.html#ga08bef16357b8f9b3051b3dcaec4b7848',1,'glm']]], + ['eulerangleyzy',['eulerAngleYZY',['../a00319.html#ga5e5e40abc27630749b42b3327c76d6e4',1,'glm']]], + ['euleranglez',['eulerAngleZ',['../a00319.html#ga5b3935248bb6c3ec6b0d9297d406e251',1,'glm']]], + ['euleranglezx',['eulerAngleZX',['../a00319.html#ga483903115cd4059228961046a28d69b5',1,'glm']]], + ['euleranglezxy',['eulerAngleZXY',['../a00319.html#gab4505c54d2dd654df4569fd1f04c43aa',1,'glm']]], + ['euleranglezxz',['eulerAngleZXZ',['../a00319.html#ga178f966c52b01e4d65e31ebd007e3247',1,'glm']]], + ['euleranglezy',['eulerAngleZY',['../a00319.html#ga400b2bd5984999efab663f3a68e1d020',1,'glm']]], + ['euleranglezyx',['eulerAngleZYX',['../a00319.html#ga2e61f1e39069c47530acab9167852dd6',1,'glm']]], + ['euleranglezyz',['eulerAngleZYZ',['../a00319.html#gacd795f1dbecaf74974f9c76bbcca6830',1,'glm']]], + ['exp',['exp',['../a00242.html#ga071566cadc7505455e611f2a0353f4d4',1,'glm::exp(vec< L, T, Q > const &v)'],['../a00256.html#gaab2d37ef7265819f1d2939b9dc2c52ac',1,'glm::exp(qua< T, Q > const &q)']]], + ['exp2',['exp2',['../a00242.html#gaff17ace6b579a03bf223ed4d1ed2cd16',1,'glm']]], + ['exponentialeasein',['exponentialEaseIn',['../a00318.html#ga7f24ee9219ab4c84dc8de24be84c1e3c',1,'glm']]], + ['exponentialeaseinout',['exponentialEaseInOut',['../a00318.html#ga232fb6dc093c5ce94bee105ff2947501',1,'glm']]], + ['exponentialeaseout',['exponentialEaseOut',['../a00318.html#ga517f2bcfd15bc2c25c466ae50808efc3',1,'glm']]], + ['extend',['extend',['../a00320.html#ga8140caae613b0f847ab0d7175dc03a37',1,'glm']]], + ['extracteuleranglexyx',['extractEulerAngleXYX',['../a00319.html#gaf1077a72171d0f3b08f022ab5ff88af7',1,'glm']]], + ['extracteuleranglexyz',['extractEulerAngleXYZ',['../a00319.html#gacea701562f778c1da4d3a0a1cf091000',1,'glm']]], + ['extracteuleranglexzx',['extractEulerAngleXZX',['../a00319.html#gacf0bc6c031f25fa3ee0055b62c8260d0',1,'glm']]], + ['extracteuleranglexzy',['extractEulerAngleXZY',['../a00319.html#gabe5a65d8eb1cd873c8de121cce1a15ed',1,'glm']]], + ['extracteulerangleyxy',['extractEulerAngleYXY',['../a00319.html#gaab8868556361a190db94374e9983ed39',1,'glm']]], + ['extracteulerangleyxz',['extractEulerAngleYXZ',['../a00319.html#gaf0937518e63037335a0e8358b6f053c5',1,'glm']]], + ['extracteulerangleyzx',['extractEulerAngleYZX',['../a00319.html#ga9049b78466796c0de2971756e25b93d3',1,'glm']]], + ['extracteulerangleyzy',['extractEulerAngleYZY',['../a00319.html#ga11dad972c109e4bf8694c915017c44a6',1,'glm']]], + ['extracteuleranglezxy',['extractEulerAngleZXY',['../a00319.html#ga81fbbca2ba0c778b9662d5355b4e2363',1,'glm']]], + ['extracteuleranglezxz',['extractEulerAngleZXZ',['../a00319.html#ga59359fef9bad92afaca55e193f91e702',1,'glm']]], + ['extracteuleranglezyx',['extractEulerAngleZYX',['../a00319.html#ga2d6c11a4abfa60c565483cee2d3f7665',1,'glm']]], + ['extracteuleranglezyz',['extractEulerAngleZYZ',['../a00319.html#gafdfa880a64b565223550c2d3938b1aeb',1,'glm']]], + ['extractmatrixrotation',['extractMatrixRotation',['../a00337.html#gabbc1c7385a145f04b5c54228965df145',1,'glm']]], + ['extractrealcomponent',['extractRealComponent',['../a00352.html#ga321953c1b2e7befe6f5dcfddbfc6b76b',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_5.html b/external/glm-0.9.9.8/doc/api/search/functions_5.html similarity index 97% rename from external/glm/doc/api/search/functions_5.html rename to external/glm-0.9.9.8/doc/api/search/functions_5.html index 5f9f05a..1931082 100644 --- a/external/glm/doc/api/search/functions_5.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_5.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_5.js b/external/glm-0.9.9.8/doc/api/search/functions_5.js new file mode 100644 index 0000000..cea2573 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_5.js @@ -0,0 +1,51 @@ +var searchData= +[ + ['faceforward',['faceforward',['../a00279.html#ga7aed0a36c738169402404a3a5d54e43b',1,'glm']]], + ['factorial',['factorial',['../a00330.html#ga8cbd3120905f398ec321b5d1836e08fb',1,'glm']]], + ['fastacos',['fastAcos',['../a00325.html#ga9721d63356e5d94fdc4b393a426ab26b',1,'glm']]], + ['fastasin',['fastAsin',['../a00325.html#ga562cb62c51fbfe7fac7db0bce706b81f',1,'glm']]], + ['fastatan',['fastAtan',['../a00325.html#ga8d197c6ef564f5e5d59af3b3f8adcc2c',1,'glm::fastAtan(T y, T x)'],['../a00325.html#gae25de86a968490ff56856fa425ec9d30',1,'glm::fastAtan(T angle)']]], + ['fastcos',['fastCos',['../a00325.html#gab34c8b45c23c0165a64dcecfcc3b302a',1,'glm']]], + ['fastdistance',['fastDistance',['../a00324.html#gaac333418d0c4e0cc6d3d219ed606c238',1,'glm::fastDistance(genType x, genType y)'],['../a00324.html#ga42d3e771fa7cb3c60d828e315829df19',1,'glm::fastDistance(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['fastexp',['fastExp',['../a00323.html#gaa3180ac8f96ab37ab96e0cacaf608e10',1,'glm::fastExp(T x)'],['../a00323.html#ga3ba6153aec6bd74628f8b00530aa8d58',1,'glm::fastExp(vec< L, T, Q > const &x)']]], + ['fastexp2',['fastExp2',['../a00323.html#ga0af50585955eb14c60bb286297fabab2',1,'glm::fastExp2(T x)'],['../a00323.html#gacaaed8b67d20d244b7de217e7816c1b6',1,'glm::fastExp2(vec< L, T, Q > const &x)']]], + ['fastinversesqrt',['fastInverseSqrt',['../a00324.html#ga7f081b14d9c7035c8714eba5f7f75a8f',1,'glm::fastInverseSqrt(genType x)'],['../a00324.html#gadcd7be12b1e5ee182141359d4c45dd24',1,'glm::fastInverseSqrt(vec< L, T, Q > const &x)']]], + ['fastlength',['fastLength',['../a00324.html#gafe697d6287719538346bbdf8b1367c59',1,'glm::fastLength(genType x)'],['../a00324.html#ga90f66be92ef61e705c005e7b3209edb8',1,'glm::fastLength(vec< L, T, Q > const &x)']]], + ['fastlog',['fastLog',['../a00323.html#gae1bdc97b7f96a600e29c753f1cd4388a',1,'glm::fastLog(T x)'],['../a00323.html#ga937256993a7219e73f186bb348fe6be8',1,'glm::fastLog(vec< L, T, Q > const &x)']]], + ['fastlog2',['fastLog2',['../a00323.html#ga6e98118685f6dc9e05fbb13dd5e5234e',1,'glm::fastLog2(T x)'],['../a00323.html#ga7562043539194ccc24649f8475bc5584',1,'glm::fastLog2(vec< L, T, Q > const &x)']]], + ['fastmix',['fastMix',['../a00352.html#ga264e10708d58dd0ff53b7902a2bd2561',1,'glm']]], + ['fastnormalize',['fastNormalize',['../a00324.html#ga3b02c1d6e0c754144e2f1e110bf9f16c',1,'glm']]], + ['fastnormalizedot',['fastNormalizeDot',['../a00345.html#ga2746fb9b5bd22b06b2f7c8babba5de9e',1,'glm']]], + ['fastpow',['fastPow',['../a00323.html#ga5340e98a11fcbbd936ba6e983a154d50',1,'glm::fastPow(genType x, genType y)'],['../a00323.html#ga15325a8ed2d1c4ed2412c4b3b3927aa2',1,'glm::fastPow(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00323.html#ga7f2562db9c3e02ae76169c36b086c3f6',1,'glm::fastPow(genTypeT x, genTypeU y)'],['../a00323.html#ga1abe488c0829da5b9de70ac64aeaa7e5',1,'glm::fastPow(vec< L, T, Q > const &x)']]], + ['fastsin',['fastSin',['../a00325.html#ga0aab3257bb3b628d10a1e0483e2c6915',1,'glm']]], + ['fastsqrt',['fastSqrt',['../a00324.html#ga6c460e9414a50b2fc455c8f64c86cdc9',1,'glm::fastSqrt(genType x)'],['../a00324.html#gae83f0c03614f73eae5478c5b6274ee6d',1,'glm::fastSqrt(vec< L, T, Q > const &x)']]], + ['fasttan',['fastTan',['../a00325.html#gaf29b9c1101a10007b4f79ee89df27ba2',1,'glm']]], + ['fclamp',['fclamp',['../a00321.html#ga1e28539d3a46965ed9ef92ec7cb3b18a',1,'glm::fclamp(genType x, genType minVal, genType maxVal)'],['../a00321.html#ga60796d08903489ee185373593bc16b9d',1,'glm::fclamp(vec< L, T, Q > const &x, T minVal, T maxVal)'],['../a00321.html#ga5c15fa4709763c269c86c0b8b3aa2297',1,'glm::fclamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)']]], + ['findlsb',['findLSB',['../a00370.html#gaf74c4d969fa34ab8acb9d390f5ca5274',1,'glm::findLSB(genIUType x)'],['../a00370.html#ga4454c0331d6369888c28ab677f4810c7',1,'glm::findLSB(vec< L, T, Q > const &v)']]], + ['findmsb',['findMSB',['../a00370.html#ga7e4a794d766861c70bc961630f8ef621',1,'glm::findMSB(genIUType x)'],['../a00370.html#ga39ac4d52028bb6ab08db5ad6562c2872',1,'glm::findMSB(vec< L, T, Q > const &v)']]], + ['findnsb',['findNSB',['../a00261.html#ga2777901e41ad6e1e9d0ad6cc855d1075',1,'glm::findNSB(genIUType x, int significantBitCount)'],['../a00274.html#gaff61eca266da315002a3db92ff0dd604',1,'glm::findNSB(vec< L, T, Q > const &Source, vec< L, int, Q > SignificantBitCount)']]], + ['fliplr',['fliplr',['../a00336.html#gaf39f4e5f78eb29c1a90277d45b9b3feb',1,'glm']]], + ['flipud',['flipud',['../a00336.html#ga85003371f0ba97380dd25e8905de1870',1,'glm']]], + ['floatbitstoint',['floatBitsToInt',['../a00241.html#ga1425c1c3160ec51214b03a0469a3013d',1,'glm::floatBitsToInt(float const &v)'],['../a00241.html#ga99f7d62f78ac5ea3b49bae715c9488ed',1,'glm::floatBitsToInt(vec< L, float, Q > const &v)']]], + ['floatbitstouint',['floatBitsToUint',['../a00241.html#ga70e0271c34af52f3100c7960e18c3f2b',1,'glm::floatBitsToUint(float const &v)'],['../a00241.html#ga49418ba4c8a60fbbb5d57b705f3e26db',1,'glm::floatBitsToUint(vec< L, float, Q > const &v)']]], + ['floor',['floor',['../a00241.html#gaa9d0742639e85b29c7c5de11cfd6840d',1,'glm']]], + ['floor_5flog2',['floor_log2',['../a00330.html#ga7011b4e1c1e1ed492149b028feacc00e',1,'glm']]], + ['floormultiple',['floorMultiple',['../a00302.html#ga2ffa3cd5f2ea746ee1bf57c46da6315e',1,'glm::floorMultiple(genType v, genType Multiple)'],['../a00302.html#gacdd8901448f51f0b192380e422fae3e4',1,'glm::floorMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['floorpoweroftwo',['floorPowerOfTwo',['../a00302.html#gafe273a57935d04c9db677bf67f9a71f4',1,'glm::floorPowerOfTwo(genIUType v)'],['../a00302.html#gaf0d591a8fca8ddb9289cdeb44b989c2d',1,'glm::floorPowerOfTwo(vec< L, T, Q > const &v)']]], + ['fma',['fma',['../a00241.html#gad0f444d4b81cc53c3b6edf5aa25078c2',1,'glm']]], + ['fmax',['fmax',['../a00258.html#ga36920478565cf608e93064283ce06421',1,'glm::fmax(T a, T b)'],['../a00258.html#ga0007bba71ca451ac70e99d28dfbeaab9',1,'glm::fmax(T a, T b, T C)'],['../a00258.html#ga27e260b1ff4d04c3ad4b864d26cbaf08',1,'glm::fmax(T a, T b, T C, T D)'],['../a00267.html#gad66b6441f7200db16c9f341711733c56',1,'glm::fmax(vec< L, T, Q > const &a, T b)'],['../a00267.html#ga8df4be3f48d6717c40ea788fd30deebf',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b)'],['../a00267.html#ga0f04ba924294dae4234ca93ede23229a',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#ga4ed3eb250ccbe17bfe8ded8a6b72d230',1,'glm::fmax(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#gae5792cb2b51190057e4aea027eb56f81',1,'glm::fmax(genType x, genType y)']]], + ['fmin',['fmin',['../a00258.html#ga7b2b438a765e2a62098c79eb212f28f0',1,'glm::fmin(T a, T b)'],['../a00258.html#ga1a95fe4cf5437e8133f1093fe9726a64',1,'glm::fmin(T a, T b, T c)'],['../a00258.html#ga3d6f9c6c16bfd6f38f2c4f8076e8b661',1,'glm::fmin(T a, T b, T c, T d)'],['../a00267.html#gae989203363cff9eab5093630df4fe071',1,'glm::fmin(vec< L, T, Q > const &x, T y)'],['../a00267.html#ga7c42e93cd778c9181d1cdeea4d3e43bd',1,'glm::fmin(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00267.html#ga7e62739055b49189d9355471f78fe000',1,'glm::fmin(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#ga4a543dd7d22ad1f3b8b839f808a9d93c',1,'glm::fmin(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#gaa3200559611ac5b9b9ae7283547916a7',1,'glm::fmin(genType x, genType y)']]], + ['fmod',['fmod',['../a00314.html#gae5e80425df9833164ad469e83b475fb4',1,'glm']]], + ['four_5fover_5fpi',['four_over_pi',['../a00290.html#ga753950e5140e4ea6a88e4a18ba61dc09',1,'glm']]], + ['fract',['fract',['../a00241.html#ga8ba89e40e55ae5cdf228548f9b7639c7',1,'glm::fract(genType x)'],['../a00241.html#ga2df623004f634b440d61e018d62c751b',1,'glm::fract(vec< L, T, Q > const &x)']]], + ['frexp',['frexp',['../a00241.html#gaddf5ef73283c171730e0bcc11833fa81',1,'glm']]], + ['frustum',['frustum',['../a00243.html#ga0bcd4542e0affc63a0b8c08fcb839ea9',1,'glm']]], + ['frustumlh',['frustumLH',['../a00243.html#gae4277c37f61d81da01bc9db14ea90296',1,'glm']]], + ['frustumlh_5fno',['frustumLH_NO',['../a00243.html#ga259520cad03b3f8bca9417920035ed01',1,'glm']]], + ['frustumlh_5fzo',['frustumLH_ZO',['../a00243.html#ga94218b094862d17798370242680b9030',1,'glm']]], + ['frustumno',['frustumNO',['../a00243.html#gae34ec664ad44860bf4b5ba631f0e0e90',1,'glm']]], + ['frustumrh',['frustumRH',['../a00243.html#ga4366ab45880c6c5f8b3e8c371ca4b136',1,'glm']]], + ['frustumrh_5fno',['frustumRH_NO',['../a00243.html#ga9236c8439f21be186b79c97b588836b9',1,'glm']]], + ['frustumrh_5fzo',['frustumRH_ZO',['../a00243.html#ga7654a9227f14d5382786b9fc0eb5692d',1,'glm']]], + ['frustumzo',['frustumZO',['../a00243.html#gaa73322e152edf50cf30a6edac342a757',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_6.html b/external/glm-0.9.9.8/doc/api/search/functions_6.html similarity index 97% rename from external/glm/doc/api/search/functions_6.html rename to external/glm-0.9.9.8/doc/api/search/functions_6.html index c980da2..7cba3f7 100644 --- a/external/glm/doc/api/search/functions_6.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_6.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_6.js b/external/glm-0.9.9.8/doc/api/search/functions_6.js new file mode 100644 index 0000000..b2d5bcd --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_6.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['gauss',['gauss',['../a00326.html#ga0b50b197ff74261a0fad90f4b8d24702',1,'glm::gauss(T x, T ExpectedValue, T StandardDeviation)'],['../a00326.html#gad19ec8754a83c0b9a8dc16b7e60705ab',1,'glm::gauss(vec< 2, T, Q > const &Coord, vec< 2, T, Q > const &ExpectedValue, vec< 2, T, Q > const &StandardDeviation)']]], + ['gaussrand',['gaussRand',['../a00300.html#ga5193a83e49e4fdc5652c084711083574',1,'glm']]], + ['glm_5faligned_5ftypedef',['GLM_ALIGNED_TYPEDEF',['../a00364.html#gab5cd5c5fad228b25c782084f1cc30114',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int8, aligned_lowp_int8, 1)'],['../a00364.html#ga5bb5dd895ef625c1b113f2cf400186b0',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int16, aligned_lowp_int16, 2)'],['../a00364.html#gac6efa54cf7c6c86f7158922abdb1a430',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int32, aligned_lowp_int32, 4)'],['../a00364.html#ga6612eb77c8607048e7552279a11eeb5f',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int64, aligned_lowp_int64, 8)'],['../a00364.html#ga7ddc1848ff2223026db8968ce0c97497',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int8_t, aligned_lowp_int8_t, 1)'],['../a00364.html#ga22240dd9458b0f8c11fbcc4f48714f68',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int16_t, aligned_lowp_int16_t, 2)'],['../a00364.html#ga8130ea381d76a2cc34a93ccbb6cf487d',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int32_t, aligned_lowp_int32_t, 4)'],['../a00364.html#ga7ccb60f3215d293fd62b33b31ed0e7be',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_int64_t, aligned_lowp_int64_t, 8)'],['../a00364.html#gac20d508d2ef5cc95ad3daf083c57ec2a',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i8, aligned_lowp_i8, 1)'],['../a00364.html#ga50257b48069a31d0c8d9c1f644d267de',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i16, aligned_lowp_i16, 2)'],['../a00364.html#gaa07e98e67b7a3435c0746018c7a2a839',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i32, aligned_lowp_i32, 4)'],['../a00364.html#ga62601fc6f8ca298b77285bedf03faffd',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_i64, aligned_lowp_i64, 8)'],['../a00364.html#gac8cff825951aeb54dd846037113c72db',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int8, aligned_mediump_int8, 1)'],['../a00364.html#ga78f443d88f438575a62b5df497cdf66b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int16, aligned_mediump_int16, 2)'],['../a00364.html#ga0680cd3b5d4e8006985fb41a4f9b57af',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int32, aligned_mediump_int32, 4)'],['../a00364.html#gad9e5babb1dd3e3531b42c37bf25dd951',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int64, aligned_mediump_int64, 8)'],['../a00364.html#ga353fd9fa8a9ad952fcabd0d53ad9a6dd',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int8_t, aligned_mediump_int8_t, 1)'],['../a00364.html#ga2196442c0e5c5e8c77842de388c42521',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int16_t, aligned_mediump_int16_t, 2)'],['../a00364.html#ga1284488189daf897cf095c5eefad9744',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int32_t, aligned_mediump_int32_t, 4)'],['../a00364.html#ga73fdc86a539808af58808b7c60a1c4d8',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_int64_t, aligned_mediump_int64_t, 8)'],['../a00364.html#gafafeea923e1983262c972e2b83922d3b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i8, aligned_mediump_i8, 1)'],['../a00364.html#ga4b35ca5fe8f55c9d2fe54fdb8d8896f4',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i16, aligned_mediump_i16, 2)'],['../a00364.html#ga63b882e29170d428463d99c3d630acc6',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i32, aligned_mediump_i32, 4)'],['../a00364.html#ga8b20507bb048c1edea2d441cc953e6f0',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_i64, aligned_mediump_i64, 8)'],['../a00364.html#ga56c5ca60813027b603c7b61425a0479d',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int8, aligned_highp_int8, 1)'],['../a00364.html#ga7a751b3aff24c0259f4a7357c2969089',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int16, aligned_highp_int16, 2)'],['../a00364.html#ga70cd2144351c556469ee6119e59971fc',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int32, aligned_highp_int32, 4)'],['../a00364.html#ga46bbf08dc004d8c433041e0b5018a5d3',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int64, aligned_highp_int64, 8)'],['../a00364.html#gab3e10c77a20d1abad2de1c561c7a5c18',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int8_t, aligned_highp_int8_t, 1)'],['../a00364.html#ga968f30319ebeaca9ebcd3a25a8e139fb',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int16_t, aligned_highp_int16_t, 2)'],['../a00364.html#gaae773c28e6390c6aa76f5b678b7098a3',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int32_t, aligned_highp_int32_t, 4)'],['../a00364.html#ga790cfff1ca39d0ed696ffed980809311',1,'glm::GLM_ALIGNED_TYPEDEF(highp_int64_t, aligned_highp_int64_t, 8)'],['../a00364.html#ga8265b91eb23c120a9b0c3e381bc37b96',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i8, aligned_highp_i8, 1)'],['../a00364.html#gae6d384de17588d8edb894fbe06e0d410',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i16, aligned_highp_i16, 2)'],['../a00364.html#ga9c8172b745ee03fc5b2b91c350c2922f',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i32, aligned_highp_i32, 4)'],['../a00364.html#ga77e0dff12aa4020ddc3f8cabbea7b2e6',1,'glm::GLM_ALIGNED_TYPEDEF(highp_i64, aligned_highp_i64, 8)'],['../a00364.html#gabd82b9faa9d4d618dbbe0fc8a1efee63',1,'glm::GLM_ALIGNED_TYPEDEF(int8, aligned_int8, 1)'],['../a00364.html#ga285649744560be21000cfd81bbb5d507',1,'glm::GLM_ALIGNED_TYPEDEF(int16, aligned_int16, 2)'],['../a00364.html#ga07732da630b2deda428ce95c0ecaf3ff',1,'glm::GLM_ALIGNED_TYPEDEF(int32, aligned_int32, 4)'],['../a00364.html#ga1a8da2a8c51f69c07a2e7f473aa420f4',1,'glm::GLM_ALIGNED_TYPEDEF(int64, aligned_int64, 8)'],['../a00364.html#ga848aedf13e2d9738acf0bb482c590174',1,'glm::GLM_ALIGNED_TYPEDEF(int8_t, aligned_int8_t, 1)'],['../a00364.html#gafd2803d39049dd45a37a63931e25d943',1,'glm::GLM_ALIGNED_TYPEDEF(int16_t, aligned_int16_t, 2)'],['../a00364.html#gae553b33349d6da832cf0724f1e024094',1,'glm::GLM_ALIGNED_TYPEDEF(int32_t, aligned_int32_t, 4)'],['../a00364.html#ga16d223a2b3409e812e1d3bd87f0e9e5c',1,'glm::GLM_ALIGNED_TYPEDEF(int64_t, aligned_int64_t, 8)'],['../a00364.html#ga2de065d2ddfdb366bcd0febca79ae2ad',1,'glm::GLM_ALIGNED_TYPEDEF(i8, aligned_i8, 1)'],['../a00364.html#gabd786bdc20a11c8cb05c92c8212e28d3',1,'glm::GLM_ALIGNED_TYPEDEF(i16, aligned_i16, 2)'],['../a00364.html#gad4aefe56691cdb640c72f0d46d3fb532',1,'glm::GLM_ALIGNED_TYPEDEF(i32, aligned_i32, 4)'],['../a00364.html#ga8fe9745f7de24a8394518152ff9fccdc',1,'glm::GLM_ALIGNED_TYPEDEF(i64, aligned_i64, 8)'],['../a00364.html#gaaad735483450099f7f882d4e3a3569bd',1,'glm::GLM_ALIGNED_TYPEDEF(ivec1, aligned_ivec1, 4)'],['../a00364.html#gac7b6f823802edbd6edbaf70ea25bf068',1,'glm::GLM_ALIGNED_TYPEDEF(ivec2, aligned_ivec2, 8)'],['../a00364.html#ga3e235bcd2b8029613f25b8d40a2d3ef7',1,'glm::GLM_ALIGNED_TYPEDEF(ivec3, aligned_ivec3, 16)'],['../a00364.html#ga50d8a9523968c77f8325b4c9bfbff41e',1,'glm::GLM_ALIGNED_TYPEDEF(ivec4, aligned_ivec4, 16)'],['../a00364.html#ga9ec20fdfb729c702032da9378c79679f',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec1, aligned_i8vec1, 1)'],['../a00364.html#ga25b3fe1d9e8d0a5e86c1949c1acd8131',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec2, aligned_i8vec2, 2)'],['../a00364.html#ga2958f907719d94d8109b562540c910e2',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec3, aligned_i8vec3, 4)'],['../a00364.html#ga1fe6fc032a978f1c845fac9aa0668714',1,'glm::GLM_ALIGNED_TYPEDEF(i8vec4, aligned_i8vec4, 4)'],['../a00364.html#gaa4161e7a496dc96972254143fe873e55',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec1, aligned_i16vec1, 2)'],['../a00364.html#ga9d7cb211ccda69b1c22ddeeb0f3e7aba',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec2, aligned_i16vec2, 4)'],['../a00364.html#gaaee91dd2ab34423bcc11072ef6bd0f02',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec3, aligned_i16vec3, 8)'],['../a00364.html#ga49f047ccaa8b31fad9f26c67bf9b3510',1,'glm::GLM_ALIGNED_TYPEDEF(i16vec4, aligned_i16vec4, 8)'],['../a00364.html#ga904e9c2436bb099397c0823506a0771f',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec1, aligned_i32vec1, 4)'],['../a00364.html#gaf90651cf2f5e7ee2b11cfdc5a6749534',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec2, aligned_i32vec2, 8)'],['../a00364.html#ga7354a4ead8cb17868aec36b9c30d6010',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec3, aligned_i32vec3, 16)'],['../a00364.html#gad2ecbdea18732163e2636e27b37981ee',1,'glm::GLM_ALIGNED_TYPEDEF(i32vec4, aligned_i32vec4, 16)'],['../a00364.html#ga965b1c9aa1800e93d4abc2eb2b5afcbf',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec1, aligned_i64vec1, 8)'],['../a00364.html#ga1f9e9c2ea2768675dff9bae5cde2d829',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec2, aligned_i64vec2, 16)'],['../a00364.html#gad77c317b7d942322cd5be4c8127b3187',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec3, aligned_i64vec3, 32)'],['../a00364.html#ga716f8ea809bdb11b5b542d8b71aeb04f',1,'glm::GLM_ALIGNED_TYPEDEF(i64vec4, aligned_i64vec4, 32)'],['../a00364.html#gad46f8e9082d5878b1bc04f9c1471cdaa',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint8, aligned_lowp_uint8, 1)'],['../a00364.html#ga1246094581af624aca6c7499aaabf801',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint16, aligned_lowp_uint16, 2)'],['../a00364.html#ga7a5009a1d0196bbf21dd7518f61f0249',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint32, aligned_lowp_uint32, 4)'],['../a00364.html#ga45213fd18b3bb1df391671afefe4d1e7',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint64, aligned_lowp_uint64, 8)'],['../a00364.html#ga0ba26b4e3fd9ecbc25358efd68d8a4ca',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint8_t, aligned_lowp_uint8_t, 1)'],['../a00364.html#gaf2b58f5fb6d4ec8ce7b76221d3af43e1',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint16_t, aligned_lowp_uint16_t, 2)'],['../a00364.html#gadc246401847dcba155f0699425e49dcd',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint32_t, aligned_lowp_uint32_t, 4)'],['../a00364.html#gaace64bddf51a9def01498da9a94fb01c',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_uint64_t, aligned_lowp_uint64_t, 8)'],['../a00364.html#gad7bb97c29d664bd86ffb1bed4abc5534',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u8, aligned_lowp_u8, 1)'],['../a00364.html#ga404bba7785130e0b1384d695a9450b28',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u16, aligned_lowp_u16, 2)'],['../a00364.html#ga31ba41fd896257536958ec6080203d2a',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u32, aligned_lowp_u32, 4)'],['../a00364.html#gacca5f13627f57b3505676e40a6e43e5e',1,'glm::GLM_ALIGNED_TYPEDEF(lowp_u64, aligned_lowp_u64, 8)'],['../a00364.html#ga5faf1d3e70bf33174dd7f3d01d5b883b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint8, aligned_mediump_uint8, 1)'],['../a00364.html#ga727e2bf2c433bb3b0182605860a48363',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint16, aligned_mediump_uint16, 2)'],['../a00364.html#ga12566ca66d5962dadb4a5eb4c74e891e',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint32, aligned_mediump_uint32, 4)'],['../a00364.html#ga7b66a97a8acaa35c5a377b947318c6bc',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint64, aligned_mediump_uint64, 8)'],['../a00364.html#gaa9cde002439b74fa66120a16a9f55fcc',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint8_t, aligned_mediump_uint8_t, 1)'],['../a00364.html#ga1ca98c67f7d1e975f7c5202f1da1df1f',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint16_t, aligned_mediump_uint16_t, 2)'],['../a00364.html#ga1dc8bc6199d785f235576948d80a597c',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint32_t, aligned_mediump_uint32_t, 4)'],['../a00364.html#gad14a0f2ec93519682b73d70b8e401d81',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_uint64_t, aligned_mediump_uint64_t, 8)'],['../a00364.html#gada8b996eb6526dc1ead813bd49539d1b',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u8, aligned_mediump_u8, 1)'],['../a00364.html#ga28948f6bfb52b42deb9d73ae1ea8d8b0',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u16, aligned_mediump_u16, 2)'],['../a00364.html#gad6a7c0b5630f89d3f1c5b4ef2919bb4c',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u32, aligned_mediump_u32, 4)'],['../a00364.html#gaa0fc531cbaa972ac3a0b86d21ef4a7fa',1,'glm::GLM_ALIGNED_TYPEDEF(mediump_u64, aligned_mediump_u64, 8)'],['../a00364.html#ga0ee829f7b754b262bbfe6317c0d678ac',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint8, aligned_highp_uint8, 1)'],['../a00364.html#ga447848a817a626cae08cedc9778b331c',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint16, aligned_highp_uint16, 2)'],['../a00364.html#ga6027ae13b2734f542a6e7beee11b8820',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint32, aligned_highp_uint32, 4)'],['../a00364.html#ga2aca46c8608c95ef991ee4c332acde5f',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint64, aligned_highp_uint64, 8)'],['../a00364.html#gaff50b10dd1c48be324fdaffd18e2c7ea',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint8_t, aligned_highp_uint8_t, 1)'],['../a00364.html#ga9fc4421dbb833d5461e6d4e59dcfde55',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint16_t, aligned_highp_uint16_t, 2)'],['../a00364.html#ga329f1e2b94b33ba5e3918197030bcf03',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint32_t, aligned_highp_uint32_t, 4)'],['../a00364.html#ga71e646f7e301aa422328194162c9c998',1,'glm::GLM_ALIGNED_TYPEDEF(highp_uint64_t, aligned_highp_uint64_t, 8)'],['../a00364.html#ga8942e09f479489441a7a5004c6d8cb66',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u8, aligned_highp_u8, 1)'],['../a00364.html#gaab32497d6e4db16ee439dbedd64c5865',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u16, aligned_highp_u16, 2)'],['../a00364.html#gaaadbb34952eca8e3d7fe122c3e167742',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u32, aligned_highp_u32, 4)'],['../a00364.html#ga92024d27c74a3650afb55ec8e024ed25',1,'glm::GLM_ALIGNED_TYPEDEF(highp_u64, aligned_highp_u64, 8)'],['../a00364.html#gabde1d0b4072df35453db76075ab896a6',1,'glm::GLM_ALIGNED_TYPEDEF(uint8, aligned_uint8, 1)'],['../a00364.html#ga06c296c9e398b294c8c9dd2a7693dcbb',1,'glm::GLM_ALIGNED_TYPEDEF(uint16, aligned_uint16, 2)'],['../a00364.html#gacf1744488c96ebd33c9f36ad33b2010a',1,'glm::GLM_ALIGNED_TYPEDEF(uint32, aligned_uint32, 4)'],['../a00364.html#ga3328061a64c20ba59d5f9da24c2cd059',1,'glm::GLM_ALIGNED_TYPEDEF(uint64, aligned_uint64, 8)'],['../a00364.html#gaf6ced36f13bae57f377bafa6f5fcc299',1,'glm::GLM_ALIGNED_TYPEDEF(uint8_t, aligned_uint8_t, 1)'],['../a00364.html#gafbc7fb7847bfc78a339d1d371c915c73',1,'glm::GLM_ALIGNED_TYPEDEF(uint16_t, aligned_uint16_t, 2)'],['../a00364.html#gaa86bc56a73fd8120b1121b5f5e6245ae',1,'glm::GLM_ALIGNED_TYPEDEF(uint32_t, aligned_uint32_t, 4)'],['../a00364.html#ga68c0b9e669060d0eb5ab8c3ddeb483d8',1,'glm::GLM_ALIGNED_TYPEDEF(uint64_t, aligned_uint64_t, 8)'],['../a00364.html#ga4f3bab577daf3343e99cc005134bce86',1,'glm::GLM_ALIGNED_TYPEDEF(u8, aligned_u8, 1)'],['../a00364.html#ga13a2391339d0790d43b76d00a7611c4f',1,'glm::GLM_ALIGNED_TYPEDEF(u16, aligned_u16, 2)'],['../a00364.html#ga197570e03acbc3d18ab698e342971e8f',1,'glm::GLM_ALIGNED_TYPEDEF(u32, aligned_u32, 4)'],['../a00364.html#ga0f033b21e145a1faa32c62ede5878993',1,'glm::GLM_ALIGNED_TYPEDEF(u64, aligned_u64, 8)'],['../a00364.html#ga509af83527f5cd512e9a7873590663aa',1,'glm::GLM_ALIGNED_TYPEDEF(uvec1, aligned_uvec1, 4)'],['../a00364.html#ga94e86186978c502c6dc0c0d9c4a30679',1,'glm::GLM_ALIGNED_TYPEDEF(uvec2, aligned_uvec2, 8)'],['../a00364.html#ga5cec574686a7f3c8ed24bb195c5e2d0a',1,'glm::GLM_ALIGNED_TYPEDEF(uvec3, aligned_uvec3, 16)'],['../a00364.html#ga47edfdcee9c89b1ebdaf20450323b1d4',1,'glm::GLM_ALIGNED_TYPEDEF(uvec4, aligned_uvec4, 16)'],['../a00364.html#ga5611d6718e3a00096918a64192e73a45',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec1, aligned_u8vec1, 1)'],['../a00364.html#ga19837e6f72b60d994a805ef564c6c326',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec2, aligned_u8vec2, 2)'],['../a00364.html#ga9740cf8e34f068049b42a2753f9601c2',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec3, aligned_u8vec3, 4)'],['../a00364.html#ga8b8588bb221448f5541a858903822a57',1,'glm::GLM_ALIGNED_TYPEDEF(u8vec4, aligned_u8vec4, 4)'],['../a00364.html#ga991abe990c16de26b2129d6bc2f4c051',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec1, aligned_u16vec1, 2)'],['../a00364.html#gac01bb9fc32a1cd76c2b80d030f71df4c',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec2, aligned_u16vec2, 4)'],['../a00364.html#ga09540dbca093793a36a8997e0d4bee77',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec3, aligned_u16vec3, 8)'],['../a00364.html#gaecafb5996f5a44f57e34d29c8670741e',1,'glm::GLM_ALIGNED_TYPEDEF(u16vec4, aligned_u16vec4, 8)'],['../a00364.html#gac6b161a04d2f8408fe1c9d857e8daac0',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec1, aligned_u32vec1, 4)'],['../a00364.html#ga1fa0dfc8feb0fa17dab2acd43e05342b',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec2, aligned_u32vec2, 8)'],['../a00364.html#ga0019500abbfa9c66eff61ca75eaaed94',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec3, aligned_u32vec3, 16)'],['../a00364.html#ga14fd29d01dae7b08a04e9facbcc18824',1,'glm::GLM_ALIGNED_TYPEDEF(u32vec4, aligned_u32vec4, 16)'],['../a00364.html#gab253845f534a67136f9619843cade903',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec1, aligned_u64vec1, 8)'],['../a00364.html#ga929427a7627940cdf3304f9c050b677d',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec2, aligned_u64vec2, 16)'],['../a00364.html#gae373b6c04fdf9879f33d63e6949c037e',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec3, aligned_u64vec3, 32)'],['../a00364.html#ga53a8a03dca2015baec4584f45b8e9cdc',1,'glm::GLM_ALIGNED_TYPEDEF(u64vec4, aligned_u64vec4, 32)'],['../a00364.html#gab3301bae94ef5bf59fbdd9a24e7d2a01',1,'glm::GLM_ALIGNED_TYPEDEF(float32, aligned_float32, 4)'],['../a00364.html#gada9b0bea273d3ae0286f891533b9568f',1,'glm::GLM_ALIGNED_TYPEDEF(float32_t, aligned_float32_t, 4)'],['../a00364.html#gadbce23b9f23d77bb3884e289a574ebd5',1,'glm::GLM_ALIGNED_TYPEDEF(float32, aligned_f32, 4)'],['../a00364.html#ga75930684ff2233171c573e603f216162',1,'glm::GLM_ALIGNED_TYPEDEF(float64, aligned_float64, 8)'],['../a00364.html#ga6e3a2d83b131336219a0f4c7cbba2a48',1,'glm::GLM_ALIGNED_TYPEDEF(float64_t, aligned_float64_t, 8)'],['../a00364.html#gaa4deaa0dea930c393d55e7a4352b0a20',1,'glm::GLM_ALIGNED_TYPEDEF(float64, aligned_f64, 8)'],['../a00364.html#ga81bc497b2bfc6f80bab690c6ee28f0f9',1,'glm::GLM_ALIGNED_TYPEDEF(vec1, aligned_vec1, 4)'],['../a00364.html#gada3e8f783e9d4b90006695a16c39d4d4',1,'glm::GLM_ALIGNED_TYPEDEF(vec2, aligned_vec2, 8)'],['../a00364.html#gab8d081fac3a38d6f55fa552f32168d32',1,'glm::GLM_ALIGNED_TYPEDEF(vec3, aligned_vec3, 16)'],['../a00364.html#ga12fe7b9769c964c5b48dcfd8b7f40198',1,'glm::GLM_ALIGNED_TYPEDEF(vec4, aligned_vec4, 16)'],['../a00364.html#gaefab04611c7f8fe1fd9be3071efea6cc',1,'glm::GLM_ALIGNED_TYPEDEF(fvec1, aligned_fvec1, 4)'],['../a00364.html#ga2543c05ba19b3bd19d45b1227390c5b4',1,'glm::GLM_ALIGNED_TYPEDEF(fvec2, aligned_fvec2, 8)'],['../a00364.html#ga009afd727fd657ef33a18754d6d28f60',1,'glm::GLM_ALIGNED_TYPEDEF(fvec3, aligned_fvec3, 16)'],['../a00364.html#ga2f26177e74bfb301a3d0e02ec3c3ef53',1,'glm::GLM_ALIGNED_TYPEDEF(fvec4, aligned_fvec4, 16)'],['../a00364.html#ga309f495a1d6b75ddf195b674b65cb1e4',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec1, aligned_f32vec1, 4)'],['../a00364.html#ga5e185865a2217d0cd47187644683a8c3',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec2, aligned_f32vec2, 8)'],['../a00364.html#gade4458b27b039b9ca34f8ec049f3115a',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec3, aligned_f32vec3, 16)'],['../a00364.html#ga2e8a12c5e6a9c4ae4ddaeda1d1cffe3b',1,'glm::GLM_ALIGNED_TYPEDEF(f32vec4, aligned_f32vec4, 16)'],['../a00364.html#ga3e0f35fa0c626285a8bad41707e7316c',1,'glm::GLM_ALIGNED_TYPEDEF(dvec1, aligned_dvec1, 8)'],['../a00364.html#ga78bfec2f185d1d365ea0a9ef1e3d45b8',1,'glm::GLM_ALIGNED_TYPEDEF(dvec2, aligned_dvec2, 16)'],['../a00364.html#ga01fe6fee6db5df580b6724a7e681f069',1,'glm::GLM_ALIGNED_TYPEDEF(dvec3, aligned_dvec3, 32)'],['../a00364.html#ga687d5b8f551d5af32425c0b2fba15e99',1,'glm::GLM_ALIGNED_TYPEDEF(dvec4, aligned_dvec4, 32)'],['../a00364.html#ga8e842371d46842ff8f1813419ba49d0f',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec1, aligned_f64vec1, 8)'],['../a00364.html#ga32814aa0f19316b43134fc25f2aad2b9',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec2, aligned_f64vec2, 16)'],['../a00364.html#gaf3d3bbc1e93909b689123b085e177a14',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec3, aligned_f64vec3, 32)'],['../a00364.html#ga804c654cead1139bd250f90f9bb01fad',1,'glm::GLM_ALIGNED_TYPEDEF(f64vec4, aligned_f64vec4, 32)'],['../a00364.html#gacce4ac532880b8c7469d3c31974420a1',1,'glm::GLM_ALIGNED_TYPEDEF(mat2, aligned_mat2, 16)'],['../a00364.html#ga0498e0e249a6faddaf96aa55d7f81c3b',1,'glm::GLM_ALIGNED_TYPEDEF(mat3, aligned_mat3, 16)'],['../a00364.html#ga7435d87de82a0d652b35dc5b9cc718d5',1,'glm::GLM_ALIGNED_TYPEDEF(mat4, aligned_mat4, 16)'],['../a00364.html#ga719da577361541a4c43a2dd1d0e361e1',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2, 16)'],['../a00364.html#ga6e7ee4f541e1d7db66cd1a224caacafb',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3, 16)'],['../a00364.html#gae5d672d359f2a39f63f98c7975057486',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4, 16)'],['../a00364.html#ga6fa2df037dbfc5fe8c8e0b4db8a34953',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x2, aligned_fmat2x2, 16)'],['../a00364.html#ga0743b4f4f69a3227b82ff58f6abbad62',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x3, aligned_fmat2x3, 16)'],['../a00364.html#ga1a76b325fdf70f961d835edd182c63dd',1,'glm::GLM_ALIGNED_TYPEDEF(fmat2x4, aligned_fmat2x4, 16)'],['../a00364.html#ga4b4e181cd041ba28c3163e7b8074aef0',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x2, aligned_fmat3x2, 16)'],['../a00364.html#ga27b13f465abc8a40705698145e222c3f',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x3, aligned_fmat3x3, 16)'],['../a00364.html#ga2608d19cc275830a6f8c0b6405625a4f',1,'glm::GLM_ALIGNED_TYPEDEF(fmat3x4, aligned_fmat3x4, 16)'],['../a00364.html#ga93f09768241358a287c4cca538f1f7e7',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x2, aligned_fmat4x2, 16)'],['../a00364.html#ga7c117e3ecca089e10247b1d41d88aff9',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x3, aligned_fmat4x3, 16)'],['../a00364.html#ga07c75cd04ba42dc37fa3e105f89455c5',1,'glm::GLM_ALIGNED_TYPEDEF(fmat4x4, aligned_fmat4x4, 16)'],['../a00364.html#ga65ff0d690a34a4d7f46f9b2eb51525ee',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2, 16)'],['../a00364.html#gadd8ddbe2bf65ccede865ba2f510176dc',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3, 16)'],['../a00364.html#gaf18dbff14bf13d3ff540c517659ec045',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4, 16)'],['../a00364.html#ga66339f6139bf7ff19e245beb33f61cc8',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x2, aligned_f32mat2x2, 16)'],['../a00364.html#ga1558a48b3934011b52612809f443e46d',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x3, aligned_f32mat2x3, 16)'],['../a00364.html#gaa52e5732daa62851627021ad551c7680',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat2x4, aligned_f32mat2x4, 16)'],['../a00364.html#gac09663c42566bcb58d23c6781ac4e85a',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x2, aligned_f32mat3x2, 16)'],['../a00364.html#ga3f510999e59e1b309113e1d561162b29',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x3, aligned_f32mat3x3, 16)'],['../a00364.html#ga2c9c94f0c89cd71ce56551db6cf4aaec',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat3x4, aligned_f32mat3x4, 16)'],['../a00364.html#ga99ce8274c750fbfdf0e70c95946a2875',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x2, aligned_f32mat4x2, 16)'],['../a00364.html#ga9476ef66790239df53dbe66f3989c3b5',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x3, aligned_f32mat4x3, 16)'],['../a00364.html#gacc429b3b0b49921e12713b6d31e14e1d',1,'glm::GLM_ALIGNED_TYPEDEF(f32mat4x4, aligned_f32mat4x4, 16)'],['../a00364.html#ga88f6c6fa06e6e64479763e69444669cf',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2, 32)'],['../a00364.html#gaae8e4639c991e64754145ab8e4c32083',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3, 32)'],['../a00364.html#ga6e9094f3feb3b5b49d0f83683a101fde',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4, 32)'],['../a00364.html#gadbd2c639c03de1c3e9591b5a39f65559',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x2, aligned_f64mat2x2, 32)'],['../a00364.html#gab059d7b9fe2094acc563b7223987499f',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x3, aligned_f64mat2x3, 32)'],['../a00364.html#gabbc811d1c52ed2b8cfcaff1378f75c69',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat2x4, aligned_f64mat2x4, 32)'],['../a00364.html#ga9ddf5212777734d2fd841a84439f3bdf',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x2, aligned_f64mat3x2, 32)'],['../a00364.html#gad1dda32ed09f94bfcf0a7d8edfb6cf13',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x3, aligned_f64mat3x3, 32)'],['../a00364.html#ga5875e0fa72f07e271e7931811cbbf31a',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat3x4, aligned_f64mat3x4, 32)'],['../a00364.html#ga41e82cd6ac07f912ba2a2d45799dcf0d',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x2, aligned_f64mat4x2, 32)'],['../a00364.html#ga0892638d6ba773043b3d63d1d092622e',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x3, aligned_f64mat4x3, 32)'],['../a00364.html#ga912a16432608b822f1e13607529934c1',1,'glm::GLM_ALIGNED_TYPEDEF(f64mat4x4, aligned_f64mat4x4, 32)'],['../a00364.html#gafd945a8ea86b042aba410e0560df9a3d',1,'glm::GLM_ALIGNED_TYPEDEF(quat, aligned_quat, 16)'],['../a00364.html#ga19c2ba545d1f2f36bcb7b60c9a228622',1,'glm::GLM_ALIGNED_TYPEDEF(quat, aligned_fquat, 16)'],['../a00364.html#gaabc28c84a3288b697605d4688686f9a9',1,'glm::GLM_ALIGNED_TYPEDEF(dquat, aligned_dquat, 32)'],['../a00364.html#ga1ed8aeb5ca67fade269a46105f1bf273',1,'glm::GLM_ALIGNED_TYPEDEF(f32quat, aligned_f32quat, 16)'],['../a00364.html#ga95cc03b8b475993fa50e05e38e203303',1,'glm::GLM_ALIGNED_TYPEDEF(f64quat, aligned_f64quat, 32)']]], + ['golden_5fratio',['golden_ratio',['../a00290.html#ga748cf8642830657c5b7eae04d0a80899',1,'glm']]], + ['greaterthan',['greaterThan',['../a00299.html#ga8f7fa76e06c417b757ddfd438f3f677b',1,'glm::greaterThan(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gadfdb8ea82deca869ddc7e63ea5a63ae4',1,'glm::greaterThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['greaterthanequal',['greaterThanEqual',['../a00299.html#ga388cbeba987dae7b5937f742efa49a5a',1,'glm::greaterThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#ga859975f538940f8d18fe62f916b9abd7',1,'glm::greaterThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]] +]; diff --git a/external/glm/doc/api/search/functions_7.html b/external/glm-0.9.9.8/doc/api/search/functions_7.html similarity index 97% rename from external/glm/doc/api/search/functions_7.html rename to external/glm-0.9.9.8/doc/api/search/functions_7.html index 3857329..50a50e6 100644 --- a/external/glm/doc/api/search/functions_7.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_7.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_7.js b/external/glm-0.9.9.8/doc/api/search/functions_7.js new file mode 100644 index 0000000..b7dbf9e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_7.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['half_5fpi',['half_pi',['../a00290.html#ga0c36b41d462e45641faf7d7938948bac',1,'glm']]], + ['hermite',['hermite',['../a00358.html#gaa69e143f6374d32f934a8edeaa50bac9',1,'glm']]], + ['highestbitvalue',['highestBitValue',['../a00309.html#ga0dcc8fe7c3d3ad60dea409281efa3d05',1,'glm::highestBitValue(genIUType Value)'],['../a00309.html#ga898ef075ccf809a1e480faab48fe96bf',1,'glm::highestBitValue(vec< L, T, Q > const &value)']]], + ['hsvcolor',['hsvColor',['../a00312.html#ga789802bec2d4fe0f9741c731b4a8a7d8',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_8.html b/external/glm-0.9.9.8/doc/api/search/functions_8.html similarity index 97% rename from external/glm/doc/api/search/functions_8.html rename to external/glm-0.9.9.8/doc/api/search/functions_8.html index 088e437..302e547 100644 --- a/external/glm/doc/api/search/functions_8.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_8.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_8.js b/external/glm-0.9.9.8/doc/api/search/functions_8.js new file mode 100644 index 0000000..31160b5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_8.js @@ -0,0 +1,31 @@ +var searchData= +[ + ['identity',['identity',['../a00247.html#ga81696f2b8d1db02ea1aff8da8f269314',1,'glm']]], + ['imulextended',['imulExtended',['../a00370.html#gac0c510a70e852f57594a9141848642e3',1,'glm']]], + ['infiniteperspective',['infinitePerspective',['../a00243.html#ga44fa38a18349450325cae2661bb115ca',1,'glm']]], + ['infiniteperspectivelh',['infinitePerspectiveLH',['../a00243.html#ga3201b30f5b3ea0f933246d87bfb992a9',1,'glm']]], + ['infiniteperspectiverh',['infinitePerspectiveRH',['../a00243.html#ga99672ffe5714ef478dab2437255fe7e1',1,'glm']]], + ['intbitstofloat',['intBitsToFloat',['../a00241.html#ga4fb7c21c2dce064b26fd9ccdaf9adcd4',1,'glm::intBitsToFloat(int const &v)'],['../a00241.html#ga7a0a8291a1cf3e1c2aee33030a1bd7b0',1,'glm::intBitsToFloat(vec< L, int, Q > const &v)']]], + ['intermediate',['intermediate',['../a00352.html#gacc5cd5f3e78de61d141c2355417424de',1,'glm']]], + ['interpolate',['interpolate',['../a00337.html#ga4e67863d150724b10c1ac00972dc958c',1,'glm']]], + ['intersectlinesphere',['intersectLineSphere',['../a00331.html#ga9c68139f3d8a4f3d7fe45f9dbc0de5b7',1,'glm']]], + ['intersectlinetriangle',['intersectLineTriangle',['../a00331.html#ga9d29b9b3acb504d43986502f42740df4',1,'glm']]], + ['intersectrayplane',['intersectRayPlane',['../a00331.html#gad3697a9700ea379739a667ea02573488',1,'glm']]], + ['intersectraysphere',['intersectRaySphere',['../a00331.html#gac88f8cd84c4bcb5b947d56acbbcfa56e',1,'glm::intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, typename genType::value_type const sphereRadiusSquered, typename genType::value_type &intersectionDistance)'],['../a00331.html#gad28c00515b823b579c608aafa1100c1d',1,'glm::intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, const typename genType::value_type sphereRadius, genType &intersectionPosition, genType &intersectionNormal)']]], + ['intersectraytriangle',['intersectRayTriangle',['../a00331.html#ga65bf2c594482f04881c36bc761f9e946',1,'glm']]], + ['inverse',['inverse',['../a00248.html#gab41da854ae678e23e114b598cbca4065',1,'glm::inverse(qua< T, Q > const &q)'],['../a00317.html#ga070f521a953f6461af4ab4cf8ccbf27e',1,'glm::inverse(tdualquat< T, Q > const &q)'],['../a00371.html#gaed509fe8129b01e4f20a6d0de5690091',1,'glm::inverse(mat< C, R, T, Q > const &m)']]], + ['inversesqrt',['inversesqrt',['../a00242.html#ga523dd6bd0ad9f75ae2d24c8e4b017b7a',1,'glm']]], + ['inversetranspose',['inverseTranspose',['../a00295.html#gab213cd0e3ead5f316d583f99d6312008',1,'glm']]], + ['iround',['iround',['../a00292.html#ga57824268ebe13a922f1d69a5d37f637f',1,'glm']]], + ['iscompnull',['isCompNull',['../a00368.html#gaf6ec1688eab7442fe96fe4941d5d4e76',1,'glm']]], + ['isdenormal',['isdenormal',['../a00314.html#ga74aa7c7462245d83bd5a9edf9c6c2d91',1,'glm']]], + ['isfinite',['isfinite',['../a00315.html#gaf4b04dcd3526996d68c1bfe17bfc8657',1,'glm::isfinite(genType const &x)'],['../a00315.html#gac3b12b8ac3014418fe53c299478b6603',1,'glm::isfinite(const vec< 1, T, Q > &x)'],['../a00315.html#ga8e76dc3e406ce6a4155c2b12a2e4b084',1,'glm::isfinite(const vec< 2, T, Q > &x)'],['../a00315.html#ga929ef27f896d902c1771a2e5e150fc97',1,'glm::isfinite(const vec< 3, T, Q > &x)'],['../a00315.html#ga19925badbe10ce61df1d0de00be0b5ad',1,'glm::isfinite(const vec< 4, T, Q > &x)']]], + ['isidentity',['isIdentity',['../a00340.html#gaee935d145581c82e82b154ccfd78ad91',1,'glm']]], + ['isinf',['isinf',['../a00241.html#ga2885587c23a106301f20443896365b62',1,'glm::isinf(vec< L, T, Q > const &x)'],['../a00248.html#ga45722741ea266b4e861938b365c5f362',1,'glm::isinf(qua< T, Q > const &x)']]], + ['ismultiple',['isMultiple',['../a00261.html#gaec593d33956a8fe43f78fccc63ddde9a',1,'glm::isMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#ga354caf634ef333d9cb4844407416256a',1,'glm::isMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#gabb4360e38c0943d8981ba965dead519d',1,'glm::isMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['isnan',['isnan',['../a00241.html#ga29ef934c00306490de837b4746b4e14d',1,'glm::isnan(vec< L, T, Q > const &x)'],['../a00248.html#ga1bb55f8963616502e96dc564384d8a03',1,'glm::isnan(qua< T, Q > const &x)']]], + ['isnormalized',['isNormalized',['../a00340.html#gae785af56f47ce220a1609f7f84aa077a',1,'glm::isNormalized(mat< 2, 2, T, Q > const &m, T const &epsilon)'],['../a00340.html#gaa068311695f28f5f555f5f746a6a66fb',1,'glm::isNormalized(mat< 3, 3, T, Q > const &m, T const &epsilon)'],['../a00340.html#ga4d9bb4d0465df49fedfad79adc6ce4ad',1,'glm::isNormalized(mat< 4, 4, T, Q > const &m, T const &epsilon)'],['../a00368.html#gac3c974f459fd75453134fad7ae89a39e',1,'glm::isNormalized(vec< L, T, Q > const &v, T const &epsilon)']]], + ['isnull',['isNull',['../a00340.html#ga9790ec222ce948c0ff0d8ce927340dba',1,'glm::isNull(mat< 2, 2, T, Q > const &m, T const &epsilon)'],['../a00340.html#gae14501c6b14ccda6014cc5350080103d',1,'glm::isNull(mat< 3, 3, T, Q > const &m, T const &epsilon)'],['../a00340.html#ga2b98bb30a9fefa7cdea5f1dcddba677b',1,'glm::isNull(mat< 4, 4, T, Q > const &m, T const &epsilon)'],['../a00368.html#gab4a3637dbcb4bb42dc55caea7a1e0495',1,'glm::isNull(vec< L, T, Q > const &v, T const &epsilon)']]], + ['isorthogonal',['isOrthogonal',['../a00340.html#ga58f3289f74dcab653387dd78ad93ca40',1,'glm']]], + ['ispoweroftwo',['isPowerOfTwo',['../a00261.html#gadf491730354aa7da67fbe23d4d688763',1,'glm::isPowerOfTwo(genIUType v)'],['../a00274.html#gabf2b61ded7049bcb13e25164f832a290',1,'glm::isPowerOfTwo(vec< L, T, Q > const &v)']]] +]; diff --git a/external/glm/doc/api/search/functions_9.html b/external/glm-0.9.9.8/doc/api/search/functions_9.html similarity index 97% rename from external/glm/doc/api/search/functions_9.html rename to external/glm-0.9.9.8/doc/api/search/functions_9.html index 61de44a..e636fc8 100644 --- a/external/glm/doc/api/search/functions_9.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_9.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_9.js b/external/glm-0.9.9.8/doc/api/search/functions_9.js new file mode 100644 index 0000000..abc477d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_9.js @@ -0,0 +1,28 @@ +var searchData= +[ + ['l1norm',['l1Norm',['../a00343.html#gae2fc0b2aa967bebfd6a244700bff6997',1,'glm::l1Norm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#ga1a7491e2037ceeb37f83ce41addfc0be',1,'glm::l1Norm(vec< 3, T, Q > const &v)']]], + ['l2norm',['l2Norm',['../a00343.html#ga41340b2ef40a9307ab0f137181565168',1,'glm::l2Norm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#gae288bde8f0e41fb4ed62e65137b18cba',1,'glm::l2Norm(vec< 3, T, Q > const &x)']]], + ['ldexp',['ldexp',['../a00241.html#gac3010e0a0c35a1b514540f2fb579c58c',1,'glm']]], + ['lefthanded',['leftHanded',['../a00328.html#ga6f1bad193b9a3b048543d1935cf04dd3',1,'glm']]], + ['length',['length',['../a00254.html#gab703732449be6c7199369b3f9a91ed38',1,'glm::length(qua< T, Q > const &q)'],['../a00279.html#ga0cdabbb000834d994a1d6dc56f8f5263',1,'glm::length(vec< L, T, Q > const &x)']]], + ['length2',['length2',['../a00343.html#ga8d1789651050adb7024917984b41c3de',1,'glm::length2(vec< L, T, Q > const &x)'],['../a00352.html#ga58a609b1b8ab965f5df2702e8ca4e75b',1,'glm::length2(qua< T, Q > const &q)']]], + ['lerp',['lerp',['../a00248.html#ga6033dc0741051fa463a0a147ba29f293',1,'glm::lerp(qua< T, Q > const &x, qua< T, Q > const &y, T a)'],['../a00315.html#ga5494ba3a95ea6594c86fc75236886864',1,'glm::lerp(T x, T y, T a)'],['../a00315.html#gaa551c0a0e16d2d4608e49f7696df897f',1,'glm::lerp(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, T a)'],['../a00315.html#ga44a8b5fd776320f1713413dec959b32a',1,'glm::lerp(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, T a)'],['../a00315.html#ga89ac8e000199292ec7875519d27e214b',1,'glm::lerp(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, T a)'],['../a00315.html#gaf68de5baf72d16135368b8ef4f841604',1,'glm::lerp(const vec< 2, T, Q > &x, const vec< 2, T, Q > &y, const vec< 2, T, Q > &a)'],['../a00315.html#ga4ae1a616c8540a2649eab8e0cd051bb3',1,'glm::lerp(const vec< 3, T, Q > &x, const vec< 3, T, Q > &y, const vec< 3, T, Q > &a)'],['../a00315.html#gab5477ab69c40de4db5d58d3359529724',1,'glm::lerp(const vec< 4, T, Q > &x, const vec< 4, T, Q > &y, const vec< 4, T, Q > &a)'],['../a00317.html#gace8380112d16d33f520839cb35a4d173',1,'glm::lerp(tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)']]], + ['lessthan',['lessThan',['../a00299.html#gad091a2d22c8acfebfa92bcfca1dfe9c4',1,'glm::lessThan(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gae90ed1592c395f93e3f3dfce6b2f39c6',1,'glm::lessThan(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['lessthanequal',['lessThanEqual',['../a00299.html#gac00012eea281800d2403f4ea8443134d',1,'glm::lessThanEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00374.html#gab0bdafc019d227257ff73fb5bcca1718',1,'glm::lessThanEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]], + ['levels',['levels',['../a00361.html#gaa8c377f4e63486db4fa872d77880da73',1,'glm']]], + ['lineargradient',['linearGradient',['../a00327.html#ga849241df1e55129b8ce9476200307419',1,'glm']]], + ['linearinterpolation',['linearInterpolation',['../a00318.html#ga290c3e47cb0a49f2e8abe90b1872b649',1,'glm']]], + ['linearrand',['linearRand',['../a00300.html#ga04e241ab88374a477a2c2ceadd2fa03d',1,'glm::linearRand(genType Min, genType Max)'],['../a00300.html#ga94731130c298a9ff5e5025fdee6d97a0',1,'glm::linearRand(vec< L, T, Q > const &Min, vec< L, T, Q > const &Max)']]], + ['lmaxnorm',['lMaxNorm',['../a00343.html#gad58a8231fc32e38104a9e1c4d3c0cb64',1,'glm::lMaxNorm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)'],['../a00343.html#ga6968a324837a8e899396d44de23d5aae',1,'glm::lMaxNorm(vec< 3, T, Q > const &x)']]], + ['ln_5fln_5ftwo',['ln_ln_two',['../a00290.html#gaca94292c839ed31a405ab7a81ae7e850',1,'glm']]], + ['ln_5ften',['ln_ten',['../a00290.html#gaf97ebc6c059ffd788e6c4946f71ef66c',1,'glm']]], + ['ln_5ftwo',['ln_two',['../a00290.html#ga24f4d27765678116f41a2f336ab7975c',1,'glm']]], + ['log',['log',['../a00242.html#ga918c9f3fd086ce20e6760c903bd30fa9',1,'glm::log(vec< L, T, Q > const &v)'],['../a00256.html#gaa5f7b20e296671b16ce25a2ab7ad5473',1,'glm::log(qua< T, Q > const &q)'],['../a00333.html#ga60a7b0a401da660869946b2b77c710c9',1,'glm::log(genType const &x, genType const &base)']]], + ['log2',['log2',['../a00242.html#ga82831c7d9cca777cebedfe03a19c8d75',1,'glm::log2(vec< L, T, Q > const &v)'],['../a00292.html#ga9bd682e74bfacb005c735305207ec417',1,'glm::log2(genIUType x)']]], + ['lookat',['lookAt',['../a00247.html#gaa64aa951a0e99136bba9008d2b59c78e',1,'glm']]], + ['lookatlh',['lookAtLH',['../a00247.html#gab2c09e25b0a16d3a9d89cc85bbae41b0',1,'glm']]], + ['lookatrh',['lookAtRH',['../a00247.html#gacfa12c8889c754846bc20c65d9b5c701',1,'glm']]], + ['lowestbitvalue',['lowestBitValue',['../a00309.html#ga2ff6568089f3a9b67f5c30918855fc6f',1,'glm']]], + ['luminosity',['luminosity',['../a00312.html#gad028e0a4f1a9c812b39439b746295b34',1,'glm']]], + ['lxnorm',['lxNorm',['../a00343.html#gacad23d30497eb16f67709f2375d1f66a',1,'glm::lxNorm(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, unsigned int Depth)'],['../a00343.html#gac61b6d81d796d6eb4d4183396a19ab91',1,'glm::lxNorm(vec< 3, T, Q > const &x, unsigned int Depth)']]] +]; diff --git a/external/glm/doc/api/search/functions_a.html b/external/glm-0.9.9.8/doc/api/search/functions_a.html similarity index 97% rename from external/glm/doc/api/search/functions_a.html rename to external/glm-0.9.9.8/doc/api/search/functions_a.html index a46b662..1d68dba 100644 --- a/external/glm/doc/api/search/functions_a.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_a.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_a.js b/external/glm-0.9.9.8/doc/api/search/functions_a.js new file mode 100644 index 0000000..b6d527e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_a.js @@ -0,0 +1,36 @@ +var searchData= +[ + ['make_5fmat2',['make_mat2',['../a00305.html#ga04409e74dc3da251d2501acf5b4b546c',1,'glm']]], + ['make_5fmat2x2',['make_mat2x2',['../a00305.html#gae49e1c7bcd5abec74d1c34155031f663',1,'glm']]], + ['make_5fmat2x3',['make_mat2x3',['../a00305.html#ga21982104164789cf8985483aaefc25e8',1,'glm']]], + ['make_5fmat2x4',['make_mat2x4',['../a00305.html#ga078b862c90b0e9a79ed43a58997d8388',1,'glm']]], + ['make_5fmat3',['make_mat3',['../a00305.html#ga611ee7c4d4cadfc83a8fa8e1d10a170f',1,'glm']]], + ['make_5fmat3x2',['make_mat3x2',['../a00305.html#ga27a24e121dc39e6857620e0f85b6e1a8',1,'glm']]], + ['make_5fmat3x3',['make_mat3x3',['../a00305.html#gaf2e8337b15c3362aaeb6e5849e1c0536',1,'glm']]], + ['make_5fmat3x4',['make_mat3x4',['../a00305.html#ga05dd66232aedb993e3b8e7b35eaf932b',1,'glm']]], + ['make_5fmat4',['make_mat4',['../a00305.html#gae7bcedb710d1446c87fd1fc93ed8ee9a',1,'glm']]], + ['make_5fmat4x2',['make_mat4x2',['../a00305.html#ga8b34c9b25bf3310d8ff9c828c7e2d97c',1,'glm']]], + ['make_5fmat4x3',['make_mat4x3',['../a00305.html#ga0330bf6640092d7985fac92927bbd42b',1,'glm']]], + ['make_5fmat4x4',['make_mat4x4',['../a00305.html#ga8f084be30e404844bfbb4a551ac2728c',1,'glm']]], + ['make_5fquat',['make_quat',['../a00305.html#ga58110d7d81cf7d029e2bab7f8cd9b246',1,'glm']]], + ['make_5fvec1',['make_vec1',['../a00305.html#ga4135f03f3049f0a4eb76545c4967957c',1,'glm::make_vec1(vec< 1, T, Q > const &v)'],['../a00305.html#ga13c92b81e55f201b052a6404d57da220',1,'glm::make_vec1(vec< 2, T, Q > const &v)'],['../a00305.html#ga3c23cc74086d361e22bbd5e91a334e03',1,'glm::make_vec1(vec< 3, T, Q > const &v)'],['../a00305.html#ga6af06bb60d64ca8bcd169e3c93bc2419',1,'glm::make_vec1(vec< 4, T, Q > const &v)']]], + ['make_5fvec2',['make_vec2',['../a00305.html#ga8476d0e6f1b9b4a6193cc25f59d8a896',1,'glm::make_vec2(vec< 1, T, Q > const &v)'],['../a00305.html#gae54bd325a08ad26edf63929201adebc7',1,'glm::make_vec2(vec< 2, T, Q > const &v)'],['../a00305.html#ga0084fea4694cf47276e9cccbe7b1015a',1,'glm::make_vec2(vec< 3, T, Q > const &v)'],['../a00305.html#ga2b81f71f3a222fe5bba81e3983751249',1,'glm::make_vec2(vec< 4, T, Q > const &v)'],['../a00305.html#ga81253cf7b0ebfbb1e70540c5774e6824',1,'glm::make_vec2(T const *const ptr)']]], + ['make_5fvec3',['make_vec3',['../a00305.html#ga9147e4b3a5d0f4772edfbfd179d7ea0b',1,'glm::make_vec3(vec< 1, T, Q > const &v)'],['../a00305.html#ga482b60a842a5b154d3eed392417a9511',1,'glm::make_vec3(vec< 2, T, Q > const &v)'],['../a00305.html#gacd57046034df557b8b1c457f58613623',1,'glm::make_vec3(vec< 3, T, Q > const &v)'],['../a00305.html#ga8b589ed7d41a298b516d2a69169248f1',1,'glm::make_vec3(vec< 4, T, Q > const &v)'],['../a00305.html#gad9e0d36ff489cb30c65ad1fa40351651',1,'glm::make_vec3(T const *const ptr)']]], + ['make_5fvec4',['make_vec4',['../a00305.html#ga600cb97f70c5d50d3a4a145e1cafbf37',1,'glm::make_vec4(vec< 1, T, Q > const &v)'],['../a00305.html#gaa9bd116caf28196fd1cf00b278286fa7',1,'glm::make_vec4(vec< 2, T, Q > const &v)'],['../a00305.html#ga4036328ba4702c74cbdfad1fc03d1b8f',1,'glm::make_vec4(vec< 3, T, Q > const &v)'],['../a00305.html#gaa95cb15732f708f613e65a0578895ae5',1,'glm::make_vec4(vec< 4, T, Q > const &v)'],['../a00305.html#ga63f576518993efc22a969f18f80e29bb',1,'glm::make_vec4(T const *const ptr)']]], + ['mask',['mask',['../a00288.html#gad7eba518a0b71662114571ee76939f8a',1,'glm::mask(genIUType Bits)'],['../a00288.html#ga2e64e3b922a296033b825311e7f5fff1',1,'glm::mask(vec< L, T, Q > const &v)']]], + ['mat2x4_5fcast',['mat2x4_cast',['../a00317.html#gae99d143b37f9cad4cd9285571aab685a',1,'glm']]], + ['mat3_5fcast',['mat3_cast',['../a00299.html#ga333ab70047fbe4132406100c292dbc89',1,'glm']]], + ['mat3x4_5fcast',['mat3x4_cast',['../a00317.html#gaf59f5bb69620d2891c3795c6f2639179',1,'glm']]], + ['mat4_5fcast',['mat4_cast',['../a00299.html#ga1113212d9bdefc2e31ad40e5bbb506f3',1,'glm']]], + ['matrixcompmult',['matrixCompMult',['../a00371.html#gaf14569404c779fedca98d0b9b8e58c1f',1,'glm']]], + ['matrixcross3',['matrixCross3',['../a00334.html#ga5802386bb4c37b3332a3b6fd8b6960ff',1,'glm']]], + ['matrixcross4',['matrixCross4',['../a00334.html#ga20057fff91ddafa102934adb25458cde',1,'glm']]], + ['max',['max',['../a00241.html#gae02d42887fc5570451f880e3c624b9ac',1,'glm::max(genType x, genType y)'],['../a00241.html#ga03e45d6e60d1c36edb00c52edeea0f31',1,'glm::max(vec< L, T, Q > const &x, T y)'],['../a00241.html#gac1fec0c3303b572a6d4697a637213870',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00258.html#gaa20839d9ab14514f8966f69877ea0de8',1,'glm::max(T a, T b, T c)'],['../a00258.html#ga2274b5e75ed84b0b1e50d8d22f1f2f67',1,'glm::max(T a, T b, T c, T d)'],['../a00267.html#gaa45d34f6a2906f8bf58ab2ba5429234d',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z)'],['../a00267.html#ga94d42b8da2b4ded5ddf7504fbdc6bf10',1,'glm::max(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w)'],['../a00321.html#ga04991ccb9865c4c4e58488cfb209ce69',1,'glm::max(T const &x, T const &y, T const &z)'],['../a00321.html#gae1b7bbe5c91de4924835ea3e14530744',1,'glm::max(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)'],['../a00321.html#gaf832e9d4ab4826b2dda2fda25935a3a4',1,'glm::max(C< T > const &x, C< T > const &y, C< T > const &z)'],['../a00321.html#ga78e04a0cef1c4863fcae1a2130500d87',1,'glm::max(T const &x, T const &y, T const &z, T const &w)'],['../a00321.html#ga7cca8b53cfda402040494cdf40fbdf4a',1,'glm::max(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)'],['../a00321.html#gaacffbc466c2d08c140b181e7fd8a4858',1,'glm::max(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)']]], + ['min',['min',['../a00241.html#ga6cf8098827054a270ee36b18e30d471d',1,'glm::min(genType x, genType y)'],['../a00241.html#gaa7d015eba1f9f48519251f4abe69b14d',1,'glm::min(vec< L, T, Q > const &x, T y)'],['../a00241.html#ga31f49ef9e7d1beb003160c5e009b0c48',1,'glm::min(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00258.html#ga420b37cbd98c395b93dab0278305cd46',1,'glm::min(T a, T b, T c)'],['../a00258.html#ga0d24a9acb8178df77e4aff90cbb2010d',1,'glm::min(T a, T b, T c, T d)'],['../a00267.html#ga3cd83d80fd4f433d8e333593ec56dddf',1,'glm::min(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c)'],['../a00267.html#gab66920ed064ab518d6859c5a889c4be4',1,'glm::min(vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d)'],['../a00321.html#ga713d3f9b3e76312c0d314e0c8611a6a6',1,'glm::min(T const &x, T const &y, T const &z)'],['../a00321.html#ga74d1a96e7cdbac40f6d35142d3bcbbd4',1,'glm::min(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)'],['../a00321.html#ga42b5c3fc027fd3d9a50d2ccc9126d9f0',1,'glm::min(C< T > const &x, C< T > const &y, C< T > const &z)'],['../a00321.html#ga95466987024d03039607f09e69813d69',1,'glm::min(T const &x, T const &y, T const &z, T const &w)'],['../a00321.html#ga4fe35dd31dd0c45693c9b60b830b8d47',1,'glm::min(C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)'],['../a00321.html#ga7471ea4159eed8dd9ea4ac5d46c2fead',1,'glm::min(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)']]], + ['mirrorclamp',['mirrorClamp',['../a00369.html#gaa6856a0a048d2749252848da35e10c8b',1,'glm']]], + ['mirrorrepeat',['mirrorRepeat',['../a00369.html#ga16a89b0661b60d5bea85137bbae74d73',1,'glm']]], + ['mix',['mix',['../a00241.html#ga8e93f374aae27d1a88b921860351f8d4',1,'glm::mix(genTypeT x, genTypeT y, genTypeU a)'],['../a00248.html#gafbfe587b8da11fb89a30c3d67dd5ccc2',1,'glm::mix(qua< T, Q > const &x, qua< T, Q > const &y, T a)']]], + ['mixedproduct',['mixedProduct',['../a00342.html#gab3c6048fbb67f7243b088a4fee48d020',1,'glm']]], + ['mod',['mod',['../a00241.html#ga9b197a452cd52db3c5c18bac72bd7798',1,'glm::mod(vec< L, T, Q > const &x, vec< L, T, Q > const &y)'],['../a00330.html#gaabfbb41531ab7ad8d06fc176edfba785',1,'glm::mod(int x, int y)'],['../a00330.html#ga63fc8d63e7da1706439233b386ba8b6f',1,'glm::mod(uint x, uint y)']]], + ['modf',['modf',['../a00241.html#ga85e33f139b8db1b39b590a5713b9e679',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_b.html b/external/glm-0.9.9.8/doc/api/search/functions_b.html similarity index 97% rename from external/glm/doc/api/search/functions_b.html rename to external/glm-0.9.9.8/doc/api/search/functions_b.html index 3b49416..7450914 100644 --- a/external/glm/doc/api/search/functions_b.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_b.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_b.js b/external/glm-0.9.9.8/doc/api/search/functions_b.js new file mode 100644 index 0000000..e282a51 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_b.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['nextmultiple',['nextMultiple',['../a00261.html#gab770a3835c44c8a6fd225be4f4e6b317',1,'glm::nextMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#gace38d00601cbf49cd4dc03f003ab42b7',1,'glm::nextMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#gacda365edad320c7aff19cc283a3b8ca2',1,'glm::nextMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['nextpoweroftwo',['nextPowerOfTwo',['../a00261.html#ga3a37c2f2fd347886c9af6a3ca3db04dc',1,'glm::nextPowerOfTwo(genIUType v)'],['../a00274.html#gabba67f8aac9915e10fca727277274502',1,'glm::nextPowerOfTwo(vec< L, T, Q > const &v)']]], + ['nlz',['nlz',['../a00330.html#ga78dff8bdb361bf0061194c93e003d189',1,'glm']]], + ['normalize',['normalize',['../a00254.html#gabf30e3263fffe8dcc6659aea76ae8927',1,'glm::normalize(qua< T, Q > const &q)'],['../a00279.html#ga3b8d3dcae77870781392ed2902cce597',1,'glm::normalize(vec< L, T, Q > const &x)'],['../a00317.html#ga299b8641509606b1958ffa104a162cfe',1,'glm::normalize(tdualquat< T, Q > const &q)']]], + ['normalizedot',['normalizeDot',['../a00345.html#gacb140a2b903115d318c8b0a2fb5a5daa',1,'glm']]], + ['not_5f',['not_',['../a00374.html#ga610fcd175791fd246e328ffee10dbf1e',1,'glm']]], + ['notequal',['notEqual',['../a00246.html#ga8504f18a7e2bf315393032c2137dad83',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)'],['../a00246.html#ga29071147d118569344d10944b7d5c378',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, T epsilon)'],['../a00246.html#gad7959e14fbc35b4ed2617daf4d67f6cd',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, T, Q > const &epsilon)'],['../a00246.html#gaa1cd7fc228ef6e26c73583fd0d9c6552',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, int ULPs)'],['../a00246.html#gaa5517341754149ffba742d230afd1f32',1,'glm::notEqual(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y, vec< C, int, Q > const &ULPs)'],['../a00255.html#gab441cee0de5867a868f3a586ee68cfe1',1,'glm::notEqual(qua< T, Q > const &x, qua< T, Q > const &y)'],['../a00255.html#ga5117a44c1bf21af857cd23e44a96d313',1,'glm::notEqual(qua< T, Q > const &x, qua< T, Q > const &y, T epsilon)'],['../a00275.html#ga4a99cc41341567567a608719449c1fac',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, T epsilon)'],['../a00275.html#ga417cf51304359db18e819dda9bce5767',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &epsilon)'],['../a00275.html#ga8b5c2c3f83422ae5b71fa960d03b0339',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, int ULPs)'],['../a00275.html#ga0b15ffe32987a6029b14398eb0def01a',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, int, Q > const &ULPs)'],['../a00374.html#ga17c19dc1b76cd5aef63e9e7ff3aa3c27',1,'glm::notEqual(vec< L, T, Q > const &x, vec< L, T, Q > const &y)']]] +]; diff --git a/external/glm/doc/api/search/functions_c.html b/external/glm-0.9.9.8/doc/api/search/functions_c.html similarity index 97% rename from external/glm/doc/api/search/functions_c.html rename to external/glm-0.9.9.8/doc/api/search/functions_c.html index 57c6455..da5bded 100644 --- a/external/glm/doc/api/search/functions_c.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_c.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_c.js b/external/glm-0.9.9.8/doc/api/search/functions_c.js new file mode 100644 index 0000000..cfa0833 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_c.js @@ -0,0 +1,24 @@ +var searchData= +[ + ['one',['one',['../a00290.html#ga39c2fb227631ca25894326529bdd1ee5',1,'glm']]], + ['one_5fover_5fpi',['one_over_pi',['../a00290.html#ga555150da2b06d23c8738981d5013e0eb',1,'glm']]], + ['one_5fover_5froot_5ftwo',['one_over_root_two',['../a00290.html#ga788fa23a0939bac4d1d0205fb4f35818',1,'glm']]], + ['one_5fover_5ftwo_5fpi',['one_over_two_pi',['../a00290.html#ga7c922b427986cbb2e4c6ac69874eefbc',1,'glm']]], + ['openbounded',['openBounded',['../a00314.html#gafd303042ba2ba695bf53b2315f53f93f',1,'glm']]], + ['orientate2',['orientate2',['../a00319.html#gae16738a9f1887cf4e4db6a124637608d',1,'glm']]], + ['orientate3',['orientate3',['../a00319.html#ga7ca98668a5786f19c7b38299ebbc9b4c',1,'glm::orientate3(T const &angle)'],['../a00319.html#ga7238c8e15c7720e3ca6a45ab151eeabb',1,'glm::orientate3(vec< 3, T, Q > const &angles)']]], + ['orientate4',['orientate4',['../a00319.html#ga4a044653f71a4ecec68e0b623382b48a',1,'glm']]], + ['orientation',['orientation',['../a00356.html#ga1a32fceb71962e6160e8af295c91930a',1,'glm']]], + ['orientedangle',['orientedAngle',['../a00367.html#ga9556a803dce87fe0f42fdabe4ebba1d5',1,'glm::orientedAngle(vec< 2, T, Q > const &x, vec< 2, T, Q > const &y)'],['../a00367.html#ga706fce3d111f485839756a64f5a48553',1,'glm::orientedAngle(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y, vec< 3, T, Q > const &ref)']]], + ['ortho',['ortho',['../a00243.html#gae5b6b40ed882cd56cd7cb97701909c06',1,'glm::ortho(T left, T right, T bottom, T top)'],['../a00243.html#ga6615d8a9d39432e279c4575313ecb456',1,'glm::ortho(T left, T right, T bottom, T top, T zNear, T zFar)']]], + ['ortholh',['orthoLH',['../a00243.html#gad122a79aadaa5529cec4ac197203db7f',1,'glm']]], + ['ortholh_5fno',['orthoLH_NO',['../a00243.html#ga526416735ea7c5c5cd255bf99d051bd8',1,'glm']]], + ['ortholh_5fzo',['orthoLH_ZO',['../a00243.html#gab37ac3eec8d61f22fceda7775e836afa',1,'glm']]], + ['orthono',['orthoNO',['../a00243.html#gab219d28a8f178d4517448fcd6395a073',1,'glm']]], + ['orthonormalize',['orthonormalize',['../a00348.html#ga4cab5d698e6e2eccea30c8e81c74371f',1,'glm::orthonormalize(mat< 3, 3, T, Q > const &m)'],['../a00348.html#gac3bc7ef498815026bc3d361ae0b7138e',1,'glm::orthonormalize(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)']]], + ['orthorh',['orthoRH',['../a00243.html#ga16264c9b838edeb9dd1de7a1010a13a4',1,'glm']]], + ['orthorh_5fno',['orthoRH_NO',['../a00243.html#gaa2f7a1373170bf0a4a2ddef9b0706780',1,'glm']]], + ['orthorh_5fzo',['orthoRH_ZO',['../a00243.html#ga9aea2e515b08fd7dce47b7b6ec34d588',1,'glm']]], + ['orthozo',['orthoZO',['../a00243.html#gaea11a70817af2c0801c869dea0b7a5bc',1,'glm']]], + ['outerproduct',['outerProduct',['../a00371.html#gac29fb7bae75a8e4c1b74cbbf85520e50',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_d.html b/external/glm-0.9.9.8/doc/api/search/functions_d.html similarity index 97% rename from external/glm/doc/api/search/functions_d.html rename to external/glm-0.9.9.8/doc/api/search/functions_d.html index 58b3d31..87c59fa 100644 --- a/external/glm/doc/api/search/functions_d.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_d.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_d.js b/external/glm-0.9.9.8/doc/api/search/functions_d.js new file mode 100644 index 0000000..ca044a7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_d.js @@ -0,0 +1,83 @@ +var searchData= +[ + ['packdouble2x32',['packDouble2x32',['../a00372.html#gaa916ca426b2bb0343ba17e3753e245c2',1,'glm']]], + ['packf2x11_5f1x10',['packF2x11_1x10',['../a00298.html#ga4944ad465ff950e926d49621f916c78d',1,'glm']]], + ['packf3x9_5fe1x5',['packF3x9_E1x5',['../a00298.html#ga3f648fc205467792dc6d8c59c748f8a6',1,'glm']]], + ['packhalf',['packHalf',['../a00298.html#ga2d8bbce673ebc04831c1fb05c47f5251',1,'glm']]], + ['packhalf1x16',['packHalf1x16',['../a00298.html#ga43f2093b6ff192a79058ff7834fc3528',1,'glm']]], + ['packhalf2x16',['packHalf2x16',['../a00372.html#ga20f134b07db3a3d3a38efb2617388c92',1,'glm']]], + ['packhalf4x16',['packHalf4x16',['../a00298.html#gafe2f7b39caf8f5ec555e1c059ec530e6',1,'glm']]], + ['packi3x10_5f1x2',['packI3x10_1x2',['../a00298.html#ga06ecb6afb902dba45419008171db9023',1,'glm']]], + ['packint2x16',['packInt2x16',['../a00298.html#ga3644163cf3a47bf1d4af1f4b03013a7e',1,'glm']]], + ['packint2x32',['packInt2x32',['../a00298.html#gad1e4c8a9e67d86b61a6eec86703a827a',1,'glm']]], + ['packint2x8',['packInt2x8',['../a00298.html#ga8884b1f2292414f36d59ef3be5d62914',1,'glm']]], + ['packint4x16',['packInt4x16',['../a00298.html#ga1989f093a27ae69cf9207145be48b3d7',1,'glm']]], + ['packint4x8',['packInt4x8',['../a00298.html#gaf2238401d5ce2aaade1a44ba19709072',1,'glm']]], + ['packrgbm',['packRGBM',['../a00298.html#ga0466daf4c90f76cc64b3f105ce727295',1,'glm']]], + ['packsnorm',['packSnorm',['../a00298.html#gaa54b5855a750d6aeb12c1c902f5939b8',1,'glm']]], + ['packsnorm1x16',['packSnorm1x16',['../a00298.html#gab22f8bcfdb5fc65af4701b25f143c1af',1,'glm']]], + ['packsnorm1x8',['packSnorm1x8',['../a00298.html#gae3592e0795e62aaa1865b3a10496a7a1',1,'glm']]], + ['packsnorm2x16',['packSnorm2x16',['../a00372.html#ga977ab172da5494e5ac63e952afacfbe2',1,'glm']]], + ['packsnorm2x8',['packSnorm2x8',['../a00298.html#ga6be3cfb2cce3702f03e91bbeb5286d7e',1,'glm']]], + ['packsnorm3x10_5f1x2',['packSnorm3x10_1x2',['../a00298.html#gab997545661877d2c7362a5084d3897d3',1,'glm']]], + ['packsnorm4x16',['packSnorm4x16',['../a00298.html#ga358943934d21da947d5bcc88c2ab7832',1,'glm']]], + ['packsnorm4x8',['packSnorm4x8',['../a00372.html#ga85e8f17627516445026ab7a9c2e3531a',1,'glm']]], + ['packu3x10_5f1x2',['packU3x10_1x2',['../a00298.html#gada3d88d59f0f458f9c51a9fd359a4bc0',1,'glm']]], + ['packuint2x16',['packUint2x16',['../a00298.html#ga5eecc9e8cbaf51ac6cf57501e670ee19',1,'glm']]], + ['packuint2x32',['packUint2x32',['../a00298.html#gaa864081097b86e83d8e4a4d79c382b22',1,'glm']]], + ['packuint2x8',['packUint2x8',['../a00298.html#ga3c3c9fb53ae7823b10fa083909357590',1,'glm']]], + ['packuint4x16',['packUint4x16',['../a00298.html#ga2ceb62cca347d8ace42ee90317a3f1f9',1,'glm']]], + ['packuint4x8',['packUint4x8',['../a00298.html#gaa0fe2f09aeb403cd66c1a062f58861ab',1,'glm']]], + ['packunorm',['packUnorm',['../a00298.html#gaccd3f27e6ba5163eb7aa9bc8ff96251a',1,'glm']]], + ['packunorm1x16',['packUnorm1x16',['../a00298.html#ga9f82737bf2a44bedff1d286b76837886',1,'glm']]], + ['packunorm1x5_5f1x6_5f1x5',['packUnorm1x5_1x6_1x5',['../a00298.html#ga768e0337dd6246773f14aa0a421fe9a8',1,'glm']]], + ['packunorm1x8',['packUnorm1x8',['../a00298.html#ga4b2fa60df3460403817d28b082ee0736',1,'glm']]], + ['packunorm2x16',['packUnorm2x16',['../a00372.html#ga0e2d107039fe608a209497af867b85fb',1,'glm']]], + ['packunorm2x3_5f1x2',['packUnorm2x3_1x2',['../a00298.html#ga7f9abdb50f9be1aa1c14912504a0d98d',1,'glm']]], + ['packunorm2x4',['packUnorm2x4',['../a00298.html#gab6bbd5be3b8e6db538ecb33a7844481c',1,'glm']]], + ['packunorm2x8',['packUnorm2x8',['../a00298.html#ga9a666b1c688ab54100061ed06526de6e',1,'glm']]], + ['packunorm3x10_5f1x2',['packUnorm3x10_1x2',['../a00298.html#ga8a1ee625d2707c60530fb3fca2980b19',1,'glm']]], + ['packunorm3x5_5f1x1',['packUnorm3x5_1x1',['../a00298.html#gaec4112086d7fb133bea104a7c237de52',1,'glm']]], + ['packunorm4x16',['packUnorm4x16',['../a00298.html#ga1f63c264e7ab63264e2b2a99fd393897',1,'glm']]], + ['packunorm4x4',['packUnorm4x4',['../a00298.html#gad3e7e3ce521513584a53aedc5f9765c1',1,'glm']]], + ['packunorm4x8',['packUnorm4x8',['../a00372.html#gaf7d2f7341a9eeb4a436929d6f9ad08f2',1,'glm']]], + ['perlin',['perlin',['../a00297.html#ga1e043ce3b51510e9bc4469227cefc38a',1,'glm::perlin(vec< L, T, Q > const &p)'],['../a00297.html#gac270edc54c5fc52f5985a45f940bb103',1,'glm::perlin(vec< L, T, Q > const &p, vec< L, T, Q > const &rep)']]], + ['perp',['perp',['../a00349.html#ga264cfc4e180cf9b852e943b35089003c',1,'glm']]], + ['perspective',['perspective',['../a00243.html#ga747c8cf99458663dd7ad1bb3a2f07787',1,'glm']]], + ['perspectivefov',['perspectiveFov',['../a00243.html#gaebd02240fd36e85ad754f02ddd9a560d',1,'glm']]], + ['perspectivefovlh',['perspectiveFovLH',['../a00243.html#ga6aebe16c164bd8e52554cbe0304ef4aa',1,'glm']]], + ['perspectivefovlh_5fno',['perspectiveFovLH_NO',['../a00243.html#gad18a4495b77530317327e8d466488c1a',1,'glm']]], + ['perspectivefovlh_5fzo',['perspectiveFovLH_ZO',['../a00243.html#gabdd37014f529e25b2fa1b3ba06c10d5c',1,'glm']]], + ['perspectivefovno',['perspectiveFovNO',['../a00243.html#gaf30e7bd3b1387a6776433dd5383e6633',1,'glm']]], + ['perspectivefovrh',['perspectiveFovRH',['../a00243.html#gaf32bf563f28379c68554a44ee60c6a85',1,'glm']]], + ['perspectivefovrh_5fno',['perspectiveFovRH_NO',['../a00243.html#ga257b733ff883c9a065801023cf243eb2',1,'glm']]], + ['perspectivefovrh_5fzo',['perspectiveFovRH_ZO',['../a00243.html#ga7dcbb25331676f5b0795aced1a905c44',1,'glm']]], + ['perspectivefovzo',['perspectiveFovZO',['../a00243.html#ga4bc69fa1d1f95128430aa3d2a712390b',1,'glm']]], + ['perspectivelh',['perspectiveLH',['../a00243.html#ga9bd34951dc7022ac256fcb51d7f6fc2f',1,'glm']]], + ['perspectivelh_5fno',['perspectiveLH_NO',['../a00243.html#gaead4d049d1feab463b700b5641aa590e',1,'glm']]], + ['perspectivelh_5fzo',['perspectiveLH_ZO',['../a00243.html#gaca32af88c2719005c02817ad1142986c',1,'glm']]], + ['perspectiveno',['perspectiveNO',['../a00243.html#gaf497e6bca61e7c87088370b126a93758',1,'glm']]], + ['perspectiverh',['perspectiveRH',['../a00243.html#ga26b88757fbd90601b80768a7e1ad3aa1',1,'glm']]], + ['perspectiverh_5fno',['perspectiveRH_NO',['../a00243.html#gad1526cb2cbe796095284e8f34b01c582',1,'glm']]], + ['perspectiverh_5fzo',['perspectiveRH_ZO',['../a00243.html#ga4da358d6e1b8e5b9ae35d1f3f2dc3b9a',1,'glm']]], + ['perspectivezo',['perspectiveZO',['../a00243.html#gaa9dfba5c2322da54f72b1eb7c7c11b47',1,'glm']]], + ['pi',['pi',['../a00259.html#ga94bafeb2a0f23ab6450fed1f98ee4e45',1,'glm']]], + ['pickmatrix',['pickMatrix',['../a00245.html#gaf6b21eadb7ac2ecbbe258a9a233b4c82',1,'glm']]], + ['pitch',['pitch',['../a00299.html#ga7603e81477b46ddb448896909bc04928',1,'glm']]], + ['polar',['polar',['../a00350.html#gab83ac2c0e55b684b06b6c46c28b1590d',1,'glm']]], + ['pow',['pow',['../a00242.html#ga2254981952d4f333b900a6bf5167a6c4',1,'glm::pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)'],['../a00256.html#ga4975ffcacd312a8c0bbd046a76c5607e',1,'glm::pow(qua< T, Q > const &q, T y)'],['../a00330.html#ga465016030a81d513fa2fac881ebdaa83',1,'glm::pow(int x, uint y)'],['../a00330.html#ga998e5ee915d3769255519e2fbaa2bbf0',1,'glm::pow(uint x, uint y)']]], + ['pow2',['pow2',['../a00347.html#ga19aaff3213bf23bdec3ef124ace237e9',1,'glm::gtx']]], + ['pow3',['pow3',['../a00347.html#ga35689d03cd434d6ea819f1942d3bf82e',1,'glm::gtx']]], + ['pow4',['pow4',['../a00347.html#gacef0968763026e180e53e735007dbf5a',1,'glm::gtx']]], + ['poweroftwoabove',['powerOfTwoAbove',['../a00309.html#ga8cda2459871f574a0aecbe702ac93291',1,'glm::powerOfTwoAbove(genIUType Value)'],['../a00309.html#ga2bbded187c5febfefc1e524ba31b3fab',1,'glm::powerOfTwoAbove(vec< L, T, Q > const &value)']]], + ['poweroftwobelow',['powerOfTwoBelow',['../a00309.html#ga3de7df63c589325101a2817a56f8e29d',1,'glm::powerOfTwoBelow(genIUType Value)'],['../a00309.html#gaf78ddcc4152c051b2a21e68fecb10980',1,'glm::powerOfTwoBelow(vec< L, T, Q > const &value)']]], + ['poweroftwonearest',['powerOfTwoNearest',['../a00309.html#ga5f65973a5d2ea38c719e6a663149ead9',1,'glm::powerOfTwoNearest(genIUType Value)'],['../a00309.html#gac87e65d11e16c3d6b91c3bcfaef7da0b',1,'glm::powerOfTwoNearest(vec< L, T, Q > const &value)']]], + ['prevmultiple',['prevMultiple',['../a00261.html#gada3bdd871ffe31f2d484aa668362f636',1,'glm::prevMultiple(genIUType v, genIUType Multiple)'],['../a00274.html#ga7b3915a7cd3d50ff4976ab7a75a6880a',1,'glm::prevMultiple(vec< L, T, Q > const &v, T Multiple)'],['../a00274.html#ga51e04379e8aebbf83e2e5ab094578ee9',1,'glm::prevMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['prevpoweroftwo',['prevPowerOfTwo',['../a00261.html#gab21902a0e7e5a8451a7ad80333618727',1,'glm::prevPowerOfTwo(genIUType v)'],['../a00274.html#ga759db73f14d79f63612bd2398b577e7a',1,'glm::prevPowerOfTwo(vec< L, T, Q > const &v)']]], + ['proj',['proj',['../a00351.html#ga58384b7170801dd513de46f87c7fb00e',1,'glm']]], + ['proj2d',['proj2D',['../a00363.html#ga5b992a0cdc8298054edb68e228f0d93e',1,'glm']]], + ['proj3d',['proj3D',['../a00363.html#gaa2b7f4f15b98f697caede11bef50509e',1,'glm']]], + ['project',['project',['../a00245.html#gaf36e96033f456659e6705472a06b6e11',1,'glm']]], + ['projectno',['projectNO',['../a00245.html#ga05249751f48d14cb282e4979802b8111',1,'glm']]], + ['projectzo',['projectZO',['../a00245.html#ga77d157525063dec83a557186873ee080',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_e.html b/external/glm-0.9.9.8/doc/api/search/functions_e.html similarity index 97% rename from external/glm/doc/api/search/functions_e.html rename to external/glm-0.9.9.8/doc/api/search/functions_e.html index b44e5c5..21c200e 100644 --- a/external/glm/doc/api/search/functions_e.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_e.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_e.js b/external/glm-0.9.9.8/doc/api/search/functions_e.js new file mode 100644 index 0000000..0d67b39 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_e.js @@ -0,0 +1,19 @@ +var searchData= +[ + ['qr_5fdecompose',['qr_decompose',['../a00336.html#gac62d7bfc8dc661e616620d70552cd566',1,'glm']]], + ['quadraticeasein',['quadraticEaseIn',['../a00318.html#gaf42089d35855695132d217cd902304a0',1,'glm']]], + ['quadraticeaseinout',['quadraticEaseInOut',['../a00318.html#ga03e8fc2d7945a4e63ee33b2159c14cea',1,'glm']]], + ['quadraticeaseout',['quadraticEaseOut',['../a00318.html#ga283717bc2d937547ad34ec0472234ee3',1,'glm']]], + ['quarter_5fpi',['quarter_pi',['../a00290.html#ga3c9df42bd73c519a995c43f0f99e77e0',1,'glm']]], + ['quarticeasein',['quarticEaseIn',['../a00318.html#ga808b41f14514f47dad5dcc69eb924afd',1,'glm']]], + ['quarticeaseinout',['quarticEaseInOut',['../a00318.html#ga6d000f852de12b197e154f234b20c505',1,'glm']]], + ['quarticeaseout',['quarticEaseOut',['../a00318.html#ga4dfb33fa7664aa888eb647999d329b98',1,'glm']]], + ['quat_5fcast',['quat_cast',['../a00299.html#ga1108a4ab88ca87bac321454eea7702f8',1,'glm::quat_cast(mat< 3, 3, T, Q > const &x)'],['../a00299.html#ga4524810f07f72e8c7bdc7764fa11cb58',1,'glm::quat_cast(mat< 4, 4, T, Q > const &x)']]], + ['quat_5fidentity',['quat_identity',['../a00352.html#ga5ee8332600b2aca3a77622a28d857b55',1,'glm']]], + ['quatlookat',['quatLookAt',['../a00299.html#gabe7fc5ec5feb41ab234d5d2b6254697f',1,'glm']]], + ['quatlookatlh',['quatLookAtLH',['../a00299.html#ga2da350c73411be3bb19441b226b81a74',1,'glm']]], + ['quatlookatrh',['quatLookAtRH',['../a00299.html#gaf6529ac8c04a57fcc35865b5c9437cc8',1,'glm']]], + ['quinticeasein',['quinticEaseIn',['../a00318.html#ga097579d8e087dcf48037588140a21640',1,'glm']]], + ['quinticeaseinout',['quinticEaseInOut',['../a00318.html#ga2a82d5c46df7e2d21cc0108eb7b83934',1,'glm']]], + ['quinticeaseout',['quinticEaseOut',['../a00318.html#ga7dbd4d5c8da3f5353121f615e7b591d7',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/functions_f.html b/external/glm-0.9.9.8/doc/api/search/functions_f.html similarity index 97% rename from external/glm/doc/api/search/functions_f.html rename to external/glm-0.9.9.8/doc/api/search/functions_f.html index db9a07c..a61e500 100644 --- a/external/glm/doc/api/search/functions_f.html +++ b/external/glm-0.9.9.8/doc/api/search/functions_f.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/functions_f.js b/external/glm-0.9.9.8/doc/api/search/functions_f.js new file mode 100644 index 0000000..8602918 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/functions_f.js @@ -0,0 +1,35 @@ +var searchData= +[ + ['radialgradient',['radialGradient',['../a00327.html#gaaecb1e93de4cbe0758b882812d4da294',1,'glm']]], + ['radians',['radians',['../a00373.html#ga6e1db4862c5e25afd553930e2fdd6a68',1,'glm']]], + ['reflect',['reflect',['../a00279.html#ga5631dd1d5618de5450b1ea3cf3e94905',1,'glm']]], + ['refract',['refract',['../a00279.html#ga01da3dff9e2ef6b9d4915c3047e22b74',1,'glm']]], + ['repeat',['repeat',['../a00369.html#ga809650c6310ea7c42666e918c117fb6f',1,'glm']]], + ['rgb2ycocg',['rgb2YCoCg',['../a00313.html#ga0606353ec2a9b9eaa84f1b02ec391bc5',1,'glm']]], + ['rgb2ycocgr',['rgb2YCoCgR',['../a00313.html#ga0389772e44ca0fd2ba4a79bdd8efe898',1,'glm']]], + ['rgbcolor',['rgbColor',['../a00312.html#ga5f9193be46f45f0655c05a0cdca006db',1,'glm']]], + ['righthanded',['rightHanded',['../a00328.html#ga99386a5ab5491871b947076e21699cc8',1,'glm']]], + ['roll',['roll',['../a00299.html#ga0cc5ad970d0b00829b139fe0fe5a1e13',1,'glm']]], + ['root_5ffive',['root_five',['../a00290.html#gae9ebbded75b53d4faeb1e4ef8b3347a2',1,'glm']]], + ['root_5fhalf_5fpi',['root_half_pi',['../a00290.html#ga4e276cb823cc5e612d4f89ed99c75039',1,'glm']]], + ['root_5fln_5ffour',['root_ln_four',['../a00290.html#ga4129412e96b33707a77c1a07652e23e2',1,'glm']]], + ['root_5fpi',['root_pi',['../a00290.html#ga261380796b2cd496f68d2cf1d08b8eb9',1,'glm']]], + ['root_5fthree',['root_three',['../a00290.html#ga4f286be4abe88be1eed7d2a9f6cb193e',1,'glm']]], + ['root_5ftwo',['root_two',['../a00290.html#ga74e607d29020f100c0d0dc46ce2ca950',1,'glm']]], + ['root_5ftwo_5fpi',['root_two_pi',['../a00290.html#ga2bcedc575039fe0cd765742f8bbb0bd3',1,'glm']]], + ['rotate',['rotate',['../a00247.html#gaee9e865eaa9776370996da2940873fd4',1,'glm::rotate(mat< 4, 4, T, Q > const &m, T angle, vec< 3, T, Q > const &axis)'],['../a00256.html#gabfc57de6d4d2e11970f54119c5ccf0f5',1,'glm::rotate(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)'],['../a00341.html#gad5c84a4932a758f385a87098ce1b1660',1,'glm::rotate(mat< 3, 3, T, Q > const &m, T angle)'],['../a00352.html#ga07da6ef58646442efe93b0c273d73776',1,'glm::rotate(qua< T, Q > const &q, vec< 3, T, Q > const &v)'],['../a00352.html#gafcb78dfff45fbf19a7fcb2bd03fbf196',1,'glm::rotate(qua< T, Q > const &q, vec< 4, T, Q > const &v)'],['../a00356.html#gab64a67b52ff4f86c3ba16595a5a25af6',1,'glm::rotate(vec< 2, T, Q > const &v, T const &angle)'],['../a00356.html#ga1ba501ef83d1a009a17ac774cc560f21',1,'glm::rotate(vec< 3, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)'],['../a00356.html#ga1005f1267ed9c57faa3f24cf6873b961',1,'glm::rotate(vec< 4, T, Q > const &v, T const &angle, vec< 3, T, Q > const &normal)'],['../a00362.html#gaf599be4c0e9d99be1f9cddba79b6018b',1,'glm::rotate(T angle, vec< 3, T, Q > const &v)']]], + ['rotatenormalizedaxis',['rotateNormalizedAxis',['../a00355.html#ga50efd7ebca0f7a603bb3cc11e34c708d',1,'glm::rotateNormalizedAxis(mat< 4, 4, T, Q > const &m, T const &angle, vec< 3, T, Q > const &axis)'],['../a00355.html#ga08f9c5411437d528019a25bfc01473d1',1,'glm::rotateNormalizedAxis(qua< T, Q > const &q, T const &angle, vec< 3, T, Q > const &axis)']]], + ['rotatex',['rotateX',['../a00356.html#ga059fdbdba4cca35cdff172a9d0d0afc9',1,'glm::rotateX(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga4333b1ea8ebf1bd52bc3801a7617398a',1,'glm::rotateX(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotatey',['rotateY',['../a00356.html#gaebdc8b054ace27d9f62e054531c6f44d',1,'glm::rotateY(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga3ce3db0867b7f8efd878ee34f95a623b',1,'glm::rotateY(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotatez',['rotateZ',['../a00356.html#ga5a048838a03f6249acbacb4dbacf79c4',1,'glm::rotateZ(vec< 3, T, Q > const &v, T const &angle)'],['../a00356.html#ga923b75c6448161053768822d880702e6',1,'glm::rotateZ(vec< 4, T, Q > const &v, T const &angle)']]], + ['rotation',['rotation',['../a00352.html#ga03e61282831cc3f52cc76f72f52ad2c5',1,'glm']]], + ['round',['round',['../a00241.html#gafa03aca8c4713e1cc892aa92ca135a7e',1,'glm']]], + ['roundeven',['roundEven',['../a00241.html#ga76b81785045a057989a84d99aeeb1578',1,'glm']]], + ['roundmultiple',['roundMultiple',['../a00302.html#gab892defcc9c0b0618df7251253dc0fbb',1,'glm::roundMultiple(genType v, genType Multiple)'],['../a00302.html#ga2f1a68332d761804c054460a612e3a4b',1,'glm::roundMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)']]], + ['roundpoweroftwo',['roundPowerOfTwo',['../a00302.html#gae4e1bf5d1cd179f59261a7342bdcafca',1,'glm::roundPowerOfTwo(genIUType v)'],['../a00302.html#ga258802a7d55c03c918f28cf4d241c4d0',1,'glm::roundPowerOfTwo(vec< L, T, Q > const &v)']]], + ['row',['row',['../a00293.html#ga259e5ebd0f31ec3f83440f8cae7f5dba',1,'glm::row(genType const &m, length_t index)'],['../a00293.html#gaadcc64829aadf4103477679e48c7594f',1,'glm::row(genType const &m, length_t index, typename genType::row_type const &x)']]], + ['rowmajor2',['rowMajor2',['../a00338.html#gaf5b1aee9e3eb1acf9d6c3c8be1e73bb8',1,'glm::rowMajor2(vec< 2, T, Q > const &v1, vec< 2, T, Q > const &v2)'],['../a00338.html#gaf66c75ed69ca9e87462550708c2c6726',1,'glm::rowMajor2(mat< 2, 2, T, Q > const &m)']]], + ['rowmajor3',['rowMajor3',['../a00338.html#ga2ae46497493339f745754e40f438442e',1,'glm::rowMajor3(vec< 3, T, Q > const &v1, vec< 3, T, Q > const &v2, vec< 3, T, Q > const &v3)'],['../a00338.html#gad8a3a50ab47bbe8d36cdb81d90dfcf77',1,'glm::rowMajor3(mat< 3, 3, T, Q > const &m)']]], + ['rowmajor4',['rowMajor4',['../a00338.html#ga9636cd6bbe2c32a8d0c03ffb8b1ef284',1,'glm::rowMajor4(vec< 4, T, Q > const &v1, vec< 4, T, Q > const &v2, vec< 4, T, Q > const &v3, vec< 4, T, Q > const &v4)'],['../a00338.html#gac92ad1c2acdf18d3eb7be45a32f9566b',1,'glm::rowMajor4(mat< 4, 4, T, Q > const &m)']]], + ['rq_5fdecompose',['rq_decompose',['../a00336.html#ga82874e2ebe891ba35ac21d9993873758',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_0.html b/external/glm-0.9.9.8/doc/api/search/groups_0.html new file mode 100644 index 0000000..8221db5 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_0.js b/external/glm-0.9.9.8/doc/api/search/groups_0.js new file mode 100644 index 0000000..f5f8b9c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['angle_20and_20trigonometry_20functions',['Angle and Trigonometry Functions',['../a00373.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_1.html b/external/glm-0.9.9.8/doc/api/search/groups_1.html new file mode 100644 index 0000000..34dd0b8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_1.js b/external/glm-0.9.9.8/doc/api/search/groups_1.js new file mode 100644 index 0000000..6c66265 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_1.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['core_20features',['Core features',['../a00280.html',1,'']]], + ['common_20functions',['Common functions',['../a00241.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_2.html b/external/glm-0.9.9.8/doc/api/search/groups_2.html new file mode 100644 index 0000000..d0687b7 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_2.js b/external/glm-0.9.9.8/doc/api/search/groups_2.js new file mode 100644 index 0000000..c668d1d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['exponential_20functions',['Exponential functions',['../a00242.html',1,'']]], + ['experimental_20extensions',['Experimental extensions',['../a00287.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_3.html b/external/glm-0.9.9.8/doc/api/search/groups_3.html new file mode 100644 index 0000000..6269fde --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_3.js b/external/glm-0.9.9.8/doc/api/search/groups_3.js new file mode 100644 index 0000000..904dc2f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['floating_2dpoint_20pack_20and_20unpack_20functions',['Floating-Point Pack and Unpack Functions',['../a00372.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_4.html b/external/glm-0.9.9.8/doc/api/search/groups_4.html new file mode 100644 index 0000000..c8afe0d --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_4.js b/external/glm-0.9.9.8/doc/api/search/groups_4.js new file mode 100644 index 0000000..56197f1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_4.js @@ -0,0 +1,122 @@ +var searchData= +[ + ['geometric_20functions',['Geometric functions',['../a00279.html',1,'']]], + ['glm_5fext_5fmatrix_5fclip_5fspace',['GLM_EXT_matrix_clip_space',['../a00243.html',1,'']]], + ['glm_5fext_5fmatrix_5fcommon',['GLM_EXT_matrix_common',['../a00244.html',1,'']]], + ['glm_5fext_5fmatrix_5fprojection',['GLM_EXT_matrix_projection',['../a00245.html',1,'']]], + ['glm_5fext_5fmatrix_5frelational',['GLM_EXT_matrix_relational',['../a00246.html',1,'']]], + ['glm_5fext_5fmatrix_5ftransform',['GLM_EXT_matrix_transform',['../a00247.html',1,'']]], + ['glm_5fext_5fquaternion_5fcommon',['GLM_EXT_quaternion_common',['../a00248.html',1,'']]], + ['glm_5fext_5fquaternion_5fdouble',['GLM_EXT_quaternion_double',['../a00249.html',1,'']]], + ['glm_5fext_5fquaternion_5fdouble_5fprecision',['GLM_EXT_quaternion_double_precision',['../a00250.html',1,'']]], + ['glm_5fext_5fquaternion_5fexponential',['GLM_EXT_quaternion_exponential',['../a00251.html',1,'']]], + ['glm_5fext_5fquaternion_5ffloat',['GLM_EXT_quaternion_float',['../a00252.html',1,'']]], + ['glm_5fext_5fquaternion_5ffloat_5fprecision',['GLM_EXT_quaternion_float_precision',['../a00253.html',1,'']]], + ['glm_5fext_5fquaternion_5fgeometric',['GLM_EXT_quaternion_geometric',['../a00254.html',1,'']]], + ['glm_5fext_5fquaternion_5frelational',['GLM_EXT_quaternion_relational',['../a00255.html',1,'']]], + ['glm_5fext_5fquaternion_5ftransform',['GLM_EXT_quaternion_transform',['../a00256.html',1,'']]], + ['glm_5fext_5fquaternion_5ftrigonometric',['GLM_EXT_quaternion_trigonometric',['../a00257.html',1,'']]], + ['glm_5fext_5fscalar_5fcommon',['GLM_EXT_scalar_common',['../a00258.html',1,'']]], + ['glm_5fext_5fscalar_5fconstants',['GLM_EXT_scalar_constants',['../a00259.html',1,'']]], + ['glm_5fext_5fscalar_5fint_5fsized',['GLM_EXT_scalar_int_sized',['../a00260.html',1,'']]], + ['glm_5fext_5fscalar_5finteger',['GLM_EXT_scalar_integer',['../a00261.html',1,'']]], + ['glm_5fext_5fscalar_5frelational',['GLM_EXT_scalar_relational',['../a00262.html',1,'']]], + ['glm_5fext_5fscalar_5fuint_5fsized',['GLM_EXT_scalar_uint_sized',['../a00263.html',1,'']]], + ['glm_5fext_5fscalar_5fulp',['GLM_EXT_scalar_ulp',['../a00264.html',1,'']]], + ['glm_5fext_5fvector_5fbool1',['GLM_EXT_vector_bool1',['../a00265.html',1,'']]], + ['glm_5fext_5fvector_5fbool1_5fprecision',['GLM_EXT_vector_bool1_precision',['../a00266.html',1,'']]], + ['glm_5fext_5fvector_5fcommon',['GLM_EXT_vector_common',['../a00267.html',1,'']]], + ['glm_5fext_5fvector_5fdouble1',['GLM_EXT_vector_double1',['../a00268.html',1,'']]], + ['glm_5fext_5fvector_5fdouble1_5fprecision',['GLM_EXT_vector_double1_precision',['../a00269.html',1,'']]], + ['glm_5fext_5fvector_5ffloat1',['GLM_EXT_vector_float1',['../a00270.html',1,'']]], + ['glm_5fext_5fvector_5ffloat1_5fprecision',['GLM_EXT_vector_float1_precision',['../a00271.html',1,'']]], + ['glm_5fext_5fvector_5fint1',['GLM_EXT_vector_int1',['../a00272.html',1,'']]], + ['glm_5fext_5fvector_5fint1_5fprecision',['GLM_EXT_vector_int1_precision',['../a00273.html',1,'']]], + ['glm_5fext_5fvector_5finteger',['GLM_EXT_vector_integer',['../a00274.html',1,'']]], + ['glm_5fext_5fvector_5frelational',['GLM_EXT_vector_relational',['../a00275.html',1,'']]], + ['glm_5fext_5fvector_5fuint1',['GLM_EXT_vector_uint1',['../a00276.html',1,'']]], + ['glm_5fext_5fvector_5fuint1_5fprecision',['GLM_EXT_vector_uint1_precision',['../a00277.html',1,'']]], + ['glm_5fext_5fvector_5fulp',['GLM_EXT_vector_ulp',['../a00278.html',1,'']]], + ['glm_5fgtc_5fbitfield',['GLM_GTC_bitfield',['../a00288.html',1,'']]], + ['glm_5fgtc_5fcolor_5fspace',['GLM_GTC_color_space',['../a00289.html',1,'']]], + ['glm_5fgtc_5fconstants',['GLM_GTC_constants',['../a00290.html',1,'']]], + ['glm_5fgtc_5fepsilon',['GLM_GTC_epsilon',['../a00291.html',1,'']]], + ['glm_5fgtc_5finteger',['GLM_GTC_integer',['../a00292.html',1,'']]], + ['glm_5fgtc_5fmatrix_5faccess',['GLM_GTC_matrix_access',['../a00293.html',1,'']]], + ['glm_5fgtc_5fmatrix_5finteger',['GLM_GTC_matrix_integer',['../a00294.html',1,'']]], + ['glm_5fgtc_5fmatrix_5finverse',['GLM_GTC_matrix_inverse',['../a00295.html',1,'']]], + ['glm_5fgtc_5fmatrix_5ftransform',['GLM_GTC_matrix_transform',['../a00296.html',1,'']]], + ['glm_5fgtc_5fnoise',['GLM_GTC_noise',['../a00297.html',1,'']]], + ['glm_5fgtc_5fpacking',['GLM_GTC_packing',['../a00298.html',1,'']]], + ['glm_5fgtc_5fquaternion',['GLM_GTC_quaternion',['../a00299.html',1,'']]], + ['glm_5fgtc_5frandom',['GLM_GTC_random',['../a00300.html',1,'']]], + ['glm_5fgtc_5freciprocal',['GLM_GTC_reciprocal',['../a00301.html',1,'']]], + ['glm_5fgtc_5fround',['GLM_GTC_round',['../a00302.html',1,'']]], + ['glm_5fgtc_5ftype_5faligned',['GLM_GTC_type_aligned',['../a00303.html',1,'']]], + ['glm_5fgtc_5ftype_5fprecision',['GLM_GTC_type_precision',['../a00304.html',1,'']]], + ['glm_5fgtc_5ftype_5fptr',['GLM_GTC_type_ptr',['../a00305.html',1,'']]], + ['glm_5fgtc_5fulp',['GLM_GTC_ulp',['../a00306.html',1,'']]], + ['glm_5fgtc_5fvec1',['GLM_GTC_vec1',['../a00307.html',1,'']]], + ['glm_5fgtx_5fassociated_5fmin_5fmax',['GLM_GTX_associated_min_max',['../a00308.html',1,'']]], + ['glm_5fgtx_5fbit',['GLM_GTX_bit',['../a00309.html',1,'']]], + ['glm_5fgtx_5fclosest_5fpoint',['GLM_GTX_closest_point',['../a00310.html',1,'']]], + ['glm_5fgtx_5fcolor_5fencoding',['GLM_GTX_color_encoding',['../a00311.html',1,'']]], + ['glm_5fgtx_5fcolor_5fspace',['GLM_GTX_color_space',['../a00312.html',1,'']]], + ['glm_5fgtx_5fcolor_5fspace_5fycocg',['GLM_GTX_color_space_YCoCg',['../a00313.html',1,'']]], + ['glm_5fgtx_5fcommon',['GLM_GTX_common',['../a00314.html',1,'']]], + ['glm_5fgtx_5fcompatibility',['GLM_GTX_compatibility',['../a00315.html',1,'']]], + ['glm_5fgtx_5fcomponent_5fwise',['GLM_GTX_component_wise',['../a00316.html',1,'']]], + ['glm_5fgtx_5fdual_5fquaternion',['GLM_GTX_dual_quaternion',['../a00317.html',1,'']]], + ['glm_5fgtx_5feasing',['GLM_GTX_easing',['../a00318.html',1,'']]], + ['glm_5fgtx_5feuler_5fangles',['GLM_GTX_euler_angles',['../a00319.html',1,'']]], + ['glm_5fgtx_5fextend',['GLM_GTX_extend',['../a00320.html',1,'']]], + ['glm_5fgtx_5fextented_5fmin_5fmax',['GLM_GTX_extented_min_max',['../a00321.html',1,'']]], + ['glm_5fgtx_5fexterior_5fproduct',['GLM_GTX_exterior_product',['../a00322.html',1,'']]], + ['glm_5fgtx_5ffast_5fexponential',['GLM_GTX_fast_exponential',['../a00323.html',1,'']]], + ['glm_5fgtx_5ffast_5fsquare_5froot',['GLM_GTX_fast_square_root',['../a00324.html',1,'']]], + ['glm_5fgtx_5ffast_5ftrigonometry',['GLM_GTX_fast_trigonometry',['../a00325.html',1,'']]], + ['glm_5fgtx_5ffunctions',['GLM_GTX_functions',['../a00326.html',1,'']]], + ['glm_5fgtx_5fgradient_5fpaint',['GLM_GTX_gradient_paint',['../a00327.html',1,'']]], + ['glm_5fgtx_5fhanded_5fcoordinate_5fspace',['GLM_GTX_handed_coordinate_space',['../a00328.html',1,'']]], + ['glm_5fgtx_5fhash',['GLM_GTX_hash',['../a00329.html',1,'']]], + ['glm_5fgtx_5finteger',['GLM_GTX_integer',['../a00330.html',1,'']]], + ['glm_5fgtx_5fintersect',['GLM_GTX_intersect',['../a00331.html',1,'']]], + ['glm_5fgtx_5fio',['GLM_GTX_io',['../a00332.html',1,'']]], + ['glm_5fgtx_5flog_5fbase',['GLM_GTX_log_base',['../a00333.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fcross_5fproduct',['GLM_GTX_matrix_cross_product',['../a00334.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fdecompose',['GLM_GTX_matrix_decompose',['../a00335.html',1,'']]], + ['glm_5fgtx_5fmatrix_5ffactorisation',['GLM_GTX_matrix_factorisation',['../a00336.html',1,'']]], + ['glm_5fgtx_5fmatrix_5finterpolation',['GLM_GTX_matrix_interpolation',['../a00337.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fmajor_5fstorage',['GLM_GTX_matrix_major_storage',['../a00338.html',1,'']]], + ['glm_5fgtx_5fmatrix_5foperation',['GLM_GTX_matrix_operation',['../a00339.html',1,'']]], + ['glm_5fgtx_5fmatrix_5fquery',['GLM_GTX_matrix_query',['../a00340.html',1,'']]], + ['glm_5fgtx_5fmatrix_5ftransform_5f2d',['GLM_GTX_matrix_transform_2d',['../a00341.html',1,'']]], + ['glm_5fgtx_5fmixed_5fproducte',['GLM_GTX_mixed_producte',['../a00342.html',1,'']]], + ['glm_5fgtx_5fnorm',['GLM_GTX_norm',['../a00343.html',1,'']]], + ['glm_5fgtx_5fnormal',['GLM_GTX_normal',['../a00344.html',1,'']]], + ['glm_5fgtx_5fnormalize_5fdot',['GLM_GTX_normalize_dot',['../a00345.html',1,'']]], + ['glm_5fgtx_5fnumber_5fprecision',['GLM_GTX_number_precision',['../a00346.html',1,'']]], + ['glm_5fgtx_5foptimum_5fpow',['GLM_GTX_optimum_pow',['../a00347.html',1,'']]], + ['glm_5fgtx_5forthonormalize',['GLM_GTX_orthonormalize',['../a00348.html',1,'']]], + ['glm_5fgtx_5fperpendicular',['GLM_GTX_perpendicular',['../a00349.html',1,'']]], + ['glm_5fgtx_5fpolar_5fcoordinates',['GLM_GTX_polar_coordinates',['../a00350.html',1,'']]], + ['glm_5fgtx_5fprojection',['GLM_GTX_projection',['../a00351.html',1,'']]], + ['glm_5fgtx_5fquaternion',['GLM_GTX_quaternion',['../a00352.html',1,'']]], + ['glm_5fgtx_5frange',['GLM_GTX_range',['../a00353.html',1,'']]], + ['glm_5fgtx_5fraw_5fdata',['GLM_GTX_raw_data',['../a00354.html',1,'']]], + ['glm_5fgtx_5frotate_5fnormalized_5faxis',['GLM_GTX_rotate_normalized_axis',['../a00355.html',1,'']]], + ['glm_5fgtx_5frotate_5fvector',['GLM_GTX_rotate_vector',['../a00356.html',1,'']]], + ['glm_5fgtx_5fscalar_5frelational',['GLM_GTX_scalar_relational',['../a00357.html',1,'']]], + ['glm_5fgtx_5fspline',['GLM_GTX_spline',['../a00358.html',1,'']]], + ['glm_5fgtx_5fstd_5fbased_5ftype',['GLM_GTX_std_based_type',['../a00359.html',1,'']]], + ['glm_5fgtx_5fstring_5fcast',['GLM_GTX_string_cast',['../a00360.html',1,'']]], + ['glm_5fgtx_5ftexture',['GLM_GTX_texture',['../a00361.html',1,'']]], + ['glm_5fgtx_5ftransform',['GLM_GTX_transform',['../a00362.html',1,'']]], + ['glm_5fgtx_5ftransform2',['GLM_GTX_transform2',['../a00363.html',1,'']]], + ['glm_5fgtx_5ftype_5faligned',['GLM_GTX_type_aligned',['../a00364.html',1,'']]], + ['glm_5fgtx_5ftype_5ftrait',['GLM_GTX_type_trait',['../a00365.html',1,'']]], + ['glm_5fgtx_5fvec_5fswizzle',['GLM_GTX_vec_swizzle',['../a00366.html',1,'']]], + ['glm_5fgtx_5fvector_5fangle',['GLM_GTX_vector_angle',['../a00367.html',1,'']]], + ['glm_5fgtx_5fvector_5fquery',['GLM_GTX_vector_query',['../a00368.html',1,'']]], + ['glm_5fgtx_5fwrap',['GLM_GTX_wrap',['../a00369.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_5.html b/external/glm-0.9.9.8/doc/api/search/groups_5.html new file mode 100644 index 0000000..96826e6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_5.js b/external/glm-0.9.9.8/doc/api/search/groups_5.js new file mode 100644 index 0000000..0ddec69 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['integer_20functions',['Integer functions',['../a00370.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_6.html b/external/glm-0.9.9.8/doc/api/search/groups_6.html new file mode 100644 index 0000000..5c945a1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_6.js b/external/glm-0.9.9.8/doc/api/search/groups_6.js new file mode 100644 index 0000000..d206870 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_6.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['matrix_20functions',['Matrix functions',['../a00371.html',1,'']]], + ['matrix_20types',['Matrix types',['../a00283.html',1,'']]], + ['matrix_20types_20with_20precision_20qualifiers',['Matrix types with precision qualifiers',['../a00284.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_7.html b/external/glm-0.9.9.8/doc/api/search/groups_7.html new file mode 100644 index 0000000..97884ed --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_7.js b/external/glm-0.9.9.8/doc/api/search/groups_7.js new file mode 100644 index 0000000..d5f4a40 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['recommended_20extensions',['Recommended extensions',['../a00286.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_8.html b/external/glm-0.9.9.8/doc/api/search/groups_8.html new file mode 100644 index 0000000..d8caab6 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_8.js b/external/glm-0.9.9.8/doc/api/search/groups_8.js new file mode 100644 index 0000000..c531778 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_8.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['stable_20extensions',['Stable extensions',['../a00285.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/groups_9.html b/external/glm-0.9.9.8/doc/api/search/groups_9.html new file mode 100644 index 0000000..6d69782 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/groups_9.js b/external/glm-0.9.9.8/doc/api/search/groups_9.js new file mode 100644 index 0000000..0945040 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/groups_9.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['vector_20relational_20functions',['Vector Relational Functions',['../a00374.html',1,'']]], + ['vector_20types',['Vector types',['../a00281.html',1,'']]], + ['vector_20types_20with_20precision_20qualifiers',['Vector types with precision qualifiers',['../a00282.html',1,'']]] +]; diff --git a/external/glm/doc/api/search/mag_sel.png b/external/glm-0.9.9.8/doc/api/search/mag_sel.png similarity index 100% rename from external/glm/doc/api/search/mag_sel.png rename to external/glm-0.9.9.8/doc/api/search/mag_sel.png diff --git a/external/glm-0.9.9.8/doc/api/search/nomatches.html b/external/glm-0.9.9.8/doc/api/search/nomatches.html new file mode 100644 index 0000000..529a265 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/nomatches.html @@ -0,0 +1,12 @@ + + + + + + + +
    +
    No Matches
    +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/pages_0.html b/external/glm-0.9.9.8/doc/api/search/pages_0.html new file mode 100644 index 0000000..5cb6873 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/pages_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/pages_0.js b/external/glm-0.9.9.8/doc/api/search/pages_0.js new file mode 100644 index 0000000..056e235 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/pages_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['opengl_20mathematics_20_28glm_29',['OpenGL Mathematics (GLM)',['../index.html',1,'']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/search/search.css b/external/glm-0.9.9.8/doc/api/search/search.css new file mode 100644 index 0000000..cccf76c --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/search.css @@ -0,0 +1,271 @@ +/*---------------- Search Box */ + +#FSearchBox { + float: left; +} + +#MSearchBox { + white-space : nowrap; + position: absolute; + float: none; + display: inline; + margin-top: 8px; + right: 0px; + width: 170px; + z-index: 102; + background-color: white; +} + +#MSearchBox .left +{ + display:block; + position:absolute; + left:10px; + width:20px; + height:19px; + background:url('search_l.png') no-repeat; + background-position:right; +} + +#MSearchSelect { + display:block; + position:absolute; + width:20px; + height:19px; +} + +.left #MSearchSelect { + left:4px; +} + +.right #MSearchSelect { + right:5px; +} + +#MSearchField { + display:block; + position:absolute; + height:19px; + background:url('search_m.png') repeat-x; + border:none; + width:111px; + margin-left:20px; + padding-left:4px; + color: #909090; + outline: none; + font: 9pt Arial, Verdana, sans-serif; +} + +#FSearchBox #MSearchField { + margin-left:15px; +} + +#MSearchBox .right { + display:block; + position:absolute; + right:10px; + top:0px; + width:20px; + height:19px; + background:url('search_r.png') no-repeat; + background-position:left; +} + +#MSearchClose { + display: none; + position: absolute; + top: 4px; + background : none; + border: none; + margin: 0px 4px 0px 0px; + padding: 0px 0px; + outline: none; +} + +.left #MSearchClose { + left: 6px; +} + +.right #MSearchClose { + right: 2px; +} + +.MSearchBoxActive #MSearchField { + color: #000000; +} + +/*---------------- Search filter selection */ + +#MSearchSelectWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #90A5CE; + background-color: #F9FAFC; + z-index: 1; + padding-top: 4px; + padding-bottom: 4px; + -moz-border-radius: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +.SelectItem { + font: 8pt Arial, Verdana, sans-serif; + padding-left: 2px; + padding-right: 12px; + border: 0px; +} + +span.SelectionMark { + margin-right: 4px; + font-family: monospace; + outline-style: none; + text-decoration: none; +} + +a.SelectItem { + display: block; + outline-style: none; + color: #000000; + text-decoration: none; + padding-left: 6px; + padding-right: 12px; +} + +a.SelectItem:focus, +a.SelectItem:active { + color: #000000; + outline-style: none; + text-decoration: none; +} + +a.SelectItem:hover { + color: #FFFFFF; + background-color: #3D578C; + outline-style: none; + text-decoration: none; + cursor: pointer; + display: block; +} + +/*---------------- Search results window */ + +iframe#MSearchResults { + width: 60ex; + height: 15em; +} + +#MSearchResultsWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #000; + background-color: #EEF1F7; +} + +/* ----------------------------------- */ + + +#SRIndex { + clear:both; + padding-bottom: 15px; +} + +.SREntry { + font-size: 10pt; + padding-left: 1ex; +} + +.SRPage .SREntry { + font-size: 8pt; + padding: 1px 5px; +} + +body.SRPage { + margin: 5px 2px; +} + +.SRChildren { + padding-left: 3ex; padding-bottom: .5em +} + +.SRPage .SRChildren { + display: none; +} + +.SRSymbol { + font-weight: bold; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRScope { + display: block; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRSymbol:focus, a.SRSymbol:active, +a.SRScope:focus, a.SRScope:active { + text-decoration: underline; +} + +span.SRScope { + padding-left: 4px; +} + +.SRPage .SRStatus { + padding: 2px 5px; + font-size: 8pt; + font-style: italic; +} + +.SRResult { + display: none; +} + +DIV.searchresults { + margin-left: 10px; + margin-right: 10px; +} + +/*---------------- External search page results */ + +.searchresult { + background-color: #F0F3F8; +} + +.pages b { + color: white; + padding: 5px 5px 3px 5px; + background-image: url("../tab_a.png"); + background-repeat: repeat-x; + text-shadow: 0 1px 1px #000000; +} + +.pages { + line-height: 17px; + margin-left: 4px; + text-decoration: none; +} + +.hl { + font-weight: bold; +} + +#searchresults { + margin-bottom: 20px; +} + +.searchpages { + margin-top: 10px; +} + diff --git a/external/glm-0.9.9.8/doc/api/search/search.js b/external/glm-0.9.9.8/doc/api/search/search.js new file mode 100644 index 0000000..6ebf134 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/search.js @@ -0,0 +1,791 @@ +function convertToId(search) +{ + var result = ''; + for (i=0;i do a search + { + this.Search(); + } + } + + this.OnSearchSelectKey = function(evt) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==40 && this.searchIndex0) // Up + { + this.searchIndex--; + this.OnSelectItem(this.searchIndex); + } + else if (e.keyCode==13 || e.keyCode==27) + { + this.OnSelectItem(this.searchIndex); + this.CloseSelectionWindow(); + this.DOMSearchField().focus(); + } + return false; + } + + // --------- Actions + + // Closes the results window. + this.CloseResultsWindow = function() + { + this.DOMPopupSearchResultsWindow().style.display = 'none'; + this.DOMSearchClose().style.display = 'none'; + this.Activate(false); + } + + this.CloseSelectionWindow = function() + { + this.DOMSearchSelectWindow().style.display = 'none'; + } + + // Performs a search. + this.Search = function() + { + this.keyTimeout = 0; + + // strip leading whitespace + var searchValue = this.DOMSearchField().value.replace(/^ +/, ""); + + var code = searchValue.toLowerCase().charCodeAt(0); + var idxChar = searchValue.substr(0, 1).toLowerCase(); + if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair + { + idxChar = searchValue.substr(0, 2); + } + + var resultsPage; + var resultsPageWithSearch; + var hasResultsPage; + + var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar); + if (idx!=-1) + { + var hexCode=idx.toString(16); + resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html'; + resultsPageWithSearch = resultsPage+'?'+escape(searchValue); + hasResultsPage = true; + } + else // nothing available for this search term + { + resultsPage = this.resultsPath + '/nomatches.html'; + resultsPageWithSearch = resultsPage; + hasResultsPage = false; + } + + window.frames.MSearchResults.location = resultsPageWithSearch; + var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); + + if (domPopupSearchResultsWindow.style.display!='block') + { + var domSearchBox = this.DOMSearchBox(); + this.DOMSearchClose().style.display = 'inline'; + if (this.insideFrame) + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + domPopupSearchResultsWindow.style.position = 'relative'; + domPopupSearchResultsWindow.style.display = 'block'; + var width = document.body.clientWidth - 8; // the -8 is for IE :-( + domPopupSearchResultsWindow.style.width = width + 'px'; + domPopupSearchResults.style.width = width + 'px'; + } + else + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth; + var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1; + domPopupSearchResultsWindow.style.display = 'block'; + left -= domPopupSearchResults.offsetWidth; + domPopupSearchResultsWindow.style.top = top + 'px'; + domPopupSearchResultsWindow.style.left = left + 'px'; + } + } + + this.lastSearchValue = searchValue; + this.lastResultsPage = resultsPage; + } + + // -------- Activation Functions + + // Activates or deactivates the search panel, resetting things to + // their default values if necessary. + this.Activate = function(isActive) + { + if (isActive || // open it + this.DOMPopupSearchResultsWindow().style.display == 'block' + ) + { + this.DOMSearchBox().className = 'MSearchBoxActive'; + + var searchField = this.DOMSearchField(); + + if (searchField.value == this.searchLabel) // clear "Search" term upon entry + { + searchField.value = ''; + this.searchActive = true; + } + } + else if (!isActive) // directly remove the panel + { + this.DOMSearchBox().className = 'MSearchBoxInactive'; + this.DOMSearchField().value = this.searchLabel; + this.searchActive = false; + this.lastSearchValue = '' + this.lastResultsPage = ''; + } + } +} + +// ----------------------------------------------------------------------- + +// The class that handles everything on the search results page. +function SearchResults(name) +{ + // The number of matches from the last run of . + this.lastMatchCount = 0; + this.lastKey = 0; + this.repeatOn = false; + + // Toggles the visibility of the passed element ID. + this.FindChildElement = function(id) + { + var parentElement = document.getElementById(id); + var element = parentElement.firstChild; + + while (element && element!=parentElement) + { + if (element.nodeName == 'DIV' && element.className == 'SRChildren') + { + return element; + } + + if (element.nodeName == 'DIV' && element.hasChildNodes()) + { + element = element.firstChild; + } + else if (element.nextSibling) + { + element = element.nextSibling; + } + else + { + do + { + element = element.parentNode; + } + while (element && element!=parentElement && !element.nextSibling); + + if (element && element!=parentElement) + { + element = element.nextSibling; + } + } + } + } + + this.Toggle = function(id) + { + var element = this.FindChildElement(id); + if (element) + { + if (element.style.display == 'block') + { + element.style.display = 'none'; + } + else + { + element.style.display = 'block'; + } + } + } + + // Searches for the passed string. If there is no parameter, + // it takes it from the URL query. + // + // Always returns true, since other documents may try to call it + // and that may or may not be possible. + this.Search = function(search) + { + if (!search) // get search word from URL + { + search = window.location.search; + search = search.substring(1); // Remove the leading '?' + search = unescape(search); + } + + search = search.replace(/^ +/, ""); // strip leading spaces + search = search.replace(/ +$/, ""); // strip trailing spaces + search = search.toLowerCase(); + search = convertToId(search); + + var resultRows = document.getElementsByTagName("div"); + var matches = 0; + + var i = 0; + while (i < resultRows.length) + { + var row = resultRows.item(i); + if (row.className == "SRResult") + { + var rowMatchName = row.id.toLowerCase(); + rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_' + + if (search.length<=rowMatchName.length && + rowMatchName.substr(0, search.length)==search) + { + row.style.display = 'block'; + matches++; + } + else + { + row.style.display = 'none'; + } + } + i++; + } + document.getElementById("Searching").style.display='none'; + if (matches == 0) // no results + { + document.getElementById("NoMatches").style.display='block'; + } + else // at least one result + { + document.getElementById("NoMatches").style.display='none'; + } + this.lastMatchCount = matches; + return true; + } + + // return the first item with index index or higher that is visible + this.NavNext = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index++; + } + return focusItem; + } + + this.NavPrev = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index--; + } + return focusItem; + } + + this.ProcessKeys = function(e) + { + if (e.type == "keydown") + { + this.repeatOn = false; + this.lastKey = e.keyCode; + } + else if (e.type == "keypress") + { + if (!this.repeatOn) + { + if (this.lastKey) this.repeatOn = true; + return false; // ignore first keypress after keydown + } + } + else if (e.type == "keyup") + { + this.lastKey = 0; + this.repeatOn = false; + } + return this.lastKey!=0; + } + + this.Nav = function(evt,itemIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + var newIndex = itemIndex-1; + var focusItem = this.NavPrev(newIndex); + if (focusItem) + { + var child = this.FindChildElement(focusItem.parentNode.parentNode.id); + if (child && child.style.display == 'block') // children visible + { + var n=0; + var tmpElem; + while (1) // search for last child + { + tmpElem = document.getElementById('Item'+newIndex+'_c'+n); + if (tmpElem) + { + focusItem = tmpElem; + } + else // found it! + { + break; + } + n++; + } + } + } + if (focusItem) + { + focusItem.focus(); + } + else // return focus to search field + { + parent.document.getElementById("MSearchField").focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = itemIndex+1; + var focusItem; + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem && elem.style.display == 'block') // children visible + { + focusItem = document.getElementById('Item'+itemIndex+'_c0'); + } + if (!focusItem) focusItem = this.NavNext(newIndex); + if (focusItem) focusItem.focus(); + } + else if (this.lastKey==39) // Right + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'block'; + } + else if (this.lastKey==37) // Left + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'none'; + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } + + this.NavChild = function(evt,itemIndex,childIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + if (childIndex>0) + { + var newIndex = childIndex-1; + document.getElementById('Item'+itemIndex+'_c'+newIndex).focus(); + } + else // already at first child, jump to parent + { + document.getElementById('Item'+itemIndex).focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = childIndex+1; + var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex); + if (!elem) // last child, jump to parent next parent + { + elem = this.NavNext(itemIndex+1); + } + if (elem) + { + elem.focus(); + } + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } +} + +function setKeyActions(elem,action) +{ + elem.setAttribute('onkeydown',action); + elem.setAttribute('onkeypress',action); + elem.setAttribute('onkeyup',action); +} + +function setClassAttr(elem,attr) +{ + elem.setAttribute('class',attr); + elem.setAttribute('className',attr); +} + +function createResults() +{ + var results = document.getElementById("SRResults"); + for (var e=0; e + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_0.js b/external/glm-0.9.9.8/doc/api/search/typedefs_0.js new file mode 100644 index 0000000..e133239 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_0.js @@ -0,0 +1,179 @@ +var searchData= +[ + ['aligned_5fbvec1',['aligned_bvec1',['../a00303.html#ga780a35f764020f553a9601a3fcdcd059',1,'glm']]], + ['aligned_5fbvec2',['aligned_bvec2',['../a00303.html#gae766b317c5afec852bfb3d74a3c54bc8',1,'glm']]], + ['aligned_5fbvec3',['aligned_bvec3',['../a00303.html#gae1964ba70d15915e5b710926decbb3cb',1,'glm']]], + ['aligned_5fbvec4',['aligned_bvec4',['../a00303.html#gae164a1f7879f828bc35e50b79d786b05',1,'glm']]], + ['aligned_5fdmat2',['aligned_dmat2',['../a00303.html#ga6783859382677d35fcd5dac7dcbefdbd',1,'glm']]], + ['aligned_5fdmat2x2',['aligned_dmat2x2',['../a00303.html#ga449a3ec2dde6b6bb4bb94c49a6aad388',1,'glm']]], + ['aligned_5fdmat2x3',['aligned_dmat2x3',['../a00303.html#ga53d519a7b1bfb69076b3ec206a6b3bd1',1,'glm']]], + ['aligned_5fdmat2x4',['aligned_dmat2x4',['../a00303.html#ga5ccb2baeb0ab57b818c24e0d486c59d0',1,'glm']]], + ['aligned_5fdmat3',['aligned_dmat3',['../a00303.html#ga19aa695ffdb45ce29f7ea0b5029627de',1,'glm']]], + ['aligned_5fdmat3x2',['aligned_dmat3x2',['../a00303.html#ga5f5123d834bd1170edf8c386834e112c',1,'glm']]], + ['aligned_5fdmat3x3',['aligned_dmat3x3',['../a00303.html#ga635bf3732281a2c2ca54d8f9d33d178f',1,'glm']]], + ['aligned_5fdmat3x4',['aligned_dmat3x4',['../a00303.html#gaf488c6ad88c185054595d4d5c7ba5b9d',1,'glm']]], + ['aligned_5fdmat4',['aligned_dmat4',['../a00303.html#ga001bb387ae8192fa94dbd8b23b600439',1,'glm']]], + ['aligned_5fdmat4x2',['aligned_dmat4x2',['../a00303.html#gaa409cfb737bd59b68dc683e9b03930cc',1,'glm']]], + ['aligned_5fdmat4x3',['aligned_dmat4x3',['../a00303.html#ga621e89ca1dbdcb7b5a3e7de237c44121',1,'glm']]], + ['aligned_5fdmat4x4',['aligned_dmat4x4',['../a00303.html#gac9bda778d0b7ad82f656dab99b71857a',1,'glm']]], + ['aligned_5fdvec1',['aligned_dvec1',['../a00303.html#ga4974f46ae5a19415d91316960a53617a',1,'glm']]], + ['aligned_5fdvec2',['aligned_dvec2',['../a00303.html#ga18d859f87122b2b3b2992ffe86dbebc0',1,'glm']]], + ['aligned_5fdvec3',['aligned_dvec3',['../a00303.html#gaa37869eea77d28419b2fb0ff70b69bf0',1,'glm']]], + ['aligned_5fdvec4',['aligned_dvec4',['../a00303.html#ga8a9f0a4795ccc442fa9901845026f9f5',1,'glm']]], + ['aligned_5fhighp_5fbvec1',['aligned_highp_bvec1',['../a00303.html#ga862843a45b01c35ffe4d44c47ea774ad',1,'glm']]], + ['aligned_5fhighp_5fbvec2',['aligned_highp_bvec2',['../a00303.html#ga0731b593c5e33559954c80f8687e76c6',1,'glm']]], + ['aligned_5fhighp_5fbvec3',['aligned_highp_bvec3',['../a00303.html#ga0913bdf048d0cb74af1d2512aec675bc',1,'glm']]], + ['aligned_5fhighp_5fbvec4',['aligned_highp_bvec4',['../a00303.html#ga9df1d0c425852cf63a57e533b7a83f4f',1,'glm']]], + ['aligned_5fhighp_5fdmat2',['aligned_highp_dmat2',['../a00303.html#ga3a7eeae43cb7673e14cc89bf02f7dd45',1,'glm']]], + ['aligned_5fhighp_5fdmat2x2',['aligned_highp_dmat2x2',['../a00303.html#gaef26dfe3855a91644665b55c9096a8c8',1,'glm']]], + ['aligned_5fhighp_5fdmat2x3',['aligned_highp_dmat2x3',['../a00303.html#gaa7c9d4ab7ab651cdf8001fe7843e238b',1,'glm']]], + ['aligned_5fhighp_5fdmat2x4',['aligned_highp_dmat2x4',['../a00303.html#gaa0d2b8a75f1908dcf32c27f8524bdced',1,'glm']]], + ['aligned_5fhighp_5fdmat3',['aligned_highp_dmat3',['../a00303.html#gad8f6abb2c9994850b5d5c04a5f979ed8',1,'glm']]], + ['aligned_5fhighp_5fdmat3x2',['aligned_highp_dmat3x2',['../a00303.html#gab069b2fc2ec785fc4e193cf26c022679',1,'glm']]], + ['aligned_5fhighp_5fdmat3x3',['aligned_highp_dmat3x3',['../a00303.html#ga66073b1ddef34b681741f572338ddb8e',1,'glm']]], + ['aligned_5fhighp_5fdmat3x4',['aligned_highp_dmat3x4',['../a00303.html#ga683c8ca66de323ea533a760abedd0efc',1,'glm']]], + ['aligned_5fhighp_5fdmat4',['aligned_highp_dmat4',['../a00303.html#gacaa7407ea00ffdd322ce86a57adb547e',1,'glm']]], + ['aligned_5fhighp_5fdmat4x2',['aligned_highp_dmat4x2',['../a00303.html#ga93a23ca3d42818d56e0702213c66354b',1,'glm']]], + ['aligned_5fhighp_5fdmat4x3',['aligned_highp_dmat4x3',['../a00303.html#gacab7374b560745cb1d0a306a90353f58',1,'glm']]], + ['aligned_5fhighp_5fdmat4x4',['aligned_highp_dmat4x4',['../a00303.html#ga1fbfba14368b742972d3b58a0a303682',1,'glm']]], + ['aligned_5fhighp_5fdvec1',['aligned_highp_dvec1',['../a00303.html#gaf0448b0f7ceb8273f7eda3a92205eefc',1,'glm']]], + ['aligned_5fhighp_5fdvec2',['aligned_highp_dvec2',['../a00303.html#gab173a333e6b7ce153ceba66ac4a321cf',1,'glm']]], + ['aligned_5fhighp_5fdvec3',['aligned_highp_dvec3',['../a00303.html#gae94ef61edfa047d05bc69b6065fc42ba',1,'glm']]], + ['aligned_5fhighp_5fdvec4',['aligned_highp_dvec4',['../a00303.html#ga8fad35c5677f228e261fe541f15363a4',1,'glm']]], + ['aligned_5fhighp_5fivec1',['aligned_highp_ivec1',['../a00303.html#gad63b8c5b4dc0500d54d7414ef555178f',1,'glm']]], + ['aligned_5fhighp_5fivec2',['aligned_highp_ivec2',['../a00303.html#ga41563650f36cb7f479e080de21e08418',1,'glm']]], + ['aligned_5fhighp_5fivec3',['aligned_highp_ivec3',['../a00303.html#ga6eca5170bb35eac90b4972590fd31a06',1,'glm']]], + ['aligned_5fhighp_5fivec4',['aligned_highp_ivec4',['../a00303.html#ga31bfa801e1579fdba752ec3f7a45ec91',1,'glm']]], + ['aligned_5fhighp_5fmat2',['aligned_highp_mat2',['../a00303.html#gaf9db5e8a929c317da5aa12cc53741b63',1,'glm']]], + ['aligned_5fhighp_5fmat2x2',['aligned_highp_mat2x2',['../a00303.html#gab559d943abf92bc588bcd3f4c0e4664b',1,'glm']]], + ['aligned_5fhighp_5fmat2x3',['aligned_highp_mat2x3',['../a00303.html#ga50c9af5aa3a848956d625fc64dc8488e',1,'glm']]], + ['aligned_5fhighp_5fmat2x4',['aligned_highp_mat2x4',['../a00303.html#ga0edcfdd179f8a158342eead48a4d0c2a',1,'glm']]], + ['aligned_5fhighp_5fmat3',['aligned_highp_mat3',['../a00303.html#gabab3afcc04459c7b123604ae5dc663f6',1,'glm']]], + ['aligned_5fhighp_5fmat3x2',['aligned_highp_mat3x2',['../a00303.html#ga9fc2167b47c9be9295f2d8eea7f0ca75',1,'glm']]], + ['aligned_5fhighp_5fmat3x3',['aligned_highp_mat3x3',['../a00303.html#ga2f7b8c99ba6f2d07c73a195a8143c259',1,'glm']]], + ['aligned_5fhighp_5fmat3x4',['aligned_highp_mat3x4',['../a00303.html#ga52e00afd0eb181e6738f40cf41787049',1,'glm']]], + ['aligned_5fhighp_5fmat4',['aligned_highp_mat4',['../a00303.html#ga058ae939bfdbcbb80521dd4a3b01afba',1,'glm']]], + ['aligned_5fhighp_5fmat4x2',['aligned_highp_mat4x2',['../a00303.html#ga84e1f5e0718952a079b748825c03f956',1,'glm']]], + ['aligned_5fhighp_5fmat4x3',['aligned_highp_mat4x3',['../a00303.html#gafff1684c4ff19b4a818138ccacc1e78d',1,'glm']]], + ['aligned_5fhighp_5fmat4x4',['aligned_highp_mat4x4',['../a00303.html#ga40d49648083a0498a12a4bb41ae6ece8',1,'glm']]], + ['aligned_5fhighp_5fuvec1',['aligned_highp_uvec1',['../a00303.html#ga5b80e28396c6ef7d32c6fd18df498451',1,'glm']]], + ['aligned_5fhighp_5fuvec2',['aligned_highp_uvec2',['../a00303.html#ga04db692662a4908beeaf5a5ba6e19483',1,'glm']]], + ['aligned_5fhighp_5fuvec3',['aligned_highp_uvec3',['../a00303.html#ga073fd6e8b241afade6d8afbd676b2667',1,'glm']]], + ['aligned_5fhighp_5fuvec4',['aligned_highp_uvec4',['../a00303.html#gabdd60462042859f876c17c7346c732a5',1,'glm']]], + ['aligned_5fhighp_5fvec1',['aligned_highp_vec1',['../a00303.html#ga4d0bd70d5fac49b800546d608b707513',1,'glm']]], + ['aligned_5fhighp_5fvec2',['aligned_highp_vec2',['../a00303.html#gac9f8482dde741fb6bab7248b81a45465',1,'glm']]], + ['aligned_5fhighp_5fvec3',['aligned_highp_vec3',['../a00303.html#ga65415d2d68c9cc0ca554524a8f5510b2',1,'glm']]], + ['aligned_5fhighp_5fvec4',['aligned_highp_vec4',['../a00303.html#ga7cb26d354dd69d23849c34c4fba88da9',1,'glm']]], + ['aligned_5fivec1',['aligned_ivec1',['../a00303.html#ga76298aed82a439063c3d55980c84aa0b',1,'glm']]], + ['aligned_5fivec2',['aligned_ivec2',['../a00303.html#gae4f38fd2c86cee6940986197777b3ca4',1,'glm']]], + ['aligned_5fivec3',['aligned_ivec3',['../a00303.html#ga32794322d294e5ace7fed4a61896f270',1,'glm']]], + ['aligned_5fivec4',['aligned_ivec4',['../a00303.html#ga7f79eae5927c9033d84617e49f6f34e4',1,'glm']]], + ['aligned_5flowp_5fbvec1',['aligned_lowp_bvec1',['../a00303.html#gac6036449ab1c4abf8efe1ea00fcdd1c9',1,'glm']]], + ['aligned_5flowp_5fbvec2',['aligned_lowp_bvec2',['../a00303.html#ga59fadcd3835646e419372ae8b43c5d37',1,'glm']]], + ['aligned_5flowp_5fbvec3',['aligned_lowp_bvec3',['../a00303.html#ga83aab4d191053f169c93a3e364f2e118',1,'glm']]], + ['aligned_5flowp_5fbvec4',['aligned_lowp_bvec4',['../a00303.html#gaa7a76555ee4853614e5755181a8dd54e',1,'glm']]], + ['aligned_5flowp_5fdmat2',['aligned_lowp_dmat2',['../a00303.html#ga79a90173d8faa9816dc852ce447d66ca',1,'glm']]], + ['aligned_5flowp_5fdmat2x2',['aligned_lowp_dmat2x2',['../a00303.html#ga07cb8e846666cbf56045b064fb553d2e',1,'glm']]], + ['aligned_5flowp_5fdmat2x3',['aligned_lowp_dmat2x3',['../a00303.html#ga7a4536b6e1f2ebb690f63816b5d7e48b',1,'glm']]], + ['aligned_5flowp_5fdmat2x4',['aligned_lowp_dmat2x4',['../a00303.html#gab0cf4f7c9a264941519acad286e055ea',1,'glm']]], + ['aligned_5flowp_5fdmat3',['aligned_lowp_dmat3',['../a00303.html#gac00e15efded8a57c9dec3aed0fb547e7',1,'glm']]], + ['aligned_5flowp_5fdmat3x2',['aligned_lowp_dmat3x2',['../a00303.html#gaa281a47d5d627313984d0f8df993b648',1,'glm']]], + ['aligned_5flowp_5fdmat3x3',['aligned_lowp_dmat3x3',['../a00303.html#ga7f3148a72355e39932d6855baca42ebc',1,'glm']]], + ['aligned_5flowp_5fdmat3x4',['aligned_lowp_dmat3x4',['../a00303.html#gaea3ccc5ef5b178e6e49b4fa1427605d3',1,'glm']]], + ['aligned_5flowp_5fdmat4',['aligned_lowp_dmat4',['../a00303.html#gab92c6d7d58d43dfb8147e9aedfe8351b',1,'glm']]], + ['aligned_5flowp_5fdmat4x2',['aligned_lowp_dmat4x2',['../a00303.html#gaf806dfdaffb2e9f7681b1cd2825898ce',1,'glm']]], + ['aligned_5flowp_5fdmat4x3',['aligned_lowp_dmat4x3',['../a00303.html#gab0931ac7807fa1428c7bbf249efcdf0d',1,'glm']]], + ['aligned_5flowp_5fdmat4x4',['aligned_lowp_dmat4x4',['../a00303.html#gad8220a93d2fca2dd707821b4ab6f809e',1,'glm']]], + ['aligned_5flowp_5fdvec1',['aligned_lowp_dvec1',['../a00303.html#ga7f8a2cc5a686e52b1615761f4978ca62',1,'glm']]], + ['aligned_5flowp_5fdvec2',['aligned_lowp_dvec2',['../a00303.html#ga0e37cff4a43cca866101f0a35f01db6d',1,'glm']]], + ['aligned_5flowp_5fdvec3',['aligned_lowp_dvec3',['../a00303.html#gab9e669c4efd52d3347fc6d5f6b20fd59',1,'glm']]], + ['aligned_5flowp_5fdvec4',['aligned_lowp_dvec4',['../a00303.html#ga226f5ec7a953cea559c16fe3aff9924f',1,'glm']]], + ['aligned_5flowp_5fivec1',['aligned_lowp_ivec1',['../a00303.html#ga1101d3a82b2e3f5f8828bd8f3adab3e1',1,'glm']]], + ['aligned_5flowp_5fivec2',['aligned_lowp_ivec2',['../a00303.html#ga44c4accad582cfbd7226a19b83b0cadc',1,'glm']]], + ['aligned_5flowp_5fivec3',['aligned_lowp_ivec3',['../a00303.html#ga65663f10a02e52cedcddbcfe36ddf38d',1,'glm']]], + ['aligned_5flowp_5fivec4',['aligned_lowp_ivec4',['../a00303.html#gaae92fcec8b2e0328ffbeac31cc4fc419',1,'glm']]], + ['aligned_5flowp_5fmat2',['aligned_lowp_mat2',['../a00303.html#ga17c424412207b00dba1cf587b099eea3',1,'glm']]], + ['aligned_5flowp_5fmat2x2',['aligned_lowp_mat2x2',['../a00303.html#ga0e44aeb930a47f9cbf2db15b56433b0f',1,'glm']]], + ['aligned_5flowp_5fmat2x3',['aligned_lowp_mat2x3',['../a00303.html#ga7dec6d96bc61312b1e56d137c9c74030',1,'glm']]], + ['aligned_5flowp_5fmat2x4',['aligned_lowp_mat2x4',['../a00303.html#gaa694fab1f8df5f658846573ba8ffc563',1,'glm']]], + ['aligned_5flowp_5fmat3',['aligned_lowp_mat3',['../a00303.html#ga1eb9076cc28ead5020fd3029fd0472c5',1,'glm']]], + ['aligned_5flowp_5fmat3x2',['aligned_lowp_mat3x2',['../a00303.html#ga2d6639f0bd777bae1ee0eba71cd7bfdc',1,'glm']]], + ['aligned_5flowp_5fmat3x3',['aligned_lowp_mat3x3',['../a00303.html#gaeaab04e378a90956eec8d68a99d777ed',1,'glm']]], + ['aligned_5flowp_5fmat3x4',['aligned_lowp_mat3x4',['../a00303.html#ga1f03696ab066572c6c044e63edf635a2',1,'glm']]], + ['aligned_5flowp_5fmat4',['aligned_lowp_mat4',['../a00303.html#ga25ea2f684e36aa5e978b4f2f86593824',1,'glm']]], + ['aligned_5flowp_5fmat4x2',['aligned_lowp_mat4x2',['../a00303.html#ga2cb16c3fdfb15e0719d942ee3b548bc4',1,'glm']]], + ['aligned_5flowp_5fmat4x3',['aligned_lowp_mat4x3',['../a00303.html#ga7e96981e872f17a780d9f1c22dc1f512',1,'glm']]], + ['aligned_5flowp_5fmat4x4',['aligned_lowp_mat4x4',['../a00303.html#gadae3dcfc22d28c64d0548cbfd9d08719',1,'glm']]], + ['aligned_5flowp_5fuvec1',['aligned_lowp_uvec1',['../a00303.html#gad09b93acc43c43423408d17a64f6d7ca',1,'glm']]], + ['aligned_5flowp_5fuvec2',['aligned_lowp_uvec2',['../a00303.html#ga6f94fcd28dde906fc6cad5f742b55c1a',1,'glm']]], + ['aligned_5flowp_5fuvec3',['aligned_lowp_uvec3',['../a00303.html#ga9e9f006970b1a00862e3e6e599eedd4c',1,'glm']]], + ['aligned_5flowp_5fuvec4',['aligned_lowp_uvec4',['../a00303.html#ga46b1b0b9eb8625a5d69137bd66cd13dc',1,'glm']]], + ['aligned_5flowp_5fvec1',['aligned_lowp_vec1',['../a00303.html#gab34aee3d5e121c543fea11d2c50ecc43',1,'glm']]], + ['aligned_5flowp_5fvec2',['aligned_lowp_vec2',['../a00303.html#ga53ac5d252317f1fa43c2ef921857bf13',1,'glm']]], + ['aligned_5flowp_5fvec3',['aligned_lowp_vec3',['../a00303.html#ga98f0b5cd65fce164ff1367c2a3b3aa1e',1,'glm']]], + ['aligned_5flowp_5fvec4',['aligned_lowp_vec4',['../a00303.html#ga82f7275d6102593a69ce38cdad680409',1,'glm']]], + ['aligned_5fmat2',['aligned_mat2',['../a00303.html#ga5a8a5f8c47cd7d5502dd9932f83472b9',1,'glm']]], + ['aligned_5fmat2x2',['aligned_mat2x2',['../a00303.html#gabb04f459d81d753d278b2072e2375e8e',1,'glm']]], + ['aligned_5fmat2x3',['aligned_mat2x3',['../a00303.html#ga832476bb1c59ef673db37433ff34e399',1,'glm']]], + ['aligned_5fmat2x4',['aligned_mat2x4',['../a00303.html#gadab11a7504430825b648ff7c7e36b725',1,'glm']]], + ['aligned_5fmat3',['aligned_mat3',['../a00303.html#ga43a92a24ca863e0e0f3b65834b3cf714',1,'glm']]], + ['aligned_5fmat3x2',['aligned_mat3x2',['../a00303.html#ga5c0df24ba85eafafc0eb0c90690510ed',1,'glm']]], + ['aligned_5fmat3x3',['aligned_mat3x3',['../a00303.html#gadb065dbe5c11271fef8cf2ea8608f187',1,'glm']]], + ['aligned_5fmat3x4',['aligned_mat3x4',['../a00303.html#ga88061c72c997b94c420f2b0a60d9df26',1,'glm']]], + ['aligned_5fmat4',['aligned_mat4',['../a00303.html#gab0fddcf95dd51cbcbf624ea7c40dfeb8',1,'glm']]], + ['aligned_5fmat4x2',['aligned_mat4x2',['../a00303.html#gac9a2d0fb815fd5c2bd58b869c55e32d3',1,'glm']]], + ['aligned_5fmat4x3',['aligned_mat4x3',['../a00303.html#ga452bbbfd26e244de216e4d004d50bb74',1,'glm']]], + ['aligned_5fmat4x4',['aligned_mat4x4',['../a00303.html#ga8b8fb86973a0b768c5bd802c92fac1a1',1,'glm']]], + ['aligned_5fmediump_5fbvec1',['aligned_mediump_bvec1',['../a00303.html#gadd3b8bd71a758f7fb0da8e525156f34e',1,'glm']]], + ['aligned_5fmediump_5fbvec2',['aligned_mediump_bvec2',['../a00303.html#gacb183eb5e67ec0d0ea5a016cba962810',1,'glm']]], + ['aligned_5fmediump_5fbvec3',['aligned_mediump_bvec3',['../a00303.html#gacfa4a542f1b20a5b63ad702dfb6fd587',1,'glm']]], + ['aligned_5fmediump_5fbvec4',['aligned_mediump_bvec4',['../a00303.html#ga91bc1f513bb9b0fd60281d57ded9a48c',1,'glm']]], + ['aligned_5fmediump_5fdmat2',['aligned_mediump_dmat2',['../a00303.html#ga62a2dfd668c91072b72c3109fc6cda28',1,'glm']]], + ['aligned_5fmediump_5fdmat2x2',['aligned_mediump_dmat2x2',['../a00303.html#ga9b7feec247d378dd407ba81f56ea96c8',1,'glm']]], + ['aligned_5fmediump_5fdmat2x3',['aligned_mediump_dmat2x3',['../a00303.html#gafcb189f4f93648fe7ca802ca4aca2eb8',1,'glm']]], + ['aligned_5fmediump_5fdmat2x4',['aligned_mediump_dmat2x4',['../a00303.html#ga92f8873e3bbd5ca1323c8bbe5725cc5e',1,'glm']]], + ['aligned_5fmediump_5fdmat3',['aligned_mediump_dmat3',['../a00303.html#ga6dc2832b747c00e0a0df621aba196960',1,'glm']]], + ['aligned_5fmediump_5fdmat3x2',['aligned_mediump_dmat3x2',['../a00303.html#ga5a97f0355d801de3444d42c1d5b40438',1,'glm']]], + ['aligned_5fmediump_5fdmat3x3',['aligned_mediump_dmat3x3',['../a00303.html#ga649d0acf01054b17e679cf00e150e025',1,'glm']]], + ['aligned_5fmediump_5fdmat3x4',['aligned_mediump_dmat3x4',['../a00303.html#ga45e155a4840f69b2fa4ed8047a676860',1,'glm']]], + ['aligned_5fmediump_5fdmat4',['aligned_mediump_dmat4',['../a00303.html#ga8a9376d82f0e946e25137eb55543e6ce',1,'glm']]], + ['aligned_5fmediump_5fdmat4x2',['aligned_mediump_dmat4x2',['../a00303.html#gabc25e547f4de4af62403492532cd1b6d',1,'glm']]], + ['aligned_5fmediump_5fdmat4x3',['aligned_mediump_dmat4x3',['../a00303.html#gae84f4763ecdc7457ecb7930bad12057c',1,'glm']]], + ['aligned_5fmediump_5fdmat4x4',['aligned_mediump_dmat4x4',['../a00303.html#gaa292ebaa907afdecb2d5967fb4fb1247',1,'glm']]], + ['aligned_5fmediump_5fdvec1',['aligned_mediump_dvec1',['../a00303.html#ga7180b685c581adb224406a7f831608e3',1,'glm']]], + ['aligned_5fmediump_5fdvec2',['aligned_mediump_dvec2',['../a00303.html#ga9af1eabe22f569e70d9893be72eda0f5',1,'glm']]], + ['aligned_5fmediump_5fdvec3',['aligned_mediump_dvec3',['../a00303.html#ga058e7ddab1428e47f2197bdd3a5a6953',1,'glm']]], + ['aligned_5fmediump_5fdvec4',['aligned_mediump_dvec4',['../a00303.html#gaffd747ea2aea1e69c2ecb04e68521b21',1,'glm']]], + ['aligned_5fmediump_5fivec1',['aligned_mediump_ivec1',['../a00303.html#ga20e63dd980b81af10cadbbe219316650',1,'glm']]], + ['aligned_5fmediump_5fivec2',['aligned_mediump_ivec2',['../a00303.html#gaea13d89d49daca2c796aeaa82fc2c2f2',1,'glm']]], + ['aligned_5fmediump_5fivec3',['aligned_mediump_ivec3',['../a00303.html#gabbf0f15e9c3d9868e43241ad018f82bd',1,'glm']]], + ['aligned_5fmediump_5fivec4',['aligned_mediump_ivec4',['../a00303.html#ga6099dd7878d0a78101a4250d8cd2d736',1,'glm']]], + ['aligned_5fmediump_5fmat2',['aligned_mediump_mat2',['../a00303.html#gaf6f041b212c57664d88bc6aefb7e36f3',1,'glm']]], + ['aligned_5fmediump_5fmat2x2',['aligned_mediump_mat2x2',['../a00303.html#ga04bf49316ee777d42fcfe681ee37d7be',1,'glm']]], + ['aligned_5fmediump_5fmat2x3',['aligned_mediump_mat2x3',['../a00303.html#ga26a0b61e444a51a37b9737cf4d84291b',1,'glm']]], + ['aligned_5fmediump_5fmat2x4',['aligned_mediump_mat2x4',['../a00303.html#ga163facc9ed2692ea1300ed57c5d12b17',1,'glm']]], + ['aligned_5fmediump_5fmat3',['aligned_mediump_mat3',['../a00303.html#ga3b76ba17ae5d53debeb6f7e55919a57c',1,'glm']]], + ['aligned_5fmediump_5fmat3x2',['aligned_mediump_mat3x2',['../a00303.html#ga80dee705d714300378e0847f45059097',1,'glm']]], + ['aligned_5fmediump_5fmat3x3',['aligned_mediump_mat3x3',['../a00303.html#ga721f5404caf40d68962dcc0529de71d9',1,'glm']]], + ['aligned_5fmediump_5fmat3x4',['aligned_mediump_mat3x4',['../a00303.html#ga98f4dc6722a2541a990918c074075359',1,'glm']]], + ['aligned_5fmediump_5fmat4',['aligned_mediump_mat4',['../a00303.html#gaeefee8317192174596852ce19b602720',1,'glm']]], + ['aligned_5fmediump_5fmat4x2',['aligned_mediump_mat4x2',['../a00303.html#ga46f372a006345c252a41267657cc22c0',1,'glm']]], + ['aligned_5fmediump_5fmat4x3',['aligned_mediump_mat4x3',['../a00303.html#ga0effece4545acdebdc2a5512a303110e',1,'glm']]], + ['aligned_5fmediump_5fmat4x4',['aligned_mediump_mat4x4',['../a00303.html#ga312864244cae4e8f10f478cffd0f76de',1,'glm']]], + ['aligned_5fmediump_5fuvec1',['aligned_mediump_uvec1',['../a00303.html#gacb78126ea2eb779b41c7511128ff1283',1,'glm']]], + ['aligned_5fmediump_5fuvec2',['aligned_mediump_uvec2',['../a00303.html#ga081d53e0a71443d0b68ea61c870f9adc',1,'glm']]], + ['aligned_5fmediump_5fuvec3',['aligned_mediump_uvec3',['../a00303.html#gad6fc921bdde2bdbc7e09b028e1e9b379',1,'glm']]], + ['aligned_5fmediump_5fuvec4',['aligned_mediump_uvec4',['../a00303.html#ga73ea0c1ba31580e107d21270883f51fc',1,'glm']]], + ['aligned_5fmediump_5fvec1',['aligned_mediump_vec1',['../a00303.html#ga6b797eec76fa471e300158f3453b3b2e',1,'glm']]], + ['aligned_5fmediump_5fvec2',['aligned_mediump_vec2',['../a00303.html#ga026a55ddbf2bafb1432f1157a2708616',1,'glm']]], + ['aligned_5fmediump_5fvec3',['aligned_mediump_vec3',['../a00303.html#ga3a25e494173f6a64637b08a1b50a2132',1,'glm']]], + ['aligned_5fmediump_5fvec4',['aligned_mediump_vec4',['../a00303.html#ga320d1c661cff2ef214eb50241f2928b2',1,'glm']]], + ['aligned_5fuvec1',['aligned_uvec1',['../a00303.html#ga1ff8ed402c93d280ff0597c1c5e7c548',1,'glm']]], + ['aligned_5fuvec2',['aligned_uvec2',['../a00303.html#ga074137e3be58528d67041c223d49f398',1,'glm']]], + ['aligned_5fuvec3',['aligned_uvec3',['../a00303.html#ga2a8d9c3046f89d854eb758adfa0811c0',1,'glm']]], + ['aligned_5fuvec4',['aligned_uvec4',['../a00303.html#gabf842c45eea186170c267a328e3f3b7d',1,'glm']]], + ['aligned_5fvec1',['aligned_vec1',['../a00303.html#ga05e6d4c908965d04191c2070a8d0a65e',1,'glm']]], + ['aligned_5fvec2',['aligned_vec2',['../a00303.html#ga0682462f8096a226773e20fac993cde5',1,'glm']]], + ['aligned_5fvec3',['aligned_vec3',['../a00303.html#ga7cf643b66664e0cd3c48759ae66c2bd0',1,'glm']]], + ['aligned_5fvec4',['aligned_vec4',['../a00303.html#ga85d89e83cb8137e1be1446de8c3b643a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_1.html b/external/glm-0.9.9.8/doc/api/search/typedefs_1.html similarity index 97% rename from external/glm/doc/api/search/typedefs_1.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_1.html index c44c36f..6654493 100644 --- a/external/glm/doc/api/search/typedefs_1.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_1.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_1.js b/external/glm-0.9.9.8/doc/api/search/typedefs_1.js new file mode 100644 index 0000000..c027e17 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_1.js @@ -0,0 +1,22 @@ +var searchData= +[ + ['bool1',['bool1',['../a00315.html#gaddcd7aa2e30e61af5b38660613d3979e',1,'glm']]], + ['bool1x1',['bool1x1',['../a00315.html#ga7f895c936f0c29c8729afbbf22806090',1,'glm']]], + ['bool2',['bool2',['../a00315.html#gaa09ab65ec9c3c54305ff502e2b1fe6d9',1,'glm']]], + ['bool2x2',['bool2x2',['../a00315.html#gadb3703955e513632f98ba12fe051ba3e',1,'glm']]], + ['bool2x3',['bool2x3',['../a00315.html#ga9ae6ee155d0f90cb1ae5b6c4546738a0',1,'glm']]], + ['bool2x4',['bool2x4',['../a00315.html#ga4d7fa65be8e8e4ad6d920b45c44e471f',1,'glm']]], + ['bool3',['bool3',['../a00315.html#ga99629f818737f342204071ef8296b2ed',1,'glm']]], + ['bool3x2',['bool3x2',['../a00315.html#gac7d7311f7e0fa8b6163d96dab033a755',1,'glm']]], + ['bool3x3',['bool3x3',['../a00315.html#ga6c97b99aac3e302053ffb58aace9033c',1,'glm']]], + ['bool3x4',['bool3x4',['../a00315.html#gae7d6b679463d37d6c527d478fb470fdf',1,'glm']]], + ['bool4',['bool4',['../a00315.html#ga13c3200b82708f73faac6d7f09ec91a3',1,'glm']]], + ['bool4x2',['bool4x2',['../a00315.html#ga9ed830f52408b2f83c085063a3eaf1d0',1,'glm']]], + ['bool4x3',['bool4x3',['../a00315.html#gad0f5dc7f22c2065b1b06d57f1c0658fe',1,'glm']]], + ['bool4x4',['bool4x4',['../a00315.html#ga7d2a7d13986602ae2896bfaa394235d4',1,'glm']]], + ['bvec1',['bvec1',['../a00265.html#ga067af382616d93f8e850baae5154cdcc',1,'glm']]], + ['bvec2',['bvec2',['../a00281.html#ga0b6123e03653cc1bbe366fc55238a934',1,'glm']]], + ['bvec3',['bvec3',['../a00281.html#ga197151b72dfaf289daf98b361760ffe7',1,'glm']]], + ['bvec4',['bvec4',['../a00281.html#ga9f7b9712373ff4342d9114619b55f5e3',1,'glm']]], + ['byte',['byte',['../a00354.html#ga3005cb0d839d546c616becfa6602c607',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_2.html b/external/glm-0.9.9.8/doc/api/search/typedefs_2.html similarity index 97% rename from external/glm/doc/api/search/typedefs_2.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_2.html index d64bac3..394c4cf 100644 --- a/external/glm/doc/api/search/typedefs_2.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_2.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_2.js b/external/glm-0.9.9.8/doc/api/search/typedefs_2.js new file mode 100644 index 0000000..4e608e3 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_2.js @@ -0,0 +1,37 @@ +var searchData= +[ + ['ddualquat',['ddualquat',['../a00317.html#ga3d71f98d84ba59dfe4e369fde4714cd6',1,'glm']]], + ['dmat2',['dmat2',['../a00283.html#ga21dbd1f987775d7cc7607c139531c7e6',1,'glm']]], + ['dmat2x2',['dmat2x2',['../a00283.html#ga66b6a9af787e468a46dfe24189e87f9b',1,'glm']]], + ['dmat2x3',['dmat2x3',['../a00283.html#ga92cd388753d48e20de69ea2dbedf826a',1,'glm']]], + ['dmat2x4',['dmat2x4',['../a00283.html#gaef2198807e937072803ae0ae45e1965e',1,'glm']]], + ['dmat3',['dmat3',['../a00283.html#ga6f40aa56265b4b0ccad41b86802efe33',1,'glm']]], + ['dmat3x2',['dmat3x2',['../a00283.html#ga001e3e0638fbf8719788fc64c5b8cf39',1,'glm']]], + ['dmat3x3',['dmat3x3',['../a00283.html#ga970cb3306be25a5ca5db5a9456831228',1,'glm']]], + ['dmat3x4',['dmat3x4',['../a00283.html#ga0412a634d183587e6188e9b11869f8f4',1,'glm']]], + ['dmat4',['dmat4',['../a00283.html#ga0f34486bb7fec8e5a5b3830b6a6cbeca',1,'glm']]], + ['dmat4x2',['dmat4x2',['../a00283.html#ga9bc0b3ab8b6ba2cb6782e179ad7ad156',1,'glm']]], + ['dmat4x3',['dmat4x3',['../a00283.html#gacd18864049f8c83799babe7e596ca05b',1,'glm']]], + ['dmat4x4',['dmat4x4',['../a00283.html#gad5a6484b983b74f9d801cab8bc4e6a10',1,'glm']]], + ['double1',['double1',['../a00315.html#ga20b861a9b6e2a300323671c57a02525b',1,'glm']]], + ['double1x1',['double1x1',['../a00315.html#ga45f16a4dd0db1f199afaed9fd12fe9a8',1,'glm']]], + ['double2',['double2',['../a00315.html#ga31b729b04facccda73f07ed26958b3c2',1,'glm']]], + ['double2x2',['double2x2',['../a00315.html#gae57d0201096834d25f2b91b319e7cdbd',1,'glm']]], + ['double2x3',['double2x3',['../a00315.html#ga3655bc324008553ca61f39952d0b2d08',1,'glm']]], + ['double2x4',['double2x4',['../a00315.html#gacd33061fc64a7b2dcfd7322c49d9557a',1,'glm']]], + ['double3',['double3',['../a00315.html#ga3d8b9028a1053a44a98902cd1c389472',1,'glm']]], + ['double3x2',['double3x2',['../a00315.html#ga5ec08fc39c9d783dfcc488be240fe975',1,'glm']]], + ['double3x3',['double3x3',['../a00315.html#ga4bad5bb20c6ddaecfe4006c93841d180',1,'glm']]], + ['double3x4',['double3x4',['../a00315.html#ga2ef022e453d663d70aec414b2a80f756',1,'glm']]], + ['double4',['double4',['../a00315.html#gaf92f58af24f35617518aeb3d4f63fda6',1,'glm']]], + ['double4x2',['double4x2',['../a00315.html#gabca29ccceea53669618b751aae0ba83d',1,'glm']]], + ['double4x3',['double4x3',['../a00315.html#gafad66a02ccd360c86d6ab9ff9cfbc19c',1,'glm']]], + ['double4x4',['double4x4',['../a00315.html#gaab541bed2e788e4537852a2492860806',1,'glm']]], + ['dquat',['dquat',['../a00249.html#ga1181459aa5d640a3ea43861b118f3f0b',1,'glm']]], + ['dualquat',['dualquat',['../a00317.html#gae93abee0c979902fbec6a7bee0f6fae1',1,'glm']]], + ['dvec1',['dvec1',['../a00268.html#ga6221af17edc2d4477a4583d2cd53e569',1,'glm']]], + ['dvec2',['dvec2',['../a00281.html#ga8b09c71aaac7da7867ae58377fe219a8',1,'glm']]], + ['dvec3',['dvec3',['../a00281.html#ga5b83ae3d0fdec519c038e4d2cf967cf0',1,'glm']]], + ['dvec4',['dvec4',['../a00281.html#ga57debab5d98ce618f7b2a97fe26eb3ac',1,'glm']]], + ['dword',['dword',['../a00354.html#ga86e46fff9f80ae33893d8d697f2ca98a',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_3.html b/external/glm-0.9.9.8/doc/api/search/typedefs_3.html similarity index 97% rename from external/glm/doc/api/search/typedefs_3.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_3.html index 10b9917..55ada50 100644 --- a/external/glm/doc/api/search/typedefs_3.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_3.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_3.js b/external/glm-0.9.9.8/doc/api/search/typedefs_3.js new file mode 100644 index 0000000..38dae38 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_3.js @@ -0,0 +1,78 @@ +var searchData= +[ + ['f32',['f32',['../a00304.html#gabe6a542dd6c1d5ffd847f1b9b4c9c9b7',1,'glm']]], + ['f32mat1',['f32mat1',['../a00346.html#ga145ad477a2a3e152855511c3b52469a6',1,'glm::gtx']]], + ['f32mat1x1',['f32mat1x1',['../a00346.html#gac88c6a4dbfc380aa26e3adbbade36348',1,'glm::gtx']]], + ['f32mat2',['f32mat2',['../a00304.html#gab12383ed6ac7595ed6fde4d266c58425',1,'glm']]], + ['f32mat2x2',['f32mat2x2',['../a00304.html#ga04100c76f7d55a0dd0983ccf05142bff',1,'glm']]], + ['f32mat2x3',['f32mat2x3',['../a00304.html#gab256cdab5eb582e426d749ae77b5b566',1,'glm']]], + ['f32mat2x4',['f32mat2x4',['../a00304.html#gaf512b74c4400b68f9fdf9388b3d6aac8',1,'glm']]], + ['f32mat3',['f32mat3',['../a00304.html#ga856f3905ee7cc2e4890a8a1d56c150be',1,'glm']]], + ['f32mat3x2',['f32mat3x2',['../a00304.html#ga1320a08e14fdff3821241eefab6947e9',1,'glm']]], + ['f32mat3x3',['f32mat3x3',['../a00304.html#ga65261fa8a21045c8646ddff114a56174',1,'glm']]], + ['f32mat3x4',['f32mat3x4',['../a00304.html#gab90ade28222f8b861d5ceaf81a3a7f5d',1,'glm']]], + ['f32mat4',['f32mat4',['../a00304.html#ga99d1b85ff99956b33da7e9992aad129a',1,'glm']]], + ['f32mat4x2',['f32mat4x2',['../a00304.html#ga3b32ca1e57a4ef91babbc3d35a34ea20',1,'glm']]], + ['f32mat4x3',['f32mat4x3',['../a00304.html#ga239b96198771b7add8eea7e6b59840c0',1,'glm']]], + ['f32mat4x4',['f32mat4x4',['../a00304.html#gaee4da0e9fbd8cfa2f89cb80889719dc3',1,'glm']]], + ['f32quat',['f32quat',['../a00304.html#ga38e674196ba411d642be40c47bf33939',1,'glm']]], + ['f32vec1',['f32vec1',['../a00304.html#ga701f32ab5b3fb06996b41f5c0d643805',1,'glm::f32vec1()'],['../a00346.html#ga07f8d7348eb7ae059a84c118fdfeb943',1,'glm::gtx::f32vec1()']]], + ['f32vec2',['f32vec2',['../a00304.html#ga5d6c70e080409a76a257dc55bd8ea2c8',1,'glm']]], + ['f32vec3',['f32vec3',['../a00304.html#gaea5c4518e175162e306d2c2b5ef5ac79',1,'glm']]], + ['f32vec4',['f32vec4',['../a00304.html#ga31c6ca0e074a44007f49a9a3720b18c8',1,'glm']]], + ['f64',['f64',['../a00304.html#ga1d794d240091678f602e8de225b8d8c9',1,'glm']]], + ['f64mat1',['f64mat1',['../a00346.html#ga59bfa589419b5265d01314fcecd33435',1,'glm::gtx']]], + ['f64mat1x1',['f64mat1x1',['../a00346.html#ga448eeb08d0b7d8c43a8b292c981955fd',1,'glm::gtx']]], + ['f64mat2',['f64mat2',['../a00304.html#gad9771450a54785d13080cdde0fe20c1d',1,'glm']]], + ['f64mat2x2',['f64mat2x2',['../a00304.html#ga9ec7c4c79e303c053e30729a95fb2c37',1,'glm']]], + ['f64mat2x3',['f64mat2x3',['../a00304.html#gae3ab5719fc4c1e966631dbbcba8d412a',1,'glm']]], + ['f64mat2x4',['f64mat2x4',['../a00304.html#gac87278e0c702ba8afff76316d4eeb769',1,'glm']]], + ['f64mat3',['f64mat3',['../a00304.html#ga9b69181efbf8f37ae934f135137b29c0',1,'glm']]], + ['f64mat3x2',['f64mat3x2',['../a00304.html#ga2473d8bf3f4abf967c4d0e18175be6f7',1,'glm']]], + ['f64mat3x3',['f64mat3x3',['../a00304.html#ga916c1aed91cf91f7b41399ebe7c6e185',1,'glm']]], + ['f64mat3x4',['f64mat3x4',['../a00304.html#gaab239fa9e35b65a67cbaa6ac082f3675',1,'glm']]], + ['f64mat4',['f64mat4',['../a00304.html#ga0ecd3f4952536e5ef12702b44d2626fc',1,'glm']]], + ['f64mat4x2',['f64mat4x2',['../a00304.html#gab7daf79d6bc06a68bea1c6f5e11b5512',1,'glm']]], + ['f64mat4x3',['f64mat4x3',['../a00304.html#ga3e2e66ffbe341a80bc005ba2b9552110',1,'glm']]], + ['f64mat4x4',['f64mat4x4',['../a00304.html#gae52e2b7077a9ff928a06ab5ce600b81e',1,'glm']]], + ['f64quat',['f64quat',['../a00304.html#ga2b114a2f2af0fe1dfeb569c767822940',1,'glm']]], + ['f64vec1',['f64vec1',['../a00304.html#gade502df1ce14f837fae7f60a03ddb9b0',1,'glm::f64vec1()'],['../a00346.html#gae5987a61b8c03d5c432a9e62f0b3efe1',1,'glm::gtx::f64vec1()']]], + ['f64vec2',['f64vec2',['../a00304.html#gadc4e1594f9555d919131ee02b17822a2',1,'glm']]], + ['f64vec3',['f64vec3',['../a00304.html#gaa7a1ddca75c5f629173bf4772db7a635',1,'glm']]], + ['f64vec4',['f64vec4',['../a00304.html#ga66e92e57260bdb910609b9a56bf83e97',1,'glm']]], + ['fdualquat',['fdualquat',['../a00317.html#ga237c2b9b42c9a930e49de5840ae0f930',1,'glm']]], + ['float1',['float1',['../a00315.html#gaf5208d01f6c6fbcb7bb55d610b9c0ead',1,'glm']]], + ['float1x1',['float1x1',['../a00315.html#ga73720b8dc4620835b17f74d428f98c0c',1,'glm']]], + ['float2',['float2',['../a00315.html#ga02d3c013982c183906c61d74aa3166ce',1,'glm']]], + ['float2x2',['float2x2',['../a00315.html#ga33d43ecbb60a85a1366ff83f8a0ec85f',1,'glm']]], + ['float2x3',['float2x3',['../a00315.html#ga939b0cff15cee3030f75c1b2e36f89fe',1,'glm']]], + ['float2x4',['float2x4',['../a00315.html#gafec3cfd901ab334a92e0242b8f2269b4',1,'glm']]], + ['float3',['float3',['../a00315.html#ga821ff110fc8533a053cbfcc93e078cc0',1,'glm']]], + ['float32',['float32',['../a00304.html#gaacdc525d6f7bddb3ae95d5c311bd06a1',1,'glm']]], + ['float32_5ft',['float32_t',['../a00304.html#gaa4947bc8b47c72fceea9bda730ecf603',1,'glm']]], + ['float3x2',['float3x2',['../a00315.html#gaa6c69f04ba95f3faedf95dae874de576',1,'glm']]], + ['float3x3',['float3x3',['../a00315.html#ga6ceb5d38a58becdf420026e12a6562f3',1,'glm']]], + ['float3x4',['float3x4',['../a00315.html#ga4d2679c321b793ca3784fe0315bb5332',1,'glm']]], + ['float4',['float4',['../a00315.html#gae2da7345087db3815a25d8837a727ef1',1,'glm']]], + ['float4x2',['float4x2',['../a00315.html#ga308b9af0c221145bcfe9bfc129d9098e',1,'glm']]], + ['float4x3',['float4x3',['../a00315.html#gac0a51b4812038aa81d73ffcc37f741ac',1,'glm']]], + ['float4x4',['float4x4',['../a00315.html#gad3051649b3715d828a4ab92cdae7c3bf',1,'glm']]], + ['float64',['float64',['../a00304.html#ga232fad1b0d6dcc7c16aabde98b2e2a80',1,'glm']]], + ['float64_5ft',['float64_t',['../a00304.html#ga728366fef72cd96f0a5fa6429f05469e',1,'glm']]], + ['fmat2',['fmat2',['../a00304.html#ga4541dc2feb2a31d6ecb5a303f3dd3280',1,'glm']]], + ['fmat2x2',['fmat2x2',['../a00304.html#ga3350c93c3275298f940a42875388e4b4',1,'glm']]], + ['fmat2x3',['fmat2x3',['../a00304.html#ga55a2d2a8eb09b5633668257eb3cad453',1,'glm']]], + ['fmat2x4',['fmat2x4',['../a00304.html#ga681381f19f11c9e5ee45cda2c56937ff',1,'glm']]], + ['fmat3',['fmat3',['../a00304.html#ga253d453c20e037730023fea0215cb6f6',1,'glm']]], + ['fmat3x2',['fmat3x2',['../a00304.html#ga6af54d70d9beb0a7ef992a879e86b04f',1,'glm']]], + ['fmat3x3',['fmat3x3',['../a00304.html#gaa07c86650253672a19dbfb898f3265b8',1,'glm']]], + ['fmat3x4',['fmat3x4',['../a00304.html#ga44e158af77a670ee1b58c03cda9e1619',1,'glm']]], + ['fmat4',['fmat4',['../a00304.html#ga8cb400c0f4438f2640035d7b9824a0ca',1,'glm']]], + ['fmat4x2',['fmat4x2',['../a00304.html#ga8c8aa45aafcc23238edb1d5aeb801774',1,'glm']]], + ['fmat4x3',['fmat4x3',['../a00304.html#ga4295048a78bdf46b8a7de77ec665b497',1,'glm']]], + ['fmat4x4',['fmat4x4',['../a00304.html#gad01cc6479bde1fd1870f13d3ed9530b3',1,'glm']]], + ['fvec1',['fvec1',['../a00304.html#ga98b9ed43cf8c5cf1d354b23c7df9119f',1,'glm']]], + ['fvec2',['fvec2',['../a00304.html#ga24273aa02abaecaab7f160bac437a339',1,'glm']]], + ['fvec3',['fvec3',['../a00304.html#ga89930533646b30d021759298aa6bf04a',1,'glm']]], + ['fvec4',['fvec4',['../a00304.html#ga713c796c54875cf4092d42ff9d9096b0',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_4.html b/external/glm-0.9.9.8/doc/api/search/typedefs_4.html similarity index 97% rename from external/glm/doc/api/search/typedefs_4.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_4.html index c1ff64d..1499151 100644 --- a/external/glm/doc/api/search/typedefs_4.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_4.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_4.js b/external/glm-0.9.9.8/doc/api/search/typedefs_4.js new file mode 100644 index 0000000..ceb078e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_4.js @@ -0,0 +1,188 @@ +var searchData= +[ + ['highp_5fbvec1',['highp_bvec1',['../a00266.html#gae8a1e14abae1387274f57741750c06a2',1,'glm']]], + ['highp_5fbvec2',['highp_bvec2',['../a00282.html#gac6c781a85f012d77a75310a3058702c2',1,'glm']]], + ['highp_5fbvec3',['highp_bvec3',['../a00282.html#gaedb70027d89a0a405046aefda4eabaa6',1,'glm']]], + ['highp_5fbvec4',['highp_bvec4',['../a00282.html#gaee663ff64429443ab07a5327074192f6',1,'glm']]], + ['highp_5fddualquat',['highp_ddualquat',['../a00317.html#ga8f67eafa7197d7a668dad5105a463d2a',1,'glm']]], + ['highp_5fdmat2',['highp_dmat2',['../a00284.html#ga369b447bb1b312449b679ea1f90f3cea',1,'glm']]], + ['highp_5fdmat2x2',['highp_dmat2x2',['../a00284.html#gae27ac20302c2e39b6c78e7fe18e62ef7',1,'glm']]], + ['highp_5fdmat2x3',['highp_dmat2x3',['../a00284.html#gad4689ec33bc2c26e10132b174b49001a',1,'glm']]], + ['highp_5fdmat2x4',['highp_dmat2x4',['../a00284.html#ga5ceeb46670fdc000a0701910cc5061c9',1,'glm']]], + ['highp_5fdmat3',['highp_dmat3',['../a00284.html#ga86d6d4dbad92ffdcc759773340e15a97',1,'glm']]], + ['highp_5fdmat3x2',['highp_dmat3x2',['../a00284.html#ga3647309010a2160e9ec89bc6f7c95c35',1,'glm']]], + ['highp_5fdmat3x3',['highp_dmat3x3',['../a00284.html#gae367ea93c4ad8a7c101dd27b8b2b04ce',1,'glm']]], + ['highp_5fdmat3x4',['highp_dmat3x4',['../a00284.html#ga6543eeeb64f48d79a0b96484308c50f0',1,'glm']]], + ['highp_5fdmat4',['highp_dmat4',['../a00284.html#ga945254f459860741138bceb74da496b9',1,'glm']]], + ['highp_5fdmat4x2',['highp_dmat4x2',['../a00284.html#gaeda1f474c668eaecc443bea85a4a4eca',1,'glm']]], + ['highp_5fdmat4x3',['highp_dmat4x3',['../a00284.html#gacf237c2d8832fe8db2d7e187585d34bd',1,'glm']]], + ['highp_5fdmat4x4',['highp_dmat4x4',['../a00284.html#ga118d24a3d12c034e7cccef7bf2f01b8a',1,'glm']]], + ['highp_5fdquat',['highp_dquat',['../a00250.html#gaf13a25f41afc03480b40fc71bd249cec',1,'glm']]], + ['highp_5fdualquat',['highp_dualquat',['../a00317.html#ga9ef5bf1da52a9d4932335a517086ceaf',1,'glm']]], + ['highp_5fdvec1',['highp_dvec1',['../a00269.html#ga77c22c4426da3a6865c88d3fc907e3fe',1,'glm']]], + ['highp_5fdvec2',['highp_dvec2',['../a00282.html#gab98d77cca255914f5e29697fcbc2d975',1,'glm']]], + ['highp_5fdvec3',['highp_dvec3',['../a00282.html#gab24dc20dcdc5b71282634bdbf6b70105',1,'glm']]], + ['highp_5fdvec4',['highp_dvec4',['../a00282.html#gab654f4ed4a99d64a6cfc65320c2a7590',1,'glm']]], + ['highp_5ff32',['highp_f32',['../a00304.html#ga6906e1ef0b34064b4b675489c5c38725',1,'glm']]], + ['highp_5ff32mat2',['highp_f32mat2',['../a00304.html#ga298f7d4d273678d0282812368da27fda',1,'glm']]], + ['highp_5ff32mat2x2',['highp_f32mat2x2',['../a00304.html#gae5eb02d92b7d4605a4b7f37ae5cb2968',1,'glm']]], + ['highp_5ff32mat2x3',['highp_f32mat2x3',['../a00304.html#ga0aeb5cb001473b08c88175012708a379',1,'glm']]], + ['highp_5ff32mat2x4',['highp_f32mat2x4',['../a00304.html#ga88938ee1e7981fa3402e88da6ad74531',1,'glm']]], + ['highp_5ff32mat3',['highp_f32mat3',['../a00304.html#ga24f9ef3263b1638564713892cc37981f',1,'glm']]], + ['highp_5ff32mat3x2',['highp_f32mat3x2',['../a00304.html#ga36537e701456f12c20e73f469cac4967',1,'glm']]], + ['highp_5ff32mat3x3',['highp_f32mat3x3',['../a00304.html#gaab691ae40c37976d268d8cac0096e0e1',1,'glm']]], + ['highp_5ff32mat3x4',['highp_f32mat3x4',['../a00304.html#gaa5086dbd6efb272d13fc88829330861d',1,'glm']]], + ['highp_5ff32mat4',['highp_f32mat4',['../a00304.html#ga14c90ca49885723f51d06e295587236f',1,'glm']]], + ['highp_5ff32mat4x2',['highp_f32mat4x2',['../a00304.html#ga602e119c6b246b4f6edcf66845f2aa0f',1,'glm']]], + ['highp_5ff32mat4x3',['highp_f32mat4x3',['../a00304.html#ga66bffdd8e5c0d3ef9958bbab9ca1ba59',1,'glm']]], + ['highp_5ff32mat4x4',['highp_f32mat4x4',['../a00304.html#gaf1b712b97b2322685fbbed28febe5f84',1,'glm']]], + ['highp_5ff32quat',['highp_f32quat',['../a00304.html#ga4252cf7f5b0e3cd47c3d3badf0ef43b3',1,'glm']]], + ['highp_5ff32vec1',['highp_f32vec1',['../a00304.html#gab1b1c9e8667902b78b2c330e4d383a61',1,'glm']]], + ['highp_5ff32vec2',['highp_f32vec2',['../a00304.html#ga0b8ebd4262331e139ff257d7cf2a4b77',1,'glm']]], + ['highp_5ff32vec3',['highp_f32vec3',['../a00304.html#ga522775dbcc6d96246a1c5cf02344fd8c',1,'glm']]], + ['highp_5ff32vec4',['highp_f32vec4',['../a00304.html#ga0f038d4e09862a74f03d102c59eda73e',1,'glm']]], + ['highp_5ff64',['highp_f64',['../a00304.html#ga51d5266017d88f62737c1973923a7cf4',1,'glm']]], + ['highp_5ff64mat2',['highp_f64mat2',['../a00304.html#gaf7adb92ce8de0afaff01436b039fd924',1,'glm']]], + ['highp_5ff64mat2x2',['highp_f64mat2x2',['../a00304.html#ga773ea237a051827cfc20de960bc73ff0',1,'glm']]], + ['highp_5ff64mat2x3',['highp_f64mat2x3',['../a00304.html#ga8342c7469384c6d769cacc9e309278d9',1,'glm']]], + ['highp_5ff64mat2x4',['highp_f64mat2x4',['../a00304.html#ga5a67a7440b9c0d1538533540f99036a5',1,'glm']]], + ['highp_5ff64mat3',['highp_f64mat3',['../a00304.html#ga609bf0ace941d6ab1bb2f9522a04e546',1,'glm']]], + ['highp_5ff64mat3x2',['highp_f64mat3x2',['../a00304.html#ga5bdbfb4ce7d05ce1e1b663f50be17e8a',1,'glm']]], + ['highp_5ff64mat3x3',['highp_f64mat3x3',['../a00304.html#ga7c2cadb9b85cc7e0d125db21ca19dea4',1,'glm']]], + ['highp_5ff64mat3x4',['highp_f64mat3x4',['../a00304.html#gad310b1dddeec9ec837a104e7db8de580',1,'glm']]], + ['highp_5ff64mat4',['highp_f64mat4',['../a00304.html#gad308e0ed27d64daa4213fb257fcbd5a5',1,'glm']]], + ['highp_5ff64mat4x2',['highp_f64mat4x2',['../a00304.html#ga58c4631421e323e252fc716b6103e38c',1,'glm']]], + ['highp_5ff64mat4x3',['highp_f64mat4x3',['../a00304.html#gae94823d65648e44d972863c6caa13103',1,'glm']]], + ['highp_5ff64mat4x4',['highp_f64mat4x4',['../a00304.html#ga09a2374b725c4246d263ee36fb66434c',1,'glm']]], + ['highp_5ff64quat',['highp_f64quat',['../a00304.html#gafcfdd74a115163af2ce1093551747352',1,'glm']]], + ['highp_5ff64vec1',['highp_f64vec1',['../a00304.html#ga62c31b133ceee9984fbee05ac4c434a9',1,'glm']]], + ['highp_5ff64vec2',['highp_f64vec2',['../a00304.html#ga670ea1b0a1172bc73b1d7c1e0c26cce2',1,'glm']]], + ['highp_5ff64vec3',['highp_f64vec3',['../a00304.html#gacd1196090ece7a69fb5c3e43a7d4d851',1,'glm']]], + ['highp_5ff64vec4',['highp_f64vec4',['../a00304.html#ga61185c44c8cc0b25d9a0f67d8a267444',1,'glm']]], + ['highp_5ffdualquat',['highp_fdualquat',['../a00317.html#ga4c4e55e9c99dc57b299ed590968da564',1,'glm']]], + ['highp_5ffloat32',['highp_float32',['../a00304.html#gac5a7f21136e0a78d0a1b9f60ef2f8aea',1,'glm']]], + ['highp_5ffloat32_5ft',['highp_float32_t',['../a00304.html#ga5376ef18dca9d248897c3363ef5a06b2',1,'glm']]], + ['highp_5ffloat64',['highp_float64',['../a00304.html#gadbb198a4d7aad82a0f4dc466ef6f6215',1,'glm']]], + ['highp_5ffloat64_5ft',['highp_float64_t',['../a00304.html#gaaeeb0077198cff40e3f48b1108ece139',1,'glm']]], + ['highp_5ffmat2',['highp_fmat2',['../a00304.html#gae98c88d9a7befa9b5877f49176225535',1,'glm']]], + ['highp_5ffmat2x2',['highp_fmat2x2',['../a00304.html#ga28635abcddb2f3e92c33c3f0fcc682ad',1,'glm']]], + ['highp_5ffmat2x3',['highp_fmat2x3',['../a00304.html#gacf111095594996fef29067b2454fccad',1,'glm']]], + ['highp_5ffmat2x4',['highp_fmat2x4',['../a00304.html#ga4920a1536f161f7ded1d6909b7fef0d2',1,'glm']]], + ['highp_5ffmat3',['highp_fmat3',['../a00304.html#gaed2dc69e0d507d4191092dbd44b3eb75',1,'glm']]], + ['highp_5ffmat3x2',['highp_fmat3x2',['../a00304.html#gae54e4d1aeb5a0f0c64822e6f1b299e19',1,'glm']]], + ['highp_5ffmat3x3',['highp_fmat3x3',['../a00304.html#gaa5b44d3ef6efcf33f44876673a7a936e',1,'glm']]], + ['highp_5ffmat3x4',['highp_fmat3x4',['../a00304.html#ga961fac2a885907ffcf4d40daac6615c5',1,'glm']]], + ['highp_5ffmat4',['highp_fmat4',['../a00304.html#gabf28443ce0cc0959077ec39b21f32c39',1,'glm']]], + ['highp_5ffmat4x2',['highp_fmat4x2',['../a00304.html#ga076961cf2d120c7168b957cb2ed107b3',1,'glm']]], + ['highp_5ffmat4x3',['highp_fmat4x3',['../a00304.html#gae406ec670f64170a7437b5e302eeb2cb',1,'glm']]], + ['highp_5ffmat4x4',['highp_fmat4x4',['../a00304.html#gaee80c7cd3caa0f2635058656755f6f69',1,'glm']]], + ['highp_5ffvec1',['highp_fvec1',['../a00304.html#gaa1040342c4efdedc8f90e6267db8d41c',1,'glm']]], + ['highp_5ffvec2',['highp_fvec2',['../a00304.html#ga7c0d196f5fa79f7e892a2f323a0be1ae',1,'glm']]], + ['highp_5ffvec3',['highp_fvec3',['../a00304.html#ga6ef77413883f48d6b53b4169b25edbd0',1,'glm']]], + ['highp_5ffvec4',['highp_fvec4',['../a00304.html#ga8b839abbb44f5102609eed89f6ed61f7',1,'glm']]], + ['highp_5fi16',['highp_i16',['../a00304.html#ga0336abc2604dd2c20c30e036454b64f8',1,'glm']]], + ['highp_5fi16vec1',['highp_i16vec1',['../a00304.html#ga70fdfcc1fd38084bde83c3f06a8b9f19',1,'glm']]], + ['highp_5fi16vec2',['highp_i16vec2',['../a00304.html#gaa7db3ad10947cf70cae6474d05ebd227',1,'glm']]], + ['highp_5fi16vec3',['highp_i16vec3',['../a00304.html#ga5609c8fa2b7eac3dec337d321cb0ca96',1,'glm']]], + ['highp_5fi16vec4',['highp_i16vec4',['../a00304.html#ga7a18659438828f91ccca28f1a1e067b4',1,'glm']]], + ['highp_5fi32',['highp_i32',['../a00304.html#ga727675ac6b5d2fc699520e0059735e25',1,'glm']]], + ['highp_5fi32vec1',['highp_i32vec1',['../a00304.html#ga6a9d71cc62745302f70422b7dc98755c',1,'glm']]], + ['highp_5fi32vec2',['highp_i32vec2',['../a00304.html#gaa9b4579f8e6f3d9b649a965bcb785530',1,'glm']]], + ['highp_5fi32vec3',['highp_i32vec3',['../a00304.html#ga31e070ea3bdee623e6e18a61ba5718b1',1,'glm']]], + ['highp_5fi32vec4',['highp_i32vec4',['../a00304.html#gadf70eaaa230aeed5a4c9f4c9c5c55902',1,'glm']]], + ['highp_5fi64',['highp_i64',['../a00304.html#gac25db6d2b1e2a0f351b77ba3409ac4cd',1,'glm']]], + ['highp_5fi64vec1',['highp_i64vec1',['../a00304.html#gabd2fda3cd208acf5a370ec9b5b3c58d4',1,'glm']]], + ['highp_5fi64vec2',['highp_i64vec2',['../a00304.html#gad9d1903cb20899966e8ebe0670889a5f',1,'glm']]], + ['highp_5fi64vec3',['highp_i64vec3',['../a00304.html#ga62324224b9c6cce9c6b4db96bb704a8a',1,'glm']]], + ['highp_5fi64vec4',['highp_i64vec4',['../a00304.html#gad23b1be9b3bf20352089a6b738f0ebba',1,'glm']]], + ['highp_5fi8',['highp_i8',['../a00304.html#gacb88796f2d08ef253d0345aff20c3aee',1,'glm']]], + ['highp_5fi8vec1',['highp_i8vec1',['../a00304.html#ga1d8c10949691b0fd990253476f47beb3',1,'glm']]], + ['highp_5fi8vec2',['highp_i8vec2',['../a00304.html#ga50542e4cb9b2f9bec213b66e06145d07',1,'glm']]], + ['highp_5fi8vec3',['highp_i8vec3',['../a00304.html#ga8396bfdc081d9113190d0c39c9f67084',1,'glm']]], + ['highp_5fi8vec4',['highp_i8vec4',['../a00304.html#ga4824e3ddf6e608117dfe4809430737b4',1,'glm']]], + ['highp_5fimat2',['highp_imat2',['../a00294.html#ga8499cc3b016003f835314c1c756e9db9',1,'glm']]], + ['highp_5fimat2x2',['highp_imat2x2',['../a00294.html#gaa389e2d1c3b10941cae870bc0aeba5b3',1,'glm']]], + ['highp_5fimat2x3',['highp_imat2x3',['../a00294.html#gaba49d890e06c9444795f5a133fbf1336',1,'glm']]], + ['highp_5fimat2x4',['highp_imat2x4',['../a00294.html#ga05a970fd4366dad6c8a0be676b1eae5b',1,'glm']]], + ['highp_5fimat3',['highp_imat3',['../a00294.html#gaca4506a3efa679eff7c006d9826291fd',1,'glm']]], + ['highp_5fimat3x2',['highp_imat3x2',['../a00294.html#ga91c671c3ff9706c2393e78b22fd84bcb',1,'glm']]], + ['highp_5fimat3x3',['highp_imat3x3',['../a00294.html#ga07d7b7173e2a6f843ff5f1c615a95b41',1,'glm']]], + ['highp_5fimat3x4',['highp_imat3x4',['../a00294.html#ga53008f580be99018a17b357b5a4ffc0d',1,'glm']]], + ['highp_5fimat4',['highp_imat4',['../a00294.html#ga7cfb09b34e0fcf73eaf6512d6483ef56',1,'glm']]], + ['highp_5fimat4x2',['highp_imat4x2',['../a00294.html#ga1858820fb292cae396408b2034407f72',1,'glm']]], + ['highp_5fimat4x3',['highp_imat4x3',['../a00294.html#ga6be0b80ae74bb309bc5b964d93d68fc5',1,'glm']]], + ['highp_5fimat4x4',['highp_imat4x4',['../a00294.html#ga2c783ee6f8f040ab37df2f70392c8b44',1,'glm']]], + ['highp_5fint16',['highp_int16',['../a00304.html#ga5fde0fa4a3852a9dd5d637a92ee74718',1,'glm']]], + ['highp_5fint16_5ft',['highp_int16_t',['../a00304.html#gacaea06d0a79ef3172e887a7a6ba434ff',1,'glm']]], + ['highp_5fint32',['highp_int32',['../a00304.html#ga84ed04b4e0de18c977e932d617e7c223',1,'glm']]], + ['highp_5fint32_5ft',['highp_int32_t',['../a00304.html#ga2c71c8bd9e2fe7d2e93ca250d8b6157f',1,'glm']]], + ['highp_5fint64',['highp_int64',['../a00304.html#ga226a8d52b4e3f77aaa6231135e886aac',1,'glm']]], + ['highp_5fint64_5ft',['highp_int64_t',['../a00304.html#ga73c6abb280a45feeff60f9accaee91f3',1,'glm']]], + ['highp_5fint8',['highp_int8',['../a00304.html#gad0549c902a96a7164e4ac858d5f39dbf',1,'glm']]], + ['highp_5fint8_5ft',['highp_int8_t',['../a00304.html#ga1085c50dd8fbeb5e7e609b1c127492a5',1,'glm']]], + ['highp_5fivec1',['highp_ivec1',['../a00273.html#ga7e02566f2bd2caa68e61be45a477c77e',1,'glm']]], + ['highp_5fivec2',['highp_ivec2',['../a00282.html#gaa18f6b80b41c214f10666948539c1f93',1,'glm']]], + ['highp_5fivec3',['highp_ivec3',['../a00282.html#ga7dd782c3ef5719bc6d5c3ca826b8ad18',1,'glm']]], + ['highp_5fivec4',['highp_ivec4',['../a00282.html#gafb84dccdf5d82443df3ffc8428dcaf3e',1,'glm']]], + ['highp_5fmat2',['highp_mat2',['../a00284.html#ga4d5a0055544a516237dcdace049b143d',1,'glm']]], + ['highp_5fmat2x2',['highp_mat2x2',['../a00284.html#ga2352ae43b284c9f71446674c0208c05d',1,'glm']]], + ['highp_5fmat2x3',['highp_mat2x3',['../a00284.html#ga7a0e3fe41512b0494e598f5c58722f19',1,'glm']]], + ['highp_5fmat2x4',['highp_mat2x4',['../a00284.html#ga61f36a81f2ed1b5f9fc8bc3b26faec8f',1,'glm']]], + ['highp_5fmat3',['highp_mat3',['../a00284.html#ga3fd9849f3da5ed6e3decc3fb10a20b3e',1,'glm']]], + ['highp_5fmat3x2',['highp_mat3x2',['../a00284.html#ga1eda47a00027ec440eac05d63739c71b',1,'glm']]], + ['highp_5fmat3x3',['highp_mat3x3',['../a00284.html#ga2ea82e12f4d7afcfce8f59894d400230',1,'glm']]], + ['highp_5fmat3x4',['highp_mat3x4',['../a00284.html#ga6454b3a26ea30f69de8e44c08a63d1b7',1,'glm']]], + ['highp_5fmat4',['highp_mat4',['../a00284.html#gad72e13d669d039f12ae5afa23148adc1',1,'glm']]], + ['highp_5fmat4x2',['highp_mat4x2',['../a00284.html#gab68b66e6d2c37b804d0baf970fa4f0e5',1,'glm']]], + ['highp_5fmat4x3',['highp_mat4x3',['../a00284.html#ga8d5a4e65fb976e4553b84995b95ecb38',1,'glm']]], + ['highp_5fmat4x4',['highp_mat4x4',['../a00284.html#ga58cc504be0e3b61c48bc91554a767b9f',1,'glm']]], + ['highp_5fquat',['highp_quat',['../a00253.html#gaa2fd8085774376310aeb80588e0eab6e',1,'glm']]], + ['highp_5fu16',['highp_u16',['../a00304.html#ga8e62c883d13f47015f3b70ed88751369',1,'glm']]], + ['highp_5fu16vec1',['highp_u16vec1',['../a00304.html#gad064202b4cf9a2972475c03de657cb39',1,'glm']]], + ['highp_5fu16vec2',['highp_u16vec2',['../a00304.html#ga791b15ceb3f1e09d1a0ec6f3057ca159',1,'glm']]], + ['highp_5fu16vec3',['highp_u16vec3',['../a00304.html#gacfd806749008f0ade6ac4bb9dd91082f',1,'glm']]], + ['highp_5fu16vec4',['highp_u16vec4',['../a00304.html#ga8a85a3d54a8a9e14fe7a1f96196c4f61',1,'glm']]], + ['highp_5fu32',['highp_u32',['../a00304.html#ga7a6f1929464dcc680b16381a4ee5f2cf',1,'glm']]], + ['highp_5fu32vec1',['highp_u32vec1',['../a00304.html#ga0e35a565b9036bfc3989f5e23a0792e3',1,'glm']]], + ['highp_5fu32vec2',['highp_u32vec2',['../a00304.html#ga2f256334f83fba4c2d219e414b51df6c',1,'glm']]], + ['highp_5fu32vec3',['highp_u32vec3',['../a00304.html#gaf14d7a50502464e7cbfa074f24684cb1',1,'glm']]], + ['highp_5fu32vec4',['highp_u32vec4',['../a00304.html#ga22166f0da65038b447f3c5e534fff1c2',1,'glm']]], + ['highp_5fu64',['highp_u64',['../a00304.html#ga0c181fdf06a309691999926b6690c969',1,'glm']]], + ['highp_5fu64vec1',['highp_u64vec1',['../a00304.html#gae4fe774744852c4d7d069be2e05257ab',1,'glm']]], + ['highp_5fu64vec2',['highp_u64vec2',['../a00304.html#ga78f77b8b2d17b431ac5a68c0b5d7050d',1,'glm']]], + ['highp_5fu64vec3',['highp_u64vec3',['../a00304.html#ga41bdabea6e589029659331ba47eb78c1',1,'glm']]], + ['highp_5fu64vec4',['highp_u64vec4',['../a00304.html#ga4f15b41aa24b11cc42ad5798c04a2325',1,'glm']]], + ['highp_5fu8',['highp_u8',['../a00304.html#gacd1259f3a9e8d2a9df5be2d74322ef9c',1,'glm']]], + ['highp_5fu8vec1',['highp_u8vec1',['../a00304.html#ga8408cb76b6550ff01fa0a3024e7b68d2',1,'glm']]], + ['highp_5fu8vec2',['highp_u8vec2',['../a00304.html#ga27585b7c3ab300059f11fcba465f6fd2',1,'glm']]], + ['highp_5fu8vec3',['highp_u8vec3',['../a00304.html#ga45721c13b956eb691cbd6c6c1429167a',1,'glm']]], + ['highp_5fu8vec4',['highp_u8vec4',['../a00304.html#gae0b75ad0fed8c00ddc0b5ce335d31060',1,'glm']]], + ['highp_5fuint16',['highp_uint16',['../a00304.html#ga746dc6da204f5622e395f492997dbf57',1,'glm']]], + ['highp_5fuint16_5ft',['highp_uint16_t',['../a00304.html#gacf54c3330ef60aa3d16cb676c7bcb8c7',1,'glm']]], + ['highp_5fuint32',['highp_uint32',['../a00304.html#ga256b12b650c3f2fb86878fd1c5db8bc3',1,'glm']]], + ['highp_5fuint32_5ft',['highp_uint32_t',['../a00304.html#gae978599c9711ac263ba732d4ac225b0e',1,'glm']]], + ['highp_5fuint64',['highp_uint64',['../a00304.html#gaa38d732f5d4a7bc42a1b43b9d3c141ce',1,'glm']]], + ['highp_5fuint64_5ft',['highp_uint64_t',['../a00304.html#gaa46172d7dc1c7ffe3e78107ff88adf08',1,'glm']]], + ['highp_5fuint8',['highp_uint8',['../a00304.html#ga97432f9979e73e66567361fd01e4cffb',1,'glm']]], + ['highp_5fuint8_5ft',['highp_uint8_t',['../a00304.html#gac4e00a26a2adb5f2c0a7096810df29e5',1,'glm']]], + ['highp_5fumat2',['highp_umat2',['../a00294.html#ga42cbce64c4c1cd121b8437daa6e110de',1,'glm']]], + ['highp_5fumat2x2',['highp_umat2x2',['../a00294.html#ga5337b7bc95f9cbac08a0c00b3f936b28',1,'glm']]], + ['highp_5fumat2x3',['highp_umat2x3',['../a00294.html#ga90718c7128320b24b52f9ea70e643ad4',1,'glm']]], + ['highp_5fumat2x4',['highp_umat2x4',['../a00294.html#gadca0a4724b4a6f56a2355b6f6e19248b',1,'glm']]], + ['highp_5fumat3',['highp_umat3',['../a00294.html#gaa1143120339b7d2d469d327662e8a172',1,'glm']]], + ['highp_5fumat3x2',['highp_umat3x2',['../a00294.html#ga844a5da2e7fc03fc7cccc7f1b70809c4',1,'glm']]], + ['highp_5fumat3x3',['highp_umat3x3',['../a00294.html#ga1f7d41c36b980774a4d2e7c1647fb4b2',1,'glm']]], + ['highp_5fumat3x4',['highp_umat3x4',['../a00294.html#ga25ee15c323924f2d0fe9896d329e5086',1,'glm']]], + ['highp_5fumat4',['highp_umat4',['../a00294.html#gaf665e4e78c2cc32a54ab40325738f9c9',1,'glm']]], + ['highp_5fumat4x2',['highp_umat4x2',['../a00294.html#gae69eb82ec08b0dc9bf2ead2a339ff801',1,'glm']]], + ['highp_5fumat4x3',['highp_umat4x3',['../a00294.html#ga45a8163d02c43216252056b0c120f3a5',1,'glm']]], + ['highp_5fumat4x4',['highp_umat4x4',['../a00294.html#ga6a56cbb769aed334c95241664415f9ba',1,'glm']]], + ['highp_5fuvec1',['highp_uvec1',['../a00277.html#gacda57dd8c2bff4934c7f09ddd87c0f39',1,'glm']]], + ['highp_5fuvec2',['highp_uvec2',['../a00282.html#gad5dd50da9e37387ca6b4e6f9c80fe6f8',1,'glm']]], + ['highp_5fuvec3',['highp_uvec3',['../a00282.html#gaef61508dd40ec523416697982f9ceaae',1,'glm']]], + ['highp_5fuvec4',['highp_uvec4',['../a00282.html#gaeebd7dd9f3e678691f8620241e5f9221',1,'glm']]], + ['highp_5fvec1',['highp_vec1',['../a00271.html#ga9e8ed21862a897c156c0b2abca70b1e9',1,'glm']]], + ['highp_5fvec2',['highp_vec2',['../a00282.html#gaa92c1954d71b1e7914874bd787b43d1c',1,'glm']]], + ['highp_5fvec3',['highp_vec3',['../a00282.html#gaca61dfaccbf2f58f2d8063a4e76b44a9',1,'glm']]], + ['highp_5fvec4',['highp_vec4',['../a00282.html#gad281decae52948b82feb3a9db8f63a7b',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_5.html b/external/glm-0.9.9.8/doc/api/search/typedefs_5.html similarity index 97% rename from external/glm/doc/api/search/typedefs_5.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_5.html index 14adc8e..dd4db3b 100644 --- a/external/glm/doc/api/search/typedefs_5.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_5.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_5.js b/external/glm-0.9.9.8/doc/api/search/typedefs_5.js new file mode 100644 index 0000000..48d2a6f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_5.js @@ -0,0 +1,61 @@ +var searchData= +[ + ['i16',['i16',['../a00304.html#ga3ab5fe184343d394fb6c2723c3ee3699',1,'glm']]], + ['i16vec1',['i16vec1',['../a00304.html#gafe730798732aa7b0647096a004db1b1c',1,'glm']]], + ['i16vec2',['i16vec2',['../a00304.html#ga2996630ba7b10535af8e065cf326f761',1,'glm']]], + ['i16vec3',['i16vec3',['../a00304.html#gae9c90a867a6026b1f6eab00456f3fb8b',1,'glm']]], + ['i16vec4',['i16vec4',['../a00304.html#ga550831bfc26d1e0101c1cb3d79938c06',1,'glm']]], + ['i32',['i32',['../a00304.html#ga96faea43ac5f875d2d3ffbf8d213e3eb',1,'glm']]], + ['i32vec1',['i32vec1',['../a00304.html#ga54b8a4e0f5a7203a821bf8e9c1265bcf',1,'glm']]], + ['i32vec2',['i32vec2',['../a00304.html#ga8b44026374982dcd1e52d22bac99247e',1,'glm']]], + ['i32vec3',['i32vec3',['../a00304.html#ga7f526b5cccef126a2ebcf9bdd890394e',1,'glm']]], + ['i32vec4',['i32vec4',['../a00304.html#ga866a05905c49912309ed1fa5f5980e61',1,'glm']]], + ['i64',['i64',['../a00304.html#gadb997e409103d4da18abd837e636a496',1,'glm']]], + ['i64vec1',['i64vec1',['../a00304.html#ga2b65767f8b5aed1bd1cf86c541662b50',1,'glm']]], + ['i64vec2',['i64vec2',['../a00304.html#ga48310188e1d0c616bf8d78c92447523b',1,'glm']]], + ['i64vec3',['i64vec3',['../a00304.html#ga667948cfe6fb3d6606c750729ec49f77',1,'glm']]], + ['i64vec4',['i64vec4',['../a00304.html#gaa4e31c3d9de067029efeb161a44b0232',1,'glm']]], + ['i8',['i8',['../a00304.html#ga302ec977b0c0c3ea245b6c9275495355',1,'glm']]], + ['i8vec1',['i8vec1',['../a00304.html#ga7e80d927ff0a3861ced68dfff8a4020b',1,'glm']]], + ['i8vec2',['i8vec2',['../a00304.html#gad06935764d78f43f9d542c784c2212ec',1,'glm']]], + ['i8vec3',['i8vec3',['../a00304.html#ga5a08d36cf7917cd19d081a603d0eae3e',1,'glm']]], + ['i8vec4',['i8vec4',['../a00304.html#ga4177a44206121dabc8c4ff1c0f544574',1,'glm']]], + ['imat2',['imat2',['../a00294.html#gaabe04f9948d4a213bb1c20137de03e01',1,'glm']]], + ['imat2x2',['imat2x2',['../a00294.html#gaa4732a240522ad9bc28144fda2fc14ec',1,'glm']]], + ['imat2x3',['imat2x3',['../a00294.html#ga3f42dd3d5d94a0fd5706f7ec8dd0c605',1,'glm']]], + ['imat2x4',['imat2x4',['../a00294.html#ga9d8faafdca42583d67e792dd038fc668',1,'glm']]], + ['imat3',['imat3',['../a00294.html#ga038f68437155ffa3c2583a15264a8195',1,'glm']]], + ['imat3x2',['imat3x2',['../a00294.html#ga7b33bbe4f12c060892bd3cc8d4cd737f',1,'glm']]], + ['imat3x3',['imat3x3',['../a00294.html#ga6aacc960f62e8f7d2fe9d32d5050e7a4',1,'glm']]], + ['imat3x4',['imat3x4',['../a00294.html#ga6e9ce23496d8b08dfc302d4039694b58',1,'glm']]], + ['imat4',['imat4',['../a00294.html#ga96b0d26a33b81bb6a60ca0f39682f7eb',1,'glm']]], + ['imat4x2',['imat4x2',['../a00294.html#ga8ce7ef51d8b2c1901fa5414deccbc3fa',1,'glm']]], + ['imat4x3',['imat4x3',['../a00294.html#ga705ee0bf49d6c3de4404ce2481bf0df5',1,'glm']]], + ['imat4x4',['imat4x4',['../a00294.html#ga43ed5e4f475b6f4cad7cba78f29c405b',1,'glm']]], + ['int1',['int1',['../a00315.html#ga0670a2111b5e4a6410bd027fa0232fc3',1,'glm']]], + ['int16',['int16',['../a00260.html#ga259fa4834387bd68627ddf37bb3ebdb9',1,'glm']]], + ['int16_5ft',['int16_t',['../a00304.html#gae8f5e3e964ca2ae240adc2c0d74adede',1,'glm']]], + ['int1x1',['int1x1',['../a00315.html#ga056ffe02d3a45af626f8e62221881c7a',1,'glm']]], + ['int2',['int2',['../a00315.html#gafe3a8fd56354caafe24bfe1b1e3ad22a',1,'glm']]], + ['int2x2',['int2x2',['../a00315.html#ga4e5ce477c15836b21e3c42daac68554d',1,'glm']]], + ['int2x3',['int2x3',['../a00315.html#ga197ded5ad8354f6b6fb91189d7a269b3',1,'glm']]], + ['int2x4',['int2x4',['../a00315.html#ga2749d59a7fddbac44f34ba78e57ef807',1,'glm']]], + ['int3',['int3',['../a00315.html#ga909c38a425f215a50c847145d7da09f0',1,'glm']]], + ['int32',['int32',['../a00260.html#ga43d43196463bde49cb067f5c20ab8481',1,'glm']]], + ['int32_5ft',['int32_t',['../a00304.html#ga042ef09ff2f0cb24a36f541bcb3a3710',1,'glm']]], + ['int3x2',['int3x2',['../a00315.html#gaa4cbe16a92cf3664376c7a2fc5126aa8',1,'glm']]], + ['int3x3',['int3x3',['../a00315.html#ga15c9649286f0bf431bdf9b3509580048',1,'glm']]], + ['int3x4',['int3x4',['../a00315.html#gaacac46ddc7d15d0f9529d05c92946a0f',1,'glm']]], + ['int4',['int4',['../a00315.html#gaecdef18c819c205aeee9f94dc93de56a',1,'glm']]], + ['int4x2',['int4x2',['../a00315.html#ga97a39dd9bc7d572810d80b8467cbffa1',1,'glm']]], + ['int4x3',['int4x3',['../a00315.html#gae4a2c53f14aeec9a17c2b81142b7e82d',1,'glm']]], + ['int4x4',['int4x4',['../a00315.html#ga04dee1552424198b8f58b377c2ee00d8',1,'glm']]], + ['int64',['int64',['../a00260.html#gaff5189f97f9e842d9636a0f240001b2e',1,'glm']]], + ['int64_5ft',['int64_t',['../a00304.html#ga322a7d7d2c2c68994dc872a33de63c61',1,'glm']]], + ['int8',['int8',['../a00260.html#ga1b956fe1df85f3c132b21edb4e116458',1,'glm']]], + ['int8_5ft',['int8_t',['../a00304.html#ga4bf09d8838a86866b39ee6e109341645',1,'glm']]], + ['ivec1',['ivec1',['../a00272.html#gaedd0562c2e77714929d7723a7e2e0dba',1,'glm']]], + ['ivec2',['ivec2',['../a00281.html#ga6f9269106d91b2d2b91bcf27cd5f5560',1,'glm']]], + ['ivec3',['ivec3',['../a00281.html#gad0d784d8eee201aca362484d2daee46c',1,'glm']]], + ['ivec4',['ivec4',['../a00281.html#ga5abb4603dae0ce58c595e66d9123d812',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_6.html b/external/glm-0.9.9.8/doc/api/search/typedefs_6.html similarity index 97% rename from external/glm/doc/api/search/typedefs_6.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_6.html index 742e92b..5f5acf8 100644 --- a/external/glm/doc/api/search/typedefs_6.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_6.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_6.js b/external/glm-0.9.9.8/doc/api/search/typedefs_6.js new file mode 100644 index 0000000..cfc19f8 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_6.js @@ -0,0 +1,188 @@ +var searchData= +[ + ['lowp_5fbvec1',['lowp_bvec1',['../a00266.html#ga24a3d364e2ddd444f5b9e7975bbef8f9',1,'glm']]], + ['lowp_5fbvec2',['lowp_bvec2',['../a00282.html#ga5a5452140650988b94d5716e4d872465',1,'glm']]], + ['lowp_5fbvec3',['lowp_bvec3',['../a00282.html#ga79e0922a977662a8fd39d7829be3908b',1,'glm']]], + ['lowp_5fbvec4',['lowp_bvec4',['../a00282.html#ga15ac87724048ab7169bb5d3572939dd3',1,'glm']]], + ['lowp_5fddualquat',['lowp_ddualquat',['../a00317.html#gab4c5103338af3dac7e0fbc86895a3f1a',1,'glm']]], + ['lowp_5fdmat2',['lowp_dmat2',['../a00284.html#gad8e2727a6e7aa68280245bb0022118e1',1,'glm']]], + ['lowp_5fdmat2x2',['lowp_dmat2x2',['../a00284.html#gac61b94f5d9775f83f321bac899322fe2',1,'glm']]], + ['lowp_5fdmat2x3',['lowp_dmat2x3',['../a00284.html#gaf6bf2f5bde7ad5b9c289f777b93094af',1,'glm']]], + ['lowp_5fdmat2x4',['lowp_dmat2x4',['../a00284.html#ga97507a31ecee8609887d0f23bbde92c7',1,'glm']]], + ['lowp_5fdmat3',['lowp_dmat3',['../a00284.html#ga0cab80beee64a5f8d2ae4e823983063a',1,'glm']]], + ['lowp_5fdmat3x2',['lowp_dmat3x2',['../a00284.html#ga1e0ea3fba496bc7c6f620d2590acb66b',1,'glm']]], + ['lowp_5fdmat3x3',['lowp_dmat3x3',['../a00284.html#gac017848a9df570f60916a21a297b1e8e',1,'glm']]], + ['lowp_5fdmat3x4',['lowp_dmat3x4',['../a00284.html#ga93add35d2a44c5830978b827e8c295e8',1,'glm']]], + ['lowp_5fdmat4',['lowp_dmat4',['../a00284.html#ga708bc5b91bbfedd21debac8dcf2a64cd',1,'glm']]], + ['lowp_5fdmat4x2',['lowp_dmat4x2',['../a00284.html#ga382dc5295cead78766239a8457abfa98',1,'glm']]], + ['lowp_5fdmat4x3',['lowp_dmat4x3',['../a00284.html#ga3d7ea07da7c6e5c81a3f4c8b3d44056e',1,'glm']]], + ['lowp_5fdmat4x4',['lowp_dmat4x4',['../a00284.html#ga5b0413198b7e9f061f7534a221c9dac9',1,'glm']]], + ['lowp_5fdquat',['lowp_dquat',['../a00250.html#ga9e6e5f42e67dd5877350ba485c191f1c',1,'glm']]], + ['lowp_5fdualquat',['lowp_dualquat',['../a00317.html#gade05d29ebd4deea0f883d0e1bb4169aa',1,'glm']]], + ['lowp_5fdvec1',['lowp_dvec1',['../a00269.html#gaf906eb86b6e96c35138d0e4928e1435a',1,'glm']]], + ['lowp_5fdvec2',['lowp_dvec2',['../a00282.html#ga108086730d086b7f6f7a033955dfb9c3',1,'glm']]], + ['lowp_5fdvec3',['lowp_dvec3',['../a00282.html#ga42c518b2917e19ce6946a84c64a3a4b2',1,'glm']]], + ['lowp_5fdvec4',['lowp_dvec4',['../a00282.html#ga0b4432cb8d910e406576d10d802e190d',1,'glm']]], + ['lowp_5ff32',['lowp_f32',['../a00304.html#gaeea53879fc327293cf3352a409b7867b',1,'glm']]], + ['lowp_5ff32mat2',['lowp_f32mat2',['../a00304.html#ga52409bc6d4a2ce3421526c069220d685',1,'glm']]], + ['lowp_5ff32mat2x2',['lowp_f32mat2x2',['../a00304.html#ga1d091b6abfba1772450e1745a06525bc',1,'glm']]], + ['lowp_5ff32mat2x3',['lowp_f32mat2x3',['../a00304.html#ga961ccb34cd1a5654c772c8709e001dc5',1,'glm']]], + ['lowp_5ff32mat2x4',['lowp_f32mat2x4',['../a00304.html#gacc6bf0209dda0c7c14851a646071c974',1,'glm']]], + ['lowp_5ff32mat3',['lowp_f32mat3',['../a00304.html#ga4187f89f196505b40e63f516139511e5',1,'glm']]], + ['lowp_5ff32mat3x2',['lowp_f32mat3x2',['../a00304.html#gac53f9d7ab04eace67adad026092fb1e8',1,'glm']]], + ['lowp_5ff32mat3x3',['lowp_f32mat3x3',['../a00304.html#ga841211b641cff1fcf861bdb14e5e4abc',1,'glm']]], + ['lowp_5ff32mat3x4',['lowp_f32mat3x4',['../a00304.html#ga21b1b22dec013a72656e3644baf8a1e1',1,'glm']]], + ['lowp_5ff32mat4',['lowp_f32mat4',['../a00304.html#ga766aed2871e6173a81011a877f398f04',1,'glm']]], + ['lowp_5ff32mat4x2',['lowp_f32mat4x2',['../a00304.html#gae6f3fcb702a666de07650c149cfa845a',1,'glm']]], + ['lowp_5ff32mat4x3',['lowp_f32mat4x3',['../a00304.html#gac21eda58a1475449a5709b412ebd776c',1,'glm']]], + ['lowp_5ff32mat4x4',['lowp_f32mat4x4',['../a00304.html#ga4143d129898f91545948c46859adce44',1,'glm']]], + ['lowp_5ff32quat',['lowp_f32quat',['../a00304.html#gaa3ba60ef8f69c6aeb1629594eaa95347',1,'glm']]], + ['lowp_5ff32vec1',['lowp_f32vec1',['../a00304.html#ga43e5b41c834fcaf4db5a831c0e28128e',1,'glm']]], + ['lowp_5ff32vec2',['lowp_f32vec2',['../a00304.html#gaf3b694b2b8ded7e0b9f07b061917e1a0',1,'glm']]], + ['lowp_5ff32vec3',['lowp_f32vec3',['../a00304.html#gaf739a2cd7b81783a43148b53e40d983b',1,'glm']]], + ['lowp_5ff32vec4',['lowp_f32vec4',['../a00304.html#ga4e2e1debe022074ab224c9faf856d374',1,'glm']]], + ['lowp_5ff64',['lowp_f64',['../a00304.html#gabc7a97c07cbfac8e35eb5e63beb4b679',1,'glm']]], + ['lowp_5ff64mat2',['lowp_f64mat2',['../a00304.html#gafc730f6b4242763b0eda0ffa25150292',1,'glm']]], + ['lowp_5ff64mat2x2',['lowp_f64mat2x2',['../a00304.html#ga771fda9109933db34f808d92b9b84d7e',1,'glm']]], + ['lowp_5ff64mat2x3',['lowp_f64mat2x3',['../a00304.html#ga39e90adcffe33264bd608fa9c6bd184b',1,'glm']]], + ['lowp_5ff64mat2x4',['lowp_f64mat2x4',['../a00304.html#ga50265a202fbfe0a25fc70066c31d9336',1,'glm']]], + ['lowp_5ff64mat3',['lowp_f64mat3',['../a00304.html#ga58119a41d143ebaea0df70fe882e8a40',1,'glm']]], + ['lowp_5ff64mat3x2',['lowp_f64mat3x2',['../a00304.html#gab0eb2d65514ee3e49905aa2caad8c0ad',1,'glm']]], + ['lowp_5ff64mat3x3',['lowp_f64mat3x3',['../a00304.html#gac8f8a12ee03105ef8861dc652434e3b7',1,'glm']]], + ['lowp_5ff64mat3x4',['lowp_f64mat3x4',['../a00304.html#gade8d1edfb23996ab6c622e65e3893271',1,'glm']]], + ['lowp_5ff64mat4',['lowp_f64mat4',['../a00304.html#ga7451266e67794bd1125163502bc4a570',1,'glm']]], + ['lowp_5ff64mat4x2',['lowp_f64mat4x2',['../a00304.html#gab0cecb80fd106bc369b9e46a165815ce',1,'glm']]], + ['lowp_5ff64mat4x3',['lowp_f64mat4x3',['../a00304.html#gae731613b25db3a5ef5a05d21e57a57d3',1,'glm']]], + ['lowp_5ff64mat4x4',['lowp_f64mat4x4',['../a00304.html#ga8c9cd734e03cd49674f3e287aa4a6f95',1,'glm']]], + ['lowp_5ff64quat',['lowp_f64quat',['../a00304.html#gaa3ee2bc4af03cc06578b66b3e3f878ae',1,'glm']]], + ['lowp_5ff64vec1',['lowp_f64vec1',['../a00304.html#gaf2d02c5f4d59135b9bc524fe317fd26b',1,'glm']]], + ['lowp_5ff64vec2',['lowp_f64vec2',['../a00304.html#ga4e641a54d70c81eabf56c25c966d04bd',1,'glm']]], + ['lowp_5ff64vec3',['lowp_f64vec3',['../a00304.html#gae7a4711107b7d078fc5f03ce2227b90b',1,'glm']]], + ['lowp_5ff64vec4',['lowp_f64vec4',['../a00304.html#gaa666bb9e6d204d3bea0b3a39a3a335f4',1,'glm']]], + ['lowp_5ffdualquat',['lowp_fdualquat',['../a00317.html#gaa38f671be25a7f3b136a452a8bb42860',1,'glm']]], + ['lowp_5ffloat32',['lowp_float32',['../a00304.html#ga41b0d390bd8cc827323b1b3816ff4bf8',1,'glm']]], + ['lowp_5ffloat32_5ft',['lowp_float32_t',['../a00304.html#gaea881cae4ddc6c0fbf7cc5b08177ca5b',1,'glm']]], + ['lowp_5ffloat64',['lowp_float64',['../a00304.html#ga3714dab2c16a6545a405cb0c3b3aaa6f',1,'glm']]], + ['lowp_5ffloat64_5ft',['lowp_float64_t',['../a00304.html#ga7286a37076a09da140df18bfa75d4e38',1,'glm']]], + ['lowp_5ffmat2',['lowp_fmat2',['../a00304.html#ga5bba0ce31210e274f73efacd3364c03f',1,'glm']]], + ['lowp_5ffmat2x2',['lowp_fmat2x2',['../a00304.html#gab0feb11edd0d3ab3e8ed996d349a5066',1,'glm']]], + ['lowp_5ffmat2x3',['lowp_fmat2x3',['../a00304.html#ga71cdb53801ed4c3aadb3603c04723210',1,'glm']]], + ['lowp_5ffmat2x4',['lowp_fmat2x4',['../a00304.html#gaab217601c74974a84acbca428123ecf7',1,'glm']]], + ['lowp_5ffmat3',['lowp_fmat3',['../a00304.html#ga83079315e230e8f39728f4bf0d2f9a9b',1,'glm']]], + ['lowp_5ffmat3x2',['lowp_fmat3x2',['../a00304.html#ga49b98e7d71804af45d86886a489e633c',1,'glm']]], + ['lowp_5ffmat3x3',['lowp_fmat3x3',['../a00304.html#gaba56275dd04a7a61560b0e8fa5d365b4',1,'glm']]], + ['lowp_5ffmat3x4',['lowp_fmat3x4',['../a00304.html#ga28733aec7288191b314d42154fd0b690',1,'glm']]], + ['lowp_5ffmat4',['lowp_fmat4',['../a00304.html#ga5803cb9ae26399762d8bba9e0b2fc09f',1,'glm']]], + ['lowp_5ffmat4x2',['lowp_fmat4x2',['../a00304.html#ga5868c2dcce41cc3ea5edcaeae239f62c',1,'glm']]], + ['lowp_5ffmat4x3',['lowp_fmat4x3',['../a00304.html#ga5e649bbdb135fbcb4bfe950f4c73a444',1,'glm']]], + ['lowp_5ffmat4x4',['lowp_fmat4x4',['../a00304.html#gac2f5263708ac847b361a9841e74ddf9f',1,'glm']]], + ['lowp_5ffvec1',['lowp_fvec1',['../a00304.html#ga346b2336fff168a7e0df1583aae3e5a5',1,'glm']]], + ['lowp_5ffvec2',['lowp_fvec2',['../a00304.html#ga62a32c31f4e2e8ca859663b6e3289a2d',1,'glm']]], + ['lowp_5ffvec3',['lowp_fvec3',['../a00304.html#ga40b5c557efebb5bb99d6b9aa81095afa',1,'glm']]], + ['lowp_5ffvec4',['lowp_fvec4',['../a00304.html#ga755484ffbe39ae3db2875953ed04e7b7',1,'glm']]], + ['lowp_5fi16',['lowp_i16',['../a00304.html#ga392b673fd10847bfb78fb808c6cf8ff7',1,'glm']]], + ['lowp_5fi16vec1',['lowp_i16vec1',['../a00304.html#ga501a2f313f1c220eef4ab02bdabdc3c6',1,'glm']]], + ['lowp_5fi16vec2',['lowp_i16vec2',['../a00304.html#ga7cac84b520a6b57f2fbd880d3d63c51b',1,'glm']]], + ['lowp_5fi16vec3',['lowp_i16vec3',['../a00304.html#gab69ef9cbc2a9214bf5596c528c801b72',1,'glm']]], + ['lowp_5fi16vec4',['lowp_i16vec4',['../a00304.html#ga1d47d94d17c2406abdd1f087a816e387',1,'glm']]], + ['lowp_5fi32',['lowp_i32',['../a00304.html#ga7ff73a45cea9613ebf1a9fad0b9f82ac',1,'glm']]], + ['lowp_5fi32vec1',['lowp_i32vec1',['../a00304.html#gae31ac3608cf643ceffd6554874bec4a0',1,'glm']]], + ['lowp_5fi32vec2',['lowp_i32vec2',['../a00304.html#ga867a3c2d99ab369a454167d2c0a24dbd',1,'glm']]], + ['lowp_5fi32vec3',['lowp_i32vec3',['../a00304.html#ga5fe17c87ede1b1b4d92454cff4da076d',1,'glm']]], + ['lowp_5fi32vec4',['lowp_i32vec4',['../a00304.html#gac9b2eb4296ffe50a32eacca9ed932c08',1,'glm']]], + ['lowp_5fi64',['lowp_i64',['../a00304.html#ga354736e0c645099cd44c42fb2f87c2b8',1,'glm']]], + ['lowp_5fi64vec1',['lowp_i64vec1',['../a00304.html#gab0f7d875db5f3cc9f3168c5a0ed56437',1,'glm']]], + ['lowp_5fi64vec2',['lowp_i64vec2',['../a00304.html#gab485c48f06a4fdd6b8d58d343bb49f3c',1,'glm']]], + ['lowp_5fi64vec3',['lowp_i64vec3',['../a00304.html#ga5cb1dc9e8d300c2cdb0d7ff2308fa36c',1,'glm']]], + ['lowp_5fi64vec4',['lowp_i64vec4',['../a00304.html#gabb4229a4c1488bf063eed0c45355bb9c',1,'glm']]], + ['lowp_5fi8',['lowp_i8',['../a00304.html#ga552a6bde5e75984efb0f863278da2e54',1,'glm']]], + ['lowp_5fi8vec1',['lowp_i8vec1',['../a00304.html#ga036d6c7ca9fbbdc5f3871bfcb937c85c',1,'glm']]], + ['lowp_5fi8vec2',['lowp_i8vec2',['../a00304.html#gac03e5099d27eeaa74b6016ea435a1df2',1,'glm']]], + ['lowp_5fi8vec3',['lowp_i8vec3',['../a00304.html#gae2f43ace6b5b33ab49516d9e40af1845',1,'glm']]], + ['lowp_5fi8vec4',['lowp_i8vec4',['../a00304.html#ga6d388e9b9aa1b389f0672d9c7dfc61c5',1,'glm']]], + ['lowp_5fimat2',['lowp_imat2',['../a00294.html#gaa0bff0be804142bb16d441aec0a7962e',1,'glm']]], + ['lowp_5fimat2x2',['lowp_imat2x2',['../a00294.html#ga92b95b679975d408645547ab45a8dcd8',1,'glm']]], + ['lowp_5fimat2x3',['lowp_imat2x3',['../a00294.html#ga8c9e7a388f8e7c52f1e6857dee8afb65',1,'glm']]], + ['lowp_5fimat2x4',['lowp_imat2x4',['../a00294.html#ga9cc13bd1f8dd2933e9fa31fe3f70e16e',1,'glm']]], + ['lowp_5fimat3',['lowp_imat3',['../a00294.html#ga69bfe668f4170379fc1f35d82b060c43',1,'glm']]], + ['lowp_5fimat3x2',['lowp_imat3x2',['../a00294.html#ga33db8f27491d30906cd37c0d86b3f432',1,'glm']]], + ['lowp_5fimat3x3',['lowp_imat3x3',['../a00294.html#ga664f061df00020048c3f8530329ace45',1,'glm']]], + ['lowp_5fimat3x4',['lowp_imat3x4',['../a00294.html#ga9273faab33623d944af4080befbb2c80',1,'glm']]], + ['lowp_5fimat4',['lowp_imat4',['../a00294.html#gad1e77f7270cad461ca4fcb4c3ec2e98c',1,'glm']]], + ['lowp_5fimat4x2',['lowp_imat4x2',['../a00294.html#ga26ec1a2ba08a1488f5f05336858a0f09',1,'glm']]], + ['lowp_5fimat4x3',['lowp_imat4x3',['../a00294.html#ga8f40483a3ae634ead8ad22272c543a33',1,'glm']]], + ['lowp_5fimat4x4',['lowp_imat4x4',['../a00294.html#gaf65677e53ac8e31a107399340d5e2451',1,'glm']]], + ['lowp_5fint16',['lowp_int16',['../a00304.html#ga698e36b01167fc0f037889334dce8def',1,'glm']]], + ['lowp_5fint16_5ft',['lowp_int16_t',['../a00304.html#ga8b2cd8d31eb345b2d641d9261c38db1a',1,'glm']]], + ['lowp_5fint32',['lowp_int32',['../a00304.html#ga864aabca5f3296e176e0c3ed9cc16b02',1,'glm']]], + ['lowp_5fint32_5ft',['lowp_int32_t',['../a00304.html#ga0350631d35ff800e6133ac6243b13cbc',1,'glm']]], + ['lowp_5fint64',['lowp_int64',['../a00304.html#gaf645b1a60203b39c0207baff5e3d8c3c',1,'glm']]], + ['lowp_5fint64_5ft',['lowp_int64_t',['../a00304.html#gaebf341fc4a5be233f7dde962c2e33847',1,'glm']]], + ['lowp_5fint8',['lowp_int8',['../a00304.html#ga760bcf26fdb23a2c3ecad3c928a19ae6',1,'glm']]], + ['lowp_5fint8_5ft',['lowp_int8_t',['../a00304.html#ga119c41d73fe9977358174eb3ac1035a3',1,'glm']]], + ['lowp_5fivec1',['lowp_ivec1',['../a00273.html#ga836dbb1dc516c233b7f5fe9763bc15dc',1,'glm']]], + ['lowp_5fivec2',['lowp_ivec2',['../a00282.html#ga8433c6c1fdd80c0a83941d94aff73fa0',1,'glm']]], + ['lowp_5fivec3',['lowp_ivec3',['../a00282.html#gac1a86a75b3c68ebb704d7094043669d6',1,'glm']]], + ['lowp_5fivec4',['lowp_ivec4',['../a00282.html#ga27fc23da61859cd6356326c5f1c796de',1,'glm']]], + ['lowp_5fmat2',['lowp_mat2',['../a00284.html#gae400c4ce1f5f3e1fa12861b2baed331a',1,'glm']]], + ['lowp_5fmat2x2',['lowp_mat2x2',['../a00284.html#ga2df7cdaf9a571ce7a1b09435f502c694',1,'glm']]], + ['lowp_5fmat2x3',['lowp_mat2x3',['../a00284.html#ga3eee3a74d0f1de8635d846dfb29ec4bb',1,'glm']]], + ['lowp_5fmat2x4',['lowp_mat2x4',['../a00284.html#gade27f8324a16626cbce5d3e7da66b070',1,'glm']]], + ['lowp_5fmat3',['lowp_mat3',['../a00284.html#ga6271ebc85ed778ccc15458c3d86fc854',1,'glm']]], + ['lowp_5fmat3x2',['lowp_mat3x2',['../a00284.html#gaabf6cf90fd31efe25c94965507e98390',1,'glm']]], + ['lowp_5fmat3x3',['lowp_mat3x3',['../a00284.html#ga63362cb4a63fc1be7d2e49cd5d574c84',1,'glm']]], + ['lowp_5fmat3x4',['lowp_mat3x4',['../a00284.html#gac5fc6786688eff02904ca5e7d6960092',1,'glm']]], + ['lowp_5fmat4',['lowp_mat4',['../a00284.html#ga2dedee030500865267cd5851c00c139d',1,'glm']]], + ['lowp_5fmat4x2',['lowp_mat4x2',['../a00284.html#gafa3cdb8f24d09d761ec9ae2a4c7e5e21',1,'glm']]], + ['lowp_5fmat4x3',['lowp_mat4x3',['../a00284.html#ga534c3ef5c3b8fdd8656b6afc205b4b77',1,'glm']]], + ['lowp_5fmat4x4',['lowp_mat4x4',['../a00284.html#ga686468a9a815bd4db8cddae42a6d6b87',1,'glm']]], + ['lowp_5fquat',['lowp_quat',['../a00253.html#gade62c5316c1c11a79c34c00c189558eb',1,'glm']]], + ['lowp_5fu16',['lowp_u16',['../a00304.html#ga504ce1631cb2ac02fcf1d44d8c2aa126',1,'glm']]], + ['lowp_5fu16vec1',['lowp_u16vec1',['../a00304.html#gaa6aab4ee7189b86716f5d7015d43021d',1,'glm']]], + ['lowp_5fu16vec2',['lowp_u16vec2',['../a00304.html#ga2a7d997da9ac29cb931e35bd399f58df',1,'glm']]], + ['lowp_5fu16vec3',['lowp_u16vec3',['../a00304.html#gac0253db6c3d3bae1f591676307a9dd8c',1,'glm']]], + ['lowp_5fu16vec4',['lowp_u16vec4',['../a00304.html#gaa7f00459b9a2e5b2757e70afc0c189e1',1,'glm']]], + ['lowp_5fu32',['lowp_u32',['../a00304.html#ga4f072ada9552e1e480bbb3b1acde5250',1,'glm']]], + ['lowp_5fu32vec1',['lowp_u32vec1',['../a00304.html#gabed3be8dfdc4a0df4bf3271dbd7344c4',1,'glm']]], + ['lowp_5fu32vec2',['lowp_u32vec2',['../a00304.html#gaf7e286e81347011e257ee779524e73b9',1,'glm']]], + ['lowp_5fu32vec3',['lowp_u32vec3',['../a00304.html#gad3ad390560a671b1f676fbf03cd3aa15',1,'glm']]], + ['lowp_5fu32vec4',['lowp_u32vec4',['../a00304.html#ga4502885718742aa238c36a312c3f3f20',1,'glm']]], + ['lowp_5fu64',['lowp_u64',['../a00304.html#ga30069d1f02b19599cbfadf98c23ac6ed',1,'glm']]], + ['lowp_5fu64vec1',['lowp_u64vec1',['../a00304.html#ga859be7b9d3a3765c1cafc14dbcf249a6',1,'glm']]], + ['lowp_5fu64vec2',['lowp_u64vec2',['../a00304.html#ga581485db4ba6ddb501505ee711fd8e42',1,'glm']]], + ['lowp_5fu64vec3',['lowp_u64vec3',['../a00304.html#gaa4a8682bec7ec8af666ef87fae38d5d1',1,'glm']]], + ['lowp_5fu64vec4',['lowp_u64vec4',['../a00304.html#ga6fccc89c34045c86339f6fa781ce96de',1,'glm']]], + ['lowp_5fu8',['lowp_u8',['../a00304.html#ga1b09f03da7ac43055c68a349d5445083',1,'glm']]], + ['lowp_5fu8vec1',['lowp_u8vec1',['../a00304.html#ga4b2e0e10d8d154fec9cab50e216588ec',1,'glm']]], + ['lowp_5fu8vec2',['lowp_u8vec2',['../a00304.html#gae6f63fa38635431e51a8f2602f15c566',1,'glm']]], + ['lowp_5fu8vec3',['lowp_u8vec3',['../a00304.html#ga150dc47e31c6b8cf8461803c8d56f7bd',1,'glm']]], + ['lowp_5fu8vec4',['lowp_u8vec4',['../a00304.html#ga9910927f3a4d1addb3da6a82542a8287',1,'glm']]], + ['lowp_5fuint16',['lowp_uint16',['../a00304.html#gad68bfd9f881856fc863a6ebca0b67f78',1,'glm']]], + ['lowp_5fuint16_5ft',['lowp_uint16_t',['../a00304.html#ga91c4815f93177eb423362fd296a87e9f',1,'glm']]], + ['lowp_5fuint32',['lowp_uint32',['../a00304.html#gaa6a5b461bbf5fe20982472aa51896d4b',1,'glm']]], + ['lowp_5fuint32_5ft',['lowp_uint32_t',['../a00304.html#gaf1b735b4b1145174f4e4167d13778f9b',1,'glm']]], + ['lowp_5fuint64',['lowp_uint64',['../a00304.html#gaa212b805736a759998e312cbdd550fae',1,'glm']]], + ['lowp_5fuint64_5ft',['lowp_uint64_t',['../a00304.html#ga8dd3a3281ae5c970ffe0c41d538aa153',1,'glm']]], + ['lowp_5fuint8',['lowp_uint8',['../a00304.html#gaf49470869e9be2c059629b250619804e',1,'glm']]], + ['lowp_5fuint8_5ft',['lowp_uint8_t',['../a00304.html#ga667b2ece2b258be898812dc2177995d1',1,'glm']]], + ['lowp_5fumat2',['lowp_umat2',['../a00294.html#gaf2fba702d990437fc88ff3f3a76846ee',1,'glm']]], + ['lowp_5fumat2x2',['lowp_umat2x2',['../a00294.html#ga7b2e9d89745f7175051284e54c81d81c',1,'glm']]], + ['lowp_5fumat2x3',['lowp_umat2x3',['../a00294.html#ga3072f90fd86f17a862e21589fbb14c0f',1,'glm']]], + ['lowp_5fumat2x4',['lowp_umat2x4',['../a00294.html#ga8bb45fec4bd77bd81b4ae7eb961a270d',1,'glm']]], + ['lowp_5fumat3',['lowp_umat3',['../a00294.html#gaf1145f72bcdd590f5808c4bc170c2924',1,'glm']]], + ['lowp_5fumat3x2',['lowp_umat3x2',['../a00294.html#ga56ea68c6a6cba8d8c21d17bb14e69c6b',1,'glm']]], + ['lowp_5fumat3x3',['lowp_umat3x3',['../a00294.html#ga4f660a39a395cc14f018f985e7dfbeb5',1,'glm']]], + ['lowp_5fumat3x4',['lowp_umat3x4',['../a00294.html#gaec3d624306bd59649f021864709d56b5',1,'glm']]], + ['lowp_5fumat4',['lowp_umat4',['../a00294.html#gac092c6105827bf9ea080db38074b78eb',1,'glm']]], + ['lowp_5fumat4x2',['lowp_umat4x2',['../a00294.html#ga7716c2b210d141846f1ac4e774adef5e',1,'glm']]], + ['lowp_5fumat4x3',['lowp_umat4x3',['../a00294.html#ga09ab33a2636f5f43f7fae29cfbc20fff',1,'glm']]], + ['lowp_5fumat4x4',['lowp_umat4x4',['../a00294.html#ga10aafc66cf1a0ece336b1c5ae13d0cc0',1,'glm']]], + ['lowp_5fuvec1',['lowp_uvec1',['../a00277.html#ga8bf3fc8a7863d140f48b29341c750402',1,'glm']]], + ['lowp_5fuvec2',['lowp_uvec2',['../a00282.html#ga752ee45136011301b64afd8c310c47a4',1,'glm']]], + ['lowp_5fuvec3',['lowp_uvec3',['../a00282.html#ga7b2efbdd6bdc2f8250c57f3e5dc9a292',1,'glm']]], + ['lowp_5fuvec4',['lowp_uvec4',['../a00282.html#ga5e6a632ec1165cf9f54ceeaa5e9b2b1e',1,'glm']]], + ['lowp_5fvec1',['lowp_vec1',['../a00271.html#ga0a57630f03031706b1d26a7d70d9184c',1,'glm']]], + ['lowp_5fvec2',['lowp_vec2',['../a00282.html#ga30e8baef5d56d5c166872a2bc00f36e9',1,'glm']]], + ['lowp_5fvec3',['lowp_vec3',['../a00282.html#ga868e8e4470a3ef97c7ee3032bf90dc79',1,'glm']]], + ['lowp_5fvec4',['lowp_vec4',['../a00282.html#gace3acb313c800552a9411953eb8b2ed7',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_7.html b/external/glm-0.9.9.8/doc/api/search/typedefs_7.html similarity index 97% rename from external/glm/doc/api/search/typedefs_7.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_7.html index ad03564..99e06df 100644 --- a/external/glm/doc/api/search/typedefs_7.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_7.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_7.js b/external/glm-0.9.9.8/doc/api/search/typedefs_7.js new file mode 100644 index 0000000..243fbd9 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_7.js @@ -0,0 +1,200 @@ +var searchData= +[ + ['mat2',['mat2',['../a00283.html#ga8dd59e7fc6913ac5d61b86553e9148ba',1,'glm']]], + ['mat2x2',['mat2x2',['../a00283.html#gaaa17ef6bfa4e4f2692348b1460c8efcb',1,'glm']]], + ['mat2x3',['mat2x3',['../a00283.html#ga493ab21243abe564b3f7d381e677d29a',1,'glm']]], + ['mat2x4',['mat2x4',['../a00283.html#ga8e879b57ddd81e5bf5a88929844e8b40',1,'glm']]], + ['mat3',['mat3',['../a00283.html#gaefb0fc7a4960b782c18708bb6b655262',1,'glm']]], + ['mat3x2',['mat3x2',['../a00280.html#ga2c27aea32de57d58aec8e92d5d2181e2',1,'glm']]], + ['mat3x3',['mat3x3',['../a00283.html#gab91887d7565059dac640e3a1921c914a',1,'glm']]], + ['mat3x4',['mat3x4',['../a00283.html#gaf991cad0b34f64e33af186326dbc4d66',1,'glm']]], + ['mat4',['mat4',['../a00283.html#ga0db98d836c5549d31cf64ecd043b7af7',1,'glm']]], + ['mat4x2',['mat4x2',['../a00283.html#gad941c947ad6cdd117a0e8554a4754983',1,'glm']]], + ['mat4x3',['mat4x3',['../a00283.html#gac7574544bb94777bdbd2eb224eb72fd0',1,'glm']]], + ['mat4x4',['mat4x4',['../a00283.html#gab2d35cc2655f44d60958d60a1de34e81',1,'glm']]], + ['mediump_5fbvec1',['mediump_bvec1',['../a00266.html#ga7b4ccb989ba179fa44f7b0879c782621',1,'glm']]], + ['mediump_5fbvec2',['mediump_bvec2',['../a00282.html#ga1e743764869efa9223c2bcefccedaddc',1,'glm']]], + ['mediump_5fbvec3',['mediump_bvec3',['../a00282.html#ga50c783c25082882ef00fe2e5cddba4aa',1,'glm']]], + ['mediump_5fbvec4',['mediump_bvec4',['../a00282.html#ga0be2c682258604a35004f088782a9645',1,'glm']]], + ['mediump_5fddualquat',['mediump_ddualquat',['../a00317.html#ga0fb11e48e2d16348ccb06a25213641b4',1,'glm']]], + ['mediump_5fdmat2',['mediump_dmat2',['../a00284.html#ga6205fd19be355600334edef6af0b27cb',1,'glm']]], + ['mediump_5fdmat2x2',['mediump_dmat2x2',['../a00284.html#ga51dc36a7719cb458fa5114831c20d64f',1,'glm']]], + ['mediump_5fdmat2x3',['mediump_dmat2x3',['../a00284.html#ga741e05adf1f12d5d913f67088db1009a',1,'glm']]], + ['mediump_5fdmat2x4',['mediump_dmat2x4',['../a00284.html#ga685bda24922d112786af385deb4deb43',1,'glm']]], + ['mediump_5fdmat3',['mediump_dmat3',['../a00284.html#ga939fbf9c53008a8e84c7dd7cf8de29e2',1,'glm']]], + ['mediump_5fdmat3x2',['mediump_dmat3x2',['../a00284.html#ga2076157df85e49b8c021e03e46a376c1',1,'glm']]], + ['mediump_5fdmat3x3',['mediump_dmat3x3',['../a00284.html#ga47bd2aae4701ee2fc865674a9df3d7a6',1,'glm']]], + ['mediump_5fdmat3x4',['mediump_dmat3x4',['../a00284.html#ga3a132bd05675c2e46556f67cf738600b',1,'glm']]], + ['mediump_5fdmat4',['mediump_dmat4',['../a00284.html#gaf650bc667bf2a0e496b5a9182bc8d378',1,'glm']]], + ['mediump_5fdmat4x2',['mediump_dmat4x2',['../a00284.html#gae220fa4c5a7b13ef2ab0420340de645c',1,'glm']]], + ['mediump_5fdmat4x3',['mediump_dmat4x3',['../a00284.html#ga43ef60e4d996db15c9c8f069a96ff763',1,'glm']]], + ['mediump_5fdmat4x4',['mediump_dmat4x4',['../a00284.html#ga5389b3ab32dc0d72bea00057ab6d1dd3',1,'glm']]], + ['mediump_5fdquat',['mediump_dquat',['../a00250.html#gacdf73b1f7fd8f5a0c79a3934e99c1a14',1,'glm']]], + ['mediump_5fdualquat',['mediump_dualquat',['../a00317.html#gaa7aeb54c167712b38f2178a1be2360ad',1,'glm']]], + ['mediump_5fdvec1',['mediump_dvec1',['../a00269.html#ga79a789ebb176b37a45848f7ccdd3b3dd',1,'glm']]], + ['mediump_5fdvec2',['mediump_dvec2',['../a00282.html#ga2f4f6e9a69a0281d06940fd0990cafc3',1,'glm']]], + ['mediump_5fdvec3',['mediump_dvec3',['../a00282.html#ga61c3b1dff4ec7c878af80503141b9f37',1,'glm']]], + ['mediump_5fdvec4',['mediump_dvec4',['../a00282.html#ga23a8bca00914a51542bfea13a4778186',1,'glm']]], + ['mediump_5ff32',['mediump_f32',['../a00304.html#ga3b27fcd9eaa2757f0aaf6b0ce0d85c80',1,'glm']]], + ['mediump_5ff32mat2',['mediump_f32mat2',['../a00304.html#gaf9020c6176a75bc84828ab01ea7dac25',1,'glm']]], + ['mediump_5ff32mat2x2',['mediump_f32mat2x2',['../a00304.html#gaa3ca74a44102035b3ffb5c9c52dfdd3f',1,'glm']]], + ['mediump_5ff32mat2x3',['mediump_f32mat2x3',['../a00304.html#gad4cc829ab1ad3e05ac0a24828a3c95cf',1,'glm']]], + ['mediump_5ff32mat2x4',['mediump_f32mat2x4',['../a00304.html#gae71445ac6cd0b9fba3e5c905cd030fb1',1,'glm']]], + ['mediump_5ff32mat3',['mediump_f32mat3',['../a00304.html#gaaaf878d0d7bfc0aac054fe269a886ca8',1,'glm']]], + ['mediump_5ff32mat3x2',['mediump_f32mat3x2',['../a00304.html#gaaab39454f56cf9fc6d940358ce5e6a0f',1,'glm']]], + ['mediump_5ff32mat3x3',['mediump_f32mat3x3',['../a00304.html#gacd80ad7640e9e32f2edcb8330b1ffe4f',1,'glm']]], + ['mediump_5ff32mat3x4',['mediump_f32mat3x4',['../a00304.html#ga8df705d775b776f5ae6b39e2ab892899',1,'glm']]], + ['mediump_5ff32mat4',['mediump_f32mat4',['../a00304.html#ga4491baaebbc46a20f1cb5da985576bf4',1,'glm']]], + ['mediump_5ff32mat4x2',['mediump_f32mat4x2',['../a00304.html#gab005efe0fa4de1a928e8ddec4bc2c43f',1,'glm']]], + ['mediump_5ff32mat4x3',['mediump_f32mat4x3',['../a00304.html#gade108f16633cf95fa500b5b8c36c8b00',1,'glm']]], + ['mediump_5ff32mat4x4',['mediump_f32mat4x4',['../a00304.html#ga936e95b881ecd2d109459ca41913fa99',1,'glm']]], + ['mediump_5ff32quat',['mediump_f32quat',['../a00304.html#gaa40c03d52dbfbfaf03e75773b9606ff3',1,'glm']]], + ['mediump_5ff32vec1',['mediump_f32vec1',['../a00304.html#gabb33cab7d7c74cc14aa95455d0690865',1,'glm']]], + ['mediump_5ff32vec2',['mediump_f32vec2',['../a00304.html#gad6eb11412a3161ca8dc1d63b2a307c4b',1,'glm']]], + ['mediump_5ff32vec3',['mediump_f32vec3',['../a00304.html#ga062ffef2973bd8241df993c3b30b327c',1,'glm']]], + ['mediump_5ff32vec4',['mediump_f32vec4',['../a00304.html#gad80c84bcd5f585840faa6179f6fd446c',1,'glm']]], + ['mediump_5ff64',['mediump_f64',['../a00304.html#ga6d40381d78472553f878f66e443feeef',1,'glm']]], + ['mediump_5ff64mat2',['mediump_f64mat2',['../a00304.html#gac1281da5ded55047e8892b0e1f1ae965',1,'glm']]], + ['mediump_5ff64mat2x2',['mediump_f64mat2x2',['../a00304.html#ga4fd527644cccbca4cb205320eab026f3',1,'glm']]], + ['mediump_5ff64mat2x3',['mediump_f64mat2x3',['../a00304.html#gafd9a6ebc0c7b95f5c581d00d16a17c54',1,'glm']]], + ['mediump_5ff64mat2x4',['mediump_f64mat2x4',['../a00304.html#gaf306dd69e53633636aee38cea79d4cb7',1,'glm']]], + ['mediump_5ff64mat3',['mediump_f64mat3',['../a00304.html#gad35fb67eb1d03c5a514f0bd7aed1c776',1,'glm']]], + ['mediump_5ff64mat3x2',['mediump_f64mat3x2',['../a00304.html#gacd926d36a72433f6cac51dd60fa13107',1,'glm']]], + ['mediump_5ff64mat3x3',['mediump_f64mat3x3',['../a00304.html#ga84d88a6e3a54ccd2b67e195af4a4c23e',1,'glm']]], + ['mediump_5ff64mat3x4',['mediump_f64mat3x4',['../a00304.html#gad38c544d332b8c4bd0b70b1bd9feccc2',1,'glm']]], + ['mediump_5ff64mat4',['mediump_f64mat4',['../a00304.html#gaa805ef691c711dc41e2776cfb67f5cf5',1,'glm']]], + ['mediump_5ff64mat4x2',['mediump_f64mat4x2',['../a00304.html#ga17d36f0ea22314117e1cec9594b33945',1,'glm']]], + ['mediump_5ff64mat4x3',['mediump_f64mat4x3',['../a00304.html#ga54697a78f9a4643af6a57fc2e626ec0d',1,'glm']]], + ['mediump_5ff64mat4x4',['mediump_f64mat4x4',['../a00304.html#ga66edb8de17b9235029472f043ae107e9',1,'glm']]], + ['mediump_5ff64quat',['mediump_f64quat',['../a00304.html#ga5e52f485059ce6e3010c590b882602c9',1,'glm']]], + ['mediump_5ff64vec1',['mediump_f64vec1',['../a00304.html#gac30fdf8afa489400053275b6a3350127',1,'glm']]], + ['mediump_5ff64vec2',['mediump_f64vec2',['../a00304.html#ga8ebc04ecf6440c4ee24718a16600ce6b',1,'glm']]], + ['mediump_5ff64vec3',['mediump_f64vec3',['../a00304.html#ga461c4c7d0757404dd0dba931760b25cf',1,'glm']]], + ['mediump_5ff64vec4',['mediump_f64vec4',['../a00304.html#gacfea053bd6bb3eddb996a4f94de22a3e',1,'glm']]], + ['mediump_5ffdualquat',['mediump_fdualquat',['../a00317.html#ga4a6b594ff7e81150d8143001367a9431',1,'glm']]], + ['mediump_5ffloat32',['mediump_float32',['../a00304.html#ga7812bf00676fb1a86dcd62cca354d2c7',1,'glm']]], + ['mediump_5ffloat32_5ft',['mediump_float32_t',['../a00304.html#gae4dee61f8fe1caccec309fbed02faf12',1,'glm']]], + ['mediump_5ffloat64',['mediump_float64',['../a00304.html#gab83d8aae6e4f115e97a785e8574a115f',1,'glm']]], + ['mediump_5ffloat64_5ft',['mediump_float64_t',['../a00304.html#gac61843e4fa96c1f4e9d8316454f32a8e',1,'glm']]], + ['mediump_5ffmat2',['mediump_fmat2',['../a00304.html#ga74e9133378fd0b4da8ac0bc0876702ff',1,'glm']]], + ['mediump_5ffmat2x2',['mediump_fmat2x2',['../a00304.html#ga98a687c17b174ea316b5f397b64f44bc',1,'glm']]], + ['mediump_5ffmat2x3',['mediump_fmat2x3',['../a00304.html#gaa03f939d90d5ef157df957d93f0b9a64',1,'glm']]], + ['mediump_5ffmat2x4',['mediump_fmat2x4',['../a00304.html#ga35223623e9ccebd8a281873b71b7d213',1,'glm']]], + ['mediump_5ffmat3',['mediump_fmat3',['../a00304.html#ga80823dfad5dba98512c76af498343847',1,'glm']]], + ['mediump_5ffmat3x2',['mediump_fmat3x2',['../a00304.html#ga42569e5b92f8635cedeadb1457ee1467',1,'glm']]], + ['mediump_5ffmat3x3',['mediump_fmat3x3',['../a00304.html#gaa6f526388c74a66b3d52315a14d434ae',1,'glm']]], + ['mediump_5ffmat3x4',['mediump_fmat3x4',['../a00304.html#gaefe8ef520c6cb78590ebbefe648da4d4',1,'glm']]], + ['mediump_5ffmat4',['mediump_fmat4',['../a00304.html#gac1c38778c0b5a1263f07753c05a4f7b9',1,'glm']]], + ['mediump_5ffmat4x2',['mediump_fmat4x2',['../a00304.html#gacea38a85893e17e6834b6cb09a9ad0cf',1,'glm']]], + ['mediump_5ffmat4x3',['mediump_fmat4x3',['../a00304.html#ga41ad497f7eae211556aefd783cb02b90',1,'glm']]], + ['mediump_5ffmat4x4',['mediump_fmat4x4',['../a00304.html#ga22e27beead07bff4d5ce9d6065a57279',1,'glm']]], + ['mediump_5ffvec1',['mediump_fvec1',['../a00304.html#ga367964fc2133d3f1b5b3755ff9cf6c9b',1,'glm']]], + ['mediump_5ffvec2',['mediump_fvec2',['../a00304.html#ga44bfa55cda5dbf53f24a1fb7610393d6',1,'glm']]], + ['mediump_5ffvec3',['mediump_fvec3',['../a00304.html#ga999dc6703ad16e3d3c26b74ea8083f07',1,'glm']]], + ['mediump_5ffvec4',['mediump_fvec4',['../a00304.html#ga1bed890513c0f50b7e7ba4f7f359dbfb',1,'glm']]], + ['mediump_5fi16',['mediump_i16',['../a00304.html#ga62a17cddeb4dffb4e18fe3aea23f051a',1,'glm']]], + ['mediump_5fi16vec1',['mediump_i16vec1',['../a00304.html#gacc44265ed440bf5e6e566782570de842',1,'glm']]], + ['mediump_5fi16vec2',['mediump_i16vec2',['../a00304.html#ga4b5e2c9aaa5d7717bf71179aefa12e88',1,'glm']]], + ['mediump_5fi16vec3',['mediump_i16vec3',['../a00304.html#ga3be6c7fc5fe08fa2274bdb001d5f2633',1,'glm']]], + ['mediump_5fi16vec4',['mediump_i16vec4',['../a00304.html#gaf52982bb23e3a3772649b2c5bb84b107',1,'glm']]], + ['mediump_5fi32',['mediump_i32',['../a00304.html#gaf5e94bf2a20af7601787c154751dc2e1',1,'glm']]], + ['mediump_5fi32vec1',['mediump_i32vec1',['../a00304.html#ga46a57f71e430637559097a732b550a7e',1,'glm']]], + ['mediump_5fi32vec2',['mediump_i32vec2',['../a00304.html#ga20bf224bd4f8a24ecc4ed2004a40c219',1,'glm']]], + ['mediump_5fi32vec3',['mediump_i32vec3',['../a00304.html#ga13a221b910aa9eb1b04ca1c86e81015a',1,'glm']]], + ['mediump_5fi32vec4',['mediump_i32vec4',['../a00304.html#ga6addd4dfee87fc09ab9525e3d07db4c8',1,'glm']]], + ['mediump_5fi64',['mediump_i64',['../a00304.html#ga3ebcb1f6d8d8387253de8bccb058d77f',1,'glm']]], + ['mediump_5fi64vec1',['mediump_i64vec1',['../a00304.html#ga8343e9d244fb17a5bbf0d94d36b3695e',1,'glm']]], + ['mediump_5fi64vec2',['mediump_i64vec2',['../a00304.html#ga2c94aeae3457325944ca1059b0b68330',1,'glm']]], + ['mediump_5fi64vec3',['mediump_i64vec3',['../a00304.html#ga8089722ffdf868cdfe721dea1fb6a90e',1,'glm']]], + ['mediump_5fi64vec4',['mediump_i64vec4',['../a00304.html#gabf1f16c5ab8cb0484bd1e846ae4368f1',1,'glm']]], + ['mediump_5fi8',['mediump_i8',['../a00304.html#gacf1ded173e1e2d049c511d095b259e21',1,'glm']]], + ['mediump_5fi8vec1',['mediump_i8vec1',['../a00304.html#ga85e8893f4ae3630065690a9000c0c483',1,'glm']]], + ['mediump_5fi8vec2',['mediump_i8vec2',['../a00304.html#ga2a8bdc32184ea0a522ef7bd90640cf67',1,'glm']]], + ['mediump_5fi8vec3',['mediump_i8vec3',['../a00304.html#ga6dd1c1618378c6f94d522a61c28773c9',1,'glm']]], + ['mediump_5fi8vec4',['mediump_i8vec4',['../a00304.html#gac7bb04fb857ef7b520e49f6c381432be',1,'glm']]], + ['mediump_5fimat2',['mediump_imat2',['../a00294.html#ga20f4cc7ab23e2aa1f4db9fdb5496d378',1,'glm']]], + ['mediump_5fimat2x2',['mediump_imat2x2',['../a00294.html#ga4b2aeb11a329940721dda9583e71f856',1,'glm']]], + ['mediump_5fimat2x3',['mediump_imat2x3',['../a00294.html#ga74362470ba99843ac70aee5ac38cc674',1,'glm']]], + ['mediump_5fimat2x4',['mediump_imat2x4',['../a00294.html#ga8da25cd380ba30fc5b68a4687deb3e09',1,'glm']]], + ['mediump_5fimat3',['mediump_imat3',['../a00294.html#ga6c63bdc736efd3466e0730de0251cb71',1,'glm']]], + ['mediump_5fimat3x2',['mediump_imat3x2',['../a00294.html#gac0b4e42d648fb3eaf4bb88da82ecc809',1,'glm']]], + ['mediump_5fimat3x3',['mediump_imat3x3',['../a00294.html#gad99cc2aad8fc57f068cfa7719dbbea12',1,'glm']]], + ['mediump_5fimat3x4',['mediump_imat3x4',['../a00294.html#ga67689a518b181a26540bc44a163525cd',1,'glm']]], + ['mediump_5fimat4',['mediump_imat4',['../a00294.html#gaf348552978553630d2a00b78eb887ced',1,'glm']]], + ['mediump_5fimat4x2',['mediump_imat4x2',['../a00294.html#ga8b2d35816f7103f0f4c82dd2f27571fc',1,'glm']]], + ['mediump_5fimat4x3',['mediump_imat4x3',['../a00294.html#ga5b10acc696759e03f6ab918f4467e94c',1,'glm']]], + ['mediump_5fimat4x4',['mediump_imat4x4',['../a00294.html#ga2596869d154dec1180beadbb9df80501',1,'glm']]], + ['mediump_5fint16',['mediump_int16',['../a00304.html#gadff3608baa4b5bd3ed28f95c1c2c345d',1,'glm']]], + ['mediump_5fint16_5ft',['mediump_int16_t',['../a00304.html#ga80e72fe94c88498537e8158ba7591c54',1,'glm']]], + ['mediump_5fint32',['mediump_int32',['../a00304.html#ga5244cef85d6e870e240c76428a262ae8',1,'glm']]], + ['mediump_5fint32_5ft',['mediump_int32_t',['../a00304.html#ga26fc7ced1ad7ca5024f1c973c8dc9180',1,'glm']]], + ['mediump_5fint64',['mediump_int64',['../a00304.html#ga7b968f2b86a0442a89c7359171e1d866',1,'glm']]], + ['mediump_5fint64_5ft',['mediump_int64_t',['../a00304.html#gac3bc41bcac61d1ba8f02a6f68ce23f64',1,'glm']]], + ['mediump_5fint8',['mediump_int8',['../a00304.html#ga6fbd69cbdaa44345bff923a2cf63de7e',1,'glm']]], + ['mediump_5fint8_5ft',['mediump_int8_t',['../a00304.html#ga6d7b3789ecb932c26430009478cac7ae',1,'glm']]], + ['mediump_5fivec1',['mediump_ivec1',['../a00273.html#gad628c608970b3d0aa6cfb63ce6e53e56',1,'glm']]], + ['mediump_5fivec2',['mediump_ivec2',['../a00282.html#gac57496299d276ed97044074097bd5e2c',1,'glm']]], + ['mediump_5fivec3',['mediump_ivec3',['../a00282.html#ga27cfb51e0dbe15bba27a14a8590e8466',1,'glm']]], + ['mediump_5fivec4',['mediump_ivec4',['../a00282.html#ga92a204c37e66ac6c1dc7ae91142f2ea5',1,'glm']]], + ['mediump_5fmat2',['mediump_mat2',['../a00284.html#ga745452bd9c89f5ad948203e4fb4b4ea3',1,'glm']]], + ['mediump_5fmat2x2',['mediump_mat2x2',['../a00284.html#ga0cdf57d29f9448864237b2fb3e39aa1d',1,'glm']]], + ['mediump_5fmat2x3',['mediump_mat2x3',['../a00284.html#ga497d513d552d927537d61fa11e3701ab',1,'glm']]], + ['mediump_5fmat2x4',['mediump_mat2x4',['../a00284.html#gae7b75ea2e09fa686a79bbe9b6ca68ee5',1,'glm']]], + ['mediump_5fmat3',['mediump_mat3',['../a00284.html#ga5aae49834d02732942f44e61d7bce136',1,'glm']]], + ['mediump_5fmat3x2',['mediump_mat3x2',['../a00284.html#ga9e1c9ee65fef547bde793e69723e24eb',1,'glm']]], + ['mediump_5fmat3x3',['mediump_mat3x3',['../a00284.html#gabc0f2f4ad21c90b341881cf056f8650e',1,'glm']]], + ['mediump_5fmat3x4',['mediump_mat3x4',['../a00284.html#gaa669c6675c3405f76c0b14020d1c0d61',1,'glm']]], + ['mediump_5fmat4',['mediump_mat4',['../a00284.html#gab8531bc3f269aa45835cd6e1972b7fc7',1,'glm']]], + ['mediump_5fmat4x2',['mediump_mat4x2',['../a00284.html#gad75706b70545412ba9ac27d5ee210f66',1,'glm']]], + ['mediump_5fmat4x3',['mediump_mat4x3',['../a00284.html#ga4a1440b5ea3cf84d5b06c79b534bd770',1,'glm']]], + ['mediump_5fmat4x4',['mediump_mat4x4',['../a00284.html#ga15bca2b70917d9752231160d9da74b01',1,'glm']]], + ['mediump_5fquat',['mediump_quat',['../a00253.html#gad2a59409de1bb12ccb6eb692ee7e9d8d',1,'glm']]], + ['mediump_5fu16',['mediump_u16',['../a00304.html#ga9df98857be695d5a30cb30f5bfa38a80',1,'glm']]], + ['mediump_5fu16vec1',['mediump_u16vec1',['../a00304.html#ga400ce8cc566de093a9b28e59e220d6e4',1,'glm']]], + ['mediump_5fu16vec2',['mediump_u16vec2',['../a00304.html#ga429c201b3e92c90b4ef4356f2be52ee1',1,'glm']]], + ['mediump_5fu16vec3',['mediump_u16vec3',['../a00304.html#gac9ba20234b0c3751d45ce575fc71e551',1,'glm']]], + ['mediump_5fu16vec4',['mediump_u16vec4',['../a00304.html#ga5793393686ce5bd2d5968ff9144762b8',1,'glm']]], + ['mediump_5fu32',['mediump_u32',['../a00304.html#ga1bd0e914158bf03135f8a317de6debe9',1,'glm']]], + ['mediump_5fu32vec1',['mediump_u32vec1',['../a00304.html#ga8a11ccd2e38f674bbf3c2d1afc232aee',1,'glm']]], + ['mediump_5fu32vec2',['mediump_u32vec2',['../a00304.html#ga94f74851fce338549c705b5f0d601c4f',1,'glm']]], + ['mediump_5fu32vec3',['mediump_u32vec3',['../a00304.html#ga012c24c8fc69707b90260474c70275a2',1,'glm']]], + ['mediump_5fu32vec4',['mediump_u32vec4',['../a00304.html#ga5d43ee8b5dbaa06c327b03b83682598a',1,'glm']]], + ['mediump_5fu64',['mediump_u64',['../a00304.html#ga2af9490085ae3bdf36a544e9dd073610',1,'glm']]], + ['mediump_5fu64vec1',['mediump_u64vec1',['../a00304.html#ga659f372ccb8307d5db5beca942cde5e8',1,'glm']]], + ['mediump_5fu64vec2',['mediump_u64vec2',['../a00304.html#ga73a08ef5a74798f3a1a99250b5f86a7d',1,'glm']]], + ['mediump_5fu64vec3',['mediump_u64vec3',['../a00304.html#ga1900c6ab74acd392809425953359ef52',1,'glm']]], + ['mediump_5fu64vec4',['mediump_u64vec4',['../a00304.html#gaec7ee455cb379ec2993e81482123e1cc',1,'glm']]], + ['mediump_5fu8',['mediump_u8',['../a00304.html#gad1213a22bbb9e4107f07eaa4956f8281',1,'glm']]], + ['mediump_5fu8vec1',['mediump_u8vec1',['../a00304.html#ga4a43050843b141bdc7e85437faef6f55',1,'glm']]], + ['mediump_5fu8vec2',['mediump_u8vec2',['../a00304.html#ga907f85d4a0eac3d8aaf571e5c2647194',1,'glm']]], + ['mediump_5fu8vec3',['mediump_u8vec3',['../a00304.html#gaddc6f7748b699254942c5216b68f8f7f',1,'glm']]], + ['mediump_5fu8vec4',['mediump_u8vec4',['../a00304.html#gaaf4ee3b76d43d98da02ec399b99bda4b',1,'glm']]], + ['mediump_5fuint16',['mediump_uint16',['../a00304.html#ga2885a6c89916911e418c06bb76b9bdbb',1,'glm']]], + ['mediump_5fuint16_5ft',['mediump_uint16_t',['../a00304.html#ga3963b1050fc65a383ee28e3f827b6e3e',1,'glm']]], + ['mediump_5fuint32',['mediump_uint32',['../a00304.html#ga34dd5ec1988c443bae80f1b20a8ade5f',1,'glm']]], + ['mediump_5fuint32_5ft',['mediump_uint32_t',['../a00304.html#gaf4dae276fd29623950de14a6ca2586b5',1,'glm']]], + ['mediump_5fuint64',['mediump_uint64',['../a00304.html#ga30652709815ad9404272a31957daa59e',1,'glm']]], + ['mediump_5fuint64_5ft',['mediump_uint64_t',['../a00304.html#ga9b170dd4a8f38448a2dc93987c7875e9',1,'glm']]], + ['mediump_5fuint8',['mediump_uint8',['../a00304.html#ga1fa92a233b9110861cdbc8c2ccf0b5a3',1,'glm']]], + ['mediump_5fuint8_5ft',['mediump_uint8_t',['../a00304.html#gadfe65c78231039e90507770db50c98c7',1,'glm']]], + ['mediump_5fumat2',['mediump_umat2',['../a00294.html#ga43041378b3410ea951b7de0dfd2bc7ee',1,'glm']]], + ['mediump_5fumat2x2',['mediump_umat2x2',['../a00294.html#ga3b209b1b751f041422137e3c065dfa98',1,'glm']]], + ['mediump_5fumat2x3',['mediump_umat2x3',['../a00294.html#gaee2c1f13b41f4c92ea5b3efe367a1306',1,'glm']]], + ['mediump_5fumat2x4',['mediump_umat2x4',['../a00294.html#gae1317ddca16d01e119a40b7f0ee85f95',1,'glm']]], + ['mediump_5fumat3',['mediump_umat3',['../a00294.html#ga1730dbe3c67801f53520b06d1aa0a34a',1,'glm']]], + ['mediump_5fumat3x2',['mediump_umat3x2',['../a00294.html#gaadc28bfdc8ebca81ae85121b11994970',1,'glm']]], + ['mediump_5fumat3x3',['mediump_umat3x3',['../a00294.html#ga48f2fc38d3f7fab3cfbc961278ced53d',1,'glm']]], + ['mediump_5fumat3x4',['mediump_umat3x4',['../a00294.html#ga78009a1e4ca64217e46b418535e52546',1,'glm']]], + ['mediump_5fumat4',['mediump_umat4',['../a00294.html#ga5087c2beb26a11d9af87432e554cf9d1',1,'glm']]], + ['mediump_5fumat4x2',['mediump_umat4x2',['../a00294.html#gaf35aefd81cc13718f6b059623f7425fa',1,'glm']]], + ['mediump_5fumat4x3',['mediump_umat4x3',['../a00294.html#ga4e1bed14fbc7f4b376aaed064f89f0fb',1,'glm']]], + ['mediump_5fumat4x4',['mediump_umat4x4',['../a00294.html#gaa9428fc8430dc552aad920653f822ef3',1,'glm']]], + ['mediump_5fuvec1',['mediump_uvec1',['../a00277.html#ga38fde73aaf1420175ece8d4882558a3f',1,'glm']]], + ['mediump_5fuvec2',['mediump_uvec2',['../a00282.html#gaa3b4f7806dad03d83bb3da0baa1e3b9b',1,'glm']]], + ['mediump_5fuvec3',['mediump_uvec3',['../a00282.html#ga83b7df38feefbb357f3673d950fafef7',1,'glm']]], + ['mediump_5fuvec4',['mediump_uvec4',['../a00282.html#ga64ed0deb6573375b7016daf82ffd53a7',1,'glm']]], + ['mediump_5fvec1',['mediump_vec1',['../a00271.html#ga645f53e6b8056609023a894b4e2beef4',1,'glm']]], + ['mediump_5fvec2',['mediump_vec2',['../a00282.html#gabc61976261c406520c7a8e4d946dc3f0',1,'glm']]], + ['mediump_5fvec3',['mediump_vec3',['../a00282.html#ga2384e263df19f1404b733016eff78fca',1,'glm']]], + ['mediump_5fvec4',['mediump_vec4',['../a00282.html#ga5c6978d3ffba06738416a33083853fc0',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_8.html b/external/glm-0.9.9.8/doc/api/search/typedefs_8.html similarity index 97% rename from external/glm/doc/api/search/typedefs_8.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_8.html index 4e9ac73..7ea2e62 100644 --- a/external/glm/doc/api/search/typedefs_8.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_8.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_8.js b/external/glm-0.9.9.8/doc/api/search/typedefs_8.js new file mode 100644 index 0000000..526e77e --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_8.js @@ -0,0 +1,179 @@ +var searchData= +[ + ['packed_5fbvec1',['packed_bvec1',['../a00303.html#ga88632cea9008ac0ac1388e94e804a53c',1,'glm']]], + ['packed_5fbvec2',['packed_bvec2',['../a00303.html#gab85245913eaa40ab82adabcae37086cb',1,'glm']]], + ['packed_5fbvec3',['packed_bvec3',['../a00303.html#ga0c48f9417f649e27f3fb0c9f733a18bd',1,'glm']]], + ['packed_5fbvec4',['packed_bvec4',['../a00303.html#ga3180d7db84a74c402157df3bbc0ae3ed',1,'glm']]], + ['packed_5fdmat2',['packed_dmat2',['../a00303.html#gad87408a8350918711f845f071bbe43fb',1,'glm']]], + ['packed_5fdmat2x2',['packed_dmat2x2',['../a00303.html#gaaa33d8e06657a777efb0c72c44ce87a9',1,'glm']]], + ['packed_5fdmat2x3',['packed_dmat2x3',['../a00303.html#gac3a5315f588ba04ad255188071ec4e22',1,'glm']]], + ['packed_5fdmat2x4',['packed_dmat2x4',['../a00303.html#gae398fc3156f51d3684b08f62c1a5a6d4',1,'glm']]], + ['packed_5fdmat3',['packed_dmat3',['../a00303.html#ga03dfc90d539cc87ea3a15a9caa5d2245',1,'glm']]], + ['packed_5fdmat3x2',['packed_dmat3x2',['../a00303.html#gae36de20a4c0e0b1444b7903ae811d94e',1,'glm']]], + ['packed_5fdmat3x3',['packed_dmat3x3',['../a00303.html#gab9b909f1392d86854334350efcae85f5',1,'glm']]], + ['packed_5fdmat3x4',['packed_dmat3x4',['../a00303.html#ga199131fd279c92c2ac12df6d978f1dd6',1,'glm']]], + ['packed_5fdmat4',['packed_dmat4',['../a00303.html#gada980a3485640aa8151f368f17ad3086',1,'glm']]], + ['packed_5fdmat4x2',['packed_dmat4x2',['../a00303.html#ga6dc65249730698d3cc9ac5d7e1bc4d72',1,'glm']]], + ['packed_5fdmat4x3',['packed_dmat4x3',['../a00303.html#gadf202aaa9ed71c09f9bbe347e43f8764',1,'glm']]], + ['packed_5fdmat4x4',['packed_dmat4x4',['../a00303.html#gae20617435a6d042d7c38da2badd64a09',1,'glm']]], + ['packed_5fdvec1',['packed_dvec1',['../a00303.html#ga532f0c940649b1ee303acd572fc35531',1,'glm']]], + ['packed_5fdvec2',['packed_dvec2',['../a00303.html#ga5c194b11fbda636f2ab20c3bd0079196',1,'glm']]], + ['packed_5fdvec3',['packed_dvec3',['../a00303.html#ga0581ea552d86b2b5de7a2804bed80e72',1,'glm']]], + ['packed_5fdvec4',['packed_dvec4',['../a00303.html#gae8a9b181f9dc813ad6e125a52b14b935',1,'glm']]], + ['packed_5fhighp_5fbvec1',['packed_highp_bvec1',['../a00303.html#ga439e97795314b81cd15abd4e5c2e6e7a',1,'glm']]], + ['packed_5fhighp_5fbvec2',['packed_highp_bvec2',['../a00303.html#gad791d671f4fcf1ed1ea41f752916b70a',1,'glm']]], + ['packed_5fhighp_5fbvec3',['packed_highp_bvec3',['../a00303.html#ga6a5a3250b57dfadc66735bc72911437f',1,'glm']]], + ['packed_5fhighp_5fbvec4',['packed_highp_bvec4',['../a00303.html#ga09f517d88b996ef1b2f42fd54222b82d',1,'glm']]], + ['packed_5fhighp_5fdmat2',['packed_highp_dmat2',['../a00303.html#gae29686632fd05efac0675d9a6370d77b',1,'glm']]], + ['packed_5fhighp_5fdmat2x2',['packed_highp_dmat2x2',['../a00303.html#ga22bd6382b16052e301edbfc031b9f37a',1,'glm']]], + ['packed_5fhighp_5fdmat2x3',['packed_highp_dmat2x3',['../a00303.html#ga999d82719696d4c59f4d236dd08f273d',1,'glm']]], + ['packed_5fhighp_5fdmat2x4',['packed_highp_dmat2x4',['../a00303.html#ga6998ac2a8d7fe456b651a6336ed26bb0',1,'glm']]], + ['packed_5fhighp_5fdmat3',['packed_highp_dmat3',['../a00303.html#gadac7c040c4810dd52b36fcd09d097400',1,'glm']]], + ['packed_5fhighp_5fdmat3x2',['packed_highp_dmat3x2',['../a00303.html#gab462744977beb85fb5c782bc2eea7b15',1,'glm']]], + ['packed_5fhighp_5fdmat3x3',['packed_highp_dmat3x3',['../a00303.html#ga49e5a709d098523823b2f824e48672a6',1,'glm']]], + ['packed_5fhighp_5fdmat3x4',['packed_highp_dmat3x4',['../a00303.html#ga2c67b3b0adab71c8680c3d819f1fa9b7',1,'glm']]], + ['packed_5fhighp_5fdmat4',['packed_highp_dmat4',['../a00303.html#ga6718822cd7af005a9b5bd6ee282f6ba6',1,'glm']]], + ['packed_5fhighp_5fdmat4x2',['packed_highp_dmat4x2',['../a00303.html#ga12e39e797fb724a5b51fcbea2513a7da',1,'glm']]], + ['packed_5fhighp_5fdmat4x3',['packed_highp_dmat4x3',['../a00303.html#ga79c2e9f82e67963c1ecad0ad6d0ec72e',1,'glm']]], + ['packed_5fhighp_5fdmat4x4',['packed_highp_dmat4x4',['../a00303.html#ga2df58e03e5afded28707b4f7d077afb4',1,'glm']]], + ['packed_5fhighp_5fdvec1',['packed_highp_dvec1',['../a00303.html#gab472b2d917b5e6efd76e8c7dbfbbf9f1',1,'glm']]], + ['packed_5fhighp_5fdvec2',['packed_highp_dvec2',['../a00303.html#ga5b2dc48fa19b684d207d69c6b145eb63',1,'glm']]], + ['packed_5fhighp_5fdvec3',['packed_highp_dvec3',['../a00303.html#gaaac6b356ef00154da41aaae7d1549193',1,'glm']]], + ['packed_5fhighp_5fdvec4',['packed_highp_dvec4',['../a00303.html#ga81b5368fe485e2630aa9b44832d592e7',1,'glm']]], + ['packed_5fhighp_5fivec1',['packed_highp_ivec1',['../a00303.html#ga7245acc887a5438f46fd85fdf076bb3b',1,'glm']]], + ['packed_5fhighp_5fivec2',['packed_highp_ivec2',['../a00303.html#ga54f368ec6b514a5aa4f28d40e6f93ef7',1,'glm']]], + ['packed_5fhighp_5fivec3',['packed_highp_ivec3',['../a00303.html#ga865a9c7bb22434b1b8c5ac31e164b628',1,'glm']]], + ['packed_5fhighp_5fivec4',['packed_highp_ivec4',['../a00303.html#gad6f1b4e3a51c2c051814b60d5d1b8895',1,'glm']]], + ['packed_5fhighp_5fmat2',['packed_highp_mat2',['../a00303.html#ga2f2d913d8cca2f935b2522964408c0b2',1,'glm']]], + ['packed_5fhighp_5fmat2x2',['packed_highp_mat2x2',['../a00303.html#ga245c12d2daf67feecaa2d3277c8f6661',1,'glm']]], + ['packed_5fhighp_5fmat2x3',['packed_highp_mat2x3',['../a00303.html#ga069cc8892aadae144c00f35297617d44',1,'glm']]], + ['packed_5fhighp_5fmat2x4',['packed_highp_mat2x4',['../a00303.html#ga6904d09b62141d09712b76983892f95b',1,'glm']]], + ['packed_5fhighp_5fmat3',['packed_highp_mat3',['../a00303.html#gabdd5fbffe8b8b8a7b33523f25b120dbe',1,'glm']]], + ['packed_5fhighp_5fmat3x2',['packed_highp_mat3x2',['../a00303.html#ga2624719cb251d8de8cad1beaefc3a3f9',1,'glm']]], + ['packed_5fhighp_5fmat3x3',['packed_highp_mat3x3',['../a00303.html#gaf2e07527d678440bf0c20adbeb9177c5',1,'glm']]], + ['packed_5fhighp_5fmat3x4',['packed_highp_mat3x4',['../a00303.html#ga72102fa6ac2445aa3bb203128ad52449',1,'glm']]], + ['packed_5fhighp_5fmat4',['packed_highp_mat4',['../a00303.html#ga253e8379b08d2dc6fe2800b2fb913203',1,'glm']]], + ['packed_5fhighp_5fmat4x2',['packed_highp_mat4x2',['../a00303.html#gae389c2071cf3cdb33e7812c6fd156710',1,'glm']]], + ['packed_5fhighp_5fmat4x3',['packed_highp_mat4x3',['../a00303.html#ga4584f64394bd7123b7a8534741e4916c',1,'glm']]], + ['packed_5fhighp_5fmat4x4',['packed_highp_mat4x4',['../a00303.html#ga0149fe15668925147e07c94fd2c2d6ae',1,'glm']]], + ['packed_5fhighp_5fuvec1',['packed_highp_uvec1',['../a00303.html#ga8c32b53f628a3616aa5061e58d66fe74',1,'glm']]], + ['packed_5fhighp_5fuvec2',['packed_highp_uvec2',['../a00303.html#gab704d4fb15f6f96d70e363d5db7060cd',1,'glm']]], + ['packed_5fhighp_5fuvec3',['packed_highp_uvec3',['../a00303.html#ga0b570da473fec4619db5aa0dce5133b0',1,'glm']]], + ['packed_5fhighp_5fuvec4',['packed_highp_uvec4',['../a00303.html#gaa582f38c82aef61dea7aaedf15bb06a6',1,'glm']]], + ['packed_5fhighp_5fvec1',['packed_highp_vec1',['../a00303.html#ga56473759d2702ee19ab7f91d0017fa70',1,'glm']]], + ['packed_5fhighp_5fvec2',['packed_highp_vec2',['../a00303.html#ga6b8b9475e7c3b16aed13edbc460bbc4d',1,'glm']]], + ['packed_5fhighp_5fvec3',['packed_highp_vec3',['../a00303.html#ga3815661df0e2de79beff8168c09adf1e',1,'glm']]], + ['packed_5fhighp_5fvec4',['packed_highp_vec4',['../a00303.html#ga4015f36bf5a5adb6ac5d45beed959867',1,'glm']]], + ['packed_5fivec1',['packed_ivec1',['../a00303.html#ga11581a06fc7bf941fa4d4b6aca29812c',1,'glm']]], + ['packed_5fivec2',['packed_ivec2',['../a00303.html#ga1fe4c5f56b8087d773aa90dc88a257a7',1,'glm']]], + ['packed_5fivec3',['packed_ivec3',['../a00303.html#gae157682a7847161787951ba1db4cf325',1,'glm']]], + ['packed_5fivec4',['packed_ivec4',['../a00303.html#gac228b70372abd561340d5f926a7c1778',1,'glm']]], + ['packed_5flowp_5fbvec1',['packed_lowp_bvec1',['../a00303.html#gae3c8750f53259ece334d3aa3b3649a40',1,'glm']]], + ['packed_5flowp_5fbvec2',['packed_lowp_bvec2',['../a00303.html#gac969befedbda69eb78d4e23f751fdbee',1,'glm']]], + ['packed_5flowp_5fbvec3',['packed_lowp_bvec3',['../a00303.html#ga7c20adbe1409e3fe4544677a7f6fe954',1,'glm']]], + ['packed_5flowp_5fbvec4',['packed_lowp_bvec4',['../a00303.html#gae473587cff3092edc0877fc691c26a0b',1,'glm']]], + ['packed_5flowp_5fdmat2',['packed_lowp_dmat2',['../a00303.html#gac93f9b1a35b9de4f456b9f2dfeaf1097',1,'glm']]], + ['packed_5flowp_5fdmat2x2',['packed_lowp_dmat2x2',['../a00303.html#gaeeaff6c132ec91ebd21da3a2399548ea',1,'glm']]], + ['packed_5flowp_5fdmat2x3',['packed_lowp_dmat2x3',['../a00303.html#ga2ccdcd4846775cbe4f9d12e71d55b5d2',1,'glm']]], + ['packed_5flowp_5fdmat2x4',['packed_lowp_dmat2x4',['../a00303.html#gac870c47d2d9d48503f6c9ee3baec8ce1',1,'glm']]], + ['packed_5flowp_5fdmat3',['packed_lowp_dmat3',['../a00303.html#ga3894a059eeaacec8791c25de398d9955',1,'glm']]], + ['packed_5flowp_5fdmat3x2',['packed_lowp_dmat3x2',['../a00303.html#ga23ec236950f5859f59197663266b535d',1,'glm']]], + ['packed_5flowp_5fdmat3x3',['packed_lowp_dmat3x3',['../a00303.html#ga4a7c7d8c3a663d0ec2a858cbfa14e54c',1,'glm']]], + ['packed_5flowp_5fdmat3x4',['packed_lowp_dmat3x4',['../a00303.html#ga8fc0e66da83599071b7ec17510686cd9',1,'glm']]], + ['packed_5flowp_5fdmat4',['packed_lowp_dmat4',['../a00303.html#ga03e1edf5666c40affe39aee35c87956f',1,'glm']]], + ['packed_5flowp_5fdmat4x2',['packed_lowp_dmat4x2',['../a00303.html#ga39658fb13369db869d363684bd8399c0',1,'glm']]], + ['packed_5flowp_5fdmat4x3',['packed_lowp_dmat4x3',['../a00303.html#ga30b0351eebc18c6056101359bdd3a359',1,'glm']]], + ['packed_5flowp_5fdmat4x4',['packed_lowp_dmat4x4',['../a00303.html#ga0294d4c45151425c86a11deee7693c0e',1,'glm']]], + ['packed_5flowp_5fdvec1',['packed_lowp_dvec1',['../a00303.html#ga054050e9d4e78d81db0e6d1573b1c624',1,'glm']]], + ['packed_5flowp_5fdvec2',['packed_lowp_dvec2',['../a00303.html#gadc19938ddb204bfcb4d9ef35b1e2bf93',1,'glm']]], + ['packed_5flowp_5fdvec3',['packed_lowp_dvec3',['../a00303.html#ga9189210cabd6651a5e14a4c46fb20598',1,'glm']]], + ['packed_5flowp_5fdvec4',['packed_lowp_dvec4',['../a00303.html#ga262dafd0c001c3a38d1cc91d024ca738',1,'glm']]], + ['packed_5flowp_5fivec1',['packed_lowp_ivec1',['../a00303.html#gaf22b77f1cf3e73b8b1dddfe7f959357c',1,'glm']]], + ['packed_5flowp_5fivec2',['packed_lowp_ivec2',['../a00303.html#ga52635859f5ef660ab999d22c11b7867f',1,'glm']]], + ['packed_5flowp_5fivec3',['packed_lowp_ivec3',['../a00303.html#ga98c9d122a959e9f3ce10a5623c310f5d',1,'glm']]], + ['packed_5flowp_5fivec4',['packed_lowp_ivec4',['../a00303.html#ga931731b8ae3b54c7ecc221509dae96bc',1,'glm']]], + ['packed_5flowp_5fmat2',['packed_lowp_mat2',['../a00303.html#ga70dcb9ef0b24e832772a7405efa9669a',1,'glm']]], + ['packed_5flowp_5fmat2x2',['packed_lowp_mat2x2',['../a00303.html#gac70667c7642ec8d50245e6e6936a3927',1,'glm']]], + ['packed_5flowp_5fmat2x3',['packed_lowp_mat2x3',['../a00303.html#ga3e7df5a11e1be27bc29a4c0d3956f234',1,'glm']]], + ['packed_5flowp_5fmat2x4',['packed_lowp_mat2x4',['../a00303.html#gaea9c555e669dc56c45d95dcc75d59bf3',1,'glm']]], + ['packed_5flowp_5fmat3',['packed_lowp_mat3',['../a00303.html#ga0d22400969dd223465b2900fecfb4f53',1,'glm']]], + ['packed_5flowp_5fmat3x2',['packed_lowp_mat3x2',['../a00303.html#ga128cd52649621861635fab746df91735',1,'glm']]], + ['packed_5flowp_5fmat3x3',['packed_lowp_mat3x3',['../a00303.html#ga5adf1802c5375a9dfb1729691bedd94e',1,'glm']]], + ['packed_5flowp_5fmat3x4',['packed_lowp_mat3x4',['../a00303.html#ga92247ca09fa03c4013ba364f3a0fca7f',1,'glm']]], + ['packed_5flowp_5fmat4',['packed_lowp_mat4',['../a00303.html#ga2a1dd2387725a335413d4c4fee8609c4',1,'glm']]], + ['packed_5flowp_5fmat4x2',['packed_lowp_mat4x2',['../a00303.html#ga8f22607dcd090cd280071ccc689f4079',1,'glm']]], + ['packed_5flowp_5fmat4x3',['packed_lowp_mat4x3',['../a00303.html#ga7661d759d6ad218e132e3d051e7b2c6c',1,'glm']]], + ['packed_5flowp_5fmat4x4',['packed_lowp_mat4x4',['../a00303.html#ga776f18d1a6e7d399f05d386167dc60f5',1,'glm']]], + ['packed_5flowp_5fuvec1',['packed_lowp_uvec1',['../a00303.html#gaf111fed760ecce16cb1988807569bee5',1,'glm']]], + ['packed_5flowp_5fuvec2',['packed_lowp_uvec2',['../a00303.html#ga958210fe245a75b058325d367c951132',1,'glm']]], + ['packed_5flowp_5fuvec3',['packed_lowp_uvec3',['../a00303.html#ga576a3f8372197a56a79dee1c8280f485',1,'glm']]], + ['packed_5flowp_5fuvec4',['packed_lowp_uvec4',['../a00303.html#gafdd97922b4a2a42cd0c99a13877ff4da',1,'glm']]], + ['packed_5flowp_5fvec1',['packed_lowp_vec1',['../a00303.html#ga0a6198fe64166a6a61084d43c71518a9',1,'glm']]], + ['packed_5flowp_5fvec2',['packed_lowp_vec2',['../a00303.html#gafbf1c2cce307c5594b165819ed83bf5d',1,'glm']]], + ['packed_5flowp_5fvec3',['packed_lowp_vec3',['../a00303.html#ga3a30c137c1f8cce478c28eab0427a570',1,'glm']]], + ['packed_5flowp_5fvec4',['packed_lowp_vec4',['../a00303.html#ga3cc94fb8de80bbd8a4aa7a5b206d304a',1,'glm']]], + ['packed_5fmat2',['packed_mat2',['../a00303.html#gadd019b43fcf42e1590d45dddaa504a1a',1,'glm']]], + ['packed_5fmat2x2',['packed_mat2x2',['../a00303.html#ga51eaadcdc292c8750f746a5dc3e6c517',1,'glm']]], + ['packed_5fmat2x3',['packed_mat2x3',['../a00303.html#ga301b76a89b8a9625501ca58815017f20',1,'glm']]], + ['packed_5fmat2x4',['packed_mat2x4',['../a00303.html#gac401da1dd9177ad81d7618a2a5541e23',1,'glm']]], + ['packed_5fmat3',['packed_mat3',['../a00303.html#ga9bc12b0ab7be8448836711b77cc7b83a',1,'glm']]], + ['packed_5fmat3x2',['packed_mat3x2',['../a00303.html#ga134f0d99fbd2459c13cd9ebd056509fa',1,'glm']]], + ['packed_5fmat3x3',['packed_mat3x3',['../a00303.html#ga6c1dbe8cde9fbb231284b01f8aeaaa99',1,'glm']]], + ['packed_5fmat3x4',['packed_mat3x4',['../a00303.html#gad63515526cccfe88ffa8fe5ed64f95f8',1,'glm']]], + ['packed_5fmat4',['packed_mat4',['../a00303.html#ga2c139854e5b04cf08a957dee3b510441',1,'glm']]], + ['packed_5fmat4x2',['packed_mat4x2',['../a00303.html#ga379c1153f1339bdeaefd592bebf538e8',1,'glm']]], + ['packed_5fmat4x3',['packed_mat4x3',['../a00303.html#gab286466e19f7399c8d25089da9400d43',1,'glm']]], + ['packed_5fmat4x4',['packed_mat4x4',['../a00303.html#ga67e7102557d6067bb6ac00d4ad0e1374',1,'glm']]], + ['packed_5fmediump_5fbvec1',['packed_mediump_bvec1',['../a00303.html#ga5546d828d63010a8f9cf81161ad0275a',1,'glm']]], + ['packed_5fmediump_5fbvec2',['packed_mediump_bvec2',['../a00303.html#gab4c6414a59539e66a242ad4cf4b476b4',1,'glm']]], + ['packed_5fmediump_5fbvec3',['packed_mediump_bvec3',['../a00303.html#ga70147763edff3fe96b03a0b98d6339a2',1,'glm']]], + ['packed_5fmediump_5fbvec4',['packed_mediump_bvec4',['../a00303.html#ga7b1620f259595b9da47a6374fc44588a',1,'glm']]], + ['packed_5fmediump_5fdmat2',['packed_mediump_dmat2',['../a00303.html#ga9d60e32d3fcb51f817046cd881fdbf57',1,'glm']]], + ['packed_5fmediump_5fdmat2x2',['packed_mediump_dmat2x2',['../a00303.html#ga39e8bb9b70e5694964e8266a21ba534e',1,'glm']]], + ['packed_5fmediump_5fdmat2x3',['packed_mediump_dmat2x3',['../a00303.html#ga8897c6d9adb4140b1c3b0a07b8f0a430',1,'glm']]], + ['packed_5fmediump_5fdmat2x4',['packed_mediump_dmat2x4',['../a00303.html#gaaa4126969c765e7faa2ebf6951c22ffb',1,'glm']]], + ['packed_5fmediump_5fdmat3',['packed_mediump_dmat3',['../a00303.html#gaf969eb879c76a5f4576e4a1e10095cf6',1,'glm']]], + ['packed_5fmediump_5fdmat3x2',['packed_mediump_dmat3x2',['../a00303.html#ga86efe91cdaa2864c828a5d6d46356c6a',1,'glm']]], + ['packed_5fmediump_5fdmat3x3',['packed_mediump_dmat3x3',['../a00303.html#gaf85877d38d8cfbc21d59d939afd72375',1,'glm']]], + ['packed_5fmediump_5fdmat3x4',['packed_mediump_dmat3x4',['../a00303.html#gad5dcaf93df267bc3029174e430e0907f',1,'glm']]], + ['packed_5fmediump_5fdmat4',['packed_mediump_dmat4',['../a00303.html#ga4b0ee7996651ddd04eaa0c4cdbb66332',1,'glm']]], + ['packed_5fmediump_5fdmat4x2',['packed_mediump_dmat4x2',['../a00303.html#ga9a15514a0631f700de6312b9d5db3a73',1,'glm']]], + ['packed_5fmediump_5fdmat4x3',['packed_mediump_dmat4x3',['../a00303.html#gab5b36cc9caee1bb1c5178fe191bf5713',1,'glm']]], + ['packed_5fmediump_5fdmat4x4',['packed_mediump_dmat4x4',['../a00303.html#ga21e86cf2f6c126bacf31b8985db06bd4',1,'glm']]], + ['packed_5fmediump_5fdvec1',['packed_mediump_dvec1',['../a00303.html#ga8920e90ea9c01d9c97e604a938ce2cbd',1,'glm']]], + ['packed_5fmediump_5fdvec2',['packed_mediump_dvec2',['../a00303.html#ga0c754a783b6fcf80374c013371c4dae9',1,'glm']]], + ['packed_5fmediump_5fdvec3',['packed_mediump_dvec3',['../a00303.html#ga1f18ada6f7cdd8c46db33ba987280fc4',1,'glm']]], + ['packed_5fmediump_5fdvec4',['packed_mediump_dvec4',['../a00303.html#ga568b850f1116b667043533cf77826968',1,'glm']]], + ['packed_5fmediump_5fivec1',['packed_mediump_ivec1',['../a00303.html#ga09507ef020a49517a7bcd50438f05056',1,'glm']]], + ['packed_5fmediump_5fivec2',['packed_mediump_ivec2',['../a00303.html#gaaa891048dddef4627df33809ec726219',1,'glm']]], + ['packed_5fmediump_5fivec3',['packed_mediump_ivec3',['../a00303.html#ga06f26d54dca30994eb1fdadb8e69f4a2',1,'glm']]], + ['packed_5fmediump_5fivec4',['packed_mediump_ivec4',['../a00303.html#ga70130dc8ed9c966ec2a221ce586d45d8',1,'glm']]], + ['packed_5fmediump_5fmat2',['packed_mediump_mat2',['../a00303.html#ga43cd36d430c5187bfdca34a23cb41581',1,'glm']]], + ['packed_5fmediump_5fmat2x2',['packed_mediump_mat2x2',['../a00303.html#ga2d2a73e662759e301c22b8931ff6a526',1,'glm']]], + ['packed_5fmediump_5fmat2x3',['packed_mediump_mat2x3',['../a00303.html#ga99049db01faf1e95ed9fb875a47dffe2',1,'glm']]], + ['packed_5fmediump_5fmat2x4',['packed_mediump_mat2x4',['../a00303.html#gad43a240533f388ce0504b495d9df3d52',1,'glm']]], + ['packed_5fmediump_5fmat3',['packed_mediump_mat3',['../a00303.html#ga13a75c6cbd0a411f694bc82486cd1e55',1,'glm']]], + ['packed_5fmediump_5fmat3x2',['packed_mediump_mat3x2',['../a00303.html#ga04cfaf1421284df3c24ea0985dab24e7',1,'glm']]], + ['packed_5fmediump_5fmat3x3',['packed_mediump_mat3x3',['../a00303.html#gaaa9cea174d342dd9650e3436823cab23',1,'glm']]], + ['packed_5fmediump_5fmat3x4',['packed_mediump_mat3x4',['../a00303.html#gabc93a9560593bd32e099c908531305f5',1,'glm']]], + ['packed_5fmediump_5fmat4',['packed_mediump_mat4',['../a00303.html#gae89d72ffc149147f61df701bbc8755bf',1,'glm']]], + ['packed_5fmediump_5fmat4x2',['packed_mediump_mat4x2',['../a00303.html#gaa458f9d9e0934bae3097e2a373b24707',1,'glm']]], + ['packed_5fmediump_5fmat4x3',['packed_mediump_mat4x3',['../a00303.html#ga02ca6255394aa778abaeb0f733c4d2b6',1,'glm']]], + ['packed_5fmediump_5fmat4x4',['packed_mediump_mat4x4',['../a00303.html#gaf304f64c06743c1571401504d3f50259',1,'glm']]], + ['packed_5fmediump_5fuvec1',['packed_mediump_uvec1',['../a00303.html#ga2c29fb42bab9a4f9b66bc60b2e514a34',1,'glm']]], + ['packed_5fmediump_5fuvec2',['packed_mediump_uvec2',['../a00303.html#gaa1f95690a78dc12e39da32943243aeef',1,'glm']]], + ['packed_5fmediump_5fuvec3',['packed_mediump_uvec3',['../a00303.html#ga1ea2bbdbcb0a69242f6d884663c1b0ab',1,'glm']]], + ['packed_5fmediump_5fuvec4',['packed_mediump_uvec4',['../a00303.html#ga63a73be86a4f07ea7a7499ab0bfebe45',1,'glm']]], + ['packed_5fmediump_5fvec1',['packed_mediump_vec1',['../a00303.html#ga71d63cead1e113fca0bcdaaa33aad050',1,'glm']]], + ['packed_5fmediump_5fvec2',['packed_mediump_vec2',['../a00303.html#ga6844c6f4691d1bf67673240850430948',1,'glm']]], + ['packed_5fmediump_5fvec3',['packed_mediump_vec3',['../a00303.html#gab0eb771b708c5b2205d9b14dd1434fd8',1,'glm']]], + ['packed_5fmediump_5fvec4',['packed_mediump_vec4',['../a00303.html#ga68c9bb24f387b312bae6a0a68e74d95e',1,'glm']]], + ['packed_5fuvec1',['packed_uvec1',['../a00303.html#ga5621493caac01bdd22ab6be4416b0314',1,'glm']]], + ['packed_5fuvec2',['packed_uvec2',['../a00303.html#gabcc33efb4d5e83b8fe4706360e75b932',1,'glm']]], + ['packed_5fuvec3',['packed_uvec3',['../a00303.html#gab96804e99e3a72a35740fec690c79617',1,'glm']]], + ['packed_5fuvec4',['packed_uvec4',['../a00303.html#ga8e5d92e84ebdbe2480cf96bc17d6e2f2',1,'glm']]], + ['packed_5fvec1',['packed_vec1',['../a00303.html#ga14741e3d9da9ae83765389927f837331',1,'glm']]], + ['packed_5fvec2',['packed_vec2',['../a00303.html#ga3254defa5a8f0ae4b02b45fedba84a66',1,'glm']]], + ['packed_5fvec3',['packed_vec3',['../a00303.html#gaccccd090e185450caa28b5b63ad4e8f0',1,'glm']]], + ['packed_5fvec4',['packed_vec4',['../a00303.html#ga37a0e0bf653169b581c5eea3d547fa5d',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_9.html b/external/glm-0.9.9.8/doc/api/search/typedefs_9.html similarity index 97% rename from external/glm/doc/api/search/typedefs_9.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_9.html index b07ee40..7be38e1 100644 --- a/external/glm/doc/api/search/typedefs_9.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_9.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_9.js b/external/glm-0.9.9.8/doc/api/search/typedefs_9.js new file mode 100644 index 0000000..2f53030 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_9.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['quat',['quat',['../a00252.html#gab0b441adb4509bc58d2946c2239a8942',1,'glm']]], + ['qword',['qword',['../a00354.html#ga4021754ffb8e5ef14c75802b15657714',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_a.html b/external/glm-0.9.9.8/doc/api/search/typedefs_a.html similarity index 97% rename from external/glm/doc/api/search/typedefs_a.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_a.html index b1a3266..6a4b197 100644 --- a/external/glm/doc/api/search/typedefs_a.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_a.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_a.js b/external/glm-0.9.9.8/doc/api/search/typedefs_a.js new file mode 100644 index 0000000..393208f --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_a.js @@ -0,0 +1,12 @@ +var searchData= +[ + ['sint',['sint',['../a00330.html#gada7e83fdfe943aba4f1d5bf80cb66f40',1,'glm']]], + ['size1',['size1',['../a00359.html#gaeb877ac8f9a3703961736c1c5072cf68',1,'glm']]], + ['size1_5ft',['size1_t',['../a00359.html#gaaf6accc57f5aa50447ba7310ce3f0d6f',1,'glm']]], + ['size2',['size2',['../a00359.html#ga1bfe8c4975ff282bce41be2bacd524fe',1,'glm']]], + ['size2_5ft',['size2_t',['../a00359.html#ga5976c25657d4e2b5f73f39364c3845d6',1,'glm']]], + ['size3',['size3',['../a00359.html#gae1c72956d0359b0db332c6c8774d3b04',1,'glm']]], + ['size3_5ft',['size3_t',['../a00359.html#gaf2654983c60d641fd3808e65a8dfad8d',1,'glm']]], + ['size4',['size4',['../a00359.html#ga3a19dde617beaf8ce3cfc2ac5064e9aa',1,'glm']]], + ['size4_5ft',['size4_t',['../a00359.html#gaa423efcea63675a2df26990dbcb58656',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_b.html b/external/glm-0.9.9.8/doc/api/search/typedefs_b.html similarity index 97% rename from external/glm/doc/api/search/typedefs_b.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_b.html index eded260..81a2062 100644 --- a/external/glm/doc/api/search/typedefs_b.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_b.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_b.js b/external/glm-0.9.9.8/doc/api/search/typedefs_b.js new file mode 100644 index 0000000..daa3896 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_b.js @@ -0,0 +1,47 @@ +var searchData= +[ + ['u16',['u16',['../a00304.html#gaa2d7acc0adb536fab71fe261232a40ff',1,'glm']]], + ['u16vec1',['u16vec1',['../a00304.html#ga08c05ba8ffb19f5d14ab584e1e9e9ee5',1,'glm::u16vec1()'],['../a00346.html#ga52cc069a92e126c3a8dcde93424d2ef0',1,'glm::gtx::u16vec1()']]], + ['u16vec2',['u16vec2',['../a00304.html#ga2a78447eb9d66a114b193f4a25899c16',1,'glm']]], + ['u16vec3',['u16vec3',['../a00304.html#ga1c522ca821c27b862fe51cf4024b064b',1,'glm']]], + ['u16vec4',['u16vec4',['../a00304.html#ga529496d75775fb656a07993ea9af2450',1,'glm']]], + ['u32',['u32',['../a00304.html#ga8165913e068444f7842302d40ba897b9',1,'glm']]], + ['u32vec1',['u32vec1',['../a00304.html#gae627372cfd5f20dd87db490387b71195',1,'glm::u32vec1()'],['../a00346.html#ga9bbc1e14aea65cba5e2dcfef6a67d9f3',1,'glm::gtx::u32vec1()']]], + ['u32vec2',['u32vec2',['../a00304.html#ga2a266e46ee218d0c680f12b35c500cc0',1,'glm']]], + ['u32vec3',['u32vec3',['../a00304.html#gae267358ff2a41d156d97f5762630235a',1,'glm']]], + ['u32vec4',['u32vec4',['../a00304.html#ga31cef34e4cd04840c54741ff2f7005f0',1,'glm']]], + ['u64',['u64',['../a00304.html#gaf3f312156984c365e9f65620354da70b',1,'glm']]], + ['u64vec1',['u64vec1',['../a00304.html#gaf09f3ca4b671a4a4f84505eb4cc865fd',1,'glm::u64vec1()'],['../a00346.html#ga818de170e2584ab037130f2881925974',1,'glm::gtx::u64vec1()']]], + ['u64vec2',['u64vec2',['../a00304.html#gaef3824ed4fe435a019c5b9dddf53fec5',1,'glm']]], + ['u64vec3',['u64vec3',['../a00304.html#ga489b89ba93d4f7b3934df78debc52276',1,'glm']]], + ['u64vec4',['u64vec4',['../a00304.html#ga3945dd6515d4498cb603e65ff867ab03',1,'glm']]], + ['u8',['u8',['../a00304.html#gaecc7082561fc9028b844b6cf3d305d36',1,'glm']]], + ['u8vec1',['u8vec1',['../a00304.html#ga29b349e037f0b24320b4548a143daee2',1,'glm::u8vec1()'],['../a00346.html#ga5853fe457f4c8a6bc09343d0e9833980',1,'glm::gtx::u8vec1()']]], + ['u8vec2',['u8vec2',['../a00304.html#ga518b8d948a6b4ddb72f84d5c3b7b6611',1,'glm']]], + ['u8vec3',['u8vec3',['../a00304.html#ga7c5706f6bbe5282e5598acf7e7b377e2',1,'glm']]], + ['u8vec4',['u8vec4',['../a00304.html#ga20779a61de2fd526a17f12fe53ec46b1',1,'glm']]], + ['uint16',['uint16',['../a00263.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e',1,'glm']]], + ['uint16_5ft',['uint16_t',['../a00304.html#ga91f91f411080c37730856ff5887f5bcf',1,'glm']]], + ['uint32',['uint32',['../a00263.html#ga1134b580f8da4de94ca6b1de4d37975e',1,'glm']]], + ['uint32_5ft',['uint32_t',['../a00304.html#ga2171d9dc1fefb1c82e2817f45b622eac',1,'glm']]], + ['uint64',['uint64',['../a00263.html#gab630f76c26b50298187f7889104d4b9c',1,'glm']]], + ['uint64_5ft',['uint64_t',['../a00304.html#ga3999d3e7ff22025c16ddb601e14dfdee',1,'glm']]], + ['uint8',['uint8',['../a00263.html#gadde6aaee8457bee49c2a92621fe22b79',1,'glm']]], + ['uint8_5ft',['uint8_t',['../a00304.html#ga28d97808322d3c92186e4a0c067d7e8e',1,'glm']]], + ['umat2',['umat2',['../a00294.html#ga4cae85566f900debf930c41944b64691',1,'glm']]], + ['umat2x2',['umat2x2',['../a00294.html#gabf8acdd33ce8951051edbca5200898aa',1,'glm']]], + ['umat2x3',['umat2x3',['../a00294.html#ga1870da7578d5022b973a83155d386ab3',1,'glm']]], + ['umat2x4',['umat2x4',['../a00294.html#ga57936a3998e992370e59a223e0ee4fd4',1,'glm']]], + ['umat3',['umat3',['../a00294.html#ga5085e3ff02abbac5e537eb7b89ab63b6',1,'glm']]], + ['umat3x2',['umat3x2',['../a00294.html#ga9cd7fa637a4a6788337f45231fad9e1a',1,'glm']]], + ['umat3x3',['umat3x3',['../a00294.html#ga1f2cfcf3357db0cdf31fcb15e3c6bafb',1,'glm']]], + ['umat3x4',['umat3x4',['../a00294.html#gae7c78ff3fc4309605ab0fa186c8d48ba',1,'glm']]], + ['umat4',['umat4',['../a00294.html#ga38bc7bb6494e344185df596deeb4544c',1,'glm']]], + ['umat4x2',['umat4x2',['../a00294.html#ga70fa2d05896aa83cbc8c07672a429b53',1,'glm']]], + ['umat4x3',['umat4x3',['../a00294.html#ga87581417945411f75cb31dd6ca1dba98',1,'glm']]], + ['umat4x4',['umat4x4',['../a00294.html#gaf72e6d399c42985db6872c50f53d7eb8',1,'glm']]], + ['uvec1',['uvec1',['../a00276.html#gac3bdd96183d23876c58a1424585fefe7',1,'glm']]], + ['uvec2',['uvec2',['../a00281.html#ga2f6d9ec3ae14813ade37d6aee3715fdb',1,'glm']]], + ['uvec3',['uvec3',['../a00281.html#ga3d3e55874babd4bf93baa7bbc83ae418',1,'glm']]], + ['uvec4',['uvec4',['../a00281.html#gaa57e96bb337867329d5f43bcc27c1095',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_c.html b/external/glm-0.9.9.8/doc/api/search/typedefs_c.html similarity index 97% rename from external/glm/doc/api/search/typedefs_c.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_c.html index 0ff00dd..6e1592a 100644 --- a/external/glm/doc/api/search/typedefs_c.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_c.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_c.js b/external/glm-0.9.9.8/doc/api/search/typedefs_c.js new file mode 100644 index 0000000..d228eab --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_c.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['vec1',['vec1',['../a00270.html#gadfc071d934d8dae7955a1d530a3cf656',1,'glm']]], + ['vec2',['vec2',['../a00281.html#gabe65c061834f61b4f7cb6037b19006a4',1,'glm']]], + ['vec3',['vec3',['../a00281.html#ga9c3019b13faf179e4ad3626ea66df334',1,'glm']]], + ['vec4',['vec4',['../a00281.html#gac215a35481a6597d1bf622a382e9d6e2',1,'glm']]] +]; diff --git a/external/glm/doc/api/search/typedefs_d.html b/external/glm-0.9.9.8/doc/api/search/typedefs_d.html similarity index 97% rename from external/glm/doc/api/search/typedefs_d.html rename to external/glm-0.9.9.8/doc/api/search/typedefs_d.html index 61e1cda..8218474 100644 --- a/external/glm/doc/api/search/typedefs_d.html +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_d.html @@ -1,26 +1,26 @@ - - - - - - - - - -
    -
    Loading...
    -
    - -
    Searching...
    -
    No Matches
    - -
    - - + + + + + + + + + +
    +
    Loading...
    +
    + +
    Searching...
    +
    No Matches
    + +
    + + diff --git a/external/glm-0.9.9.8/doc/api/search/typedefs_d.js b/external/glm-0.9.9.8/doc/api/search/typedefs_d.js new file mode 100644 index 0000000..787c0fa --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/search/typedefs_d.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['word',['word',['../a00354.html#ga16e9fea0ef1e6c4ef472d3d1731c49a5',1,'glm']]] +]; diff --git a/external/glm-0.9.9.8/doc/api/splitbar.png b/external/glm-0.9.9.8/doc/api/splitbar.png new file mode 100644 index 0000000..d5bc78b Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/splitbar.png differ diff --git a/external/glm-0.9.9.8/doc/api/sync_off.png b/external/glm-0.9.9.8/doc/api/sync_off.png new file mode 100644 index 0000000..9402c10 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/sync_off.png differ diff --git a/external/glm-0.9.9.8/doc/api/sync_on.png b/external/glm-0.9.9.8/doc/api/sync_on.png new file mode 100644 index 0000000..85d9754 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/sync_on.png differ diff --git a/external/glm-0.9.9.8/doc/api/tab_a.png b/external/glm-0.9.9.8/doc/api/tab_a.png new file mode 100644 index 0000000..cd087e7 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/tab_a.png differ diff --git a/external/glm-0.9.9.8/doc/api/tab_b.png b/external/glm-0.9.9.8/doc/api/tab_b.png new file mode 100644 index 0000000..e14114d Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/tab_b.png differ diff --git a/external/glm-0.9.9.8/doc/api/tab_h.png b/external/glm-0.9.9.8/doc/api/tab_h.png new file mode 100644 index 0000000..eddb3f2 Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/tab_h.png differ diff --git a/external/glm-0.9.9.8/doc/api/tab_s.png b/external/glm-0.9.9.8/doc/api/tab_s.png new file mode 100644 index 0000000..8d36eef Binary files /dev/null and b/external/glm-0.9.9.8/doc/api/tab_s.png differ diff --git a/external/glm-0.9.9.8/doc/api/tabs.css b/external/glm-0.9.9.8/doc/api/tabs.css new file mode 100644 index 0000000..25af414 --- /dev/null +++ b/external/glm-0.9.9.8/doc/api/tabs.css @@ -0,0 +1,60 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} diff --git a/external/glm-0.9.9.8/doc/man.doxy b/external/glm-0.9.9.8/doc/man.doxy new file mode 100644 index 0000000..66ba1a1 --- /dev/null +++ b/external/glm-0.9.9.8/doc/man.doxy @@ -0,0 +1,2415 @@ +# Doxyfile 1.8.10 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv +# for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = "0.9.9 API documentation" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify a logo or an icon that is included +# in the documentation. The maximum height of the logo should not exceed 55 +# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy +# the logo to the output directory. + +PROJECT_LOGO = theme/logo-mini.png + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. + +CREATE_SUBDIRS = NO + +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII +# characters to appear in the names of generated files. If set to NO, non-ASCII +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode +# U+3044. +# The default value is: NO. + +ALLOW_UNICODE_NAMES = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = "The $name class " \ + "The $name widget " \ + "The $name file " \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = NO + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = "C:/Documents and Settings/Groove/ " + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = YES + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new +# page for each member. If set to NO, the documentation of a member will be part +# of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: +# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: +# Fortran. In the later case the parser tries to guess whether the code is fixed +# or free formatted code, this is the default for Fortran type files), VHDL. For +# instance to make doxygen treat .inc files as Fortran files (default is PHP), +# and .f files as C (default is Fortran), use: inc=Fortran f=C. +# +# Note: For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by putting a % sign in front of the word or +# globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# If one adds a struct or class to a group and this option is enabled, then also +# any nested class or struct is added to the same group. By default this option +# is disabled and one has to add nested compounds explicitly via \ingroup. +# The default value is: NO. + +GROUP_NESTED_COMPOUNDS = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = NO + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO, +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = NO + +# This flag is only useful for Objective-C code. If set to YES, local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO, only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = YES + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO, these classes will be included in the various overviews. This option +# has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = YES + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO, these declarations will be +# included in the documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = YES + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO, these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = YES + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES, upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES, the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = YES + +# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will +# append additional text to a page's title, such as Class Reference. If set to +# YES the compound reference will be hidden. +# The default value is: NO. + +HIDE_COMPOUND_REFERENCE= NO + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = NO + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = NO + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = YES + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = YES + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo +# list. This list is created by putting \todo commands in the documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test +# list. This list is created by putting \test commands in the documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES, the +# list will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. See also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO, doxygen will only warn about wrong or incomplete +# parameter documentation, but not about the absence of documentation. +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING +# Note: If this tag is empty the current directory is searched. + +INPUT = ../glm \ + . + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: http://www.gnu.org/software/libiconv) for the list of +# possible encodings. +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# read by doxygen. +# +# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp, +# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, +# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, +# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, +# *.vhdl, *.ucf, *.qsf, *.as and *.js. + +FILE_PATTERNS = *.hpp \ + *.doxy + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = YES + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see http://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the +# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the +# cost of reduced performance. This can be particularly helpful with template +# rich C++ code for which doxygen's built-in parser lacks the necessary type +# information. +# Note: The availability of this option depends on whether or not doxygen was +# compiled with the --with-libclang option. +# The default value is: NO. + +CLANG_ASSISTED_PARSING = NO + +# If clang assisted parsing is enabled you can provide the compiler with command +# line options that you would normally use when invoking the compiler. Note that +# the include paths will already be set by doxygen for the files and directories +# specified with INPUT and INCLUDE_PATH. +# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. + +CLANG_OPTIONS = + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = NO + +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined +# cascading style sheets that are included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefore more robust against future updates. +# Doxygen will copy the style sheet files to the output directory. +# Note: The order of the extra style sheet files is of importance (e.g. the last +# style sheet in the list overrules the setting of the previous ones in the +# list). For an example see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the style sheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to YES can help to show when doxygen was last run and thus if the +# documentation is up to date. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = NO + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: http://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler (hhc.exe). If non-empty, +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated +# (YES) or that it should be included in the master .chm file (NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated +# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it +# enables the Previous and Next buttons. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- +# folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# http://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , /